1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for libsmf 1.3. 4# 5# Report bugs to <trasz@FreeBSD.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='libsmf' 747PACKAGE_TARNAME='libsmf' 748PACKAGE_VERSION='1.3' 749PACKAGE_STRING='libsmf 1.3' 750PACKAGE_BUGREPORT='trasz@FreeBSD.org' 751 752ac_unique_file="src/smf.c" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='SHELL 790PATH_SEPARATOR 791PACKAGE_NAME 792PACKAGE_TARNAME 793PACKAGE_VERSION 794PACKAGE_STRING 795PACKAGE_BUGREPORT 796exec_prefix 797prefix 798program_transform_name 799bindir 800sbindir 801libexecdir 802datarootdir 803datadir 804sysconfdir 805sharedstatedir 806localstatedir 807includedir 808oldincludedir 809docdir 810infodir 811htmldir 812dvidir 813pdfdir 814psdir 815libdir 816localedir 817mandir 818DEFS 819ECHO_C 820ECHO_N 821ECHO_T 822LIBS 823build_alias 824host_alias 825target_alias 826INSTALL_PROGRAM 827INSTALL_SCRIPT 828INSTALL_DATA 829am__isrc 830CYGPATH_W 831PACKAGE 832VERSION 833ACLOCAL 834AUTOCONF 835AUTOMAKE 836AUTOHEADER 837MAKEINFO 838install_sh 839STRIP 840INSTALL_STRIP_PROGRAM 841MKDIR_P 842mkdir_p 843AWK 844SET_MAKE 845am__leading_dot 846AMTAR 847am__tar 848am__untar 849CC 850CFLAGS 851LDFLAGS 852CPPFLAGS 853ac_ct_CC 854EXEEXT 855OBJEXT 856DEPDIR 857am__include 858am__quote 859AMDEP_TRUE 860AMDEP_FALSE 861AMDEPBACKSLASH 862CCDEPMODE 863am__fastdepCC_TRUE 864am__fastdepCC_FALSE 865LIBTOOL 866build 867build_cpu 868build_vendor 869build_os 870host 871host_cpu 872host_vendor 873host_os 874SED 875GREP 876EGREP 877FGREP 878LD 879DUMPBIN 880ac_ct_DUMPBIN 881NM 882LN_S 883OBJDUMP 884AR 885RANLIB 886lt_ECHO 887DSYMUTIL 888NMEDIT 889LIPO 890OTOOL 891OTOOL64 892CPP 893READLINE_LIBS 894LIBOBJS 895POW_LIB 896PKG_CONFIG 897GLIB_CFLAGS 898GLIB_LIBS 899LTLIBOBJS' 900ac_subst_files='' 901ac_user_opts=' 902enable_option_checking 903enable_dependency_tracking 904enable_shared 905enable_static 906with_pic 907enable_fast_install 908with_gnu_ld 909enable_libtool_lock 910with_readline 911' 912 ac_precious_vars='build_alias 913host_alias 914target_alias 915CC 916CFLAGS 917LDFLAGS 918LIBS 919CPPFLAGS 920CPP 921PKG_CONFIG 922GLIB_CFLAGS 923GLIB_LIBS' 924 925 926# Initialize some variables set by options. 927ac_init_help= 928ac_init_version=false 929ac_unrecognized_opts= 930ac_unrecognized_sep= 931# The variables have the same names as the options, with 932# dashes changed to underlines. 933cache_file=/dev/null 934exec_prefix=NONE 935no_create= 936no_recursion= 937prefix=NONE 938program_prefix=NONE 939program_suffix=NONE 940program_transform_name=s,x,x, 941silent= 942site= 943srcdir= 944verbose= 945x_includes=NONE 946x_libraries=NONE 947 948# Installation directory options. 949# These are left unexpanded so users can "make install exec_prefix=/foo" 950# and all the variables that are supposed to be based on exec_prefix 951# by default will actually change. 952# Use braces instead of parens because sh, perl, etc. also accept them. 953# (The list follows the same order as the GNU Coding Standards.) 954bindir='${exec_prefix}/bin' 955sbindir='${exec_prefix}/sbin' 956libexecdir='${exec_prefix}/libexec' 957datarootdir='${prefix}/share' 958datadir='${datarootdir}' 959sysconfdir='${prefix}/etc' 960sharedstatedir='${prefix}/com' 961localstatedir='${prefix}/var' 962includedir='${prefix}/include' 963oldincludedir='/usr/include' 964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 965infodir='${datarootdir}/info' 966htmldir='${docdir}' 967dvidir='${docdir}' 968pdfdir='${docdir}' 969psdir='${docdir}' 970libdir='${exec_prefix}/lib' 971localedir='${datarootdir}/locale' 972mandir='${datarootdir}/man' 973 974ac_prev= 975ac_dashdash= 976for ac_option 977do 978 # If the previous option needs an argument, assign it. 979 if test -n "$ac_prev"; then 980 eval $ac_prev=\$ac_option 981 ac_prev= 982 continue 983 fi 984 985 case $ac_option in 986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 987 *) ac_optarg=yes ;; 988 esac 989 990 # Accept the important Cygnus configure options, so we can diagnose typos. 991 992 case $ac_dashdash$ac_option in 993 --) 994 ac_dashdash=yes ;; 995 996 -bindir | --bindir | --bindi | --bind | --bin | --bi) 997 ac_prev=bindir ;; 998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 999 bindir=$ac_optarg ;; 1000 1001 -build | --build | --buil | --bui | --bu) 1002 ac_prev=build_alias ;; 1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1004 build_alias=$ac_optarg ;; 1005 1006 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1008 ac_prev=cache_file ;; 1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1011 cache_file=$ac_optarg ;; 1012 1013 --config-cache | -C) 1014 cache_file=config.cache ;; 1015 1016 -datadir | --datadir | --datadi | --datad) 1017 ac_prev=datadir ;; 1018 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1019 datadir=$ac_optarg ;; 1020 1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1022 | --dataroo | --dataro | --datar) 1023 ac_prev=datarootdir ;; 1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1026 datarootdir=$ac_optarg ;; 1027 1028 -disable-* | --disable-*) 1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1032 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_useropt_orig=$ac_useropt 1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1036 case $ac_user_opts in 1037 *" 1038"enable_$ac_useropt" 1039"*) ;; 1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1041 ac_unrecognized_sep=', ';; 1042 esac 1043 eval enable_$ac_useropt=no ;; 1044 1045 -docdir | --docdir | --docdi | --doc | --do) 1046 ac_prev=docdir ;; 1047 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1048 docdir=$ac_optarg ;; 1049 1050 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1051 ac_prev=dvidir ;; 1052 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1053 dvidir=$ac_optarg ;; 1054 1055 -enable-* | --enable-*) 1056 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1059 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1060 { (exit 1); exit 1; }; } 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"enable_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval enable_$ac_useropt=\$ac_optarg ;; 1071 1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1074 | --exec | --exe | --ex) 1075 ac_prev=exec_prefix ;; 1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1078 | --exec=* | --exe=* | --ex=*) 1079 exec_prefix=$ac_optarg ;; 1080 1081 -gas | --gas | --ga | --g) 1082 # Obsolete; use --with-gas. 1083 with_gas=yes ;; 1084 1085 -help | --help | --hel | --he | -h) 1086 ac_init_help=long ;; 1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1088 ac_init_help=recursive ;; 1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1090 ac_init_help=short ;; 1091 1092 -host | --host | --hos | --ho) 1093 ac_prev=host_alias ;; 1094 -host=* | --host=* | --hos=* | --ho=*) 1095 host_alias=$ac_optarg ;; 1096 1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1098 ac_prev=htmldir ;; 1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1100 | --ht=*) 1101 htmldir=$ac_optarg ;; 1102 1103 -includedir | --includedir | --includedi | --included | --include \ 1104 | --includ | --inclu | --incl | --inc) 1105 ac_prev=includedir ;; 1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1107 | --includ=* | --inclu=* | --incl=* | --inc=*) 1108 includedir=$ac_optarg ;; 1109 1110 -infodir | --infodir | --infodi | --infod | --info | --inf) 1111 ac_prev=infodir ;; 1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1113 infodir=$ac_optarg ;; 1114 1115 -libdir | --libdir | --libdi | --libd) 1116 ac_prev=libdir ;; 1117 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1118 libdir=$ac_optarg ;; 1119 1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1121 | --libexe | --libex | --libe) 1122 ac_prev=libexecdir ;; 1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1124 | --libexe=* | --libex=* | --libe=*) 1125 libexecdir=$ac_optarg ;; 1126 1127 -localedir | --localedir | --localedi | --localed | --locale) 1128 ac_prev=localedir ;; 1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1130 localedir=$ac_optarg ;; 1131 1132 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1133 | --localstate | --localstat | --localsta | --localst | --locals) 1134 ac_prev=localstatedir ;; 1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1137 localstatedir=$ac_optarg ;; 1138 1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1140 ac_prev=mandir ;; 1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1142 mandir=$ac_optarg ;; 1143 1144 -nfp | --nfp | --nf) 1145 # Obsolete; use --without-fp. 1146 with_fp=no ;; 1147 1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1149 | --no-cr | --no-c | -n) 1150 no_create=yes ;; 1151 1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1154 no_recursion=yes ;; 1155 1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1158 | --oldin | --oldi | --old | --ol | --o) 1159 ac_prev=oldincludedir ;; 1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1163 oldincludedir=$ac_optarg ;; 1164 1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1166 ac_prev=prefix ;; 1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1168 prefix=$ac_optarg ;; 1169 1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1171 | --program-pre | --program-pr | --program-p) 1172 ac_prev=program_prefix ;; 1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1175 program_prefix=$ac_optarg ;; 1176 1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1178 | --program-suf | --program-su | --program-s) 1179 ac_prev=program_suffix ;; 1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1182 program_suffix=$ac_optarg ;; 1183 1184 -program-transform-name | --program-transform-name \ 1185 | --program-transform-nam | --program-transform-na \ 1186 | --program-transform-n | --program-transform- \ 1187 | --program-transform | --program-transfor \ 1188 | --program-transfo | --program-transf \ 1189 | --program-trans | --program-tran \ 1190 | --progr-tra | --program-tr | --program-t) 1191 ac_prev=program_transform_name ;; 1192 -program-transform-name=* | --program-transform-name=* \ 1193 | --program-transform-nam=* | --program-transform-na=* \ 1194 | --program-transform-n=* | --program-transform-=* \ 1195 | --program-transform=* | --program-transfor=* \ 1196 | --program-transfo=* | --program-transf=* \ 1197 | --program-trans=* | --program-tran=* \ 1198 | --progr-tra=* | --program-tr=* | --program-t=*) 1199 program_transform_name=$ac_optarg ;; 1200 1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1202 ac_prev=pdfdir ;; 1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1204 pdfdir=$ac_optarg ;; 1205 1206 -psdir | --psdir | --psdi | --psd | --ps) 1207 ac_prev=psdir ;; 1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1209 psdir=$ac_optarg ;; 1210 1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1212 | -silent | --silent | --silen | --sile | --sil) 1213 silent=yes ;; 1214 1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1216 ac_prev=sbindir ;; 1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1218 | --sbi=* | --sb=*) 1219 sbindir=$ac_optarg ;; 1220 1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1223 | --sharedst | --shareds | --shared | --share | --shar \ 1224 | --sha | --sh) 1225 ac_prev=sharedstatedir ;; 1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1229 | --sha=* | --sh=*) 1230 sharedstatedir=$ac_optarg ;; 1231 1232 -site | --site | --sit) 1233 ac_prev=site ;; 1234 -site=* | --site=* | --sit=*) 1235 site=$ac_optarg ;; 1236 1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1238 ac_prev=srcdir ;; 1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1240 srcdir=$ac_optarg ;; 1241 1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1243 | --syscon | --sysco | --sysc | --sys | --sy) 1244 ac_prev=sysconfdir ;; 1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1247 sysconfdir=$ac_optarg ;; 1248 1249 -target | --target | --targe | --targ | --tar | --ta | --t) 1250 ac_prev=target_alias ;; 1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1252 target_alias=$ac_optarg ;; 1253 1254 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1255 verbose=yes ;; 1256 1257 -version | --version | --versio | --versi | --vers | -V) 1258 ac_init_version=: ;; 1259 1260 -with-* | --with-*) 1261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1262 # Reject names that are not valid shell variable names. 1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1264 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1265 { (exit 1); exit 1; }; } 1266 ac_useropt_orig=$ac_useropt 1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1268 case $ac_user_opts in 1269 *" 1270"with_$ac_useropt" 1271"*) ;; 1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1273 ac_unrecognized_sep=', ';; 1274 esac 1275 eval with_$ac_useropt=\$ac_optarg ;; 1276 1277 -without-* | --without-*) 1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1279 # Reject names that are not valid shell variable names. 1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1281 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1282 { (exit 1); exit 1; }; } 1283 ac_useropt_orig=$ac_useropt 1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1285 case $ac_user_opts in 1286 *" 1287"with_$ac_useropt" 1288"*) ;; 1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1290 ac_unrecognized_sep=', ';; 1291 esac 1292 eval with_$ac_useropt=no ;; 1293 1294 --x) 1295 # Obsolete; use --with-x. 1296 with_x=yes ;; 1297 1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1299 | --x-incl | --x-inc | --x-in | --x-i) 1300 ac_prev=x_includes ;; 1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1303 x_includes=$ac_optarg ;; 1304 1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1307 ac_prev=x_libraries ;; 1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1310 x_libraries=$ac_optarg ;; 1311 1312 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1313Try \`$0 --help' for more information." >&2 1314 { (exit 1); exit 1; }; } 1315 ;; 1316 1317 *=*) 1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1319 # Reject names that are not valid shell variable names. 1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1321 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1322 { (exit 1); exit 1; }; } 1323 eval $ac_envvar=\$ac_optarg 1324 export $ac_envvar ;; 1325 1326 *) 1327 # FIXME: should be removed in autoconf 3.0. 1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1332 ;; 1333 1334 esac 1335done 1336 1337if test -n "$ac_prev"; then 1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1339 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1340 { (exit 1); exit 1; }; } 1341fi 1342 1343if test -n "$ac_unrecognized_opts"; then 1344 case $enable_option_checking in 1345 no) ;; 1346 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1347 { (exit 1); exit 1; }; } ;; 1348 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1349 esac 1350fi 1351 1352# Check all directory arguments for consistency. 1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1354 datadir sysconfdir sharedstatedir localstatedir includedir \ 1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1356 libdir localedir mandir 1357do 1358 eval ac_val=\$$ac_var 1359 # Remove trailing slashes. 1360 case $ac_val in 1361 */ ) 1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1363 eval $ac_var=\$ac_val;; 1364 esac 1365 # Be sure to have absolute directory names. 1366 case $ac_val in 1367 [\\/$]* | ?:[\\/]* ) continue;; 1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1369 esac 1370 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1371 { (exit 1); exit 1; }; } 1372done 1373 1374# There might be people who depend on the old broken behavior: `$host' 1375# used to hold the argument of --host etc. 1376# FIXME: To remove some day. 1377build=$build_alias 1378host=$host_alias 1379target=$target_alias 1380 1381# FIXME: To remove some day. 1382if test "x$host_alias" != x; then 1383 if test "x$build_alias" = x; then 1384 cross_compiling=maybe 1385 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1386 If a cross compiler is detected then cross compile mode will be used." >&2 1387 elif test "x$build_alias" != "x$host_alias"; then 1388 cross_compiling=yes 1389 fi 1390fi 1391 1392ac_tool_prefix= 1393test -n "$host_alias" && ac_tool_prefix=$host_alias- 1394 1395test "$silent" = yes && exec 6>/dev/null 1396 1397 1398ac_pwd=`pwd` && test -n "$ac_pwd" && 1399ac_ls_di=`ls -di .` && 1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1401 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1402 { (exit 1); exit 1; }; } 1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1404 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1405 { (exit 1); exit 1; }; } 1406 1407 1408# Find the source files, if location was not specified. 1409if test -z "$srcdir"; then 1410 ac_srcdir_defaulted=yes 1411 # Try the directory containing this script, then the parent directory. 1412 ac_confdir=`$as_dirname -- "$as_myself" || 1413$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1414 X"$as_myself" : 'X\(//\)[^/]' \| \ 1415 X"$as_myself" : 'X\(//\)$' \| \ 1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1417$as_echo X"$as_myself" | 1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)[^/].*/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\/\)$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\).*/{ 1431 s//\1/ 1432 q 1433 } 1434 s/.*/./; q'` 1435 srcdir=$ac_confdir 1436 if test ! -r "$srcdir/$ac_unique_file"; then 1437 srcdir=.. 1438 fi 1439else 1440 ac_srcdir_defaulted=no 1441fi 1442if test ! -r "$srcdir/$ac_unique_file"; then 1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1444 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1445 { (exit 1); exit 1; }; } 1446fi 1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1448ac_abs_confdir=`( 1449 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1450 { (exit 1); exit 1; }; } 1451 pwd)` 1452# When building in place, set srcdir=. 1453if test "$ac_abs_confdir" = "$ac_pwd"; then 1454 srcdir=. 1455fi 1456# Remove unnecessary trailing slashes from srcdir. 1457# Double slashes in file names in object file debugging info 1458# mess up M-x gdb in Emacs. 1459case $srcdir in 1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1461esac 1462for ac_var in $ac_precious_vars; do 1463 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1464 eval ac_env_${ac_var}_value=\$${ac_var} 1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1466 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1467done 1468 1469# 1470# Report the --help message. 1471# 1472if test "$ac_init_help" = "long"; then 1473 # Omit some internal or obsolete options to make the list less imposing. 1474 # This message is too long to be a string in the A/UX 3.1 sh. 1475 cat <<_ACEOF 1476\`configure' configures libsmf 1.3 to adapt to many kinds of systems. 1477 1478Usage: $0 [OPTION]... [VAR=VALUE]... 1479 1480To assign environment variables (e.g., CC, CFLAGS...), specify them as 1481VAR=VALUE. See below for descriptions of some of the useful variables. 1482 1483Defaults for the options are specified in brackets. 1484 1485Configuration: 1486 -h, --help display this help and exit 1487 --help=short display options specific to this package 1488 --help=recursive display the short help of all the included packages 1489 -V, --version display version information and exit 1490 -q, --quiet, --silent do not print \`checking...' messages 1491 --cache-file=FILE cache test results in FILE [disabled] 1492 -C, --config-cache alias for \`--cache-file=config.cache' 1493 -n, --no-create do not create output files 1494 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1495 1496Installation directories: 1497 --prefix=PREFIX install architecture-independent files in PREFIX 1498 [$ac_default_prefix] 1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1500 [PREFIX] 1501 1502By default, \`make install' will install all the files in 1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1504an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1505for instance \`--prefix=\$HOME'. 1506 1507For better control, use the options below. 1508 1509Fine tuning of the installation directories: 1510 --bindir=DIR user executables [EPREFIX/bin] 1511 --sbindir=DIR system admin executables [EPREFIX/sbin] 1512 --libexecdir=DIR program executables [EPREFIX/libexec] 1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1516 --libdir=DIR object code libraries [EPREFIX/lib] 1517 --includedir=DIR C header files [PREFIX/include] 1518 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1521 --infodir=DIR info documentation [DATAROOTDIR/info] 1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1523 --mandir=DIR man documentation [DATAROOTDIR/man] 1524 --docdir=DIR documentation root [DATAROOTDIR/doc/libsmf] 1525 --htmldir=DIR html documentation [DOCDIR] 1526 --dvidir=DIR dvi documentation [DOCDIR] 1527 --pdfdir=DIR pdf documentation [DOCDIR] 1528 --psdir=DIR ps documentation [DOCDIR] 1529_ACEOF 1530 1531 cat <<\_ACEOF 1532 1533Program names: 1534 --program-prefix=PREFIX prepend PREFIX to installed program names 1535 --program-suffix=SUFFIX append SUFFIX to installed program names 1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1537 1538System types: 1539 --build=BUILD configure for building on BUILD [guessed] 1540 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1541_ACEOF 1542fi 1543 1544if test -n "$ac_init_help"; then 1545 case $ac_init_help in 1546 short | recursive ) echo "Configuration of libsmf 1.3:";; 1547 esac 1548 cat <<\_ACEOF 1549 1550Optional Features: 1551 --disable-option-checking ignore unrecognized --enable/--with options 1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1554 --disable-dependency-tracking speeds up one-time build 1555 --enable-dependency-tracking do not reject slow dependency extractors 1556 --enable-shared[=PKGS] build shared libraries [default=yes] 1557 --enable-static[=PKGS] build static libraries [default=yes] 1558 --enable-fast-install[=PKGS] 1559 optimize for fast installation [default=yes] 1560 --disable-libtool-lock avoid locking (might break parallel builds) 1561 1562Optional Packages: 1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1565 --with-pic try to use only PIC/non-PIC objects [default=use 1566 both] 1567 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1568 --with-readline support fancy command line editing [default=check] 1569 1570Some influential environment variables: 1571 CC C compiler command 1572 CFLAGS C compiler flags 1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1574 nonstandard directory <lib dir> 1575 LIBS libraries to pass to the linker, e.g. -l<library> 1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1577 you have headers in a nonstandard directory <include dir> 1578 CPP C preprocessor 1579 PKG_CONFIG path to pkg-config utility 1580 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1581 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1582 1583Use these variables to override the choices made by `configure' or to help 1584it to find libraries and programs with nonstandard names/locations. 1585 1586Report bugs to <trasz@FreeBSD.org>. 1587_ACEOF 1588ac_status=$? 1589fi 1590 1591if test "$ac_init_help" = "recursive"; then 1592 # If there are subdirs, report their specific --help. 1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1594 test -d "$ac_dir" || 1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1596 continue 1597 ac_builddir=. 1598 1599case "$ac_dir" in 1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1601*) 1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1603 # A ".." for each directory in $ac_dir_suffix. 1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1605 case $ac_top_builddir_sub in 1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1608 esac ;; 1609esac 1610ac_abs_top_builddir=$ac_pwd 1611ac_abs_builddir=$ac_pwd$ac_dir_suffix 1612# for backward compatibility: 1613ac_top_builddir=$ac_top_build_prefix 1614 1615case $srcdir in 1616 .) # We are building in place. 1617 ac_srcdir=. 1618 ac_top_srcdir=$ac_top_builddir_sub 1619 ac_abs_top_srcdir=$ac_pwd ;; 1620 [\\/]* | ?:[\\/]* ) # Absolute name. 1621 ac_srcdir=$srcdir$ac_dir_suffix; 1622 ac_top_srcdir=$srcdir 1623 ac_abs_top_srcdir=$srcdir ;; 1624 *) # Relative name. 1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1626 ac_top_srcdir=$ac_top_build_prefix$srcdir 1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1628esac 1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1630 1631 cd "$ac_dir" || { ac_status=$?; continue; } 1632 # Check for guested configure. 1633 if test -f "$ac_srcdir/configure.gnu"; then 1634 echo && 1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1636 elif test -f "$ac_srcdir/configure"; then 1637 echo && 1638 $SHELL "$ac_srcdir/configure" --help=recursive 1639 else 1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1641 fi || ac_status=$? 1642 cd "$ac_pwd" || { ac_status=$?; break; } 1643 done 1644fi 1645 1646test -n "$ac_init_help" && exit $ac_status 1647if $ac_init_version; then 1648 cat <<\_ACEOF 1649libsmf configure 1.3 1650generated by GNU Autoconf 2.62 1651 1652Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16532002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1654This configure script is free software; the Free Software Foundation 1655gives unlimited permission to copy, distribute and modify it. 1656_ACEOF 1657 exit 1658fi 1659cat >config.log <<_ACEOF 1660This file contains any messages produced by compilers while 1661running configure, to aid debugging if configure makes a mistake. 1662 1663It was created by libsmf $as_me 1.3, which was 1664generated by GNU Autoconf 2.62. Invocation command line was 1665 1666 $ $0 $@ 1667 1668_ACEOF 1669exec 5>>config.log 1670{ 1671cat <<_ASUNAME 1672## --------- ## 1673## Platform. ## 1674## --------- ## 1675 1676hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1677uname -m = `(uname -m) 2>/dev/null || echo unknown` 1678uname -r = `(uname -r) 2>/dev/null || echo unknown` 1679uname -s = `(uname -s) 2>/dev/null || echo unknown` 1680uname -v = `(uname -v) 2>/dev/null || echo unknown` 1681 1682/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1683/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1684 1685/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1686/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1687/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1688/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1689/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1690/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1691/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1692 1693_ASUNAME 1694 1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1696for as_dir in $PATH 1697do 1698 IFS=$as_save_IFS 1699 test -z "$as_dir" && as_dir=. 1700 $as_echo "PATH: $as_dir" 1701done 1702IFS=$as_save_IFS 1703 1704} >&5 1705 1706cat >&5 <<_ACEOF 1707 1708 1709## ----------- ## 1710## Core tests. ## 1711## ----------- ## 1712 1713_ACEOF 1714 1715 1716# Keep a trace of the command line. 1717# Strip out --no-create and --no-recursion so they do not pile up. 1718# Strip out --silent because we don't want to record it for future runs. 1719# Also quote any args containing shell meta-characters. 1720# Make two passes to allow for proper duplicate-argument suppression. 1721ac_configure_args= 1722ac_configure_args0= 1723ac_configure_args1= 1724ac_must_keep_next=false 1725for ac_pass in 1 2 1726do 1727 for ac_arg 1728 do 1729 case $ac_arg in 1730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1732 | -silent | --silent | --silen | --sile | --sil) 1733 continue ;; 1734 *\'*) 1735 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1736 esac 1737 case $ac_pass in 1738 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1739 2) 1740 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1741 if test $ac_must_keep_next = true; then 1742 ac_must_keep_next=false # Got value, back to normal. 1743 else 1744 case $ac_arg in 1745 *=* | --config-cache | -C | -disable-* | --disable-* \ 1746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1748 | -with-* | --with-* | -without-* | --without-* | --x) 1749 case "$ac_configure_args0 " in 1750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1751 esac 1752 ;; 1753 -* ) ac_must_keep_next=true ;; 1754 esac 1755 fi 1756 ac_configure_args="$ac_configure_args '$ac_arg'" 1757 ;; 1758 esac 1759 done 1760done 1761$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1762$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1763 1764# When interrupted or exit'd, cleanup temporary files, and complete 1765# config.log. We remove comments because anyway the quotes in there 1766# would cause problems or look ugly. 1767# WARNING: Use '\'' to represent an apostrophe within the trap. 1768# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1769trap 'exit_status=$? 1770 # Save into config.log some information that might help in debugging. 1771 { 1772 echo 1773 1774 cat <<\_ASBOX 1775## ---------------- ## 1776## Cache variables. ## 1777## ---------------- ## 1778_ASBOX 1779 echo 1780 # The following way of writing the cache mishandles newlines in values, 1781( 1782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1783 eval ac_val=\$$ac_var 1784 case $ac_val in #( 1785 *${as_nl}*) 1786 case $ac_var in #( 1787 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1788$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1789 esac 1790 case $ac_var in #( 1791 _ | IFS | as_nl) ;; #( 1792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1793 *) $as_unset $ac_var ;; 1794 esac ;; 1795 esac 1796 done 1797 (set) 2>&1 | 1798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1799 *${as_nl}ac_space=\ *) 1800 sed -n \ 1801 "s/'\''/'\''\\\\'\'''\''/g; 1802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1803 ;; #( 1804 *) 1805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1806 ;; 1807 esac | 1808 sort 1809) 1810 echo 1811 1812 cat <<\_ASBOX 1813## ----------------- ## 1814## Output variables. ## 1815## ----------------- ## 1816_ASBOX 1817 echo 1818 for ac_var in $ac_subst_vars 1819 do 1820 eval ac_val=\$$ac_var 1821 case $ac_val in 1822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1823 esac 1824 $as_echo "$ac_var='\''$ac_val'\''" 1825 done | sort 1826 echo 1827 1828 if test -n "$ac_subst_files"; then 1829 cat <<\_ASBOX 1830## ------------------- ## 1831## File substitutions. ## 1832## ------------------- ## 1833_ASBOX 1834 echo 1835 for ac_var in $ac_subst_files 1836 do 1837 eval ac_val=\$$ac_var 1838 case $ac_val in 1839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1840 esac 1841 $as_echo "$ac_var='\''$ac_val'\''" 1842 done | sort 1843 echo 1844 fi 1845 1846 if test -s confdefs.h; then 1847 cat <<\_ASBOX 1848## ----------- ## 1849## confdefs.h. ## 1850## ----------- ## 1851_ASBOX 1852 echo 1853 cat confdefs.h 1854 echo 1855 fi 1856 test "$ac_signal" != 0 && 1857 $as_echo "$as_me: caught signal $ac_signal" 1858 $as_echo "$as_me: exit $exit_status" 1859 } >&5 1860 rm -f core *.core core.conftest.* && 1861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1862 exit $exit_status 1863' 0 1864for ac_signal in 1 2 13 15; do 1865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1866done 1867ac_signal=0 1868 1869# confdefs.h avoids OS command line length limits that DEFS can exceed. 1870rm -f -r conftest* confdefs.h 1871 1872# Predefined preprocessor variables. 1873 1874cat >>confdefs.h <<_ACEOF 1875#define PACKAGE_NAME "$PACKAGE_NAME" 1876_ACEOF 1877 1878 1879cat >>confdefs.h <<_ACEOF 1880#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1881_ACEOF 1882 1883 1884cat >>confdefs.h <<_ACEOF 1885#define PACKAGE_VERSION "$PACKAGE_VERSION" 1886_ACEOF 1887 1888 1889cat >>confdefs.h <<_ACEOF 1890#define PACKAGE_STRING "$PACKAGE_STRING" 1891_ACEOF 1892 1893 1894cat >>confdefs.h <<_ACEOF 1895#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1896_ACEOF 1897 1898 1899# Let the site file select an alternate cache file if it wants to. 1900# Prefer an explicitly selected file to automatically selected ones. 1901ac_site_file1=NONE 1902ac_site_file2=NONE 1903if test -n "$CONFIG_SITE"; then 1904 ac_site_file1=$CONFIG_SITE 1905elif test "x$prefix" != xNONE; then 1906 ac_site_file1=$prefix/share/config.site 1907 ac_site_file2=$prefix/etc/config.site 1908else 1909 ac_site_file1=$ac_default_prefix/share/config.site 1910 ac_site_file2=$ac_default_prefix/etc/config.site 1911fi 1912for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1913do 1914 test "x$ac_site_file" = xNONE && continue 1915 if test -r "$ac_site_file"; then 1916 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1917$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1918 sed 's/^/| /' "$ac_site_file" >&5 1919 . "$ac_site_file" 1920 fi 1921done 1922 1923if test -r "$cache_file"; then 1924 # Some versions of bash will fail to source /dev/null (special 1925 # files actually), so we avoid doing that. 1926 if test -f "$cache_file"; then 1927 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1928$as_echo "$as_me: loading cache $cache_file" >&6;} 1929 case $cache_file in 1930 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1931 *) . "./$cache_file";; 1932 esac 1933 fi 1934else 1935 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1936$as_echo "$as_me: creating cache $cache_file" >&6;} 1937 >$cache_file 1938fi 1939 1940# Check that the precious variables saved in the cache have kept the same 1941# value. 1942ac_cache_corrupted=false 1943for ac_var in $ac_precious_vars; do 1944 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1945 eval ac_new_set=\$ac_env_${ac_var}_set 1946 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1947 eval ac_new_val=\$ac_env_${ac_var}_value 1948 case $ac_old_set,$ac_new_set in 1949 set,) 1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1951$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1952 ac_cache_corrupted=: ;; 1953 ,set) 1954 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1955$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1956 ac_cache_corrupted=: ;; 1957 ,);; 1958 *) 1959 if test "x$ac_old_val" != "x$ac_new_val"; then 1960 # differences in whitespace do not lead to failure. 1961 ac_old_val_w=`echo x $ac_old_val` 1962 ac_new_val_w=`echo x $ac_new_val` 1963 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1965$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1966 ac_cache_corrupted=: 1967 else 1968 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1969$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1970 eval $ac_var=\$ac_old_val 1971 fi 1972 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1973$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1974 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1975$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1976 fi;; 1977 esac 1978 # Pass precious variables to config.status. 1979 if test "$ac_new_set" = set; then 1980 case $ac_new_val in 1981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1982 *) ac_arg=$ac_var=$ac_new_val ;; 1983 esac 1984 case " $ac_configure_args " in 1985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1986 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1987 esac 1988 fi 1989done 1990if $ac_cache_corrupted; then 1991 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1992$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1993 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1994$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1995 { (exit 1); exit 1; }; } 1996fi 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022ac_ext=c 2023ac_cpp='$CPP $CPPFLAGS' 2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2026ac_compiler_gnu=$ac_cv_c_compiler_gnu 2027 2028 2029am__api_version='1.10' 2030 2031ac_aux_dir= 2032for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2033 if test -f "$ac_dir/install-sh"; then 2034 ac_aux_dir=$ac_dir 2035 ac_install_sh="$ac_aux_dir/install-sh -c" 2036 break 2037 elif test -f "$ac_dir/install.sh"; then 2038 ac_aux_dir=$ac_dir 2039 ac_install_sh="$ac_aux_dir/install.sh -c" 2040 break 2041 elif test -f "$ac_dir/shtool"; then 2042 ac_aux_dir=$ac_dir 2043 ac_install_sh="$ac_aux_dir/shtool install -c" 2044 break 2045 fi 2046done 2047if test -z "$ac_aux_dir"; then 2048 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2049$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2050 { (exit 1); exit 1; }; } 2051fi 2052 2053# These three variables are undocumented and unsupported, 2054# and are intended to be withdrawn in a future Autoconf release. 2055# They can cause serious problems if a builder's source tree is in a directory 2056# whose full name contains unusual characters. 2057ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2058ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2059ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2060 2061 2062# Find a good install program. We prefer a C program (faster), 2063# so one script is as good as another. But avoid the broken or 2064# incompatible versions: 2065# SysV /etc/install, /usr/sbin/install 2066# SunOS /usr/etc/install 2067# IRIX /sbin/install 2068# AIX /bin/install 2069# AmigaOS /C/install, which installs bootblocks on floppy discs 2070# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2071# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2072# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2073# OS/2's system install, which has a completely different semantic 2074# ./install, which can be erroneously created by make from ./install.sh. 2075# Reject install programs that cannot install multiple files. 2076{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2077$as_echo_n "checking for a BSD-compatible install... " >&6; } 2078if test -z "$INSTALL"; then 2079if test "${ac_cv_path_install+set}" = set; then 2080 $as_echo_n "(cached) " >&6 2081else 2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2083for as_dir in $PATH 2084do 2085 IFS=$as_save_IFS 2086 test -z "$as_dir" && as_dir=. 2087 # Account for people who put trailing slashes in PATH elements. 2088case $as_dir/ in 2089 ./ | .// | /cC/* | \ 2090 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2091 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2092 /usr/ucb/* ) ;; 2093 *) 2094 # OSF1 and SCO ODT 3.0 have their own names for install. 2095 # Don't use installbsd from OSF since it installs stuff as root 2096 # by default. 2097 for ac_prog in ginstall scoinst install; do 2098 for ac_exec_ext in '' $ac_executable_extensions; do 2099 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2100 if test $ac_prog = install && 2101 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2102 # AIX install. It has an incompatible calling convention. 2103 : 2104 elif test $ac_prog = install && 2105 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2106 # program-specific install script used by HP pwplus--don't use. 2107 : 2108 else 2109 rm -rf conftest.one conftest.two conftest.dir 2110 echo one > conftest.one 2111 echo two > conftest.two 2112 mkdir conftest.dir 2113 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2114 test -s conftest.one && test -s conftest.two && 2115 test -s conftest.dir/conftest.one && 2116 test -s conftest.dir/conftest.two 2117 then 2118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2119 break 3 2120 fi 2121 fi 2122 fi 2123 done 2124 done 2125 ;; 2126esac 2127 2128done 2129IFS=$as_save_IFS 2130 2131rm -rf conftest.one conftest.two conftest.dir 2132 2133fi 2134 if test "${ac_cv_path_install+set}" = set; then 2135 INSTALL=$ac_cv_path_install 2136 else 2137 # As a last resort, use the slow shell script. Don't cache a 2138 # value for INSTALL within a source directory, because that will 2139 # break other packages using the cache if that directory is 2140 # removed, or if the value is a relative name. 2141 INSTALL=$ac_install_sh 2142 fi 2143fi 2144{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2145$as_echo "$INSTALL" >&6; } 2146 2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2148# It thinks the first close brace ends the variable substitution. 2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2150 2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2152 2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2154 2155{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2156$as_echo_n "checking whether build environment is sane... " >&6; } 2157# Just in case 2158sleep 1 2159echo timestamp > conftest.file 2160# Do `set' in a subshell so we don't clobber the current shell's 2161# arguments. Must try -L first in case configure is actually a 2162# symlink; some systems play weird games with the mod time of symlinks 2163# (eg FreeBSD returns the mod time of the symlink's containing 2164# directory). 2165if ( 2166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2167 if test "$*" = "X"; then 2168 # -L didn't work. 2169 set X `ls -t $srcdir/configure conftest.file` 2170 fi 2171 rm -f conftest.file 2172 if test "$*" != "X $srcdir/configure conftest.file" \ 2173 && test "$*" != "X conftest.file $srcdir/configure"; then 2174 2175 # If neither matched, then we have a broken ls. This can happen 2176 # if, for instance, CONFIG_SHELL is bash and it inherits a 2177 # broken ls alias from the environment. This has actually 2178 # happened. Such a system could not be considered "sane". 2179 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2180alias in your environment" >&5 2181$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2182alias in your environment" >&2;} 2183 { (exit 1); exit 1; }; } 2184 fi 2185 2186 test "$2" = conftest.file 2187 ) 2188then 2189 # Ok. 2190 : 2191else 2192 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2193Check your system clock" >&5 2194$as_echo "$as_me: error: newly created file is older than distributed files! 2195Check your system clock" >&2;} 2196 { (exit 1); exit 1; }; } 2197fi 2198{ $as_echo "$as_me:$LINENO: result: yes" >&5 2199$as_echo "yes" >&6; } 2200test "$program_prefix" != NONE && 2201 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2202# Use a double $ so make ignores it. 2203test "$program_suffix" != NONE && 2204 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2205# Double any \ or $. 2206# By default was `s,x,x', remove it if useless. 2207ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2208program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2209 2210# expand $ac_aux_dir to an absolute path 2211am_aux_dir=`cd $ac_aux_dir && pwd` 2212 2213test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2214# Use eval to expand $SHELL 2215if eval "$MISSING --run true"; then 2216 am_missing_run="$MISSING --run " 2217else 2218 am_missing_run= 2219 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2220$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2221fi 2222 2223{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2224$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2225if test -z "$MKDIR_P"; then 2226 if test "${ac_cv_path_mkdir+set}" = set; then 2227 $as_echo_n "(cached) " >&6 2228else 2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2230for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2231do 2232 IFS=$as_save_IFS 2233 test -z "$as_dir" && as_dir=. 2234 for ac_prog in mkdir gmkdir; do 2235 for ac_exec_ext in '' $ac_executable_extensions; do 2236 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2238 'mkdir (GNU coreutils) '* | \ 2239 'mkdir (coreutils) '* | \ 2240 'mkdir (fileutils) '4.1*) 2241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2242 break 3;; 2243 esac 2244 done 2245 done 2246done 2247IFS=$as_save_IFS 2248 2249fi 2250 2251 if test "${ac_cv_path_mkdir+set}" = set; then 2252 MKDIR_P="$ac_cv_path_mkdir -p" 2253 else 2254 # As a last resort, use the slow shell script. Don't cache a 2255 # value for MKDIR_P within a source directory, because that will 2256 # break other packages using the cache if that directory is 2257 # removed, or if the value is a relative name. 2258 test -d ./--version && rmdir ./--version 2259 MKDIR_P="$ac_install_sh -d" 2260 fi 2261fi 2262{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2263$as_echo "$MKDIR_P" >&6; } 2264 2265mkdir_p="$MKDIR_P" 2266case $mkdir_p in 2267 [\\/$]* | ?:[\\/]*) ;; 2268 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2269esac 2270 2271for ac_prog in gawk mawk nawk awk 2272do 2273 # Extract the first word of "$ac_prog", so it can be a program name with args. 2274set dummy $ac_prog; ac_word=$2 2275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2276$as_echo_n "checking for $ac_word... " >&6; } 2277if test "${ac_cv_prog_AWK+set}" = set; then 2278 $as_echo_n "(cached) " >&6 2279else 2280 if test -n "$AWK"; then 2281 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2282else 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2290 ac_cv_prog_AWK="$ac_prog" 2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2292 break 2 2293 fi 2294done 2295done 2296IFS=$as_save_IFS 2297 2298fi 2299fi 2300AWK=$ac_cv_prog_AWK 2301if test -n "$AWK"; then 2302 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2303$as_echo "$AWK" >&6; } 2304else 2305 { $as_echo "$as_me:$LINENO: result: no" >&5 2306$as_echo "no" >&6; } 2307fi 2308 2309 2310 test -n "$AWK" && break 2311done 2312 2313{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2314$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2315set x ${MAKE-make} 2316ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2317if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2318 $as_echo_n "(cached) " >&6 2319else 2320 cat >conftest.make <<\_ACEOF 2321SHELL = /bin/sh 2322all: 2323 @echo '@@@%%%=$(MAKE)=@@@%%%' 2324_ACEOF 2325# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2326case `${MAKE-make} -f conftest.make 2>/dev/null` in 2327 *@@@%%%=?*=@@@%%%*) 2328 eval ac_cv_prog_make_${ac_make}_set=yes;; 2329 *) 2330 eval ac_cv_prog_make_${ac_make}_set=no;; 2331esac 2332rm -f conftest.make 2333fi 2334if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2335 { $as_echo "$as_me:$LINENO: result: yes" >&5 2336$as_echo "yes" >&6; } 2337 SET_MAKE= 2338else 2339 { $as_echo "$as_me:$LINENO: result: no" >&5 2340$as_echo "no" >&6; } 2341 SET_MAKE="MAKE=${MAKE-make}" 2342fi 2343 2344rm -rf .tst 2>/dev/null 2345mkdir .tst 2>/dev/null 2346if test -d .tst; then 2347 am__leading_dot=. 2348else 2349 am__leading_dot=_ 2350fi 2351rmdir .tst 2>/dev/null 2352 2353if test "`cd $srcdir && pwd`" != "`pwd`"; then 2354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2355 # is not polluted with repeated "-I." 2356 am__isrc=' -I$(srcdir)' 2357 # test to see if srcdir already configured 2358 if test -f $srcdir/config.status; then 2359 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2360$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2361 { (exit 1); exit 1; }; } 2362 fi 2363fi 2364 2365# test whether we have cygpath 2366if test -z "$CYGPATH_W"; then 2367 if (cygpath --version) >/dev/null 2>/dev/null; then 2368 CYGPATH_W='cygpath -w' 2369 else 2370 CYGPATH_W=echo 2371 fi 2372fi 2373 2374 2375# Define the identity of the package. 2376 PACKAGE='libsmf' 2377 VERSION='1.3' 2378 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE "$PACKAGE" 2382_ACEOF 2383 2384 2385cat >>confdefs.h <<_ACEOF 2386#define VERSION "$VERSION" 2387_ACEOF 2388 2389# Some tools Automake needs. 2390 2391ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2392 2393 2394AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2395 2396 2397AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2398 2399 2400AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2401 2402 2403MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2404 2405install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2406 2407# Installed binaries are usually stripped using `strip' when the user 2408# run `make install-strip'. However `strip' might not be the right 2409# tool to use in cross-compilation environments, therefore Automake 2410# will honor the `STRIP' environment variable to overrule this program. 2411if test "$cross_compiling" != no; then 2412 if test -n "$ac_tool_prefix"; then 2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2414set dummy ${ac_tool_prefix}strip; ac_word=$2 2415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2416$as_echo_n "checking for $ac_word... " >&6; } 2417if test "${ac_cv_prog_STRIP+set}" = set; then 2418 $as_echo_n "(cached) " >&6 2419else 2420 if test -n "$STRIP"; then 2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2422else 2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2432 break 2 2433 fi 2434done 2435done 2436IFS=$as_save_IFS 2437 2438fi 2439fi 2440STRIP=$ac_cv_prog_STRIP 2441if test -n "$STRIP"; then 2442 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2443$as_echo "$STRIP" >&6; } 2444else 2445 { $as_echo "$as_me:$LINENO: result: no" >&5 2446$as_echo "no" >&6; } 2447fi 2448 2449 2450fi 2451if test -z "$ac_cv_prog_STRIP"; then 2452 ac_ct_STRIP=$STRIP 2453 # Extract the first word of "strip", so it can be a program name with args. 2454set dummy strip; ac_word=$2 2455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$ac_ct_STRIP"; then 2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2470 ac_cv_prog_ac_ct_STRIP="strip" 2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2481if test -n "$ac_ct_STRIP"; then 2482 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2483$as_echo "$ac_ct_STRIP" >&6; } 2484else 2485 { $as_echo "$as_me:$LINENO: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 if test "x$ac_ct_STRIP" = x; then 2490 STRIP=":" 2491 else 2492 case $cross_compiling:$ac_tool_warned in 2493yes:) 2494{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2495whose name does not start with the host triplet. If you think this 2496configuration is useful to you, please write to autoconf@gnu.org." >&5 2497$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2498whose name does not start with the host triplet. If you think this 2499configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2500ac_tool_warned=yes ;; 2501esac 2502 STRIP=$ac_ct_STRIP 2503 fi 2504else 2505 STRIP="$ac_cv_prog_STRIP" 2506fi 2507 2508fi 2509INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2510 2511# We need awk for the "check" target. The system "awk" is bad on 2512# some platforms. 2513# Always define AMTAR for backward compatibility. 2514 2515AMTAR=${AMTAR-"${am_missing_run}tar"} 2516 2517am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2518 2519 2520 2521 2522 2523 2524ac_config_headers="$ac_config_headers config.h" 2525 2526 2527# Checks for programs. 2528ac_ext=c 2529ac_cpp='$CPP $CPPFLAGS' 2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2532ac_compiler_gnu=$ac_cv_c_compiler_gnu 2533if test -n "$ac_tool_prefix"; then 2534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2535set dummy ${ac_tool_prefix}gcc; ac_word=$2 2536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2537$as_echo_n "checking for $ac_word... " >&6; } 2538if test "${ac_cv_prog_CC+set}" = set; then 2539 $as_echo_n "(cached) " >&6 2540else 2541 if test -n "$CC"; then 2542 ac_cv_prog_CC="$CC" # Let the user override the test. 2543else 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 test -z "$as_dir" && as_dir=. 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2551 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2553 break 2 2554 fi 2555done 2556done 2557IFS=$as_save_IFS 2558 2559fi 2560fi 2561CC=$ac_cv_prog_CC 2562if test -n "$CC"; then 2563 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2564$as_echo "$CC" >&6; } 2565else 2566 { $as_echo "$as_me:$LINENO: result: no" >&5 2567$as_echo "no" >&6; } 2568fi 2569 2570 2571fi 2572if test -z "$ac_cv_prog_CC"; then 2573 ac_ct_CC=$CC 2574 # Extract the first word of "gcc", so it can be a program name with args. 2575set dummy gcc; ac_word=$2 2576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2577$as_echo_n "checking for $ac_word... " >&6; } 2578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2579 $as_echo_n "(cached) " >&6 2580else 2581 if test -n "$ac_ct_CC"; then 2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2583else 2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 test -z "$as_dir" && as_dir=. 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2591 ac_cv_prog_ac_ct_CC="gcc" 2592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596done 2597IFS=$as_save_IFS 2598 2599fi 2600fi 2601ac_ct_CC=$ac_cv_prog_ac_ct_CC 2602if test -n "$ac_ct_CC"; then 2603 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2604$as_echo "$ac_ct_CC" >&6; } 2605else 2606 { $as_echo "$as_me:$LINENO: result: no" >&5 2607$as_echo "no" >&6; } 2608fi 2609 2610 if test "x$ac_ct_CC" = x; then 2611 CC="" 2612 else 2613 case $cross_compiling:$ac_tool_warned in 2614yes:) 2615{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2616whose name does not start with the host triplet. If you think this 2617configuration is useful to you, please write to autoconf@gnu.org." >&5 2618$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2619whose name does not start with the host triplet. If you think this 2620configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2621ac_tool_warned=yes ;; 2622esac 2623 CC=$ac_ct_CC 2624 fi 2625else 2626 CC="$ac_cv_prog_CC" 2627fi 2628 2629if test -z "$CC"; then 2630 if test -n "$ac_tool_prefix"; then 2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2632set dummy ${ac_tool_prefix}cc; ac_word=$2 2633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2634$as_echo_n "checking for $ac_word... " >&6; } 2635if test "${ac_cv_prog_CC+set}" = set; then 2636 $as_echo_n "(cached) " >&6 2637else 2638 if test -n "$CC"; then 2639 ac_cv_prog_CC="$CC" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 test -z "$as_dir" && as_dir=. 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2648 ac_cv_prog_CC="${ac_tool_prefix}cc" 2649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2650 break 2 2651 fi 2652done 2653done 2654IFS=$as_save_IFS 2655 2656fi 2657fi 2658CC=$ac_cv_prog_CC 2659if test -n "$CC"; then 2660 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2661$as_echo "$CC" >&6; } 2662else 2663 { $as_echo "$as_me:$LINENO: result: no" >&5 2664$as_echo "no" >&6; } 2665fi 2666 2667 2668 fi 2669fi 2670if test -z "$CC"; then 2671 # Extract the first word of "cc", so it can be a program name with args. 2672set dummy cc; ac_word=$2 2673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if test "${ac_cv_prog_CC+set}" = set; then 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681 ac_prog_rejected=no 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2690 ac_prog_rejected=yes 2691 continue 2692 fi 2693 ac_cv_prog_CC="cc" 2694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697done 2698done 2699IFS=$as_save_IFS 2700 2701if test $ac_prog_rejected = yes; then 2702 # We found a bogon in the path, so make sure we never use it. 2703 set dummy $ac_cv_prog_CC 2704 shift 2705 if test $# != 0; then 2706 # We chose a different compiler from the bogus one. 2707 # However, it has the same basename, so the bogon will be chosen 2708 # first if we set CC to just the basename; use the full file name. 2709 shift 2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2711 fi 2712fi 2713fi 2714fi 2715CC=$ac_cv_prog_CC 2716if test -n "$CC"; then 2717 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2718$as_echo "$CC" >&6; } 2719else 2720 { $as_echo "$as_me:$LINENO: result: no" >&5 2721$as_echo "no" >&6; } 2722fi 2723 2724 2725fi 2726if test -z "$CC"; then 2727 if test -n "$ac_tool_prefix"; then 2728 for ac_prog in cl.exe 2729 do 2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2731set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2733$as_echo_n "checking for $ac_word... " >&6; } 2734if test "${ac_cv_prog_CC+set}" = set; then 2735 $as_echo_n "(cached) " >&6 2736else 2737 if test -n "$CC"; then 2738 ac_cv_prog_CC="$CC" # Let the user override the test. 2739else 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 test -z "$as_dir" && as_dir=. 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2749 break 2 2750 fi 2751done 2752done 2753IFS=$as_save_IFS 2754 2755fi 2756fi 2757CC=$ac_cv_prog_CC 2758if test -n "$CC"; then 2759 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2760$as_echo "$CC" >&6; } 2761else 2762 { $as_echo "$as_me:$LINENO: result: no" >&5 2763$as_echo "no" >&6; } 2764fi 2765 2766 2767 test -n "$CC" && break 2768 done 2769fi 2770if test -z "$CC"; then 2771 ac_ct_CC=$CC 2772 for ac_prog in cl.exe 2773do 2774 # Extract the first word of "$ac_prog", so it can be a program name with args. 2775set dummy $ac_prog; ac_word=$2 2776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2777$as_echo_n "checking for $ac_word... " >&6; } 2778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2779 $as_echo_n "(cached) " >&6 2780else 2781 if test -n "$ac_ct_CC"; then 2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2783else 2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785for as_dir in $PATH 2786do 2787 IFS=$as_save_IFS 2788 test -z "$as_dir" && as_dir=. 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2791 ac_cv_prog_ac_ct_CC="$ac_prog" 2792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795done 2796done 2797IFS=$as_save_IFS 2798 2799fi 2800fi 2801ac_ct_CC=$ac_cv_prog_ac_ct_CC 2802if test -n "$ac_ct_CC"; then 2803 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2804$as_echo "$ac_ct_CC" >&6; } 2805else 2806 { $as_echo "$as_me:$LINENO: result: no" >&5 2807$as_echo "no" >&6; } 2808fi 2809 2810 2811 test -n "$ac_ct_CC" && break 2812done 2813 2814 if test "x$ac_ct_CC" = x; then 2815 CC="" 2816 else 2817 case $cross_compiling:$ac_tool_warned in 2818yes:) 2819{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2820whose name does not start with the host triplet. If you think this 2821configuration is useful to you, please write to autoconf@gnu.org." >&5 2822$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2823whose name does not start with the host triplet. If you think this 2824configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2825ac_tool_warned=yes ;; 2826esac 2827 CC=$ac_ct_CC 2828 fi 2829fi 2830 2831fi 2832 2833 2834test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2835See \`config.log' for more details." >&5 2836$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2837See \`config.log' for more details." >&2;} 2838 { (exit 1); exit 1; }; } 2839 2840# Provide some information about the compiler. 2841$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2842set X $ac_compile 2843ac_compiler=$2 2844{ (ac_try="$ac_compiler --version >&5" 2845case "(($ac_try" in 2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2847 *) ac_try_echo=$ac_try;; 2848esac 2849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2850$as_echo "$ac_try_echo") >&5 2851 (eval "$ac_compiler --version >&5") 2>&5 2852 ac_status=$? 2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); } 2855{ (ac_try="$ac_compiler -v >&5" 2856case "(($ac_try" in 2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2858 *) ac_try_echo=$ac_try;; 2859esac 2860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2861$as_echo "$ac_try_echo") >&5 2862 (eval "$ac_compiler -v >&5") 2>&5 2863 ac_status=$? 2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); } 2866{ (ac_try="$ac_compiler -V >&5" 2867case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870esac 2871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2872$as_echo "$ac_try_echo") >&5 2873 (eval "$ac_compiler -V >&5") 2>&5 2874 ac_status=$? 2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2876 (exit $ac_status); } 2877 2878cat >conftest.$ac_ext <<_ACEOF 2879/* confdefs.h. */ 2880_ACEOF 2881cat confdefs.h >>conftest.$ac_ext 2882cat >>conftest.$ac_ext <<_ACEOF 2883/* end confdefs.h. */ 2884 2885int 2886main () 2887{ 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893ac_clean_files_save=$ac_clean_files 2894ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2895# Try to create an executable without -o first, disregard a.out. 2896# It will help us diagnose broken compilers, and finding out an intuition 2897# of exeext. 2898{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2899$as_echo_n "checking for C compiler default output file name... " >&6; } 2900ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2901 2902# The possible output files: 2903ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2904 2905ac_rmfiles= 2906for ac_file in $ac_files 2907do 2908 case $ac_file in 2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2910 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2911 esac 2912done 2913rm -f $ac_rmfiles 2914 2915if { (ac_try="$ac_link_default" 2916case "(($ac_try" in 2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2918 *) ac_try_echo=$ac_try;; 2919esac 2920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2921$as_echo "$ac_try_echo") >&5 2922 (eval "$ac_link_default") 2>&5 2923 ac_status=$? 2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); }; then 2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2927# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2928# in a Makefile. We should not override ac_cv_exeext if it was cached, 2929# so that the user can short-circuit this test for compilers unknown to 2930# Autoconf. 2931for ac_file in $ac_files '' 2932do 2933 test -f "$ac_file" || continue 2934 case $ac_file in 2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2936 ;; 2937 [ab].out ) 2938 # We found the default executable, but exeext='' is most 2939 # certainly right. 2940 break;; 2941 *.* ) 2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2943 then :; else 2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2945 fi 2946 # We set ac_cv_exeext here because the later test for it is not 2947 # safe: cross compilers may not add the suffix if given an `-o' 2948 # argument, so we may need to know it at that point already. 2949 # Even if this section looks crufty: it has the advantage of 2950 # actually working. 2951 break;; 2952 * ) 2953 break;; 2954 esac 2955done 2956test "$ac_cv_exeext" = no && ac_cv_exeext= 2957 2958else 2959 ac_file='' 2960fi 2961 2962{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2963$as_echo "$ac_file" >&6; } 2964if test -z "$ac_file"; then 2965 $as_echo "$as_me: failed program was:" >&5 2966sed 's/^/| /' conftest.$ac_ext >&5 2967 2968{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2969See \`config.log' for more details." >&5 2970$as_echo "$as_me: error: C compiler cannot create executables 2971See \`config.log' for more details." >&2;} 2972 { (exit 77); exit 77; }; } 2973fi 2974 2975ac_exeext=$ac_cv_exeext 2976 2977# Check that the compiler produces executables we can run. If not, either 2978# the compiler is broken, or we cross compile. 2979{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2980$as_echo_n "checking whether the C compiler works... " >&6; } 2981# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2982# If not cross compiling, check that we can run a simple program. 2983if test "$cross_compiling" != yes; then 2984 if { ac_try='./$ac_file' 2985 { (case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988esac 2989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2990$as_echo "$ac_try_echo") >&5 2991 (eval "$ac_try") 2>&5 2992 ac_status=$? 2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); }; }; then 2995 cross_compiling=no 2996 else 2997 if test "$cross_compiling" = maybe; then 2998 cross_compiling=yes 2999 else 3000 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3001If you meant to cross compile, use \`--host'. 3002See \`config.log' for more details." >&5 3003$as_echo "$as_me: error: cannot run C compiled programs. 3004If you meant to cross compile, use \`--host'. 3005See \`config.log' for more details." >&2;} 3006 { (exit 1); exit 1; }; } 3007 fi 3008 fi 3009fi 3010{ $as_echo "$as_me:$LINENO: result: yes" >&5 3011$as_echo "yes" >&6; } 3012 3013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3014ac_clean_files=$ac_clean_files_save 3015# Check that the compiler produces executables we can run. If not, either 3016# the compiler is broken, or we cross compile. 3017{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3018$as_echo_n "checking whether we are cross compiling... " >&6; } 3019{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3020$as_echo "$cross_compiling" >&6; } 3021 3022{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3023$as_echo_n "checking for suffix of executables... " >&6; } 3024if { (ac_try="$ac_link" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3030$as_echo "$ac_try_echo") >&5 3031 (eval "$ac_link") 2>&5 3032 ac_status=$? 3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); }; then 3035 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3037# work properly (i.e., refer to `conftest.exe'), while it won't with 3038# `rm'. 3039for ac_file in conftest.exe conftest conftest.*; do 3040 test -f "$ac_file" || continue 3041 case $ac_file in 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3044 break;; 3045 * ) break;; 3046 esac 3047done 3048else 3049 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3050See \`config.log' for more details." >&5 3051$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3052See \`config.log' for more details." >&2;} 3053 { (exit 1); exit 1; }; } 3054fi 3055 3056rm -f conftest$ac_cv_exeext 3057{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3058$as_echo "$ac_cv_exeext" >&6; } 3059 3060rm -f conftest.$ac_ext 3061EXEEXT=$ac_cv_exeext 3062ac_exeext=$EXEEXT 3063{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3064$as_echo_n "checking for suffix of object files... " >&6; } 3065if test "${ac_cv_objext+set}" = set; then 3066 $as_echo_n "(cached) " >&6 3067else 3068 cat >conftest.$ac_ext <<_ACEOF 3069/* confdefs.h. */ 3070_ACEOF 3071cat confdefs.h >>conftest.$ac_ext 3072cat >>conftest.$ac_ext <<_ACEOF 3073/* end confdefs.h. */ 3074 3075int 3076main () 3077{ 3078 3079 ; 3080 return 0; 3081} 3082_ACEOF 3083rm -f conftest.o conftest.obj 3084if { (ac_try="$ac_compile" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3090$as_echo "$ac_try_echo") >&5 3091 (eval "$ac_compile") 2>&5 3092 ac_status=$? 3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); }; then 3095 for ac_file in conftest.o conftest.obj conftest.*; do 3096 test -f "$ac_file" || continue; 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3100 break;; 3101 esac 3102done 3103else 3104 $as_echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3108See \`config.log' for more details." >&5 3109$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3110See \`config.log' for more details." >&2;} 3111 { (exit 1); exit 1; }; } 3112fi 3113 3114rm -f conftest.$ac_cv_objext conftest.$ac_ext 3115fi 3116{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3117$as_echo "$ac_cv_objext" >&6; } 3118OBJEXT=$ac_cv_objext 3119ac_objext=$OBJEXT 3120{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3122if test "${ac_cv_c_compiler_gnu+set}" = set; then 3123 $as_echo_n "(cached) " >&6 3124else 3125 cat >conftest.$ac_ext <<_ACEOF 3126/* confdefs.h. */ 3127_ACEOF 3128cat confdefs.h >>conftest.$ac_ext 3129cat >>conftest.$ac_ext <<_ACEOF 3130/* end confdefs.h. */ 3131 3132int 3133main () 3134{ 3135#ifndef __GNUC__ 3136 choke me 3137#endif 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143rm -f conftest.$ac_objext 3144if { (ac_try="$ac_compile" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3150$as_echo "$ac_try_echo") >&5 3151 (eval "$ac_compile") 2>conftest.er1 3152 ac_status=$? 3153 grep -v '^ *+' conftest.er1 >conftest.err 3154 rm -f conftest.er1 3155 cat conftest.err >&5 3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } && { 3158 test -z "$ac_c_werror_flag" || 3159 test ! -s conftest.err 3160 } && test -s conftest.$ac_objext; then 3161 ac_compiler_gnu=yes 3162else 3163 $as_echo "$as_me: failed program was:" >&5 3164sed 's/^/| /' conftest.$ac_ext >&5 3165 3166 ac_compiler_gnu=no 3167fi 3168 3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3170ac_cv_c_compiler_gnu=$ac_compiler_gnu 3171 3172fi 3173{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3174$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3175if test $ac_compiler_gnu = yes; then 3176 GCC=yes 3177else 3178 GCC= 3179fi 3180ac_test_CFLAGS=${CFLAGS+set} 3181ac_save_CFLAGS=$CFLAGS 3182{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3183$as_echo_n "checking whether $CC accepts -g... " >&6; } 3184if test "${ac_cv_prog_cc_g+set}" = set; then 3185 $as_echo_n "(cached) " >&6 3186else 3187 ac_save_c_werror_flag=$ac_c_werror_flag 3188 ac_c_werror_flag=yes 3189 ac_cv_prog_cc_g=no 3190 CFLAGS="-g" 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3213$as_echo "$ac_try_echo") >&5 3214 (eval "$ac_compile") 2>conftest.er1 3215 ac_status=$? 3216 grep -v '^ *+' conftest.er1 >conftest.err 3217 rm -f conftest.er1 3218 cat conftest.err >&5 3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } && { 3221 test -z "$ac_c_werror_flag" || 3222 test ! -s conftest.err 3223 } && test -s conftest.$ac_objext; then 3224 ac_cv_prog_cc_g=yes 3225else 3226 $as_echo "$as_me: failed program was:" >&5 3227sed 's/^/| /' conftest.$ac_ext >&5 3228 3229 CFLAGS="" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3252$as_echo "$ac_try_echo") >&5 3253 (eval "$ac_compile") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } && { 3260 test -z "$ac_c_werror_flag" || 3261 test ! -s conftest.err 3262 } && test -s conftest.$ac_objext; then 3263 : 3264else 3265 $as_echo "$as_me: failed program was:" >&5 3266sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 ac_c_werror_flag=$ac_save_c_werror_flag 3269 CFLAGS="-g" 3270 cat >conftest.$ac_ext <<_ACEOF 3271/* confdefs.h. */ 3272_ACEOF 3273cat confdefs.h >>conftest.$ac_ext 3274cat >>conftest.$ac_ext <<_ACEOF 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285rm -f conftest.$ac_objext 3286if { (ac_try="$ac_compile" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3292$as_echo "$ac_try_echo") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 ac_cv_prog_cc_g=yes 3304else 3305 $as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 3309fi 3310 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312fi 3313 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3315fi 3316 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 ac_c_werror_flag=$ac_save_c_werror_flag 3319fi 3320{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3321$as_echo "$ac_cv_prog_cc_g" >&6; } 3322if test "$ac_test_CFLAGS" = set; then 3323 CFLAGS=$ac_save_CFLAGS 3324elif test $ac_cv_prog_cc_g = yes; then 3325 if test "$GCC" = yes; then 3326 CFLAGS="-g -O2" 3327 else 3328 CFLAGS="-g" 3329 fi 3330else 3331 if test "$GCC" = yes; then 3332 CFLAGS="-O2" 3333 else 3334 CFLAGS= 3335 fi 3336fi 3337{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3339if test "${ac_cv_prog_cc_c89+set}" = set; then 3340 $as_echo_n "(cached) " >&6 3341else 3342 ac_cv_prog_cc_c89=no 3343ac_save_CC=$CC 3344cat >conftest.$ac_ext <<_ACEOF 3345/* confdefs.h. */ 3346_ACEOF 3347cat confdefs.h >>conftest.$ac_ext 3348cat >>conftest.$ac_ext <<_ACEOF 3349/* end confdefs.h. */ 3350#include <stdarg.h> 3351#include <stdio.h> 3352#include <sys/types.h> 3353#include <sys/stat.h> 3354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3355struct buf { int x; }; 3356FILE * (*rcsopen) (struct buf *, struct stat *, int); 3357static char *e (p, i) 3358 char **p; 3359 int i; 3360{ 3361 return p[i]; 3362} 3363static char *f (char * (*g) (char **, int), char **p, ...) 3364{ 3365 char *s; 3366 va_list v; 3367 va_start (v,p); 3368 s = g (p, va_arg (v,int)); 3369 va_end (v); 3370 return s; 3371} 3372 3373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3374 function prototypes and stuff, but not '\xHH' hex character constants. 3375 These don't provoke an error unfortunately, instead are silently treated 3376 as 'x'. The following induces an error, until -std is added to get 3377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3378 array size at least. It's necessary to write '\x00'==0 to get something 3379 that's true only with -std. */ 3380int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3381 3382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3383 inside strings and character constants. */ 3384#define FOO(x) 'x' 3385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3386 3387int test (int i, double x); 3388struct s1 {int (*f) (int a);}; 3389struct s2 {int (*f) (double a);}; 3390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3391int argc; 3392char **argv; 3393int 3394main () 3395{ 3396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3403do 3404 CC="$ac_save_CC $ac_arg" 3405 rm -f conftest.$ac_objext 3406if { (ac_try="$ac_compile" 3407case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3412$as_echo "$ac_try_echo") >&5 3413 (eval "$ac_compile") 2>conftest.er1 3414 ac_status=$? 3415 grep -v '^ *+' conftest.er1 >conftest.err 3416 rm -f conftest.er1 3417 cat conftest.err >&5 3418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3419 (exit $ac_status); } && { 3420 test -z "$ac_c_werror_flag" || 3421 test ! -s conftest.err 3422 } && test -s conftest.$ac_objext; then 3423 ac_cv_prog_cc_c89=$ac_arg 3424else 3425 $as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428 3429fi 3430 3431rm -f core conftest.err conftest.$ac_objext 3432 test "x$ac_cv_prog_cc_c89" != "xno" && break 3433done 3434rm -f conftest.$ac_ext 3435CC=$ac_save_CC 3436 3437fi 3438# AC_CACHE_VAL 3439case "x$ac_cv_prog_cc_c89" in 3440 x) 3441 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3442$as_echo "none needed" >&6; } ;; 3443 xno) 3444 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3445$as_echo "unsupported" >&6; } ;; 3446 *) 3447 CC="$CC $ac_cv_prog_cc_c89" 3448 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3449$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3450esac 3451 3452 3453ac_ext=c 3454ac_cpp='$CPP $CPPFLAGS' 3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3457ac_compiler_gnu=$ac_cv_c_compiler_gnu 3458DEPDIR="${am__leading_dot}deps" 3459 3460ac_config_commands="$ac_config_commands depfiles" 3461 3462 3463am_make=${MAKE-make} 3464cat > confinc << 'END' 3465am__doit: 3466 @echo done 3467.PHONY: am__doit 3468END 3469# If we don't find an include directive, just comment out the code. 3470{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3471$as_echo_n "checking for style of include used by $am_make... " >&6; } 3472am__include="#" 3473am__quote= 3474_am_result=none 3475# First try GNU make style include. 3476echo "include confinc" > confmf 3477# We grep out `Entering directory' and `Leaving directory' 3478# messages which can occur if `w' ends up in MAKEFLAGS. 3479# In particular we don't look at `^make:' because GNU make might 3480# be invoked under some other name (usually "gmake"), in which 3481# case it prints its new name instead of `make'. 3482if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3483 am__include=include 3484 am__quote= 3485 _am_result=GNU 3486fi 3487# Now try BSD make style include. 3488if test "$am__include" = "#"; then 3489 echo '.include "confinc"' > confmf 3490 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3491 am__include=.include 3492 am__quote="\"" 3493 _am_result=BSD 3494 fi 3495fi 3496 3497 3498{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3499$as_echo "$_am_result" >&6; } 3500rm -f confinc confmf 3501 3502# Check whether --enable-dependency-tracking was given. 3503if test "${enable_dependency_tracking+set}" = set; then 3504 enableval=$enable_dependency_tracking; 3505fi 3506 3507if test "x$enable_dependency_tracking" != xno; then 3508 am_depcomp="$ac_aux_dir/depcomp" 3509 AMDEPBACKSLASH='\' 3510fi 3511 if test "x$enable_dependency_tracking" != xno; then 3512 AMDEP_TRUE= 3513 AMDEP_FALSE='#' 3514else 3515 AMDEP_TRUE='#' 3516 AMDEP_FALSE= 3517fi 3518 3519 3520 3521depcc="$CC" am_compiler_list= 3522 3523{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3524$as_echo_n "checking dependency style of $depcc... " >&6; } 3525if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3526 $as_echo_n "(cached) " >&6 3527else 3528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3529 # We make a subdir and do the tests there. Otherwise we can end up 3530 # making bogus files that we don't know about and never remove. For 3531 # instance it was reported that on HP-UX the gcc test will end up 3532 # making a dummy file named `D' -- because `-MD' means `put the output 3533 # in D'. 3534 mkdir conftest.dir 3535 # Copy depcomp to subdir because otherwise we won't find it if we're 3536 # using a relative directory. 3537 cp "$am_depcomp" conftest.dir 3538 cd conftest.dir 3539 # We will build objects and dependencies in a subdirectory because 3540 # it helps to detect inapplicable dependency modes. For instance 3541 # both Tru64's cc and ICC support -MD to output dependencies as a 3542 # side effect of compilation, but ICC will put the dependencies in 3543 # the current directory while Tru64 will put them in the object 3544 # directory. 3545 mkdir sub 3546 3547 am_cv_CC_dependencies_compiler_type=none 3548 if test "$am_compiler_list" = ""; then 3549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3550 fi 3551 for depmode in $am_compiler_list; do 3552 # Setup a source with many dependencies, because some compilers 3553 # like to wrap large dependency lists on column 80 (with \), and 3554 # we should not choose a depcomp mode which is confused by this. 3555 # 3556 # We need to recreate these files for each test, as the compiler may 3557 # overwrite some of them when testing with obscure command lines. 3558 # This happens at least with the AIX C compiler. 3559 : > sub/conftest.c 3560 for i in 1 2 3 4 5 6; do 3561 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3563 # Solaris 8's {/usr,}/bin/sh. 3564 touch sub/conftst$i.h 3565 done 3566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3567 3568 case $depmode in 3569 nosideeffect) 3570 # after this tag, mechanisms are not by side-effect, so they'll 3571 # only be used when explicitly requested 3572 if test "x$enable_dependency_tracking" = xyes; then 3573 continue 3574 else 3575 break 3576 fi 3577 ;; 3578 none) break ;; 3579 esac 3580 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3581 # mode. It turns out that the SunPro C++ compiler does not properly 3582 # handle `-M -o', and we need to detect this. 3583 if depmode=$depmode \ 3584 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3586 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3587 >/dev/null 2>conftest.err && 3588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3590 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3592 # icc doesn't choke on unknown options, it will just issue warnings 3593 # or remarks (even with -Werror). So we grep stderr for any message 3594 # that says an option was ignored or not supported. 3595 # When given -MP, icc 7.0 and 7.1 complain thusly: 3596 # icc: Command line warning: ignoring option '-M'; no argument required 3597 # The diagnosis changed in icc 8.0: 3598 # icc: Command line remark: option '-MP' not supported 3599 if (grep 'ignoring option' conftest.err || 3600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3601 am_cv_CC_dependencies_compiler_type=$depmode 3602 break 3603 fi 3604 fi 3605 done 3606 3607 cd .. 3608 rm -rf conftest.dir 3609else 3610 am_cv_CC_dependencies_compiler_type=none 3611fi 3612 3613fi 3614{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3615$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3617 3618 if 3619 test "x$enable_dependency_tracking" != xno \ 3620 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3621 am__fastdepCC_TRUE= 3622 am__fastdepCC_FALSE='#' 3623else 3624 am__fastdepCC_TRUE='#' 3625 am__fastdepCC_FALSE= 3626fi 3627 3628 3629# Find a good install program. We prefer a C program (faster), 3630# so one script is as good as another. But avoid the broken or 3631# incompatible versions: 3632# SysV /etc/install, /usr/sbin/install 3633# SunOS /usr/etc/install 3634# IRIX /sbin/install 3635# AIX /bin/install 3636# AmigaOS /C/install, which installs bootblocks on floppy discs 3637# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3638# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3639# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3640# OS/2's system install, which has a completely different semantic 3641# ./install, which can be erroneously created by make from ./install.sh. 3642# Reject install programs that cannot install multiple files. 3643{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3644$as_echo_n "checking for a BSD-compatible install... " >&6; } 3645if test -z "$INSTALL"; then 3646if test "${ac_cv_path_install+set}" = set; then 3647 $as_echo_n "(cached) " >&6 3648else 3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 # Account for people who put trailing slashes in PATH elements. 3655case $as_dir/ in 3656 ./ | .// | /cC/* | \ 3657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3658 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3659 /usr/ucb/* ) ;; 3660 *) 3661 # OSF1 and SCO ODT 3.0 have their own names for install. 3662 # Don't use installbsd from OSF since it installs stuff as root 3663 # by default. 3664 for ac_prog in ginstall scoinst install; do 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3667 if test $ac_prog = install && 3668 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3669 # AIX install. It has an incompatible calling convention. 3670 : 3671 elif test $ac_prog = install && 3672 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3673 # program-specific install script used by HP pwplus--don't use. 3674 : 3675 else 3676 rm -rf conftest.one conftest.two conftest.dir 3677 echo one > conftest.one 3678 echo two > conftest.two 3679 mkdir conftest.dir 3680 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3681 test -s conftest.one && test -s conftest.two && 3682 test -s conftest.dir/conftest.one && 3683 test -s conftest.dir/conftest.two 3684 then 3685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3686 break 3 3687 fi 3688 fi 3689 fi 3690 done 3691 done 3692 ;; 3693esac 3694 3695done 3696IFS=$as_save_IFS 3697 3698rm -rf conftest.one conftest.two conftest.dir 3699 3700fi 3701 if test "${ac_cv_path_install+set}" = set; then 3702 INSTALL=$ac_cv_path_install 3703 else 3704 # As a last resort, use the slow shell script. Don't cache a 3705 # value for INSTALL within a source directory, because that will 3706 # break other packages using the cache if that directory is 3707 # removed, or if the value is a relative name. 3708 INSTALL=$ac_install_sh 3709 fi 3710fi 3711{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3712$as_echo "$INSTALL" >&6; } 3713 3714# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3715# It thinks the first close brace ends the variable substitution. 3716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3717 3718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3719 3720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3721 3722case `pwd` in 3723 *\ * | *\ *) 3724 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3725$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3726esac 3727 3728 3729 3730macro_version='2.2.6b' 3731macro_revision='1.3017' 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745ltmain="$ac_aux_dir/ltmain.sh" 3746 3747# Make sure we can run config.sub. 3748$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3749 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3750$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3751 { (exit 1); exit 1; }; } 3752 3753{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3754$as_echo_n "checking build system type... " >&6; } 3755if test "${ac_cv_build+set}" = set; then 3756 $as_echo_n "(cached) " >&6 3757else 3758 ac_build_alias=$build_alias 3759test "x$ac_build_alias" = x && 3760 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3761test "x$ac_build_alias" = x && 3762 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3763$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3764 { (exit 1); exit 1; }; } 3765ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3766 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3767$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3768 { (exit 1); exit 1; }; } 3769 3770fi 3771{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3772$as_echo "$ac_cv_build" >&6; } 3773case $ac_cv_build in 3774*-*-*) ;; 3775*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3776$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3777 { (exit 1); exit 1; }; };; 3778esac 3779build=$ac_cv_build 3780ac_save_IFS=$IFS; IFS='-' 3781set x $ac_cv_build 3782shift 3783build_cpu=$1 3784build_vendor=$2 3785shift; shift 3786# Remember, the first character of IFS is used to create $*, 3787# except with old shells: 3788build_os=$* 3789IFS=$ac_save_IFS 3790case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3791 3792 3793{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3794$as_echo_n "checking host system type... " >&6; } 3795if test "${ac_cv_host+set}" = set; then 3796 $as_echo_n "(cached) " >&6 3797else 3798 if test "x$host_alias" = x; then 3799 ac_cv_host=$ac_cv_build 3800else 3801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3802 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3803$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3804 { (exit 1); exit 1; }; } 3805fi 3806 3807fi 3808{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3809$as_echo "$ac_cv_host" >&6; } 3810case $ac_cv_host in 3811*-*-*) ;; 3812*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3813$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3814 { (exit 1); exit 1; }; };; 3815esac 3816host=$ac_cv_host 3817ac_save_IFS=$IFS; IFS='-' 3818set x $ac_cv_host 3819shift 3820host_cpu=$1 3821host_vendor=$2 3822shift; shift 3823# Remember, the first character of IFS is used to create $*, 3824# except with old shells: 3825host_os=$* 3826IFS=$ac_save_IFS 3827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3828 3829 3830{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3831$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3832if test "${ac_cv_path_SED+set}" = set; then 3833 $as_echo_n "(cached) " >&6 3834else 3835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3836 for ac_i in 1 2 3 4 5 6 7; do 3837 ac_script="$ac_script$as_nl$ac_script" 3838 done 3839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3840 $as_unset ac_script || ac_script= 3841 if test -z "$SED"; then 3842 ac_path_SED_found=false 3843 # Loop through the user's path and test for each of PROGNAME-LIST 3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845for as_dir in $PATH 3846do 3847 IFS=$as_save_IFS 3848 test -z "$as_dir" && as_dir=. 3849 for ac_prog in sed gsed; do 3850 for ac_exec_ext in '' $ac_executable_extensions; do 3851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3852 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3853# Check for GNU ac_path_SED and select it if it is found. 3854 # Check for GNU $ac_path_SED 3855case `"$ac_path_SED" --version 2>&1` in 3856*GNU*) 3857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3858*) 3859 ac_count=0 3860 $as_echo_n 0123456789 >"conftest.in" 3861 while : 3862 do 3863 cat "conftest.in" "conftest.in" >"conftest.tmp" 3864 mv "conftest.tmp" "conftest.in" 3865 cp "conftest.in" "conftest.nl" 3866 $as_echo '' >> "conftest.nl" 3867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3869 ac_count=`expr $ac_count + 1` 3870 if test $ac_count -gt ${ac_path_SED_max-0}; then 3871 # Best one so far, save it but keep looking for a better one 3872 ac_cv_path_SED="$ac_path_SED" 3873 ac_path_SED_max=$ac_count 3874 fi 3875 # 10*(2^10) chars as input seems more than enough 3876 test $ac_count -gt 10 && break 3877 done 3878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3879esac 3880 3881 $ac_path_SED_found && break 3 3882 done 3883 done 3884done 3885IFS=$as_save_IFS 3886 if test -z "$ac_cv_path_SED"; then 3887 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3888$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3889 { (exit 1); exit 1; }; } 3890 fi 3891else 3892 ac_cv_path_SED=$SED 3893fi 3894 3895fi 3896{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3897$as_echo "$ac_cv_path_SED" >&6; } 3898 SED="$ac_cv_path_SED" 3899 rm -f conftest.sed 3900 3901test -z "$SED" && SED=sed 3902Xsed="$SED -e 1s/^X//" 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3915$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3916if test "${ac_cv_path_GREP+set}" = set; then 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$GREP"; then 3920 ac_path_GREP_found=false 3921 # Loop through the user's path and test for each of PROGNAME-LIST 3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_prog in grep ggrep; do 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3930 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3931# Check for GNU ac_path_GREP and select it if it is found. 3932 # Check for GNU $ac_path_GREP 3933case `"$ac_path_GREP" --version 2>&1` in 3934*GNU*) 3935 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3936*) 3937 ac_count=0 3938 $as_echo_n 0123456789 >"conftest.in" 3939 while : 3940 do 3941 cat "conftest.in" "conftest.in" >"conftest.tmp" 3942 mv "conftest.tmp" "conftest.in" 3943 cp "conftest.in" "conftest.nl" 3944 $as_echo 'GREP' >> "conftest.nl" 3945 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3947 ac_count=`expr $ac_count + 1` 3948 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3949 # Best one so far, save it but keep looking for a better one 3950 ac_cv_path_GREP="$ac_path_GREP" 3951 ac_path_GREP_max=$ac_count 3952 fi 3953 # 10*(2^10) chars as input seems more than enough 3954 test $ac_count -gt 10 && break 3955 done 3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3957esac 3958 3959 $ac_path_GREP_found && break 3 3960 done 3961 done 3962done 3963IFS=$as_save_IFS 3964 if test -z "$ac_cv_path_GREP"; then 3965 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3966$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3967 { (exit 1); exit 1; }; } 3968 fi 3969else 3970 ac_cv_path_GREP=$GREP 3971fi 3972 3973fi 3974{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3975$as_echo "$ac_cv_path_GREP" >&6; } 3976 GREP="$ac_cv_path_GREP" 3977 3978 3979{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3980$as_echo_n "checking for egrep... " >&6; } 3981if test "${ac_cv_path_EGREP+set}" = set; then 3982 $as_echo_n "(cached) " >&6 3983else 3984 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3985 then ac_cv_path_EGREP="$GREP -E" 3986 else 3987 if test -z "$EGREP"; then 3988 ac_path_EGREP_found=false 3989 # Loop through the user's path and test for each of PROGNAME-LIST 3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_prog in egrep; do 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3998 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3999# Check for GNU ac_path_EGREP and select it if it is found. 4000 # Check for GNU $ac_path_EGREP 4001case `"$ac_path_EGREP" --version 2>&1` in 4002*GNU*) 4003 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4004*) 4005 ac_count=0 4006 $as_echo_n 0123456789 >"conftest.in" 4007 while : 4008 do 4009 cat "conftest.in" "conftest.in" >"conftest.tmp" 4010 mv "conftest.tmp" "conftest.in" 4011 cp "conftest.in" "conftest.nl" 4012 $as_echo 'EGREP' >> "conftest.nl" 4013 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4015 ac_count=`expr $ac_count + 1` 4016 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4017 # Best one so far, save it but keep looking for a better one 4018 ac_cv_path_EGREP="$ac_path_EGREP" 4019 ac_path_EGREP_max=$ac_count 4020 fi 4021 # 10*(2^10) chars as input seems more than enough 4022 test $ac_count -gt 10 && break 4023 done 4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4025esac 4026 4027 $ac_path_EGREP_found && break 3 4028 done 4029 done 4030done 4031IFS=$as_save_IFS 4032 if test -z "$ac_cv_path_EGREP"; then 4033 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4034$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4035 { (exit 1); exit 1; }; } 4036 fi 4037else 4038 ac_cv_path_EGREP=$EGREP 4039fi 4040 4041 fi 4042fi 4043{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4044$as_echo "$ac_cv_path_EGREP" >&6; } 4045 EGREP="$ac_cv_path_EGREP" 4046 4047 4048{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4049$as_echo_n "checking for fgrep... " >&6; } 4050if test "${ac_cv_path_FGREP+set}" = set; then 4051 $as_echo_n "(cached) " >&6 4052else 4053 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4054 then ac_cv_path_FGREP="$GREP -F" 4055 else 4056 if test -z "$FGREP"; then 4057 ac_path_FGREP_found=false 4058 # Loop through the user's path and test for each of PROGNAME-LIST 4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4061do 4062 IFS=$as_save_IFS 4063 test -z "$as_dir" && as_dir=. 4064 for ac_prog in fgrep; do 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4067 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4068# Check for GNU ac_path_FGREP and select it if it is found. 4069 # Check for GNU $ac_path_FGREP 4070case `"$ac_path_FGREP" --version 2>&1` in 4071*GNU*) 4072 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4073*) 4074 ac_count=0 4075 $as_echo_n 0123456789 >"conftest.in" 4076 while : 4077 do 4078 cat "conftest.in" "conftest.in" >"conftest.tmp" 4079 mv "conftest.tmp" "conftest.in" 4080 cp "conftest.in" "conftest.nl" 4081 $as_echo 'FGREP' >> "conftest.nl" 4082 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4084 ac_count=`expr $ac_count + 1` 4085 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4086 # Best one so far, save it but keep looking for a better one 4087 ac_cv_path_FGREP="$ac_path_FGREP" 4088 ac_path_FGREP_max=$ac_count 4089 fi 4090 # 10*(2^10) chars as input seems more than enough 4091 test $ac_count -gt 10 && break 4092 done 4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4094esac 4095 4096 $ac_path_FGREP_found && break 3 4097 done 4098 done 4099done 4100IFS=$as_save_IFS 4101 if test -z "$ac_cv_path_FGREP"; then 4102 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4103$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4104 { (exit 1); exit 1; }; } 4105 fi 4106else 4107 ac_cv_path_FGREP=$FGREP 4108fi 4109 4110 fi 4111fi 4112{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4113$as_echo "$ac_cv_path_FGREP" >&6; } 4114 FGREP="$ac_cv_path_FGREP" 4115 4116 4117test -z "$GREP" && GREP=grep 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137# Check whether --with-gnu-ld was given. 4138if test "${with_gnu_ld+set}" = set; then 4139 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4140else 4141 with_gnu_ld=no 4142fi 4143 4144ac_prog=ld 4145if test "$GCC" = yes; then 4146 # Check if gcc -print-prog-name=ld gives a path. 4147 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4148$as_echo_n "checking for ld used by $CC... " >&6; } 4149 case $host in 4150 *-*-mingw*) 4151 # gcc leaves a trailing carriage return which upsets mingw 4152 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4153 *) 4154 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4155 esac 4156 case $ac_prog in 4157 # Accept absolute paths. 4158 [\\/]* | ?:[\\/]*) 4159 re_direlt='/[^/][^/]*/\.\./' 4160 # Canonicalize the pathname of ld 4161 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4162 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4163 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4164 done 4165 test -z "$LD" && LD="$ac_prog" 4166 ;; 4167 "") 4168 # If it fails, then pretend we aren't using GCC. 4169 ac_prog=ld 4170 ;; 4171 *) 4172 # If it is relative, then search for the first ld in PATH. 4173 with_gnu_ld=unknown 4174 ;; 4175 esac 4176elif test "$with_gnu_ld" = yes; then 4177 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4178$as_echo_n "checking for GNU ld... " >&6; } 4179else 4180 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4181$as_echo_n "checking for non-GNU ld... " >&6; } 4182fi 4183if test "${lt_cv_path_LD+set}" = set; then 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -z "$LD"; then 4187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4188 for ac_dir in $PATH; do 4189 IFS="$lt_save_ifs" 4190 test -z "$ac_dir" && ac_dir=. 4191 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4192 lt_cv_path_LD="$ac_dir/$ac_prog" 4193 # Check to see if the program is GNU ld. I'd rather use --version, 4194 # but apparently some variants of GNU ld only accept -v. 4195 # Break only if it was the GNU/non-GNU ld that we prefer. 4196 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4197 *GNU* | *'with BFD'*) 4198 test "$with_gnu_ld" != no && break 4199 ;; 4200 *) 4201 test "$with_gnu_ld" != yes && break 4202 ;; 4203 esac 4204 fi 4205 done 4206 IFS="$lt_save_ifs" 4207else 4208 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4209fi 4210fi 4211 4212LD="$lt_cv_path_LD" 4213if test -n "$LD"; then 4214 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4215$as_echo "$LD" >&6; } 4216else 4217 { $as_echo "$as_me:$LINENO: result: no" >&5 4218$as_echo "no" >&6; } 4219fi 4220test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4221$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4222 { (exit 1); exit 1; }; } 4223{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4225if test "${lt_cv_prog_gnu_ld+set}" = set; then 4226 $as_echo_n "(cached) " >&6 4227else 4228 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4229case `$LD -v 2>&1 </dev/null` in 4230*GNU* | *'with BFD'*) 4231 lt_cv_prog_gnu_ld=yes 4232 ;; 4233*) 4234 lt_cv_prog_gnu_ld=no 4235 ;; 4236esac 4237fi 4238{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4239$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4240with_gnu_ld=$lt_cv_prog_gnu_ld 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4251$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4252if test "${lt_cv_path_NM+set}" = set; then 4253 $as_echo_n "(cached) " >&6 4254else 4255 if test -n "$NM"; then 4256 # Let the user override the test. 4257 lt_cv_path_NM="$NM" 4258else 4259 lt_nm_to_check="${ac_tool_prefix}nm" 4260 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4261 lt_nm_to_check="$lt_nm_to_check nm" 4262 fi 4263 for lt_tmp_nm in $lt_nm_to_check; do 4264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4265 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4266 IFS="$lt_save_ifs" 4267 test -z "$ac_dir" && ac_dir=. 4268 tmp_nm="$ac_dir/$lt_tmp_nm" 4269 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4270 # Check to see if the nm accepts a BSD-compat flag. 4271 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4272 # nm: unknown option "B" ignored 4273 # Tru64's nm complains that /dev/null is an invalid object file 4274 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4275 */dev/null* | *'Invalid file or object type'*) 4276 lt_cv_path_NM="$tmp_nm -B" 4277 break 4278 ;; 4279 *) 4280 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4281 */dev/null*) 4282 lt_cv_path_NM="$tmp_nm -p" 4283 break 4284 ;; 4285 *) 4286 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4287 continue # so that we can try to find one that supports BSD flags 4288 ;; 4289 esac 4290 ;; 4291 esac 4292 fi 4293 done 4294 IFS="$lt_save_ifs" 4295 done 4296 : ${lt_cv_path_NM=no} 4297fi 4298fi 4299{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4300$as_echo "$lt_cv_path_NM" >&6; } 4301if test "$lt_cv_path_NM" != "no"; then 4302 NM="$lt_cv_path_NM" 4303else 4304 # Didn't find any BSD compatible name lister, look for dumpbin. 4305 if test -n "$ac_tool_prefix"; then 4306 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4307 do 4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4311$as_echo_n "checking for $ac_word... " >&6; } 4312if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4313 $as_echo_n "(cached) " >&6 4314else 4315 if test -n "$DUMPBIN"; then 4316 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4325 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330done 4331IFS=$as_save_IFS 4332 4333fi 4334fi 4335DUMPBIN=$ac_cv_prog_DUMPBIN 4336if test -n "$DUMPBIN"; then 4337 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4338$as_echo "$DUMPBIN" >&6; } 4339else 4340 { $as_echo "$as_me:$LINENO: result: no" >&5 4341$as_echo "no" >&6; } 4342fi 4343 4344 4345 test -n "$DUMPBIN" && break 4346 done 4347fi 4348if test -z "$DUMPBIN"; then 4349 ac_ct_DUMPBIN=$DUMPBIN 4350 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4351do 4352 # Extract the first word of "$ac_prog", so it can be a program name with args. 4353set dummy $ac_prog; ac_word=$2 4354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4355$as_echo_n "checking for $ac_word... " >&6; } 4356if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -n "$ac_ct_DUMPBIN"; then 4360 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4369 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4380if test -n "$ac_ct_DUMPBIN"; then 4381 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4382$as_echo "$ac_ct_DUMPBIN" >&6; } 4383else 4384 { $as_echo "$as_me:$LINENO: result: no" >&5 4385$as_echo "no" >&6; } 4386fi 4387 4388 4389 test -n "$ac_ct_DUMPBIN" && break 4390done 4391 4392 if test "x$ac_ct_DUMPBIN" = x; then 4393 DUMPBIN=":" 4394 else 4395 case $cross_compiling:$ac_tool_warned in 4396yes:) 4397{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4398whose name does not start with the host triplet. If you think this 4399configuration is useful to you, please write to autoconf@gnu.org." >&5 4400$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4401whose name does not start with the host triplet. If you think this 4402configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4403ac_tool_warned=yes ;; 4404esac 4405 DUMPBIN=$ac_ct_DUMPBIN 4406 fi 4407fi 4408 4409 4410 if test "$DUMPBIN" != ":"; then 4411 NM="$DUMPBIN" 4412 fi 4413fi 4414test -z "$NM" && NM=nm 4415 4416 4417 4418 4419 4420 4421{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4422$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4423if test "${lt_cv_nm_interface+set}" = set; then 4424 $as_echo_n "(cached) " >&6 4425else 4426 lt_cv_nm_interface="BSD nm" 4427 echo "int some_variable = 0;" > conftest.$ac_ext 4428 (eval echo "\"\$as_me:4428: $ac_compile\"" >&5) 4429 (eval "$ac_compile" 2>conftest.err) 4430 cat conftest.err >&5 4431 (eval echo "\"\$as_me:4431: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4432 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4433 cat conftest.err >&5 4434 (eval echo "\"\$as_me:4434: output\"" >&5) 4435 cat conftest.out >&5 4436 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4437 lt_cv_nm_interface="MS dumpbin" 4438 fi 4439 rm -f conftest* 4440fi 4441{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4442$as_echo "$lt_cv_nm_interface" >&6; } 4443 4444{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4445$as_echo_n "checking whether ln -s works... " >&6; } 4446LN_S=$as_ln_s 4447if test "$LN_S" = "ln -s"; then 4448 { $as_echo "$as_me:$LINENO: result: yes" >&5 4449$as_echo "yes" >&6; } 4450else 4451 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4452$as_echo "no, using $LN_S" >&6; } 4453fi 4454 4455# find the maximum length of command line arguments 4456{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4457$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4458if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4459 $as_echo_n "(cached) " >&6 4460else 4461 i=0 4462 teststring="ABCD" 4463 4464 case $build_os in 4465 msdosdjgpp*) 4466 # On DJGPP, this test can blow up pretty badly due to problems in libc 4467 # (any single argument exceeding 2000 bytes causes a buffer overrun 4468 # during glob expansion). Even if it were fixed, the result of this 4469 # check would be larger than it should be. 4470 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4471 ;; 4472 4473 gnu*) 4474 # Under GNU Hurd, this test is not required because there is 4475 # no limit to the length of command line arguments. 4476 # Libtool will interpret -1 as no limit whatsoever 4477 lt_cv_sys_max_cmd_len=-1; 4478 ;; 4479 4480 cygwin* | mingw* | cegcc*) 4481 # On Win9x/ME, this test blows up -- it succeeds, but takes 4482 # about 5 minutes as the teststring grows exponentially. 4483 # Worse, since 9x/ME are not pre-emptively multitasking, 4484 # you end up with a "frozen" computer, even though with patience 4485 # the test eventually succeeds (with a max line length of 256k). 4486 # Instead, let's just punt: use the minimum linelength reported by 4487 # all of the supported platforms: 8192 (on NT/2K/XP). 4488 lt_cv_sys_max_cmd_len=8192; 4489 ;; 4490 4491 amigaos*) 4492 # On AmigaOS with pdksh, this test takes hours, literally. 4493 # So we just punt and use a minimum line length of 8192. 4494 lt_cv_sys_max_cmd_len=8192; 4495 ;; 4496 4497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4498 # This has been around since 386BSD, at least. Likely further. 4499 if test -x /sbin/sysctl; then 4500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4501 elif test -x /usr/sbin/sysctl; then 4502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4503 else 4504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4505 fi 4506 # And add a safety zone 4507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4509 ;; 4510 4511 interix*) 4512 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4513 lt_cv_sys_max_cmd_len=196608 4514 ;; 4515 4516 osf*) 4517 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4518 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4519 # nice to cause kernel panics so lets avoid the loop below. 4520 # First set a reasonable default. 4521 lt_cv_sys_max_cmd_len=16384 4522 # 4523 if test -x /sbin/sysconfig; then 4524 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4525 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4526 esac 4527 fi 4528 ;; 4529 sco3.2v5*) 4530 lt_cv_sys_max_cmd_len=102400 4531 ;; 4532 sysv5* | sco5v6* | sysv4.2uw2*) 4533 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4534 if test -n "$kargmax"; then 4535 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4536 else 4537 lt_cv_sys_max_cmd_len=32768 4538 fi 4539 ;; 4540 *) 4541 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4542 if test -n "$lt_cv_sys_max_cmd_len"; then 4543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4545 else 4546 # Make teststring a little bigger before we do anything with it. 4547 # a 1K string should be a reasonable start. 4548 for i in 1 2 3 4 5 6 7 8 ; do 4549 teststring=$teststring$teststring 4550 done 4551 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4552 # If test is not a shell built-in, we'll probably end up computing a 4553 # maximum length that is only half of the actual maximum length, but 4554 # we can't tell. 4555 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4556 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4557 test $i != 17 # 1/2 MB should be enough 4558 do 4559 i=`expr $i + 1` 4560 teststring=$teststring$teststring 4561 done 4562 # Only check the string length outside the loop. 4563 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4564 teststring= 4565 # Add a significant safety factor because C++ compilers can tack on 4566 # massive amounts of additional arguments before passing them to the 4567 # linker. It appears as though 1/2 is a usable value. 4568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4569 fi 4570 ;; 4571 esac 4572 4573fi 4574 4575if test -n $lt_cv_sys_max_cmd_len ; then 4576 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4577$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4578else 4579 { $as_echo "$as_me:$LINENO: result: none" >&5 4580$as_echo "none" >&6; } 4581fi 4582max_cmd_len=$lt_cv_sys_max_cmd_len 4583 4584 4585 4586 4587 4588 4589: ${CP="cp -f"} 4590: ${MV="mv -f"} 4591: ${RM="rm -f"} 4592 4593{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4594$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4595# Try some XSI features 4596xsi_shell=no 4597( _lt_dummy="a/b/c" 4598 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4599 = c,a/b,, \ 4600 && eval 'test $(( 1 + 1 )) -eq 2 \ 4601 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4602 && xsi_shell=yes 4603{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4604$as_echo "$xsi_shell" >&6; } 4605 4606 4607{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4608$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4609lt_shell_append=no 4610( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4611 >/dev/null 2>&1 \ 4612 && lt_shell_append=yes 4613{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4614$as_echo "$lt_shell_append" >&6; } 4615 4616 4617if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4618 lt_unset=unset 4619else 4620 lt_unset=false 4621fi 4622 4623 4624 4625 4626 4627# test EBCDIC or ASCII 4628case `echo X|tr X '\101'` in 4629 A) # ASCII based system 4630 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4631 lt_SP2NL='tr \040 \012' 4632 lt_NL2SP='tr \015\012 \040\040' 4633 ;; 4634 *) # EBCDIC based system 4635 lt_SP2NL='tr \100 \n' 4636 lt_NL2SP='tr \r\n \100\100' 4637 ;; 4638esac 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4649$as_echo_n "checking for $LD option to reload object files... " >&6; } 4650if test "${lt_cv_ld_reload_flag+set}" = set; then 4651 $as_echo_n "(cached) " >&6 4652else 4653 lt_cv_ld_reload_flag='-r' 4654fi 4655{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4656$as_echo "$lt_cv_ld_reload_flag" >&6; } 4657reload_flag=$lt_cv_ld_reload_flag 4658case $reload_flag in 4659"" | " "*) ;; 4660*) reload_flag=" $reload_flag" ;; 4661esac 4662reload_cmds='$LD$reload_flag -o $output$reload_objs' 4663case $host_os in 4664 darwin*) 4665 if test "$GCC" = yes; then 4666 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4667 else 4668 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4669 fi 4670 ;; 4671esac 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681if test -n "$ac_tool_prefix"; then 4682 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4683set dummy ${ac_tool_prefix}objdump; ac_word=$2 4684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4685$as_echo_n "checking for $ac_word... " >&6; } 4686if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test -n "$OBJDUMP"; then 4690 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4699 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704done 4705IFS=$as_save_IFS 4706 4707fi 4708fi 4709OBJDUMP=$ac_cv_prog_OBJDUMP 4710if test -n "$OBJDUMP"; then 4711 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4712$as_echo "$OBJDUMP" >&6; } 4713else 4714 { $as_echo "$as_me:$LINENO: result: no" >&5 4715$as_echo "no" >&6; } 4716fi 4717 4718 4719fi 4720if test -z "$ac_cv_prog_OBJDUMP"; then 4721 ac_ct_OBJDUMP=$OBJDUMP 4722 # Extract the first word of "objdump", so it can be a program name with args. 4723set dummy objdump; ac_word=$2 4724{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4725$as_echo_n "checking for $ac_word... " >&6; } 4726if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4727 $as_echo_n "(cached) " >&6 4728else 4729 if test -n "$ac_ct_OBJDUMP"; then 4730 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4731else 4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4739 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4741 break 2 4742 fi 4743done 4744done 4745IFS=$as_save_IFS 4746 4747fi 4748fi 4749ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4750if test -n "$ac_ct_OBJDUMP"; then 4751 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4752$as_echo "$ac_ct_OBJDUMP" >&6; } 4753else 4754 { $as_echo "$as_me:$LINENO: result: no" >&5 4755$as_echo "no" >&6; } 4756fi 4757 4758 if test "x$ac_ct_OBJDUMP" = x; then 4759 OBJDUMP="false" 4760 else 4761 case $cross_compiling:$ac_tool_warned in 4762yes:) 4763{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4764whose name does not start with the host triplet. If you think this 4765configuration is useful to you, please write to autoconf@gnu.org." >&5 4766$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4767whose name does not start with the host triplet. If you think this 4768configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4769ac_tool_warned=yes ;; 4770esac 4771 OBJDUMP=$ac_ct_OBJDUMP 4772 fi 4773else 4774 OBJDUMP="$ac_cv_prog_OBJDUMP" 4775fi 4776 4777test -z "$OBJDUMP" && OBJDUMP=objdump 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4788$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4789if test "${lt_cv_deplibs_check_method+set}" = set; then 4790 $as_echo_n "(cached) " >&6 4791else 4792 lt_cv_file_magic_cmd='$MAGIC_CMD' 4793lt_cv_file_magic_test_file= 4794lt_cv_deplibs_check_method='unknown' 4795# Need to set the preceding variable on all platforms that support 4796# interlibrary dependencies. 4797# 'none' -- dependencies not supported. 4798# `unknown' -- same as none, but documents that we really don't know. 4799# 'pass_all' -- all dependencies passed with no checks. 4800# 'test_compile' -- check by making test program. 4801# 'file_magic [[regex]]' -- check by looking for files in library path 4802# which responds to the $file_magic_cmd with a given extended regex. 4803# If you have `file' or equivalent on your system and you're not sure 4804# whether `pass_all' will *always* work, you probably want this one. 4805 4806case $host_os in 4807aix[4-9]*) 4808 lt_cv_deplibs_check_method=pass_all 4809 ;; 4810 4811beos*) 4812 lt_cv_deplibs_check_method=pass_all 4813 ;; 4814 4815bsdi[45]*) 4816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4817 lt_cv_file_magic_cmd='/usr/bin/file -L' 4818 lt_cv_file_magic_test_file=/shlib/libc.so 4819 ;; 4820 4821cygwin*) 4822 # func_win32_libid is a shell function defined in ltmain.sh 4823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4824 lt_cv_file_magic_cmd='func_win32_libid' 4825 ;; 4826 4827mingw* | pw32*) 4828 # Base MSYS/MinGW do not provide the 'file' command needed by 4829 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4830 # unless we find 'file', for example because we are cross-compiling. 4831 if ( file / ) >/dev/null 2>&1; then 4832 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4833 lt_cv_file_magic_cmd='func_win32_libid' 4834 else 4835 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4836 lt_cv_file_magic_cmd='$OBJDUMP -f' 4837 fi 4838 ;; 4839 4840cegcc) 4841 # use the weaker test based on 'objdump'. See mingw*. 4842 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4843 lt_cv_file_magic_cmd='$OBJDUMP -f' 4844 ;; 4845 4846darwin* | rhapsody*) 4847 lt_cv_deplibs_check_method=pass_all 4848 ;; 4849 4850freebsd* | dragonfly*) 4851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4852 case $host_cpu in 4853 i*86 ) 4854 # Not sure whether the presence of OpenBSD here was a mistake. 4855 # Let's accept both of them until this is cleared up. 4856 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4857 lt_cv_file_magic_cmd=/usr/bin/file 4858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4859 ;; 4860 esac 4861 else 4862 lt_cv_deplibs_check_method=pass_all 4863 fi 4864 ;; 4865 4866gnu*) 4867 lt_cv_deplibs_check_method=pass_all 4868 ;; 4869 4870hpux10.20* | hpux11*) 4871 lt_cv_file_magic_cmd=/usr/bin/file 4872 case $host_cpu in 4873 ia64*) 4874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4875 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4876 ;; 4877 hppa*64*) 4878 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]' 4879 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4880 ;; 4881 *) 4882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4883 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4884 ;; 4885 esac 4886 ;; 4887 4888interix[3-9]*) 4889 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4891 ;; 4892 4893irix5* | irix6* | nonstopux*) 4894 case $LD in 4895 *-32|*"-32 ") libmagic=32-bit;; 4896 *-n32|*"-n32 ") libmagic=N32;; 4897 *-64|*"-64 ") libmagic=64-bit;; 4898 *) libmagic=never-match;; 4899 esac 4900 lt_cv_deplibs_check_method=pass_all 4901 ;; 4902 4903# This must be Linux ELF. 4904linux* | k*bsd*-gnu) 4905 lt_cv_deplibs_check_method=pass_all 4906 ;; 4907 4908netbsd*) 4909 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4911 else 4912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4913 fi 4914 ;; 4915 4916newos6*) 4917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4918 lt_cv_file_magic_cmd=/usr/bin/file 4919 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4920 ;; 4921 4922*nto* | *qnx*) 4923 lt_cv_deplibs_check_method=pass_all 4924 ;; 4925 4926openbsd*) 4927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4929 else 4930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4931 fi 4932 ;; 4933 4934osf3* | osf4* | osf5*) 4935 lt_cv_deplibs_check_method=pass_all 4936 ;; 4937 4938rdos*) 4939 lt_cv_deplibs_check_method=pass_all 4940 ;; 4941 4942solaris*) 4943 lt_cv_deplibs_check_method=pass_all 4944 ;; 4945 4946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4947 lt_cv_deplibs_check_method=pass_all 4948 ;; 4949 4950sysv4 | sysv4.3*) 4951 case $host_vendor in 4952 motorola) 4953 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]' 4954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4955 ;; 4956 ncr) 4957 lt_cv_deplibs_check_method=pass_all 4958 ;; 4959 sequent) 4960 lt_cv_file_magic_cmd='/bin/file' 4961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4962 ;; 4963 sni) 4964 lt_cv_file_magic_cmd='/bin/file' 4965 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4966 lt_cv_file_magic_test_file=/lib/libc.so 4967 ;; 4968 siemens) 4969 lt_cv_deplibs_check_method=pass_all 4970 ;; 4971 pc) 4972 lt_cv_deplibs_check_method=pass_all 4973 ;; 4974 esac 4975 ;; 4976 4977tpf*) 4978 lt_cv_deplibs_check_method=pass_all 4979 ;; 4980esac 4981 4982fi 4983{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4984$as_echo "$lt_cv_deplibs_check_method" >&6; } 4985file_magic_cmd=$lt_cv_file_magic_cmd 4986deplibs_check_method=$lt_cv_deplibs_check_method 4987test -z "$deplibs_check_method" && deplibs_check_method=unknown 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000if test -n "$ac_tool_prefix"; then 5001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5002set dummy ${ac_tool_prefix}ar; ac_word=$2 5003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5004$as_echo_n "checking for $ac_word... " >&6; } 5005if test "${ac_cv_prog_AR+set}" = set; then 5006 $as_echo_n "(cached) " >&6 5007else 5008 if test -n "$AR"; then 5009 ac_cv_prog_AR="$AR" # Let the user override the test. 5010else 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5018 ac_cv_prog_AR="${ac_tool_prefix}ar" 5019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5020 break 2 5021 fi 5022done 5023done 5024IFS=$as_save_IFS 5025 5026fi 5027fi 5028AR=$ac_cv_prog_AR 5029if test -n "$AR"; then 5030 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5031$as_echo "$AR" >&6; } 5032else 5033 { $as_echo "$as_me:$LINENO: result: no" >&5 5034$as_echo "no" >&6; } 5035fi 5036 5037 5038fi 5039if test -z "$ac_cv_prog_AR"; then 5040 ac_ct_AR=$AR 5041 # Extract the first word of "ar", so it can be a program name with args. 5042set dummy ar; ac_word=$2 5043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5044$as_echo_n "checking for $ac_word... " >&6; } 5045if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5046 $as_echo_n "(cached) " >&6 5047else 5048 if test -n "$ac_ct_AR"; then 5049 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5050else 5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052for as_dir in $PATH 5053do 5054 IFS=$as_save_IFS 5055 test -z "$as_dir" && as_dir=. 5056 for ac_exec_ext in '' $ac_executable_extensions; do 5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5058 ac_cv_prog_ac_ct_AR="ar" 5059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5060 break 2 5061 fi 5062done 5063done 5064IFS=$as_save_IFS 5065 5066fi 5067fi 5068ac_ct_AR=$ac_cv_prog_ac_ct_AR 5069if test -n "$ac_ct_AR"; then 5070 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5071$as_echo "$ac_ct_AR" >&6; } 5072else 5073 { $as_echo "$as_me:$LINENO: result: no" >&5 5074$as_echo "no" >&6; } 5075fi 5076 5077 if test "x$ac_ct_AR" = x; then 5078 AR="false" 5079 else 5080 case $cross_compiling:$ac_tool_warned in 5081yes:) 5082{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5083whose name does not start with the host triplet. If you think this 5084configuration is useful to you, please write to autoconf@gnu.org." >&5 5085$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5086whose name does not start with the host triplet. If you think this 5087configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5088ac_tool_warned=yes ;; 5089esac 5090 AR=$ac_ct_AR 5091 fi 5092else 5093 AR="$ac_cv_prog_AR" 5094fi 5095 5096test -z "$AR" && AR=ar 5097test -z "$AR_FLAGS" && AR_FLAGS=cru 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109if test -n "$ac_tool_prefix"; then 5110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5111set dummy ${ac_tool_prefix}strip; ac_word=$2 5112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5113$as_echo_n "checking for $ac_word... " >&6; } 5114if test "${ac_cv_prog_STRIP+set}" = set; then 5115 $as_echo_n "(cached) " >&6 5116else 5117 if test -n "$STRIP"; then 5118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5119else 5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_exec_ext in '' $ac_executable_extensions; do 5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5127 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5129 break 2 5130 fi 5131done 5132done 5133IFS=$as_save_IFS 5134 5135fi 5136fi 5137STRIP=$ac_cv_prog_STRIP 5138if test -n "$STRIP"; then 5139 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5140$as_echo "$STRIP" >&6; } 5141else 5142 { $as_echo "$as_me:$LINENO: result: no" >&5 5143$as_echo "no" >&6; } 5144fi 5145 5146 5147fi 5148if test -z "$ac_cv_prog_STRIP"; then 5149 ac_ct_STRIP=$STRIP 5150 # Extract the first word of "strip", so it can be a program name with args. 5151set dummy strip; ac_word=$2 5152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5153$as_echo_n "checking for $ac_word... " >&6; } 5154if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -n "$ac_ct_STRIP"; then 5158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5159else 5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5167 ac_cv_prog_ac_ct_STRIP="strip" 5168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5169 break 2 5170 fi 5171done 5172done 5173IFS=$as_save_IFS 5174 5175fi 5176fi 5177ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5178if test -n "$ac_ct_STRIP"; then 5179 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5180$as_echo "$ac_ct_STRIP" >&6; } 5181else 5182 { $as_echo "$as_me:$LINENO: result: no" >&5 5183$as_echo "no" >&6; } 5184fi 5185 5186 if test "x$ac_ct_STRIP" = x; then 5187 STRIP=":" 5188 else 5189 case $cross_compiling:$ac_tool_warned in 5190yes:) 5191{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5192whose name does not start with the host triplet. If you think this 5193configuration is useful to you, please write to autoconf@gnu.org." >&5 5194$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5195whose name does not start with the host triplet. If you think this 5196configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5197ac_tool_warned=yes ;; 5198esac 5199 STRIP=$ac_ct_STRIP 5200 fi 5201else 5202 STRIP="$ac_cv_prog_STRIP" 5203fi 5204 5205test -z "$STRIP" && STRIP=: 5206 5207 5208 5209 5210 5211 5212if test -n "$ac_tool_prefix"; then 5213 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5214set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5216$as_echo_n "checking for $ac_word... " >&6; } 5217if test "${ac_cv_prog_RANLIB+set}" = set; then 5218 $as_echo_n "(cached) " >&6 5219else 5220 if test -n "$RANLIB"; then 5221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5222else 5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5224for as_dir in $PATH 5225do 5226 IFS=$as_save_IFS 5227 test -z "$as_dir" && as_dir=. 5228 for ac_exec_ext in '' $ac_executable_extensions; do 5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5230 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5232 break 2 5233 fi 5234done 5235done 5236IFS=$as_save_IFS 5237 5238fi 5239fi 5240RANLIB=$ac_cv_prog_RANLIB 5241if test -n "$RANLIB"; then 5242 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5243$as_echo "$RANLIB" >&6; } 5244else 5245 { $as_echo "$as_me:$LINENO: result: no" >&5 5246$as_echo "no" >&6; } 5247fi 5248 5249 5250fi 5251if test -z "$ac_cv_prog_RANLIB"; then 5252 ac_ct_RANLIB=$RANLIB 5253 # Extract the first word of "ranlib", so it can be a program name with args. 5254set dummy ranlib; ac_word=$2 5255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5256$as_echo_n "checking for $ac_word... " >&6; } 5257if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5258 $as_echo_n "(cached) " >&6 5259else 5260 if test -n "$ac_ct_RANLIB"; then 5261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5262else 5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264for as_dir in $PATH 5265do 5266 IFS=$as_save_IFS 5267 test -z "$as_dir" && as_dir=. 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5270 ac_cv_prog_ac_ct_RANLIB="ranlib" 5271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5272 break 2 5273 fi 5274done 5275done 5276IFS=$as_save_IFS 5277 5278fi 5279fi 5280ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5281if test -n "$ac_ct_RANLIB"; then 5282 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5283$as_echo "$ac_ct_RANLIB" >&6; } 5284else 5285 { $as_echo "$as_me:$LINENO: result: no" >&5 5286$as_echo "no" >&6; } 5287fi 5288 5289 if test "x$ac_ct_RANLIB" = x; then 5290 RANLIB=":" 5291 else 5292 case $cross_compiling:$ac_tool_warned in 5293yes:) 5294{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5295whose name does not start with the host triplet. If you think this 5296configuration is useful to you, please write to autoconf@gnu.org." >&5 5297$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5298whose name does not start with the host triplet. If you think this 5299configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5300ac_tool_warned=yes ;; 5301esac 5302 RANLIB=$ac_ct_RANLIB 5303 fi 5304else 5305 RANLIB="$ac_cv_prog_RANLIB" 5306fi 5307 5308test -z "$RANLIB" && RANLIB=: 5309 5310 5311 5312 5313 5314 5315# Determine commands to create old-style static archives. 5316old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5317old_postinstall_cmds='chmod 644 $oldlib' 5318old_postuninstall_cmds= 5319 5320if test -n "$RANLIB"; then 5321 case $host_os in 5322 openbsd*) 5323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5324 ;; 5325 *) 5326 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5327 ;; 5328 esac 5329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5330fi 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365# If no C compiler was specified, use CC. 5366LTCC=${LTCC-"$CC"} 5367 5368# If no C compiler flags were specified, use CFLAGS. 5369LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5370 5371# Allow CC to be a program name with arguments. 5372compiler=$CC 5373 5374 5375# Check for command to grab the raw symbol name followed by C symbol from nm. 5376{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5377$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5378if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5379 $as_echo_n "(cached) " >&6 5380else 5381 5382# These are sane defaults that work on at least a few old systems. 5383# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5384 5385# Character class describing NM global symbol codes. 5386symcode='[BCDEGRST]' 5387 5388# Regexp to match symbols that can be accessed directly from C. 5389sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5390 5391# Define system-specific variables. 5392case $host_os in 5393aix*) 5394 symcode='[BCDT]' 5395 ;; 5396cygwin* | mingw* | pw32* | cegcc*) 5397 symcode='[ABCDGISTW]' 5398 ;; 5399hpux*) 5400 if test "$host_cpu" = ia64; then 5401 symcode='[ABCDEGRST]' 5402 fi 5403 ;; 5404irix* | nonstopux*) 5405 symcode='[BCDEGRST]' 5406 ;; 5407osf*) 5408 symcode='[BCDEGQRST]' 5409 ;; 5410solaris*) 5411 symcode='[BDRT]' 5412 ;; 5413sco3.2v5*) 5414 symcode='[DT]' 5415 ;; 5416sysv4.2uw2*) 5417 symcode='[DT]' 5418 ;; 5419sysv5* | sco5v6* | unixware* | OpenUNIX*) 5420 symcode='[ABDT]' 5421 ;; 5422sysv4) 5423 symcode='[DFNSTU]' 5424 ;; 5425esac 5426 5427# If we're using GNU nm, then use its standard symbol codes. 5428case `$NM -V 2>&1` in 5429*GNU* | *'with BFD'*) 5430 symcode='[ABCDGIRSTW]' ;; 5431esac 5432 5433# Transform an extracted symbol line into a proper C declaration. 5434# Some systems (esp. on ia64) link data and code symbols differently, 5435# so use this general approach. 5436lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5437 5438# Transform an extracted symbol line into symbol name and symbol address 5439lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5440lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5441 5442# Handle CRLF in mingw tool chain 5443opt_cr= 5444case $build_os in 5445mingw*) 5446 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5447 ;; 5448esac 5449 5450# Try without a prefix underscore, then with it. 5451for ac_symprfx in "" "_"; do 5452 5453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5454 symxfrm="\\1 $ac_symprfx\\2 \\2" 5455 5456 # Write the raw and C identifiers. 5457 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5458 # Fake it for dumpbin and say T for any non-static function 5459 # and D for any global variable. 5460 # Also find C++ and __fastcall symbols from MSVC++, 5461 # which start with @ or ?. 5462 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5463" {last_section=section; section=\$ 3};"\ 5464" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5465" \$ 0!~/External *\|/{next};"\ 5466" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5467" {if(hide[section]) next};"\ 5468" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5469" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5470" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5471" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5472" ' prfx=^$ac_symprfx" 5473 else 5474 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5475 fi 5476 5477 # Check to see that the pipe works correctly. 5478 pipe_works=no 5479 5480 rm -f conftest* 5481 cat > conftest.$ac_ext <<_LT_EOF 5482#ifdef __cplusplus 5483extern "C" { 5484#endif 5485char nm_test_var; 5486void nm_test_func(void); 5487void nm_test_func(void){} 5488#ifdef __cplusplus 5489} 5490#endif 5491int main(){nm_test_var='a';nm_test_func();return(0);} 5492_LT_EOF 5493 5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5495 (eval $ac_compile) 2>&5 5496 ac_status=$? 5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); }; then 5499 # Now try to grab the symbols. 5500 nlist=conftest.nm 5501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5503 ac_status=$? 5504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); } && test -s "$nlist"; then 5506 # Try sorting and uniquifying the output. 5507 if sort "$nlist" | uniq > "$nlist"T; then 5508 mv -f "$nlist"T "$nlist" 5509 else 5510 rm -f "$nlist"T 5511 fi 5512 5513 # Make sure that we snagged all the symbols we need. 5514 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5515 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5516 cat <<_LT_EOF > conftest.$ac_ext 5517#ifdef __cplusplus 5518extern "C" { 5519#endif 5520 5521_LT_EOF 5522 # Now generate the symbol file. 5523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5524 5525 cat <<_LT_EOF >> conftest.$ac_ext 5526 5527/* The mapping between symbol names and symbols. */ 5528const struct { 5529 const char *name; 5530 void *address; 5531} 5532lt__PROGRAM__LTX_preloaded_symbols[] = 5533{ 5534 { "@PROGRAM@", (void *) 0 }, 5535_LT_EOF 5536 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5537 cat <<\_LT_EOF >> conftest.$ac_ext 5538 {0, (void *) 0} 5539}; 5540 5541/* This works around a problem in FreeBSD linker */ 5542#ifdef FREEBSD_WORKAROUND 5543static const void *lt_preloaded_setup() { 5544 return lt__PROGRAM__LTX_preloaded_symbols; 5545} 5546#endif 5547 5548#ifdef __cplusplus 5549} 5550#endif 5551_LT_EOF 5552 # Now try linking the two files. 5553 mv conftest.$ac_objext conftstm.$ac_objext 5554 lt_save_LIBS="$LIBS" 5555 lt_save_CFLAGS="$CFLAGS" 5556 LIBS="conftstm.$ac_objext" 5557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5559 (eval $ac_link) 2>&5 5560 ac_status=$? 5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5562 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5563 pipe_works=yes 5564 fi 5565 LIBS="$lt_save_LIBS" 5566 CFLAGS="$lt_save_CFLAGS" 5567 else 5568 echo "cannot find nm_test_func in $nlist" >&5 5569 fi 5570 else 5571 echo "cannot find nm_test_var in $nlist" >&5 5572 fi 5573 else 5574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5575 fi 5576 else 5577 echo "$progname: failed program was:" >&5 5578 cat conftest.$ac_ext >&5 5579 fi 5580 rm -rf conftest* conftst* 5581 5582 # Do not use the global_symbol_pipe unless it works. 5583 if test "$pipe_works" = yes; then 5584 break 5585 else 5586 lt_cv_sys_global_symbol_pipe= 5587 fi 5588done 5589 5590fi 5591 5592if test -z "$lt_cv_sys_global_symbol_pipe"; then 5593 lt_cv_sys_global_symbol_to_cdecl= 5594fi 5595if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5596 { $as_echo "$as_me:$LINENO: result: failed" >&5 5597$as_echo "failed" >&6; } 5598else 5599 { $as_echo "$as_me:$LINENO: result: ok" >&5 5600$as_echo "ok" >&6; } 5601fi 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625# Check whether --enable-libtool-lock was given. 5626if test "${enable_libtool_lock+set}" = set; then 5627 enableval=$enable_libtool_lock; 5628fi 5629 5630test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5631 5632# Some flags need to be propagated to the compiler or linker for good 5633# libtool support. 5634case $host in 5635ia64-*-hpux*) 5636 # Find out which ABI we are using. 5637 echo 'int i;' > conftest.$ac_ext 5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5639 (eval $ac_compile) 2>&5 5640 ac_status=$? 5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; then 5643 case `/usr/bin/file conftest.$ac_objext` in 5644 *ELF-32*) 5645 HPUX_IA64_MODE="32" 5646 ;; 5647 *ELF-64*) 5648 HPUX_IA64_MODE="64" 5649 ;; 5650 esac 5651 fi 5652 rm -rf conftest* 5653 ;; 5654*-*-irix6*) 5655 # Find out which ABI we are using. 5656 echo '#line 5656 "configure"' > conftest.$ac_ext 5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5658 (eval $ac_compile) 2>&5 5659 ac_status=$? 5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 (exit $ac_status); }; then 5662 if test "$lt_cv_prog_gnu_ld" = yes; then 5663 case `/usr/bin/file conftest.$ac_objext` in 5664 *32-bit*) 5665 LD="${LD-ld} -melf32bsmip" 5666 ;; 5667 *N32*) 5668 LD="${LD-ld} -melf32bmipn32" 5669 ;; 5670 *64-bit*) 5671 LD="${LD-ld} -melf64bmip" 5672 ;; 5673 esac 5674 else 5675 case `/usr/bin/file conftest.$ac_objext` in 5676 *32-bit*) 5677 LD="${LD-ld} -32" 5678 ;; 5679 *N32*) 5680 LD="${LD-ld} -n32" 5681 ;; 5682 *64-bit*) 5683 LD="${LD-ld} -64" 5684 ;; 5685 esac 5686 fi 5687 fi 5688 rm -rf conftest* 5689 ;; 5690 5691x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5692s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5693 # Find out which ABI we are using. 5694 echo 'int i;' > conftest.$ac_ext 5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5696 (eval $ac_compile) 2>&5 5697 ac_status=$? 5698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5699 (exit $ac_status); }; then 5700 case `/usr/bin/file conftest.o` in 5701 *32-bit*) 5702 case $host in 5703 x86_64-*kfreebsd*-gnu) 5704 LD="${LD-ld} -m elf_i386_fbsd" 5705 ;; 5706 x86_64-*linux*) 5707 LD="${LD-ld} -m elf_i386" 5708 ;; 5709 ppc64-*linux*|powerpc64-*linux*) 5710 LD="${LD-ld} -m elf32ppclinux" 5711 ;; 5712 s390x-*linux*) 5713 LD="${LD-ld} -m elf_s390" 5714 ;; 5715 sparc64-*linux*) 5716 LD="${LD-ld} -m elf32_sparc" 5717 ;; 5718 esac 5719 ;; 5720 *64-bit*) 5721 case $host in 5722 x86_64-*kfreebsd*-gnu) 5723 LD="${LD-ld} -m elf_x86_64_fbsd" 5724 ;; 5725 x86_64-*linux*) 5726 LD="${LD-ld} -m elf_x86_64" 5727 ;; 5728 ppc*-*linux*|powerpc*-*linux*) 5729 LD="${LD-ld} -m elf64ppc" 5730 ;; 5731 s390*-*linux*|s390*-*tpf*) 5732 LD="${LD-ld} -m elf64_s390" 5733 ;; 5734 sparc*-*linux*) 5735 LD="${LD-ld} -m elf64_sparc" 5736 ;; 5737 esac 5738 ;; 5739 esac 5740 fi 5741 rm -rf conftest* 5742 ;; 5743 5744*-*-sco3.2v5*) 5745 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5746 SAVE_CFLAGS="$CFLAGS" 5747 CFLAGS="$CFLAGS -belf" 5748 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5749$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5750if test "${lt_cv_cc_needs_belf+set}" = set; then 5751 $as_echo_n "(cached) " >&6 5752else 5753 ac_ext=c 5754ac_cpp='$CPP $CPPFLAGS' 5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5757ac_compiler_gnu=$ac_cv_c_compiler_gnu 5758 5759 cat >conftest.$ac_ext <<_ACEOF 5760/* confdefs.h. */ 5761_ACEOF 5762cat confdefs.h >>conftest.$ac_ext 5763cat >>conftest.$ac_ext <<_ACEOF 5764/* end confdefs.h. */ 5765 5766int 5767main () 5768{ 5769 5770 ; 5771 return 0; 5772} 5773_ACEOF 5774rm -f conftest.$ac_objext conftest$ac_exeext 5775if { (ac_try="$ac_link" 5776case "(($ac_try" in 5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5778 *) ac_try_echo=$ac_try;; 5779esac 5780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5781$as_echo "$ac_try_echo") >&5 5782 (eval "$ac_link") 2>conftest.er1 5783 ac_status=$? 5784 grep -v '^ *+' conftest.er1 >conftest.err 5785 rm -f conftest.er1 5786 cat conftest.err >&5 5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); } && { 5789 test -z "$ac_c_werror_flag" || 5790 test ! -s conftest.err 5791 } && test -s conftest$ac_exeext && { 5792 test "$cross_compiling" = yes || 5793 $as_test_x conftest$ac_exeext 5794 }; then 5795 lt_cv_cc_needs_belf=yes 5796else 5797 $as_echo "$as_me: failed program was:" >&5 5798sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 lt_cv_cc_needs_belf=no 5801fi 5802 5803rm -rf conftest.dSYM 5804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5805 conftest$ac_exeext conftest.$ac_ext 5806 ac_ext=c 5807ac_cpp='$CPP $CPPFLAGS' 5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_c_compiler_gnu 5811 5812fi 5813{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5814$as_echo "$lt_cv_cc_needs_belf" >&6; } 5815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5817 CFLAGS="$SAVE_CFLAGS" 5818 fi 5819 ;; 5820sparc*-*solaris*) 5821 # Find out which ABI we are using. 5822 echo 'int i;' > conftest.$ac_ext 5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5824 (eval $ac_compile) 2>&5 5825 ac_status=$? 5826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); }; then 5828 case `/usr/bin/file conftest.o` in 5829 *64-bit*) 5830 case $lt_cv_prog_gnu_ld in 5831 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5832 *) 5833 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5834 LD="${LD-ld} -64" 5835 fi 5836 ;; 5837 esac 5838 ;; 5839 esac 5840 fi 5841 rm -rf conftest* 5842 ;; 5843esac 5844 5845need_locks="$enable_libtool_lock" 5846 5847 5848 case $host_os in 5849 rhapsody* | darwin*) 5850 if test -n "$ac_tool_prefix"; then 5851 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5852set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5854$as_echo_n "checking for $ac_word... " >&6; } 5855if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5856 $as_echo_n "(cached) " >&6 5857else 5858 if test -n "$DSYMUTIL"; then 5859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5860else 5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862for as_dir in $PATH 5863do 5864 IFS=$as_save_IFS 5865 test -z "$as_dir" && as_dir=. 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5868 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873done 5874IFS=$as_save_IFS 5875 5876fi 5877fi 5878DSYMUTIL=$ac_cv_prog_DSYMUTIL 5879if test -n "$DSYMUTIL"; then 5880 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5881$as_echo "$DSYMUTIL" >&6; } 5882else 5883 { $as_echo "$as_me:$LINENO: result: no" >&5 5884$as_echo "no" >&6; } 5885fi 5886 5887 5888fi 5889if test -z "$ac_cv_prog_DSYMUTIL"; then 5890 ac_ct_DSYMUTIL=$DSYMUTIL 5891 # Extract the first word of "dsymutil", so it can be a program name with args. 5892set dummy dsymutil; ac_word=$2 5893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5894$as_echo_n "checking for $ac_word... " >&6; } 5895if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5896 $as_echo_n "(cached) " >&6 5897else 5898 if test -n "$ac_ct_DSYMUTIL"; then 5899 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5900else 5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5902for as_dir in $PATH 5903do 5904 IFS=$as_save_IFS 5905 test -z "$as_dir" && as_dir=. 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5908 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5910 break 2 5911 fi 5912done 5913done 5914IFS=$as_save_IFS 5915 5916fi 5917fi 5918ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5919if test -n "$ac_ct_DSYMUTIL"; then 5920 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5921$as_echo "$ac_ct_DSYMUTIL" >&6; } 5922else 5923 { $as_echo "$as_me:$LINENO: result: no" >&5 5924$as_echo "no" >&6; } 5925fi 5926 5927 if test "x$ac_ct_DSYMUTIL" = x; then 5928 DSYMUTIL=":" 5929 else 5930 case $cross_compiling:$ac_tool_warned in 5931yes:) 5932{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5933whose name does not start with the host triplet. If you think this 5934configuration is useful to you, please write to autoconf@gnu.org." >&5 5935$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5936whose name does not start with the host triplet. If you think this 5937configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5938ac_tool_warned=yes ;; 5939esac 5940 DSYMUTIL=$ac_ct_DSYMUTIL 5941 fi 5942else 5943 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5944fi 5945 5946 if test -n "$ac_tool_prefix"; then 5947 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5948set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5950$as_echo_n "checking for $ac_word... " >&6; } 5951if test "${ac_cv_prog_NMEDIT+set}" = set; then 5952 $as_echo_n "(cached) " >&6 5953else 5954 if test -n "$NMEDIT"; then 5955 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5956else 5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958for as_dir in $PATH 5959do 5960 IFS=$as_save_IFS 5961 test -z "$as_dir" && as_dir=. 5962 for ac_exec_ext in '' $ac_executable_extensions; do 5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5964 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5966 break 2 5967 fi 5968done 5969done 5970IFS=$as_save_IFS 5971 5972fi 5973fi 5974NMEDIT=$ac_cv_prog_NMEDIT 5975if test -n "$NMEDIT"; then 5976 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5977$as_echo "$NMEDIT" >&6; } 5978else 5979 { $as_echo "$as_me:$LINENO: result: no" >&5 5980$as_echo "no" >&6; } 5981fi 5982 5983 5984fi 5985if test -z "$ac_cv_prog_NMEDIT"; then 5986 ac_ct_NMEDIT=$NMEDIT 5987 # Extract the first word of "nmedit", so it can be a program name with args. 5988set dummy nmedit; ac_word=$2 5989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$ac_ct_NMEDIT"; then 5995 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6004 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6015if test -n "$ac_ct_NMEDIT"; then 6016 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6017$as_echo "$ac_ct_NMEDIT" >&6; } 6018else 6019 { $as_echo "$as_me:$LINENO: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 if test "x$ac_ct_NMEDIT" = x; then 6024 NMEDIT=":" 6025 else 6026 case $cross_compiling:$ac_tool_warned in 6027yes:) 6028{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6029whose name does not start with the host triplet. If you think this 6030configuration is useful to you, please write to autoconf@gnu.org." >&5 6031$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6032whose name does not start with the host triplet. If you think this 6033configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6034ac_tool_warned=yes ;; 6035esac 6036 NMEDIT=$ac_ct_NMEDIT 6037 fi 6038else 6039 NMEDIT="$ac_cv_prog_NMEDIT" 6040fi 6041 6042 if test -n "$ac_tool_prefix"; then 6043 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6044set dummy ${ac_tool_prefix}lipo; ac_word=$2 6045{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6046$as_echo_n "checking for $ac_word... " >&6; } 6047if test "${ac_cv_prog_LIPO+set}" = set; then 6048 $as_echo_n "(cached) " >&6 6049else 6050 if test -n "$LIPO"; then 6051 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6052else 6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH 6055do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6060 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064done 6065done 6066IFS=$as_save_IFS 6067 6068fi 6069fi 6070LIPO=$ac_cv_prog_LIPO 6071if test -n "$LIPO"; then 6072 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6073$as_echo "$LIPO" >&6; } 6074else 6075 { $as_echo "$as_me:$LINENO: result: no" >&5 6076$as_echo "no" >&6; } 6077fi 6078 6079 6080fi 6081if test -z "$ac_cv_prog_LIPO"; then 6082 ac_ct_LIPO=$LIPO 6083 # Extract the first word of "lipo", so it can be a program name with args. 6084set dummy lipo; ac_word=$2 6085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6086$as_echo_n "checking for $ac_word... " >&6; } 6087if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6088 $as_echo_n "(cached) " >&6 6089else 6090 if test -n "$ac_ct_LIPO"; then 6091 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6092else 6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6094for as_dir in $PATH 6095do 6096 IFS=$as_save_IFS 6097 test -z "$as_dir" && as_dir=. 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6100 ac_cv_prog_ac_ct_LIPO="lipo" 6101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104done 6105done 6106IFS=$as_save_IFS 6107 6108fi 6109fi 6110ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6111if test -n "$ac_ct_LIPO"; then 6112 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6113$as_echo "$ac_ct_LIPO" >&6; } 6114else 6115 { $as_echo "$as_me:$LINENO: result: no" >&5 6116$as_echo "no" >&6; } 6117fi 6118 6119 if test "x$ac_ct_LIPO" = x; then 6120 LIPO=":" 6121 else 6122 case $cross_compiling:$ac_tool_warned in 6123yes:) 6124{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6125whose name does not start with the host triplet. If you think this 6126configuration is useful to you, please write to autoconf@gnu.org." >&5 6127$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6128whose name does not start with the host triplet. If you think this 6129configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6130ac_tool_warned=yes ;; 6131esac 6132 LIPO=$ac_ct_LIPO 6133 fi 6134else 6135 LIPO="$ac_cv_prog_LIPO" 6136fi 6137 6138 if test -n "$ac_tool_prefix"; then 6139 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6140set dummy ${ac_tool_prefix}otool; ac_word=$2 6141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6142$as_echo_n "checking for $ac_word... " >&6; } 6143if test "${ac_cv_prog_OTOOL+set}" = set; then 6144 $as_echo_n "(cached) " >&6 6145else 6146 if test -n "$OTOOL"; then 6147 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6156 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160done 6161done 6162IFS=$as_save_IFS 6163 6164fi 6165fi 6166OTOOL=$ac_cv_prog_OTOOL 6167if test -n "$OTOOL"; then 6168 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6169$as_echo "$OTOOL" >&6; } 6170else 6171 { $as_echo "$as_me:$LINENO: result: no" >&5 6172$as_echo "no" >&6; } 6173fi 6174 6175 6176fi 6177if test -z "$ac_cv_prog_OTOOL"; then 6178 ac_ct_OTOOL=$OTOOL 6179 # Extract the first word of "otool", so it can be a program name with args. 6180set dummy otool; ac_word=$2 6181{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6182$as_echo_n "checking for $ac_word... " >&6; } 6183if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6184 $as_echo_n "(cached) " >&6 6185else 6186 if test -n "$ac_ct_OTOOL"; then 6187 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6188else 6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190for as_dir in $PATH 6191do 6192 IFS=$as_save_IFS 6193 test -z "$as_dir" && as_dir=. 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6196 ac_cv_prog_ac_ct_OTOOL="otool" 6197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201done 6202IFS=$as_save_IFS 6203 6204fi 6205fi 6206ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6207if test -n "$ac_ct_OTOOL"; then 6208 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6209$as_echo "$ac_ct_OTOOL" >&6; } 6210else 6211 { $as_echo "$as_me:$LINENO: result: no" >&5 6212$as_echo "no" >&6; } 6213fi 6214 6215 if test "x$ac_ct_OTOOL" = x; then 6216 OTOOL=":" 6217 else 6218 case $cross_compiling:$ac_tool_warned in 6219yes:) 6220{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6221whose name does not start with the host triplet. If you think this 6222configuration is useful to you, please write to autoconf@gnu.org." >&5 6223$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6224whose name does not start with the host triplet. If you think this 6225configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6226ac_tool_warned=yes ;; 6227esac 6228 OTOOL=$ac_ct_OTOOL 6229 fi 6230else 6231 OTOOL="$ac_cv_prog_OTOOL" 6232fi 6233 6234 if test -n "$ac_tool_prefix"; then 6235 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6236set dummy ${ac_tool_prefix}otool64; ac_word=$2 6237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6238$as_echo_n "checking for $ac_word... " >&6; } 6239if test "${ac_cv_prog_OTOOL64+set}" = set; then 6240 $as_echo_n "(cached) " >&6 6241else 6242 if test -n "$OTOOL64"; then 6243 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6244else 6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246for as_dir in $PATH 6247do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6252 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256done 6257done 6258IFS=$as_save_IFS 6259 6260fi 6261fi 6262OTOOL64=$ac_cv_prog_OTOOL64 6263if test -n "$OTOOL64"; then 6264 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6265$as_echo "$OTOOL64" >&6; } 6266else 6267 { $as_echo "$as_me:$LINENO: result: no" >&5 6268$as_echo "no" >&6; } 6269fi 6270 6271 6272fi 6273if test -z "$ac_cv_prog_OTOOL64"; then 6274 ac_ct_OTOOL64=$OTOOL64 6275 # Extract the first word of "otool64", so it can be a program name with args. 6276set dummy otool64; ac_word=$2 6277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6278$as_echo_n "checking for $ac_word... " >&6; } 6279if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6280 $as_echo_n "(cached) " >&6 6281else 6282 if test -n "$ac_ct_OTOOL64"; then 6283 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6284else 6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286for as_dir in $PATH 6287do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6292 ac_cv_prog_ac_ct_OTOOL64="otool64" 6293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296done 6297done 6298IFS=$as_save_IFS 6299 6300fi 6301fi 6302ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6303if test -n "$ac_ct_OTOOL64"; then 6304 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6305$as_echo "$ac_ct_OTOOL64" >&6; } 6306else 6307 { $as_echo "$as_me:$LINENO: result: no" >&5 6308$as_echo "no" >&6; } 6309fi 6310 6311 if test "x$ac_ct_OTOOL64" = x; then 6312 OTOOL64=":" 6313 else 6314 case $cross_compiling:$ac_tool_warned in 6315yes:) 6316{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6317whose name does not start with the host triplet. If you think this 6318configuration is useful to you, please write to autoconf@gnu.org." >&5 6319$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6320whose name does not start with the host triplet. If you think this 6321configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6322ac_tool_warned=yes ;; 6323esac 6324 OTOOL64=$ac_ct_OTOOL64 6325 fi 6326else 6327 OTOOL64="$ac_cv_prog_OTOOL64" 6328fi 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6357$as_echo_n "checking for -single_module linker flag... " >&6; } 6358if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6359 $as_echo_n "(cached) " >&6 6360else 6361 lt_cv_apple_cc_single_mod=no 6362 if test -z "${LT_MULTI_MODULE}"; then 6363 # By default we will add the -single_module flag. You can override 6364 # by either setting the environment variable LT_MULTI_MODULE 6365 # non-empty at configure time, or by adding -multi_module to the 6366 # link flags. 6367 rm -rf libconftest.dylib* 6368 echo "int foo(void){return 1;}" > conftest.c 6369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6370-dynamiclib -Wl,-single_module conftest.c" >&5 6371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6373 _lt_result=$? 6374 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6375 lt_cv_apple_cc_single_mod=yes 6376 else 6377 cat conftest.err >&5 6378 fi 6379 rm -rf libconftest.dylib* 6380 rm -f conftest.* 6381 fi 6382fi 6383{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6384$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6385 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6386$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6387if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6388 $as_echo_n "(cached) " >&6 6389else 6390 lt_cv_ld_exported_symbols_list=no 6391 save_LDFLAGS=$LDFLAGS 6392 echo "_main" > conftest.sym 6393 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6394 cat >conftest.$ac_ext <<_ACEOF 6395/* confdefs.h. */ 6396_ACEOF 6397cat confdefs.h >>conftest.$ac_ext 6398cat >>conftest.$ac_ext <<_ACEOF 6399/* end confdefs.h. */ 6400 6401int 6402main () 6403{ 6404 6405 ; 6406 return 0; 6407} 6408_ACEOF 6409rm -f conftest.$ac_objext conftest$ac_exeext 6410if { (ac_try="$ac_link" 6411case "(($ac_try" in 6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6413 *) ac_try_echo=$ac_try;; 6414esac 6415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6416$as_echo "$ac_try_echo") >&5 6417 (eval "$ac_link") 2>conftest.er1 6418 ac_status=$? 6419 grep -v '^ *+' conftest.er1 >conftest.err 6420 rm -f conftest.er1 6421 cat conftest.err >&5 6422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6423 (exit $ac_status); } && { 6424 test -z "$ac_c_werror_flag" || 6425 test ! -s conftest.err 6426 } && test -s conftest$ac_exeext && { 6427 test "$cross_compiling" = yes || 6428 $as_test_x conftest$ac_exeext 6429 }; then 6430 lt_cv_ld_exported_symbols_list=yes 6431else 6432 $as_echo "$as_me: failed program was:" >&5 6433sed 's/^/| /' conftest.$ac_ext >&5 6434 6435 lt_cv_ld_exported_symbols_list=no 6436fi 6437 6438rm -rf conftest.dSYM 6439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6440 conftest$ac_exeext conftest.$ac_ext 6441 LDFLAGS="$save_LDFLAGS" 6442 6443fi 6444{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6445$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6446 case $host_os in 6447 rhapsody* | darwin1.[012]) 6448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6449 darwin1.*) 6450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6451 darwin*) # darwin 5.x on 6452 # if running on 10.5 or later, the deployment target defaults 6453 # to the OS version, if on x86, and 10.4, the deployment 6454 # target defaults to 10.4. Don't you love it? 6455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6456 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6458 10.[012]*) 6459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6460 10.*) 6461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6462 esac 6463 ;; 6464 esac 6465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6466 _lt_dar_single_mod='$single_module' 6467 fi 6468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6470 else 6471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6472 fi 6473 if test "$DSYMUTIL" != ":"; then 6474 _lt_dsymutil='~$DSYMUTIL $lib || :' 6475 else 6476 _lt_dsymutil= 6477 fi 6478 ;; 6479 esac 6480 6481ac_ext=c 6482ac_cpp='$CPP $CPPFLAGS' 6483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6485ac_compiler_gnu=$ac_cv_c_compiler_gnu 6486{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6487$as_echo_n "checking how to run the C preprocessor... " >&6; } 6488# On Suns, sometimes $CPP names a directory. 6489if test -n "$CPP" && test -d "$CPP"; then 6490 CPP= 6491fi 6492if test -z "$CPP"; then 6493 if test "${ac_cv_prog_CPP+set}" = set; then 6494 $as_echo_n "(cached) " >&6 6495else 6496 # Double quotes because CPP needs to be expanded 6497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6498 do 6499 ac_preproc_ok=false 6500for ac_c_preproc_warn_flag in '' yes 6501do 6502 # Use a header file that comes with gcc, so configuring glibc 6503 # with a fresh cross-compiler works. 6504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6505 # <limits.h> exists even on freestanding compilers. 6506 # On the NeXT, cc -E runs the code through the compiler's parser, 6507 # not just through cpp. "Syntax error" is here to catch this case. 6508 cat >conftest.$ac_ext <<_ACEOF 6509/* confdefs.h. */ 6510_ACEOF 6511cat confdefs.h >>conftest.$ac_ext 6512cat >>conftest.$ac_ext <<_ACEOF 6513/* end confdefs.h. */ 6514#ifdef __STDC__ 6515# include <limits.h> 6516#else 6517# include <assert.h> 6518#endif 6519 Syntax error 6520_ACEOF 6521if { (ac_try="$ac_cpp conftest.$ac_ext" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6527$as_echo "$ac_try_echo") >&5 6528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6529 ac_status=$? 6530 grep -v '^ *+' conftest.er1 >conftest.err 6531 rm -f conftest.er1 6532 cat conftest.err >&5 6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); } >/dev/null && { 6535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6536 test ! -s conftest.err 6537 }; then 6538 : 6539else 6540 $as_echo "$as_me: failed program was:" >&5 6541sed 's/^/| /' conftest.$ac_ext >&5 6542 6543 # Broken: fails on valid input. 6544continue 6545fi 6546 6547rm -f conftest.err conftest.$ac_ext 6548 6549 # OK, works on sane cases. Now check whether nonexistent headers 6550 # can be detected and how. 6551 cat >conftest.$ac_ext <<_ACEOF 6552/* confdefs.h. */ 6553_ACEOF 6554cat confdefs.h >>conftest.$ac_ext 6555cat >>conftest.$ac_ext <<_ACEOF 6556/* end confdefs.h. */ 6557#include <ac_nonexistent.h> 6558_ACEOF 6559if { (ac_try="$ac_cpp conftest.$ac_ext" 6560case "(($ac_try" in 6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6562 *) ac_try_echo=$ac_try;; 6563esac 6564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6565$as_echo "$ac_try_echo") >&5 6566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6567 ac_status=$? 6568 grep -v '^ *+' conftest.er1 >conftest.err 6569 rm -f conftest.er1 6570 cat conftest.err >&5 6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); } >/dev/null && { 6573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6574 test ! -s conftest.err 6575 }; then 6576 # Broken: success on invalid input. 6577continue 6578else 6579 $as_echo "$as_me: failed program was:" >&5 6580sed 's/^/| /' conftest.$ac_ext >&5 6581 6582 # Passes both tests. 6583ac_preproc_ok=: 6584break 6585fi 6586 6587rm -f conftest.err conftest.$ac_ext 6588 6589done 6590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6591rm -f conftest.err conftest.$ac_ext 6592if $ac_preproc_ok; then 6593 break 6594fi 6595 6596 done 6597 ac_cv_prog_CPP=$CPP 6598 6599fi 6600 CPP=$ac_cv_prog_CPP 6601else 6602 ac_cv_prog_CPP=$CPP 6603fi 6604{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6605$as_echo "$CPP" >&6; } 6606ac_preproc_ok=false 6607for ac_c_preproc_warn_flag in '' yes 6608do 6609 # Use a header file that comes with gcc, so configuring glibc 6610 # with a fresh cross-compiler works. 6611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6612 # <limits.h> exists even on freestanding compilers. 6613 # On the NeXT, cc -E runs the code through the compiler's parser, 6614 # not just through cpp. "Syntax error" is here to catch this case. 6615 cat >conftest.$ac_ext <<_ACEOF 6616/* confdefs.h. */ 6617_ACEOF 6618cat confdefs.h >>conftest.$ac_ext 6619cat >>conftest.$ac_ext <<_ACEOF 6620/* end confdefs.h. */ 6621#ifdef __STDC__ 6622# include <limits.h> 6623#else 6624# include <assert.h> 6625#endif 6626 Syntax error 6627_ACEOF 6628if { (ac_try="$ac_cpp conftest.$ac_ext" 6629case "(($ac_try" in 6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6631 *) ac_try_echo=$ac_try;; 6632esac 6633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6634$as_echo "$ac_try_echo") >&5 6635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6636 ac_status=$? 6637 grep -v '^ *+' conftest.er1 >conftest.err 6638 rm -f conftest.er1 6639 cat conftest.err >&5 6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6641 (exit $ac_status); } >/dev/null && { 6642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6643 test ! -s conftest.err 6644 }; then 6645 : 6646else 6647 $as_echo "$as_me: failed program was:" >&5 6648sed 's/^/| /' conftest.$ac_ext >&5 6649 6650 # Broken: fails on valid input. 6651continue 6652fi 6653 6654rm -f conftest.err conftest.$ac_ext 6655 6656 # OK, works on sane cases. Now check whether nonexistent headers 6657 # can be detected and how. 6658 cat >conftest.$ac_ext <<_ACEOF 6659/* confdefs.h. */ 6660_ACEOF 6661cat confdefs.h >>conftest.$ac_ext 6662cat >>conftest.$ac_ext <<_ACEOF 6663/* end confdefs.h. */ 6664#include <ac_nonexistent.h> 6665_ACEOF 6666if { (ac_try="$ac_cpp conftest.$ac_ext" 6667case "(($ac_try" in 6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6669 *) ac_try_echo=$ac_try;; 6670esac 6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6672$as_echo "$ac_try_echo") >&5 6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } >/dev/null && { 6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 }; then 6683 # Broken: success on invalid input. 6684continue 6685else 6686 $as_echo "$as_me: failed program was:" >&5 6687sed 's/^/| /' conftest.$ac_ext >&5 6688 6689 # Passes both tests. 6690ac_preproc_ok=: 6691break 6692fi 6693 6694rm -f conftest.err conftest.$ac_ext 6695 6696done 6697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6698rm -f conftest.err conftest.$ac_ext 6699if $ac_preproc_ok; then 6700 : 6701else 6702 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6703See \`config.log' for more details." >&5 6704$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6705See \`config.log' for more details." >&2;} 6706 { (exit 1); exit 1; }; } 6707fi 6708 6709ac_ext=c 6710ac_cpp='$CPP $CPPFLAGS' 6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6713ac_compiler_gnu=$ac_cv_c_compiler_gnu 6714 6715 6716{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6717$as_echo_n "checking for ANSI C header files... " >&6; } 6718if test "${ac_cv_header_stdc+set}" = set; then 6719 $as_echo_n "(cached) " >&6 6720else 6721 cat >conftest.$ac_ext <<_ACEOF 6722/* confdefs.h. */ 6723_ACEOF 6724cat confdefs.h >>conftest.$ac_ext 6725cat >>conftest.$ac_ext <<_ACEOF 6726/* end confdefs.h. */ 6727#include <stdlib.h> 6728#include <stdarg.h> 6729#include <string.h> 6730#include <float.h> 6731 6732int 6733main () 6734{ 6735 6736 ; 6737 return 0; 6738} 6739_ACEOF 6740rm -f conftest.$ac_objext 6741if { (ac_try="$ac_compile" 6742case "(($ac_try" in 6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6744 *) ac_try_echo=$ac_try;; 6745esac 6746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6747$as_echo "$ac_try_echo") >&5 6748 (eval "$ac_compile") 2>conftest.er1 6749 ac_status=$? 6750 grep -v '^ *+' conftest.er1 >conftest.err 6751 rm -f conftest.er1 6752 cat conftest.err >&5 6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6754 (exit $ac_status); } && { 6755 test -z "$ac_c_werror_flag" || 6756 test ! -s conftest.err 6757 } && test -s conftest.$ac_objext; then 6758 ac_cv_header_stdc=yes 6759else 6760 $as_echo "$as_me: failed program was:" >&5 6761sed 's/^/| /' conftest.$ac_ext >&5 6762 6763 ac_cv_header_stdc=no 6764fi 6765 6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6767 6768if test $ac_cv_header_stdc = yes; then 6769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6770 cat >conftest.$ac_ext <<_ACEOF 6771/* confdefs.h. */ 6772_ACEOF 6773cat confdefs.h >>conftest.$ac_ext 6774cat >>conftest.$ac_ext <<_ACEOF 6775/* end confdefs.h. */ 6776#include <string.h> 6777 6778_ACEOF 6779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6780 $EGREP "memchr" >/dev/null 2>&1; then 6781 : 6782else 6783 ac_cv_header_stdc=no 6784fi 6785rm -f conftest* 6786 6787fi 6788 6789if test $ac_cv_header_stdc = yes; then 6790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6791 cat >conftest.$ac_ext <<_ACEOF 6792/* confdefs.h. */ 6793_ACEOF 6794cat confdefs.h >>conftest.$ac_ext 6795cat >>conftest.$ac_ext <<_ACEOF 6796/* end confdefs.h. */ 6797#include <stdlib.h> 6798 6799_ACEOF 6800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6801 $EGREP "free" >/dev/null 2>&1; then 6802 : 6803else 6804 ac_cv_header_stdc=no 6805fi 6806rm -f conftest* 6807 6808fi 6809 6810if test $ac_cv_header_stdc = yes; then 6811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6812 if test "$cross_compiling" = yes; then 6813 : 6814else 6815 cat >conftest.$ac_ext <<_ACEOF 6816/* confdefs.h. */ 6817_ACEOF 6818cat confdefs.h >>conftest.$ac_ext 6819cat >>conftest.$ac_ext <<_ACEOF 6820/* end confdefs.h. */ 6821#include <ctype.h> 6822#include <stdlib.h> 6823#if ((' ' & 0x0FF) == 0x020) 6824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6826#else 6827# define ISLOWER(c) \ 6828 (('a' <= (c) && (c) <= 'i') \ 6829 || ('j' <= (c) && (c) <= 'r') \ 6830 || ('s' <= (c) && (c) <= 'z')) 6831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6832#endif 6833 6834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6835int 6836main () 6837{ 6838 int i; 6839 for (i = 0; i < 256; i++) 6840 if (XOR (islower (i), ISLOWER (i)) 6841 || toupper (i) != TOUPPER (i)) 6842 return 2; 6843 return 0; 6844} 6845_ACEOF 6846rm -f conftest$ac_exeext 6847if { (ac_try="$ac_link" 6848case "(($ac_try" in 6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6850 *) ac_try_echo=$ac_try;; 6851esac 6852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6853$as_echo "$ac_try_echo") >&5 6854 (eval "$ac_link") 2>&5 6855 ac_status=$? 6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6858 { (case "(($ac_try" in 6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6860 *) ac_try_echo=$ac_try;; 6861esac 6862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6863$as_echo "$ac_try_echo") >&5 6864 (eval "$ac_try") 2>&5 6865 ac_status=$? 6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6867 (exit $ac_status); }; }; then 6868 : 6869else 6870 $as_echo "$as_me: program exited with status $ac_status" >&5 6871$as_echo "$as_me: failed program was:" >&5 6872sed 's/^/| /' conftest.$ac_ext >&5 6873 6874( exit $ac_status ) 6875ac_cv_header_stdc=no 6876fi 6877rm -rf conftest.dSYM 6878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6879fi 6880 6881 6882fi 6883fi 6884{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6885$as_echo "$ac_cv_header_stdc" >&6; } 6886if test $ac_cv_header_stdc = yes; then 6887 6888cat >>confdefs.h <<\_ACEOF 6889#define STDC_HEADERS 1 6890_ACEOF 6891 6892fi 6893 6894# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6905 inttypes.h stdint.h unistd.h 6906do 6907as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6908{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6909$as_echo_n "checking for $ac_header... " >&6; } 6910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6911 $as_echo_n "(cached) " >&6 6912else 6913 cat >conftest.$ac_ext <<_ACEOF 6914/* confdefs.h. */ 6915_ACEOF 6916cat confdefs.h >>conftest.$ac_ext 6917cat >>conftest.$ac_ext <<_ACEOF 6918/* end confdefs.h. */ 6919$ac_includes_default 6920 6921#include <$ac_header> 6922_ACEOF 6923rm -f conftest.$ac_objext 6924if { (ac_try="$ac_compile" 6925case "(($ac_try" in 6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6927 *) ac_try_echo=$ac_try;; 6928esac 6929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6930$as_echo "$ac_try_echo") >&5 6931 (eval "$ac_compile") 2>conftest.er1 6932 ac_status=$? 6933 grep -v '^ *+' conftest.er1 >conftest.err 6934 rm -f conftest.er1 6935 cat conftest.err >&5 6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6937 (exit $ac_status); } && { 6938 test -z "$ac_c_werror_flag" || 6939 test ! -s conftest.err 6940 } && test -s conftest.$ac_objext; then 6941 eval "$as_ac_Header=yes" 6942else 6943 $as_echo "$as_me: failed program was:" >&5 6944sed 's/^/| /' conftest.$ac_ext >&5 6945 6946 eval "$as_ac_Header=no" 6947fi 6948 6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6950fi 6951ac_res=`eval 'as_val=${'$as_ac_Header'} 6952 $as_echo "$as_val"'` 6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6954$as_echo "$ac_res" >&6; } 6955if test `eval 'as_val=${'$as_ac_Header'} 6956 $as_echo "$as_val"'` = yes; then 6957 cat >>confdefs.h <<_ACEOF 6958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6959_ACEOF 6960 6961fi 6962 6963done 6964 6965 6966 6967for ac_header in dlfcn.h 6968do 6969as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6970{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6971$as_echo_n "checking for $ac_header... " >&6; } 6972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat >conftest.$ac_ext <<_ACEOF 6976/* confdefs.h. */ 6977_ACEOF 6978cat confdefs.h >>conftest.$ac_ext 6979cat >>conftest.$ac_ext <<_ACEOF 6980/* end confdefs.h. */ 6981$ac_includes_default 6982 6983#include <$ac_header> 6984_ACEOF 6985rm -f conftest.$ac_objext 6986if { (ac_try="$ac_compile" 6987case "(($ac_try" in 6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6989 *) ac_try_echo=$ac_try;; 6990esac 6991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6992$as_echo "$ac_try_echo") >&5 6993 (eval "$ac_compile") 2>conftest.er1 6994 ac_status=$? 6995 grep -v '^ *+' conftest.er1 >conftest.err 6996 rm -f conftest.er1 6997 cat conftest.err >&5 6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6999 (exit $ac_status); } && { 7000 test -z "$ac_c_werror_flag" || 7001 test ! -s conftest.err 7002 } && test -s conftest.$ac_objext; then 7003 eval "$as_ac_Header=yes" 7004else 7005 $as_echo "$as_me: failed program was:" >&5 7006sed 's/^/| /' conftest.$ac_ext >&5 7007 7008 eval "$as_ac_Header=no" 7009fi 7010 7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7012fi 7013ac_res=`eval 'as_val=${'$as_ac_Header'} 7014 $as_echo "$as_val"'` 7015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7016$as_echo "$ac_res" >&6; } 7017if test `eval 'as_val=${'$as_ac_Header'} 7018 $as_echo "$as_val"'` = yes; then 7019 cat >>confdefs.h <<_ACEOF 7020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7021_ACEOF 7022 7023fi 7024 7025done 7026 7027 7028 7029# Set options 7030 7031 7032 7033 enable_dlopen=no 7034 7035 7036 enable_win32_dll=no 7037 7038 7039 # Check whether --enable-shared was given. 7040if test "${enable_shared+set}" = set; then 7041 enableval=$enable_shared; p=${PACKAGE-default} 7042 case $enableval in 7043 yes) enable_shared=yes ;; 7044 no) enable_shared=no ;; 7045 *) 7046 enable_shared=no 7047 # Look at the argument we got. We use all the common list separators. 7048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7049 for pkg in $enableval; do 7050 IFS="$lt_save_ifs" 7051 if test "X$pkg" = "X$p"; then 7052 enable_shared=yes 7053 fi 7054 done 7055 IFS="$lt_save_ifs" 7056 ;; 7057 esac 7058else 7059 enable_shared=yes 7060fi 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 # Check whether --enable-static was given. 7071if test "${enable_static+set}" = set; then 7072 enableval=$enable_static; p=${PACKAGE-default} 7073 case $enableval in 7074 yes) enable_static=yes ;; 7075 no) enable_static=no ;; 7076 *) 7077 enable_static=no 7078 # Look at the argument we got. We use all the common list separators. 7079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7080 for pkg in $enableval; do 7081 IFS="$lt_save_ifs" 7082 if test "X$pkg" = "X$p"; then 7083 enable_static=yes 7084 fi 7085 done 7086 IFS="$lt_save_ifs" 7087 ;; 7088 esac 7089else 7090 enable_static=yes 7091fi 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102# Check whether --with-pic was given. 7103if test "${with_pic+set}" = set; then 7104 withval=$with_pic; pic_mode="$withval" 7105else 7106 pic_mode=default 7107fi 7108 7109 7110test -z "$pic_mode" && pic_mode=default 7111 7112 7113 7114 7115 7116 7117 7118 # Check whether --enable-fast-install was given. 7119if test "${enable_fast_install+set}" = set; then 7120 enableval=$enable_fast_install; p=${PACKAGE-default} 7121 case $enableval in 7122 yes) enable_fast_install=yes ;; 7123 no) enable_fast_install=no ;; 7124 *) 7125 enable_fast_install=no 7126 # Look at the argument we got. We use all the common list separators. 7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7128 for pkg in $enableval; do 7129 IFS="$lt_save_ifs" 7130 if test "X$pkg" = "X$p"; then 7131 enable_fast_install=yes 7132 fi 7133 done 7134 IFS="$lt_save_ifs" 7135 ;; 7136 esac 7137else 7138 enable_fast_install=yes 7139fi 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151# This can be used to rebuild libtool when needed 7152LIBTOOL_DEPS="$ltmain" 7153 7154# Always use our own libtool. 7155LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181test -z "$LN_S" && LN_S="ln -s" 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196if test -n "${ZSH_VERSION+set}" ; then 7197 setopt NO_GLOB_SUBST 7198fi 7199 7200{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7201$as_echo_n "checking for objdir... " >&6; } 7202if test "${lt_cv_objdir+set}" = set; then 7203 $as_echo_n "(cached) " >&6 7204else 7205 rm -f .libs 2>/dev/null 7206mkdir .libs 2>/dev/null 7207if test -d .libs; then 7208 lt_cv_objdir=.libs 7209else 7210 # MS-DOS does not allow filenames that begin with a dot. 7211 lt_cv_objdir=_libs 7212fi 7213rmdir .libs 2>/dev/null 7214fi 7215{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7216$as_echo "$lt_cv_objdir" >&6; } 7217objdir=$lt_cv_objdir 7218 7219 7220 7221 7222 7223cat >>confdefs.h <<_ACEOF 7224#define LT_OBJDIR "$lt_cv_objdir/" 7225_ACEOF 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243case $host_os in 7244aix3*) 7245 # AIX sometimes has problems with the GCC collect2 program. For some 7246 # reason, if we set the COLLECT_NAMES environment variable, the problems 7247 # vanish in a puff of smoke. 7248 if test "X${COLLECT_NAMES+set}" != Xset; then 7249 COLLECT_NAMES= 7250 export COLLECT_NAMES 7251 fi 7252 ;; 7253esac 7254 7255# Sed substitution that helps us do robust quoting. It backslashifies 7256# metacharacters that are still active within double-quoted strings. 7257sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7258 7259# Same as above, but do not quote variable references. 7260double_quote_subst='s/\(["`\\]\)/\\\1/g' 7261 7262# Sed substitution to delay expansion of an escaped shell variable in a 7263# double_quote_subst'ed string. 7264delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7265 7266# Sed substitution to delay expansion of an escaped single quote. 7267delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7268 7269# Sed substitution to avoid accidental globbing in evaled expressions 7270no_glob_subst='s/\*/\\\*/g' 7271 7272# Global variables: 7273ofile=libtool 7274can_build_shared=yes 7275 7276# All known linkers require a `.a' archive for static linking (except MSVC, 7277# which needs '.lib'). 7278libext=a 7279 7280with_gnu_ld="$lt_cv_prog_gnu_ld" 7281 7282old_CC="$CC" 7283old_CFLAGS="$CFLAGS" 7284 7285# Set sane defaults for various variables 7286test -z "$CC" && CC=cc 7287test -z "$LTCC" && LTCC=$CC 7288test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7289test -z "$LD" && LD=ld 7290test -z "$ac_objext" && ac_objext=o 7291 7292for cc_temp in $compiler""; do 7293 case $cc_temp in 7294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7296 \-*) ;; 7297 *) break;; 7298 esac 7299done 7300cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7301 7302 7303# Only perform the check for file, if the check method requires it 7304test -z "$MAGIC_CMD" && MAGIC_CMD=file 7305case $deplibs_check_method in 7306file_magic*) 7307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7308 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7309$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7310if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7311 $as_echo_n "(cached) " >&6 7312else 7313 case $MAGIC_CMD in 7314[\\/*] | ?:[\\/]*) 7315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7316 ;; 7317*) 7318 lt_save_MAGIC_CMD="$MAGIC_CMD" 7319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7321 for ac_dir in $ac_dummy; do 7322 IFS="$lt_save_ifs" 7323 test -z "$ac_dir" && ac_dir=. 7324 if test -f $ac_dir/${ac_tool_prefix}file; then 7325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7326 if test -n "$file_magic_test_file"; then 7327 case $deplibs_check_method in 7328 "file_magic "*) 7329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7332 $EGREP "$file_magic_regex" > /dev/null; then 7333 : 7334 else 7335 cat <<_LT_EOF 1>&2 7336 7337*** Warning: the command libtool uses to detect shared libraries, 7338*** $file_magic_cmd, produces output that libtool cannot recognize. 7339*** The result is that libtool may fail to recognize shared libraries 7340*** as such. This will affect the creation of libtool libraries that 7341*** depend on shared libraries, but programs linked with such libtool 7342*** libraries will work regardless of this problem. Nevertheless, you 7343*** may want to report the problem to your system manager and/or to 7344*** bug-libtool@gnu.org 7345 7346_LT_EOF 7347 fi ;; 7348 esac 7349 fi 7350 break 7351 fi 7352 done 7353 IFS="$lt_save_ifs" 7354 MAGIC_CMD="$lt_save_MAGIC_CMD" 7355 ;; 7356esac 7357fi 7358 7359MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7360if test -n "$MAGIC_CMD"; then 7361 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7362$as_echo "$MAGIC_CMD" >&6; } 7363else 7364 { $as_echo "$as_me:$LINENO: result: no" >&5 7365$as_echo "no" >&6; } 7366fi 7367 7368 7369 7370 7371 7372if test -z "$lt_cv_path_MAGIC_CMD"; then 7373 if test -n "$ac_tool_prefix"; then 7374 { $as_echo "$as_me:$LINENO: checking for file" >&5 7375$as_echo_n "checking for file... " >&6; } 7376if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7377 $as_echo_n "(cached) " >&6 7378else 7379 case $MAGIC_CMD in 7380[\\/*] | ?:[\\/]*) 7381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7382 ;; 7383*) 7384 lt_save_MAGIC_CMD="$MAGIC_CMD" 7385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7387 for ac_dir in $ac_dummy; do 7388 IFS="$lt_save_ifs" 7389 test -z "$ac_dir" && ac_dir=. 7390 if test -f $ac_dir/file; then 7391 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7392 if test -n "$file_magic_test_file"; then 7393 case $deplibs_check_method in 7394 "file_magic "*) 7395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7398 $EGREP "$file_magic_regex" > /dev/null; then 7399 : 7400 else 7401 cat <<_LT_EOF 1>&2 7402 7403*** Warning: the command libtool uses to detect shared libraries, 7404*** $file_magic_cmd, produces output that libtool cannot recognize. 7405*** The result is that libtool may fail to recognize shared libraries 7406*** as such. This will affect the creation of libtool libraries that 7407*** depend on shared libraries, but programs linked with such libtool 7408*** libraries will work regardless of this problem. Nevertheless, you 7409*** may want to report the problem to your system manager and/or to 7410*** bug-libtool@gnu.org 7411 7412_LT_EOF 7413 fi ;; 7414 esac 7415 fi 7416 break 7417 fi 7418 done 7419 IFS="$lt_save_ifs" 7420 MAGIC_CMD="$lt_save_MAGIC_CMD" 7421 ;; 7422esac 7423fi 7424 7425MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7426if test -n "$MAGIC_CMD"; then 7427 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7428$as_echo "$MAGIC_CMD" >&6; } 7429else 7430 { $as_echo "$as_me:$LINENO: result: no" >&5 7431$as_echo "no" >&6; } 7432fi 7433 7434 7435 else 7436 MAGIC_CMD=: 7437 fi 7438fi 7439 7440 fi 7441 ;; 7442esac 7443 7444# Use C for the default configuration in the libtool script 7445 7446lt_save_CC="$CC" 7447ac_ext=c 7448ac_cpp='$CPP $CPPFLAGS' 7449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7451ac_compiler_gnu=$ac_cv_c_compiler_gnu 7452 7453 7454# Source file extension for C test sources. 7455ac_ext=c 7456 7457# Object file extension for compiled C test sources. 7458objext=o 7459objext=$objext 7460 7461# Code to be used in simple compile tests 7462lt_simple_compile_test_code="int some_variable = 0;" 7463 7464# Code to be used in simple link tests 7465lt_simple_link_test_code='int main(){return(0);}' 7466 7467 7468 7469 7470 7471 7472 7473# If no C compiler was specified, use CC. 7474LTCC=${LTCC-"$CC"} 7475 7476# If no C compiler flags were specified, use CFLAGS. 7477LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7478 7479# Allow CC to be a program name with arguments. 7480compiler=$CC 7481 7482# Save the default compiler, since it gets overwritten when the other 7483# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7484compiler_DEFAULT=$CC 7485 7486# save warnings/boilerplate of simple test code 7487ac_outfile=conftest.$ac_objext 7488echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7489eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7490_lt_compiler_boilerplate=`cat conftest.err` 7491$RM conftest* 7492 7493ac_outfile=conftest.$ac_objext 7494echo "$lt_simple_link_test_code" >conftest.$ac_ext 7495eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7496_lt_linker_boilerplate=`cat conftest.err` 7497$RM -r conftest* 7498 7499 7500if test -n "$compiler"; then 7501 7502lt_prog_compiler_no_builtin_flag= 7503 7504if test "$GCC" = yes; then 7505 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7506 7507 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7508$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7509if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7510 $as_echo_n "(cached) " >&6 7511else 7512 lt_cv_prog_compiler_rtti_exceptions=no 7513 ac_outfile=conftest.$ac_objext 7514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7515 lt_compiler_flag="-fno-rtti -fno-exceptions" 7516 # Insert the option either (1) after the last *FLAGS variable, or 7517 # (2) before a word containing "conftest.", or (3) at the end. 7518 # Note that $ac_compile itself does not contain backslashes and begins 7519 # with a dollar sign (not a hyphen), so the echo should work correctly. 7520 # The option is referenced via a variable to avoid confusing sed. 7521 lt_compile=`echo "$ac_compile" | $SED \ 7522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7524 -e 's:$: $lt_compiler_flag:'` 7525 (eval echo "\"\$as_me:7525: $lt_compile\"" >&5) 7526 (eval "$lt_compile" 2>conftest.err) 7527 ac_status=$? 7528 cat conftest.err >&5 7529 echo "$as_me:7529: \$? = $ac_status" >&5 7530 if (exit $ac_status) && test -s "$ac_outfile"; then 7531 # The compiler can only warn and ignore the option if not recognized 7532 # So say no if there are warnings other than the usual output. 7533 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7536 lt_cv_prog_compiler_rtti_exceptions=yes 7537 fi 7538 fi 7539 $RM conftest* 7540 7541fi 7542{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7543$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7544 7545if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7546 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7547else 7548 : 7549fi 7550 7551fi 7552 7553 7554 7555 7556 7557 7558 lt_prog_compiler_wl= 7559lt_prog_compiler_pic= 7560lt_prog_compiler_static= 7561 7562{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7563$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7564 7565 if test "$GCC" = yes; then 7566 lt_prog_compiler_wl='-Wl,' 7567 lt_prog_compiler_static='-static' 7568 7569 case $host_os in 7570 aix*) 7571 # All AIX code is PIC. 7572 if test "$host_cpu" = ia64; then 7573 # AIX 5 now supports IA64 processor 7574 lt_prog_compiler_static='-Bstatic' 7575 fi 7576 ;; 7577 7578 amigaos*) 7579 case $host_cpu in 7580 powerpc) 7581 # see comment about AmigaOS4 .so support 7582 lt_prog_compiler_pic='-fPIC' 7583 ;; 7584 m68k) 7585 # FIXME: we need at least 68020 code to build shared libraries, but 7586 # adding the `-m68020' flag to GCC prevents building anything better, 7587 # like `-m68040'. 7588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7589 ;; 7590 esac 7591 ;; 7592 7593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7594 # PIC is the default for these OSes. 7595 ;; 7596 7597 mingw* | cygwin* | pw32* | os2* | cegcc*) 7598 # This hack is so that the source file can tell whether it is being 7599 # built for inclusion in a dll (and should export symbols for example). 7600 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7601 # (--disable-auto-import) libraries 7602 lt_prog_compiler_pic='-DDLL_EXPORT' 7603 ;; 7604 7605 darwin* | rhapsody*) 7606 # PIC is the default on this platform 7607 # Common symbols not allowed in MH_DYLIB files 7608 lt_prog_compiler_pic='-fno-common' 7609 ;; 7610 7611 hpux*) 7612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7614 # sets the default TLS model and affects inlining. 7615 case $host_cpu in 7616 hppa*64*) 7617 # +Z the default 7618 ;; 7619 *) 7620 lt_prog_compiler_pic='-fPIC' 7621 ;; 7622 esac 7623 ;; 7624 7625 interix[3-9]*) 7626 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7627 # Instead, we relocate shared libraries at runtime. 7628 ;; 7629 7630 msdosdjgpp*) 7631 # Just because we use GCC doesn't mean we suddenly get shared libraries 7632 # on systems that don't support them. 7633 lt_prog_compiler_can_build_shared=no 7634 enable_shared=no 7635 ;; 7636 7637 *nto* | *qnx*) 7638 # QNX uses GNU C++, but need to define -shared option too, otherwise 7639 # it will coredump. 7640 lt_prog_compiler_pic='-fPIC -shared' 7641 ;; 7642 7643 sysv4*MP*) 7644 if test -d /usr/nec; then 7645 lt_prog_compiler_pic=-Kconform_pic 7646 fi 7647 ;; 7648 7649 *) 7650 lt_prog_compiler_pic='-fPIC' 7651 ;; 7652 esac 7653 else 7654 # PORTME Check for flag to pass linker flags through the system compiler. 7655 case $host_os in 7656 aix*) 7657 lt_prog_compiler_wl='-Wl,' 7658 if test "$host_cpu" = ia64; then 7659 # AIX 5 now supports IA64 processor 7660 lt_prog_compiler_static='-Bstatic' 7661 else 7662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7663 fi 7664 ;; 7665 7666 mingw* | cygwin* | pw32* | os2* | cegcc*) 7667 # This hack is so that the source file can tell whether it is being 7668 # built for inclusion in a dll (and should export symbols for example). 7669 lt_prog_compiler_pic='-DDLL_EXPORT' 7670 ;; 7671 7672 hpux9* | hpux10* | hpux11*) 7673 lt_prog_compiler_wl='-Wl,' 7674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7675 # not for PA HP-UX. 7676 case $host_cpu in 7677 hppa*64*|ia64*) 7678 # +Z the default 7679 ;; 7680 *) 7681 lt_prog_compiler_pic='+Z' 7682 ;; 7683 esac 7684 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7685 lt_prog_compiler_static='${wl}-a ${wl}archive' 7686 ;; 7687 7688 irix5* | irix6* | nonstopux*) 7689 lt_prog_compiler_wl='-Wl,' 7690 # PIC (with -KPIC) is the default. 7691 lt_prog_compiler_static='-non_shared' 7692 ;; 7693 7694 linux* | k*bsd*-gnu) 7695 case $cc_basename in 7696 # old Intel for x86_64 which still supported -KPIC. 7697 ecc*) 7698 lt_prog_compiler_wl='-Wl,' 7699 lt_prog_compiler_pic='-KPIC' 7700 lt_prog_compiler_static='-static' 7701 ;; 7702 # icc used to be incompatible with GCC. 7703 # ICC 10 doesn't accept -KPIC any more. 7704 icc* | ifort*) 7705 lt_prog_compiler_wl='-Wl,' 7706 lt_prog_compiler_pic='-fPIC' 7707 lt_prog_compiler_static='-static' 7708 ;; 7709 # Lahey Fortran 8.1. 7710 lf95*) 7711 lt_prog_compiler_wl='-Wl,' 7712 lt_prog_compiler_pic='--shared' 7713 lt_prog_compiler_static='--static' 7714 ;; 7715 pgcc* | pgf77* | pgf90* | pgf95*) 7716 # Portland Group compilers (*not* the Pentium gcc compiler, 7717 # which looks to be a dead project) 7718 lt_prog_compiler_wl='-Wl,' 7719 lt_prog_compiler_pic='-fpic' 7720 lt_prog_compiler_static='-Bstatic' 7721 ;; 7722 ccc*) 7723 lt_prog_compiler_wl='-Wl,' 7724 # All Alpha code is PIC. 7725 lt_prog_compiler_static='-non_shared' 7726 ;; 7727 xl*) 7728 # IBM XL C 8.0/Fortran 10.1 on PPC 7729 lt_prog_compiler_wl='-Wl,' 7730 lt_prog_compiler_pic='-qpic' 7731 lt_prog_compiler_static='-qstaticlink' 7732 ;; 7733 *) 7734 case `$CC -V 2>&1 | sed 5q` in 7735 *Sun\ C*) 7736 # Sun C 5.9 7737 lt_prog_compiler_pic='-KPIC' 7738 lt_prog_compiler_static='-Bstatic' 7739 lt_prog_compiler_wl='-Wl,' 7740 ;; 7741 *Sun\ F*) 7742 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7743 lt_prog_compiler_pic='-KPIC' 7744 lt_prog_compiler_static='-Bstatic' 7745 lt_prog_compiler_wl='' 7746 ;; 7747 esac 7748 ;; 7749 esac 7750 ;; 7751 7752 newsos6) 7753 lt_prog_compiler_pic='-KPIC' 7754 lt_prog_compiler_static='-Bstatic' 7755 ;; 7756 7757 *nto* | *qnx*) 7758 # QNX uses GNU C++, but need to define -shared option too, otherwise 7759 # it will coredump. 7760 lt_prog_compiler_pic='-fPIC -shared' 7761 ;; 7762 7763 osf3* | osf4* | osf5*) 7764 lt_prog_compiler_wl='-Wl,' 7765 # All OSF/1 code is PIC. 7766 lt_prog_compiler_static='-non_shared' 7767 ;; 7768 7769 rdos*) 7770 lt_prog_compiler_static='-non_shared' 7771 ;; 7772 7773 solaris*) 7774 lt_prog_compiler_pic='-KPIC' 7775 lt_prog_compiler_static='-Bstatic' 7776 case $cc_basename in 7777 f77* | f90* | f95*) 7778 lt_prog_compiler_wl='-Qoption ld ';; 7779 *) 7780 lt_prog_compiler_wl='-Wl,';; 7781 esac 7782 ;; 7783 7784 sunos4*) 7785 lt_prog_compiler_wl='-Qoption ld ' 7786 lt_prog_compiler_pic='-PIC' 7787 lt_prog_compiler_static='-Bstatic' 7788 ;; 7789 7790 sysv4 | sysv4.2uw2* | sysv4.3*) 7791 lt_prog_compiler_wl='-Wl,' 7792 lt_prog_compiler_pic='-KPIC' 7793 lt_prog_compiler_static='-Bstatic' 7794 ;; 7795 7796 sysv4*MP*) 7797 if test -d /usr/nec ;then 7798 lt_prog_compiler_pic='-Kconform_pic' 7799 lt_prog_compiler_static='-Bstatic' 7800 fi 7801 ;; 7802 7803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7804 lt_prog_compiler_wl='-Wl,' 7805 lt_prog_compiler_pic='-KPIC' 7806 lt_prog_compiler_static='-Bstatic' 7807 ;; 7808 7809 unicos*) 7810 lt_prog_compiler_wl='-Wl,' 7811 lt_prog_compiler_can_build_shared=no 7812 ;; 7813 7814 uts4*) 7815 lt_prog_compiler_pic='-pic' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 *) 7820 lt_prog_compiler_can_build_shared=no 7821 ;; 7822 esac 7823 fi 7824 7825case $host_os in 7826 # For platforms which do not support PIC, -DPIC is meaningless: 7827 *djgpp*) 7828 lt_prog_compiler_pic= 7829 ;; 7830 *) 7831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7832 ;; 7833esac 7834{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7835$as_echo "$lt_prog_compiler_pic" >&6; } 7836 7837 7838 7839 7840 7841 7842# 7843# Check to make sure the PIC flag actually works. 7844# 7845if test -n "$lt_prog_compiler_pic"; then 7846 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7848if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7849 $as_echo_n "(cached) " >&6 7850else 7851 lt_cv_prog_compiler_pic_works=no 7852 ac_outfile=conftest.$ac_objext 7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7855 # Insert the option either (1) after the last *FLAGS variable, or 7856 # (2) before a word containing "conftest.", or (3) at the end. 7857 # Note that $ac_compile itself does not contain backslashes and begins 7858 # with a dollar sign (not a hyphen), so the echo should work correctly. 7859 # The option is referenced via a variable to avoid confusing sed. 7860 lt_compile=`echo "$ac_compile" | $SED \ 7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7863 -e 's:$: $lt_compiler_flag:'` 7864 (eval echo "\"\$as_me:7864: $lt_compile\"" >&5) 7865 (eval "$lt_compile" 2>conftest.err) 7866 ac_status=$? 7867 cat conftest.err >&5 7868 echo "$as_me:7868: \$? = $ac_status" >&5 7869 if (exit $ac_status) && test -s "$ac_outfile"; then 7870 # The compiler can only warn and ignore the option if not recognized 7871 # So say no if there are warnings other than the usual output. 7872 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7875 lt_cv_prog_compiler_pic_works=yes 7876 fi 7877 fi 7878 $RM conftest* 7879 7880fi 7881{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7882$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7883 7884if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7885 case $lt_prog_compiler_pic in 7886 "" | " "*) ;; 7887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7888 esac 7889else 7890 lt_prog_compiler_pic= 7891 lt_prog_compiler_can_build_shared=no 7892fi 7893 7894fi 7895 7896 7897 7898 7899 7900 7901# 7902# Check to make sure the static flag actually works. 7903# 7904wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7905{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7906$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7907if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7908 $as_echo_n "(cached) " >&6 7909else 7910 lt_cv_prog_compiler_static_works=no 7911 save_LDFLAGS="$LDFLAGS" 7912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7913 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7915 # The linker can only warn and ignore the option if not recognized 7916 # So say no if there are warnings 7917 if test -s conftest.err; then 7918 # Append any errors to the config.log. 7919 cat conftest.err 1>&5 7920 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7922 if diff conftest.exp conftest.er2 >/dev/null; then 7923 lt_cv_prog_compiler_static_works=yes 7924 fi 7925 else 7926 lt_cv_prog_compiler_static_works=yes 7927 fi 7928 fi 7929 $RM -r conftest* 7930 LDFLAGS="$save_LDFLAGS" 7931 7932fi 7933{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7934$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7935 7936if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7937 : 7938else 7939 lt_prog_compiler_static= 7940fi 7941 7942 7943 7944 7945 7946 7947 7948 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7949$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7950if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7951 $as_echo_n "(cached) " >&6 7952else 7953 lt_cv_prog_compiler_c_o=no 7954 $RM -r conftest 2>/dev/null 7955 mkdir conftest 7956 cd conftest 7957 mkdir out 7958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7959 7960 lt_compiler_flag="-o out/conftest2.$ac_objext" 7961 # Insert the option either (1) after the last *FLAGS variable, or 7962 # (2) before a word containing "conftest.", or (3) at the end. 7963 # Note that $ac_compile itself does not contain backslashes and begins 7964 # with a dollar sign (not a hyphen), so the echo should work correctly. 7965 lt_compile=`echo "$ac_compile" | $SED \ 7966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7968 -e 's:$: $lt_compiler_flag:'` 7969 (eval echo "\"\$as_me:7969: $lt_compile\"" >&5) 7970 (eval "$lt_compile" 2>out/conftest.err) 7971 ac_status=$? 7972 cat out/conftest.err >&5 7973 echo "$as_me:7973: \$? = $ac_status" >&5 7974 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7975 then 7976 # The compiler can only warn and ignore the option if not recognized 7977 # So say no if there are warnings 7978 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7981 lt_cv_prog_compiler_c_o=yes 7982 fi 7983 fi 7984 chmod u+w . 2>&5 7985 $RM conftest* 7986 # SGI C++ compiler will create directory out/ii_files/ for 7987 # template instantiation 7988 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7989 $RM out/* && rmdir out 7990 cd .. 7991 $RM -r conftest 7992 $RM conftest* 7993 7994fi 7995{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7996$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7997 7998 7999 8000 8001 8002 8003 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8004$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8005if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8006 $as_echo_n "(cached) " >&6 8007else 8008 lt_cv_prog_compiler_c_o=no 8009 $RM -r conftest 2>/dev/null 8010 mkdir conftest 8011 cd conftest 8012 mkdir out 8013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8014 8015 lt_compiler_flag="-o out/conftest2.$ac_objext" 8016 # Insert the option either (1) after the last *FLAGS variable, or 8017 # (2) before a word containing "conftest.", or (3) at the end. 8018 # Note that $ac_compile itself does not contain backslashes and begins 8019 # with a dollar sign (not a hyphen), so the echo should work correctly. 8020 lt_compile=`echo "$ac_compile" | $SED \ 8021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8023 -e 's:$: $lt_compiler_flag:'` 8024 (eval echo "\"\$as_me:8024: $lt_compile\"" >&5) 8025 (eval "$lt_compile" 2>out/conftest.err) 8026 ac_status=$? 8027 cat out/conftest.err >&5 8028 echo "$as_me:8028: \$? = $ac_status" >&5 8029 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8030 then 8031 # The compiler can only warn and ignore the option if not recognized 8032 # So say no if there are warnings 8033 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8036 lt_cv_prog_compiler_c_o=yes 8037 fi 8038 fi 8039 chmod u+w . 2>&5 8040 $RM conftest* 8041 # SGI C++ compiler will create directory out/ii_files/ for 8042 # template instantiation 8043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8044 $RM out/* && rmdir out 8045 cd .. 8046 $RM -r conftest 8047 $RM conftest* 8048 8049fi 8050{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8051$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8052 8053 8054 8055 8056hard_links="nottested" 8057if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8058 # do not overwrite the value of need_locks provided by the user 8059 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8060$as_echo_n "checking if we can lock with hard links... " >&6; } 8061 hard_links=yes 8062 $RM conftest* 8063 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8064 touch conftest.a 8065 ln conftest.a conftest.b 2>&5 || hard_links=no 8066 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8067 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8068$as_echo "$hard_links" >&6; } 8069 if test "$hard_links" = no; then 8070 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8071$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8072 need_locks=warn 8073 fi 8074else 8075 need_locks=no 8076fi 8077 8078 8079 8080 8081 8082 8083 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8084$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8085 8086 runpath_var= 8087 allow_undefined_flag= 8088 always_export_symbols=no 8089 archive_cmds= 8090 archive_expsym_cmds= 8091 compiler_needs_object=no 8092 enable_shared_with_static_runtimes=no 8093 export_dynamic_flag_spec= 8094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8095 hardcode_automatic=no 8096 hardcode_direct=no 8097 hardcode_direct_absolute=no 8098 hardcode_libdir_flag_spec= 8099 hardcode_libdir_flag_spec_ld= 8100 hardcode_libdir_separator= 8101 hardcode_minus_L=no 8102 hardcode_shlibpath_var=unsupported 8103 inherit_rpath=no 8104 link_all_deplibs=unknown 8105 module_cmds= 8106 module_expsym_cmds= 8107 old_archive_from_new_cmds= 8108 old_archive_from_expsyms_cmds= 8109 thread_safe_flag_spec= 8110 whole_archive_flag_spec= 8111 # include_expsyms should be a list of space-separated symbols to be *always* 8112 # included in the symbol list 8113 include_expsyms= 8114 # exclude_expsyms can be an extended regexp of symbols to exclude 8115 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8117 # as well as any symbol that contains `d'. 8118 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8120 # platforms (ab)use it in PIC code, but their linkers get confused if 8121 # the symbol is explicitly referenced. Since portable code cannot 8122 # rely on this symbol name, it's probably fine to never include it in 8123 # preloaded symbol tables. 8124 # Exclude shared library initialization/finalization symbols. 8125 extract_expsyms_cmds= 8126 8127 case $host_os in 8128 cygwin* | mingw* | pw32* | cegcc*) 8129 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8130 # When not using gcc, we currently assume that we are using 8131 # Microsoft Visual C++. 8132 if test "$GCC" != yes; then 8133 with_gnu_ld=no 8134 fi 8135 ;; 8136 interix*) 8137 # we just hope/assume this is gcc and not c89 (= MSVC++) 8138 with_gnu_ld=yes 8139 ;; 8140 openbsd*) 8141 with_gnu_ld=no 8142 ;; 8143 esac 8144 8145 ld_shlibs=yes 8146 if test "$with_gnu_ld" = yes; then 8147 # If archive_cmds runs LD, not CC, wlarc should be empty 8148 wlarc='${wl}' 8149 8150 # Set some defaults for GNU ld with shared library support. These 8151 # are reset later if shared libraries are not supported. Putting them 8152 # here allows them to be overridden if necessary. 8153 runpath_var=LD_RUN_PATH 8154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8155 export_dynamic_flag_spec='${wl}--export-dynamic' 8156 # ancient GNU ld didn't support --whole-archive et. al. 8157 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8158 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8159 else 8160 whole_archive_flag_spec= 8161 fi 8162 supports_anon_versioning=no 8163 case `$LD -v 2>&1` in 8164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8167 *\ 2.11.*) ;; # other 2.11 versions 8168 *) supports_anon_versioning=yes ;; 8169 esac 8170 8171 # See if GNU ld supports shared libraries. 8172 case $host_os in 8173 aix[3-9]*) 8174 # On AIX/PPC, the GNU linker is very broken 8175 if test "$host_cpu" != ia64; then 8176 ld_shlibs=no 8177 cat <<_LT_EOF 1>&2 8178 8179*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8180*** to be unable to reliably create shared libraries on AIX. 8181*** Therefore, libtool is disabling shared libraries support. If you 8182*** really care for shared libraries, you may want to modify your PATH 8183*** so that a non-GNU linker is found, and then restart. 8184 8185_LT_EOF 8186 fi 8187 ;; 8188 8189 amigaos*) 8190 case $host_cpu in 8191 powerpc) 8192 # see comment about AmigaOS4 .so support 8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8194 archive_expsym_cmds='' 8195 ;; 8196 m68k) 8197 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)' 8198 hardcode_libdir_flag_spec='-L$libdir' 8199 hardcode_minus_L=yes 8200 ;; 8201 esac 8202 ;; 8203 8204 beos*) 8205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8206 allow_undefined_flag=unsupported 8207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8208 # support --undefined. This deserves some investigation. FIXME 8209 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8210 else 8211 ld_shlibs=no 8212 fi 8213 ;; 8214 8215 cygwin* | mingw* | pw32* | cegcc*) 8216 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8217 # as there is no search path for DLLs. 8218 hardcode_libdir_flag_spec='-L$libdir' 8219 allow_undefined_flag=unsupported 8220 always_export_symbols=no 8221 enable_shared_with_static_runtimes=yes 8222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8223 8224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8226 # If the export-symbols file already is a .def file (1st line 8227 # is EXPORTS), use it as is; otherwise, prepend... 8228 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8229 cp $export_symbols $output_objdir/$soname.def; 8230 else 8231 echo EXPORTS > $output_objdir/$soname.def; 8232 cat $export_symbols >> $output_objdir/$soname.def; 8233 fi~ 8234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8235 else 8236 ld_shlibs=no 8237 fi 8238 ;; 8239 8240 interix[3-9]*) 8241 hardcode_direct=no 8242 hardcode_shlibpath_var=no 8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8244 export_dynamic_flag_spec='${wl}-E' 8245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8246 # Instead, shared libraries are loaded at an image base (0x10000000 by 8247 # default) and relocated if they conflict, which is a slow very memory 8248 # consuming and fragmenting process. To avoid this, we pick a random, 8249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8250 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8252 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' 8253 ;; 8254 8255 gnu* | linux* | tpf* | k*bsd*-gnu) 8256 tmp_diet=no 8257 if test "$host_os" = linux-dietlibc; then 8258 case $cc_basename in 8259 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8260 esac 8261 fi 8262 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8263 && test "$tmp_diet" = no 8264 then 8265 tmp_addflag= 8266 tmp_sharedflag='-shared' 8267 case $cc_basename,$host_cpu in 8268 pgcc*) # Portland Group C compiler 8269 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' 8270 tmp_addflag=' $pic_flag' 8271 ;; 8272 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8273 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' 8274 tmp_addflag=' $pic_flag -Mnomain' ;; 8275 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8276 tmp_addflag=' -i_dynamic' ;; 8277 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8278 tmp_addflag=' -i_dynamic -nofor_main' ;; 8279 ifc* | ifort*) # Intel Fortran compiler 8280 tmp_addflag=' -nofor_main' ;; 8281 lf95*) # Lahey Fortran 8.1 8282 whole_archive_flag_spec= 8283 tmp_sharedflag='--shared' ;; 8284 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8285 tmp_sharedflag='-qmkshrobj' 8286 tmp_addflag= ;; 8287 esac 8288 case `$CC -V 2>&1 | sed 5q` in 8289 *Sun\ C*) # Sun C 5.9 8290 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8291 compiler_needs_object=yes 8292 tmp_sharedflag='-G' ;; 8293 *Sun\ F*) # Sun Fortran 8.3 8294 tmp_sharedflag='-G' ;; 8295 esac 8296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8297 8298 if test "x$supports_anon_versioning" = xyes; then 8299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8301 echo "local: *; };" >> $output_objdir/$libname.ver~ 8302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8303 fi 8304 8305 case $cc_basename in 8306 xlf*) 8307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8309 hardcode_libdir_flag_spec= 8310 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8311 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8312 if test "x$supports_anon_versioning" = xyes; then 8313 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8315 echo "local: *; };" >> $output_objdir/$libname.ver~ 8316 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8317 fi 8318 ;; 8319 esac 8320 else 8321 ld_shlibs=no 8322 fi 8323 ;; 8324 8325 netbsd*) 8326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8327 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8328 wlarc= 8329 else 8330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8332 fi 8333 ;; 8334 8335 solaris*) 8336 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8337 ld_shlibs=no 8338 cat <<_LT_EOF 1>&2 8339 8340*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8341*** create shared libraries on Solaris systems. Therefore, libtool 8342*** is disabling shared libraries support. We urge you to upgrade GNU 8343*** binutils to release 2.9.1 or newer. Another option is to modify 8344*** your PATH or compiler configuration so that the native linker is 8345*** used, and then restart. 8346 8347_LT_EOF 8348 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8351 else 8352 ld_shlibs=no 8353 fi 8354 ;; 8355 8356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8357 case `$LD -v 2>&1` in 8358 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8359 ld_shlibs=no 8360 cat <<_LT_EOF 1>&2 8361 8362*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8363*** reliably create shared libraries on SCO systems. Therefore, libtool 8364*** is disabling shared libraries support. We urge you to upgrade GNU 8365*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8366*** your PATH or compiler configuration so that the native linker is 8367*** used, and then restart. 8368 8369_LT_EOF 8370 ;; 8371 *) 8372 # For security reasons, it is highly recommended that you always 8373 # use absolute paths for naming shared libraries, and exclude the 8374 # DT_RUNPATH tag from executables and libraries. But doing so 8375 # requires that you compile everything twice, which is a pain. 8376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8380 else 8381 ld_shlibs=no 8382 fi 8383 ;; 8384 esac 8385 ;; 8386 8387 sunos4*) 8388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8389 wlarc= 8390 hardcode_direct=yes 8391 hardcode_shlibpath_var=no 8392 ;; 8393 8394 *) 8395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8398 else 8399 ld_shlibs=no 8400 fi 8401 ;; 8402 esac 8403 8404 if test "$ld_shlibs" = no; then 8405 runpath_var= 8406 hardcode_libdir_flag_spec= 8407 export_dynamic_flag_spec= 8408 whole_archive_flag_spec= 8409 fi 8410 else 8411 # PORTME fill in a description of your system's linker (not GNU ld) 8412 case $host_os in 8413 aix3*) 8414 allow_undefined_flag=unsupported 8415 always_export_symbols=yes 8416 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' 8417 # Note: this linker hardcodes the directories in LIBPATH if there 8418 # are no directories specified by -L. 8419 hardcode_minus_L=yes 8420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8421 # Neither direct hardcoding nor static linking is supported with a 8422 # broken collect2. 8423 hardcode_direct=unsupported 8424 fi 8425 ;; 8426 8427 aix[4-9]*) 8428 if test "$host_cpu" = ia64; then 8429 # On IA64, the linker does run time linking by default, so we don't 8430 # have to do anything special. 8431 aix_use_runtimelinking=no 8432 exp_sym_flag='-Bexport' 8433 no_entry_flag="" 8434 else 8435 # If we're using GNU nm, then we don't want the "-C" option. 8436 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8437 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8438 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' 8439 else 8440 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' 8441 fi 8442 aix_use_runtimelinking=no 8443 8444 # Test if we are trying to use run time linking or normal 8445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8446 # need to do runtime linking. 8447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8448 for ld_flag in $LDFLAGS; do 8449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8450 aix_use_runtimelinking=yes 8451 break 8452 fi 8453 done 8454 ;; 8455 esac 8456 8457 exp_sym_flag='-bexport' 8458 no_entry_flag='-bnoentry' 8459 fi 8460 8461 # When large executables or shared objects are built, AIX ld can 8462 # have problems creating the table of contents. If linking a library 8463 # or program results in "error TOC overflow" add -mminimal-toc to 8464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8466 8467 archive_cmds='' 8468 hardcode_direct=yes 8469 hardcode_direct_absolute=yes 8470 hardcode_libdir_separator=':' 8471 link_all_deplibs=yes 8472 file_list_spec='${wl}-f,' 8473 8474 if test "$GCC" = yes; then 8475 case $host_os in aix4.[012]|aix4.[012].*) 8476 # We only want to do this on AIX 4.2 and lower, the check 8477 # below for broken collect2 doesn't work under 4.3+ 8478 collect2name=`${CC} -print-prog-name=collect2` 8479 if test -f "$collect2name" && 8480 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8481 then 8482 # We have reworked collect2 8483 : 8484 else 8485 # We have old collect2 8486 hardcode_direct=unsupported 8487 # It fails to find uninstalled libraries when the uninstalled 8488 # path is not listed in the libpath. Setting hardcode_minus_L 8489 # to unsupported forces relinking 8490 hardcode_minus_L=yes 8491 hardcode_libdir_flag_spec='-L$libdir' 8492 hardcode_libdir_separator= 8493 fi 8494 ;; 8495 esac 8496 shared_flag='-shared' 8497 if test "$aix_use_runtimelinking" = yes; then 8498 shared_flag="$shared_flag "'${wl}-G' 8499 fi 8500 else 8501 # not using gcc 8502 if test "$host_cpu" = ia64; then 8503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8504 # chokes on -Wl,-G. The following line is correct: 8505 shared_flag='-G' 8506 else 8507 if test "$aix_use_runtimelinking" = yes; then 8508 shared_flag='${wl}-G' 8509 else 8510 shared_flag='${wl}-bM:SRE' 8511 fi 8512 fi 8513 fi 8514 8515 export_dynamic_flag_spec='${wl}-bexpall' 8516 # It seems that -bexpall does not export symbols beginning with 8517 # underscore (_), so it is better to generate a list of symbols to export. 8518 always_export_symbols=yes 8519 if test "$aix_use_runtimelinking" = yes; then 8520 # Warning - without using the other runtime loading flags (-brtl), 8521 # -berok will link without error, but may produce a broken library. 8522 allow_undefined_flag='-berok' 8523 # Determine the default libpath from the value encoded in an 8524 # empty executable. 8525 cat >conftest.$ac_ext <<_ACEOF 8526/* confdefs.h. */ 8527_ACEOF 8528cat confdefs.h >>conftest.$ac_ext 8529cat >>conftest.$ac_ext <<_ACEOF 8530/* end confdefs.h. */ 8531 8532int 8533main () 8534{ 8535 8536 ; 8537 return 0; 8538} 8539_ACEOF 8540rm -f conftest.$ac_objext conftest$ac_exeext 8541if { (ac_try="$ac_link" 8542case "(($ac_try" in 8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8544 *) ac_try_echo=$ac_try;; 8545esac 8546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8547$as_echo "$ac_try_echo") >&5 8548 (eval "$ac_link") 2>conftest.er1 8549 ac_status=$? 8550 grep -v '^ *+' conftest.er1 >conftest.err 8551 rm -f conftest.er1 8552 cat conftest.err >&5 8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); } && { 8555 test -z "$ac_c_werror_flag" || 8556 test ! -s conftest.err 8557 } && test -s conftest$ac_exeext && { 8558 test "$cross_compiling" = yes || 8559 $as_test_x conftest$ac_exeext 8560 }; then 8561 8562lt_aix_libpath_sed=' 8563 /Import File Strings/,/^$/ { 8564 /^0/ { 8565 s/^0 *\(.*\)$/\1/ 8566 p 8567 } 8568 }' 8569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8570# Check for a 64-bit object if we didn't find anything. 8571if test -z "$aix_libpath"; then 8572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8573fi 8574else 8575 $as_echo "$as_me: failed program was:" >&5 8576sed 's/^/| /' conftest.$ac_ext >&5 8577 8578 8579fi 8580 8581rm -rf conftest.dSYM 8582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8583 conftest$ac_exeext conftest.$ac_ext 8584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8585 8586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8587 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8588 else 8589 if test "$host_cpu" = ia64; then 8590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8591 allow_undefined_flag="-z nodefs" 8592 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" 8593 else 8594 # Determine the default libpath from the value encoded in an 8595 # empty executable. 8596 cat >conftest.$ac_ext <<_ACEOF 8597/* confdefs.h. */ 8598_ACEOF 8599cat confdefs.h >>conftest.$ac_ext 8600cat >>conftest.$ac_ext <<_ACEOF 8601/* end confdefs.h. */ 8602 8603int 8604main () 8605{ 8606 8607 ; 8608 return 0; 8609} 8610_ACEOF 8611rm -f conftest.$ac_objext conftest$ac_exeext 8612if { (ac_try="$ac_link" 8613case "(($ac_try" in 8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8615 *) ac_try_echo=$ac_try;; 8616esac 8617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8618$as_echo "$ac_try_echo") >&5 8619 (eval "$ac_link") 2>conftest.er1 8620 ac_status=$? 8621 grep -v '^ *+' conftest.er1 >conftest.err 8622 rm -f conftest.er1 8623 cat conftest.err >&5 8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8625 (exit $ac_status); } && { 8626 test -z "$ac_c_werror_flag" || 8627 test ! -s conftest.err 8628 } && test -s conftest$ac_exeext && { 8629 test "$cross_compiling" = yes || 8630 $as_test_x conftest$ac_exeext 8631 }; then 8632 8633lt_aix_libpath_sed=' 8634 /Import File Strings/,/^$/ { 8635 /^0/ { 8636 s/^0 *\(.*\)$/\1/ 8637 p 8638 } 8639 }' 8640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8641# Check for a 64-bit object if we didn't find anything. 8642if test -z "$aix_libpath"; then 8643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8644fi 8645else 8646 $as_echo "$as_me: failed program was:" >&5 8647sed 's/^/| /' conftest.$ac_ext >&5 8648 8649 8650fi 8651 8652rm -rf conftest.dSYM 8653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8654 conftest$ac_exeext conftest.$ac_ext 8655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8656 8657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8658 # Warning - without using the other run time loading flags, 8659 # -berok will link without error, but may produce a broken library. 8660 no_undefined_flag=' ${wl}-bernotok' 8661 allow_undefined_flag=' ${wl}-berok' 8662 # Exported symbols can be pulled into shared objects from archives 8663 whole_archive_flag_spec='$convenience' 8664 archive_cmds_need_lc=yes 8665 # This is similar to how AIX traditionally builds its shared libraries. 8666 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' 8667 fi 8668 fi 8669 ;; 8670 8671 amigaos*) 8672 case $host_cpu in 8673 powerpc) 8674 # see comment about AmigaOS4 .so support 8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8676 archive_expsym_cmds='' 8677 ;; 8678 m68k) 8679 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)' 8680 hardcode_libdir_flag_spec='-L$libdir' 8681 hardcode_minus_L=yes 8682 ;; 8683 esac 8684 ;; 8685 8686 bsdi[45]*) 8687 export_dynamic_flag_spec=-rdynamic 8688 ;; 8689 8690 cygwin* | mingw* | pw32* | cegcc*) 8691 # When not using gcc, we currently assume that we are using 8692 # Microsoft Visual C++. 8693 # hardcode_libdir_flag_spec is actually meaningless, as there is 8694 # no search path for DLLs. 8695 hardcode_libdir_flag_spec=' ' 8696 allow_undefined_flag=unsupported 8697 # Tell ltmain to make .lib files, not .a files. 8698 libext=lib 8699 # Tell ltmain to make .dll files, not .so files. 8700 shrext_cmds=".dll" 8701 # FIXME: Setting linknames here is a bad hack. 8702 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8703 # The linker will automatically build a .lib file if we build a DLL. 8704 old_archive_from_new_cmds='true' 8705 # FIXME: Should let the user specify the lib program. 8706 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8707 fix_srcfile_path='`cygpath -w "$srcfile"`' 8708 enable_shared_with_static_runtimes=yes 8709 ;; 8710 8711 darwin* | rhapsody*) 8712 8713 8714 archive_cmds_need_lc=no 8715 hardcode_direct=no 8716 hardcode_automatic=yes 8717 hardcode_shlibpath_var=unsupported 8718 whole_archive_flag_spec='' 8719 link_all_deplibs=yes 8720 allow_undefined_flag="$_lt_dar_allow_undefined" 8721 case $cc_basename in 8722 ifort*) _lt_dar_can_shared=yes ;; 8723 *) _lt_dar_can_shared=$GCC ;; 8724 esac 8725 if test "$_lt_dar_can_shared" = "yes"; then 8726 output_verbose_link_cmd=echo 8727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8729 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8730 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8731 8732 else 8733 ld_shlibs=no 8734 fi 8735 8736 ;; 8737 8738 dgux*) 8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8740 hardcode_libdir_flag_spec='-L$libdir' 8741 hardcode_shlibpath_var=no 8742 ;; 8743 8744 freebsd1*) 8745 ld_shlibs=no 8746 ;; 8747 8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8749 # support. Future versions do this automatically, but an explicit c++rt0.o 8750 # does not break anything, and helps significantly (at the cost of a little 8751 # extra space). 8752 freebsd2.2*) 8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8754 hardcode_libdir_flag_spec='-R$libdir' 8755 hardcode_direct=yes 8756 hardcode_shlibpath_var=no 8757 ;; 8758 8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8760 freebsd2*) 8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=yes 8763 hardcode_minus_L=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8768 freebsd* | dragonfly*) 8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8770 hardcode_libdir_flag_spec='-R$libdir' 8771 hardcode_direct=yes 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 hpux9*) 8776 if test "$GCC" = yes; then 8777 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' 8778 else 8779 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' 8780 fi 8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8782 hardcode_libdir_separator=: 8783 hardcode_direct=yes 8784 8785 # hardcode_minus_L: Not really in the search PATH, 8786 # but as the default location of the library. 8787 hardcode_minus_L=yes 8788 export_dynamic_flag_spec='${wl}-E' 8789 ;; 8790 8791 hpux10*) 8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8794 else 8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8796 fi 8797 if test "$with_gnu_ld" = no; then 8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8799 hardcode_libdir_flag_spec_ld='+b $libdir' 8800 hardcode_libdir_separator=: 8801 hardcode_direct=yes 8802 hardcode_direct_absolute=yes 8803 export_dynamic_flag_spec='${wl}-E' 8804 # hardcode_minus_L: Not really in the search PATH, 8805 # but as the default location of the library. 8806 hardcode_minus_L=yes 8807 fi 8808 ;; 8809 8810 hpux11*) 8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8812 case $host_cpu in 8813 hppa*64*) 8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8815 ;; 8816 ia64*) 8817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 *) 8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8821 ;; 8822 esac 8823 else 8824 case $host_cpu in 8825 hppa*64*) 8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 ia64*) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 *) 8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 esac 8835 fi 8836 if test "$with_gnu_ld" = no; then 8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8838 hardcode_libdir_separator=: 8839 8840 case $host_cpu in 8841 hppa*64*|ia64*) 8842 hardcode_direct=no 8843 hardcode_shlibpath_var=no 8844 ;; 8845 *) 8846 hardcode_direct=yes 8847 hardcode_direct_absolute=yes 8848 export_dynamic_flag_spec='${wl}-E' 8849 8850 # hardcode_minus_L: Not really in the search PATH, 8851 # but as the default location of the library. 8852 hardcode_minus_L=yes 8853 ;; 8854 esac 8855 fi 8856 ;; 8857 8858 irix5* | irix6* | nonstopux*) 8859 if test "$GCC" = yes; then 8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8861 # Try to use the -exported_symbol ld option, if it does not 8862 # work, assume that -exports_file does not work either and 8863 # implicitly export all symbols. 8864 save_LDFLAGS="$LDFLAGS" 8865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8866 cat >conftest.$ac_ext <<_ACEOF 8867int foo(void) {} 8868_ACEOF 8869rm -f conftest.$ac_objext conftest$ac_exeext 8870if { (ac_try="$ac_link" 8871case "(($ac_try" in 8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8873 *) ac_try_echo=$ac_try;; 8874esac 8875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8876$as_echo "$ac_try_echo") >&5 8877 (eval "$ac_link") 2>conftest.er1 8878 ac_status=$? 8879 grep -v '^ *+' conftest.er1 >conftest.err 8880 rm -f conftest.er1 8881 cat conftest.err >&5 8882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8883 (exit $ac_status); } && { 8884 test -z "$ac_c_werror_flag" || 8885 test ! -s conftest.err 8886 } && test -s conftest$ac_exeext && { 8887 test "$cross_compiling" = yes || 8888 $as_test_x conftest$ac_exeext 8889 }; then 8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8891 8892else 8893 $as_echo "$as_me: failed program was:" >&5 8894sed 's/^/| /' conftest.$ac_ext >&5 8895 8896 8897fi 8898 8899rm -rf conftest.dSYM 8900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8901 conftest$ac_exeext conftest.$ac_ext 8902 LDFLAGS="$save_LDFLAGS" 8903 else 8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8906 fi 8907 archive_cmds_need_lc='no' 8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8909 hardcode_libdir_separator=: 8910 inherit_rpath=yes 8911 link_all_deplibs=yes 8912 ;; 8913 8914 netbsd*) 8915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8917 else 8918 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8919 fi 8920 hardcode_libdir_flag_spec='-R$libdir' 8921 hardcode_direct=yes 8922 hardcode_shlibpath_var=no 8923 ;; 8924 8925 newsos6) 8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8927 hardcode_direct=yes 8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8929 hardcode_libdir_separator=: 8930 hardcode_shlibpath_var=no 8931 ;; 8932 8933 *nto* | *qnx*) 8934 ;; 8935 8936 openbsd*) 8937 if test -f /usr/libexec/ld.so; then 8938 hardcode_direct=yes 8939 hardcode_shlibpath_var=no 8940 hardcode_direct_absolute=yes 8941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8943 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8945 export_dynamic_flag_spec='${wl}-E' 8946 else 8947 case $host_os in 8948 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8950 hardcode_libdir_flag_spec='-R$libdir' 8951 ;; 8952 *) 8953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8955 ;; 8956 esac 8957 fi 8958 else 8959 ld_shlibs=no 8960 fi 8961 ;; 8962 8963 os2*) 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_minus_L=yes 8966 allow_undefined_flag=unsupported 8967 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' 8968 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8969 ;; 8970 8971 osf3*) 8972 if test "$GCC" = yes; then 8973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8974 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8975 else 8976 allow_undefined_flag=' -expect_unresolved \*' 8977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8978 fi 8979 archive_cmds_need_lc='no' 8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8981 hardcode_libdir_separator=: 8982 ;; 8983 8984 osf4* | osf5*) # as osf3* with the addition of -msym flag 8985 if test "$GCC" = yes; then 8986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8987 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8989 else 8990 allow_undefined_flag=' -expect_unresolved \*' 8991 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8992 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8993 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8994 8995 # Both c and cxx compiler support -rpath directly 8996 hardcode_libdir_flag_spec='-rpath $libdir' 8997 fi 8998 archive_cmds_need_lc='no' 8999 hardcode_libdir_separator=: 9000 ;; 9001 9002 solaris*) 9003 no_undefined_flag=' -z defs' 9004 if test "$GCC" = yes; then 9005 wlarc='${wl}' 9006 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9008 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9009 else 9010 case `$CC -V 2>&1` in 9011 *"Compilers 5.0"*) 9012 wlarc='' 9013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9016 ;; 9017 *) 9018 wlarc='${wl}' 9019 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9021 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9022 ;; 9023 esac 9024 fi 9025 hardcode_libdir_flag_spec='-R$libdir' 9026 hardcode_shlibpath_var=no 9027 case $host_os in 9028 solaris2.[0-5] | solaris2.[0-5].*) ;; 9029 *) 9030 # The compiler driver will combine and reorder linker options, 9031 # but understands `-z linker_flag'. GCC discards it without `$wl', 9032 # but is careful enough not to reorder. 9033 # Supported since Solaris 2.6 (maybe 2.5.1?) 9034 if test "$GCC" = yes; then 9035 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9036 else 9037 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9038 fi 9039 ;; 9040 esac 9041 link_all_deplibs=yes 9042 ;; 9043 9044 sunos4*) 9045 if test "x$host_vendor" = xsequent; then 9046 # Use $CC to link under sequent, because it throws in some extra .o 9047 # files that make .init and .fini sections work. 9048 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9049 else 9050 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9051 fi 9052 hardcode_libdir_flag_spec='-L$libdir' 9053 hardcode_direct=yes 9054 hardcode_minus_L=yes 9055 hardcode_shlibpath_var=no 9056 ;; 9057 9058 sysv4) 9059 case $host_vendor in 9060 sni) 9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9062 hardcode_direct=yes # is this really true??? 9063 ;; 9064 siemens) 9065 ## LD is ld it makes a PLAMLIB 9066 ## CC just makes a GrossModule. 9067 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9068 reload_cmds='$CC -r -o $output$reload_objs' 9069 hardcode_direct=no 9070 ;; 9071 motorola) 9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9073 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9074 ;; 9075 esac 9076 runpath_var='LD_RUN_PATH' 9077 hardcode_shlibpath_var=no 9078 ;; 9079 9080 sysv4.3*) 9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9082 hardcode_shlibpath_var=no 9083 export_dynamic_flag_spec='-Bexport' 9084 ;; 9085 9086 sysv4*MP*) 9087 if test -d /usr/nec; then 9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9089 hardcode_shlibpath_var=no 9090 runpath_var=LD_RUN_PATH 9091 hardcode_runpath_var=yes 9092 ld_shlibs=yes 9093 fi 9094 ;; 9095 9096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9097 no_undefined_flag='${wl}-z,text' 9098 archive_cmds_need_lc=no 9099 hardcode_shlibpath_var=no 9100 runpath_var='LD_RUN_PATH' 9101 9102 if test "$GCC" = yes; then 9103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9105 else 9106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9108 fi 9109 ;; 9110 9111 sysv5* | sco3.2v5* | sco5v6*) 9112 # Note: We can NOT use -z defs as we might desire, because we do not 9113 # link with -lc, and that would cause any symbols used from libc to 9114 # always be unresolved, which means just about no library would 9115 # ever link correctly. If we're not using GNU ld we use -z text 9116 # though, which does catch some bad symbols but isn't as heavy-handed 9117 # as -z defs. 9118 no_undefined_flag='${wl}-z,text' 9119 allow_undefined_flag='${wl}-z,nodefs' 9120 archive_cmds_need_lc=no 9121 hardcode_shlibpath_var=no 9122 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9123 hardcode_libdir_separator=':' 9124 link_all_deplibs=yes 9125 export_dynamic_flag_spec='${wl}-Bexport' 9126 runpath_var='LD_RUN_PATH' 9127 9128 if test "$GCC" = yes; then 9129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9131 else 9132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9134 fi 9135 ;; 9136 9137 uts4*) 9138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9139 hardcode_libdir_flag_spec='-L$libdir' 9140 hardcode_shlibpath_var=no 9141 ;; 9142 9143 *) 9144 ld_shlibs=no 9145 ;; 9146 esac 9147 9148 if test x$host_vendor = xsni; then 9149 case $host in 9150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9151 export_dynamic_flag_spec='${wl}-Blargedynsym' 9152 ;; 9153 esac 9154 fi 9155 fi 9156 9157{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9158$as_echo "$ld_shlibs" >&6; } 9159test "$ld_shlibs" = no && can_build_shared=no 9160 9161with_gnu_ld=$with_gnu_ld 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177# 9178# Do we need to explicitly link libc? 9179# 9180case "x$archive_cmds_need_lc" in 9181x|xyes) 9182 # Assume -lc should be added 9183 archive_cmds_need_lc=yes 9184 9185 if test "$enable_shared" = yes && test "$GCC" = yes; then 9186 case $archive_cmds in 9187 *'~'*) 9188 # FIXME: we may have to deal with multi-command sequences. 9189 ;; 9190 '$CC '*) 9191 # Test whether the compiler implicitly links with -lc since on some 9192 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9193 # to ld, don't add -lc before -lgcc. 9194 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9195$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9196 $RM conftest* 9197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9198 9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9200 (eval $ac_compile) 2>&5 9201 ac_status=$? 9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9203 (exit $ac_status); } 2>conftest.err; then 9204 soname=conftest 9205 lib=conftest 9206 libobjs=conftest.$ac_objext 9207 deplibs= 9208 wl=$lt_prog_compiler_wl 9209 pic_flag=$lt_prog_compiler_pic 9210 compiler_flags=-v 9211 linker_flags=-v 9212 verstring= 9213 output_objdir=. 9214 libname=conftest 9215 lt_save_allow_undefined_flag=$allow_undefined_flag 9216 allow_undefined_flag= 9217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9218 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9219 ac_status=$? 9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9221 (exit $ac_status); } 9222 then 9223 archive_cmds_need_lc=no 9224 else 9225 archive_cmds_need_lc=yes 9226 fi 9227 allow_undefined_flag=$lt_save_allow_undefined_flag 9228 else 9229 cat conftest.err 1>&5 9230 fi 9231 $RM conftest* 9232 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9233$as_echo "$archive_cmds_need_lc" >&6; } 9234 ;; 9235 esac 9236 fi 9237 ;; 9238esac 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9397$as_echo_n "checking dynamic linker characteristics... " >&6; } 9398 9399if test "$GCC" = yes; then 9400 case $host_os in 9401 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9402 *) lt_awk_arg="/^libraries:/" ;; 9403 esac 9404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9405 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9406 # if the path contains ";" then we assume it to be the separator 9407 # otherwise default to the standard path separator (i.e. ":") - it is 9408 # assumed that no part of a normal pathname contains ";" but that should 9409 # okay in the real world where ";" in dirpaths is itself problematic. 9410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9411 else 9412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9413 fi 9414 # Ok, now we have the path, separated by spaces, we can step through it 9415 # and add multilib dir if necessary. 9416 lt_tmp_lt_search_path_spec= 9417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9418 for lt_sys_path in $lt_search_path_spec; do 9419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9421 else 9422 test -d "$lt_sys_path" && \ 9423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9424 fi 9425 done 9426 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9427BEGIN {RS=" "; FS="/|\n";} { 9428 lt_foo=""; 9429 lt_count=0; 9430 for (lt_i = NF; lt_i > 0; lt_i--) { 9431 if ($lt_i != "" && $lt_i != ".") { 9432 if ($lt_i == "..") { 9433 lt_count++; 9434 } else { 9435 if (lt_count == 0) { 9436 lt_foo="/" $lt_i lt_foo; 9437 } else { 9438 lt_count--; 9439 } 9440 } 9441 } 9442 } 9443 if (lt_foo != "") { lt_freq[lt_foo]++; } 9444 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9445}'` 9446 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9447else 9448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9449fi 9450library_names_spec= 9451libname_spec='lib$name' 9452soname_spec= 9453shrext_cmds=".so" 9454postinstall_cmds= 9455postuninstall_cmds= 9456finish_cmds= 9457finish_eval= 9458shlibpath_var= 9459shlibpath_overrides_runpath=unknown 9460version_type=none 9461dynamic_linker="$host_os ld.so" 9462sys_lib_dlsearch_path_spec="/lib /usr/lib" 9463need_lib_prefix=unknown 9464hardcode_into_libs=no 9465 9466# when you set need_version to no, make sure it does not cause -set_version 9467# flags to be left without arguments 9468need_version=unknown 9469 9470case $host_os in 9471aix3*) 9472 version_type=linux 9473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9474 shlibpath_var=LIBPATH 9475 9476 # AIX 3 has no versioning support, so we append a major version to the name. 9477 soname_spec='${libname}${release}${shared_ext}$major' 9478 ;; 9479 9480aix[4-9]*) 9481 version_type=linux 9482 need_lib_prefix=no 9483 need_version=no 9484 hardcode_into_libs=yes 9485 if test "$host_cpu" = ia64; then 9486 # AIX 5 supports IA64 9487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9488 shlibpath_var=LD_LIBRARY_PATH 9489 else 9490 # With GCC up to 2.95.x, collect2 would create an import file 9491 # for dependence libraries. The import file would start with 9492 # the line `#! .'. This would cause the generated library to 9493 # depend on `.', always an invalid library. This was fixed in 9494 # development snapshots of GCC prior to 3.0. 9495 case $host_os in 9496 aix4 | aix4.[01] | aix4.[01].*) 9497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9498 echo ' yes ' 9499 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9500 : 9501 else 9502 can_build_shared=no 9503 fi 9504 ;; 9505 esac 9506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9507 # soname into executable. Probably we can add versioning support to 9508 # collect2, so additional links can be useful in future. 9509 if test "$aix_use_runtimelinking" = yes; then 9510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9511 # instead of lib<name>.a to let people know that these are not 9512 # typical AIX shared libraries. 9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9514 else 9515 # We preserve .a as extension for shared libraries through AIX4.2 9516 # and later when we are not doing run time linking. 9517 library_names_spec='${libname}${release}.a $libname.a' 9518 soname_spec='${libname}${release}${shared_ext}$major' 9519 fi 9520 shlibpath_var=LIBPATH 9521 fi 9522 ;; 9523 9524amigaos*) 9525 case $host_cpu in 9526 powerpc) 9527 # Since July 2007 AmigaOS4 officially supports .so libraries. 9528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9530 ;; 9531 m68k) 9532 library_names_spec='$libname.ixlibrary $libname.a' 9533 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9534 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' 9535 ;; 9536 esac 9537 ;; 9538 9539beos*) 9540 library_names_spec='${libname}${shared_ext}' 9541 dynamic_linker="$host_os ld.so" 9542 shlibpath_var=LIBRARY_PATH 9543 ;; 9544 9545bsdi[45]*) 9546 version_type=linux 9547 need_version=no 9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9549 soname_spec='${libname}${release}${shared_ext}$major' 9550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9551 shlibpath_var=LD_LIBRARY_PATH 9552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9554 # the default ld.so.conf also contains /usr/contrib/lib and 9555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9556 # libtool to hard-code these into programs 9557 ;; 9558 9559cygwin* | mingw* | pw32* | cegcc*) 9560 version_type=windows 9561 shrext_cmds=".dll" 9562 need_version=no 9563 need_lib_prefix=no 9564 9565 case $GCC,$host_os in 9566 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9567 library_names_spec='$libname.dll.a' 9568 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9569 postinstall_cmds='base_file=`basename \${file}`~ 9570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9571 dldir=$destdir/`dirname \$dlpath`~ 9572 test -d \$dldir || mkdir -p \$dldir~ 9573 $install_prog $dir/$dlname \$dldir/$dlname~ 9574 chmod a+x \$dldir/$dlname~ 9575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9577 fi' 9578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9579 dlpath=$dir/\$dldll~ 9580 $RM \$dlpath' 9581 shlibpath_overrides_runpath=yes 9582 9583 case $host_os in 9584 cygwin*) 9585 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9587 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9588 ;; 9589 mingw* | cegcc*) 9590 # MinGW DLLs use traditional 'lib' prefix 9591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9592 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9593 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9594 # It is most probably a Windows format PATH printed by 9595 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9596 # path with ; separators, and with drive letters. We can handle the 9597 # drive letters (cygwin fileutils understands them), so leave them, 9598 # especially as we might pass files found there to a mingw objdump, 9599 # which wouldn't understand a cygwinified path. Ahh. 9600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9601 else 9602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9603 fi 9604 ;; 9605 pw32*) 9606 # pw32 DLLs use 'pw' prefix rather than 'lib' 9607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9608 ;; 9609 esac 9610 ;; 9611 9612 *) 9613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9614 ;; 9615 esac 9616 dynamic_linker='Win32 ld.exe' 9617 # FIXME: first we should search . and the directory the executable is in 9618 shlibpath_var=PATH 9619 ;; 9620 9621darwin* | rhapsody*) 9622 dynamic_linker="$host_os dyld" 9623 version_type=darwin 9624 need_lib_prefix=no 9625 need_version=no 9626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9627 soname_spec='${libname}${release}${major}$shared_ext' 9628 shlibpath_overrides_runpath=yes 9629 shlibpath_var=DYLD_LIBRARY_PATH 9630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9631 9632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9634 ;; 9635 9636dgux*) 9637 version_type=linux 9638 need_lib_prefix=no 9639 need_version=no 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9641 soname_spec='${libname}${release}${shared_ext}$major' 9642 shlibpath_var=LD_LIBRARY_PATH 9643 ;; 9644 9645freebsd1*) 9646 dynamic_linker=no 9647 ;; 9648 9649freebsd* | dragonfly*) 9650 # DragonFly does not have aout. When/if they implement a new 9651 # versioning mechanism, adjust this. 9652 if test -x /usr/bin/objformat; then 9653 objformat=`/usr/bin/objformat` 9654 else 9655 case $host_os in 9656 freebsd[123]*) objformat=aout ;; 9657 *) objformat=elf ;; 9658 esac 9659 fi 9660 version_type=freebsd-$objformat 9661 case $version_type in 9662 freebsd-elf*) 9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9664 need_version=no 9665 need_lib_prefix=no 9666 ;; 9667 freebsd-*) 9668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9669 need_version=yes 9670 ;; 9671 esac 9672 shlibpath_var=LD_LIBRARY_PATH 9673 case $host_os in 9674 freebsd2*) 9675 shlibpath_overrides_runpath=yes 9676 ;; 9677 freebsd3.[01]* | freebsdelf3.[01]*) 9678 shlibpath_overrides_runpath=yes 9679 hardcode_into_libs=yes 9680 ;; 9681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9683 shlibpath_overrides_runpath=no 9684 hardcode_into_libs=yes 9685 ;; 9686 *) # from 4.6 on, and DragonFly 9687 shlibpath_overrides_runpath=yes 9688 hardcode_into_libs=yes 9689 ;; 9690 esac 9691 ;; 9692 9693gnu*) 9694 version_type=linux 9695 need_lib_prefix=no 9696 need_version=no 9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9698 soname_spec='${libname}${release}${shared_ext}$major' 9699 shlibpath_var=LD_LIBRARY_PATH 9700 hardcode_into_libs=yes 9701 ;; 9702 9703hpux9* | hpux10* | hpux11*) 9704 # Give a soname corresponding to the major version so that dld.sl refuses to 9705 # link against other versions. 9706 version_type=sunos 9707 need_lib_prefix=no 9708 need_version=no 9709 case $host_cpu in 9710 ia64*) 9711 shrext_cmds='.so' 9712 hardcode_into_libs=yes 9713 dynamic_linker="$host_os dld.so" 9714 shlibpath_var=LD_LIBRARY_PATH 9715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9717 soname_spec='${libname}${release}${shared_ext}$major' 9718 if test "X$HPUX_IA64_MODE" = X32; then 9719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9720 else 9721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9722 fi 9723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9724 ;; 9725 hppa*64*) 9726 shrext_cmds='.sl' 9727 hardcode_into_libs=yes 9728 dynamic_linker="$host_os dld.sl" 9729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9732 soname_spec='${libname}${release}${shared_ext}$major' 9733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9735 ;; 9736 *) 9737 shrext_cmds='.sl' 9738 dynamic_linker="$host_os dld.sl" 9739 shlibpath_var=SHLIB_PATH 9740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9742 soname_spec='${libname}${release}${shared_ext}$major' 9743 ;; 9744 esac 9745 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9746 postinstall_cmds='chmod 555 $lib' 9747 ;; 9748 9749interix[3-9]*) 9750 version_type=linux 9751 need_lib_prefix=no 9752 need_version=no 9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9754 soname_spec='${libname}${release}${shared_ext}$major' 9755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9756 shlibpath_var=LD_LIBRARY_PATH 9757 shlibpath_overrides_runpath=no 9758 hardcode_into_libs=yes 9759 ;; 9760 9761irix5* | irix6* | nonstopux*) 9762 case $host_os in 9763 nonstopux*) version_type=nonstopux ;; 9764 *) 9765 if test "$lt_cv_prog_gnu_ld" = yes; then 9766 version_type=linux 9767 else 9768 version_type=irix 9769 fi ;; 9770 esac 9771 need_lib_prefix=no 9772 need_version=no 9773 soname_spec='${libname}${release}${shared_ext}$major' 9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9775 case $host_os in 9776 irix5* | nonstopux*) 9777 libsuff= shlibsuff= 9778 ;; 9779 *) 9780 case $LD in # libtool.m4 will add one of these switches to LD 9781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9782 libsuff= shlibsuff= libmagic=32-bit;; 9783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9784 libsuff=32 shlibsuff=N32 libmagic=N32;; 9785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9786 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9787 *) libsuff= shlibsuff= libmagic=never-match;; 9788 esac 9789 ;; 9790 esac 9791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9792 shlibpath_overrides_runpath=no 9793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9795 hardcode_into_libs=yes 9796 ;; 9797 9798# No shared lib support for Linux oldld, aout, or coff. 9799linux*oldld* | linux*aout* | linux*coff*) 9800 dynamic_linker=no 9801 ;; 9802 9803# This must be Linux ELF. 9804linux* | k*bsd*-gnu) 9805 version_type=linux 9806 need_lib_prefix=no 9807 need_version=no 9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9809 soname_spec='${libname}${release}${shared_ext}$major' 9810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9811 shlibpath_var=LD_LIBRARY_PATH 9812 shlibpath_overrides_runpath=no 9813 # Some binutils ld are patched to set DT_RUNPATH 9814 save_LDFLAGS=$LDFLAGS 9815 save_libdir=$libdir 9816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9818 cat >conftest.$ac_ext <<_ACEOF 9819/* confdefs.h. */ 9820_ACEOF 9821cat confdefs.h >>conftest.$ac_ext 9822cat >>conftest.$ac_ext <<_ACEOF 9823/* end confdefs.h. */ 9824 9825int 9826main () 9827{ 9828 9829 ; 9830 return 0; 9831} 9832_ACEOF 9833rm -f conftest.$ac_objext conftest$ac_exeext 9834if { (ac_try="$ac_link" 9835case "(($ac_try" in 9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9837 *) ac_try_echo=$ac_try;; 9838esac 9839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9840$as_echo "$ac_try_echo") >&5 9841 (eval "$ac_link") 2>conftest.er1 9842 ac_status=$? 9843 grep -v '^ *+' conftest.er1 >conftest.err 9844 rm -f conftest.er1 9845 cat conftest.err >&5 9846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9847 (exit $ac_status); } && { 9848 test -z "$ac_c_werror_flag" || 9849 test ! -s conftest.err 9850 } && test -s conftest$ac_exeext && { 9851 test "$cross_compiling" = yes || 9852 $as_test_x conftest$ac_exeext 9853 }; then 9854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9855 shlibpath_overrides_runpath=yes 9856fi 9857 9858else 9859 $as_echo "$as_me: failed program was:" >&5 9860sed 's/^/| /' conftest.$ac_ext >&5 9861 9862 9863fi 9864 9865rm -rf conftest.dSYM 9866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9867 conftest$ac_exeext conftest.$ac_ext 9868 LDFLAGS=$save_LDFLAGS 9869 libdir=$save_libdir 9870 9871 # This implies no fast_install, which is unacceptable. 9872 # Some rework will be needed to allow for fast_install 9873 # before this can be enabled. 9874 hardcode_into_libs=yes 9875 9876 # Append ld.so.conf contents to the search path 9877 if test -f /etc/ld.so.conf; then 9878 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9880 fi 9881 9882 # We used to test for /lib/ld.so.1 and disable shared libraries on 9883 # powerpc, because MkLinux only supported shared libraries with the 9884 # GNU dynamic linker. Since this was broken with cross compilers, 9885 # most powerpc-linux boxes support dynamic linking these days and 9886 # people can always --disable-shared, the test was removed, and we 9887 # assume the GNU/Linux dynamic linker is in use. 9888 dynamic_linker='GNU/Linux ld.so' 9889 ;; 9890 9891netbsd*) 9892 version_type=sunos 9893 need_lib_prefix=no 9894 need_version=no 9895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9898 dynamic_linker='NetBSD (a.out) ld.so' 9899 else 9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9901 soname_spec='${libname}${release}${shared_ext}$major' 9902 dynamic_linker='NetBSD ld.elf_so' 9903 fi 9904 shlibpath_var=LD_LIBRARY_PATH 9905 shlibpath_overrides_runpath=yes 9906 hardcode_into_libs=yes 9907 ;; 9908 9909newsos6) 9910 version_type=linux 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9912 shlibpath_var=LD_LIBRARY_PATH 9913 shlibpath_overrides_runpath=yes 9914 ;; 9915 9916*nto* | *qnx*) 9917 version_type=qnx 9918 need_lib_prefix=no 9919 need_version=no 9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9921 soname_spec='${libname}${release}${shared_ext}$major' 9922 shlibpath_var=LD_LIBRARY_PATH 9923 shlibpath_overrides_runpath=no 9924 hardcode_into_libs=yes 9925 dynamic_linker='ldqnx.so' 9926 ;; 9927 9928openbsd*) 9929 version_type=sunos 9930 sys_lib_dlsearch_path_spec="/usr/lib" 9931 need_lib_prefix=no 9932 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9933 case $host_os in 9934 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9935 *) need_version=no ;; 9936 esac 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9939 shlibpath_var=LD_LIBRARY_PATH 9940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9941 case $host_os in 9942 openbsd2.[89] | openbsd2.[89].*) 9943 shlibpath_overrides_runpath=no 9944 ;; 9945 *) 9946 shlibpath_overrides_runpath=yes 9947 ;; 9948 esac 9949 else 9950 shlibpath_overrides_runpath=yes 9951 fi 9952 ;; 9953 9954os2*) 9955 libname_spec='$name' 9956 shrext_cmds=".dll" 9957 need_lib_prefix=no 9958 library_names_spec='$libname${shared_ext} $libname.a' 9959 dynamic_linker='OS/2 ld.exe' 9960 shlibpath_var=LIBPATH 9961 ;; 9962 9963osf3* | osf4* | osf5*) 9964 version_type=osf 9965 need_lib_prefix=no 9966 need_version=no 9967 soname_spec='${libname}${release}${shared_ext}$major' 9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9969 shlibpath_var=LD_LIBRARY_PATH 9970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9972 ;; 9973 9974rdos*) 9975 dynamic_linker=no 9976 ;; 9977 9978solaris*) 9979 version_type=linux 9980 need_lib_prefix=no 9981 need_version=no 9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9983 soname_spec='${libname}${release}${shared_ext}$major' 9984 shlibpath_var=LD_LIBRARY_PATH 9985 shlibpath_overrides_runpath=yes 9986 hardcode_into_libs=yes 9987 # ldd complains unless libraries are executable 9988 postinstall_cmds='chmod +x $lib' 9989 ;; 9990 9991sunos4*) 9992 version_type=sunos 9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9995 shlibpath_var=LD_LIBRARY_PATH 9996 shlibpath_overrides_runpath=yes 9997 if test "$with_gnu_ld" = yes; then 9998 need_lib_prefix=no 9999 fi 10000 need_version=yes 10001 ;; 10002 10003sysv4 | sysv4.3*) 10004 version_type=linux 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 case $host_vendor in 10009 sni) 10010 shlibpath_overrides_runpath=no 10011 need_lib_prefix=no 10012 runpath_var=LD_RUN_PATH 10013 ;; 10014 siemens) 10015 need_lib_prefix=no 10016 ;; 10017 motorola) 10018 need_lib_prefix=no 10019 need_version=no 10020 shlibpath_overrides_runpath=no 10021 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10022 ;; 10023 esac 10024 ;; 10025 10026sysv4*MP*) 10027 if test -d /usr/nec ;then 10028 version_type=linux 10029 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10030 soname_spec='$libname${shared_ext}.$major' 10031 shlibpath_var=LD_LIBRARY_PATH 10032 fi 10033 ;; 10034 10035sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10036 version_type=freebsd-elf 10037 need_lib_prefix=no 10038 need_version=no 10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10040 soname_spec='${libname}${release}${shared_ext}$major' 10041 shlibpath_var=LD_LIBRARY_PATH 10042 shlibpath_overrides_runpath=yes 10043 hardcode_into_libs=yes 10044 if test "$with_gnu_ld" = yes; then 10045 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10046 else 10047 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10048 case $host_os in 10049 sco3.2v5*) 10050 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10051 ;; 10052 esac 10053 fi 10054 sys_lib_dlsearch_path_spec='/usr/lib' 10055 ;; 10056 10057tpf*) 10058 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10059 version_type=linux 10060 need_lib_prefix=no 10061 need_version=no 10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10063 shlibpath_var=LD_LIBRARY_PATH 10064 shlibpath_overrides_runpath=no 10065 hardcode_into_libs=yes 10066 ;; 10067 10068uts4*) 10069 version_type=linux 10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10071 soname_spec='${libname}${release}${shared_ext}$major' 10072 shlibpath_var=LD_LIBRARY_PATH 10073 ;; 10074 10075*) 10076 dynamic_linker=no 10077 ;; 10078esac 10079{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10080$as_echo "$dynamic_linker" >&6; } 10081test "$dynamic_linker" = no && can_build_shared=no 10082 10083variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10084if test "$GCC" = yes; then 10085 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10086fi 10087 10088if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10089 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10090fi 10091if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10092 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10093fi 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10182$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10183hardcode_action= 10184if test -n "$hardcode_libdir_flag_spec" || 10185 test -n "$runpath_var" || 10186 test "X$hardcode_automatic" = "Xyes" ; then 10187 10188 # We can hardcode non-existent directories. 10189 if test "$hardcode_direct" != no && 10190 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10191 # have to relink, otherwise we might link with an installed library 10192 # when we should be linking with a yet-to-be-installed one 10193 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10194 test "$hardcode_minus_L" != no; then 10195 # Linking always hardcodes the temporary library directory. 10196 hardcode_action=relink 10197 else 10198 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10199 hardcode_action=immediate 10200 fi 10201else 10202 # We cannot hardcode anything, or else we can only hardcode existing 10203 # directories. 10204 hardcode_action=unsupported 10205fi 10206{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10207$as_echo "$hardcode_action" >&6; } 10208 10209if test "$hardcode_action" = relink || 10210 test "$inherit_rpath" = yes; then 10211 # Fast installation is not supported 10212 enable_fast_install=no 10213elif test "$shlibpath_overrides_runpath" = yes || 10214 test "$enable_shared" = no; then 10215 # Fast installation is not necessary 10216 enable_fast_install=needless 10217fi 10218 10219 10220 10221 10222 10223 10224 if test "x$enable_dlopen" != xyes; then 10225 enable_dlopen=unknown 10226 enable_dlopen_self=unknown 10227 enable_dlopen_self_static=unknown 10228else 10229 lt_cv_dlopen=no 10230 lt_cv_dlopen_libs= 10231 10232 case $host_os in 10233 beos*) 10234 lt_cv_dlopen="load_add_on" 10235 lt_cv_dlopen_libs= 10236 lt_cv_dlopen_self=yes 10237 ;; 10238 10239 mingw* | pw32* | cegcc*) 10240 lt_cv_dlopen="LoadLibrary" 10241 lt_cv_dlopen_libs= 10242 ;; 10243 10244 cygwin*) 10245 lt_cv_dlopen="dlopen" 10246 lt_cv_dlopen_libs= 10247 ;; 10248 10249 darwin*) 10250 # if libdl is installed we need to link against it 10251 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10252$as_echo_n "checking for dlopen in -ldl... " >&6; } 10253if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10254 $as_echo_n "(cached) " >&6 10255else 10256 ac_check_lib_save_LIBS=$LIBS 10257LIBS="-ldl $LIBS" 10258cat >conftest.$ac_ext <<_ACEOF 10259/* confdefs.h. */ 10260_ACEOF 10261cat confdefs.h >>conftest.$ac_ext 10262cat >>conftest.$ac_ext <<_ACEOF 10263/* end confdefs.h. */ 10264 10265/* Override any GCC internal prototype to avoid an error. 10266 Use char because int might match the return type of a GCC 10267 builtin and then its argument prototype would still apply. */ 10268#ifdef __cplusplus 10269extern "C" 10270#endif 10271char dlopen (); 10272int 10273main () 10274{ 10275return dlopen (); 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280rm -f conftest.$ac_objext conftest$ac_exeext 10281if { (ac_try="$ac_link" 10282case "(($ac_try" in 10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10284 *) ac_try_echo=$ac_try;; 10285esac 10286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10287$as_echo "$ac_try_echo") >&5 10288 (eval "$ac_link") 2>conftest.er1 10289 ac_status=$? 10290 grep -v '^ *+' conftest.er1 >conftest.err 10291 rm -f conftest.er1 10292 cat conftest.err >&5 10293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); } && { 10295 test -z "$ac_c_werror_flag" || 10296 test ! -s conftest.err 10297 } && test -s conftest$ac_exeext && { 10298 test "$cross_compiling" = yes || 10299 $as_test_x conftest$ac_exeext 10300 }; then 10301 ac_cv_lib_dl_dlopen=yes 10302else 10303 $as_echo "$as_me: failed program was:" >&5 10304sed 's/^/| /' conftest.$ac_ext >&5 10305 10306 ac_cv_lib_dl_dlopen=no 10307fi 10308 10309rm -rf conftest.dSYM 10310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10311 conftest$ac_exeext conftest.$ac_ext 10312LIBS=$ac_check_lib_save_LIBS 10313fi 10314{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10315$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10316if test $ac_cv_lib_dl_dlopen = yes; then 10317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10318else 10319 10320 lt_cv_dlopen="dyld" 10321 lt_cv_dlopen_libs= 10322 lt_cv_dlopen_self=yes 10323 10324fi 10325 10326 ;; 10327 10328 *) 10329 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10330$as_echo_n "checking for shl_load... " >&6; } 10331if test "${ac_cv_func_shl_load+set}" = set; then 10332 $as_echo_n "(cached) " >&6 10333else 10334 cat >conftest.$ac_ext <<_ACEOF 10335/* confdefs.h. */ 10336_ACEOF 10337cat confdefs.h >>conftest.$ac_ext 10338cat >>conftest.$ac_ext <<_ACEOF 10339/* end confdefs.h. */ 10340/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10341 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10342#define shl_load innocuous_shl_load 10343 10344/* System header to define __stub macros and hopefully few prototypes, 10345 which can conflict with char shl_load (); below. 10346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10347 <limits.h> exists even on freestanding compilers. */ 10348 10349#ifdef __STDC__ 10350# include <limits.h> 10351#else 10352# include <assert.h> 10353#endif 10354 10355#undef shl_load 10356 10357/* Override any GCC internal prototype to avoid an error. 10358 Use char because int might match the return type of a GCC 10359 builtin and then its argument prototype would still apply. */ 10360#ifdef __cplusplus 10361extern "C" 10362#endif 10363char shl_load (); 10364/* The GNU C library defines this for functions which it implements 10365 to always fail with ENOSYS. Some functions are actually named 10366 something starting with __ and the normal name is an alias. */ 10367#if defined __stub_shl_load || defined __stub___shl_load 10368choke me 10369#endif 10370 10371int 10372main () 10373{ 10374return shl_load (); 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379rm -f conftest.$ac_objext conftest$ac_exeext 10380if { (ac_try="$ac_link" 10381case "(($ac_try" in 10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10383 *) ac_try_echo=$ac_try;; 10384esac 10385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10386$as_echo "$ac_try_echo") >&5 10387 (eval "$ac_link") 2>conftest.er1 10388 ac_status=$? 10389 grep -v '^ *+' conftest.er1 >conftest.err 10390 rm -f conftest.er1 10391 cat conftest.err >&5 10392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10393 (exit $ac_status); } && { 10394 test -z "$ac_c_werror_flag" || 10395 test ! -s conftest.err 10396 } && test -s conftest$ac_exeext && { 10397 test "$cross_compiling" = yes || 10398 $as_test_x conftest$ac_exeext 10399 }; then 10400 ac_cv_func_shl_load=yes 10401else 10402 $as_echo "$as_me: failed program was:" >&5 10403sed 's/^/| /' conftest.$ac_ext >&5 10404 10405 ac_cv_func_shl_load=no 10406fi 10407 10408rm -rf conftest.dSYM 10409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10410 conftest$ac_exeext conftest.$ac_ext 10411fi 10412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10413$as_echo "$ac_cv_func_shl_load" >&6; } 10414if test $ac_cv_func_shl_load = yes; then 10415 lt_cv_dlopen="shl_load" 10416else 10417 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10418$as_echo_n "checking for shl_load in -ldld... " >&6; } 10419if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10420 $as_echo_n "(cached) " >&6 10421else 10422 ac_check_lib_save_LIBS=$LIBS 10423LIBS="-ldld $LIBS" 10424cat >conftest.$ac_ext <<_ACEOF 10425/* confdefs.h. */ 10426_ACEOF 10427cat confdefs.h >>conftest.$ac_ext 10428cat >>conftest.$ac_ext <<_ACEOF 10429/* end confdefs.h. */ 10430 10431/* Override any GCC internal prototype to avoid an error. 10432 Use char because int might match the return type of a GCC 10433 builtin and then its argument prototype would still apply. */ 10434#ifdef __cplusplus 10435extern "C" 10436#endif 10437char shl_load (); 10438int 10439main () 10440{ 10441return shl_load (); 10442 ; 10443 return 0; 10444} 10445_ACEOF 10446rm -f conftest.$ac_objext conftest$ac_exeext 10447if { (ac_try="$ac_link" 10448case "(($ac_try" in 10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10450 *) ac_try_echo=$ac_try;; 10451esac 10452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10453$as_echo "$ac_try_echo") >&5 10454 (eval "$ac_link") 2>conftest.er1 10455 ac_status=$? 10456 grep -v '^ *+' conftest.er1 >conftest.err 10457 rm -f conftest.er1 10458 cat conftest.err >&5 10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10460 (exit $ac_status); } && { 10461 test -z "$ac_c_werror_flag" || 10462 test ! -s conftest.err 10463 } && test -s conftest$ac_exeext && { 10464 test "$cross_compiling" = yes || 10465 $as_test_x conftest$ac_exeext 10466 }; then 10467 ac_cv_lib_dld_shl_load=yes 10468else 10469 $as_echo "$as_me: failed program was:" >&5 10470sed 's/^/| /' conftest.$ac_ext >&5 10471 10472 ac_cv_lib_dld_shl_load=no 10473fi 10474 10475rm -rf conftest.dSYM 10476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10477 conftest$ac_exeext conftest.$ac_ext 10478LIBS=$ac_check_lib_save_LIBS 10479fi 10480{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10481$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10482if test $ac_cv_lib_dld_shl_load = yes; then 10483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10484else 10485 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10486$as_echo_n "checking for dlopen... " >&6; } 10487if test "${ac_cv_func_dlopen+set}" = set; then 10488 $as_echo_n "(cached) " >&6 10489else 10490 cat >conftest.$ac_ext <<_ACEOF 10491/* confdefs.h. */ 10492_ACEOF 10493cat confdefs.h >>conftest.$ac_ext 10494cat >>conftest.$ac_ext <<_ACEOF 10495/* end confdefs.h. */ 10496/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10497 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10498#define dlopen innocuous_dlopen 10499 10500/* System header to define __stub macros and hopefully few prototypes, 10501 which can conflict with char dlopen (); below. 10502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10503 <limits.h> exists even on freestanding compilers. */ 10504 10505#ifdef __STDC__ 10506# include <limits.h> 10507#else 10508# include <assert.h> 10509#endif 10510 10511#undef dlopen 10512 10513/* Override any GCC internal prototype to avoid an error. 10514 Use char because int might match the return type of a GCC 10515 builtin and then its argument prototype would still apply. */ 10516#ifdef __cplusplus 10517extern "C" 10518#endif 10519char dlopen (); 10520/* The GNU C library defines this for functions which it implements 10521 to always fail with ENOSYS. Some functions are actually named 10522 something starting with __ and the normal name is an alias. */ 10523#if defined __stub_dlopen || defined __stub___dlopen 10524choke me 10525#endif 10526 10527int 10528main () 10529{ 10530return dlopen (); 10531 ; 10532 return 0; 10533} 10534_ACEOF 10535rm -f conftest.$ac_objext conftest$ac_exeext 10536if { (ac_try="$ac_link" 10537case "(($ac_try" in 10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10539 *) ac_try_echo=$ac_try;; 10540esac 10541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10542$as_echo "$ac_try_echo") >&5 10543 (eval "$ac_link") 2>conftest.er1 10544 ac_status=$? 10545 grep -v '^ *+' conftest.er1 >conftest.err 10546 rm -f conftest.er1 10547 cat conftest.err >&5 10548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10549 (exit $ac_status); } && { 10550 test -z "$ac_c_werror_flag" || 10551 test ! -s conftest.err 10552 } && test -s conftest$ac_exeext && { 10553 test "$cross_compiling" = yes || 10554 $as_test_x conftest$ac_exeext 10555 }; then 10556 ac_cv_func_dlopen=yes 10557else 10558 $as_echo "$as_me: failed program was:" >&5 10559sed 's/^/| /' conftest.$ac_ext >&5 10560 10561 ac_cv_func_dlopen=no 10562fi 10563 10564rm -rf conftest.dSYM 10565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10566 conftest$ac_exeext conftest.$ac_ext 10567fi 10568{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10569$as_echo "$ac_cv_func_dlopen" >&6; } 10570if test $ac_cv_func_dlopen = yes; then 10571 lt_cv_dlopen="dlopen" 10572else 10573 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10574$as_echo_n "checking for dlopen in -ldl... " >&6; } 10575if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10576 $as_echo_n "(cached) " >&6 10577else 10578 ac_check_lib_save_LIBS=$LIBS 10579LIBS="-ldl $LIBS" 10580cat >conftest.$ac_ext <<_ACEOF 10581/* confdefs.h. */ 10582_ACEOF 10583cat confdefs.h >>conftest.$ac_ext 10584cat >>conftest.$ac_ext <<_ACEOF 10585/* end confdefs.h. */ 10586 10587/* Override any GCC internal prototype to avoid an error. 10588 Use char because int might match the return type of a GCC 10589 builtin and then its argument prototype would still apply. */ 10590#ifdef __cplusplus 10591extern "C" 10592#endif 10593char dlopen (); 10594int 10595main () 10596{ 10597return dlopen (); 10598 ; 10599 return 0; 10600} 10601_ACEOF 10602rm -f conftest.$ac_objext conftest$ac_exeext 10603if { (ac_try="$ac_link" 10604case "(($ac_try" in 10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10606 *) ac_try_echo=$ac_try;; 10607esac 10608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10609$as_echo "$ac_try_echo") >&5 10610 (eval "$ac_link") 2>conftest.er1 10611 ac_status=$? 10612 grep -v '^ *+' conftest.er1 >conftest.err 10613 rm -f conftest.er1 10614 cat conftest.err >&5 10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10616 (exit $ac_status); } && { 10617 test -z "$ac_c_werror_flag" || 10618 test ! -s conftest.err 10619 } && test -s conftest$ac_exeext && { 10620 test "$cross_compiling" = yes || 10621 $as_test_x conftest$ac_exeext 10622 }; then 10623 ac_cv_lib_dl_dlopen=yes 10624else 10625 $as_echo "$as_me: failed program was:" >&5 10626sed 's/^/| /' conftest.$ac_ext >&5 10627 10628 ac_cv_lib_dl_dlopen=no 10629fi 10630 10631rm -rf conftest.dSYM 10632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10633 conftest$ac_exeext conftest.$ac_ext 10634LIBS=$ac_check_lib_save_LIBS 10635fi 10636{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10637$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10638if test $ac_cv_lib_dl_dlopen = yes; then 10639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10640else 10641 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10642$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10643if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10644 $as_echo_n "(cached) " >&6 10645else 10646 ac_check_lib_save_LIBS=$LIBS 10647LIBS="-lsvld $LIBS" 10648cat >conftest.$ac_ext <<_ACEOF 10649/* confdefs.h. */ 10650_ACEOF 10651cat confdefs.h >>conftest.$ac_ext 10652cat >>conftest.$ac_ext <<_ACEOF 10653/* end confdefs.h. */ 10654 10655/* Override any GCC internal prototype to avoid an error. 10656 Use char because int might match the return type of a GCC 10657 builtin and then its argument prototype would still apply. */ 10658#ifdef __cplusplus 10659extern "C" 10660#endif 10661char dlopen (); 10662int 10663main () 10664{ 10665return dlopen (); 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext conftest$ac_exeext 10671if { (ac_try="$ac_link" 10672case "(($ac_try" in 10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10674 *) ac_try_echo=$ac_try;; 10675esac 10676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10677$as_echo "$ac_try_echo") >&5 10678 (eval "$ac_link") 2>conftest.er1 10679 ac_status=$? 10680 grep -v '^ *+' conftest.er1 >conftest.err 10681 rm -f conftest.er1 10682 cat conftest.err >&5 10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10684 (exit $ac_status); } && { 10685 test -z "$ac_c_werror_flag" || 10686 test ! -s conftest.err 10687 } && test -s conftest$ac_exeext && { 10688 test "$cross_compiling" = yes || 10689 $as_test_x conftest$ac_exeext 10690 }; then 10691 ac_cv_lib_svld_dlopen=yes 10692else 10693 $as_echo "$as_me: failed program was:" >&5 10694sed 's/^/| /' conftest.$ac_ext >&5 10695 10696 ac_cv_lib_svld_dlopen=no 10697fi 10698 10699rm -rf conftest.dSYM 10700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10701 conftest$ac_exeext conftest.$ac_ext 10702LIBS=$ac_check_lib_save_LIBS 10703fi 10704{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10705$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10706if test $ac_cv_lib_svld_dlopen = yes; then 10707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10708else 10709 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10710$as_echo_n "checking for dld_link in -ldld... " >&6; } 10711if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10712 $as_echo_n "(cached) " >&6 10713else 10714 ac_check_lib_save_LIBS=$LIBS 10715LIBS="-ldld $LIBS" 10716cat >conftest.$ac_ext <<_ACEOF 10717/* confdefs.h. */ 10718_ACEOF 10719cat confdefs.h >>conftest.$ac_ext 10720cat >>conftest.$ac_ext <<_ACEOF 10721/* end confdefs.h. */ 10722 10723/* Override any GCC internal prototype to avoid an error. 10724 Use char because int might match the return type of a GCC 10725 builtin and then its argument prototype would still apply. */ 10726#ifdef __cplusplus 10727extern "C" 10728#endif 10729char dld_link (); 10730int 10731main () 10732{ 10733return dld_link (); 10734 ; 10735 return 0; 10736} 10737_ACEOF 10738rm -f conftest.$ac_objext conftest$ac_exeext 10739if { (ac_try="$ac_link" 10740case "(($ac_try" in 10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10742 *) ac_try_echo=$ac_try;; 10743esac 10744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10745$as_echo "$ac_try_echo") >&5 10746 (eval "$ac_link") 2>conftest.er1 10747 ac_status=$? 10748 grep -v '^ *+' conftest.er1 >conftest.err 10749 rm -f conftest.er1 10750 cat conftest.err >&5 10751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10752 (exit $ac_status); } && { 10753 test -z "$ac_c_werror_flag" || 10754 test ! -s conftest.err 10755 } && test -s conftest$ac_exeext && { 10756 test "$cross_compiling" = yes || 10757 $as_test_x conftest$ac_exeext 10758 }; then 10759 ac_cv_lib_dld_dld_link=yes 10760else 10761 $as_echo "$as_me: failed program was:" >&5 10762sed 's/^/| /' conftest.$ac_ext >&5 10763 10764 ac_cv_lib_dld_dld_link=no 10765fi 10766 10767rm -rf conftest.dSYM 10768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10769 conftest$ac_exeext conftest.$ac_ext 10770LIBS=$ac_check_lib_save_LIBS 10771fi 10772{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10773$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10774if test $ac_cv_lib_dld_dld_link = yes; then 10775 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10776fi 10777 10778 10779fi 10780 10781 10782fi 10783 10784 10785fi 10786 10787 10788fi 10789 10790 10791fi 10792 10793 ;; 10794 esac 10795 10796 if test "x$lt_cv_dlopen" != xno; then 10797 enable_dlopen=yes 10798 else 10799 enable_dlopen=no 10800 fi 10801 10802 case $lt_cv_dlopen in 10803 dlopen) 10804 save_CPPFLAGS="$CPPFLAGS" 10805 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10806 10807 save_LDFLAGS="$LDFLAGS" 10808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10809 10810 save_LIBS="$LIBS" 10811 LIBS="$lt_cv_dlopen_libs $LIBS" 10812 10813 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10814$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10815if test "${lt_cv_dlopen_self+set}" = set; then 10816 $as_echo_n "(cached) " >&6 10817else 10818 if test "$cross_compiling" = yes; then : 10819 lt_cv_dlopen_self=cross 10820else 10821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10822 lt_status=$lt_dlunknown 10823 cat > conftest.$ac_ext <<_LT_EOF 10824#line 10824 "configure" 10825#include "confdefs.h" 10826 10827#if HAVE_DLFCN_H 10828#include <dlfcn.h> 10829#endif 10830 10831#include <stdio.h> 10832 10833#ifdef RTLD_GLOBAL 10834# define LT_DLGLOBAL RTLD_GLOBAL 10835#else 10836# ifdef DL_GLOBAL 10837# define LT_DLGLOBAL DL_GLOBAL 10838# else 10839# define LT_DLGLOBAL 0 10840# endif 10841#endif 10842 10843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10844 find out it does not work in some platform. */ 10845#ifndef LT_DLLAZY_OR_NOW 10846# ifdef RTLD_LAZY 10847# define LT_DLLAZY_OR_NOW RTLD_LAZY 10848# else 10849# ifdef DL_LAZY 10850# define LT_DLLAZY_OR_NOW DL_LAZY 10851# else 10852# ifdef RTLD_NOW 10853# define LT_DLLAZY_OR_NOW RTLD_NOW 10854# else 10855# ifdef DL_NOW 10856# define LT_DLLAZY_OR_NOW DL_NOW 10857# else 10858# define LT_DLLAZY_OR_NOW 0 10859# endif 10860# endif 10861# endif 10862# endif 10863#endif 10864 10865void fnord() { int i=42;} 10866int main () 10867{ 10868 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10869 int status = $lt_dlunknown; 10870 10871 if (self) 10872 { 10873 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10874 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10875 /* dlclose (self); */ 10876 } 10877 else 10878 puts (dlerror ()); 10879 10880 return status; 10881} 10882_LT_EOF 10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10884 (eval $ac_link) 2>&5 10885 ac_status=$? 10886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10887 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10888 (./conftest; exit; ) >&5 2>/dev/null 10889 lt_status=$? 10890 case x$lt_status in 10891 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10892 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10893 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10894 esac 10895 else : 10896 # compilation failed 10897 lt_cv_dlopen_self=no 10898 fi 10899fi 10900rm -fr conftest* 10901 10902 10903fi 10904{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10905$as_echo "$lt_cv_dlopen_self" >&6; } 10906 10907 if test "x$lt_cv_dlopen_self" = xyes; then 10908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10909 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10910$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10911if test "${lt_cv_dlopen_self_static+set}" = set; then 10912 $as_echo_n "(cached) " >&6 10913else 10914 if test "$cross_compiling" = yes; then : 10915 lt_cv_dlopen_self_static=cross 10916else 10917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10918 lt_status=$lt_dlunknown 10919 cat > conftest.$ac_ext <<_LT_EOF 10920#line 10920 "configure" 10921#include "confdefs.h" 10922 10923#if HAVE_DLFCN_H 10924#include <dlfcn.h> 10925#endif 10926 10927#include <stdio.h> 10928 10929#ifdef RTLD_GLOBAL 10930# define LT_DLGLOBAL RTLD_GLOBAL 10931#else 10932# ifdef DL_GLOBAL 10933# define LT_DLGLOBAL DL_GLOBAL 10934# else 10935# define LT_DLGLOBAL 0 10936# endif 10937#endif 10938 10939/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10940 find out it does not work in some platform. */ 10941#ifndef LT_DLLAZY_OR_NOW 10942# ifdef RTLD_LAZY 10943# define LT_DLLAZY_OR_NOW RTLD_LAZY 10944# else 10945# ifdef DL_LAZY 10946# define LT_DLLAZY_OR_NOW DL_LAZY 10947# else 10948# ifdef RTLD_NOW 10949# define LT_DLLAZY_OR_NOW RTLD_NOW 10950# else 10951# ifdef DL_NOW 10952# define LT_DLLAZY_OR_NOW DL_NOW 10953# else 10954# define LT_DLLAZY_OR_NOW 0 10955# endif 10956# endif 10957# endif 10958# endif 10959#endif 10960 10961void fnord() { int i=42;} 10962int main () 10963{ 10964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10965 int status = $lt_dlunknown; 10966 10967 if (self) 10968 { 10969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10971 /* dlclose (self); */ 10972 } 10973 else 10974 puts (dlerror ()); 10975 10976 return status; 10977} 10978_LT_EOF 10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10980 (eval $ac_link) 2>&5 10981 ac_status=$? 10982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10984 (./conftest; exit; ) >&5 2>/dev/null 10985 lt_status=$? 10986 case x$lt_status in 10987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10990 esac 10991 else : 10992 # compilation failed 10993 lt_cv_dlopen_self_static=no 10994 fi 10995fi 10996rm -fr conftest* 10997 10998 10999fi 11000{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11001$as_echo "$lt_cv_dlopen_self_static" >&6; } 11002 fi 11003 11004 CPPFLAGS="$save_CPPFLAGS" 11005 LDFLAGS="$save_LDFLAGS" 11006 LIBS="$save_LIBS" 11007 ;; 11008 esac 11009 11010 case $lt_cv_dlopen_self in 11011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11012 *) enable_dlopen_self=unknown ;; 11013 esac 11014 11015 case $lt_cv_dlopen_self_static in 11016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11017 *) enable_dlopen_self_static=unknown ;; 11018 esac 11019fi 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037striplib= 11038old_striplib= 11039{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11040$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11041if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11043 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11044 { $as_echo "$as_me:$LINENO: result: yes" >&5 11045$as_echo "yes" >&6; } 11046else 11047# FIXME - insert some real tests, host_os isn't really good enough 11048 case $host_os in 11049 darwin*) 11050 if test -n "$STRIP" ; then 11051 striplib="$STRIP -x" 11052 old_striplib="$STRIP -S" 11053 { $as_echo "$as_me:$LINENO: result: yes" >&5 11054$as_echo "yes" >&6; } 11055 else 11056 { $as_echo "$as_me:$LINENO: result: no" >&5 11057$as_echo "no" >&6; } 11058 fi 11059 ;; 11060 *) 11061 { $as_echo "$as_me:$LINENO: result: no" >&5 11062$as_echo "no" >&6; } 11063 ;; 11064 esac 11065fi 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 # Report which library types will actually be built 11079 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11080$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11081 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11082$as_echo "$can_build_shared" >&6; } 11083 11084 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11085$as_echo_n "checking whether to build shared libraries... " >&6; } 11086 test "$can_build_shared" = "no" && enable_shared=no 11087 11088 # On AIX, shared libraries and static libraries use the same namespace, and 11089 # are all built from PIC. 11090 case $host_os in 11091 aix3*) 11092 test "$enable_shared" = yes && enable_static=no 11093 if test -n "$RANLIB"; then 11094 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11095 postinstall_cmds='$RANLIB $lib' 11096 fi 11097 ;; 11098 11099 aix[4-9]*) 11100 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11101 test "$enable_shared" = yes && enable_static=no 11102 fi 11103 ;; 11104 esac 11105 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11106$as_echo "$enable_shared" >&6; } 11107 11108 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11109$as_echo_n "checking whether to build static libraries... " >&6; } 11110 # Make sure either enable_shared or enable_static is yes. 11111 test "$enable_shared" = yes || enable_static=yes 11112 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11113$as_echo "$enable_static" >&6; } 11114 11115 11116 11117 11118fi 11119ac_ext=c 11120ac_cpp='$CPP $CPPFLAGS' 11121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11123ac_compiler_gnu=$ac_cv_c_compiler_gnu 11124 11125CC="$lt_save_CC" 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 ac_config_commands="$ac_config_commands libtool" 11140 11141 11142 11143 11144# Only expand once: 11145 11146 11147{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 11148$as_echo_n "checking whether ln -s works... " >&6; } 11149LN_S=$as_ln_s 11150if test "$LN_S" = "ln -s"; then 11151 { $as_echo "$as_me:$LINENO: result: yes" >&5 11152$as_echo "yes" >&6; } 11153else 11154 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 11155$as_echo "no, using $LN_S" >&6; } 11156fi 11157 11158{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11159$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11160set x ${MAKE-make} 11161ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11162if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 11163 $as_echo_n "(cached) " >&6 11164else 11165 cat >conftest.make <<\_ACEOF 11166SHELL = /bin/sh 11167all: 11168 @echo '@@@%%%=$(MAKE)=@@@%%%' 11169_ACEOF 11170# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11171case `${MAKE-make} -f conftest.make 2>/dev/null` in 11172 *@@@%%%=?*=@@@%%%*) 11173 eval ac_cv_prog_make_${ac_make}_set=yes;; 11174 *) 11175 eval ac_cv_prog_make_${ac_make}_set=no;; 11176esac 11177rm -f conftest.make 11178fi 11179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11180 { $as_echo "$as_me:$LINENO: result: yes" >&5 11181$as_echo "yes" >&6; } 11182 SET_MAKE= 11183else 11184 { $as_echo "$as_me:$LINENO: result: no" >&5 11185$as_echo "no" >&6; } 11186 SET_MAKE="MAKE=${MAKE-make}" 11187fi 11188 11189if test -n "$ac_tool_prefix"; then 11190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11191set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11193$as_echo_n "checking for $ac_word... " >&6; } 11194if test "${ac_cv_prog_RANLIB+set}" = set; then 11195 $as_echo_n "(cached) " >&6 11196else 11197 if test -n "$RANLIB"; then 11198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11199else 11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201for as_dir in $PATH 11202do 11203 IFS=$as_save_IFS 11204 test -z "$as_dir" && as_dir=. 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211done 11212done 11213IFS=$as_save_IFS 11214 11215fi 11216fi 11217RANLIB=$ac_cv_prog_RANLIB 11218if test -n "$RANLIB"; then 11219 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 11220$as_echo "$RANLIB" >&6; } 11221else 11222 { $as_echo "$as_me:$LINENO: result: no" >&5 11223$as_echo "no" >&6; } 11224fi 11225 11226 11227fi 11228if test -z "$ac_cv_prog_RANLIB"; then 11229 ac_ct_RANLIB=$RANLIB 11230 # Extract the first word of "ranlib", so it can be a program name with args. 11231set dummy ranlib; ac_word=$2 11232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11233$as_echo_n "checking for $ac_word... " >&6; } 11234if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 11235 $as_echo_n "(cached) " >&6 11236else 11237 if test -n "$ac_ct_RANLIB"; then 11238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11239else 11240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11241for as_dir in $PATH 11242do 11243 IFS=$as_save_IFS 11244 test -z "$as_dir" && as_dir=. 11245 for ac_exec_ext in '' $ac_executable_extensions; do 11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11247 ac_cv_prog_ac_ct_RANLIB="ranlib" 11248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11249 break 2 11250 fi 11251done 11252done 11253IFS=$as_save_IFS 11254 11255fi 11256fi 11257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11258if test -n "$ac_ct_RANLIB"; then 11259 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 11260$as_echo "$ac_ct_RANLIB" >&6; } 11261else 11262 { $as_echo "$as_me:$LINENO: result: no" >&5 11263$as_echo "no" >&6; } 11264fi 11265 11266 if test "x$ac_ct_RANLIB" = x; then 11267 RANLIB=":" 11268 else 11269 case $cross_compiling:$ac_tool_warned in 11270yes:) 11271{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11272whose name does not start with the host triplet. If you think this 11273configuration is useful to you, please write to autoconf@gnu.org." >&5 11274$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11275whose name does not start with the host triplet. If you think this 11276configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11277ac_tool_warned=yes ;; 11278esac 11279 RANLIB=$ac_ct_RANLIB 11280 fi 11281else 11282 RANLIB="$ac_cv_prog_RANLIB" 11283fi 11284 11285 11286# Checks for libraries. 11287 11288{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 11289$as_echo_n "checking for pow in -lm... " >&6; } 11290if test "${ac_cv_lib_m_pow+set}" = set; then 11291 $as_echo_n "(cached) " >&6 11292else 11293 ac_check_lib_save_LIBS=$LIBS 11294LIBS="-lm $LIBS" 11295cat >conftest.$ac_ext <<_ACEOF 11296/* confdefs.h. */ 11297_ACEOF 11298cat confdefs.h >>conftest.$ac_ext 11299cat >>conftest.$ac_ext <<_ACEOF 11300/* end confdefs.h. */ 11301 11302/* Override any GCC internal prototype to avoid an error. 11303 Use char because int might match the return type of a GCC 11304 builtin and then its argument prototype would still apply. */ 11305#ifdef __cplusplus 11306extern "C" 11307#endif 11308char pow (); 11309int 11310main () 11311{ 11312return pow (); 11313 ; 11314 return 0; 11315} 11316_ACEOF 11317rm -f conftest.$ac_objext conftest$ac_exeext 11318if { (ac_try="$ac_link" 11319case "(($ac_try" in 11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11321 *) ac_try_echo=$ac_try;; 11322esac 11323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11324$as_echo "$ac_try_echo") >&5 11325 (eval "$ac_link") 2>conftest.er1 11326 ac_status=$? 11327 grep -v '^ *+' conftest.er1 >conftest.err 11328 rm -f conftest.er1 11329 cat conftest.err >&5 11330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 (exit $ac_status); } && { 11332 test -z "$ac_c_werror_flag" || 11333 test ! -s conftest.err 11334 } && test -s conftest$ac_exeext && { 11335 test "$cross_compiling" = yes || 11336 $as_test_x conftest$ac_exeext 11337 }; then 11338 ac_cv_lib_m_pow=yes 11339else 11340 $as_echo "$as_me: failed program was:" >&5 11341sed 's/^/| /' conftest.$ac_ext >&5 11342 11343 ac_cv_lib_m_pow=no 11344fi 11345 11346rm -rf conftest.dSYM 11347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11348 conftest$ac_exeext conftest.$ac_ext 11349LIBS=$ac_check_lib_save_LIBS 11350fi 11351{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 11352$as_echo "$ac_cv_lib_m_pow" >&6; } 11353if test $ac_cv_lib_m_pow = yes; then 11354 cat >>confdefs.h <<_ACEOF 11355#define HAVE_LIBM 1 11356_ACEOF 11357 11358 LIBS="-lm $LIBS" 11359 11360fi 11361 11362 11363# Check whether --with-readline was given. 11364if test "${with_readline+set}" = set; then 11365 withval=$with_readline; 11366else 11367 with_readline=check 11368fi 11369 11370 11371if test "x$with_readline" != xno; then 11372 { $as_echo "$as_me:$LINENO: checking for main in -lreadline" >&5 11373$as_echo_n "checking for main in -lreadline... " >&6; } 11374if test "${ac_cv_lib_readline_main+set}" = set; then 11375 $as_echo_n "(cached) " >&6 11376else 11377 ac_check_lib_save_LIBS=$LIBS 11378LIBS="-lreadline -lncurses $LIBS" 11379cat >conftest.$ac_ext <<_ACEOF 11380/* confdefs.h. */ 11381_ACEOF 11382cat confdefs.h >>conftest.$ac_ext 11383cat >>conftest.$ac_ext <<_ACEOF 11384/* end confdefs.h. */ 11385 11386 11387int 11388main () 11389{ 11390return main (); 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395rm -f conftest.$ac_objext conftest$ac_exeext 11396if { (ac_try="$ac_link" 11397case "(($ac_try" in 11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11399 *) ac_try_echo=$ac_try;; 11400esac 11401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11402$as_echo "$ac_try_echo") >&5 11403 (eval "$ac_link") 2>conftest.er1 11404 ac_status=$? 11405 grep -v '^ *+' conftest.er1 >conftest.err 11406 rm -f conftest.er1 11407 cat conftest.err >&5 11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); } && { 11410 test -z "$ac_c_werror_flag" || 11411 test ! -s conftest.err 11412 } && test -s conftest$ac_exeext && { 11413 test "$cross_compiling" = yes || 11414 $as_test_x conftest$ac_exeext 11415 }; then 11416 ac_cv_lib_readline_main=yes 11417else 11418 $as_echo "$as_me: failed program was:" >&5 11419sed 's/^/| /' conftest.$ac_ext >&5 11420 11421 ac_cv_lib_readline_main=no 11422fi 11423 11424rm -rf conftest.dSYM 11425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11426 conftest$ac_exeext conftest.$ac_ext 11427LIBS=$ac_check_lib_save_LIBS 11428fi 11429{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 11430$as_echo "$ac_cv_lib_readline_main" >&6; } 11431if test $ac_cv_lib_readline_main = yes; then 11432 READLINE_LIBS="-lreadline -lncurses" 11433 11434 11435cat >>confdefs.h <<\_ACEOF 11436#define HAVE_LIBREADLINE 1 11437_ACEOF 11438 11439else 11440 if test "x$with_readline" != xcheck; then 11441 { { $as_echo "$as_me:$LINENO: error: --with-readline was given, but test for readline failed 11442See \`config.log' for more details." >&5 11443$as_echo "$as_me: error: --with-readline was given, but test for readline failed 11444See \`config.log' for more details." >&2;} 11445 { (exit 1); exit 1; }; } 11446 fi 11447 11448fi 11449 11450fi 11451 11452 11453 11454# Checks for header files. 11455{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 11456$as_echo_n "checking for ANSI C header files... " >&6; } 11457if test "${ac_cv_header_stdc+set}" = set; then 11458 $as_echo_n "(cached) " >&6 11459else 11460 cat >conftest.$ac_ext <<_ACEOF 11461/* confdefs.h. */ 11462_ACEOF 11463cat confdefs.h >>conftest.$ac_ext 11464cat >>conftest.$ac_ext <<_ACEOF 11465/* end confdefs.h. */ 11466#include <stdlib.h> 11467#include <stdarg.h> 11468#include <string.h> 11469#include <float.h> 11470 11471int 11472main () 11473{ 11474 11475 ; 11476 return 0; 11477} 11478_ACEOF 11479rm -f conftest.$ac_objext 11480if { (ac_try="$ac_compile" 11481case "(($ac_try" in 11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11483 *) ac_try_echo=$ac_try;; 11484esac 11485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11486$as_echo "$ac_try_echo") >&5 11487 (eval "$ac_compile") 2>conftest.er1 11488 ac_status=$? 11489 grep -v '^ *+' conftest.er1 >conftest.err 11490 rm -f conftest.er1 11491 cat conftest.err >&5 11492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11493 (exit $ac_status); } && { 11494 test -z "$ac_c_werror_flag" || 11495 test ! -s conftest.err 11496 } && test -s conftest.$ac_objext; then 11497 ac_cv_header_stdc=yes 11498else 11499 $as_echo "$as_me: failed program was:" >&5 11500sed 's/^/| /' conftest.$ac_ext >&5 11501 11502 ac_cv_header_stdc=no 11503fi 11504 11505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11506 11507if test $ac_cv_header_stdc = yes; then 11508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11509 cat >conftest.$ac_ext <<_ACEOF 11510/* confdefs.h. */ 11511_ACEOF 11512cat confdefs.h >>conftest.$ac_ext 11513cat >>conftest.$ac_ext <<_ACEOF 11514/* end confdefs.h. */ 11515#include <string.h> 11516 11517_ACEOF 11518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11519 $EGREP "memchr" >/dev/null 2>&1; then 11520 : 11521else 11522 ac_cv_header_stdc=no 11523fi 11524rm -f conftest* 11525 11526fi 11527 11528if test $ac_cv_header_stdc = yes; then 11529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11530 cat >conftest.$ac_ext <<_ACEOF 11531/* confdefs.h. */ 11532_ACEOF 11533cat confdefs.h >>conftest.$ac_ext 11534cat >>conftest.$ac_ext <<_ACEOF 11535/* end confdefs.h. */ 11536#include <stdlib.h> 11537 11538_ACEOF 11539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11540 $EGREP "free" >/dev/null 2>&1; then 11541 : 11542else 11543 ac_cv_header_stdc=no 11544fi 11545rm -f conftest* 11546 11547fi 11548 11549if test $ac_cv_header_stdc = yes; then 11550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11551 if test "$cross_compiling" = yes; then 11552 : 11553else 11554 cat >conftest.$ac_ext <<_ACEOF 11555/* confdefs.h. */ 11556_ACEOF 11557cat confdefs.h >>conftest.$ac_ext 11558cat >>conftest.$ac_ext <<_ACEOF 11559/* end confdefs.h. */ 11560#include <ctype.h> 11561#include <stdlib.h> 11562#if ((' ' & 0x0FF) == 0x020) 11563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11565#else 11566# define ISLOWER(c) \ 11567 (('a' <= (c) && (c) <= 'i') \ 11568 || ('j' <= (c) && (c) <= 'r') \ 11569 || ('s' <= (c) && (c) <= 'z')) 11570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11571#endif 11572 11573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11574int 11575main () 11576{ 11577 int i; 11578 for (i = 0; i < 256; i++) 11579 if (XOR (islower (i), ISLOWER (i)) 11580 || toupper (i) != TOUPPER (i)) 11581 return 2; 11582 return 0; 11583} 11584_ACEOF 11585rm -f conftest$ac_exeext 11586if { (ac_try="$ac_link" 11587case "(($ac_try" in 11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11589 *) ac_try_echo=$ac_try;; 11590esac 11591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11592$as_echo "$ac_try_echo") >&5 11593 (eval "$ac_link") 2>&5 11594 ac_status=$? 11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11597 { (case "(($ac_try" in 11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11599 *) ac_try_echo=$ac_try;; 11600esac 11601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11602$as_echo "$ac_try_echo") >&5 11603 (eval "$ac_try") 2>&5 11604 ac_status=$? 11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11606 (exit $ac_status); }; }; then 11607 : 11608else 11609 $as_echo "$as_me: program exited with status $ac_status" >&5 11610$as_echo "$as_me: failed program was:" >&5 11611sed 's/^/| /' conftest.$ac_ext >&5 11612 11613( exit $ac_status ) 11614ac_cv_header_stdc=no 11615fi 11616rm -rf conftest.dSYM 11617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11618fi 11619 11620 11621fi 11622fi 11623{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 11624$as_echo "$ac_cv_header_stdc" >&6; } 11625if test $ac_cv_header_stdc = yes; then 11626 11627cat >>confdefs.h <<\_ACEOF 11628#define STDC_HEADERS 1 11629_ACEOF 11630 11631fi 11632 11633 11634 11635 11636 11637for ac_header in arpa/inet.h stdint.h stdlib.h string.h 11638do 11639as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11642$as_echo_n "checking for $ac_header... " >&6; } 11643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11644 $as_echo_n "(cached) " >&6 11645fi 11646ac_res=`eval 'as_val=${'$as_ac_Header'} 11647 $as_echo "$as_val"'` 11648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11649$as_echo "$ac_res" >&6; } 11650else 11651 # Is the header compilable? 11652{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11653$as_echo_n "checking $ac_header usability... " >&6; } 11654cat >conftest.$ac_ext <<_ACEOF 11655/* confdefs.h. */ 11656_ACEOF 11657cat confdefs.h >>conftest.$ac_ext 11658cat >>conftest.$ac_ext <<_ACEOF 11659/* end confdefs.h. */ 11660$ac_includes_default 11661#include <$ac_header> 11662_ACEOF 11663rm -f conftest.$ac_objext 11664if { (ac_try="$ac_compile" 11665case "(($ac_try" in 11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11667 *) ac_try_echo=$ac_try;; 11668esac 11669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11670$as_echo "$ac_try_echo") >&5 11671 (eval "$ac_compile") 2>conftest.er1 11672 ac_status=$? 11673 grep -v '^ *+' conftest.er1 >conftest.err 11674 rm -f conftest.er1 11675 cat conftest.err >&5 11676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11677 (exit $ac_status); } && { 11678 test -z "$ac_c_werror_flag" || 11679 test ! -s conftest.err 11680 } && test -s conftest.$ac_objext; then 11681 ac_header_compiler=yes 11682else 11683 $as_echo "$as_me: failed program was:" >&5 11684sed 's/^/| /' conftest.$ac_ext >&5 11685 11686 ac_header_compiler=no 11687fi 11688 11689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11690{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11691$as_echo "$ac_header_compiler" >&6; } 11692 11693# Is the header present? 11694{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11695$as_echo_n "checking $ac_header presence... " >&6; } 11696cat >conftest.$ac_ext <<_ACEOF 11697/* confdefs.h. */ 11698_ACEOF 11699cat confdefs.h >>conftest.$ac_ext 11700cat >>conftest.$ac_ext <<_ACEOF 11701/* end confdefs.h. */ 11702#include <$ac_header> 11703_ACEOF 11704if { (ac_try="$ac_cpp conftest.$ac_ext" 11705case "(($ac_try" in 11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11707 *) ac_try_echo=$ac_try;; 11708esac 11709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11710$as_echo "$ac_try_echo") >&5 11711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11712 ac_status=$? 11713 grep -v '^ *+' conftest.er1 >conftest.err 11714 rm -f conftest.er1 11715 cat conftest.err >&5 11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11717 (exit $ac_status); } >/dev/null && { 11718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11719 test ! -s conftest.err 11720 }; then 11721 ac_header_preproc=yes 11722else 11723 $as_echo "$as_me: failed program was:" >&5 11724sed 's/^/| /' conftest.$ac_ext >&5 11725 11726 ac_header_preproc=no 11727fi 11728 11729rm -f conftest.err conftest.$ac_ext 11730{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11731$as_echo "$ac_header_preproc" >&6; } 11732 11733# So? What about this header? 11734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11735 yes:no: ) 11736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11737$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11739$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11740 ac_header_preproc=yes 11741 ;; 11742 no:yes:* ) 11743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11744$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11746$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11748$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11750$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11752$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11754$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11755 ( cat <<\_ASBOX 11756## -------------------------------- ## 11757## Report this to trasz@FreeBSD.org ## 11758## -------------------------------- ## 11759_ASBOX 11760 ) | sed "s/^/$as_me: WARNING: /" >&2 11761 ;; 11762esac 11763{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11764$as_echo_n "checking for $ac_header... " >&6; } 11765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11766 $as_echo_n "(cached) " >&6 11767else 11768 eval "$as_ac_Header=\$ac_header_preproc" 11769fi 11770ac_res=`eval 'as_val=${'$as_ac_Header'} 11771 $as_echo "$as_val"'` 11772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11773$as_echo "$ac_res" >&6; } 11774 11775fi 11776if test `eval 'as_val=${'$as_ac_Header'} 11777 $as_echo "$as_val"'` = yes; then 11778 cat >>confdefs.h <<_ACEOF 11779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11780_ACEOF 11781 11782fi 11783 11784done 11785 11786 11787# Checks for typedefs, structures, and compiler characteristics. 11788{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11789$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11790if test "${ac_cv_c_const+set}" = set; then 11791 $as_echo_n "(cached) " >&6 11792else 11793 cat >conftest.$ac_ext <<_ACEOF 11794/* confdefs.h. */ 11795_ACEOF 11796cat confdefs.h >>conftest.$ac_ext 11797cat >>conftest.$ac_ext <<_ACEOF 11798/* end confdefs.h. */ 11799 11800int 11801main () 11802{ 11803/* FIXME: Include the comments suggested by Paul. */ 11804#ifndef __cplusplus 11805 /* Ultrix mips cc rejects this. */ 11806 typedef int charset[2]; 11807 const charset cs; 11808 /* SunOS 4.1.1 cc rejects this. */ 11809 char const *const *pcpcc; 11810 char **ppc; 11811 /* NEC SVR4.0.2 mips cc rejects this. */ 11812 struct point {int x, y;}; 11813 static struct point const zero = {0,0}; 11814 /* AIX XL C 1.02.0.0 rejects this. 11815 It does not let you subtract one const X* pointer from another in 11816 an arm of an if-expression whose if-part is not a constant 11817 expression */ 11818 const char *g = "string"; 11819 pcpcc = &g + (g ? g-g : 0); 11820 /* HPUX 7.0 cc rejects these. */ 11821 ++pcpcc; 11822 ppc = (char**) pcpcc; 11823 pcpcc = (char const *const *) ppc; 11824 { /* SCO 3.2v4 cc rejects this. */ 11825 char *t; 11826 char const *s = 0 ? (char *) 0 : (char const *) 0; 11827 11828 *t++ = 0; 11829 if (s) return 0; 11830 } 11831 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11832 int x[] = {25, 17}; 11833 const int *foo = &x[0]; 11834 ++foo; 11835 } 11836 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11837 typedef const int *iptr; 11838 iptr p = 0; 11839 ++p; 11840 } 11841 { /* AIX XL C 1.02.0.0 rejects this saying 11842 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11843 struct s { int j; const int *ap[3]; }; 11844 struct s *b; b->j = 5; 11845 } 11846 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11847 const int foo = 10; 11848 if (!foo) return 0; 11849 } 11850 return !cs[0] && !zero.x; 11851#endif 11852 11853 ; 11854 return 0; 11855} 11856_ACEOF 11857rm -f conftest.$ac_objext 11858if { (ac_try="$ac_compile" 11859case "(($ac_try" in 11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11861 *) ac_try_echo=$ac_try;; 11862esac 11863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11864$as_echo "$ac_try_echo") >&5 11865 (eval "$ac_compile") 2>conftest.er1 11866 ac_status=$? 11867 grep -v '^ *+' conftest.er1 >conftest.err 11868 rm -f conftest.er1 11869 cat conftest.err >&5 11870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11871 (exit $ac_status); } && { 11872 test -z "$ac_c_werror_flag" || 11873 test ! -s conftest.err 11874 } && test -s conftest.$ac_objext; then 11875 ac_cv_c_const=yes 11876else 11877 $as_echo "$as_me: failed program was:" >&5 11878sed 's/^/| /' conftest.$ac_ext >&5 11879 11880 ac_cv_c_const=no 11881fi 11882 11883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11884fi 11885{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11886$as_echo "$ac_cv_c_const" >&6; } 11887if test $ac_cv_c_const = no; then 11888 11889cat >>confdefs.h <<\_ACEOF 11890#define const /**/ 11891_ACEOF 11892 11893fi 11894 11895 11896 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 11897$as_echo_n "checking for int8_t... " >&6; } 11898if test "${ac_cv_c_int8_t+set}" = set; then 11899 $as_echo_n "(cached) " >&6 11900else 11901 ac_cv_c_int8_t=no 11902 for ac_type in 'int8_t' 'int' 'long int' \ 11903 'long long int' 'short int' 'signed char'; do 11904 cat >conftest.$ac_ext <<_ACEOF 11905/* confdefs.h. */ 11906_ACEOF 11907cat confdefs.h >>conftest.$ac_ext 11908cat >>conftest.$ac_ext <<_ACEOF 11909/* end confdefs.h. */ 11910$ac_includes_default 11911int 11912main () 11913{ 11914static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; 11915test_array [0] = 0 11916 11917 ; 11918 return 0; 11919} 11920_ACEOF 11921rm -f conftest.$ac_objext 11922if { (ac_try="$ac_compile" 11923case "(($ac_try" in 11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11925 *) ac_try_echo=$ac_try;; 11926esac 11927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11928$as_echo "$ac_try_echo") >&5 11929 (eval "$ac_compile") 2>conftest.er1 11930 ac_status=$? 11931 grep -v '^ *+' conftest.er1 >conftest.err 11932 rm -f conftest.er1 11933 cat conftest.err >&5 11934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11935 (exit $ac_status); } && { 11936 test -z "$ac_c_werror_flag" || 11937 test ! -s conftest.err 11938 } && test -s conftest.$ac_objext; then 11939 cat >conftest.$ac_ext <<_ACEOF 11940/* confdefs.h. */ 11941_ACEOF 11942cat confdefs.h >>conftest.$ac_ext 11943cat >>conftest.$ac_ext <<_ACEOF 11944/* end confdefs.h. */ 11945$ac_includes_default 11946int 11947main () 11948{ 11949static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) 11950 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; 11951test_array [0] = 0 11952 11953 ; 11954 return 0; 11955} 11956_ACEOF 11957rm -f conftest.$ac_objext 11958if { (ac_try="$ac_compile" 11959case "(($ac_try" in 11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11961 *) ac_try_echo=$ac_try;; 11962esac 11963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11964$as_echo "$ac_try_echo") >&5 11965 (eval "$ac_compile") 2>conftest.er1 11966 ac_status=$? 11967 grep -v '^ *+' conftest.er1 >conftest.err 11968 rm -f conftest.er1 11969 cat conftest.err >&5 11970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11971 (exit $ac_status); } && { 11972 test -z "$ac_c_werror_flag" || 11973 test ! -s conftest.err 11974 } && test -s conftest.$ac_objext; then 11975 : 11976else 11977 $as_echo "$as_me: failed program was:" >&5 11978sed 's/^/| /' conftest.$ac_ext >&5 11979 11980 case $ac_type in 11981 int8_t) ac_cv_c_int8_t=yes ;; 11982 *) ac_cv_c_int8_t=$ac_type ;; 11983esac 11984 11985fi 11986 11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11988else 11989 $as_echo "$as_me: failed program was:" >&5 11990sed 's/^/| /' conftest.$ac_ext >&5 11991 11992 11993fi 11994 11995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11996 test "$ac_cv_c_int8_t" != no && break 11997 done 11998fi 11999{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 12000$as_echo "$ac_cv_c_int8_t" >&6; } 12001 case $ac_cv_c_int8_t in #( 12002 no|yes) ;; #( 12003 *) 12004 12005cat >>confdefs.h <<_ACEOF 12006#define int8_t $ac_cv_c_int8_t 12007_ACEOF 12008;; 12009 esac 12010 12011 12012 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 12013$as_echo_n "checking for uint16_t... " >&6; } 12014if test "${ac_cv_c_uint16_t+set}" = set; then 12015 $as_echo_n "(cached) " >&6 12016else 12017 ac_cv_c_uint16_t=no 12018 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ 12019 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 12020 cat >conftest.$ac_ext <<_ACEOF 12021/* confdefs.h. */ 12022_ACEOF 12023cat confdefs.h >>conftest.$ac_ext 12024cat >>conftest.$ac_ext <<_ACEOF 12025/* end confdefs.h. */ 12026$ac_includes_default 12027int 12028main () 12029{ 12030static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; 12031test_array [0] = 0 12032 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037rm -f conftest.$ac_objext 12038if { (ac_try="$ac_compile" 12039case "(($ac_try" in 12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12041 *) ac_try_echo=$ac_try;; 12042esac 12043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12044$as_echo "$ac_try_echo") >&5 12045 (eval "$ac_compile") 2>conftest.er1 12046 ac_status=$? 12047 grep -v '^ *+' conftest.er1 >conftest.err 12048 rm -f conftest.er1 12049 cat conftest.err >&5 12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); } && { 12052 test -z "$ac_c_werror_flag" || 12053 test ! -s conftest.err 12054 } && test -s conftest.$ac_objext; then 12055 case $ac_type in 12056 uint16_t) ac_cv_c_uint16_t=yes ;; 12057 *) ac_cv_c_uint16_t=$ac_type ;; 12058esac 12059 12060else 12061 $as_echo "$as_me: failed program was:" >&5 12062sed 's/^/| /' conftest.$ac_ext >&5 12063 12064 12065fi 12066 12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12068 test "$ac_cv_c_uint16_t" != no && break 12069 done 12070fi 12071{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 12072$as_echo "$ac_cv_c_uint16_t" >&6; } 12073 case $ac_cv_c_uint16_t in #( 12074 no|yes) ;; #( 12075 *) 12076 12077 12078cat >>confdefs.h <<_ACEOF 12079#define uint16_t $ac_cv_c_uint16_t 12080_ACEOF 12081;; 12082 esac 12083 12084 12085 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 12086$as_echo_n "checking for uint32_t... " >&6; } 12087if test "${ac_cv_c_uint32_t+set}" = set; then 12088 $as_echo_n "(cached) " >&6 12089else 12090 ac_cv_c_uint32_t=no 12091 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 12092 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 12093 cat >conftest.$ac_ext <<_ACEOF 12094/* confdefs.h. */ 12095_ACEOF 12096cat confdefs.h >>conftest.$ac_ext 12097cat >>conftest.$ac_ext <<_ACEOF 12098/* end confdefs.h. */ 12099$ac_includes_default 12100int 12101main () 12102{ 12103static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 12104test_array [0] = 0 12105 12106 ; 12107 return 0; 12108} 12109_ACEOF 12110rm -f conftest.$ac_objext 12111if { (ac_try="$ac_compile" 12112case "(($ac_try" in 12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12114 *) ac_try_echo=$ac_try;; 12115esac 12116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12117$as_echo "$ac_try_echo") >&5 12118 (eval "$ac_compile") 2>conftest.er1 12119 ac_status=$? 12120 grep -v '^ *+' conftest.er1 >conftest.err 12121 rm -f conftest.er1 12122 cat conftest.err >&5 12123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12124 (exit $ac_status); } && { 12125 test -z "$ac_c_werror_flag" || 12126 test ! -s conftest.err 12127 } && test -s conftest.$ac_objext; then 12128 case $ac_type in 12129 uint32_t) ac_cv_c_uint32_t=yes ;; 12130 *) ac_cv_c_uint32_t=$ac_type ;; 12131esac 12132 12133else 12134 $as_echo "$as_me: failed program was:" >&5 12135sed 's/^/| /' conftest.$ac_ext >&5 12136 12137 12138fi 12139 12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12141 test "$ac_cv_c_uint32_t" != no && break 12142 done 12143fi 12144{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 12145$as_echo "$ac_cv_c_uint32_t" >&6; } 12146 case $ac_cv_c_uint32_t in #( 12147 no|yes) ;; #( 12148 *) 12149 12150cat >>confdefs.h <<\_ACEOF 12151#define _UINT32_T 1 12152_ACEOF 12153 12154 12155cat >>confdefs.h <<_ACEOF 12156#define uint32_t $ac_cv_c_uint32_t 12157_ACEOF 12158;; 12159 esac 12160 12161 12162# Checks for library functions. 12163 12164for ac_header in stdlib.h 12165do 12166as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12169$as_echo_n "checking for $ac_header... " >&6; } 12170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12171 $as_echo_n "(cached) " >&6 12172fi 12173ac_res=`eval 'as_val=${'$as_ac_Header'} 12174 $as_echo "$as_val"'` 12175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12176$as_echo "$ac_res" >&6; } 12177else 12178 # Is the header compilable? 12179{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12180$as_echo_n "checking $ac_header usability... " >&6; } 12181cat >conftest.$ac_ext <<_ACEOF 12182/* confdefs.h. */ 12183_ACEOF 12184cat confdefs.h >>conftest.$ac_ext 12185cat >>conftest.$ac_ext <<_ACEOF 12186/* end confdefs.h. */ 12187$ac_includes_default 12188#include <$ac_header> 12189_ACEOF 12190rm -f conftest.$ac_objext 12191if { (ac_try="$ac_compile" 12192case "(($ac_try" in 12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12194 *) ac_try_echo=$ac_try;; 12195esac 12196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12197$as_echo "$ac_try_echo") >&5 12198 (eval "$ac_compile") 2>conftest.er1 12199 ac_status=$? 12200 grep -v '^ *+' conftest.er1 >conftest.err 12201 rm -f conftest.er1 12202 cat conftest.err >&5 12203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12204 (exit $ac_status); } && { 12205 test -z "$ac_c_werror_flag" || 12206 test ! -s conftest.err 12207 } && test -s conftest.$ac_objext; then 12208 ac_header_compiler=yes 12209else 12210 $as_echo "$as_me: failed program was:" >&5 12211sed 's/^/| /' conftest.$ac_ext >&5 12212 12213 ac_header_compiler=no 12214fi 12215 12216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12217{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12218$as_echo "$ac_header_compiler" >&6; } 12219 12220# Is the header present? 12221{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12222$as_echo_n "checking $ac_header presence... " >&6; } 12223cat >conftest.$ac_ext <<_ACEOF 12224/* confdefs.h. */ 12225_ACEOF 12226cat confdefs.h >>conftest.$ac_ext 12227cat >>conftest.$ac_ext <<_ACEOF 12228/* end confdefs.h. */ 12229#include <$ac_header> 12230_ACEOF 12231if { (ac_try="$ac_cpp conftest.$ac_ext" 12232case "(($ac_try" in 12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12234 *) ac_try_echo=$ac_try;; 12235esac 12236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12237$as_echo "$ac_try_echo") >&5 12238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12239 ac_status=$? 12240 grep -v '^ *+' conftest.er1 >conftest.err 12241 rm -f conftest.er1 12242 cat conftest.err >&5 12243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12244 (exit $ac_status); } >/dev/null && { 12245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12246 test ! -s conftest.err 12247 }; then 12248 ac_header_preproc=yes 12249else 12250 $as_echo "$as_me: failed program was:" >&5 12251sed 's/^/| /' conftest.$ac_ext >&5 12252 12253 ac_header_preproc=no 12254fi 12255 12256rm -f conftest.err conftest.$ac_ext 12257{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12258$as_echo "$ac_header_preproc" >&6; } 12259 12260# So? What about this header? 12261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12262 yes:no: ) 12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12264$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12266$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12267 ac_header_preproc=yes 12268 ;; 12269 no:yes:* ) 12270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12271$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12273$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12275$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12277$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12279$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12281$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12282 ( cat <<\_ASBOX 12283## -------------------------------- ## 12284## Report this to trasz@FreeBSD.org ## 12285## -------------------------------- ## 12286_ASBOX 12287 ) | sed "s/^/$as_me: WARNING: /" >&2 12288 ;; 12289esac 12290{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12291$as_echo_n "checking for $ac_header... " >&6; } 12292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12293 $as_echo_n "(cached) " >&6 12294else 12295 eval "$as_ac_Header=\$ac_header_preproc" 12296fi 12297ac_res=`eval 'as_val=${'$as_ac_Header'} 12298 $as_echo "$as_val"'` 12299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12300$as_echo "$ac_res" >&6; } 12301 12302fi 12303if test `eval 'as_val=${'$as_ac_Header'} 12304 $as_echo "$as_val"'` = yes; then 12305 cat >>confdefs.h <<_ACEOF 12306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12307_ACEOF 12308 12309fi 12310 12311done 12312 12313{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 12314$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12315if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 12316 $as_echo_n "(cached) " >&6 12317else 12318 if test "$cross_compiling" = yes; then 12319 ac_cv_func_malloc_0_nonnull=no 12320else 12321 cat >conftest.$ac_ext <<_ACEOF 12322/* confdefs.h. */ 12323_ACEOF 12324cat confdefs.h >>conftest.$ac_ext 12325cat >>conftest.$ac_ext <<_ACEOF 12326/* end confdefs.h. */ 12327#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12328# include <stdlib.h> 12329#else 12330char *malloc (); 12331#endif 12332 12333int 12334main () 12335{ 12336return ! malloc (0); 12337 ; 12338 return 0; 12339} 12340_ACEOF 12341rm -f conftest$ac_exeext 12342if { (ac_try="$ac_link" 12343case "(($ac_try" in 12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12345 *) ac_try_echo=$ac_try;; 12346esac 12347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12348$as_echo "$ac_try_echo") >&5 12349 (eval "$ac_link") 2>&5 12350 ac_status=$? 12351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12353 { (case "(($ac_try" in 12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12355 *) ac_try_echo=$ac_try;; 12356esac 12357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12358$as_echo "$ac_try_echo") >&5 12359 (eval "$ac_try") 2>&5 12360 ac_status=$? 12361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12362 (exit $ac_status); }; }; then 12363 ac_cv_func_malloc_0_nonnull=yes 12364else 12365 $as_echo "$as_me: program exited with status $ac_status" >&5 12366$as_echo "$as_me: failed program was:" >&5 12367sed 's/^/| /' conftest.$ac_ext >&5 12368 12369( exit $ac_status ) 12370ac_cv_func_malloc_0_nonnull=no 12371fi 12372rm -rf conftest.dSYM 12373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12374fi 12375 12376 12377fi 12378{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 12379$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12380if test $ac_cv_func_malloc_0_nonnull = yes; then 12381 12382cat >>confdefs.h <<\_ACEOF 12383#define HAVE_MALLOC 1 12384_ACEOF 12385 12386else 12387 cat >>confdefs.h <<\_ACEOF 12388#define HAVE_MALLOC 0 12389_ACEOF 12390 12391 case " $LIBOBJS " in 12392 *" malloc.$ac_objext "* ) ;; 12393 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12394 ;; 12395esac 12396 12397 12398cat >>confdefs.h <<\_ACEOF 12399#define malloc rpl_malloc 12400_ACEOF 12401 12402fi 12403 12404 12405 12406{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 12407$as_echo_n "checking for working memcmp... " >&6; } 12408if test "${ac_cv_func_memcmp_working+set}" = set; then 12409 $as_echo_n "(cached) " >&6 12410else 12411 if test "$cross_compiling" = yes; then 12412 ac_cv_func_memcmp_working=no 12413else 12414 cat >conftest.$ac_ext <<_ACEOF 12415/* confdefs.h. */ 12416_ACEOF 12417cat confdefs.h >>conftest.$ac_ext 12418cat >>conftest.$ac_ext <<_ACEOF 12419/* end confdefs.h. */ 12420$ac_includes_default 12421int 12422main () 12423{ 12424 12425 /* Some versions of memcmp are not 8-bit clean. */ 12426 char c0 = '\100', c1 = '\200', c2 = '\201'; 12427 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 12428 return 1; 12429 12430 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 12431 or more and with at least one buffer not starting on a 4-byte boundary. 12432 William Lewis provided this test program. */ 12433 { 12434 char foo[21]; 12435 char bar[21]; 12436 int i; 12437 for (i = 0; i < 4; i++) 12438 { 12439 char *a = foo + i; 12440 char *b = bar + i; 12441 strcpy (a, "--------01111111"); 12442 strcpy (b, "--------10000000"); 12443 if (memcmp (a, b, 16) >= 0) 12444 return 1; 12445 } 12446 return 0; 12447 } 12448 12449 ; 12450 return 0; 12451} 12452_ACEOF 12453rm -f conftest$ac_exeext 12454if { (ac_try="$ac_link" 12455case "(($ac_try" in 12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12457 *) ac_try_echo=$ac_try;; 12458esac 12459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12460$as_echo "$ac_try_echo") >&5 12461 (eval "$ac_link") 2>&5 12462 ac_status=$? 12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12465 { (case "(($ac_try" in 12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12467 *) ac_try_echo=$ac_try;; 12468esac 12469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12470$as_echo "$ac_try_echo") >&5 12471 (eval "$ac_try") 2>&5 12472 ac_status=$? 12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12474 (exit $ac_status); }; }; then 12475 ac_cv_func_memcmp_working=yes 12476else 12477 $as_echo "$as_me: program exited with status $ac_status" >&5 12478$as_echo "$as_me: failed program was:" >&5 12479sed 's/^/| /' conftest.$ac_ext >&5 12480 12481( exit $ac_status ) 12482ac_cv_func_memcmp_working=no 12483fi 12484rm -rf conftest.dSYM 12485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12486fi 12487 12488 12489fi 12490{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 12491$as_echo "$ac_cv_func_memcmp_working" >&6; } 12492test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 12493 *" memcmp.$ac_objext "* ) ;; 12494 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 12495 ;; 12496esac 12497 12498 12499 12500for ac_header in stdlib.h 12501do 12502as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12505$as_echo_n "checking for $ac_header... " >&6; } 12506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12507 $as_echo_n "(cached) " >&6 12508fi 12509ac_res=`eval 'as_val=${'$as_ac_Header'} 12510 $as_echo "$as_val"'` 12511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12512$as_echo "$ac_res" >&6; } 12513else 12514 # Is the header compilable? 12515{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12516$as_echo_n "checking $ac_header usability... " >&6; } 12517cat >conftest.$ac_ext <<_ACEOF 12518/* confdefs.h. */ 12519_ACEOF 12520cat confdefs.h >>conftest.$ac_ext 12521cat >>conftest.$ac_ext <<_ACEOF 12522/* end confdefs.h. */ 12523$ac_includes_default 12524#include <$ac_header> 12525_ACEOF 12526rm -f conftest.$ac_objext 12527if { (ac_try="$ac_compile" 12528case "(($ac_try" in 12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12530 *) ac_try_echo=$ac_try;; 12531esac 12532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12533$as_echo "$ac_try_echo") >&5 12534 (eval "$ac_compile") 2>conftest.er1 12535 ac_status=$? 12536 grep -v '^ *+' conftest.er1 >conftest.err 12537 rm -f conftest.er1 12538 cat conftest.err >&5 12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 (exit $ac_status); } && { 12541 test -z "$ac_c_werror_flag" || 12542 test ! -s conftest.err 12543 } && test -s conftest.$ac_objext; then 12544 ac_header_compiler=yes 12545else 12546 $as_echo "$as_me: failed program was:" >&5 12547sed 's/^/| /' conftest.$ac_ext >&5 12548 12549 ac_header_compiler=no 12550fi 12551 12552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12553{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12554$as_echo "$ac_header_compiler" >&6; } 12555 12556# Is the header present? 12557{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12558$as_echo_n "checking $ac_header presence... " >&6; } 12559cat >conftest.$ac_ext <<_ACEOF 12560/* confdefs.h. */ 12561_ACEOF 12562cat confdefs.h >>conftest.$ac_ext 12563cat >>conftest.$ac_ext <<_ACEOF 12564/* end confdefs.h. */ 12565#include <$ac_header> 12566_ACEOF 12567if { (ac_try="$ac_cpp conftest.$ac_ext" 12568case "(($ac_try" in 12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12570 *) ac_try_echo=$ac_try;; 12571esac 12572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12573$as_echo "$ac_try_echo") >&5 12574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12575 ac_status=$? 12576 grep -v '^ *+' conftest.er1 >conftest.err 12577 rm -f conftest.er1 12578 cat conftest.err >&5 12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } >/dev/null && { 12581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12582 test ! -s conftest.err 12583 }; then 12584 ac_header_preproc=yes 12585else 12586 $as_echo "$as_me: failed program was:" >&5 12587sed 's/^/| /' conftest.$ac_ext >&5 12588 12589 ac_header_preproc=no 12590fi 12591 12592rm -f conftest.err conftest.$ac_ext 12593{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12594$as_echo "$ac_header_preproc" >&6; } 12595 12596# So? What about this header? 12597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12598 yes:no: ) 12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12600$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12602$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12603 ac_header_preproc=yes 12604 ;; 12605 no:yes:* ) 12606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12607$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12609$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12611$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12613$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12615$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12617$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12618 ( cat <<\_ASBOX 12619## -------------------------------- ## 12620## Report this to trasz@FreeBSD.org ## 12621## -------------------------------- ## 12622_ASBOX 12623 ) | sed "s/^/$as_me: WARNING: /" >&2 12624 ;; 12625esac 12626{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12627$as_echo_n "checking for $ac_header... " >&6; } 12628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12629 $as_echo_n "(cached) " >&6 12630else 12631 eval "$as_ac_Header=\$ac_header_preproc" 12632fi 12633ac_res=`eval 'as_val=${'$as_ac_Header'} 12634 $as_echo "$as_val"'` 12635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12636$as_echo "$ac_res" >&6; } 12637 12638fi 12639if test `eval 'as_val=${'$as_ac_Header'} 12640 $as_echo "$as_val"'` = yes; then 12641 cat >>confdefs.h <<_ACEOF 12642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12643_ACEOF 12644 12645fi 12646 12647done 12648 12649{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 12650$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12651if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 12652 $as_echo_n "(cached) " >&6 12653else 12654 if test "$cross_compiling" = yes; then 12655 ac_cv_func_realloc_0_nonnull=no 12656else 12657 cat >conftest.$ac_ext <<_ACEOF 12658/* confdefs.h. */ 12659_ACEOF 12660cat confdefs.h >>conftest.$ac_ext 12661cat >>conftest.$ac_ext <<_ACEOF 12662/* end confdefs.h. */ 12663#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12664# include <stdlib.h> 12665#else 12666char *realloc (); 12667#endif 12668 12669int 12670main () 12671{ 12672return ! realloc (0, 0); 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677rm -f conftest$ac_exeext 12678if { (ac_try="$ac_link" 12679case "(($ac_try" in 12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12681 *) ac_try_echo=$ac_try;; 12682esac 12683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12684$as_echo "$ac_try_echo") >&5 12685 (eval "$ac_link") 2>&5 12686 ac_status=$? 12687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12689 { (case "(($ac_try" in 12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12691 *) ac_try_echo=$ac_try;; 12692esac 12693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12694$as_echo "$ac_try_echo") >&5 12695 (eval "$ac_try") 2>&5 12696 ac_status=$? 12697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12698 (exit $ac_status); }; }; then 12699 ac_cv_func_realloc_0_nonnull=yes 12700else 12701 $as_echo "$as_me: program exited with status $ac_status" >&5 12702$as_echo "$as_me: failed program was:" >&5 12703sed 's/^/| /' conftest.$ac_ext >&5 12704 12705( exit $ac_status ) 12706ac_cv_func_realloc_0_nonnull=no 12707fi 12708rm -rf conftest.dSYM 12709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12710fi 12711 12712 12713fi 12714{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 12715$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12716if test $ac_cv_func_realloc_0_nonnull = yes; then 12717 12718cat >>confdefs.h <<\_ACEOF 12719#define HAVE_REALLOC 1 12720_ACEOF 12721 12722else 12723 cat >>confdefs.h <<\_ACEOF 12724#define HAVE_REALLOC 0 12725_ACEOF 12726 12727 case " $LIBOBJS " in 12728 *" realloc.$ac_objext "* ) ;; 12729 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12730 ;; 12731esac 12732 12733 12734cat >>confdefs.h <<\_ACEOF 12735#define realloc rpl_realloc 12736_ACEOF 12737 12738fi 12739 12740 12741 12742{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5 12743$as_echo_n "checking for working strtod... " >&6; } 12744if test "${ac_cv_func_strtod+set}" = set; then 12745 $as_echo_n "(cached) " >&6 12746else 12747 if test "$cross_compiling" = yes; then 12748 ac_cv_func_strtod=no 12749else 12750 cat >conftest.$ac_ext <<_ACEOF 12751/* confdefs.h. */ 12752_ACEOF 12753cat confdefs.h >>conftest.$ac_ext 12754cat >>conftest.$ac_ext <<_ACEOF 12755/* end confdefs.h. */ 12756 12757$ac_includes_default 12758#ifndef strtod 12759double strtod (); 12760#endif 12761int 12762main() 12763{ 12764 { 12765 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 12766 char *string = " +69"; 12767 char *term; 12768 double value; 12769 value = strtod (string, &term); 12770 if (value != 69 || term != (string + 4)) 12771 return 1; 12772 } 12773 12774 { 12775 /* Under Solaris 2.4, strtod returns the wrong value for the 12776 terminating character under some conditions. */ 12777 char *string = "NaN"; 12778 char *term; 12779 strtod (string, &term); 12780 if (term != string && *(term - 1) == 0) 12781 return 1; 12782 } 12783 return 0; 12784} 12785 12786_ACEOF 12787rm -f conftest$ac_exeext 12788if { (ac_try="$ac_link" 12789case "(($ac_try" in 12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12791 *) ac_try_echo=$ac_try;; 12792esac 12793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12794$as_echo "$ac_try_echo") >&5 12795 (eval "$ac_link") 2>&5 12796 ac_status=$? 12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12799 { (case "(($ac_try" in 12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12801 *) ac_try_echo=$ac_try;; 12802esac 12803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12804$as_echo "$ac_try_echo") >&5 12805 (eval "$ac_try") 2>&5 12806 ac_status=$? 12807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12808 (exit $ac_status); }; }; then 12809 ac_cv_func_strtod=yes 12810else 12811 $as_echo "$as_me: program exited with status $ac_status" >&5 12812$as_echo "$as_me: failed program was:" >&5 12813sed 's/^/| /' conftest.$ac_ext >&5 12814 12815( exit $ac_status ) 12816ac_cv_func_strtod=no 12817fi 12818rm -rf conftest.dSYM 12819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12820fi 12821 12822 12823fi 12824{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 12825$as_echo "$ac_cv_func_strtod" >&6; } 12826if test $ac_cv_func_strtod = no; then 12827 case " $LIBOBJS " in 12828 *" strtod.$ac_objext "* ) ;; 12829 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 12830 ;; 12831esac 12832 12833{ $as_echo "$as_me:$LINENO: checking for pow" >&5 12834$as_echo_n "checking for pow... " >&6; } 12835if test "${ac_cv_func_pow+set}" = set; then 12836 $as_echo_n "(cached) " >&6 12837else 12838 cat >conftest.$ac_ext <<_ACEOF 12839/* confdefs.h. */ 12840_ACEOF 12841cat confdefs.h >>conftest.$ac_ext 12842cat >>conftest.$ac_ext <<_ACEOF 12843/* end confdefs.h. */ 12844/* Define pow to an innocuous variant, in case <limits.h> declares pow. 12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12846#define pow innocuous_pow 12847 12848/* System header to define __stub macros and hopefully few prototypes, 12849 which can conflict with char pow (); below. 12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12851 <limits.h> exists even on freestanding compilers. */ 12852 12853#ifdef __STDC__ 12854# include <limits.h> 12855#else 12856# include <assert.h> 12857#endif 12858 12859#undef pow 12860 12861/* Override any GCC internal prototype to avoid an error. 12862 Use char because int might match the return type of a GCC 12863 builtin and then its argument prototype would still apply. */ 12864#ifdef __cplusplus 12865extern "C" 12866#endif 12867char pow (); 12868/* The GNU C library defines this for functions which it implements 12869 to always fail with ENOSYS. Some functions are actually named 12870 something starting with __ and the normal name is an alias. */ 12871#if defined __stub_pow || defined __stub___pow 12872choke me 12873#endif 12874 12875int 12876main () 12877{ 12878return pow (); 12879 ; 12880 return 0; 12881} 12882_ACEOF 12883rm -f conftest.$ac_objext conftest$ac_exeext 12884if { (ac_try="$ac_link" 12885case "(($ac_try" in 12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12887 *) ac_try_echo=$ac_try;; 12888esac 12889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12890$as_echo "$ac_try_echo") >&5 12891 (eval "$ac_link") 2>conftest.er1 12892 ac_status=$? 12893 grep -v '^ *+' conftest.er1 >conftest.err 12894 rm -f conftest.er1 12895 cat conftest.err >&5 12896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12897 (exit $ac_status); } && { 12898 test -z "$ac_c_werror_flag" || 12899 test ! -s conftest.err 12900 } && test -s conftest$ac_exeext && { 12901 test "$cross_compiling" = yes || 12902 $as_test_x conftest$ac_exeext 12903 }; then 12904 ac_cv_func_pow=yes 12905else 12906 $as_echo "$as_me: failed program was:" >&5 12907sed 's/^/| /' conftest.$ac_ext >&5 12908 12909 ac_cv_func_pow=no 12910fi 12911 12912rm -rf conftest.dSYM 12913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12914 conftest$ac_exeext conftest.$ac_ext 12915fi 12916{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 12917$as_echo "$ac_cv_func_pow" >&6; } 12918 12919if test $ac_cv_func_pow = no; then 12920 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 12921$as_echo_n "checking for pow in -lm... " >&6; } 12922if test "${ac_cv_lib_m_pow+set}" = set; then 12923 $as_echo_n "(cached) " >&6 12924else 12925 ac_check_lib_save_LIBS=$LIBS 12926LIBS="-lm $LIBS" 12927cat >conftest.$ac_ext <<_ACEOF 12928/* confdefs.h. */ 12929_ACEOF 12930cat confdefs.h >>conftest.$ac_ext 12931cat >>conftest.$ac_ext <<_ACEOF 12932/* end confdefs.h. */ 12933 12934/* Override any GCC internal prototype to avoid an error. 12935 Use char because int might match the return type of a GCC 12936 builtin and then its argument prototype would still apply. */ 12937#ifdef __cplusplus 12938extern "C" 12939#endif 12940char pow (); 12941int 12942main () 12943{ 12944return pow (); 12945 ; 12946 return 0; 12947} 12948_ACEOF 12949rm -f conftest.$ac_objext conftest$ac_exeext 12950if { (ac_try="$ac_link" 12951case "(($ac_try" in 12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12953 *) ac_try_echo=$ac_try;; 12954esac 12955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12956$as_echo "$ac_try_echo") >&5 12957 (eval "$ac_link") 2>conftest.er1 12958 ac_status=$? 12959 grep -v '^ *+' conftest.er1 >conftest.err 12960 rm -f conftest.er1 12961 cat conftest.err >&5 12962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12963 (exit $ac_status); } && { 12964 test -z "$ac_c_werror_flag" || 12965 test ! -s conftest.err 12966 } && test -s conftest$ac_exeext && { 12967 test "$cross_compiling" = yes || 12968 $as_test_x conftest$ac_exeext 12969 }; then 12970 ac_cv_lib_m_pow=yes 12971else 12972 $as_echo "$as_me: failed program was:" >&5 12973sed 's/^/| /' conftest.$ac_ext >&5 12974 12975 ac_cv_lib_m_pow=no 12976fi 12977 12978rm -rf conftest.dSYM 12979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12980 conftest$ac_exeext conftest.$ac_ext 12981LIBS=$ac_check_lib_save_LIBS 12982fi 12983{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 12984$as_echo "$ac_cv_lib_m_pow" >&6; } 12985if test $ac_cv_lib_m_pow = yes; then 12986 POW_LIB=-lm 12987else 12988 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 12989$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 12990fi 12991 12992fi 12993 12994fi 12995 12996 12997 12998 12999 13000 13001 13002for ac_func in memset pow strdup strerror strtol strchr 13003do 13004as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13005{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13006$as_echo_n "checking for $ac_func... " >&6; } 13007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat >conftest.$ac_ext <<_ACEOF 13011/* confdefs.h. */ 13012_ACEOF 13013cat confdefs.h >>conftest.$ac_ext 13014cat >>conftest.$ac_ext <<_ACEOF 13015/* end confdefs.h. */ 13016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13017 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13018#define $ac_func innocuous_$ac_func 13019 13020/* System header to define __stub macros and hopefully few prototypes, 13021 which can conflict with char $ac_func (); below. 13022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13023 <limits.h> exists even on freestanding compilers. */ 13024 13025#ifdef __STDC__ 13026# include <limits.h> 13027#else 13028# include <assert.h> 13029#endif 13030 13031#undef $ac_func 13032 13033/* Override any GCC internal prototype to avoid an error. 13034 Use char because int might match the return type of a GCC 13035 builtin and then its argument prototype would still apply. */ 13036#ifdef __cplusplus 13037extern "C" 13038#endif 13039char $ac_func (); 13040/* The GNU C library defines this for functions which it implements 13041 to always fail with ENOSYS. Some functions are actually named 13042 something starting with __ and the normal name is an alias. */ 13043#if defined __stub_$ac_func || defined __stub___$ac_func 13044choke me 13045#endif 13046 13047int 13048main () 13049{ 13050return $ac_func (); 13051 ; 13052 return 0; 13053} 13054_ACEOF 13055rm -f conftest.$ac_objext conftest$ac_exeext 13056if { (ac_try="$ac_link" 13057case "(($ac_try" in 13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13059 *) ac_try_echo=$ac_try;; 13060esac 13061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13062$as_echo "$ac_try_echo") >&5 13063 (eval "$ac_link") 2>conftest.er1 13064 ac_status=$? 13065 grep -v '^ *+' conftest.er1 >conftest.err 13066 rm -f conftest.er1 13067 cat conftest.err >&5 13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13069 (exit $ac_status); } && { 13070 test -z "$ac_c_werror_flag" || 13071 test ! -s conftest.err 13072 } && test -s conftest$ac_exeext && { 13073 test "$cross_compiling" = yes || 13074 $as_test_x conftest$ac_exeext 13075 }; then 13076 eval "$as_ac_var=yes" 13077else 13078 $as_echo "$as_me: failed program was:" >&5 13079sed 's/^/| /' conftest.$ac_ext >&5 13080 13081 eval "$as_ac_var=no" 13082fi 13083 13084rm -rf conftest.dSYM 13085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13086 conftest$ac_exeext conftest.$ac_ext 13087fi 13088ac_res=`eval 'as_val=${'$as_ac_var'} 13089 $as_echo "$as_val"'` 13090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13091$as_echo "$ac_res" >&6; } 13092if test `eval 'as_val=${'$as_ac_var'} 13093 $as_echo "$as_val"'` = yes; then 13094 cat >>confdefs.h <<_ACEOF 13095#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13096_ACEOF 13097 13098fi 13099done 13100 13101 13102 13103 13104if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13105 if test -n "$ac_tool_prefix"; then 13106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13107set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13108{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13109$as_echo_n "checking for $ac_word... " >&6; } 13110if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 13111 $as_echo_n "(cached) " >&6 13112else 13113 case $PKG_CONFIG in 13114 [\\/]* | ?:[\\/]*) 13115 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13116 ;; 13117 *) 13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13119for as_dir in $PATH 13120do 13121 IFS=$as_save_IFS 13122 test -z "$as_dir" && as_dir=. 13123 for ac_exec_ext in '' $ac_executable_extensions; do 13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13125 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13127 break 2 13128 fi 13129done 13130done 13131IFS=$as_save_IFS 13132 13133 ;; 13134esac 13135fi 13136PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13137if test -n "$PKG_CONFIG"; then 13138 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 13139$as_echo "$PKG_CONFIG" >&6; } 13140else 13141 { $as_echo "$as_me:$LINENO: result: no" >&5 13142$as_echo "no" >&6; } 13143fi 13144 13145 13146fi 13147if test -z "$ac_cv_path_PKG_CONFIG"; then 13148 ac_pt_PKG_CONFIG=$PKG_CONFIG 13149 # Extract the first word of "pkg-config", so it can be a program name with args. 13150set dummy pkg-config; ac_word=$2 13151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13152$as_echo_n "checking for $ac_word... " >&6; } 13153if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 13154 $as_echo_n "(cached) " >&6 13155else 13156 case $ac_pt_PKG_CONFIG in 13157 [\\/]* | ?:[\\/]*) 13158 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13159 ;; 13160 *) 13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13162for as_dir in $PATH 13163do 13164 IFS=$as_save_IFS 13165 test -z "$as_dir" && as_dir=. 13166 for ac_exec_ext in '' $ac_executable_extensions; do 13167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13168 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13170 break 2 13171 fi 13172done 13173done 13174IFS=$as_save_IFS 13175 13176 ;; 13177esac 13178fi 13179ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13180if test -n "$ac_pt_PKG_CONFIG"; then 13181 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 13182$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13183else 13184 { $as_echo "$as_me:$LINENO: result: no" >&5 13185$as_echo "no" >&6; } 13186fi 13187 13188 if test "x$ac_pt_PKG_CONFIG" = x; then 13189 PKG_CONFIG="" 13190 else 13191 case $cross_compiling:$ac_tool_warned in 13192yes:) 13193{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 13194whose name does not start with the host triplet. If you think this 13195configuration is useful to you, please write to autoconf@gnu.org." >&5 13196$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 13197whose name does not start with the host triplet. If you think this 13198configuration is useful to you, please write to autoconf@gnu.org." >&2;} 13199ac_tool_warned=yes ;; 13200esac 13201 PKG_CONFIG=$ac_pt_PKG_CONFIG 13202 fi 13203else 13204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13205fi 13206 13207fi 13208if test -n "$PKG_CONFIG"; then 13209 _pkg_min_version=0.9.0 13210 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 13211$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13213 { $as_echo "$as_me:$LINENO: result: yes" >&5 13214$as_echo "yes" >&6; } 13215 else 13216 { $as_echo "$as_me:$LINENO: result: no" >&5 13217$as_echo "no" >&6; } 13218 PKG_CONFIG="" 13219 fi 13220 13221fi 13222 13223pkg_failed=no 13224{ $as_echo "$as_me:$LINENO: checking for GLIB" >&5 13225$as_echo_n "checking for GLIB... " >&6; } 13226 13227if test -n "$GLIB_CFLAGS"; then 13228 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 13229 elif test -n "$PKG_CONFIG"; then 13230 if test -n "$PKG_CONFIG" && \ 13231 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2\"") >&5 13232 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2") 2>&5 13233 ac_status=$? 13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 (exit $ac_status); }; then 13236 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2" 2>/dev/null` 13237else 13238 pkg_failed=yes 13239fi 13240 else 13241 pkg_failed=untried 13242fi 13243if test -n "$GLIB_LIBS"; then 13244 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 13245 elif test -n "$PKG_CONFIG"; then 13246 if test -n "$PKG_CONFIG" && \ 13247 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2\"") >&5 13248 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2") 2>&5 13249 ac_status=$? 13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13251 (exit $ac_status); }; then 13252 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2" 2>/dev/null` 13253else 13254 pkg_failed=yes 13255fi 13256 else 13257 pkg_failed=untried 13258fi 13259 13260 13261 13262if test $pkg_failed = yes; then 13263 13264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13265 _pkg_short_errors_supported=yes 13266else 13267 _pkg_short_errors_supported=no 13268fi 13269 if test $_pkg_short_errors_supported = yes; then 13270 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.2" 2>&1` 13271 else 13272 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.2" 2>&1` 13273 fi 13274 # Put the nasty error message in config.log where it belongs 13275 echo "$GLIB_PKG_ERRORS" >&5 13276 13277 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2) were not met: 13278 13279$GLIB_PKG_ERRORS 13280 13281Consider adjusting the PKG_CONFIG_PATH environment variable if you 13282installed software in a non-standard prefix. 13283 13284Alternatively, you may set the environment variables GLIB_CFLAGS 13285and GLIB_LIBS to avoid the need to call pkg-config. 13286See the pkg-config man page for more details. 13287" >&5 13288$as_echo "$as_me: error: Package requirements (glib-2.0 >= 2.2) were not met: 13289 13290$GLIB_PKG_ERRORS 13291 13292Consider adjusting the PKG_CONFIG_PATH environment variable if you 13293installed software in a non-standard prefix. 13294 13295Alternatively, you may set the environment variables GLIB_CFLAGS 13296and GLIB_LIBS to avoid the need to call pkg-config. 13297See the pkg-config man page for more details. 13298" >&2;} 13299 { (exit 1); exit 1; }; } 13300elif test $pkg_failed = untried; then 13301 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13302is in your PATH or set the PKG_CONFIG environment variable to the full 13303path to pkg-config. 13304 13305Alternatively, you may set the environment variables GLIB_CFLAGS 13306and GLIB_LIBS to avoid the need to call pkg-config. 13307See the pkg-config man page for more details. 13308 13309To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13310See \`config.log' for more details." >&5 13311$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13312is in your PATH or set the PKG_CONFIG environment variable to the full 13313path to pkg-config. 13314 13315Alternatively, you may set the environment variables GLIB_CFLAGS 13316and GLIB_LIBS to avoid the need to call pkg-config. 13317See the pkg-config man page for more details. 13318 13319To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13320See \`config.log' for more details." >&2;} 13321 { (exit 1); exit 1; }; } 13322else 13323 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 13324 GLIB_LIBS=$pkg_cv_GLIB_LIBS 13325 { $as_echo "$as_me:$LINENO: result: yes" >&5 13326$as_echo "yes" >&6; } 13327 : 13328fi 13329 13330 13331 13332ac_config_files="$ac_config_files Makefile smf.pc src/Makefile man/Makefile" 13333 13334cat >confcache <<\_ACEOF 13335# This file is a shell script that caches the results of configure 13336# tests run on this system so they can be shared between configure 13337# scripts and configure runs, see configure's option --config-cache. 13338# It is not useful on other systems. If it contains results you don't 13339# want to keep, you may remove or edit it. 13340# 13341# config.status only pays attention to the cache file if you give it 13342# the --recheck option to rerun configure. 13343# 13344# `ac_cv_env_foo' variables (set or unset) will be overridden when 13345# loading this file, other *unset* `ac_cv_foo' will be assigned the 13346# following values. 13347 13348_ACEOF 13349 13350# The following way of writing the cache mishandles newlines in values, 13351# but we know of no workaround that is simple, portable, and efficient. 13352# So, we kill variables containing newlines. 13353# Ultrix sh set writes to stderr and can't be redirected directly, 13354# and sets the high bit in the cache file unless we assign to the vars. 13355( 13356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13357 eval ac_val=\$$ac_var 13358 case $ac_val in #( 13359 *${as_nl}*) 13360 case $ac_var in #( 13361 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13362$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13363 esac 13364 case $ac_var in #( 13365 _ | IFS | as_nl) ;; #( 13366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13367 *) $as_unset $ac_var ;; 13368 esac ;; 13369 esac 13370 done 13371 13372 (set) 2>&1 | 13373 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13374 *${as_nl}ac_space=\ *) 13375 # `set' does not quote correctly, so add quotes (double-quote 13376 # substitution turns \\\\ into \\, and sed turns \\ into \). 13377 sed -n \ 13378 "s/'/'\\\\''/g; 13379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13380 ;; #( 13381 *) 13382 # `set' quotes correctly as required by POSIX, so do not add quotes. 13383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13384 ;; 13385 esac | 13386 sort 13387) | 13388 sed ' 13389 /^ac_cv_env_/b end 13390 t clear 13391 :clear 13392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13393 t end 13394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13395 :end' >>confcache 13396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13397 if test -w "$cache_file"; then 13398 test "x$cache_file" != "x/dev/null" && 13399 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13400$as_echo "$as_me: updating cache $cache_file" >&6;} 13401 cat confcache >$cache_file 13402 else 13403 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13404$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13405 fi 13406fi 13407rm -f confcache 13408 13409test "x$prefix" = xNONE && prefix=$ac_default_prefix 13410# Let make expand exec_prefix. 13411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13412 13413DEFS=-DHAVE_CONFIG_H 13414 13415ac_libobjs= 13416ac_ltlibobjs= 13417for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13418 # 1. Remove the extension, and $U if already installed. 13419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13422 # will be set to the directory where LIBOBJS objects are built. 13423 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13424 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13425done 13426LIBOBJS=$ac_libobjs 13427 13428LTLIBOBJS=$ac_ltlibobjs 13429 13430 13431if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13432 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13433Usually this means the macro was only invoked conditionally." >&5 13434$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13435Usually this means the macro was only invoked conditionally." >&2;} 13436 { (exit 1); exit 1; }; } 13437fi 13438if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13439 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13440Usually this means the macro was only invoked conditionally." >&5 13441$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13442Usually this means the macro was only invoked conditionally." >&2;} 13443 { (exit 1); exit 1; }; } 13444fi 13445 13446: ${CONFIG_STATUS=./config.status} 13447ac_write_fail=0 13448ac_clean_files_save=$ac_clean_files 13449ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13450{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13451$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13452cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13453#! $SHELL 13454# Generated by $as_me. 13455# Run this file to recreate the current configuration. 13456# Compiler output produced by configure, useful for debugging 13457# configure, is in config.log if it exists. 13458 13459debug=false 13460ac_cs_recheck=false 13461ac_cs_silent=false 13462SHELL=\${CONFIG_SHELL-$SHELL} 13463_ACEOF 13464 13465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13466## --------------------- ## 13467## M4sh Initialization. ## 13468## --------------------- ## 13469 13470# Be more Bourne compatible 13471DUALCASE=1; export DUALCASE # for MKS sh 13472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13473 emulate sh 13474 NULLCMD=: 13475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13476 # is contrary to our usage. Disable this feature. 13477 alias -g '${1+"$@"}'='"$@"' 13478 setopt NO_GLOB_SUBST 13479else 13480 case `(set -o) 2>/dev/null` in 13481 *posix*) set -o posix ;; 13482esac 13483 13484fi 13485 13486 13487 13488 13489# PATH needs CR 13490# Avoid depending upon Character Ranges. 13491as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13493as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13494as_cr_digits='0123456789' 13495as_cr_alnum=$as_cr_Letters$as_cr_digits 13496 13497as_nl=' 13498' 13499export as_nl 13500# Printing a long string crashes Solaris 7 /usr/bin/printf. 13501as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13504if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13505 as_echo='printf %s\n' 13506 as_echo_n='printf %s' 13507else 13508 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13509 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13510 as_echo_n='/usr/ucb/echo -n' 13511 else 13512 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13513 as_echo_n_body='eval 13514 arg=$1; 13515 case $arg in 13516 *"$as_nl"*) 13517 expr "X$arg" : "X\\(.*\\)$as_nl"; 13518 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13519 esac; 13520 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13521 ' 13522 export as_echo_n_body 13523 as_echo_n='sh -c $as_echo_n_body as_echo' 13524 fi 13525 export as_echo_body 13526 as_echo='sh -c $as_echo_body as_echo' 13527fi 13528 13529# The user is always right. 13530if test "${PATH_SEPARATOR+set}" != set; then 13531 PATH_SEPARATOR=: 13532 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13533 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13534 PATH_SEPARATOR=';' 13535 } 13536fi 13537 13538# Support unset when possible. 13539if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13540 as_unset=unset 13541else 13542 as_unset=false 13543fi 13544 13545 13546# IFS 13547# We need space, tab and new line, in precisely that order. Quoting is 13548# there to prevent editors from complaining about space-tab. 13549# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13550# splitting by setting IFS to empty value.) 13551IFS=" "" $as_nl" 13552 13553# Find who we are. Look in the path if we contain no directory separator. 13554case $0 in 13555 *[\\/]* ) as_myself=$0 ;; 13556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13557for as_dir in $PATH 13558do 13559 IFS=$as_save_IFS 13560 test -z "$as_dir" && as_dir=. 13561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13562done 13563IFS=$as_save_IFS 13564 13565 ;; 13566esac 13567# We did not find ourselves, most probably we were run as `sh COMMAND' 13568# in which case we are not to be found in the path. 13569if test "x$as_myself" = x; then 13570 as_myself=$0 13571fi 13572if test ! -f "$as_myself"; then 13573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13574 { (exit 1); exit 1; } 13575fi 13576 13577# Work around bugs in pre-3.0 UWIN ksh. 13578for as_var in ENV MAIL MAILPATH 13579do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13580done 13581PS1='$ ' 13582PS2='> ' 13583PS4='+ ' 13584 13585# NLS nuisances. 13586LC_ALL=C 13587export LC_ALL 13588LANGUAGE=C 13589export LANGUAGE 13590 13591# Required to use basename. 13592if expr a : '\(a\)' >/dev/null 2>&1 && 13593 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13594 as_expr=expr 13595else 13596 as_expr=false 13597fi 13598 13599if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13600 as_basename=basename 13601else 13602 as_basename=false 13603fi 13604 13605 13606# Name of the executable. 13607as_me=`$as_basename -- "$0" || 13608$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13609 X"$0" : 'X\(//\)$' \| \ 13610 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13611$as_echo X/"$0" | 13612 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13613 s//\1/ 13614 q 13615 } 13616 /^X\/\(\/\/\)$/{ 13617 s//\1/ 13618 q 13619 } 13620 /^X\/\(\/\).*/{ 13621 s//\1/ 13622 q 13623 } 13624 s/.*/./; q'` 13625 13626# CDPATH. 13627$as_unset CDPATH 13628 13629 13630 13631 as_lineno_1=$LINENO 13632 as_lineno_2=$LINENO 13633 test "x$as_lineno_1" != "x$as_lineno_2" && 13634 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13635 13636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13637 # uniformly replaced by the line number. The first 'sed' inserts a 13638 # line-number line after each line using $LINENO; the second 'sed' 13639 # does the real work. The second script uses 'N' to pair each 13640 # line-number line with the line containing $LINENO, and appends 13641 # trailing '-' during substitution so that $LINENO is not a special 13642 # case at line end. 13643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13644 # scripts with optimization help from Paolo Bonzini. Blame Lee 13645 # E. McMahon (1931-1989) for sed's syntax. :-) 13646 sed -n ' 13647 p 13648 /[$]LINENO/= 13649 ' <$as_myself | 13650 sed ' 13651 s/[$]LINENO.*/&-/ 13652 t lineno 13653 b 13654 :lineno 13655 N 13656 :loop 13657 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13658 t loop 13659 s/-\n.*// 13660 ' >$as_me.lineno && 13661 chmod +x "$as_me.lineno" || 13662 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13663 { (exit 1); exit 1; }; } 13664 13665 # Don't try to exec as it changes $[0], causing all sort of problems 13666 # (the dirname of $[0] is not the place where we might find the 13667 # original and so on. Autoconf is especially sensitive to this). 13668 . "./$as_me.lineno" 13669 # Exit status is that of the last command. 13670 exit 13671} 13672 13673 13674if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13675 as_dirname=dirname 13676else 13677 as_dirname=false 13678fi 13679 13680ECHO_C= ECHO_N= ECHO_T= 13681case `echo -n x` in 13682-n*) 13683 case `echo 'x\c'` in 13684 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13685 *) ECHO_C='\c';; 13686 esac;; 13687*) 13688 ECHO_N='-n';; 13689esac 13690if expr a : '\(a\)' >/dev/null 2>&1 && 13691 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13692 as_expr=expr 13693else 13694 as_expr=false 13695fi 13696 13697rm -f conf$$ conf$$.exe conf$$.file 13698if test -d conf$$.dir; then 13699 rm -f conf$$.dir/conf$$.file 13700else 13701 rm -f conf$$.dir 13702 mkdir conf$$.dir 2>/dev/null 13703fi 13704if (echo >conf$$.file) 2>/dev/null; then 13705 if ln -s conf$$.file conf$$ 2>/dev/null; then 13706 as_ln_s='ln -s' 13707 # ... but there are two gotchas: 13708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13710 # In both cases, we have to default to `cp -p'. 13711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13712 as_ln_s='cp -p' 13713 elif ln conf$$.file conf$$ 2>/dev/null; then 13714 as_ln_s=ln 13715 else 13716 as_ln_s='cp -p' 13717 fi 13718else 13719 as_ln_s='cp -p' 13720fi 13721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13722rmdir conf$$.dir 2>/dev/null 13723 13724if mkdir -p . 2>/dev/null; then 13725 as_mkdir_p=: 13726else 13727 test -d ./-p && rmdir ./-p 13728 as_mkdir_p=false 13729fi 13730 13731if test -x / >/dev/null 2>&1; then 13732 as_test_x='test -x' 13733else 13734 if ls -dL / >/dev/null 2>&1; then 13735 as_ls_L_option=L 13736 else 13737 as_ls_L_option= 13738 fi 13739 as_test_x=' 13740 eval sh -c '\'' 13741 if test -d "$1"; then 13742 test -d "$1/."; 13743 else 13744 case $1 in 13745 -*)set "./$1";; 13746 esac; 13747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13748 ???[sx]*):;;*)false;;esac;fi 13749 '\'' sh 13750 ' 13751fi 13752as_executable_p=$as_test_x 13753 13754# Sed expression to map a string onto a valid CPP name. 13755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13756 13757# Sed expression to map a string onto a valid variable name. 13758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13759 13760 13761exec 6>&1 13762 13763# Save the log message, to keep $[0] and so on meaningful, and to 13764# report actual input values of CONFIG_FILES etc. instead of their 13765# values after options handling. 13766ac_log=" 13767This file was extended by libsmf $as_me 1.3, which was 13768generated by GNU Autoconf 2.62. Invocation command line was 13769 13770 CONFIG_FILES = $CONFIG_FILES 13771 CONFIG_HEADERS = $CONFIG_HEADERS 13772 CONFIG_LINKS = $CONFIG_LINKS 13773 CONFIG_COMMANDS = $CONFIG_COMMANDS 13774 $ $0 $@ 13775 13776on `(hostname || uname -n) 2>/dev/null | sed 1q` 13777" 13778 13779_ACEOF 13780 13781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13782# Files that config.status was made for. 13783config_files="$ac_config_files" 13784config_headers="$ac_config_headers" 13785config_commands="$ac_config_commands" 13786 13787_ACEOF 13788 13789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13790ac_cs_usage="\ 13791\`$as_me' instantiates files from templates according to the 13792current configuration. 13793 13794Usage: $0 [OPTIONS] [FILE]... 13795 13796 -h, --help print this help, then exit 13797 -V, --version print version number and configuration settings, then exit 13798 -q, --quiet do not print progress messages 13799 -d, --debug don't remove temporary files 13800 --recheck update $as_me by reconfiguring in the same conditions 13801 --file=FILE[:TEMPLATE] 13802 instantiate the configuration file FILE 13803 --header=FILE[:TEMPLATE] 13804 instantiate the configuration header FILE 13805 13806Configuration files: 13807$config_files 13808 13809Configuration headers: 13810$config_headers 13811 13812Configuration commands: 13813$config_commands 13814 13815Report bugs to <bug-autoconf@gnu.org>." 13816 13817_ACEOF 13818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13819ac_cs_version="\\ 13820libsmf config.status 1.3 13821configured by $0, generated by GNU Autoconf 2.62, 13822 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13823 13824Copyright (C) 2008 Free Software Foundation, Inc. 13825This config.status script is free software; the Free Software Foundation 13826gives unlimited permission to copy, distribute and modify it." 13827 13828ac_pwd='$ac_pwd' 13829srcdir='$srcdir' 13830INSTALL='$INSTALL' 13831MKDIR_P='$MKDIR_P' 13832AWK='$AWK' 13833test -n "\$AWK" || AWK=awk 13834_ACEOF 13835 13836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13837# The default lists apply if the user does not specify any file. 13838ac_need_defaults=: 13839while test $# != 0 13840do 13841 case $1 in 13842 --*=*) 13843 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13845 ac_shift=: 13846 ;; 13847 *) 13848 ac_option=$1 13849 ac_optarg=$2 13850 ac_shift=shift 13851 ;; 13852 esac 13853 13854 case $ac_option in 13855 # Handling of the options. 13856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13857 ac_cs_recheck=: ;; 13858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13859 $as_echo "$ac_cs_version"; exit ;; 13860 --debug | --debu | --deb | --de | --d | -d ) 13861 debug=: ;; 13862 --file | --fil | --fi | --f ) 13863 $ac_shift 13864 case $ac_optarg in 13865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13866 esac 13867 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13868 ac_need_defaults=false;; 13869 --header | --heade | --head | --hea ) 13870 $ac_shift 13871 case $ac_optarg in 13872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13873 esac 13874 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13875 ac_need_defaults=false;; 13876 --he | --h) 13877 # Conflict between --help and --header 13878 { $as_echo "$as_me: error: ambiguous option: $1 13879Try \`$0 --help' for more information." >&2 13880 { (exit 1); exit 1; }; };; 13881 --help | --hel | -h ) 13882 $as_echo "$ac_cs_usage"; exit ;; 13883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13884 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13885 ac_cs_silent=: ;; 13886 13887 # This is an error. 13888 -*) { $as_echo "$as_me: error: unrecognized option: $1 13889Try \`$0 --help' for more information." >&2 13890 { (exit 1); exit 1; }; } ;; 13891 13892 *) ac_config_targets="$ac_config_targets $1" 13893 ac_need_defaults=false ;; 13894 13895 esac 13896 shift 13897done 13898 13899ac_configure_extra_args= 13900 13901if $ac_cs_silent; then 13902 exec 6>/dev/null 13903 ac_configure_extra_args="$ac_configure_extra_args --silent" 13904fi 13905 13906_ACEOF 13907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13908if \$ac_cs_recheck; then 13909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13910 shift 13911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13912 CONFIG_SHELL='$SHELL' 13913 export CONFIG_SHELL 13914 exec "\$@" 13915fi 13916 13917_ACEOF 13918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13919exec 5>>config.log 13920{ 13921 echo 13922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13923## Running $as_me. ## 13924_ASBOX 13925 $as_echo "$ac_log" 13926} >&5 13927 13928_ACEOF 13929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13930# 13931# INIT-COMMANDS 13932# 13933AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13934 13935 13936# The HP-UX ksh and POSIX shell print the target directory to stdout 13937# if CDPATH is set. 13938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13939 13940sed_quote_subst='$sed_quote_subst' 13941double_quote_subst='$double_quote_subst' 13942delay_variable_subst='$delay_variable_subst' 13943macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13944macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13945enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13946enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13947pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13948enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13949host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13950host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13951host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13952build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13953build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13954build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13955SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13956Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13957GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13958EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13959FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13960LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13961NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13962LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13963max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13964ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13965exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13966lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13967lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13968lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13969reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13970reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13971OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13972deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13973file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13974AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13975AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13976STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13977RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13978old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13979old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13980old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13981CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13982CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13983compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13984GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13985lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13987lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13988lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13989objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13990SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13991ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13992MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13993lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13994lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13995lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13996lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13997lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13998need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13999DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14000NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14001LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14002OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14003OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14004libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14005shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14006extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14007archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14008enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14009export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14010whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14011compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14012old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14013old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14014archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14015archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14016module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14017module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14018with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14019allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14020no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14021hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14022hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14023hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14024hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14025hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14026hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14027hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14028hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14029inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14030link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14031fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14032always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14033export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14034exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14035include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14036prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14037file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14038variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14039need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14040need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14041version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14042runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14043shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14044shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14045libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14046library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14047soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14048postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14049postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14050finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14051finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14052hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14053sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14054sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14055hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14056enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14057enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14058enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14059old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14060striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14061 14062LTCC='$LTCC' 14063LTCFLAGS='$LTCFLAGS' 14064compiler='$compiler_DEFAULT' 14065 14066# Quote evaled strings. 14067for var in SED \ 14068GREP \ 14069EGREP \ 14070FGREP \ 14071LD \ 14072NM \ 14073LN_S \ 14074lt_SP2NL \ 14075lt_NL2SP \ 14076reload_flag \ 14077OBJDUMP \ 14078deplibs_check_method \ 14079file_magic_cmd \ 14080AR \ 14081AR_FLAGS \ 14082STRIP \ 14083RANLIB \ 14084CC \ 14085CFLAGS \ 14086compiler \ 14087lt_cv_sys_global_symbol_pipe \ 14088lt_cv_sys_global_symbol_to_cdecl \ 14089lt_cv_sys_global_symbol_to_c_name_address \ 14090lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14091SHELL \ 14092ECHO \ 14093lt_prog_compiler_no_builtin_flag \ 14094lt_prog_compiler_wl \ 14095lt_prog_compiler_pic \ 14096lt_prog_compiler_static \ 14097lt_cv_prog_compiler_c_o \ 14098need_locks \ 14099DSYMUTIL \ 14100NMEDIT \ 14101LIPO \ 14102OTOOL \ 14103OTOOL64 \ 14104shrext_cmds \ 14105export_dynamic_flag_spec \ 14106whole_archive_flag_spec \ 14107compiler_needs_object \ 14108with_gnu_ld \ 14109allow_undefined_flag \ 14110no_undefined_flag \ 14111hardcode_libdir_flag_spec \ 14112hardcode_libdir_flag_spec_ld \ 14113hardcode_libdir_separator \ 14114fix_srcfile_path \ 14115exclude_expsyms \ 14116include_expsyms \ 14117file_list_spec \ 14118variables_saved_for_relink \ 14119libname_spec \ 14120library_names_spec \ 14121soname_spec \ 14122finish_eval \ 14123old_striplib \ 14124striplib; do 14125 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14126 *[\\\\\\\`\\"\\\$]*) 14127 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14128 ;; 14129 *) 14130 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14131 ;; 14132 esac 14133done 14134 14135# Double-quote double-evaled strings. 14136for var in reload_cmds \ 14137old_postinstall_cmds \ 14138old_postuninstall_cmds \ 14139old_archive_cmds \ 14140extract_expsyms_cmds \ 14141old_archive_from_new_cmds \ 14142old_archive_from_expsyms_cmds \ 14143archive_cmds \ 14144archive_expsym_cmds \ 14145module_cmds \ 14146module_expsym_cmds \ 14147export_symbols_cmds \ 14148prelink_cmds \ 14149postinstall_cmds \ 14150postuninstall_cmds \ 14151finish_cmds \ 14152sys_lib_search_path_spec \ 14153sys_lib_dlsearch_path_spec; do 14154 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14155 *[\\\\\\\`\\"\\\$]*) 14156 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14157 ;; 14158 *) 14159 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14160 ;; 14161 esac 14162done 14163 14164# Fix-up fallback echo if it was mangled by the above quoting rules. 14165case \$lt_ECHO in 14166*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14167 ;; 14168esac 14169 14170ac_aux_dir='$ac_aux_dir' 14171xsi_shell='$xsi_shell' 14172lt_shell_append='$lt_shell_append' 14173 14174# See if we are running on zsh, and set the options which allow our 14175# commands through without removal of \ escapes INIT. 14176if test -n "\${ZSH_VERSION+set}" ; then 14177 setopt NO_GLOB_SUBST 14178fi 14179 14180 14181 PACKAGE='$PACKAGE' 14182 VERSION='$VERSION' 14183 TIMESTAMP='$TIMESTAMP' 14184 RM='$RM' 14185 ofile='$ofile' 14186 14187 14188 14189 14190_ACEOF 14191 14192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14193 14194# Handling of arguments. 14195for ac_config_target in $ac_config_targets 14196do 14197 case $ac_config_target in 14198 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14199 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14202 "smf.pc") CONFIG_FILES="$CONFIG_FILES smf.pc" ;; 14203 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14204 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14205 14206 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14207$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14208 { (exit 1); exit 1; }; };; 14209 esac 14210done 14211 14212 14213# If the user did not use the arguments to specify the items to instantiate, 14214# then the envvar interface is used. Set only those that are not. 14215# We use the long form for the default assignment because of an extremely 14216# bizarre bug on SunOS 4.1.3. 14217if $ac_need_defaults; then 14218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14221fi 14222 14223# Have a temporary directory for convenience. Make it in the build tree 14224# simply because there is no reason against having it here, and in addition, 14225# creating and moving files from /tmp can sometimes cause problems. 14226# Hook for its removal unless debugging. 14227# Note that there is a small window in which the directory will not be cleaned: 14228# after its creation but before its name has been assigned to `$tmp'. 14229$debug || 14230{ 14231 tmp= 14232 trap 'exit_status=$? 14233 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14234' 0 14235 trap '{ (exit 1); exit 1; }' 1 2 13 15 14236} 14237# Create a (secure) tmp directory for tmp files. 14238 14239{ 14240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14241 test -n "$tmp" && test -d "$tmp" 14242} || 14243{ 14244 tmp=./conf$$-$RANDOM 14245 (umask 077 && mkdir "$tmp") 14246} || 14247{ 14248 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14249 { (exit 1); exit 1; } 14250} 14251 14252# Set up the scripts for CONFIG_FILES section. 14253# No need to generate them if there are no CONFIG_FILES. 14254# This happens for instance with `./config.status config.h'. 14255if test -n "$CONFIG_FILES"; then 14256 14257 14258ac_cr=' 14259' 14260ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14261if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14262 ac_cs_awk_cr='\\r' 14263else 14264 ac_cs_awk_cr=$ac_cr 14265fi 14266 14267echo 'BEGIN {' >"$tmp/subs1.awk" && 14268_ACEOF 14269 14270 14271{ 14272 echo "cat >conf$$subs.awk <<_ACEOF" && 14273 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14274 echo "_ACEOF" 14275} >conf$$subs.sh || 14276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14277$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14278 { (exit 1); exit 1; }; } 14279ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14280ac_delim='%!_!# ' 14281for ac_last_try in false false false false false :; do 14282 . ./conf$$subs.sh || 14283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14284$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14285 { (exit 1); exit 1; }; } 14286 14287 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14288 break 14289 elif $ac_last_try; then 14290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14291$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14292 { (exit 1); exit 1; }; } 14293 else 14294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14295 fi 14296done 14297rm -f conf$$subs.sh 14298 14299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14300cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14301_ACEOF 14302sed -n ' 14303h 14304s/^/S["/; s/!.*/"]=/ 14305p 14306g 14307s/^[^!]*!// 14308:repl 14309t repl 14310s/'"$ac_delim"'$// 14311t delim 14312:nl 14313h 14314s/\(.\{148\}\).*/\1/ 14315t more1 14316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14317p 14318n 14319b repl 14320:more1 14321s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14322p 14323g 14324s/.\{148\}// 14325t nl 14326:delim 14327h 14328s/\(.\{148\}\).*/\1/ 14329t more2 14330s/["\\]/\\&/g; s/^/"/; s/$/"/ 14331p 14332b 14333:more2 14334s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14335p 14336g 14337s/.\{148\}// 14338t delim 14339' <conf$$subs.awk | sed ' 14340/^[^""]/{ 14341 N 14342 s/\n// 14343} 14344' >>$CONFIG_STATUS || ac_write_fail=1 14345rm -f conf$$subs.awk 14346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14347_ACAWK 14348cat >>"\$tmp/subs1.awk" <<_ACAWK && 14349 for (key in S) S_is_set[key] = 1 14350 FS = "" 14351 14352} 14353{ 14354 line = $ 0 14355 nfields = split(line, field, "@") 14356 substed = 0 14357 len = length(field[1]) 14358 for (i = 2; i < nfields; i++) { 14359 key = field[i] 14360 keylen = length(key) 14361 if (S_is_set[key]) { 14362 value = S[key] 14363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14364 len += length(value) + length(field[++i]) 14365 substed = 1 14366 } else 14367 len += 1 + keylen 14368 } 14369 14370 print line 14371} 14372 14373_ACAWK 14374_ACEOF 14375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14378else 14379 cat 14380fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14381 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14382$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14383 { (exit 1); exit 1; }; } 14384_ACEOF 14385 14386# VPATH may cause trouble with some makes, so we remove $(srcdir), 14387# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14388# trailing colons and then remove the whole line if VPATH becomes empty 14389# (actually we leave an empty line to preserve line numbers). 14390if test "x$srcdir" = x.; then 14391 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14392s/:*\$(srcdir):*/:/ 14393s/:*\${srcdir}:*/:/ 14394s/:*@srcdir@:*/:/ 14395s/^\([^=]*=[ ]*\):*/\1/ 14396s/:*$// 14397s/^[^=]*=[ ]*$// 14398}' 14399fi 14400 14401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14402fi # test -n "$CONFIG_FILES" 14403 14404# Set up the scripts for CONFIG_HEADERS section. 14405# No need to generate them if there are no CONFIG_HEADERS. 14406# This happens for instance with `./config.status Makefile'. 14407if test -n "$CONFIG_HEADERS"; then 14408cat >"$tmp/defines.awk" <<\_ACAWK || 14409BEGIN { 14410_ACEOF 14411 14412# Transform confdefs.h into an awk script `defines.awk', embedded as 14413# here-document in config.status, that substitutes the proper values into 14414# config.h.in to produce config.h. 14415 14416# Create a delimiter string that does not exist in confdefs.h, to ease 14417# handling of long lines. 14418ac_delim='%!_!# ' 14419for ac_last_try in false false :; do 14420 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14421 if test -z "$ac_t"; then 14422 break 14423 elif $ac_last_try; then 14424 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14425$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14426 { (exit 1); exit 1; }; } 14427 else 14428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14429 fi 14430done 14431 14432# For the awk script, D is an array of macro values keyed by name, 14433# likewise P contains macro parameters if any. Preserve backslash 14434# newline sequences. 14435 14436ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14437sed -n ' 14438s/.\{148\}/&'"$ac_delim"'/g 14439t rset 14440:rset 14441s/^[ ]*#[ ]*define[ ][ ]*/ / 14442t def 14443d 14444:def 14445s/\\$// 14446t bsnl 14447s/["\\]/\\&/g 14448s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14449D["\1"]=" \3"/p 14450s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14451d 14452:bsnl 14453s/["\\]/\\&/g 14454s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14455D["\1"]=" \3\\\\\\n"\\/p 14456t cont 14457s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14458t cont 14459d 14460:cont 14461n 14462s/.\{148\}/&'"$ac_delim"'/g 14463t clear 14464:clear 14465s/\\$// 14466t bsnlc 14467s/["\\]/\\&/g; s/^/"/; s/$/"/p 14468d 14469:bsnlc 14470s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14471b cont 14472' <confdefs.h | sed ' 14473s/'"$ac_delim"'/"\\\ 14474"/g' >>$CONFIG_STATUS || ac_write_fail=1 14475 14476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14477 for (key in D) D_is_set[key] = 1 14478 FS = "" 14479} 14480/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14481 line = \$ 0 14482 split(line, arg, " ") 14483 if (arg[1] == "#") { 14484 defundef = arg[2] 14485 mac1 = arg[3] 14486 } else { 14487 defundef = substr(arg[1], 2) 14488 mac1 = arg[2] 14489 } 14490 split(mac1, mac2, "(") #) 14491 macro = mac2[1] 14492 if (D_is_set[macro]) { 14493 # Preserve the white space surrounding the "#". 14494 prefix = substr(line, 1, index(line, defundef) - 1) 14495 print prefix "define", macro P[macro] D[macro] 14496 next 14497 } else { 14498 # Replace #undef with comments. This is necessary, for example, 14499 # in the case of _POSIX_SOURCE, which is predefined and required 14500 # on some systems where configure will not decide to define it. 14501 if (defundef == "undef") { 14502 print "/*", line, "*/" 14503 next 14504 } 14505 } 14506} 14507{ print } 14508_ACAWK 14509_ACEOF 14510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14511 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14512$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14513 { (exit 1); exit 1; }; } 14514fi # test -n "$CONFIG_HEADERS" 14515 14516 14517eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14518shift 14519for ac_tag 14520do 14521 case $ac_tag in 14522 :[FHLC]) ac_mode=$ac_tag; continue;; 14523 esac 14524 case $ac_mode$ac_tag in 14525 :[FHL]*:*);; 14526 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14527$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14528 { (exit 1); exit 1; }; };; 14529 :[FH]-) ac_tag=-:-;; 14530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14531 esac 14532 ac_save_IFS=$IFS 14533 IFS=: 14534 set x $ac_tag 14535 IFS=$ac_save_IFS 14536 shift 14537 ac_file=$1 14538 shift 14539 14540 case $ac_mode in 14541 :L) ac_source=$1;; 14542 :[FH]) 14543 ac_file_inputs= 14544 for ac_f 14545 do 14546 case $ac_f in 14547 -) ac_f="$tmp/stdin";; 14548 *) # Look for the file first in the build tree, then in the source tree 14549 # (if the path is not absolute). The absolute path cannot be DOS-style, 14550 # because $ac_f cannot contain `:'. 14551 test -f "$ac_f" || 14552 case $ac_f in 14553 [\\/$]*) false;; 14554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14555 esac || 14556 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14557$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14558 { (exit 1); exit 1; }; };; 14559 esac 14560 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14561 ac_file_inputs="$ac_file_inputs '$ac_f'" 14562 done 14563 14564 # Let's still pretend it is `configure' which instantiates (i.e., don't 14565 # use $as_me), people would be surprised to read: 14566 # /* config.h. Generated by config.status. */ 14567 configure_input='Generated from '` 14568 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14569 `' by configure.' 14570 if test x"$ac_file" != x-; then 14571 configure_input="$ac_file. $configure_input" 14572 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14573$as_echo "$as_me: creating $ac_file" >&6;} 14574 fi 14575 # Neutralize special characters interpreted by sed in replacement strings. 14576 case $configure_input in #( 14577 *\&* | *\|* | *\\* ) 14578 ac_sed_conf_input=`$as_echo "$configure_input" | 14579 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14580 *) ac_sed_conf_input=$configure_input;; 14581 esac 14582 14583 case $ac_tag in 14584 *:-:* | *:-) cat >"$tmp/stdin" \ 14585 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14586$as_echo "$as_me: error: could not create $ac_file" >&2;} 14587 { (exit 1); exit 1; }; } ;; 14588 esac 14589 ;; 14590 esac 14591 14592 ac_dir=`$as_dirname -- "$ac_file" || 14593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14594 X"$ac_file" : 'X\(//\)[^/]' \| \ 14595 X"$ac_file" : 'X\(//\)$' \| \ 14596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14597$as_echo X"$ac_file" | 14598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14599 s//\1/ 14600 q 14601 } 14602 /^X\(\/\/\)[^/].*/{ 14603 s//\1/ 14604 q 14605 } 14606 /^X\(\/\/\)$/{ 14607 s//\1/ 14608 q 14609 } 14610 /^X\(\/\).*/{ 14611 s//\1/ 14612 q 14613 } 14614 s/.*/./; q'` 14615 { as_dir="$ac_dir" 14616 case $as_dir in #( 14617 -*) as_dir=./$as_dir;; 14618 esac 14619 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14620 as_dirs= 14621 while :; do 14622 case $as_dir in #( 14623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14624 *) as_qdir=$as_dir;; 14625 esac 14626 as_dirs="'$as_qdir' $as_dirs" 14627 as_dir=`$as_dirname -- "$as_dir" || 14628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14629 X"$as_dir" : 'X\(//\)[^/]' \| \ 14630 X"$as_dir" : 'X\(//\)$' \| \ 14631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14632$as_echo X"$as_dir" | 14633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14634 s//\1/ 14635 q 14636 } 14637 /^X\(\/\/\)[^/].*/{ 14638 s//\1/ 14639 q 14640 } 14641 /^X\(\/\/\)$/{ 14642 s//\1/ 14643 q 14644 } 14645 /^X\(\/\).*/{ 14646 s//\1/ 14647 q 14648 } 14649 s/.*/./; q'` 14650 test -d "$as_dir" && break 14651 done 14652 test -z "$as_dirs" || eval "mkdir $as_dirs" 14653 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14654$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14655 { (exit 1); exit 1; }; }; } 14656 ac_builddir=. 14657 14658case "$ac_dir" in 14659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14660*) 14661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14662 # A ".." for each directory in $ac_dir_suffix. 14663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14664 case $ac_top_builddir_sub in 14665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14667 esac ;; 14668esac 14669ac_abs_top_builddir=$ac_pwd 14670ac_abs_builddir=$ac_pwd$ac_dir_suffix 14671# for backward compatibility: 14672ac_top_builddir=$ac_top_build_prefix 14673 14674case $srcdir in 14675 .) # We are building in place. 14676 ac_srcdir=. 14677 ac_top_srcdir=$ac_top_builddir_sub 14678 ac_abs_top_srcdir=$ac_pwd ;; 14679 [\\/]* | ?:[\\/]* ) # Absolute name. 14680 ac_srcdir=$srcdir$ac_dir_suffix; 14681 ac_top_srcdir=$srcdir 14682 ac_abs_top_srcdir=$srcdir ;; 14683 *) # Relative name. 14684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14685 ac_top_srcdir=$ac_top_build_prefix$srcdir 14686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14687esac 14688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14689 14690 14691 case $ac_mode in 14692 :F) 14693 # 14694 # CONFIG_FILE 14695 # 14696 14697 case $INSTALL in 14698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14700 esac 14701 ac_MKDIR_P=$MKDIR_P 14702 case $MKDIR_P in 14703 [\\/$]* | ?:[\\/]* ) ;; 14704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14705 esac 14706_ACEOF 14707 14708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14709# If the template does not know about datarootdir, expand it. 14710# FIXME: This hack should be removed a few years after 2.60. 14711ac_datarootdir_hack=; ac_datarootdir_seen= 14712 14713ac_sed_dataroot=' 14714/datarootdir/ { 14715 p 14716 q 14717} 14718/@datadir@/p 14719/@docdir@/p 14720/@infodir@/p 14721/@localedir@/p 14722/@mandir@/p 14723' 14724case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14725*datarootdir*) ac_datarootdir_seen=yes;; 14726*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14727 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14728$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14729_ACEOF 14730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14731 ac_datarootdir_hack=' 14732 s&@datadir@&$datadir&g 14733 s&@docdir@&$docdir&g 14734 s&@infodir@&$infodir&g 14735 s&@localedir@&$localedir&g 14736 s&@mandir@&$mandir&g 14737 s&\\\${datarootdir}&$datarootdir&g' ;; 14738esac 14739_ACEOF 14740 14741# Neutralize VPATH when `$srcdir' = `.'. 14742# Shell code in configure.ac might set extrasub. 14743# FIXME: do we really want to maintain this feature? 14744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14745ac_sed_extra="$ac_vpsub 14746$extrasub 14747_ACEOF 14748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14749:t 14750/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14751s|@configure_input@|$ac_sed_conf_input|;t t 14752s&@top_builddir@&$ac_top_builddir_sub&;t t 14753s&@top_build_prefix@&$ac_top_build_prefix&;t t 14754s&@srcdir@&$ac_srcdir&;t t 14755s&@abs_srcdir@&$ac_abs_srcdir&;t t 14756s&@top_srcdir@&$ac_top_srcdir&;t t 14757s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14758s&@builddir@&$ac_builddir&;t t 14759s&@abs_builddir@&$ac_abs_builddir&;t t 14760s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14761s&@INSTALL@&$ac_INSTALL&;t t 14762s&@MKDIR_P@&$ac_MKDIR_P&;t t 14763$ac_datarootdir_hack 14764" 14765eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14766 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14767$as_echo "$as_me: error: could not create $ac_file" >&2;} 14768 { (exit 1); exit 1; }; } 14769 14770test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14773 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14774which seems to be undefined. Please make sure it is defined." >&5 14775$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14776which seems to be undefined. Please make sure it is defined." >&2;} 14777 14778 rm -f "$tmp/stdin" 14779 case $ac_file in 14780 -) cat "$tmp/out" && rm -f "$tmp/out";; 14781 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14782 esac \ 14783 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14784$as_echo "$as_me: error: could not create $ac_file" >&2;} 14785 { (exit 1); exit 1; }; } 14786 ;; 14787 :H) 14788 # 14789 # CONFIG_HEADER 14790 # 14791 if test x"$ac_file" != x-; then 14792 { 14793 $as_echo "/* $configure_input */" \ 14794 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14795 } >"$tmp/config.h" \ 14796 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14797$as_echo "$as_me: error: could not create $ac_file" >&2;} 14798 { (exit 1); exit 1; }; } 14799 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14800 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14801$as_echo "$as_me: $ac_file is unchanged" >&6;} 14802 else 14803 rm -f "$ac_file" 14804 mv "$tmp/config.h" "$ac_file" \ 14805 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14806$as_echo "$as_me: error: could not create $ac_file" >&2;} 14807 { (exit 1); exit 1; }; } 14808 fi 14809 else 14810 $as_echo "/* $configure_input */" \ 14811 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14812 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14813$as_echo "$as_me: error: could not create -" >&2;} 14814 { (exit 1); exit 1; }; } 14815 fi 14816# Compute "$ac_file"'s index in $config_headers. 14817_am_arg="$ac_file" 14818_am_stamp_count=1 14819for _am_header in $config_headers :; do 14820 case $_am_header in 14821 $_am_arg | $_am_arg:* ) 14822 break ;; 14823 * ) 14824 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14825 esac 14826done 14827echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14828$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14829 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14830 X"$_am_arg" : 'X\(//\)$' \| \ 14831 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14832$as_echo X"$_am_arg" | 14833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14834 s//\1/ 14835 q 14836 } 14837 /^X\(\/\/\)[^/].*/{ 14838 s//\1/ 14839 q 14840 } 14841 /^X\(\/\/\)$/{ 14842 s//\1/ 14843 q 14844 } 14845 /^X\(\/\).*/{ 14846 s//\1/ 14847 q 14848 } 14849 s/.*/./; q'`/stamp-h$_am_stamp_count 14850 ;; 14851 14852 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14853$as_echo "$as_me: executing $ac_file commands" >&6;} 14854 ;; 14855 esac 14856 14857 14858 case $ac_file$ac_mode in 14859 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14860 # Strip MF so we end up with the name of the file. 14861 mf=`echo "$mf" | sed -e 's/:.*$//'` 14862 # Check whether this is an Automake generated Makefile or not. 14863 # We used to match only the files named `Makefile.in', but 14864 # some people rename them; so instead we look at the file content. 14865 # Grep'ing the first line is not enough: some people post-process 14866 # each Makefile.in and add a new line on top of each file to say so. 14867 # Grep'ing the whole file is not good either: AIX grep has a line 14868 # limit of 2048, but all sed's we know have understand at least 4000. 14869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14870 dirpart=`$as_dirname -- "$mf" || 14871$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14872 X"$mf" : 'X\(//\)[^/]' \| \ 14873 X"$mf" : 'X\(//\)$' \| \ 14874 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14875$as_echo X"$mf" | 14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14877 s//\1/ 14878 q 14879 } 14880 /^X\(\/\/\)[^/].*/{ 14881 s//\1/ 14882 q 14883 } 14884 /^X\(\/\/\)$/{ 14885 s//\1/ 14886 q 14887 } 14888 /^X\(\/\).*/{ 14889 s//\1/ 14890 q 14891 } 14892 s/.*/./; q'` 14893 else 14894 continue 14895 fi 14896 # Extract the definition of DEPDIR, am__include, and am__quote 14897 # from the Makefile without running `make'. 14898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14899 test -z "$DEPDIR" && continue 14900 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14901 test -z "am__include" && continue 14902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14903 # When using ansi2knr, U may be empty or an underscore; expand it 14904 U=`sed -n 's/^U = //p' < "$mf"` 14905 # Find all dependency output files, they are included files with 14906 # $(DEPDIR) in their names. We invoke sed twice because it is the 14907 # simplest approach to changing $(DEPDIR) to its actual value in the 14908 # expansion. 14909 for file in `sed -n " 14910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14912 # Make sure the directory exists. 14913 test -f "$dirpart/$file" && continue 14914 fdir=`$as_dirname -- "$file" || 14915$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14916 X"$file" : 'X\(//\)[^/]' \| \ 14917 X"$file" : 'X\(//\)$' \| \ 14918 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14919$as_echo X"$file" | 14920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14921 s//\1/ 14922 q 14923 } 14924 /^X\(\/\/\)[^/].*/{ 14925 s//\1/ 14926 q 14927 } 14928 /^X\(\/\/\)$/{ 14929 s//\1/ 14930 q 14931 } 14932 /^X\(\/\).*/{ 14933 s//\1/ 14934 q 14935 } 14936 s/.*/./; q'` 14937 { as_dir=$dirpart/$fdir 14938 case $as_dir in #( 14939 -*) as_dir=./$as_dir;; 14940 esac 14941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14942 as_dirs= 14943 while :; do 14944 case $as_dir in #( 14945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14946 *) as_qdir=$as_dir;; 14947 esac 14948 as_dirs="'$as_qdir' $as_dirs" 14949 as_dir=`$as_dirname -- "$as_dir" || 14950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14951 X"$as_dir" : 'X\(//\)[^/]' \| \ 14952 X"$as_dir" : 'X\(//\)$' \| \ 14953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14954$as_echo X"$as_dir" | 14955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14956 s//\1/ 14957 q 14958 } 14959 /^X\(\/\/\)[^/].*/{ 14960 s//\1/ 14961 q 14962 } 14963 /^X\(\/\/\)$/{ 14964 s//\1/ 14965 q 14966 } 14967 /^X\(\/\).*/{ 14968 s//\1/ 14969 q 14970 } 14971 s/.*/./; q'` 14972 test -d "$as_dir" && break 14973 done 14974 test -z "$as_dirs" || eval "mkdir $as_dirs" 14975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14976$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14977 { (exit 1); exit 1; }; }; } 14978 # echo "creating $dirpart/$file" 14979 echo '# dummy' > "$dirpart/$file" 14980 done 14981done 14982 ;; 14983 "libtool":C) 14984 14985 # See if we are running on zsh, and set the options which allow our 14986 # commands through without removal of \ escapes. 14987 if test -n "${ZSH_VERSION+set}" ; then 14988 setopt NO_GLOB_SUBST 14989 fi 14990 14991 cfgfile="${ofile}T" 14992 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14993 $RM "$cfgfile" 14994 14995 cat <<_LT_EOF >> "$cfgfile" 14996#! $SHELL 14997 14998# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14999# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15000# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15001# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15002# 15003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15004# 2006, 2007, 2008 Free Software Foundation, Inc. 15005# Written by Gordon Matzigkeit, 1996 15006# 15007# This file is part of GNU Libtool. 15008# 15009# GNU Libtool is free software; you can redistribute it and/or 15010# modify it under the terms of the GNU General Public License as 15011# published by the Free Software Foundation; either version 2 of 15012# the License, or (at your option) any later version. 15013# 15014# As a special exception to the GNU General Public License, 15015# if you distribute this file as part of a program or library that 15016# is built using GNU Libtool, you may include this file under the 15017# same distribution terms that you use for the rest of that program. 15018# 15019# GNU Libtool is distributed in the hope that it will be useful, 15020# but WITHOUT ANY WARRANTY; without even the implied warranty of 15021# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15022# GNU General Public License for more details. 15023# 15024# You should have received a copy of the GNU General Public License 15025# along with GNU Libtool; see the file COPYING. If not, a copy 15026# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15027# obtained by writing to the Free Software Foundation, Inc., 15028# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15029 15030 15031# The names of the tagged configurations supported by this script. 15032available_tags="" 15033 15034# ### BEGIN LIBTOOL CONFIG 15035 15036# Which release of libtool.m4 was used? 15037macro_version=$macro_version 15038macro_revision=$macro_revision 15039 15040# Whether or not to build shared libraries. 15041build_libtool_libs=$enable_shared 15042 15043# Whether or not to build static libraries. 15044build_old_libs=$enable_static 15045 15046# What type of objects to build. 15047pic_mode=$pic_mode 15048 15049# Whether or not to optimize for fast installation. 15050fast_install=$enable_fast_install 15051 15052# The host system. 15053host_alias=$host_alias 15054host=$host 15055host_os=$host_os 15056 15057# The build system. 15058build_alias=$build_alias 15059build=$build 15060build_os=$build_os 15061 15062# A sed program that does not truncate output. 15063SED=$lt_SED 15064 15065# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15066Xsed="\$SED -e 1s/^X//" 15067 15068# A grep program that handles long lines. 15069GREP=$lt_GREP 15070 15071# An ERE matcher. 15072EGREP=$lt_EGREP 15073 15074# A literal string matcher. 15075FGREP=$lt_FGREP 15076 15077# A BSD- or MS-compatible name lister. 15078NM=$lt_NM 15079 15080# Whether we need soft or hard links. 15081LN_S=$lt_LN_S 15082 15083# What is the maximum length of a command? 15084max_cmd_len=$max_cmd_len 15085 15086# Object file suffix (normally "o"). 15087objext=$ac_objext 15088 15089# Executable file suffix (normally ""). 15090exeext=$exeext 15091 15092# whether the shell understands "unset". 15093lt_unset=$lt_unset 15094 15095# turn spaces into newlines. 15096SP2NL=$lt_lt_SP2NL 15097 15098# turn newlines into spaces. 15099NL2SP=$lt_lt_NL2SP 15100 15101# How to create reloadable object files. 15102reload_flag=$lt_reload_flag 15103reload_cmds=$lt_reload_cmds 15104 15105# An object symbol dumper. 15106OBJDUMP=$lt_OBJDUMP 15107 15108# Method to check whether dependent libraries are shared objects. 15109deplibs_check_method=$lt_deplibs_check_method 15110 15111# Command to use when deplibs_check_method == "file_magic". 15112file_magic_cmd=$lt_file_magic_cmd 15113 15114# The archiver. 15115AR=$lt_AR 15116AR_FLAGS=$lt_AR_FLAGS 15117 15118# A symbol stripping program. 15119STRIP=$lt_STRIP 15120 15121# Commands used to install an old-style archive. 15122RANLIB=$lt_RANLIB 15123old_postinstall_cmds=$lt_old_postinstall_cmds 15124old_postuninstall_cmds=$lt_old_postuninstall_cmds 15125 15126# A C compiler. 15127LTCC=$lt_CC 15128 15129# LTCC compiler flags. 15130LTCFLAGS=$lt_CFLAGS 15131 15132# Take the output of nm and produce a listing of raw symbols and C names. 15133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15134 15135# Transform the output of nm in a proper C declaration. 15136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15137 15138# Transform the output of nm in a C name address pair. 15139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15140 15141# Transform the output of nm in a C name address pair when lib prefix is needed. 15142global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15143 15144# The name of the directory that contains temporary libtool files. 15145objdir=$objdir 15146 15147# Shell to use when invoking shell scripts. 15148SHELL=$lt_SHELL 15149 15150# An echo program that does not interpret backslashes. 15151ECHO=$lt_ECHO 15152 15153# Used to examine libraries when file_magic_cmd begins with "file". 15154MAGIC_CMD=$MAGIC_CMD 15155 15156# Must we lock files when doing compilation? 15157need_locks=$lt_need_locks 15158 15159# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15160DSYMUTIL=$lt_DSYMUTIL 15161 15162# Tool to change global to local symbols on Mac OS X. 15163NMEDIT=$lt_NMEDIT 15164 15165# Tool to manipulate fat objects and archives on Mac OS X. 15166LIPO=$lt_LIPO 15167 15168# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15169OTOOL=$lt_OTOOL 15170 15171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15172OTOOL64=$lt_OTOOL64 15173 15174# Old archive suffix (normally "a"). 15175libext=$libext 15176 15177# Shared library suffix (normally ".so"). 15178shrext_cmds=$lt_shrext_cmds 15179 15180# The commands to extract the exported symbol list from a shared archive. 15181extract_expsyms_cmds=$lt_extract_expsyms_cmds 15182 15183# Variables whose values should be saved in libtool wrapper scripts and 15184# restored at link time. 15185variables_saved_for_relink=$lt_variables_saved_for_relink 15186 15187# Do we need the "lib" prefix for modules? 15188need_lib_prefix=$need_lib_prefix 15189 15190# Do we need a version for libraries? 15191need_version=$need_version 15192 15193# Library versioning type. 15194version_type=$version_type 15195 15196# Shared library runtime path variable. 15197runpath_var=$runpath_var 15198 15199# Shared library path variable. 15200shlibpath_var=$shlibpath_var 15201 15202# Is shlibpath searched before the hard-coded library search path? 15203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15204 15205# Format of library name prefix. 15206libname_spec=$lt_libname_spec 15207 15208# List of archive names. First name is the real one, the rest are links. 15209# The last name is the one that the linker finds with -lNAME 15210library_names_spec=$lt_library_names_spec 15211 15212# The coded name of the library, if different from the real name. 15213soname_spec=$lt_soname_spec 15214 15215# Command to use after installation of a shared archive. 15216postinstall_cmds=$lt_postinstall_cmds 15217 15218# Command to use after uninstallation of a shared archive. 15219postuninstall_cmds=$lt_postuninstall_cmds 15220 15221# Commands used to finish a libtool library installation in a directory. 15222finish_cmds=$lt_finish_cmds 15223 15224# As "finish_cmds", except a single script fragment to be evaled but 15225# not shown. 15226finish_eval=$lt_finish_eval 15227 15228# Whether we should hardcode library paths into libraries. 15229hardcode_into_libs=$hardcode_into_libs 15230 15231# Compile-time system search path for libraries. 15232sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15233 15234# Run-time system search path for libraries. 15235sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15236 15237# Whether dlopen is supported. 15238dlopen_support=$enable_dlopen 15239 15240# Whether dlopen of programs is supported. 15241dlopen_self=$enable_dlopen_self 15242 15243# Whether dlopen of statically linked programs is supported. 15244dlopen_self_static=$enable_dlopen_self_static 15245 15246# Commands to strip libraries. 15247old_striplib=$lt_old_striplib 15248striplib=$lt_striplib 15249 15250 15251# The linker used to build libraries. 15252LD=$lt_LD 15253 15254# Commands used to build an old-style archive. 15255old_archive_cmds=$lt_old_archive_cmds 15256 15257# A language specific compiler. 15258CC=$lt_compiler 15259 15260# Is the compiler the GNU compiler? 15261with_gcc=$GCC 15262 15263# Compiler flag to turn off builtin functions. 15264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15265 15266# How to pass a linker flag through the compiler. 15267wl=$lt_lt_prog_compiler_wl 15268 15269# Additional compiler flags for building library objects. 15270pic_flag=$lt_lt_prog_compiler_pic 15271 15272# Compiler flag to prevent dynamic linking. 15273link_static_flag=$lt_lt_prog_compiler_static 15274 15275# Does compiler simultaneously support -c and -o options? 15276compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15277 15278# Whether or not to add -lc for building shared libraries. 15279build_libtool_need_lc=$archive_cmds_need_lc 15280 15281# Whether or not to disallow shared libs when runtime libs are static. 15282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15283 15284# Compiler flag to allow reflexive dlopens. 15285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15286 15287# Compiler flag to generate shared objects directly from archives. 15288whole_archive_flag_spec=$lt_whole_archive_flag_spec 15289 15290# Whether the compiler copes with passing no objects directly. 15291compiler_needs_object=$lt_compiler_needs_object 15292 15293# Create an old-style archive from a shared archive. 15294old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15295 15296# Create a temporary old-style archive to link instead of a shared archive. 15297old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15298 15299# Commands used to build a shared archive. 15300archive_cmds=$lt_archive_cmds 15301archive_expsym_cmds=$lt_archive_expsym_cmds 15302 15303# Commands used to build a loadable module if different from building 15304# a shared archive. 15305module_cmds=$lt_module_cmds 15306module_expsym_cmds=$lt_module_expsym_cmds 15307 15308# Whether we are building with GNU ld or not. 15309with_gnu_ld=$lt_with_gnu_ld 15310 15311# Flag that allows shared libraries with undefined symbols to be built. 15312allow_undefined_flag=$lt_allow_undefined_flag 15313 15314# Flag that enforces no undefined symbols. 15315no_undefined_flag=$lt_no_undefined_flag 15316 15317# Flag to hardcode \$libdir into a binary during linking. 15318# This must work even if \$libdir does not exist 15319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15320 15321# If ld is used when linking, flag to hardcode \$libdir into a binary 15322# during linking. This must work even if \$libdir does not exist. 15323hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15324 15325# Whether we need a single "-rpath" flag with a separated argument. 15326hardcode_libdir_separator=$lt_hardcode_libdir_separator 15327 15328# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15329# DIR into the resulting binary. 15330hardcode_direct=$hardcode_direct 15331 15332# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15333# DIR into the resulting binary and the resulting library dependency is 15334# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15335# library is relocated. 15336hardcode_direct_absolute=$hardcode_direct_absolute 15337 15338# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15339# into the resulting binary. 15340hardcode_minus_L=$hardcode_minus_L 15341 15342# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15343# into the resulting binary. 15344hardcode_shlibpath_var=$hardcode_shlibpath_var 15345 15346# Set to "yes" if building a shared library automatically hardcodes DIR 15347# into the library and all subsequent libraries and executables linked 15348# against it. 15349hardcode_automatic=$hardcode_automatic 15350 15351# Set to yes if linker adds runtime paths of dependent libraries 15352# to runtime path list. 15353inherit_rpath=$inherit_rpath 15354 15355# Whether libtool must link a program against all its dependency libraries. 15356link_all_deplibs=$link_all_deplibs 15357 15358# Fix the shell variable \$srcfile for the compiler. 15359fix_srcfile_path=$lt_fix_srcfile_path 15360 15361# Set to "yes" if exported symbols are required. 15362always_export_symbols=$always_export_symbols 15363 15364# The commands to list exported symbols. 15365export_symbols_cmds=$lt_export_symbols_cmds 15366 15367# Symbols that should not be listed in the preloaded symbols. 15368exclude_expsyms=$lt_exclude_expsyms 15369 15370# Symbols that must always be exported. 15371include_expsyms=$lt_include_expsyms 15372 15373# Commands necessary for linking programs (against libraries) with templates. 15374prelink_cmds=$lt_prelink_cmds 15375 15376# Specify filename containing input files. 15377file_list_spec=$lt_file_list_spec 15378 15379# How to hardcode a shared library path into an executable. 15380hardcode_action=$hardcode_action 15381 15382# ### END LIBTOOL CONFIG 15383 15384_LT_EOF 15385 15386 case $host_os in 15387 aix3*) 15388 cat <<\_LT_EOF >> "$cfgfile" 15389# AIX sometimes has problems with the GCC collect2 program. For some 15390# reason, if we set the COLLECT_NAMES environment variable, the problems 15391# vanish in a puff of smoke. 15392if test "X${COLLECT_NAMES+set}" != Xset; then 15393 COLLECT_NAMES= 15394 export COLLECT_NAMES 15395fi 15396_LT_EOF 15397 ;; 15398 esac 15399 15400 15401ltmain="$ac_aux_dir/ltmain.sh" 15402 15403 15404 # We use sed instead of cat because bash on DJGPP gets confused if 15405 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15406 # text mode, it properly converts lines to CR/LF. This bash problem 15407 # is reportedly fixed, but why not run on old versions too? 15408 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15409 || (rm -f "$cfgfile"; exit 1) 15410 15411 case $xsi_shell in 15412 yes) 15413 cat << \_LT_EOF >> "$cfgfile" 15414 15415# func_dirname file append nondir_replacement 15416# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15417# otherwise set result to NONDIR_REPLACEMENT. 15418func_dirname () 15419{ 15420 case ${1} in 15421 */*) func_dirname_result="${1%/*}${2}" ;; 15422 * ) func_dirname_result="${3}" ;; 15423 esac 15424} 15425 15426# func_basename file 15427func_basename () 15428{ 15429 func_basename_result="${1##*/}" 15430} 15431 15432# func_dirname_and_basename file append nondir_replacement 15433# perform func_basename and func_dirname in a single function 15434# call: 15435# dirname: Compute the dirname of FILE. If nonempty, 15436# add APPEND to the result, otherwise set result 15437# to NONDIR_REPLACEMENT. 15438# value returned in "$func_dirname_result" 15439# basename: Compute filename of FILE. 15440# value retuned in "$func_basename_result" 15441# Implementation must be kept synchronized with func_dirname 15442# and func_basename. For efficiency, we do not delegate to 15443# those functions but instead duplicate the functionality here. 15444func_dirname_and_basename () 15445{ 15446 case ${1} in 15447 */*) func_dirname_result="${1%/*}${2}" ;; 15448 * ) func_dirname_result="${3}" ;; 15449 esac 15450 func_basename_result="${1##*/}" 15451} 15452 15453# func_stripname prefix suffix name 15454# strip PREFIX and SUFFIX off of NAME. 15455# PREFIX and SUFFIX must not contain globbing or regex special 15456# characters, hashes, percent signs, but SUFFIX may contain a leading 15457# dot (in which case that matches only a dot). 15458func_stripname () 15459{ 15460 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15461 # positional parameters, so assign one to ordinary parameter first. 15462 func_stripname_result=${3} 15463 func_stripname_result=${func_stripname_result#"${1}"} 15464 func_stripname_result=${func_stripname_result%"${2}"} 15465} 15466 15467# func_opt_split 15468func_opt_split () 15469{ 15470 func_opt_split_opt=${1%%=*} 15471 func_opt_split_arg=${1#*=} 15472} 15473 15474# func_lo2o object 15475func_lo2o () 15476{ 15477 case ${1} in 15478 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15479 *) func_lo2o_result=${1} ;; 15480 esac 15481} 15482 15483# func_xform libobj-or-source 15484func_xform () 15485{ 15486 func_xform_result=${1%.*}.lo 15487} 15488 15489# func_arith arithmetic-term... 15490func_arith () 15491{ 15492 func_arith_result=$(( $* )) 15493} 15494 15495# func_len string 15496# STRING may not start with a hyphen. 15497func_len () 15498{ 15499 func_len_result=${#1} 15500} 15501 15502_LT_EOF 15503 ;; 15504 *) # Bourne compatible functions. 15505 cat << \_LT_EOF >> "$cfgfile" 15506 15507# func_dirname file append nondir_replacement 15508# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15509# otherwise set result to NONDIR_REPLACEMENT. 15510func_dirname () 15511{ 15512 # Extract subdirectory from the argument. 15513 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15514 if test "X$func_dirname_result" = "X${1}"; then 15515 func_dirname_result="${3}" 15516 else 15517 func_dirname_result="$func_dirname_result${2}" 15518 fi 15519} 15520 15521# func_basename file 15522func_basename () 15523{ 15524 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15525} 15526 15527 15528# func_stripname prefix suffix name 15529# strip PREFIX and SUFFIX off of NAME. 15530# PREFIX and SUFFIX must not contain globbing or regex special 15531# characters, hashes, percent signs, but SUFFIX may contain a leading 15532# dot (in which case that matches only a dot). 15533# func_strip_suffix prefix name 15534func_stripname () 15535{ 15536 case ${2} in 15537 .*) func_stripname_result=`$ECHO "X${3}" \ 15538 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15539 *) func_stripname_result=`$ECHO "X${3}" \ 15540 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15541 esac 15542} 15543 15544# sed scripts: 15545my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15546my_sed_long_arg='1s/^-[^=]*=//' 15547 15548# func_opt_split 15549func_opt_split () 15550{ 15551 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15552 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15553} 15554 15555# func_lo2o object 15556func_lo2o () 15557{ 15558 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15559} 15560 15561# func_xform libobj-or-source 15562func_xform () 15563{ 15564 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15565} 15566 15567# func_arith arithmetic-term... 15568func_arith () 15569{ 15570 func_arith_result=`expr "$@"` 15571} 15572 15573# func_len string 15574# STRING may not start with a hyphen. 15575func_len () 15576{ 15577 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15578} 15579 15580_LT_EOF 15581esac 15582 15583case $lt_shell_append in 15584 yes) 15585 cat << \_LT_EOF >> "$cfgfile" 15586 15587# func_append var value 15588# Append VALUE to the end of shell variable VAR. 15589func_append () 15590{ 15591 eval "$1+=\$2" 15592} 15593_LT_EOF 15594 ;; 15595 *) 15596 cat << \_LT_EOF >> "$cfgfile" 15597 15598# func_append var value 15599# Append VALUE to the end of shell variable VAR. 15600func_append () 15601{ 15602 eval "$1=\$$1\$2" 15603} 15604 15605_LT_EOF 15606 ;; 15607 esac 15608 15609 15610 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15611 || (rm -f "$cfgfile"; exit 1) 15612 15613 mv -f "$cfgfile" "$ofile" || 15614 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15615 chmod +x "$ofile" 15616 15617 ;; 15618 15619 esac 15620done # for ac_tag 15621 15622 15623{ (exit 0); exit 0; } 15624_ACEOF 15625chmod +x $CONFIG_STATUS 15626ac_clean_files=$ac_clean_files_save 15627 15628test $ac_write_fail = 0 || 15629 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15630$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15631 { (exit 1); exit 1; }; } 15632 15633 15634# configure is writing to config.log, and then calls config.status. 15635# config.status does its own redirection, appending to config.log. 15636# Unfortunately, on DOS this fails, as config.log is still kept open 15637# by configure, so config.status won't be able to write to it; its 15638# output is simply discarded. So we exec the FD to /dev/null, 15639# effectively closing config.log, so it can be properly (re)opened and 15640# appended to by config.status. When coming back to configure, we 15641# need to make the FD available again. 15642if test "$no_create" != yes; then 15643 ac_cs_success=: 15644 ac_config_status_args= 15645 test "$silent" = yes && 15646 ac_config_status_args="$ac_config_status_args --quiet" 15647 exec 5>/dev/null 15648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15649 exec 5>>config.log 15650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15651 # would make configure fail if this is the last instruction. 15652 $ac_cs_success || { (exit 1); exit 1; } 15653fi 15654if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15655 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 15656$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 15657fi 15658 15659