1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tomoe-gtk 0.6.0. 4# 5# Report bugs to <daih@users.sourceforge.jp>. 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='tomoe-gtk' 730PACKAGE_TARNAME='tomoe-gtk' 731PACKAGE_VERSION='0.6.0' 732PACKAGE_STRING='tomoe-gtk 0.6.0' 733PACKAGE_BUGREPORT='daih@users.sourceforge.jp' 734 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_unique_file="src/tomoe-canvas.c" 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831build 832build_cpu 833build_vendor 834build_os 835host 836host_cpu 837host_vendor 838host_os 839CC 840CFLAGS 841LDFLAGS 842CPPFLAGS 843ac_ct_CC 844EXEEXT 845OBJEXT 846DEPDIR 847am__include 848am__quote 849AMDEP_TRUE 850AMDEP_FALSE 851AMDEPBACKSLASH 852CCDEPMODE 853am__fastdepCC_TRUE 854am__fastdepCC_FALSE 855GREP 856EGREP 857LN_S 858ECHO 859AR 860RANLIB 861CPP 862CXX 863CXXFLAGS 864ac_ct_CXX 865CXXDEPMODE 866am__fastdepCXX_TRUE 867am__fastdepCXX_FALSE 868CXXCPP 869F77 870FFLAGS 871ac_ct_F77 872LIBTOOL 873LT_VERSION_INFO 874LIBTOOL_EXPORT_OPTIONS 875PKG_CONFIG 876GTK2_CFLAGS 877GTK2_LIBS 878GLIB_MKENUMS 879TOMOE_CFLAGS 880TOMOE_LIBS 881GUCHARMAP_CFLAGS 882GUCHARMAP_LIBS 883TOMOE_GTK_REQUIRED_LIBS 884USE_GUCHARMAP_TRUE 885USE_GUCHARMAP_FALSE 886PYTHON 887PYTHON_VERSION 888PYTHON_PREFIX 889PYTHON_EXEC_PREFIX 890PYTHON_PLATFORM 891pythondir 892pkgpythondir 893pyexecdir 894pkgpyexecdir 895PYGOBJECT_CFLAGS 896PYGOBJECT_LIBS 897PYTHON_CFLAGS 898PYTHON_LIBS 899PYTHON_LDFLAGS 900PYGTK_DEFSDIR 901PYGTK_CODEGEN 902PYTOMOE_DEFSDIR 903WITH_PYTHON_TRUE 904WITH_PYTHON_FALSE 905HTML_DIR 906ENABLE_GTK_DOC_TRUE 907ENABLE_GTK_DOC_FALSE 908GTK_DOC_USE_LIBTOOL_TRUE 909GTK_DOC_USE_LIBTOOL_FALSE 910GETTEXT_PACKAGE 911USE_NLS 912MSGFMT 913MSGFMT_OPTS 914GMSGFMT 915XGETTEXT 916CATALOGS 917CATOBJEXT 918DATADIRNAME 919GMOFILES 920INSTOBJEXT 921INTLLIBS 922PO_IN_DATADIR_TRUE 923PO_IN_DATADIR_FALSE 924POFILES 925POSUB 926MKINSTALLDIRS 927LIBOBJS 928LTLIBOBJS' 929ac_subst_files='' 930 ac_precious_vars='build_alias 931host_alias 932target_alias 933CC 934CFLAGS 935LDFLAGS 936LIBS 937CPPFLAGS 938CPP 939CXX 940CXXFLAGS 941CCC 942CXXCPP 943F77 944FFLAGS 945PKG_CONFIG 946GTK2_CFLAGS 947GTK2_LIBS 948TOMOE_CFLAGS 949TOMOE_LIBS 950GUCHARMAP_CFLAGS 951GUCHARMAP_LIBS 952PYGOBJECT_CFLAGS 953PYGOBJECT_LIBS' 954 955 956# Initialize some variables set by options. 957ac_init_help= 958ac_init_version=false 959# The variables have the same names as the options, with 960# dashes changed to underlines. 961cache_file=/dev/null 962exec_prefix=NONE 963no_create= 964no_recursion= 965prefix=NONE 966program_prefix=NONE 967program_suffix=NONE 968program_transform_name=s,x,x, 969silent= 970site= 971srcdir= 972verbose= 973x_includes=NONE 974x_libraries=NONE 975 976# Installation directory options. 977# These are left unexpanded so users can "make install exec_prefix=/foo" 978# and all the variables that are supposed to be based on exec_prefix 979# by default will actually change. 980# Use braces instead of parens because sh, perl, etc. also accept them. 981# (The list follows the same order as the GNU Coding Standards.) 982bindir='${exec_prefix}/bin' 983sbindir='${exec_prefix}/sbin' 984libexecdir='${exec_prefix}/libexec' 985datarootdir='${prefix}/share' 986datadir='${datarootdir}' 987sysconfdir='${prefix}/etc' 988sharedstatedir='${prefix}/com' 989localstatedir='${prefix}/var' 990includedir='${prefix}/include' 991oldincludedir='/usr/include' 992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 993infodir='${datarootdir}/info' 994htmldir='${docdir}' 995dvidir='${docdir}' 996pdfdir='${docdir}' 997psdir='${docdir}' 998libdir='${exec_prefix}/lib' 999localedir='${datarootdir}/locale' 1000mandir='${datarootdir}/man' 1001 1002ac_prev= 1003ac_dashdash= 1004for ac_option 1005do 1006 # If the previous option needs an argument, assign it. 1007 if test -n "$ac_prev"; then 1008 eval $ac_prev=\$ac_option 1009 ac_prev= 1010 continue 1011 fi 1012 1013 case $ac_option in 1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1015 *) ac_optarg=yes ;; 1016 esac 1017 1018 # Accept the important Cygnus configure options, so we can diagnose typos. 1019 1020 case $ac_dashdash$ac_option in 1021 --) 1022 ac_dashdash=yes ;; 1023 1024 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1025 ac_prev=bindir ;; 1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1027 bindir=$ac_optarg ;; 1028 1029 -build | --build | --buil | --bui | --bu) 1030 ac_prev=build_alias ;; 1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1032 build_alias=$ac_optarg ;; 1033 1034 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1036 ac_prev=cache_file ;; 1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1039 cache_file=$ac_optarg ;; 1040 1041 --config-cache | -C) 1042 cache_file=config.cache ;; 1043 1044 -datadir | --datadir | --datadi | --datad) 1045 ac_prev=datadir ;; 1046 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1047 datadir=$ac_optarg ;; 1048 1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1050 | --dataroo | --dataro | --datar) 1051 ac_prev=datarootdir ;; 1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1054 datarootdir=$ac_optarg ;; 1055 1056 -disable-* | --disable-*) 1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1061 { (exit 1); exit 1; }; } 1062 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1063 eval enable_$ac_feature=no ;; 1064 1065 -docdir | --docdir | --docdi | --doc | --do) 1066 ac_prev=docdir ;; 1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1068 docdir=$ac_optarg ;; 1069 1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1071 ac_prev=dvidir ;; 1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1073 dvidir=$ac_optarg ;; 1074 1075 -enable-* | --enable-*) 1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1080 { (exit 1); exit 1; }; } 1081 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1082 eval enable_$ac_feature=\$ac_optarg ;; 1083 1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1086 | --exec | --exe | --ex) 1087 ac_prev=exec_prefix ;; 1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1090 | --exec=* | --exe=* | --ex=*) 1091 exec_prefix=$ac_optarg ;; 1092 1093 -gas | --gas | --ga | --g) 1094 # Obsolete; use --with-gas. 1095 with_gas=yes ;; 1096 1097 -help | --help | --hel | --he | -h) 1098 ac_init_help=long ;; 1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1100 ac_init_help=recursive ;; 1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1102 ac_init_help=short ;; 1103 1104 -host | --host | --hos | --ho) 1105 ac_prev=host_alias ;; 1106 -host=* | --host=* | --hos=* | --ho=*) 1107 host_alias=$ac_optarg ;; 1108 1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1110 ac_prev=htmldir ;; 1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1112 | --ht=*) 1113 htmldir=$ac_optarg ;; 1114 1115 -includedir | --includedir | --includedi | --included | --include \ 1116 | --includ | --inclu | --incl | --inc) 1117 ac_prev=includedir ;; 1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1119 | --includ=* | --inclu=* | --incl=* | --inc=*) 1120 includedir=$ac_optarg ;; 1121 1122 -infodir | --infodir | --infodi | --infod | --info | --inf) 1123 ac_prev=infodir ;; 1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1125 infodir=$ac_optarg ;; 1126 1127 -libdir | --libdir | --libdi | --libd) 1128 ac_prev=libdir ;; 1129 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1130 libdir=$ac_optarg ;; 1131 1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1133 | --libexe | --libex | --libe) 1134 ac_prev=libexecdir ;; 1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1136 | --libexe=* | --libex=* | --libe=*) 1137 libexecdir=$ac_optarg ;; 1138 1139 -localedir | --localedir | --localedi | --localed | --locale) 1140 ac_prev=localedir ;; 1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1142 localedir=$ac_optarg ;; 1143 1144 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1145 | --localstate | --localstat | --localsta | --localst | --locals) 1146 ac_prev=localstatedir ;; 1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1149 localstatedir=$ac_optarg ;; 1150 1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1152 ac_prev=mandir ;; 1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1154 mandir=$ac_optarg ;; 1155 1156 -nfp | --nfp | --nf) 1157 # Obsolete; use --without-fp. 1158 with_fp=no ;; 1159 1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1161 | --no-cr | --no-c | -n) 1162 no_create=yes ;; 1163 1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1166 no_recursion=yes ;; 1167 1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1170 | --oldin | --oldi | --old | --ol | --o) 1171 ac_prev=oldincludedir ;; 1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1175 oldincludedir=$ac_optarg ;; 1176 1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1178 ac_prev=prefix ;; 1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1180 prefix=$ac_optarg ;; 1181 1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1183 | --program-pre | --program-pr | --program-p) 1184 ac_prev=program_prefix ;; 1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1187 program_prefix=$ac_optarg ;; 1188 1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1190 | --program-suf | --program-su | --program-s) 1191 ac_prev=program_suffix ;; 1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1194 program_suffix=$ac_optarg ;; 1195 1196 -program-transform-name | --program-transform-name \ 1197 | --program-transform-nam | --program-transform-na \ 1198 | --program-transform-n | --program-transform- \ 1199 | --program-transform | --program-transfor \ 1200 | --program-transfo | --program-transf \ 1201 | --program-trans | --program-tran \ 1202 | --progr-tra | --program-tr | --program-t) 1203 ac_prev=program_transform_name ;; 1204 -program-transform-name=* | --program-transform-name=* \ 1205 | --program-transform-nam=* | --program-transform-na=* \ 1206 | --program-transform-n=* | --program-transform-=* \ 1207 | --program-transform=* | --program-transfor=* \ 1208 | --program-transfo=* | --program-transf=* \ 1209 | --program-trans=* | --program-tran=* \ 1210 | --progr-tra=* | --program-tr=* | --program-t=*) 1211 program_transform_name=$ac_optarg ;; 1212 1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1214 ac_prev=pdfdir ;; 1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1216 pdfdir=$ac_optarg ;; 1217 1218 -psdir | --psdir | --psdi | --psd | --ps) 1219 ac_prev=psdir ;; 1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1221 psdir=$ac_optarg ;; 1222 1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1224 | -silent | --silent | --silen | --sile | --sil) 1225 silent=yes ;; 1226 1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1228 ac_prev=sbindir ;; 1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1230 | --sbi=* | --sb=*) 1231 sbindir=$ac_optarg ;; 1232 1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1235 | --sharedst | --shareds | --shared | --share | --shar \ 1236 | --sha | --sh) 1237 ac_prev=sharedstatedir ;; 1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1241 | --sha=* | --sh=*) 1242 sharedstatedir=$ac_optarg ;; 1243 1244 -site | --site | --sit) 1245 ac_prev=site ;; 1246 -site=* | --site=* | --sit=*) 1247 site=$ac_optarg ;; 1248 1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1250 ac_prev=srcdir ;; 1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1252 srcdir=$ac_optarg ;; 1253 1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1255 | --syscon | --sysco | --sysc | --sys | --sy) 1256 ac_prev=sysconfdir ;; 1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1259 sysconfdir=$ac_optarg ;; 1260 1261 -target | --target | --targe | --targ | --tar | --ta | --t) 1262 ac_prev=target_alias ;; 1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1264 target_alias=$ac_optarg ;; 1265 1266 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1267 verbose=yes ;; 1268 1269 -version | --version | --versio | --versi | --vers | -V) 1270 ac_init_version=: ;; 1271 1272 -with-* | --with-*) 1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1274 # Reject names that are not valid shell variable names. 1275 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 { echo "$as_me: error: invalid package name: $ac_package" >&2 1277 { (exit 1); exit 1; }; } 1278 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1279 eval with_$ac_package=\$ac_optarg ;; 1280 1281 -without-* | --without-*) 1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1283 # Reject names that are not valid shell variable names. 1284 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 { echo "$as_me: error: invalid package name: $ac_package" >&2 1286 { (exit 1); exit 1; }; } 1287 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1288 eval with_$ac_package=no ;; 1289 1290 --x) 1291 # Obsolete; use --with-x. 1292 with_x=yes ;; 1293 1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1295 | --x-incl | --x-inc | --x-in | --x-i) 1296 ac_prev=x_includes ;; 1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1299 x_includes=$ac_optarg ;; 1300 1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1303 ac_prev=x_libraries ;; 1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1306 x_libraries=$ac_optarg ;; 1307 1308 -*) { echo "$as_me: error: unrecognized option: $ac_option 1309Try \`$0 --help' for more information." >&2 1310 { (exit 1); exit 1; }; } 1311 ;; 1312 1313 *=*) 1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1318 { (exit 1); exit 1; }; } 1319 eval $ac_envvar=\$ac_optarg 1320 export $ac_envvar ;; 1321 1322 *) 1323 # FIXME: should be removed in autoconf 3.0. 1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1328 ;; 1329 1330 esac 1331done 1332 1333if test -n "$ac_prev"; then 1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1335 { echo "$as_me: error: missing argument to $ac_option" >&2 1336 { (exit 1); exit 1; }; } 1337fi 1338 1339# Be sure to have absolute directory names. 1340for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1341 datadir sysconfdir sharedstatedir localstatedir includedir \ 1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1343 libdir localedir mandir 1344do 1345 eval ac_val=\$$ac_var 1346 case $ac_val in 1347 [\\/$]* | ?:[\\/]* ) continue;; 1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1349 esac 1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1351 { (exit 1); exit 1; }; } 1352done 1353 1354# There might be people who depend on the old broken behavior: `$host' 1355# used to hold the argument of --host etc. 1356# FIXME: To remove some day. 1357build=$build_alias 1358host=$host_alias 1359target=$target_alias 1360 1361# FIXME: To remove some day. 1362if test "x$host_alias" != x; then 1363 if test "x$build_alias" = x; then 1364 cross_compiling=maybe 1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1366 If a cross compiler is detected then cross compile mode will be used." >&2 1367 elif test "x$build_alias" != "x$host_alias"; then 1368 cross_compiling=yes 1369 fi 1370fi 1371 1372ac_tool_prefix= 1373test -n "$host_alias" && ac_tool_prefix=$host_alias- 1374 1375test "$silent" = yes && exec 6>/dev/null 1376 1377 1378ac_pwd=`pwd` && test -n "$ac_pwd" && 1379ac_ls_di=`ls -di .` && 1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1381 { echo "$as_me: error: Working directory cannot be determined" >&2 1382 { (exit 1); exit 1; }; } 1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1384 { echo "$as_me: error: pwd does not report name of working directory" >&2 1385 { (exit 1); exit 1; }; } 1386 1387 1388# Find the source files, if location was not specified. 1389if test -z "$srcdir"; then 1390 ac_srcdir_defaulted=yes 1391 # Try the directory containing this script, then the parent directory. 1392 ac_confdir=`$as_dirname -- "$0" || 1393$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1394 X"$0" : 'X\(//\)[^/]' \| \ 1395 X"$0" : 'X\(//\)$' \| \ 1396 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1397echo X"$0" | 1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)[^/].*/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\/\)$/{ 1407 s//\1/ 1408 q 1409 } 1410 /^X\(\/\).*/{ 1411 s//\1/ 1412 q 1413 } 1414 s/.*/./; q'` 1415 srcdir=$ac_confdir 1416 if test ! -r "$srcdir/$ac_unique_file"; then 1417 srcdir=.. 1418 fi 1419else 1420 ac_srcdir_defaulted=no 1421fi 1422if test ! -r "$srcdir/$ac_unique_file"; then 1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1425 { (exit 1); exit 1; }; } 1426fi 1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1428ac_abs_confdir=`( 1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1430 { (exit 1); exit 1; }; } 1431 pwd)` 1432# When building in place, set srcdir=. 1433if test "$ac_abs_confdir" = "$ac_pwd"; then 1434 srcdir=. 1435fi 1436# Remove unnecessary trailing slashes from srcdir. 1437# Double slashes in file names in object file debugging info 1438# mess up M-x gdb in Emacs. 1439case $srcdir in 1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1441esac 1442for ac_var in $ac_precious_vars; do 1443 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1444 eval ac_env_${ac_var}_value=\$${ac_var} 1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1446 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1447done 1448 1449# 1450# Report the --help message. 1451# 1452if test "$ac_init_help" = "long"; then 1453 # Omit some internal or obsolete options to make the list less imposing. 1454 # This message is too long to be a string in the A/UX 3.1 sh. 1455 cat <<_ACEOF 1456\`configure' configures tomoe-gtk 0.6.0 to adapt to many kinds of systems. 1457 1458Usage: $0 [OPTION]... [VAR=VALUE]... 1459 1460To assign environment variables (e.g., CC, CFLAGS...), specify them as 1461VAR=VALUE. See below for descriptions of some of the useful variables. 1462 1463Defaults for the options are specified in brackets. 1464 1465Configuration: 1466 -h, --help display this help and exit 1467 --help=short display options specific to this package 1468 --help=recursive display the short help of all the included packages 1469 -V, --version display version information and exit 1470 -q, --quiet, --silent do not print \`checking...' messages 1471 --cache-file=FILE cache test results in FILE [disabled] 1472 -C, --config-cache alias for \`--cache-file=config.cache' 1473 -n, --no-create do not create output files 1474 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1475 1476Installation directories: 1477 --prefix=PREFIX install architecture-independent files in PREFIX 1478 [$ac_default_prefix] 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1480 [PREFIX] 1481 1482By default, \`make install' will install all the files in 1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1484an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1485for instance \`--prefix=\$HOME'. 1486 1487For better control, use the options below. 1488 1489Fine tuning of the installation directories: 1490 --bindir=DIR user executables [EPREFIX/bin] 1491 --sbindir=DIR system admin executables [EPREFIX/sbin] 1492 --libexecdir=DIR program executables [EPREFIX/libexec] 1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1496 --libdir=DIR object code libraries [EPREFIX/lib] 1497 --includedir=DIR C header files [PREFIX/include] 1498 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1501 --infodir=DIR info documentation [DATAROOTDIR/info] 1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1503 --mandir=DIR man documentation [DATAROOTDIR/man] 1504 --docdir=DIR documentation root [DATAROOTDIR/doc/tomoe-gtk] 1505 --htmldir=DIR html documentation [DOCDIR] 1506 --dvidir=DIR dvi documentation [DOCDIR] 1507 --pdfdir=DIR pdf documentation [DOCDIR] 1508 --psdir=DIR ps documentation [DOCDIR] 1509_ACEOF 1510 1511 cat <<\_ACEOF 1512 1513Program names: 1514 --program-prefix=PREFIX prepend PREFIX to installed program names 1515 --program-suffix=SUFFIX append SUFFIX to installed program names 1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1517 1518System types: 1519 --build=BUILD configure for building on BUILD [guessed] 1520 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1521_ACEOF 1522fi 1523 1524if test -n "$ac_init_help"; then 1525 case $ac_init_help in 1526 short | recursive ) echo "Configuration of tomoe-gtk 0.6.0:";; 1527 esac 1528 cat <<\_ACEOF 1529 1530Optional Features: 1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1533 --enable-shared[=PKGS] build shared libraries [default=yes] 1534 --enable-static[=PKGS] build static libraries [default=yes] 1535 --enable-fast-install[=PKGS] 1536 optimize for fast installation [default=yes] 1537 --disable-dependency-tracking speeds up one-time build 1538 --enable-dependency-tracking do not reject slow dependency extractors 1539 --disable-libtool-lock avoid locking (might break parallel builds) 1540 --enable-Werror Enable -Werror option for GCC 1541 --enable-dumpstroke Enable dump of stroke data 1542 --enable-gtk-doc use gtk-doc to build documentation default=no 1543 1544Optional Packages: 1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1548 --with-pic try to use only PIC/non-PIC objects [default=use 1549 both] 1550 --with-tags[=TAGS] include additional configurations [automatic] 1551 --with-gucharmap Compile with gucharmap 1552 --with-python=PATH Python interpreter path (default: auto-detect) 1553 --with-html-dir=PATH path to installed docs 1554 1555Some influential environment variables: 1556 CC C compiler command 1557 CFLAGS C compiler flags 1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1559 nonstandard directory <lib dir> 1560 LIBS libraries to pass to the linker, e.g. -l<library> 1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1562 you have headers in a nonstandard directory <include dir> 1563 CPP C preprocessor 1564 CXX C++ compiler command 1565 CXXFLAGS C++ compiler flags 1566 CXXCPP C++ preprocessor 1567 F77 Fortran 77 compiler command 1568 FFLAGS Fortran 77 compiler flags 1569 PKG_CONFIG path to pkg-config utility 1570 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config 1571 GTK2_LIBS linker flags for GTK2, overriding pkg-config 1572 TOMOE_CFLAGS 1573 C compiler flags for TOMOE, overriding pkg-config 1574 TOMOE_LIBS linker flags for TOMOE, overriding pkg-config 1575 GUCHARMAP_CFLAGS 1576 C compiler flags for GUCHARMAP, overriding pkg-config 1577 GUCHARMAP_LIBS 1578 linker flags for GUCHARMAP, overriding pkg-config 1579 PYGOBJECT_CFLAGS 1580 C compiler flags for PYGOBJECT, overriding pkg-config 1581 PYGOBJECT_LIBS 1582 linker flags for PYGOBJECT, overriding pkg-config 1583 1584Use these variables to override the choices made by `configure' or to help 1585it to find libraries and programs with nonstandard names/locations. 1586 1587Report bugs to <daih@users.sourceforge.jp>. 1588_ACEOF 1589ac_status=$? 1590fi 1591 1592if test "$ac_init_help" = "recursive"; then 1593 # If there are subdirs, report their specific --help. 1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1595 test -d "$ac_dir" || continue 1596 ac_builddir=. 1597 1598case "$ac_dir" in 1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1600*) 1601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1602 # A ".." for each directory in $ac_dir_suffix. 1603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1604 case $ac_top_builddir_sub in 1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1607 esac ;; 1608esac 1609ac_abs_top_builddir=$ac_pwd 1610ac_abs_builddir=$ac_pwd$ac_dir_suffix 1611# for backward compatibility: 1612ac_top_builddir=$ac_top_build_prefix 1613 1614case $srcdir in 1615 .) # We are building in place. 1616 ac_srcdir=. 1617 ac_top_srcdir=$ac_top_builddir_sub 1618 ac_abs_top_srcdir=$ac_pwd ;; 1619 [\\/]* | ?:[\\/]* ) # Absolute name. 1620 ac_srcdir=$srcdir$ac_dir_suffix; 1621 ac_top_srcdir=$srcdir 1622 ac_abs_top_srcdir=$srcdir ;; 1623 *) # Relative name. 1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1625 ac_top_srcdir=$ac_top_build_prefix$srcdir 1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1627esac 1628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1629 1630 cd "$ac_dir" || { ac_status=$?; continue; } 1631 # Check for guested configure. 1632 if test -f "$ac_srcdir/configure.gnu"; then 1633 echo && 1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1635 elif test -f "$ac_srcdir/configure"; then 1636 echo && 1637 $SHELL "$ac_srcdir/configure" --help=recursive 1638 else 1639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1640 fi || ac_status=$? 1641 cd "$ac_pwd" || { ac_status=$?; break; } 1642 done 1643fi 1644 1645test -n "$ac_init_help" && exit $ac_status 1646if $ac_init_version; then 1647 cat <<\_ACEOF 1648tomoe-gtk configure 0.6.0 1649generated by GNU Autoconf 2.61 1650 1651Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1653This configure script is free software; the Free Software Foundation 1654gives unlimited permission to copy, distribute and modify it. 1655_ACEOF 1656 exit 1657fi 1658cat >config.log <<_ACEOF 1659This file contains any messages produced by compilers while 1660running configure, to aid debugging if configure makes a mistake. 1661 1662It was created by tomoe-gtk $as_me 0.6.0, which was 1663generated by GNU Autoconf 2.61. Invocation command line was 1664 1665 $ $0 $@ 1666 1667_ACEOF 1668exec 5>>config.log 1669{ 1670cat <<_ASUNAME 1671## --------- ## 1672## Platform. ## 1673## --------- ## 1674 1675hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1676uname -m = `(uname -m) 2>/dev/null || echo unknown` 1677uname -r = `(uname -r) 2>/dev/null || echo unknown` 1678uname -s = `(uname -s) 2>/dev/null || echo unknown` 1679uname -v = `(uname -v) 2>/dev/null || echo unknown` 1680 1681/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1682/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1683 1684/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1685/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1686/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1687/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1688/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1689/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1690/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1691 1692_ASUNAME 1693 1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1695for as_dir in $PATH 1696do 1697 IFS=$as_save_IFS 1698 test -z "$as_dir" && as_dir=. 1699 echo "PATH: $as_dir" 1700done 1701IFS=$as_save_IFS 1702 1703} >&5 1704 1705cat >&5 <<_ACEOF 1706 1707 1708## ----------- ## 1709## Core tests. ## 1710## ----------- ## 1711 1712_ACEOF 1713 1714 1715# Keep a trace of the command line. 1716# Strip out --no-create and --no-recursion so they do not pile up. 1717# Strip out --silent because we don't want to record it for future runs. 1718# Also quote any args containing shell meta-characters. 1719# Make two passes to allow for proper duplicate-argument suppression. 1720ac_configure_args= 1721ac_configure_args0= 1722ac_configure_args1= 1723ac_must_keep_next=false 1724for ac_pass in 1 2 1725do 1726 for ac_arg 1727 do 1728 case $ac_arg in 1729 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1731 | -silent | --silent | --silen | --sile | --sil) 1732 continue ;; 1733 *\'*) 1734 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1735 esac 1736 case $ac_pass in 1737 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1738 2) 1739 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1740 if test $ac_must_keep_next = true; then 1741 ac_must_keep_next=false # Got value, back to normal. 1742 else 1743 case $ac_arg in 1744 *=* | --config-cache | -C | -disable-* | --disable-* \ 1745 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1746 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1747 | -with-* | --with-* | -without-* | --without-* | --x) 1748 case "$ac_configure_args0 " in 1749 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1750 esac 1751 ;; 1752 -* ) ac_must_keep_next=true ;; 1753 esac 1754 fi 1755 ac_configure_args="$ac_configure_args '$ac_arg'" 1756 ;; 1757 esac 1758 done 1759done 1760$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1761$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1762 1763# When interrupted or exit'd, cleanup temporary files, and complete 1764# config.log. We remove comments because anyway the quotes in there 1765# would cause problems or look ugly. 1766# WARNING: Use '\'' to represent an apostrophe within the trap. 1767# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1768trap 'exit_status=$? 1769 # Save into config.log some information that might help in debugging. 1770 { 1771 echo 1772 1773 cat <<\_ASBOX 1774## ---------------- ## 1775## Cache variables. ## 1776## ---------------- ## 1777_ASBOX 1778 echo 1779 # The following way of writing the cache mishandles newlines in values, 1780( 1781 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1782 eval ac_val=\$$ac_var 1783 case $ac_val in #( 1784 *${as_nl}*) 1785 case $ac_var in #( 1786 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1787echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1788 esac 1789 case $ac_var in #( 1790 _ | IFS | as_nl) ;; #( 1791 *) $as_unset $ac_var ;; 1792 esac ;; 1793 esac 1794 done 1795 (set) 2>&1 | 1796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1797 *${as_nl}ac_space=\ *) 1798 sed -n \ 1799 "s/'\''/'\''\\\\'\'''\''/g; 1800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1801 ;; #( 1802 *) 1803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1804 ;; 1805 esac | 1806 sort 1807) 1808 echo 1809 1810 cat <<\_ASBOX 1811## ----------------- ## 1812## Output variables. ## 1813## ----------------- ## 1814_ASBOX 1815 echo 1816 for ac_var in $ac_subst_vars 1817 do 1818 eval ac_val=\$$ac_var 1819 case $ac_val in 1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1821 esac 1822 echo "$ac_var='\''$ac_val'\''" 1823 done | sort 1824 echo 1825 1826 if test -n "$ac_subst_files"; then 1827 cat <<\_ASBOX 1828## ------------------- ## 1829## File substitutions. ## 1830## ------------------- ## 1831_ASBOX 1832 echo 1833 for ac_var in $ac_subst_files 1834 do 1835 eval ac_val=\$$ac_var 1836 case $ac_val in 1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1838 esac 1839 echo "$ac_var='\''$ac_val'\''" 1840 done | sort 1841 echo 1842 fi 1843 1844 if test -s confdefs.h; then 1845 cat <<\_ASBOX 1846## ----------- ## 1847## confdefs.h. ## 1848## ----------- ## 1849_ASBOX 1850 echo 1851 cat confdefs.h 1852 echo 1853 fi 1854 test "$ac_signal" != 0 && 1855 echo "$as_me: caught signal $ac_signal" 1856 echo "$as_me: exit $exit_status" 1857 } >&5 1858 rm -f core *.core core.conftest.* && 1859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1860 exit $exit_status 1861' 0 1862for ac_signal in 1 2 13 15; do 1863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1864done 1865ac_signal=0 1866 1867# confdefs.h avoids OS command line length limits that DEFS can exceed. 1868rm -f -r conftest* confdefs.h 1869 1870# Predefined preprocessor variables. 1871 1872cat >>confdefs.h <<_ACEOF 1873#define PACKAGE_NAME "$PACKAGE_NAME" 1874_ACEOF 1875 1876 1877cat >>confdefs.h <<_ACEOF 1878#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1879_ACEOF 1880 1881 1882cat >>confdefs.h <<_ACEOF 1883#define PACKAGE_VERSION "$PACKAGE_VERSION" 1884_ACEOF 1885 1886 1887cat >>confdefs.h <<_ACEOF 1888#define PACKAGE_STRING "$PACKAGE_STRING" 1889_ACEOF 1890 1891 1892cat >>confdefs.h <<_ACEOF 1893#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1894_ACEOF 1895 1896 1897# Let the site file select an alternate cache file if it wants to. 1898# Prefer explicitly selected file to automatically selected ones. 1899if test -n "$CONFIG_SITE"; then 1900 set x "$CONFIG_SITE" 1901elif test "x$prefix" != xNONE; then 1902 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1903else 1904 set x "$ac_default_prefix/share/config.site" \ 1905 "$ac_default_prefix/etc/config.site" 1906fi 1907shift 1908for ac_site_file 1909do 1910 if test -r "$ac_site_file"; then 1911 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1912echo "$as_me: loading site script $ac_site_file" >&6;} 1913 sed 's/^/| /' "$ac_site_file" >&5 1914 . "$ac_site_file" 1915 fi 1916done 1917 1918if test -r "$cache_file"; then 1919 # Some versions of bash will fail to source /dev/null (special 1920 # files actually), so we avoid doing that. 1921 if test -f "$cache_file"; then 1922 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1923echo "$as_me: loading cache $cache_file" >&6;} 1924 case $cache_file in 1925 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1926 *) . "./$cache_file";; 1927 esac 1928 fi 1929else 1930 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1931echo "$as_me: creating cache $cache_file" >&6;} 1932 >$cache_file 1933fi 1934 1935# Check that the precious variables saved in the cache have kept the same 1936# value. 1937ac_cache_corrupted=false 1938for ac_var in $ac_precious_vars; do 1939 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1940 eval ac_new_set=\$ac_env_${ac_var}_set 1941 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1942 eval ac_new_val=\$ac_env_${ac_var}_value 1943 case $ac_old_set,$ac_new_set in 1944 set,) 1945 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1946echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1947 ac_cache_corrupted=: ;; 1948 ,set) 1949 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1950echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1951 ac_cache_corrupted=: ;; 1952 ,);; 1953 *) 1954 if test "x$ac_old_val" != "x$ac_new_val"; then 1955 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1956echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1957 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1958echo "$as_me: former value: $ac_old_val" >&2;} 1959 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1960echo "$as_me: current value: $ac_new_val" >&2;} 1961 ac_cache_corrupted=: 1962 fi;; 1963 esac 1964 # Pass precious variables to config.status. 1965 if test "$ac_new_set" = set; then 1966 case $ac_new_val in 1967 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1968 *) ac_arg=$ac_var=$ac_new_val ;; 1969 esac 1970 case " $ac_configure_args " in 1971 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1972 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1973 esac 1974 fi 1975done 1976if $ac_cache_corrupted; then 1977 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1978echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1979 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1980echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1981 { (exit 1); exit 1; }; } 1982fi 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008ac_ext=c 2009ac_cpp='$CPP $CPPFLAGS' 2010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2012ac_compiler_gnu=$ac_cv_c_compiler_gnu 2013 2014 2015am__api_version='1.10' 2016 2017ac_aux_dir= 2018for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2019 if test -f "$ac_dir/install-sh"; then 2020 ac_aux_dir=$ac_dir 2021 ac_install_sh="$ac_aux_dir/install-sh -c" 2022 break 2023 elif test -f "$ac_dir/install.sh"; then 2024 ac_aux_dir=$ac_dir 2025 ac_install_sh="$ac_aux_dir/install.sh -c" 2026 break 2027 elif test -f "$ac_dir/shtool"; then 2028 ac_aux_dir=$ac_dir 2029 ac_install_sh="$ac_aux_dir/shtool install -c" 2030 break 2031 fi 2032done 2033if test -z "$ac_aux_dir"; then 2034 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2035echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2036 { (exit 1); exit 1; }; } 2037fi 2038 2039# These three variables are undocumented and unsupported, 2040# and are intended to be withdrawn in a future Autoconf release. 2041# They can cause serious problems if a builder's source tree is in a directory 2042# whose full name contains unusual characters. 2043ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2044ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2045ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2046 2047 2048# Find a good install program. We prefer a C program (faster), 2049# so one script is as good as another. But avoid the broken or 2050# incompatible versions: 2051# SysV /etc/install, /usr/sbin/install 2052# SunOS /usr/etc/install 2053# IRIX /sbin/install 2054# AIX /bin/install 2055# AmigaOS /C/install, which installs bootblocks on floppy discs 2056# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2057# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2058# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2059# OS/2's system install, which has a completely different semantic 2060# ./install, which can be erroneously created by make from ./install.sh. 2061{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2062echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2063if test -z "$INSTALL"; then 2064if test "${ac_cv_path_install+set}" = set; then 2065 echo $ECHO_N "(cached) $ECHO_C" >&6 2066else 2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2068for as_dir in $PATH 2069do 2070 IFS=$as_save_IFS 2071 test -z "$as_dir" && as_dir=. 2072 # Account for people who put trailing slashes in PATH elements. 2073case $as_dir/ in 2074 ./ | .// | /cC/* | \ 2075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2076 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2077 /usr/ucb/* ) ;; 2078 *) 2079 # OSF1 and SCO ODT 3.0 have their own names for install. 2080 # Don't use installbsd from OSF since it installs stuff as root 2081 # by default. 2082 for ac_prog in ginstall scoinst install; do 2083 for ac_exec_ext in '' $ac_executable_extensions; do 2084 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2085 if test $ac_prog = install && 2086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2087 # AIX install. It has an incompatible calling convention. 2088 : 2089 elif test $ac_prog = install && 2090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2091 # program-specific install script used by HP pwplus--don't use. 2092 : 2093 else 2094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2095 break 3 2096 fi 2097 fi 2098 done 2099 done 2100 ;; 2101esac 2102done 2103IFS=$as_save_IFS 2104 2105 2106fi 2107 if test "${ac_cv_path_install+set}" = set; then 2108 INSTALL=$ac_cv_path_install 2109 else 2110 # As a last resort, use the slow shell script. Don't cache a 2111 # value for INSTALL within a source directory, because that will 2112 # break other packages using the cache if that directory is 2113 # removed, or if the value is a relative name. 2114 INSTALL=$ac_install_sh 2115 fi 2116fi 2117{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2118echo "${ECHO_T}$INSTALL" >&6; } 2119 2120# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2121# It thinks the first close brace ends the variable substitution. 2122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2123 2124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2125 2126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2127 2128{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2129echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2130# Just in case 2131sleep 1 2132echo timestamp > conftest.file 2133# Do `set' in a subshell so we don't clobber the current shell's 2134# arguments. Must try -L first in case configure is actually a 2135# symlink; some systems play weird games with the mod time of symlinks 2136# (eg FreeBSD returns the mod time of the symlink's containing 2137# directory). 2138if ( 2139 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2140 if test "$*" = "X"; then 2141 # -L didn't work. 2142 set X `ls -t $srcdir/configure conftest.file` 2143 fi 2144 rm -f conftest.file 2145 if test "$*" != "X $srcdir/configure conftest.file" \ 2146 && test "$*" != "X conftest.file $srcdir/configure"; then 2147 2148 # If neither matched, then we have a broken ls. This can happen 2149 # if, for instance, CONFIG_SHELL is bash and it inherits a 2150 # broken ls alias from the environment. This has actually 2151 # happened. Such a system could not be considered "sane". 2152 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2153alias in your environment" >&5 2154echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2155alias in your environment" >&2;} 2156 { (exit 1); exit 1; }; } 2157 fi 2158 2159 test "$2" = conftest.file 2160 ) 2161then 2162 # Ok. 2163 : 2164else 2165 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2166Check your system clock" >&5 2167echo "$as_me: error: newly created file is older than distributed files! 2168Check your system clock" >&2;} 2169 { (exit 1); exit 1; }; } 2170fi 2171{ echo "$as_me:$LINENO: result: yes" >&5 2172echo "${ECHO_T}yes" >&6; } 2173test "$program_prefix" != NONE && 2174 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2175# Use a double $ so make ignores it. 2176test "$program_suffix" != NONE && 2177 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2178# Double any \ or $. echo might interpret backslashes. 2179# By default was `s,x,x', remove it if useless. 2180cat <<\_ACEOF >conftest.sed 2181s/[\\$]/&&/g;s/;s,x,x,$// 2182_ACEOF 2183program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2184rm -f conftest.sed 2185 2186# expand $ac_aux_dir to an absolute path 2187am_aux_dir=`cd $ac_aux_dir && pwd` 2188 2189test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2190# Use eval to expand $SHELL 2191if eval "$MISSING --run true"; then 2192 am_missing_run="$MISSING --run " 2193else 2194 am_missing_run= 2195 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2196echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2197fi 2198 2199{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2200echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2201if test -z "$MKDIR_P"; then 2202 if test "${ac_cv_path_mkdir+set}" = set; then 2203 echo $ECHO_N "(cached) $ECHO_C" >&6 2204else 2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2206for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2207do 2208 IFS=$as_save_IFS 2209 test -z "$as_dir" && as_dir=. 2210 for ac_prog in mkdir gmkdir; do 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2213 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2214 'mkdir (GNU coreutils) '* | \ 2215 'mkdir (coreutils) '* | \ 2216 'mkdir (fileutils) '4.1*) 2217 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2218 break 3;; 2219 esac 2220 done 2221 done 2222done 2223IFS=$as_save_IFS 2224 2225fi 2226 2227 if test "${ac_cv_path_mkdir+set}" = set; then 2228 MKDIR_P="$ac_cv_path_mkdir -p" 2229 else 2230 # As a last resort, use the slow shell script. Don't cache a 2231 # value for MKDIR_P within a source directory, because that will 2232 # break other packages using the cache if that directory is 2233 # removed, or if the value is a relative name. 2234 test -d ./--version && rmdir ./--version 2235 MKDIR_P="$ac_install_sh -d" 2236 fi 2237fi 2238{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2239echo "${ECHO_T}$MKDIR_P" >&6; } 2240 2241mkdir_p="$MKDIR_P" 2242case $mkdir_p in 2243 [\\/$]* | ?:[\\/]*) ;; 2244 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2245esac 2246 2247for ac_prog in gawk mawk nawk awk 2248do 2249 # Extract the first word of "$ac_prog", so it can be a program name with args. 2250set dummy $ac_prog; ac_word=$2 2251{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2253if test "${ac_cv_prog_AWK+set}" = set; then 2254 echo $ECHO_N "(cached) $ECHO_C" >&6 2255else 2256 if test -n "$AWK"; then 2257 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2258else 2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260for as_dir in $PATH 2261do 2262 IFS=$as_save_IFS 2263 test -z "$as_dir" && as_dir=. 2264 for ac_exec_ext in '' $ac_executable_extensions; do 2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2266 ac_cv_prog_AWK="$ac_prog" 2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268 break 2 2269 fi 2270done 2271done 2272IFS=$as_save_IFS 2273 2274fi 2275fi 2276AWK=$ac_cv_prog_AWK 2277if test -n "$AWK"; then 2278 { echo "$as_me:$LINENO: result: $AWK" >&5 2279echo "${ECHO_T}$AWK" >&6; } 2280else 2281 { echo "$as_me:$LINENO: result: no" >&5 2282echo "${ECHO_T}no" >&6; } 2283fi 2284 2285 2286 test -n "$AWK" && break 2287done 2288 2289{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2290echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2291set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2292if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2293 echo $ECHO_N "(cached) $ECHO_C" >&6 2294else 2295 cat >conftest.make <<\_ACEOF 2296SHELL = /bin/sh 2297all: 2298 @echo '@@@%%%=$(MAKE)=@@@%%%' 2299_ACEOF 2300# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2301case `${MAKE-make} -f conftest.make 2>/dev/null` in 2302 *@@@%%%=?*=@@@%%%*) 2303 eval ac_cv_prog_make_${ac_make}_set=yes;; 2304 *) 2305 eval ac_cv_prog_make_${ac_make}_set=no;; 2306esac 2307rm -f conftest.make 2308fi 2309if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2310 { echo "$as_me:$LINENO: result: yes" >&5 2311echo "${ECHO_T}yes" >&6; } 2312 SET_MAKE= 2313else 2314 { echo "$as_me:$LINENO: result: no" >&5 2315echo "${ECHO_T}no" >&6; } 2316 SET_MAKE="MAKE=${MAKE-make}" 2317fi 2318 2319rm -rf .tst 2>/dev/null 2320mkdir .tst 2>/dev/null 2321if test -d .tst; then 2322 am__leading_dot=. 2323else 2324 am__leading_dot=_ 2325fi 2326rmdir .tst 2>/dev/null 2327 2328if test "`cd $srcdir && pwd`" != "`pwd`"; then 2329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2330 # is not polluted with repeated "-I." 2331 am__isrc=' -I$(srcdir)' 2332 # test to see if srcdir already configured 2333 if test -f $srcdir/config.status; then 2334 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2335echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2336 { (exit 1); exit 1; }; } 2337 fi 2338fi 2339 2340# test whether we have cygpath 2341if test -z "$CYGPATH_W"; then 2342 if (cygpath --version) >/dev/null 2>/dev/null; then 2343 CYGPATH_W='cygpath -w' 2344 else 2345 CYGPATH_W=echo 2346 fi 2347fi 2348 2349 2350# Define the identity of the package. 2351 PACKAGE=$PACKAGE_NAME 2352 VERSION=$PACKAGE_VERSION 2353 2354 2355# Some tools Automake needs. 2356 2357ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2358 2359 2360AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2361 2362 2363AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2364 2365 2366AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2367 2368 2369MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2370 2371install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2372 2373# Installed binaries are usually stripped using `strip' when the user 2374# run `make install-strip'. However `strip' might not be the right 2375# tool to use in cross-compilation environments, therefore Automake 2376# will honor the `STRIP' environment variable to overrule this program. 2377if test "$cross_compiling" != no; then 2378 if test -n "$ac_tool_prefix"; then 2379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2380set dummy ${ac_tool_prefix}strip; ac_word=$2 2381{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2383if test "${ac_cv_prog_STRIP+set}" = set; then 2384 echo $ECHO_N "(cached) $ECHO_C" >&6 2385else 2386 if test -n "$STRIP"; then 2387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2388else 2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2390for as_dir in $PATH 2391do 2392 IFS=$as_save_IFS 2393 test -z "$as_dir" && as_dir=. 2394 for ac_exec_ext in '' $ac_executable_extensions; do 2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2396 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2398 break 2 2399 fi 2400done 2401done 2402IFS=$as_save_IFS 2403 2404fi 2405fi 2406STRIP=$ac_cv_prog_STRIP 2407if test -n "$STRIP"; then 2408 { echo "$as_me:$LINENO: result: $STRIP" >&5 2409echo "${ECHO_T}$STRIP" >&6; } 2410else 2411 { echo "$as_me:$LINENO: result: no" >&5 2412echo "${ECHO_T}no" >&6; } 2413fi 2414 2415 2416fi 2417if test -z "$ac_cv_prog_STRIP"; then 2418 ac_ct_STRIP=$STRIP 2419 # Extract the first word of "strip", so it can be a program name with args. 2420set dummy strip; ac_word=$2 2421{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2423if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2424 echo $ECHO_N "(cached) $ECHO_C" >&6 2425else 2426 if test -n "$ac_ct_STRIP"; then 2427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2428else 2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430for as_dir in $PATH 2431do 2432 IFS=$as_save_IFS 2433 test -z "$as_dir" && as_dir=. 2434 for ac_exec_ext in '' $ac_executable_extensions; do 2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2436 ac_cv_prog_ac_ct_STRIP="strip" 2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2438 break 2 2439 fi 2440done 2441done 2442IFS=$as_save_IFS 2443 2444fi 2445fi 2446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2447if test -n "$ac_ct_STRIP"; then 2448 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2449echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2450else 2451 { echo "$as_me:$LINENO: result: no" >&5 2452echo "${ECHO_T}no" >&6; } 2453fi 2454 2455 if test "x$ac_ct_STRIP" = x; then 2456 STRIP=":" 2457 else 2458 case $cross_compiling:$ac_tool_warned in 2459yes:) 2460{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2461whose name does not start with the host triplet. If you think this 2462configuration is useful to you, please write to autoconf@gnu.org." >&5 2463echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2464whose name does not start with the host triplet. If you think this 2465configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2466ac_tool_warned=yes ;; 2467esac 2468 STRIP=$ac_ct_STRIP 2469 fi 2470else 2471 STRIP="$ac_cv_prog_STRIP" 2472fi 2473 2474fi 2475INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2476 2477# We need awk for the "check" target. The system "awk" is bad on 2478# some platforms. 2479# Always define AMTAR for backward compatibility. 2480 2481AMTAR=${AMTAR-"${am_missing_run}tar"} 2482 2483am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2484 2485 2486 2487 2488 2489 2490# libtool 2491# Check whether --enable-shared was given. 2492if test "${enable_shared+set}" = set; then 2493 enableval=$enable_shared; p=${PACKAGE-default} 2494 case $enableval in 2495 yes) enable_shared=yes ;; 2496 no) enable_shared=no ;; 2497 *) 2498 enable_shared=no 2499 # Look at the argument we got. We use all the common list separators. 2500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2501 for pkg in $enableval; do 2502 IFS="$lt_save_ifs" 2503 if test "X$pkg" = "X$p"; then 2504 enable_shared=yes 2505 fi 2506 done 2507 IFS="$lt_save_ifs" 2508 ;; 2509 esac 2510else 2511 enable_shared=yes 2512fi 2513 2514 2515# Check whether --enable-static was given. 2516if test "${enable_static+set}" = set; then 2517 enableval=$enable_static; p=${PACKAGE-default} 2518 case $enableval in 2519 yes) enable_static=yes ;; 2520 no) enable_static=no ;; 2521 *) 2522 enable_static=no 2523 # Look at the argument we got. We use all the common list separators. 2524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2525 for pkg in $enableval; do 2526 IFS="$lt_save_ifs" 2527 if test "X$pkg" = "X$p"; then 2528 enable_static=yes 2529 fi 2530 done 2531 IFS="$lt_save_ifs" 2532 ;; 2533 esac 2534else 2535 enable_static=yes 2536fi 2537 2538 2539# Check whether --enable-fast-install was given. 2540if test "${enable_fast_install+set}" = set; then 2541 enableval=$enable_fast_install; p=${PACKAGE-default} 2542 case $enableval in 2543 yes) enable_fast_install=yes ;; 2544 no) enable_fast_install=no ;; 2545 *) 2546 enable_fast_install=no 2547 # Look at the argument we got. We use all the common list separators. 2548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2549 for pkg in $enableval; do 2550 IFS="$lt_save_ifs" 2551 if test "X$pkg" = "X$p"; then 2552 enable_fast_install=yes 2553 fi 2554 done 2555 IFS="$lt_save_ifs" 2556 ;; 2557 esac 2558else 2559 enable_fast_install=yes 2560fi 2561 2562 2563# Make sure we can run config.sub. 2564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2565 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2566echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2567 { (exit 1); exit 1; }; } 2568 2569{ echo "$as_me:$LINENO: checking build system type" >&5 2570echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2571if test "${ac_cv_build+set}" = set; then 2572 echo $ECHO_N "(cached) $ECHO_C" >&6 2573else 2574 ac_build_alias=$build_alias 2575test "x$ac_build_alias" = x && 2576 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2577test "x$ac_build_alias" = x && 2578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2579echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2580 { (exit 1); exit 1; }; } 2581ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2583echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2584 { (exit 1); exit 1; }; } 2585 2586fi 2587{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2588echo "${ECHO_T}$ac_cv_build" >&6; } 2589case $ac_cv_build in 2590*-*-*) ;; 2591*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2592echo "$as_me: error: invalid value of canonical build" >&2;} 2593 { (exit 1); exit 1; }; };; 2594esac 2595build=$ac_cv_build 2596ac_save_IFS=$IFS; IFS='-' 2597set x $ac_cv_build 2598shift 2599build_cpu=$1 2600build_vendor=$2 2601shift; shift 2602# Remember, the first character of IFS is used to create $*, 2603# except with old shells: 2604build_os=$* 2605IFS=$ac_save_IFS 2606case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2607 2608 2609{ echo "$as_me:$LINENO: checking host system type" >&5 2610echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2611if test "${ac_cv_host+set}" = set; then 2612 echo $ECHO_N "(cached) $ECHO_C" >&6 2613else 2614 if test "x$host_alias" = x; then 2615 ac_cv_host=$ac_cv_build 2616else 2617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2618 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2619echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2620 { (exit 1); exit 1; }; } 2621fi 2622 2623fi 2624{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2625echo "${ECHO_T}$ac_cv_host" >&6; } 2626case $ac_cv_host in 2627*-*-*) ;; 2628*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2629echo "$as_me: error: invalid value of canonical host" >&2;} 2630 { (exit 1); exit 1; }; };; 2631esac 2632host=$ac_cv_host 2633ac_save_IFS=$IFS; IFS='-' 2634set x $ac_cv_host 2635shift 2636host_cpu=$1 2637host_vendor=$2 2638shift; shift 2639# Remember, the first character of IFS is used to create $*, 2640# except with old shells: 2641host_os=$* 2642IFS=$ac_save_IFS 2643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2644 2645 2646DEPDIR="${am__leading_dot}deps" 2647 2648ac_config_commands="$ac_config_commands depfiles" 2649 2650 2651am_make=${MAKE-make} 2652cat > confinc << 'END' 2653am__doit: 2654 @echo done 2655.PHONY: am__doit 2656END 2657# If we don't find an include directive, just comment out the code. 2658{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2659echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2660am__include="#" 2661am__quote= 2662_am_result=none 2663# First try GNU make style include. 2664echo "include confinc" > confmf 2665# We grep out `Entering directory' and `Leaving directory' 2666# messages which can occur if `w' ends up in MAKEFLAGS. 2667# In particular we don't look at `^make:' because GNU make might 2668# be invoked under some other name (usually "gmake"), in which 2669# case it prints its new name instead of `make'. 2670if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2671 am__include=include 2672 am__quote= 2673 _am_result=GNU 2674fi 2675# Now try BSD make style include. 2676if test "$am__include" = "#"; then 2677 echo '.include "confinc"' > confmf 2678 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2679 am__include=.include 2680 am__quote="\"" 2681 _am_result=BSD 2682 fi 2683fi 2684 2685 2686{ echo "$as_me:$LINENO: result: $_am_result" >&5 2687echo "${ECHO_T}$_am_result" >&6; } 2688rm -f confinc confmf 2689 2690# Check whether --enable-dependency-tracking was given. 2691if test "${enable_dependency_tracking+set}" = set; then 2692 enableval=$enable_dependency_tracking; 2693fi 2694 2695if test "x$enable_dependency_tracking" != xno; then 2696 am_depcomp="$ac_aux_dir/depcomp" 2697 AMDEPBACKSLASH='\' 2698fi 2699 if test "x$enable_dependency_tracking" != xno; then 2700 AMDEP_TRUE= 2701 AMDEP_FALSE='#' 2702else 2703 AMDEP_TRUE='#' 2704 AMDEP_FALSE= 2705fi 2706 2707 2708ac_ext=c 2709ac_cpp='$CPP $CPPFLAGS' 2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2712ac_compiler_gnu=$ac_cv_c_compiler_gnu 2713if test -n "$ac_tool_prefix"; then 2714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2715set dummy ${ac_tool_prefix}gcc; ac_word=$2 2716{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2718if test "${ac_cv_prog_CC+set}" = set; then 2719 echo $ECHO_N "(cached) $ECHO_C" >&6 2720else 2721 if test -n "$CC"; then 2722 ac_cv_prog_CC="$CC" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2731 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741CC=$ac_cv_prog_CC 2742if test -n "$CC"; then 2743 { echo "$as_me:$LINENO: result: $CC" >&5 2744echo "${ECHO_T}$CC" >&6; } 2745else 2746 { echo "$as_me:$LINENO: result: no" >&5 2747echo "${ECHO_T}no" >&6; } 2748fi 2749 2750 2751fi 2752if test -z "$ac_cv_prog_CC"; then 2753 ac_ct_CC=$CC 2754 # Extract the first word of "gcc", so it can be a program name with args. 2755set dummy gcc; ac_word=$2 2756{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2758if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2759 echo $ECHO_N "(cached) $ECHO_C" >&6 2760else 2761 if test -n "$ac_ct_CC"; then 2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2771 ac_cv_prog_ac_ct_CC="gcc" 2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781ac_ct_CC=$ac_cv_prog_ac_ct_CC 2782if test -n "$ac_ct_CC"; then 2783 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2784echo "${ECHO_T}$ac_ct_CC" >&6; } 2785else 2786 { echo "$as_me:$LINENO: result: no" >&5 2787echo "${ECHO_T}no" >&6; } 2788fi 2789 2790 if test "x$ac_ct_CC" = x; then 2791 CC="" 2792 else 2793 case $cross_compiling:$ac_tool_warned in 2794yes:) 2795{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2796whose name does not start with the host triplet. If you think this 2797configuration is useful to you, please write to autoconf@gnu.org." >&5 2798echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2799whose name does not start with the host triplet. If you think this 2800configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2801ac_tool_warned=yes ;; 2802esac 2803 CC=$ac_ct_CC 2804 fi 2805else 2806 CC="$ac_cv_prog_CC" 2807fi 2808 2809if test -z "$CC"; then 2810 if test -n "$ac_tool_prefix"; then 2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2812set dummy ${ac_tool_prefix}cc; ac_word=$2 2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2815if test "${ac_cv_prog_CC+set}" = set; then 2816 echo $ECHO_N "(cached) $ECHO_C" >&6 2817else 2818 if test -n "$CC"; then 2819 ac_cv_prog_CC="$CC" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2828 ac_cv_prog_CC="${ac_tool_prefix}cc" 2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838CC=$ac_cv_prog_CC 2839if test -n "$CC"; then 2840 { echo "$as_me:$LINENO: result: $CC" >&5 2841echo "${ECHO_T}$CC" >&6; } 2842else 2843 { echo "$as_me:$LINENO: result: no" >&5 2844echo "${ECHO_T}no" >&6; } 2845fi 2846 2847 2848 fi 2849fi 2850if test -z "$CC"; then 2851 # Extract the first word of "cc", so it can be a program name with args. 2852set dummy cc; ac_word=$2 2853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2855if test "${ac_cv_prog_CC+set}" = set; then 2856 echo $ECHO_N "(cached) $ECHO_C" >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861 ac_prog_rejected=no 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2870 ac_prog_rejected=yes 2871 continue 2872 fi 2873 ac_cv_prog_CC="cc" 2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878done 2879IFS=$as_save_IFS 2880 2881if test $ac_prog_rejected = yes; then 2882 # We found a bogon in the path, so make sure we never use it. 2883 set dummy $ac_cv_prog_CC 2884 shift 2885 if test $# != 0; then 2886 # We chose a different compiler from the bogus one. 2887 # However, it has the same basename, so the bogon will be chosen 2888 # first if we set CC to just the basename; use the full file name. 2889 shift 2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2891 fi 2892fi 2893fi 2894fi 2895CC=$ac_cv_prog_CC 2896if test -n "$CC"; then 2897 { echo "$as_me:$LINENO: result: $CC" >&5 2898echo "${ECHO_T}$CC" >&6; } 2899else 2900 { echo "$as_me:$LINENO: result: no" >&5 2901echo "${ECHO_T}no" >&6; } 2902fi 2903 2904 2905fi 2906if test -z "$CC"; then 2907 if test -n "$ac_tool_prefix"; then 2908 for ac_prog in cl.exe 2909 do 2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2912{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2914if test "${ac_cv_prog_CC+set}" = set; then 2915 echo $ECHO_N "(cached) $ECHO_C" >&6 2916else 2917 if test -n "$CC"; then 2918 ac_cv_prog_CC="$CC" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 test -z "$as_dir" && as_dir=. 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937CC=$ac_cv_prog_CC 2938if test -n "$CC"; then 2939 { echo "$as_me:$LINENO: result: $CC" >&5 2940echo "${ECHO_T}$CC" >&6; } 2941else 2942 { echo "$as_me:$LINENO: result: no" >&5 2943echo "${ECHO_T}no" >&6; } 2944fi 2945 2946 2947 test -n "$CC" && break 2948 done 2949fi 2950if test -z "$CC"; then 2951 ac_ct_CC=$CC 2952 for ac_prog in cl.exe 2953do 2954 # Extract the first word of "$ac_prog", so it can be a program name with args. 2955set dummy $ac_prog; ac_word=$2 2956{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2958if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2959 echo $ECHO_N "(cached) $ECHO_C" >&6 2960else 2961 if test -n "$ac_ct_CC"; then 2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2963else 2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2971 ac_cv_prog_ac_ct_CC="$ac_prog" 2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975done 2976done 2977IFS=$as_save_IFS 2978 2979fi 2980fi 2981ac_ct_CC=$ac_cv_prog_ac_ct_CC 2982if test -n "$ac_ct_CC"; then 2983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2984echo "${ECHO_T}$ac_ct_CC" >&6; } 2985else 2986 { echo "$as_me:$LINENO: result: no" >&5 2987echo "${ECHO_T}no" >&6; } 2988fi 2989 2990 2991 test -n "$ac_ct_CC" && break 2992done 2993 2994 if test "x$ac_ct_CC" = x; then 2995 CC="" 2996 else 2997 case $cross_compiling:$ac_tool_warned in 2998yes:) 2999{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3000whose name does not start with the host triplet. If you think this 3001configuration is useful to you, please write to autoconf@gnu.org." >&5 3002echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3003whose name does not start with the host triplet. If you think this 3004configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3005ac_tool_warned=yes ;; 3006esac 3007 CC=$ac_ct_CC 3008 fi 3009fi 3010 3011fi 3012 3013 3014test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3015See \`config.log' for more details." >&5 3016echo "$as_me: error: no acceptable C compiler found in \$PATH 3017See \`config.log' for more details." >&2;} 3018 { (exit 1); exit 1; }; } 3019 3020# Provide some information about the compiler. 3021echo "$as_me:$LINENO: checking for C compiler version" >&5 3022ac_compiler=`set X $ac_compile; echo $2` 3023{ (ac_try="$ac_compiler --version >&5" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3029 (eval "$ac_compiler --version >&5") 2>&5 3030 ac_status=$? 3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3032 (exit $ac_status); } 3033{ (ac_try="$ac_compiler -v >&5" 3034case "(($ac_try" in 3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3036 *) ac_try_echo=$ac_try;; 3037esac 3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3039 (eval "$ac_compiler -v >&5") 2>&5 3040 ac_status=$? 3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 (exit $ac_status); } 3043{ (ac_try="$ac_compiler -V >&5" 3044case "(($ac_try" in 3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3046 *) ac_try_echo=$ac_try;; 3047esac 3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3049 (eval "$ac_compiler -V >&5") 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } 3053 3054cat >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 3069ac_clean_files_save=$ac_clean_files 3070ac_clean_files="$ac_clean_files a.out a.exe b.out" 3071# Try to create an executable without -o first, disregard a.out. 3072# It will help us diagnose broken compilers, and finding out an intuition 3073# of exeext. 3074{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3075echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3076ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3077# 3078# List of possible output files, starting from the most likely. 3079# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3080# only as a last resort. b.out is created by i960 compilers. 3081ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3082# 3083# The IRIX 6 linker writes into existing files which may not be 3084# executable, retaining their permissions. Remove them first so a 3085# subsequent execution test works. 3086ac_rmfiles= 3087for ac_file in $ac_files 3088do 3089 case $ac_file in 3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3091 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3092 esac 3093done 3094rm -f $ac_rmfiles 3095 3096if { (ac_try="$ac_link_default" 3097case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3102 (eval "$ac_link_default") 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; then 3106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3107# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3108# in a Makefile. We should not override ac_cv_exeext if it was cached, 3109# so that the user can short-circuit this test for compilers unknown to 3110# Autoconf. 3111for ac_file in $ac_files '' 3112do 3113 test -f "$ac_file" || continue 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3116 ;; 3117 [ab].out ) 3118 # We found the default executable, but exeext='' is most 3119 # certainly right. 3120 break;; 3121 *.* ) 3122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3123 then :; else 3124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3125 fi 3126 # We set ac_cv_exeext here because the later test for it is not 3127 # safe: cross compilers may not add the suffix if given an `-o' 3128 # argument, so we may need to know it at that point already. 3129 # Even if this section looks crufty: it has the advantage of 3130 # actually working. 3131 break;; 3132 * ) 3133 break;; 3134 esac 3135done 3136test "$ac_cv_exeext" = no && ac_cv_exeext= 3137 3138else 3139 ac_file='' 3140fi 3141 3142{ echo "$as_me:$LINENO: result: $ac_file" >&5 3143echo "${ECHO_T}$ac_file" >&6; } 3144if test -z "$ac_file"; then 3145 echo "$as_me: failed program was:" >&5 3146sed 's/^/| /' conftest.$ac_ext >&5 3147 3148{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3149See \`config.log' for more details." >&5 3150echo "$as_me: error: C compiler cannot create executables 3151See \`config.log' for more details." >&2;} 3152 { (exit 77); exit 77; }; } 3153fi 3154 3155ac_exeext=$ac_cv_exeext 3156 3157# Check that the compiler produces executables we can run. If not, either 3158# the compiler is broken, or we cross compile. 3159{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3160echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3161# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3162# If not cross compiling, check that we can run a simple program. 3163if test "$cross_compiling" != yes; then 3164 if { ac_try='./$ac_file' 3165 { (case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3170 (eval "$ac_try") 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; }; then 3174 cross_compiling=no 3175 else 3176 if test "$cross_compiling" = maybe; then 3177 cross_compiling=yes 3178 else 3179 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3180If you meant to cross compile, use \`--host'. 3181See \`config.log' for more details." >&5 3182echo "$as_me: error: cannot run C compiled programs. 3183If you meant to cross compile, use \`--host'. 3184See \`config.log' for more details." >&2;} 3185 { (exit 1); exit 1; }; } 3186 fi 3187 fi 3188fi 3189{ echo "$as_me:$LINENO: result: yes" >&5 3190echo "${ECHO_T}yes" >&6; } 3191 3192rm -f a.out a.exe conftest$ac_cv_exeext b.out 3193ac_clean_files=$ac_clean_files_save 3194# Check that the compiler produces executables we can run. If not, either 3195# the compiler is broken, or we cross compile. 3196{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3197echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3198{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3199echo "${ECHO_T}$cross_compiling" >&6; } 3200 3201{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3202echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3203if { (ac_try="$ac_link" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3209 (eval "$ac_link") 2>&5 3210 ac_status=$? 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); }; then 3213 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3214# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3215# work properly (i.e., refer to `conftest.exe'), while it won't with 3216# `rm'. 3217for ac_file in conftest.exe conftest conftest.*; do 3218 test -f "$ac_file" || continue 3219 case $ac_file in 3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3222 break;; 3223 * ) break;; 3224 esac 3225done 3226else 3227 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3228See \`config.log' for more details." >&5 3229echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3230See \`config.log' for more details." >&2;} 3231 { (exit 1); exit 1; }; } 3232fi 3233 3234rm -f conftest$ac_cv_exeext 3235{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3236echo "${ECHO_T}$ac_cv_exeext" >&6; } 3237 3238rm -f conftest.$ac_ext 3239EXEEXT=$ac_cv_exeext 3240ac_exeext=$EXEEXT 3241{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3242echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3243if test "${ac_cv_objext+set}" = set; then 3244 echo $ECHO_N "(cached) $ECHO_C" >&6 3245else 3246 cat >conftest.$ac_ext <<_ACEOF 3247/* confdefs.h. */ 3248_ACEOF 3249cat confdefs.h >>conftest.$ac_ext 3250cat >>conftest.$ac_ext <<_ACEOF 3251/* end confdefs.h. */ 3252 3253int 3254main () 3255{ 3256 3257 ; 3258 return 0; 3259} 3260_ACEOF 3261rm -f conftest.o conftest.obj 3262if { (ac_try="$ac_compile" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3268 (eval "$ac_compile") 2>&5 3269 ac_status=$? 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); }; then 3272 for ac_file in conftest.o conftest.obj conftest.*; do 3273 test -f "$ac_file" || continue; 3274 case $ac_file in 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3277 break;; 3278 esac 3279done 3280else 3281 echo "$as_me: failed program was:" >&5 3282sed 's/^/| /' conftest.$ac_ext >&5 3283 3284{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3285See \`config.log' for more details." >&5 3286echo "$as_me: error: cannot compute suffix of object files: cannot compile 3287See \`config.log' for more details." >&2;} 3288 { (exit 1); exit 1; }; } 3289fi 3290 3291rm -f conftest.$ac_cv_objext conftest.$ac_ext 3292fi 3293{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3294echo "${ECHO_T}$ac_cv_objext" >&6; } 3295OBJEXT=$ac_cv_objext 3296ac_objext=$OBJEXT 3297{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3299if test "${ac_cv_c_compiler_gnu+set}" = set; then 3300 echo $ECHO_N "(cached) $ECHO_C" >&6 3301else 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312#ifndef __GNUC__ 3313 choke me 3314#endif 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.$ac_objext 3321if { (ac_try="$ac_compile" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3327 (eval "$ac_compile") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } && { 3334 test -z "$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 } && test -s conftest.$ac_objext; then 3337 ac_compiler_gnu=yes 3338else 3339 echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 ac_compiler_gnu=no 3343fi 3344 3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346ac_cv_c_compiler_gnu=$ac_compiler_gnu 3347 3348fi 3349{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3350echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3351GCC=`test $ac_compiler_gnu = yes && echo yes` 3352ac_test_CFLAGS=${CFLAGS+set} 3353ac_save_CFLAGS=$CFLAGS 3354{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3355echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3356if test "${ac_cv_prog_cc_g+set}" = set; then 3357 echo $ECHO_N "(cached) $ECHO_C" >&6 3358else 3359 ac_save_c_werror_flag=$ac_c_werror_flag 3360 ac_c_werror_flag=yes 3361 ac_cv_prog_cc_g=no 3362 CFLAGS="-g" 3363 cat >conftest.$ac_ext <<_ACEOF 3364/* confdefs.h. */ 3365_ACEOF 3366cat confdefs.h >>conftest.$ac_ext 3367cat >>conftest.$ac_ext <<_ACEOF 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378rm -f conftest.$ac_objext 3379if { (ac_try="$ac_compile" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3385 (eval "$ac_compile") 2>conftest.er1 3386 ac_status=$? 3387 grep -v '^ *+' conftest.er1 >conftest.err 3388 rm -f conftest.er1 3389 cat conftest.err >&5 3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3391 (exit $ac_status); } && { 3392 test -z "$ac_c_werror_flag" || 3393 test ! -s conftest.err 3394 } && test -s conftest.$ac_objext; then 3395 ac_cv_prog_cc_g=yes 3396else 3397 echo "$as_me: failed program was:" >&5 3398sed 's/^/| /' conftest.$ac_ext >&5 3399 3400 CFLAGS="" 3401 cat >conftest.$ac_ext <<_ACEOF 3402/* confdefs.h. */ 3403_ACEOF 3404cat confdefs.h >>conftest.$ac_ext 3405cat >>conftest.$ac_ext <<_ACEOF 3406/* end confdefs.h. */ 3407 3408int 3409main () 3410{ 3411 3412 ; 3413 return 0; 3414} 3415_ACEOF 3416rm -f conftest.$ac_objext 3417if { (ac_try="$ac_compile" 3418case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3423 (eval "$ac_compile") 2>conftest.er1 3424 ac_status=$? 3425 grep -v '^ *+' conftest.er1 >conftest.err 3426 rm -f conftest.er1 3427 cat conftest.err >&5 3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3429 (exit $ac_status); } && { 3430 test -z "$ac_c_werror_flag" || 3431 test ! -s conftest.err 3432 } && test -s conftest.$ac_objext; then 3433 : 3434else 3435 echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 ac_c_werror_flag=$ac_save_c_werror_flag 3439 CFLAGS="-g" 3440 cat >conftest.$ac_ext <<_ACEOF 3441/* confdefs.h. */ 3442_ACEOF 3443cat confdefs.h >>conftest.$ac_ext 3444cat >>conftest.$ac_ext <<_ACEOF 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455rm -f conftest.$ac_objext 3456if { (ac_try="$ac_compile" 3457case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3462 (eval "$ac_compile") 2>conftest.er1 3463 ac_status=$? 3464 grep -v '^ *+' conftest.er1 >conftest.err 3465 rm -f conftest.er1 3466 cat conftest.err >&5 3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3468 (exit $ac_status); } && { 3469 test -z "$ac_c_werror_flag" || 3470 test ! -s conftest.err 3471 } && test -s conftest.$ac_objext; then 3472 ac_cv_prog_cc_g=yes 3473else 3474 echo "$as_me: failed program was:" >&5 3475sed 's/^/| /' conftest.$ac_ext >&5 3476 3477 3478fi 3479 3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3481fi 3482 3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3484fi 3485 3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3487 ac_c_werror_flag=$ac_save_c_werror_flag 3488fi 3489{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3491if test "$ac_test_CFLAGS" = set; then 3492 CFLAGS=$ac_save_CFLAGS 3493elif test $ac_cv_prog_cc_g = yes; then 3494 if test "$GCC" = yes; then 3495 CFLAGS="-g -O2" 3496 else 3497 CFLAGS="-g" 3498 fi 3499else 3500 if test "$GCC" = yes; then 3501 CFLAGS="-O2" 3502 else 3503 CFLAGS= 3504 fi 3505fi 3506{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3507echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3508if test "${ac_cv_prog_cc_c89+set}" = set; then 3509 echo $ECHO_N "(cached) $ECHO_C" >&6 3510else 3511 ac_cv_prog_cc_c89=no 3512ac_save_CC=$CC 3513cat >conftest.$ac_ext <<_ACEOF 3514/* confdefs.h. */ 3515_ACEOF 3516cat confdefs.h >>conftest.$ac_ext 3517cat >>conftest.$ac_ext <<_ACEOF 3518/* end confdefs.h. */ 3519#include <stdarg.h> 3520#include <stdio.h> 3521#include <sys/types.h> 3522#include <sys/stat.h> 3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3524struct buf { int x; }; 3525FILE * (*rcsopen) (struct buf *, struct stat *, int); 3526static char *e (p, i) 3527 char **p; 3528 int i; 3529{ 3530 return p[i]; 3531} 3532static char *f (char * (*g) (char **, int), char **p, ...) 3533{ 3534 char *s; 3535 va_list v; 3536 va_start (v,p); 3537 s = g (p, va_arg (v,int)); 3538 va_end (v); 3539 return s; 3540} 3541 3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3543 function prototypes and stuff, but not '\xHH' hex character constants. 3544 These don't provoke an error unfortunately, instead are silently treated 3545 as 'x'. The following induces an error, until -std is added to get 3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3547 array size at least. It's necessary to write '\x00'==0 to get something 3548 that's true only with -std. */ 3549int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3550 3551/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3552 inside strings and character constants. */ 3553#define FOO(x) 'x' 3554int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3555 3556int test (int i, double x); 3557struct s1 {int (*f) (int a);}; 3558struct s2 {int (*f) (double a);}; 3559int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3560int argc; 3561char **argv; 3562int 3563main () 3564{ 3565return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3566 ; 3567 return 0; 3568} 3569_ACEOF 3570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3572do 3573 CC="$ac_save_CC $ac_arg" 3574 rm -f conftest.$ac_objext 3575if { (ac_try="$ac_compile" 3576case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579esac 3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3581 (eval "$ac_compile") 2>conftest.er1 3582 ac_status=$? 3583 grep -v '^ *+' conftest.er1 >conftest.err 3584 rm -f conftest.er1 3585 cat conftest.err >&5 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); } && { 3588 test -z "$ac_c_werror_flag" || 3589 test ! -s conftest.err 3590 } && test -s conftest.$ac_objext; then 3591 ac_cv_prog_cc_c89=$ac_arg 3592else 3593 echo "$as_me: failed program was:" >&5 3594sed 's/^/| /' conftest.$ac_ext >&5 3595 3596 3597fi 3598 3599rm -f core conftest.err conftest.$ac_objext 3600 test "x$ac_cv_prog_cc_c89" != "xno" && break 3601done 3602rm -f conftest.$ac_ext 3603CC=$ac_save_CC 3604 3605fi 3606# AC_CACHE_VAL 3607case "x$ac_cv_prog_cc_c89" in 3608 x) 3609 { echo "$as_me:$LINENO: result: none needed" >&5 3610echo "${ECHO_T}none needed" >&6; } ;; 3611 xno) 3612 { echo "$as_me:$LINENO: result: unsupported" >&5 3613echo "${ECHO_T}unsupported" >&6; } ;; 3614 *) 3615 CC="$CC $ac_cv_prog_cc_c89" 3616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3617echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3618esac 3619 3620 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626 3627depcc="$CC" am_compiler_list= 3628 3629{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3630echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3631if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3632 echo $ECHO_N "(cached) $ECHO_C" >&6 3633else 3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3635 # We make a subdir and do the tests there. Otherwise we can end up 3636 # making bogus files that we don't know about and never remove. For 3637 # instance it was reported that on HP-UX the gcc test will end up 3638 # making a dummy file named `D' -- because `-MD' means `put the output 3639 # in D'. 3640 mkdir conftest.dir 3641 # Copy depcomp to subdir because otherwise we won't find it if we're 3642 # using a relative directory. 3643 cp "$am_depcomp" conftest.dir 3644 cd conftest.dir 3645 # We will build objects and dependencies in a subdirectory because 3646 # it helps to detect inapplicable dependency modes. For instance 3647 # both Tru64's cc and ICC support -MD to output dependencies as a 3648 # side effect of compilation, but ICC will put the dependencies in 3649 # the current directory while Tru64 will put them in the object 3650 # directory. 3651 mkdir sub 3652 3653 am_cv_CC_dependencies_compiler_type=none 3654 if test "$am_compiler_list" = ""; then 3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3656 fi 3657 for depmode in $am_compiler_list; do 3658 # Setup a source with many dependencies, because some compilers 3659 # like to wrap large dependency lists on column 80 (with \), and 3660 # we should not choose a depcomp mode which is confused by this. 3661 # 3662 # We need to recreate these files for each test, as the compiler may 3663 # overwrite some of them when testing with obscure command lines. 3664 # This happens at least with the AIX C compiler. 3665 : > sub/conftest.c 3666 for i in 1 2 3 4 5 6; do 3667 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3669 # Solaris 8's {/usr,}/bin/sh. 3670 touch sub/conftst$i.h 3671 done 3672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3673 3674 case $depmode in 3675 nosideeffect) 3676 # after this tag, mechanisms are not by side-effect, so they'll 3677 # only be used when explicitly requested 3678 if test "x$enable_dependency_tracking" = xyes; then 3679 continue 3680 else 3681 break 3682 fi 3683 ;; 3684 none) break ;; 3685 esac 3686 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3687 # mode. It turns out that the SunPro C++ compiler does not properly 3688 # handle `-M -o', and we need to detect this. 3689 if depmode=$depmode \ 3690 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3692 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3693 >/dev/null 2>conftest.err && 3694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3698 # icc doesn't choke on unknown options, it will just issue warnings 3699 # or remarks (even with -Werror). So we grep stderr for any message 3700 # that says an option was ignored or not supported. 3701 # When given -MP, icc 7.0 and 7.1 complain thusly: 3702 # icc: Command line warning: ignoring option '-M'; no argument required 3703 # The diagnosis changed in icc 8.0: 3704 # icc: Command line remark: option '-MP' not supported 3705 if (grep 'ignoring option' conftest.err || 3706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3707 am_cv_CC_dependencies_compiler_type=$depmode 3708 break 3709 fi 3710 fi 3711 done 3712 3713 cd .. 3714 rm -rf conftest.dir 3715else 3716 am_cv_CC_dependencies_compiler_type=none 3717fi 3718 3719fi 3720{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3721echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3722CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3723 3724 if 3725 test "x$enable_dependency_tracking" != xno \ 3726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3727 am__fastdepCC_TRUE= 3728 am__fastdepCC_FALSE='#' 3729else 3730 am__fastdepCC_TRUE='#' 3731 am__fastdepCC_FALSE= 3732fi 3733 3734 3735{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3736echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3737if test "${lt_cv_path_SED+set}" = set; then 3738 echo $ECHO_N "(cached) $ECHO_C" >&6 3739else 3740 # Loop through the user's path and test for sed and gsed. 3741# Then use that list of sed's as ones to test for truncation. 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for lt_ac_prog in sed gsed; do 3748 for ac_exec_ext in '' $ac_executable_extensions; do 3749 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3750 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3751 fi 3752 done 3753 done 3754done 3755lt_ac_max=0 3756lt_ac_count=0 3757# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3758# along with /bin/sed that truncates output. 3759for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3760 test ! -f $lt_ac_sed && continue 3761 cat /dev/null > conftest.in 3762 lt_ac_count=0 3763 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3764 # Check for GNU sed and select it if it is found. 3765 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3766 lt_cv_path_SED=$lt_ac_sed 3767 break 3768 fi 3769 while true; do 3770 cat conftest.in conftest.in >conftest.tmp 3771 mv conftest.tmp conftest.in 3772 cp conftest.in conftest.nl 3773 echo >>conftest.nl 3774 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3775 cmp -s conftest.out conftest.nl || break 3776 # 10000 chars as input seems more than enough 3777 test $lt_ac_count -gt 10 && break 3778 lt_ac_count=`expr $lt_ac_count + 1` 3779 if test $lt_ac_count -gt $lt_ac_max; then 3780 lt_ac_max=$lt_ac_count 3781 lt_cv_path_SED=$lt_ac_sed 3782 fi 3783 done 3784done 3785 3786fi 3787 3788SED=$lt_cv_path_SED 3789{ echo "$as_me:$LINENO: result: $SED" >&5 3790echo "${ECHO_T}$SED" >&6; } 3791 3792{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3793echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3794if test "${ac_cv_path_GREP+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796else 3797 # Extract the first word of "grep ggrep" to use in msg output 3798if test -z "$GREP"; then 3799set dummy grep ggrep; ac_prog_name=$2 3800if test "${ac_cv_path_GREP+set}" = set; then 3801 echo $ECHO_N "(cached) $ECHO_C" >&6 3802else 3803 ac_path_GREP_found=false 3804# Loop through the user's path and test for each of PROGNAME-LIST 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_prog in grep ggrep; do 3811 for ac_exec_ext in '' $ac_executable_extensions; do 3812 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3813 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3814 # Check for GNU ac_path_GREP and select it if it is found. 3815 # Check for GNU $ac_path_GREP 3816case `"$ac_path_GREP" --version 2>&1` in 3817*GNU*) 3818 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3819*) 3820 ac_count=0 3821 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3822 while : 3823 do 3824 cat "conftest.in" "conftest.in" >"conftest.tmp" 3825 mv "conftest.tmp" "conftest.in" 3826 cp "conftest.in" "conftest.nl" 3827 echo 'GREP' >> "conftest.nl" 3828 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3830 ac_count=`expr $ac_count + 1` 3831 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3832 # Best one so far, save it but keep looking for a better one 3833 ac_cv_path_GREP="$ac_path_GREP" 3834 ac_path_GREP_max=$ac_count 3835 fi 3836 # 10*(2^10) chars as input seems more than enough 3837 test $ac_count -gt 10 && break 3838 done 3839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3840esac 3841 3842 3843 $ac_path_GREP_found && break 3 3844 done 3845done 3846 3847done 3848IFS=$as_save_IFS 3849 3850 3851fi 3852 3853GREP="$ac_cv_path_GREP" 3854if test -z "$GREP"; then 3855 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3856echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3857 { (exit 1); exit 1; }; } 3858fi 3859 3860else 3861 ac_cv_path_GREP=$GREP 3862fi 3863 3864 3865fi 3866{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3867echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3868 GREP="$ac_cv_path_GREP" 3869 3870 3871{ echo "$as_me:$LINENO: checking for egrep" >&5 3872echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3873if test "${ac_cv_path_EGREP+set}" = set; then 3874 echo $ECHO_N "(cached) $ECHO_C" >&6 3875else 3876 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3877 then ac_cv_path_EGREP="$GREP -E" 3878 else 3879 # Extract the first word of "egrep" to use in msg output 3880if test -z "$EGREP"; then 3881set dummy egrep; ac_prog_name=$2 3882if test "${ac_cv_path_EGREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_path_EGREP_found=false 3886# Loop through the user's path and test for each of PROGNAME-LIST 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_prog in egrep; do 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3895 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3896 # Check for GNU ac_path_EGREP and select it if it is found. 3897 # Check for GNU $ac_path_EGREP 3898case `"$ac_path_EGREP" --version 2>&1` in 3899*GNU*) 3900 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3901*) 3902 ac_count=0 3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3904 while : 3905 do 3906 cat "conftest.in" "conftest.in" >"conftest.tmp" 3907 mv "conftest.tmp" "conftest.in" 3908 cp "conftest.in" "conftest.nl" 3909 echo 'EGREP' >> "conftest.nl" 3910 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3912 ac_count=`expr $ac_count + 1` 3913 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3914 # Best one so far, save it but keep looking for a better one 3915 ac_cv_path_EGREP="$ac_path_EGREP" 3916 ac_path_EGREP_max=$ac_count 3917 fi 3918 # 10*(2^10) chars as input seems more than enough 3919 test $ac_count -gt 10 && break 3920 done 3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3922esac 3923 3924 3925 $ac_path_EGREP_found && break 3 3926 done 3927done 3928 3929done 3930IFS=$as_save_IFS 3931 3932 3933fi 3934 3935EGREP="$ac_cv_path_EGREP" 3936if test -z "$EGREP"; then 3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3939 { (exit 1); exit 1; }; } 3940fi 3941 3942else 3943 ac_cv_path_EGREP=$EGREP 3944fi 3945 3946 3947 fi 3948fi 3949{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3950echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3951 EGREP="$ac_cv_path_EGREP" 3952 3953 3954 3955# Check whether --with-gnu-ld was given. 3956if test "${with_gnu_ld+set}" = set; then 3957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3958else 3959 with_gnu_ld=no 3960fi 3961 3962ac_prog=ld 3963if test "$GCC" = yes; then 3964 # Check if gcc -print-prog-name=ld gives a path. 3965 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3966echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3967 case $host in 3968 *-*-mingw*) 3969 # gcc leaves a trailing carriage return which upsets mingw 3970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3971 *) 3972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3973 esac 3974 case $ac_prog in 3975 # Accept absolute paths. 3976 [\\/]* | ?:[\\/]*) 3977 re_direlt='/[^/][^/]*/\.\./' 3978 # Canonicalize the pathname of ld 3979 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3980 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3981 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3982 done 3983 test -z "$LD" && LD="$ac_prog" 3984 ;; 3985 "") 3986 # If it fails, then pretend we aren't using GCC. 3987 ac_prog=ld 3988 ;; 3989 *) 3990 # If it is relative, then search for the first ld in PATH. 3991 with_gnu_ld=unknown 3992 ;; 3993 esac 3994elif test "$with_gnu_ld" = yes; then 3995 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3996echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3997else 3998 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3999echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4000fi 4001if test "${lt_cv_path_LD+set}" = set; then 4002 echo $ECHO_N "(cached) $ECHO_C" >&6 4003else 4004 if test -z "$LD"; then 4005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4006 for ac_dir in $PATH; do 4007 IFS="$lt_save_ifs" 4008 test -z "$ac_dir" && ac_dir=. 4009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4010 lt_cv_path_LD="$ac_dir/$ac_prog" 4011 # Check to see if the program is GNU ld. I'd rather use --version, 4012 # but apparently some variants of GNU ld only accept -v. 4013 # Break only if it was the GNU/non-GNU ld that we prefer. 4014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4015 *GNU* | *'with BFD'*) 4016 test "$with_gnu_ld" != no && break 4017 ;; 4018 *) 4019 test "$with_gnu_ld" != yes && break 4020 ;; 4021 esac 4022 fi 4023 done 4024 IFS="$lt_save_ifs" 4025else 4026 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4027fi 4028fi 4029 4030LD="$lt_cv_path_LD" 4031if test -n "$LD"; then 4032 { echo "$as_me:$LINENO: result: $LD" >&5 4033echo "${ECHO_T}$LD" >&6; } 4034else 4035 { echo "$as_me:$LINENO: result: no" >&5 4036echo "${ECHO_T}no" >&6; } 4037fi 4038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4040 { (exit 1); exit 1; }; } 4041{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4043if test "${lt_cv_prog_gnu_ld+set}" = set; then 4044 echo $ECHO_N "(cached) $ECHO_C" >&6 4045else 4046 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4047case `$LD -v 2>&1 </dev/null` in 4048*GNU* | *'with BFD'*) 4049 lt_cv_prog_gnu_ld=yes 4050 ;; 4051*) 4052 lt_cv_prog_gnu_ld=no 4053 ;; 4054esac 4055fi 4056{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4057echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4058with_gnu_ld=$lt_cv_prog_gnu_ld 4059 4060 4061{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4062echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4063if test "${lt_cv_ld_reload_flag+set}" = set; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065else 4066 lt_cv_ld_reload_flag='-r' 4067fi 4068{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4069echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4070reload_flag=$lt_cv_ld_reload_flag 4071case $reload_flag in 4072"" | " "*) ;; 4073*) reload_flag=" $reload_flag" ;; 4074esac 4075reload_cmds='$LD$reload_flag -o $output$reload_objs' 4076case $host_os in 4077 darwin*) 4078 if test "$GCC" = yes; then 4079 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4080 else 4081 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4082 fi 4083 ;; 4084esac 4085 4086{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4087echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4088if test "${lt_cv_path_NM+set}" = set; then 4089 echo $ECHO_N "(cached) $ECHO_C" >&6 4090else 4091 if test -n "$NM"; then 4092 # Let the user override the test. 4093 lt_cv_path_NM="$NM" 4094else 4095 lt_nm_to_check="${ac_tool_prefix}nm" 4096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4097 lt_nm_to_check="$lt_nm_to_check nm" 4098 fi 4099 for lt_tmp_nm in $lt_nm_to_check; do 4100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4101 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4102 IFS="$lt_save_ifs" 4103 test -z "$ac_dir" && ac_dir=. 4104 tmp_nm="$ac_dir/$lt_tmp_nm" 4105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4106 # Check to see if the nm accepts a BSD-compat flag. 4107 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4108 # nm: unknown option "B" ignored 4109 # Tru64's nm complains that /dev/null is an invalid object file 4110 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4111 */dev/null* | *'Invalid file or object type'*) 4112 lt_cv_path_NM="$tmp_nm -B" 4113 break 4114 ;; 4115 *) 4116 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4117 */dev/null*) 4118 lt_cv_path_NM="$tmp_nm -p" 4119 break 4120 ;; 4121 *) 4122 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4123 continue # so that we can try to find one that supports BSD flags 4124 ;; 4125 esac 4126 ;; 4127 esac 4128 fi 4129 done 4130 IFS="$lt_save_ifs" 4131 done 4132 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4133fi 4134fi 4135{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4136echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4137NM="$lt_cv_path_NM" 4138 4139{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4140echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4141LN_S=$as_ln_s 4142if test "$LN_S" = "ln -s"; then 4143 { echo "$as_me:$LINENO: result: yes" >&5 4144echo "${ECHO_T}yes" >&6; } 4145else 4146 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4147echo "${ECHO_T}no, using $LN_S" >&6; } 4148fi 4149 4150{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4151echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4152if test "${lt_cv_deplibs_check_method+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 lt_cv_file_magic_cmd='$MAGIC_CMD' 4156lt_cv_file_magic_test_file= 4157lt_cv_deplibs_check_method='unknown' 4158# Need to set the preceding variable on all platforms that support 4159# interlibrary dependencies. 4160# 'none' -- dependencies not supported. 4161# `unknown' -- same as none, but documents that we really don't know. 4162# 'pass_all' -- all dependencies passed with no checks. 4163# 'test_compile' -- check by making test program. 4164# 'file_magic [[regex]]' -- check by looking for files in library path 4165# which responds to the $file_magic_cmd with a given extended regex. 4166# If you have `file' or equivalent on your system and you're not sure 4167# whether `pass_all' will *always* work, you probably want this one. 4168 4169case $host_os in 4170aix4* | aix5*) 4171 lt_cv_deplibs_check_method=pass_all 4172 ;; 4173 4174beos*) 4175 lt_cv_deplibs_check_method=pass_all 4176 ;; 4177 4178bsdi[45]*) 4179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4180 lt_cv_file_magic_cmd='/usr/bin/file -L' 4181 lt_cv_file_magic_test_file=/shlib/libc.so 4182 ;; 4183 4184cygwin*) 4185 # func_win32_libid is a shell function defined in ltmain.sh 4186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4187 lt_cv_file_magic_cmd='func_win32_libid' 4188 ;; 4189 4190mingw* | pw32*) 4191 # Base MSYS/MinGW do not provide the 'file' command needed by 4192 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4193 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4194 lt_cv_file_magic_cmd='$OBJDUMP -f' 4195 ;; 4196 4197darwin* | rhapsody*) 4198 lt_cv_deplibs_check_method=pass_all 4199 ;; 4200 4201freebsd* | dragonfly*) 4202 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4203 case $host_cpu in 4204 i*86 ) 4205 # Not sure whether the presence of OpenBSD here was a mistake. 4206 # Let's accept both of them until this is cleared up. 4207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4208 lt_cv_file_magic_cmd=/usr/bin/file 4209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4210 ;; 4211 esac 4212 else 4213 lt_cv_deplibs_check_method=pass_all 4214 fi 4215 ;; 4216 4217gnu*) 4218 lt_cv_deplibs_check_method=pass_all 4219 ;; 4220 4221hpux10.20* | hpux11*) 4222 lt_cv_file_magic_cmd=/usr/bin/file 4223 case $host_cpu in 4224 ia64*) 4225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4227 ;; 4228 hppa*64*) 4229 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]' 4230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4231 ;; 4232 *) 4233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4234 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4235 ;; 4236 esac 4237 ;; 4238 4239interix3*) 4240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4242 ;; 4243 4244irix5* | irix6* | nonstopux*) 4245 case $LD in 4246 *-32|*"-32 ") libmagic=32-bit;; 4247 *-n32|*"-n32 ") libmagic=N32;; 4248 *-64|*"-64 ") libmagic=64-bit;; 4249 *) libmagic=never-match;; 4250 esac 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 4254# This must be Linux ELF. 4255linux* | k*bsd*-gnu) 4256 lt_cv_deplibs_check_method=pass_all 4257 ;; 4258 4259netbsd* | netbsdelf*-gnu) 4260 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4262 else 4263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4264 fi 4265 ;; 4266 4267newos6*) 4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4269 lt_cv_file_magic_cmd=/usr/bin/file 4270 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4271 ;; 4272 4273nto-qnx*) 4274 lt_cv_deplibs_check_method=unknown 4275 ;; 4276 4277openbsd*) 4278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4280 else 4281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4282 fi 4283 ;; 4284 4285osf3* | osf4* | osf5*) 4286 lt_cv_deplibs_check_method=pass_all 4287 ;; 4288 4289solaris*) 4290 lt_cv_deplibs_check_method=pass_all 4291 ;; 4292 4293sysv4 | sysv4.3*) 4294 case $host_vendor in 4295 motorola) 4296 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]' 4297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4298 ;; 4299 ncr) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 sequent) 4303 lt_cv_file_magic_cmd='/bin/file' 4304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4305 ;; 4306 sni) 4307 lt_cv_file_magic_cmd='/bin/file' 4308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4309 lt_cv_file_magic_test_file=/lib/libc.so 4310 ;; 4311 siemens) 4312 lt_cv_deplibs_check_method=pass_all 4313 ;; 4314 pc) 4315 lt_cv_deplibs_check_method=pass_all 4316 ;; 4317 esac 4318 ;; 4319 4320sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4321 lt_cv_deplibs_check_method=pass_all 4322 ;; 4323esac 4324 4325fi 4326{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4327echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4328file_magic_cmd=$lt_cv_file_magic_cmd 4329deplibs_check_method=$lt_cv_deplibs_check_method 4330test -z "$deplibs_check_method" && deplibs_check_method=unknown 4331 4332 4333 4334 4335# If no C compiler was specified, use CC. 4336LTCC=${LTCC-"$CC"} 4337 4338# If no C compiler flags were specified, use CFLAGS. 4339LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4340 4341# Allow CC to be a program name with arguments. 4342compiler=$CC 4343 4344 4345# Check whether --enable-libtool-lock was given. 4346if test "${enable_libtool_lock+set}" = set; then 4347 enableval=$enable_libtool_lock; 4348fi 4349 4350test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4351 4352# Some flags need to be propagated to the compiler or linker for good 4353# libtool support. 4354case $host in 4355ia64-*-hpux*) 4356 # Find out which ABI we are using. 4357 echo 'int i;' > conftest.$ac_ext 4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4359 (eval $ac_compile) 2>&5 4360 ac_status=$? 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); }; then 4363 case `/usr/bin/file conftest.$ac_objext` in 4364 *ELF-32*) 4365 HPUX_IA64_MODE="32" 4366 ;; 4367 *ELF-64*) 4368 HPUX_IA64_MODE="64" 4369 ;; 4370 esac 4371 fi 4372 rm -rf conftest* 4373 ;; 4374*-*-irix6*) 4375 # Find out which ABI we are using. 4376 echo '#line 4376 "configure"' > conftest.$ac_ext 4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4378 (eval $ac_compile) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; then 4382 if test "$lt_cv_prog_gnu_ld" = yes; then 4383 case `/usr/bin/file conftest.$ac_objext` in 4384 *32-bit*) 4385 LD="${LD-ld} -melf32bsmip" 4386 ;; 4387 *N32*) 4388 LD="${LD-ld} -melf32bmipn32" 4389 ;; 4390 *64-bit*) 4391 LD="${LD-ld} -melf64bmip" 4392 ;; 4393 esac 4394 else 4395 case `/usr/bin/file conftest.$ac_objext` in 4396 *32-bit*) 4397 LD="${LD-ld} -32" 4398 ;; 4399 *N32*) 4400 LD="${LD-ld} -n32" 4401 ;; 4402 *64-bit*) 4403 LD="${LD-ld} -64" 4404 ;; 4405 esac 4406 fi 4407 fi 4408 rm -rf conftest* 4409 ;; 4410 4411x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4412 # Find out which ABI we are using. 4413 echo 'int i;' > conftest.$ac_ext 4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4415 (eval $ac_compile) 2>&5 4416 ac_status=$? 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); }; then 4419 case `/usr/bin/file conftest.o` in 4420 *32-bit*) 4421 case $host in 4422 x86_64-*linux*) 4423 LD="${LD-ld} -m elf_i386" 4424 ;; 4425 ppc64-*linux*|powerpc64-*linux*) 4426 LD="${LD-ld} -m elf32ppclinux" 4427 ;; 4428 s390x-*linux*) 4429 LD="${LD-ld} -m elf_s390" 4430 ;; 4431 sparc64-*linux*) 4432 LD="${LD-ld} -m elf32_sparc" 4433 ;; 4434 esac 4435 ;; 4436 *64-bit*) 4437 case $host in 4438 x86_64-*linux*) 4439 LD="${LD-ld} -m elf_x86_64" 4440 ;; 4441 ppc*-*linux*|powerpc*-*linux*) 4442 LD="${LD-ld} -m elf64ppc" 4443 ;; 4444 s390*-*linux*) 4445 LD="${LD-ld} -m elf64_s390" 4446 ;; 4447 sparc*-*linux*) 4448 LD="${LD-ld} -m elf64_sparc" 4449 ;; 4450 esac 4451 ;; 4452 esac 4453 fi 4454 rm -rf conftest* 4455 ;; 4456 4457*-*-sco3.2v5*) 4458 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4459 SAVE_CFLAGS="$CFLAGS" 4460 CFLAGS="$CFLAGS -belf" 4461 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4462echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4463if test "${lt_cv_cc_needs_belf+set}" = set; then 4464 echo $ECHO_N "(cached) $ECHO_C" >&6 4465else 4466 ac_ext=c 4467ac_cpp='$CPP $CPPFLAGS' 4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4470ac_compiler_gnu=$ac_cv_c_compiler_gnu 4471 4472 cat >conftest.$ac_ext <<_ACEOF 4473/* confdefs.h. */ 4474_ACEOF 4475cat confdefs.h >>conftest.$ac_ext 4476cat >>conftest.$ac_ext <<_ACEOF 4477/* end confdefs.h. */ 4478 4479int 4480main () 4481{ 4482 4483 ; 4484 return 0; 4485} 4486_ACEOF 4487rm -f conftest.$ac_objext conftest$ac_exeext 4488if { (ac_try="$ac_link" 4489case "(($ac_try" in 4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4491 *) ac_try_echo=$ac_try;; 4492esac 4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4494 (eval "$ac_link") 2>conftest.er1 4495 ac_status=$? 4496 grep -v '^ *+' conftest.er1 >conftest.err 4497 rm -f conftest.er1 4498 cat conftest.err >&5 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); } && { 4501 test -z "$ac_c_werror_flag" || 4502 test ! -s conftest.err 4503 } && test -s conftest$ac_exeext && 4504 $as_test_x conftest$ac_exeext; then 4505 lt_cv_cc_needs_belf=yes 4506else 4507 echo "$as_me: failed program was:" >&5 4508sed 's/^/| /' conftest.$ac_ext >&5 4509 4510 lt_cv_cc_needs_belf=no 4511fi 4512 4513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4514 conftest$ac_exeext conftest.$ac_ext 4515 ac_ext=c 4516ac_cpp='$CPP $CPPFLAGS' 4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4519ac_compiler_gnu=$ac_cv_c_compiler_gnu 4520 4521fi 4522{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4523echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4524 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4525 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4526 CFLAGS="$SAVE_CFLAGS" 4527 fi 4528 ;; 4529sparc*-*solaris*) 4530 # Find out which ABI we are using. 4531 echo 'int i;' > conftest.$ac_ext 4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4533 (eval $ac_compile) 2>&5 4534 ac_status=$? 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4536 (exit $ac_status); }; then 4537 case `/usr/bin/file conftest.o` in 4538 *64-bit*) 4539 case $lt_cv_prog_gnu_ld in 4540 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4541 *) LD="${LD-ld} -64" ;; 4542 esac 4543 ;; 4544 esac 4545 fi 4546 rm -rf conftest* 4547 ;; 4548 4549 4550esac 4551 4552need_locks="$enable_libtool_lock" 4553 4554 4555ac_ext=c 4556ac_cpp='$CPP $CPPFLAGS' 4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4559ac_compiler_gnu=$ac_cv_c_compiler_gnu 4560{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4561echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4562# On Suns, sometimes $CPP names a directory. 4563if test -n "$CPP" && test -d "$CPP"; then 4564 CPP= 4565fi 4566if test -z "$CPP"; then 4567 if test "${ac_cv_prog_CPP+set}" = set; then 4568 echo $ECHO_N "(cached) $ECHO_C" >&6 4569else 4570 # Double quotes because CPP needs to be expanded 4571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4572 do 4573 ac_preproc_ok=false 4574for ac_c_preproc_warn_flag in '' yes 4575do 4576 # Use a header file that comes with gcc, so configuring glibc 4577 # with a fresh cross-compiler works. 4578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4579 # <limits.h> exists even on freestanding compilers. 4580 # On the NeXT, cc -E runs the code through the compiler's parser, 4581 # not just through cpp. "Syntax error" is here to catch this case. 4582 cat >conftest.$ac_ext <<_ACEOF 4583/* confdefs.h. */ 4584_ACEOF 4585cat confdefs.h >>conftest.$ac_ext 4586cat >>conftest.$ac_ext <<_ACEOF 4587/* end confdefs.h. */ 4588#ifdef __STDC__ 4589# include <limits.h> 4590#else 4591# include <assert.h> 4592#endif 4593 Syntax error 4594_ACEOF 4595if { (ac_try="$ac_cpp conftest.$ac_ext" 4596case "(($ac_try" in 4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *) ac_try_echo=$ac_try;; 4599esac 4600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4602 ac_status=$? 4603 grep -v '^ *+' conftest.er1 >conftest.err 4604 rm -f conftest.er1 4605 cat conftest.err >&5 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } >/dev/null && { 4608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4609 test ! -s conftest.err 4610 }; then 4611 : 4612else 4613 echo "$as_me: failed program was:" >&5 4614sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 # Broken: fails on valid input. 4617continue 4618fi 4619 4620rm -f conftest.err conftest.$ac_ext 4621 4622 # OK, works on sane cases. Now check whether nonexistent headers 4623 # can be detected and how. 4624 cat >conftest.$ac_ext <<_ACEOF 4625/* confdefs.h. */ 4626_ACEOF 4627cat confdefs.h >>conftest.$ac_ext 4628cat >>conftest.$ac_ext <<_ACEOF 4629/* end confdefs.h. */ 4630#include <ac_nonexistent.h> 4631_ACEOF 4632if { (ac_try="$ac_cpp conftest.$ac_ext" 4633case "(($ac_try" in 4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4635 *) ac_try_echo=$ac_try;; 4636esac 4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4639 ac_status=$? 4640 grep -v '^ *+' conftest.er1 >conftest.err 4641 rm -f conftest.er1 4642 cat conftest.err >&5 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); } >/dev/null && { 4645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4646 test ! -s conftest.err 4647 }; then 4648 # Broken: success on invalid input. 4649continue 4650else 4651 echo "$as_me: failed program was:" >&5 4652sed 's/^/| /' conftest.$ac_ext >&5 4653 4654 # Passes both tests. 4655ac_preproc_ok=: 4656break 4657fi 4658 4659rm -f conftest.err conftest.$ac_ext 4660 4661done 4662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4663rm -f conftest.err conftest.$ac_ext 4664if $ac_preproc_ok; then 4665 break 4666fi 4667 4668 done 4669 ac_cv_prog_CPP=$CPP 4670 4671fi 4672 CPP=$ac_cv_prog_CPP 4673else 4674 ac_cv_prog_CPP=$CPP 4675fi 4676{ echo "$as_me:$LINENO: result: $CPP" >&5 4677echo "${ECHO_T}$CPP" >&6; } 4678ac_preproc_ok=false 4679for ac_c_preproc_warn_flag in '' yes 4680do 4681 # Use a header file that comes with gcc, so configuring glibc 4682 # with a fresh cross-compiler works. 4683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4684 # <limits.h> exists even on freestanding compilers. 4685 # On the NeXT, cc -E runs the code through the compiler's parser, 4686 # not just through cpp. "Syntax error" is here to catch this case. 4687 cat >conftest.$ac_ext <<_ACEOF 4688/* confdefs.h. */ 4689_ACEOF 4690cat confdefs.h >>conftest.$ac_ext 4691cat >>conftest.$ac_ext <<_ACEOF 4692/* end confdefs.h. */ 4693#ifdef __STDC__ 4694# include <limits.h> 4695#else 4696# include <assert.h> 4697#endif 4698 Syntax error 4699_ACEOF 4700if { (ac_try="$ac_cpp conftest.$ac_ext" 4701case "(($ac_try" in 4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4703 *) ac_try_echo=$ac_try;; 4704esac 4705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4707 ac_status=$? 4708 grep -v '^ *+' conftest.er1 >conftest.err 4709 rm -f conftest.er1 4710 cat conftest.err >&5 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); } >/dev/null && { 4713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4714 test ! -s conftest.err 4715 }; then 4716 : 4717else 4718 echo "$as_me: failed program was:" >&5 4719sed 's/^/| /' conftest.$ac_ext >&5 4720 4721 # Broken: fails on valid input. 4722continue 4723fi 4724 4725rm -f conftest.err conftest.$ac_ext 4726 4727 # OK, works on sane cases. Now check whether nonexistent headers 4728 # can be detected and how. 4729 cat >conftest.$ac_ext <<_ACEOF 4730/* confdefs.h. */ 4731_ACEOF 4732cat confdefs.h >>conftest.$ac_ext 4733cat >>conftest.$ac_ext <<_ACEOF 4734/* end confdefs.h. */ 4735#include <ac_nonexistent.h> 4736_ACEOF 4737if { (ac_try="$ac_cpp conftest.$ac_ext" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } >/dev/null && { 4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 }; then 4753 # Broken: success on invalid input. 4754continue 4755else 4756 echo "$as_me: failed program was:" >&5 4757sed 's/^/| /' conftest.$ac_ext >&5 4758 4759 # Passes both tests. 4760ac_preproc_ok=: 4761break 4762fi 4763 4764rm -f conftest.err conftest.$ac_ext 4765 4766done 4767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4768rm -f conftest.err conftest.$ac_ext 4769if $ac_preproc_ok; then 4770 : 4771else 4772 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4773See \`config.log' for more details." >&5 4774echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4775See \`config.log' for more details." >&2;} 4776 { (exit 1); exit 1; }; } 4777fi 4778 4779ac_ext=c 4780ac_cpp='$CPP $CPPFLAGS' 4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4783ac_compiler_gnu=$ac_cv_c_compiler_gnu 4784 4785 4786{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4787echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4788if test "${ac_cv_header_stdc+set}" = set; then 4789 echo $ECHO_N "(cached) $ECHO_C" >&6 4790else 4791 cat >conftest.$ac_ext <<_ACEOF 4792/* confdefs.h. */ 4793_ACEOF 4794cat confdefs.h >>conftest.$ac_ext 4795cat >>conftest.$ac_ext <<_ACEOF 4796/* end confdefs.h. */ 4797#include <stdlib.h> 4798#include <stdarg.h> 4799#include <string.h> 4800#include <float.h> 4801 4802int 4803main () 4804{ 4805 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext 4811if { (ac_try="$ac_compile" 4812case "(($ac_try" in 4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4814 *) ac_try_echo=$ac_try;; 4815esac 4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4817 (eval "$ac_compile") 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } && { 4824 test -z "$ac_c_werror_flag" || 4825 test ! -s conftest.err 4826 } && test -s conftest.$ac_objext; then 4827 ac_cv_header_stdc=yes 4828else 4829 echo "$as_me: failed program was:" >&5 4830sed 's/^/| /' conftest.$ac_ext >&5 4831 4832 ac_cv_header_stdc=no 4833fi 4834 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836 4837if test $ac_cv_header_stdc = yes; then 4838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4839 cat >conftest.$ac_ext <<_ACEOF 4840/* confdefs.h. */ 4841_ACEOF 4842cat confdefs.h >>conftest.$ac_ext 4843cat >>conftest.$ac_ext <<_ACEOF 4844/* end confdefs.h. */ 4845#include <string.h> 4846 4847_ACEOF 4848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4849 $EGREP "memchr" >/dev/null 2>&1; then 4850 : 4851else 4852 ac_cv_header_stdc=no 4853fi 4854rm -f conftest* 4855 4856fi 4857 4858if test $ac_cv_header_stdc = yes; then 4859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866#include <stdlib.h> 4867 4868_ACEOF 4869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4870 $EGREP "free" >/dev/null 2>&1; then 4871 : 4872else 4873 ac_cv_header_stdc=no 4874fi 4875rm -f conftest* 4876 4877fi 4878 4879if test $ac_cv_header_stdc = yes; then 4880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4881 if test "$cross_compiling" = yes; then 4882 : 4883else 4884 cat >conftest.$ac_ext <<_ACEOF 4885/* confdefs.h. */ 4886_ACEOF 4887cat confdefs.h >>conftest.$ac_ext 4888cat >>conftest.$ac_ext <<_ACEOF 4889/* end confdefs.h. */ 4890#include <ctype.h> 4891#include <stdlib.h> 4892#if ((' ' & 0x0FF) == 0x020) 4893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4895#else 4896# define ISLOWER(c) \ 4897 (('a' <= (c) && (c) <= 'i') \ 4898 || ('j' <= (c) && (c) <= 'r') \ 4899 || ('s' <= (c) && (c) <= 'z')) 4900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4901#endif 4902 4903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4904int 4905main () 4906{ 4907 int i; 4908 for (i = 0; i < 256; i++) 4909 if (XOR (islower (i), ISLOWER (i)) 4910 || toupper (i) != TOUPPER (i)) 4911 return 2; 4912 return 0; 4913} 4914_ACEOF 4915rm -f conftest$ac_exeext 4916if { (ac_try="$ac_link" 4917case "(($ac_try" in 4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4919 *) ac_try_echo=$ac_try;; 4920esac 4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4922 (eval "$ac_link") 2>&5 4923 ac_status=$? 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4926 { (case "(($ac_try" in 4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4928 *) ac_try_echo=$ac_try;; 4929esac 4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4931 (eval "$ac_try") 2>&5 4932 ac_status=$? 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); }; }; then 4935 : 4936else 4937 echo "$as_me: program exited with status $ac_status" >&5 4938echo "$as_me: failed program was:" >&5 4939sed 's/^/| /' conftest.$ac_ext >&5 4940 4941( exit $ac_status ) 4942ac_cv_header_stdc=no 4943fi 4944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4945fi 4946 4947 4948fi 4949fi 4950{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4951echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4952if test $ac_cv_header_stdc = yes; then 4953 4954cat >>confdefs.h <<\_ACEOF 4955#define STDC_HEADERS 1 4956_ACEOF 4957 4958fi 4959 4960# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4971 inttypes.h stdint.h unistd.h 4972do 4973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4974{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4977 echo $ECHO_N "(cached) $ECHO_C" >&6 4978else 4979 cat >conftest.$ac_ext <<_ACEOF 4980/* confdefs.h. */ 4981_ACEOF 4982cat confdefs.h >>conftest.$ac_ext 4983cat >>conftest.$ac_ext <<_ACEOF 4984/* end confdefs.h. */ 4985$ac_includes_default 4986 4987#include <$ac_header> 4988_ACEOF 4989rm -f conftest.$ac_objext 4990if { (ac_try="$ac_compile" 4991case "(($ac_try" in 4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4993 *) ac_try_echo=$ac_try;; 4994esac 4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4996 (eval "$ac_compile") 2>conftest.er1 4997 ac_status=$? 4998 grep -v '^ *+' conftest.er1 >conftest.err 4999 rm -f conftest.er1 5000 cat conftest.err >&5 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && { 5003 test -z "$ac_c_werror_flag" || 5004 test ! -s conftest.err 5005 } && test -s conftest.$ac_objext; then 5006 eval "$as_ac_Header=yes" 5007else 5008 echo "$as_me: failed program was:" >&5 5009sed 's/^/| /' conftest.$ac_ext >&5 5010 5011 eval "$as_ac_Header=no" 5012fi 5013 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015fi 5016ac_res=`eval echo '${'$as_ac_Header'}'` 5017 { echo "$as_me:$LINENO: result: $ac_res" >&5 5018echo "${ECHO_T}$ac_res" >&6; } 5019if test `eval echo '${'$as_ac_Header'}'` = yes; then 5020 cat >>confdefs.h <<_ACEOF 5021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5022_ACEOF 5023 5024fi 5025 5026done 5027 5028 5029 5030for ac_header in dlfcn.h 5031do 5032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5037 echo $ECHO_N "(cached) $ECHO_C" >&6 5038fi 5039ac_res=`eval echo '${'$as_ac_Header'}'` 5040 { echo "$as_me:$LINENO: result: $ac_res" >&5 5041echo "${ECHO_T}$ac_res" >&6; } 5042else 5043 # Is the header compilable? 5044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5046cat >conftest.$ac_ext <<_ACEOF 5047/* confdefs.h. */ 5048_ACEOF 5049cat confdefs.h >>conftest.$ac_ext 5050cat >>conftest.$ac_ext <<_ACEOF 5051/* end confdefs.h. */ 5052$ac_includes_default 5053#include <$ac_header> 5054_ACEOF 5055rm -f conftest.$ac_objext 5056if { (ac_try="$ac_compile" 5057case "(($ac_try" in 5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5059 *) ac_try_echo=$ac_try;; 5060esac 5061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5062 (eval "$ac_compile") 2>conftest.er1 5063 ac_status=$? 5064 grep -v '^ *+' conftest.er1 >conftest.err 5065 rm -f conftest.er1 5066 cat conftest.err >&5 5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5068 (exit $ac_status); } && { 5069 test -z "$ac_c_werror_flag" || 5070 test ! -s conftest.err 5071 } && test -s conftest.$ac_objext; then 5072 ac_header_compiler=yes 5073else 5074 echo "$as_me: failed program was:" >&5 5075sed 's/^/| /' conftest.$ac_ext >&5 5076 5077 ac_header_compiler=no 5078fi 5079 5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5082echo "${ECHO_T}$ac_header_compiler" >&6; } 5083 5084# Is the header present? 5085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5087cat >conftest.$ac_ext <<_ACEOF 5088/* confdefs.h. */ 5089_ACEOF 5090cat confdefs.h >>conftest.$ac_ext 5091cat >>conftest.$ac_ext <<_ACEOF 5092/* end confdefs.h. */ 5093#include <$ac_header> 5094_ACEOF 5095if { (ac_try="$ac_cpp conftest.$ac_ext" 5096case "(($ac_try" in 5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5098 *) ac_try_echo=$ac_try;; 5099esac 5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5102 ac_status=$? 5103 grep -v '^ *+' conftest.er1 >conftest.err 5104 rm -f conftest.er1 5105 cat conftest.err >&5 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); } >/dev/null && { 5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5109 test ! -s conftest.err 5110 }; then 5111 ac_header_preproc=yes 5112else 5113 echo "$as_me: failed program was:" >&5 5114sed 's/^/| /' conftest.$ac_ext >&5 5115 5116 ac_header_preproc=no 5117fi 5118 5119rm -f conftest.err conftest.$ac_ext 5120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5121echo "${ECHO_T}$ac_header_preproc" >&6; } 5122 5123# So? What about this header? 5124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5125 yes:no: ) 5126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5130 ac_header_preproc=yes 5131 ;; 5132 no:yes:* ) 5133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5145 ( cat <<\_ASBOX 5146## ---------------------------------------- ## 5147## Report this to daih@users.sourceforge.jp ## 5148## ---------------------------------------- ## 5149_ASBOX 5150 ) | sed "s/^/$as_me: WARNING: /" >&2 5151 ;; 5152esac 5153{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5156 echo $ECHO_N "(cached) $ECHO_C" >&6 5157else 5158 eval "$as_ac_Header=\$ac_header_preproc" 5159fi 5160ac_res=`eval echo '${'$as_ac_Header'}'` 5161 { echo "$as_me:$LINENO: result: $ac_res" >&5 5162echo "${ECHO_T}$ac_res" >&6; } 5163 5164fi 5165if test `eval echo '${'$as_ac_Header'}'` = yes; then 5166 cat >>confdefs.h <<_ACEOF 5167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5168_ACEOF 5169 5170fi 5171 5172done 5173 5174ac_ext=cpp 5175ac_cpp='$CXXCPP $CPPFLAGS' 5176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5179if test -z "$CXX"; then 5180 if test -n "$CCC"; then 5181 CXX=$CCC 5182 else 5183 if test -n "$ac_tool_prefix"; then 5184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5185 do 5186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5187set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5188{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5190if test "${ac_cv_prog_CXX+set}" = set; then 5191 echo $ECHO_N "(cached) $ECHO_C" >&6 5192else 5193 if test -n "$CXX"; then 5194 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5195else 5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197for as_dir in $PATH 5198do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207done 5208done 5209IFS=$as_save_IFS 5210 5211fi 5212fi 5213CXX=$ac_cv_prog_CXX 5214if test -n "$CXX"; then 5215 { echo "$as_me:$LINENO: result: $CXX" >&5 5216echo "${ECHO_T}$CXX" >&6; } 5217else 5218 { echo "$as_me:$LINENO: result: no" >&5 5219echo "${ECHO_T}no" >&6; } 5220fi 5221 5222 5223 test -n "$CXX" && break 5224 done 5225fi 5226if test -z "$CXX"; then 5227 ac_ct_CXX=$CXX 5228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5229do 5230 # Extract the first word of "$ac_prog", so it can be a program name with args. 5231set dummy $ac_prog; ac_word=$2 5232{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5234if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5235 echo $ECHO_N "(cached) $ECHO_C" >&6 5236else 5237 if test -n "$ac_ct_CXX"; then 5238 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5239else 5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5241for as_dir in $PATH 5242do 5243 IFS=$as_save_IFS 5244 test -z "$as_dir" && as_dir=. 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5247 ac_cv_prog_ac_ct_CXX="$ac_prog" 5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5249 break 2 5250 fi 5251done 5252done 5253IFS=$as_save_IFS 5254 5255fi 5256fi 5257ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5258if test -n "$ac_ct_CXX"; then 5259 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5260echo "${ECHO_T}$ac_ct_CXX" >&6; } 5261else 5262 { echo "$as_me:$LINENO: result: no" >&5 5263echo "${ECHO_T}no" >&6; } 5264fi 5265 5266 5267 test -n "$ac_ct_CXX" && break 5268done 5269 5270 if test "x$ac_ct_CXX" = x; then 5271 CXX="g++" 5272 else 5273 case $cross_compiling:$ac_tool_warned in 5274yes:) 5275{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5276whose name does not start with the host triplet. If you think this 5277configuration is useful to you, please write to autoconf@gnu.org." >&5 5278echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5279whose name does not start with the host triplet. If you think this 5280configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5281ac_tool_warned=yes ;; 5282esac 5283 CXX=$ac_ct_CXX 5284 fi 5285fi 5286 5287 fi 5288fi 5289# Provide some information about the compiler. 5290echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5291ac_compiler=`set X $ac_compile; echo $2` 5292{ (ac_try="$ac_compiler --version >&5" 5293case "(($ac_try" in 5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5295 *) ac_try_echo=$ac_try;; 5296esac 5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5298 (eval "$ac_compiler --version >&5") 2>&5 5299 ac_status=$? 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); } 5302{ (ac_try="$ac_compiler -v >&5" 5303case "(($ac_try" in 5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5305 *) ac_try_echo=$ac_try;; 5306esac 5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5308 (eval "$ac_compiler -v >&5") 2>&5 5309 ac_status=$? 5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5311 (exit $ac_status); } 5312{ (ac_try="$ac_compiler -V >&5" 5313case "(($ac_try" in 5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5315 *) ac_try_echo=$ac_try;; 5316esac 5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5318 (eval "$ac_compiler -V >&5") 2>&5 5319 ac_status=$? 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); } 5322 5323{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5324echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5325if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5326 echo $ECHO_N "(cached) $ECHO_C" >&6 5327else 5328 cat >conftest.$ac_ext <<_ACEOF 5329/* confdefs.h. */ 5330_ACEOF 5331cat confdefs.h >>conftest.$ac_ext 5332cat >>conftest.$ac_ext <<_ACEOF 5333/* end confdefs.h. */ 5334 5335int 5336main () 5337{ 5338#ifndef __GNUC__ 5339 choke me 5340#endif 5341 5342 ; 5343 return 0; 5344} 5345_ACEOF 5346rm -f conftest.$ac_objext 5347if { (ac_try="$ac_compile" 5348case "(($ac_try" in 5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5350 *) ac_try_echo=$ac_try;; 5351esac 5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5353 (eval "$ac_compile") 2>conftest.er1 5354 ac_status=$? 5355 grep -v '^ *+' conftest.er1 >conftest.err 5356 rm -f conftest.er1 5357 cat conftest.err >&5 5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5359 (exit $ac_status); } && { 5360 test -z "$ac_cxx_werror_flag" || 5361 test ! -s conftest.err 5362 } && test -s conftest.$ac_objext; then 5363 ac_compiler_gnu=yes 5364else 5365 echo "$as_me: failed program was:" >&5 5366sed 's/^/| /' conftest.$ac_ext >&5 5367 5368 ac_compiler_gnu=no 5369fi 5370 5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5372ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5373 5374fi 5375{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5376echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5377GXX=`test $ac_compiler_gnu = yes && echo yes` 5378ac_test_CXXFLAGS=${CXXFLAGS+set} 5379ac_save_CXXFLAGS=$CXXFLAGS 5380{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5381echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5382if test "${ac_cv_prog_cxx_g+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384else 5385 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5386 ac_cxx_werror_flag=yes 5387 ac_cv_prog_cxx_g=no 5388 CXXFLAGS="-g" 5389 cat >conftest.$ac_ext <<_ACEOF 5390/* confdefs.h. */ 5391_ACEOF 5392cat confdefs.h >>conftest.$ac_ext 5393cat >>conftest.$ac_ext <<_ACEOF 5394/* end confdefs.h. */ 5395 5396int 5397main () 5398{ 5399 5400 ; 5401 return 0; 5402} 5403_ACEOF 5404rm -f conftest.$ac_objext 5405if { (ac_try="$ac_compile" 5406case "(($ac_try" in 5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5408 *) ac_try_echo=$ac_try;; 5409esac 5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5411 (eval "$ac_compile") 2>conftest.er1 5412 ac_status=$? 5413 grep -v '^ *+' conftest.er1 >conftest.err 5414 rm -f conftest.er1 5415 cat conftest.err >&5 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } && { 5418 test -z "$ac_cxx_werror_flag" || 5419 test ! -s conftest.err 5420 } && test -s conftest.$ac_objext; then 5421 ac_cv_prog_cxx_g=yes 5422else 5423 echo "$as_me: failed program was:" >&5 5424sed 's/^/| /' conftest.$ac_ext >&5 5425 5426 CXXFLAGS="" 5427 cat >conftest.$ac_ext <<_ACEOF 5428/* confdefs.h. */ 5429_ACEOF 5430cat confdefs.h >>conftest.$ac_ext 5431cat >>conftest.$ac_ext <<_ACEOF 5432/* end confdefs.h. */ 5433 5434int 5435main () 5436{ 5437 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442rm -f conftest.$ac_objext 5443if { (ac_try="$ac_compile" 5444case "(($ac_try" in 5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5446 *) ac_try_echo=$ac_try;; 5447esac 5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5449 (eval "$ac_compile") 2>conftest.er1 5450 ac_status=$? 5451 grep -v '^ *+' conftest.er1 >conftest.err 5452 rm -f conftest.er1 5453 cat conftest.err >&5 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5455 (exit $ac_status); } && { 5456 test -z "$ac_cxx_werror_flag" || 5457 test ! -s conftest.err 5458 } && test -s conftest.$ac_objext; then 5459 : 5460else 5461 echo "$as_me: failed program was:" >&5 5462sed 's/^/| /' conftest.$ac_ext >&5 5463 5464 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5465 CXXFLAGS="-g" 5466 cat >conftest.$ac_ext <<_ACEOF 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472 5473int 5474main () 5475{ 5476 5477 ; 5478 return 0; 5479} 5480_ACEOF 5481rm -f conftest.$ac_objext 5482if { (ac_try="$ac_compile" 5483case "(($ac_try" in 5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5485 *) ac_try_echo=$ac_try;; 5486esac 5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5488 (eval "$ac_compile") 2>conftest.er1 5489 ac_status=$? 5490 grep -v '^ *+' conftest.er1 >conftest.err 5491 rm -f conftest.er1 5492 cat conftest.err >&5 5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5494 (exit $ac_status); } && { 5495 test -z "$ac_cxx_werror_flag" || 5496 test ! -s conftest.err 5497 } && test -s conftest.$ac_objext; then 5498 ac_cv_prog_cxx_g=yes 5499else 5500 echo "$as_me: failed program was:" >&5 5501sed 's/^/| /' conftest.$ac_ext >&5 5502 5503 5504fi 5505 5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5507fi 5508 5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5510fi 5511 5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5514fi 5515{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5516echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5517if test "$ac_test_CXXFLAGS" = set; then 5518 CXXFLAGS=$ac_save_CXXFLAGS 5519elif test $ac_cv_prog_cxx_g = yes; then 5520 if test "$GXX" = yes; then 5521 CXXFLAGS="-g -O2" 5522 else 5523 CXXFLAGS="-g" 5524 fi 5525else 5526 if test "$GXX" = yes; then 5527 CXXFLAGS="-O2" 5528 else 5529 CXXFLAGS= 5530 fi 5531fi 5532ac_ext=cpp 5533ac_cpp='$CXXCPP $CPPFLAGS' 5534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5537 5538depcc="$CXX" am_compiler_list= 5539 5540{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5541echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5542if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5543 echo $ECHO_N "(cached) $ECHO_C" >&6 5544else 5545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5546 # We make a subdir and do the tests there. Otherwise we can end up 5547 # making bogus files that we don't know about and never remove. For 5548 # instance it was reported that on HP-UX the gcc test will end up 5549 # making a dummy file named `D' -- because `-MD' means `put the output 5550 # in D'. 5551 mkdir conftest.dir 5552 # Copy depcomp to subdir because otherwise we won't find it if we're 5553 # using a relative directory. 5554 cp "$am_depcomp" conftest.dir 5555 cd conftest.dir 5556 # We will build objects and dependencies in a subdirectory because 5557 # it helps to detect inapplicable dependency modes. For instance 5558 # both Tru64's cc and ICC support -MD to output dependencies as a 5559 # side effect of compilation, but ICC will put the dependencies in 5560 # the current directory while Tru64 will put them in the object 5561 # directory. 5562 mkdir sub 5563 5564 am_cv_CXX_dependencies_compiler_type=none 5565 if test "$am_compiler_list" = ""; then 5566 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5567 fi 5568 for depmode in $am_compiler_list; do 5569 # Setup a source with many dependencies, because some compilers 5570 # like to wrap large dependency lists on column 80 (with \), and 5571 # we should not choose a depcomp mode which is confused by this. 5572 # 5573 # We need to recreate these files for each test, as the compiler may 5574 # overwrite some of them when testing with obscure command lines. 5575 # This happens at least with the AIX C compiler. 5576 : > sub/conftest.c 5577 for i in 1 2 3 4 5 6; do 5578 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5580 # Solaris 8's {/usr,}/bin/sh. 5581 touch sub/conftst$i.h 5582 done 5583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5584 5585 case $depmode in 5586 nosideeffect) 5587 # after this tag, mechanisms are not by side-effect, so they'll 5588 # only be used when explicitly requested 5589 if test "x$enable_dependency_tracking" = xyes; then 5590 continue 5591 else 5592 break 5593 fi 5594 ;; 5595 none) break ;; 5596 esac 5597 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5598 # mode. It turns out that the SunPro C++ compiler does not properly 5599 # handle `-M -o', and we need to detect this. 5600 if depmode=$depmode \ 5601 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5603 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5604 >/dev/null 2>conftest.err && 5605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5609 # icc doesn't choke on unknown options, it will just issue warnings 5610 # or remarks (even with -Werror). So we grep stderr for any message 5611 # that says an option was ignored or not supported. 5612 # When given -MP, icc 7.0 and 7.1 complain thusly: 5613 # icc: Command line warning: ignoring option '-M'; no argument required 5614 # The diagnosis changed in icc 8.0: 5615 # icc: Command line remark: option '-MP' not supported 5616 if (grep 'ignoring option' conftest.err || 5617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5618 am_cv_CXX_dependencies_compiler_type=$depmode 5619 break 5620 fi 5621 fi 5622 done 5623 5624 cd .. 5625 rm -rf conftest.dir 5626else 5627 am_cv_CXX_dependencies_compiler_type=none 5628fi 5629 5630fi 5631{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5632echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5633CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5634 5635 if 5636 test "x$enable_dependency_tracking" != xno \ 5637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5638 am__fastdepCXX_TRUE= 5639 am__fastdepCXX_FALSE='#' 5640else 5641 am__fastdepCXX_TRUE='#' 5642 am__fastdepCXX_FALSE= 5643fi 5644 5645 5646 5647 5648if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5649 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5650 (test "X$CXX" != "Xg++"))) ; then 5651 ac_ext=cpp 5652ac_cpp='$CXXCPP $CPPFLAGS' 5653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5656{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5657echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5658if test -z "$CXXCPP"; then 5659 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5660 echo $ECHO_N "(cached) $ECHO_C" >&6 5661else 5662 # Double quotes because CXXCPP needs to be expanded 5663 for CXXCPP in "$CXX -E" "/lib/cpp" 5664 do 5665 ac_preproc_ok=false 5666for ac_cxx_preproc_warn_flag in '' yes 5667do 5668 # Use a header file that comes with gcc, so configuring glibc 5669 # with a fresh cross-compiler works. 5670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5671 # <limits.h> exists even on freestanding compilers. 5672 # On the NeXT, cc -E runs the code through the compiler's parser, 5673 # not just through cpp. "Syntax error" is here to catch this case. 5674 cat >conftest.$ac_ext <<_ACEOF 5675/* confdefs.h. */ 5676_ACEOF 5677cat confdefs.h >>conftest.$ac_ext 5678cat >>conftest.$ac_ext <<_ACEOF 5679/* end confdefs.h. */ 5680#ifdef __STDC__ 5681# include <limits.h> 5682#else 5683# include <assert.h> 5684#endif 5685 Syntax error 5686_ACEOF 5687if { (ac_try="$ac_cpp conftest.$ac_ext" 5688case "(($ac_try" in 5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5690 *) ac_try_echo=$ac_try;; 5691esac 5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5694 ac_status=$? 5695 grep -v '^ *+' conftest.er1 >conftest.err 5696 rm -f conftest.er1 5697 cat conftest.err >&5 5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5699 (exit $ac_status); } >/dev/null && { 5700 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5701 test ! -s conftest.err 5702 }; then 5703 : 5704else 5705 echo "$as_me: failed program was:" >&5 5706sed 's/^/| /' conftest.$ac_ext >&5 5707 5708 # Broken: fails on valid input. 5709continue 5710fi 5711 5712rm -f conftest.err conftest.$ac_ext 5713 5714 # OK, works on sane cases. Now check whether nonexistent headers 5715 # can be detected and how. 5716 cat >conftest.$ac_ext <<_ACEOF 5717/* confdefs.h. */ 5718_ACEOF 5719cat confdefs.h >>conftest.$ac_ext 5720cat >>conftest.$ac_ext <<_ACEOF 5721/* end confdefs.h. */ 5722#include <ac_nonexistent.h> 5723_ACEOF 5724if { (ac_try="$ac_cpp conftest.$ac_ext" 5725case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } >/dev/null && { 5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5738 test ! -s conftest.err 5739 }; then 5740 # Broken: success on invalid input. 5741continue 5742else 5743 echo "$as_me: failed program was:" >&5 5744sed 's/^/| /' conftest.$ac_ext >&5 5745 5746 # Passes both tests. 5747ac_preproc_ok=: 5748break 5749fi 5750 5751rm -f conftest.err conftest.$ac_ext 5752 5753done 5754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5755rm -f conftest.err conftest.$ac_ext 5756if $ac_preproc_ok; then 5757 break 5758fi 5759 5760 done 5761 ac_cv_prog_CXXCPP=$CXXCPP 5762 5763fi 5764 CXXCPP=$ac_cv_prog_CXXCPP 5765else 5766 ac_cv_prog_CXXCPP=$CXXCPP 5767fi 5768{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5769echo "${ECHO_T}$CXXCPP" >&6; } 5770ac_preproc_ok=false 5771for ac_cxx_preproc_warn_flag in '' yes 5772do 5773 # Use a header file that comes with gcc, so configuring glibc 5774 # with a fresh cross-compiler works. 5775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5776 # <limits.h> exists even on freestanding compilers. 5777 # On the NeXT, cc -E runs the code through the compiler's parser, 5778 # not just through cpp. "Syntax error" is here to catch this case. 5779 cat >conftest.$ac_ext <<_ACEOF 5780/* confdefs.h. */ 5781_ACEOF 5782cat confdefs.h >>conftest.$ac_ext 5783cat >>conftest.$ac_ext <<_ACEOF 5784/* end confdefs.h. */ 5785#ifdef __STDC__ 5786# include <limits.h> 5787#else 5788# include <assert.h> 5789#endif 5790 Syntax error 5791_ACEOF 5792if { (ac_try="$ac_cpp conftest.$ac_ext" 5793case "(($ac_try" in 5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5795 *) ac_try_echo=$ac_try;; 5796esac 5797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5799 ac_status=$? 5800 grep -v '^ *+' conftest.er1 >conftest.err 5801 rm -f conftest.er1 5802 cat conftest.err >&5 5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5804 (exit $ac_status); } >/dev/null && { 5805 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5806 test ! -s conftest.err 5807 }; then 5808 : 5809else 5810 echo "$as_me: failed program was:" >&5 5811sed 's/^/| /' conftest.$ac_ext >&5 5812 5813 # Broken: fails on valid input. 5814continue 5815fi 5816 5817rm -f conftest.err conftest.$ac_ext 5818 5819 # OK, works on sane cases. Now check whether nonexistent headers 5820 # can be detected and how. 5821 cat >conftest.$ac_ext <<_ACEOF 5822/* confdefs.h. */ 5823_ACEOF 5824cat confdefs.h >>conftest.$ac_ext 5825cat >>conftest.$ac_ext <<_ACEOF 5826/* end confdefs.h. */ 5827#include <ac_nonexistent.h> 5828_ACEOF 5829if { (ac_try="$ac_cpp conftest.$ac_ext" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } >/dev/null && { 5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5843 test ! -s conftest.err 5844 }; then 5845 # Broken: success on invalid input. 5846continue 5847else 5848 echo "$as_me: failed program was:" >&5 5849sed 's/^/| /' conftest.$ac_ext >&5 5850 5851 # Passes both tests. 5852ac_preproc_ok=: 5853break 5854fi 5855 5856rm -f conftest.err conftest.$ac_ext 5857 5858done 5859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5860rm -f conftest.err conftest.$ac_ext 5861if $ac_preproc_ok; then 5862 : 5863else 5864 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5865See \`config.log' for more details." >&5 5866echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5867See \`config.log' for more details." >&2;} 5868 { (exit 1); exit 1; }; } 5869fi 5870 5871ac_ext=cpp 5872ac_cpp='$CXXCPP $CPPFLAGS' 5873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5876 5877fi 5878 5879 5880ac_ext=f 5881ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5882ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5883ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5884if test -n "$ac_tool_prefix"; then 5885 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 5886 do 5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5891if test "${ac_cv_prog_F77+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893else 5894 if test -n "$F77"; then 5895 ac_cv_prog_F77="$F77" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5904 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914F77=$ac_cv_prog_F77 5915if test -n "$F77"; then 5916 { echo "$as_me:$LINENO: result: $F77" >&5 5917echo "${ECHO_T}$F77" >&6; } 5918else 5919 { echo "$as_me:$LINENO: result: no" >&5 5920echo "${ECHO_T}no" >&6; } 5921fi 5922 5923 5924 test -n "$F77" && break 5925 done 5926fi 5927if test -z "$F77"; then 5928 ac_ct_F77=$F77 5929 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 5930do 5931 # Extract the first word of "$ac_prog", so it can be a program name with args. 5932set dummy $ac_prog; ac_word=$2 5933{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5935if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 if test -n "$ac_ct_F77"; then 5939 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5948 ac_cv_prog_ac_ct_F77="$ac_prog" 5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958ac_ct_F77=$ac_cv_prog_ac_ct_F77 5959if test -n "$ac_ct_F77"; then 5960 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5961echo "${ECHO_T}$ac_ct_F77" >&6; } 5962else 5963 { echo "$as_me:$LINENO: result: no" >&5 5964echo "${ECHO_T}no" >&6; } 5965fi 5966 5967 5968 test -n "$ac_ct_F77" && break 5969done 5970 5971 if test "x$ac_ct_F77" = x; then 5972 F77="" 5973 else 5974 case $cross_compiling:$ac_tool_warned in 5975yes:) 5976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5977whose name does not start with the host triplet. If you think this 5978configuration is useful to you, please write to autoconf@gnu.org." >&5 5979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5980whose name does not start with the host triplet. If you think this 5981configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 F77=$ac_ct_F77 5985 fi 5986fi 5987 5988 5989# Provide some information about the compiler. 5990echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5991ac_compiler=`set X $ac_compile; echo $2` 5992{ (ac_try="$ac_compiler --version >&5" 5993case "(($ac_try" in 5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5995 *) ac_try_echo=$ac_try;; 5996esac 5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5998 (eval "$ac_compiler --version >&5") 2>&5 5999 ac_status=$? 6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6001 (exit $ac_status); } 6002{ (ac_try="$ac_compiler -v >&5" 6003case "(($ac_try" in 6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6005 *) ac_try_echo=$ac_try;; 6006esac 6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6008 (eval "$ac_compiler -v >&5") 2>&5 6009 ac_status=$? 6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6011 (exit $ac_status); } 6012{ (ac_try="$ac_compiler -V >&5" 6013case "(($ac_try" in 6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6015 *) ac_try_echo=$ac_try;; 6016esac 6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6018 (eval "$ac_compiler -V >&5") 2>&5 6019 ac_status=$? 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6021 (exit $ac_status); } 6022rm -f a.out 6023 6024# If we don't use `.F' as extension, the preprocessor is not run on the 6025# input file. (Note that this only needs to work for GNU compilers.) 6026ac_save_ext=$ac_ext 6027ac_ext=F 6028{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6029echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6030if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 cat >conftest.$ac_ext <<_ACEOF 6034 program main 6035#ifndef __GNUC__ 6036 choke me 6037#endif 6038 6039 end 6040_ACEOF 6041rm -f conftest.$ac_objext 6042if { (ac_try="$ac_compile" 6043case "(($ac_try" in 6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6045 *) ac_try_echo=$ac_try;; 6046esac 6047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6048 (eval "$ac_compile") 2>conftest.er1 6049 ac_status=$? 6050 grep -v '^ *+' conftest.er1 >conftest.err 6051 rm -f conftest.er1 6052 cat conftest.err >&5 6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6054 (exit $ac_status); } && { 6055 test -z "$ac_f77_werror_flag" || 6056 test ! -s conftest.err 6057 } && test -s conftest.$ac_objext; then 6058 ac_compiler_gnu=yes 6059else 6060 echo "$as_me: failed program was:" >&5 6061sed 's/^/| /' conftest.$ac_ext >&5 6062 6063 ac_compiler_gnu=no 6064fi 6065 6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6067ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6068 6069fi 6070{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6071echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6072ac_ext=$ac_save_ext 6073ac_test_FFLAGS=${FFLAGS+set} 6074ac_save_FFLAGS=$FFLAGS 6075FFLAGS= 6076{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6077echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6078if test "${ac_cv_prog_f77_g+set}" = set; then 6079 echo $ECHO_N "(cached) $ECHO_C" >&6 6080else 6081 FFLAGS=-g 6082cat >conftest.$ac_ext <<_ACEOF 6083 program main 6084 6085 end 6086_ACEOF 6087rm -f conftest.$ac_objext 6088if { (ac_try="$ac_compile" 6089case "(($ac_try" in 6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6091 *) ac_try_echo=$ac_try;; 6092esac 6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6094 (eval "$ac_compile") 2>conftest.er1 6095 ac_status=$? 6096 grep -v '^ *+' conftest.er1 >conftest.err 6097 rm -f conftest.er1 6098 cat conftest.err >&5 6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6100 (exit $ac_status); } && { 6101 test -z "$ac_f77_werror_flag" || 6102 test ! -s conftest.err 6103 } && test -s conftest.$ac_objext; then 6104 ac_cv_prog_f77_g=yes 6105else 6106 echo "$as_me: failed program was:" >&5 6107sed 's/^/| /' conftest.$ac_ext >&5 6108 6109 ac_cv_prog_f77_g=no 6110fi 6111 6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6113 6114fi 6115{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6116echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6117if test "$ac_test_FFLAGS" = set; then 6118 FFLAGS=$ac_save_FFLAGS 6119elif test $ac_cv_prog_f77_g = yes; then 6120 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6121 FFLAGS="-g -O2" 6122 else 6123 FFLAGS="-g" 6124 fi 6125else 6126 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6127 FFLAGS="-O2" 6128 else 6129 FFLAGS= 6130 fi 6131fi 6132 6133G77=`test $ac_compiler_gnu = yes && echo yes` 6134ac_ext=c 6135ac_cpp='$CPP $CPPFLAGS' 6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6138ac_compiler_gnu=$ac_cv_c_compiler_gnu 6139 6140 6141 6142# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6143 6144# find the maximum length of command line arguments 6145{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6146echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6147if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6148 echo $ECHO_N "(cached) $ECHO_C" >&6 6149else 6150 i=0 6151 teststring="ABCD" 6152 6153 case $build_os in 6154 msdosdjgpp*) 6155 # On DJGPP, this test can blow up pretty badly due to problems in libc 6156 # (any single argument exceeding 2000 bytes causes a buffer overrun 6157 # during glob expansion). Even if it were fixed, the result of this 6158 # check would be larger than it should be. 6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6160 ;; 6161 6162 gnu*) 6163 # Under GNU Hurd, this test is not required because there is 6164 # no limit to the length of command line arguments. 6165 # Libtool will interpret -1 as no limit whatsoever 6166 lt_cv_sys_max_cmd_len=-1; 6167 ;; 6168 6169 cygwin* | mingw*) 6170 # On Win9x/ME, this test blows up -- it succeeds, but takes 6171 # about 5 minutes as the teststring grows exponentially. 6172 # Worse, since 9x/ME are not pre-emptively multitasking, 6173 # you end up with a "frozen" computer, even though with patience 6174 # the test eventually succeeds (with a max line length of 256k). 6175 # Instead, let's just punt: use the minimum linelength reported by 6176 # all of the supported platforms: 8192 (on NT/2K/XP). 6177 lt_cv_sys_max_cmd_len=8192; 6178 ;; 6179 6180 amigaos*) 6181 # On AmigaOS with pdksh, this test takes hours, literally. 6182 # So we just punt and use a minimum line length of 8192. 6183 lt_cv_sys_max_cmd_len=8192; 6184 ;; 6185 6186 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6187 # This has been around since 386BSD, at least. Likely further. 6188 if test -x /sbin/sysctl; then 6189 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6190 elif test -x /usr/sbin/sysctl; then 6191 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6192 else 6193 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6194 fi 6195 # And add a safety zone 6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6198 ;; 6199 6200 interix*) 6201 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6202 lt_cv_sys_max_cmd_len=196608 6203 ;; 6204 6205 osf*) 6206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6208 # nice to cause kernel panics so lets avoid the loop below. 6209 # First set a reasonable default. 6210 lt_cv_sys_max_cmd_len=16384 6211 # 6212 if test -x /sbin/sysconfig; then 6213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6214 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6215 esac 6216 fi 6217 ;; 6218 sco3.2v5*) 6219 lt_cv_sys_max_cmd_len=102400 6220 ;; 6221 sysv5* | sco5v6* | sysv4.2uw2*) 6222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6223 if test -n "$kargmax"; then 6224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6225 else 6226 lt_cv_sys_max_cmd_len=32768 6227 fi 6228 ;; 6229 *) 6230 # If test is not a shell built-in, we'll probably end up computing a 6231 # maximum length that is only half of the actual maximum length, but 6232 # we can't tell. 6233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6234 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6235 = "XX$teststring") >/dev/null 2>&1 && 6236 new_result=`expr "X$teststring" : ".*" 2>&1` && 6237 lt_cv_sys_max_cmd_len=$new_result && 6238 test $i != 17 # 1/2 MB should be enough 6239 do 6240 i=`expr $i + 1` 6241 teststring=$teststring$teststring 6242 done 6243 teststring= 6244 # Add a significant safety factor because C++ compilers can tack on massive 6245 # amounts of additional arguments before passing them to the linker. 6246 # It appears as though 1/2 is a usable value. 6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6248 ;; 6249 esac 6250 6251fi 6252 6253if test -n $lt_cv_sys_max_cmd_len ; then 6254 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6255echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6256else 6257 { echo "$as_me:$LINENO: result: none" >&5 6258echo "${ECHO_T}none" >&6; } 6259fi 6260 6261 6262 6263 6264# Check for command to grab the raw symbol name followed by C symbol from nm. 6265{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6266echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6267if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6268 echo $ECHO_N "(cached) $ECHO_C" >&6 6269else 6270 6271# These are sane defaults that work on at least a few old systems. 6272# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6273 6274# Character class describing NM global symbol codes. 6275symcode='[BCDEGRST]' 6276 6277# Regexp to match symbols that can be accessed directly from C. 6278sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6279 6280# Transform an extracted symbol line into a proper C declaration 6281lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6282 6283# Transform an extracted symbol line into symbol name and symbol address 6284lt_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'" 6285 6286# Define system-specific variables. 6287case $host_os in 6288aix*) 6289 symcode='[BCDT]' 6290 ;; 6291cygwin* | mingw* | pw32*) 6292 symcode='[ABCDGISTW]' 6293 ;; 6294hpux*) # Its linker distinguishes data from code symbols 6295 if test "$host_cpu" = ia64; then 6296 symcode='[ABCDEGRST]' 6297 fi 6298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6299 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'" 6300 ;; 6301linux* | k*bsd*-gnu) 6302 if test "$host_cpu" = ia64; then 6303 symcode='[ABCDGIRSTW]' 6304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6305 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'" 6306 fi 6307 ;; 6308irix* | nonstopux*) 6309 symcode='[BCDEGRST]' 6310 ;; 6311osf*) 6312 symcode='[BCDEGQRST]' 6313 ;; 6314solaris*) 6315 symcode='[BDRT]' 6316 ;; 6317sco3.2v5*) 6318 symcode='[DT]' 6319 ;; 6320sysv4.2uw2*) 6321 symcode='[DT]' 6322 ;; 6323sysv5* | sco5v6* | unixware* | OpenUNIX*) 6324 symcode='[ABDT]' 6325 ;; 6326sysv4) 6327 symcode='[DFNSTU]' 6328 ;; 6329esac 6330 6331# Handle CRLF in mingw tool chain 6332opt_cr= 6333case $build_os in 6334mingw*) 6335 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6336 ;; 6337esac 6338 6339# If we're using GNU nm, then use its standard symbol codes. 6340case `$NM -V 2>&1` in 6341*GNU* | *'with BFD'*) 6342 symcode='[ABCDGIRSTW]' ;; 6343esac 6344 6345# Try without a prefix undercore, then with it. 6346for ac_symprfx in "" "_"; do 6347 6348 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6349 symxfrm="\\1 $ac_symprfx\\2 \\2" 6350 6351 # Write the raw and C identifiers. 6352 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6353 6354 # Check to see that the pipe works correctly. 6355 pipe_works=no 6356 6357 rm -f conftest* 6358 cat > conftest.$ac_ext <<EOF 6359#ifdef __cplusplus 6360extern "C" { 6361#endif 6362char nm_test_var; 6363void nm_test_func(){} 6364#ifdef __cplusplus 6365} 6366#endif 6367int main(){nm_test_var='a';nm_test_func();return(0);} 6368EOF 6369 6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6371 (eval $ac_compile) 2>&5 6372 ac_status=$? 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); }; then 6375 # Now try to grab the symbols. 6376 nlist=conftest.nm 6377 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6379 ac_status=$? 6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 (exit $ac_status); } && test -s "$nlist"; then 6382 # Try sorting and uniquifying the output. 6383 if sort "$nlist" | uniq > "$nlist"T; then 6384 mv -f "$nlist"T "$nlist" 6385 else 6386 rm -f "$nlist"T 6387 fi 6388 6389 # Make sure that we snagged all the symbols we need. 6390 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6391 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6392 cat <<EOF > conftest.$ac_ext 6393#ifdef __cplusplus 6394extern "C" { 6395#endif 6396 6397EOF 6398 # Now generate the symbol file. 6399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6400 6401 cat <<EOF >> conftest.$ac_ext 6402#if defined (__STDC__) && __STDC__ 6403# define lt_ptr_t void * 6404#else 6405# define lt_ptr_t char * 6406# define const 6407#endif 6408 6409/* The mapping between symbol names and symbols. */ 6410const struct { 6411 const char *name; 6412 lt_ptr_t address; 6413} 6414lt_preloaded_symbols[] = 6415{ 6416EOF 6417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6418 cat <<\EOF >> conftest.$ac_ext 6419 {0, (lt_ptr_t) 0} 6420}; 6421 6422#ifdef __cplusplus 6423} 6424#endif 6425EOF 6426 # Now try linking the two files. 6427 mv conftest.$ac_objext conftstm.$ac_objext 6428 lt_save_LIBS="$LIBS" 6429 lt_save_CFLAGS="$CFLAGS" 6430 LIBS="conftstm.$ac_objext" 6431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6433 (eval $ac_link) 2>&5 6434 ac_status=$? 6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6436 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6437 pipe_works=yes 6438 fi 6439 LIBS="$lt_save_LIBS" 6440 CFLAGS="$lt_save_CFLAGS" 6441 else 6442 echo "cannot find nm_test_func in $nlist" >&5 6443 fi 6444 else 6445 echo "cannot find nm_test_var in $nlist" >&5 6446 fi 6447 else 6448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6449 fi 6450 else 6451 echo "$progname: failed program was:" >&5 6452 cat conftest.$ac_ext >&5 6453 fi 6454 rm -f conftest* conftst* 6455 6456 # Do not use the global_symbol_pipe unless it works. 6457 if test "$pipe_works" = yes; then 6458 break 6459 else 6460 lt_cv_sys_global_symbol_pipe= 6461 fi 6462done 6463 6464fi 6465 6466if test -z "$lt_cv_sys_global_symbol_pipe"; then 6467 lt_cv_sys_global_symbol_to_cdecl= 6468fi 6469if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6470 { echo "$as_me:$LINENO: result: failed" >&5 6471echo "${ECHO_T}failed" >&6; } 6472else 6473 { echo "$as_me:$LINENO: result: ok" >&5 6474echo "${ECHO_T}ok" >&6; } 6475fi 6476 6477{ echo "$as_me:$LINENO: checking for objdir" >&5 6478echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6479if test "${lt_cv_objdir+set}" = set; then 6480 echo $ECHO_N "(cached) $ECHO_C" >&6 6481else 6482 rm -f .libs 2>/dev/null 6483mkdir .libs 2>/dev/null 6484if test -d .libs; then 6485 lt_cv_objdir=.libs 6486else 6487 # MS-DOS does not allow filenames that begin with a dot. 6488 lt_cv_objdir=_libs 6489fi 6490rmdir .libs 2>/dev/null 6491fi 6492{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6493echo "${ECHO_T}$lt_cv_objdir" >&6; } 6494objdir=$lt_cv_objdir 6495 6496 6497 6498 6499 6500case $host_os in 6501aix3*) 6502 # AIX sometimes has problems with the GCC collect2 program. For some 6503 # reason, if we set the COLLECT_NAMES environment variable, the problems 6504 # vanish in a puff of smoke. 6505 if test "X${COLLECT_NAMES+set}" != Xset; then 6506 COLLECT_NAMES= 6507 export COLLECT_NAMES 6508 fi 6509 ;; 6510esac 6511 6512# Sed substitution that helps us do robust quoting. It backslashifies 6513# metacharacters that are still active within double-quoted strings. 6514Xsed='sed -e 1s/^X//' 6515sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6516 6517# Same as above, but do not quote variable references. 6518double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6519 6520# Sed substitution to delay expansion of an escaped shell variable in a 6521# double_quote_subst'ed string. 6522delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6523 6524# Sed substitution to avoid accidental globbing in evaled expressions 6525no_glob_subst='s/\*/\\\*/g' 6526 6527# Constants: 6528rm="rm -f" 6529 6530# Global variables: 6531default_ofile=libtool 6532can_build_shared=yes 6533 6534# All known linkers require a `.a' archive for static linking (except MSVC, 6535# which needs '.lib'). 6536libext=a 6537ltmain="$ac_aux_dir/ltmain.sh" 6538ofile="$default_ofile" 6539with_gnu_ld="$lt_cv_prog_gnu_ld" 6540 6541if test -n "$ac_tool_prefix"; then 6542 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6543set dummy ${ac_tool_prefix}ar; ac_word=$2 6544{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6546if test "${ac_cv_prog_AR+set}" = set; then 6547 echo $ECHO_N "(cached) $ECHO_C" >&6 6548else 6549 if test -n "$AR"; then 6550 ac_cv_prog_AR="$AR" # Let the user override the test. 6551else 6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6553for as_dir in $PATH 6554do 6555 IFS=$as_save_IFS 6556 test -z "$as_dir" && as_dir=. 6557 for ac_exec_ext in '' $ac_executable_extensions; do 6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6559 ac_cv_prog_AR="${ac_tool_prefix}ar" 6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6561 break 2 6562 fi 6563done 6564done 6565IFS=$as_save_IFS 6566 6567fi 6568fi 6569AR=$ac_cv_prog_AR 6570if test -n "$AR"; then 6571 { echo "$as_me:$LINENO: result: $AR" >&5 6572echo "${ECHO_T}$AR" >&6; } 6573else 6574 { echo "$as_me:$LINENO: result: no" >&5 6575echo "${ECHO_T}no" >&6; } 6576fi 6577 6578 6579fi 6580if test -z "$ac_cv_prog_AR"; then 6581 ac_ct_AR=$AR 6582 # Extract the first word of "ar", so it can be a program name with args. 6583set dummy ar; ac_word=$2 6584{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6586if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6587 echo $ECHO_N "(cached) $ECHO_C" >&6 6588else 6589 if test -n "$ac_ct_AR"; then 6590 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6591else 6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6593for as_dir in $PATH 6594do 6595 IFS=$as_save_IFS 6596 test -z "$as_dir" && as_dir=. 6597 for ac_exec_ext in '' $ac_executable_extensions; do 6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6599 ac_cv_prog_ac_ct_AR="ar" 6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6601 break 2 6602 fi 6603done 6604done 6605IFS=$as_save_IFS 6606 6607fi 6608fi 6609ac_ct_AR=$ac_cv_prog_ac_ct_AR 6610if test -n "$ac_ct_AR"; then 6611 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6612echo "${ECHO_T}$ac_ct_AR" >&6; } 6613else 6614 { echo "$as_me:$LINENO: result: no" >&5 6615echo "${ECHO_T}no" >&6; } 6616fi 6617 6618 if test "x$ac_ct_AR" = x; then 6619 AR="false" 6620 else 6621 case $cross_compiling:$ac_tool_warned in 6622yes:) 6623{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6624whose name does not start with the host triplet. If you think this 6625configuration is useful to you, please write to autoconf@gnu.org." >&5 6626echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6627whose name does not start with the host triplet. If you think this 6628configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6629ac_tool_warned=yes ;; 6630esac 6631 AR=$ac_ct_AR 6632 fi 6633else 6634 AR="$ac_cv_prog_AR" 6635fi 6636 6637if test -n "$ac_tool_prefix"; then 6638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6639set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6640{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6642if test "${ac_cv_prog_RANLIB+set}" = set; then 6643 echo $ECHO_N "(cached) $ECHO_C" >&6 6644else 6645 if test -n "$RANLIB"; then 6646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6655 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665RANLIB=$ac_cv_prog_RANLIB 6666if test -n "$RANLIB"; then 6667 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6668echo "${ECHO_T}$RANLIB" >&6; } 6669else 6670 { echo "$as_me:$LINENO: result: no" >&5 6671echo "${ECHO_T}no" >&6; } 6672fi 6673 6674 6675fi 6676if test -z "$ac_cv_prog_RANLIB"; then 6677 ac_ct_RANLIB=$RANLIB 6678 # Extract the first word of "ranlib", so it can be a program name with args. 6679set dummy ranlib; ac_word=$2 6680{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6682if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6683 echo $ECHO_N "(cached) $ECHO_C" >&6 6684else 6685 if test -n "$ac_ct_RANLIB"; then 6686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6695 ac_cv_prog_ac_ct_RANLIB="ranlib" 6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6706if test -n "$ac_ct_RANLIB"; then 6707 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6708echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6709else 6710 { echo "$as_me:$LINENO: result: no" >&5 6711echo "${ECHO_T}no" >&6; } 6712fi 6713 6714 if test "x$ac_ct_RANLIB" = x; then 6715 RANLIB=":" 6716 else 6717 case $cross_compiling:$ac_tool_warned in 6718yes:) 6719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6720whose name does not start with the host triplet. If you think this 6721configuration is useful to you, please write to autoconf@gnu.org." >&5 6722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6723whose name does not start with the host triplet. If you think this 6724configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6725ac_tool_warned=yes ;; 6726esac 6727 RANLIB=$ac_ct_RANLIB 6728 fi 6729else 6730 RANLIB="$ac_cv_prog_RANLIB" 6731fi 6732 6733if test -n "$ac_tool_prefix"; then 6734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6735set dummy ${ac_tool_prefix}strip; ac_word=$2 6736{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6738if test "${ac_cv_prog_STRIP+set}" = set; then 6739 echo $ECHO_N "(cached) $ECHO_C" >&6 6740else 6741 if test -n "$STRIP"; then 6742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6743else 6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6745for as_dir in $PATH 6746do 6747 IFS=$as_save_IFS 6748 test -z "$as_dir" && as_dir=. 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6751 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755done 6756done 6757IFS=$as_save_IFS 6758 6759fi 6760fi 6761STRIP=$ac_cv_prog_STRIP 6762if test -n "$STRIP"; then 6763 { echo "$as_me:$LINENO: result: $STRIP" >&5 6764echo "${ECHO_T}$STRIP" >&6; } 6765else 6766 { echo "$as_me:$LINENO: result: no" >&5 6767echo "${ECHO_T}no" >&6; } 6768fi 6769 6770 6771fi 6772if test -z "$ac_cv_prog_STRIP"; then 6773 ac_ct_STRIP=$STRIP 6774 # Extract the first word of "strip", so it can be a program name with args. 6775set dummy strip; ac_word=$2 6776{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6778if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6779 echo $ECHO_N "(cached) $ECHO_C" >&6 6780else 6781 if test -n "$ac_ct_STRIP"; then 6782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6783else 6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6785for as_dir in $PATH 6786do 6787 IFS=$as_save_IFS 6788 test -z "$as_dir" && as_dir=. 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6791 ac_cv_prog_ac_ct_STRIP="strip" 6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6793 break 2 6794 fi 6795done 6796done 6797IFS=$as_save_IFS 6798 6799fi 6800fi 6801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6802if test -n "$ac_ct_STRIP"; then 6803 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6804echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6805else 6806 { echo "$as_me:$LINENO: result: no" >&5 6807echo "${ECHO_T}no" >&6; } 6808fi 6809 6810 if test "x$ac_ct_STRIP" = x; then 6811 STRIP=":" 6812 else 6813 case $cross_compiling:$ac_tool_warned in 6814yes:) 6815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6816whose name does not start with the host triplet. If you think this 6817configuration is useful to you, please write to autoconf@gnu.org." >&5 6818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6819whose name does not start with the host triplet. If you think this 6820configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6821ac_tool_warned=yes ;; 6822esac 6823 STRIP=$ac_ct_STRIP 6824 fi 6825else 6826 STRIP="$ac_cv_prog_STRIP" 6827fi 6828 6829 6830old_CC="$CC" 6831old_CFLAGS="$CFLAGS" 6832 6833# Set sane defaults for various variables 6834test -z "$AR" && AR=ar 6835test -z "$AR_FLAGS" && AR_FLAGS=cru 6836test -z "$AS" && AS=as 6837test -z "$CC" && CC=cc 6838test -z "$LTCC" && LTCC=$CC 6839test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6840test -z "$DLLTOOL" && DLLTOOL=dlltool 6841test -z "$LD" && LD=ld 6842test -z "$LN_S" && LN_S="ln -s" 6843test -z "$MAGIC_CMD" && MAGIC_CMD=file 6844test -z "$NM" && NM=nm 6845test -z "$SED" && SED=sed 6846test -z "$OBJDUMP" && OBJDUMP=objdump 6847test -z "$RANLIB" && RANLIB=: 6848test -z "$STRIP" && STRIP=: 6849test -z "$ac_objext" && ac_objext=o 6850 6851# Determine commands to create old-style static archives. 6852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6853old_postinstall_cmds='chmod 644 $oldlib' 6854old_postuninstall_cmds= 6855 6856if test -n "$RANLIB"; then 6857 case $host_os in 6858 openbsd*) 6859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6860 ;; 6861 *) 6862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6863 ;; 6864 esac 6865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6866fi 6867 6868for cc_temp in $compiler""; do 6869 case $cc_temp in 6870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6872 \-*) ;; 6873 *) break;; 6874 esac 6875done 6876cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6877 6878 6879# Only perform the check for file, if the check method requires it 6880case $deplibs_check_method in 6881file_magic*) 6882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6883 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6884echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6885if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6886 echo $ECHO_N "(cached) $ECHO_C" >&6 6887else 6888 case $MAGIC_CMD in 6889[\\/*] | ?:[\\/]*) 6890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6891 ;; 6892*) 6893 lt_save_MAGIC_CMD="$MAGIC_CMD" 6894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6896 for ac_dir in $ac_dummy; do 6897 IFS="$lt_save_ifs" 6898 test -z "$ac_dir" && ac_dir=. 6899 if test -f $ac_dir/${ac_tool_prefix}file; then 6900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6901 if test -n "$file_magic_test_file"; then 6902 case $deplibs_check_method in 6903 "file_magic "*) 6904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6907 $EGREP "$file_magic_regex" > /dev/null; then 6908 : 6909 else 6910 cat <<EOF 1>&2 6911 6912*** Warning: the command libtool uses to detect shared libraries, 6913*** $file_magic_cmd, produces output that libtool cannot recognize. 6914*** The result is that libtool may fail to recognize shared libraries 6915*** as such. This will affect the creation of libtool libraries that 6916*** depend on shared libraries, but programs linked with such libtool 6917*** libraries will work regardless of this problem. Nevertheless, you 6918*** may want to report the problem to your system manager and/or to 6919*** bug-libtool@gnu.org 6920 6921EOF 6922 fi ;; 6923 esac 6924 fi 6925 break 6926 fi 6927 done 6928 IFS="$lt_save_ifs" 6929 MAGIC_CMD="$lt_save_MAGIC_CMD" 6930 ;; 6931esac 6932fi 6933 6934MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6935if test -n "$MAGIC_CMD"; then 6936 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6937echo "${ECHO_T}$MAGIC_CMD" >&6; } 6938else 6939 { echo "$as_me:$LINENO: result: no" >&5 6940echo "${ECHO_T}no" >&6; } 6941fi 6942 6943if test -z "$lt_cv_path_MAGIC_CMD"; then 6944 if test -n "$ac_tool_prefix"; then 6945 { echo "$as_me:$LINENO: checking for file" >&5 6946echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6947if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6948 echo $ECHO_N "(cached) $ECHO_C" >&6 6949else 6950 case $MAGIC_CMD in 6951[\\/*] | ?:[\\/]*) 6952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6953 ;; 6954*) 6955 lt_save_MAGIC_CMD="$MAGIC_CMD" 6956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6958 for ac_dir in $ac_dummy; do 6959 IFS="$lt_save_ifs" 6960 test -z "$ac_dir" && ac_dir=. 6961 if test -f $ac_dir/file; then 6962 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6963 if test -n "$file_magic_test_file"; then 6964 case $deplibs_check_method in 6965 "file_magic "*) 6966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6969 $EGREP "$file_magic_regex" > /dev/null; then 6970 : 6971 else 6972 cat <<EOF 1>&2 6973 6974*** Warning: the command libtool uses to detect shared libraries, 6975*** $file_magic_cmd, produces output that libtool cannot recognize. 6976*** The result is that libtool may fail to recognize shared libraries 6977*** as such. This will affect the creation of libtool libraries that 6978*** depend on shared libraries, but programs linked with such libtool 6979*** libraries will work regardless of this problem. Nevertheless, you 6980*** may want to report the problem to your system manager and/or to 6981*** bug-libtool@gnu.org 6982 6983EOF 6984 fi ;; 6985 esac 6986 fi 6987 break 6988 fi 6989 done 6990 IFS="$lt_save_ifs" 6991 MAGIC_CMD="$lt_save_MAGIC_CMD" 6992 ;; 6993esac 6994fi 6995 6996MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6997if test -n "$MAGIC_CMD"; then 6998 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6999echo "${ECHO_T}$MAGIC_CMD" >&6; } 7000else 7001 { echo "$as_me:$LINENO: result: no" >&5 7002echo "${ECHO_T}no" >&6; } 7003fi 7004 7005 else 7006 MAGIC_CMD=: 7007 fi 7008fi 7009 7010 fi 7011 ;; 7012esac 7013 7014enable_dlopen=no 7015enable_win32_dll=no 7016 7017# Check whether --enable-libtool-lock was given. 7018if test "${enable_libtool_lock+set}" = set; then 7019 enableval=$enable_libtool_lock; 7020fi 7021 7022test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7023 7024 7025# Check whether --with-pic was given. 7026if test "${with_pic+set}" = set; then 7027 withval=$with_pic; pic_mode="$withval" 7028else 7029 pic_mode=default 7030fi 7031 7032test -z "$pic_mode" && pic_mode=default 7033 7034# Use C for the default configuration in the libtool script 7035tagname= 7036lt_save_CC="$CC" 7037ac_ext=c 7038ac_cpp='$CPP $CPPFLAGS' 7039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7041ac_compiler_gnu=$ac_cv_c_compiler_gnu 7042 7043 7044# Source file extension for C test sources. 7045ac_ext=c 7046 7047# Object file extension for compiled C test sources. 7048objext=o 7049objext=$objext 7050 7051# Code to be used in simple compile tests 7052lt_simple_compile_test_code="int some_variable = 0;\n" 7053 7054# Code to be used in simple link tests 7055lt_simple_link_test_code='int main(){return(0);}\n' 7056 7057 7058# If no C compiler was specified, use CC. 7059LTCC=${LTCC-"$CC"} 7060 7061# If no C compiler flags were specified, use CFLAGS. 7062LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7063 7064# Allow CC to be a program name with arguments. 7065compiler=$CC 7066 7067 7068# save warnings/boilerplate of simple test code 7069ac_outfile=conftest.$ac_objext 7070printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7072_lt_compiler_boilerplate=`cat conftest.err` 7073$rm conftest* 7074 7075ac_outfile=conftest.$ac_objext 7076printf "$lt_simple_link_test_code" >conftest.$ac_ext 7077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7078_lt_linker_boilerplate=`cat conftest.err` 7079$rm conftest* 7080 7081 7082 7083lt_prog_compiler_no_builtin_flag= 7084 7085if test "$GCC" = yes; then 7086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7087 7088 7089{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7090echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7091if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7092 echo $ECHO_N "(cached) $ECHO_C" >&6 7093else 7094 lt_cv_prog_compiler_rtti_exceptions=no 7095 ac_outfile=conftest.$ac_objext 7096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7097 lt_compiler_flag="-fno-rtti -fno-exceptions" 7098 # Insert the option either (1) after the last *FLAGS variable, or 7099 # (2) before a word containing "conftest.", or (3) at the end. 7100 # Note that $ac_compile itself does not contain backslashes and begins 7101 # with a dollar sign (not a hyphen), so the echo should work correctly. 7102 # The option is referenced via a variable to avoid confusing sed. 7103 lt_compile=`echo "$ac_compile" | $SED \ 7104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7106 -e 's:$: $lt_compiler_flag:'` 7107 (eval echo "\"\$as_me:7107: $lt_compile\"" >&5) 7108 (eval "$lt_compile" 2>conftest.err) 7109 ac_status=$? 7110 cat conftest.err >&5 7111 echo "$as_me:7111: \$? = $ac_status" >&5 7112 if (exit $ac_status) && test -s "$ac_outfile"; then 7113 # The compiler can only warn and ignore the option if not recognized 7114 # So say no if there are warnings other than the usual output. 7115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7118 lt_cv_prog_compiler_rtti_exceptions=yes 7119 fi 7120 fi 7121 $rm conftest* 7122 7123fi 7124{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7125echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7126 7127if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7129else 7130 : 7131fi 7132 7133fi 7134 7135lt_prog_compiler_wl= 7136lt_prog_compiler_pic= 7137lt_prog_compiler_static= 7138 7139{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7141 7142 if test "$GCC" = yes; then 7143 lt_prog_compiler_wl='-Wl,' 7144 lt_prog_compiler_static='-static' 7145 7146 case $host_os in 7147 aix*) 7148 # All AIX code is PIC. 7149 if test "$host_cpu" = ia64; then 7150 # AIX 5 now supports IA64 processor 7151 lt_prog_compiler_static='-Bstatic' 7152 fi 7153 ;; 7154 7155 amigaos*) 7156 # FIXME: we need at least 68020 code to build shared libraries, but 7157 # adding the `-m68020' flag to GCC prevents building anything better, 7158 # like `-m68040'. 7159 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7160 ;; 7161 7162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7163 # PIC is the default for these OSes. 7164 ;; 7165 7166 mingw* | pw32* | os2*) 7167 # This hack is so that the source file can tell whether it is being 7168 # built for inclusion in a dll (and should export symbols for example). 7169 lt_prog_compiler_pic='-DDLL_EXPORT' 7170 ;; 7171 7172 darwin* | rhapsody*) 7173 # PIC is the default on this platform 7174 # Common symbols not allowed in MH_DYLIB files 7175 lt_prog_compiler_pic='-fno-common' 7176 ;; 7177 7178 interix3*) 7179 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7180 # Instead, we relocate shared libraries at runtime. 7181 ;; 7182 7183 msdosdjgpp*) 7184 # Just because we use GCC doesn't mean we suddenly get shared libraries 7185 # on systems that don't support them. 7186 lt_prog_compiler_can_build_shared=no 7187 enable_shared=no 7188 ;; 7189 7190 sysv4*MP*) 7191 if test -d /usr/nec; then 7192 lt_prog_compiler_pic=-Kconform_pic 7193 fi 7194 ;; 7195 7196 hpux*) 7197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7198 # not for PA HP-UX. 7199 case $host_cpu in 7200 hppa*64*|ia64*) 7201 # +Z the default 7202 ;; 7203 *) 7204 lt_prog_compiler_pic='-fPIC' 7205 ;; 7206 esac 7207 ;; 7208 7209 *) 7210 lt_prog_compiler_pic='-fPIC' 7211 ;; 7212 esac 7213 else 7214 # PORTME Check for flag to pass linker flags through the system compiler. 7215 case $host_os in 7216 aix*) 7217 lt_prog_compiler_wl='-Wl,' 7218 if test "$host_cpu" = ia64; then 7219 # AIX 5 now supports IA64 processor 7220 lt_prog_compiler_static='-Bstatic' 7221 else 7222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7223 fi 7224 ;; 7225 darwin*) 7226 # PIC is the default on this platform 7227 # Common symbols not allowed in MH_DYLIB files 7228 case $cc_basename in 7229 xlc*) 7230 lt_prog_compiler_pic='-qnocommon' 7231 lt_prog_compiler_wl='-Wl,' 7232 ;; 7233 esac 7234 ;; 7235 7236 mingw* | pw32* | os2*) 7237 # This hack is so that the source file can tell whether it is being 7238 # built for inclusion in a dll (and should export symbols for example). 7239 lt_prog_compiler_pic='-DDLL_EXPORT' 7240 ;; 7241 7242 hpux9* | hpux10* | hpux11*) 7243 lt_prog_compiler_wl='-Wl,' 7244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7245 # not for PA HP-UX. 7246 case $host_cpu in 7247 hppa*64*|ia64*) 7248 # +Z the default 7249 ;; 7250 *) 7251 lt_prog_compiler_pic='+Z' 7252 ;; 7253 esac 7254 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7255 lt_prog_compiler_static='${wl}-a ${wl}archive' 7256 ;; 7257 7258 irix5* | irix6* | nonstopux*) 7259 lt_prog_compiler_wl='-Wl,' 7260 # PIC (with -KPIC) is the default. 7261 lt_prog_compiler_static='-non_shared' 7262 ;; 7263 7264 newsos6) 7265 lt_prog_compiler_pic='-KPIC' 7266 lt_prog_compiler_static='-Bstatic' 7267 ;; 7268 7269 linux* | k*bsd*-gnu) 7270 case $cc_basename in 7271 icc* | ecc*) 7272 lt_prog_compiler_wl='-Wl,' 7273 lt_prog_compiler_pic='-KPIC' 7274 lt_prog_compiler_static='-static' 7275 ;; 7276 pgcc* | pgf77* | pgf90* | pgf95*) 7277 # Portland Group compilers (*not* the Pentium gcc compiler, 7278 # which looks to be a dead project) 7279 lt_prog_compiler_wl='-Wl,' 7280 lt_prog_compiler_pic='-fpic' 7281 lt_prog_compiler_static='-Bstatic' 7282 ;; 7283 ccc*) 7284 lt_prog_compiler_wl='-Wl,' 7285 # All Alpha code is PIC. 7286 lt_prog_compiler_static='-non_shared' 7287 ;; 7288 esac 7289 ;; 7290 7291 osf3* | osf4* | osf5*) 7292 lt_prog_compiler_wl='-Wl,' 7293 # All OSF/1 code is PIC. 7294 lt_prog_compiler_static='-non_shared' 7295 ;; 7296 7297 solaris*) 7298 lt_prog_compiler_pic='-KPIC' 7299 lt_prog_compiler_static='-Bstatic' 7300 case $cc_basename in 7301 f77* | f90* | f95*) 7302 lt_prog_compiler_wl='-Qoption ld ';; 7303 *) 7304 lt_prog_compiler_wl='-Wl,';; 7305 esac 7306 ;; 7307 7308 sunos4*) 7309 lt_prog_compiler_wl='-Qoption ld ' 7310 lt_prog_compiler_pic='-PIC' 7311 lt_prog_compiler_static='-Bstatic' 7312 ;; 7313 7314 sysv4 | sysv4.2uw2* | sysv4.3*) 7315 lt_prog_compiler_wl='-Wl,' 7316 lt_prog_compiler_pic='-KPIC' 7317 lt_prog_compiler_static='-Bstatic' 7318 ;; 7319 7320 sysv4*MP*) 7321 if test -d /usr/nec ;then 7322 lt_prog_compiler_pic='-Kconform_pic' 7323 lt_prog_compiler_static='-Bstatic' 7324 fi 7325 ;; 7326 7327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7328 lt_prog_compiler_wl='-Wl,' 7329 lt_prog_compiler_pic='-KPIC' 7330 lt_prog_compiler_static='-Bstatic' 7331 ;; 7332 7333 unicos*) 7334 lt_prog_compiler_wl='-Wl,' 7335 lt_prog_compiler_can_build_shared=no 7336 ;; 7337 7338 uts4*) 7339 lt_prog_compiler_pic='-pic' 7340 lt_prog_compiler_static='-Bstatic' 7341 ;; 7342 7343 *) 7344 lt_prog_compiler_can_build_shared=no 7345 ;; 7346 esac 7347 fi 7348 7349{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7350echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7351 7352# 7353# Check to make sure the PIC flag actually works. 7354# 7355if test -n "$lt_prog_compiler_pic"; then 7356 7357{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7359if test "${lt_prog_compiler_pic_works+set}" = set; then 7360 echo $ECHO_N "(cached) $ECHO_C" >&6 7361else 7362 lt_prog_compiler_pic_works=no 7363 ac_outfile=conftest.$ac_objext 7364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7365 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7366 # Insert the option either (1) after the last *FLAGS variable, or 7367 # (2) before a word containing "conftest.", or (3) at the end. 7368 # Note that $ac_compile itself does not contain backslashes and begins 7369 # with a dollar sign (not a hyphen), so the echo should work correctly. 7370 # The option is referenced via a variable to avoid confusing sed. 7371 lt_compile=`echo "$ac_compile" | $SED \ 7372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7374 -e 's:$: $lt_compiler_flag:'` 7375 (eval echo "\"\$as_me:7375: $lt_compile\"" >&5) 7376 (eval "$lt_compile" 2>conftest.err) 7377 ac_status=$? 7378 cat conftest.err >&5 7379 echo "$as_me:7379: \$? = $ac_status" >&5 7380 if (exit $ac_status) && test -s "$ac_outfile"; then 7381 # The compiler can only warn and ignore the option if not recognized 7382 # So say no if there are warnings other than the usual output. 7383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7386 lt_prog_compiler_pic_works=yes 7387 fi 7388 fi 7389 $rm conftest* 7390 7391fi 7392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7393echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7394 7395if test x"$lt_prog_compiler_pic_works" = xyes; then 7396 case $lt_prog_compiler_pic in 7397 "" | " "*) ;; 7398 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7399 esac 7400else 7401 lt_prog_compiler_pic= 7402 lt_prog_compiler_can_build_shared=no 7403fi 7404 7405fi 7406case $host_os in 7407 # For platforms which do not support PIC, -DPIC is meaningless: 7408 *djgpp*) 7409 lt_prog_compiler_pic= 7410 ;; 7411 *) 7412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7413 ;; 7414esac 7415 7416# 7417# Check to make sure the static flag actually works. 7418# 7419wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7420{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7422if test "${lt_prog_compiler_static_works+set}" = set; then 7423 echo $ECHO_N "(cached) $ECHO_C" >&6 7424else 7425 lt_prog_compiler_static_works=no 7426 save_LDFLAGS="$LDFLAGS" 7427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7428 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7430 # The linker can only warn and ignore the option if not recognized 7431 # So say no if there are warnings 7432 if test -s conftest.err; then 7433 # Append any errors to the config.log. 7434 cat conftest.err 1>&5 7435 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7437 if diff conftest.exp conftest.er2 >/dev/null; then 7438 lt_prog_compiler_static_works=yes 7439 fi 7440 else 7441 lt_prog_compiler_static_works=yes 7442 fi 7443 fi 7444 $rm conftest* 7445 LDFLAGS="$save_LDFLAGS" 7446 7447fi 7448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7449echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7450 7451if test x"$lt_prog_compiler_static_works" = xyes; then 7452 : 7453else 7454 lt_prog_compiler_static= 7455fi 7456 7457 7458{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7460if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7461 echo $ECHO_N "(cached) $ECHO_C" >&6 7462else 7463 lt_cv_prog_compiler_c_o=no 7464 $rm -r conftest 2>/dev/null 7465 mkdir conftest 7466 cd conftest 7467 mkdir out 7468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7469 7470 lt_compiler_flag="-o out/conftest2.$ac_objext" 7471 # Insert the option either (1) after the last *FLAGS variable, or 7472 # (2) before a word containing "conftest.", or (3) at the end. 7473 # Note that $ac_compile itself does not contain backslashes and begins 7474 # with a dollar sign (not a hyphen), so the echo should work correctly. 7475 lt_compile=`echo "$ac_compile" | $SED \ 7476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7478 -e 's:$: $lt_compiler_flag:'` 7479 (eval echo "\"\$as_me:7479: $lt_compile\"" >&5) 7480 (eval "$lt_compile" 2>out/conftest.err) 7481 ac_status=$? 7482 cat out/conftest.err >&5 7483 echo "$as_me:7483: \$? = $ac_status" >&5 7484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7485 then 7486 # The compiler can only warn and ignore the option if not recognized 7487 # So say no if there are warnings 7488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7491 lt_cv_prog_compiler_c_o=yes 7492 fi 7493 fi 7494 chmod u+w . 2>&5 7495 $rm conftest* 7496 # SGI C++ compiler will create directory out/ii_files/ for 7497 # template instantiation 7498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7499 $rm out/* && rmdir out 7500 cd .. 7501 rmdir conftest 7502 $rm conftest* 7503 7504fi 7505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7506echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7507 7508 7509hard_links="nottested" 7510if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7511 # do not overwrite the value of need_locks provided by the user 7512 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7514 hard_links=yes 7515 $rm conftest* 7516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7517 touch conftest.a 7518 ln conftest.a conftest.b 2>&5 || hard_links=no 7519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7520 { echo "$as_me:$LINENO: result: $hard_links" >&5 7521echo "${ECHO_T}$hard_links" >&6; } 7522 if test "$hard_links" = no; then 7523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7525 need_locks=warn 7526 fi 7527else 7528 need_locks=no 7529fi 7530 7531{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7533 7534 runpath_var= 7535 allow_undefined_flag= 7536 enable_shared_with_static_runtimes=no 7537 archive_cmds= 7538 archive_expsym_cmds= 7539 old_archive_From_new_cmds= 7540 old_archive_from_expsyms_cmds= 7541 export_dynamic_flag_spec= 7542 whole_archive_flag_spec= 7543 thread_safe_flag_spec= 7544 hardcode_libdir_flag_spec= 7545 hardcode_libdir_flag_spec_ld= 7546 hardcode_libdir_separator= 7547 hardcode_direct=no 7548 hardcode_minus_L=no 7549 hardcode_shlibpath_var=unsupported 7550 link_all_deplibs=unknown 7551 hardcode_automatic=no 7552 module_cmds= 7553 module_expsym_cmds= 7554 always_export_symbols=no 7555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7556 # include_expsyms should be a list of space-separated symbols to be *always* 7557 # included in the symbol list 7558 include_expsyms= 7559 # exclude_expsyms can be an extended regexp of symbols to exclude 7560 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7562 # as well as any symbol that contains `d'. 7563 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7565 # platforms (ab)use it in PIC code, but their linkers get confused if 7566 # the symbol is explicitly referenced. Since portable code cannot 7567 # rely on this symbol name, it's probably fine to never include it in 7568 # preloaded symbol tables. 7569 extract_expsyms_cmds= 7570 # Just being paranoid about ensuring that cc_basename is set. 7571 for cc_temp in $compiler""; do 7572 case $cc_temp in 7573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7575 \-*) ;; 7576 *) break;; 7577 esac 7578done 7579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7580 7581 case $host_os in 7582 cygwin* | mingw* | pw32*) 7583 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7584 # When not using gcc, we currently assume that we are using 7585 # Microsoft Visual C++. 7586 if test "$GCC" != yes; then 7587 with_gnu_ld=no 7588 fi 7589 ;; 7590 interix*) 7591 # we just hope/assume this is gcc and not c89 (= MSVC++) 7592 with_gnu_ld=yes 7593 ;; 7594 openbsd*) 7595 with_gnu_ld=no 7596 ;; 7597 esac 7598 7599 ld_shlibs=yes 7600 if test "$with_gnu_ld" = yes; then 7601 # If archive_cmds runs LD, not CC, wlarc should be empty 7602 wlarc='${wl}' 7603 7604 # Set some defaults for GNU ld with shared library support. These 7605 # are reset later if shared libraries are not supported. Putting them 7606 # here allows them to be overridden if necessary. 7607 runpath_var=LD_RUN_PATH 7608 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7609 export_dynamic_flag_spec='${wl}--export-dynamic' 7610 # ancient GNU ld didn't support --whole-archive et. al. 7611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7612 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7613 else 7614 whole_archive_flag_spec= 7615 fi 7616 supports_anon_versioning=no 7617 case `$LD -v 2>/dev/null` in 7618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7621 *\ 2.11.*) ;; # other 2.11 versions 7622 *) supports_anon_versioning=yes ;; 7623 esac 7624 7625 # See if GNU ld supports shared libraries. 7626 case $host_os in 7627 aix3* | aix4* | aix5*) 7628 # On AIX/PPC, the GNU linker is very broken 7629 if test "$host_cpu" != ia64; then 7630 ld_shlibs=no 7631 cat <<EOF 1>&2 7632 7633*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7634*** to be unable to reliably create shared libraries on AIX. 7635*** Therefore, libtool is disabling shared libraries support. If you 7636*** really care for shared libraries, you may want to modify your PATH 7637*** so that a non-GNU linker is found, and then restart. 7638 7639EOF 7640 fi 7641 ;; 7642 7643 amigaos*) 7644 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)' 7645 hardcode_libdir_flag_spec='-L$libdir' 7646 hardcode_minus_L=yes 7647 7648 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7649 # that the semantics of dynamic libraries on AmigaOS, at least up 7650 # to version 4, is to share data among multiple programs linked 7651 # with the same dynamic library. Since this doesn't match the 7652 # behavior of shared libraries on other platforms, we can't use 7653 # them. 7654 ld_shlibs=no 7655 ;; 7656 7657 beos*) 7658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7659 allow_undefined_flag=unsupported 7660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7661 # support --undefined. This deserves some investigation. FIXME 7662 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7663 else 7664 ld_shlibs=no 7665 fi 7666 ;; 7667 7668 cygwin* | mingw* | pw32*) 7669 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7670 # as there is no search path for DLLs. 7671 hardcode_libdir_flag_spec='-L$libdir' 7672 allow_undefined_flag=unsupported 7673 always_export_symbols=no 7674 enable_shared_with_static_runtimes=yes 7675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7676 7677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7679 # If the export-symbols file already is a .def file (1st line 7680 # is EXPORTS), use it as is; otherwise, prepend... 7681 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7682 cp $export_symbols $output_objdir/$soname.def; 7683 else 7684 echo EXPORTS > $output_objdir/$soname.def; 7685 cat $export_symbols >> $output_objdir/$soname.def; 7686 fi~ 7687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7688 else 7689 ld_shlibs=no 7690 fi 7691 ;; 7692 7693 interix3*) 7694 hardcode_direct=no 7695 hardcode_shlibpath_var=no 7696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7697 export_dynamic_flag_spec='${wl}-E' 7698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7699 # Instead, shared libraries are loaded at an image base (0x10000000 by 7700 # default) and relocated if they conflict, which is a slow very memory 7701 # consuming and fragmenting process. To avoid this, we pick a random, 7702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7703 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7705 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' 7706 ;; 7707 7708 linux* | k*bsd*-gnu) 7709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7710 tmp_addflag= 7711 case $cc_basename,$host_cpu in 7712 pgcc*) # Portland Group C compiler 7713 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' 7714 tmp_addflag=' $pic_flag' 7715 ;; 7716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7717 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' 7718 tmp_addflag=' $pic_flag -Mnomain' ;; 7719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7720 tmp_addflag=' -i_dynamic' ;; 7721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7722 tmp_addflag=' -i_dynamic -nofor_main' ;; 7723 ifc* | ifort*) # Intel Fortran compiler 7724 tmp_addflag=' -nofor_main' ;; 7725 esac 7726 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7727 7728 if test $supports_anon_versioning = yes; then 7729 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7731 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7732 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7733 fi 7734 link_all_deplibs=no 7735 else 7736 ld_shlibs=no 7737 fi 7738 ;; 7739 7740 netbsd* | netbsdelf*-gnu) 7741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7743 wlarc= 7744 else 7745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7747 fi 7748 ;; 7749 7750 solaris*) 7751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7752 ld_shlibs=no 7753 cat <<EOF 1>&2 7754 7755*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7756*** create shared libraries on Solaris systems. Therefore, libtool 7757*** is disabling shared libraries support. We urge you to upgrade GNU 7758*** binutils to release 2.9.1 or newer. Another option is to modify 7759*** your PATH or compiler configuration so that the native linker is 7760*** used, and then restart. 7761 7762EOF 7763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7766 else 7767 ld_shlibs=no 7768 fi 7769 ;; 7770 7771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7772 case `$LD -v 2>&1` in 7773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7774 ld_shlibs=no 7775 cat <<_LT_EOF 1>&2 7776 7777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7778*** reliably create shared libraries on SCO systems. Therefore, libtool 7779*** is disabling shared libraries support. We urge you to upgrade GNU 7780*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7781*** your PATH or compiler configuration so that the native linker is 7782*** used, and then restart. 7783 7784_LT_EOF 7785 ;; 7786 *) 7787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7788 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7791 else 7792 ld_shlibs=no 7793 fi 7794 ;; 7795 esac 7796 ;; 7797 7798 sunos4*) 7799 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7800 wlarc= 7801 hardcode_direct=yes 7802 hardcode_shlibpath_var=no 7803 ;; 7804 7805 *) 7806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7809 else 7810 ld_shlibs=no 7811 fi 7812 ;; 7813 esac 7814 7815 if test "$ld_shlibs" = no; then 7816 runpath_var= 7817 hardcode_libdir_flag_spec= 7818 export_dynamic_flag_spec= 7819 whole_archive_flag_spec= 7820 fi 7821 else 7822 # PORTME fill in a description of your system's linker (not GNU ld) 7823 case $host_os in 7824 aix3*) 7825 allow_undefined_flag=unsupported 7826 always_export_symbols=yes 7827 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' 7828 # Note: this linker hardcodes the directories in LIBPATH if there 7829 # are no directories specified by -L. 7830 hardcode_minus_L=yes 7831 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7832 # Neither direct hardcoding nor static linking is supported with a 7833 # broken collect2. 7834 hardcode_direct=unsupported 7835 fi 7836 ;; 7837 7838 aix4* | aix5*) 7839 if test "$host_cpu" = ia64; then 7840 # On IA64, the linker does run time linking by default, so we don't 7841 # have to do anything special. 7842 aix_use_runtimelinking=no 7843 exp_sym_flag='-Bexport' 7844 no_entry_flag="" 7845 else 7846 # If we're using GNU nm, then we don't want the "-C" option. 7847 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7848 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7849 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' 7850 else 7851 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' 7852 fi 7853 aix_use_runtimelinking=no 7854 7855 # Test if we are trying to use run time linking or normal 7856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7857 # need to do runtime linking. 7858 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7859 for ld_flag in $LDFLAGS; do 7860 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7861 aix_use_runtimelinking=yes 7862 break 7863 fi 7864 done 7865 ;; 7866 esac 7867 7868 exp_sym_flag='-bexport' 7869 no_entry_flag='-bnoentry' 7870 fi 7871 7872 # When large executables or shared objects are built, AIX ld can 7873 # have problems creating the table of contents. If linking a library 7874 # or program results in "error TOC overflow" add -mminimal-toc to 7875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7877 7878 archive_cmds='' 7879 hardcode_direct=yes 7880 hardcode_libdir_separator=':' 7881 link_all_deplibs=yes 7882 7883 if test "$GCC" = yes; then 7884 case $host_os in aix4.[012]|aix4.[012].*) 7885 # We only want to do this on AIX 4.2 and lower, the check 7886 # below for broken collect2 doesn't work under 4.3+ 7887 collect2name=`${CC} -print-prog-name=collect2` 7888 if test -f "$collect2name" && \ 7889 strings "$collect2name" | grep resolve_lib_name >/dev/null 7890 then 7891 # We have reworked collect2 7892 hardcode_direct=yes 7893 else 7894 # We have old collect2 7895 hardcode_direct=unsupported 7896 # It fails to find uninstalled libraries when the uninstalled 7897 # path is not listed in the libpath. Setting hardcode_minus_L 7898 # to unsupported forces relinking 7899 hardcode_minus_L=yes 7900 hardcode_libdir_flag_spec='-L$libdir' 7901 hardcode_libdir_separator= 7902 fi 7903 ;; 7904 esac 7905 shared_flag='-shared' 7906 if test "$aix_use_runtimelinking" = yes; then 7907 shared_flag="$shared_flag "'${wl}-G' 7908 fi 7909 else 7910 # not using gcc 7911 if test "$host_cpu" = ia64; then 7912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7913 # chokes on -Wl,-G. The following line is correct: 7914 shared_flag='-G' 7915 else 7916 if test "$aix_use_runtimelinking" = yes; then 7917 shared_flag='${wl}-G' 7918 else 7919 shared_flag='${wl}-bM:SRE' 7920 fi 7921 fi 7922 fi 7923 7924 # It seems that -bexpall does not export symbols beginning with 7925 # underscore (_), so it is better to generate a list of symbols to export. 7926 always_export_symbols=yes 7927 if test "$aix_use_runtimelinking" = yes; then 7928 # Warning - without using the other runtime loading flags (-brtl), 7929 # -berok will link without error, but may produce a broken library. 7930 allow_undefined_flag='-berok' 7931 # Determine the default libpath from the value encoded in an empty executable. 7932 cat >conftest.$ac_ext <<_ACEOF 7933/* confdefs.h. */ 7934_ACEOF 7935cat confdefs.h >>conftest.$ac_ext 7936cat >>conftest.$ac_ext <<_ACEOF 7937/* end confdefs.h. */ 7938 7939int 7940main () 7941{ 7942 7943 ; 7944 return 0; 7945} 7946_ACEOF 7947rm -f conftest.$ac_objext conftest$ac_exeext 7948if { (ac_try="$ac_link" 7949case "(($ac_try" in 7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7951 *) ac_try_echo=$ac_try;; 7952esac 7953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7954 (eval "$ac_link") 2>conftest.er1 7955 ac_status=$? 7956 grep -v '^ *+' conftest.er1 >conftest.err 7957 rm -f conftest.er1 7958 cat conftest.err >&5 7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7960 (exit $ac_status); } && { 7961 test -z "$ac_c_werror_flag" || 7962 test ! -s conftest.err 7963 } && test -s conftest$ac_exeext && 7964 $as_test_x conftest$ac_exeext; then 7965 7966aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7967}'` 7968# Check for a 64-bit object if we didn't find anything. 7969if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7970}'`; fi 7971else 7972 echo "$as_me: failed program was:" >&5 7973sed 's/^/| /' conftest.$ac_ext >&5 7974 7975 7976fi 7977 7978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7979 conftest$ac_exeext conftest.$ac_ext 7980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7981 7982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7983 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" 7984 else 7985 if test "$host_cpu" = ia64; then 7986 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7987 allow_undefined_flag="-z nodefs" 7988 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" 7989 else 7990 # Determine the default libpath from the value encoded in an empty executable. 7991 cat >conftest.$ac_ext <<_ACEOF 7992/* confdefs.h. */ 7993_ACEOF 7994cat confdefs.h >>conftest.$ac_ext 7995cat >>conftest.$ac_ext <<_ACEOF 7996/* end confdefs.h. */ 7997 7998int 7999main () 8000{ 8001 8002 ; 8003 return 0; 8004} 8005_ACEOF 8006rm -f conftest.$ac_objext conftest$ac_exeext 8007if { (ac_try="$ac_link" 8008case "(($ac_try" in 8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8010 *) ac_try_echo=$ac_try;; 8011esac 8012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8013 (eval "$ac_link") 2>conftest.er1 8014 ac_status=$? 8015 grep -v '^ *+' conftest.er1 >conftest.err 8016 rm -f conftest.er1 8017 cat conftest.err >&5 8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8019 (exit $ac_status); } && { 8020 test -z "$ac_c_werror_flag" || 8021 test ! -s conftest.err 8022 } && test -s conftest$ac_exeext && 8023 $as_test_x conftest$ac_exeext; then 8024 8025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8026}'` 8027# Check for a 64-bit object if we didn't find anything. 8028if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8029}'`; fi 8030else 8031 echo "$as_me: failed program was:" >&5 8032sed 's/^/| /' conftest.$ac_ext >&5 8033 8034 8035fi 8036 8037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8038 conftest$ac_exeext conftest.$ac_ext 8039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8040 8041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8042 # Warning - without using the other run time loading flags, 8043 # -berok will link without error, but may produce a broken library. 8044 no_undefined_flag=' ${wl}-bernotok' 8045 allow_undefined_flag=' ${wl}-berok' 8046 # Exported symbols can be pulled into shared objects from archives 8047 whole_archive_flag_spec='$convenience' 8048 archive_cmds_need_lc=yes 8049 # This is similar to how AIX traditionally builds its shared libraries. 8050 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' 8051 fi 8052 fi 8053 ;; 8054 8055 amigaos*) 8056 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)' 8057 hardcode_libdir_flag_spec='-L$libdir' 8058 hardcode_minus_L=yes 8059 # see comment about different semantics on the GNU ld section 8060 ld_shlibs=no 8061 ;; 8062 8063 bsdi[45]*) 8064 export_dynamic_flag_spec=-rdynamic 8065 ;; 8066 8067 cygwin* | mingw* | pw32*) 8068 # When not using gcc, we currently assume that we are using 8069 # Microsoft Visual C++. 8070 # hardcode_libdir_flag_spec is actually meaningless, as there is 8071 # no search path for DLLs. 8072 hardcode_libdir_flag_spec=' ' 8073 allow_undefined_flag=unsupported 8074 # Tell ltmain to make .lib files, not .a files. 8075 libext=lib 8076 # Tell ltmain to make .dll files, not .so files. 8077 shrext_cmds=".dll" 8078 # FIXME: Setting linknames here is a bad hack. 8079 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8080 # The linker will automatically build a .lib file if we build a DLL. 8081 old_archive_From_new_cmds='true' 8082 # FIXME: Should let the user specify the lib program. 8083 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8084 fix_srcfile_path='`cygpath -w "$srcfile"`' 8085 enable_shared_with_static_runtimes=yes 8086 ;; 8087 8088 darwin* | rhapsody*) 8089 case $host_os in 8090 rhapsody* | darwin1.[012]) 8091 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8092 ;; 8093 *) # Darwin 1.3 on 8094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8095 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8096 else 8097 case ${MACOSX_DEPLOYMENT_TARGET} in 8098 10.[012]) 8099 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8100 ;; 8101 10.*) 8102 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8103 ;; 8104 esac 8105 fi 8106 ;; 8107 esac 8108 archive_cmds_need_lc=no 8109 hardcode_direct=no 8110 hardcode_automatic=yes 8111 hardcode_shlibpath_var=unsupported 8112 whole_archive_flag_spec='' 8113 link_all_deplibs=yes 8114 if test "$GCC" = yes ; then 8115 output_verbose_link_cmd='echo' 8116 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8117 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8119 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}' 8120 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}' 8121 else 8122 case $cc_basename in 8123 xlc*) 8124 output_verbose_link_cmd='echo' 8125 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8126 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8128 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8129 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}' 8130 ;; 8131 *) 8132 ld_shlibs=no 8133 ;; 8134 esac 8135 fi 8136 ;; 8137 8138 dgux*) 8139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8140 hardcode_libdir_flag_spec='-L$libdir' 8141 hardcode_shlibpath_var=no 8142 ;; 8143 8144 freebsd1*) 8145 ld_shlibs=no 8146 ;; 8147 8148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8149 # support. Future versions do this automatically, but an explicit c++rt0.o 8150 # does not break anything, and helps significantly (at the cost of a little 8151 # extra space). 8152 freebsd2.2*) 8153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8154 hardcode_libdir_flag_spec='-R$libdir' 8155 hardcode_direct=yes 8156 hardcode_shlibpath_var=no 8157 ;; 8158 8159 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8160 freebsd2*) 8161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8162 hardcode_direct=yes 8163 hardcode_minus_L=yes 8164 hardcode_shlibpath_var=no 8165 ;; 8166 8167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8168 freebsd* | dragonfly*) 8169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8170 hardcode_libdir_flag_spec='-R$libdir' 8171 hardcode_direct=yes 8172 hardcode_shlibpath_var=no 8173 ;; 8174 8175 hpux9*) 8176 if test "$GCC" = yes; then 8177 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' 8178 else 8179 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' 8180 fi 8181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8182 hardcode_libdir_separator=: 8183 hardcode_direct=yes 8184 8185 # hardcode_minus_L: Not really in the search PATH, 8186 # but as the default location of the library. 8187 hardcode_minus_L=yes 8188 export_dynamic_flag_spec='${wl}-E' 8189 ;; 8190 8191 hpux10*) 8192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8194 else 8195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8196 fi 8197 if test "$with_gnu_ld" = no; then 8198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8199 hardcode_libdir_separator=: 8200 8201 hardcode_direct=yes 8202 export_dynamic_flag_spec='${wl}-E' 8203 8204 # hardcode_minus_L: Not really in the search PATH, 8205 # but as the default location of the library. 8206 hardcode_minus_L=yes 8207 fi 8208 ;; 8209 8210 hpux11*) 8211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8212 case $host_cpu in 8213 hppa*64*) 8214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8215 ;; 8216 ia64*) 8217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8218 ;; 8219 *) 8220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8221 ;; 8222 esac 8223 else 8224 case $host_cpu in 8225 hppa*64*) 8226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8227 ;; 8228 ia64*) 8229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8230 ;; 8231 *) 8232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8233 ;; 8234 esac 8235 fi 8236 if test "$with_gnu_ld" = no; then 8237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8238 hardcode_libdir_separator=: 8239 8240 case $host_cpu in 8241 hppa*64*|ia64*) 8242 hardcode_libdir_flag_spec_ld='+b $libdir' 8243 hardcode_direct=no 8244 hardcode_shlibpath_var=no 8245 ;; 8246 *) 8247 hardcode_direct=yes 8248 export_dynamic_flag_spec='${wl}-E' 8249 8250 # hardcode_minus_L: Not really in the search PATH, 8251 # but as the default location of the library. 8252 hardcode_minus_L=yes 8253 ;; 8254 esac 8255 fi 8256 ;; 8257 8258 irix5* | irix6* | nonstopux*) 8259 if test "$GCC" = yes; then 8260 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' 8261 else 8262 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' 8263 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8264 fi 8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8266 hardcode_libdir_separator=: 8267 link_all_deplibs=yes 8268 ;; 8269 8270 netbsd* | netbsdelf*-gnu) 8271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8273 else 8274 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8275 fi 8276 hardcode_libdir_flag_spec='-R$libdir' 8277 hardcode_direct=yes 8278 hardcode_shlibpath_var=no 8279 ;; 8280 8281 newsos6) 8282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8283 hardcode_direct=yes 8284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8285 hardcode_libdir_separator=: 8286 hardcode_shlibpath_var=no 8287 ;; 8288 8289 openbsd*) 8290 hardcode_direct=yes 8291 hardcode_shlibpath_var=no 8292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8294 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8296 export_dynamic_flag_spec='${wl}-E' 8297 else 8298 case $host_os in 8299 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8301 hardcode_libdir_flag_spec='-R$libdir' 8302 ;; 8303 *) 8304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8306 ;; 8307 esac 8308 fi 8309 ;; 8310 8311 os2*) 8312 hardcode_libdir_flag_spec='-L$libdir' 8313 hardcode_minus_L=yes 8314 allow_undefined_flag=unsupported 8315 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' 8316 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8317 ;; 8318 8319 osf3*) 8320 if test "$GCC" = yes; then 8321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8322 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' 8323 else 8324 allow_undefined_flag=' -expect_unresolved \*' 8325 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' 8326 fi 8327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8328 hardcode_libdir_separator=: 8329 ;; 8330 8331 osf4* | osf5*) # as osf3* with the addition of -msym flag 8332 if test "$GCC" = yes; then 8333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8334 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' 8335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8336 else 8337 allow_undefined_flag=' -expect_unresolved \*' 8338 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' 8339 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8340 $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' 8341 8342 # Both c and cxx compiler support -rpath directly 8343 hardcode_libdir_flag_spec='-rpath $libdir' 8344 fi 8345 hardcode_libdir_separator=: 8346 ;; 8347 8348 solaris*) 8349 no_undefined_flag=' -z text' 8350 if test "$GCC" = yes; then 8351 wlarc='${wl}' 8352 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8353 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8354 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8355 else 8356 wlarc='' 8357 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8358 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8360 fi 8361 hardcode_libdir_flag_spec='-R$libdir' 8362 hardcode_shlibpath_var=no 8363 case $host_os in 8364 solaris2.[0-5] | solaris2.[0-5].*) ;; 8365 *) 8366 # The compiler driver will combine linker options so we 8367 # cannot just pass the convience library names through 8368 # without $wl, iff we do not link with $LD. 8369 # Luckily, gcc supports the same syntax we need for Sun Studio. 8370 # Supported since Solaris 2.6 (maybe 2.5.1?) 8371 case $wlarc in 8372 '') 8373 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8374 *) 8375 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8376 esac ;; 8377 esac 8378 link_all_deplibs=yes 8379 ;; 8380 8381 sunos4*) 8382 if test "x$host_vendor" = xsequent; then 8383 # Use $CC to link under sequent, because it throws in some extra .o 8384 # files that make .init and .fini sections work. 8385 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8386 else 8387 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8388 fi 8389 hardcode_libdir_flag_spec='-L$libdir' 8390 hardcode_direct=yes 8391 hardcode_minus_L=yes 8392 hardcode_shlibpath_var=no 8393 ;; 8394 8395 sysv4) 8396 case $host_vendor in 8397 sni) 8398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8399 hardcode_direct=yes # is this really true??? 8400 ;; 8401 siemens) 8402 ## LD is ld it makes a PLAMLIB 8403 ## CC just makes a GrossModule. 8404 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8405 reload_cmds='$CC -r -o $output$reload_objs' 8406 hardcode_direct=no 8407 ;; 8408 motorola) 8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8410 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8411 ;; 8412 esac 8413 runpath_var='LD_RUN_PATH' 8414 hardcode_shlibpath_var=no 8415 ;; 8416 8417 sysv4.3*) 8418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8419 hardcode_shlibpath_var=no 8420 export_dynamic_flag_spec='-Bexport' 8421 ;; 8422 8423 sysv4*MP*) 8424 if test -d /usr/nec; then 8425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8426 hardcode_shlibpath_var=no 8427 runpath_var=LD_RUN_PATH 8428 hardcode_runpath_var=yes 8429 ld_shlibs=yes 8430 fi 8431 ;; 8432 8433 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8434 no_undefined_flag='${wl}-z,text' 8435 archive_cmds_need_lc=no 8436 hardcode_shlibpath_var=no 8437 runpath_var='LD_RUN_PATH' 8438 8439 if test "$GCC" = yes; then 8440 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8441 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8442 else 8443 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8444 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8445 fi 8446 ;; 8447 8448 sysv5* | sco3.2v5* | sco5v6*) 8449 # Note: We can NOT use -z defs as we might desire, because we do not 8450 # link with -lc, and that would cause any symbols used from libc to 8451 # always be unresolved, which means just about no library would 8452 # ever link correctly. If we're not using GNU ld we use -z text 8453 # though, which does catch some bad symbols but isn't as heavy-handed 8454 # as -z defs. 8455 no_undefined_flag='${wl}-z,text' 8456 allow_undefined_flag='${wl}-z,nodefs' 8457 archive_cmds_need_lc=no 8458 hardcode_shlibpath_var=no 8459 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8460 hardcode_libdir_separator=':' 8461 link_all_deplibs=yes 8462 export_dynamic_flag_spec='${wl}-Bexport' 8463 runpath_var='LD_RUN_PATH' 8464 8465 if test "$GCC" = yes; then 8466 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8468 else 8469 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8471 fi 8472 ;; 8473 8474 uts4*) 8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8476 hardcode_libdir_flag_spec='-L$libdir' 8477 hardcode_shlibpath_var=no 8478 ;; 8479 8480 *) 8481 ld_shlibs=no 8482 ;; 8483 esac 8484 fi 8485 8486{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8487echo "${ECHO_T}$ld_shlibs" >&6; } 8488test "$ld_shlibs" = no && can_build_shared=no 8489 8490# 8491# Do we need to explicitly link libc? 8492# 8493case "x$archive_cmds_need_lc" in 8494x|xyes) 8495 # Assume -lc should be added 8496 archive_cmds_need_lc=yes 8497 8498 if test "$enable_shared" = yes && test "$GCC" = yes; then 8499 case $archive_cmds in 8500 *'~'*) 8501 # FIXME: we may have to deal with multi-command sequences. 8502 ;; 8503 '$CC '*) 8504 # Test whether the compiler implicitly links with -lc since on some 8505 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8506 # to ld, don't add -lc before -lgcc. 8507 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8508echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8509 $rm conftest* 8510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8511 8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8513 (eval $ac_compile) 2>&5 8514 ac_status=$? 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } 2>conftest.err; then 8517 soname=conftest 8518 lib=conftest 8519 libobjs=conftest.$ac_objext 8520 deplibs= 8521 wl=$lt_prog_compiler_wl 8522 pic_flag=$lt_prog_compiler_pic 8523 compiler_flags=-v 8524 linker_flags=-v 8525 verstring= 8526 output_objdir=. 8527 libname=conftest 8528 lt_save_allow_undefined_flag=$allow_undefined_flag 8529 allow_undefined_flag= 8530 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8531 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); } 8535 then 8536 archive_cmds_need_lc=no 8537 else 8538 archive_cmds_need_lc=yes 8539 fi 8540 allow_undefined_flag=$lt_save_allow_undefined_flag 8541 else 8542 cat conftest.err 1>&5 8543 fi 8544 $rm conftest* 8545 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8546echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8547 ;; 8548 esac 8549 fi 8550 ;; 8551esac 8552 8553{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8554echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8555library_names_spec= 8556libname_spec='lib$name' 8557soname_spec= 8558shrext_cmds=".so" 8559postinstall_cmds= 8560postuninstall_cmds= 8561finish_cmds= 8562finish_eval= 8563shlibpath_var= 8564shlibpath_overrides_runpath=unknown 8565version_type=none 8566dynamic_linker="$host_os ld.so" 8567sys_lib_dlsearch_path_spec="/lib /usr/lib" 8568if test "$GCC" = yes; then 8569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8570 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8571 # if the path contains ";" then we assume it to be the separator 8572 # otherwise default to the standard path separator (i.e. ":") - it is 8573 # assumed that no part of a normal pathname contains ";" but that should 8574 # okay in the real world where ";" in dirpaths is itself problematic. 8575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8576 else 8577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8578 fi 8579else 8580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8581fi 8582need_lib_prefix=unknown 8583hardcode_into_libs=no 8584 8585# when you set need_version to no, make sure it does not cause -set_version 8586# flags to be left without arguments 8587need_version=unknown 8588 8589case $host_os in 8590aix3*) 8591 version_type=linux 8592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8593 shlibpath_var=LIBPATH 8594 8595 # AIX 3 has no versioning support, so we append a major version to the name. 8596 soname_spec='${libname}${release}${shared_ext}$major' 8597 ;; 8598 8599aix4* | aix5*) 8600 version_type=linux 8601 need_lib_prefix=no 8602 need_version=no 8603 hardcode_into_libs=yes 8604 if test "$host_cpu" = ia64; then 8605 # AIX 5 supports IA64 8606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8607 shlibpath_var=LD_LIBRARY_PATH 8608 else 8609 # With GCC up to 2.95.x, collect2 would create an import file 8610 # for dependence libraries. The import file would start with 8611 # the line `#! .'. This would cause the generated library to 8612 # depend on `.', always an invalid library. This was fixed in 8613 # development snapshots of GCC prior to 3.0. 8614 case $host_os in 8615 aix4 | aix4.[01] | aix4.[01].*) 8616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8617 echo ' yes ' 8618 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8619 : 8620 else 8621 can_build_shared=no 8622 fi 8623 ;; 8624 esac 8625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8626 # soname into executable. Probably we can add versioning support to 8627 # collect2, so additional links can be useful in future. 8628 if test "$aix_use_runtimelinking" = yes; then 8629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8630 # instead of lib<name>.a to let people know that these are not 8631 # typical AIX shared libraries. 8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8633 else 8634 # We preserve .a as extension for shared libraries through AIX4.2 8635 # and later when we are not doing run time linking. 8636 library_names_spec='${libname}${release}.a $libname.a' 8637 soname_spec='${libname}${release}${shared_ext}$major' 8638 fi 8639 shlibpath_var=LIBPATH 8640 fi 8641 ;; 8642 8643amigaos*) 8644 library_names_spec='$libname.ixlibrary $libname.a' 8645 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8646 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' 8647 ;; 8648 8649beos*) 8650 library_names_spec='${libname}${shared_ext}' 8651 dynamic_linker="$host_os ld.so" 8652 shlibpath_var=LIBRARY_PATH 8653 ;; 8654 8655bsdi[45]*) 8656 version_type=linux 8657 need_version=no 8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8659 soname_spec='${libname}${release}${shared_ext}$major' 8660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8661 shlibpath_var=LD_LIBRARY_PATH 8662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8664 # the default ld.so.conf also contains /usr/contrib/lib and 8665 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8666 # libtool to hard-code these into programs 8667 ;; 8668 8669cygwin* | mingw* | pw32*) 8670 version_type=windows 8671 shrext_cmds=".dll" 8672 need_version=no 8673 need_lib_prefix=no 8674 8675 case $GCC,$host_os in 8676 yes,cygwin* | yes,mingw* | yes,pw32*) 8677 library_names_spec='$libname.dll.a' 8678 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8679 postinstall_cmds='base_file=`basename \${file}`~ 8680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8681 dldir=$destdir/`dirname \$dlpath`~ 8682 test -d \$dldir || mkdir -p \$dldir~ 8683 $install_prog $dir/$dlname \$dldir/$dlname~ 8684 chmod a+x \$dldir/$dlname' 8685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8686 dlpath=$dir/\$dldll~ 8687 $rm \$dlpath' 8688 shlibpath_overrides_runpath=yes 8689 8690 case $host_os in 8691 cygwin*) 8692 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8695 ;; 8696 mingw*) 8697 # MinGW DLLs use traditional 'lib' prefix 8698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8701 # It is most probably a Windows format PATH printed by 8702 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8703 # path with ; separators, and with drive letters. We can handle the 8704 # drive letters (cygwin fileutils understands them), so leave them, 8705 # especially as we might pass files found there to a mingw objdump, 8706 # which wouldn't understand a cygwinified path. Ahh. 8707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8708 else 8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8710 fi 8711 ;; 8712 pw32*) 8713 # pw32 DLLs use 'pw' prefix rather than 'lib' 8714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8715 ;; 8716 esac 8717 ;; 8718 8719 *) 8720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8721 ;; 8722 esac 8723 dynamic_linker='Win32 ld.exe' 8724 # FIXME: first we should search . and the directory the executable is in 8725 shlibpath_var=PATH 8726 ;; 8727 8728darwin* | rhapsody*) 8729 dynamic_linker="$host_os dyld" 8730 version_type=darwin 8731 need_lib_prefix=no 8732 need_version=no 8733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8734 soname_spec='${libname}${release}${major}$shared_ext' 8735 shlibpath_overrides_runpath=yes 8736 shlibpath_var=DYLD_LIBRARY_PATH 8737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8739 if test "$GCC" = yes; then 8740 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8741 else 8742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8743 fi 8744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8745 ;; 8746 8747dgux*) 8748 version_type=linux 8749 need_lib_prefix=no 8750 need_version=no 8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8752 soname_spec='${libname}${release}${shared_ext}$major' 8753 shlibpath_var=LD_LIBRARY_PATH 8754 ;; 8755 8756freebsd1*) 8757 dynamic_linker=no 8758 ;; 8759 8760freebsd* | dragonfly*) 8761 # DragonFly does not have aout. When/if they implement a new 8762 # versioning mechanism, adjust this. 8763 if test -x /usr/bin/objformat; then 8764 objformat=`/usr/bin/objformat` 8765 else 8766 case $host_os in 8767 freebsd[123]*) objformat=aout ;; 8768 *) objformat=elf ;; 8769 esac 8770 fi 8771 version_type=freebsd-$objformat 8772 case $version_type in 8773 freebsd-elf*) 8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8775 need_version=no 8776 need_lib_prefix=no 8777 ;; 8778 freebsd-*) 8779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8780 need_version=yes 8781 ;; 8782 esac 8783 shlibpath_var=LD_LIBRARY_PATH 8784 case $host_os in 8785 freebsd2*) 8786 shlibpath_overrides_runpath=yes 8787 ;; 8788 freebsd3.[01]* | freebsdelf3.[01]*) 8789 shlibpath_overrides_runpath=yes 8790 hardcode_into_libs=yes 8791 ;; 8792 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8793 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8794 shlibpath_overrides_runpath=no 8795 hardcode_into_libs=yes 8796 ;; 8797 freebsd*) # from 4.6 on 8798 shlibpath_overrides_runpath=yes 8799 hardcode_into_libs=yes 8800 ;; 8801 esac 8802 ;; 8803 8804gnu*) 8805 version_type=linux 8806 need_lib_prefix=no 8807 need_version=no 8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8809 soname_spec='${libname}${release}${shared_ext}$major' 8810 shlibpath_var=LD_LIBRARY_PATH 8811 hardcode_into_libs=yes 8812 ;; 8813 8814hpux9* | hpux10* | hpux11*) 8815 # Give a soname corresponding to the major version so that dld.sl refuses to 8816 # link against other versions. 8817 version_type=sunos 8818 need_lib_prefix=no 8819 need_version=no 8820 case $host_cpu in 8821 ia64*) 8822 shrext_cmds='.so' 8823 hardcode_into_libs=yes 8824 dynamic_linker="$host_os dld.so" 8825 shlibpath_var=LD_LIBRARY_PATH 8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8828 soname_spec='${libname}${release}${shared_ext}$major' 8829 if test "X$HPUX_IA64_MODE" = X32; then 8830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8831 else 8832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8833 fi 8834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8835 ;; 8836 hppa*64*) 8837 shrext_cmds='.sl' 8838 hardcode_into_libs=yes 8839 dynamic_linker="$host_os dld.sl" 8840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8843 soname_spec='${libname}${release}${shared_ext}$major' 8844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8846 ;; 8847 *) 8848 shrext_cmds='.sl' 8849 dynamic_linker="$host_os dld.sl" 8850 shlibpath_var=SHLIB_PATH 8851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8853 soname_spec='${libname}${release}${shared_ext}$major' 8854 ;; 8855 esac 8856 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8857 postinstall_cmds='chmod 555 $lib' 8858 ;; 8859 8860interix3*) 8861 version_type=linux 8862 need_lib_prefix=no 8863 need_version=no 8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8865 soname_spec='${libname}${release}${shared_ext}$major' 8866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8867 shlibpath_var=LD_LIBRARY_PATH 8868 shlibpath_overrides_runpath=no 8869 hardcode_into_libs=yes 8870 ;; 8871 8872irix5* | irix6* | nonstopux*) 8873 case $host_os in 8874 nonstopux*) version_type=nonstopux ;; 8875 *) 8876 if test "$lt_cv_prog_gnu_ld" = yes; then 8877 version_type=linux 8878 else 8879 version_type=irix 8880 fi ;; 8881 esac 8882 need_lib_prefix=no 8883 need_version=no 8884 soname_spec='${libname}${release}${shared_ext}$major' 8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8886 case $host_os in 8887 irix5* | nonstopux*) 8888 libsuff= shlibsuff= 8889 ;; 8890 *) 8891 case $LD in # libtool.m4 will add one of these switches to LD 8892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8893 libsuff= shlibsuff= libmagic=32-bit;; 8894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8895 libsuff=32 shlibsuff=N32 libmagic=N32;; 8896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8897 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8898 *) libsuff= shlibsuff= libmagic=never-match;; 8899 esac 8900 ;; 8901 esac 8902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8903 shlibpath_overrides_runpath=no 8904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8906 hardcode_into_libs=yes 8907 ;; 8908 8909# No shared lib support for Linux oldld, aout, or coff. 8910linux*oldld* | linux*aout* | linux*coff*) 8911 dynamic_linker=no 8912 ;; 8913 8914# This must be Linux ELF. 8915linux* | k*bsd*-gnu) 8916 version_type=linux 8917 need_lib_prefix=no 8918 need_version=no 8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8920 soname_spec='${libname}${release}${shared_ext}$major' 8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8922 shlibpath_var=LD_LIBRARY_PATH 8923 shlibpath_overrides_runpath=no 8924 # This implies no fast_install, which is unacceptable. 8925 # Some rework will be needed to allow for fast_install 8926 # before this can be enabled. 8927 hardcode_into_libs=yes 8928 8929 # Append ld.so.conf contents to the search path 8930 if test -f /etc/ld.so.conf; then 8931 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8933 fi 8934 8935 # We used to test for /lib/ld.so.1 and disable shared libraries on 8936 # powerpc, because MkLinux only supported shared libraries with the 8937 # GNU dynamic linker. Since this was broken with cross compilers, 8938 # most powerpc-linux boxes support dynamic linking these days and 8939 # people can always --disable-shared, the test was removed, and we 8940 # assume the GNU/Linux dynamic linker is in use. 8941 dynamic_linker='GNU/Linux ld.so' 8942 ;; 8943 8944netbsdelf*-gnu) 8945 version_type=linux 8946 need_lib_prefix=no 8947 need_version=no 8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8949 soname_spec='${libname}${release}${shared_ext}$major' 8950 shlibpath_var=LD_LIBRARY_PATH 8951 shlibpath_overrides_runpath=no 8952 hardcode_into_libs=yes 8953 dynamic_linker='NetBSD ld.elf_so' 8954 ;; 8955 8956netbsd*) 8957 version_type=sunos 8958 need_lib_prefix=no 8959 need_version=no 8960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8963 dynamic_linker='NetBSD (a.out) ld.so' 8964 else 8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8966 soname_spec='${libname}${release}${shared_ext}$major' 8967 dynamic_linker='NetBSD ld.elf_so' 8968 fi 8969 shlibpath_var=LD_LIBRARY_PATH 8970 shlibpath_overrides_runpath=yes 8971 hardcode_into_libs=yes 8972 ;; 8973 8974newsos6) 8975 version_type=linux 8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8977 shlibpath_var=LD_LIBRARY_PATH 8978 shlibpath_overrides_runpath=yes 8979 ;; 8980 8981nto-qnx*) 8982 version_type=linux 8983 need_lib_prefix=no 8984 need_version=no 8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8986 soname_spec='${libname}${release}${shared_ext}$major' 8987 shlibpath_var=LD_LIBRARY_PATH 8988 shlibpath_overrides_runpath=yes 8989 ;; 8990 8991openbsd*) 8992 version_type=sunos 8993 sys_lib_dlsearch_path_spec="/usr/lib" 8994 need_lib_prefix=no 8995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8996 case $host_os in 8997 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8998 *) need_version=no ;; 8999 esac 9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9002 shlibpath_var=LD_LIBRARY_PATH 9003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9004 case $host_os in 9005 openbsd2.[89] | openbsd2.[89].*) 9006 shlibpath_overrides_runpath=no 9007 ;; 9008 *) 9009 shlibpath_overrides_runpath=yes 9010 ;; 9011 esac 9012 else 9013 shlibpath_overrides_runpath=yes 9014 fi 9015 ;; 9016 9017os2*) 9018 libname_spec='$name' 9019 shrext_cmds=".dll" 9020 need_lib_prefix=no 9021 library_names_spec='$libname${shared_ext} $libname.a' 9022 dynamic_linker='OS/2 ld.exe' 9023 shlibpath_var=LIBPATH 9024 ;; 9025 9026osf3* | osf4* | osf5*) 9027 version_type=osf 9028 need_lib_prefix=no 9029 need_version=no 9030 soname_spec='${libname}${release}${shared_ext}$major' 9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9032 shlibpath_var=LD_LIBRARY_PATH 9033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9035 ;; 9036 9037solaris*) 9038 version_type=linux 9039 need_lib_prefix=no 9040 need_version=no 9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9042 soname_spec='${libname}${release}${shared_ext}$major' 9043 shlibpath_var=LD_LIBRARY_PATH 9044 shlibpath_overrides_runpath=yes 9045 hardcode_into_libs=yes 9046 # ldd complains unless libraries are executable 9047 postinstall_cmds='chmod +x $lib' 9048 ;; 9049 9050sunos4*) 9051 version_type=sunos 9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9054 shlibpath_var=LD_LIBRARY_PATH 9055 shlibpath_overrides_runpath=yes 9056 if test "$with_gnu_ld" = yes; then 9057 need_lib_prefix=no 9058 fi 9059 need_version=yes 9060 ;; 9061 9062sysv4 | sysv4.3*) 9063 version_type=linux 9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9065 soname_spec='${libname}${release}${shared_ext}$major' 9066 shlibpath_var=LD_LIBRARY_PATH 9067 case $host_vendor in 9068 sni) 9069 shlibpath_overrides_runpath=no 9070 need_lib_prefix=no 9071 export_dynamic_flag_spec='${wl}-Blargedynsym' 9072 runpath_var=LD_RUN_PATH 9073 ;; 9074 siemens) 9075 need_lib_prefix=no 9076 ;; 9077 motorola) 9078 need_lib_prefix=no 9079 need_version=no 9080 shlibpath_overrides_runpath=no 9081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9082 ;; 9083 esac 9084 ;; 9085 9086sysv4*MP*) 9087 if test -d /usr/nec ;then 9088 version_type=linux 9089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9090 soname_spec='$libname${shared_ext}.$major' 9091 shlibpath_var=LD_LIBRARY_PATH 9092 fi 9093 ;; 9094 9095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9096 version_type=freebsd-elf 9097 need_lib_prefix=no 9098 need_version=no 9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9100 soname_spec='${libname}${release}${shared_ext}$major' 9101 shlibpath_var=LD_LIBRARY_PATH 9102 hardcode_into_libs=yes 9103 if test "$with_gnu_ld" = yes; then 9104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9105 shlibpath_overrides_runpath=no 9106 else 9107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9108 shlibpath_overrides_runpath=yes 9109 case $host_os in 9110 sco3.2v5*) 9111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9112 ;; 9113 esac 9114 fi 9115 sys_lib_dlsearch_path_spec='/usr/lib' 9116 ;; 9117 9118uts4*) 9119 version_type=linux 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9121 soname_spec='${libname}${release}${shared_ext}$major' 9122 shlibpath_var=LD_LIBRARY_PATH 9123 ;; 9124 9125*) 9126 dynamic_linker=no 9127 ;; 9128esac 9129{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9130echo "${ECHO_T}$dynamic_linker" >&6; } 9131test "$dynamic_linker" = no && can_build_shared=no 9132 9133variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9134if test "$GCC" = yes; then 9135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9136fi 9137 9138{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9139echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9140hardcode_action= 9141if test -n "$hardcode_libdir_flag_spec" || \ 9142 test -n "$runpath_var" || \ 9143 test "X$hardcode_automatic" = "Xyes" ; then 9144 9145 # We can hardcode non-existant directories. 9146 if test "$hardcode_direct" != no && 9147 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9148 # have to relink, otherwise we might link with an installed library 9149 # when we should be linking with a yet-to-be-installed one 9150 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9151 test "$hardcode_minus_L" != no; then 9152 # Linking always hardcodes the temporary library directory. 9153 hardcode_action=relink 9154 else 9155 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9156 hardcode_action=immediate 9157 fi 9158else 9159 # We cannot hardcode anything, or else we can only hardcode existing 9160 # directories. 9161 hardcode_action=unsupported 9162fi 9163{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9164echo "${ECHO_T}$hardcode_action" >&6; } 9165 9166if test "$hardcode_action" = relink; then 9167 # Fast installation is not supported 9168 enable_fast_install=no 9169elif test "$shlibpath_overrides_runpath" = yes || 9170 test "$enable_shared" = no; then 9171 # Fast installation is not necessary 9172 enable_fast_install=needless 9173fi 9174 9175striplib= 9176old_striplib= 9177{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9178echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9179if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9180 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9181 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9182 { echo "$as_me:$LINENO: result: yes" >&5 9183echo "${ECHO_T}yes" >&6; } 9184else 9185# FIXME - insert some real tests, host_os isn't really good enough 9186 case $host_os in 9187 darwin*) 9188 if test -n "$STRIP" ; then 9189 striplib="$STRIP -x" 9190 { echo "$as_me:$LINENO: result: yes" >&5 9191echo "${ECHO_T}yes" >&6; } 9192 else 9193 { echo "$as_me:$LINENO: result: no" >&5 9194echo "${ECHO_T}no" >&6; } 9195fi 9196 ;; 9197 *) 9198 { echo "$as_me:$LINENO: result: no" >&5 9199echo "${ECHO_T}no" >&6; } 9200 ;; 9201 esac 9202fi 9203 9204if test "x$enable_dlopen" != xyes; then 9205 enable_dlopen=unknown 9206 enable_dlopen_self=unknown 9207 enable_dlopen_self_static=unknown 9208else 9209 lt_cv_dlopen=no 9210 lt_cv_dlopen_libs= 9211 9212 case $host_os in 9213 beos*) 9214 lt_cv_dlopen="load_add_on" 9215 lt_cv_dlopen_libs= 9216 lt_cv_dlopen_self=yes 9217 ;; 9218 9219 mingw* | pw32*) 9220 lt_cv_dlopen="LoadLibrary" 9221 lt_cv_dlopen_libs= 9222 ;; 9223 9224 cygwin*) 9225 lt_cv_dlopen="dlopen" 9226 lt_cv_dlopen_libs= 9227 ;; 9228 9229 darwin*) 9230 # if libdl is installed we need to link against it 9231 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9232echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9233if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9234 echo $ECHO_N "(cached) $ECHO_C" >&6 9235else 9236 ac_check_lib_save_LIBS=$LIBS 9237LIBS="-ldl $LIBS" 9238cat >conftest.$ac_ext <<_ACEOF 9239/* confdefs.h. */ 9240_ACEOF 9241cat confdefs.h >>conftest.$ac_ext 9242cat >>conftest.$ac_ext <<_ACEOF 9243/* end confdefs.h. */ 9244 9245/* Override any GCC internal prototype to avoid an error. 9246 Use char because int might match the return type of a GCC 9247 builtin and then its argument prototype would still apply. */ 9248#ifdef __cplusplus 9249extern "C" 9250#endif 9251char dlopen (); 9252int 9253main () 9254{ 9255return dlopen (); 9256 ; 9257 return 0; 9258} 9259_ACEOF 9260rm -f conftest.$ac_objext conftest$ac_exeext 9261if { (ac_try="$ac_link" 9262case "(($ac_try" in 9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9264 *) ac_try_echo=$ac_try;; 9265esac 9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9267 (eval "$ac_link") 2>conftest.er1 9268 ac_status=$? 9269 grep -v '^ *+' conftest.er1 >conftest.err 9270 rm -f conftest.er1 9271 cat conftest.err >&5 9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9273 (exit $ac_status); } && { 9274 test -z "$ac_c_werror_flag" || 9275 test ! -s conftest.err 9276 } && test -s conftest$ac_exeext && 9277 $as_test_x conftest$ac_exeext; then 9278 ac_cv_lib_dl_dlopen=yes 9279else 9280 echo "$as_me: failed program was:" >&5 9281sed 's/^/| /' conftest.$ac_ext >&5 9282 9283 ac_cv_lib_dl_dlopen=no 9284fi 9285 9286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9287 conftest$ac_exeext conftest.$ac_ext 9288LIBS=$ac_check_lib_save_LIBS 9289fi 9290{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9291echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9292if test $ac_cv_lib_dl_dlopen = yes; then 9293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9294else 9295 9296 lt_cv_dlopen="dyld" 9297 lt_cv_dlopen_libs= 9298 lt_cv_dlopen_self=yes 9299 9300fi 9301 9302 ;; 9303 9304 *) 9305 { echo "$as_me:$LINENO: checking for shl_load" >&5 9306echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9307if test "${ac_cv_func_shl_load+set}" = set; then 9308 echo $ECHO_N "(cached) $ECHO_C" >&6 9309else 9310 cat >conftest.$ac_ext <<_ACEOF 9311/* confdefs.h. */ 9312_ACEOF 9313cat confdefs.h >>conftest.$ac_ext 9314cat >>conftest.$ac_ext <<_ACEOF 9315/* end confdefs.h. */ 9316/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9318#define shl_load innocuous_shl_load 9319 9320/* System header to define __stub macros and hopefully few prototypes, 9321 which can conflict with char shl_load (); below. 9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9323 <limits.h> exists even on freestanding compilers. */ 9324 9325#ifdef __STDC__ 9326# include <limits.h> 9327#else 9328# include <assert.h> 9329#endif 9330 9331#undef shl_load 9332 9333/* Override any GCC internal prototype to avoid an error. 9334 Use char because int might match the return type of a GCC 9335 builtin and then its argument prototype would still apply. */ 9336#ifdef __cplusplus 9337extern "C" 9338#endif 9339char shl_load (); 9340/* The GNU C library defines this for functions which it implements 9341 to always fail with ENOSYS. Some functions are actually named 9342 something starting with __ and the normal name is an alias. */ 9343#if defined __stub_shl_load || defined __stub___shl_load 9344choke me 9345#endif 9346 9347int 9348main () 9349{ 9350return shl_load (); 9351 ; 9352 return 0; 9353} 9354_ACEOF 9355rm -f conftest.$ac_objext conftest$ac_exeext 9356if { (ac_try="$ac_link" 9357case "(($ac_try" in 9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9359 *) ac_try_echo=$ac_try;; 9360esac 9361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9362 (eval "$ac_link") 2>conftest.er1 9363 ac_status=$? 9364 grep -v '^ *+' conftest.er1 >conftest.err 9365 rm -f conftest.er1 9366 cat conftest.err >&5 9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9368 (exit $ac_status); } && { 9369 test -z "$ac_c_werror_flag" || 9370 test ! -s conftest.err 9371 } && test -s conftest$ac_exeext && 9372 $as_test_x conftest$ac_exeext; then 9373 ac_cv_func_shl_load=yes 9374else 9375 echo "$as_me: failed program was:" >&5 9376sed 's/^/| /' conftest.$ac_ext >&5 9377 9378 ac_cv_func_shl_load=no 9379fi 9380 9381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9382 conftest$ac_exeext conftest.$ac_ext 9383fi 9384{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9385echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9386if test $ac_cv_func_shl_load = yes; then 9387 lt_cv_dlopen="shl_load" 9388else 9389 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9390echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9391if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9392 echo $ECHO_N "(cached) $ECHO_C" >&6 9393else 9394 ac_check_lib_save_LIBS=$LIBS 9395LIBS="-ldld $LIBS" 9396cat >conftest.$ac_ext <<_ACEOF 9397/* confdefs.h. */ 9398_ACEOF 9399cat confdefs.h >>conftest.$ac_ext 9400cat >>conftest.$ac_ext <<_ACEOF 9401/* end confdefs.h. */ 9402 9403/* Override any GCC internal prototype to avoid an error. 9404 Use char because int might match the return type of a GCC 9405 builtin and then its argument prototype would still apply. */ 9406#ifdef __cplusplus 9407extern "C" 9408#endif 9409char shl_load (); 9410int 9411main () 9412{ 9413return shl_load (); 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418rm -f conftest.$ac_objext conftest$ac_exeext 9419if { (ac_try="$ac_link" 9420case "(($ac_try" in 9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9422 *) ac_try_echo=$ac_try;; 9423esac 9424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9425 (eval "$ac_link") 2>conftest.er1 9426 ac_status=$? 9427 grep -v '^ *+' conftest.er1 >conftest.err 9428 rm -f conftest.er1 9429 cat conftest.err >&5 9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9431 (exit $ac_status); } && { 9432 test -z "$ac_c_werror_flag" || 9433 test ! -s conftest.err 9434 } && test -s conftest$ac_exeext && 9435 $as_test_x conftest$ac_exeext; then 9436 ac_cv_lib_dld_shl_load=yes 9437else 9438 echo "$as_me: failed program was:" >&5 9439sed 's/^/| /' conftest.$ac_ext >&5 9440 9441 ac_cv_lib_dld_shl_load=no 9442fi 9443 9444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9445 conftest$ac_exeext conftest.$ac_ext 9446LIBS=$ac_check_lib_save_LIBS 9447fi 9448{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9449echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9450if test $ac_cv_lib_dld_shl_load = yes; then 9451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9452else 9453 { echo "$as_me:$LINENO: checking for dlopen" >&5 9454echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9455if test "${ac_cv_func_dlopen+set}" = set; then 9456 echo $ECHO_N "(cached) $ECHO_C" >&6 9457else 9458 cat >conftest.$ac_ext <<_ACEOF 9459/* confdefs.h. */ 9460_ACEOF 9461cat confdefs.h >>conftest.$ac_ext 9462cat >>conftest.$ac_ext <<_ACEOF 9463/* end confdefs.h. */ 9464/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9466#define dlopen innocuous_dlopen 9467 9468/* System header to define __stub macros and hopefully few prototypes, 9469 which can conflict with char dlopen (); below. 9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9471 <limits.h> exists even on freestanding compilers. */ 9472 9473#ifdef __STDC__ 9474# include <limits.h> 9475#else 9476# include <assert.h> 9477#endif 9478 9479#undef dlopen 9480 9481/* Override any GCC internal prototype to avoid an error. 9482 Use char because int might match the return type of a GCC 9483 builtin and then its argument prototype would still apply. */ 9484#ifdef __cplusplus 9485extern "C" 9486#endif 9487char dlopen (); 9488/* The GNU C library defines this for functions which it implements 9489 to always fail with ENOSYS. Some functions are actually named 9490 something starting with __ and the normal name is an alias. */ 9491#if defined __stub_dlopen || defined __stub___dlopen 9492choke me 9493#endif 9494 9495int 9496main () 9497{ 9498return dlopen (); 9499 ; 9500 return 0; 9501} 9502_ACEOF 9503rm -f conftest.$ac_objext conftest$ac_exeext 9504if { (ac_try="$ac_link" 9505case "(($ac_try" in 9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9507 *) ac_try_echo=$ac_try;; 9508esac 9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9510 (eval "$ac_link") 2>conftest.er1 9511 ac_status=$? 9512 grep -v '^ *+' conftest.er1 >conftest.err 9513 rm -f conftest.er1 9514 cat conftest.err >&5 9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9516 (exit $ac_status); } && { 9517 test -z "$ac_c_werror_flag" || 9518 test ! -s conftest.err 9519 } && test -s conftest$ac_exeext && 9520 $as_test_x conftest$ac_exeext; then 9521 ac_cv_func_dlopen=yes 9522else 9523 echo "$as_me: failed program was:" >&5 9524sed 's/^/| /' conftest.$ac_ext >&5 9525 9526 ac_cv_func_dlopen=no 9527fi 9528 9529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9530 conftest$ac_exeext conftest.$ac_ext 9531fi 9532{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9533echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9534if test $ac_cv_func_dlopen = yes; then 9535 lt_cv_dlopen="dlopen" 9536else 9537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9539if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9540 echo $ECHO_N "(cached) $ECHO_C" >&6 9541else 9542 ac_check_lib_save_LIBS=$LIBS 9543LIBS="-ldl $LIBS" 9544cat >conftest.$ac_ext <<_ACEOF 9545/* confdefs.h. */ 9546_ACEOF 9547cat confdefs.h >>conftest.$ac_ext 9548cat >>conftest.$ac_ext <<_ACEOF 9549/* end confdefs.h. */ 9550 9551/* Override any GCC internal prototype to avoid an error. 9552 Use char because int might match the return type of a GCC 9553 builtin and then its argument prototype would still apply. */ 9554#ifdef __cplusplus 9555extern "C" 9556#endif 9557char dlopen (); 9558int 9559main () 9560{ 9561return dlopen (); 9562 ; 9563 return 0; 9564} 9565_ACEOF 9566rm -f conftest.$ac_objext conftest$ac_exeext 9567if { (ac_try="$ac_link" 9568case "(($ac_try" in 9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9570 *) ac_try_echo=$ac_try;; 9571esac 9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9573 (eval "$ac_link") 2>conftest.er1 9574 ac_status=$? 9575 grep -v '^ *+' conftest.er1 >conftest.err 9576 rm -f conftest.er1 9577 cat conftest.err >&5 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9579 (exit $ac_status); } && { 9580 test -z "$ac_c_werror_flag" || 9581 test ! -s conftest.err 9582 } && test -s conftest$ac_exeext && 9583 $as_test_x conftest$ac_exeext; then 9584 ac_cv_lib_dl_dlopen=yes 9585else 9586 echo "$as_me: failed program was:" >&5 9587sed 's/^/| /' conftest.$ac_ext >&5 9588 9589 ac_cv_lib_dl_dlopen=no 9590fi 9591 9592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9593 conftest$ac_exeext conftest.$ac_ext 9594LIBS=$ac_check_lib_save_LIBS 9595fi 9596{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9598if test $ac_cv_lib_dl_dlopen = yes; then 9599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9600else 9601 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9602echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9603if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9604 echo $ECHO_N "(cached) $ECHO_C" >&6 9605else 9606 ac_check_lib_save_LIBS=$LIBS 9607LIBS="-lsvld $LIBS" 9608cat >conftest.$ac_ext <<_ACEOF 9609/* confdefs.h. */ 9610_ACEOF 9611cat confdefs.h >>conftest.$ac_ext 9612cat >>conftest.$ac_ext <<_ACEOF 9613/* end confdefs.h. */ 9614 9615/* Override any GCC internal prototype to avoid an error. 9616 Use char because int might match the return type of a GCC 9617 builtin and then its argument prototype would still apply. */ 9618#ifdef __cplusplus 9619extern "C" 9620#endif 9621char dlopen (); 9622int 9623main () 9624{ 9625return dlopen (); 9626 ; 9627 return 0; 9628} 9629_ACEOF 9630rm -f conftest.$ac_objext conftest$ac_exeext 9631if { (ac_try="$ac_link" 9632case "(($ac_try" in 9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9634 *) ac_try_echo=$ac_try;; 9635esac 9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9637 (eval "$ac_link") 2>conftest.er1 9638 ac_status=$? 9639 grep -v '^ *+' conftest.er1 >conftest.err 9640 rm -f conftest.er1 9641 cat conftest.err >&5 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 (exit $ac_status); } && { 9644 test -z "$ac_c_werror_flag" || 9645 test ! -s conftest.err 9646 } && test -s conftest$ac_exeext && 9647 $as_test_x conftest$ac_exeext; then 9648 ac_cv_lib_svld_dlopen=yes 9649else 9650 echo "$as_me: failed program was:" >&5 9651sed 's/^/| /' conftest.$ac_ext >&5 9652 9653 ac_cv_lib_svld_dlopen=no 9654fi 9655 9656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9657 conftest$ac_exeext conftest.$ac_ext 9658LIBS=$ac_check_lib_save_LIBS 9659fi 9660{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9661echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9662if test $ac_cv_lib_svld_dlopen = yes; then 9663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9664else 9665 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9666echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9667if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9668 echo $ECHO_N "(cached) $ECHO_C" >&6 9669else 9670 ac_check_lib_save_LIBS=$LIBS 9671LIBS="-ldld $LIBS" 9672cat >conftest.$ac_ext <<_ACEOF 9673/* confdefs.h. */ 9674_ACEOF 9675cat confdefs.h >>conftest.$ac_ext 9676cat >>conftest.$ac_ext <<_ACEOF 9677/* end confdefs.h. */ 9678 9679/* Override any GCC internal prototype to avoid an error. 9680 Use char because int might match the return type of a GCC 9681 builtin and then its argument prototype would still apply. */ 9682#ifdef __cplusplus 9683extern "C" 9684#endif 9685char dld_link (); 9686int 9687main () 9688{ 9689return dld_link (); 9690 ; 9691 return 0; 9692} 9693_ACEOF 9694rm -f conftest.$ac_objext conftest$ac_exeext 9695if { (ac_try="$ac_link" 9696case "(($ac_try" in 9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9698 *) ac_try_echo=$ac_try;; 9699esac 9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9701 (eval "$ac_link") 2>conftest.er1 9702 ac_status=$? 9703 grep -v '^ *+' conftest.er1 >conftest.err 9704 rm -f conftest.er1 9705 cat conftest.err >&5 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); } && { 9708 test -z "$ac_c_werror_flag" || 9709 test ! -s conftest.err 9710 } && test -s conftest$ac_exeext && 9711 $as_test_x conftest$ac_exeext; then 9712 ac_cv_lib_dld_dld_link=yes 9713else 9714 echo "$as_me: failed program was:" >&5 9715sed 's/^/| /' conftest.$ac_ext >&5 9716 9717 ac_cv_lib_dld_dld_link=no 9718fi 9719 9720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9721 conftest$ac_exeext conftest.$ac_ext 9722LIBS=$ac_check_lib_save_LIBS 9723fi 9724{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9725echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9726if test $ac_cv_lib_dld_dld_link = yes; then 9727 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9728fi 9729 9730 9731fi 9732 9733 9734fi 9735 9736 9737fi 9738 9739 9740fi 9741 9742 9743fi 9744 9745 ;; 9746 esac 9747 9748 if test "x$lt_cv_dlopen" != xno; then 9749 enable_dlopen=yes 9750 else 9751 enable_dlopen=no 9752 fi 9753 9754 case $lt_cv_dlopen in 9755 dlopen) 9756 save_CPPFLAGS="$CPPFLAGS" 9757 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9758 9759 save_LDFLAGS="$LDFLAGS" 9760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9761 9762 save_LIBS="$LIBS" 9763 LIBS="$lt_cv_dlopen_libs $LIBS" 9764 9765 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9766echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9767if test "${lt_cv_dlopen_self+set}" = set; then 9768 echo $ECHO_N "(cached) $ECHO_C" >&6 9769else 9770 if test "$cross_compiling" = yes; then : 9771 lt_cv_dlopen_self=cross 9772else 9773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9774 lt_status=$lt_dlunknown 9775 cat > conftest.$ac_ext <<EOF 9776#line 9776 "configure" 9777#include "confdefs.h" 9778 9779#if HAVE_DLFCN_H 9780#include <dlfcn.h> 9781#endif 9782 9783#include <stdio.h> 9784 9785#ifdef RTLD_GLOBAL 9786# define LT_DLGLOBAL RTLD_GLOBAL 9787#else 9788# ifdef DL_GLOBAL 9789# define LT_DLGLOBAL DL_GLOBAL 9790# else 9791# define LT_DLGLOBAL 0 9792# endif 9793#endif 9794 9795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9796 find out it does not work in some platform. */ 9797#ifndef LT_DLLAZY_OR_NOW 9798# ifdef RTLD_LAZY 9799# define LT_DLLAZY_OR_NOW RTLD_LAZY 9800# else 9801# ifdef DL_LAZY 9802# define LT_DLLAZY_OR_NOW DL_LAZY 9803# else 9804# ifdef RTLD_NOW 9805# define LT_DLLAZY_OR_NOW RTLD_NOW 9806# else 9807# ifdef DL_NOW 9808# define LT_DLLAZY_OR_NOW DL_NOW 9809# else 9810# define LT_DLLAZY_OR_NOW 0 9811# endif 9812# endif 9813# endif 9814# endif 9815#endif 9816 9817#ifdef __cplusplus 9818extern "C" void exit (int); 9819#endif 9820 9821void fnord() { int i=42;} 9822int main () 9823{ 9824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9825 int status = $lt_dlunknown; 9826 9827 if (self) 9828 { 9829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9830 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9831 /* dlclose (self); */ 9832 } 9833 else 9834 puts (dlerror ()); 9835 9836 exit (status); 9837} 9838EOF 9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9840 (eval $ac_link) 2>&5 9841 ac_status=$? 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9844 (./conftest; exit; ) >&5 2>/dev/null 9845 lt_status=$? 9846 case x$lt_status in 9847 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9848 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9849 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9850 esac 9851 else : 9852 # compilation failed 9853 lt_cv_dlopen_self=no 9854 fi 9855fi 9856rm -fr conftest* 9857 9858 9859fi 9860{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9861echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9862 9863 if test "x$lt_cv_dlopen_self" = xyes; then 9864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9865 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9866echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9867if test "${lt_cv_dlopen_self_static+set}" = set; then 9868 echo $ECHO_N "(cached) $ECHO_C" >&6 9869else 9870 if test "$cross_compiling" = yes; then : 9871 lt_cv_dlopen_self_static=cross 9872else 9873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9874 lt_status=$lt_dlunknown 9875 cat > conftest.$ac_ext <<EOF 9876#line 9876 "configure" 9877#include "confdefs.h" 9878 9879#if HAVE_DLFCN_H 9880#include <dlfcn.h> 9881#endif 9882 9883#include <stdio.h> 9884 9885#ifdef RTLD_GLOBAL 9886# define LT_DLGLOBAL RTLD_GLOBAL 9887#else 9888# ifdef DL_GLOBAL 9889# define LT_DLGLOBAL DL_GLOBAL 9890# else 9891# define LT_DLGLOBAL 0 9892# endif 9893#endif 9894 9895/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9896 find out it does not work in some platform. */ 9897#ifndef LT_DLLAZY_OR_NOW 9898# ifdef RTLD_LAZY 9899# define LT_DLLAZY_OR_NOW RTLD_LAZY 9900# else 9901# ifdef DL_LAZY 9902# define LT_DLLAZY_OR_NOW DL_LAZY 9903# else 9904# ifdef RTLD_NOW 9905# define LT_DLLAZY_OR_NOW RTLD_NOW 9906# else 9907# ifdef DL_NOW 9908# define LT_DLLAZY_OR_NOW DL_NOW 9909# else 9910# define LT_DLLAZY_OR_NOW 0 9911# endif 9912# endif 9913# endif 9914# endif 9915#endif 9916 9917#ifdef __cplusplus 9918extern "C" void exit (int); 9919#endif 9920 9921void fnord() { int i=42;} 9922int main () 9923{ 9924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9925 int status = $lt_dlunknown; 9926 9927 if (self) 9928 { 9929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9930 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9931 /* dlclose (self); */ 9932 } 9933 else 9934 puts (dlerror ()); 9935 9936 exit (status); 9937} 9938EOF 9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9940 (eval $ac_link) 2>&5 9941 ac_status=$? 9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9944 (./conftest; exit; ) >&5 2>/dev/null 9945 lt_status=$? 9946 case x$lt_status in 9947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9950 esac 9951 else : 9952 # compilation failed 9953 lt_cv_dlopen_self_static=no 9954 fi 9955fi 9956rm -fr conftest* 9957 9958 9959fi 9960{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9961echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9962 fi 9963 9964 CPPFLAGS="$save_CPPFLAGS" 9965 LDFLAGS="$save_LDFLAGS" 9966 LIBS="$save_LIBS" 9967 ;; 9968 esac 9969 9970 case $lt_cv_dlopen_self in 9971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9972 *) enable_dlopen_self=unknown ;; 9973 esac 9974 9975 case $lt_cv_dlopen_self_static in 9976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9977 *) enable_dlopen_self_static=unknown ;; 9978 esac 9979fi 9980 9981 9982# Report which library types will actually be built 9983{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9984echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9985{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9986echo "${ECHO_T}$can_build_shared" >&6; } 9987 9988{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9989echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9990test "$can_build_shared" = "no" && enable_shared=no 9991 9992# On AIX, shared libraries and static libraries use the same namespace, and 9993# are all built from PIC. 9994case $host_os in 9995aix3*) 9996 test "$enable_shared" = yes && enable_static=no 9997 if test -n "$RANLIB"; then 9998 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9999 postinstall_cmds='$RANLIB $lib' 10000 fi 10001 ;; 10002 10003aix4* | aix5*) 10004 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10005 test "$enable_shared" = yes && enable_static=no 10006 fi 10007 ;; 10008esac 10009{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10010echo "${ECHO_T}$enable_shared" >&6; } 10011 10012{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10013echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10014# Make sure either enable_shared or enable_static is yes. 10015test "$enable_shared" = yes || enable_static=yes 10016{ echo "$as_me:$LINENO: result: $enable_static" >&5 10017echo "${ECHO_T}$enable_static" >&6; } 10018 10019# The else clause should only fire when bootstrapping the 10020# libtool distribution, otherwise you forgot to ship ltmain.sh 10021# with your package, and you will get complaints that there are 10022# no rules to generate ltmain.sh. 10023if test -f "$ltmain"; then 10024 # See if we are running on zsh, and set the options which allow our commands through 10025 # without removal of \ escapes. 10026 if test -n "${ZSH_VERSION+set}" ; then 10027 setopt NO_GLOB_SUBST 10028 fi 10029 # Now quote all the things that may contain metacharacters while being 10030 # careful not to overquote the AC_SUBSTed values. We take copies of the 10031 # variables and quote the copies for generation of the libtool script. 10032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10033 SED SHELL STRIP \ 10034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10036 deplibs_check_method reload_flag reload_cmds need_locks \ 10037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10038 lt_cv_sys_global_symbol_to_c_name_address \ 10039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10040 old_postinstall_cmds old_postuninstall_cmds \ 10041 compiler \ 10042 CC \ 10043 LD \ 10044 lt_prog_compiler_wl \ 10045 lt_prog_compiler_pic \ 10046 lt_prog_compiler_static \ 10047 lt_prog_compiler_no_builtin_flag \ 10048 export_dynamic_flag_spec \ 10049 thread_safe_flag_spec \ 10050 whole_archive_flag_spec \ 10051 enable_shared_with_static_runtimes \ 10052 old_archive_cmds \ 10053 old_archive_from_new_cmds \ 10054 predep_objects \ 10055 postdep_objects \ 10056 predeps \ 10057 postdeps \ 10058 compiler_lib_search_path \ 10059 archive_cmds \ 10060 archive_expsym_cmds \ 10061 postinstall_cmds \ 10062 postuninstall_cmds \ 10063 old_archive_from_expsyms_cmds \ 10064 allow_undefined_flag \ 10065 no_undefined_flag \ 10066 export_symbols_cmds \ 10067 hardcode_libdir_flag_spec \ 10068 hardcode_libdir_flag_spec_ld \ 10069 hardcode_libdir_separator \ 10070 hardcode_automatic \ 10071 module_cmds \ 10072 module_expsym_cmds \ 10073 lt_cv_prog_compiler_c_o \ 10074 exclude_expsyms \ 10075 include_expsyms; do 10076 10077 case $var in 10078 old_archive_cmds | \ 10079 old_archive_from_new_cmds | \ 10080 archive_cmds | \ 10081 archive_expsym_cmds | \ 10082 module_cmds | \ 10083 module_expsym_cmds | \ 10084 old_archive_from_expsyms_cmds | \ 10085 export_symbols_cmds | \ 10086 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10087 postinstall_cmds | postuninstall_cmds | \ 10088 old_postinstall_cmds | old_postuninstall_cmds | \ 10089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10090 # Double-quote double-evaled strings. 10091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10092 ;; 10093 *) 10094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10095 ;; 10096 esac 10097 done 10098 10099 case $lt_echo in 10100 *'\$0 --fallback-echo"') 10101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10102 ;; 10103 esac 10104 10105cfgfile="${ofile}T" 10106 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10107 $rm -f "$cfgfile" 10108 { echo "$as_me:$LINENO: creating $ofile" >&5 10109echo "$as_me: creating $ofile" >&6;} 10110 10111 cat <<__EOF__ >> "$cfgfile" 10112#! $SHELL 10113 10114# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10115# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10116# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10117# 10118# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10119# Free Software Foundation, Inc. 10120# 10121# This file is part of GNU Libtool: 10122# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10123# 10124# This program is free software; you can redistribute it and/or modify 10125# it under the terms of the GNU General Public License as published by 10126# the Free Software Foundation; either version 2 of the License, or 10127# (at your option) any later version. 10128# 10129# This program is distributed in the hope that it will be useful, but 10130# WITHOUT ANY WARRANTY; without even the implied warranty of 10131# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10132# General Public License for more details. 10133# 10134# You should have received a copy of the GNU General Public License 10135# along with this program; if not, write to the Free Software 10136# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10137# 10138# As a special exception to the GNU General Public License, if you 10139# distribute this file as part of a program that contains a 10140# configuration script generated by Autoconf, you may include it under 10141# the same distribution terms that you use for the rest of that program. 10142 10143# A sed program that does not truncate output. 10144SED=$lt_SED 10145 10146# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10147Xsed="$SED -e 1s/^X//" 10148 10149# The HP-UX ksh and POSIX shell print the target directory to stdout 10150# if CDPATH is set. 10151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10152 10153# The names of the tagged configurations supported by this script. 10154available_tags= 10155 10156# ### BEGIN LIBTOOL CONFIG 10157 10158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10159 10160# Shell to use when invoking shell scripts. 10161SHELL=$lt_SHELL 10162 10163# Whether or not to build shared libraries. 10164build_libtool_libs=$enable_shared 10165 10166# Whether or not to build static libraries. 10167build_old_libs=$enable_static 10168 10169# Whether or not to add -lc for building shared libraries. 10170build_libtool_need_lc=$archive_cmds_need_lc 10171 10172# Whether or not to disallow shared libs when runtime libs are static 10173allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10174 10175# Whether or not to optimize for fast installation. 10176fast_install=$enable_fast_install 10177 10178# The host system. 10179host_alias=$host_alias 10180host=$host 10181host_os=$host_os 10182 10183# The build system. 10184build_alias=$build_alias 10185build=$build 10186build_os=$build_os 10187 10188# An echo program that does not interpret backslashes. 10189echo=$lt_echo 10190 10191# The archiver. 10192AR=$lt_AR 10193AR_FLAGS=$lt_AR_FLAGS 10194 10195# A C compiler. 10196LTCC=$lt_LTCC 10197 10198# LTCC compiler flags. 10199LTCFLAGS=$lt_LTCFLAGS 10200 10201# A language-specific compiler. 10202CC=$lt_compiler 10203 10204# Is the compiler the GNU C compiler? 10205with_gcc=$GCC 10206 10207# An ERE matcher. 10208EGREP=$lt_EGREP 10209 10210# The linker used to build libraries. 10211LD=$lt_LD 10212 10213# Whether we need hard or soft links. 10214LN_S=$lt_LN_S 10215 10216# A BSD-compatible nm program. 10217NM=$lt_NM 10218 10219# A symbol stripping program 10220STRIP=$lt_STRIP 10221 10222# Used to examine libraries when file_magic_cmd begins "file" 10223MAGIC_CMD=$MAGIC_CMD 10224 10225# Used on cygwin: DLL creation program. 10226DLLTOOL="$DLLTOOL" 10227 10228# Used on cygwin: object dumper. 10229OBJDUMP="$OBJDUMP" 10230 10231# Used on cygwin: assembler. 10232AS="$AS" 10233 10234# The name of the directory that contains temporary libtool files. 10235objdir=$objdir 10236 10237# How to create reloadable object files. 10238reload_flag=$lt_reload_flag 10239reload_cmds=$lt_reload_cmds 10240 10241# How to pass a linker flag through the compiler. 10242wl=$lt_lt_prog_compiler_wl 10243 10244# Object file suffix (normally "o"). 10245objext="$ac_objext" 10246 10247# Old archive suffix (normally "a"). 10248libext="$libext" 10249 10250# Shared library suffix (normally ".so"). 10251shrext_cmds='$shrext_cmds' 10252 10253# Executable file suffix (normally ""). 10254exeext="$exeext" 10255 10256# Additional compiler flags for building library objects. 10257pic_flag=$lt_lt_prog_compiler_pic 10258pic_mode=$pic_mode 10259 10260# What is the maximum length of a command? 10261max_cmd_len=$lt_cv_sys_max_cmd_len 10262 10263# Does compiler simultaneously support -c and -o options? 10264compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10265 10266# Must we lock files when doing compilation? 10267need_locks=$lt_need_locks 10268 10269# Do we need the lib prefix for modules? 10270need_lib_prefix=$need_lib_prefix 10271 10272# Do we need a version for libraries? 10273need_version=$need_version 10274 10275# Whether dlopen is supported. 10276dlopen_support=$enable_dlopen 10277 10278# Whether dlopen of programs is supported. 10279dlopen_self=$enable_dlopen_self 10280 10281# Whether dlopen of statically linked programs is supported. 10282dlopen_self_static=$enable_dlopen_self_static 10283 10284# Compiler flag to prevent dynamic linking. 10285link_static_flag=$lt_lt_prog_compiler_static 10286 10287# Compiler flag to turn off builtin functions. 10288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10289 10290# Compiler flag to allow reflexive dlopens. 10291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10292 10293# Compiler flag to generate shared objects directly from archives. 10294whole_archive_flag_spec=$lt_whole_archive_flag_spec 10295 10296# Compiler flag to generate thread-safe objects. 10297thread_safe_flag_spec=$lt_thread_safe_flag_spec 10298 10299# Library versioning type. 10300version_type=$version_type 10301 10302# Format of library name prefix. 10303libname_spec=$lt_libname_spec 10304 10305# List of archive names. First name is the real one, the rest are links. 10306# The last name is the one that the linker finds with -lNAME. 10307library_names_spec=$lt_library_names_spec 10308 10309# The coded name of the library, if different from the real name. 10310soname_spec=$lt_soname_spec 10311 10312# Commands used to build and install an old-style archive. 10313RANLIB=$lt_RANLIB 10314old_archive_cmds=$lt_old_archive_cmds 10315old_postinstall_cmds=$lt_old_postinstall_cmds 10316old_postuninstall_cmds=$lt_old_postuninstall_cmds 10317 10318# Create an old-style archive from a shared archive. 10319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10320 10321# Create a temporary old-style archive to link instead of a shared archive. 10322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10323 10324# Commands used to build and install a shared archive. 10325archive_cmds=$lt_archive_cmds 10326archive_expsym_cmds=$lt_archive_expsym_cmds 10327postinstall_cmds=$lt_postinstall_cmds 10328postuninstall_cmds=$lt_postuninstall_cmds 10329 10330# Commands used to build a loadable module (assumed same as above if empty) 10331module_cmds=$lt_module_cmds 10332module_expsym_cmds=$lt_module_expsym_cmds 10333 10334# Commands to strip libraries. 10335old_striplib=$lt_old_striplib 10336striplib=$lt_striplib 10337 10338# Dependencies to place before the objects being linked to create a 10339# shared library. 10340predep_objects=$lt_predep_objects 10341 10342# Dependencies to place after the objects being linked to create a 10343# shared library. 10344postdep_objects=$lt_postdep_objects 10345 10346# Dependencies to place before the objects being linked to create a 10347# shared library. 10348predeps=$lt_predeps 10349 10350# Dependencies to place after the objects being linked to create a 10351# shared library. 10352postdeps=$lt_postdeps 10353 10354# The library search path used internally by the compiler when linking 10355# a shared library. 10356compiler_lib_search_path=$lt_compiler_lib_search_path 10357 10358# Method to check whether dependent libraries are shared objects. 10359deplibs_check_method=$lt_deplibs_check_method 10360 10361# Command to use when deplibs_check_method == file_magic. 10362file_magic_cmd=$lt_file_magic_cmd 10363 10364# Flag that allows shared libraries with undefined symbols to be built. 10365allow_undefined_flag=$lt_allow_undefined_flag 10366 10367# Flag that forces no undefined symbols. 10368no_undefined_flag=$lt_no_undefined_flag 10369 10370# Commands used to finish a libtool library installation in a directory. 10371finish_cmds=$lt_finish_cmds 10372 10373# Same as above, but a single script fragment to be evaled but not shown. 10374finish_eval=$lt_finish_eval 10375 10376# Take the output of nm and produce a listing of raw symbols and C names. 10377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10378 10379# Transform the output of nm in a proper C declaration 10380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10381 10382# Transform the output of nm in a C name address pair 10383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10384 10385# This is the shared library runtime path variable. 10386runpath_var=$runpath_var 10387 10388# This is the shared library path variable. 10389shlibpath_var=$shlibpath_var 10390 10391# Is shlibpath searched before the hard-coded library search path? 10392shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10393 10394# How to hardcode a shared library path into an executable. 10395hardcode_action=$hardcode_action 10396 10397# Whether we should hardcode library paths into libraries. 10398hardcode_into_libs=$hardcode_into_libs 10399 10400# Flag to hardcode \$libdir into a binary during linking. 10401# This must work even if \$libdir does not exist. 10402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10403 10404# If ld is used when linking, flag to hardcode \$libdir into 10405# a binary during linking. This must work even if \$libdir does 10406# not exist. 10407hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10408 10409# Whether we need a single -rpath flag with a separated argument. 10410hardcode_libdir_separator=$lt_hardcode_libdir_separator 10411 10412# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10413# resulting binary. 10414hardcode_direct=$hardcode_direct 10415 10416# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10417# resulting binary. 10418hardcode_minus_L=$hardcode_minus_L 10419 10420# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10421# the resulting binary. 10422hardcode_shlibpath_var=$hardcode_shlibpath_var 10423 10424# Set to yes if building a shared library automatically hardcodes DIR into the library 10425# and all subsequent libraries and executables linked against it. 10426hardcode_automatic=$hardcode_automatic 10427 10428# Variables whose values should be saved in libtool wrapper scripts and 10429# restored at relink time. 10430variables_saved_for_relink="$variables_saved_for_relink" 10431 10432# Whether libtool must link a program against all its dependency libraries. 10433link_all_deplibs=$link_all_deplibs 10434 10435# Compile-time system search path for libraries 10436sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10437 10438# Run-time system search path for libraries 10439sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10440 10441# Fix the shell variable \$srcfile for the compiler. 10442fix_srcfile_path="$fix_srcfile_path" 10443 10444# Set to yes if exported symbols are required. 10445always_export_symbols=$always_export_symbols 10446 10447# The commands to list exported symbols. 10448export_symbols_cmds=$lt_export_symbols_cmds 10449 10450# The commands to extract the exported symbol list from a shared archive. 10451extract_expsyms_cmds=$lt_extract_expsyms_cmds 10452 10453# Symbols that should not be listed in the preloaded symbols. 10454exclude_expsyms=$lt_exclude_expsyms 10455 10456# Symbols that must always be exported. 10457include_expsyms=$lt_include_expsyms 10458 10459# ### END LIBTOOL CONFIG 10460 10461__EOF__ 10462 10463 10464 case $host_os in 10465 aix3*) 10466 cat <<\EOF >> "$cfgfile" 10467 10468# AIX sometimes has problems with the GCC collect2 program. For some 10469# reason, if we set the COLLECT_NAMES environment variable, the problems 10470# vanish in a puff of smoke. 10471if test "X${COLLECT_NAMES+set}" != Xset; then 10472 COLLECT_NAMES= 10473 export COLLECT_NAMES 10474fi 10475EOF 10476 ;; 10477 esac 10478 10479 # We use sed instead of cat because bash on DJGPP gets confused if 10480 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10481 # text mode, it properly converts lines to CR/LF. This bash problem 10482 # is reportedly fixed, but why not run on old versions too? 10483 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10484 10485 mv -f "$cfgfile" "$ofile" || \ 10486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10487 chmod +x "$ofile" 10488 10489else 10490 # If there is no Makefile yet, we rely on a make rule to execute 10491 # `config.status --recheck' to rerun these tests and create the 10492 # libtool script then. 10493 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10494 if test -f "$ltmain_in"; then 10495 test -f Makefile && make "$ltmain" 10496 fi 10497fi 10498 10499 10500ac_ext=c 10501ac_cpp='$CPP $CPPFLAGS' 10502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10504ac_compiler_gnu=$ac_cv_c_compiler_gnu 10505 10506CC="$lt_save_CC" 10507 10508 10509# Check whether --with-tags was given. 10510if test "${with_tags+set}" = set; then 10511 withval=$with_tags; tagnames="$withval" 10512fi 10513 10514 10515if test -f "$ltmain" && test -n "$tagnames"; then 10516 if test ! -f "${ofile}"; then 10517 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10518echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10519 fi 10520 10521 if test -z "$LTCC"; then 10522 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10523 if test -z "$LTCC"; then 10524 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10525echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10526 else 10527 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10528echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10529 fi 10530 fi 10531 if test -z "$LTCFLAGS"; then 10532 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10533 fi 10534 10535 # Extract list of available tagged configurations in $ofile. 10536 # Note that this assumes the entire list is on one line. 10537 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10538 10539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10540 for tagname in $tagnames; do 10541 IFS="$lt_save_ifs" 10542 # Check whether tagname contains only valid characters 10543 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10544 "") ;; 10545 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10546echo "$as_me: error: invalid tag name: $tagname" >&2;} 10547 { (exit 1); exit 1; }; } 10548 ;; 10549 esac 10550 10551 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10552 then 10553 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10554echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10555 { (exit 1); exit 1; }; } 10556 fi 10557 10558 # Update the list of available tags. 10559 if test -n "$tagname"; then 10560 echo appending configuration tag \"$tagname\" to $ofile 10561 10562 case $tagname in 10563 CXX) 10564 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10566 (test "X$CXX" != "Xg++"))) ; then 10567 ac_ext=cpp 10568ac_cpp='$CXXCPP $CPPFLAGS' 10569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10572 10573 10574 10575 10576archive_cmds_need_lc_CXX=no 10577allow_undefined_flag_CXX= 10578always_export_symbols_CXX=no 10579archive_expsym_cmds_CXX= 10580export_dynamic_flag_spec_CXX= 10581hardcode_direct_CXX=no 10582hardcode_libdir_flag_spec_CXX= 10583hardcode_libdir_flag_spec_ld_CXX= 10584hardcode_libdir_separator_CXX= 10585hardcode_minus_L_CXX=no 10586hardcode_shlibpath_var_CXX=unsupported 10587hardcode_automatic_CXX=no 10588module_cmds_CXX= 10589module_expsym_cmds_CXX= 10590link_all_deplibs_CXX=unknown 10591old_archive_cmds_CXX=$old_archive_cmds 10592no_undefined_flag_CXX= 10593whole_archive_flag_spec_CXX= 10594enable_shared_with_static_runtimes_CXX=no 10595 10596# Dependencies to place before and after the object being linked: 10597predep_objects_CXX= 10598postdep_objects_CXX= 10599predeps_CXX= 10600postdeps_CXX= 10601compiler_lib_search_path_CXX= 10602 10603# Source file extension for C++ test sources. 10604ac_ext=cpp 10605 10606# Object file extension for compiled C++ test sources. 10607objext=o 10608objext_CXX=$objext 10609 10610# Code to be used in simple compile tests 10611lt_simple_compile_test_code="int some_variable = 0;\n" 10612 10613# Code to be used in simple link tests 10614lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10615 10616# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10617 10618# If no C compiler was specified, use CC. 10619LTCC=${LTCC-"$CC"} 10620 10621# If no C compiler flags were specified, use CFLAGS. 10622LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10623 10624# Allow CC to be a program name with arguments. 10625compiler=$CC 10626 10627 10628# save warnings/boilerplate of simple test code 10629ac_outfile=conftest.$ac_objext 10630printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10631eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10632_lt_compiler_boilerplate=`cat conftest.err` 10633$rm conftest* 10634 10635ac_outfile=conftest.$ac_objext 10636printf "$lt_simple_link_test_code" >conftest.$ac_ext 10637eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10638_lt_linker_boilerplate=`cat conftest.err` 10639$rm conftest* 10640 10641 10642# Allow CC to be a program name with arguments. 10643lt_save_CC=$CC 10644lt_save_LD=$LD 10645lt_save_GCC=$GCC 10646GCC=$GXX 10647lt_save_with_gnu_ld=$with_gnu_ld 10648lt_save_path_LD=$lt_cv_path_LD 10649if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10650 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10651else 10652 $as_unset lt_cv_prog_gnu_ld 10653fi 10654if test -n "${lt_cv_path_LDCXX+set}"; then 10655 lt_cv_path_LD=$lt_cv_path_LDCXX 10656else 10657 $as_unset lt_cv_path_LD 10658fi 10659test -z "${LDCXX+set}" || LD=$LDCXX 10660CC=${CXX-"c++"} 10661compiler=$CC 10662compiler_CXX=$CC 10663for cc_temp in $compiler""; do 10664 case $cc_temp in 10665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10667 \-*) ;; 10668 *) break;; 10669 esac 10670done 10671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10672 10673 10674# We don't want -fno-exception wen compiling C++ code, so set the 10675# no_builtin_flag separately 10676if test "$GXX" = yes; then 10677 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10678else 10679 lt_prog_compiler_no_builtin_flag_CXX= 10680fi 10681 10682if test "$GXX" = yes; then 10683 # Set up default GNU C++ configuration 10684 10685 10686# Check whether --with-gnu-ld was given. 10687if test "${with_gnu_ld+set}" = set; then 10688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10689else 10690 with_gnu_ld=no 10691fi 10692 10693ac_prog=ld 10694if test "$GCC" = yes; then 10695 # Check if gcc -print-prog-name=ld gives a path. 10696 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10697echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10698 case $host in 10699 *-*-mingw*) 10700 # gcc leaves a trailing carriage return which upsets mingw 10701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10702 *) 10703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10704 esac 10705 case $ac_prog in 10706 # Accept absolute paths. 10707 [\\/]* | ?:[\\/]*) 10708 re_direlt='/[^/][^/]*/\.\./' 10709 # Canonicalize the pathname of ld 10710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10713 done 10714 test -z "$LD" && LD="$ac_prog" 10715 ;; 10716 "") 10717 # If it fails, then pretend we aren't using GCC. 10718 ac_prog=ld 10719 ;; 10720 *) 10721 # If it is relative, then search for the first ld in PATH. 10722 with_gnu_ld=unknown 10723 ;; 10724 esac 10725elif test "$with_gnu_ld" = yes; then 10726 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10727echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10728else 10729 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10730echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10731fi 10732if test "${lt_cv_path_LD+set}" = set; then 10733 echo $ECHO_N "(cached) $ECHO_C" >&6 10734else 10735 if test -z "$LD"; then 10736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10737 for ac_dir in $PATH; do 10738 IFS="$lt_save_ifs" 10739 test -z "$ac_dir" && ac_dir=. 10740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10741 lt_cv_path_LD="$ac_dir/$ac_prog" 10742 # Check to see if the program is GNU ld. I'd rather use --version, 10743 # but apparently some variants of GNU ld only accept -v. 10744 # Break only if it was the GNU/non-GNU ld that we prefer. 10745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10746 *GNU* | *'with BFD'*) 10747 test "$with_gnu_ld" != no && break 10748 ;; 10749 *) 10750 test "$with_gnu_ld" != yes && break 10751 ;; 10752 esac 10753 fi 10754 done 10755 IFS="$lt_save_ifs" 10756else 10757 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10758fi 10759fi 10760 10761LD="$lt_cv_path_LD" 10762if test -n "$LD"; then 10763 { echo "$as_me:$LINENO: result: $LD" >&5 10764echo "${ECHO_T}$LD" >&6; } 10765else 10766 { echo "$as_me:$LINENO: result: no" >&5 10767echo "${ECHO_T}no" >&6; } 10768fi 10769test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10770echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10771 { (exit 1); exit 1; }; } 10772{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10773echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10774if test "${lt_cv_prog_gnu_ld+set}" = set; then 10775 echo $ECHO_N "(cached) $ECHO_C" >&6 10776else 10777 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10778case `$LD -v 2>&1 </dev/null` in 10779*GNU* | *'with BFD'*) 10780 lt_cv_prog_gnu_ld=yes 10781 ;; 10782*) 10783 lt_cv_prog_gnu_ld=no 10784 ;; 10785esac 10786fi 10787{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10788echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10789with_gnu_ld=$lt_cv_prog_gnu_ld 10790 10791 10792 10793 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10794 # archiving commands below assume that GNU ld is being used. 10795 if test "$with_gnu_ld" = yes; then 10796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10797 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' 10798 10799 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10801 10802 # If archive_cmds runs LD, not CC, wlarc should be empty 10803 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10804 # investigate it a little bit more. (MM) 10805 wlarc='${wl}' 10806 10807 # ancient GNU ld didn't support --whole-archive et. al. 10808 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10809 grep 'no-whole-archive' > /dev/null; then 10810 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10811 else 10812 whole_archive_flag_spec_CXX= 10813 fi 10814 else 10815 with_gnu_ld=no 10816 wlarc= 10817 10818 # A generic and very simple default shared library creation 10819 # command for GNU C++ for the case where it uses the native 10820 # linker, instead of GNU ld. If possible, this setting should 10821 # overridden to take advantage of the native linker features on 10822 # the platform it is being used on. 10823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10824 fi 10825 10826 # Commands to make compiler produce verbose output that lists 10827 # what "hidden" libraries, object files and flags are used when 10828 # linking a shared library. 10829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10830 10831else 10832 GXX=no 10833 with_gnu_ld=no 10834 wlarc= 10835fi 10836 10837# PORTME: fill in a description of your system's C++ link characteristics 10838{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10839echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10840ld_shlibs_CXX=yes 10841case $host_os in 10842 aix3*) 10843 # FIXME: insert proper C++ library support 10844 ld_shlibs_CXX=no 10845 ;; 10846 aix4* | aix5*) 10847 if test "$host_cpu" = ia64; then 10848 # On IA64, the linker does run time linking by default, so we don't 10849 # have to do anything special. 10850 aix_use_runtimelinking=no 10851 exp_sym_flag='-Bexport' 10852 no_entry_flag="" 10853 else 10854 aix_use_runtimelinking=no 10855 10856 # Test if we are trying to use run time linking or normal 10857 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10858 # need to do runtime linking. 10859 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10860 for ld_flag in $LDFLAGS; do 10861 case $ld_flag in 10862 *-brtl*) 10863 aix_use_runtimelinking=yes 10864 break 10865 ;; 10866 esac 10867 done 10868 ;; 10869 esac 10870 10871 exp_sym_flag='-bexport' 10872 no_entry_flag='-bnoentry' 10873 fi 10874 10875 # When large executables or shared objects are built, AIX ld can 10876 # have problems creating the table of contents. If linking a library 10877 # or program results in "error TOC overflow" add -mminimal-toc to 10878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10880 10881 archive_cmds_CXX='' 10882 hardcode_direct_CXX=yes 10883 hardcode_libdir_separator_CXX=':' 10884 link_all_deplibs_CXX=yes 10885 10886 if test "$GXX" = yes; then 10887 case $host_os in aix4.[012]|aix4.[012].*) 10888 # We only want to do this on AIX 4.2 and lower, the check 10889 # below for broken collect2 doesn't work under 4.3+ 10890 collect2name=`${CC} -print-prog-name=collect2` 10891 if test -f "$collect2name" && \ 10892 strings "$collect2name" | grep resolve_lib_name >/dev/null 10893 then 10894 # We have reworked collect2 10895 hardcode_direct_CXX=yes 10896 else 10897 # We have old collect2 10898 hardcode_direct_CXX=unsupported 10899 # It fails to find uninstalled libraries when the uninstalled 10900 # path is not listed in the libpath. Setting hardcode_minus_L 10901 # to unsupported forces relinking 10902 hardcode_minus_L_CXX=yes 10903 hardcode_libdir_flag_spec_CXX='-L$libdir' 10904 hardcode_libdir_separator_CXX= 10905 fi 10906 ;; 10907 esac 10908 shared_flag='-shared' 10909 if test "$aix_use_runtimelinking" = yes; then 10910 shared_flag="$shared_flag "'${wl}-G' 10911 fi 10912 else 10913 # not using gcc 10914 if test "$host_cpu" = ia64; then 10915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10916 # chokes on -Wl,-G. The following line is correct: 10917 shared_flag='-G' 10918 else 10919 if test "$aix_use_runtimelinking" = yes; then 10920 shared_flag='${wl}-G' 10921 else 10922 shared_flag='${wl}-bM:SRE' 10923 fi 10924 fi 10925 fi 10926 10927 # It seems that -bexpall does not export symbols beginning with 10928 # underscore (_), so it is better to generate a list of symbols to export. 10929 always_export_symbols_CXX=yes 10930 if test "$aix_use_runtimelinking" = yes; then 10931 # Warning - without using the other runtime loading flags (-brtl), 10932 # -berok will link without error, but may produce a broken library. 10933 allow_undefined_flag_CXX='-berok' 10934 # Determine the default libpath from the value encoded in an empty executable. 10935 cat >conftest.$ac_ext <<_ACEOF 10936/* confdefs.h. */ 10937_ACEOF 10938cat confdefs.h >>conftest.$ac_ext 10939cat >>conftest.$ac_ext <<_ACEOF 10940/* end confdefs.h. */ 10941 10942int 10943main () 10944{ 10945 10946 ; 10947 return 0; 10948} 10949_ACEOF 10950rm -f conftest.$ac_objext conftest$ac_exeext 10951if { (ac_try="$ac_link" 10952case "(($ac_try" in 10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10954 *) ac_try_echo=$ac_try;; 10955esac 10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10957 (eval "$ac_link") 2>conftest.er1 10958 ac_status=$? 10959 grep -v '^ *+' conftest.er1 >conftest.err 10960 rm -f conftest.er1 10961 cat conftest.err >&5 10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10963 (exit $ac_status); } && { 10964 test -z "$ac_cxx_werror_flag" || 10965 test ! -s conftest.err 10966 } && test -s conftest$ac_exeext && 10967 $as_test_x conftest$ac_exeext; then 10968 10969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10970}'` 10971# Check for a 64-bit object if we didn't find anything. 10972if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10973}'`; fi 10974else 10975 echo "$as_me: failed program was:" >&5 10976sed 's/^/| /' conftest.$ac_ext >&5 10977 10978 10979fi 10980 10981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10982 conftest$ac_exeext conftest.$ac_ext 10983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10984 10985 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10986 10987 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" 10988 else 10989 if test "$host_cpu" = ia64; then 10990 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10991 allow_undefined_flag_CXX="-z nodefs" 10992 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" 10993 else 10994 # Determine the default libpath from the value encoded in an empty executable. 10995 cat >conftest.$ac_ext <<_ACEOF 10996/* confdefs.h. */ 10997_ACEOF 10998cat confdefs.h >>conftest.$ac_ext 10999cat >>conftest.$ac_ext <<_ACEOF 11000/* end confdefs.h. */ 11001 11002int 11003main () 11004{ 11005 11006 ; 11007 return 0; 11008} 11009_ACEOF 11010rm -f conftest.$ac_objext conftest$ac_exeext 11011if { (ac_try="$ac_link" 11012case "(($ac_try" in 11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11014 *) ac_try_echo=$ac_try;; 11015esac 11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11017 (eval "$ac_link") 2>conftest.er1 11018 ac_status=$? 11019 grep -v '^ *+' conftest.er1 >conftest.err 11020 rm -f conftest.er1 11021 cat conftest.err >&5 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); } && { 11024 test -z "$ac_cxx_werror_flag" || 11025 test ! -s conftest.err 11026 } && test -s conftest$ac_exeext && 11027 $as_test_x conftest$ac_exeext; then 11028 11029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11030}'` 11031# Check for a 64-bit object if we didn't find anything. 11032if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11033}'`; fi 11034else 11035 echo "$as_me: failed program was:" >&5 11036sed 's/^/| /' conftest.$ac_ext >&5 11037 11038 11039fi 11040 11041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11042 conftest$ac_exeext conftest.$ac_ext 11043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11044 11045 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11046 # Warning - without using the other run time loading flags, 11047 # -berok will link without error, but may produce a broken library. 11048 no_undefined_flag_CXX=' ${wl}-bernotok' 11049 allow_undefined_flag_CXX=' ${wl}-berok' 11050 # Exported symbols can be pulled into shared objects from archives 11051 whole_archive_flag_spec_CXX='$convenience' 11052 archive_cmds_need_lc_CXX=yes 11053 # This is similar to how AIX traditionally builds its shared libraries. 11054 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' 11055 fi 11056 fi 11057 ;; 11058 11059 beos*) 11060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11061 allow_undefined_flag_CXX=unsupported 11062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11063 # support --undefined. This deserves some investigation. FIXME 11064 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11065 else 11066 ld_shlibs_CXX=no 11067 fi 11068 ;; 11069 11070 chorus*) 11071 case $cc_basename in 11072 *) 11073 # FIXME: insert proper C++ library support 11074 ld_shlibs_CXX=no 11075 ;; 11076 esac 11077 ;; 11078 11079 cygwin* | mingw* | pw32*) 11080 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11081 # as there is no search path for DLLs. 11082 hardcode_libdir_flag_spec_CXX='-L$libdir' 11083 allow_undefined_flag_CXX=unsupported 11084 always_export_symbols_CXX=no 11085 enable_shared_with_static_runtimes_CXX=yes 11086 11087 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11088 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' 11089 # If the export-symbols file already is a .def file (1st line 11090 # is EXPORTS), use it as is; otherwise, prepend... 11091 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11092 cp $export_symbols $output_objdir/$soname.def; 11093 else 11094 echo EXPORTS > $output_objdir/$soname.def; 11095 cat $export_symbols >> $output_objdir/$soname.def; 11096 fi~ 11097 $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' 11098 else 11099 ld_shlibs_CXX=no 11100 fi 11101 ;; 11102 darwin* | rhapsody*) 11103 case $host_os in 11104 rhapsody* | darwin1.[012]) 11105 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11106 ;; 11107 *) # Darwin 1.3 on 11108 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11109 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11110 else 11111 case ${MACOSX_DEPLOYMENT_TARGET} in 11112 10.[012]) 11113 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11114 ;; 11115 10.*) 11116 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11117 ;; 11118 esac 11119 fi 11120 ;; 11121 esac 11122 archive_cmds_need_lc_CXX=no 11123 hardcode_direct_CXX=no 11124 hardcode_automatic_CXX=yes 11125 hardcode_shlibpath_var_CXX=unsupported 11126 whole_archive_flag_spec_CXX='' 11127 link_all_deplibs_CXX=yes 11128 11129 if test "$GXX" = yes ; then 11130 lt_int_apple_cc_single_mod=no 11131 output_verbose_link_cmd='echo' 11132 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11133 lt_int_apple_cc_single_mod=yes 11134 fi 11135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11136 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11137 else 11138 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' 11139 fi 11140 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11143 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}' 11144 else 11145 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}' 11146 fi 11147 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}' 11148 else 11149 case $cc_basename in 11150 xlc*) 11151 output_verbose_link_cmd='echo' 11152 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11153 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11155 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11156 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}' 11157 ;; 11158 *) 11159 ld_shlibs_CXX=no 11160 ;; 11161 esac 11162 fi 11163 ;; 11164 11165 dgux*) 11166 case $cc_basename in 11167 ec++*) 11168 # FIXME: insert proper C++ library support 11169 ld_shlibs_CXX=no 11170 ;; 11171 ghcx*) 11172 # Green Hills C++ Compiler 11173 # FIXME: insert proper C++ library support 11174 ld_shlibs_CXX=no 11175 ;; 11176 *) 11177 # FIXME: insert proper C++ library support 11178 ld_shlibs_CXX=no 11179 ;; 11180 esac 11181 ;; 11182 freebsd[12]*) 11183 # C++ shared libraries reported to be fairly broken before switch to ELF 11184 ld_shlibs_CXX=no 11185 ;; 11186 freebsd-elf*) 11187 archive_cmds_need_lc_CXX=no 11188 ;; 11189 freebsd* | dragonfly*) 11190 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11191 # conventions 11192 ld_shlibs_CXX=yes 11193 ;; 11194 gnu*) 11195 ;; 11196 hpux9*) 11197 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11198 hardcode_libdir_separator_CXX=: 11199 export_dynamic_flag_spec_CXX='${wl}-E' 11200 hardcode_direct_CXX=yes 11201 hardcode_minus_L_CXX=yes # Not in the search PATH, 11202 # but as the default 11203 # location of the library. 11204 11205 case $cc_basename in 11206 CC*) 11207 # FIXME: insert proper C++ library support 11208 ld_shlibs_CXX=no 11209 ;; 11210 aCC*) 11211 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' 11212 # Commands to make compiler produce verbose output that lists 11213 # what "hidden" libraries, object files and flags are used when 11214 # linking a shared library. 11215 # 11216 # There doesn't appear to be a way to prevent this compiler from 11217 # explicitly linking system object files so we need to strip them 11218 # from the output so that they don't get included in the library 11219 # dependencies. 11220 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' 11221 ;; 11222 *) 11223 if test "$GXX" = yes; then 11224 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' 11225 else 11226 # FIXME: insert proper C++ library support 11227 ld_shlibs_CXX=no 11228 fi 11229 ;; 11230 esac 11231 ;; 11232 hpux10*|hpux11*) 11233 if test $with_gnu_ld = no; then 11234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11235 hardcode_libdir_separator_CXX=: 11236 11237 case $host_cpu in 11238 hppa*64*|ia64*) 11239 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11240 ;; 11241 *) 11242 export_dynamic_flag_spec_CXX='${wl}-E' 11243 ;; 11244 esac 11245 fi 11246 case $host_cpu in 11247 hppa*64*|ia64*) 11248 hardcode_direct_CXX=no 11249 hardcode_shlibpath_var_CXX=no 11250 ;; 11251 *) 11252 hardcode_direct_CXX=yes 11253 hardcode_minus_L_CXX=yes # Not in the search PATH, 11254 # but as the default 11255 # location of the library. 11256 ;; 11257 esac 11258 11259 case $cc_basename in 11260 CC*) 11261 # FIXME: insert proper C++ library support 11262 ld_shlibs_CXX=no 11263 ;; 11264 aCC*) 11265 case $host_cpu in 11266 hppa*64*) 11267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11268 ;; 11269 ia64*) 11270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11271 ;; 11272 *) 11273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11274 ;; 11275 esac 11276 # Commands to make compiler produce verbose output that lists 11277 # what "hidden" libraries, object files and flags are used when 11278 # linking a shared library. 11279 # 11280 # There doesn't appear to be a way to prevent this compiler from 11281 # explicitly linking system object files so we need to strip them 11282 # from the output so that they don't get included in the library 11283 # dependencies. 11284 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' 11285 ;; 11286 *) 11287 if test "$GXX" = yes; then 11288 if test $with_gnu_ld = no; then 11289 case $host_cpu in 11290 hppa*64*) 11291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11292 ;; 11293 ia64*) 11294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11295 ;; 11296 *) 11297 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' 11298 ;; 11299 esac 11300 fi 11301 else 11302 # FIXME: insert proper C++ library support 11303 ld_shlibs_CXX=no 11304 fi 11305 ;; 11306 esac 11307 ;; 11308 interix3*) 11309 hardcode_direct_CXX=no 11310 hardcode_shlibpath_var_CXX=no 11311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11312 export_dynamic_flag_spec_CXX='${wl}-E' 11313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11314 # Instead, shared libraries are loaded at an image base (0x10000000 by 11315 # default) and relocated if they conflict, which is a slow very memory 11316 # consuming and fragmenting process. To avoid this, we pick a random, 11317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11318 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11319 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' 11320 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' 11321 ;; 11322 irix5* | irix6*) 11323 case $cc_basename in 11324 CC*) 11325 # SGI C++ 11326 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' 11327 11328 # Archives containing C++ object files must be created using 11329 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11330 # necessary to make sure instantiated templates are included 11331 # in the archive. 11332 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11333 ;; 11334 *) 11335 if test "$GXX" = yes; then 11336 if test "$with_gnu_ld" = no; then 11337 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' 11338 else 11339 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' 11340 fi 11341 fi 11342 link_all_deplibs_CXX=yes 11343 ;; 11344 esac 11345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11346 hardcode_libdir_separator_CXX=: 11347 ;; 11348 linux* | k*bsd*-gnu) 11349 case $cc_basename in 11350 KCC*) 11351 # Kuck and Associates, Inc. (KAI) C++ Compiler 11352 11353 # KCC will only create a shared library if the output file 11354 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11355 # to its proper name (with version) after linking. 11356 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' 11357 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' 11358 # Commands to make compiler produce verbose output that lists 11359 # what "hidden" libraries, object files and flags are used when 11360 # linking a shared library. 11361 # 11362 # There doesn't appear to be a way to prevent this compiler from 11363 # explicitly linking system object files so we need to strip them 11364 # from the output so that they don't get included in the library 11365 # dependencies. 11366 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' 11367 11368 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11369 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11370 11371 # Archives containing C++ object files must be created using 11372 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11373 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11374 ;; 11375 icpc*) 11376 # Intel C++ 11377 with_gnu_ld=yes 11378 # version 8.0 and above of icpc choke on multiply defined symbols 11379 # if we add $predep_objects and $postdep_objects, however 7.1 and 11380 # earlier do not add the objects themselves. 11381 case `$CC -V 2>&1` in 11382 *"Version 7."*) 11383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11384 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' 11385 ;; 11386 *) # Version 8.0 or newer 11387 tmp_idyn= 11388 case $host_cpu in 11389 ia64*) tmp_idyn=' -i_dynamic';; 11390 esac 11391 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11392 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' 11393 ;; 11394 esac 11395 archive_cmds_need_lc_CXX=no 11396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11398 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11399 ;; 11400 pgCC*) 11401 # Portland Group C++ compiler 11402 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11403 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' 11404 11405 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11407 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' 11408 ;; 11409 cxx*) 11410 # Compaq C++ 11411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11412 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' 11413 11414 runpath_var=LD_RUN_PATH 11415 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11416 hardcode_libdir_separator_CXX=: 11417 11418 # Commands to make compiler produce verbose output that lists 11419 # what "hidden" libraries, object files and flags are used when 11420 # linking a shared library. 11421 # 11422 # There doesn't appear to be a way to prevent this compiler from 11423 # explicitly linking system object files so we need to strip them 11424 # from the output so that they don't get included in the library 11425 # dependencies. 11426 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' 11427 ;; 11428 esac 11429 ;; 11430 lynxos*) 11431 # FIXME: insert proper C++ library support 11432 ld_shlibs_CXX=no 11433 ;; 11434 m88k*) 11435 # FIXME: insert proper C++ library support 11436 ld_shlibs_CXX=no 11437 ;; 11438 mvs*) 11439 case $cc_basename in 11440 cxx*) 11441 # FIXME: insert proper C++ library support 11442 ld_shlibs_CXX=no 11443 ;; 11444 *) 11445 # FIXME: insert proper C++ library support 11446 ld_shlibs_CXX=no 11447 ;; 11448 esac 11449 ;; 11450 netbsd* | netbsdelf*-gnu) 11451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11452 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11453 wlarc= 11454 hardcode_libdir_flag_spec_CXX='-R$libdir' 11455 hardcode_direct_CXX=yes 11456 hardcode_shlibpath_var_CXX=no 11457 fi 11458 # Workaround some broken pre-1.5 toolchains 11459 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11460 ;; 11461 openbsd2*) 11462 # C++ shared libraries are fairly broken 11463 ld_shlibs_CXX=no 11464 ;; 11465 openbsd*) 11466 hardcode_direct_CXX=yes 11467 hardcode_shlibpath_var_CXX=no 11468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11471 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11472 export_dynamic_flag_spec_CXX='${wl}-E' 11473 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11474 fi 11475 output_verbose_link_cmd='echo' 11476 ;; 11477 osf3*) 11478 case $cc_basename in 11479 KCC*) 11480 # Kuck and Associates, Inc. (KAI) C++ Compiler 11481 11482 # KCC will only create a shared library if the output file 11483 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11484 # to its proper name (with version) after linking. 11485 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' 11486 11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11488 hardcode_libdir_separator_CXX=: 11489 11490 # Archives containing C++ object files must be created using 11491 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11492 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11493 11494 ;; 11495 RCC*) 11496 # Rational C++ 2.4.1 11497 # FIXME: insert proper C++ library support 11498 ld_shlibs_CXX=no 11499 ;; 11500 cxx*) 11501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11502 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' 11503 11504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11505 hardcode_libdir_separator_CXX=: 11506 11507 # Commands to make compiler produce verbose output that lists 11508 # what "hidden" libraries, object files and flags are used when 11509 # linking a shared library. 11510 # 11511 # There doesn't appear to be a way to prevent this compiler from 11512 # explicitly linking system object files so we need to strip them 11513 # from the output so that they don't get included in the library 11514 # dependencies. 11515 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' 11516 ;; 11517 *) 11518 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11520 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' 11521 11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11523 hardcode_libdir_separator_CXX=: 11524 11525 # Commands to make compiler produce verbose output that lists 11526 # what "hidden" libraries, object files and flags are used when 11527 # linking a shared library. 11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11529 11530 else 11531 # FIXME: insert proper C++ library support 11532 ld_shlibs_CXX=no 11533 fi 11534 ;; 11535 esac 11536 ;; 11537 osf4* | osf5*) 11538 case $cc_basename in 11539 KCC*) 11540 # Kuck and Associates, Inc. (KAI) C++ Compiler 11541 11542 # KCC will only create a shared library if the output file 11543 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11544 # to its proper name (with version) after linking. 11545 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' 11546 11547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11548 hardcode_libdir_separator_CXX=: 11549 11550 # Archives containing C++ object files must be created using 11551 # the KAI C++ compiler. 11552 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11553 ;; 11554 RCC*) 11555 # Rational C++ 2.4.1 11556 # FIXME: insert proper C++ library support 11557 ld_shlibs_CXX=no 11558 ;; 11559 cxx*) 11560 allow_undefined_flag_CXX=' -expect_unresolved \*' 11561 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' 11562 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11563 echo "-hidden">> $lib.exp~ 11564 $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~ 11565 $rm $lib.exp' 11566 11567 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11568 hardcode_libdir_separator_CXX=: 11569 11570 # Commands to make compiler produce verbose output that lists 11571 # what "hidden" libraries, object files and flags are used when 11572 # linking a shared library. 11573 # 11574 # There doesn't appear to be a way to prevent this compiler from 11575 # explicitly linking system object files so we need to strip them 11576 # from the output so that they don't get included in the library 11577 # dependencies. 11578 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' 11579 ;; 11580 *) 11581 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11583 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' 11584 11585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11586 hardcode_libdir_separator_CXX=: 11587 11588 # Commands to make compiler produce verbose output that lists 11589 # what "hidden" libraries, object files and flags are used when 11590 # linking a shared library. 11591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11592 11593 else 11594 # FIXME: insert proper C++ library support 11595 ld_shlibs_CXX=no 11596 fi 11597 ;; 11598 esac 11599 ;; 11600 psos*) 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 ;; 11604 sunos4*) 11605 case $cc_basename in 11606 CC*) 11607 # Sun C++ 4.x 11608 # FIXME: insert proper C++ library support 11609 ld_shlibs_CXX=no 11610 ;; 11611 lcc*) 11612 # Lucid 11613 # FIXME: insert proper C++ library support 11614 ld_shlibs_CXX=no 11615 ;; 11616 *) 11617 # FIXME: insert proper C++ library support 11618 ld_shlibs_CXX=no 11619 ;; 11620 esac 11621 ;; 11622 solaris*) 11623 case $cc_basename in 11624 CC*) 11625 # Sun C++ 4.2, 5.x and Centerline C++ 11626 archive_cmds_need_lc_CXX=yes 11627 no_undefined_flag_CXX=' -zdefs' 11628 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11629 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11630 $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' 11631 11632 hardcode_libdir_flag_spec_CXX='-R$libdir' 11633 hardcode_shlibpath_var_CXX=no 11634 case $host_os in 11635 solaris2.[0-5] | solaris2.[0-5].*) ;; 11636 *) 11637 # The C++ compiler is used as linker so we must use $wl 11638 # flag to pass the commands to the underlying system 11639 # linker. We must also pass each convience library through 11640 # to the system linker between allextract/defaultextract. 11641 # The C++ compiler will combine linker options so we 11642 # cannot just pass the convience library names through 11643 # without $wl. 11644 # Supported since Solaris 2.6 (maybe 2.5.1?) 11645 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11646 ;; 11647 esac 11648 link_all_deplibs_CXX=yes 11649 11650 output_verbose_link_cmd='echo' 11651 11652 # Archives containing C++ object files must be created using 11653 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11654 # necessary to make sure instantiated templates are included 11655 # in the archive. 11656 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11657 ;; 11658 gcx*) 11659 # Green Hills C++ Compiler 11660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11661 11662 # The C++ compiler must be used to create the archive. 11663 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11664 ;; 11665 *) 11666 # GNU C++ compiler with Solaris linker 11667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11668 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11669 if $CC --version | grep -v '^2\.7' > /dev/null; then 11670 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11671 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11673 11674 # Commands to make compiler produce verbose output that lists 11675 # what "hidden" libraries, object files and flags are used when 11676 # linking a shared library. 11677 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11678 else 11679 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11680 # platform. 11681 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11682 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11684 11685 # Commands to make compiler produce verbose output that lists 11686 # what "hidden" libraries, object files and flags are used when 11687 # linking a shared library. 11688 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11689 fi 11690 11691 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11692 fi 11693 ;; 11694 esac 11695 ;; 11696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11697 no_undefined_flag_CXX='${wl}-z,text' 11698 archive_cmds_need_lc_CXX=no 11699 hardcode_shlibpath_var_CXX=no 11700 runpath_var='LD_RUN_PATH' 11701 11702 case $cc_basename in 11703 CC*) 11704 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11705 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11706 ;; 11707 *) 11708 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11709 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11710 ;; 11711 esac 11712 ;; 11713 sysv5* | sco3.2v5* | sco5v6*) 11714 # Note: We can NOT use -z defs as we might desire, because we do not 11715 # link with -lc, and that would cause any symbols used from libc to 11716 # always be unresolved, which means just about no library would 11717 # ever link correctly. If we're not using GNU ld we use -z text 11718 # though, which does catch some bad symbols but isn't as heavy-handed 11719 # as -z defs. 11720 # For security reasons, it is highly recommended that you always 11721 # use absolute paths for naming shared libraries, and exclude the 11722 # DT_RUNPATH tag from executables and libraries. But doing so 11723 # requires that you compile everything twice, which is a pain. 11724 # So that behaviour is only enabled if SCOABSPATH is set to a 11725 # non-empty value in the environment. Most likely only useful for 11726 # creating official distributions of packages. 11727 # This is a hack until libtool officially supports absolute path 11728 # names for shared libraries. 11729 no_undefined_flag_CXX='${wl}-z,text' 11730 allow_undefined_flag_CXX='${wl}-z,nodefs' 11731 archive_cmds_need_lc_CXX=no 11732 hardcode_shlibpath_var_CXX=no 11733 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11734 hardcode_libdir_separator_CXX=':' 11735 link_all_deplibs_CXX=yes 11736 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11737 runpath_var='LD_RUN_PATH' 11738 11739 case $cc_basename in 11740 CC*) 11741 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11742 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11743 ;; 11744 *) 11745 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11746 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11747 ;; 11748 esac 11749 ;; 11750 tandem*) 11751 case $cc_basename in 11752 NCC*) 11753 # NonStop-UX NCC 3.20 11754 # FIXME: insert proper C++ library support 11755 ld_shlibs_CXX=no 11756 ;; 11757 *) 11758 # FIXME: insert proper C++ library support 11759 ld_shlibs_CXX=no 11760 ;; 11761 esac 11762 ;; 11763 vxworks*) 11764 # FIXME: insert proper C++ library support 11765 ld_shlibs_CXX=no 11766 ;; 11767 *) 11768 # FIXME: insert proper C++ library support 11769 ld_shlibs_CXX=no 11770 ;; 11771esac 11772{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11773echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11774test "$ld_shlibs_CXX" = no && can_build_shared=no 11775 11776GCC_CXX="$GXX" 11777LD_CXX="$LD" 11778 11779 11780cat > conftest.$ac_ext <<EOF 11781class Foo 11782{ 11783public: 11784 Foo (void) { a = 0; } 11785private: 11786 int a; 11787}; 11788EOF 11789 11790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11791 (eval $ac_compile) 2>&5 11792 ac_status=$? 11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 (exit $ac_status); }; then 11795 # Parse the compiler output and extract the necessary 11796 # objects, libraries and library flags. 11797 11798 # Sentinel used to keep track of whether or not we are before 11799 # the conftest object file. 11800 pre_test_object_deps_done=no 11801 11802 # The `*' in the case matches for architectures that use `case' in 11803 # $output_verbose_cmd can trigger glob expansion during the loop 11804 # eval without this substitution. 11805 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11806 11807 for p in `eval $output_verbose_link_cmd`; do 11808 case $p in 11809 11810 -L* | -R* | -l*) 11811 # Some compilers place space between "-{L,R}" and the path. 11812 # Remove the space. 11813 if test $p = "-L" \ 11814 || test $p = "-R"; then 11815 prev=$p 11816 continue 11817 else 11818 prev= 11819 fi 11820 11821 if test "$pre_test_object_deps_done" = no; then 11822 case $p in 11823 -L* | -R*) 11824 # Internal compiler library paths should come after those 11825 # provided the user. The postdeps already come after the 11826 # user supplied libs so there is no need to process them. 11827 if test -z "$compiler_lib_search_path_CXX"; then 11828 compiler_lib_search_path_CXX="${prev}${p}" 11829 else 11830 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11831 fi 11832 ;; 11833 # The "-l" case would never come before the object being 11834 # linked, so don't bother handling this case. 11835 esac 11836 else 11837 if test -z "$postdeps_CXX"; then 11838 postdeps_CXX="${prev}${p}" 11839 else 11840 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11841 fi 11842 fi 11843 ;; 11844 11845 *.$objext) 11846 # This assumes that the test object file only shows up 11847 # once in the compiler output. 11848 if test "$p" = "conftest.$objext"; then 11849 pre_test_object_deps_done=yes 11850 continue 11851 fi 11852 11853 if test "$pre_test_object_deps_done" = no; then 11854 if test -z "$predep_objects_CXX"; then 11855 predep_objects_CXX="$p" 11856 else 11857 predep_objects_CXX="$predep_objects_CXX $p" 11858 fi 11859 else 11860 if test -z "$postdep_objects_CXX"; then 11861 postdep_objects_CXX="$p" 11862 else 11863 postdep_objects_CXX="$postdep_objects_CXX $p" 11864 fi 11865 fi 11866 ;; 11867 11868 *) ;; # Ignore the rest. 11869 11870 esac 11871 done 11872 11873 # Clean up. 11874 rm -f a.out a.exe 11875else 11876 echo "libtool.m4: error: problem compiling CXX test program" 11877fi 11878 11879$rm -f confest.$objext 11880 11881# PORTME: override above test on systems where it is broken 11882case $host_os in 11883interix3*) 11884 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11885 # hack all around it, let's just trust "g++" to DTRT. 11886 predep_objects_CXX= 11887 postdep_objects_CXX= 11888 postdeps_CXX= 11889 ;; 11890 11891solaris*) 11892 case $cc_basename in 11893 CC*) 11894 # Adding this requires a known-good setup of shared libraries for 11895 # Sun compiler versions before 5.6, else PIC objects from an old 11896 # archive will be linked into the output, leading to subtle bugs. 11897 postdeps_CXX='-lCstd -lCrun' 11898 ;; 11899 esac 11900 ;; 11901esac 11902 11903 11904case " $postdeps_CXX " in 11905*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11906esac 11907 11908lt_prog_compiler_wl_CXX= 11909lt_prog_compiler_pic_CXX= 11910lt_prog_compiler_static_CXX= 11911 11912{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11913echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11914 11915 # C++ specific cases for pic, static, wl, etc. 11916 if test "$GXX" = yes; then 11917 lt_prog_compiler_wl_CXX='-Wl,' 11918 lt_prog_compiler_static_CXX='-static' 11919 11920 case $host_os in 11921 aix*) 11922 # All AIX code is PIC. 11923 if test "$host_cpu" = ia64; then 11924 # AIX 5 now supports IA64 processor 11925 lt_prog_compiler_static_CXX='-Bstatic' 11926 fi 11927 ;; 11928 amigaos*) 11929 # FIXME: we need at least 68020 code to build shared libraries, but 11930 # adding the `-m68020' flag to GCC prevents building anything better, 11931 # like `-m68040'. 11932 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11933 ;; 11934 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11935 # PIC is the default for these OSes. 11936 ;; 11937 mingw* | os2* | pw32*) 11938 # This hack is so that the source file can tell whether it is being 11939 # built for inclusion in a dll (and should export symbols for example). 11940 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11941 ;; 11942 darwin* | rhapsody*) 11943 # PIC is the default on this platform 11944 # Common symbols not allowed in MH_DYLIB files 11945 lt_prog_compiler_pic_CXX='-fno-common' 11946 ;; 11947 *djgpp*) 11948 # DJGPP does not support shared libraries at all 11949 lt_prog_compiler_pic_CXX= 11950 ;; 11951 interix3*) 11952 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11953 # Instead, we relocate shared libraries at runtime. 11954 ;; 11955 sysv4*MP*) 11956 if test -d /usr/nec; then 11957 lt_prog_compiler_pic_CXX=-Kconform_pic 11958 fi 11959 ;; 11960 hpux*) 11961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11962 # not for PA HP-UX. 11963 case $host_cpu in 11964 hppa*64*|ia64*) 11965 ;; 11966 *) 11967 lt_prog_compiler_pic_CXX='-fPIC' 11968 ;; 11969 esac 11970 ;; 11971 *) 11972 lt_prog_compiler_pic_CXX='-fPIC' 11973 ;; 11974 esac 11975 else 11976 case $host_os in 11977 aix4* | aix5*) 11978 # All AIX code is PIC. 11979 if test "$host_cpu" = ia64; then 11980 # AIX 5 now supports IA64 processor 11981 lt_prog_compiler_static_CXX='-Bstatic' 11982 else 11983 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11984 fi 11985 ;; 11986 chorus*) 11987 case $cc_basename in 11988 cxch68*) 11989 # Green Hills C++ Compiler 11990 # _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" 11991 ;; 11992 esac 11993 ;; 11994 darwin*) 11995 # PIC is the default on this platform 11996 # Common symbols not allowed in MH_DYLIB files 11997 case $cc_basename in 11998 xlc*) 11999 lt_prog_compiler_pic_CXX='-qnocommon' 12000 lt_prog_compiler_wl_CXX='-Wl,' 12001 ;; 12002 esac 12003 ;; 12004 dgux*) 12005 case $cc_basename in 12006 ec++*) 12007 lt_prog_compiler_pic_CXX='-KPIC' 12008 ;; 12009 ghcx*) 12010 # Green Hills C++ Compiler 12011 lt_prog_compiler_pic_CXX='-pic' 12012 ;; 12013 *) 12014 ;; 12015 esac 12016 ;; 12017 freebsd* | dragonfly*) 12018 # FreeBSD uses GNU C++ 12019 ;; 12020 hpux9* | hpux10* | hpux11*) 12021 case $cc_basename in 12022 CC*) 12023 lt_prog_compiler_wl_CXX='-Wl,' 12024 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12025 if test "$host_cpu" != ia64; then 12026 lt_prog_compiler_pic_CXX='+Z' 12027 fi 12028 ;; 12029 aCC*) 12030 lt_prog_compiler_wl_CXX='-Wl,' 12031 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12032 case $host_cpu in 12033 hppa*64*|ia64*) 12034 # +Z the default 12035 ;; 12036 *) 12037 lt_prog_compiler_pic_CXX='+Z' 12038 ;; 12039 esac 12040 ;; 12041 *) 12042 ;; 12043 esac 12044 ;; 12045 interix*) 12046 # This is c89, which is MS Visual C++ (no shared libs) 12047 # Anyone wants to do a port? 12048 ;; 12049 irix5* | irix6* | nonstopux*) 12050 case $cc_basename in 12051 CC*) 12052 lt_prog_compiler_wl_CXX='-Wl,' 12053 lt_prog_compiler_static_CXX='-non_shared' 12054 # CC pic flag -KPIC is the default. 12055 ;; 12056 *) 12057 ;; 12058 esac 12059 ;; 12060 linux* | k*bsd*-gnu) 12061 case $cc_basename in 12062 KCC*) 12063 # KAI C++ Compiler 12064 lt_prog_compiler_wl_CXX='--backend -Wl,' 12065 lt_prog_compiler_pic_CXX='-fPIC' 12066 ;; 12067 icpc* | ecpc*) 12068 # Intel C++ 12069 lt_prog_compiler_wl_CXX='-Wl,' 12070 lt_prog_compiler_pic_CXX='-KPIC' 12071 lt_prog_compiler_static_CXX='-static' 12072 ;; 12073 pgCC*) 12074 # Portland Group C++ compiler. 12075 lt_prog_compiler_wl_CXX='-Wl,' 12076 lt_prog_compiler_pic_CXX='-fpic' 12077 lt_prog_compiler_static_CXX='-Bstatic' 12078 ;; 12079 cxx*) 12080 # Compaq C++ 12081 # Make sure the PIC flag is empty. It appears that all Alpha 12082 # Linux and Compaq Tru64 Unix objects are PIC. 12083 lt_prog_compiler_pic_CXX= 12084 lt_prog_compiler_static_CXX='-non_shared' 12085 ;; 12086 *) 12087 ;; 12088 esac 12089 ;; 12090 lynxos*) 12091 ;; 12092 m88k*) 12093 ;; 12094 mvs*) 12095 case $cc_basename in 12096 cxx*) 12097 lt_prog_compiler_pic_CXX='-W c,exportall' 12098 ;; 12099 *) 12100 ;; 12101 esac 12102 ;; 12103 netbsd* | netbsdelf*-gnu) 12104 ;; 12105 osf3* | osf4* | osf5*) 12106 case $cc_basename in 12107 KCC*) 12108 lt_prog_compiler_wl_CXX='--backend -Wl,' 12109 ;; 12110 RCC*) 12111 # Rational C++ 2.4.1 12112 lt_prog_compiler_pic_CXX='-pic' 12113 ;; 12114 cxx*) 12115 # Digital/Compaq C++ 12116 lt_prog_compiler_wl_CXX='-Wl,' 12117 # Make sure the PIC flag is empty. It appears that all Alpha 12118 # Linux and Compaq Tru64 Unix objects are PIC. 12119 lt_prog_compiler_pic_CXX= 12120 lt_prog_compiler_static_CXX='-non_shared' 12121 ;; 12122 *) 12123 ;; 12124 esac 12125 ;; 12126 psos*) 12127 ;; 12128 solaris*) 12129 case $cc_basename in 12130 CC*) 12131 # Sun C++ 4.2, 5.x and Centerline C++ 12132 lt_prog_compiler_pic_CXX='-KPIC' 12133 lt_prog_compiler_static_CXX='-Bstatic' 12134 lt_prog_compiler_wl_CXX='-Qoption ld ' 12135 ;; 12136 gcx*) 12137 # Green Hills C++ Compiler 12138 lt_prog_compiler_pic_CXX='-PIC' 12139 ;; 12140 *) 12141 ;; 12142 esac 12143 ;; 12144 sunos4*) 12145 case $cc_basename in 12146 CC*) 12147 # Sun C++ 4.x 12148 lt_prog_compiler_pic_CXX='-pic' 12149 lt_prog_compiler_static_CXX='-Bstatic' 12150 ;; 12151 lcc*) 12152 # Lucid 12153 lt_prog_compiler_pic_CXX='-pic' 12154 ;; 12155 *) 12156 ;; 12157 esac 12158 ;; 12159 tandem*) 12160 case $cc_basename in 12161 NCC*) 12162 # NonStop-UX NCC 3.20 12163 lt_prog_compiler_pic_CXX='-KPIC' 12164 ;; 12165 *) 12166 ;; 12167 esac 12168 ;; 12169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12170 case $cc_basename in 12171 CC*) 12172 lt_prog_compiler_wl_CXX='-Wl,' 12173 lt_prog_compiler_pic_CXX='-KPIC' 12174 lt_prog_compiler_static_CXX='-Bstatic' 12175 ;; 12176 esac 12177 ;; 12178 vxworks*) 12179 ;; 12180 *) 12181 lt_prog_compiler_can_build_shared_CXX=no 12182 ;; 12183 esac 12184 fi 12185 12186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12187echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12188 12189# 12190# Check to make sure the PIC flag actually works. 12191# 12192if test -n "$lt_prog_compiler_pic_CXX"; then 12193 12194{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12195echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12196if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12197 echo $ECHO_N "(cached) $ECHO_C" >&6 12198else 12199 lt_prog_compiler_pic_works_CXX=no 12200 ac_outfile=conftest.$ac_objext 12201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12203 # Insert the option either (1) after the last *FLAGS variable, or 12204 # (2) before a word containing "conftest.", or (3) at the end. 12205 # Note that $ac_compile itself does not contain backslashes and begins 12206 # with a dollar sign (not a hyphen), so the echo should work correctly. 12207 # The option is referenced via a variable to avoid confusing sed. 12208 lt_compile=`echo "$ac_compile" | $SED \ 12209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12211 -e 's:$: $lt_compiler_flag:'` 12212 (eval echo "\"\$as_me:12212: $lt_compile\"" >&5) 12213 (eval "$lt_compile" 2>conftest.err) 12214 ac_status=$? 12215 cat conftest.err >&5 12216 echo "$as_me:12216: \$? = $ac_status" >&5 12217 if (exit $ac_status) && test -s "$ac_outfile"; then 12218 # The compiler can only warn and ignore the option if not recognized 12219 # So say no if there are warnings other than the usual output. 12220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12223 lt_prog_compiler_pic_works_CXX=yes 12224 fi 12225 fi 12226 $rm conftest* 12227 12228fi 12229{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12230echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12231 12232if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12233 case $lt_prog_compiler_pic_CXX in 12234 "" | " "*) ;; 12235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12236 esac 12237else 12238 lt_prog_compiler_pic_CXX= 12239 lt_prog_compiler_can_build_shared_CXX=no 12240fi 12241 12242fi 12243case $host_os in 12244 # For platforms which do not support PIC, -DPIC is meaningless: 12245 *djgpp*) 12246 lt_prog_compiler_pic_CXX= 12247 ;; 12248 *) 12249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12250 ;; 12251esac 12252 12253# 12254# Check to make sure the static flag actually works. 12255# 12256wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12257{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12258echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12259if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12260 echo $ECHO_N "(cached) $ECHO_C" >&6 12261else 12262 lt_prog_compiler_static_works_CXX=no 12263 save_LDFLAGS="$LDFLAGS" 12264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12265 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12267 # The linker can only warn and ignore the option if not recognized 12268 # So say no if there are warnings 12269 if test -s conftest.err; then 12270 # Append any errors to the config.log. 12271 cat conftest.err 1>&5 12272 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12274 if diff conftest.exp conftest.er2 >/dev/null; then 12275 lt_prog_compiler_static_works_CXX=yes 12276 fi 12277 else 12278 lt_prog_compiler_static_works_CXX=yes 12279 fi 12280 fi 12281 $rm conftest* 12282 LDFLAGS="$save_LDFLAGS" 12283 12284fi 12285{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12286echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12287 12288if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12289 : 12290else 12291 lt_prog_compiler_static_CXX= 12292fi 12293 12294 12295{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12296echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12297if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12298 echo $ECHO_N "(cached) $ECHO_C" >&6 12299else 12300 lt_cv_prog_compiler_c_o_CXX=no 12301 $rm -r conftest 2>/dev/null 12302 mkdir conftest 12303 cd conftest 12304 mkdir out 12305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12306 12307 lt_compiler_flag="-o out/conftest2.$ac_objext" 12308 # Insert the option either (1) after the last *FLAGS variable, or 12309 # (2) before a word containing "conftest.", or (3) at the end. 12310 # Note that $ac_compile itself does not contain backslashes and begins 12311 # with a dollar sign (not a hyphen), so the echo should work correctly. 12312 lt_compile=`echo "$ac_compile" | $SED \ 12313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12315 -e 's:$: $lt_compiler_flag:'` 12316 (eval echo "\"\$as_me:12316: $lt_compile\"" >&5) 12317 (eval "$lt_compile" 2>out/conftest.err) 12318 ac_status=$? 12319 cat out/conftest.err >&5 12320 echo "$as_me:12320: \$? = $ac_status" >&5 12321 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12322 then 12323 # The compiler can only warn and ignore the option if not recognized 12324 # So say no if there are warnings 12325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12328 lt_cv_prog_compiler_c_o_CXX=yes 12329 fi 12330 fi 12331 chmod u+w . 2>&5 12332 $rm conftest* 12333 # SGI C++ compiler will create directory out/ii_files/ for 12334 # template instantiation 12335 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12336 $rm out/* && rmdir out 12337 cd .. 12338 rmdir conftest 12339 $rm conftest* 12340 12341fi 12342{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12343echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12344 12345 12346hard_links="nottested" 12347if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12348 # do not overwrite the value of need_locks provided by the user 12349 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12350echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12351 hard_links=yes 12352 $rm conftest* 12353 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12354 touch conftest.a 12355 ln conftest.a conftest.b 2>&5 || hard_links=no 12356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12357 { echo "$as_me:$LINENO: result: $hard_links" >&5 12358echo "${ECHO_T}$hard_links" >&6; } 12359 if test "$hard_links" = no; then 12360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12361echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12362 need_locks=warn 12363 fi 12364else 12365 need_locks=no 12366fi 12367 12368{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12369echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12370 12371 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12372 case $host_os in 12373 aix4* | aix5*) 12374 # If we're using GNU nm, then we don't want the "-C" option. 12375 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12376 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12377 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' 12378 else 12379 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' 12380 fi 12381 ;; 12382 pw32*) 12383 export_symbols_cmds_CXX="$ltdll_cmds" 12384 ;; 12385 cygwin* | mingw*) 12386 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' 12387 ;; 12388 linux* | k*bsd*-gnu) 12389 link_all_deplibs_CXX=no 12390 ;; 12391 *) 12392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12393 ;; 12394 esac 12395 12396{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12397echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12398test "$ld_shlibs_CXX" = no && can_build_shared=no 12399 12400# 12401# Do we need to explicitly link libc? 12402# 12403case "x$archive_cmds_need_lc_CXX" in 12404x|xyes) 12405 # Assume -lc should be added 12406 archive_cmds_need_lc_CXX=yes 12407 12408 if test "$enable_shared" = yes && test "$GCC" = yes; then 12409 case $archive_cmds_CXX in 12410 *'~'*) 12411 # FIXME: we may have to deal with multi-command sequences. 12412 ;; 12413 '$CC '*) 12414 # Test whether the compiler implicitly links with -lc since on some 12415 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12416 # to ld, don't add -lc before -lgcc. 12417 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12418echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12419 $rm conftest* 12420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12421 12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12423 (eval $ac_compile) 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); } 2>conftest.err; then 12427 soname=conftest 12428 lib=conftest 12429 libobjs=conftest.$ac_objext 12430 deplibs= 12431 wl=$lt_prog_compiler_wl_CXX 12432 pic_flag=$lt_prog_compiler_pic_CXX 12433 compiler_flags=-v 12434 linker_flags=-v 12435 verstring= 12436 output_objdir=. 12437 libname=conftest 12438 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12439 allow_undefined_flag_CXX= 12440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12441 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12442 ac_status=$? 12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12444 (exit $ac_status); } 12445 then 12446 archive_cmds_need_lc_CXX=no 12447 else 12448 archive_cmds_need_lc_CXX=yes 12449 fi 12450 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12451 else 12452 cat conftest.err 1>&5 12453 fi 12454 $rm conftest* 12455 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12456echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12457 ;; 12458 esac 12459 fi 12460 ;; 12461esac 12462 12463{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12464echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12465library_names_spec= 12466libname_spec='lib$name' 12467soname_spec= 12468shrext_cmds=".so" 12469postinstall_cmds= 12470postuninstall_cmds= 12471finish_cmds= 12472finish_eval= 12473shlibpath_var= 12474shlibpath_overrides_runpath=unknown 12475version_type=none 12476dynamic_linker="$host_os ld.so" 12477sys_lib_dlsearch_path_spec="/lib /usr/lib" 12478if test "$GCC" = yes; then 12479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12480 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12481 # if the path contains ";" then we assume it to be the separator 12482 # otherwise default to the standard path separator (i.e. ":") - it is 12483 # assumed that no part of a normal pathname contains ";" but that should 12484 # okay in the real world where ";" in dirpaths is itself problematic. 12485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12486 else 12487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12488 fi 12489else 12490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12491fi 12492need_lib_prefix=unknown 12493hardcode_into_libs=no 12494 12495# when you set need_version to no, make sure it does not cause -set_version 12496# flags to be left without arguments 12497need_version=unknown 12498 12499case $host_os in 12500aix3*) 12501 version_type=linux 12502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12503 shlibpath_var=LIBPATH 12504 12505 # AIX 3 has no versioning support, so we append a major version to the name. 12506 soname_spec='${libname}${release}${shared_ext}$major' 12507 ;; 12508 12509aix4* | aix5*) 12510 version_type=linux 12511 need_lib_prefix=no 12512 need_version=no 12513 hardcode_into_libs=yes 12514 if test "$host_cpu" = ia64; then 12515 # AIX 5 supports IA64 12516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12517 shlibpath_var=LD_LIBRARY_PATH 12518 else 12519 # With GCC up to 2.95.x, collect2 would create an import file 12520 # for dependence libraries. The import file would start with 12521 # the line `#! .'. This would cause the generated library to 12522 # depend on `.', always an invalid library. This was fixed in 12523 # development snapshots of GCC prior to 3.0. 12524 case $host_os in 12525 aix4 | aix4.[01] | aix4.[01].*) 12526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12527 echo ' yes ' 12528 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12529 : 12530 else 12531 can_build_shared=no 12532 fi 12533 ;; 12534 esac 12535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12536 # soname into executable. Probably we can add versioning support to 12537 # collect2, so additional links can be useful in future. 12538 if test "$aix_use_runtimelinking" = yes; then 12539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12540 # instead of lib<name>.a to let people know that these are not 12541 # typical AIX shared libraries. 12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12543 else 12544 # We preserve .a as extension for shared libraries through AIX4.2 12545 # and later when we are not doing run time linking. 12546 library_names_spec='${libname}${release}.a $libname.a' 12547 soname_spec='${libname}${release}${shared_ext}$major' 12548 fi 12549 shlibpath_var=LIBPATH 12550 fi 12551 ;; 12552 12553amigaos*) 12554 library_names_spec='$libname.ixlibrary $libname.a' 12555 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12556 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' 12557 ;; 12558 12559beos*) 12560 library_names_spec='${libname}${shared_ext}' 12561 dynamic_linker="$host_os ld.so" 12562 shlibpath_var=LIBRARY_PATH 12563 ;; 12564 12565bsdi[45]*) 12566 version_type=linux 12567 need_version=no 12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12569 soname_spec='${libname}${release}${shared_ext}$major' 12570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12571 shlibpath_var=LD_LIBRARY_PATH 12572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12574 # the default ld.so.conf also contains /usr/contrib/lib and 12575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12576 # libtool to hard-code these into programs 12577 ;; 12578 12579cygwin* | mingw* | pw32*) 12580 version_type=windows 12581 shrext_cmds=".dll" 12582 need_version=no 12583 need_lib_prefix=no 12584 12585 case $GCC,$host_os in 12586 yes,cygwin* | yes,mingw* | yes,pw32*) 12587 library_names_spec='$libname.dll.a' 12588 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12589 postinstall_cmds='base_file=`basename \${file}`~ 12590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12591 dldir=$destdir/`dirname \$dlpath`~ 12592 test -d \$dldir || mkdir -p \$dldir~ 12593 $install_prog $dir/$dlname \$dldir/$dlname~ 12594 chmod a+x \$dldir/$dlname' 12595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12596 dlpath=$dir/\$dldll~ 12597 $rm \$dlpath' 12598 shlibpath_overrides_runpath=yes 12599 12600 case $host_os in 12601 cygwin*) 12602 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12603 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12604 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12605 ;; 12606 mingw*) 12607 # MinGW DLLs use traditional 'lib' prefix 12608 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12610 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12611 # It is most probably a Windows format PATH printed by 12612 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12613 # path with ; separators, and with drive letters. We can handle the 12614 # drive letters (cygwin fileutils understands them), so leave them, 12615 # especially as we might pass files found there to a mingw objdump, 12616 # which wouldn't understand a cygwinified path. Ahh. 12617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12618 else 12619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12620 fi 12621 ;; 12622 pw32*) 12623 # pw32 DLLs use 'pw' prefix rather than 'lib' 12624 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12625 ;; 12626 esac 12627 ;; 12628 12629 *) 12630 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12631 ;; 12632 esac 12633 dynamic_linker='Win32 ld.exe' 12634 # FIXME: first we should search . and the directory the executable is in 12635 shlibpath_var=PATH 12636 ;; 12637 12638darwin* | rhapsody*) 12639 dynamic_linker="$host_os dyld" 12640 version_type=darwin 12641 need_lib_prefix=no 12642 need_version=no 12643 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12644 soname_spec='${libname}${release}${major}$shared_ext' 12645 shlibpath_overrides_runpath=yes 12646 shlibpath_var=DYLD_LIBRARY_PATH 12647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12648 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12649 if test "$GCC" = yes; then 12650 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12651 else 12652 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12653 fi 12654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12655 ;; 12656 12657dgux*) 12658 version_type=linux 12659 need_lib_prefix=no 12660 need_version=no 12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12662 soname_spec='${libname}${release}${shared_ext}$major' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 ;; 12665 12666freebsd1*) 12667 dynamic_linker=no 12668 ;; 12669 12670freebsd* | dragonfly*) 12671 # DragonFly does not have aout. When/if they implement a new 12672 # versioning mechanism, adjust this. 12673 if test -x /usr/bin/objformat; then 12674 objformat=`/usr/bin/objformat` 12675 else 12676 case $host_os in 12677 freebsd[123]*) objformat=aout ;; 12678 *) objformat=elf ;; 12679 esac 12680 fi 12681 version_type=freebsd-$objformat 12682 case $version_type in 12683 freebsd-elf*) 12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12685 need_version=no 12686 need_lib_prefix=no 12687 ;; 12688 freebsd-*) 12689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12690 need_version=yes 12691 ;; 12692 esac 12693 shlibpath_var=LD_LIBRARY_PATH 12694 case $host_os in 12695 freebsd2*) 12696 shlibpath_overrides_runpath=yes 12697 ;; 12698 freebsd3.[01]* | freebsdelf3.[01]*) 12699 shlibpath_overrides_runpath=yes 12700 hardcode_into_libs=yes 12701 ;; 12702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12704 shlibpath_overrides_runpath=no 12705 hardcode_into_libs=yes 12706 ;; 12707 freebsd*) # from 4.6 on 12708 shlibpath_overrides_runpath=yes 12709 hardcode_into_libs=yes 12710 ;; 12711 esac 12712 ;; 12713 12714gnu*) 12715 version_type=linux 12716 need_lib_prefix=no 12717 need_version=no 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12719 soname_spec='${libname}${release}${shared_ext}$major' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 hardcode_into_libs=yes 12722 ;; 12723 12724hpux9* | hpux10* | hpux11*) 12725 # Give a soname corresponding to the major version so that dld.sl refuses to 12726 # link against other versions. 12727 version_type=sunos 12728 need_lib_prefix=no 12729 need_version=no 12730 case $host_cpu in 12731 ia64*) 12732 shrext_cmds='.so' 12733 hardcode_into_libs=yes 12734 dynamic_linker="$host_os dld.so" 12735 shlibpath_var=LD_LIBRARY_PATH 12736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12738 soname_spec='${libname}${release}${shared_ext}$major' 12739 if test "X$HPUX_IA64_MODE" = X32; then 12740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12741 else 12742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12743 fi 12744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12745 ;; 12746 hppa*64*) 12747 shrext_cmds='.sl' 12748 hardcode_into_libs=yes 12749 dynamic_linker="$host_os dld.sl" 12750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12753 soname_spec='${libname}${release}${shared_ext}$major' 12754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12756 ;; 12757 *) 12758 shrext_cmds='.sl' 12759 dynamic_linker="$host_os dld.sl" 12760 shlibpath_var=SHLIB_PATH 12761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12763 soname_spec='${libname}${release}${shared_ext}$major' 12764 ;; 12765 esac 12766 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12767 postinstall_cmds='chmod 555 $lib' 12768 ;; 12769 12770interix3*) 12771 version_type=linux 12772 need_lib_prefix=no 12773 need_version=no 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12775 soname_spec='${libname}${release}${shared_ext}$major' 12776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12777 shlibpath_var=LD_LIBRARY_PATH 12778 shlibpath_overrides_runpath=no 12779 hardcode_into_libs=yes 12780 ;; 12781 12782irix5* | irix6* | nonstopux*) 12783 case $host_os in 12784 nonstopux*) version_type=nonstopux ;; 12785 *) 12786 if test "$lt_cv_prog_gnu_ld" = yes; then 12787 version_type=linux 12788 else 12789 version_type=irix 12790 fi ;; 12791 esac 12792 need_lib_prefix=no 12793 need_version=no 12794 soname_spec='${libname}${release}${shared_ext}$major' 12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12796 case $host_os in 12797 irix5* | nonstopux*) 12798 libsuff= shlibsuff= 12799 ;; 12800 *) 12801 case $LD in # libtool.m4 will add one of these switches to LD 12802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12803 libsuff= shlibsuff= libmagic=32-bit;; 12804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12805 libsuff=32 shlibsuff=N32 libmagic=N32;; 12806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12807 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12808 *) libsuff= shlibsuff= libmagic=never-match;; 12809 esac 12810 ;; 12811 esac 12812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12813 shlibpath_overrides_runpath=no 12814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12816 hardcode_into_libs=yes 12817 ;; 12818 12819# No shared lib support for Linux oldld, aout, or coff. 12820linux*oldld* | linux*aout* | linux*coff*) 12821 dynamic_linker=no 12822 ;; 12823 12824# This must be Linux ELF. 12825linux* | k*bsd*-gnu) 12826 version_type=linux 12827 need_lib_prefix=no 12828 need_version=no 12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12830 soname_spec='${libname}${release}${shared_ext}$major' 12831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12832 shlibpath_var=LD_LIBRARY_PATH 12833 shlibpath_overrides_runpath=no 12834 # This implies no fast_install, which is unacceptable. 12835 # Some rework will be needed to allow for fast_install 12836 # before this can be enabled. 12837 hardcode_into_libs=yes 12838 12839 # Append ld.so.conf contents to the search path 12840 if test -f /etc/ld.so.conf; then 12841 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12843 fi 12844 12845 # We used to test for /lib/ld.so.1 and disable shared libraries on 12846 # powerpc, because MkLinux only supported shared libraries with the 12847 # GNU dynamic linker. Since this was broken with cross compilers, 12848 # most powerpc-linux boxes support dynamic linking these days and 12849 # people can always --disable-shared, the test was removed, and we 12850 # assume the GNU/Linux dynamic linker is in use. 12851 dynamic_linker='GNU/Linux ld.so' 12852 ;; 12853 12854netbsdelf*-gnu) 12855 version_type=linux 12856 need_lib_prefix=no 12857 need_version=no 12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12859 soname_spec='${libname}${release}${shared_ext}$major' 12860 shlibpath_var=LD_LIBRARY_PATH 12861 shlibpath_overrides_runpath=no 12862 hardcode_into_libs=yes 12863 dynamic_linker='NetBSD ld.elf_so' 12864 ;; 12865 12866netbsd*) 12867 version_type=sunos 12868 need_lib_prefix=no 12869 need_version=no 12870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12873 dynamic_linker='NetBSD (a.out) ld.so' 12874 else 12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12876 soname_spec='${libname}${release}${shared_ext}$major' 12877 dynamic_linker='NetBSD ld.elf_so' 12878 fi 12879 shlibpath_var=LD_LIBRARY_PATH 12880 shlibpath_overrides_runpath=yes 12881 hardcode_into_libs=yes 12882 ;; 12883 12884newsos6) 12885 version_type=linux 12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12887 shlibpath_var=LD_LIBRARY_PATH 12888 shlibpath_overrides_runpath=yes 12889 ;; 12890 12891nto-qnx*) 12892 version_type=linux 12893 need_lib_prefix=no 12894 need_version=no 12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12896 soname_spec='${libname}${release}${shared_ext}$major' 12897 shlibpath_var=LD_LIBRARY_PATH 12898 shlibpath_overrides_runpath=yes 12899 ;; 12900 12901openbsd*) 12902 version_type=sunos 12903 sys_lib_dlsearch_path_spec="/usr/lib" 12904 need_lib_prefix=no 12905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12906 case $host_os in 12907 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12908 *) need_version=no ;; 12909 esac 12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12912 shlibpath_var=LD_LIBRARY_PATH 12913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12914 case $host_os in 12915 openbsd2.[89] | openbsd2.[89].*) 12916 shlibpath_overrides_runpath=no 12917 ;; 12918 *) 12919 shlibpath_overrides_runpath=yes 12920 ;; 12921 esac 12922 else 12923 shlibpath_overrides_runpath=yes 12924 fi 12925 ;; 12926 12927os2*) 12928 libname_spec='$name' 12929 shrext_cmds=".dll" 12930 need_lib_prefix=no 12931 library_names_spec='$libname${shared_ext} $libname.a' 12932 dynamic_linker='OS/2 ld.exe' 12933 shlibpath_var=LIBPATH 12934 ;; 12935 12936osf3* | osf4* | osf5*) 12937 version_type=osf 12938 need_lib_prefix=no 12939 need_version=no 12940 soname_spec='${libname}${release}${shared_ext}$major' 12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12942 shlibpath_var=LD_LIBRARY_PATH 12943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12945 ;; 12946 12947solaris*) 12948 version_type=linux 12949 need_lib_prefix=no 12950 need_version=no 12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12952 soname_spec='${libname}${release}${shared_ext}$major' 12953 shlibpath_var=LD_LIBRARY_PATH 12954 shlibpath_overrides_runpath=yes 12955 hardcode_into_libs=yes 12956 # ldd complains unless libraries are executable 12957 postinstall_cmds='chmod +x $lib' 12958 ;; 12959 12960sunos4*) 12961 version_type=sunos 12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12964 shlibpath_var=LD_LIBRARY_PATH 12965 shlibpath_overrides_runpath=yes 12966 if test "$with_gnu_ld" = yes; then 12967 need_lib_prefix=no 12968 fi 12969 need_version=yes 12970 ;; 12971 12972sysv4 | sysv4.3*) 12973 version_type=linux 12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12975 soname_spec='${libname}${release}${shared_ext}$major' 12976 shlibpath_var=LD_LIBRARY_PATH 12977 case $host_vendor in 12978 sni) 12979 shlibpath_overrides_runpath=no 12980 need_lib_prefix=no 12981 export_dynamic_flag_spec='${wl}-Blargedynsym' 12982 runpath_var=LD_RUN_PATH 12983 ;; 12984 siemens) 12985 need_lib_prefix=no 12986 ;; 12987 motorola) 12988 need_lib_prefix=no 12989 need_version=no 12990 shlibpath_overrides_runpath=no 12991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12992 ;; 12993 esac 12994 ;; 12995 12996sysv4*MP*) 12997 if test -d /usr/nec ;then 12998 version_type=linux 12999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13000 soname_spec='$libname${shared_ext}.$major' 13001 shlibpath_var=LD_LIBRARY_PATH 13002 fi 13003 ;; 13004 13005sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13006 version_type=freebsd-elf 13007 need_lib_prefix=no 13008 need_version=no 13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13010 soname_spec='${libname}${release}${shared_ext}$major' 13011 shlibpath_var=LD_LIBRARY_PATH 13012 hardcode_into_libs=yes 13013 if test "$with_gnu_ld" = yes; then 13014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13015 shlibpath_overrides_runpath=no 13016 else 13017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13018 shlibpath_overrides_runpath=yes 13019 case $host_os in 13020 sco3.2v5*) 13021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13022 ;; 13023 esac 13024 fi 13025 sys_lib_dlsearch_path_spec='/usr/lib' 13026 ;; 13027 13028uts4*) 13029 version_type=linux 13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 shlibpath_var=LD_LIBRARY_PATH 13033 ;; 13034 13035*) 13036 dynamic_linker=no 13037 ;; 13038esac 13039{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13040echo "${ECHO_T}$dynamic_linker" >&6; } 13041test "$dynamic_linker" = no && can_build_shared=no 13042 13043variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13044if test "$GCC" = yes; then 13045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13046fi 13047 13048{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13049echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13050hardcode_action_CXX= 13051if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13052 test -n "$runpath_var_CXX" || \ 13053 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13054 13055 # We can hardcode non-existant directories. 13056 if test "$hardcode_direct_CXX" != no && 13057 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13058 # have to relink, otherwise we might link with an installed library 13059 # when we should be linking with a yet-to-be-installed one 13060 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13061 test "$hardcode_minus_L_CXX" != no; then 13062 # Linking always hardcodes the temporary library directory. 13063 hardcode_action_CXX=relink 13064 else 13065 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13066 hardcode_action_CXX=immediate 13067 fi 13068else 13069 # We cannot hardcode anything, or else we can only hardcode existing 13070 # directories. 13071 hardcode_action_CXX=unsupported 13072fi 13073{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13074echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13075 13076if test "$hardcode_action_CXX" = relink; then 13077 # Fast installation is not supported 13078 enable_fast_install=no 13079elif test "$shlibpath_overrides_runpath" = yes || 13080 test "$enable_shared" = no; then 13081 # Fast installation is not necessary 13082 enable_fast_install=needless 13083fi 13084 13085 13086# The else clause should only fire when bootstrapping the 13087# libtool distribution, otherwise you forgot to ship ltmain.sh 13088# with your package, and you will get complaints that there are 13089# no rules to generate ltmain.sh. 13090if test -f "$ltmain"; then 13091 # See if we are running on zsh, and set the options which allow our commands through 13092 # without removal of \ escapes. 13093 if test -n "${ZSH_VERSION+set}" ; then 13094 setopt NO_GLOB_SUBST 13095 fi 13096 # Now quote all the things that may contain metacharacters while being 13097 # careful not to overquote the AC_SUBSTed values. We take copies of the 13098 # variables and quote the copies for generation of the libtool script. 13099 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13100 SED SHELL STRIP \ 13101 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13102 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13103 deplibs_check_method reload_flag reload_cmds need_locks \ 13104 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13105 lt_cv_sys_global_symbol_to_c_name_address \ 13106 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13107 old_postinstall_cmds old_postuninstall_cmds \ 13108 compiler_CXX \ 13109 CC_CXX \ 13110 LD_CXX \ 13111 lt_prog_compiler_wl_CXX \ 13112 lt_prog_compiler_pic_CXX \ 13113 lt_prog_compiler_static_CXX \ 13114 lt_prog_compiler_no_builtin_flag_CXX \ 13115 export_dynamic_flag_spec_CXX \ 13116 thread_safe_flag_spec_CXX \ 13117 whole_archive_flag_spec_CXX \ 13118 enable_shared_with_static_runtimes_CXX \ 13119 old_archive_cmds_CXX \ 13120 old_archive_from_new_cmds_CXX \ 13121 predep_objects_CXX \ 13122 postdep_objects_CXX \ 13123 predeps_CXX \ 13124 postdeps_CXX \ 13125 compiler_lib_search_path_CXX \ 13126 archive_cmds_CXX \ 13127 archive_expsym_cmds_CXX \ 13128 postinstall_cmds_CXX \ 13129 postuninstall_cmds_CXX \ 13130 old_archive_from_expsyms_cmds_CXX \ 13131 allow_undefined_flag_CXX \ 13132 no_undefined_flag_CXX \ 13133 export_symbols_cmds_CXX \ 13134 hardcode_libdir_flag_spec_CXX \ 13135 hardcode_libdir_flag_spec_ld_CXX \ 13136 hardcode_libdir_separator_CXX \ 13137 hardcode_automatic_CXX \ 13138 module_cmds_CXX \ 13139 module_expsym_cmds_CXX \ 13140 lt_cv_prog_compiler_c_o_CXX \ 13141 exclude_expsyms_CXX \ 13142 include_expsyms_CXX; do 13143 13144 case $var in 13145 old_archive_cmds_CXX | \ 13146 old_archive_from_new_cmds_CXX | \ 13147 archive_cmds_CXX | \ 13148 archive_expsym_cmds_CXX | \ 13149 module_cmds_CXX | \ 13150 module_expsym_cmds_CXX | \ 13151 old_archive_from_expsyms_cmds_CXX | \ 13152 export_symbols_cmds_CXX | \ 13153 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13154 postinstall_cmds | postuninstall_cmds | \ 13155 old_postinstall_cmds | old_postuninstall_cmds | \ 13156 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13157 # Double-quote double-evaled strings. 13158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13159 ;; 13160 *) 13161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13162 ;; 13163 esac 13164 done 13165 13166 case $lt_echo in 13167 *'\$0 --fallback-echo"') 13168 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13169 ;; 13170 esac 13171 13172cfgfile="$ofile" 13173 13174 cat <<__EOF__ >> "$cfgfile" 13175# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13176 13177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13178 13179# Shell to use when invoking shell scripts. 13180SHELL=$lt_SHELL 13181 13182# Whether or not to build shared libraries. 13183build_libtool_libs=$enable_shared 13184 13185# Whether or not to build static libraries. 13186build_old_libs=$enable_static 13187 13188# Whether or not to add -lc for building shared libraries. 13189build_libtool_need_lc=$archive_cmds_need_lc_CXX 13190 13191# Whether or not to disallow shared libs when runtime libs are static 13192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13193 13194# Whether or not to optimize for fast installation. 13195fast_install=$enable_fast_install 13196 13197# The host system. 13198host_alias=$host_alias 13199host=$host 13200host_os=$host_os 13201 13202# The build system. 13203build_alias=$build_alias 13204build=$build 13205build_os=$build_os 13206 13207# An echo program that does not interpret backslashes. 13208echo=$lt_echo 13209 13210# The archiver. 13211AR=$lt_AR 13212AR_FLAGS=$lt_AR_FLAGS 13213 13214# A C compiler. 13215LTCC=$lt_LTCC 13216 13217# LTCC compiler flags. 13218LTCFLAGS=$lt_LTCFLAGS 13219 13220# A language-specific compiler. 13221CC=$lt_compiler_CXX 13222 13223# Is the compiler the GNU C compiler? 13224with_gcc=$GCC_CXX 13225 13226# An ERE matcher. 13227EGREP=$lt_EGREP 13228 13229# The linker used to build libraries. 13230LD=$lt_LD_CXX 13231 13232# Whether we need hard or soft links. 13233LN_S=$lt_LN_S 13234 13235# A BSD-compatible nm program. 13236NM=$lt_NM 13237 13238# A symbol stripping program 13239STRIP=$lt_STRIP 13240 13241# Used to examine libraries when file_magic_cmd begins "file" 13242MAGIC_CMD=$MAGIC_CMD 13243 13244# Used on cygwin: DLL creation program. 13245DLLTOOL="$DLLTOOL" 13246 13247# Used on cygwin: object dumper. 13248OBJDUMP="$OBJDUMP" 13249 13250# Used on cygwin: assembler. 13251AS="$AS" 13252 13253# The name of the directory that contains temporary libtool files. 13254objdir=$objdir 13255 13256# How to create reloadable object files. 13257reload_flag=$lt_reload_flag 13258reload_cmds=$lt_reload_cmds 13259 13260# How to pass a linker flag through the compiler. 13261wl=$lt_lt_prog_compiler_wl_CXX 13262 13263# Object file suffix (normally "o"). 13264objext="$ac_objext" 13265 13266# Old archive suffix (normally "a"). 13267libext="$libext" 13268 13269# Shared library suffix (normally ".so"). 13270shrext_cmds='$shrext_cmds' 13271 13272# Executable file suffix (normally ""). 13273exeext="$exeext" 13274 13275# Additional compiler flags for building library objects. 13276pic_flag=$lt_lt_prog_compiler_pic_CXX 13277pic_mode=$pic_mode 13278 13279# What is the maximum length of a command? 13280max_cmd_len=$lt_cv_sys_max_cmd_len 13281 13282# Does compiler simultaneously support -c and -o options? 13283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13284 13285# Must we lock files when doing compilation? 13286need_locks=$lt_need_locks 13287 13288# Do we need the lib prefix for modules? 13289need_lib_prefix=$need_lib_prefix 13290 13291# Do we need a version for libraries? 13292need_version=$need_version 13293 13294# Whether dlopen is supported. 13295dlopen_support=$enable_dlopen 13296 13297# Whether dlopen of programs is supported. 13298dlopen_self=$enable_dlopen_self 13299 13300# Whether dlopen of statically linked programs is supported. 13301dlopen_self_static=$enable_dlopen_self_static 13302 13303# Compiler flag to prevent dynamic linking. 13304link_static_flag=$lt_lt_prog_compiler_static_CXX 13305 13306# Compiler flag to turn off builtin functions. 13307no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13308 13309# Compiler flag to allow reflexive dlopens. 13310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13311 13312# Compiler flag to generate shared objects directly from archives. 13313whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13314 13315# Compiler flag to generate thread-safe objects. 13316thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13317 13318# Library versioning type. 13319version_type=$version_type 13320 13321# Format of library name prefix. 13322libname_spec=$lt_libname_spec 13323 13324# List of archive names. First name is the real one, the rest are links. 13325# The last name is the one that the linker finds with -lNAME. 13326library_names_spec=$lt_library_names_spec 13327 13328# The coded name of the library, if different from the real name. 13329soname_spec=$lt_soname_spec 13330 13331# Commands used to build and install an old-style archive. 13332RANLIB=$lt_RANLIB 13333old_archive_cmds=$lt_old_archive_cmds_CXX 13334old_postinstall_cmds=$lt_old_postinstall_cmds 13335old_postuninstall_cmds=$lt_old_postuninstall_cmds 13336 13337# Create an old-style archive from a shared archive. 13338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13339 13340# Create a temporary old-style archive to link instead of a shared archive. 13341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13342 13343# Commands used to build and install a shared archive. 13344archive_cmds=$lt_archive_cmds_CXX 13345archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13346postinstall_cmds=$lt_postinstall_cmds 13347postuninstall_cmds=$lt_postuninstall_cmds 13348 13349# Commands used to build a loadable module (assumed same as above if empty) 13350module_cmds=$lt_module_cmds_CXX 13351module_expsym_cmds=$lt_module_expsym_cmds_CXX 13352 13353# Commands to strip libraries. 13354old_striplib=$lt_old_striplib 13355striplib=$lt_striplib 13356 13357# Dependencies to place before the objects being linked to create a 13358# shared library. 13359predep_objects=$lt_predep_objects_CXX 13360 13361# Dependencies to place after the objects being linked to create a 13362# shared library. 13363postdep_objects=$lt_postdep_objects_CXX 13364 13365# Dependencies to place before the objects being linked to create a 13366# shared library. 13367predeps=$lt_predeps_CXX 13368 13369# Dependencies to place after the objects being linked to create a 13370# shared library. 13371postdeps=$lt_postdeps_CXX 13372 13373# The library search path used internally by the compiler when linking 13374# a shared library. 13375compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13376 13377# Method to check whether dependent libraries are shared objects. 13378deplibs_check_method=$lt_deplibs_check_method 13379 13380# Command to use when deplibs_check_method == file_magic. 13381file_magic_cmd=$lt_file_magic_cmd 13382 13383# Flag that allows shared libraries with undefined symbols to be built. 13384allow_undefined_flag=$lt_allow_undefined_flag_CXX 13385 13386# Flag that forces no undefined symbols. 13387no_undefined_flag=$lt_no_undefined_flag_CXX 13388 13389# Commands used to finish a libtool library installation in a directory. 13390finish_cmds=$lt_finish_cmds 13391 13392# Same as above, but a single script fragment to be evaled but not shown. 13393finish_eval=$lt_finish_eval 13394 13395# Take the output of nm and produce a listing of raw symbols and C names. 13396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13397 13398# Transform the output of nm in a proper C declaration 13399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13400 13401# Transform the output of nm in a C name address pair 13402global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13403 13404# This is the shared library runtime path variable. 13405runpath_var=$runpath_var 13406 13407# This is the shared library path variable. 13408shlibpath_var=$shlibpath_var 13409 13410# Is shlibpath searched before the hard-coded library search path? 13411shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13412 13413# How to hardcode a shared library path into an executable. 13414hardcode_action=$hardcode_action_CXX 13415 13416# Whether we should hardcode library paths into libraries. 13417hardcode_into_libs=$hardcode_into_libs 13418 13419# Flag to hardcode \$libdir into a binary during linking. 13420# This must work even if \$libdir does not exist. 13421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13422 13423# If ld is used when linking, flag to hardcode \$libdir into 13424# a binary during linking. This must work even if \$libdir does 13425# not exist. 13426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13427 13428# Whether we need a single -rpath flag with a separated argument. 13429hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13430 13431# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13432# resulting binary. 13433hardcode_direct=$hardcode_direct_CXX 13434 13435# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13436# resulting binary. 13437hardcode_minus_L=$hardcode_minus_L_CXX 13438 13439# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13440# the resulting binary. 13441hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13442 13443# Set to yes if building a shared library automatically hardcodes DIR into the library 13444# and all subsequent libraries and executables linked against it. 13445hardcode_automatic=$hardcode_automatic_CXX 13446 13447# Variables whose values should be saved in libtool wrapper scripts and 13448# restored at relink time. 13449variables_saved_for_relink="$variables_saved_for_relink" 13450 13451# Whether libtool must link a program against all its dependency libraries. 13452link_all_deplibs=$link_all_deplibs_CXX 13453 13454# Compile-time system search path for libraries 13455sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13456 13457# Run-time system search path for libraries 13458sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13459 13460# Fix the shell variable \$srcfile for the compiler. 13461fix_srcfile_path="$fix_srcfile_path_CXX" 13462 13463# Set to yes if exported symbols are required. 13464always_export_symbols=$always_export_symbols_CXX 13465 13466# The commands to list exported symbols. 13467export_symbols_cmds=$lt_export_symbols_cmds_CXX 13468 13469# The commands to extract the exported symbol list from a shared archive. 13470extract_expsyms_cmds=$lt_extract_expsyms_cmds 13471 13472# Symbols that should not be listed in the preloaded symbols. 13473exclude_expsyms=$lt_exclude_expsyms_CXX 13474 13475# Symbols that must always be exported. 13476include_expsyms=$lt_include_expsyms_CXX 13477 13478# ### END LIBTOOL TAG CONFIG: $tagname 13479 13480__EOF__ 13481 13482 13483else 13484 # If there is no Makefile yet, we rely on a make rule to execute 13485 # `config.status --recheck' to rerun these tests and create the 13486 # libtool script then. 13487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13488 if test -f "$ltmain_in"; then 13489 test -f Makefile && make "$ltmain" 13490 fi 13491fi 13492 13493 13494ac_ext=c 13495ac_cpp='$CPP $CPPFLAGS' 13496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13498ac_compiler_gnu=$ac_cv_c_compiler_gnu 13499 13500CC=$lt_save_CC 13501LDCXX=$LD 13502LD=$lt_save_LD 13503GCC=$lt_save_GCC 13504with_gnu_ldcxx=$with_gnu_ld 13505with_gnu_ld=$lt_save_with_gnu_ld 13506lt_cv_path_LDCXX=$lt_cv_path_LD 13507lt_cv_path_LD=$lt_save_path_LD 13508lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13509lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13510 13511 else 13512 tagname="" 13513 fi 13514 ;; 13515 13516 F77) 13517 if test -n "$F77" && test "X$F77" != "Xno"; then 13518 13519ac_ext=f 13520ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13521ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13522ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13523 13524 13525archive_cmds_need_lc_F77=no 13526allow_undefined_flag_F77= 13527always_export_symbols_F77=no 13528archive_expsym_cmds_F77= 13529export_dynamic_flag_spec_F77= 13530hardcode_direct_F77=no 13531hardcode_libdir_flag_spec_F77= 13532hardcode_libdir_flag_spec_ld_F77= 13533hardcode_libdir_separator_F77= 13534hardcode_minus_L_F77=no 13535hardcode_automatic_F77=no 13536module_cmds_F77= 13537module_expsym_cmds_F77= 13538link_all_deplibs_F77=unknown 13539old_archive_cmds_F77=$old_archive_cmds 13540no_undefined_flag_F77= 13541whole_archive_flag_spec_F77= 13542enable_shared_with_static_runtimes_F77=no 13543 13544# Source file extension for f77 test sources. 13545ac_ext=f 13546 13547# Object file extension for compiled f77 test sources. 13548objext=o 13549objext_F77=$objext 13550 13551# Code to be used in simple compile tests 13552lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13553 13554# Code to be used in simple link tests 13555lt_simple_link_test_code=" program t\n end\n" 13556 13557# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13558 13559# If no C compiler was specified, use CC. 13560LTCC=${LTCC-"$CC"} 13561 13562# If no C compiler flags were specified, use CFLAGS. 13563LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13564 13565# Allow CC to be a program name with arguments. 13566compiler=$CC 13567 13568 13569# save warnings/boilerplate of simple test code 13570ac_outfile=conftest.$ac_objext 13571printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13573_lt_compiler_boilerplate=`cat conftest.err` 13574$rm conftest* 13575 13576ac_outfile=conftest.$ac_objext 13577printf "$lt_simple_link_test_code" >conftest.$ac_ext 13578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13579_lt_linker_boilerplate=`cat conftest.err` 13580$rm conftest* 13581 13582 13583# Allow CC to be a program name with arguments. 13584lt_save_CC="$CC" 13585CC=${F77-"f77"} 13586compiler=$CC 13587compiler_F77=$CC 13588for cc_temp in $compiler""; do 13589 case $cc_temp in 13590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13592 \-*) ;; 13593 *) break;; 13594 esac 13595done 13596cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13597 13598 13599{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13600echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13601{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13602echo "${ECHO_T}$can_build_shared" >&6; } 13603 13604{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13605echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13606test "$can_build_shared" = "no" && enable_shared=no 13607 13608# On AIX, shared libraries and static libraries use the same namespace, and 13609# are all built from PIC. 13610case $host_os in 13611aix3*) 13612 test "$enable_shared" = yes && enable_static=no 13613 if test -n "$RANLIB"; then 13614 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13615 postinstall_cmds='$RANLIB $lib' 13616 fi 13617 ;; 13618aix4* | aix5*) 13619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13620 test "$enable_shared" = yes && enable_static=no 13621 fi 13622 ;; 13623esac 13624{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13625echo "${ECHO_T}$enable_shared" >&6; } 13626 13627{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13628echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13629# Make sure either enable_shared or enable_static is yes. 13630test "$enable_shared" = yes || enable_static=yes 13631{ echo "$as_me:$LINENO: result: $enable_static" >&5 13632echo "${ECHO_T}$enable_static" >&6; } 13633 13634GCC_F77="$G77" 13635LD_F77="$LD" 13636 13637lt_prog_compiler_wl_F77= 13638lt_prog_compiler_pic_F77= 13639lt_prog_compiler_static_F77= 13640 13641{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13642echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13643 13644 if test "$GCC" = yes; then 13645 lt_prog_compiler_wl_F77='-Wl,' 13646 lt_prog_compiler_static_F77='-static' 13647 13648 case $host_os in 13649 aix*) 13650 # All AIX code is PIC. 13651 if test "$host_cpu" = ia64; then 13652 # AIX 5 now supports IA64 processor 13653 lt_prog_compiler_static_F77='-Bstatic' 13654 fi 13655 ;; 13656 13657 amigaos*) 13658 # FIXME: we need at least 68020 code to build shared libraries, but 13659 # adding the `-m68020' flag to GCC prevents building anything better, 13660 # like `-m68040'. 13661 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13662 ;; 13663 13664 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13665 # PIC is the default for these OSes. 13666 ;; 13667 13668 mingw* | pw32* | os2*) 13669 # This hack is so that the source file can tell whether it is being 13670 # built for inclusion in a dll (and should export symbols for example). 13671 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13672 ;; 13673 13674 darwin* | rhapsody*) 13675 # PIC is the default on this platform 13676 # Common symbols not allowed in MH_DYLIB files 13677 lt_prog_compiler_pic_F77='-fno-common' 13678 ;; 13679 13680 interix3*) 13681 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13682 # Instead, we relocate shared libraries at runtime. 13683 ;; 13684 13685 msdosdjgpp*) 13686 # Just because we use GCC doesn't mean we suddenly get shared libraries 13687 # on systems that don't support them. 13688 lt_prog_compiler_can_build_shared_F77=no 13689 enable_shared=no 13690 ;; 13691 13692 sysv4*MP*) 13693 if test -d /usr/nec; then 13694 lt_prog_compiler_pic_F77=-Kconform_pic 13695 fi 13696 ;; 13697 13698 hpux*) 13699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13700 # not for PA HP-UX. 13701 case $host_cpu in 13702 hppa*64*|ia64*) 13703 # +Z the default 13704 ;; 13705 *) 13706 lt_prog_compiler_pic_F77='-fPIC' 13707 ;; 13708 esac 13709 ;; 13710 13711 *) 13712 lt_prog_compiler_pic_F77='-fPIC' 13713 ;; 13714 esac 13715 else 13716 # PORTME Check for flag to pass linker flags through the system compiler. 13717 case $host_os in 13718 aix*) 13719 lt_prog_compiler_wl_F77='-Wl,' 13720 if test "$host_cpu" = ia64; then 13721 # AIX 5 now supports IA64 processor 13722 lt_prog_compiler_static_F77='-Bstatic' 13723 else 13724 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13725 fi 13726 ;; 13727 darwin*) 13728 # PIC is the default on this platform 13729 # Common symbols not allowed in MH_DYLIB files 13730 case $cc_basename in 13731 xlc*) 13732 lt_prog_compiler_pic_F77='-qnocommon' 13733 lt_prog_compiler_wl_F77='-Wl,' 13734 ;; 13735 esac 13736 ;; 13737 13738 mingw* | pw32* | os2*) 13739 # This hack is so that the source file can tell whether it is being 13740 # built for inclusion in a dll (and should export symbols for example). 13741 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13742 ;; 13743 13744 hpux9* | hpux10* | hpux11*) 13745 lt_prog_compiler_wl_F77='-Wl,' 13746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13747 # not for PA HP-UX. 13748 case $host_cpu in 13749 hppa*64*|ia64*) 13750 # +Z the default 13751 ;; 13752 *) 13753 lt_prog_compiler_pic_F77='+Z' 13754 ;; 13755 esac 13756 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13757 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13758 ;; 13759 13760 irix5* | irix6* | nonstopux*) 13761 lt_prog_compiler_wl_F77='-Wl,' 13762 # PIC (with -KPIC) is the default. 13763 lt_prog_compiler_static_F77='-non_shared' 13764 ;; 13765 13766 newsos6) 13767 lt_prog_compiler_pic_F77='-KPIC' 13768 lt_prog_compiler_static_F77='-Bstatic' 13769 ;; 13770 13771 linux* | k*bsd*-gnu) 13772 case $cc_basename in 13773 icc* | ecc*) 13774 lt_prog_compiler_wl_F77='-Wl,' 13775 lt_prog_compiler_pic_F77='-KPIC' 13776 lt_prog_compiler_static_F77='-static' 13777 ;; 13778 pgcc* | pgf77* | pgf90* | pgf95*) 13779 # Portland Group compilers (*not* the Pentium gcc compiler, 13780 # which looks to be a dead project) 13781 lt_prog_compiler_wl_F77='-Wl,' 13782 lt_prog_compiler_pic_F77='-fpic' 13783 lt_prog_compiler_static_F77='-Bstatic' 13784 ;; 13785 ccc*) 13786 lt_prog_compiler_wl_F77='-Wl,' 13787 # All Alpha code is PIC. 13788 lt_prog_compiler_static_F77='-non_shared' 13789 ;; 13790 esac 13791 ;; 13792 13793 osf3* | osf4* | osf5*) 13794 lt_prog_compiler_wl_F77='-Wl,' 13795 # All OSF/1 code is PIC. 13796 lt_prog_compiler_static_F77='-non_shared' 13797 ;; 13798 13799 solaris*) 13800 lt_prog_compiler_pic_F77='-KPIC' 13801 lt_prog_compiler_static_F77='-Bstatic' 13802 case $cc_basename in 13803 f77* | f90* | f95*) 13804 lt_prog_compiler_wl_F77='-Qoption ld ';; 13805 *) 13806 lt_prog_compiler_wl_F77='-Wl,';; 13807 esac 13808 ;; 13809 13810 sunos4*) 13811 lt_prog_compiler_wl_F77='-Qoption ld ' 13812 lt_prog_compiler_pic_F77='-PIC' 13813 lt_prog_compiler_static_F77='-Bstatic' 13814 ;; 13815 13816 sysv4 | sysv4.2uw2* | sysv4.3*) 13817 lt_prog_compiler_wl_F77='-Wl,' 13818 lt_prog_compiler_pic_F77='-KPIC' 13819 lt_prog_compiler_static_F77='-Bstatic' 13820 ;; 13821 13822 sysv4*MP*) 13823 if test -d /usr/nec ;then 13824 lt_prog_compiler_pic_F77='-Kconform_pic' 13825 lt_prog_compiler_static_F77='-Bstatic' 13826 fi 13827 ;; 13828 13829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13830 lt_prog_compiler_wl_F77='-Wl,' 13831 lt_prog_compiler_pic_F77='-KPIC' 13832 lt_prog_compiler_static_F77='-Bstatic' 13833 ;; 13834 13835 unicos*) 13836 lt_prog_compiler_wl_F77='-Wl,' 13837 lt_prog_compiler_can_build_shared_F77=no 13838 ;; 13839 13840 uts4*) 13841 lt_prog_compiler_pic_F77='-pic' 13842 lt_prog_compiler_static_F77='-Bstatic' 13843 ;; 13844 13845 *) 13846 lt_prog_compiler_can_build_shared_F77=no 13847 ;; 13848 esac 13849 fi 13850 13851{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13852echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13853 13854# 13855# Check to make sure the PIC flag actually works. 13856# 13857if test -n "$lt_prog_compiler_pic_F77"; then 13858 13859{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13860echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13861if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13862 echo $ECHO_N "(cached) $ECHO_C" >&6 13863else 13864 lt_prog_compiler_pic_works_F77=no 13865 ac_outfile=conftest.$ac_objext 13866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13867 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13868 # Insert the option either (1) after the last *FLAGS variable, or 13869 # (2) before a word containing "conftest.", or (3) at the end. 13870 # Note that $ac_compile itself does not contain backslashes and begins 13871 # with a dollar sign (not a hyphen), so the echo should work correctly. 13872 # The option is referenced via a variable to avoid confusing sed. 13873 lt_compile=`echo "$ac_compile" | $SED \ 13874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13876 -e 's:$: $lt_compiler_flag:'` 13877 (eval echo "\"\$as_me:13877: $lt_compile\"" >&5) 13878 (eval "$lt_compile" 2>conftest.err) 13879 ac_status=$? 13880 cat conftest.err >&5 13881 echo "$as_me:13881: \$? = $ac_status" >&5 13882 if (exit $ac_status) && test -s "$ac_outfile"; then 13883 # The compiler can only warn and ignore the option if not recognized 13884 # So say no if there are warnings other than the usual output. 13885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13888 lt_prog_compiler_pic_works_F77=yes 13889 fi 13890 fi 13891 $rm conftest* 13892 13893fi 13894{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13895echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13896 13897if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13898 case $lt_prog_compiler_pic_F77 in 13899 "" | " "*) ;; 13900 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13901 esac 13902else 13903 lt_prog_compiler_pic_F77= 13904 lt_prog_compiler_can_build_shared_F77=no 13905fi 13906 13907fi 13908case $host_os in 13909 # For platforms which do not support PIC, -DPIC is meaningless: 13910 *djgpp*) 13911 lt_prog_compiler_pic_F77= 13912 ;; 13913 *) 13914 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13915 ;; 13916esac 13917 13918# 13919# Check to make sure the static flag actually works. 13920# 13921wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13922{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13923echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13924if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13925 echo $ECHO_N "(cached) $ECHO_C" >&6 13926else 13927 lt_prog_compiler_static_works_F77=no 13928 save_LDFLAGS="$LDFLAGS" 13929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13930 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13932 # The linker can only warn and ignore the option if not recognized 13933 # So say no if there are warnings 13934 if test -s conftest.err; then 13935 # Append any errors to the config.log. 13936 cat conftest.err 1>&5 13937 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13939 if diff conftest.exp conftest.er2 >/dev/null; then 13940 lt_prog_compiler_static_works_F77=yes 13941 fi 13942 else 13943 lt_prog_compiler_static_works_F77=yes 13944 fi 13945 fi 13946 $rm conftest* 13947 LDFLAGS="$save_LDFLAGS" 13948 13949fi 13950{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13951echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13952 13953if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13954 : 13955else 13956 lt_prog_compiler_static_F77= 13957fi 13958 13959 13960{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13961echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13962if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13963 echo $ECHO_N "(cached) $ECHO_C" >&6 13964else 13965 lt_cv_prog_compiler_c_o_F77=no 13966 $rm -r conftest 2>/dev/null 13967 mkdir conftest 13968 cd conftest 13969 mkdir out 13970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13971 13972 lt_compiler_flag="-o out/conftest2.$ac_objext" 13973 # Insert the option either (1) after the last *FLAGS variable, or 13974 # (2) before a word containing "conftest.", or (3) at the end. 13975 # Note that $ac_compile itself does not contain backslashes and begins 13976 # with a dollar sign (not a hyphen), so the echo should work correctly. 13977 lt_compile=`echo "$ac_compile" | $SED \ 13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13980 -e 's:$: $lt_compiler_flag:'` 13981 (eval echo "\"\$as_me:13981: $lt_compile\"" >&5) 13982 (eval "$lt_compile" 2>out/conftest.err) 13983 ac_status=$? 13984 cat out/conftest.err >&5 13985 echo "$as_me:13985: \$? = $ac_status" >&5 13986 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13987 then 13988 # The compiler can only warn and ignore the option if not recognized 13989 # So say no if there are warnings 13990 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13993 lt_cv_prog_compiler_c_o_F77=yes 13994 fi 13995 fi 13996 chmod u+w . 2>&5 13997 $rm conftest* 13998 # SGI C++ compiler will create directory out/ii_files/ for 13999 # template instantiation 14000 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14001 $rm out/* && rmdir out 14002 cd .. 14003 rmdir conftest 14004 $rm conftest* 14005 14006fi 14007{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14008echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14009 14010 14011hard_links="nottested" 14012if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14013 # do not overwrite the value of need_locks provided by the user 14014 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14015echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14016 hard_links=yes 14017 $rm conftest* 14018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14019 touch conftest.a 14020 ln conftest.a conftest.b 2>&5 || hard_links=no 14021 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14022 { echo "$as_me:$LINENO: result: $hard_links" >&5 14023echo "${ECHO_T}$hard_links" >&6; } 14024 if test "$hard_links" = no; then 14025 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14026echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14027 need_locks=warn 14028 fi 14029else 14030 need_locks=no 14031fi 14032 14033{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14034echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14035 14036 runpath_var= 14037 allow_undefined_flag_F77= 14038 enable_shared_with_static_runtimes_F77=no 14039 archive_cmds_F77= 14040 archive_expsym_cmds_F77= 14041 old_archive_From_new_cmds_F77= 14042 old_archive_from_expsyms_cmds_F77= 14043 export_dynamic_flag_spec_F77= 14044 whole_archive_flag_spec_F77= 14045 thread_safe_flag_spec_F77= 14046 hardcode_libdir_flag_spec_F77= 14047 hardcode_libdir_flag_spec_ld_F77= 14048 hardcode_libdir_separator_F77= 14049 hardcode_direct_F77=no 14050 hardcode_minus_L_F77=no 14051 hardcode_shlibpath_var_F77=unsupported 14052 link_all_deplibs_F77=unknown 14053 hardcode_automatic_F77=no 14054 module_cmds_F77= 14055 module_expsym_cmds_F77= 14056 always_export_symbols_F77=no 14057 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14058 # include_expsyms should be a list of space-separated symbols to be *always* 14059 # included in the symbol list 14060 include_expsyms_F77= 14061 # exclude_expsyms can be an extended regexp of symbols to exclude 14062 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14064 # as well as any symbol that contains `d'. 14065 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14067 # platforms (ab)use it in PIC code, but their linkers get confused if 14068 # the symbol is explicitly referenced. Since portable code cannot 14069 # rely on this symbol name, it's probably fine to never include it in 14070 # preloaded symbol tables. 14071 extract_expsyms_cmds= 14072 # Just being paranoid about ensuring that cc_basename is set. 14073 for cc_temp in $compiler""; do 14074 case $cc_temp in 14075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14077 \-*) ;; 14078 *) break;; 14079 esac 14080done 14081cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14082 14083 case $host_os in 14084 cygwin* | mingw* | pw32*) 14085 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14086 # When not using gcc, we currently assume that we are using 14087 # Microsoft Visual C++. 14088 if test "$GCC" != yes; then 14089 with_gnu_ld=no 14090 fi 14091 ;; 14092 interix*) 14093 # we just hope/assume this is gcc and not c89 (= MSVC++) 14094 with_gnu_ld=yes 14095 ;; 14096 openbsd*) 14097 with_gnu_ld=no 14098 ;; 14099 esac 14100 14101 ld_shlibs_F77=yes 14102 if test "$with_gnu_ld" = yes; then 14103 # If archive_cmds runs LD, not CC, wlarc should be empty 14104 wlarc='${wl}' 14105 14106 # Set some defaults for GNU ld with shared library support. These 14107 # are reset later if shared libraries are not supported. Putting them 14108 # here allows them to be overridden if necessary. 14109 runpath_var=LD_RUN_PATH 14110 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14111 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14112 # ancient GNU ld didn't support --whole-archive et. al. 14113 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14114 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14115 else 14116 whole_archive_flag_spec_F77= 14117 fi 14118 supports_anon_versioning=no 14119 case `$LD -v 2>/dev/null` in 14120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14123 *\ 2.11.*) ;; # other 2.11 versions 14124 *) supports_anon_versioning=yes ;; 14125 esac 14126 14127 # See if GNU ld supports shared libraries. 14128 case $host_os in 14129 aix3* | aix4* | aix5*) 14130 # On AIX/PPC, the GNU linker is very broken 14131 if test "$host_cpu" != ia64; then 14132 ld_shlibs_F77=no 14133 cat <<EOF 1>&2 14134 14135*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14136*** to be unable to reliably create shared libraries on AIX. 14137*** Therefore, libtool is disabling shared libraries support. If you 14138*** really care for shared libraries, you may want to modify your PATH 14139*** so that a non-GNU linker is found, and then restart. 14140 14141EOF 14142 fi 14143 ;; 14144 14145 amigaos*) 14146 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)' 14147 hardcode_libdir_flag_spec_F77='-L$libdir' 14148 hardcode_minus_L_F77=yes 14149 14150 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14151 # that the semantics of dynamic libraries on AmigaOS, at least up 14152 # to version 4, is to share data among multiple programs linked 14153 # with the same dynamic library. Since this doesn't match the 14154 # behavior of shared libraries on other platforms, we can't use 14155 # them. 14156 ld_shlibs_F77=no 14157 ;; 14158 14159 beos*) 14160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14161 allow_undefined_flag_F77=unsupported 14162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14163 # support --undefined. This deserves some investigation. FIXME 14164 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14165 else 14166 ld_shlibs_F77=no 14167 fi 14168 ;; 14169 14170 cygwin* | mingw* | pw32*) 14171 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14172 # as there is no search path for DLLs. 14173 hardcode_libdir_flag_spec_F77='-L$libdir' 14174 allow_undefined_flag_F77=unsupported 14175 always_export_symbols_F77=no 14176 enable_shared_with_static_runtimes_F77=yes 14177 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14178 14179 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14181 # If the export-symbols file already is a .def file (1st line 14182 # is EXPORTS), use it as is; otherwise, prepend... 14183 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14184 cp $export_symbols $output_objdir/$soname.def; 14185 else 14186 echo EXPORTS > $output_objdir/$soname.def; 14187 cat $export_symbols >> $output_objdir/$soname.def; 14188 fi~ 14189 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14190 else 14191 ld_shlibs_F77=no 14192 fi 14193 ;; 14194 14195 interix3*) 14196 hardcode_direct_F77=no 14197 hardcode_shlibpath_var_F77=no 14198 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14199 export_dynamic_flag_spec_F77='${wl}-E' 14200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14201 # Instead, shared libraries are loaded at an image base (0x10000000 by 14202 # default) and relocated if they conflict, which is a slow very memory 14203 # consuming and fragmenting process. To avoid this, we pick a random, 14204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14205 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14206 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' 14207 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' 14208 ;; 14209 14210 linux* | k*bsd*-gnu) 14211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14212 tmp_addflag= 14213 case $cc_basename,$host_cpu in 14214 pgcc*) # Portland Group C compiler 14215 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' 14216 tmp_addflag=' $pic_flag' 14217 ;; 14218 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14219 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' 14220 tmp_addflag=' $pic_flag -Mnomain' ;; 14221 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14222 tmp_addflag=' -i_dynamic' ;; 14223 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14224 tmp_addflag=' -i_dynamic -nofor_main' ;; 14225 ifc* | ifort*) # Intel Fortran compiler 14226 tmp_addflag=' -nofor_main' ;; 14227 esac 14228 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14229 14230 if test $supports_anon_versioning = yes; then 14231 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14233 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14234 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14235 fi 14236 link_all_deplibs_F77=no 14237 else 14238 ld_shlibs_F77=no 14239 fi 14240 ;; 14241 14242 netbsd* | netbsdelf*-gnu) 14243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14244 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14245 wlarc= 14246 else 14247 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14248 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14249 fi 14250 ;; 14251 14252 solaris*) 14253 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14254 ld_shlibs_F77=no 14255 cat <<EOF 1>&2 14256 14257*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14258*** create shared libraries on Solaris systems. Therefore, libtool 14259*** is disabling shared libraries support. We urge you to upgrade GNU 14260*** binutils to release 2.9.1 or newer. Another option is to modify 14261*** your PATH or compiler configuration so that the native linker is 14262*** used, and then restart. 14263 14264EOF 14265 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14266 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14267 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14268 else 14269 ld_shlibs_F77=no 14270 fi 14271 ;; 14272 14273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14274 case `$LD -v 2>&1` in 14275 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14276 ld_shlibs_F77=no 14277 cat <<_LT_EOF 1>&2 14278 14279*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14280*** reliably create shared libraries on SCO systems. Therefore, libtool 14281*** is disabling shared libraries support. We urge you to upgrade GNU 14282*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14283*** your PATH or compiler configuration so that the native linker is 14284*** used, and then restart. 14285 14286_LT_EOF 14287 ;; 14288 *) 14289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14290 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14291 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14292 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14293 else 14294 ld_shlibs_F77=no 14295 fi 14296 ;; 14297 esac 14298 ;; 14299 14300 sunos4*) 14301 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14302 wlarc= 14303 hardcode_direct_F77=yes 14304 hardcode_shlibpath_var_F77=no 14305 ;; 14306 14307 *) 14308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14309 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14310 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14311 else 14312 ld_shlibs_F77=no 14313 fi 14314 ;; 14315 esac 14316 14317 if test "$ld_shlibs_F77" = no; then 14318 runpath_var= 14319 hardcode_libdir_flag_spec_F77= 14320 export_dynamic_flag_spec_F77= 14321 whole_archive_flag_spec_F77= 14322 fi 14323 else 14324 # PORTME fill in a description of your system's linker (not GNU ld) 14325 case $host_os in 14326 aix3*) 14327 allow_undefined_flag_F77=unsupported 14328 always_export_symbols_F77=yes 14329 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' 14330 # Note: this linker hardcodes the directories in LIBPATH if there 14331 # are no directories specified by -L. 14332 hardcode_minus_L_F77=yes 14333 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14334 # Neither direct hardcoding nor static linking is supported with a 14335 # broken collect2. 14336 hardcode_direct_F77=unsupported 14337 fi 14338 ;; 14339 14340 aix4* | aix5*) 14341 if test "$host_cpu" = ia64; then 14342 # On IA64, the linker does run time linking by default, so we don't 14343 # have to do anything special. 14344 aix_use_runtimelinking=no 14345 exp_sym_flag='-Bexport' 14346 no_entry_flag="" 14347 else 14348 # If we're using GNU nm, then we don't want the "-C" option. 14349 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14350 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14351 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' 14352 else 14353 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' 14354 fi 14355 aix_use_runtimelinking=no 14356 14357 # Test if we are trying to use run time linking or normal 14358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14359 # need to do runtime linking. 14360 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14361 for ld_flag in $LDFLAGS; do 14362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14363 aix_use_runtimelinking=yes 14364 break 14365 fi 14366 done 14367 ;; 14368 esac 14369 14370 exp_sym_flag='-bexport' 14371 no_entry_flag='-bnoentry' 14372 fi 14373 14374 # When large executables or shared objects are built, AIX ld can 14375 # have problems creating the table of contents. If linking a library 14376 # or program results in "error TOC overflow" add -mminimal-toc to 14377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14379 14380 archive_cmds_F77='' 14381 hardcode_direct_F77=yes 14382 hardcode_libdir_separator_F77=':' 14383 link_all_deplibs_F77=yes 14384 14385 if test "$GCC" = yes; then 14386 case $host_os in aix4.[012]|aix4.[012].*) 14387 # We only want to do this on AIX 4.2 and lower, the check 14388 # below for broken collect2 doesn't work under 4.3+ 14389 collect2name=`${CC} -print-prog-name=collect2` 14390 if test -f "$collect2name" && \ 14391 strings "$collect2name" | grep resolve_lib_name >/dev/null 14392 then 14393 # We have reworked collect2 14394 hardcode_direct_F77=yes 14395 else 14396 # We have old collect2 14397 hardcode_direct_F77=unsupported 14398 # It fails to find uninstalled libraries when the uninstalled 14399 # path is not listed in the libpath. Setting hardcode_minus_L 14400 # to unsupported forces relinking 14401 hardcode_minus_L_F77=yes 14402 hardcode_libdir_flag_spec_F77='-L$libdir' 14403 hardcode_libdir_separator_F77= 14404 fi 14405 ;; 14406 esac 14407 shared_flag='-shared' 14408 if test "$aix_use_runtimelinking" = yes; then 14409 shared_flag="$shared_flag "'${wl}-G' 14410 fi 14411 else 14412 # not using gcc 14413 if test "$host_cpu" = ia64; then 14414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14415 # chokes on -Wl,-G. The following line is correct: 14416 shared_flag='-G' 14417 else 14418 if test "$aix_use_runtimelinking" = yes; then 14419 shared_flag='${wl}-G' 14420 else 14421 shared_flag='${wl}-bM:SRE' 14422 fi 14423 fi 14424 fi 14425 14426 # It seems that -bexpall does not export symbols beginning with 14427 # underscore (_), so it is better to generate a list of symbols to export. 14428 always_export_symbols_F77=yes 14429 if test "$aix_use_runtimelinking" = yes; then 14430 # Warning - without using the other runtime loading flags (-brtl), 14431 # -berok will link without error, but may produce a broken library. 14432 allow_undefined_flag_F77='-berok' 14433 # Determine the default libpath from the value encoded in an empty executable. 14434 cat >conftest.$ac_ext <<_ACEOF 14435 program main 14436 14437 end 14438_ACEOF 14439rm -f conftest.$ac_objext conftest$ac_exeext 14440if { (ac_try="$ac_link" 14441case "(($ac_try" in 14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14443 *) ac_try_echo=$ac_try;; 14444esac 14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14446 (eval "$ac_link") 2>conftest.er1 14447 ac_status=$? 14448 grep -v '^ *+' conftest.er1 >conftest.err 14449 rm -f conftest.er1 14450 cat conftest.err >&5 14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14452 (exit $ac_status); } && { 14453 test -z "$ac_f77_werror_flag" || 14454 test ! -s conftest.err 14455 } && test -s conftest$ac_exeext && 14456 $as_test_x conftest$ac_exeext; then 14457 14458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14459}'` 14460# Check for a 64-bit object if we didn't find anything. 14461if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14462}'`; fi 14463else 14464 echo "$as_me: failed program was:" >&5 14465sed 's/^/| /' conftest.$ac_ext >&5 14466 14467 14468fi 14469 14470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14471 conftest$ac_exeext conftest.$ac_ext 14472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14473 14474 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14475 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" 14476 else 14477 if test "$host_cpu" = ia64; then 14478 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14479 allow_undefined_flag_F77="-z nodefs" 14480 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" 14481 else 14482 # Determine the default libpath from the value encoded in an empty executable. 14483 cat >conftest.$ac_ext <<_ACEOF 14484 program main 14485 14486 end 14487_ACEOF 14488rm -f conftest.$ac_objext conftest$ac_exeext 14489if { (ac_try="$ac_link" 14490case "(($ac_try" in 14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14492 *) ac_try_echo=$ac_try;; 14493esac 14494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14495 (eval "$ac_link") 2>conftest.er1 14496 ac_status=$? 14497 grep -v '^ *+' conftest.er1 >conftest.err 14498 rm -f conftest.er1 14499 cat conftest.err >&5 14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14501 (exit $ac_status); } && { 14502 test -z "$ac_f77_werror_flag" || 14503 test ! -s conftest.err 14504 } && test -s conftest$ac_exeext && 14505 $as_test_x conftest$ac_exeext; then 14506 14507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14508}'` 14509# Check for a 64-bit object if we didn't find anything. 14510if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14511}'`; fi 14512else 14513 echo "$as_me: failed program was:" >&5 14514sed 's/^/| /' conftest.$ac_ext >&5 14515 14516 14517fi 14518 14519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14520 conftest$ac_exeext conftest.$ac_ext 14521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14522 14523 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14524 # Warning - without using the other run time loading flags, 14525 # -berok will link without error, but may produce a broken library. 14526 no_undefined_flag_F77=' ${wl}-bernotok' 14527 allow_undefined_flag_F77=' ${wl}-berok' 14528 # Exported symbols can be pulled into shared objects from archives 14529 whole_archive_flag_spec_F77='$convenience' 14530 archive_cmds_need_lc_F77=yes 14531 # This is similar to how AIX traditionally builds its shared libraries. 14532 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' 14533 fi 14534 fi 14535 ;; 14536 14537 amigaos*) 14538 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)' 14539 hardcode_libdir_flag_spec_F77='-L$libdir' 14540 hardcode_minus_L_F77=yes 14541 # see comment about different semantics on the GNU ld section 14542 ld_shlibs_F77=no 14543 ;; 14544 14545 bsdi[45]*) 14546 export_dynamic_flag_spec_F77=-rdynamic 14547 ;; 14548 14549 cygwin* | mingw* | pw32*) 14550 # When not using gcc, we currently assume that we are using 14551 # Microsoft Visual C++. 14552 # hardcode_libdir_flag_spec is actually meaningless, as there is 14553 # no search path for DLLs. 14554 hardcode_libdir_flag_spec_F77=' ' 14555 allow_undefined_flag_F77=unsupported 14556 # Tell ltmain to make .lib files, not .a files. 14557 libext=lib 14558 # Tell ltmain to make .dll files, not .so files. 14559 shrext_cmds=".dll" 14560 # FIXME: Setting linknames here is a bad hack. 14561 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14562 # The linker will automatically build a .lib file if we build a DLL. 14563 old_archive_From_new_cmds_F77='true' 14564 # FIXME: Should let the user specify the lib program. 14565 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14566 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14567 enable_shared_with_static_runtimes_F77=yes 14568 ;; 14569 14570 darwin* | rhapsody*) 14571 case $host_os in 14572 rhapsody* | darwin1.[012]) 14573 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14574 ;; 14575 *) # Darwin 1.3 on 14576 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14577 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14578 else 14579 case ${MACOSX_DEPLOYMENT_TARGET} in 14580 10.[012]) 14581 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14582 ;; 14583 10.*) 14584 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14585 ;; 14586 esac 14587 fi 14588 ;; 14589 esac 14590 archive_cmds_need_lc_F77=no 14591 hardcode_direct_F77=no 14592 hardcode_automatic_F77=yes 14593 hardcode_shlibpath_var_F77=unsupported 14594 whole_archive_flag_spec_F77='' 14595 link_all_deplibs_F77=yes 14596 if test "$GCC" = yes ; then 14597 output_verbose_link_cmd='echo' 14598 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14599 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14601 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}' 14602 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}' 14603 else 14604 case $cc_basename in 14605 xlc*) 14606 output_verbose_link_cmd='echo' 14607 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14608 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14609 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14610 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14611 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}' 14612 ;; 14613 *) 14614 ld_shlibs_F77=no 14615 ;; 14616 esac 14617 fi 14618 ;; 14619 14620 dgux*) 14621 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14622 hardcode_libdir_flag_spec_F77='-L$libdir' 14623 hardcode_shlibpath_var_F77=no 14624 ;; 14625 14626 freebsd1*) 14627 ld_shlibs_F77=no 14628 ;; 14629 14630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14631 # support. Future versions do this automatically, but an explicit c++rt0.o 14632 # does not break anything, and helps significantly (at the cost of a little 14633 # extra space). 14634 freebsd2.2*) 14635 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14636 hardcode_libdir_flag_spec_F77='-R$libdir' 14637 hardcode_direct_F77=yes 14638 hardcode_shlibpath_var_F77=no 14639 ;; 14640 14641 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14642 freebsd2*) 14643 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14644 hardcode_direct_F77=yes 14645 hardcode_minus_L_F77=yes 14646 hardcode_shlibpath_var_F77=no 14647 ;; 14648 14649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14650 freebsd* | dragonfly*) 14651 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14652 hardcode_libdir_flag_spec_F77='-R$libdir' 14653 hardcode_direct_F77=yes 14654 hardcode_shlibpath_var_F77=no 14655 ;; 14656 14657 hpux9*) 14658 if test "$GCC" = yes; then 14659 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' 14660 else 14661 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' 14662 fi 14663 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14664 hardcode_libdir_separator_F77=: 14665 hardcode_direct_F77=yes 14666 14667 # hardcode_minus_L: Not really in the search PATH, 14668 # but as the default location of the library. 14669 hardcode_minus_L_F77=yes 14670 export_dynamic_flag_spec_F77='${wl}-E' 14671 ;; 14672 14673 hpux10*) 14674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14676 else 14677 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14678 fi 14679 if test "$with_gnu_ld" = no; then 14680 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14681 hardcode_libdir_separator_F77=: 14682 14683 hardcode_direct_F77=yes 14684 export_dynamic_flag_spec_F77='${wl}-E' 14685 14686 # hardcode_minus_L: Not really in the search PATH, 14687 # but as the default location of the library. 14688 hardcode_minus_L_F77=yes 14689 fi 14690 ;; 14691 14692 hpux11*) 14693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14694 case $host_cpu in 14695 hppa*64*) 14696 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14697 ;; 14698 ia64*) 14699 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14700 ;; 14701 *) 14702 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14703 ;; 14704 esac 14705 else 14706 case $host_cpu in 14707 hppa*64*) 14708 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14709 ;; 14710 ia64*) 14711 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14712 ;; 14713 *) 14714 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14715 ;; 14716 esac 14717 fi 14718 if test "$with_gnu_ld" = no; then 14719 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14720 hardcode_libdir_separator_F77=: 14721 14722 case $host_cpu in 14723 hppa*64*|ia64*) 14724 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14725 hardcode_direct_F77=no 14726 hardcode_shlibpath_var_F77=no 14727 ;; 14728 *) 14729 hardcode_direct_F77=yes 14730 export_dynamic_flag_spec_F77='${wl}-E' 14731 14732 # hardcode_minus_L: Not really in the search PATH, 14733 # but as the default location of the library. 14734 hardcode_minus_L_F77=yes 14735 ;; 14736 esac 14737 fi 14738 ;; 14739 14740 irix5* | irix6* | nonstopux*) 14741 if test "$GCC" = yes; then 14742 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' 14743 else 14744 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' 14745 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14746 fi 14747 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14748 hardcode_libdir_separator_F77=: 14749 link_all_deplibs_F77=yes 14750 ;; 14751 14752 netbsd* | netbsdelf*-gnu) 14753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14754 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14755 else 14756 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14757 fi 14758 hardcode_libdir_flag_spec_F77='-R$libdir' 14759 hardcode_direct_F77=yes 14760 hardcode_shlibpath_var_F77=no 14761 ;; 14762 14763 newsos6) 14764 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14765 hardcode_direct_F77=yes 14766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14767 hardcode_libdir_separator_F77=: 14768 hardcode_shlibpath_var_F77=no 14769 ;; 14770 14771 openbsd*) 14772 hardcode_direct_F77=yes 14773 hardcode_shlibpath_var_F77=no 14774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14775 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14776 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14777 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14778 export_dynamic_flag_spec_F77='${wl}-E' 14779 else 14780 case $host_os in 14781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14783 hardcode_libdir_flag_spec_F77='-R$libdir' 14784 ;; 14785 *) 14786 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14787 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14788 ;; 14789 esac 14790 fi 14791 ;; 14792 14793 os2*) 14794 hardcode_libdir_flag_spec_F77='-L$libdir' 14795 hardcode_minus_L_F77=yes 14796 allow_undefined_flag_F77=unsupported 14797 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' 14798 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14799 ;; 14800 14801 osf3*) 14802 if test "$GCC" = yes; then 14803 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14804 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' 14805 else 14806 allow_undefined_flag_F77=' -expect_unresolved \*' 14807 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' 14808 fi 14809 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14810 hardcode_libdir_separator_F77=: 14811 ;; 14812 14813 osf4* | osf5*) # as osf3* with the addition of -msym flag 14814 if test "$GCC" = yes; then 14815 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14816 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' 14817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14818 else 14819 allow_undefined_flag_F77=' -expect_unresolved \*' 14820 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' 14821 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~ 14822 $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' 14823 14824 # Both c and cxx compiler support -rpath directly 14825 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14826 fi 14827 hardcode_libdir_separator_F77=: 14828 ;; 14829 14830 solaris*) 14831 no_undefined_flag_F77=' -z text' 14832 if test "$GCC" = yes; then 14833 wlarc='${wl}' 14834 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14835 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14836 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14837 else 14838 wlarc='' 14839 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14840 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14842 fi 14843 hardcode_libdir_flag_spec_F77='-R$libdir' 14844 hardcode_shlibpath_var_F77=no 14845 case $host_os in 14846 solaris2.[0-5] | solaris2.[0-5].*) ;; 14847 *) 14848 # The compiler driver will combine linker options so we 14849 # cannot just pass the convience library names through 14850 # without $wl, iff we do not link with $LD. 14851 # Luckily, gcc supports the same syntax we need for Sun Studio. 14852 # Supported since Solaris 2.6 (maybe 2.5.1?) 14853 case $wlarc in 14854 '') 14855 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14856 *) 14857 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14858 esac ;; 14859 esac 14860 link_all_deplibs_F77=yes 14861 ;; 14862 14863 sunos4*) 14864 if test "x$host_vendor" = xsequent; then 14865 # Use $CC to link under sequent, because it throws in some extra .o 14866 # files that make .init and .fini sections work. 14867 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14868 else 14869 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14870 fi 14871 hardcode_libdir_flag_spec_F77='-L$libdir' 14872 hardcode_direct_F77=yes 14873 hardcode_minus_L_F77=yes 14874 hardcode_shlibpath_var_F77=no 14875 ;; 14876 14877 sysv4) 14878 case $host_vendor in 14879 sni) 14880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14881 hardcode_direct_F77=yes # is this really true??? 14882 ;; 14883 siemens) 14884 ## LD is ld it makes a PLAMLIB 14885 ## CC just makes a GrossModule. 14886 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14887 reload_cmds_F77='$CC -r -o $output$reload_objs' 14888 hardcode_direct_F77=no 14889 ;; 14890 motorola) 14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14892 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14893 ;; 14894 esac 14895 runpath_var='LD_RUN_PATH' 14896 hardcode_shlibpath_var_F77=no 14897 ;; 14898 14899 sysv4.3*) 14900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14901 hardcode_shlibpath_var_F77=no 14902 export_dynamic_flag_spec_F77='-Bexport' 14903 ;; 14904 14905 sysv4*MP*) 14906 if test -d /usr/nec; then 14907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14908 hardcode_shlibpath_var_F77=no 14909 runpath_var=LD_RUN_PATH 14910 hardcode_runpath_var=yes 14911 ld_shlibs_F77=yes 14912 fi 14913 ;; 14914 14915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14916 no_undefined_flag_F77='${wl}-z,text' 14917 archive_cmds_need_lc_F77=no 14918 hardcode_shlibpath_var_F77=no 14919 runpath_var='LD_RUN_PATH' 14920 14921 if test "$GCC" = yes; then 14922 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14923 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14924 else 14925 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14926 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14927 fi 14928 ;; 14929 14930 sysv5* | sco3.2v5* | sco5v6*) 14931 # Note: We can NOT use -z defs as we might desire, because we do not 14932 # link with -lc, and that would cause any symbols used from libc to 14933 # always be unresolved, which means just about no library would 14934 # ever link correctly. If we're not using GNU ld we use -z text 14935 # though, which does catch some bad symbols but isn't as heavy-handed 14936 # as -z defs. 14937 no_undefined_flag_F77='${wl}-z,text' 14938 allow_undefined_flag_F77='${wl}-z,nodefs' 14939 archive_cmds_need_lc_F77=no 14940 hardcode_shlibpath_var_F77=no 14941 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14942 hardcode_libdir_separator_F77=':' 14943 link_all_deplibs_F77=yes 14944 export_dynamic_flag_spec_F77='${wl}-Bexport' 14945 runpath_var='LD_RUN_PATH' 14946 14947 if test "$GCC" = yes; then 14948 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14949 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14950 else 14951 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14952 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14953 fi 14954 ;; 14955 14956 uts4*) 14957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14958 hardcode_libdir_flag_spec_F77='-L$libdir' 14959 hardcode_shlibpath_var_F77=no 14960 ;; 14961 14962 *) 14963 ld_shlibs_F77=no 14964 ;; 14965 esac 14966 fi 14967 14968{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14969echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14970test "$ld_shlibs_F77" = no && can_build_shared=no 14971 14972# 14973# Do we need to explicitly link libc? 14974# 14975case "x$archive_cmds_need_lc_F77" in 14976x|xyes) 14977 # Assume -lc should be added 14978 archive_cmds_need_lc_F77=yes 14979 14980 if test "$enable_shared" = yes && test "$GCC" = yes; then 14981 case $archive_cmds_F77 in 14982 *'~'*) 14983 # FIXME: we may have to deal with multi-command sequences. 14984 ;; 14985 '$CC '*) 14986 # Test whether the compiler implicitly links with -lc since on some 14987 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14988 # to ld, don't add -lc before -lgcc. 14989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14990echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14991 $rm conftest* 14992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14993 14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14995 (eval $ac_compile) 2>&5 14996 ac_status=$? 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); } 2>conftest.err; then 14999 soname=conftest 15000 lib=conftest 15001 libobjs=conftest.$ac_objext 15002 deplibs= 15003 wl=$lt_prog_compiler_wl_F77 15004 pic_flag=$lt_prog_compiler_pic_F77 15005 compiler_flags=-v 15006 linker_flags=-v 15007 verstring= 15008 output_objdir=. 15009 libname=conftest 15010 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15011 allow_undefined_flag_F77= 15012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15013 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15014 ac_status=$? 15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15016 (exit $ac_status); } 15017 then 15018 archive_cmds_need_lc_F77=no 15019 else 15020 archive_cmds_need_lc_F77=yes 15021 fi 15022 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15023 else 15024 cat conftest.err 1>&5 15025 fi 15026 $rm conftest* 15027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15028echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15029 ;; 15030 esac 15031 fi 15032 ;; 15033esac 15034 15035{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15036echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15037library_names_spec= 15038libname_spec='lib$name' 15039soname_spec= 15040shrext_cmds=".so" 15041postinstall_cmds= 15042postuninstall_cmds= 15043finish_cmds= 15044finish_eval= 15045shlibpath_var= 15046shlibpath_overrides_runpath=unknown 15047version_type=none 15048dynamic_linker="$host_os ld.so" 15049sys_lib_dlsearch_path_spec="/lib /usr/lib" 15050if test "$GCC" = yes; then 15051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15052 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15053 # if the path contains ";" then we assume it to be the separator 15054 # otherwise default to the standard path separator (i.e. ":") - it is 15055 # assumed that no part of a normal pathname contains ";" but that should 15056 # okay in the real world where ";" in dirpaths is itself problematic. 15057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15058 else 15059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15060 fi 15061else 15062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15063fi 15064need_lib_prefix=unknown 15065hardcode_into_libs=no 15066 15067# when you set need_version to no, make sure it does not cause -set_version 15068# flags to be left without arguments 15069need_version=unknown 15070 15071case $host_os in 15072aix3*) 15073 version_type=linux 15074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15075 shlibpath_var=LIBPATH 15076 15077 # AIX 3 has no versioning support, so we append a major version to the name. 15078 soname_spec='${libname}${release}${shared_ext}$major' 15079 ;; 15080 15081aix4* | aix5*) 15082 version_type=linux 15083 need_lib_prefix=no 15084 need_version=no 15085 hardcode_into_libs=yes 15086 if test "$host_cpu" = ia64; then 15087 # AIX 5 supports IA64 15088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15089 shlibpath_var=LD_LIBRARY_PATH 15090 else 15091 # With GCC up to 2.95.x, collect2 would create an import file 15092 # for dependence libraries. The import file would start with 15093 # the line `#! .'. This would cause the generated library to 15094 # depend on `.', always an invalid library. This was fixed in 15095 # development snapshots of GCC prior to 3.0. 15096 case $host_os in 15097 aix4 | aix4.[01] | aix4.[01].*) 15098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15099 echo ' yes ' 15100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15101 : 15102 else 15103 can_build_shared=no 15104 fi 15105 ;; 15106 esac 15107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15108 # soname into executable. Probably we can add versioning support to 15109 # collect2, so additional links can be useful in future. 15110 if test "$aix_use_runtimelinking" = yes; then 15111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15112 # instead of lib<name>.a to let people know that these are not 15113 # typical AIX shared libraries. 15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15115 else 15116 # We preserve .a as extension for shared libraries through AIX4.2 15117 # and later when we are not doing run time linking. 15118 library_names_spec='${libname}${release}.a $libname.a' 15119 soname_spec='${libname}${release}${shared_ext}$major' 15120 fi 15121 shlibpath_var=LIBPATH 15122 fi 15123 ;; 15124 15125amigaos*) 15126 library_names_spec='$libname.ixlibrary $libname.a' 15127 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15128 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' 15129 ;; 15130 15131beos*) 15132 library_names_spec='${libname}${shared_ext}' 15133 dynamic_linker="$host_os ld.so" 15134 shlibpath_var=LIBRARY_PATH 15135 ;; 15136 15137bsdi[45]*) 15138 version_type=linux 15139 need_version=no 15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15141 soname_spec='${libname}${release}${shared_ext}$major' 15142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15143 shlibpath_var=LD_LIBRARY_PATH 15144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15146 # the default ld.so.conf also contains /usr/contrib/lib and 15147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15148 # libtool to hard-code these into programs 15149 ;; 15150 15151cygwin* | mingw* | pw32*) 15152 version_type=windows 15153 shrext_cmds=".dll" 15154 need_version=no 15155 need_lib_prefix=no 15156 15157 case $GCC,$host_os in 15158 yes,cygwin* | yes,mingw* | yes,pw32*) 15159 library_names_spec='$libname.dll.a' 15160 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15161 postinstall_cmds='base_file=`basename \${file}`~ 15162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15163 dldir=$destdir/`dirname \$dlpath`~ 15164 test -d \$dldir || mkdir -p \$dldir~ 15165 $install_prog $dir/$dlname \$dldir/$dlname~ 15166 chmod a+x \$dldir/$dlname' 15167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15168 dlpath=$dir/\$dldll~ 15169 $rm \$dlpath' 15170 shlibpath_overrides_runpath=yes 15171 15172 case $host_os in 15173 cygwin*) 15174 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15176 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15177 ;; 15178 mingw*) 15179 # MinGW DLLs use traditional 'lib' prefix 15180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15182 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15183 # It is most probably a Windows format PATH printed by 15184 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15185 # path with ; separators, and with drive letters. We can handle the 15186 # drive letters (cygwin fileutils understands them), so leave them, 15187 # especially as we might pass files found there to a mingw objdump, 15188 # which wouldn't understand a cygwinified path. Ahh. 15189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15190 else 15191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15192 fi 15193 ;; 15194 pw32*) 15195 # pw32 DLLs use 'pw' prefix rather than 'lib' 15196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15197 ;; 15198 esac 15199 ;; 15200 15201 *) 15202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15203 ;; 15204 esac 15205 dynamic_linker='Win32 ld.exe' 15206 # FIXME: first we should search . and the directory the executable is in 15207 shlibpath_var=PATH 15208 ;; 15209 15210darwin* | rhapsody*) 15211 dynamic_linker="$host_os dyld" 15212 version_type=darwin 15213 need_lib_prefix=no 15214 need_version=no 15215 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15216 soname_spec='${libname}${release}${major}$shared_ext' 15217 shlibpath_overrides_runpath=yes 15218 shlibpath_var=DYLD_LIBRARY_PATH 15219 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15220 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15221 if test "$GCC" = yes; then 15222 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15223 else 15224 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15225 fi 15226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15227 ;; 15228 15229dgux*) 15230 version_type=linux 15231 need_lib_prefix=no 15232 need_version=no 15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15234 soname_spec='${libname}${release}${shared_ext}$major' 15235 shlibpath_var=LD_LIBRARY_PATH 15236 ;; 15237 15238freebsd1*) 15239 dynamic_linker=no 15240 ;; 15241 15242freebsd* | dragonfly*) 15243 # DragonFly does not have aout. When/if they implement a new 15244 # versioning mechanism, adjust this. 15245 if test -x /usr/bin/objformat; then 15246 objformat=`/usr/bin/objformat` 15247 else 15248 case $host_os in 15249 freebsd[123]*) objformat=aout ;; 15250 *) objformat=elf ;; 15251 esac 15252 fi 15253 version_type=freebsd-$objformat 15254 case $version_type in 15255 freebsd-elf*) 15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15257 need_version=no 15258 need_lib_prefix=no 15259 ;; 15260 freebsd-*) 15261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15262 need_version=yes 15263 ;; 15264 esac 15265 shlibpath_var=LD_LIBRARY_PATH 15266 case $host_os in 15267 freebsd2*) 15268 shlibpath_overrides_runpath=yes 15269 ;; 15270 freebsd3.[01]* | freebsdelf3.[01]*) 15271 shlibpath_overrides_runpath=yes 15272 hardcode_into_libs=yes 15273 ;; 15274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15276 shlibpath_overrides_runpath=no 15277 hardcode_into_libs=yes 15278 ;; 15279 freebsd*) # from 4.6 on 15280 shlibpath_overrides_runpath=yes 15281 hardcode_into_libs=yes 15282 ;; 15283 esac 15284 ;; 15285 15286gnu*) 15287 version_type=linux 15288 need_lib_prefix=no 15289 need_version=no 15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15291 soname_spec='${libname}${release}${shared_ext}$major' 15292 shlibpath_var=LD_LIBRARY_PATH 15293 hardcode_into_libs=yes 15294 ;; 15295 15296hpux9* | hpux10* | hpux11*) 15297 # Give a soname corresponding to the major version so that dld.sl refuses to 15298 # link against other versions. 15299 version_type=sunos 15300 need_lib_prefix=no 15301 need_version=no 15302 case $host_cpu in 15303 ia64*) 15304 shrext_cmds='.so' 15305 hardcode_into_libs=yes 15306 dynamic_linker="$host_os dld.so" 15307 shlibpath_var=LD_LIBRARY_PATH 15308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15310 soname_spec='${libname}${release}${shared_ext}$major' 15311 if test "X$HPUX_IA64_MODE" = X32; then 15312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15313 else 15314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15315 fi 15316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15317 ;; 15318 hppa*64*) 15319 shrext_cmds='.sl' 15320 hardcode_into_libs=yes 15321 dynamic_linker="$host_os dld.sl" 15322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15325 soname_spec='${libname}${release}${shared_ext}$major' 15326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15328 ;; 15329 *) 15330 shrext_cmds='.sl' 15331 dynamic_linker="$host_os dld.sl" 15332 shlibpath_var=SHLIB_PATH 15333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 ;; 15337 esac 15338 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15339 postinstall_cmds='chmod 555 $lib' 15340 ;; 15341 15342interix3*) 15343 version_type=linux 15344 need_lib_prefix=no 15345 need_version=no 15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15347 soname_spec='${libname}${release}${shared_ext}$major' 15348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15349 shlibpath_var=LD_LIBRARY_PATH 15350 shlibpath_overrides_runpath=no 15351 hardcode_into_libs=yes 15352 ;; 15353 15354irix5* | irix6* | nonstopux*) 15355 case $host_os in 15356 nonstopux*) version_type=nonstopux ;; 15357 *) 15358 if test "$lt_cv_prog_gnu_ld" = yes; then 15359 version_type=linux 15360 else 15361 version_type=irix 15362 fi ;; 15363 esac 15364 need_lib_prefix=no 15365 need_version=no 15366 soname_spec='${libname}${release}${shared_ext}$major' 15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15368 case $host_os in 15369 irix5* | nonstopux*) 15370 libsuff= shlibsuff= 15371 ;; 15372 *) 15373 case $LD in # libtool.m4 will add one of these switches to LD 15374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15375 libsuff= shlibsuff= libmagic=32-bit;; 15376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15377 libsuff=32 shlibsuff=N32 libmagic=N32;; 15378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15379 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15380 *) libsuff= shlibsuff= libmagic=never-match;; 15381 esac 15382 ;; 15383 esac 15384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15385 shlibpath_overrides_runpath=no 15386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15388 hardcode_into_libs=yes 15389 ;; 15390 15391# No shared lib support for Linux oldld, aout, or coff. 15392linux*oldld* | linux*aout* | linux*coff*) 15393 dynamic_linker=no 15394 ;; 15395 15396# This must be Linux ELF. 15397linux* | k*bsd*-gnu) 15398 version_type=linux 15399 need_lib_prefix=no 15400 need_version=no 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15402 soname_spec='${libname}${release}${shared_ext}$major' 15403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15404 shlibpath_var=LD_LIBRARY_PATH 15405 shlibpath_overrides_runpath=no 15406 # This implies no fast_install, which is unacceptable. 15407 # Some rework will be needed to allow for fast_install 15408 # before this can be enabled. 15409 hardcode_into_libs=yes 15410 15411 # Append ld.so.conf contents to the search path 15412 if test -f /etc/ld.so.conf; then 15413 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15414 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15415 fi 15416 15417 # We used to test for /lib/ld.so.1 and disable shared libraries on 15418 # powerpc, because MkLinux only supported shared libraries with the 15419 # GNU dynamic linker. Since this was broken with cross compilers, 15420 # most powerpc-linux boxes support dynamic linking these days and 15421 # people can always --disable-shared, the test was removed, and we 15422 # assume the GNU/Linux dynamic linker is in use. 15423 dynamic_linker='GNU/Linux ld.so' 15424 ;; 15425 15426netbsdelf*-gnu) 15427 version_type=linux 15428 need_lib_prefix=no 15429 need_version=no 15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15431 soname_spec='${libname}${release}${shared_ext}$major' 15432 shlibpath_var=LD_LIBRARY_PATH 15433 shlibpath_overrides_runpath=no 15434 hardcode_into_libs=yes 15435 dynamic_linker='NetBSD ld.elf_so' 15436 ;; 15437 15438netbsd*) 15439 version_type=sunos 15440 need_lib_prefix=no 15441 need_version=no 15442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15445 dynamic_linker='NetBSD (a.out) ld.so' 15446 else 15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15448 soname_spec='${libname}${release}${shared_ext}$major' 15449 dynamic_linker='NetBSD ld.elf_so' 15450 fi 15451 shlibpath_var=LD_LIBRARY_PATH 15452 shlibpath_overrides_runpath=yes 15453 hardcode_into_libs=yes 15454 ;; 15455 15456newsos6) 15457 version_type=linux 15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15459 shlibpath_var=LD_LIBRARY_PATH 15460 shlibpath_overrides_runpath=yes 15461 ;; 15462 15463nto-qnx*) 15464 version_type=linux 15465 need_lib_prefix=no 15466 need_version=no 15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15468 soname_spec='${libname}${release}${shared_ext}$major' 15469 shlibpath_var=LD_LIBRARY_PATH 15470 shlibpath_overrides_runpath=yes 15471 ;; 15472 15473openbsd*) 15474 version_type=sunos 15475 sys_lib_dlsearch_path_spec="/usr/lib" 15476 need_lib_prefix=no 15477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15478 case $host_os in 15479 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15480 *) need_version=no ;; 15481 esac 15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15484 shlibpath_var=LD_LIBRARY_PATH 15485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15486 case $host_os in 15487 openbsd2.[89] | openbsd2.[89].*) 15488 shlibpath_overrides_runpath=no 15489 ;; 15490 *) 15491 shlibpath_overrides_runpath=yes 15492 ;; 15493 esac 15494 else 15495 shlibpath_overrides_runpath=yes 15496 fi 15497 ;; 15498 15499os2*) 15500 libname_spec='$name' 15501 shrext_cmds=".dll" 15502 need_lib_prefix=no 15503 library_names_spec='$libname${shared_ext} $libname.a' 15504 dynamic_linker='OS/2 ld.exe' 15505 shlibpath_var=LIBPATH 15506 ;; 15507 15508osf3* | osf4* | osf5*) 15509 version_type=osf 15510 need_lib_prefix=no 15511 need_version=no 15512 soname_spec='${libname}${release}${shared_ext}$major' 15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15514 shlibpath_var=LD_LIBRARY_PATH 15515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15517 ;; 15518 15519solaris*) 15520 version_type=linux 15521 need_lib_prefix=no 15522 need_version=no 15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15524 soname_spec='${libname}${release}${shared_ext}$major' 15525 shlibpath_var=LD_LIBRARY_PATH 15526 shlibpath_overrides_runpath=yes 15527 hardcode_into_libs=yes 15528 # ldd complains unless libraries are executable 15529 postinstall_cmds='chmod +x $lib' 15530 ;; 15531 15532sunos4*) 15533 version_type=sunos 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 shlibpath_overrides_runpath=yes 15538 if test "$with_gnu_ld" = yes; then 15539 need_lib_prefix=no 15540 fi 15541 need_version=yes 15542 ;; 15543 15544sysv4 | sysv4.3*) 15545 version_type=linux 15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15547 soname_spec='${libname}${release}${shared_ext}$major' 15548 shlibpath_var=LD_LIBRARY_PATH 15549 case $host_vendor in 15550 sni) 15551 shlibpath_overrides_runpath=no 15552 need_lib_prefix=no 15553 export_dynamic_flag_spec='${wl}-Blargedynsym' 15554 runpath_var=LD_RUN_PATH 15555 ;; 15556 siemens) 15557 need_lib_prefix=no 15558 ;; 15559 motorola) 15560 need_lib_prefix=no 15561 need_version=no 15562 shlibpath_overrides_runpath=no 15563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15564 ;; 15565 esac 15566 ;; 15567 15568sysv4*MP*) 15569 if test -d /usr/nec ;then 15570 version_type=linux 15571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15572 soname_spec='$libname${shared_ext}.$major' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 fi 15575 ;; 15576 15577sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15578 version_type=freebsd-elf 15579 need_lib_prefix=no 15580 need_version=no 15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15582 soname_spec='${libname}${release}${shared_ext}$major' 15583 shlibpath_var=LD_LIBRARY_PATH 15584 hardcode_into_libs=yes 15585 if test "$with_gnu_ld" = yes; then 15586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15587 shlibpath_overrides_runpath=no 15588 else 15589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15590 shlibpath_overrides_runpath=yes 15591 case $host_os in 15592 sco3.2v5*) 15593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15594 ;; 15595 esac 15596 fi 15597 sys_lib_dlsearch_path_spec='/usr/lib' 15598 ;; 15599 15600uts4*) 15601 version_type=linux 15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15603 soname_spec='${libname}${release}${shared_ext}$major' 15604 shlibpath_var=LD_LIBRARY_PATH 15605 ;; 15606 15607*) 15608 dynamic_linker=no 15609 ;; 15610esac 15611{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15612echo "${ECHO_T}$dynamic_linker" >&6; } 15613test "$dynamic_linker" = no && can_build_shared=no 15614 15615variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15616if test "$GCC" = yes; then 15617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15618fi 15619 15620{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15621echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15622hardcode_action_F77= 15623if test -n "$hardcode_libdir_flag_spec_F77" || \ 15624 test -n "$runpath_var_F77" || \ 15625 test "X$hardcode_automatic_F77" = "Xyes" ; then 15626 15627 # We can hardcode non-existant directories. 15628 if test "$hardcode_direct_F77" != no && 15629 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15630 # have to relink, otherwise we might link with an installed library 15631 # when we should be linking with a yet-to-be-installed one 15632 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15633 test "$hardcode_minus_L_F77" != no; then 15634 # Linking always hardcodes the temporary library directory. 15635 hardcode_action_F77=relink 15636 else 15637 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15638 hardcode_action_F77=immediate 15639 fi 15640else 15641 # We cannot hardcode anything, or else we can only hardcode existing 15642 # directories. 15643 hardcode_action_F77=unsupported 15644fi 15645{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15646echo "${ECHO_T}$hardcode_action_F77" >&6; } 15647 15648if test "$hardcode_action_F77" = relink; then 15649 # Fast installation is not supported 15650 enable_fast_install=no 15651elif test "$shlibpath_overrides_runpath" = yes || 15652 test "$enable_shared" = no; then 15653 # Fast installation is not necessary 15654 enable_fast_install=needless 15655fi 15656 15657 15658# The else clause should only fire when bootstrapping the 15659# libtool distribution, otherwise you forgot to ship ltmain.sh 15660# with your package, and you will get complaints that there are 15661# no rules to generate ltmain.sh. 15662if test -f "$ltmain"; then 15663 # See if we are running on zsh, and set the options which allow our commands through 15664 # without removal of \ escapes. 15665 if test -n "${ZSH_VERSION+set}" ; then 15666 setopt NO_GLOB_SUBST 15667 fi 15668 # Now quote all the things that may contain metacharacters while being 15669 # careful not to overquote the AC_SUBSTed values. We take copies of the 15670 # variables and quote the copies for generation of the libtool script. 15671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15672 SED SHELL STRIP \ 15673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15675 deplibs_check_method reload_flag reload_cmds need_locks \ 15676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15677 lt_cv_sys_global_symbol_to_c_name_address \ 15678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15679 old_postinstall_cmds old_postuninstall_cmds \ 15680 compiler_F77 \ 15681 CC_F77 \ 15682 LD_F77 \ 15683 lt_prog_compiler_wl_F77 \ 15684 lt_prog_compiler_pic_F77 \ 15685 lt_prog_compiler_static_F77 \ 15686 lt_prog_compiler_no_builtin_flag_F77 \ 15687 export_dynamic_flag_spec_F77 \ 15688 thread_safe_flag_spec_F77 \ 15689 whole_archive_flag_spec_F77 \ 15690 enable_shared_with_static_runtimes_F77 \ 15691 old_archive_cmds_F77 \ 15692 old_archive_from_new_cmds_F77 \ 15693 predep_objects_F77 \ 15694 postdep_objects_F77 \ 15695 predeps_F77 \ 15696 postdeps_F77 \ 15697 compiler_lib_search_path_F77 \ 15698 archive_cmds_F77 \ 15699 archive_expsym_cmds_F77 \ 15700 postinstall_cmds_F77 \ 15701 postuninstall_cmds_F77 \ 15702 old_archive_from_expsyms_cmds_F77 \ 15703 allow_undefined_flag_F77 \ 15704 no_undefined_flag_F77 \ 15705 export_symbols_cmds_F77 \ 15706 hardcode_libdir_flag_spec_F77 \ 15707 hardcode_libdir_flag_spec_ld_F77 \ 15708 hardcode_libdir_separator_F77 \ 15709 hardcode_automatic_F77 \ 15710 module_cmds_F77 \ 15711 module_expsym_cmds_F77 \ 15712 lt_cv_prog_compiler_c_o_F77 \ 15713 exclude_expsyms_F77 \ 15714 include_expsyms_F77; do 15715 15716 case $var in 15717 old_archive_cmds_F77 | \ 15718 old_archive_from_new_cmds_F77 | \ 15719 archive_cmds_F77 | \ 15720 archive_expsym_cmds_F77 | \ 15721 module_cmds_F77 | \ 15722 module_expsym_cmds_F77 | \ 15723 old_archive_from_expsyms_cmds_F77 | \ 15724 export_symbols_cmds_F77 | \ 15725 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15726 postinstall_cmds | postuninstall_cmds | \ 15727 old_postinstall_cmds | old_postuninstall_cmds | \ 15728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15729 # Double-quote double-evaled strings. 15730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15731 ;; 15732 *) 15733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15734 ;; 15735 esac 15736 done 15737 15738 case $lt_echo in 15739 *'\$0 --fallback-echo"') 15740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15741 ;; 15742 esac 15743 15744cfgfile="$ofile" 15745 15746 cat <<__EOF__ >> "$cfgfile" 15747# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15748 15749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15750 15751# Shell to use when invoking shell scripts. 15752SHELL=$lt_SHELL 15753 15754# Whether or not to build shared libraries. 15755build_libtool_libs=$enable_shared 15756 15757# Whether or not to build static libraries. 15758build_old_libs=$enable_static 15759 15760# Whether or not to add -lc for building shared libraries. 15761build_libtool_need_lc=$archive_cmds_need_lc_F77 15762 15763# Whether or not to disallow shared libs when runtime libs are static 15764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15765 15766# Whether or not to optimize for fast installation. 15767fast_install=$enable_fast_install 15768 15769# The host system. 15770host_alias=$host_alias 15771host=$host 15772host_os=$host_os 15773 15774# The build system. 15775build_alias=$build_alias 15776build=$build 15777build_os=$build_os 15778 15779# An echo program that does not interpret backslashes. 15780echo=$lt_echo 15781 15782# The archiver. 15783AR=$lt_AR 15784AR_FLAGS=$lt_AR_FLAGS 15785 15786# A C compiler. 15787LTCC=$lt_LTCC 15788 15789# LTCC compiler flags. 15790LTCFLAGS=$lt_LTCFLAGS 15791 15792# A language-specific compiler. 15793CC=$lt_compiler_F77 15794 15795# Is the compiler the GNU C compiler? 15796with_gcc=$GCC_F77 15797 15798# An ERE matcher. 15799EGREP=$lt_EGREP 15800 15801# The linker used to build libraries. 15802LD=$lt_LD_F77 15803 15804# Whether we need hard or soft links. 15805LN_S=$lt_LN_S 15806 15807# A BSD-compatible nm program. 15808NM=$lt_NM 15809 15810# A symbol stripping program 15811STRIP=$lt_STRIP 15812 15813# Used to examine libraries when file_magic_cmd begins "file" 15814MAGIC_CMD=$MAGIC_CMD 15815 15816# Used on cygwin: DLL creation program. 15817DLLTOOL="$DLLTOOL" 15818 15819# Used on cygwin: object dumper. 15820OBJDUMP="$OBJDUMP" 15821 15822# Used on cygwin: assembler. 15823AS="$AS" 15824 15825# The name of the directory that contains temporary libtool files. 15826objdir=$objdir 15827 15828# How to create reloadable object files. 15829reload_flag=$lt_reload_flag 15830reload_cmds=$lt_reload_cmds 15831 15832# How to pass a linker flag through the compiler. 15833wl=$lt_lt_prog_compiler_wl_F77 15834 15835# Object file suffix (normally "o"). 15836objext="$ac_objext" 15837 15838# Old archive suffix (normally "a"). 15839libext="$libext" 15840 15841# Shared library suffix (normally ".so"). 15842shrext_cmds='$shrext_cmds' 15843 15844# Executable file suffix (normally ""). 15845exeext="$exeext" 15846 15847# Additional compiler flags for building library objects. 15848pic_flag=$lt_lt_prog_compiler_pic_F77 15849pic_mode=$pic_mode 15850 15851# What is the maximum length of a command? 15852max_cmd_len=$lt_cv_sys_max_cmd_len 15853 15854# Does compiler simultaneously support -c and -o options? 15855compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15856 15857# Must we lock files when doing compilation? 15858need_locks=$lt_need_locks 15859 15860# Do we need the lib prefix for modules? 15861need_lib_prefix=$need_lib_prefix 15862 15863# Do we need a version for libraries? 15864need_version=$need_version 15865 15866# Whether dlopen is supported. 15867dlopen_support=$enable_dlopen 15868 15869# Whether dlopen of programs is supported. 15870dlopen_self=$enable_dlopen_self 15871 15872# Whether dlopen of statically linked programs is supported. 15873dlopen_self_static=$enable_dlopen_self_static 15874 15875# Compiler flag to prevent dynamic linking. 15876link_static_flag=$lt_lt_prog_compiler_static_F77 15877 15878# Compiler flag to turn off builtin functions. 15879no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15880 15881# Compiler flag to allow reflexive dlopens. 15882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15883 15884# Compiler flag to generate shared objects directly from archives. 15885whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15886 15887# Compiler flag to generate thread-safe objects. 15888thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15889 15890# Library versioning type. 15891version_type=$version_type 15892 15893# Format of library name prefix. 15894libname_spec=$lt_libname_spec 15895 15896# List of archive names. First name is the real one, the rest are links. 15897# The last name is the one that the linker finds with -lNAME. 15898library_names_spec=$lt_library_names_spec 15899 15900# The coded name of the library, if different from the real name. 15901soname_spec=$lt_soname_spec 15902 15903# Commands used to build and install an old-style archive. 15904RANLIB=$lt_RANLIB 15905old_archive_cmds=$lt_old_archive_cmds_F77 15906old_postinstall_cmds=$lt_old_postinstall_cmds 15907old_postuninstall_cmds=$lt_old_postuninstall_cmds 15908 15909# Create an old-style archive from a shared archive. 15910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15911 15912# Create a temporary old-style archive to link instead of a shared archive. 15913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15914 15915# Commands used to build and install a shared archive. 15916archive_cmds=$lt_archive_cmds_F77 15917archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15918postinstall_cmds=$lt_postinstall_cmds 15919postuninstall_cmds=$lt_postuninstall_cmds 15920 15921# Commands used to build a loadable module (assumed same as above if empty) 15922module_cmds=$lt_module_cmds_F77 15923module_expsym_cmds=$lt_module_expsym_cmds_F77 15924 15925# Commands to strip libraries. 15926old_striplib=$lt_old_striplib 15927striplib=$lt_striplib 15928 15929# Dependencies to place before the objects being linked to create a 15930# shared library. 15931predep_objects=$lt_predep_objects_F77 15932 15933# Dependencies to place after the objects being linked to create a 15934# shared library. 15935postdep_objects=$lt_postdep_objects_F77 15936 15937# Dependencies to place before the objects being linked to create a 15938# shared library. 15939predeps=$lt_predeps_F77 15940 15941# Dependencies to place after the objects being linked to create a 15942# shared library. 15943postdeps=$lt_postdeps_F77 15944 15945# The library search path used internally by the compiler when linking 15946# a shared library. 15947compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15948 15949# Method to check whether dependent libraries are shared objects. 15950deplibs_check_method=$lt_deplibs_check_method 15951 15952# Command to use when deplibs_check_method == file_magic. 15953file_magic_cmd=$lt_file_magic_cmd 15954 15955# Flag that allows shared libraries with undefined symbols to be built. 15956allow_undefined_flag=$lt_allow_undefined_flag_F77 15957 15958# Flag that forces no undefined symbols. 15959no_undefined_flag=$lt_no_undefined_flag_F77 15960 15961# Commands used to finish a libtool library installation in a directory. 15962finish_cmds=$lt_finish_cmds 15963 15964# Same as above, but a single script fragment to be evaled but not shown. 15965finish_eval=$lt_finish_eval 15966 15967# Take the output of nm and produce a listing of raw symbols and C names. 15968global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15969 15970# Transform the output of nm in a proper C declaration 15971global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15972 15973# Transform the output of nm in a C name address pair 15974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15975 15976# This is the shared library runtime path variable. 15977runpath_var=$runpath_var 15978 15979# This is the shared library path variable. 15980shlibpath_var=$shlibpath_var 15981 15982# Is shlibpath searched before the hard-coded library search path? 15983shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15984 15985# How to hardcode a shared library path into an executable. 15986hardcode_action=$hardcode_action_F77 15987 15988# Whether we should hardcode library paths into libraries. 15989hardcode_into_libs=$hardcode_into_libs 15990 15991# Flag to hardcode \$libdir into a binary during linking. 15992# This must work even if \$libdir does not exist. 15993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15994 15995# If ld is used when linking, flag to hardcode \$libdir into 15996# a binary during linking. This must work even if \$libdir does 15997# not exist. 15998hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15999 16000# Whether we need a single -rpath flag with a separated argument. 16001hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16002 16003# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16004# resulting binary. 16005hardcode_direct=$hardcode_direct_F77 16006 16007# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16008# resulting binary. 16009hardcode_minus_L=$hardcode_minus_L_F77 16010 16011# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16012# the resulting binary. 16013hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16014 16015# Set to yes if building a shared library automatically hardcodes DIR into the library 16016# and all subsequent libraries and executables linked against it. 16017hardcode_automatic=$hardcode_automatic_F77 16018 16019# Variables whose values should be saved in libtool wrapper scripts and 16020# restored at relink time. 16021variables_saved_for_relink="$variables_saved_for_relink" 16022 16023# Whether libtool must link a program against all its dependency libraries. 16024link_all_deplibs=$link_all_deplibs_F77 16025 16026# Compile-time system search path for libraries 16027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16028 16029# Run-time system search path for libraries 16030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16031 16032# Fix the shell variable \$srcfile for the compiler. 16033fix_srcfile_path="$fix_srcfile_path_F77" 16034 16035# Set to yes if exported symbols are required. 16036always_export_symbols=$always_export_symbols_F77 16037 16038# The commands to list exported symbols. 16039export_symbols_cmds=$lt_export_symbols_cmds_F77 16040 16041# The commands to extract the exported symbol list from a shared archive. 16042extract_expsyms_cmds=$lt_extract_expsyms_cmds 16043 16044# Symbols that should not be listed in the preloaded symbols. 16045exclude_expsyms=$lt_exclude_expsyms_F77 16046 16047# Symbols that must always be exported. 16048include_expsyms=$lt_include_expsyms_F77 16049 16050# ### END LIBTOOL TAG CONFIG: $tagname 16051 16052__EOF__ 16053 16054 16055else 16056 # If there is no Makefile yet, we rely on a make rule to execute 16057 # `config.status --recheck' to rerun these tests and create the 16058 # libtool script then. 16059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16060 if test -f "$ltmain_in"; then 16061 test -f Makefile && make "$ltmain" 16062 fi 16063fi 16064 16065 16066ac_ext=c 16067ac_cpp='$CPP $CPPFLAGS' 16068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16070ac_compiler_gnu=$ac_cv_c_compiler_gnu 16071 16072CC="$lt_save_CC" 16073 16074 else 16075 tagname="" 16076 fi 16077 ;; 16078 16079 GCJ) 16080 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16081 16082 16083# Source file extension for Java test sources. 16084ac_ext=java 16085 16086# Object file extension for compiled Java test sources. 16087objext=o 16088objext_GCJ=$objext 16089 16090# Code to be used in simple compile tests 16091lt_simple_compile_test_code="class foo {}\n" 16092 16093# Code to be used in simple link tests 16094lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16095 16096# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16097 16098# If no C compiler was specified, use CC. 16099LTCC=${LTCC-"$CC"} 16100 16101# If no C compiler flags were specified, use CFLAGS. 16102LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16103 16104# Allow CC to be a program name with arguments. 16105compiler=$CC 16106 16107 16108# save warnings/boilerplate of simple test code 16109ac_outfile=conftest.$ac_objext 16110printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16111eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16112_lt_compiler_boilerplate=`cat conftest.err` 16113$rm conftest* 16114 16115ac_outfile=conftest.$ac_objext 16116printf "$lt_simple_link_test_code" >conftest.$ac_ext 16117eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16118_lt_linker_boilerplate=`cat conftest.err` 16119$rm conftest* 16120 16121 16122# Allow CC to be a program name with arguments. 16123lt_save_CC="$CC" 16124CC=${GCJ-"gcj"} 16125compiler=$CC 16126compiler_GCJ=$CC 16127for cc_temp in $compiler""; do 16128 case $cc_temp in 16129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16131 \-*) ;; 16132 *) break;; 16133 esac 16134done 16135cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16136 16137 16138# GCJ did not exist at the time GCC didn't implicitly link libc in. 16139archive_cmds_need_lc_GCJ=no 16140 16141old_archive_cmds_GCJ=$old_archive_cmds 16142 16143 16144lt_prog_compiler_no_builtin_flag_GCJ= 16145 16146if test "$GCC" = yes; then 16147 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16148 16149 16150{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16151echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16152if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16153 echo $ECHO_N "(cached) $ECHO_C" >&6 16154else 16155 lt_cv_prog_compiler_rtti_exceptions=no 16156 ac_outfile=conftest.$ac_objext 16157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16158 lt_compiler_flag="-fno-rtti -fno-exceptions" 16159 # Insert the option either (1) after the last *FLAGS variable, or 16160 # (2) before a word containing "conftest.", or (3) at the end. 16161 # Note that $ac_compile itself does not contain backslashes and begins 16162 # with a dollar sign (not a hyphen), so the echo should work correctly. 16163 # The option is referenced via a variable to avoid confusing sed. 16164 lt_compile=`echo "$ac_compile" | $SED \ 16165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16167 -e 's:$: $lt_compiler_flag:'` 16168 (eval echo "\"\$as_me:16168: $lt_compile\"" >&5) 16169 (eval "$lt_compile" 2>conftest.err) 16170 ac_status=$? 16171 cat conftest.err >&5 16172 echo "$as_me:16172: \$? = $ac_status" >&5 16173 if (exit $ac_status) && test -s "$ac_outfile"; then 16174 # The compiler can only warn and ignore the option if not recognized 16175 # So say no if there are warnings other than the usual output. 16176 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16179 lt_cv_prog_compiler_rtti_exceptions=yes 16180 fi 16181 fi 16182 $rm conftest* 16183 16184fi 16185{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16186echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16187 16188if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16189 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16190else 16191 : 16192fi 16193 16194fi 16195 16196lt_prog_compiler_wl_GCJ= 16197lt_prog_compiler_pic_GCJ= 16198lt_prog_compiler_static_GCJ= 16199 16200{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16201echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16202 16203 if test "$GCC" = yes; then 16204 lt_prog_compiler_wl_GCJ='-Wl,' 16205 lt_prog_compiler_static_GCJ='-static' 16206 16207 case $host_os in 16208 aix*) 16209 # All AIX code is PIC. 16210 if test "$host_cpu" = ia64; then 16211 # AIX 5 now supports IA64 processor 16212 lt_prog_compiler_static_GCJ='-Bstatic' 16213 fi 16214 ;; 16215 16216 amigaos*) 16217 # FIXME: we need at least 68020 code to build shared libraries, but 16218 # adding the `-m68020' flag to GCC prevents building anything better, 16219 # like `-m68040'. 16220 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16221 ;; 16222 16223 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16224 # PIC is the default for these OSes. 16225 ;; 16226 16227 mingw* | pw32* | os2*) 16228 # This hack is so that the source file can tell whether it is being 16229 # built for inclusion in a dll (and should export symbols for example). 16230 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16231 ;; 16232 16233 darwin* | rhapsody*) 16234 # PIC is the default on this platform 16235 # Common symbols not allowed in MH_DYLIB files 16236 lt_prog_compiler_pic_GCJ='-fno-common' 16237 ;; 16238 16239 interix3*) 16240 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16241 # Instead, we relocate shared libraries at runtime. 16242 ;; 16243 16244 msdosdjgpp*) 16245 # Just because we use GCC doesn't mean we suddenly get shared libraries 16246 # on systems that don't support them. 16247 lt_prog_compiler_can_build_shared_GCJ=no 16248 enable_shared=no 16249 ;; 16250 16251 sysv4*MP*) 16252 if test -d /usr/nec; then 16253 lt_prog_compiler_pic_GCJ=-Kconform_pic 16254 fi 16255 ;; 16256 16257 hpux*) 16258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16259 # not for PA HP-UX. 16260 case $host_cpu in 16261 hppa*64*|ia64*) 16262 # +Z the default 16263 ;; 16264 *) 16265 lt_prog_compiler_pic_GCJ='-fPIC' 16266 ;; 16267 esac 16268 ;; 16269 16270 *) 16271 lt_prog_compiler_pic_GCJ='-fPIC' 16272 ;; 16273 esac 16274 else 16275 # PORTME Check for flag to pass linker flags through the system compiler. 16276 case $host_os in 16277 aix*) 16278 lt_prog_compiler_wl_GCJ='-Wl,' 16279 if test "$host_cpu" = ia64; then 16280 # AIX 5 now supports IA64 processor 16281 lt_prog_compiler_static_GCJ='-Bstatic' 16282 else 16283 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16284 fi 16285 ;; 16286 darwin*) 16287 # PIC is the default on this platform 16288 # Common symbols not allowed in MH_DYLIB files 16289 case $cc_basename in 16290 xlc*) 16291 lt_prog_compiler_pic_GCJ='-qnocommon' 16292 lt_prog_compiler_wl_GCJ='-Wl,' 16293 ;; 16294 esac 16295 ;; 16296 16297 mingw* | pw32* | os2*) 16298 # This hack is so that the source file can tell whether it is being 16299 # built for inclusion in a dll (and should export symbols for example). 16300 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16301 ;; 16302 16303 hpux9* | hpux10* | hpux11*) 16304 lt_prog_compiler_wl_GCJ='-Wl,' 16305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16306 # not for PA HP-UX. 16307 case $host_cpu in 16308 hppa*64*|ia64*) 16309 # +Z the default 16310 ;; 16311 *) 16312 lt_prog_compiler_pic_GCJ='+Z' 16313 ;; 16314 esac 16315 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16316 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16317 ;; 16318 16319 irix5* | irix6* | nonstopux*) 16320 lt_prog_compiler_wl_GCJ='-Wl,' 16321 # PIC (with -KPIC) is the default. 16322 lt_prog_compiler_static_GCJ='-non_shared' 16323 ;; 16324 16325 newsos6) 16326 lt_prog_compiler_pic_GCJ='-KPIC' 16327 lt_prog_compiler_static_GCJ='-Bstatic' 16328 ;; 16329 16330 linux* | k*bsd*-gnu) 16331 case $cc_basename in 16332 icc* | ecc*) 16333 lt_prog_compiler_wl_GCJ='-Wl,' 16334 lt_prog_compiler_pic_GCJ='-KPIC' 16335 lt_prog_compiler_static_GCJ='-static' 16336 ;; 16337 pgcc* | pgf77* | pgf90* | pgf95*) 16338 # Portland Group compilers (*not* the Pentium gcc compiler, 16339 # which looks to be a dead project) 16340 lt_prog_compiler_wl_GCJ='-Wl,' 16341 lt_prog_compiler_pic_GCJ='-fpic' 16342 lt_prog_compiler_static_GCJ='-Bstatic' 16343 ;; 16344 ccc*) 16345 lt_prog_compiler_wl_GCJ='-Wl,' 16346 # All Alpha code is PIC. 16347 lt_prog_compiler_static_GCJ='-non_shared' 16348 ;; 16349 esac 16350 ;; 16351 16352 osf3* | osf4* | osf5*) 16353 lt_prog_compiler_wl_GCJ='-Wl,' 16354 # All OSF/1 code is PIC. 16355 lt_prog_compiler_static_GCJ='-non_shared' 16356 ;; 16357 16358 solaris*) 16359 lt_prog_compiler_pic_GCJ='-KPIC' 16360 lt_prog_compiler_static_GCJ='-Bstatic' 16361 case $cc_basename in 16362 f77* | f90* | f95*) 16363 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16364 *) 16365 lt_prog_compiler_wl_GCJ='-Wl,';; 16366 esac 16367 ;; 16368 16369 sunos4*) 16370 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16371 lt_prog_compiler_pic_GCJ='-PIC' 16372 lt_prog_compiler_static_GCJ='-Bstatic' 16373 ;; 16374 16375 sysv4 | sysv4.2uw2* | sysv4.3*) 16376 lt_prog_compiler_wl_GCJ='-Wl,' 16377 lt_prog_compiler_pic_GCJ='-KPIC' 16378 lt_prog_compiler_static_GCJ='-Bstatic' 16379 ;; 16380 16381 sysv4*MP*) 16382 if test -d /usr/nec ;then 16383 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16384 lt_prog_compiler_static_GCJ='-Bstatic' 16385 fi 16386 ;; 16387 16388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16389 lt_prog_compiler_wl_GCJ='-Wl,' 16390 lt_prog_compiler_pic_GCJ='-KPIC' 16391 lt_prog_compiler_static_GCJ='-Bstatic' 16392 ;; 16393 16394 unicos*) 16395 lt_prog_compiler_wl_GCJ='-Wl,' 16396 lt_prog_compiler_can_build_shared_GCJ=no 16397 ;; 16398 16399 uts4*) 16400 lt_prog_compiler_pic_GCJ='-pic' 16401 lt_prog_compiler_static_GCJ='-Bstatic' 16402 ;; 16403 16404 *) 16405 lt_prog_compiler_can_build_shared_GCJ=no 16406 ;; 16407 esac 16408 fi 16409 16410{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16411echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16412 16413# 16414# Check to make sure the PIC flag actually works. 16415# 16416if test -n "$lt_prog_compiler_pic_GCJ"; then 16417 16418{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16419echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16420if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16421 echo $ECHO_N "(cached) $ECHO_C" >&6 16422else 16423 lt_prog_compiler_pic_works_GCJ=no 16424 ac_outfile=conftest.$ac_objext 16425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16426 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16427 # Insert the option either (1) after the last *FLAGS variable, or 16428 # (2) before a word containing "conftest.", or (3) at the end. 16429 # Note that $ac_compile itself does not contain backslashes and begins 16430 # with a dollar sign (not a hyphen), so the echo should work correctly. 16431 # The option is referenced via a variable to avoid confusing sed. 16432 lt_compile=`echo "$ac_compile" | $SED \ 16433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16435 -e 's:$: $lt_compiler_flag:'` 16436 (eval echo "\"\$as_me:16436: $lt_compile\"" >&5) 16437 (eval "$lt_compile" 2>conftest.err) 16438 ac_status=$? 16439 cat conftest.err >&5 16440 echo "$as_me:16440: \$? = $ac_status" >&5 16441 if (exit $ac_status) && test -s "$ac_outfile"; then 16442 # The compiler can only warn and ignore the option if not recognized 16443 # So say no if there are warnings other than the usual output. 16444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16447 lt_prog_compiler_pic_works_GCJ=yes 16448 fi 16449 fi 16450 $rm conftest* 16451 16452fi 16453{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16454echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16455 16456if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16457 case $lt_prog_compiler_pic_GCJ in 16458 "" | " "*) ;; 16459 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16460 esac 16461else 16462 lt_prog_compiler_pic_GCJ= 16463 lt_prog_compiler_can_build_shared_GCJ=no 16464fi 16465 16466fi 16467case $host_os in 16468 # For platforms which do not support PIC, -DPIC is meaningless: 16469 *djgpp*) 16470 lt_prog_compiler_pic_GCJ= 16471 ;; 16472 *) 16473 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16474 ;; 16475esac 16476 16477# 16478# Check to make sure the static flag actually works. 16479# 16480wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16481{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16482echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16483if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16484 echo $ECHO_N "(cached) $ECHO_C" >&6 16485else 16486 lt_prog_compiler_static_works_GCJ=no 16487 save_LDFLAGS="$LDFLAGS" 16488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16489 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16491 # The linker can only warn and ignore the option if not recognized 16492 # So say no if there are warnings 16493 if test -s conftest.err; then 16494 # Append any errors to the config.log. 16495 cat conftest.err 1>&5 16496 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16498 if diff conftest.exp conftest.er2 >/dev/null; then 16499 lt_prog_compiler_static_works_GCJ=yes 16500 fi 16501 else 16502 lt_prog_compiler_static_works_GCJ=yes 16503 fi 16504 fi 16505 $rm conftest* 16506 LDFLAGS="$save_LDFLAGS" 16507 16508fi 16509{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16510echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16511 16512if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16513 : 16514else 16515 lt_prog_compiler_static_GCJ= 16516fi 16517 16518 16519{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16520echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16521if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16522 echo $ECHO_N "(cached) $ECHO_C" >&6 16523else 16524 lt_cv_prog_compiler_c_o_GCJ=no 16525 $rm -r conftest 2>/dev/null 16526 mkdir conftest 16527 cd conftest 16528 mkdir out 16529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16530 16531 lt_compiler_flag="-o out/conftest2.$ac_objext" 16532 # Insert the option either (1) after the last *FLAGS variable, or 16533 # (2) before a word containing "conftest.", or (3) at the end. 16534 # Note that $ac_compile itself does not contain backslashes and begins 16535 # with a dollar sign (not a hyphen), so the echo should work correctly. 16536 lt_compile=`echo "$ac_compile" | $SED \ 16537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16539 -e 's:$: $lt_compiler_flag:'` 16540 (eval echo "\"\$as_me:16540: $lt_compile\"" >&5) 16541 (eval "$lt_compile" 2>out/conftest.err) 16542 ac_status=$? 16543 cat out/conftest.err >&5 16544 echo "$as_me:16544: \$? = $ac_status" >&5 16545 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16546 then 16547 # The compiler can only warn and ignore the option if not recognized 16548 # So say no if there are warnings 16549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16552 lt_cv_prog_compiler_c_o_GCJ=yes 16553 fi 16554 fi 16555 chmod u+w . 2>&5 16556 $rm conftest* 16557 # SGI C++ compiler will create directory out/ii_files/ for 16558 # template instantiation 16559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16560 $rm out/* && rmdir out 16561 cd .. 16562 rmdir conftest 16563 $rm conftest* 16564 16565fi 16566{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16567echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16568 16569 16570hard_links="nottested" 16571if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16572 # do not overwrite the value of need_locks provided by the user 16573 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16574echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16575 hard_links=yes 16576 $rm conftest* 16577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16578 touch conftest.a 16579 ln conftest.a conftest.b 2>&5 || hard_links=no 16580 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16581 { echo "$as_me:$LINENO: result: $hard_links" >&5 16582echo "${ECHO_T}$hard_links" >&6; } 16583 if test "$hard_links" = no; then 16584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16585echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16586 need_locks=warn 16587 fi 16588else 16589 need_locks=no 16590fi 16591 16592{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16593echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16594 16595 runpath_var= 16596 allow_undefined_flag_GCJ= 16597 enable_shared_with_static_runtimes_GCJ=no 16598 archive_cmds_GCJ= 16599 archive_expsym_cmds_GCJ= 16600 old_archive_From_new_cmds_GCJ= 16601 old_archive_from_expsyms_cmds_GCJ= 16602 export_dynamic_flag_spec_GCJ= 16603 whole_archive_flag_spec_GCJ= 16604 thread_safe_flag_spec_GCJ= 16605 hardcode_libdir_flag_spec_GCJ= 16606 hardcode_libdir_flag_spec_ld_GCJ= 16607 hardcode_libdir_separator_GCJ= 16608 hardcode_direct_GCJ=no 16609 hardcode_minus_L_GCJ=no 16610 hardcode_shlibpath_var_GCJ=unsupported 16611 link_all_deplibs_GCJ=unknown 16612 hardcode_automatic_GCJ=no 16613 module_cmds_GCJ= 16614 module_expsym_cmds_GCJ= 16615 always_export_symbols_GCJ=no 16616 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16617 # include_expsyms should be a list of space-separated symbols to be *always* 16618 # included in the symbol list 16619 include_expsyms_GCJ= 16620 # exclude_expsyms can be an extended regexp of symbols to exclude 16621 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16623 # as well as any symbol that contains `d'. 16624 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16626 # platforms (ab)use it in PIC code, but their linkers get confused if 16627 # the symbol is explicitly referenced. Since portable code cannot 16628 # rely on this symbol name, it's probably fine to never include it in 16629 # preloaded symbol tables. 16630 extract_expsyms_cmds= 16631 # Just being paranoid about ensuring that cc_basename is set. 16632 for cc_temp in $compiler""; do 16633 case $cc_temp in 16634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16636 \-*) ;; 16637 *) break;; 16638 esac 16639done 16640cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16641 16642 case $host_os in 16643 cygwin* | mingw* | pw32*) 16644 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16645 # When not using gcc, we currently assume that we are using 16646 # Microsoft Visual C++. 16647 if test "$GCC" != yes; then 16648 with_gnu_ld=no 16649 fi 16650 ;; 16651 interix*) 16652 # we just hope/assume this is gcc and not c89 (= MSVC++) 16653 with_gnu_ld=yes 16654 ;; 16655 openbsd*) 16656 with_gnu_ld=no 16657 ;; 16658 esac 16659 16660 ld_shlibs_GCJ=yes 16661 if test "$with_gnu_ld" = yes; then 16662 # If archive_cmds runs LD, not CC, wlarc should be empty 16663 wlarc='${wl}' 16664 16665 # Set some defaults for GNU ld with shared library support. These 16666 # are reset later if shared libraries are not supported. Putting them 16667 # here allows them to be overridden if necessary. 16668 runpath_var=LD_RUN_PATH 16669 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16670 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16671 # ancient GNU ld didn't support --whole-archive et. al. 16672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16673 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16674 else 16675 whole_archive_flag_spec_GCJ= 16676 fi 16677 supports_anon_versioning=no 16678 case `$LD -v 2>/dev/null` in 16679 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16680 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16681 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16682 *\ 2.11.*) ;; # other 2.11 versions 16683 *) supports_anon_versioning=yes ;; 16684 esac 16685 16686 # See if GNU ld supports shared libraries. 16687 case $host_os in 16688 aix3* | aix4* | aix5*) 16689 # On AIX/PPC, the GNU linker is very broken 16690 if test "$host_cpu" != ia64; then 16691 ld_shlibs_GCJ=no 16692 cat <<EOF 1>&2 16693 16694*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16695*** to be unable to reliably create shared libraries on AIX. 16696*** Therefore, libtool is disabling shared libraries support. If you 16697*** really care for shared libraries, you may want to modify your PATH 16698*** so that a non-GNU linker is found, and then restart. 16699 16700EOF 16701 fi 16702 ;; 16703 16704 amigaos*) 16705 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)' 16706 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16707 hardcode_minus_L_GCJ=yes 16708 16709 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16710 # that the semantics of dynamic libraries on AmigaOS, at least up 16711 # to version 4, is to share data among multiple programs linked 16712 # with the same dynamic library. Since this doesn't match the 16713 # behavior of shared libraries on other platforms, we can't use 16714 # them. 16715 ld_shlibs_GCJ=no 16716 ;; 16717 16718 beos*) 16719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16720 allow_undefined_flag_GCJ=unsupported 16721 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16722 # support --undefined. This deserves some investigation. FIXME 16723 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16724 else 16725 ld_shlibs_GCJ=no 16726 fi 16727 ;; 16728 16729 cygwin* | mingw* | pw32*) 16730 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16731 # as there is no search path for DLLs. 16732 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16733 allow_undefined_flag_GCJ=unsupported 16734 always_export_symbols_GCJ=no 16735 enable_shared_with_static_runtimes_GCJ=yes 16736 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16737 16738 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16740 # If the export-symbols file already is a .def file (1st line 16741 # is EXPORTS), use it as is; otherwise, prepend... 16742 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16743 cp $export_symbols $output_objdir/$soname.def; 16744 else 16745 echo EXPORTS > $output_objdir/$soname.def; 16746 cat $export_symbols >> $output_objdir/$soname.def; 16747 fi~ 16748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16749 else 16750 ld_shlibs_GCJ=no 16751 fi 16752 ;; 16753 16754 interix3*) 16755 hardcode_direct_GCJ=no 16756 hardcode_shlibpath_var_GCJ=no 16757 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16758 export_dynamic_flag_spec_GCJ='${wl}-E' 16759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16760 # Instead, shared libraries are loaded at an image base (0x10000000 by 16761 # default) and relocated if they conflict, which is a slow very memory 16762 # consuming and fragmenting process. To avoid this, we pick a random, 16763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16764 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16765 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' 16766 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' 16767 ;; 16768 16769 linux* | k*bsd*-gnu) 16770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16771 tmp_addflag= 16772 case $cc_basename,$host_cpu in 16773 pgcc*) # Portland Group C compiler 16774 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' 16775 tmp_addflag=' $pic_flag' 16776 ;; 16777 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16778 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' 16779 tmp_addflag=' $pic_flag -Mnomain' ;; 16780 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16781 tmp_addflag=' -i_dynamic' ;; 16782 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16783 tmp_addflag=' -i_dynamic -nofor_main' ;; 16784 ifc* | ifort*) # Intel Fortran compiler 16785 tmp_addflag=' -nofor_main' ;; 16786 esac 16787 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16788 16789 if test $supports_anon_versioning = yes; then 16790 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16792 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16793 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16794 fi 16795 link_all_deplibs_GCJ=no 16796 else 16797 ld_shlibs_GCJ=no 16798 fi 16799 ;; 16800 16801 netbsd* | netbsdelf*-gnu) 16802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16803 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16804 wlarc= 16805 else 16806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16807 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16808 fi 16809 ;; 16810 16811 solaris*) 16812 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16813 ld_shlibs_GCJ=no 16814 cat <<EOF 1>&2 16815 16816*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16817*** create shared libraries on Solaris systems. Therefore, libtool 16818*** is disabling shared libraries support. We urge you to upgrade GNU 16819*** binutils to release 2.9.1 or newer. Another option is to modify 16820*** your PATH or compiler configuration so that the native linker is 16821*** used, and then restart. 16822 16823EOF 16824 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16827 else 16828 ld_shlibs_GCJ=no 16829 fi 16830 ;; 16831 16832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16833 case `$LD -v 2>&1` in 16834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16835 ld_shlibs_GCJ=no 16836 cat <<_LT_EOF 1>&2 16837 16838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16839*** reliably create shared libraries on SCO systems. Therefore, libtool 16840*** is disabling shared libraries support. We urge you to upgrade GNU 16841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16842*** your PATH or compiler configuration so that the native linker is 16843*** used, and then restart. 16844 16845_LT_EOF 16846 ;; 16847 *) 16848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16849 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16850 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16851 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16852 else 16853 ld_shlibs_GCJ=no 16854 fi 16855 ;; 16856 esac 16857 ;; 16858 16859 sunos4*) 16860 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16861 wlarc= 16862 hardcode_direct_GCJ=yes 16863 hardcode_shlibpath_var_GCJ=no 16864 ;; 16865 16866 *) 16867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16868 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16869 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16870 else 16871 ld_shlibs_GCJ=no 16872 fi 16873 ;; 16874 esac 16875 16876 if test "$ld_shlibs_GCJ" = no; then 16877 runpath_var= 16878 hardcode_libdir_flag_spec_GCJ= 16879 export_dynamic_flag_spec_GCJ= 16880 whole_archive_flag_spec_GCJ= 16881 fi 16882 else 16883 # PORTME fill in a description of your system's linker (not GNU ld) 16884 case $host_os in 16885 aix3*) 16886 allow_undefined_flag_GCJ=unsupported 16887 always_export_symbols_GCJ=yes 16888 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' 16889 # Note: this linker hardcodes the directories in LIBPATH if there 16890 # are no directories specified by -L. 16891 hardcode_minus_L_GCJ=yes 16892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16893 # Neither direct hardcoding nor static linking is supported with a 16894 # broken collect2. 16895 hardcode_direct_GCJ=unsupported 16896 fi 16897 ;; 16898 16899 aix4* | aix5*) 16900 if test "$host_cpu" = ia64; then 16901 # On IA64, the linker does run time linking by default, so we don't 16902 # have to do anything special. 16903 aix_use_runtimelinking=no 16904 exp_sym_flag='-Bexport' 16905 no_entry_flag="" 16906 else 16907 # If we're using GNU nm, then we don't want the "-C" option. 16908 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16909 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16910 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' 16911 else 16912 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' 16913 fi 16914 aix_use_runtimelinking=no 16915 16916 # Test if we are trying to use run time linking or normal 16917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16918 # need to do runtime linking. 16919 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16920 for ld_flag in $LDFLAGS; do 16921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16922 aix_use_runtimelinking=yes 16923 break 16924 fi 16925 done 16926 ;; 16927 esac 16928 16929 exp_sym_flag='-bexport' 16930 no_entry_flag='-bnoentry' 16931 fi 16932 16933 # When large executables or shared objects are built, AIX ld can 16934 # have problems creating the table of contents. If linking a library 16935 # or program results in "error TOC overflow" add -mminimal-toc to 16936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16938 16939 archive_cmds_GCJ='' 16940 hardcode_direct_GCJ=yes 16941 hardcode_libdir_separator_GCJ=':' 16942 link_all_deplibs_GCJ=yes 16943 16944 if test "$GCC" = yes; then 16945 case $host_os in aix4.[012]|aix4.[012].*) 16946 # We only want to do this on AIX 4.2 and lower, the check 16947 # below for broken collect2 doesn't work under 4.3+ 16948 collect2name=`${CC} -print-prog-name=collect2` 16949 if test -f "$collect2name" && \ 16950 strings "$collect2name" | grep resolve_lib_name >/dev/null 16951 then 16952 # We have reworked collect2 16953 hardcode_direct_GCJ=yes 16954 else 16955 # We have old collect2 16956 hardcode_direct_GCJ=unsupported 16957 # It fails to find uninstalled libraries when the uninstalled 16958 # path is not listed in the libpath. Setting hardcode_minus_L 16959 # to unsupported forces relinking 16960 hardcode_minus_L_GCJ=yes 16961 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16962 hardcode_libdir_separator_GCJ= 16963 fi 16964 ;; 16965 esac 16966 shared_flag='-shared' 16967 if test "$aix_use_runtimelinking" = yes; then 16968 shared_flag="$shared_flag "'${wl}-G' 16969 fi 16970 else 16971 # not using gcc 16972 if test "$host_cpu" = ia64; then 16973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16974 # chokes on -Wl,-G. The following line is correct: 16975 shared_flag='-G' 16976 else 16977 if test "$aix_use_runtimelinking" = yes; then 16978 shared_flag='${wl}-G' 16979 else 16980 shared_flag='${wl}-bM:SRE' 16981 fi 16982 fi 16983 fi 16984 16985 # It seems that -bexpall does not export symbols beginning with 16986 # underscore (_), so it is better to generate a list of symbols to export. 16987 always_export_symbols_GCJ=yes 16988 if test "$aix_use_runtimelinking" = yes; then 16989 # Warning - without using the other runtime loading flags (-brtl), 16990 # -berok will link without error, but may produce a broken library. 16991 allow_undefined_flag_GCJ='-berok' 16992 # Determine the default libpath from the value encoded in an empty executable. 16993 cat >conftest.$ac_ext <<_ACEOF 16994/* confdefs.h. */ 16995_ACEOF 16996cat confdefs.h >>conftest.$ac_ext 16997cat >>conftest.$ac_ext <<_ACEOF 16998/* end confdefs.h. */ 16999 17000int 17001main () 17002{ 17003 17004 ; 17005 return 0; 17006} 17007_ACEOF 17008rm -f conftest.$ac_objext conftest$ac_exeext 17009if { (ac_try="$ac_link" 17010case "(($ac_try" in 17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17012 *) ac_try_echo=$ac_try;; 17013esac 17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17015 (eval "$ac_link") 2>conftest.er1 17016 ac_status=$? 17017 grep -v '^ *+' conftest.er1 >conftest.err 17018 rm -f conftest.er1 17019 cat conftest.err >&5 17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17021 (exit $ac_status); } && { 17022 test -z "$ac_c_werror_flag" || 17023 test ! -s conftest.err 17024 } && test -s conftest$ac_exeext && 17025 $as_test_x conftest$ac_exeext; then 17026 17027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17028}'` 17029# Check for a 64-bit object if we didn't find anything. 17030if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17031}'`; fi 17032else 17033 echo "$as_me: failed program was:" >&5 17034sed 's/^/| /' conftest.$ac_ext >&5 17035 17036 17037fi 17038 17039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17040 conftest$ac_exeext conftest.$ac_ext 17041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17042 17043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17044 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" 17045 else 17046 if test "$host_cpu" = ia64; then 17047 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17048 allow_undefined_flag_GCJ="-z nodefs" 17049 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" 17050 else 17051 # Determine the default libpath from the value encoded in an empty executable. 17052 cat >conftest.$ac_ext <<_ACEOF 17053/* confdefs.h. */ 17054_ACEOF 17055cat confdefs.h >>conftest.$ac_ext 17056cat >>conftest.$ac_ext <<_ACEOF 17057/* end confdefs.h. */ 17058 17059int 17060main () 17061{ 17062 17063 ; 17064 return 0; 17065} 17066_ACEOF 17067rm -f conftest.$ac_objext conftest$ac_exeext 17068if { (ac_try="$ac_link" 17069case "(($ac_try" in 17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17071 *) ac_try_echo=$ac_try;; 17072esac 17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17074 (eval "$ac_link") 2>conftest.er1 17075 ac_status=$? 17076 grep -v '^ *+' conftest.er1 >conftest.err 17077 rm -f conftest.er1 17078 cat conftest.err >&5 17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17080 (exit $ac_status); } && { 17081 test -z "$ac_c_werror_flag" || 17082 test ! -s conftest.err 17083 } && test -s conftest$ac_exeext && 17084 $as_test_x conftest$ac_exeext; then 17085 17086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17087}'` 17088# Check for a 64-bit object if we didn't find anything. 17089if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17090}'`; fi 17091else 17092 echo "$as_me: failed program was:" >&5 17093sed 's/^/| /' conftest.$ac_ext >&5 17094 17095 17096fi 17097 17098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17099 conftest$ac_exeext conftest.$ac_ext 17100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17101 17102 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17103 # Warning - without using the other run time loading flags, 17104 # -berok will link without error, but may produce a broken library. 17105 no_undefined_flag_GCJ=' ${wl}-bernotok' 17106 allow_undefined_flag_GCJ=' ${wl}-berok' 17107 # Exported symbols can be pulled into shared objects from archives 17108 whole_archive_flag_spec_GCJ='$convenience' 17109 archive_cmds_need_lc_GCJ=yes 17110 # This is similar to how AIX traditionally builds its shared libraries. 17111 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' 17112 fi 17113 fi 17114 ;; 17115 17116 amigaos*) 17117 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)' 17118 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17119 hardcode_minus_L_GCJ=yes 17120 # see comment about different semantics on the GNU ld section 17121 ld_shlibs_GCJ=no 17122 ;; 17123 17124 bsdi[45]*) 17125 export_dynamic_flag_spec_GCJ=-rdynamic 17126 ;; 17127 17128 cygwin* | mingw* | pw32*) 17129 # When not using gcc, we currently assume that we are using 17130 # Microsoft Visual C++. 17131 # hardcode_libdir_flag_spec is actually meaningless, as there is 17132 # no search path for DLLs. 17133 hardcode_libdir_flag_spec_GCJ=' ' 17134 allow_undefined_flag_GCJ=unsupported 17135 # Tell ltmain to make .lib files, not .a files. 17136 libext=lib 17137 # Tell ltmain to make .dll files, not .so files. 17138 shrext_cmds=".dll" 17139 # FIXME: Setting linknames here is a bad hack. 17140 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17141 # The linker will automatically build a .lib file if we build a DLL. 17142 old_archive_From_new_cmds_GCJ='true' 17143 # FIXME: Should let the user specify the lib program. 17144 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17145 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17146 enable_shared_with_static_runtimes_GCJ=yes 17147 ;; 17148 17149 darwin* | rhapsody*) 17150 case $host_os in 17151 rhapsody* | darwin1.[012]) 17152 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17153 ;; 17154 *) # Darwin 1.3 on 17155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17156 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17157 else 17158 case ${MACOSX_DEPLOYMENT_TARGET} in 17159 10.[012]) 17160 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17161 ;; 17162 10.*) 17163 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17164 ;; 17165 esac 17166 fi 17167 ;; 17168 esac 17169 archive_cmds_need_lc_GCJ=no 17170 hardcode_direct_GCJ=no 17171 hardcode_automatic_GCJ=yes 17172 hardcode_shlibpath_var_GCJ=unsupported 17173 whole_archive_flag_spec_GCJ='' 17174 link_all_deplibs_GCJ=yes 17175 if test "$GCC" = yes ; then 17176 output_verbose_link_cmd='echo' 17177 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17178 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17180 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}' 17181 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}' 17182 else 17183 case $cc_basename in 17184 xlc*) 17185 output_verbose_link_cmd='echo' 17186 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17187 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17189 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17190 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}' 17191 ;; 17192 *) 17193 ld_shlibs_GCJ=no 17194 ;; 17195 esac 17196 fi 17197 ;; 17198 17199 dgux*) 17200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17201 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17202 hardcode_shlibpath_var_GCJ=no 17203 ;; 17204 17205 freebsd1*) 17206 ld_shlibs_GCJ=no 17207 ;; 17208 17209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17210 # support. Future versions do this automatically, but an explicit c++rt0.o 17211 # does not break anything, and helps significantly (at the cost of a little 17212 # extra space). 17213 freebsd2.2*) 17214 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17215 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17216 hardcode_direct_GCJ=yes 17217 hardcode_shlibpath_var_GCJ=no 17218 ;; 17219 17220 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17221 freebsd2*) 17222 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17223 hardcode_direct_GCJ=yes 17224 hardcode_minus_L_GCJ=yes 17225 hardcode_shlibpath_var_GCJ=no 17226 ;; 17227 17228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17229 freebsd* | dragonfly*) 17230 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17231 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17232 hardcode_direct_GCJ=yes 17233 hardcode_shlibpath_var_GCJ=no 17234 ;; 17235 17236 hpux9*) 17237 if test "$GCC" = yes; then 17238 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' 17239 else 17240 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' 17241 fi 17242 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17243 hardcode_libdir_separator_GCJ=: 17244 hardcode_direct_GCJ=yes 17245 17246 # hardcode_minus_L: Not really in the search PATH, 17247 # but as the default location of the library. 17248 hardcode_minus_L_GCJ=yes 17249 export_dynamic_flag_spec_GCJ='${wl}-E' 17250 ;; 17251 17252 hpux10*) 17253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17254 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17255 else 17256 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17257 fi 17258 if test "$with_gnu_ld" = no; then 17259 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17260 hardcode_libdir_separator_GCJ=: 17261 17262 hardcode_direct_GCJ=yes 17263 export_dynamic_flag_spec_GCJ='${wl}-E' 17264 17265 # hardcode_minus_L: Not really in the search PATH, 17266 # but as the default location of the library. 17267 hardcode_minus_L_GCJ=yes 17268 fi 17269 ;; 17270 17271 hpux11*) 17272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17273 case $host_cpu in 17274 hppa*64*) 17275 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17276 ;; 17277 ia64*) 17278 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17279 ;; 17280 *) 17281 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17282 ;; 17283 esac 17284 else 17285 case $host_cpu in 17286 hppa*64*) 17287 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17288 ;; 17289 ia64*) 17290 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17291 ;; 17292 *) 17293 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17294 ;; 17295 esac 17296 fi 17297 if test "$with_gnu_ld" = no; then 17298 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17299 hardcode_libdir_separator_GCJ=: 17300 17301 case $host_cpu in 17302 hppa*64*|ia64*) 17303 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17304 hardcode_direct_GCJ=no 17305 hardcode_shlibpath_var_GCJ=no 17306 ;; 17307 *) 17308 hardcode_direct_GCJ=yes 17309 export_dynamic_flag_spec_GCJ='${wl}-E' 17310 17311 # hardcode_minus_L: Not really in the search PATH, 17312 # but as the default location of the library. 17313 hardcode_minus_L_GCJ=yes 17314 ;; 17315 esac 17316 fi 17317 ;; 17318 17319 irix5* | irix6* | nonstopux*) 17320 if test "$GCC" = yes; then 17321 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' 17322 else 17323 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' 17324 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17325 fi 17326 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17327 hardcode_libdir_separator_GCJ=: 17328 link_all_deplibs_GCJ=yes 17329 ;; 17330 17331 netbsd* | netbsdelf*-gnu) 17332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17333 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17334 else 17335 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17336 fi 17337 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17338 hardcode_direct_GCJ=yes 17339 hardcode_shlibpath_var_GCJ=no 17340 ;; 17341 17342 newsos6) 17343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17344 hardcode_direct_GCJ=yes 17345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17346 hardcode_libdir_separator_GCJ=: 17347 hardcode_shlibpath_var_GCJ=no 17348 ;; 17349 17350 openbsd*) 17351 hardcode_direct_GCJ=yes 17352 hardcode_shlibpath_var_GCJ=no 17353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17354 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17355 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17357 export_dynamic_flag_spec_GCJ='${wl}-E' 17358 else 17359 case $host_os in 17360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17362 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17363 ;; 17364 *) 17365 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17367 ;; 17368 esac 17369 fi 17370 ;; 17371 17372 os2*) 17373 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17374 hardcode_minus_L_GCJ=yes 17375 allow_undefined_flag_GCJ=unsupported 17376 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' 17377 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17378 ;; 17379 17380 osf3*) 17381 if test "$GCC" = yes; then 17382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17383 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' 17384 else 17385 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17386 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' 17387 fi 17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17389 hardcode_libdir_separator_GCJ=: 17390 ;; 17391 17392 osf4* | osf5*) # as osf3* with the addition of -msym flag 17393 if test "$GCC" = yes; then 17394 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17395 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' 17396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17397 else 17398 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17399 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' 17400 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~ 17401 $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' 17402 17403 # Both c and cxx compiler support -rpath directly 17404 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17405 fi 17406 hardcode_libdir_separator_GCJ=: 17407 ;; 17408 17409 solaris*) 17410 no_undefined_flag_GCJ=' -z text' 17411 if test "$GCC" = yes; then 17412 wlarc='${wl}' 17413 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17416 else 17417 wlarc='' 17418 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17421 fi 17422 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17423 hardcode_shlibpath_var_GCJ=no 17424 case $host_os in 17425 solaris2.[0-5] | solaris2.[0-5].*) ;; 17426 *) 17427 # The compiler driver will combine linker options so we 17428 # cannot just pass the convience library names through 17429 # without $wl, iff we do not link with $LD. 17430 # Luckily, gcc supports the same syntax we need for Sun Studio. 17431 # Supported since Solaris 2.6 (maybe 2.5.1?) 17432 case $wlarc in 17433 '') 17434 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17435 *) 17436 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17437 esac ;; 17438 esac 17439 link_all_deplibs_GCJ=yes 17440 ;; 17441 17442 sunos4*) 17443 if test "x$host_vendor" = xsequent; then 17444 # Use $CC to link under sequent, because it throws in some extra .o 17445 # files that make .init and .fini sections work. 17446 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17447 else 17448 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17449 fi 17450 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17451 hardcode_direct_GCJ=yes 17452 hardcode_minus_L_GCJ=yes 17453 hardcode_shlibpath_var_GCJ=no 17454 ;; 17455 17456 sysv4) 17457 case $host_vendor in 17458 sni) 17459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17460 hardcode_direct_GCJ=yes # is this really true??? 17461 ;; 17462 siemens) 17463 ## LD is ld it makes a PLAMLIB 17464 ## CC just makes a GrossModule. 17465 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17466 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17467 hardcode_direct_GCJ=no 17468 ;; 17469 motorola) 17470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17471 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17472 ;; 17473 esac 17474 runpath_var='LD_RUN_PATH' 17475 hardcode_shlibpath_var_GCJ=no 17476 ;; 17477 17478 sysv4.3*) 17479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17480 hardcode_shlibpath_var_GCJ=no 17481 export_dynamic_flag_spec_GCJ='-Bexport' 17482 ;; 17483 17484 sysv4*MP*) 17485 if test -d /usr/nec; then 17486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17487 hardcode_shlibpath_var_GCJ=no 17488 runpath_var=LD_RUN_PATH 17489 hardcode_runpath_var=yes 17490 ld_shlibs_GCJ=yes 17491 fi 17492 ;; 17493 17494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17495 no_undefined_flag_GCJ='${wl}-z,text' 17496 archive_cmds_need_lc_GCJ=no 17497 hardcode_shlibpath_var_GCJ=no 17498 runpath_var='LD_RUN_PATH' 17499 17500 if test "$GCC" = yes; then 17501 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17502 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17503 else 17504 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17505 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17506 fi 17507 ;; 17508 17509 sysv5* | sco3.2v5* | sco5v6*) 17510 # Note: We can NOT use -z defs as we might desire, because we do not 17511 # link with -lc, and that would cause any symbols used from libc to 17512 # always be unresolved, which means just about no library would 17513 # ever link correctly. If we're not using GNU ld we use -z text 17514 # though, which does catch some bad symbols but isn't as heavy-handed 17515 # as -z defs. 17516 no_undefined_flag_GCJ='${wl}-z,text' 17517 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17518 archive_cmds_need_lc_GCJ=no 17519 hardcode_shlibpath_var_GCJ=no 17520 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17521 hardcode_libdir_separator_GCJ=':' 17522 link_all_deplibs_GCJ=yes 17523 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17524 runpath_var='LD_RUN_PATH' 17525 17526 if test "$GCC" = yes; then 17527 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17528 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17529 else 17530 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17531 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17532 fi 17533 ;; 17534 17535 uts4*) 17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17537 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17538 hardcode_shlibpath_var_GCJ=no 17539 ;; 17540 17541 *) 17542 ld_shlibs_GCJ=no 17543 ;; 17544 esac 17545 fi 17546 17547{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17548echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17549test "$ld_shlibs_GCJ" = no && can_build_shared=no 17550 17551# 17552# Do we need to explicitly link libc? 17553# 17554case "x$archive_cmds_need_lc_GCJ" in 17555x|xyes) 17556 # Assume -lc should be added 17557 archive_cmds_need_lc_GCJ=yes 17558 17559 if test "$enable_shared" = yes && test "$GCC" = yes; then 17560 case $archive_cmds_GCJ in 17561 *'~'*) 17562 # FIXME: we may have to deal with multi-command sequences. 17563 ;; 17564 '$CC '*) 17565 # Test whether the compiler implicitly links with -lc since on some 17566 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17567 # to ld, don't add -lc before -lgcc. 17568 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17570 $rm conftest* 17571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17572 17573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17574 (eval $ac_compile) 2>&5 17575 ac_status=$? 17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17577 (exit $ac_status); } 2>conftest.err; then 17578 soname=conftest 17579 lib=conftest 17580 libobjs=conftest.$ac_objext 17581 deplibs= 17582 wl=$lt_prog_compiler_wl_GCJ 17583 pic_flag=$lt_prog_compiler_pic_GCJ 17584 compiler_flags=-v 17585 linker_flags=-v 17586 verstring= 17587 output_objdir=. 17588 libname=conftest 17589 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17590 allow_undefined_flag_GCJ= 17591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17592 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17593 ac_status=$? 17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17595 (exit $ac_status); } 17596 then 17597 archive_cmds_need_lc_GCJ=no 17598 else 17599 archive_cmds_need_lc_GCJ=yes 17600 fi 17601 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17602 else 17603 cat conftest.err 1>&5 17604 fi 17605 $rm conftest* 17606 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17607echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17608 ;; 17609 esac 17610 fi 17611 ;; 17612esac 17613 17614{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17616library_names_spec= 17617libname_spec='lib$name' 17618soname_spec= 17619shrext_cmds=".so" 17620postinstall_cmds= 17621postuninstall_cmds= 17622finish_cmds= 17623finish_eval= 17624shlibpath_var= 17625shlibpath_overrides_runpath=unknown 17626version_type=none 17627dynamic_linker="$host_os ld.so" 17628sys_lib_dlsearch_path_spec="/lib /usr/lib" 17629if test "$GCC" = yes; then 17630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17632 # if the path contains ";" then we assume it to be the separator 17633 # otherwise default to the standard path separator (i.e. ":") - it is 17634 # assumed that no part of a normal pathname contains ";" but that should 17635 # okay in the real world where ";" in dirpaths is itself problematic. 17636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17637 else 17638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17639 fi 17640else 17641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17642fi 17643need_lib_prefix=unknown 17644hardcode_into_libs=no 17645 17646# when you set need_version to no, make sure it does not cause -set_version 17647# flags to be left without arguments 17648need_version=unknown 17649 17650case $host_os in 17651aix3*) 17652 version_type=linux 17653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17654 shlibpath_var=LIBPATH 17655 17656 # AIX 3 has no versioning support, so we append a major version to the name. 17657 soname_spec='${libname}${release}${shared_ext}$major' 17658 ;; 17659 17660aix4* | aix5*) 17661 version_type=linux 17662 need_lib_prefix=no 17663 need_version=no 17664 hardcode_into_libs=yes 17665 if test "$host_cpu" = ia64; then 17666 # AIX 5 supports IA64 17667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17668 shlibpath_var=LD_LIBRARY_PATH 17669 else 17670 # With GCC up to 2.95.x, collect2 would create an import file 17671 # for dependence libraries. The import file would start with 17672 # the line `#! .'. This would cause the generated library to 17673 # depend on `.', always an invalid library. This was fixed in 17674 # development snapshots of GCC prior to 3.0. 17675 case $host_os in 17676 aix4 | aix4.[01] | aix4.[01].*) 17677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17678 echo ' yes ' 17679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17680 : 17681 else 17682 can_build_shared=no 17683 fi 17684 ;; 17685 esac 17686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17687 # soname into executable. Probably we can add versioning support to 17688 # collect2, so additional links can be useful in future. 17689 if test "$aix_use_runtimelinking" = yes; then 17690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17691 # instead of lib<name>.a to let people know that these are not 17692 # typical AIX shared libraries. 17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17694 else 17695 # We preserve .a as extension for shared libraries through AIX4.2 17696 # and later when we are not doing run time linking. 17697 library_names_spec='${libname}${release}.a $libname.a' 17698 soname_spec='${libname}${release}${shared_ext}$major' 17699 fi 17700 shlibpath_var=LIBPATH 17701 fi 17702 ;; 17703 17704amigaos*) 17705 library_names_spec='$libname.ixlibrary $libname.a' 17706 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17707 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' 17708 ;; 17709 17710beos*) 17711 library_names_spec='${libname}${shared_ext}' 17712 dynamic_linker="$host_os ld.so" 17713 shlibpath_var=LIBRARY_PATH 17714 ;; 17715 17716bsdi[45]*) 17717 version_type=linux 17718 need_version=no 17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17720 soname_spec='${libname}${release}${shared_ext}$major' 17721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17722 shlibpath_var=LD_LIBRARY_PATH 17723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17725 # the default ld.so.conf also contains /usr/contrib/lib and 17726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17727 # libtool to hard-code these into programs 17728 ;; 17729 17730cygwin* | mingw* | pw32*) 17731 version_type=windows 17732 shrext_cmds=".dll" 17733 need_version=no 17734 need_lib_prefix=no 17735 17736 case $GCC,$host_os in 17737 yes,cygwin* | yes,mingw* | yes,pw32*) 17738 library_names_spec='$libname.dll.a' 17739 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17740 postinstall_cmds='base_file=`basename \${file}`~ 17741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17742 dldir=$destdir/`dirname \$dlpath`~ 17743 test -d \$dldir || mkdir -p \$dldir~ 17744 $install_prog $dir/$dlname \$dldir/$dlname~ 17745 chmod a+x \$dldir/$dlname' 17746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17747 dlpath=$dir/\$dldll~ 17748 $rm \$dlpath' 17749 shlibpath_overrides_runpath=yes 17750 17751 case $host_os in 17752 cygwin*) 17753 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17756 ;; 17757 mingw*) 17758 # MinGW DLLs use traditional 'lib' prefix 17759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17762 # It is most probably a Windows format PATH printed by 17763 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17764 # path with ; separators, and with drive letters. We can handle the 17765 # drive letters (cygwin fileutils understands them), so leave them, 17766 # especially as we might pass files found there to a mingw objdump, 17767 # which wouldn't understand a cygwinified path. Ahh. 17768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17769 else 17770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17771 fi 17772 ;; 17773 pw32*) 17774 # pw32 DLLs use 'pw' prefix rather than 'lib' 17775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17776 ;; 17777 esac 17778 ;; 17779 17780 *) 17781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17782 ;; 17783 esac 17784 dynamic_linker='Win32 ld.exe' 17785 # FIXME: first we should search . and the directory the executable is in 17786 shlibpath_var=PATH 17787 ;; 17788 17789darwin* | rhapsody*) 17790 dynamic_linker="$host_os dyld" 17791 version_type=darwin 17792 need_lib_prefix=no 17793 need_version=no 17794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17795 soname_spec='${libname}${release}${major}$shared_ext' 17796 shlibpath_overrides_runpath=yes 17797 shlibpath_var=DYLD_LIBRARY_PATH 17798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17800 if test "$GCC" = yes; then 17801 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17802 else 17803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17804 fi 17805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17806 ;; 17807 17808dgux*) 17809 version_type=linux 17810 need_lib_prefix=no 17811 need_version=no 17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17813 soname_spec='${libname}${release}${shared_ext}$major' 17814 shlibpath_var=LD_LIBRARY_PATH 17815 ;; 17816 17817freebsd1*) 17818 dynamic_linker=no 17819 ;; 17820 17821freebsd* | dragonfly*) 17822 # DragonFly does not have aout. When/if they implement a new 17823 # versioning mechanism, adjust this. 17824 if test -x /usr/bin/objformat; then 17825 objformat=`/usr/bin/objformat` 17826 else 17827 case $host_os in 17828 freebsd[123]*) objformat=aout ;; 17829 *) objformat=elf ;; 17830 esac 17831 fi 17832 version_type=freebsd-$objformat 17833 case $version_type in 17834 freebsd-elf*) 17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17836 need_version=no 17837 need_lib_prefix=no 17838 ;; 17839 freebsd-*) 17840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17841 need_version=yes 17842 ;; 17843 esac 17844 shlibpath_var=LD_LIBRARY_PATH 17845 case $host_os in 17846 freebsd2*) 17847 shlibpath_overrides_runpath=yes 17848 ;; 17849 freebsd3.[01]* | freebsdelf3.[01]*) 17850 shlibpath_overrides_runpath=yes 17851 hardcode_into_libs=yes 17852 ;; 17853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17855 shlibpath_overrides_runpath=no 17856 hardcode_into_libs=yes 17857 ;; 17858 freebsd*) # from 4.6 on 17859 shlibpath_overrides_runpath=yes 17860 hardcode_into_libs=yes 17861 ;; 17862 esac 17863 ;; 17864 17865gnu*) 17866 version_type=linux 17867 need_lib_prefix=no 17868 need_version=no 17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17870 soname_spec='${libname}${release}${shared_ext}$major' 17871 shlibpath_var=LD_LIBRARY_PATH 17872 hardcode_into_libs=yes 17873 ;; 17874 17875hpux9* | hpux10* | hpux11*) 17876 # Give a soname corresponding to the major version so that dld.sl refuses to 17877 # link against other versions. 17878 version_type=sunos 17879 need_lib_prefix=no 17880 need_version=no 17881 case $host_cpu in 17882 ia64*) 17883 shrext_cmds='.so' 17884 hardcode_into_libs=yes 17885 dynamic_linker="$host_os dld.so" 17886 shlibpath_var=LD_LIBRARY_PATH 17887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17889 soname_spec='${libname}${release}${shared_ext}$major' 17890 if test "X$HPUX_IA64_MODE" = X32; then 17891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17892 else 17893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17894 fi 17895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17896 ;; 17897 hppa*64*) 17898 shrext_cmds='.sl' 17899 hardcode_into_libs=yes 17900 dynamic_linker="$host_os dld.sl" 17901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17904 soname_spec='${libname}${release}${shared_ext}$major' 17905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17907 ;; 17908 *) 17909 shrext_cmds='.sl' 17910 dynamic_linker="$host_os dld.sl" 17911 shlibpath_var=SHLIB_PATH 17912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17914 soname_spec='${libname}${release}${shared_ext}$major' 17915 ;; 17916 esac 17917 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17918 postinstall_cmds='chmod 555 $lib' 17919 ;; 17920 17921interix3*) 17922 version_type=linux 17923 need_lib_prefix=no 17924 need_version=no 17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17926 soname_spec='${libname}${release}${shared_ext}$major' 17927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17928 shlibpath_var=LD_LIBRARY_PATH 17929 shlibpath_overrides_runpath=no 17930 hardcode_into_libs=yes 17931 ;; 17932 17933irix5* | irix6* | nonstopux*) 17934 case $host_os in 17935 nonstopux*) version_type=nonstopux ;; 17936 *) 17937 if test "$lt_cv_prog_gnu_ld" = yes; then 17938 version_type=linux 17939 else 17940 version_type=irix 17941 fi ;; 17942 esac 17943 need_lib_prefix=no 17944 need_version=no 17945 soname_spec='${libname}${release}${shared_ext}$major' 17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17947 case $host_os in 17948 irix5* | nonstopux*) 17949 libsuff= shlibsuff= 17950 ;; 17951 *) 17952 case $LD in # libtool.m4 will add one of these switches to LD 17953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17954 libsuff= shlibsuff= libmagic=32-bit;; 17955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17956 libsuff=32 shlibsuff=N32 libmagic=N32;; 17957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17958 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17959 *) libsuff= shlibsuff= libmagic=never-match;; 17960 esac 17961 ;; 17962 esac 17963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17964 shlibpath_overrides_runpath=no 17965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17967 hardcode_into_libs=yes 17968 ;; 17969 17970# No shared lib support for Linux oldld, aout, or coff. 17971linux*oldld* | linux*aout* | linux*coff*) 17972 dynamic_linker=no 17973 ;; 17974 17975# This must be Linux ELF. 17976linux* | k*bsd*-gnu) 17977 version_type=linux 17978 need_lib_prefix=no 17979 need_version=no 17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17981 soname_spec='${libname}${release}${shared_ext}$major' 17982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17983 shlibpath_var=LD_LIBRARY_PATH 17984 shlibpath_overrides_runpath=no 17985 # This implies no fast_install, which is unacceptable. 17986 # Some rework will be needed to allow for fast_install 17987 # before this can be enabled. 17988 hardcode_into_libs=yes 17989 17990 # Append ld.so.conf contents to the search path 17991 if test -f /etc/ld.so.conf; then 17992 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17994 fi 17995 17996 # We used to test for /lib/ld.so.1 and disable shared libraries on 17997 # powerpc, because MkLinux only supported shared libraries with the 17998 # GNU dynamic linker. Since this was broken with cross compilers, 17999 # most powerpc-linux boxes support dynamic linking these days and 18000 # people can always --disable-shared, the test was removed, and we 18001 # assume the GNU/Linux dynamic linker is in use. 18002 dynamic_linker='GNU/Linux ld.so' 18003 ;; 18004 18005netbsdelf*-gnu) 18006 version_type=linux 18007 need_lib_prefix=no 18008 need_version=no 18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18010 soname_spec='${libname}${release}${shared_ext}$major' 18011 shlibpath_var=LD_LIBRARY_PATH 18012 shlibpath_overrides_runpath=no 18013 hardcode_into_libs=yes 18014 dynamic_linker='NetBSD ld.elf_so' 18015 ;; 18016 18017netbsd*) 18018 version_type=sunos 18019 need_lib_prefix=no 18020 need_version=no 18021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18024 dynamic_linker='NetBSD (a.out) ld.so' 18025 else 18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18027 soname_spec='${libname}${release}${shared_ext}$major' 18028 dynamic_linker='NetBSD ld.elf_so' 18029 fi 18030 shlibpath_var=LD_LIBRARY_PATH 18031 shlibpath_overrides_runpath=yes 18032 hardcode_into_libs=yes 18033 ;; 18034 18035newsos6) 18036 version_type=linux 18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18038 shlibpath_var=LD_LIBRARY_PATH 18039 shlibpath_overrides_runpath=yes 18040 ;; 18041 18042nto-qnx*) 18043 version_type=linux 18044 need_lib_prefix=no 18045 need_version=no 18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18047 soname_spec='${libname}${release}${shared_ext}$major' 18048 shlibpath_var=LD_LIBRARY_PATH 18049 shlibpath_overrides_runpath=yes 18050 ;; 18051 18052openbsd*) 18053 version_type=sunos 18054 sys_lib_dlsearch_path_spec="/usr/lib" 18055 need_lib_prefix=no 18056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18057 case $host_os in 18058 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18059 *) need_version=no ;; 18060 esac 18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18063 shlibpath_var=LD_LIBRARY_PATH 18064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18065 case $host_os in 18066 openbsd2.[89] | openbsd2.[89].*) 18067 shlibpath_overrides_runpath=no 18068 ;; 18069 *) 18070 shlibpath_overrides_runpath=yes 18071 ;; 18072 esac 18073 else 18074 shlibpath_overrides_runpath=yes 18075 fi 18076 ;; 18077 18078os2*) 18079 libname_spec='$name' 18080 shrext_cmds=".dll" 18081 need_lib_prefix=no 18082 library_names_spec='$libname${shared_ext} $libname.a' 18083 dynamic_linker='OS/2 ld.exe' 18084 shlibpath_var=LIBPATH 18085 ;; 18086 18087osf3* | osf4* | osf5*) 18088 version_type=osf 18089 need_lib_prefix=no 18090 need_version=no 18091 soname_spec='${libname}${release}${shared_ext}$major' 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18093 shlibpath_var=LD_LIBRARY_PATH 18094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18096 ;; 18097 18098solaris*) 18099 version_type=linux 18100 need_lib_prefix=no 18101 need_version=no 18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18103 soname_spec='${libname}${release}${shared_ext}$major' 18104 shlibpath_var=LD_LIBRARY_PATH 18105 shlibpath_overrides_runpath=yes 18106 hardcode_into_libs=yes 18107 # ldd complains unless libraries are executable 18108 postinstall_cmds='chmod +x $lib' 18109 ;; 18110 18111sunos4*) 18112 version_type=sunos 18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18115 shlibpath_var=LD_LIBRARY_PATH 18116 shlibpath_overrides_runpath=yes 18117 if test "$with_gnu_ld" = yes; then 18118 need_lib_prefix=no 18119 fi 18120 need_version=yes 18121 ;; 18122 18123sysv4 | sysv4.3*) 18124 version_type=linux 18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18126 soname_spec='${libname}${release}${shared_ext}$major' 18127 shlibpath_var=LD_LIBRARY_PATH 18128 case $host_vendor in 18129 sni) 18130 shlibpath_overrides_runpath=no 18131 need_lib_prefix=no 18132 export_dynamic_flag_spec='${wl}-Blargedynsym' 18133 runpath_var=LD_RUN_PATH 18134 ;; 18135 siemens) 18136 need_lib_prefix=no 18137 ;; 18138 motorola) 18139 need_lib_prefix=no 18140 need_version=no 18141 shlibpath_overrides_runpath=no 18142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18143 ;; 18144 esac 18145 ;; 18146 18147sysv4*MP*) 18148 if test -d /usr/nec ;then 18149 version_type=linux 18150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18151 soname_spec='$libname${shared_ext}.$major' 18152 shlibpath_var=LD_LIBRARY_PATH 18153 fi 18154 ;; 18155 18156sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18157 version_type=freebsd-elf 18158 need_lib_prefix=no 18159 need_version=no 18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18161 soname_spec='${libname}${release}${shared_ext}$major' 18162 shlibpath_var=LD_LIBRARY_PATH 18163 hardcode_into_libs=yes 18164 if test "$with_gnu_ld" = yes; then 18165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18166 shlibpath_overrides_runpath=no 18167 else 18168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18169 shlibpath_overrides_runpath=yes 18170 case $host_os in 18171 sco3.2v5*) 18172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18173 ;; 18174 esac 18175 fi 18176 sys_lib_dlsearch_path_spec='/usr/lib' 18177 ;; 18178 18179uts4*) 18180 version_type=linux 18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18182 soname_spec='${libname}${release}${shared_ext}$major' 18183 shlibpath_var=LD_LIBRARY_PATH 18184 ;; 18185 18186*) 18187 dynamic_linker=no 18188 ;; 18189esac 18190{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18191echo "${ECHO_T}$dynamic_linker" >&6; } 18192test "$dynamic_linker" = no && can_build_shared=no 18193 18194variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18195if test "$GCC" = yes; then 18196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18197fi 18198 18199{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18200echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18201hardcode_action_GCJ= 18202if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18203 test -n "$runpath_var_GCJ" || \ 18204 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18205 18206 # We can hardcode non-existant directories. 18207 if test "$hardcode_direct_GCJ" != no && 18208 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18209 # have to relink, otherwise we might link with an installed library 18210 # when we should be linking with a yet-to-be-installed one 18211 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18212 test "$hardcode_minus_L_GCJ" != no; then 18213 # Linking always hardcodes the temporary library directory. 18214 hardcode_action_GCJ=relink 18215 else 18216 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18217 hardcode_action_GCJ=immediate 18218 fi 18219else 18220 # We cannot hardcode anything, or else we can only hardcode existing 18221 # directories. 18222 hardcode_action_GCJ=unsupported 18223fi 18224{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18225echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18226 18227if test "$hardcode_action_GCJ" = relink; then 18228 # Fast installation is not supported 18229 enable_fast_install=no 18230elif test "$shlibpath_overrides_runpath" = yes || 18231 test "$enable_shared" = no; then 18232 # Fast installation is not necessary 18233 enable_fast_install=needless 18234fi 18235 18236 18237# The else clause should only fire when bootstrapping the 18238# libtool distribution, otherwise you forgot to ship ltmain.sh 18239# with your package, and you will get complaints that there are 18240# no rules to generate ltmain.sh. 18241if test -f "$ltmain"; then 18242 # See if we are running on zsh, and set the options which allow our commands through 18243 # without removal of \ escapes. 18244 if test -n "${ZSH_VERSION+set}" ; then 18245 setopt NO_GLOB_SUBST 18246 fi 18247 # Now quote all the things that may contain metacharacters while being 18248 # careful not to overquote the AC_SUBSTed values. We take copies of the 18249 # variables and quote the copies for generation of the libtool script. 18250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18251 SED SHELL STRIP \ 18252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18254 deplibs_check_method reload_flag reload_cmds need_locks \ 18255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18256 lt_cv_sys_global_symbol_to_c_name_address \ 18257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18258 old_postinstall_cmds old_postuninstall_cmds \ 18259 compiler_GCJ \ 18260 CC_GCJ \ 18261 LD_GCJ \ 18262 lt_prog_compiler_wl_GCJ \ 18263 lt_prog_compiler_pic_GCJ \ 18264 lt_prog_compiler_static_GCJ \ 18265 lt_prog_compiler_no_builtin_flag_GCJ \ 18266 export_dynamic_flag_spec_GCJ \ 18267 thread_safe_flag_spec_GCJ \ 18268 whole_archive_flag_spec_GCJ \ 18269 enable_shared_with_static_runtimes_GCJ \ 18270 old_archive_cmds_GCJ \ 18271 old_archive_from_new_cmds_GCJ \ 18272 predep_objects_GCJ \ 18273 postdep_objects_GCJ \ 18274 predeps_GCJ \ 18275 postdeps_GCJ \ 18276 compiler_lib_search_path_GCJ \ 18277 archive_cmds_GCJ \ 18278 archive_expsym_cmds_GCJ \ 18279 postinstall_cmds_GCJ \ 18280 postuninstall_cmds_GCJ \ 18281 old_archive_from_expsyms_cmds_GCJ \ 18282 allow_undefined_flag_GCJ \ 18283 no_undefined_flag_GCJ \ 18284 export_symbols_cmds_GCJ \ 18285 hardcode_libdir_flag_spec_GCJ \ 18286 hardcode_libdir_flag_spec_ld_GCJ \ 18287 hardcode_libdir_separator_GCJ \ 18288 hardcode_automatic_GCJ \ 18289 module_cmds_GCJ \ 18290 module_expsym_cmds_GCJ \ 18291 lt_cv_prog_compiler_c_o_GCJ \ 18292 exclude_expsyms_GCJ \ 18293 include_expsyms_GCJ; do 18294 18295 case $var in 18296 old_archive_cmds_GCJ | \ 18297 old_archive_from_new_cmds_GCJ | \ 18298 archive_cmds_GCJ | \ 18299 archive_expsym_cmds_GCJ | \ 18300 module_cmds_GCJ | \ 18301 module_expsym_cmds_GCJ | \ 18302 old_archive_from_expsyms_cmds_GCJ | \ 18303 export_symbols_cmds_GCJ | \ 18304 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18305 postinstall_cmds | postuninstall_cmds | \ 18306 old_postinstall_cmds | old_postuninstall_cmds | \ 18307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18308 # Double-quote double-evaled strings. 18309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18310 ;; 18311 *) 18312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18313 ;; 18314 esac 18315 done 18316 18317 case $lt_echo in 18318 *'\$0 --fallback-echo"') 18319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18320 ;; 18321 esac 18322 18323cfgfile="$ofile" 18324 18325 cat <<__EOF__ >> "$cfgfile" 18326# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18327 18328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18329 18330# Shell to use when invoking shell scripts. 18331SHELL=$lt_SHELL 18332 18333# Whether or not to build shared libraries. 18334build_libtool_libs=$enable_shared 18335 18336# Whether or not to build static libraries. 18337build_old_libs=$enable_static 18338 18339# Whether or not to add -lc for building shared libraries. 18340build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18341 18342# Whether or not to disallow shared libs when runtime libs are static 18343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18344 18345# Whether or not to optimize for fast installation. 18346fast_install=$enable_fast_install 18347 18348# The host system. 18349host_alias=$host_alias 18350host=$host 18351host_os=$host_os 18352 18353# The build system. 18354build_alias=$build_alias 18355build=$build 18356build_os=$build_os 18357 18358# An echo program that does not interpret backslashes. 18359echo=$lt_echo 18360 18361# The archiver. 18362AR=$lt_AR 18363AR_FLAGS=$lt_AR_FLAGS 18364 18365# A C compiler. 18366LTCC=$lt_LTCC 18367 18368# LTCC compiler flags. 18369LTCFLAGS=$lt_LTCFLAGS 18370 18371# A language-specific compiler. 18372CC=$lt_compiler_GCJ 18373 18374# Is the compiler the GNU C compiler? 18375with_gcc=$GCC_GCJ 18376 18377# An ERE matcher. 18378EGREP=$lt_EGREP 18379 18380# The linker used to build libraries. 18381LD=$lt_LD_GCJ 18382 18383# Whether we need hard or soft links. 18384LN_S=$lt_LN_S 18385 18386# A BSD-compatible nm program. 18387NM=$lt_NM 18388 18389# A symbol stripping program 18390STRIP=$lt_STRIP 18391 18392# Used to examine libraries when file_magic_cmd begins "file" 18393MAGIC_CMD=$MAGIC_CMD 18394 18395# Used on cygwin: DLL creation program. 18396DLLTOOL="$DLLTOOL" 18397 18398# Used on cygwin: object dumper. 18399OBJDUMP="$OBJDUMP" 18400 18401# Used on cygwin: assembler. 18402AS="$AS" 18403 18404# The name of the directory that contains temporary libtool files. 18405objdir=$objdir 18406 18407# How to create reloadable object files. 18408reload_flag=$lt_reload_flag 18409reload_cmds=$lt_reload_cmds 18410 18411# How to pass a linker flag through the compiler. 18412wl=$lt_lt_prog_compiler_wl_GCJ 18413 18414# Object file suffix (normally "o"). 18415objext="$ac_objext" 18416 18417# Old archive suffix (normally "a"). 18418libext="$libext" 18419 18420# Shared library suffix (normally ".so"). 18421shrext_cmds='$shrext_cmds' 18422 18423# Executable file suffix (normally ""). 18424exeext="$exeext" 18425 18426# Additional compiler flags for building library objects. 18427pic_flag=$lt_lt_prog_compiler_pic_GCJ 18428pic_mode=$pic_mode 18429 18430# What is the maximum length of a command? 18431max_cmd_len=$lt_cv_sys_max_cmd_len 18432 18433# Does compiler simultaneously support -c and -o options? 18434compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18435 18436# Must we lock files when doing compilation? 18437need_locks=$lt_need_locks 18438 18439# Do we need the lib prefix for modules? 18440need_lib_prefix=$need_lib_prefix 18441 18442# Do we need a version for libraries? 18443need_version=$need_version 18444 18445# Whether dlopen is supported. 18446dlopen_support=$enable_dlopen 18447 18448# Whether dlopen of programs is supported. 18449dlopen_self=$enable_dlopen_self 18450 18451# Whether dlopen of statically linked programs is supported. 18452dlopen_self_static=$enable_dlopen_self_static 18453 18454# Compiler flag to prevent dynamic linking. 18455link_static_flag=$lt_lt_prog_compiler_static_GCJ 18456 18457# Compiler flag to turn off builtin functions. 18458no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18459 18460# Compiler flag to allow reflexive dlopens. 18461export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18462 18463# Compiler flag to generate shared objects directly from archives. 18464whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18465 18466# Compiler flag to generate thread-safe objects. 18467thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18468 18469# Library versioning type. 18470version_type=$version_type 18471 18472# Format of library name prefix. 18473libname_spec=$lt_libname_spec 18474 18475# List of archive names. First name is the real one, the rest are links. 18476# The last name is the one that the linker finds with -lNAME. 18477library_names_spec=$lt_library_names_spec 18478 18479# The coded name of the library, if different from the real name. 18480soname_spec=$lt_soname_spec 18481 18482# Commands used to build and install an old-style archive. 18483RANLIB=$lt_RANLIB 18484old_archive_cmds=$lt_old_archive_cmds_GCJ 18485old_postinstall_cmds=$lt_old_postinstall_cmds 18486old_postuninstall_cmds=$lt_old_postuninstall_cmds 18487 18488# Create an old-style archive from a shared archive. 18489old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18490 18491# Create a temporary old-style archive to link instead of a shared archive. 18492old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18493 18494# Commands used to build and install a shared archive. 18495archive_cmds=$lt_archive_cmds_GCJ 18496archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18497postinstall_cmds=$lt_postinstall_cmds 18498postuninstall_cmds=$lt_postuninstall_cmds 18499 18500# Commands used to build a loadable module (assumed same as above if empty) 18501module_cmds=$lt_module_cmds_GCJ 18502module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18503 18504# Commands to strip libraries. 18505old_striplib=$lt_old_striplib 18506striplib=$lt_striplib 18507 18508# Dependencies to place before the objects being linked to create a 18509# shared library. 18510predep_objects=$lt_predep_objects_GCJ 18511 18512# Dependencies to place after the objects being linked to create a 18513# shared library. 18514postdep_objects=$lt_postdep_objects_GCJ 18515 18516# Dependencies to place before the objects being linked to create a 18517# shared library. 18518predeps=$lt_predeps_GCJ 18519 18520# Dependencies to place after the objects being linked to create a 18521# shared library. 18522postdeps=$lt_postdeps_GCJ 18523 18524# The library search path used internally by the compiler when linking 18525# a shared library. 18526compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18527 18528# Method to check whether dependent libraries are shared objects. 18529deplibs_check_method=$lt_deplibs_check_method 18530 18531# Command to use when deplibs_check_method == file_magic. 18532file_magic_cmd=$lt_file_magic_cmd 18533 18534# Flag that allows shared libraries with undefined symbols to be built. 18535allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18536 18537# Flag that forces no undefined symbols. 18538no_undefined_flag=$lt_no_undefined_flag_GCJ 18539 18540# Commands used to finish a libtool library installation in a directory. 18541finish_cmds=$lt_finish_cmds 18542 18543# Same as above, but a single script fragment to be evaled but not shown. 18544finish_eval=$lt_finish_eval 18545 18546# Take the output of nm and produce a listing of raw symbols and C names. 18547global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18548 18549# Transform the output of nm in a proper C declaration 18550global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18551 18552# Transform the output of nm in a C name address pair 18553global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18554 18555# This is the shared library runtime path variable. 18556runpath_var=$runpath_var 18557 18558# This is the shared library path variable. 18559shlibpath_var=$shlibpath_var 18560 18561# Is shlibpath searched before the hard-coded library search path? 18562shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18563 18564# How to hardcode a shared library path into an executable. 18565hardcode_action=$hardcode_action_GCJ 18566 18567# Whether we should hardcode library paths into libraries. 18568hardcode_into_libs=$hardcode_into_libs 18569 18570# Flag to hardcode \$libdir into a binary during linking. 18571# This must work even if \$libdir does not exist. 18572hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18573 18574# If ld is used when linking, flag to hardcode \$libdir into 18575# a binary during linking. This must work even if \$libdir does 18576# not exist. 18577hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18578 18579# Whether we need a single -rpath flag with a separated argument. 18580hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18581 18582# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18583# resulting binary. 18584hardcode_direct=$hardcode_direct_GCJ 18585 18586# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18587# resulting binary. 18588hardcode_minus_L=$hardcode_minus_L_GCJ 18589 18590# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18591# the resulting binary. 18592hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18593 18594# Set to yes if building a shared library automatically hardcodes DIR into the library 18595# and all subsequent libraries and executables linked against it. 18596hardcode_automatic=$hardcode_automatic_GCJ 18597 18598# Variables whose values should be saved in libtool wrapper scripts and 18599# restored at relink time. 18600variables_saved_for_relink="$variables_saved_for_relink" 18601 18602# Whether libtool must link a program against all its dependency libraries. 18603link_all_deplibs=$link_all_deplibs_GCJ 18604 18605# Compile-time system search path for libraries 18606sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18607 18608# Run-time system search path for libraries 18609sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18610 18611# Fix the shell variable \$srcfile for the compiler. 18612fix_srcfile_path="$fix_srcfile_path_GCJ" 18613 18614# Set to yes if exported symbols are required. 18615always_export_symbols=$always_export_symbols_GCJ 18616 18617# The commands to list exported symbols. 18618export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18619 18620# The commands to extract the exported symbol list from a shared archive. 18621extract_expsyms_cmds=$lt_extract_expsyms_cmds 18622 18623# Symbols that should not be listed in the preloaded symbols. 18624exclude_expsyms=$lt_exclude_expsyms_GCJ 18625 18626# Symbols that must always be exported. 18627include_expsyms=$lt_include_expsyms_GCJ 18628 18629# ### END LIBTOOL TAG CONFIG: $tagname 18630 18631__EOF__ 18632 18633 18634else 18635 # If there is no Makefile yet, we rely on a make rule to execute 18636 # `config.status --recheck' to rerun these tests and create the 18637 # libtool script then. 18638 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18639 if test -f "$ltmain_in"; then 18640 test -f Makefile && make "$ltmain" 18641 fi 18642fi 18643 18644 18645ac_ext=c 18646ac_cpp='$CPP $CPPFLAGS' 18647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18649ac_compiler_gnu=$ac_cv_c_compiler_gnu 18650 18651CC="$lt_save_CC" 18652 18653 else 18654 tagname="" 18655 fi 18656 ;; 18657 18658 RC) 18659 18660 18661# Source file extension for RC test sources. 18662ac_ext=rc 18663 18664# Object file extension for compiled RC test sources. 18665objext=o 18666objext_RC=$objext 18667 18668# Code to be used in simple compile tests 18669lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18670 18671# Code to be used in simple link tests 18672lt_simple_link_test_code="$lt_simple_compile_test_code" 18673 18674# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18675 18676# If no C compiler was specified, use CC. 18677LTCC=${LTCC-"$CC"} 18678 18679# If no C compiler flags were specified, use CFLAGS. 18680LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18681 18682# Allow CC to be a program name with arguments. 18683compiler=$CC 18684 18685 18686# save warnings/boilerplate of simple test code 18687ac_outfile=conftest.$ac_objext 18688printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18689eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18690_lt_compiler_boilerplate=`cat conftest.err` 18691$rm conftest* 18692 18693ac_outfile=conftest.$ac_objext 18694printf "$lt_simple_link_test_code" >conftest.$ac_ext 18695eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18696_lt_linker_boilerplate=`cat conftest.err` 18697$rm conftest* 18698 18699 18700# Allow CC to be a program name with arguments. 18701lt_save_CC="$CC" 18702CC=${RC-"windres"} 18703compiler=$CC 18704compiler_RC=$CC 18705for cc_temp in $compiler""; do 18706 case $cc_temp in 18707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18709 \-*) ;; 18710 *) break;; 18711 esac 18712done 18713cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18714 18715lt_cv_prog_compiler_c_o_RC=yes 18716 18717# The else clause should only fire when bootstrapping the 18718# libtool distribution, otherwise you forgot to ship ltmain.sh 18719# with your package, and you will get complaints that there are 18720# no rules to generate ltmain.sh. 18721if test -f "$ltmain"; then 18722 # See if we are running on zsh, and set the options which allow our commands through 18723 # without removal of \ escapes. 18724 if test -n "${ZSH_VERSION+set}" ; then 18725 setopt NO_GLOB_SUBST 18726 fi 18727 # Now quote all the things that may contain metacharacters while being 18728 # careful not to overquote the AC_SUBSTed values. We take copies of the 18729 # variables and quote the copies for generation of the libtool script. 18730 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18731 SED SHELL STRIP \ 18732 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18733 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18734 deplibs_check_method reload_flag reload_cmds need_locks \ 18735 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18736 lt_cv_sys_global_symbol_to_c_name_address \ 18737 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18738 old_postinstall_cmds old_postuninstall_cmds \ 18739 compiler_RC \ 18740 CC_RC \ 18741 LD_RC \ 18742 lt_prog_compiler_wl_RC \ 18743 lt_prog_compiler_pic_RC \ 18744 lt_prog_compiler_static_RC \ 18745 lt_prog_compiler_no_builtin_flag_RC \ 18746 export_dynamic_flag_spec_RC \ 18747 thread_safe_flag_spec_RC \ 18748 whole_archive_flag_spec_RC \ 18749 enable_shared_with_static_runtimes_RC \ 18750 old_archive_cmds_RC \ 18751 old_archive_from_new_cmds_RC \ 18752 predep_objects_RC \ 18753 postdep_objects_RC \ 18754 predeps_RC \ 18755 postdeps_RC \ 18756 compiler_lib_search_path_RC \ 18757 archive_cmds_RC \ 18758 archive_expsym_cmds_RC \ 18759 postinstall_cmds_RC \ 18760 postuninstall_cmds_RC \ 18761 old_archive_from_expsyms_cmds_RC \ 18762 allow_undefined_flag_RC \ 18763 no_undefined_flag_RC \ 18764 export_symbols_cmds_RC \ 18765 hardcode_libdir_flag_spec_RC \ 18766 hardcode_libdir_flag_spec_ld_RC \ 18767 hardcode_libdir_separator_RC \ 18768 hardcode_automatic_RC \ 18769 module_cmds_RC \ 18770 module_expsym_cmds_RC \ 18771 lt_cv_prog_compiler_c_o_RC \ 18772 exclude_expsyms_RC \ 18773 include_expsyms_RC; do 18774 18775 case $var in 18776 old_archive_cmds_RC | \ 18777 old_archive_from_new_cmds_RC | \ 18778 archive_cmds_RC | \ 18779 archive_expsym_cmds_RC | \ 18780 module_cmds_RC | \ 18781 module_expsym_cmds_RC | \ 18782 old_archive_from_expsyms_cmds_RC | \ 18783 export_symbols_cmds_RC | \ 18784 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18785 postinstall_cmds | postuninstall_cmds | \ 18786 old_postinstall_cmds | old_postuninstall_cmds | \ 18787 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18788 # Double-quote double-evaled strings. 18789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18790 ;; 18791 *) 18792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18793 ;; 18794 esac 18795 done 18796 18797 case $lt_echo in 18798 *'\$0 --fallback-echo"') 18799 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18800 ;; 18801 esac 18802 18803cfgfile="$ofile" 18804 18805 cat <<__EOF__ >> "$cfgfile" 18806# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18807 18808# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18809 18810# Shell to use when invoking shell scripts. 18811SHELL=$lt_SHELL 18812 18813# Whether or not to build shared libraries. 18814build_libtool_libs=$enable_shared 18815 18816# Whether or not to build static libraries. 18817build_old_libs=$enable_static 18818 18819# Whether or not to add -lc for building shared libraries. 18820build_libtool_need_lc=$archive_cmds_need_lc_RC 18821 18822# Whether or not to disallow shared libs when runtime libs are static 18823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18824 18825# Whether or not to optimize for fast installation. 18826fast_install=$enable_fast_install 18827 18828# The host system. 18829host_alias=$host_alias 18830host=$host 18831host_os=$host_os 18832 18833# The build system. 18834build_alias=$build_alias 18835build=$build 18836build_os=$build_os 18837 18838# An echo program that does not interpret backslashes. 18839echo=$lt_echo 18840 18841# The archiver. 18842AR=$lt_AR 18843AR_FLAGS=$lt_AR_FLAGS 18844 18845# A C compiler. 18846LTCC=$lt_LTCC 18847 18848# LTCC compiler flags. 18849LTCFLAGS=$lt_LTCFLAGS 18850 18851# A language-specific compiler. 18852CC=$lt_compiler_RC 18853 18854# Is the compiler the GNU C compiler? 18855with_gcc=$GCC_RC 18856 18857# An ERE matcher. 18858EGREP=$lt_EGREP 18859 18860# The linker used to build libraries. 18861LD=$lt_LD_RC 18862 18863# Whether we need hard or soft links. 18864LN_S=$lt_LN_S 18865 18866# A BSD-compatible nm program. 18867NM=$lt_NM 18868 18869# A symbol stripping program 18870STRIP=$lt_STRIP 18871 18872# Used to examine libraries when file_magic_cmd begins "file" 18873MAGIC_CMD=$MAGIC_CMD 18874 18875# Used on cygwin: DLL creation program. 18876DLLTOOL="$DLLTOOL" 18877 18878# Used on cygwin: object dumper. 18879OBJDUMP="$OBJDUMP" 18880 18881# Used on cygwin: assembler. 18882AS="$AS" 18883 18884# The name of the directory that contains temporary libtool files. 18885objdir=$objdir 18886 18887# How to create reloadable object files. 18888reload_flag=$lt_reload_flag 18889reload_cmds=$lt_reload_cmds 18890 18891# How to pass a linker flag through the compiler. 18892wl=$lt_lt_prog_compiler_wl_RC 18893 18894# Object file suffix (normally "o"). 18895objext="$ac_objext" 18896 18897# Old archive suffix (normally "a"). 18898libext="$libext" 18899 18900# Shared library suffix (normally ".so"). 18901shrext_cmds='$shrext_cmds' 18902 18903# Executable file suffix (normally ""). 18904exeext="$exeext" 18905 18906# Additional compiler flags for building library objects. 18907pic_flag=$lt_lt_prog_compiler_pic_RC 18908pic_mode=$pic_mode 18909 18910# What is the maximum length of a command? 18911max_cmd_len=$lt_cv_sys_max_cmd_len 18912 18913# Does compiler simultaneously support -c and -o options? 18914compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18915 18916# Must we lock files when doing compilation? 18917need_locks=$lt_need_locks 18918 18919# Do we need the lib prefix for modules? 18920need_lib_prefix=$need_lib_prefix 18921 18922# Do we need a version for libraries? 18923need_version=$need_version 18924 18925# Whether dlopen is supported. 18926dlopen_support=$enable_dlopen 18927 18928# Whether dlopen of programs is supported. 18929dlopen_self=$enable_dlopen_self 18930 18931# Whether dlopen of statically linked programs is supported. 18932dlopen_self_static=$enable_dlopen_self_static 18933 18934# Compiler flag to prevent dynamic linking. 18935link_static_flag=$lt_lt_prog_compiler_static_RC 18936 18937# Compiler flag to turn off builtin functions. 18938no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18939 18940# Compiler flag to allow reflexive dlopens. 18941export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18942 18943# Compiler flag to generate shared objects directly from archives. 18944whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18945 18946# Compiler flag to generate thread-safe objects. 18947thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18948 18949# Library versioning type. 18950version_type=$version_type 18951 18952# Format of library name prefix. 18953libname_spec=$lt_libname_spec 18954 18955# List of archive names. First name is the real one, the rest are links. 18956# The last name is the one that the linker finds with -lNAME. 18957library_names_spec=$lt_library_names_spec 18958 18959# The coded name of the library, if different from the real name. 18960soname_spec=$lt_soname_spec 18961 18962# Commands used to build and install an old-style archive. 18963RANLIB=$lt_RANLIB 18964old_archive_cmds=$lt_old_archive_cmds_RC 18965old_postinstall_cmds=$lt_old_postinstall_cmds 18966old_postuninstall_cmds=$lt_old_postuninstall_cmds 18967 18968# Create an old-style archive from a shared archive. 18969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18970 18971# Create a temporary old-style archive to link instead of a shared archive. 18972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18973 18974# Commands used to build and install a shared archive. 18975archive_cmds=$lt_archive_cmds_RC 18976archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18977postinstall_cmds=$lt_postinstall_cmds 18978postuninstall_cmds=$lt_postuninstall_cmds 18979 18980# Commands used to build a loadable module (assumed same as above if empty) 18981module_cmds=$lt_module_cmds_RC 18982module_expsym_cmds=$lt_module_expsym_cmds_RC 18983 18984# Commands to strip libraries. 18985old_striplib=$lt_old_striplib 18986striplib=$lt_striplib 18987 18988# Dependencies to place before the objects being linked to create a 18989# shared library. 18990predep_objects=$lt_predep_objects_RC 18991 18992# Dependencies to place after the objects being linked to create a 18993# shared library. 18994postdep_objects=$lt_postdep_objects_RC 18995 18996# Dependencies to place before the objects being linked to create a 18997# shared library. 18998predeps=$lt_predeps_RC 18999 19000# Dependencies to place after the objects being linked to create a 19001# shared library. 19002postdeps=$lt_postdeps_RC 19003 19004# The library search path used internally by the compiler when linking 19005# a shared library. 19006compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19007 19008# Method to check whether dependent libraries are shared objects. 19009deplibs_check_method=$lt_deplibs_check_method 19010 19011# Command to use when deplibs_check_method == file_magic. 19012file_magic_cmd=$lt_file_magic_cmd 19013 19014# Flag that allows shared libraries with undefined symbols to be built. 19015allow_undefined_flag=$lt_allow_undefined_flag_RC 19016 19017# Flag that forces no undefined symbols. 19018no_undefined_flag=$lt_no_undefined_flag_RC 19019 19020# Commands used to finish a libtool library installation in a directory. 19021finish_cmds=$lt_finish_cmds 19022 19023# Same as above, but a single script fragment to be evaled but not shown. 19024finish_eval=$lt_finish_eval 19025 19026# Take the output of nm and produce a listing of raw symbols and C names. 19027global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19028 19029# Transform the output of nm in a proper C declaration 19030global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19031 19032# Transform the output of nm in a C name address pair 19033global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19034 19035# This is the shared library runtime path variable. 19036runpath_var=$runpath_var 19037 19038# This is the shared library path variable. 19039shlibpath_var=$shlibpath_var 19040 19041# Is shlibpath searched before the hard-coded library search path? 19042shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19043 19044# How to hardcode a shared library path into an executable. 19045hardcode_action=$hardcode_action_RC 19046 19047# Whether we should hardcode library paths into libraries. 19048hardcode_into_libs=$hardcode_into_libs 19049 19050# Flag to hardcode \$libdir into a binary during linking. 19051# This must work even if \$libdir does not exist. 19052hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19053 19054# If ld is used when linking, flag to hardcode \$libdir into 19055# a binary during linking. This must work even if \$libdir does 19056# not exist. 19057hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19058 19059# Whether we need a single -rpath flag with a separated argument. 19060hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19061 19062# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19063# resulting binary. 19064hardcode_direct=$hardcode_direct_RC 19065 19066# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19067# resulting binary. 19068hardcode_minus_L=$hardcode_minus_L_RC 19069 19070# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19071# the resulting binary. 19072hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19073 19074# Set to yes if building a shared library automatically hardcodes DIR into the library 19075# and all subsequent libraries and executables linked against it. 19076hardcode_automatic=$hardcode_automatic_RC 19077 19078# Variables whose values should be saved in libtool wrapper scripts and 19079# restored at relink time. 19080variables_saved_for_relink="$variables_saved_for_relink" 19081 19082# Whether libtool must link a program against all its dependency libraries. 19083link_all_deplibs=$link_all_deplibs_RC 19084 19085# Compile-time system search path for libraries 19086sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19087 19088# Run-time system search path for libraries 19089sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19090 19091# Fix the shell variable \$srcfile for the compiler. 19092fix_srcfile_path="$fix_srcfile_path_RC" 19093 19094# Set to yes if exported symbols are required. 19095always_export_symbols=$always_export_symbols_RC 19096 19097# The commands to list exported symbols. 19098export_symbols_cmds=$lt_export_symbols_cmds_RC 19099 19100# The commands to extract the exported symbol list from a shared archive. 19101extract_expsyms_cmds=$lt_extract_expsyms_cmds 19102 19103# Symbols that should not be listed in the preloaded symbols. 19104exclude_expsyms=$lt_exclude_expsyms_RC 19105 19106# Symbols that must always be exported. 19107include_expsyms=$lt_include_expsyms_RC 19108 19109# ### END LIBTOOL TAG CONFIG: $tagname 19110 19111__EOF__ 19112 19113 19114else 19115 # If there is no Makefile yet, we rely on a make rule to execute 19116 # `config.status --recheck' to rerun these tests and create the 19117 # libtool script then. 19118 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19119 if test -f "$ltmain_in"; then 19120 test -f Makefile && make "$ltmain" 19121 fi 19122fi 19123 19124 19125ac_ext=c 19126ac_cpp='$CPP $CPPFLAGS' 19127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19129ac_compiler_gnu=$ac_cv_c_compiler_gnu 19130 19131CC="$lt_save_CC" 19132 19133 ;; 19134 19135 *) 19136 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19137echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19138 { (exit 1); exit 1; }; } 19139 ;; 19140 esac 19141 19142 # Append the new tag name to the list of available tags. 19143 if test -n "$tagname" ; then 19144 available_tags="$available_tags $tagname" 19145 fi 19146 fi 19147 done 19148 IFS="$lt_save_ifs" 19149 19150 # Now substitute the updated list of available tags. 19151 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19152 mv "${ofile}T" "$ofile" 19153 chmod +x "$ofile" 19154 else 19155 rm -f "${ofile}T" 19156 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19157echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19158 { (exit 1); exit 1; }; } 19159 fi 19160fi 19161 19162 19163 19164# This can be used to rebuild libtool when needed 19165LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19166 19167# Always use our own libtool. 19168LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19169 19170# Prevent multiple expansion 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192LT_VERSION_INFO="1:0:1" 19193LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"' 19194 19195 19196 19197 19198 19199# config.h 19200ac_config_headers="$ac_config_headers src/config.h" 19201 19202 19203# Checks for programs. 19204ac_ext=c 19205ac_cpp='$CPP $CPPFLAGS' 19206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19208ac_compiler_gnu=$ac_cv_c_compiler_gnu 19209if test -n "$ac_tool_prefix"; then 19210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19211set dummy ${ac_tool_prefix}gcc; ac_word=$2 19212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19214if test "${ac_cv_prog_CC+set}" = set; then 19215 echo $ECHO_N "(cached) $ECHO_C" >&6 19216else 19217 if test -n "$CC"; then 19218 ac_cv_prog_CC="$CC" # Let the user override the test. 19219else 19220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19221for as_dir in $PATH 19222do 19223 IFS=$as_save_IFS 19224 test -z "$as_dir" && as_dir=. 19225 for ac_exec_ext in '' $ac_executable_extensions; do 19226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19227 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19229 break 2 19230 fi 19231done 19232done 19233IFS=$as_save_IFS 19234 19235fi 19236fi 19237CC=$ac_cv_prog_CC 19238if test -n "$CC"; then 19239 { echo "$as_me:$LINENO: result: $CC" >&5 19240echo "${ECHO_T}$CC" >&6; } 19241else 19242 { echo "$as_me:$LINENO: result: no" >&5 19243echo "${ECHO_T}no" >&6; } 19244fi 19245 19246 19247fi 19248if test -z "$ac_cv_prog_CC"; then 19249 ac_ct_CC=$CC 19250 # Extract the first word of "gcc", so it can be a program name with args. 19251set dummy gcc; ac_word=$2 19252{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19255 echo $ECHO_N "(cached) $ECHO_C" >&6 19256else 19257 if test -n "$ac_ct_CC"; then 19258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19259else 19260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19261for as_dir in $PATH 19262do 19263 IFS=$as_save_IFS 19264 test -z "$as_dir" && as_dir=. 19265 for ac_exec_ext in '' $ac_executable_extensions; do 19266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19267 ac_cv_prog_ac_ct_CC="gcc" 19268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19269 break 2 19270 fi 19271done 19272done 19273IFS=$as_save_IFS 19274 19275fi 19276fi 19277ac_ct_CC=$ac_cv_prog_ac_ct_CC 19278if test -n "$ac_ct_CC"; then 19279 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19280echo "${ECHO_T}$ac_ct_CC" >&6; } 19281else 19282 { echo "$as_me:$LINENO: result: no" >&5 19283echo "${ECHO_T}no" >&6; } 19284fi 19285 19286 if test "x$ac_ct_CC" = x; then 19287 CC="" 19288 else 19289 case $cross_compiling:$ac_tool_warned in 19290yes:) 19291{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19292whose name does not start with the host triplet. If you think this 19293configuration is useful to you, please write to autoconf@gnu.org." >&5 19294echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19295whose name does not start with the host triplet. If you think this 19296configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19297ac_tool_warned=yes ;; 19298esac 19299 CC=$ac_ct_CC 19300 fi 19301else 19302 CC="$ac_cv_prog_CC" 19303fi 19304 19305if test -z "$CC"; then 19306 if test -n "$ac_tool_prefix"; then 19307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19308set dummy ${ac_tool_prefix}cc; ac_word=$2 19309{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19311if test "${ac_cv_prog_CC+set}" = set; then 19312 echo $ECHO_N "(cached) $ECHO_C" >&6 19313else 19314 if test -n "$CC"; then 19315 ac_cv_prog_CC="$CC" # Let the user override the test. 19316else 19317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19318for as_dir in $PATH 19319do 19320 IFS=$as_save_IFS 19321 test -z "$as_dir" && as_dir=. 19322 for ac_exec_ext in '' $ac_executable_extensions; do 19323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19324 ac_cv_prog_CC="${ac_tool_prefix}cc" 19325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19326 break 2 19327 fi 19328done 19329done 19330IFS=$as_save_IFS 19331 19332fi 19333fi 19334CC=$ac_cv_prog_CC 19335if test -n "$CC"; then 19336 { echo "$as_me:$LINENO: result: $CC" >&5 19337echo "${ECHO_T}$CC" >&6; } 19338else 19339 { echo "$as_me:$LINENO: result: no" >&5 19340echo "${ECHO_T}no" >&6; } 19341fi 19342 19343 19344 fi 19345fi 19346if test -z "$CC"; then 19347 # Extract the first word of "cc", so it can be a program name with args. 19348set dummy cc; ac_word=$2 19349{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19351if test "${ac_cv_prog_CC+set}" = set; then 19352 echo $ECHO_N "(cached) $ECHO_C" >&6 19353else 19354 if test -n "$CC"; then 19355 ac_cv_prog_CC="$CC" # Let the user override the test. 19356else 19357 ac_prog_rejected=no 19358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19359for as_dir in $PATH 19360do 19361 IFS=$as_save_IFS 19362 test -z "$as_dir" && as_dir=. 19363 for ac_exec_ext in '' $ac_executable_extensions; do 19364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19366 ac_prog_rejected=yes 19367 continue 19368 fi 19369 ac_cv_prog_CC="cc" 19370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19371 break 2 19372 fi 19373done 19374done 19375IFS=$as_save_IFS 19376 19377if test $ac_prog_rejected = yes; then 19378 # We found a bogon in the path, so make sure we never use it. 19379 set dummy $ac_cv_prog_CC 19380 shift 19381 if test $# != 0; then 19382 # We chose a different compiler from the bogus one. 19383 # However, it has the same basename, so the bogon will be chosen 19384 # first if we set CC to just the basename; use the full file name. 19385 shift 19386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19387 fi 19388fi 19389fi 19390fi 19391CC=$ac_cv_prog_CC 19392if test -n "$CC"; then 19393 { echo "$as_me:$LINENO: result: $CC" >&5 19394echo "${ECHO_T}$CC" >&6; } 19395else 19396 { echo "$as_me:$LINENO: result: no" >&5 19397echo "${ECHO_T}no" >&6; } 19398fi 19399 19400 19401fi 19402if test -z "$CC"; then 19403 if test -n "$ac_tool_prefix"; then 19404 for ac_prog in cl.exe 19405 do 19406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19407set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19408{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19410if test "${ac_cv_prog_CC+set}" = set; then 19411 echo $ECHO_N "(cached) $ECHO_C" >&6 19412else 19413 if test -n "$CC"; then 19414 ac_cv_prog_CC="$CC" # Let the user override the test. 19415else 19416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19417for as_dir in $PATH 19418do 19419 IFS=$as_save_IFS 19420 test -z "$as_dir" && as_dir=. 19421 for ac_exec_ext in '' $ac_executable_extensions; do 19422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19425 break 2 19426 fi 19427done 19428done 19429IFS=$as_save_IFS 19430 19431fi 19432fi 19433CC=$ac_cv_prog_CC 19434if test -n "$CC"; then 19435 { echo "$as_me:$LINENO: result: $CC" >&5 19436echo "${ECHO_T}$CC" >&6; } 19437else 19438 { echo "$as_me:$LINENO: result: no" >&5 19439echo "${ECHO_T}no" >&6; } 19440fi 19441 19442 19443 test -n "$CC" && break 19444 done 19445fi 19446if test -z "$CC"; then 19447 ac_ct_CC=$CC 19448 for ac_prog in cl.exe 19449do 19450 # Extract the first word of "$ac_prog", so it can be a program name with args. 19451set dummy $ac_prog; ac_word=$2 19452{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19455 echo $ECHO_N "(cached) $ECHO_C" >&6 19456else 19457 if test -n "$ac_ct_CC"; then 19458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19459else 19460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19461for as_dir in $PATH 19462do 19463 IFS=$as_save_IFS 19464 test -z "$as_dir" && as_dir=. 19465 for ac_exec_ext in '' $ac_executable_extensions; do 19466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19467 ac_cv_prog_ac_ct_CC="$ac_prog" 19468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19469 break 2 19470 fi 19471done 19472done 19473IFS=$as_save_IFS 19474 19475fi 19476fi 19477ac_ct_CC=$ac_cv_prog_ac_ct_CC 19478if test -n "$ac_ct_CC"; then 19479 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19480echo "${ECHO_T}$ac_ct_CC" >&6; } 19481else 19482 { echo "$as_me:$LINENO: result: no" >&5 19483echo "${ECHO_T}no" >&6; } 19484fi 19485 19486 19487 test -n "$ac_ct_CC" && break 19488done 19489 19490 if test "x$ac_ct_CC" = x; then 19491 CC="" 19492 else 19493 case $cross_compiling:$ac_tool_warned in 19494yes:) 19495{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19496whose name does not start with the host triplet. If you think this 19497configuration is useful to you, please write to autoconf@gnu.org." >&5 19498echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19499whose name does not start with the host triplet. If you think this 19500configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19501ac_tool_warned=yes ;; 19502esac 19503 CC=$ac_ct_CC 19504 fi 19505fi 19506 19507fi 19508 19509 19510test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19511See \`config.log' for more details." >&5 19512echo "$as_me: error: no acceptable C compiler found in \$PATH 19513See \`config.log' for more details." >&2;} 19514 { (exit 1); exit 1; }; } 19515 19516# Provide some information about the compiler. 19517echo "$as_me:$LINENO: checking for C compiler version" >&5 19518ac_compiler=`set X $ac_compile; echo $2` 19519{ (ac_try="$ac_compiler --version >&5" 19520case "(($ac_try" in 19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19522 *) ac_try_echo=$ac_try;; 19523esac 19524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19525 (eval "$ac_compiler --version >&5") 2>&5 19526 ac_status=$? 19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19528 (exit $ac_status); } 19529{ (ac_try="$ac_compiler -v >&5" 19530case "(($ac_try" in 19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19532 *) ac_try_echo=$ac_try;; 19533esac 19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19535 (eval "$ac_compiler -v >&5") 2>&5 19536 ac_status=$? 19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19538 (exit $ac_status); } 19539{ (ac_try="$ac_compiler -V >&5" 19540case "(($ac_try" in 19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19542 *) ac_try_echo=$ac_try;; 19543esac 19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19545 (eval "$ac_compiler -V >&5") 2>&5 19546 ac_status=$? 19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19548 (exit $ac_status); } 19549 19550{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19551echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19552if test "${ac_cv_c_compiler_gnu+set}" = set; then 19553 echo $ECHO_N "(cached) $ECHO_C" >&6 19554else 19555 cat >conftest.$ac_ext <<_ACEOF 19556/* confdefs.h. */ 19557_ACEOF 19558cat confdefs.h >>conftest.$ac_ext 19559cat >>conftest.$ac_ext <<_ACEOF 19560/* end confdefs.h. */ 19561 19562int 19563main () 19564{ 19565#ifndef __GNUC__ 19566 choke me 19567#endif 19568 19569 ; 19570 return 0; 19571} 19572_ACEOF 19573rm -f conftest.$ac_objext 19574if { (ac_try="$ac_compile" 19575case "(($ac_try" in 19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19577 *) ac_try_echo=$ac_try;; 19578esac 19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19580 (eval "$ac_compile") 2>conftest.er1 19581 ac_status=$? 19582 grep -v '^ *+' conftest.er1 >conftest.err 19583 rm -f conftest.er1 19584 cat conftest.err >&5 19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19586 (exit $ac_status); } && { 19587 test -z "$ac_c_werror_flag" || 19588 test ! -s conftest.err 19589 } && test -s conftest.$ac_objext; then 19590 ac_compiler_gnu=yes 19591else 19592 echo "$as_me: failed program was:" >&5 19593sed 's/^/| /' conftest.$ac_ext >&5 19594 19595 ac_compiler_gnu=no 19596fi 19597 19598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19599ac_cv_c_compiler_gnu=$ac_compiler_gnu 19600 19601fi 19602{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19603echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19604GCC=`test $ac_compiler_gnu = yes && echo yes` 19605ac_test_CFLAGS=${CFLAGS+set} 19606ac_save_CFLAGS=$CFLAGS 19607{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19609if test "${ac_cv_prog_cc_g+set}" = set; then 19610 echo $ECHO_N "(cached) $ECHO_C" >&6 19611else 19612 ac_save_c_werror_flag=$ac_c_werror_flag 19613 ac_c_werror_flag=yes 19614 ac_cv_prog_cc_g=no 19615 CFLAGS="-g" 19616 cat >conftest.$ac_ext <<_ACEOF 19617/* confdefs.h. */ 19618_ACEOF 19619cat confdefs.h >>conftest.$ac_ext 19620cat >>conftest.$ac_ext <<_ACEOF 19621/* end confdefs.h. */ 19622 19623int 19624main () 19625{ 19626 19627 ; 19628 return 0; 19629} 19630_ACEOF 19631rm -f conftest.$ac_objext 19632if { (ac_try="$ac_compile" 19633case "(($ac_try" in 19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19635 *) ac_try_echo=$ac_try;; 19636esac 19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19638 (eval "$ac_compile") 2>conftest.er1 19639 ac_status=$? 19640 grep -v '^ *+' conftest.er1 >conftest.err 19641 rm -f conftest.er1 19642 cat conftest.err >&5 19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19644 (exit $ac_status); } && { 19645 test -z "$ac_c_werror_flag" || 19646 test ! -s conftest.err 19647 } && test -s conftest.$ac_objext; then 19648 ac_cv_prog_cc_g=yes 19649else 19650 echo "$as_me: failed program was:" >&5 19651sed 's/^/| /' conftest.$ac_ext >&5 19652 19653 CFLAGS="" 19654 cat >conftest.$ac_ext <<_ACEOF 19655/* confdefs.h. */ 19656_ACEOF 19657cat confdefs.h >>conftest.$ac_ext 19658cat >>conftest.$ac_ext <<_ACEOF 19659/* end confdefs.h. */ 19660 19661int 19662main () 19663{ 19664 19665 ; 19666 return 0; 19667} 19668_ACEOF 19669rm -f conftest.$ac_objext 19670if { (ac_try="$ac_compile" 19671case "(($ac_try" in 19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19673 *) ac_try_echo=$ac_try;; 19674esac 19675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19676 (eval "$ac_compile") 2>conftest.er1 19677 ac_status=$? 19678 grep -v '^ *+' conftest.er1 >conftest.err 19679 rm -f conftest.er1 19680 cat conftest.err >&5 19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19682 (exit $ac_status); } && { 19683 test -z "$ac_c_werror_flag" || 19684 test ! -s conftest.err 19685 } && test -s conftest.$ac_objext; then 19686 : 19687else 19688 echo "$as_me: failed program was:" >&5 19689sed 's/^/| /' conftest.$ac_ext >&5 19690 19691 ac_c_werror_flag=$ac_save_c_werror_flag 19692 CFLAGS="-g" 19693 cat >conftest.$ac_ext <<_ACEOF 19694/* confdefs.h. */ 19695_ACEOF 19696cat confdefs.h >>conftest.$ac_ext 19697cat >>conftest.$ac_ext <<_ACEOF 19698/* end confdefs.h. */ 19699 19700int 19701main () 19702{ 19703 19704 ; 19705 return 0; 19706} 19707_ACEOF 19708rm -f conftest.$ac_objext 19709if { (ac_try="$ac_compile" 19710case "(($ac_try" in 19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19712 *) ac_try_echo=$ac_try;; 19713esac 19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19715 (eval "$ac_compile") 2>conftest.er1 19716 ac_status=$? 19717 grep -v '^ *+' conftest.er1 >conftest.err 19718 rm -f conftest.er1 19719 cat conftest.err >&5 19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19721 (exit $ac_status); } && { 19722 test -z "$ac_c_werror_flag" || 19723 test ! -s conftest.err 19724 } && test -s conftest.$ac_objext; then 19725 ac_cv_prog_cc_g=yes 19726else 19727 echo "$as_me: failed program was:" >&5 19728sed 's/^/| /' conftest.$ac_ext >&5 19729 19730 19731fi 19732 19733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19734fi 19735 19736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19737fi 19738 19739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19740 ac_c_werror_flag=$ac_save_c_werror_flag 19741fi 19742{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19743echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19744if test "$ac_test_CFLAGS" = set; then 19745 CFLAGS=$ac_save_CFLAGS 19746elif test $ac_cv_prog_cc_g = yes; then 19747 if test "$GCC" = yes; then 19748 CFLAGS="-g -O2" 19749 else 19750 CFLAGS="-g" 19751 fi 19752else 19753 if test "$GCC" = yes; then 19754 CFLAGS="-O2" 19755 else 19756 CFLAGS= 19757 fi 19758fi 19759{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19760echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19761if test "${ac_cv_prog_cc_c89+set}" = set; then 19762 echo $ECHO_N "(cached) $ECHO_C" >&6 19763else 19764 ac_cv_prog_cc_c89=no 19765ac_save_CC=$CC 19766cat >conftest.$ac_ext <<_ACEOF 19767/* confdefs.h. */ 19768_ACEOF 19769cat confdefs.h >>conftest.$ac_ext 19770cat >>conftest.$ac_ext <<_ACEOF 19771/* end confdefs.h. */ 19772#include <stdarg.h> 19773#include <stdio.h> 19774#include <sys/types.h> 19775#include <sys/stat.h> 19776/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19777struct buf { int x; }; 19778FILE * (*rcsopen) (struct buf *, struct stat *, int); 19779static char *e (p, i) 19780 char **p; 19781 int i; 19782{ 19783 return p[i]; 19784} 19785static char *f (char * (*g) (char **, int), char **p, ...) 19786{ 19787 char *s; 19788 va_list v; 19789 va_start (v,p); 19790 s = g (p, va_arg (v,int)); 19791 va_end (v); 19792 return s; 19793} 19794 19795/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19796 function prototypes and stuff, but not '\xHH' hex character constants. 19797 These don't provoke an error unfortunately, instead are silently treated 19798 as 'x'. The following induces an error, until -std is added to get 19799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19800 array size at least. It's necessary to write '\x00'==0 to get something 19801 that's true only with -std. */ 19802int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19803 19804/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19805 inside strings and character constants. */ 19806#define FOO(x) 'x' 19807int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19808 19809int test (int i, double x); 19810struct s1 {int (*f) (int a);}; 19811struct s2 {int (*f) (double a);}; 19812int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19813int argc; 19814char **argv; 19815int 19816main () 19817{ 19818return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19819 ; 19820 return 0; 19821} 19822_ACEOF 19823for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19825do 19826 CC="$ac_save_CC $ac_arg" 19827 rm -f conftest.$ac_objext 19828if { (ac_try="$ac_compile" 19829case "(($ac_try" in 19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19831 *) ac_try_echo=$ac_try;; 19832esac 19833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19834 (eval "$ac_compile") 2>conftest.er1 19835 ac_status=$? 19836 grep -v '^ *+' conftest.er1 >conftest.err 19837 rm -f conftest.er1 19838 cat conftest.err >&5 19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19840 (exit $ac_status); } && { 19841 test -z "$ac_c_werror_flag" || 19842 test ! -s conftest.err 19843 } && test -s conftest.$ac_objext; then 19844 ac_cv_prog_cc_c89=$ac_arg 19845else 19846 echo "$as_me: failed program was:" >&5 19847sed 's/^/| /' conftest.$ac_ext >&5 19848 19849 19850fi 19851 19852rm -f core conftest.err conftest.$ac_objext 19853 test "x$ac_cv_prog_cc_c89" != "xno" && break 19854done 19855rm -f conftest.$ac_ext 19856CC=$ac_save_CC 19857 19858fi 19859# AC_CACHE_VAL 19860case "x$ac_cv_prog_cc_c89" in 19861 x) 19862 { echo "$as_me:$LINENO: result: none needed" >&5 19863echo "${ECHO_T}none needed" >&6; } ;; 19864 xno) 19865 { echo "$as_me:$LINENO: result: unsupported" >&5 19866echo "${ECHO_T}unsupported" >&6; } ;; 19867 *) 19868 CC="$CC $ac_cv_prog_cc_c89" 19869 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 19870echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 19871esac 19872 19873 19874ac_ext=c 19875ac_cpp='$CPP $CPPFLAGS' 19876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19878ac_compiler_gnu=$ac_cv_c_compiler_gnu 19879 19880depcc="$CC" am_compiler_list= 19881 19882{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19883echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 19884if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19885 echo $ECHO_N "(cached) $ECHO_C" >&6 19886else 19887 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19888 # We make a subdir and do the tests there. Otherwise we can end up 19889 # making bogus files that we don't know about and never remove. For 19890 # instance it was reported that on HP-UX the gcc test will end up 19891 # making a dummy file named `D' -- because `-MD' means `put the output 19892 # in D'. 19893 mkdir conftest.dir 19894 # Copy depcomp to subdir because otherwise we won't find it if we're 19895 # using a relative directory. 19896 cp "$am_depcomp" conftest.dir 19897 cd conftest.dir 19898 # We will build objects and dependencies in a subdirectory because 19899 # it helps to detect inapplicable dependency modes. For instance 19900 # both Tru64's cc and ICC support -MD to output dependencies as a 19901 # side effect of compilation, but ICC will put the dependencies in 19902 # the current directory while Tru64 will put them in the object 19903 # directory. 19904 mkdir sub 19905 19906 am_cv_CC_dependencies_compiler_type=none 19907 if test "$am_compiler_list" = ""; then 19908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19909 fi 19910 for depmode in $am_compiler_list; do 19911 # Setup a source with many dependencies, because some compilers 19912 # like to wrap large dependency lists on column 80 (with \), and 19913 # we should not choose a depcomp mode which is confused by this. 19914 # 19915 # We need to recreate these files for each test, as the compiler may 19916 # overwrite some of them when testing with obscure command lines. 19917 # This happens at least with the AIX C compiler. 19918 : > sub/conftest.c 19919 for i in 1 2 3 4 5 6; do 19920 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19922 # Solaris 8's {/usr,}/bin/sh. 19923 touch sub/conftst$i.h 19924 done 19925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19926 19927 case $depmode in 19928 nosideeffect) 19929 # after this tag, mechanisms are not by side-effect, so they'll 19930 # only be used when explicitly requested 19931 if test "x$enable_dependency_tracking" = xyes; then 19932 continue 19933 else 19934 break 19935 fi 19936 ;; 19937 none) break ;; 19938 esac 19939 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19940 # mode. It turns out that the SunPro C++ compiler does not properly 19941 # handle `-M -o', and we need to detect this. 19942 if depmode=$depmode \ 19943 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19945 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19946 >/dev/null 2>conftest.err && 19947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19949 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19951 # icc doesn't choke on unknown options, it will just issue warnings 19952 # or remarks (even with -Werror). So we grep stderr for any message 19953 # that says an option was ignored or not supported. 19954 # When given -MP, icc 7.0 and 7.1 complain thusly: 19955 # icc: Command line warning: ignoring option '-M'; no argument required 19956 # The diagnosis changed in icc 8.0: 19957 # icc: Command line remark: option '-MP' not supported 19958 if (grep 'ignoring option' conftest.err || 19959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19960 am_cv_CC_dependencies_compiler_type=$depmode 19961 break 19962 fi 19963 fi 19964 done 19965 19966 cd .. 19967 rm -rf conftest.dir 19968else 19969 am_cv_CC_dependencies_compiler_type=none 19970fi 19971 19972fi 19973{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19974echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 19975CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19976 19977 if 19978 test "x$enable_dependency_tracking" != xno \ 19979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19980 am__fastdepCC_TRUE= 19981 am__fastdepCC_FALSE='#' 19982else 19983 am__fastdepCC_TRUE='#' 19984 am__fastdepCC_FALSE= 19985fi 19986 19987 19988 19989 19990# Check whether --enable-Werror was given. 19991if test "${enable_Werror+set}" = set; then 19992 enableval=$enable_Werror; 19993fi 19994 19995 19996if test "x$GCC" = "xyes"; then 19997 case " $CFLAGS " in 19998 *\ \ -Wall\ \ *) ;; 19999 *) CFLAGS="$CFLAGS -Wall" ;; 20000 esac 20001 20002 case " $CFLAGS " in 20003 *\ \ -Wmissing-declarations\ \ *) ;; 20004 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;; 20005 esac 20006 20007 case " $CFLAGS " in 20008 *\ \ -Wmissing-prototypes\ \ *) ;; 20009 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;; 20010 esac 20011 20012 case " $CFLAGS " in 20013 *\ \ -Wpointer-arith\ \ *) ;; 20014 *) CFLAGS="$CFLAGS -Wpointer-arith" ;; 20015 esac 20016 20017 case " $CFLAGS " in 20018 *\ \ -Wcast-align\ \ *) ;; 20019 *) CFLAGS="$CFLAGS -Wcast-align" ;; 20020 esac 20021 20022 if test "x$enable_Werror" = "xyes"; then 20023 case " $CFLAGS " in 20024 *\ \ -Werror\ \ *) ;; 20025 *) CFLAGS="$CFLAGS -Werror" ;; 20026 esac 20027 fi 20028 20029 if test "x$enable_ansi" = "xyes"; then 20030 case " $CFLAGS " in 20031 *\ \ -ansi\ \ *) ;; 20032 *) CFLAGS="$CFLAGS -ansi" ;; 20033 esac 20034 20035 case " $CFLAGS " in 20036 *\ \ -pedantic\ \ *) ;; 20037 *) CFLAGS="$CFLAGS -pedantic" ;; 20038 esac 20039 fi 20040fi 20041 20042# for dump stroke data 20043# Check whether --enable-dumpstroke was given. 20044if test "${enable_dumpstroke+set}" = set; then 20045 enableval=$enable_dumpstroke; 20046fi 20047 20048if test x"$enable_dumpstroke" = "xyes"; then 20049 20050cat >>confdefs.h <<\_ACEOF 20051#define ENABLE_DUMPSTROKE 1 20052_ACEOF 20053 20054fi 20055 20056# Checks for GTK+ 20057 20058 20059if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20060 if test -n "$ac_tool_prefix"; then 20061 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20062set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20063{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20065if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20066 echo $ECHO_N "(cached) $ECHO_C" >&6 20067else 20068 case $PKG_CONFIG in 20069 [\\/]* | ?:[\\/]*) 20070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20071 ;; 20072 *) 20073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20074for as_dir in $PATH 20075do 20076 IFS=$as_save_IFS 20077 test -z "$as_dir" && as_dir=. 20078 for ac_exec_ext in '' $ac_executable_extensions; do 20079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20082 break 2 20083 fi 20084done 20085done 20086IFS=$as_save_IFS 20087 20088 ;; 20089esac 20090fi 20091PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20092if test -n "$PKG_CONFIG"; then 20093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20094echo "${ECHO_T}$PKG_CONFIG" >&6; } 20095else 20096 { echo "$as_me:$LINENO: result: no" >&5 20097echo "${ECHO_T}no" >&6; } 20098fi 20099 20100 20101fi 20102if test -z "$ac_cv_path_PKG_CONFIG"; then 20103 ac_pt_PKG_CONFIG=$PKG_CONFIG 20104 # Extract the first word of "pkg-config", so it can be a program name with args. 20105set dummy pkg-config; ac_word=$2 20106{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20108if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20109 echo $ECHO_N "(cached) $ECHO_C" >&6 20110else 20111 case $ac_pt_PKG_CONFIG in 20112 [\\/]* | ?:[\\/]*) 20113 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20114 ;; 20115 *) 20116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20117for as_dir in $PATH 20118do 20119 IFS=$as_save_IFS 20120 test -z "$as_dir" && as_dir=. 20121 for ac_exec_ext in '' $ac_executable_extensions; do 20122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20123 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20125 break 2 20126 fi 20127done 20128done 20129IFS=$as_save_IFS 20130 20131 ;; 20132esac 20133fi 20134ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20135if test -n "$ac_pt_PKG_CONFIG"; then 20136 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20137echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20138else 20139 { echo "$as_me:$LINENO: result: no" >&5 20140echo "${ECHO_T}no" >&6; } 20141fi 20142 20143 if test "x$ac_pt_PKG_CONFIG" = x; then 20144 PKG_CONFIG="" 20145 else 20146 case $cross_compiling:$ac_tool_warned in 20147yes:) 20148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20149whose name does not start with the host triplet. If you think this 20150configuration is useful to you, please write to autoconf@gnu.org." >&5 20151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20152whose name does not start with the host triplet. If you think this 20153configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20154ac_tool_warned=yes ;; 20155esac 20156 PKG_CONFIG=$ac_pt_PKG_CONFIG 20157 fi 20158else 20159 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20160fi 20161 20162fi 20163if test -n "$PKG_CONFIG"; then 20164 _pkg_min_version=0.9.0 20165 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20166echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20167 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20168 { echo "$as_me:$LINENO: result: yes" >&5 20169echo "${ECHO_T}yes" >&6; } 20170 else 20171 { echo "$as_me:$LINENO: result: no" >&5 20172echo "${ECHO_T}no" >&6; } 20173 PKG_CONFIG="" 20174 fi 20175 20176fi 20177 20178pkg_failed=no 20179{ echo "$as_me:$LINENO: checking for GTK2" >&5 20180echo $ECHO_N "checking for GTK2... $ECHO_C" >&6; } 20181 20182if test -n "$PKG_CONFIG"; then 20183 if test -n "$GTK2_CFLAGS"; then 20184 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" 20185 else 20186 if test -n "$PKG_CONFIG" && \ 20187 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5 20188 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 20189 ac_status=$? 20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20191 (exit $ac_status); }; then 20192 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null` 20193else 20194 pkg_failed=yes 20195fi 20196 fi 20197else 20198 pkg_failed=untried 20199fi 20200if test -n "$PKG_CONFIG"; then 20201 if test -n "$GTK2_LIBS"; then 20202 pkg_cv_GTK2_LIBS="$GTK2_LIBS" 20203 else 20204 if test -n "$PKG_CONFIG" && \ 20205 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5 20206 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 20207 ac_status=$? 20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20209 (exit $ac_status); }; then 20210 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null` 20211else 20212 pkg_failed=yes 20213fi 20214 fi 20215else 20216 pkg_failed=untried 20217fi 20218 20219 20220 20221if test $pkg_failed = yes; then 20222 20223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20224 _pkg_short_errors_supported=yes 20225else 20226 _pkg_short_errors_supported=no 20227fi 20228 if test $_pkg_short_errors_supported = yes; then 20229 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"` 20230 else 20231 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"` 20232 fi 20233 # Put the nasty error message in config.log where it belongs 20234 echo "$GTK2_PKG_ERRORS" >&5 20235 20236 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0) were not met: 20237 20238$GTK2_PKG_ERRORS 20239 20240Consider adjusting the PKG_CONFIG_PATH environment variable if you 20241installed software in a non-standard prefix. 20242 20243Alternatively, you may set the environment variables GTK2_CFLAGS 20244and GTK2_LIBS to avoid the need to call pkg-config. 20245See the pkg-config man page for more details. 20246" >&5 20247echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0) were not met: 20248 20249$GTK2_PKG_ERRORS 20250 20251Consider adjusting the PKG_CONFIG_PATH environment variable if you 20252installed software in a non-standard prefix. 20253 20254Alternatively, you may set the environment variables GTK2_CFLAGS 20255and GTK2_LIBS to avoid the need to call pkg-config. 20256See the pkg-config man page for more details. 20257" >&2;} 20258 { (exit 1); exit 1; }; } 20259elif test $pkg_failed = untried; then 20260 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20261is in your PATH or set the PKG_CONFIG environment variable to the full 20262path to pkg-config. 20263 20264Alternatively, you may set the environment variables GTK2_CFLAGS 20265and GTK2_LIBS to avoid the need to call pkg-config. 20266See the pkg-config man page for more details. 20267 20268To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20269See \`config.log' for more details." >&5 20270echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20271is in your PATH or set the PKG_CONFIG environment variable to the full 20272path to pkg-config. 20273 20274Alternatively, you may set the environment variables GTK2_CFLAGS 20275and GTK2_LIBS to avoid the need to call pkg-config. 20276See the pkg-config man page for more details. 20277 20278To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20279See \`config.log' for more details." >&2;} 20280 { (exit 1); exit 1; }; } 20281else 20282 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS 20283 GTK2_LIBS=$pkg_cv_GTK2_LIBS 20284 { echo "$as_me:$LINENO: result: yes" >&5 20285echo "${ECHO_T}yes" >&6; } 20286 : 20287fi 20288 20289 20290 20291# Extract the first word of "glib-mkenums", so it can be a program name with args. 20292set dummy glib-mkenums; ac_word=$2 20293{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20295if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then 20296 echo $ECHO_N "(cached) $ECHO_C" >&6 20297else 20298 case $GLIB_MKENUMS in 20299 [\\/]* | ?:[\\/]*) 20300 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path. 20301 ;; 20302 *) 20303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20304for as_dir in $PATH 20305do 20306 IFS=$as_save_IFS 20307 test -z "$as_dir" && as_dir=. 20308 for ac_exec_ext in '' $ac_executable_extensions; do 20309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20310 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" 20311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20312 break 2 20313 fi 20314done 20315done 20316IFS=$as_save_IFS 20317 20318 ;; 20319esac 20320fi 20321GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS 20322if test -n "$GLIB_MKENUMS"; then 20323 { echo "$as_me:$LINENO: result: $GLIB_MKENUMS" >&5 20324echo "${ECHO_T}$GLIB_MKENUMS" >&6; } 20325else 20326 { echo "$as_me:$LINENO: result: no" >&5 20327echo "${ECHO_T}no" >&6; } 20328fi 20329 20330 20331 20332# Checks for Tomoe 20333 20334pkg_failed=no 20335{ echo "$as_me:$LINENO: checking for TOMOE" >&5 20336echo $ECHO_N "checking for TOMOE... $ECHO_C" >&6; } 20337 20338if test -n "$PKG_CONFIG"; then 20339 if test -n "$TOMOE_CFLAGS"; then 20340 pkg_cv_TOMOE_CFLAGS="$TOMOE_CFLAGS" 20341 else 20342 if test -n "$PKG_CONFIG" && \ 20343 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tomoe >= 0.4.0\"") >&5 20344 ($PKG_CONFIG --exists --print-errors "tomoe >= 0.4.0") 2>&5 20345 ac_status=$? 20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20347 (exit $ac_status); }; then 20348 pkg_cv_TOMOE_CFLAGS=`$PKG_CONFIG --cflags "tomoe >= 0.4.0" 2>/dev/null` 20349else 20350 pkg_failed=yes 20351fi 20352 fi 20353else 20354 pkg_failed=untried 20355fi 20356if test -n "$PKG_CONFIG"; then 20357 if test -n "$TOMOE_LIBS"; then 20358 pkg_cv_TOMOE_LIBS="$TOMOE_LIBS" 20359 else 20360 if test -n "$PKG_CONFIG" && \ 20361 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tomoe >= 0.4.0\"") >&5 20362 ($PKG_CONFIG --exists --print-errors "tomoe >= 0.4.0") 2>&5 20363 ac_status=$? 20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20365 (exit $ac_status); }; then 20366 pkg_cv_TOMOE_LIBS=`$PKG_CONFIG --libs "tomoe >= 0.4.0" 2>/dev/null` 20367else 20368 pkg_failed=yes 20369fi 20370 fi 20371else 20372 pkg_failed=untried 20373fi 20374 20375 20376 20377if test $pkg_failed = yes; then 20378 20379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20380 _pkg_short_errors_supported=yes 20381else 20382 _pkg_short_errors_supported=no 20383fi 20384 if test $_pkg_short_errors_supported = yes; then 20385 TOMOE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tomoe >= 0.4.0"` 20386 else 20387 TOMOE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tomoe >= 0.4.0"` 20388 fi 20389 # Put the nasty error message in config.log where it belongs 20390 echo "$TOMOE_PKG_ERRORS" >&5 20391 20392 { { echo "$as_me:$LINENO: error: Package requirements (tomoe >= 0.4.0) were not met: 20393 20394$TOMOE_PKG_ERRORS 20395 20396Consider adjusting the PKG_CONFIG_PATH environment variable if you 20397installed software in a non-standard prefix. 20398 20399Alternatively, you may set the environment variables TOMOE_CFLAGS 20400and TOMOE_LIBS to avoid the need to call pkg-config. 20401See the pkg-config man page for more details. 20402" >&5 20403echo "$as_me: error: Package requirements (tomoe >= 0.4.0) were not met: 20404 20405$TOMOE_PKG_ERRORS 20406 20407Consider adjusting the PKG_CONFIG_PATH environment variable if you 20408installed software in a non-standard prefix. 20409 20410Alternatively, you may set the environment variables TOMOE_CFLAGS 20411and TOMOE_LIBS to avoid the need to call pkg-config. 20412See the pkg-config man page for more details. 20413" >&2;} 20414 { (exit 1); exit 1; }; } 20415elif test $pkg_failed = untried; then 20416 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20417is in your PATH or set the PKG_CONFIG environment variable to the full 20418path to pkg-config. 20419 20420Alternatively, you may set the environment variables TOMOE_CFLAGS 20421and TOMOE_LIBS to avoid the need to call pkg-config. 20422See the pkg-config man page for more details. 20423 20424To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20425See \`config.log' for more details." >&5 20426echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20427is in your PATH or set the PKG_CONFIG environment variable to the full 20428path to pkg-config. 20429 20430Alternatively, you may set the environment variables TOMOE_CFLAGS 20431and TOMOE_LIBS to avoid the need to call pkg-config. 20432See the pkg-config man page for more details. 20433 20434To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20435See \`config.log' for more details." >&2;} 20436 { (exit 1); exit 1; }; } 20437else 20438 TOMOE_CFLAGS=$pkg_cv_TOMOE_CFLAGS 20439 TOMOE_LIBS=$pkg_cv_TOMOE_LIBS 20440 { echo "$as_me:$LINENO: result: yes" >&5 20441echo "${ECHO_T}yes" >&6; } 20442 : 20443fi 20444 20445 20446 20447# Checks for gucharmap 20448 20449# Check whether --with-gucharmap was given. 20450if test "${with_gucharmap+set}" = set; then 20451 withval=$with_gucharmap; use_gucharmap=$withval 20452else 20453 use_gucharmap=yes 20454fi 20455 20456if test x"$use_gucharmap" = "xyes"; then 20457 # Checks for gucharmap 20458 20459pkg_failed=no 20460{ echo "$as_me:$LINENO: checking for GUCHARMAP" >&5 20461echo $ECHO_N "checking for GUCHARMAP... $ECHO_C" >&6; } 20462 20463if test -n "$PKG_CONFIG"; then 20464 if test -n "$GUCHARMAP_CFLAGS"; then 20465 pkg_cv_GUCHARMAP_CFLAGS="$GUCHARMAP_CFLAGS" 20466 else 20467 if test -n "$PKG_CONFIG" && \ 20468 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gucharmap >= 1.4.0\"") >&5 20469 ($PKG_CONFIG --exists --print-errors "gucharmap >= 1.4.0") 2>&5 20470 ac_status=$? 20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20472 (exit $ac_status); }; then 20473 pkg_cv_GUCHARMAP_CFLAGS=`$PKG_CONFIG --cflags "gucharmap >= 1.4.0" 2>/dev/null` 20474else 20475 pkg_failed=yes 20476fi 20477 fi 20478else 20479 pkg_failed=untried 20480fi 20481if test -n "$PKG_CONFIG"; then 20482 if test -n "$GUCHARMAP_LIBS"; then 20483 pkg_cv_GUCHARMAP_LIBS="$GUCHARMAP_LIBS" 20484 else 20485 if test -n "$PKG_CONFIG" && \ 20486 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gucharmap >= 1.4.0\"") >&5 20487 ($PKG_CONFIG --exists --print-errors "gucharmap >= 1.4.0") 2>&5 20488 ac_status=$? 20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20490 (exit $ac_status); }; then 20491 pkg_cv_GUCHARMAP_LIBS=`$PKG_CONFIG --libs "gucharmap >= 1.4.0" 2>/dev/null` 20492else 20493 pkg_failed=yes 20494fi 20495 fi 20496else 20497 pkg_failed=untried 20498fi 20499 20500 20501 20502if test $pkg_failed = yes; then 20503 20504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20505 _pkg_short_errors_supported=yes 20506else 20507 _pkg_short_errors_supported=no 20508fi 20509 if test $_pkg_short_errors_supported = yes; then 20510 GUCHARMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gucharmap >= 1.4.0"` 20511 else 20512 GUCHARMAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gucharmap >= 1.4.0"` 20513 fi 20514 # Put the nasty error message in config.log where it belongs 20515 echo "$GUCHARMAP_PKG_ERRORS" >&5 20516 20517 { { echo "$as_me:$LINENO: error: Package requirements (gucharmap >= 1.4.0) were not met: 20518 20519$GUCHARMAP_PKG_ERRORS 20520 20521Consider adjusting the PKG_CONFIG_PATH environment variable if you 20522installed software in a non-standard prefix. 20523 20524Alternatively, you may set the environment variables GUCHARMAP_CFLAGS 20525and GUCHARMAP_LIBS to avoid the need to call pkg-config. 20526See the pkg-config man page for more details. 20527" >&5 20528echo "$as_me: error: Package requirements (gucharmap >= 1.4.0) were not met: 20529 20530$GUCHARMAP_PKG_ERRORS 20531 20532Consider adjusting the PKG_CONFIG_PATH environment variable if you 20533installed software in a non-standard prefix. 20534 20535Alternatively, you may set the environment variables GUCHARMAP_CFLAGS 20536and GUCHARMAP_LIBS to avoid the need to call pkg-config. 20537See the pkg-config man page for more details. 20538" >&2;} 20539 { (exit 1); exit 1; }; } 20540elif test $pkg_failed = untried; then 20541 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20542is in your PATH or set the PKG_CONFIG environment variable to the full 20543path to pkg-config. 20544 20545Alternatively, you may set the environment variables GUCHARMAP_CFLAGS 20546and GUCHARMAP_LIBS to avoid the need to call pkg-config. 20547See the pkg-config man page for more details. 20548 20549To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20550See \`config.log' for more details." >&5 20551echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20552is in your PATH or set the PKG_CONFIG environment variable to the full 20553path to pkg-config. 20554 20555Alternatively, you may set the environment variables GUCHARMAP_CFLAGS 20556and GUCHARMAP_LIBS to avoid the need to call pkg-config. 20557See the pkg-config man page for more details. 20558 20559To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20560See \`config.log' for more details." >&2;} 20561 { (exit 1); exit 1; }; } 20562else 20563 GUCHARMAP_CFLAGS=$pkg_cv_GUCHARMAP_CFLAGS 20564 GUCHARMAP_LIBS=$pkg_cv_GUCHARMAP_LIBS 20565 { echo "$as_me:$LINENO: result: yes" >&5 20566echo "${ECHO_T}yes" >&6; } 20567 : 20568fi 20569 TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0 gucharmap >= 1.4.0" 20570else 20571 TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0" 20572fi 20573 20574 20575 20576 if test x"$use_gucharmap" = "xyes"; then 20577 USE_GUCHARMAP_TRUE= 20578 USE_GUCHARMAP_FALSE='#' 20579else 20580 USE_GUCHARMAP_TRUE='#' 20581 USE_GUCHARMAP_FALSE= 20582fi 20583 20584 20585# Check for pygtk 20586 20587python_available="no" 20588 20589# Check whether --with-python was given. 20590if test "${with_python+set}" = set; then 20591 withval=$with_python; PYTHON="$withval" 20592fi 20593 20594 20595if test "$PYTHON" = "no"; then 20596 : # ignore 20597elif test "$PYTHON" = ""; then 20598 20599 20600 20601 20602 # Find any Python interpreter. 20603 if test -z "$PYTHON"; then 20604 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 20605do 20606 # Extract the first word of "$ac_prog", so it can be a program name with args. 20607set dummy $ac_prog; ac_word=$2 20608{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20610if test "${ac_cv_path_PYTHON+set}" = set; then 20611 echo $ECHO_N "(cached) $ECHO_C" >&6 20612else 20613 case $PYTHON in 20614 [\\/]* | ?:[\\/]*) 20615 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 20616 ;; 20617 *) 20618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20619for as_dir in $PATH 20620do 20621 IFS=$as_save_IFS 20622 test -z "$as_dir" && as_dir=. 20623 for ac_exec_ext in '' $ac_executable_extensions; do 20624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20625 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 20626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20627 break 2 20628 fi 20629done 20630done 20631IFS=$as_save_IFS 20632 20633 ;; 20634esac 20635fi 20636PYTHON=$ac_cv_path_PYTHON 20637if test -n "$PYTHON"; then 20638 { echo "$as_me:$LINENO: result: $PYTHON" >&5 20639echo "${ECHO_T}$PYTHON" >&6; } 20640else 20641 { echo "$as_me:$LINENO: result: no" >&5 20642echo "${ECHO_T}no" >&6; } 20643fi 20644 20645 20646 test -n "$PYTHON" && break 20647done 20648test -n "$PYTHON" || PYTHON=":" 20649 20650 fi 20651 am_display_PYTHON=python 20652 20653 20654 if test "$PYTHON" = :; then 20655 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5 20656echo "$as_me: error: no suitable Python interpreter found" >&2;} 20657 { (exit 1); exit 1; }; } 20658 else 20659 20660 20661 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5 20662echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; } 20663if test "${am_cv_python_version+set}" = set; then 20664 echo $ECHO_N "(cached) $ECHO_C" >&6 20665else 20666 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"` 20667fi 20668{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5 20669echo "${ECHO_T}$am_cv_python_version" >&6; } 20670 PYTHON_VERSION=$am_cv_python_version 20671 20672 20673 20674 PYTHON_PREFIX='${prefix}' 20675 20676 PYTHON_EXEC_PREFIX='${exec_prefix}' 20677 20678 20679 20680 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5 20681echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; } 20682if test "${am_cv_python_platform+set}" = set; then 20683 echo $ECHO_N "(cached) $ECHO_C" >&6 20684else 20685 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"` 20686fi 20687{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5 20688echo "${ECHO_T}$am_cv_python_platform" >&6; } 20689 PYTHON_PLATFORM=$am_cv_python_platform 20690 20691 20692 20693 20694 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5 20695echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; } 20696if test "${am_cv_python_pythondir+set}" = set; then 20697 echo $ECHO_N "(cached) $ECHO_C" >&6 20698else 20699 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || 20700 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 20701fi 20702{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 20703echo "${ECHO_T}$am_cv_python_pythondir" >&6; } 20704 pythondir=$am_cv_python_pythondir 20705 20706 20707 20708 pkgpythondir=\${pythondir}/$PACKAGE 20709 20710 20711 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5 20712echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; } 20713if test "${am_cv_python_pyexecdir+set}" = set; then 20714 echo $ECHO_N "(cached) $ECHO_C" >&6 20715else 20716 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || 20717 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` 20718fi 20719{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 20720echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; } 20721 pyexecdir=$am_cv_python_pyexecdir 20722 20723 20724 20725 pkgpyexecdir=\${pyexecdir}/$PACKAGE 20726 20727 20728 20729 fi 20730 20731 20732 if test "$PYTHON" != "none"; then 20733 python_available="yes" 20734 fi 20735else 20736 as_ac_File=`echo "ac_cv_file_$PYTHON" | $as_tr_sh` 20737{ echo "$as_me:$LINENO: checking for $PYTHON" >&5 20738echo $ECHO_N "checking for $PYTHON... $ECHO_C" >&6; } 20739if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20740 echo $ECHO_N "(cached) $ECHO_C" >&6 20741else 20742 test "$cross_compiling" = yes && 20743 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20744echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20745 { (exit 1); exit 1; }; } 20746if test -r "$PYTHON"; then 20747 eval "$as_ac_File=yes" 20748else 20749 eval "$as_ac_File=no" 20750fi 20751fi 20752ac_res=`eval echo '${'$as_ac_File'}'` 20753 { echo "$as_me:$LINENO: result: $ac_res" >&5 20754echo "${ECHO_T}$ac_res" >&6; } 20755if test `eval echo '${'$as_ac_File'}'` = yes; then 20756 python_available="yes" 20757else 20758 { echo "$as_me:$LINENO: WARNING: $PYTHON is not found. Disable PYTHON binding." >&5 20759echo "$as_me: WARNING: $PYTHON is not found. Disable PYTHON binding." >&2;} 20760fi 20761 20762fi 20763 20764if test "$python_available" = "yes"; then 20765 PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` 20766 PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'` 20767 PYTHON_LIBS="-lpython$PYTHON_VERSION" 20768 PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config" 20769 PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION" 20770 20771 20772pkg_failed=no 20773{ echo "$as_me:$LINENO: checking for PYGOBJECT" >&5 20774echo $ECHO_N "checking for PYGOBJECT... $ECHO_C" >&6; } 20775 20776if test -n "$PKG_CONFIG"; then 20777 if test -n "$PYGOBJECT_CFLAGS"; then 20778 pkg_cv_PYGOBJECT_CFLAGS="$PYGOBJECT_CFLAGS" 20779 else 20780 if test -n "$PKG_CONFIG" && \ 20781 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pygobject-2.0\"") >&5 20782 ($PKG_CONFIG --exists --print-errors "pygobject-2.0") 2>&5 20783 ac_status=$? 20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20785 (exit $ac_status); }; then 20786 pkg_cv_PYGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "pygobject-2.0" 2>/dev/null` 20787else 20788 pkg_failed=yes 20789fi 20790 fi 20791else 20792 pkg_failed=untried 20793fi 20794if test -n "$PKG_CONFIG"; then 20795 if test -n "$PYGOBJECT_LIBS"; then 20796 pkg_cv_PYGOBJECT_LIBS="$PYGOBJECT_LIBS" 20797 else 20798 if test -n "$PKG_CONFIG" && \ 20799 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pygobject-2.0\"") >&5 20800 ($PKG_CONFIG --exists --print-errors "pygobject-2.0") 2>&5 20801 ac_status=$? 20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20803 (exit $ac_status); }; then 20804 pkg_cv_PYGOBJECT_LIBS=`$PKG_CONFIG --libs "pygobject-2.0" 2>/dev/null` 20805else 20806 pkg_failed=yes 20807fi 20808 fi 20809else 20810 pkg_failed=untried 20811fi 20812 20813 20814 20815if test $pkg_failed = yes; then 20816 20817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20818 _pkg_short_errors_supported=yes 20819else 20820 _pkg_short_errors_supported=no 20821fi 20822 if test $_pkg_short_errors_supported = yes; then 20823 PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pygobject-2.0"` 20824 else 20825 PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pygobject-2.0"` 20826 fi 20827 # Put the nasty error message in config.log where it belongs 20828 echo "$PYGOBJECT_PKG_ERRORS" >&5 20829 20830 { { echo "$as_me:$LINENO: error: Package requirements (pygobject-2.0) were not met: 20831 20832$PYGOBJECT_PKG_ERRORS 20833 20834Consider adjusting the PKG_CONFIG_PATH environment variable if you 20835installed software in a non-standard prefix. 20836 20837Alternatively, you may set the environment variables PYGOBJECT_CFLAGS 20838and PYGOBJECT_LIBS to avoid the need to call pkg-config. 20839See the pkg-config man page for more details. 20840" >&5 20841echo "$as_me: error: Package requirements (pygobject-2.0) were not met: 20842 20843$PYGOBJECT_PKG_ERRORS 20844 20845Consider adjusting the PKG_CONFIG_PATH environment variable if you 20846installed software in a non-standard prefix. 20847 20848Alternatively, you may set the environment variables PYGOBJECT_CFLAGS 20849and PYGOBJECT_LIBS to avoid the need to call pkg-config. 20850See the pkg-config man page for more details. 20851" >&2;} 20852 { (exit 1); exit 1; }; } 20853elif test $pkg_failed = untried; then 20854 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20855is in your PATH or set the PKG_CONFIG environment variable to the full 20856path to pkg-config. 20857 20858Alternatively, you may set the environment variables PYGOBJECT_CFLAGS 20859and PYGOBJECT_LIBS to avoid the need to call pkg-config. 20860See the pkg-config man page for more details. 20861 20862To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20863See \`config.log' for more details." >&5 20864echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20865is in your PATH or set the PKG_CONFIG environment variable to the full 20866path to pkg-config. 20867 20868Alternatively, you may set the environment variables PYGOBJECT_CFLAGS 20869and PYGOBJECT_LIBS to avoid the need to call pkg-config. 20870See the pkg-config man page for more details. 20871 20872To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20873See \`config.log' for more details." >&2;} 20874 { (exit 1); exit 1; }; } 20875else 20876 PYGOBJECT_CFLAGS=$pkg_cv_PYGOBJECT_CFLAGS 20877 PYGOBJECT_LIBS=$pkg_cv_PYGOBJECT_LIBS 20878 { echo "$as_me:$LINENO: result: yes" >&5 20879echo "${ECHO_T}yes" >&6; } 20880 : 20881fi 20882 20883 20884 20885 20886 20887 20888 20889 PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` 20890 20891 20892 python_undef_package_macros=" 20893#undef PACKAGE_NAME 20894#undef PACKAGE_TARNAME 20895#undef PACKAGE_STRING 20896#undef PACKAGE_VERSION 20897" 20898 python_disable_message="Disable Python binding." 20899 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 20900 20901for ac_header in Python.h 20902do 20903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20904{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20907 echo $ECHO_N "(cached) $ECHO_C" >&6 20908else 20909 cat >conftest.$ac_ext <<_ACEOF 20910/* confdefs.h. */ 20911_ACEOF 20912cat confdefs.h >>conftest.$ac_ext 20913cat >>conftest.$ac_ext <<_ACEOF 20914/* end confdefs.h. */ 20915$python_undef_package_macros 20916 20917#include <$ac_header> 20918_ACEOF 20919rm -f conftest.$ac_objext 20920if { (ac_try="$ac_compile" 20921case "(($ac_try" in 20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20923 *) ac_try_echo=$ac_try;; 20924esac 20925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20926 (eval "$ac_compile") 2>conftest.er1 20927 ac_status=$? 20928 grep -v '^ *+' conftest.er1 >conftest.err 20929 rm -f conftest.er1 20930 cat conftest.err >&5 20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20932 (exit $ac_status); } && { 20933 test -z "$ac_c_werror_flag" || 20934 test ! -s conftest.err 20935 } && test -s conftest.$ac_objext; then 20936 eval "$as_ac_Header=yes" 20937else 20938 echo "$as_me: failed program was:" >&5 20939sed 's/^/| /' conftest.$ac_ext >&5 20940 20941 eval "$as_ac_Header=no" 20942fi 20943 20944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20945fi 20946ac_res=`eval echo '${'$as_ac_Header'}'` 20947 { echo "$as_me:$LINENO: result: $ac_res" >&5 20948echo "${ECHO_T}$ac_res" >&6; } 20949if test `eval echo '${'$as_ac_Header'}'` = yes; then 20950 cat >>confdefs.h <<_ACEOF 20951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20952_ACEOF 20953 20954else 20955 python_available="no" 20956 { echo "$as_me:$LINENO: WARNING: $python_disable_message" >&5 20957echo "$as_me: WARNING: $python_disable_message" >&2;} 20958fi 20959 20960done 20961 20962 CFLAGS=$_SAVE_CFLAGS 20963 20964 # Extract the first word of "pygtk-codegen-2.0", so it can be a program name with args. 20965set dummy pygtk-codegen-2.0; ac_word=$2 20966{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20968if test "${ac_cv_path_PYGTK_CODEGEN+set}" = set; then 20969 echo $ECHO_N "(cached) $ECHO_C" >&6 20970else 20971 case $PYGTK_CODEGEN in 20972 [\\/]* | ?:[\\/]*) 20973 ac_cv_path_PYGTK_CODEGEN="$PYGTK_CODEGEN" # Let the user override the test with a path. 20974 ;; 20975 *) 20976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20977for as_dir in $PATH 20978do 20979 IFS=$as_save_IFS 20980 test -z "$as_dir" && as_dir=. 20981 for ac_exec_ext in '' $ac_executable_extensions; do 20982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20983 ac_cv_path_PYGTK_CODEGEN="$as_dir/$ac_word$ac_exec_ext" 20984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20985 break 2 20986 fi 20987done 20988done 20989IFS=$as_save_IFS 20990 20991 test -z "$ac_cv_path_PYGTK_CODEGEN" && ac_cv_path_PYGTK_CODEGEN="python_avairable="no"" 20992 ;; 20993esac 20994fi 20995PYGTK_CODEGEN=$ac_cv_path_PYGTK_CODEGEN 20996if test -n "$PYGTK_CODEGEN"; then 20997 { echo "$as_me:$LINENO: result: $PYGTK_CODEGEN" >&5 20998echo "${ECHO_T}$PYGTK_CODEGEN" >&6; } 20999else 21000 { echo "$as_me:$LINENO: result: no" >&5 21001echo "${ECHO_T}no" >&6; } 21002fi 21003 21004 21005 21006 PYTOMOE_DEFSDIR=`$PKG_CONFIG --variable=defsdir pytomoe` 21007 21008 if test x"$PYTOMOE_DEFSDIR" = "x"; then 21009 python_available=no 21010 fi 21011fi 21012 21013 if test "$python_available" = "yes"; then 21014 WITH_PYTHON_TRUE= 21015 WITH_PYTHON_FALSE='#' 21016else 21017 WITH_PYTHON_TRUE='#' 21018 WITH_PYTHON_FALSE= 21019fi 21020 21021 21022 21023# Checks for gtk-doc 21024 21025 21026# Check whether --with-html-dir was given. 21027if test "${with_html_dir+set}" = set; then 21028 withval=$with_html_dir; 21029else 21030 with_html_dir='${datadir}/gtk-doc/html' 21031fi 21032 21033 HTML_DIR="$with_html_dir" 21034 21035 21036 # Check whether --enable-gtk-doc was given. 21037if test "${enable_gtk_doc+set}" = set; then 21038 enableval=$enable_gtk_doc; 21039else 21040 enable_gtk_doc=no 21041fi 21042 21043 21044 have_gtk_doc=no 21045 if test x$enable_gtk_doc = xyes; then 21046 if test -z "$PKG_CONFIG"; then 21047 # Extract the first word of "pkg-config", so it can be a program name with args. 21048set dummy pkg-config; ac_word=$2 21049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21051if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21052 echo $ECHO_N "(cached) $ECHO_C" >&6 21053else 21054 case $PKG_CONFIG in 21055 [\\/]* | ?:[\\/]*) 21056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21057 ;; 21058 *) 21059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21060for as_dir in $PATH 21061do 21062 IFS=$as_save_IFS 21063 test -z "$as_dir" && as_dir=. 21064 for ac_exec_ext in '' $ac_executable_extensions; do 21065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21068 break 2 21069 fi 21070done 21071done 21072IFS=$as_save_IFS 21073 21074 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21075 ;; 21076esac 21077fi 21078PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21079if test -n "$PKG_CONFIG"; then 21080 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21081echo "${ECHO_T}$PKG_CONFIG" >&6; } 21082else 21083 { echo "$as_me:$LINENO: result: no" >&5 21084echo "${ECHO_T}no" >&6; } 21085fi 21086 21087 21088 fi 21089 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then 21090 have_gtk_doc=yes 21091 fi 21092 21093 gtk_doc_min_version=1.4 21094 if test "$have_gtk_doc" = yes; then 21095 { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5 21096echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; } 21097 if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then 21098 { echo "$as_me:$LINENO: result: yes" >&5 21099echo "${ECHO_T}yes" >&6; } 21100 else 21101 { echo "$as_me:$LINENO: result: no" >&5 21102echo "${ECHO_T}no" >&6; } 21103 have_gtk_doc=no 21104 fi 21105 fi 21106 21107 if test "$have_gtk_doc" != yes; then 21108 enable_gtk_doc=no 21109 fi 21110 fi 21111 21112 if test x$enable_gtk_doc = xyes; then 21113 ENABLE_GTK_DOC_TRUE= 21114 ENABLE_GTK_DOC_FALSE='#' 21115else 21116 ENABLE_GTK_DOC_TRUE='#' 21117 ENABLE_GTK_DOC_FALSE= 21118fi 21119 21120 if test -n "$LIBTOOL"; then 21121 GTK_DOC_USE_LIBTOOL_TRUE= 21122 GTK_DOC_USE_LIBTOOL_FALSE='#' 21123else 21124 GTK_DOC_USE_LIBTOOL_TRUE='#' 21125 GTK_DOC_USE_LIBTOOL_FALSE= 21126fi 21127 21128 21129 21130 21131GETTEXT_PACKAGE=tomoe-gtk 21132 21133 21134cat >>confdefs.h <<_ACEOF 21135#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 21136_ACEOF 21137 21138 21139ALL_LINGUAS="ja" 21140 21141 21142for ac_header in locale.h 21143do 21144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21146 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21149 echo $ECHO_N "(cached) $ECHO_C" >&6 21150fi 21151ac_res=`eval echo '${'$as_ac_Header'}'` 21152 { echo "$as_me:$LINENO: result: $ac_res" >&5 21153echo "${ECHO_T}$ac_res" >&6; } 21154else 21155 # Is the header compilable? 21156{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21158cat >conftest.$ac_ext <<_ACEOF 21159/* confdefs.h. */ 21160_ACEOF 21161cat confdefs.h >>conftest.$ac_ext 21162cat >>conftest.$ac_ext <<_ACEOF 21163/* end confdefs.h. */ 21164$ac_includes_default 21165#include <$ac_header> 21166_ACEOF 21167rm -f conftest.$ac_objext 21168if { (ac_try="$ac_compile" 21169case "(($ac_try" in 21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21171 *) ac_try_echo=$ac_try;; 21172esac 21173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21174 (eval "$ac_compile") 2>conftest.er1 21175 ac_status=$? 21176 grep -v '^ *+' conftest.er1 >conftest.err 21177 rm -f conftest.er1 21178 cat conftest.err >&5 21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21180 (exit $ac_status); } && { 21181 test -z "$ac_c_werror_flag" || 21182 test ! -s conftest.err 21183 } && test -s conftest.$ac_objext; then 21184 ac_header_compiler=yes 21185else 21186 echo "$as_me: failed program was:" >&5 21187sed 's/^/| /' conftest.$ac_ext >&5 21188 21189 ac_header_compiler=no 21190fi 21191 21192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21194echo "${ECHO_T}$ac_header_compiler" >&6; } 21195 21196# Is the header present? 21197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21199cat >conftest.$ac_ext <<_ACEOF 21200/* confdefs.h. */ 21201_ACEOF 21202cat confdefs.h >>conftest.$ac_ext 21203cat >>conftest.$ac_ext <<_ACEOF 21204/* end confdefs.h. */ 21205#include <$ac_header> 21206_ACEOF 21207if { (ac_try="$ac_cpp conftest.$ac_ext" 21208case "(($ac_try" in 21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21210 *) ac_try_echo=$ac_try;; 21211esac 21212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21214 ac_status=$? 21215 grep -v '^ *+' conftest.er1 >conftest.err 21216 rm -f conftest.er1 21217 cat conftest.err >&5 21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21219 (exit $ac_status); } >/dev/null && { 21220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21221 test ! -s conftest.err 21222 }; then 21223 ac_header_preproc=yes 21224else 21225 echo "$as_me: failed program was:" >&5 21226sed 's/^/| /' conftest.$ac_ext >&5 21227 21228 ac_header_preproc=no 21229fi 21230 21231rm -f conftest.err conftest.$ac_ext 21232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21233echo "${ECHO_T}$ac_header_preproc" >&6; } 21234 21235# So? What about this header? 21236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21237 yes:no: ) 21238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21242 ac_header_preproc=yes 21243 ;; 21244 no:yes:* ) 21245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21257 ( cat <<\_ASBOX 21258## ---------------------------------------- ## 21259## Report this to daih@users.sourceforge.jp ## 21260## ---------------------------------------- ## 21261_ASBOX 21262 ) | sed "s/^/$as_me: WARNING: /" >&2 21263 ;; 21264esac 21265{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21268 echo $ECHO_N "(cached) $ECHO_C" >&6 21269else 21270 eval "$as_ac_Header=\$ac_header_preproc" 21271fi 21272ac_res=`eval echo '${'$as_ac_Header'}'` 21273 { echo "$as_me:$LINENO: result: $ac_res" >&5 21274echo "${ECHO_T}$ac_res" >&6; } 21275 21276fi 21277if test `eval echo '${'$as_ac_Header'}'` = yes; then 21278 cat >>confdefs.h <<_ACEOF 21279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21280_ACEOF 21281 21282fi 21283 21284done 21285 21286 if test $ac_cv_header_locale_h = yes; then 21287 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 21288echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 21289if test "${am_cv_val_LC_MESSAGES+set}" = set; then 21290 echo $ECHO_N "(cached) $ECHO_C" >&6 21291else 21292 cat >conftest.$ac_ext <<_ACEOF 21293/* confdefs.h. */ 21294_ACEOF 21295cat confdefs.h >>conftest.$ac_ext 21296cat >>conftest.$ac_ext <<_ACEOF 21297/* end confdefs.h. */ 21298#include <locale.h> 21299int 21300main () 21301{ 21302return LC_MESSAGES 21303 ; 21304 return 0; 21305} 21306_ACEOF 21307rm -f conftest.$ac_objext conftest$ac_exeext 21308if { (ac_try="$ac_link" 21309case "(($ac_try" in 21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21311 *) ac_try_echo=$ac_try;; 21312esac 21313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21314 (eval "$ac_link") 2>conftest.er1 21315 ac_status=$? 21316 grep -v '^ *+' conftest.er1 >conftest.err 21317 rm -f conftest.er1 21318 cat conftest.err >&5 21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21320 (exit $ac_status); } && { 21321 test -z "$ac_c_werror_flag" || 21322 test ! -s conftest.err 21323 } && test -s conftest$ac_exeext && 21324 $as_test_x conftest$ac_exeext; then 21325 am_cv_val_LC_MESSAGES=yes 21326else 21327 echo "$as_me: failed program was:" >&5 21328sed 's/^/| /' conftest.$ac_ext >&5 21329 21330 am_cv_val_LC_MESSAGES=no 21331fi 21332 21333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21334 conftest$ac_exeext conftest.$ac_ext 21335fi 21336{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 21337echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 21338 if test $am_cv_val_LC_MESSAGES = yes; then 21339 21340cat >>confdefs.h <<\_ACEOF 21341#define HAVE_LC_MESSAGES 1 21342_ACEOF 21343 21344 fi 21345 fi 21346 USE_NLS=yes 21347 21348 21349 gt_cv_have_gettext=no 21350 21351 CATOBJEXT=NONE 21352 XGETTEXT=: 21353 INTLLIBS= 21354 21355 if test "${ac_cv_header_libintl_h+set}" = set; then 21356 { echo "$as_me:$LINENO: checking for libintl.h" >&5 21357echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 21358if test "${ac_cv_header_libintl_h+set}" = set; then 21359 echo $ECHO_N "(cached) $ECHO_C" >&6 21360fi 21361{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 21362echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 21363else 21364 # Is the header compilable? 21365{ echo "$as_me:$LINENO: checking libintl.h usability" >&5 21366echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } 21367cat >conftest.$ac_ext <<_ACEOF 21368/* confdefs.h. */ 21369_ACEOF 21370cat confdefs.h >>conftest.$ac_ext 21371cat >>conftest.$ac_ext <<_ACEOF 21372/* end confdefs.h. */ 21373$ac_includes_default 21374#include <libintl.h> 21375_ACEOF 21376rm -f conftest.$ac_objext 21377if { (ac_try="$ac_compile" 21378case "(($ac_try" in 21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21380 *) ac_try_echo=$ac_try;; 21381esac 21382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21383 (eval "$ac_compile") 2>conftest.er1 21384 ac_status=$? 21385 grep -v '^ *+' conftest.er1 >conftest.err 21386 rm -f conftest.er1 21387 cat conftest.err >&5 21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21389 (exit $ac_status); } && { 21390 test -z "$ac_c_werror_flag" || 21391 test ! -s conftest.err 21392 } && test -s conftest.$ac_objext; then 21393 ac_header_compiler=yes 21394else 21395 echo "$as_me: failed program was:" >&5 21396sed 's/^/| /' conftest.$ac_ext >&5 21397 21398 ac_header_compiler=no 21399fi 21400 21401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21403echo "${ECHO_T}$ac_header_compiler" >&6; } 21404 21405# Is the header present? 21406{ echo "$as_me:$LINENO: checking libintl.h presence" >&5 21407echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } 21408cat >conftest.$ac_ext <<_ACEOF 21409/* confdefs.h. */ 21410_ACEOF 21411cat confdefs.h >>conftest.$ac_ext 21412cat >>conftest.$ac_ext <<_ACEOF 21413/* end confdefs.h. */ 21414#include <libintl.h> 21415_ACEOF 21416if { (ac_try="$ac_cpp conftest.$ac_ext" 21417case "(($ac_try" in 21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21419 *) ac_try_echo=$ac_try;; 21420esac 21421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21423 ac_status=$? 21424 grep -v '^ *+' conftest.er1 >conftest.err 21425 rm -f conftest.er1 21426 cat conftest.err >&5 21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21428 (exit $ac_status); } >/dev/null && { 21429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21430 test ! -s conftest.err 21431 }; then 21432 ac_header_preproc=yes 21433else 21434 echo "$as_me: failed program was:" >&5 21435sed 's/^/| /' conftest.$ac_ext >&5 21436 21437 ac_header_preproc=no 21438fi 21439 21440rm -f conftest.err conftest.$ac_ext 21441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21442echo "${ECHO_T}$ac_header_preproc" >&6; } 21443 21444# So? What about this header? 21445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21446 yes:no: ) 21447 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 21448echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21449 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 21450echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 21451 ac_header_preproc=yes 21452 ;; 21453 no:yes:* ) 21454 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 21455echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 21456 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 21457echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 21458 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 21459echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 21460 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 21461echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 21462 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 21463echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 21464 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 21465echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 21466 ( cat <<\_ASBOX 21467## ---------------------------------------- ## 21468## Report this to daih@users.sourceforge.jp ## 21469## ---------------------------------------- ## 21470_ASBOX 21471 ) | sed "s/^/$as_me: WARNING: /" >&2 21472 ;; 21473esac 21474{ echo "$as_me:$LINENO: checking for libintl.h" >&5 21475echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 21476if test "${ac_cv_header_libintl_h+set}" = set; then 21477 echo $ECHO_N "(cached) $ECHO_C" >&6 21478else 21479 ac_cv_header_libintl_h=$ac_header_preproc 21480fi 21481{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 21482echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 21483 21484fi 21485if test $ac_cv_header_libintl_h = yes; then 21486 gt_cv_func_dgettext_libintl="no" 21487 libintl_extra_libs="" 21488 21489 # 21490 # First check in libc 21491 # 21492 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 21493echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } 21494if test "${gt_cv_func_ngettext_libc+set}" = set; then 21495 echo $ECHO_N "(cached) $ECHO_C" >&6 21496else 21497 cat >conftest.$ac_ext <<_ACEOF 21498/* confdefs.h. */ 21499_ACEOF 21500cat confdefs.h >>conftest.$ac_ext 21501cat >>conftest.$ac_ext <<_ACEOF 21502/* end confdefs.h. */ 21503 21504#include <libintl.h> 21505 21506int 21507main () 21508{ 21509return !ngettext ("","", 1) 21510 ; 21511 return 0; 21512} 21513_ACEOF 21514rm -f conftest.$ac_objext conftest$ac_exeext 21515if { (ac_try="$ac_link" 21516case "(($ac_try" in 21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21518 *) ac_try_echo=$ac_try;; 21519esac 21520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21521 (eval "$ac_link") 2>conftest.er1 21522 ac_status=$? 21523 grep -v '^ *+' conftest.er1 >conftest.err 21524 rm -f conftest.er1 21525 cat conftest.err >&5 21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21527 (exit $ac_status); } && { 21528 test -z "$ac_c_werror_flag" || 21529 test ! -s conftest.err 21530 } && test -s conftest$ac_exeext && 21531 $as_test_x conftest$ac_exeext; then 21532 gt_cv_func_ngettext_libc=yes 21533else 21534 echo "$as_me: failed program was:" >&5 21535sed 's/^/| /' conftest.$ac_ext >&5 21536 21537 gt_cv_func_ngettext_libc=no 21538fi 21539 21540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21541 conftest$ac_exeext conftest.$ac_ext 21542 21543fi 21544{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 21545echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } 21546 21547 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 21548 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 21549echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } 21550if test "${gt_cv_func_dgettext_libc+set}" = set; then 21551 echo $ECHO_N "(cached) $ECHO_C" >&6 21552else 21553 cat >conftest.$ac_ext <<_ACEOF 21554/* confdefs.h. */ 21555_ACEOF 21556cat confdefs.h >>conftest.$ac_ext 21557cat >>conftest.$ac_ext <<_ACEOF 21558/* end confdefs.h. */ 21559 21560#include <libintl.h> 21561 21562int 21563main () 21564{ 21565return !dgettext ("","") 21566 ; 21567 return 0; 21568} 21569_ACEOF 21570rm -f conftest.$ac_objext conftest$ac_exeext 21571if { (ac_try="$ac_link" 21572case "(($ac_try" in 21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21574 *) ac_try_echo=$ac_try;; 21575esac 21576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21577 (eval "$ac_link") 2>conftest.er1 21578 ac_status=$? 21579 grep -v '^ *+' conftest.er1 >conftest.err 21580 rm -f conftest.er1 21581 cat conftest.err >&5 21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21583 (exit $ac_status); } && { 21584 test -z "$ac_c_werror_flag" || 21585 test ! -s conftest.err 21586 } && test -s conftest$ac_exeext && 21587 $as_test_x conftest$ac_exeext; then 21588 gt_cv_func_dgettext_libc=yes 21589else 21590 echo "$as_me: failed program was:" >&5 21591sed 's/^/| /' conftest.$ac_ext >&5 21592 21593 gt_cv_func_dgettext_libc=no 21594fi 21595 21596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21597 conftest$ac_exeext conftest.$ac_ext 21598 21599fi 21600{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 21601echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } 21602 fi 21603 21604 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 21605 21606for ac_func in bind_textdomain_codeset 21607do 21608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21609{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21612 echo $ECHO_N "(cached) $ECHO_C" >&6 21613else 21614 cat >conftest.$ac_ext <<_ACEOF 21615/* confdefs.h. */ 21616_ACEOF 21617cat confdefs.h >>conftest.$ac_ext 21618cat >>conftest.$ac_ext <<_ACEOF 21619/* end confdefs.h. */ 21620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21621 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21622#define $ac_func innocuous_$ac_func 21623 21624/* System header to define __stub macros and hopefully few prototypes, 21625 which can conflict with char $ac_func (); below. 21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21627 <limits.h> exists even on freestanding compilers. */ 21628 21629#ifdef __STDC__ 21630# include <limits.h> 21631#else 21632# include <assert.h> 21633#endif 21634 21635#undef $ac_func 21636 21637/* Override any GCC internal prototype to avoid an error. 21638 Use char because int might match the return type of a GCC 21639 builtin and then its argument prototype would still apply. */ 21640#ifdef __cplusplus 21641extern "C" 21642#endif 21643char $ac_func (); 21644/* The GNU C library defines this for functions which it implements 21645 to always fail with ENOSYS. Some functions are actually named 21646 something starting with __ and the normal name is an alias. */ 21647#if defined __stub_$ac_func || defined __stub___$ac_func 21648choke me 21649#endif 21650 21651int 21652main () 21653{ 21654return $ac_func (); 21655 ; 21656 return 0; 21657} 21658_ACEOF 21659rm -f conftest.$ac_objext conftest$ac_exeext 21660if { (ac_try="$ac_link" 21661case "(($ac_try" in 21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21663 *) ac_try_echo=$ac_try;; 21664esac 21665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21666 (eval "$ac_link") 2>conftest.er1 21667 ac_status=$? 21668 grep -v '^ *+' conftest.er1 >conftest.err 21669 rm -f conftest.er1 21670 cat conftest.err >&5 21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21672 (exit $ac_status); } && { 21673 test -z "$ac_c_werror_flag" || 21674 test ! -s conftest.err 21675 } && test -s conftest$ac_exeext && 21676 $as_test_x conftest$ac_exeext; then 21677 eval "$as_ac_var=yes" 21678else 21679 echo "$as_me: failed program was:" >&5 21680sed 's/^/| /' conftest.$ac_ext >&5 21681 21682 eval "$as_ac_var=no" 21683fi 21684 21685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21686 conftest$ac_exeext conftest.$ac_ext 21687fi 21688ac_res=`eval echo '${'$as_ac_var'}'` 21689 { echo "$as_me:$LINENO: result: $ac_res" >&5 21690echo "${ECHO_T}$ac_res" >&6; } 21691if test `eval echo '${'$as_ac_var'}'` = yes; then 21692 cat >>confdefs.h <<_ACEOF 21693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21694_ACEOF 21695 21696fi 21697done 21698 21699 fi 21700 21701 # 21702 # If we don't have everything we want, check in libintl 21703 # 21704 if test "$gt_cv_func_dgettext_libc" != "yes" \ 21705 || test "$gt_cv_func_ngettext_libc" != "yes" \ 21706 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 21707 21708 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 21709echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } 21710if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 21711 echo $ECHO_N "(cached) $ECHO_C" >&6 21712else 21713 ac_check_lib_save_LIBS=$LIBS 21714LIBS="-lintl $LIBS" 21715cat >conftest.$ac_ext <<_ACEOF 21716/* confdefs.h. */ 21717_ACEOF 21718cat confdefs.h >>conftest.$ac_ext 21719cat >>conftest.$ac_ext <<_ACEOF 21720/* end confdefs.h. */ 21721 21722/* Override any GCC internal prototype to avoid an error. 21723 Use char because int might match the return type of a GCC 21724 builtin and then its argument prototype would still apply. */ 21725#ifdef __cplusplus 21726extern "C" 21727#endif 21728char bindtextdomain (); 21729int 21730main () 21731{ 21732return bindtextdomain (); 21733 ; 21734 return 0; 21735} 21736_ACEOF 21737rm -f conftest.$ac_objext conftest$ac_exeext 21738if { (ac_try="$ac_link" 21739case "(($ac_try" in 21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21741 *) ac_try_echo=$ac_try;; 21742esac 21743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21744 (eval "$ac_link") 2>conftest.er1 21745 ac_status=$? 21746 grep -v '^ *+' conftest.er1 >conftest.err 21747 rm -f conftest.er1 21748 cat conftest.err >&5 21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21750 (exit $ac_status); } && { 21751 test -z "$ac_c_werror_flag" || 21752 test ! -s conftest.err 21753 } && test -s conftest$ac_exeext && 21754 $as_test_x conftest$ac_exeext; then 21755 ac_cv_lib_intl_bindtextdomain=yes 21756else 21757 echo "$as_me: failed program was:" >&5 21758sed 's/^/| /' conftest.$ac_ext >&5 21759 21760 ac_cv_lib_intl_bindtextdomain=no 21761fi 21762 21763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21764 conftest$ac_exeext conftest.$ac_ext 21765LIBS=$ac_check_lib_save_LIBS 21766fi 21767{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 21768echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } 21769if test $ac_cv_lib_intl_bindtextdomain = yes; then 21770 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 21771echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 21772if test "${ac_cv_lib_intl_ngettext+set}" = set; then 21773 echo $ECHO_N "(cached) $ECHO_C" >&6 21774else 21775 ac_check_lib_save_LIBS=$LIBS 21776LIBS="-lintl $LIBS" 21777cat >conftest.$ac_ext <<_ACEOF 21778/* confdefs.h. */ 21779_ACEOF 21780cat confdefs.h >>conftest.$ac_ext 21781cat >>conftest.$ac_ext <<_ACEOF 21782/* end confdefs.h. */ 21783 21784/* Override any GCC internal prototype to avoid an error. 21785 Use char because int might match the return type of a GCC 21786 builtin and then its argument prototype would still apply. */ 21787#ifdef __cplusplus 21788extern "C" 21789#endif 21790char ngettext (); 21791int 21792main () 21793{ 21794return ngettext (); 21795 ; 21796 return 0; 21797} 21798_ACEOF 21799rm -f conftest.$ac_objext conftest$ac_exeext 21800if { (ac_try="$ac_link" 21801case "(($ac_try" in 21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21803 *) ac_try_echo=$ac_try;; 21804esac 21805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21806 (eval "$ac_link") 2>conftest.er1 21807 ac_status=$? 21808 grep -v '^ *+' conftest.er1 >conftest.err 21809 rm -f conftest.er1 21810 cat conftest.err >&5 21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21812 (exit $ac_status); } && { 21813 test -z "$ac_c_werror_flag" || 21814 test ! -s conftest.err 21815 } && test -s conftest$ac_exeext && 21816 $as_test_x conftest$ac_exeext; then 21817 ac_cv_lib_intl_ngettext=yes 21818else 21819 echo "$as_me: failed program was:" >&5 21820sed 's/^/| /' conftest.$ac_ext >&5 21821 21822 ac_cv_lib_intl_ngettext=no 21823fi 21824 21825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21826 conftest$ac_exeext conftest.$ac_ext 21827LIBS=$ac_check_lib_save_LIBS 21828fi 21829{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 21830echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 21831if test $ac_cv_lib_intl_ngettext = yes; then 21832 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 21833echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } 21834if test "${ac_cv_lib_intl_dgettext+set}" = set; then 21835 echo $ECHO_N "(cached) $ECHO_C" >&6 21836else 21837 ac_check_lib_save_LIBS=$LIBS 21838LIBS="-lintl $LIBS" 21839cat >conftest.$ac_ext <<_ACEOF 21840/* confdefs.h. */ 21841_ACEOF 21842cat confdefs.h >>conftest.$ac_ext 21843cat >>conftest.$ac_ext <<_ACEOF 21844/* end confdefs.h. */ 21845 21846/* Override any GCC internal prototype to avoid an error. 21847 Use char because int might match the return type of a GCC 21848 builtin and then its argument prototype would still apply. */ 21849#ifdef __cplusplus 21850extern "C" 21851#endif 21852char dgettext (); 21853int 21854main () 21855{ 21856return dgettext (); 21857 ; 21858 return 0; 21859} 21860_ACEOF 21861rm -f conftest.$ac_objext conftest$ac_exeext 21862if { (ac_try="$ac_link" 21863case "(($ac_try" in 21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21865 *) ac_try_echo=$ac_try;; 21866esac 21867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21868 (eval "$ac_link") 2>conftest.er1 21869 ac_status=$? 21870 grep -v '^ *+' conftest.er1 >conftest.err 21871 rm -f conftest.er1 21872 cat conftest.err >&5 21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21874 (exit $ac_status); } && { 21875 test -z "$ac_c_werror_flag" || 21876 test ! -s conftest.err 21877 } && test -s conftest$ac_exeext && 21878 $as_test_x conftest$ac_exeext; then 21879 ac_cv_lib_intl_dgettext=yes 21880else 21881 echo "$as_me: failed program was:" >&5 21882sed 's/^/| /' conftest.$ac_ext >&5 21883 21884 ac_cv_lib_intl_dgettext=no 21885fi 21886 21887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21888 conftest$ac_exeext conftest.$ac_ext 21889LIBS=$ac_check_lib_save_LIBS 21890fi 21891{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 21892echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } 21893if test $ac_cv_lib_intl_dgettext = yes; then 21894 gt_cv_func_dgettext_libintl=yes 21895fi 21896 21897fi 21898 21899fi 21900 21901 21902 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 21903 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 21904echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } 21905 { echo "$as_me:$LINENO: result: " >&5 21906echo "${ECHO_T}" >&6; } 21907 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 21908echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 21909if test "${ac_cv_lib_intl_ngettext+set}" = set; then 21910 echo $ECHO_N "(cached) $ECHO_C" >&6 21911else 21912 ac_check_lib_save_LIBS=$LIBS 21913LIBS="-lintl -liconv $LIBS" 21914cat >conftest.$ac_ext <<_ACEOF 21915/* confdefs.h. */ 21916_ACEOF 21917cat confdefs.h >>conftest.$ac_ext 21918cat >>conftest.$ac_ext <<_ACEOF 21919/* end confdefs.h. */ 21920 21921/* Override any GCC internal prototype to avoid an error. 21922 Use char because int might match the return type of a GCC 21923 builtin and then its argument prototype would still apply. */ 21924#ifdef __cplusplus 21925extern "C" 21926#endif 21927char ngettext (); 21928int 21929main () 21930{ 21931return ngettext (); 21932 ; 21933 return 0; 21934} 21935_ACEOF 21936rm -f conftest.$ac_objext conftest$ac_exeext 21937if { (ac_try="$ac_link" 21938case "(($ac_try" in 21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21940 *) ac_try_echo=$ac_try;; 21941esac 21942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21943 (eval "$ac_link") 2>conftest.er1 21944 ac_status=$? 21945 grep -v '^ *+' conftest.er1 >conftest.err 21946 rm -f conftest.er1 21947 cat conftest.err >&5 21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21949 (exit $ac_status); } && { 21950 test -z "$ac_c_werror_flag" || 21951 test ! -s conftest.err 21952 } && test -s conftest$ac_exeext && 21953 $as_test_x conftest$ac_exeext; then 21954 ac_cv_lib_intl_ngettext=yes 21955else 21956 echo "$as_me: failed program was:" >&5 21957sed 's/^/| /' conftest.$ac_ext >&5 21958 21959 ac_cv_lib_intl_ngettext=no 21960fi 21961 21962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21963 conftest$ac_exeext conftest.$ac_ext 21964LIBS=$ac_check_lib_save_LIBS 21965fi 21966{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 21967echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 21968if test $ac_cv_lib_intl_ngettext = yes; then 21969 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 21970echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } 21971if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 21972 echo $ECHO_N "(cached) $ECHO_C" >&6 21973else 21974 ac_check_lib_save_LIBS=$LIBS 21975LIBS="-lintl -liconv $LIBS" 21976cat >conftest.$ac_ext <<_ACEOF 21977/* confdefs.h. */ 21978_ACEOF 21979cat confdefs.h >>conftest.$ac_ext 21980cat >>conftest.$ac_ext <<_ACEOF 21981/* end confdefs.h. */ 21982 21983/* Override any GCC internal prototype to avoid an error. 21984 Use char because int might match the return type of a GCC 21985 builtin and then its argument prototype would still apply. */ 21986#ifdef __cplusplus 21987extern "C" 21988#endif 21989char dcgettext (); 21990int 21991main () 21992{ 21993return dcgettext (); 21994 ; 21995 return 0; 21996} 21997_ACEOF 21998rm -f conftest.$ac_objext conftest$ac_exeext 21999if { (ac_try="$ac_link" 22000case "(($ac_try" in 22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22002 *) ac_try_echo=$ac_try;; 22003esac 22004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22005 (eval "$ac_link") 2>conftest.er1 22006 ac_status=$? 22007 grep -v '^ *+' conftest.er1 >conftest.err 22008 rm -f conftest.er1 22009 cat conftest.err >&5 22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22011 (exit $ac_status); } && { 22012 test -z "$ac_c_werror_flag" || 22013 test ! -s conftest.err 22014 } && test -s conftest$ac_exeext && 22015 $as_test_x conftest$ac_exeext; then 22016 ac_cv_lib_intl_dcgettext=yes 22017else 22018 echo "$as_me: failed program was:" >&5 22019sed 's/^/| /' conftest.$ac_ext >&5 22020 22021 ac_cv_lib_intl_dcgettext=no 22022fi 22023 22024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22025 conftest$ac_exeext conftest.$ac_ext 22026LIBS=$ac_check_lib_save_LIBS 22027fi 22028{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 22029echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } 22030if test $ac_cv_lib_intl_dcgettext = yes; then 22031 gt_cv_func_dgettext_libintl=yes 22032 libintl_extra_libs=-liconv 22033else 22034 : 22035fi 22036 22037else 22038 : 22039fi 22040 22041 fi 22042 22043 # 22044 # If we found libintl, then check in it for bind_textdomain_codeset(); 22045 # we'll prefer libc if neither have bind_textdomain_codeset(), 22046 # and both have dgettext and ngettext 22047 # 22048 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 22049 glib_save_LIBS="$LIBS" 22050 LIBS="$LIBS -lintl $libintl_extra_libs" 22051 unset ac_cv_func_bind_textdomain_codeset 22052 22053for ac_func in bind_textdomain_codeset 22054do 22055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22056{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22059 echo $ECHO_N "(cached) $ECHO_C" >&6 22060else 22061 cat >conftest.$ac_ext <<_ACEOF 22062/* confdefs.h. */ 22063_ACEOF 22064cat confdefs.h >>conftest.$ac_ext 22065cat >>conftest.$ac_ext <<_ACEOF 22066/* end confdefs.h. */ 22067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22068 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22069#define $ac_func innocuous_$ac_func 22070 22071/* System header to define __stub macros and hopefully few prototypes, 22072 which can conflict with char $ac_func (); below. 22073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22074 <limits.h> exists even on freestanding compilers. */ 22075 22076#ifdef __STDC__ 22077# include <limits.h> 22078#else 22079# include <assert.h> 22080#endif 22081 22082#undef $ac_func 22083 22084/* Override any GCC internal prototype to avoid an error. 22085 Use char because int might match the return type of a GCC 22086 builtin and then its argument prototype would still apply. */ 22087#ifdef __cplusplus 22088extern "C" 22089#endif 22090char $ac_func (); 22091/* The GNU C library defines this for functions which it implements 22092 to always fail with ENOSYS. Some functions are actually named 22093 something starting with __ and the normal name is an alias. */ 22094#if defined __stub_$ac_func || defined __stub___$ac_func 22095choke me 22096#endif 22097 22098int 22099main () 22100{ 22101return $ac_func (); 22102 ; 22103 return 0; 22104} 22105_ACEOF 22106rm -f conftest.$ac_objext conftest$ac_exeext 22107if { (ac_try="$ac_link" 22108case "(($ac_try" in 22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22110 *) ac_try_echo=$ac_try;; 22111esac 22112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22113 (eval "$ac_link") 2>conftest.er1 22114 ac_status=$? 22115 grep -v '^ *+' conftest.er1 >conftest.err 22116 rm -f conftest.er1 22117 cat conftest.err >&5 22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22119 (exit $ac_status); } && { 22120 test -z "$ac_c_werror_flag" || 22121 test ! -s conftest.err 22122 } && test -s conftest$ac_exeext && 22123 $as_test_x conftest$ac_exeext; then 22124 eval "$as_ac_var=yes" 22125else 22126 echo "$as_me: failed program was:" >&5 22127sed 's/^/| /' conftest.$ac_ext >&5 22128 22129 eval "$as_ac_var=no" 22130fi 22131 22132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22133 conftest$ac_exeext conftest.$ac_ext 22134fi 22135ac_res=`eval echo '${'$as_ac_var'}'` 22136 { echo "$as_me:$LINENO: result: $ac_res" >&5 22137echo "${ECHO_T}$ac_res" >&6; } 22138if test `eval echo '${'$as_ac_var'}'` = yes; then 22139 cat >>confdefs.h <<_ACEOF 22140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22141_ACEOF 22142 22143fi 22144done 22145 22146 LIBS="$glib_save_LIBS" 22147 22148 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 22149 gt_cv_func_dgettext_libc=no 22150 else 22151 if test "$gt_cv_func_dgettext_libc" = "yes" \ 22152 && test "$gt_cv_func_ngettext_libc" = "yes"; then 22153 gt_cv_func_dgettext_libintl=no 22154 fi 22155 fi 22156 fi 22157 fi 22158 22159 if test "$gt_cv_func_dgettext_libc" = "yes" \ 22160 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 22161 gt_cv_have_gettext=yes 22162 fi 22163 22164 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 22165 INTLLIBS="-lintl $libintl_extra_libs" 22166 fi 22167 22168 if test "$gt_cv_have_gettext" = "yes"; then 22169 22170cat >>confdefs.h <<\_ACEOF 22171#define HAVE_GETTEXT 1 22172_ACEOF 22173 22174 # Extract the first word of "msgfmt", so it can be a program name with args. 22175set dummy msgfmt; ac_word=$2 22176{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22178if test "${ac_cv_path_MSGFMT+set}" = set; then 22179 echo $ECHO_N "(cached) $ECHO_C" >&6 22180else 22181 case "$MSGFMT" in 22182 /*) 22183 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 22184 ;; 22185 *) 22186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 22187 for ac_dir in $PATH; do 22188 test -z "$ac_dir" && ac_dir=. 22189 if test -f $ac_dir/$ac_word; then 22190 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 22191 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 22192 break 22193 fi 22194 fi 22195 done 22196 IFS="$ac_save_ifs" 22197 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 22198 ;; 22199esac 22200fi 22201MSGFMT="$ac_cv_path_MSGFMT" 22202if test "$MSGFMT" != "no"; then 22203 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 22204echo "${ECHO_T}$MSGFMT" >&6; } 22205else 22206 { echo "$as_me:$LINENO: result: no" >&5 22207echo "${ECHO_T}no" >&6; } 22208fi 22209 if test "$MSGFMT" != "no"; then 22210 glib_save_LIBS="$LIBS" 22211 LIBS="$LIBS $INTLLIBS" 22212 22213for ac_func in dcgettext 22214do 22215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22216{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22219 echo $ECHO_N "(cached) $ECHO_C" >&6 22220else 22221 cat >conftest.$ac_ext <<_ACEOF 22222/* confdefs.h. */ 22223_ACEOF 22224cat confdefs.h >>conftest.$ac_ext 22225cat >>conftest.$ac_ext <<_ACEOF 22226/* end confdefs.h. */ 22227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22229#define $ac_func innocuous_$ac_func 22230 22231/* System header to define __stub macros and hopefully few prototypes, 22232 which can conflict with char $ac_func (); below. 22233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22234 <limits.h> exists even on freestanding compilers. */ 22235 22236#ifdef __STDC__ 22237# include <limits.h> 22238#else 22239# include <assert.h> 22240#endif 22241 22242#undef $ac_func 22243 22244/* Override any GCC internal prototype to avoid an error. 22245 Use char because int might match the return type of a GCC 22246 builtin and then its argument prototype would still apply. */ 22247#ifdef __cplusplus 22248extern "C" 22249#endif 22250char $ac_func (); 22251/* The GNU C library defines this for functions which it implements 22252 to always fail with ENOSYS. Some functions are actually named 22253 something starting with __ and the normal name is an alias. */ 22254#if defined __stub_$ac_func || defined __stub___$ac_func 22255choke me 22256#endif 22257 22258int 22259main () 22260{ 22261return $ac_func (); 22262 ; 22263 return 0; 22264} 22265_ACEOF 22266rm -f conftest.$ac_objext conftest$ac_exeext 22267if { (ac_try="$ac_link" 22268case "(($ac_try" in 22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22270 *) ac_try_echo=$ac_try;; 22271esac 22272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22273 (eval "$ac_link") 2>conftest.er1 22274 ac_status=$? 22275 grep -v '^ *+' conftest.er1 >conftest.err 22276 rm -f conftest.er1 22277 cat conftest.err >&5 22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22279 (exit $ac_status); } && { 22280 test -z "$ac_c_werror_flag" || 22281 test ! -s conftest.err 22282 } && test -s conftest$ac_exeext && 22283 $as_test_x conftest$ac_exeext; then 22284 eval "$as_ac_var=yes" 22285else 22286 echo "$as_me: failed program was:" >&5 22287sed 's/^/| /' conftest.$ac_ext >&5 22288 22289 eval "$as_ac_var=no" 22290fi 22291 22292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22293 conftest$ac_exeext conftest.$ac_ext 22294fi 22295ac_res=`eval echo '${'$as_ac_var'}'` 22296 { echo "$as_me:$LINENO: result: $ac_res" >&5 22297echo "${ECHO_T}$ac_res" >&6; } 22298if test `eval echo '${'$as_ac_var'}'` = yes; then 22299 cat >>confdefs.h <<_ACEOF 22300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22301_ACEOF 22302 22303fi 22304done 22305 22306 MSGFMT_OPTS= 22307 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 22308echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } 22309 cat >conftest.foo <<_ACEOF 22310 22311msgid "" 22312msgstr "" 22313"Content-Type: text/plain; charset=UTF-8\n" 22314"Project-Id-Version: test 1.0\n" 22315"PO-Revision-Date: 2007-02-15 12:01+0100\n" 22316"Last-Translator: test <foo@bar.xx>\n" 22317"Language-Team: C <LL@li.org>\n" 22318"MIME-Version: 1.0\n" 22319"Content-Transfer-Encoding: 8bit\n" 22320 22321_ACEOF 22322if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5 22323 (msgfmt -c -o /dev/null conftest.foo) 2>&5 22324 ac_status=$? 22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22326 (exit $ac_status); }; then 22327 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 22328echo "${ECHO_T}yes" >&6; } 22329else { echo "$as_me:$LINENO: result: no" >&5 22330echo "${ECHO_T}no" >&6; } 22331echo "$as_me: failed input was:" >&5 22332sed 's/^/| /' conftest.foo >&5 22333fi 22334 22335 # Extract the first word of "gmsgfmt", so it can be a program name with args. 22336set dummy gmsgfmt; ac_word=$2 22337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22339if test "${ac_cv_path_GMSGFMT+set}" = set; then 22340 echo $ECHO_N "(cached) $ECHO_C" >&6 22341else 22342 case $GMSGFMT in 22343 [\\/]* | ?:[\\/]*) 22344 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 22345 ;; 22346 *) 22347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22348for as_dir in $PATH 22349do 22350 IFS=$as_save_IFS 22351 test -z "$as_dir" && as_dir=. 22352 for ac_exec_ext in '' $ac_executable_extensions; do 22353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22354 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 22355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22356 break 2 22357 fi 22358done 22359done 22360IFS=$as_save_IFS 22361 22362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 22363 ;; 22364esac 22365fi 22366GMSGFMT=$ac_cv_path_GMSGFMT 22367if test -n "$GMSGFMT"; then 22368 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 22369echo "${ECHO_T}$GMSGFMT" >&6; } 22370else 22371 { echo "$as_me:$LINENO: result: no" >&5 22372echo "${ECHO_T}no" >&6; } 22373fi 22374 22375 22376 # Extract the first word of "xgettext", so it can be a program name with args. 22377set dummy xgettext; ac_word=$2 22378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22380if test "${ac_cv_path_XGETTEXT+set}" = set; then 22381 echo $ECHO_N "(cached) $ECHO_C" >&6 22382else 22383 case "$XGETTEXT" in 22384 /*) 22385 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 22386 ;; 22387 *) 22388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 22389 for ac_dir in $PATH; do 22390 test -z "$ac_dir" && ac_dir=. 22391 if test -f $ac_dir/$ac_word; then 22392 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 22393 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 22394 break 22395 fi 22396 fi 22397 done 22398 IFS="$ac_save_ifs" 22399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 22400 ;; 22401esac 22402fi 22403XGETTEXT="$ac_cv_path_XGETTEXT" 22404if test "$XGETTEXT" != ":"; then 22405 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 22406echo "${ECHO_T}$XGETTEXT" >&6; } 22407else 22408 { echo "$as_me:$LINENO: result: no" >&5 22409echo "${ECHO_T}no" >&6; } 22410fi 22411 22412 cat >conftest.$ac_ext <<_ACEOF 22413/* confdefs.h. */ 22414_ACEOF 22415cat confdefs.h >>conftest.$ac_ext 22416cat >>conftest.$ac_ext <<_ACEOF 22417/* end confdefs.h. */ 22418 22419int 22420main () 22421{ 22422extern int _nl_msg_cat_cntr; 22423 return _nl_msg_cat_cntr 22424 ; 22425 return 0; 22426} 22427_ACEOF 22428rm -f conftest.$ac_objext conftest$ac_exeext 22429if { (ac_try="$ac_link" 22430case "(($ac_try" in 22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22432 *) ac_try_echo=$ac_try;; 22433esac 22434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22435 (eval "$ac_link") 2>conftest.er1 22436 ac_status=$? 22437 grep -v '^ *+' conftest.er1 >conftest.err 22438 rm -f conftest.er1 22439 cat conftest.err >&5 22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22441 (exit $ac_status); } && { 22442 test -z "$ac_c_werror_flag" || 22443 test ! -s conftest.err 22444 } && test -s conftest$ac_exeext && 22445 $as_test_x conftest$ac_exeext; then 22446 CATOBJEXT=.gmo 22447 DATADIRNAME=share 22448else 22449 echo "$as_me: failed program was:" >&5 22450sed 's/^/| /' conftest.$ac_ext >&5 22451 22452 case $host in 22453 *-*-solaris*) 22454 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 22455echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } 22456if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 22457 echo $ECHO_N "(cached) $ECHO_C" >&6 22458else 22459 cat >conftest.$ac_ext <<_ACEOF 22460/* confdefs.h. */ 22461_ACEOF 22462cat confdefs.h >>conftest.$ac_ext 22463cat >>conftest.$ac_ext <<_ACEOF 22464/* end confdefs.h. */ 22465/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 22466 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22467#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 22468 22469/* System header to define __stub macros and hopefully few prototypes, 22470 which can conflict with char bind_textdomain_codeset (); below. 22471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22472 <limits.h> exists even on freestanding compilers. */ 22473 22474#ifdef __STDC__ 22475# include <limits.h> 22476#else 22477# include <assert.h> 22478#endif 22479 22480#undef bind_textdomain_codeset 22481 22482/* Override any GCC internal prototype to avoid an error. 22483 Use char because int might match the return type of a GCC 22484 builtin and then its argument prototype would still apply. */ 22485#ifdef __cplusplus 22486extern "C" 22487#endif 22488char bind_textdomain_codeset (); 22489/* The GNU C library defines this for functions which it implements 22490 to always fail with ENOSYS. Some functions are actually named 22491 something starting with __ and the normal name is an alias. */ 22492#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 22493choke me 22494#endif 22495 22496int 22497main () 22498{ 22499return bind_textdomain_codeset (); 22500 ; 22501 return 0; 22502} 22503_ACEOF 22504rm -f conftest.$ac_objext conftest$ac_exeext 22505if { (ac_try="$ac_link" 22506case "(($ac_try" in 22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22508 *) ac_try_echo=$ac_try;; 22509esac 22510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22511 (eval "$ac_link") 2>conftest.er1 22512 ac_status=$? 22513 grep -v '^ *+' conftest.er1 >conftest.err 22514 rm -f conftest.er1 22515 cat conftest.err >&5 22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22517 (exit $ac_status); } && { 22518 test -z "$ac_c_werror_flag" || 22519 test ! -s conftest.err 22520 } && test -s conftest$ac_exeext && 22521 $as_test_x conftest$ac_exeext; then 22522 ac_cv_func_bind_textdomain_codeset=yes 22523else 22524 echo "$as_me: failed program was:" >&5 22525sed 's/^/| /' conftest.$ac_ext >&5 22526 22527 ac_cv_func_bind_textdomain_codeset=no 22528fi 22529 22530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22531 conftest$ac_exeext conftest.$ac_ext 22532fi 22533{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 22534echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } 22535if test $ac_cv_func_bind_textdomain_codeset = yes; then 22536 CATOBJEXT=.gmo 22537 DATADIRNAME=share 22538else 22539 CATOBJEXT=.mo 22540 DATADIRNAME=lib 22541fi 22542 22543 ;; 22544 *) 22545 CATOBJEXT=.mo 22546 DATADIRNAME=lib 22547 ;; 22548 esac 22549fi 22550 22551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22552 conftest$ac_exeext conftest.$ac_ext 22553 LIBS="$glib_save_LIBS" 22554 INSTOBJEXT=.mo 22555 else 22556 gt_cv_have_gettext=no 22557 fi 22558 fi 22559 22560fi 22561 22562 22563 22564 if test "$gt_cv_have_gettext" = "yes" ; then 22565 22566cat >>confdefs.h <<\_ACEOF 22567#define ENABLE_NLS 1 22568_ACEOF 22569 22570 fi 22571 22572 if test "$XGETTEXT" != ":"; then 22573 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 22574 : ; 22575 else 22576 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 22577echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 22578 XGETTEXT=":" 22579 fi 22580 fi 22581 22582 # We need to process the po/ directory. 22583 POSUB=po 22584 22585 ac_config_commands="$ac_config_commands default-1" 22586 22587 22588 for lang in $ALL_LINGUAS; do 22589 GMOFILES="$GMOFILES $lang.gmo" 22590 POFILES="$POFILES $lang.po" 22591 done 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 if test "$gt_cv_have_gettext" = "yes"; then 22606 if test "x$ALL_LINGUAS" = "x"; then 22607 LINGUAS= 22608 else 22609 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 22610echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } 22611 NEW_LINGUAS= 22612 for presentlang in $ALL_LINGUAS; do 22613 useit=no 22614 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 22615 desiredlanguages="$LINGUAS" 22616 else 22617 desiredlanguages="$ALL_LINGUAS" 22618 fi 22619 for desiredlang in $desiredlanguages; do 22620 # Use the presentlang catalog if desiredlang is 22621 # a. equal to presentlang, or 22622 # b. a variant of presentlang (because in this case, 22623 # presentlang can be used as a fallback for messages 22624 # which are not translated in the desiredlang catalog). 22625 case "$desiredlang" in 22626 "$presentlang"*) useit=yes;; 22627 esac 22628 done 22629 if test $useit = yes; then 22630 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 22631 fi 22632 done 22633 LINGUAS=$NEW_LINGUAS 22634 { echo "$as_me:$LINENO: result: $LINGUAS" >&5 22635echo "${ECHO_T}$LINGUAS" >&6; } 22636 fi 22637 22638 if test -n "$LINGUAS"; then 22639 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 22640 fi 22641 fi 22642 22643 MKINSTALLDIRS= 22644 if test -n "$ac_aux_dir"; then 22645 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 22646 fi 22647 if test -z "$MKINSTALLDIRS"; then 22648 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 22649 fi 22650 22651 22652 test -d po || mkdir po 22653 if test "x$srcdir" != "x."; then 22654 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 22655 posrcprefix="$srcdir/" 22656 else 22657 posrcprefix="../$srcdir/" 22658 fi 22659 else 22660 posrcprefix="../" 22661 fi 22662 rm -f po/POTFILES 22663 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 22664 < $srcdir/po/POTFILES.in > po/POTFILES 22665 22666glib_save_prefix="$prefix" 22667glib_save_exec_prefix="$exec_prefix" 22668glib_save_datarootdir="$datarootdir" 22669test "x$prefix" = xNONE && prefix=$ac_default_prefix 22670test "x$exec_prefix" = xNONE && exec_prefix=$prefix 22671datarootdir=`eval echo "${datarootdir}"` 22672if test "x$CATOBJEXT" = "x.mo" ; then 22673 localedir=`eval echo "${libdir}/locale"` 22674else 22675 localedir=`eval echo "${datadir}/locale"` 22676fi 22677prefix="$glib_save_prefix" 22678exec_prefix="$glib_save_exec_prefix" 22679datarootdir="$glib_save_datarootdir" 22680 22681cat >>confdefs.h <<_ACEOF 22682#define TOMOE_GTK_LOCALEDIR "$localedir" 22683_ACEOF 22684 22685 22686 22687 22688 22689ac_config_commands="$ac_config_commands src/tomoe-gtk-config.h" 22690 22691 22692ac_config_files="$ac_config_files Makefile po/Makefile.in data/Makefile src/Makefile test/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml bindings/Makefile bindings/python/Makefile tomoe-gtk.pc" 22693 22694 22695cat >confcache <<\_ACEOF 22696# This file is a shell script that caches the results of configure 22697# tests run on this system so they can be shared between configure 22698# scripts and configure runs, see configure's option --config-cache. 22699# It is not useful on other systems. If it contains results you don't 22700# want to keep, you may remove or edit it. 22701# 22702# config.status only pays attention to the cache file if you give it 22703# the --recheck option to rerun configure. 22704# 22705# `ac_cv_env_foo' variables (set or unset) will be overridden when 22706# loading this file, other *unset* `ac_cv_foo' will be assigned the 22707# following values. 22708 22709_ACEOF 22710 22711# The following way of writing the cache mishandles newlines in values, 22712# but we know of no workaround that is simple, portable, and efficient. 22713# So, we kill variables containing newlines. 22714# Ultrix sh set writes to stderr and can't be redirected directly, 22715# and sets the high bit in the cache file unless we assign to the vars. 22716( 22717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22718 eval ac_val=\$$ac_var 22719 case $ac_val in #( 22720 *${as_nl}*) 22721 case $ac_var in #( 22722 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22723echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22724 esac 22725 case $ac_var in #( 22726 _ | IFS | as_nl) ;; #( 22727 *) $as_unset $ac_var ;; 22728 esac ;; 22729 esac 22730 done 22731 22732 (set) 2>&1 | 22733 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22734 *${as_nl}ac_space=\ *) 22735 # `set' does not quote correctly, so add quotes (double-quote 22736 # substitution turns \\\\ into \\, and sed turns \\ into \). 22737 sed -n \ 22738 "s/'/'\\\\''/g; 22739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22740 ;; #( 22741 *) 22742 # `set' quotes correctly as required by POSIX, so do not add quotes. 22743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22744 ;; 22745 esac | 22746 sort 22747) | 22748 sed ' 22749 /^ac_cv_env_/b end 22750 t clear 22751 :clear 22752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22753 t end 22754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22755 :end' >>confcache 22756if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22757 if test -w "$cache_file"; then 22758 test "x$cache_file" != "x/dev/null" && 22759 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22760echo "$as_me: updating cache $cache_file" >&6;} 22761 cat confcache >$cache_file 22762 else 22763 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22764echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22765 fi 22766fi 22767rm -f confcache 22768 22769test "x$prefix" = xNONE && prefix=$ac_default_prefix 22770# Let make expand exec_prefix. 22771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22772 22773DEFS=-DHAVE_CONFIG_H 22774 22775ac_libobjs= 22776ac_ltlibobjs= 22777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22778 # 1. Remove the extension, and $U if already installed. 22779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22780 ac_i=`echo "$ac_i" | sed "$ac_script"` 22781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22782 # will be set to the directory where LIBOBJS objects are built. 22783 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22784 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22785done 22786LIBOBJS=$ac_libobjs 22787 22788LTLIBOBJS=$ac_ltlibobjs 22789 22790 22791if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22792 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22793Usually this means the macro was only invoked conditionally." >&5 22794echo "$as_me: error: conditional \"AMDEP\" was never defined. 22795Usually this means the macro was only invoked conditionally." >&2;} 22796 { (exit 1); exit 1; }; } 22797fi 22798if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22799 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22800Usually this means the macro was only invoked conditionally." >&5 22801echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22802Usually this means the macro was only invoked conditionally." >&2;} 22803 { (exit 1); exit 1; }; } 22804fi 22805if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22806 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22807Usually this means the macro was only invoked conditionally." >&5 22808echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22809Usually this means the macro was only invoked conditionally." >&2;} 22810 { (exit 1); exit 1; }; } 22811fi 22812if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22813 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22814Usually this means the macro was only invoked conditionally." >&5 22815echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22816Usually this means the macro was only invoked conditionally." >&2;} 22817 { (exit 1); exit 1; }; } 22818fi 22819if test -z "${USE_GUCHARMAP_TRUE}" && test -z "${USE_GUCHARMAP_FALSE}"; then 22820 { { echo "$as_me:$LINENO: error: conditional \"USE_GUCHARMAP\" was never defined. 22821Usually this means the macro was only invoked conditionally." >&5 22822echo "$as_me: error: conditional \"USE_GUCHARMAP\" was never defined. 22823Usually this means the macro was only invoked conditionally." >&2;} 22824 { (exit 1); exit 1; }; } 22825fi 22826if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then 22827 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined. 22828Usually this means the macro was only invoked conditionally." >&5 22829echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined. 22830Usually this means the macro was only invoked conditionally." >&2;} 22831 { (exit 1); exit 1; }; } 22832fi 22833if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 22834 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. 22835Usually this means the macro was only invoked conditionally." >&5 22836echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. 22837Usually this means the macro was only invoked conditionally." >&2;} 22838 { (exit 1); exit 1; }; } 22839fi 22840if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 22841 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 22842Usually this means the macro was only invoked conditionally." >&5 22843echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 22844Usually this means the macro was only invoked conditionally." >&2;} 22845 { (exit 1); exit 1; }; } 22846fi 22847 22848: ${CONFIG_STATUS=./config.status} 22849ac_clean_files_save=$ac_clean_files 22850ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22851{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22852echo "$as_me: creating $CONFIG_STATUS" >&6;} 22853cat >$CONFIG_STATUS <<_ACEOF 22854#! $SHELL 22855# Generated by $as_me. 22856# Run this file to recreate the current configuration. 22857# Compiler output produced by configure, useful for debugging 22858# configure, is in config.log if it exists. 22859 22860debug=false 22861ac_cs_recheck=false 22862ac_cs_silent=false 22863SHELL=\${CONFIG_SHELL-$SHELL} 22864_ACEOF 22865 22866cat >>$CONFIG_STATUS <<\_ACEOF 22867## --------------------- ## 22868## M4sh Initialization. ## 22869## --------------------- ## 22870 22871# Be more Bourne compatible 22872DUALCASE=1; export DUALCASE # for MKS sh 22873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22874 emulate sh 22875 NULLCMD=: 22876 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22877 # is contrary to our usage. Disable this feature. 22878 alias -g '${1+"$@"}'='"$@"' 22879 setopt NO_GLOB_SUBST 22880else 22881 case `(set -o) 2>/dev/null` in 22882 *posix*) set -o posix ;; 22883esac 22884 22885fi 22886 22887 22888 22889 22890# PATH needs CR 22891# Avoid depending upon Character Ranges. 22892as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22893as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22894as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22895as_cr_digits='0123456789' 22896as_cr_alnum=$as_cr_Letters$as_cr_digits 22897 22898# The user is always right. 22899if test "${PATH_SEPARATOR+set}" != set; then 22900 echo "#! /bin/sh" >conf$$.sh 22901 echo "exit 0" >>conf$$.sh 22902 chmod +x conf$$.sh 22903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22904 PATH_SEPARATOR=';' 22905 else 22906 PATH_SEPARATOR=: 22907 fi 22908 rm -f conf$$.sh 22909fi 22910 22911# Support unset when possible. 22912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22913 as_unset=unset 22914else 22915 as_unset=false 22916fi 22917 22918 22919# IFS 22920# We need space, tab and new line, in precisely that order. Quoting is 22921# there to prevent editors from complaining about space-tab. 22922# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22923# splitting by setting IFS to empty value.) 22924as_nl=' 22925' 22926IFS=" "" $as_nl" 22927 22928# Find who we are. Look in the path if we contain no directory separator. 22929case $0 in 22930 *[\\/]* ) as_myself=$0 ;; 22931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22932for as_dir in $PATH 22933do 22934 IFS=$as_save_IFS 22935 test -z "$as_dir" && as_dir=. 22936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22937done 22938IFS=$as_save_IFS 22939 22940 ;; 22941esac 22942# We did not find ourselves, most probably we were run as `sh COMMAND' 22943# in which case we are not to be found in the path. 22944if test "x$as_myself" = x; then 22945 as_myself=$0 22946fi 22947if test ! -f "$as_myself"; then 22948 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22949 { (exit 1); exit 1; } 22950fi 22951 22952# Work around bugs in pre-3.0 UWIN ksh. 22953for as_var in ENV MAIL MAILPATH 22954do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22955done 22956PS1='$ ' 22957PS2='> ' 22958PS4='+ ' 22959 22960# NLS nuisances. 22961for as_var in \ 22962 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22963 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22964 LC_TELEPHONE LC_TIME 22965do 22966 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22967 eval $as_var=C; export $as_var 22968 else 22969 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22970 fi 22971done 22972 22973# Required to use basename. 22974if expr a : '\(a\)' >/dev/null 2>&1 && 22975 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22976 as_expr=expr 22977else 22978 as_expr=false 22979fi 22980 22981if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22982 as_basename=basename 22983else 22984 as_basename=false 22985fi 22986 22987 22988# Name of the executable. 22989as_me=`$as_basename -- "$0" || 22990$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22991 X"$0" : 'X\(//\)$' \| \ 22992 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22993echo X/"$0" | 22994 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22995 s//\1/ 22996 q 22997 } 22998 /^X\/\(\/\/\)$/{ 22999 s//\1/ 23000 q 23001 } 23002 /^X\/\(\/\).*/{ 23003 s//\1/ 23004 q 23005 } 23006 s/.*/./; q'` 23007 23008# CDPATH. 23009$as_unset CDPATH 23010 23011 23012 23013 as_lineno_1=$LINENO 23014 as_lineno_2=$LINENO 23015 test "x$as_lineno_1" != "x$as_lineno_2" && 23016 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23017 23018 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23019 # uniformly replaced by the line number. The first 'sed' inserts a 23020 # line-number line after each line using $LINENO; the second 'sed' 23021 # does the real work. The second script uses 'N' to pair each 23022 # line-number line with the line containing $LINENO, and appends 23023 # trailing '-' during substitution so that $LINENO is not a special 23024 # case at line end. 23025 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23026 # scripts with optimization help from Paolo Bonzini. Blame Lee 23027 # E. McMahon (1931-1989) for sed's syntax. :-) 23028 sed -n ' 23029 p 23030 /[$]LINENO/= 23031 ' <$as_myself | 23032 sed ' 23033 s/[$]LINENO.*/&-/ 23034 t lineno 23035 b 23036 :lineno 23037 N 23038 :loop 23039 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23040 t loop 23041 s/-\n.*// 23042 ' >$as_me.lineno && 23043 chmod +x "$as_me.lineno" || 23044 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23045 { (exit 1); exit 1; }; } 23046 23047 # Don't try to exec as it changes $[0], causing all sort of problems 23048 # (the dirname of $[0] is not the place where we might find the 23049 # original and so on. Autoconf is especially sensitive to this). 23050 . "./$as_me.lineno" 23051 # Exit status is that of the last command. 23052 exit 23053} 23054 23055 23056if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23057 as_dirname=dirname 23058else 23059 as_dirname=false 23060fi 23061 23062ECHO_C= ECHO_N= ECHO_T= 23063case `echo -n x` in 23064-n*) 23065 case `echo 'x\c'` in 23066 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23067 *) ECHO_C='\c';; 23068 esac;; 23069*) 23070 ECHO_N='-n';; 23071esac 23072 23073if expr a : '\(a\)' >/dev/null 2>&1 && 23074 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23075 as_expr=expr 23076else 23077 as_expr=false 23078fi 23079 23080rm -f conf$$ conf$$.exe conf$$.file 23081if test -d conf$$.dir; then 23082 rm -f conf$$.dir/conf$$.file 23083else 23084 rm -f conf$$.dir 23085 mkdir conf$$.dir 23086fi 23087echo >conf$$.file 23088if ln -s conf$$.file conf$$ 2>/dev/null; then 23089 as_ln_s='ln -s' 23090 # ... but there are two gotchas: 23091 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23092 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23093 # In both cases, we have to default to `cp -p'. 23094 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23095 as_ln_s='cp -p' 23096elif ln conf$$.file conf$$ 2>/dev/null; then 23097 as_ln_s=ln 23098else 23099 as_ln_s='cp -p' 23100fi 23101rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23102rmdir conf$$.dir 2>/dev/null 23103 23104if mkdir -p . 2>/dev/null; then 23105 as_mkdir_p=: 23106else 23107 test -d ./-p && rmdir ./-p 23108 as_mkdir_p=false 23109fi 23110 23111if test -x / >/dev/null 2>&1; then 23112 as_test_x='test -x' 23113else 23114 if ls -dL / >/dev/null 2>&1; then 23115 as_ls_L_option=L 23116 else 23117 as_ls_L_option= 23118 fi 23119 as_test_x=' 23120 eval sh -c '\'' 23121 if test -d "$1"; then 23122 test -d "$1/."; 23123 else 23124 case $1 in 23125 -*)set "./$1";; 23126 esac; 23127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23128 ???[sx]*):;;*)false;;esac;fi 23129 '\'' sh 23130 ' 23131fi 23132as_executable_p=$as_test_x 23133 23134# Sed expression to map a string onto a valid CPP name. 23135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23136 23137# Sed expression to map a string onto a valid variable name. 23138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23139 23140 23141exec 6>&1 23142 23143# Save the log message, to keep $[0] and so on meaningful, and to 23144# report actual input values of CONFIG_FILES etc. instead of their 23145# values after options handling. 23146ac_log=" 23147This file was extended by tomoe-gtk $as_me 0.6.0, which was 23148generated by GNU Autoconf 2.61. Invocation command line was 23149 23150 CONFIG_FILES = $CONFIG_FILES 23151 CONFIG_HEADERS = $CONFIG_HEADERS 23152 CONFIG_LINKS = $CONFIG_LINKS 23153 CONFIG_COMMANDS = $CONFIG_COMMANDS 23154 $ $0 $@ 23155 23156on `(hostname || uname -n) 2>/dev/null | sed 1q` 23157" 23158 23159_ACEOF 23160 23161cat >>$CONFIG_STATUS <<_ACEOF 23162# Files that config.status was made for. 23163config_files="$ac_config_files" 23164config_headers="$ac_config_headers" 23165config_commands="$ac_config_commands" 23166 23167_ACEOF 23168 23169cat >>$CONFIG_STATUS <<\_ACEOF 23170ac_cs_usage="\ 23171\`$as_me' instantiates files from templates according to the 23172current configuration. 23173 23174Usage: $0 [OPTIONS] [FILE]... 23175 23176 -h, --help print this help, then exit 23177 -V, --version print version number and configuration settings, then exit 23178 -q, --quiet do not print progress messages 23179 -d, --debug don't remove temporary files 23180 --recheck update $as_me by reconfiguring in the same conditions 23181 --file=FILE[:TEMPLATE] 23182 instantiate the configuration file FILE 23183 --header=FILE[:TEMPLATE] 23184 instantiate the configuration header FILE 23185 23186Configuration files: 23187$config_files 23188 23189Configuration headers: 23190$config_headers 23191 23192Configuration commands: 23193$config_commands 23194 23195Report bugs to <bug-autoconf@gnu.org>." 23196 23197_ACEOF 23198cat >>$CONFIG_STATUS <<_ACEOF 23199ac_cs_version="\\ 23200tomoe-gtk config.status 0.6.0 23201configured by $0, generated by GNU Autoconf 2.61, 23202 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23203 23204Copyright (C) 2006 Free Software Foundation, Inc. 23205This config.status script is free software; the Free Software Foundation 23206gives unlimited permission to copy, distribute and modify it." 23207 23208ac_pwd='$ac_pwd' 23209srcdir='$srcdir' 23210INSTALL='$INSTALL' 23211MKDIR_P='$MKDIR_P' 23212_ACEOF 23213 23214cat >>$CONFIG_STATUS <<\_ACEOF 23215# If no file are specified by the user, then we need to provide default 23216# value. By we need to know if files were specified by the user. 23217ac_need_defaults=: 23218while test $# != 0 23219do 23220 case $1 in 23221 --*=*) 23222 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23223 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23224 ac_shift=: 23225 ;; 23226 *) 23227 ac_option=$1 23228 ac_optarg=$2 23229 ac_shift=shift 23230 ;; 23231 esac 23232 23233 case $ac_option in 23234 # Handling of the options. 23235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23236 ac_cs_recheck=: ;; 23237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23238 echo "$ac_cs_version"; exit ;; 23239 --debug | --debu | --deb | --de | --d | -d ) 23240 debug=: ;; 23241 --file | --fil | --fi | --f ) 23242 $ac_shift 23243 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23244 ac_need_defaults=false;; 23245 --header | --heade | --head | --hea ) 23246 $ac_shift 23247 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23248 ac_need_defaults=false;; 23249 --he | --h) 23250 # Conflict between --help and --header 23251 { echo "$as_me: error: ambiguous option: $1 23252Try \`$0 --help' for more information." >&2 23253 { (exit 1); exit 1; }; };; 23254 --help | --hel | -h ) 23255 echo "$ac_cs_usage"; exit ;; 23256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23257 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23258 ac_cs_silent=: ;; 23259 23260 # This is an error. 23261 -*) { echo "$as_me: error: unrecognized option: $1 23262Try \`$0 --help' for more information." >&2 23263 { (exit 1); exit 1; }; } ;; 23264 23265 *) ac_config_targets="$ac_config_targets $1" 23266 ac_need_defaults=false ;; 23267 23268 esac 23269 shift 23270done 23271 23272ac_configure_extra_args= 23273 23274if $ac_cs_silent; then 23275 exec 6>/dev/null 23276 ac_configure_extra_args="$ac_configure_extra_args --silent" 23277fi 23278 23279_ACEOF 23280cat >>$CONFIG_STATUS <<_ACEOF 23281if \$ac_cs_recheck; then 23282 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23283 CONFIG_SHELL=$SHELL 23284 export CONFIG_SHELL 23285 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23286fi 23287 23288_ACEOF 23289cat >>$CONFIG_STATUS <<\_ACEOF 23290exec 5>>config.log 23291{ 23292 echo 23293 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23294## Running $as_me. ## 23295_ASBOX 23296 echo "$ac_log" 23297} >&5 23298 23299_ACEOF 23300cat >>$CONFIG_STATUS <<_ACEOF 23301# 23302# INIT-COMMANDS 23303# 23304AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23305 23306 23307if test "x$use_gucharmap" = "xyes" ; then 23308 tomoe_gtk_has_gucharmap=' 23309#define TOMOE_GTK_HAS_GUCHARMAP' 23310fi 23311 23312 23313_ACEOF 23314 23315cat >>$CONFIG_STATUS <<\_ACEOF 23316 23317# Handling of arguments. 23318for ac_config_target in $ac_config_targets 23319do 23320 case $ac_config_target in 23321 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23322 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 23323 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 23324 "src/tomoe-gtk-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/tomoe-gtk-config.h" ;; 23325 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23326 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 23327 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 23328 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23329 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 23330 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23331 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 23332 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;; 23333 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;; 23334 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;; 23335 "tomoe-gtk.pc") CONFIG_FILES="$CONFIG_FILES tomoe-gtk.pc" ;; 23336 23337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23338echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23339 { (exit 1); exit 1; }; };; 23340 esac 23341done 23342 23343 23344# If the user did not use the arguments to specify the items to instantiate, 23345# then the envvar interface is used. Set only those that are not. 23346# We use the long form for the default assignment because of an extremely 23347# bizarre bug on SunOS 4.1.3. 23348if $ac_need_defaults; then 23349 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23350 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23351 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23352fi 23353 23354# Have a temporary directory for convenience. Make it in the build tree 23355# simply because there is no reason against having it here, and in addition, 23356# creating and moving files from /tmp can sometimes cause problems. 23357# Hook for its removal unless debugging. 23358# Note that there is a small window in which the directory will not be cleaned: 23359# after its creation but before its name has been assigned to `$tmp'. 23360$debug || 23361{ 23362 tmp= 23363 trap 'exit_status=$? 23364 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23365' 0 23366 trap '{ (exit 1); exit 1; }' 1 2 13 15 23367} 23368# Create a (secure) tmp directory for tmp files. 23369 23370{ 23371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23372 test -n "$tmp" && test -d "$tmp" 23373} || 23374{ 23375 tmp=./conf$$-$RANDOM 23376 (umask 077 && mkdir "$tmp") 23377} || 23378{ 23379 echo "$me: cannot create a temporary directory in ." >&2 23380 { (exit 1); exit 1; } 23381} 23382 23383# 23384# Set up the sed scripts for CONFIG_FILES section. 23385# 23386 23387# No need to generate the scripts if there are no CONFIG_FILES. 23388# This happens for instance when ./config.status config.h 23389if test -n "$CONFIG_FILES"; then 23390 23391_ACEOF 23392 23393 23394 23395ac_delim='%!_!# ' 23396for ac_last_try in false false false false false :; do 23397 cat >conf$$subs.sed <<_ACEOF 23398SHELL!$SHELL$ac_delim 23399PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23400PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23401PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23402PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23403PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23404PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23405exec_prefix!$exec_prefix$ac_delim 23406prefix!$prefix$ac_delim 23407program_transform_name!$program_transform_name$ac_delim 23408bindir!$bindir$ac_delim 23409sbindir!$sbindir$ac_delim 23410libexecdir!$libexecdir$ac_delim 23411datarootdir!$datarootdir$ac_delim 23412datadir!$datadir$ac_delim 23413sysconfdir!$sysconfdir$ac_delim 23414sharedstatedir!$sharedstatedir$ac_delim 23415localstatedir!$localstatedir$ac_delim 23416includedir!$includedir$ac_delim 23417oldincludedir!$oldincludedir$ac_delim 23418docdir!$docdir$ac_delim 23419infodir!$infodir$ac_delim 23420htmldir!$htmldir$ac_delim 23421dvidir!$dvidir$ac_delim 23422pdfdir!$pdfdir$ac_delim 23423psdir!$psdir$ac_delim 23424libdir!$libdir$ac_delim 23425localedir!$localedir$ac_delim 23426mandir!$mandir$ac_delim 23427DEFS!$DEFS$ac_delim 23428ECHO_C!$ECHO_C$ac_delim 23429ECHO_N!$ECHO_N$ac_delim 23430ECHO_T!$ECHO_T$ac_delim 23431LIBS!$LIBS$ac_delim 23432build_alias!$build_alias$ac_delim 23433host_alias!$host_alias$ac_delim 23434target_alias!$target_alias$ac_delim 23435INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23436INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23437INSTALL_DATA!$INSTALL_DATA$ac_delim 23438am__isrc!$am__isrc$ac_delim 23439CYGPATH_W!$CYGPATH_W$ac_delim 23440PACKAGE!$PACKAGE$ac_delim 23441VERSION!$VERSION$ac_delim 23442ACLOCAL!$ACLOCAL$ac_delim 23443AUTOCONF!$AUTOCONF$ac_delim 23444AUTOMAKE!$AUTOMAKE$ac_delim 23445AUTOHEADER!$AUTOHEADER$ac_delim 23446MAKEINFO!$MAKEINFO$ac_delim 23447install_sh!$install_sh$ac_delim 23448STRIP!$STRIP$ac_delim 23449INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23450mkdir_p!$mkdir_p$ac_delim 23451AWK!$AWK$ac_delim 23452SET_MAKE!$SET_MAKE$ac_delim 23453am__leading_dot!$am__leading_dot$ac_delim 23454AMTAR!$AMTAR$ac_delim 23455am__tar!$am__tar$ac_delim 23456am__untar!$am__untar$ac_delim 23457build!$build$ac_delim 23458build_cpu!$build_cpu$ac_delim 23459build_vendor!$build_vendor$ac_delim 23460build_os!$build_os$ac_delim 23461host!$host$ac_delim 23462host_cpu!$host_cpu$ac_delim 23463host_vendor!$host_vendor$ac_delim 23464host_os!$host_os$ac_delim 23465CC!$CC$ac_delim 23466CFLAGS!$CFLAGS$ac_delim 23467LDFLAGS!$LDFLAGS$ac_delim 23468CPPFLAGS!$CPPFLAGS$ac_delim 23469ac_ct_CC!$ac_ct_CC$ac_delim 23470EXEEXT!$EXEEXT$ac_delim 23471OBJEXT!$OBJEXT$ac_delim 23472DEPDIR!$DEPDIR$ac_delim 23473am__include!$am__include$ac_delim 23474am__quote!$am__quote$ac_delim 23475AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23476AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23477AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23478CCDEPMODE!$CCDEPMODE$ac_delim 23479am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23480am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23481GREP!$GREP$ac_delim 23482EGREP!$EGREP$ac_delim 23483LN_S!$LN_S$ac_delim 23484ECHO!$ECHO$ac_delim 23485AR!$AR$ac_delim 23486RANLIB!$RANLIB$ac_delim 23487CPP!$CPP$ac_delim 23488CXX!$CXX$ac_delim 23489CXXFLAGS!$CXXFLAGS$ac_delim 23490ac_ct_CXX!$ac_ct_CXX$ac_delim 23491CXXDEPMODE!$CXXDEPMODE$ac_delim 23492am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23493am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23494CXXCPP!$CXXCPP$ac_delim 23495_ACEOF 23496 23497 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23498 break 23499 elif $ac_last_try; then 23500 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23501echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23502 { (exit 1); exit 1; }; } 23503 else 23504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23505 fi 23506done 23507 23508ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23509if test -n "$ac_eof"; then 23510 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23511 ac_eof=`expr $ac_eof + 1` 23512fi 23513 23514cat >>$CONFIG_STATUS <<_ACEOF 23515cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23516/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23517_ACEOF 23518sed ' 23519s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23520s/^/s,@/; s/!/@,|#_!!_#|/ 23521:n 23522t n 23523s/'"$ac_delim"'$/,g/; t 23524s/$/\\/; p 23525N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23526' >>$CONFIG_STATUS <conf$$subs.sed 23527rm -f conf$$subs.sed 23528cat >>$CONFIG_STATUS <<_ACEOF 23529CEOF$ac_eof 23530_ACEOF 23531 23532 23533ac_delim='%!_!# ' 23534for ac_last_try in false false false false false :; do 23535 cat >conf$$subs.sed <<_ACEOF 23536F77!$F77$ac_delim 23537FFLAGS!$FFLAGS$ac_delim 23538ac_ct_F77!$ac_ct_F77$ac_delim 23539LIBTOOL!$LIBTOOL$ac_delim 23540LT_VERSION_INFO!$LT_VERSION_INFO$ac_delim 23541LIBTOOL_EXPORT_OPTIONS!$LIBTOOL_EXPORT_OPTIONS$ac_delim 23542PKG_CONFIG!$PKG_CONFIG$ac_delim 23543GTK2_CFLAGS!$GTK2_CFLAGS$ac_delim 23544GTK2_LIBS!$GTK2_LIBS$ac_delim 23545GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim 23546TOMOE_CFLAGS!$TOMOE_CFLAGS$ac_delim 23547TOMOE_LIBS!$TOMOE_LIBS$ac_delim 23548GUCHARMAP_CFLAGS!$GUCHARMAP_CFLAGS$ac_delim 23549GUCHARMAP_LIBS!$GUCHARMAP_LIBS$ac_delim 23550TOMOE_GTK_REQUIRED_LIBS!$TOMOE_GTK_REQUIRED_LIBS$ac_delim 23551USE_GUCHARMAP_TRUE!$USE_GUCHARMAP_TRUE$ac_delim 23552USE_GUCHARMAP_FALSE!$USE_GUCHARMAP_FALSE$ac_delim 23553PYTHON!$PYTHON$ac_delim 23554PYTHON_VERSION!$PYTHON_VERSION$ac_delim 23555PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim 23556PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim 23557PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim 23558pythondir!$pythondir$ac_delim 23559pkgpythondir!$pkgpythondir$ac_delim 23560pyexecdir!$pyexecdir$ac_delim 23561pkgpyexecdir!$pkgpyexecdir$ac_delim 23562PYGOBJECT_CFLAGS!$PYGOBJECT_CFLAGS$ac_delim 23563PYGOBJECT_LIBS!$PYGOBJECT_LIBS$ac_delim 23564PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim 23565PYTHON_LIBS!$PYTHON_LIBS$ac_delim 23566PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim 23567PYGTK_DEFSDIR!$PYGTK_DEFSDIR$ac_delim 23568PYGTK_CODEGEN!$PYGTK_CODEGEN$ac_delim 23569PYTOMOE_DEFSDIR!$PYTOMOE_DEFSDIR$ac_delim 23570WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim 23571WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim 23572HTML_DIR!$HTML_DIR$ac_delim 23573ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim 23574ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim 23575GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim 23576GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim 23577GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 23578USE_NLS!$USE_NLS$ac_delim 23579MSGFMT!$MSGFMT$ac_delim 23580MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim 23581GMSGFMT!$GMSGFMT$ac_delim 23582XGETTEXT!$XGETTEXT$ac_delim 23583CATALOGS!$CATALOGS$ac_delim 23584CATOBJEXT!$CATOBJEXT$ac_delim 23585DATADIRNAME!$DATADIRNAME$ac_delim 23586GMOFILES!$GMOFILES$ac_delim 23587INSTOBJEXT!$INSTOBJEXT$ac_delim 23588INTLLIBS!$INTLLIBS$ac_delim 23589PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim 23590PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim 23591POFILES!$POFILES$ac_delim 23592POSUB!$POSUB$ac_delim 23593MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 23594LIBOBJS!$LIBOBJS$ac_delim 23595LTLIBOBJS!$LTLIBOBJS$ac_delim 23596_ACEOF 23597 23598 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then 23599 break 23600 elif $ac_last_try; then 23601 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23602echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23603 { (exit 1); exit 1; }; } 23604 else 23605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23606 fi 23607done 23608 23609ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23610if test -n "$ac_eof"; then 23611 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23612 ac_eof=`expr $ac_eof + 1` 23613fi 23614 23615cat >>$CONFIG_STATUS <<_ACEOF 23616cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23617/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23618_ACEOF 23619sed ' 23620s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23621s/^/s,@/; s/!/@,|#_!!_#|/ 23622:n 23623t n 23624s/'"$ac_delim"'$/,g/; t 23625s/$/\\/; p 23626N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23627' >>$CONFIG_STATUS <conf$$subs.sed 23628rm -f conf$$subs.sed 23629cat >>$CONFIG_STATUS <<_ACEOF 23630:end 23631s/|#_!!_#|//g 23632CEOF$ac_eof 23633_ACEOF 23634 23635 23636# VPATH may cause trouble with some makes, so we remove $(srcdir), 23637# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23638# trailing colons and then remove the whole line if VPATH becomes empty 23639# (actually we leave an empty line to preserve line numbers). 23640if test "x$srcdir" = x.; then 23641 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23642s/:*\$(srcdir):*/:/ 23643s/:*\${srcdir}:*/:/ 23644s/:*@srcdir@:*/:/ 23645s/^\([^=]*=[ ]*\):*/\1/ 23646s/:*$// 23647s/^[^=]*=[ ]*$// 23648}' 23649fi 23650 23651cat >>$CONFIG_STATUS <<\_ACEOF 23652fi # test -n "$CONFIG_FILES" 23653 23654 23655for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23656do 23657 case $ac_tag in 23658 :[FHLC]) ac_mode=$ac_tag; continue;; 23659 esac 23660 case $ac_mode$ac_tag in 23661 :[FHL]*:*);; 23662 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23663echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23664 { (exit 1); exit 1; }; };; 23665 :[FH]-) ac_tag=-:-;; 23666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23667 esac 23668 ac_save_IFS=$IFS 23669 IFS=: 23670 set x $ac_tag 23671 IFS=$ac_save_IFS 23672 shift 23673 ac_file=$1 23674 shift 23675 23676 case $ac_mode in 23677 :L) ac_source=$1;; 23678 :[FH]) 23679 ac_file_inputs= 23680 for ac_f 23681 do 23682 case $ac_f in 23683 -) ac_f="$tmp/stdin";; 23684 *) # Look for the file first in the build tree, then in the source tree 23685 # (if the path is not absolute). The absolute path cannot be DOS-style, 23686 # because $ac_f cannot contain `:'. 23687 test -f "$ac_f" || 23688 case $ac_f in 23689 [\\/$]*) false;; 23690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23691 esac || 23692 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23693echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23694 { (exit 1); exit 1; }; };; 23695 esac 23696 ac_file_inputs="$ac_file_inputs $ac_f" 23697 done 23698 23699 # Let's still pretend it is `configure' which instantiates (i.e., don't 23700 # use $as_me), people would be surprised to read: 23701 # /* config.h. Generated by config.status. */ 23702 configure_input="Generated from "`IFS=: 23703 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23704 if test x"$ac_file" != x-; then 23705 configure_input="$ac_file. $configure_input" 23706 { echo "$as_me:$LINENO: creating $ac_file" >&5 23707echo "$as_me: creating $ac_file" >&6;} 23708 fi 23709 23710 case $ac_tag in 23711 *:-:* | *:-) cat >"$tmp/stdin";; 23712 esac 23713 ;; 23714 esac 23715 23716 ac_dir=`$as_dirname -- "$ac_file" || 23717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23718 X"$ac_file" : 'X\(//\)[^/]' \| \ 23719 X"$ac_file" : 'X\(//\)$' \| \ 23720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23721echo X"$ac_file" | 23722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23723 s//\1/ 23724 q 23725 } 23726 /^X\(\/\/\)[^/].*/{ 23727 s//\1/ 23728 q 23729 } 23730 /^X\(\/\/\)$/{ 23731 s//\1/ 23732 q 23733 } 23734 /^X\(\/\).*/{ 23735 s//\1/ 23736 q 23737 } 23738 s/.*/./; q'` 23739 { as_dir="$ac_dir" 23740 case $as_dir in #( 23741 -*) as_dir=./$as_dir;; 23742 esac 23743 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23744 as_dirs= 23745 while :; do 23746 case $as_dir in #( 23747 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23748 *) as_qdir=$as_dir;; 23749 esac 23750 as_dirs="'$as_qdir' $as_dirs" 23751 as_dir=`$as_dirname -- "$as_dir" || 23752$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23753 X"$as_dir" : 'X\(//\)[^/]' \| \ 23754 X"$as_dir" : 'X\(//\)$' \| \ 23755 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23756echo X"$as_dir" | 23757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23758 s//\1/ 23759 q 23760 } 23761 /^X\(\/\/\)[^/].*/{ 23762 s//\1/ 23763 q 23764 } 23765 /^X\(\/\/\)$/{ 23766 s//\1/ 23767 q 23768 } 23769 /^X\(\/\).*/{ 23770 s//\1/ 23771 q 23772 } 23773 s/.*/./; q'` 23774 test -d "$as_dir" && break 23775 done 23776 test -z "$as_dirs" || eval "mkdir $as_dirs" 23777 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23778echo "$as_me: error: cannot create directory $as_dir" >&2;} 23779 { (exit 1); exit 1; }; }; } 23780 ac_builddir=. 23781 23782case "$ac_dir" in 23783.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23784*) 23785 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23786 # A ".." for each directory in $ac_dir_suffix. 23787 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23788 case $ac_top_builddir_sub in 23789 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23790 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23791 esac ;; 23792esac 23793ac_abs_top_builddir=$ac_pwd 23794ac_abs_builddir=$ac_pwd$ac_dir_suffix 23795# for backward compatibility: 23796ac_top_builddir=$ac_top_build_prefix 23797 23798case $srcdir in 23799 .) # We are building in place. 23800 ac_srcdir=. 23801 ac_top_srcdir=$ac_top_builddir_sub 23802 ac_abs_top_srcdir=$ac_pwd ;; 23803 [\\/]* | ?:[\\/]* ) # Absolute name. 23804 ac_srcdir=$srcdir$ac_dir_suffix; 23805 ac_top_srcdir=$srcdir 23806 ac_abs_top_srcdir=$srcdir ;; 23807 *) # Relative name. 23808 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23809 ac_top_srcdir=$ac_top_build_prefix$srcdir 23810 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23811esac 23812ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23813 23814 23815 case $ac_mode in 23816 :F) 23817 # 23818 # CONFIG_FILE 23819 # 23820 23821 case $INSTALL in 23822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23823 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23824 esac 23825 ac_MKDIR_P=$MKDIR_P 23826 case $MKDIR_P in 23827 [\\/$]* | ?:[\\/]* ) ;; 23828 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23829 esac 23830_ACEOF 23831 23832cat >>$CONFIG_STATUS <<\_ACEOF 23833# If the template does not know about datarootdir, expand it. 23834# FIXME: This hack should be removed a few years after 2.60. 23835ac_datarootdir_hack=; ac_datarootdir_seen= 23836 23837case `sed -n '/datarootdir/ { 23838 p 23839 q 23840} 23841/@datadir@/p 23842/@docdir@/p 23843/@infodir@/p 23844/@localedir@/p 23845/@mandir@/p 23846' $ac_file_inputs` in 23847*datarootdir*) ac_datarootdir_seen=yes;; 23848*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23849 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23850echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23851_ACEOF 23852cat >>$CONFIG_STATUS <<_ACEOF 23853 ac_datarootdir_hack=' 23854 s&@datadir@&$datadir&g 23855 s&@docdir@&$docdir&g 23856 s&@infodir@&$infodir&g 23857 s&@localedir@&$localedir&g 23858 s&@mandir@&$mandir&g 23859 s&\\\${datarootdir}&$datarootdir&g' ;; 23860esac 23861_ACEOF 23862 23863# Neutralize VPATH when `$srcdir' = `.'. 23864# Shell code in configure.ac might set extrasub. 23865# FIXME: do we really want to maintain this feature? 23866cat >>$CONFIG_STATUS <<_ACEOF 23867 sed "$ac_vpsub 23868$extrasub 23869_ACEOF 23870cat >>$CONFIG_STATUS <<\_ACEOF 23871:t 23872/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23873s&@configure_input@&$configure_input&;t t 23874s&@top_builddir@&$ac_top_builddir_sub&;t t 23875s&@srcdir@&$ac_srcdir&;t t 23876s&@abs_srcdir@&$ac_abs_srcdir&;t t 23877s&@top_srcdir@&$ac_top_srcdir&;t t 23878s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23879s&@builddir@&$ac_builddir&;t t 23880s&@abs_builddir@&$ac_abs_builddir&;t t 23881s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23882s&@INSTALL@&$ac_INSTALL&;t t 23883s&@MKDIR_P@&$ac_MKDIR_P&;t t 23884$ac_datarootdir_hack 23885" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23886 23887test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23890 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23891which seems to be undefined. Please make sure it is defined." >&5 23892echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23893which seems to be undefined. Please make sure it is defined." >&2;} 23894 23895 rm -f "$tmp/stdin" 23896 case $ac_file in 23897 -) cat "$tmp/out"; rm -f "$tmp/out";; 23898 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23899 esac 23900 ;; 23901 :H) 23902 # 23903 # CONFIG_HEADER 23904 # 23905_ACEOF 23906 23907# Transform confdefs.h into a sed script `conftest.defines', that 23908# substitutes the proper values into config.h.in to produce config.h. 23909rm -f conftest.defines conftest.tail 23910# First, append a space to every undef/define line, to ease matching. 23911echo 's/$/ /' >conftest.defines 23912# Then, protect against being on the right side of a sed subst, or in 23913# an unquoted here document, in config.status. If some macros were 23914# called several times there might be several #defines for the same 23915# symbol, which is useless. But do not sort them, since the last 23916# AC_DEFINE must be honored. 23917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23918# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23919# NAME is the cpp macro being defined, VALUE is the value it is being given. 23920# PARAMS is the parameter list in the macro definition--in most cases, it's 23921# just an empty string. 23922ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23923ac_dB='\\)[ (].*,\\1define\\2' 23924ac_dC=' ' 23925ac_dD=' ,' 23926 23927uniq confdefs.h | 23928 sed -n ' 23929 t rset 23930 :rset 23931 s/^[ ]*#[ ]*define[ ][ ]*// 23932 t ok 23933 d 23934 :ok 23935 s/[\\&,]/\\&/g 23936 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23937 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23938 ' >>conftest.defines 23939 23940# Remove the space that was appended to ease matching. 23941# Then replace #undef with comments. This is necessary, for 23942# example, in the case of _POSIX_SOURCE, which is predefined and required 23943# on some systems where configure will not decide to define it. 23944# (The regexp can be short, since the line contains either #define or #undef.) 23945echo 's/ $// 23946s,^[ #]*u.*,/* & */,' >>conftest.defines 23947 23948# Break up conftest.defines: 23949ac_max_sed_lines=50 23950 23951# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23952# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23953# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23954# et cetera. 23955ac_in='$ac_file_inputs' 23956ac_out='"$tmp/out1"' 23957ac_nxt='"$tmp/out2"' 23958 23959while : 23960do 23961 # Write a here document: 23962 cat >>$CONFIG_STATUS <<_ACEOF 23963 # First, check the format of the line: 23964 cat >"\$tmp/defines.sed" <<\\CEOF 23965/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23966/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23967b 23968:def 23969_ACEOF 23970 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23971 echo 'CEOF 23972 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23973 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23974 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23975 grep . conftest.tail >/dev/null || break 23976 rm -f conftest.defines 23977 mv conftest.tail conftest.defines 23978done 23979rm -f conftest.defines conftest.tail 23980 23981echo "ac_result=$ac_in" >>$CONFIG_STATUS 23982cat >>$CONFIG_STATUS <<\_ACEOF 23983 if test x"$ac_file" != x-; then 23984 echo "/* $configure_input */" >"$tmp/config.h" 23985 cat "$ac_result" >>"$tmp/config.h" 23986 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23987 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23988echo "$as_me: $ac_file is unchanged" >&6;} 23989 else 23990 rm -f $ac_file 23991 mv "$tmp/config.h" $ac_file 23992 fi 23993 else 23994 echo "/* $configure_input */" 23995 cat "$ac_result" 23996 fi 23997 rm -f "$tmp/out12" 23998# Compute $ac_file's index in $config_headers. 23999_am_stamp_count=1 24000for _am_header in $config_headers :; do 24001 case $_am_header in 24002 $ac_file | $ac_file:* ) 24003 break ;; 24004 * ) 24005 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24006 esac 24007done 24008echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24009$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24010 X$ac_file : 'X\(//\)[^/]' \| \ 24011 X$ac_file : 'X\(//\)$' \| \ 24012 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24013echo X$ac_file | 24014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24015 s//\1/ 24016 q 24017 } 24018 /^X\(\/\/\)[^/].*/{ 24019 s//\1/ 24020 q 24021 } 24022 /^X\(\/\/\)$/{ 24023 s//\1/ 24024 q 24025 } 24026 /^X\(\/\).*/{ 24027 s//\1/ 24028 q 24029 } 24030 s/.*/./; q'`/stamp-h$_am_stamp_count 24031 ;; 24032 24033 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24034echo "$as_me: executing $ac_file commands" >&6;} 24035 ;; 24036 esac 24037 24038 24039 case $ac_file$ac_mode in 24040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24041 # Strip MF so we end up with the name of the file. 24042 mf=`echo "$mf" | sed -e 's/:.*$//'` 24043 # Check whether this is an Automake generated Makefile or not. 24044 # We used to match only the files named `Makefile.in', but 24045 # some people rename them; so instead we look at the file content. 24046 # Grep'ing the first line is not enough: some people post-process 24047 # each Makefile.in and add a new line on top of each file to say so. 24048 # Grep'ing the whole file is not good either: AIX grep has a line 24049 # limit of 2048, but all sed's we know have understand at least 4000. 24050 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 24051 dirpart=`$as_dirname -- "$mf" || 24052$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24053 X"$mf" : 'X\(//\)[^/]' \| \ 24054 X"$mf" : 'X\(//\)$' \| \ 24055 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24056echo X"$mf" | 24057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24058 s//\1/ 24059 q 24060 } 24061 /^X\(\/\/\)[^/].*/{ 24062 s//\1/ 24063 q 24064 } 24065 /^X\(\/\/\)$/{ 24066 s//\1/ 24067 q 24068 } 24069 /^X\(\/\).*/{ 24070 s//\1/ 24071 q 24072 } 24073 s/.*/./; q'` 24074 else 24075 continue 24076 fi 24077 # Extract the definition of DEPDIR, am__include, and am__quote 24078 # from the Makefile without running `make'. 24079 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24080 test -z "$DEPDIR" && continue 24081 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24082 test -z "am__include" && continue 24083 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24084 # When using ansi2knr, U may be empty or an underscore; expand it 24085 U=`sed -n 's/^U = //p' < "$mf"` 24086 # Find all dependency output files, they are included files with 24087 # $(DEPDIR) in their names. We invoke sed twice because it is the 24088 # simplest approach to changing $(DEPDIR) to its actual value in the 24089 # expansion. 24090 for file in `sed -n " 24091 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24092 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24093 # Make sure the directory exists. 24094 test -f "$dirpart/$file" && continue 24095 fdir=`$as_dirname -- "$file" || 24096$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24097 X"$file" : 'X\(//\)[^/]' \| \ 24098 X"$file" : 'X\(//\)$' \| \ 24099 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24100echo X"$file" | 24101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24102 s//\1/ 24103 q 24104 } 24105 /^X\(\/\/\)[^/].*/{ 24106 s//\1/ 24107 q 24108 } 24109 /^X\(\/\/\)$/{ 24110 s//\1/ 24111 q 24112 } 24113 /^X\(\/\).*/{ 24114 s//\1/ 24115 q 24116 } 24117 s/.*/./; q'` 24118 { as_dir=$dirpart/$fdir 24119 case $as_dir in #( 24120 -*) as_dir=./$as_dir;; 24121 esac 24122 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24123 as_dirs= 24124 while :; do 24125 case $as_dir in #( 24126 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24127 *) as_qdir=$as_dir;; 24128 esac 24129 as_dirs="'$as_qdir' $as_dirs" 24130 as_dir=`$as_dirname -- "$as_dir" || 24131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24132 X"$as_dir" : 'X\(//\)[^/]' \| \ 24133 X"$as_dir" : 'X\(//\)$' \| \ 24134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24135echo X"$as_dir" | 24136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24137 s//\1/ 24138 q 24139 } 24140 /^X\(\/\/\)[^/].*/{ 24141 s//\1/ 24142 q 24143 } 24144 /^X\(\/\/\)$/{ 24145 s//\1/ 24146 q 24147 } 24148 /^X\(\/\).*/{ 24149 s//\1/ 24150 q 24151 } 24152 s/.*/./; q'` 24153 test -d "$as_dir" && break 24154 done 24155 test -z "$as_dirs" || eval "mkdir $as_dirs" 24156 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24157echo "$as_me: error: cannot create directory $as_dir" >&2;} 24158 { (exit 1); exit 1; }; }; } 24159 # echo "creating $dirpart/$file" 24160 echo '# dummy' > "$dirpart/$file" 24161 done 24162done 24163 ;; 24164 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 24165 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 24166 esac ;; 24167 "src/tomoe-gtk-config.h":C) 24168 outfile=tomoe-gtk-config.h-tmp 24169 cat > $outfile <<\_______EOF 24170/* tomoe-gtk-config.h 24171 * 24172 * This is a generated file. Please modify `configure.ac' 24173 */ 24174 24175#ifndef TOMOE_GTK_CONFIG_H 24176#define TOMOE_GTK_CONFIG_H 24177 24178#ifdef __cplusplus 24179extern "C" { 24180#endif /* __cplusplus */ 24181 24182_______EOF 24183 24184 cat >>$outfile <<_______EOF 24185$tomoe_gtk_has_gucharmap 24186_______EOF 24187 24188 cat >>$outfile <<_______EOF 24189 24190#ifdef __cplusplus 24191} 24192#endif /* __cplusplus */ 24193 24194#endif /* TOMOE_GTK_CONFIG_H */ 24195_______EOF 24196 24197 24198 if cmp -s $outfile src/tomoe-gtk-config.h; then 24199 { echo "$as_me:$LINENO: src/tomoe-gtk-config.h is unchanged" >&5 24200echo "$as_me: src/tomoe-gtk-config.h is unchanged" >&6;} 24201 rm -f $outfile 24202 else 24203 mv $outfile src/tomoe-gtk-config.h 24204 fi 24205 ;; 24206 24207 esac 24208done # for ac_tag 24209 24210 24211{ (exit 0); exit 0; } 24212_ACEOF 24213chmod +x $CONFIG_STATUS 24214ac_clean_files=$ac_clean_files_save 24215 24216 24217# configure is writing to config.log, and then calls config.status. 24218# config.status does its own redirection, appending to config.log. 24219# Unfortunately, on DOS this fails, as config.log is still kept open 24220# by configure, so config.status won't be able to write to it; its 24221# output is simply discarded. So we exec the FD to /dev/null, 24222# effectively closing config.log, so it can be properly (re)opened and 24223# appended to by config.status. When coming back to configure, we 24224# need to make the FD available again. 24225if test "$no_create" != yes; then 24226 ac_cs_success=: 24227 ac_config_status_args= 24228 test "$silent" = yes && 24229 ac_config_status_args="$ac_config_status_args --quiet" 24230 exec 5>/dev/null 24231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24232 exec 5>>config.log 24233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24234 # would make configure fail if this is the last instruction. 24235 $ac_cs_success || { (exit 1); exit 1; } 24236fi 24237 24238 24239 24240echo 24241echo "Configure Result:" 24242echo 24243echo " * Language Bindings" 24244echo 24245echo " Python : ${python_available}" 24246echo 24247echo " * Other Features" 24248echo 24249echo " Use gucharmap : ${use_gucharmap}" 24250echo " Use gtk-doc : ${enable_gtk_doc}" 24251echo 24252