1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libdaemon 0.14. 4# 5# Report bugs to <mzqnrzba (at) 0pointer (dot) de>. 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='libdaemon' 747PACKAGE_TARNAME='libdaemon' 748PACKAGE_VERSION='0.14' 749PACKAGE_STRING='libdaemon 0.14' 750PACKAGE_BUGREPORT='mzqnrzba (at) 0pointer (dot) de' 751 752ac_unique_file="libdaemon/dfork.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='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793EXAMPLES_FALSE 794EXAMPLES_TRUE 795USE_LYNX_FALSE 796USE_LYNX_TRUE 797have_lynx 798LDFLAGS_NOUNDEFINED 799OTOOL64 800OTOOL 801LIPO 802NMEDIT 803DSYMUTIL 804lt_ECHO 805RANLIB 806AR 807OBJDUMP 808NM 809ac_ct_DUMPBIN 810DUMPBIN 811LD 812FGREP 813SED 814host_os 815host_vendor 816host_cpu 817host 818build_os 819build_vendor 820build_cpu 821build 822LIBTOOL 823LN_S 824EGREP 825GREP 826CPP 827am__fastdepCC_FALSE 828am__fastdepCC_TRUE 829CCDEPMODE 830AMDEPBACKSLASH 831AMDEP_FALSE 832AMDEP_TRUE 833am__quote 834am__include 835DEPDIR 836OBJEXT 837EXEEXT 838ac_ct_CC 839CPPFLAGS 840LDFLAGS 841CFLAGS 842CC 843AM_BACKSLASH 844AM_DEFAULT_VERBOSITY 845LIBDAEMON_VERSION_INFO 846PACKAGE_URL 847am__untar 848am__tar 849AMTAR 850am__leading_dot 851SET_MAKE 852AWK 853mkdir_p 854MKDIR_P 855INSTALL_STRIP_PROGRAM 856STRIP 857install_sh 858MAKEINFO 859AUTOHEADER 860AUTOMAKE 861AUTOCONF 862ACLOCAL 863VERSION 864PACKAGE 865CYGPATH_W 866am__isrc 867INSTALL_DATA 868INSTALL_SCRIPT 869INSTALL_PROGRAM 870target_alias 871host_alias 872build_alias 873LIBS 874ECHO_T 875ECHO_N 876ECHO_C 877DEFS 878mandir 879localedir 880libdir 881psdir 882pdfdir 883dvidir 884htmldir 885infodir 886docdir 887oldincludedir 888includedir 889localstatedir 890sharedstatedir 891sysconfdir 892datadir 893datarootdir 894libexecdir 895sbindir 896bindir 897program_transform_name 898prefix 899exec_prefix 900PACKAGE_BUGREPORT 901PACKAGE_STRING 902PACKAGE_VERSION 903PACKAGE_TARNAME 904PACKAGE_NAME 905PATH_SEPARATOR 906SHELL' 907ac_subst_files='' 908ac_user_opts=' 909enable_option_checking 910enable_silent_rules 911enable_dependency_tracking 912enable_shared 913enable_static 914with_pic 915enable_fast_install 916with_gnu_ld 917enable_libtool_lock 918enable_assert 919enable_largefile 920enable_lynx 921enable_examples 922' 923 ac_precious_vars='build_alias 924host_alias 925target_alias 926CC 927CFLAGS 928LDFLAGS 929LIBS 930CPPFLAGS 931CPP' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970includedir='${prefix}/include' 971oldincludedir='/usr/include' 972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 973infodir='${datarootdir}/info' 974htmldir='${docdir}' 975dvidir='${docdir}' 976pdfdir='${docdir}' 977psdir='${docdir}' 978libdir='${exec_prefix}/lib' 979localedir='${datarootdir}/locale' 980mandir='${datarootdir}/man' 981 982ac_prev= 983ac_dashdash= 984for ac_option 985do 986 # If the previous option needs an argument, assign it. 987 if test -n "$ac_prev"; then 988 eval $ac_prev=\$ac_option 989 ac_prev= 990 continue 991 fi 992 993 case $ac_option in 994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 # Accept the important Cygnus configure options, so we can diagnose typos. 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1041 { (exit 1); exit 1; }; } 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=no ;; 1052 1053 -docdir | --docdir | --docdi | --doc | --do) 1054 ac_prev=docdir ;; 1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1056 docdir=$ac_optarg ;; 1057 1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1059 ac_prev=dvidir ;; 1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1061 dvidir=$ac_optarg ;; 1062 1063 -enable-* | --enable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=\$ac_optarg ;; 1079 1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1082 | --exec | --exe | --ex) 1083 ac_prev=exec_prefix ;; 1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1086 | --exec=* | --exe=* | --ex=*) 1087 exec_prefix=$ac_optarg ;; 1088 1089 -gas | --gas | --ga | --g) 1090 # Obsolete; use --with-gas. 1091 with_gas=yes ;; 1092 1093 -help | --help | --hel | --he | -h) 1094 ac_init_help=long ;; 1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1096 ac_init_help=recursive ;; 1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1098 ac_init_help=short ;; 1099 1100 -host | --host | --hos | --ho) 1101 ac_prev=host_alias ;; 1102 -host=* | --host=* | --hos=* | --ho=*) 1103 host_alias=$ac_optarg ;; 1104 1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1106 ac_prev=htmldir ;; 1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1108 | --ht=*) 1109 htmldir=$ac_optarg ;; 1110 1111 -includedir | --includedir | --includedi | --included | --include \ 1112 | --includ | --inclu | --incl | --inc) 1113 ac_prev=includedir ;; 1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1115 | --includ=* | --inclu=* | --incl=* | --inc=*) 1116 includedir=$ac_optarg ;; 1117 1118 -infodir | --infodir | --infodi | --infod | --info | --inf) 1119 ac_prev=infodir ;; 1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1121 infodir=$ac_optarg ;; 1122 1123 -libdir | --libdir | --libdi | --libd) 1124 ac_prev=libdir ;; 1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1126 libdir=$ac_optarg ;; 1127 1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1129 | --libexe | --libex | --libe) 1130 ac_prev=libexecdir ;; 1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1132 | --libexe=* | --libex=* | --libe=*) 1133 libexecdir=$ac_optarg ;; 1134 1135 -localedir | --localedir | --localedi | --localed | --locale) 1136 ac_prev=localedir ;; 1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1138 localedir=$ac_optarg ;; 1139 1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1141 | --localstate | --localstat | --localsta | --localst | --locals) 1142 ac_prev=localstatedir ;; 1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1145 localstatedir=$ac_optarg ;; 1146 1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1148 ac_prev=mandir ;; 1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1150 mandir=$ac_optarg ;; 1151 1152 -nfp | --nfp | --nf) 1153 # Obsolete; use --without-fp. 1154 with_fp=no ;; 1155 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n) 1158 no_create=yes ;; 1159 1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1162 no_recursion=yes ;; 1163 1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1166 | --oldin | --oldi | --old | --ol | --o) 1167 ac_prev=oldincludedir ;; 1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1171 oldincludedir=$ac_optarg ;; 1172 1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1174 ac_prev=prefix ;; 1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1176 prefix=$ac_optarg ;; 1177 1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1179 | --program-pre | --program-pr | --program-p) 1180 ac_prev=program_prefix ;; 1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1183 program_prefix=$ac_optarg ;; 1184 1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1186 | --program-suf | --program-su | --program-s) 1187 ac_prev=program_suffix ;; 1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1190 program_suffix=$ac_optarg ;; 1191 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 ac_prev=program_transform_name ;; 1200 -program-transform-name=* | --program-transform-name=* \ 1201 | --program-transform-nam=* | --program-transform-na=* \ 1202 | --program-transform-n=* | --program-transform-=* \ 1203 | --program-transform=* | --program-transfor=* \ 1204 | --program-transfo=* | --program-transf=* \ 1205 | --program-trans=* | --program-tran=* \ 1206 | --progr-tra=* | --program-tr=* | --program-t=*) 1207 program_transform_name=$ac_optarg ;; 1208 1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1210 ac_prev=pdfdir ;; 1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1212 pdfdir=$ac_optarg ;; 1213 1214 -psdir | --psdir | --psdi | --psd | --ps) 1215 ac_prev=psdir ;; 1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1217 psdir=$ac_optarg ;; 1218 1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1220 | -silent | --silent | --silen | --sile | --sil) 1221 silent=yes ;; 1222 1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1224 ac_prev=sbindir ;; 1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1226 | --sbi=* | --sb=*) 1227 sbindir=$ac_optarg ;; 1228 1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1231 | --sharedst | --shareds | --shared | --share | --shar \ 1232 | --sha | --sh) 1233 ac_prev=sharedstatedir ;; 1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1237 | --sha=* | --sh=*) 1238 sharedstatedir=$ac_optarg ;; 1239 1240 -site | --site | --sit) 1241 ac_prev=site ;; 1242 -site=* | --site=* | --sit=*) 1243 site=$ac_optarg ;; 1244 1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1246 ac_prev=srcdir ;; 1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1248 srcdir=$ac_optarg ;; 1249 1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1251 | --syscon | --sysco | --sysc | --sys | --sy) 1252 ac_prev=sysconfdir ;; 1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1255 sysconfdir=$ac_optarg ;; 1256 1257 -target | --target | --targe | --targ | --tar | --ta | --t) 1258 ac_prev=target_alias ;; 1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1260 target_alias=$ac_optarg ;; 1261 1262 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1263 verbose=yes ;; 1264 1265 -version | --version | --versio | --versi | --vers | -V) 1266 ac_init_version=: ;; 1267 1268 -with-* | --with-*) 1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1272 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1273 { (exit 1); exit 1; }; } 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278"with_$ac_useropt" 1279"*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=\$ac_optarg ;; 1284 1285 -without-* | --without-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1290 { (exit 1); exit 1; }; } 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=no ;; 1301 1302 --x) 1303 # Obsolete; use --with-x. 1304 with_x=yes ;; 1305 1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1307 | --x-incl | --x-inc | --x-in | --x-i) 1308 ac_prev=x_includes ;; 1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1311 x_includes=$ac_optarg ;; 1312 1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1315 ac_prev=x_libraries ;; 1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1318 x_libraries=$ac_optarg ;; 1319 1320 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1321Try \`$0 --help' for more information." >&2 1322 { (exit 1); exit 1; }; } 1323 ;; 1324 1325 *=*) 1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1329 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1330 { (exit 1); exit 1; }; } 1331 eval $ac_envvar=\$ac_optarg 1332 export $ac_envvar ;; 1333 1334 *) 1335 # FIXME: should be removed in autoconf 3.0. 1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1340 ;; 1341 1342 esac 1343done 1344 1345if test -n "$ac_prev"; then 1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1347 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1348 { (exit 1); exit 1; }; } 1349fi 1350 1351if test -n "$ac_unrecognized_opts"; then 1352 case $enable_option_checking in 1353 no) ;; 1354 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1355 { (exit 1); exit 1; }; } ;; 1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1357 esac 1358fi 1359 1360# Check all directory arguments for consistency. 1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1362 datadir sysconfdir sharedstatedir localstatedir includedir \ 1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1364 libdir localedir mandir 1365do 1366 eval ac_val=\$$ac_var 1367 # Remove trailing slashes. 1368 case $ac_val in 1369 */ ) 1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1371 eval $ac_var=\$ac_val;; 1372 esac 1373 # Be sure to have absolute directory names. 1374 case $ac_val in 1375 [\\/$]* | ?:[\\/]* ) continue;; 1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1377 esac 1378 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1379 { (exit 1); exit 1; }; } 1380done 1381 1382# There might be people who depend on the old broken behavior: `$host' 1383# used to hold the argument of --host etc. 1384# FIXME: To remove some day. 1385build=$build_alias 1386host=$host_alias 1387target=$target_alias 1388 1389# FIXME: To remove some day. 1390if test "x$host_alias" != x; then 1391 if test "x$build_alias" = x; then 1392 cross_compiling=maybe 1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1394 If a cross compiler is detected then cross compile mode will be used." >&2 1395 elif test "x$build_alias" != "x$host_alias"; then 1396 cross_compiling=yes 1397 fi 1398fi 1399 1400ac_tool_prefix= 1401test -n "$host_alias" && ac_tool_prefix=$host_alias- 1402 1403test "$silent" = yes && exec 6>/dev/null 1404 1405 1406ac_pwd=`pwd` && test -n "$ac_pwd" && 1407ac_ls_di=`ls -di .` && 1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1409 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1410 { (exit 1); exit 1; }; } 1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1412 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1413 { (exit 1); exit 1; }; } 1414 1415 1416# Find the source files, if location was not specified. 1417if test -z "$srcdir"; then 1418 ac_srcdir_defaulted=yes 1419 # Try the directory containing this script, then the parent directory. 1420 ac_confdir=`$as_dirname -- "$as_myself" || 1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1422 X"$as_myself" : 'X\(//\)[^/]' \| \ 1423 X"$as_myself" : 'X\(//\)$' \| \ 1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1425$as_echo X"$as_myself" | 1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)[^/].*/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\/\)$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\).*/{ 1439 s//\1/ 1440 q 1441 } 1442 s/.*/./; q'` 1443 srcdir=$ac_confdir 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 srcdir=.. 1446 fi 1447else 1448 ac_srcdir_defaulted=no 1449fi 1450if test ! -r "$srcdir/$ac_unique_file"; then 1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1452 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1453 { (exit 1); exit 1; }; } 1454fi 1455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1456ac_abs_confdir=`( 1457 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1458 { (exit 1); exit 1; }; } 1459 pwd)` 1460# When building in place, set srcdir=. 1461if test "$ac_abs_confdir" = "$ac_pwd"; then 1462 srcdir=. 1463fi 1464# Remove unnecessary trailing slashes from srcdir. 1465# Double slashes in file names in object file debugging info 1466# mess up M-x gdb in Emacs. 1467case $srcdir in 1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1469esac 1470for ac_var in $ac_precious_vars; do 1471 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_env_${ac_var}_value=\$${ac_var} 1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1475done 1476 1477# 1478# Report the --help message. 1479# 1480if test "$ac_init_help" = "long"; then 1481 # Omit some internal or obsolete options to make the list less imposing. 1482 # This message is too long to be a string in the A/UX 3.1 sh. 1483 cat <<_ACEOF 1484\`configure' configures libdaemon 0.14 to adapt to many kinds of systems. 1485 1486Usage: $0 [OPTION]... [VAR=VALUE]... 1487 1488To assign environment variables (e.g., CC, CFLAGS...), specify them as 1489VAR=VALUE. See below for descriptions of some of the useful variables. 1490 1491Defaults for the options are specified in brackets. 1492 1493Configuration: 1494 -h, --help display this help and exit 1495 --help=short display options specific to this package 1496 --help=recursive display the short help of all the included packages 1497 -V, --version display version information and exit 1498 -q, --quiet, --silent do not print \`checking...' messages 1499 --cache-file=FILE cache test results in FILE [disabled] 1500 -C, --config-cache alias for \`--cache-file=config.cache' 1501 -n, --no-create do not create output files 1502 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1503 1504Installation directories: 1505 --prefix=PREFIX install architecture-independent files in PREFIX 1506 [$ac_default_prefix] 1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1508 [PREFIX] 1509 1510By default, \`make install' will install all the files in 1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1512an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1513for instance \`--prefix=\$HOME'. 1514 1515For better control, use the options below. 1516 1517Fine tuning of the installation directories: 1518 --bindir=DIR user executables [EPREFIX/bin] 1519 --sbindir=DIR system admin executables [EPREFIX/sbin] 1520 --libexecdir=DIR program executables [EPREFIX/libexec] 1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1524 --libdir=DIR object code libraries [EPREFIX/lib] 1525 --includedir=DIR C header files [PREFIX/include] 1526 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1529 --infodir=DIR info documentation [DATAROOTDIR/info] 1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1531 --mandir=DIR man documentation [DATAROOTDIR/man] 1532 --docdir=DIR documentation root [DATAROOTDIR/doc/libdaemon] 1533 --htmldir=DIR html documentation [DOCDIR] 1534 --dvidir=DIR dvi documentation [DOCDIR] 1535 --pdfdir=DIR pdf documentation [DOCDIR] 1536 --psdir=DIR ps documentation [DOCDIR] 1537_ACEOF 1538 1539 cat <<\_ACEOF 1540 1541Program names: 1542 --program-prefix=PREFIX prepend PREFIX to installed program names 1543 --program-suffix=SUFFIX append SUFFIX to installed program names 1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1545 1546System types: 1547 --build=BUILD configure for building on BUILD [guessed] 1548 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1549_ACEOF 1550fi 1551 1552if test -n "$ac_init_help"; then 1553 case $ac_init_help in 1554 short | recursive ) echo "Configuration of libdaemon 0.14:";; 1555 esac 1556 cat <<\_ACEOF 1557 1558Optional Features: 1559 --disable-option-checking ignore unrecognized --enable/--with options 1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1562 --enable-silent-rules less verbose build output (undo: `make V=1') 1563 --disable-silent-rules verbose build output (undo: `make V=0') 1564 --disable-dependency-tracking speeds up one-time build 1565 --enable-dependency-tracking do not reject slow dependency extractors 1566 --enable-shared[=PKGS] build shared libraries [default=yes] 1567 --enable-static[=PKGS] build static libraries [default=yes] 1568 --enable-fast-install[=PKGS] 1569 optimize for fast installation [default=yes] 1570 --disable-libtool-lock avoid locking (might break parallel builds) 1571 --disable-assert turn off assertions 1572 --disable-largefile omit support for large files 1573 --disable-lynx Turn off lynx usage for documentation generation 1574 --disable-examples Don't build examples during make 1575 1576Optional Packages: 1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1579 --with-pic try to use only PIC/non-PIC objects [default=use 1580 both] 1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1582 1583Some influential environment variables: 1584 CC C compiler command 1585 CFLAGS C compiler flags 1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1587 nonstandard directory <lib dir> 1588 LIBS libraries to pass to the linker, e.g. -l<library> 1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1590 you have headers in a nonstandard directory <include dir> 1591 CPP C preprocessor 1592 1593Use these variables to override the choices made by `configure' or to help 1594it to find libraries and programs with nonstandard names/locations. 1595 1596Report bugs to <mzqnrzba (at) 0pointer (dot) de>. 1597_ACEOF 1598ac_status=$? 1599fi 1600 1601if test "$ac_init_help" = "recursive"; then 1602 # If there are subdirs, report their specific --help. 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1604 test -d "$ac_dir" || 1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1606 continue 1607 ac_builddir=. 1608 1609case "$ac_dir" in 1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611*) 1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1613 # A ".." for each directory in $ac_dir_suffix. 1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1615 case $ac_top_builddir_sub in 1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1618 esac ;; 1619esac 1620ac_abs_top_builddir=$ac_pwd 1621ac_abs_builddir=$ac_pwd$ac_dir_suffix 1622# for backward compatibility: 1623ac_top_builddir=$ac_top_build_prefix 1624 1625case $srcdir in 1626 .) # We are building in place. 1627 ac_srcdir=. 1628 ac_top_srcdir=$ac_top_builddir_sub 1629 ac_abs_top_srcdir=$ac_pwd ;; 1630 [\\/]* | ?:[\\/]* ) # Absolute name. 1631 ac_srcdir=$srcdir$ac_dir_suffix; 1632 ac_top_srcdir=$srcdir 1633 ac_abs_top_srcdir=$srcdir ;; 1634 *) # Relative name. 1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1636 ac_top_srcdir=$ac_top_build_prefix$srcdir 1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1638esac 1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1640 1641 cd "$ac_dir" || { ac_status=$?; continue; } 1642 # Check for guested configure. 1643 if test -f "$ac_srcdir/configure.gnu"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1646 elif test -f "$ac_srcdir/configure"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure" --help=recursive 1649 else 1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1651 fi || ac_status=$? 1652 cd "$ac_pwd" || { ac_status=$?; break; } 1653 done 1654fi 1655 1656test -n "$ac_init_help" && exit $ac_status 1657if $ac_init_version; then 1658 cat <<\_ACEOF 1659libdaemon configure 0.14 1660generated by GNU Autoconf 2.63 1661 1662Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16632002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1664This configure script is free software; the Free Software Foundation 1665gives unlimited permission to copy, distribute and modify it. 1666_ACEOF 1667 exit 1668fi 1669cat >config.log <<_ACEOF 1670This file contains any messages produced by compilers while 1671running configure, to aid debugging if configure makes a mistake. 1672 1673It was created by libdaemon $as_me 0.14, which was 1674generated by GNU Autoconf 2.63. Invocation command line was 1675 1676 $ $0 $@ 1677 1678_ACEOF 1679exec 5>>config.log 1680{ 1681cat <<_ASUNAME 1682## --------- ## 1683## Platform. ## 1684## --------- ## 1685 1686hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1687uname -m = `(uname -m) 2>/dev/null || echo unknown` 1688uname -r = `(uname -r) 2>/dev/null || echo unknown` 1689uname -s = `(uname -s) 2>/dev/null || echo unknown` 1690uname -v = `(uname -v) 2>/dev/null || echo unknown` 1691 1692/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1693/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1694 1695/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1696/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1697/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1698/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1699/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1700/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1701/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1702 1703_ASUNAME 1704 1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1706for as_dir in $PATH 1707do 1708 IFS=$as_save_IFS 1709 test -z "$as_dir" && as_dir=. 1710 $as_echo "PATH: $as_dir" 1711done 1712IFS=$as_save_IFS 1713 1714} >&5 1715 1716cat >&5 <<_ACEOF 1717 1718 1719## ----------- ## 1720## Core tests. ## 1721## ----------- ## 1722 1723_ACEOF 1724 1725 1726# Keep a trace of the command line. 1727# Strip out --no-create and --no-recursion so they do not pile up. 1728# Strip out --silent because we don't want to record it for future runs. 1729# Also quote any args containing shell meta-characters. 1730# Make two passes to allow for proper duplicate-argument suppression. 1731ac_configure_args= 1732ac_configure_args0= 1733ac_configure_args1= 1734ac_must_keep_next=false 1735for ac_pass in 1 2 1736do 1737 for ac_arg 1738 do 1739 case $ac_arg in 1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1742 | -silent | --silent | --silen | --sile | --sil) 1743 continue ;; 1744 *\'*) 1745 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1746 esac 1747 case $ac_pass in 1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1749 2) 1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1751 if test $ac_must_keep_next = true; then 1752 ac_must_keep_next=false # Got value, back to normal. 1753 else 1754 case $ac_arg in 1755 *=* | --config-cache | -C | -disable-* | --disable-* \ 1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1758 | -with-* | --with-* | -without-* | --without-* | --x) 1759 case "$ac_configure_args0 " in 1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1761 esac 1762 ;; 1763 -* ) ac_must_keep_next=true ;; 1764 esac 1765 fi 1766 ac_configure_args="$ac_configure_args '$ac_arg'" 1767 ;; 1768 esac 1769 done 1770done 1771$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1772$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1773 1774# When interrupted or exit'd, cleanup temporary files, and complete 1775# config.log. We remove comments because anyway the quotes in there 1776# would cause problems or look ugly. 1777# WARNING: Use '\'' to represent an apostrophe within the trap. 1778# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1779trap 'exit_status=$? 1780 # Save into config.log some information that might help in debugging. 1781 { 1782 echo 1783 1784 cat <<\_ASBOX 1785## ---------------- ## 1786## Cache variables. ## 1787## ---------------- ## 1788_ASBOX 1789 echo 1790 # The following way of writing the cache mishandles newlines in values, 1791( 1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1793 eval ac_val=\$$ac_var 1794 case $ac_val in #( 1795 *${as_nl}*) 1796 case $ac_var in #( 1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1798$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1799 esac 1800 case $ac_var in #( 1801 _ | IFS | as_nl) ;; #( 1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1803 *) $as_unset $ac_var ;; 1804 esac ;; 1805 esac 1806 done 1807 (set) 2>&1 | 1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1809 *${as_nl}ac_space=\ *) 1810 sed -n \ 1811 "s/'\''/'\''\\\\'\'''\''/g; 1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1813 ;; #( 1814 *) 1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1816 ;; 1817 esac | 1818 sort 1819) 1820 echo 1821 1822 cat <<\_ASBOX 1823## ----------------- ## 1824## Output variables. ## 1825## ----------------- ## 1826_ASBOX 1827 echo 1828 for ac_var in $ac_subst_vars 1829 do 1830 eval ac_val=\$$ac_var 1831 case $ac_val in 1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1833 esac 1834 $as_echo "$ac_var='\''$ac_val'\''" 1835 done | sort 1836 echo 1837 1838 if test -n "$ac_subst_files"; then 1839 cat <<\_ASBOX 1840## ------------------- ## 1841## File substitutions. ## 1842## ------------------- ## 1843_ASBOX 1844 echo 1845 for ac_var in $ac_subst_files 1846 do 1847 eval ac_val=\$$ac_var 1848 case $ac_val in 1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1850 esac 1851 $as_echo "$ac_var='\''$ac_val'\''" 1852 done | sort 1853 echo 1854 fi 1855 1856 if test -s confdefs.h; then 1857 cat <<\_ASBOX 1858## ----------- ## 1859## confdefs.h. ## 1860## ----------- ## 1861_ASBOX 1862 echo 1863 cat confdefs.h 1864 echo 1865 fi 1866 test "$ac_signal" != 0 && 1867 $as_echo "$as_me: caught signal $ac_signal" 1868 $as_echo "$as_me: exit $exit_status" 1869 } >&5 1870 rm -f core *.core core.conftest.* && 1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1872 exit $exit_status 1873' 0 1874for ac_signal in 1 2 13 15; do 1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1876done 1877ac_signal=0 1878 1879# confdefs.h avoids OS command line length limits that DEFS can exceed. 1880rm -f -r conftest* confdefs.h 1881 1882# Predefined preprocessor variables. 1883 1884cat >>confdefs.h <<_ACEOF 1885#define PACKAGE_NAME "$PACKAGE_NAME" 1886_ACEOF 1887 1888 1889cat >>confdefs.h <<_ACEOF 1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1891_ACEOF 1892 1893 1894cat >>confdefs.h <<_ACEOF 1895#define PACKAGE_VERSION "$PACKAGE_VERSION" 1896_ACEOF 1897 1898 1899cat >>confdefs.h <<_ACEOF 1900#define PACKAGE_STRING "$PACKAGE_STRING" 1901_ACEOF 1902 1903 1904cat >>confdefs.h <<_ACEOF 1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1906_ACEOF 1907 1908 1909# Let the site file select an alternate cache file if it wants to. 1910# Prefer an explicitly selected file to automatically selected ones. 1911ac_site_file1=NONE 1912ac_site_file2=NONE 1913if test -n "$CONFIG_SITE"; then 1914 ac_site_file1=$CONFIG_SITE 1915elif test "x$prefix" != xNONE; then 1916 ac_site_file1=$prefix/share/config.site 1917 ac_site_file2=$prefix/etc/config.site 1918else 1919 ac_site_file1=$ac_default_prefix/share/config.site 1920 ac_site_file2=$ac_default_prefix/etc/config.site 1921fi 1922for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1923do 1924 test "x$ac_site_file" = xNONE && continue 1925 if test -r "$ac_site_file"; then 1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1927$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1928 sed 's/^/| /' "$ac_site_file" >&5 1929 . "$ac_site_file" 1930 fi 1931done 1932 1933if test -r "$cache_file"; then 1934 # Some versions of bash will fail to source /dev/null (special 1935 # files actually), so we avoid doing that. 1936 if test -f "$cache_file"; then 1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1938$as_echo "$as_me: loading cache $cache_file" >&6;} 1939 case $cache_file in 1940 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1941 *) . "./$cache_file";; 1942 esac 1943 fi 1944else 1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1946$as_echo "$as_me: creating cache $cache_file" >&6;} 1947 >$cache_file 1948fi 1949 1950# Check that the precious variables saved in the cache have kept the same 1951# value. 1952ac_cache_corrupted=false 1953for ac_var in $ac_precious_vars; do 1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1955 eval ac_new_set=\$ac_env_${ac_var}_set 1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1957 eval ac_new_val=\$ac_env_${ac_var}_value 1958 case $ac_old_set,$ac_new_set in 1959 set,) 1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1961$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1962 ac_cache_corrupted=: ;; 1963 ,set) 1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1965$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1966 ac_cache_corrupted=: ;; 1967 ,);; 1968 *) 1969 if test "x$ac_old_val" != "x$ac_new_val"; then 1970 # differences in whitespace do not lead to failure. 1971 ac_old_val_w=`echo x $ac_old_val` 1972 ac_new_val_w=`echo x $ac_new_val` 1973 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1975$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1976 ac_cache_corrupted=: 1977 else 1978 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1979$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1980 eval $ac_var=\$ac_old_val 1981 fi 1982 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1983$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1984 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1985$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1986 fi;; 1987 esac 1988 # Pass precious variables to config.status. 1989 if test "$ac_new_set" = set; then 1990 case $ac_new_val in 1991 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1992 *) ac_arg=$ac_var=$ac_new_val ;; 1993 esac 1994 case " $ac_configure_args " in 1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1996 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1997 esac 1998 fi 1999done 2000if $ac_cache_corrupted; then 2001 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2003 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2004$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2005 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2006$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2007 { (exit 1); exit 1; }; } 2008fi 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034ac_ext=c 2035ac_cpp='$CPP $CPPFLAGS' 2036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2038ac_compiler_gnu=$ac_cv_c_compiler_gnu 2039 2040 2041 2042ac_config_headers="$ac_config_headers config.h" 2043 2044 2045 2046am__api_version='1.11' 2047 2048ac_aux_dir= 2049for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2050 if test -f "$ac_dir/install-sh"; then 2051 ac_aux_dir=$ac_dir 2052 ac_install_sh="$ac_aux_dir/install-sh -c" 2053 break 2054 elif test -f "$ac_dir/install.sh"; then 2055 ac_aux_dir=$ac_dir 2056 ac_install_sh="$ac_aux_dir/install.sh -c" 2057 break 2058 elif test -f "$ac_dir/shtool"; then 2059 ac_aux_dir=$ac_dir 2060 ac_install_sh="$ac_aux_dir/shtool install -c" 2061 break 2062 fi 2063done 2064if test -z "$ac_aux_dir"; then 2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2066$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2067 { (exit 1); exit 1; }; } 2068fi 2069 2070# These three variables are undocumented and unsupported, 2071# and are intended to be withdrawn in a future Autoconf release. 2072# They can cause serious problems if a builder's source tree is in a directory 2073# whose full name contains unusual characters. 2074ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2075ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2076ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2077 2078 2079# Find a good install program. We prefer a C program (faster), 2080# so one script is as good as another. But avoid the broken or 2081# incompatible versions: 2082# SysV /etc/install, /usr/sbin/install 2083# SunOS /usr/etc/install 2084# IRIX /sbin/install 2085# AIX /bin/install 2086# AmigaOS /C/install, which installs bootblocks on floppy discs 2087# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2088# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2089# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2090# OS/2's system install, which has a completely different semantic 2091# ./install, which can be erroneously created by make from ./install.sh. 2092# Reject install programs that cannot install multiple files. 2093{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2094$as_echo_n "checking for a BSD-compatible install... " >&6; } 2095if test -z "$INSTALL"; then 2096if test "${ac_cv_path_install+set}" = set; then 2097 $as_echo_n "(cached) " >&6 2098else 2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2100for as_dir in $PATH 2101do 2102 IFS=$as_save_IFS 2103 test -z "$as_dir" && as_dir=. 2104 # Account for people who put trailing slashes in PATH elements. 2105case $as_dir/ in 2106 ./ | .// | /cC/* | \ 2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2109 /usr/ucb/* ) ;; 2110 *) 2111 # OSF1 and SCO ODT 3.0 have their own names for install. 2112 # Don't use installbsd from OSF since it installs stuff as root 2113 # by default. 2114 for ac_prog in ginstall scoinst install; do 2115 for ac_exec_ext in '' $ac_executable_extensions; do 2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2117 if test $ac_prog = install && 2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2119 # AIX install. It has an incompatible calling convention. 2120 : 2121 elif test $ac_prog = install && 2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2123 # program-specific install script used by HP pwplus--don't use. 2124 : 2125 else 2126 rm -rf conftest.one conftest.two conftest.dir 2127 echo one > conftest.one 2128 echo two > conftest.two 2129 mkdir conftest.dir 2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2131 test -s conftest.one && test -s conftest.two && 2132 test -s conftest.dir/conftest.one && 2133 test -s conftest.dir/conftest.two 2134 then 2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2136 break 3 2137 fi 2138 fi 2139 fi 2140 done 2141 done 2142 ;; 2143esac 2144 2145done 2146IFS=$as_save_IFS 2147 2148rm -rf conftest.one conftest.two conftest.dir 2149 2150fi 2151 if test "${ac_cv_path_install+set}" = set; then 2152 INSTALL=$ac_cv_path_install 2153 else 2154 # As a last resort, use the slow shell script. Don't cache a 2155 # value for INSTALL within a source directory, because that will 2156 # break other packages using the cache if that directory is 2157 # removed, or if the value is a relative name. 2158 INSTALL=$ac_install_sh 2159 fi 2160fi 2161{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2162$as_echo "$INSTALL" >&6; } 2163 2164# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2165# It thinks the first close brace ends the variable substitution. 2166test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2167 2168test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2169 2170test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2171 2172{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2173$as_echo_n "checking whether build environment is sane... " >&6; } 2174# Just in case 2175sleep 1 2176echo timestamp > conftest.file 2177# Reject unsafe characters in $srcdir or the absolute working directory 2178# name. Accept space and tab only in the latter. 2179am_lf=' 2180' 2181case `pwd` in 2182 *[\\\"\#\$\&\'\`$am_lf]*) 2183 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2184$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2185 { (exit 1); exit 1; }; };; 2186esac 2187case $srcdir in 2188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2189 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2190$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2191 { (exit 1); exit 1; }; };; 2192esac 2193 2194# Do `set' in a subshell so we don't clobber the current shell's 2195# arguments. Must try -L first in case configure is actually a 2196# symlink; some systems play weird games with the mod time of symlinks 2197# (eg FreeBSD returns the mod time of the symlink's containing 2198# directory). 2199if ( 2200 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2201 if test "$*" = "X"; then 2202 # -L didn't work. 2203 set X `ls -t "$srcdir/configure" conftest.file` 2204 fi 2205 rm -f conftest.file 2206 if test "$*" != "X $srcdir/configure conftest.file" \ 2207 && test "$*" != "X conftest.file $srcdir/configure"; then 2208 2209 # If neither matched, then we have a broken ls. This can happen 2210 # if, for instance, CONFIG_SHELL is bash and it inherits a 2211 # broken ls alias from the environment. This has actually 2212 # happened. Such a system could not be considered "sane". 2213 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2214alias in your environment" >&5 2215$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2216alias in your environment" >&2;} 2217 { (exit 1); exit 1; }; } 2218 fi 2219 2220 test "$2" = conftest.file 2221 ) 2222then 2223 # Ok. 2224 : 2225else 2226 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2227Check your system clock" >&5 2228$as_echo "$as_me: error: newly created file is older than distributed files! 2229Check your system clock" >&2;} 2230 { (exit 1); exit 1; }; } 2231fi 2232{ $as_echo "$as_me:$LINENO: result: yes" >&5 2233$as_echo "yes" >&6; } 2234test "$program_prefix" != NONE && 2235 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2236# Use a double $ so make ignores it. 2237test "$program_suffix" != NONE && 2238 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2239# Double any \ or $. 2240# By default was `s,x,x', remove it if useless. 2241ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2242program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2243 2244# expand $ac_aux_dir to an absolute path 2245am_aux_dir=`cd $ac_aux_dir && pwd` 2246 2247if test x"${MISSING+set}" != xset; then 2248 case $am_aux_dir in 2249 *\ * | *\ *) 2250 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2251 *) 2252 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2253 esac 2254fi 2255# Use eval to expand $SHELL 2256if eval "$MISSING --run true"; then 2257 am_missing_run="$MISSING --run " 2258else 2259 am_missing_run= 2260 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2261$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2262fi 2263 2264if test x"${install_sh}" != xset; then 2265 case $am_aux_dir in 2266 *\ * | *\ *) 2267 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2268 *) 2269 install_sh="\${SHELL} $am_aux_dir/install-sh" 2270 esac 2271fi 2272 2273# Installed binaries are usually stripped using `strip' when the user 2274# run `make install-strip'. However `strip' might not be the right 2275# tool to use in cross-compilation environments, therefore Automake 2276# will honor the `STRIP' environment variable to overrule this program. 2277if test "$cross_compiling" != no; then 2278 if test -n "$ac_tool_prefix"; then 2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2280set dummy ${ac_tool_prefix}strip; ac_word=$2 2281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2282$as_echo_n "checking for $ac_word... " >&6; } 2283if test "${ac_cv_prog_STRIP+set}" = set; then 2284 $as_echo_n "(cached) " >&6 2285else 2286 if test -n "$STRIP"; then 2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301done 2302IFS=$as_save_IFS 2303 2304fi 2305fi 2306STRIP=$ac_cv_prog_STRIP 2307if test -n "$STRIP"; then 2308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2309$as_echo "$STRIP" >&6; } 2310else 2311 { $as_echo "$as_me:$LINENO: result: no" >&5 2312$as_echo "no" >&6; } 2313fi 2314 2315 2316fi 2317if test -z "$ac_cv_prog_STRIP"; then 2318 ac_ct_STRIP=$STRIP 2319 # Extract the first word of "strip", so it can be a program name with args. 2320set dummy strip; ac_word=$2 2321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2322$as_echo_n "checking for $ac_word... " >&6; } 2323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2324 $as_echo_n "(cached) " >&6 2325else 2326 if test -n "$ac_ct_STRIP"; then 2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2336 ac_cv_prog_ac_ct_STRIP="strip" 2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342IFS=$as_save_IFS 2343 2344fi 2345fi 2346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2347if test -n "$ac_ct_STRIP"; then 2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2349$as_echo "$ac_ct_STRIP" >&6; } 2350else 2351 { $as_echo "$as_me:$LINENO: result: no" >&5 2352$as_echo "no" >&6; } 2353fi 2354 2355 if test "x$ac_ct_STRIP" = x; then 2356 STRIP=":" 2357 else 2358 case $cross_compiling:$ac_tool_warned in 2359yes:) 2360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2362ac_tool_warned=yes ;; 2363esac 2364 STRIP=$ac_ct_STRIP 2365 fi 2366else 2367 STRIP="$ac_cv_prog_STRIP" 2368fi 2369 2370fi 2371INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2372 2373{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2374$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2375if test -z "$MKDIR_P"; then 2376 if test "${ac_cv_path_mkdir+set}" = set; then 2377 $as_echo_n "(cached) " >&6 2378else 2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 for ac_prog in mkdir gmkdir; do 2385 for ac_exec_ext in '' $ac_executable_extensions; do 2386 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2387 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2388 'mkdir (GNU coreutils) '* | \ 2389 'mkdir (coreutils) '* | \ 2390 'mkdir (fileutils) '4.1*) 2391 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2392 break 3;; 2393 esac 2394 done 2395 done 2396done 2397IFS=$as_save_IFS 2398 2399fi 2400 2401 if test "${ac_cv_path_mkdir+set}" = set; then 2402 MKDIR_P="$ac_cv_path_mkdir -p" 2403 else 2404 # As a last resort, use the slow shell script. Don't cache a 2405 # value for MKDIR_P within a source directory, because that will 2406 # break other packages using the cache if that directory is 2407 # removed, or if the value is a relative name. 2408 test -d ./--version && rmdir ./--version 2409 MKDIR_P="$ac_install_sh -d" 2410 fi 2411fi 2412{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2413$as_echo "$MKDIR_P" >&6; } 2414 2415mkdir_p="$MKDIR_P" 2416case $mkdir_p in 2417 [\\/$]* | ?:[\\/]*) ;; 2418 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2419esac 2420 2421for ac_prog in gawk mawk nawk awk 2422do 2423 # Extract the first word of "$ac_prog", so it can be a program name with args. 2424set dummy $ac_prog; ac_word=$2 2425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2426$as_echo_n "checking for $ac_word... " >&6; } 2427if test "${ac_cv_prog_AWK+set}" = set; then 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test -n "$AWK"; then 2431 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2432else 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2440 ac_cv_prog_AWK="$ac_prog" 2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2442 break 2 2443 fi 2444done 2445done 2446IFS=$as_save_IFS 2447 2448fi 2449fi 2450AWK=$ac_cv_prog_AWK 2451if test -n "$AWK"; then 2452 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2453$as_echo "$AWK" >&6; } 2454else 2455 { $as_echo "$as_me:$LINENO: result: no" >&5 2456$as_echo "no" >&6; } 2457fi 2458 2459 2460 test -n "$AWK" && break 2461done 2462 2463{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2464$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2465set x ${MAKE-make} 2466ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2467if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2468 $as_echo_n "(cached) " >&6 2469else 2470 cat >conftest.make <<\_ACEOF 2471SHELL = /bin/sh 2472all: 2473 @echo '@@@%%%=$(MAKE)=@@@%%%' 2474_ACEOF 2475# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2476case `${MAKE-make} -f conftest.make 2>/dev/null` in 2477 *@@@%%%=?*=@@@%%%*) 2478 eval ac_cv_prog_make_${ac_make}_set=yes;; 2479 *) 2480 eval ac_cv_prog_make_${ac_make}_set=no;; 2481esac 2482rm -f conftest.make 2483fi 2484if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2485 { $as_echo "$as_me:$LINENO: result: yes" >&5 2486$as_echo "yes" >&6; } 2487 SET_MAKE= 2488else 2489 { $as_echo "$as_me:$LINENO: result: no" >&5 2490$as_echo "no" >&6; } 2491 SET_MAKE="MAKE=${MAKE-make}" 2492fi 2493 2494rm -rf .tst 2>/dev/null 2495mkdir .tst 2>/dev/null 2496if test -d .tst; then 2497 am__leading_dot=. 2498else 2499 am__leading_dot=_ 2500fi 2501rmdir .tst 2>/dev/null 2502 2503if test "`cd $srcdir && pwd`" != "`pwd`"; then 2504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2505 # is not polluted with repeated "-I." 2506 am__isrc=' -I$(srcdir)' 2507 # test to see if srcdir already configured 2508 if test -f $srcdir/config.status; then 2509 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2510$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2511 { (exit 1); exit 1; }; } 2512 fi 2513fi 2514 2515# test whether we have cygpath 2516if test -z "$CYGPATH_W"; then 2517 if (cygpath --version) >/dev/null 2>/dev/null; then 2518 CYGPATH_W='cygpath -w' 2519 else 2520 CYGPATH_W=echo 2521 fi 2522fi 2523 2524 2525# Define the identity of the package. 2526 PACKAGE='libdaemon' 2527 VERSION='0.14' 2528 2529 2530cat >>confdefs.h <<_ACEOF 2531#define PACKAGE "$PACKAGE" 2532_ACEOF 2533 2534 2535cat >>confdefs.h <<_ACEOF 2536#define VERSION "$VERSION" 2537_ACEOF 2538 2539# Some tools Automake needs. 2540 2541ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2542 2543 2544AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2545 2546 2547AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2548 2549 2550AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2551 2552 2553MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2554 2555# We need awk for the "check" target. The system "awk" is bad on 2556# some platforms. 2557# Always define AMTAR for backward compatibility. 2558 2559AMTAR=${AMTAR-"${am_missing_run}tar"} 2560 2561am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2562 2563 2564 2565 2566 2567 2568PACKAGE_URL=http://0pointer.de/lennart/projects/libdaemon/ 2569 2570 2571LIBDAEMON_VERSION_INFO=5:0:5 2572 2573 2574if type -p stow > /dev/null && test -d /usr/local/stow ; then 2575 { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 2576$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} 2577 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" 2578fi 2579 2580# Check whether --enable-silent-rules was given. 2581if test "${enable_silent_rules+set}" = set; then 2582 enableval=$enable_silent_rules; 2583fi 2584 2585case $enable_silent_rules in 2586yes) AM_DEFAULT_VERBOSITY=0;; 2587no) AM_DEFAULT_VERBOSITY=1;; 2588*) AM_DEFAULT_VERBOSITY=0;; 2589esac 2590AM_BACKSLASH='\' 2591 2592 2593# Checks for programs. 2594ac_ext=c 2595ac_cpp='$CPP $CPPFLAGS' 2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2598ac_compiler_gnu=$ac_cv_c_compiler_gnu 2599if test -n "$ac_tool_prefix"; then 2600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2601set dummy ${ac_tool_prefix}gcc; ac_word=$2 2602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if test "${ac_cv_prog_CC+set}" = set; then 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$CC"; then 2608 ac_cv_prog_CC="$CC" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2617 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627CC=$ac_cv_prog_CC 2628if test -n "$CC"; then 2629 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2630$as_echo "$CC" >&6; } 2631else 2632 { $as_echo "$as_me:$LINENO: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 2637fi 2638if test -z "$ac_cv_prog_CC"; then 2639 ac_ct_CC=$CC 2640 # Extract the first word of "gcc", so it can be a program name with args. 2641set dummy gcc; ac_word=$2 2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2643$as_echo_n "checking for $ac_word... " >&6; } 2644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2645 $as_echo_n "(cached) " >&6 2646else 2647 if test -n "$ac_ct_CC"; then 2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2649else 2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 test -z "$as_dir" && as_dir=. 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2657 ac_cv_prog_ac_ct_CC="gcc" 2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2659 break 2 2660 fi 2661done 2662done 2663IFS=$as_save_IFS 2664 2665fi 2666fi 2667ac_ct_CC=$ac_cv_prog_ac_ct_CC 2668if test -n "$ac_ct_CC"; then 2669 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2670$as_echo "$ac_ct_CC" >&6; } 2671else 2672 { $as_echo "$as_me:$LINENO: result: no" >&5 2673$as_echo "no" >&6; } 2674fi 2675 2676 if test "x$ac_ct_CC" = x; then 2677 CC="" 2678 else 2679 case $cross_compiling:$ac_tool_warned in 2680yes:) 2681{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2683ac_tool_warned=yes ;; 2684esac 2685 CC=$ac_ct_CC 2686 fi 2687else 2688 CC="$ac_cv_prog_CC" 2689fi 2690 2691if test -z "$CC"; then 2692 if test -n "$ac_tool_prefix"; then 2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2694set dummy ${ac_tool_prefix}cc; ac_word=$2 2695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2696$as_echo_n "checking for $ac_word... " >&6; } 2697if test "${ac_cv_prog_CC+set}" = set; then 2698 $as_echo_n "(cached) " >&6 2699else 2700 if test -n "$CC"; then 2701 ac_cv_prog_CC="$CC" # Let the user override the test. 2702else 2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704for as_dir in $PATH 2705do 2706 IFS=$as_save_IFS 2707 test -z "$as_dir" && as_dir=. 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2710 ac_cv_prog_CC="${ac_tool_prefix}cc" 2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2712 break 2 2713 fi 2714done 2715done 2716IFS=$as_save_IFS 2717 2718fi 2719fi 2720CC=$ac_cv_prog_CC 2721if test -n "$CC"; then 2722 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2723$as_echo "$CC" >&6; } 2724else 2725 { $as_echo "$as_me:$LINENO: result: no" >&5 2726$as_echo "no" >&6; } 2727fi 2728 2729 2730 fi 2731fi 2732if test -z "$CC"; then 2733 # Extract the first word of "cc", so it can be a program name with args. 2734set dummy cc; ac_word=$2 2735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2736$as_echo_n "checking for $ac_word... " >&6; } 2737if test "${ac_cv_prog_CC+set}" = set; then 2738 $as_echo_n "(cached) " >&6 2739else 2740 if test -n "$CC"; then 2741 ac_cv_prog_CC="$CC" # Let the user override the test. 2742else 2743 ac_prog_rejected=no 2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745for as_dir in $PATH 2746do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2752 ac_prog_rejected=yes 2753 continue 2754 fi 2755 ac_cv_prog_CC="cc" 2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2757 break 2 2758 fi 2759done 2760done 2761IFS=$as_save_IFS 2762 2763if test $ac_prog_rejected = yes; then 2764 # We found a bogon in the path, so make sure we never use it. 2765 set dummy $ac_cv_prog_CC 2766 shift 2767 if test $# != 0; then 2768 # We chose a different compiler from the bogus one. 2769 # However, it has the same basename, so the bogon will be chosen 2770 # first if we set CC to just the basename; use the full file name. 2771 shift 2772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2773 fi 2774fi 2775fi 2776fi 2777CC=$ac_cv_prog_CC 2778if test -n "$CC"; then 2779 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2780$as_echo "$CC" >&6; } 2781else 2782 { $as_echo "$as_me:$LINENO: result: no" >&5 2783$as_echo "no" >&6; } 2784fi 2785 2786 2787fi 2788if test -z "$CC"; then 2789 if test -n "$ac_tool_prefix"; then 2790 for ac_prog in cl.exe 2791 do 2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2795$as_echo_n "checking for $ac_word... " >&6; } 2796if test "${ac_cv_prog_CC+set}" = set; then 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test -n "$CC"; then 2800 ac_cv_prog_CC="$CC" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819CC=$ac_cv_prog_CC 2820if test -n "$CC"; then 2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2822$as_echo "$CC" >&6; } 2823else 2824 { $as_echo "$as_me:$LINENO: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829 test -n "$CC" && break 2830 done 2831fi 2832if test -z "$CC"; then 2833 ac_ct_CC=$CC 2834 for ac_prog in cl.exe 2835do 2836 # Extract the first word of "$ac_prog", so it can be a program name with args. 2837set dummy $ac_prog; ac_word=$2 2838{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2839$as_echo_n "checking for $ac_word... " >&6; } 2840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2841 $as_echo_n "(cached) " >&6 2842else 2843 if test -n "$ac_ct_CC"; then 2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2845else 2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2853 ac_cv_prog_ac_ct_CC="$ac_prog" 2854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858done 2859IFS=$as_save_IFS 2860 2861fi 2862fi 2863ac_ct_CC=$ac_cv_prog_ac_ct_CC 2864if test -n "$ac_ct_CC"; then 2865 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2866$as_echo "$ac_ct_CC" >&6; } 2867else 2868 { $as_echo "$as_me:$LINENO: result: no" >&5 2869$as_echo "no" >&6; } 2870fi 2871 2872 2873 test -n "$ac_ct_CC" && break 2874done 2875 2876 if test "x$ac_ct_CC" = x; then 2877 CC="" 2878 else 2879 case $cross_compiling:$ac_tool_warned in 2880yes:) 2881{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2883ac_tool_warned=yes ;; 2884esac 2885 CC=$ac_ct_CC 2886 fi 2887fi 2888 2889fi 2890 2891 2892test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2894{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2895See \`config.log' for more details." >&5 2896$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2897See \`config.log' for more details." >&2;} 2898 { (exit 1); exit 1; }; }; } 2899 2900# Provide some information about the compiler. 2901$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2902set X $ac_compile 2903ac_compiler=$2 2904{ (ac_try="$ac_compiler --version >&5" 2905case "(($ac_try" in 2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2907 *) ac_try_echo=$ac_try;; 2908esac 2909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2910$as_echo "$ac_try_echo") >&5 2911 (eval "$ac_compiler --version >&5") 2>&5 2912 ac_status=$? 2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } 2915{ (ac_try="$ac_compiler -v >&5" 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_compiler -v >&5") 2>&5 2923 ac_status=$? 2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } 2926{ (ac_try="$ac_compiler -V >&5" 2927case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930esac 2931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2932$as_echo "$ac_try_echo") >&5 2933 (eval "$ac_compiler -V >&5") 2>&5 2934 ac_status=$? 2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); } 2937 2938cat >conftest.$ac_ext <<_ACEOF 2939/* confdefs.h. */ 2940_ACEOF 2941cat confdefs.h >>conftest.$ac_ext 2942cat >>conftest.$ac_ext <<_ACEOF 2943/* end confdefs.h. */ 2944 2945int 2946main () 2947{ 2948 2949 ; 2950 return 0; 2951} 2952_ACEOF 2953ac_clean_files_save=$ac_clean_files 2954ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2955# Try to create an executable without -o first, disregard a.out. 2956# It will help us diagnose broken compilers, and finding out an intuition 2957# of exeext. 2958{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2959$as_echo_n "checking for C compiler default output file name... " >&6; } 2960ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2961 2962# The possible output files: 2963ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2964 2965ac_rmfiles= 2966for ac_file in $ac_files 2967do 2968 case $ac_file in 2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2970 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2971 esac 2972done 2973rm -f $ac_rmfiles 2974 2975if { (ac_try="$ac_link_default" 2976case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2981$as_echo "$ac_try_echo") >&5 2982 (eval "$ac_link_default") 2>&5 2983 ac_status=$? 2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; then 2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2987# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2988# in a Makefile. We should not override ac_cv_exeext if it was cached, 2989# so that the user can short-circuit this test for compilers unknown to 2990# Autoconf. 2991for ac_file in $ac_files '' 2992do 2993 test -f "$ac_file" || continue 2994 case $ac_file in 2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2996 ;; 2997 [ab].out ) 2998 # We found the default executable, but exeext='' is most 2999 # certainly right. 3000 break;; 3001 *.* ) 3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3003 then :; else 3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3005 fi 3006 # We set ac_cv_exeext here because the later test for it is not 3007 # safe: cross compilers may not add the suffix if given an `-o' 3008 # argument, so we may need to know it at that point already. 3009 # Even if this section looks crufty: it has the advantage of 3010 # actually working. 3011 break;; 3012 * ) 3013 break;; 3014 esac 3015done 3016test "$ac_cv_exeext" = no && ac_cv_exeext= 3017 3018else 3019 ac_file='' 3020fi 3021 3022{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3023$as_echo "$ac_file" >&6; } 3024if test -z "$ac_file"; then 3025 $as_echo "$as_me: failed program was:" >&5 3026sed 's/^/| /' conftest.$ac_ext >&5 3027 3028{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3030{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3031See \`config.log' for more details." >&5 3032$as_echo "$as_me: error: C compiler cannot create executables 3033See \`config.log' for more details." >&2;} 3034 { (exit 77); exit 77; }; }; } 3035fi 3036 3037ac_exeext=$ac_cv_exeext 3038 3039# Check that the compiler produces executables we can run. If not, either 3040# the compiler is broken, or we cross compile. 3041{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3042$as_echo_n "checking whether the C compiler works... " >&6; } 3043# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3044# If not cross compiling, check that we can run a simple program. 3045if test "$cross_compiling" != yes; then 3046 if { ac_try='./$ac_file' 3047 { (case "(($ac_try" in 3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3049 *) ac_try_echo=$ac_try;; 3050esac 3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3052$as_echo "$ac_try_echo") >&5 3053 (eval "$ac_try") 2>&5 3054 ac_status=$? 3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; }; then 3057 cross_compiling=no 3058 else 3059 if test "$cross_compiling" = maybe; then 3060 cross_compiling=yes 3061 else 3062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3064{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3065If you meant to cross compile, use \`--host'. 3066See \`config.log' for more details." >&5 3067$as_echo "$as_me: error: cannot run C compiled programs. 3068If you meant to cross compile, use \`--host'. 3069See \`config.log' for more details." >&2;} 3070 { (exit 1); exit 1; }; }; } 3071 fi 3072 fi 3073fi 3074{ $as_echo "$as_me:$LINENO: result: yes" >&5 3075$as_echo "yes" >&6; } 3076 3077rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3078ac_clean_files=$ac_clean_files_save 3079# Check that the compiler produces executables we can run. If not, either 3080# the compiler is broken, or we cross compile. 3081{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3082$as_echo_n "checking whether we are cross compiling... " >&6; } 3083{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3084$as_echo "$cross_compiling" >&6; } 3085 3086{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3087$as_echo_n "checking for suffix of executables... " >&6; } 3088if { (ac_try="$ac_link" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3094$as_echo "$ac_try_echo") >&5 3095 (eval "$ac_link") 2>&5 3096 ac_status=$? 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; then 3099 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3100# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3101# work properly (i.e., refer to `conftest.exe'), while it won't with 3102# `rm'. 3103for ac_file in conftest.exe conftest conftest.*; do 3104 test -f "$ac_file" || continue 3105 case $ac_file in 3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3108 break;; 3109 * ) break;; 3110 esac 3111done 3112else 3113 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3115{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3116See \`config.log' for more details." >&5 3117$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3118See \`config.log' for more details." >&2;} 3119 { (exit 1); exit 1; }; }; } 3120fi 3121 3122rm -f conftest$ac_cv_exeext 3123{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3124$as_echo "$ac_cv_exeext" >&6; } 3125 3126rm -f conftest.$ac_ext 3127EXEEXT=$ac_cv_exeext 3128ac_exeext=$EXEEXT 3129{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3130$as_echo_n "checking for suffix of object files... " >&6; } 3131if test "${ac_cv_objext+set}" = set; then 3132 $as_echo_n "(cached) " >&6 3133else 3134 cat >conftest.$ac_ext <<_ACEOF 3135/* confdefs.h. */ 3136_ACEOF 3137cat confdefs.h >>conftest.$ac_ext 3138cat >>conftest.$ac_ext <<_ACEOF 3139/* end confdefs.h. */ 3140 3141int 3142main () 3143{ 3144 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149rm -f conftest.o conftest.obj 3150if { (ac_try="$ac_compile" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3156$as_echo "$ac_try_echo") >&5 3157 (eval "$ac_compile") 2>&5 3158 ac_status=$? 3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); }; then 3161 for ac_file in conftest.o conftest.obj conftest.*; do 3162 test -f "$ac_file" || continue; 3163 case $ac_file in 3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3166 break;; 3167 esac 3168done 3169else 3170 $as_echo "$as_me: failed program was:" >&5 3171sed 's/^/| /' conftest.$ac_ext >&5 3172 3173{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3175{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3176See \`config.log' for more details." >&5 3177$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3178See \`config.log' for more details." >&2;} 3179 { (exit 1); exit 1; }; }; } 3180fi 3181 3182rm -f conftest.$ac_cv_objext conftest.$ac_ext 3183fi 3184{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3185$as_echo "$ac_cv_objext" >&6; } 3186OBJEXT=$ac_cv_objext 3187ac_objext=$OBJEXT 3188{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3189$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3190if test "${ac_cv_c_compiler_gnu+set}" = set; then 3191 $as_echo_n "(cached) " >&6 3192else 3193 cat >conftest.$ac_ext <<_ACEOF 3194/* confdefs.h. */ 3195_ACEOF 3196cat confdefs.h >>conftest.$ac_ext 3197cat >>conftest.$ac_ext <<_ACEOF 3198/* end confdefs.h. */ 3199 3200int 3201main () 3202{ 3203#ifndef __GNUC__ 3204 choke me 3205#endif 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211rm -f conftest.$ac_objext 3212if { (ac_try="$ac_compile" 3213case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216esac 3217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3218$as_echo "$ac_try_echo") >&5 3219 (eval "$ac_compile") 2>conftest.er1 3220 ac_status=$? 3221 grep -v '^ *+' conftest.er1 >conftest.err 3222 rm -f conftest.er1 3223 cat conftest.err >&5 3224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); } && { 3226 test -z "$ac_c_werror_flag" || 3227 test ! -s conftest.err 3228 } && test -s conftest.$ac_objext; then 3229 ac_compiler_gnu=yes 3230else 3231 $as_echo "$as_me: failed program was:" >&5 3232sed 's/^/| /' conftest.$ac_ext >&5 3233 3234 ac_compiler_gnu=no 3235fi 3236 3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3238ac_cv_c_compiler_gnu=$ac_compiler_gnu 3239 3240fi 3241{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3242$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3243if test $ac_compiler_gnu = yes; then 3244 GCC=yes 3245else 3246 GCC= 3247fi 3248ac_test_CFLAGS=${CFLAGS+set} 3249ac_save_CFLAGS=$CFLAGS 3250{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3251$as_echo_n "checking whether $CC accepts -g... " >&6; } 3252if test "${ac_cv_prog_cc_g+set}" = set; then 3253 $as_echo_n "(cached) " >&6 3254else 3255 ac_save_c_werror_flag=$ac_c_werror_flag 3256 ac_c_werror_flag=yes 3257 ac_cv_prog_cc_g=no 3258 CFLAGS="-g" 3259 cat >conftest.$ac_ext <<_ACEOF 3260/* confdefs.h. */ 3261_ACEOF 3262cat confdefs.h >>conftest.$ac_ext 3263cat >>conftest.$ac_ext <<_ACEOF 3264/* end confdefs.h. */ 3265 3266int 3267main () 3268{ 3269 3270 ; 3271 return 0; 3272} 3273_ACEOF 3274rm -f conftest.$ac_objext 3275if { (ac_try="$ac_compile" 3276case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279esac 3280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3281$as_echo "$ac_try_echo") >&5 3282 (eval "$ac_compile") 2>conftest.er1 3283 ac_status=$? 3284 grep -v '^ *+' conftest.er1 >conftest.err 3285 rm -f conftest.er1 3286 cat conftest.err >&5 3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3288 (exit $ac_status); } && { 3289 test -z "$ac_c_werror_flag" || 3290 test ! -s conftest.err 3291 } && test -s conftest.$ac_objext; then 3292 ac_cv_prog_cc_g=yes 3293else 3294 $as_echo "$as_me: failed program was:" >&5 3295sed 's/^/| /' conftest.$ac_ext >&5 3296 3297 CFLAGS="" 3298 cat >conftest.$ac_ext <<_ACEOF 3299/* confdefs.h. */ 3300_ACEOF 3301cat confdefs.h >>conftest.$ac_ext 3302cat >>conftest.$ac_ext <<_ACEOF 3303/* end confdefs.h. */ 3304 3305int 3306main () 3307{ 3308 3309 ; 3310 return 0; 3311} 3312_ACEOF 3313rm -f conftest.$ac_objext 3314if { (ac_try="$ac_compile" 3315case "(($ac_try" in 3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3317 *) ac_try_echo=$ac_try;; 3318esac 3319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3320$as_echo "$ac_try_echo") >&5 3321 (eval "$ac_compile") 2>conftest.er1 3322 ac_status=$? 3323 grep -v '^ *+' conftest.er1 >conftest.err 3324 rm -f conftest.er1 3325 cat conftest.err >&5 3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); } && { 3328 test -z "$ac_c_werror_flag" || 3329 test ! -s conftest.err 3330 } && test -s conftest.$ac_objext; then 3331 : 3332else 3333 $as_echo "$as_me: failed program was:" >&5 3334sed 's/^/| /' conftest.$ac_ext >&5 3335 3336 ac_c_werror_flag=$ac_save_c_werror_flag 3337 CFLAGS="-g" 3338 cat >conftest.$ac_ext <<_ACEOF 3339/* confdefs.h. */ 3340_ACEOF 3341cat confdefs.h >>conftest.$ac_ext 3342cat >>conftest.$ac_ext <<_ACEOF 3343/* end confdefs.h. */ 3344 3345int 3346main () 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353rm -f conftest.$ac_objext 3354if { (ac_try="$ac_compile" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3360$as_echo "$ac_try_echo") >&5 3361 (eval "$ac_compile") 2>conftest.er1 3362 ac_status=$? 3363 grep -v '^ *+' conftest.er1 >conftest.err 3364 rm -f conftest.er1 3365 cat conftest.err >&5 3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3367 (exit $ac_status); } && { 3368 test -z "$ac_c_werror_flag" || 3369 test ! -s conftest.err 3370 } && test -s conftest.$ac_objext; then 3371 ac_cv_prog_cc_g=yes 3372else 3373 $as_echo "$as_me: failed program was:" >&5 3374sed 's/^/| /' conftest.$ac_ext >&5 3375 3376 3377fi 3378 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380fi 3381 3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3383fi 3384 3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3386 ac_c_werror_flag=$ac_save_c_werror_flag 3387fi 3388{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3389$as_echo "$ac_cv_prog_cc_g" >&6; } 3390if test "$ac_test_CFLAGS" = set; then 3391 CFLAGS=$ac_save_CFLAGS 3392elif test $ac_cv_prog_cc_g = yes; then 3393 if test "$GCC" = yes; then 3394 CFLAGS="-g -O2" 3395 else 3396 CFLAGS="-g" 3397 fi 3398else 3399 if test "$GCC" = yes; then 3400 CFLAGS="-O2" 3401 else 3402 CFLAGS= 3403 fi 3404fi 3405{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3407if test "${ac_cv_prog_cc_c89+set}" = set; then 3408 $as_echo_n "(cached) " >&6 3409else 3410 ac_cv_prog_cc_c89=no 3411ac_save_CC=$CC 3412cat >conftest.$ac_ext <<_ACEOF 3413/* confdefs.h. */ 3414_ACEOF 3415cat confdefs.h >>conftest.$ac_ext 3416cat >>conftest.$ac_ext <<_ACEOF 3417/* end confdefs.h. */ 3418#include <stdarg.h> 3419#include <stdio.h> 3420#include <sys/types.h> 3421#include <sys/stat.h> 3422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3423struct buf { int x; }; 3424FILE * (*rcsopen) (struct buf *, struct stat *, int); 3425static char *e (p, i) 3426 char **p; 3427 int i; 3428{ 3429 return p[i]; 3430} 3431static char *f (char * (*g) (char **, int), char **p, ...) 3432{ 3433 char *s; 3434 va_list v; 3435 va_start (v,p); 3436 s = g (p, va_arg (v,int)); 3437 va_end (v); 3438 return s; 3439} 3440 3441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3442 function prototypes and stuff, but not '\xHH' hex character constants. 3443 These don't provoke an error unfortunately, instead are silently treated 3444 as 'x'. The following induces an error, until -std is added to get 3445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3446 array size at least. It's necessary to write '\x00'==0 to get something 3447 that's true only with -std. */ 3448int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3449 3450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3451 inside strings and character constants. */ 3452#define FOO(x) 'x' 3453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3454 3455int test (int i, double x); 3456struct s1 {int (*f) (int a);}; 3457struct s2 {int (*f) (double a);}; 3458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3459int argc; 3460char **argv; 3461int 3462main () 3463{ 3464return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3465 ; 3466 return 0; 3467} 3468_ACEOF 3469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3471do 3472 CC="$ac_save_CC $ac_arg" 3473 rm -f conftest.$ac_objext 3474if { (ac_try="$ac_compile" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3480$as_echo "$ac_try_echo") >&5 3481 (eval "$ac_compile") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } && { 3488 test -z "$ac_c_werror_flag" || 3489 test ! -s conftest.err 3490 } && test -s conftest.$ac_objext; then 3491 ac_cv_prog_cc_c89=$ac_arg 3492else 3493 $as_echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496 3497fi 3498 3499rm -f core conftest.err conftest.$ac_objext 3500 test "x$ac_cv_prog_cc_c89" != "xno" && break 3501done 3502rm -f conftest.$ac_ext 3503CC=$ac_save_CC 3504 3505fi 3506# AC_CACHE_VAL 3507case "x$ac_cv_prog_cc_c89" in 3508 x) 3509 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3510$as_echo "none needed" >&6; } ;; 3511 xno) 3512 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3513$as_echo "unsupported" >&6; } ;; 3514 *) 3515 CC="$CC $ac_cv_prog_cc_c89" 3516 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3518esac 3519 3520 3521ac_ext=c 3522ac_cpp='$CPP $CPPFLAGS' 3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3525ac_compiler_gnu=$ac_cv_c_compiler_gnu 3526DEPDIR="${am__leading_dot}deps" 3527 3528ac_config_commands="$ac_config_commands depfiles" 3529 3530 3531am_make=${MAKE-make} 3532cat > confinc << 'END' 3533am__doit: 3534 @echo this is the am__doit target 3535.PHONY: am__doit 3536END 3537# If we don't find an include directive, just comment out the code. 3538{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3539$as_echo_n "checking for style of include used by $am_make... " >&6; } 3540am__include="#" 3541am__quote= 3542_am_result=none 3543# First try GNU make style include. 3544echo "include confinc" > confmf 3545# Ignore all kinds of additional output from `make'. 3546case `$am_make -s -f confmf 2> /dev/null` in #( 3547*the\ am__doit\ target*) 3548 am__include=include 3549 am__quote= 3550 _am_result=GNU 3551 ;; 3552esac 3553# Now try BSD make style include. 3554if test "$am__include" = "#"; then 3555 echo '.include "confinc"' > confmf 3556 case `$am_make -s -f confmf 2> /dev/null` in #( 3557 *the\ am__doit\ target*) 3558 am__include=.include 3559 am__quote="\"" 3560 _am_result=BSD 3561 ;; 3562 esac 3563fi 3564 3565 3566{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3567$as_echo "$_am_result" >&6; } 3568rm -f confinc confmf 3569 3570# Check whether --enable-dependency-tracking was given. 3571if test "${enable_dependency_tracking+set}" = set; then 3572 enableval=$enable_dependency_tracking; 3573fi 3574 3575if test "x$enable_dependency_tracking" != xno; then 3576 am_depcomp="$ac_aux_dir/depcomp" 3577 AMDEPBACKSLASH='\' 3578fi 3579 if test "x$enable_dependency_tracking" != xno; then 3580 AMDEP_TRUE= 3581 AMDEP_FALSE='#' 3582else 3583 AMDEP_TRUE='#' 3584 AMDEP_FALSE= 3585fi 3586 3587 3588 3589depcc="$CC" am_compiler_list= 3590 3591{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3592$as_echo_n "checking dependency style of $depcc... " >&6; } 3593if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3594 $as_echo_n "(cached) " >&6 3595else 3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3597 # We make a subdir and do the tests there. Otherwise we can end up 3598 # making bogus files that we don't know about and never remove. For 3599 # instance it was reported that on HP-UX the gcc test will end up 3600 # making a dummy file named `D' -- because `-MD' means `put the output 3601 # in D'. 3602 mkdir conftest.dir 3603 # Copy depcomp to subdir because otherwise we won't find it if we're 3604 # using a relative directory. 3605 cp "$am_depcomp" conftest.dir 3606 cd conftest.dir 3607 # We will build objects and dependencies in a subdirectory because 3608 # it helps to detect inapplicable dependency modes. For instance 3609 # both Tru64's cc and ICC support -MD to output dependencies as a 3610 # side effect of compilation, but ICC will put the dependencies in 3611 # the current directory while Tru64 will put them in the object 3612 # directory. 3613 mkdir sub 3614 3615 am_cv_CC_dependencies_compiler_type=none 3616 if test "$am_compiler_list" = ""; then 3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3618 fi 3619 am__universal=false 3620 case " $depcc " in #( 3621 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3622 esac 3623 3624 for depmode in $am_compiler_list; do 3625 # Setup a source with many dependencies, because some compilers 3626 # like to wrap large dependency lists on column 80 (with \), and 3627 # we should not choose a depcomp mode which is confused by this. 3628 # 3629 # We need to recreate these files for each test, as the compiler may 3630 # overwrite some of them when testing with obscure command lines. 3631 # This happens at least with the AIX C compiler. 3632 : > sub/conftest.c 3633 for i in 1 2 3 4 5 6; do 3634 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3636 # Solaris 8's {/usr,}/bin/sh. 3637 touch sub/conftst$i.h 3638 done 3639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3640 3641 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3642 # mode. It turns out that the SunPro C++ compiler does not properly 3643 # handle `-M -o', and we need to detect this. Also, some Intel 3644 # versions had trouble with output in subdirs 3645 am__obj=sub/conftest.${OBJEXT-o} 3646 am__minus_obj="-o $am__obj" 3647 case $depmode in 3648 gcc) 3649 # This depmode causes a compiler race in universal mode. 3650 test "$am__universal" = false || continue 3651 ;; 3652 nosideeffect) 3653 # after this tag, mechanisms are not by side-effect, so they'll 3654 # only be used when explicitly requested 3655 if test "x$enable_dependency_tracking" = xyes; then 3656 continue 3657 else 3658 break 3659 fi 3660 ;; 3661 msvisualcpp | msvcmsys) 3662 # This compiler won't grok `-c -o', but also, the minuso test has 3663 # not run yet. These depmodes are late enough in the game, and 3664 # so weak that their functioning should not be impacted. 3665 am__obj=conftest.${OBJEXT-o} 3666 am__minus_obj= 3667 ;; 3668 none) break ;; 3669 esac 3670 if depmode=$depmode \ 3671 source=sub/conftest.c object=$am__obj \ 3672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3674 >/dev/null 2>conftest.err && 3675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3679 # icc doesn't choke on unknown options, it will just issue warnings 3680 # or remarks (even with -Werror). So we grep stderr for any message 3681 # that says an option was ignored or not supported. 3682 # When given -MP, icc 7.0 and 7.1 complain thusly: 3683 # icc: Command line warning: ignoring option '-M'; no argument required 3684 # The diagnosis changed in icc 8.0: 3685 # icc: Command line remark: option '-MP' not supported 3686 if (grep 'ignoring option' conftest.err || 3687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3688 am_cv_CC_dependencies_compiler_type=$depmode 3689 break 3690 fi 3691 fi 3692 done 3693 3694 cd .. 3695 rm -rf conftest.dir 3696else 3697 am_cv_CC_dependencies_compiler_type=none 3698fi 3699 3700fi 3701{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3702$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3704 3705 if 3706 test "x$enable_dependency_tracking" != xno \ 3707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3708 am__fastdepCC_TRUE= 3709 am__fastdepCC_FALSE='#' 3710else 3711 am__fastdepCC_TRUE='#' 3712 am__fastdepCC_FALSE= 3713fi 3714 3715 3716 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3717$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3718if test "${ac_cv_prog_cc_c99+set}" = set; then 3719 $as_echo_n "(cached) " >&6 3720else 3721 ac_cv_prog_cc_c99=no 3722ac_save_CC=$CC 3723cat >conftest.$ac_ext <<_ACEOF 3724/* confdefs.h. */ 3725_ACEOF 3726cat confdefs.h >>conftest.$ac_ext 3727cat >>conftest.$ac_ext <<_ACEOF 3728/* end confdefs.h. */ 3729#include <stdarg.h> 3730#include <stdbool.h> 3731#include <stdlib.h> 3732#include <wchar.h> 3733#include <stdio.h> 3734 3735// Check varargs macros. These examples are taken from C99 6.10.3.5. 3736#define debug(...) fprintf (stderr, __VA_ARGS__) 3737#define showlist(...) puts (#__VA_ARGS__) 3738#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3739static void 3740test_varargs_macros (void) 3741{ 3742 int x = 1234; 3743 int y = 5678; 3744 debug ("Flag"); 3745 debug ("X = %d\n", x); 3746 showlist (The first, second, and third items.); 3747 report (x>y, "x is %d but y is %d", x, y); 3748} 3749 3750// Check long long types. 3751#define BIG64 18446744073709551615ull 3752#define BIG32 4294967295ul 3753#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3754#if !BIG_OK 3755 your preprocessor is broken; 3756#endif 3757#if BIG_OK 3758#else 3759 your preprocessor is broken; 3760#endif 3761static long long int bignum = -9223372036854775807LL; 3762static unsigned long long int ubignum = BIG64; 3763 3764struct incomplete_array 3765{ 3766 int datasize; 3767 double data[]; 3768}; 3769 3770struct named_init { 3771 int number; 3772 const wchar_t *name; 3773 double average; 3774}; 3775 3776typedef const char *ccp; 3777 3778static inline int 3779test_restrict (ccp restrict text) 3780{ 3781 // See if C++-style comments work. 3782 // Iterate through items via the restricted pointer. 3783 // Also check for declarations in for loops. 3784 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3785 continue; 3786 return 0; 3787} 3788 3789// Check varargs and va_copy. 3790static void 3791test_varargs (const char *format, ...) 3792{ 3793 va_list args; 3794 va_start (args, format); 3795 va_list args_copy; 3796 va_copy (args_copy, args); 3797 3798 const char *str; 3799 int number; 3800 float fnumber; 3801 3802 while (*format) 3803 { 3804 switch (*format++) 3805 { 3806 case 's': // string 3807 str = va_arg (args_copy, const char *); 3808 break; 3809 case 'd': // int 3810 number = va_arg (args_copy, int); 3811 break; 3812 case 'f': // float 3813 fnumber = va_arg (args_copy, double); 3814 break; 3815 default: 3816 break; 3817 } 3818 } 3819 va_end (args_copy); 3820 va_end (args); 3821} 3822 3823int 3824main () 3825{ 3826 3827 // Check bool. 3828 _Bool success = false; 3829 3830 // Check restrict. 3831 if (test_restrict ("String literal") == 0) 3832 success = true; 3833 char *restrict newvar = "Another string"; 3834 3835 // Check varargs. 3836 test_varargs ("s, d' f .", "string", 65, 34.234); 3837 test_varargs_macros (); 3838 3839 // Check flexible array members. 3840 struct incomplete_array *ia = 3841 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3842 ia->datasize = 10; 3843 for (int i = 0; i < ia->datasize; ++i) 3844 ia->data[i] = i * 1.234; 3845 3846 // Check named initializers. 3847 struct named_init ni = { 3848 .number = 34, 3849 .name = L"Test wide string", 3850 .average = 543.34343, 3851 }; 3852 3853 ni.number = 58; 3854 3855 int dynamic_array[ni.number]; 3856 dynamic_array[ni.number - 1] = 543; 3857 3858 // work around unused variable warnings 3859 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3860 || dynamic_array[ni.number - 1] != 543); 3861 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3867do 3868 CC="$ac_save_CC $ac_arg" 3869 rm -f conftest.$ac_objext 3870if { (ac_try="$ac_compile" 3871case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3876$as_echo "$ac_try_echo") >&5 3877 (eval "$ac_compile") 2>conftest.er1 3878 ac_status=$? 3879 grep -v '^ *+' conftest.er1 >conftest.err 3880 rm -f conftest.er1 3881 cat conftest.err >&5 3882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3883 (exit $ac_status); } && { 3884 test -z "$ac_c_werror_flag" || 3885 test ! -s conftest.err 3886 } && test -s conftest.$ac_objext; then 3887 ac_cv_prog_cc_c99=$ac_arg 3888else 3889 $as_echo "$as_me: failed program was:" >&5 3890sed 's/^/| /' conftest.$ac_ext >&5 3891 3892 3893fi 3894 3895rm -f core conftest.err conftest.$ac_objext 3896 test "x$ac_cv_prog_cc_c99" != "xno" && break 3897done 3898rm -f conftest.$ac_ext 3899CC=$ac_save_CC 3900 3901fi 3902# AC_CACHE_VAL 3903case "x$ac_cv_prog_cc_c99" in 3904 x) 3905 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3906$as_echo "none needed" >&6; } ;; 3907 xno) 3908 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3909$as_echo "unsupported" >&6; } ;; 3910 *) 3911 CC="$CC $ac_cv_prog_cc_c99" 3912 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3913$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3914esac 3915 3916 3917 if test "x$CC" != xcc; then 3918 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3919$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 3920else 3921 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3922$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 3923fi 3924set dummy $CC; ac_cc=`$as_echo "$2" | 3925 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3926if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3927 $as_echo_n "(cached) " >&6 3928else 3929 cat >conftest.$ac_ext <<_ACEOF 3930/* confdefs.h. */ 3931_ACEOF 3932cat confdefs.h >>conftest.$ac_ext 3933cat >>conftest.$ac_ext <<_ACEOF 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944# Make sure it works both with $CC and with simple cc. 3945# We do the test twice because some compilers refuse to overwrite an 3946# existing .o file with -o, though they will create one. 3947ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3948rm -f conftest2.* 3949if { (case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952esac 3953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3954$as_echo "$ac_try_echo") >&5 3955 (eval "$ac_try") 2>&5 3956 ac_status=$? 3957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } && 3959 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3961 *) ac_try_echo=$ac_try;; 3962esac 3963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3964$as_echo "$ac_try_echo") >&5 3965 (eval "$ac_try") 2>&5 3966 ac_status=$? 3967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; 3969then 3970 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3971 if test "x$CC" != xcc; then 3972 # Test first that cc exists at all. 3973 if { ac_try='cc -c conftest.$ac_ext >&5' 3974 { (case "(($ac_try" in 3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3976 *) ac_try_echo=$ac_try;; 3977esac 3978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3979$as_echo "$ac_try_echo") >&5 3980 (eval "$ac_try") 2>&5 3981 ac_status=$? 3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); }; }; then 3984 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3985 rm -f conftest2.* 3986 if { (case "(($ac_try" in 3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3988 *) ac_try_echo=$ac_try;; 3989esac 3990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3991$as_echo "$ac_try_echo") >&5 3992 (eval "$ac_try") 2>&5 3993 ac_status=$? 3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); } && 3996 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3998 *) ac_try_echo=$ac_try;; 3999esac 4000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4001$as_echo "$ac_try_echo") >&5 4002 (eval "$ac_try") 2>&5 4003 ac_status=$? 4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); }; 4006 then 4007 # cc works too. 4008 : 4009 else 4010 # cc exists but doesn't like -o. 4011 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4012 fi 4013 fi 4014 fi 4015else 4016 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4017fi 4018rm -f core conftest* 4019 4020fi 4021if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4022 { $as_echo "$as_me:$LINENO: result: yes" >&5 4023$as_echo "yes" >&6; } 4024else 4025 { $as_echo "$as_me:$LINENO: result: no" >&5 4026$as_echo "no" >&6; } 4027 4028cat >>confdefs.h <<\_ACEOF 4029#define NO_MINUS_C_MINUS_O 1 4030_ACEOF 4031 4032fi 4033 4034# FIXME: we rely on the cache variable name because 4035# there is no other way. 4036set dummy $CC 4037am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4038eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4039if test "$am_t" != yes; then 4040 # Losing compiler, so override with the script. 4041 # FIXME: It is wrong to rewrite CC. 4042 # But if we don't then we get into trouble of one sort or another. 4043 # A longer-term fix would be to have automake use am__CC in this case, 4044 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4045 CC="$am_aux_dir/compile $CC" 4046fi 4047 4048 4049 4050 4051ac_ext=c 4052ac_cpp='$CPP $CPPFLAGS' 4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4057$as_echo_n "checking how to run the C preprocessor... " >&6; } 4058# On Suns, sometimes $CPP names a directory. 4059if test -n "$CPP" && test -d "$CPP"; then 4060 CPP= 4061fi 4062if test -z "$CPP"; then 4063 if test "${ac_cv_prog_CPP+set}" = set; then 4064 $as_echo_n "(cached) " >&6 4065else 4066 # Double quotes because CPP needs to be expanded 4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4068 do 4069 ac_preproc_ok=false 4070for ac_c_preproc_warn_flag in '' yes 4071do 4072 # Use a header file that comes with gcc, so configuring glibc 4073 # with a fresh cross-compiler works. 4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4075 # <limits.h> exists even on freestanding compilers. 4076 # On the NeXT, cc -E runs the code through the compiler's parser, 4077 # not just through cpp. "Syntax error" is here to catch this case. 4078 cat >conftest.$ac_ext <<_ACEOF 4079/* confdefs.h. */ 4080_ACEOF 4081cat confdefs.h >>conftest.$ac_ext 4082cat >>conftest.$ac_ext <<_ACEOF 4083/* end confdefs.h. */ 4084#ifdef __STDC__ 4085# include <limits.h> 4086#else 4087# include <assert.h> 4088#endif 4089 Syntax error 4090_ACEOF 4091if { (ac_try="$ac_cpp conftest.$ac_ext" 4092case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4097$as_echo "$ac_try_echo") >&5 4098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4099 ac_status=$? 4100 grep -v '^ *+' conftest.er1 >conftest.err 4101 rm -f conftest.er1 4102 cat conftest.err >&5 4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } >/dev/null && { 4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4106 test ! -s conftest.err 4107 }; then 4108 : 4109else 4110 $as_echo "$as_me: failed program was:" >&5 4111sed 's/^/| /' conftest.$ac_ext >&5 4112 4113 # Broken: fails on valid input. 4114continue 4115fi 4116 4117rm -f conftest.err conftest.$ac_ext 4118 4119 # OK, works on sane cases. Now check whether nonexistent headers 4120 # can be detected and how. 4121 cat >conftest.$ac_ext <<_ACEOF 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127#include <ac_nonexistent.h> 4128_ACEOF 4129if { (ac_try="$ac_cpp conftest.$ac_ext" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4135$as_echo "$ac_try_echo") >&5 4136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4137 ac_status=$? 4138 grep -v '^ *+' conftest.er1 >conftest.err 4139 rm -f conftest.er1 4140 cat conftest.err >&5 4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4142 (exit $ac_status); } >/dev/null && { 4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4144 test ! -s conftest.err 4145 }; then 4146 # Broken: success on invalid input. 4147continue 4148else 4149 $as_echo "$as_me: failed program was:" >&5 4150sed 's/^/| /' conftest.$ac_ext >&5 4151 4152 # Passes both tests. 4153ac_preproc_ok=: 4154break 4155fi 4156 4157rm -f conftest.err conftest.$ac_ext 4158 4159done 4160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4161rm -f conftest.err conftest.$ac_ext 4162if $ac_preproc_ok; then 4163 break 4164fi 4165 4166 done 4167 ac_cv_prog_CPP=$CPP 4168 4169fi 4170 CPP=$ac_cv_prog_CPP 4171else 4172 ac_cv_prog_CPP=$CPP 4173fi 4174{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4175$as_echo "$CPP" >&6; } 4176ac_preproc_ok=false 4177for ac_c_preproc_warn_flag in '' yes 4178do 4179 # Use a header file that comes with gcc, so configuring glibc 4180 # with a fresh cross-compiler works. 4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4182 # <limits.h> exists even on freestanding compilers. 4183 # On the NeXT, cc -E runs the code through the compiler's parser, 4184 # not just through cpp. "Syntax error" is here to catch this case. 4185 cat >conftest.$ac_ext <<_ACEOF 4186/* confdefs.h. */ 4187_ACEOF 4188cat confdefs.h >>conftest.$ac_ext 4189cat >>conftest.$ac_ext <<_ACEOF 4190/* end confdefs.h. */ 4191#ifdef __STDC__ 4192# include <limits.h> 4193#else 4194# include <assert.h> 4195#endif 4196 Syntax error 4197_ACEOF 4198if { (ac_try="$ac_cpp conftest.$ac_ext" 4199case "(($ac_try" in 4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4201 *) ac_try_echo=$ac_try;; 4202esac 4203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4204$as_echo "$ac_try_echo") >&5 4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4206 ac_status=$? 4207 grep -v '^ *+' conftest.er1 >conftest.err 4208 rm -f conftest.er1 4209 cat conftest.err >&5 4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); } >/dev/null && { 4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4213 test ! -s conftest.err 4214 }; then 4215 : 4216else 4217 $as_echo "$as_me: failed program was:" >&5 4218sed 's/^/| /' conftest.$ac_ext >&5 4219 4220 # Broken: fails on valid input. 4221continue 4222fi 4223 4224rm -f conftest.err conftest.$ac_ext 4225 4226 # OK, works on sane cases. Now check whether nonexistent headers 4227 # can be detected and how. 4228 cat >conftest.$ac_ext <<_ACEOF 4229/* confdefs.h. */ 4230_ACEOF 4231cat confdefs.h >>conftest.$ac_ext 4232cat >>conftest.$ac_ext <<_ACEOF 4233/* end confdefs.h. */ 4234#include <ac_nonexistent.h> 4235_ACEOF 4236if { (ac_try="$ac_cpp conftest.$ac_ext" 4237case "(($ac_try" in 4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4239 *) ac_try_echo=$ac_try;; 4240esac 4241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4242$as_echo "$ac_try_echo") >&5 4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4244 ac_status=$? 4245 grep -v '^ *+' conftest.er1 >conftest.err 4246 rm -f conftest.er1 4247 cat conftest.err >&5 4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); } >/dev/null && { 4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4251 test ! -s conftest.err 4252 }; then 4253 # Broken: success on invalid input. 4254continue 4255else 4256 $as_echo "$as_me: failed program was:" >&5 4257sed 's/^/| /' conftest.$ac_ext >&5 4258 4259 # Passes both tests. 4260ac_preproc_ok=: 4261break 4262fi 4263 4264rm -f conftest.err conftest.$ac_ext 4265 4266done 4267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4268rm -f conftest.err conftest.$ac_ext 4269if $ac_preproc_ok; then 4270 : 4271else 4272 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4274{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4275See \`config.log' for more details." >&5 4276$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4277See \`config.log' for more details." >&2;} 4278 { (exit 1); exit 1; }; }; } 4279fi 4280 4281ac_ext=c 4282ac_cpp='$CPP $CPPFLAGS' 4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_c_compiler_gnu 4286 4287 4288{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4289$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4290if test "${ac_cv_path_GREP+set}" = set; then 4291 $as_echo_n "(cached) " >&6 4292else 4293 if test -z "$GREP"; then 4294 ac_path_GREP_found=false 4295 # Loop through the user's path and test for each of PROGNAME-LIST 4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4298do 4299 IFS=$as_save_IFS 4300 test -z "$as_dir" && as_dir=. 4301 for ac_prog in grep ggrep; do 4302 for ac_exec_ext in '' $ac_executable_extensions; do 4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4305# Check for GNU ac_path_GREP and select it if it is found. 4306 # Check for GNU $ac_path_GREP 4307case `"$ac_path_GREP" --version 2>&1` in 4308*GNU*) 4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4310*) 4311 ac_count=0 4312 $as_echo_n 0123456789 >"conftest.in" 4313 while : 4314 do 4315 cat "conftest.in" "conftest.in" >"conftest.tmp" 4316 mv "conftest.tmp" "conftest.in" 4317 cp "conftest.in" "conftest.nl" 4318 $as_echo 'GREP' >> "conftest.nl" 4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4321 ac_count=`expr $ac_count + 1` 4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4323 # Best one so far, save it but keep looking for a better one 4324 ac_cv_path_GREP="$ac_path_GREP" 4325 ac_path_GREP_max=$ac_count 4326 fi 4327 # 10*(2^10) chars as input seems more than enough 4328 test $ac_count -gt 10 && break 4329 done 4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4331esac 4332 4333 $ac_path_GREP_found && break 3 4334 done 4335 done 4336done 4337IFS=$as_save_IFS 4338 if test -z "$ac_cv_path_GREP"; then 4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4340$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4341 { (exit 1); exit 1; }; } 4342 fi 4343else 4344 ac_cv_path_GREP=$GREP 4345fi 4346 4347fi 4348{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4349$as_echo "$ac_cv_path_GREP" >&6; } 4350 GREP="$ac_cv_path_GREP" 4351 4352 4353{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4354$as_echo_n "checking for egrep... " >&6; } 4355if test "${ac_cv_path_EGREP+set}" = set; then 4356 $as_echo_n "(cached) " >&6 4357else 4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4359 then ac_cv_path_EGREP="$GREP -E" 4360 else 4361 if test -z "$EGREP"; then 4362 ac_path_EGREP_found=false 4363 # Loop through the user's path and test for each of PROGNAME-LIST 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_prog in egrep; do 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4373# Check for GNU ac_path_EGREP and select it if it is found. 4374 # Check for GNU $ac_path_EGREP 4375case `"$ac_path_EGREP" --version 2>&1` in 4376*GNU*) 4377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4378*) 4379 ac_count=0 4380 $as_echo_n 0123456789 >"conftest.in" 4381 while : 4382 do 4383 cat "conftest.in" "conftest.in" >"conftest.tmp" 4384 mv "conftest.tmp" "conftest.in" 4385 cp "conftest.in" "conftest.nl" 4386 $as_echo 'EGREP' >> "conftest.nl" 4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4389 ac_count=`expr $ac_count + 1` 4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4391 # Best one so far, save it but keep looking for a better one 4392 ac_cv_path_EGREP="$ac_path_EGREP" 4393 ac_path_EGREP_max=$ac_count 4394 fi 4395 # 10*(2^10) chars as input seems more than enough 4396 test $ac_count -gt 10 && break 4397 done 4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4399esac 4400 4401 $ac_path_EGREP_found && break 3 4402 done 4403 done 4404done 4405IFS=$as_save_IFS 4406 if test -z "$ac_cv_path_EGREP"; then 4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4408$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4409 { (exit 1); exit 1; }; } 4410 fi 4411else 4412 ac_cv_path_EGREP=$EGREP 4413fi 4414 4415 fi 4416fi 4417{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4418$as_echo "$ac_cv_path_EGREP" >&6; } 4419 EGREP="$ac_cv_path_EGREP" 4420 4421 4422{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4423$as_echo_n "checking for ANSI C header files... " >&6; } 4424if test "${ac_cv_header_stdc+set}" = set; then 4425 $as_echo_n "(cached) " >&6 4426else 4427 cat >conftest.$ac_ext <<_ACEOF 4428/* confdefs.h. */ 4429_ACEOF 4430cat confdefs.h >>conftest.$ac_ext 4431cat >>conftest.$ac_ext <<_ACEOF 4432/* end confdefs.h. */ 4433#include <stdlib.h> 4434#include <stdarg.h> 4435#include <string.h> 4436#include <float.h> 4437 4438int 4439main () 4440{ 4441 4442 ; 4443 return 0; 4444} 4445_ACEOF 4446rm -f conftest.$ac_objext 4447if { (ac_try="$ac_compile" 4448case "(($ac_try" in 4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4450 *) ac_try_echo=$ac_try;; 4451esac 4452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4453$as_echo "$ac_try_echo") >&5 4454 (eval "$ac_compile") 2>conftest.er1 4455 ac_status=$? 4456 grep -v '^ *+' conftest.er1 >conftest.err 4457 rm -f conftest.er1 4458 cat conftest.err >&5 4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); } && { 4461 test -z "$ac_c_werror_flag" || 4462 test ! -s conftest.err 4463 } && test -s conftest.$ac_objext; then 4464 ac_cv_header_stdc=yes 4465else 4466 $as_echo "$as_me: failed program was:" >&5 4467sed 's/^/| /' conftest.$ac_ext >&5 4468 4469 ac_cv_header_stdc=no 4470fi 4471 4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4473 4474if test $ac_cv_header_stdc = yes; then 4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4476 cat >conftest.$ac_ext <<_ACEOF 4477/* confdefs.h. */ 4478_ACEOF 4479cat confdefs.h >>conftest.$ac_ext 4480cat >>conftest.$ac_ext <<_ACEOF 4481/* end confdefs.h. */ 4482#include <string.h> 4483 4484_ACEOF 4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4486 $EGREP "memchr" >/dev/null 2>&1; then 4487 : 4488else 4489 ac_cv_header_stdc=no 4490fi 4491rm -f conftest* 4492 4493fi 4494 4495if test $ac_cv_header_stdc = yes; then 4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4497 cat >conftest.$ac_ext <<_ACEOF 4498/* confdefs.h. */ 4499_ACEOF 4500cat confdefs.h >>conftest.$ac_ext 4501cat >>conftest.$ac_ext <<_ACEOF 4502/* end confdefs.h. */ 4503#include <stdlib.h> 4504 4505_ACEOF 4506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4507 $EGREP "free" >/dev/null 2>&1; then 4508 : 4509else 4510 ac_cv_header_stdc=no 4511fi 4512rm -f conftest* 4513 4514fi 4515 4516if test $ac_cv_header_stdc = yes; then 4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4518 if test "$cross_compiling" = yes; then 4519 : 4520else 4521 cat >conftest.$ac_ext <<_ACEOF 4522/* confdefs.h. */ 4523_ACEOF 4524cat confdefs.h >>conftest.$ac_ext 4525cat >>conftest.$ac_ext <<_ACEOF 4526/* end confdefs.h. */ 4527#include <ctype.h> 4528#include <stdlib.h> 4529#if ((' ' & 0x0FF) == 0x020) 4530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4532#else 4533# define ISLOWER(c) \ 4534 (('a' <= (c) && (c) <= 'i') \ 4535 || ('j' <= (c) && (c) <= 'r') \ 4536 || ('s' <= (c) && (c) <= 'z')) 4537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4538#endif 4539 4540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4541int 4542main () 4543{ 4544 int i; 4545 for (i = 0; i < 256; i++) 4546 if (XOR (islower (i), ISLOWER (i)) 4547 || toupper (i) != TOUPPER (i)) 4548 return 2; 4549 return 0; 4550} 4551_ACEOF 4552rm -f conftest$ac_exeext 4553if { (ac_try="$ac_link" 4554case "(($ac_try" in 4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4556 *) ac_try_echo=$ac_try;; 4557esac 4558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4559$as_echo "$ac_try_echo") >&5 4560 (eval "$ac_link") 2>&5 4561 ac_status=$? 4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4564 { (case "(($ac_try" in 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4566 *) ac_try_echo=$ac_try;; 4567esac 4568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4569$as_echo "$ac_try_echo") >&5 4570 (eval "$ac_try") 2>&5 4571 ac_status=$? 4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; }; then 4574 : 4575else 4576 $as_echo "$as_me: program exited with status $ac_status" >&5 4577$as_echo "$as_me: failed program was:" >&5 4578sed 's/^/| /' conftest.$ac_ext >&5 4579 4580( exit $ac_status ) 4581ac_cv_header_stdc=no 4582fi 4583rm -rf conftest.dSYM 4584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4585fi 4586 4587 4588fi 4589fi 4590{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4591$as_echo "$ac_cv_header_stdc" >&6; } 4592if test $ac_cv_header_stdc = yes; then 4593 4594cat >>confdefs.h <<\_ACEOF 4595#define STDC_HEADERS 1 4596_ACEOF 4597 4598fi 4599 4600# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4611 inttypes.h stdint.h unistd.h 4612do 4613as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4614{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4615$as_echo_n "checking for $ac_header... " >&6; } 4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4617 $as_echo_n "(cached) " >&6 4618else 4619 cat >conftest.$ac_ext <<_ACEOF 4620/* confdefs.h. */ 4621_ACEOF 4622cat confdefs.h >>conftest.$ac_ext 4623cat >>conftest.$ac_ext <<_ACEOF 4624/* end confdefs.h. */ 4625$ac_includes_default 4626 4627#include <$ac_header> 4628_ACEOF 4629rm -f conftest.$ac_objext 4630if { (ac_try="$ac_compile" 4631case "(($ac_try" in 4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4633 *) ac_try_echo=$ac_try;; 4634esac 4635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4636$as_echo "$ac_try_echo") >&5 4637 (eval "$ac_compile") 2>conftest.er1 4638 ac_status=$? 4639 grep -v '^ *+' conftest.er1 >conftest.err 4640 rm -f conftest.er1 4641 cat conftest.err >&5 4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4643 (exit $ac_status); } && { 4644 test -z "$ac_c_werror_flag" || 4645 test ! -s conftest.err 4646 } && test -s conftest.$ac_objext; then 4647 eval "$as_ac_Header=yes" 4648else 4649 $as_echo "$as_me: failed program was:" >&5 4650sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 eval "$as_ac_Header=no" 4653fi 4654 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4656fi 4657ac_res=`eval 'as_val=${'$as_ac_Header'} 4658 $as_echo "$as_val"'` 4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4660$as_echo "$ac_res" >&6; } 4661as_val=`eval 'as_val=${'$as_ac_Header'} 4662 $as_echo "$as_val"'` 4663 if test "x$as_val" = x""yes; then 4664 cat >>confdefs.h <<_ACEOF 4665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4666_ACEOF 4667 4668fi 4669 4670done 4671 4672 4673 4674 if test "${ac_cv_header_minix_config_h+set}" = set; then 4675 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4676$as_echo_n "checking for minix/config.h... " >&6; } 4677if test "${ac_cv_header_minix_config_h+set}" = set; then 4678 $as_echo_n "(cached) " >&6 4679fi 4680{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4681$as_echo "$ac_cv_header_minix_config_h" >&6; } 4682else 4683 # Is the header compilable? 4684{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4685$as_echo_n "checking minix/config.h usability... " >&6; } 4686cat >conftest.$ac_ext <<_ACEOF 4687/* confdefs.h. */ 4688_ACEOF 4689cat confdefs.h >>conftest.$ac_ext 4690cat >>conftest.$ac_ext <<_ACEOF 4691/* end confdefs.h. */ 4692$ac_includes_default 4693#include <minix/config.h> 4694_ACEOF 4695rm -f conftest.$ac_objext 4696if { (ac_try="$ac_compile" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4702$as_echo "$ac_try_echo") >&5 4703 (eval "$ac_compile") 2>conftest.er1 4704 ac_status=$? 4705 grep -v '^ *+' conftest.er1 >conftest.err 4706 rm -f conftest.er1 4707 cat conftest.err >&5 4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); } && { 4710 test -z "$ac_c_werror_flag" || 4711 test ! -s conftest.err 4712 } && test -s conftest.$ac_objext; then 4713 ac_header_compiler=yes 4714else 4715 $as_echo "$as_me: failed program was:" >&5 4716sed 's/^/| /' conftest.$ac_ext >&5 4717 4718 ac_header_compiler=no 4719fi 4720 4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4722{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4723$as_echo "$ac_header_compiler" >&6; } 4724 4725# Is the header present? 4726{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4727$as_echo_n "checking minix/config.h presence... " >&6; } 4728cat >conftest.$ac_ext <<_ACEOF 4729/* confdefs.h. */ 4730_ACEOF 4731cat confdefs.h >>conftest.$ac_ext 4732cat >>conftest.$ac_ext <<_ACEOF 4733/* end confdefs.h. */ 4734#include <minix/config.h> 4735_ACEOF 4736if { (ac_try="$ac_cpp conftest.$ac_ext" 4737case "(($ac_try" in 4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4739 *) ac_try_echo=$ac_try;; 4740esac 4741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4742$as_echo "$ac_try_echo") >&5 4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } >/dev/null && { 4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 }; then 4753 ac_header_preproc=yes 4754else 4755 $as_echo "$as_me: failed program was:" >&5 4756sed 's/^/| /' conftest.$ac_ext >&5 4757 4758 ac_header_preproc=no 4759fi 4760 4761rm -f conftest.err conftest.$ac_ext 4762{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4763$as_echo "$ac_header_preproc" >&6; } 4764 4765# So? What about this header? 4766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4767 yes:no: ) 4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4769$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4770 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4771$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4772 ac_header_preproc=yes 4773 ;; 4774 no:yes:* ) 4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4776$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4778$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4780$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4782$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4784$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4786$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4787 ( cat <<\_ASBOX 4788## ---------------------------------------------- ## 4789## Report this to mzqnrzba (at) 0pointer (dot) de ## 4790## ---------------------------------------------- ## 4791_ASBOX 4792 ) | sed "s/^/$as_me: WARNING: /" >&2 4793 ;; 4794esac 4795{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4796$as_echo_n "checking for minix/config.h... " >&6; } 4797if test "${ac_cv_header_minix_config_h+set}" = set; then 4798 $as_echo_n "(cached) " >&6 4799else 4800 ac_cv_header_minix_config_h=$ac_header_preproc 4801fi 4802{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4803$as_echo "$ac_cv_header_minix_config_h" >&6; } 4804 4805fi 4806if test "x$ac_cv_header_minix_config_h" = x""yes; then 4807 MINIX=yes 4808else 4809 MINIX= 4810fi 4811 4812 4813 if test "$MINIX" = yes; then 4814 4815cat >>confdefs.h <<\_ACEOF 4816#define _POSIX_SOURCE 1 4817_ACEOF 4818 4819 4820cat >>confdefs.h <<\_ACEOF 4821#define _POSIX_1_SOURCE 2 4822_ACEOF 4823 4824 4825cat >>confdefs.h <<\_ACEOF 4826#define _MINIX 1 4827_ACEOF 4828 4829 fi 4830 4831 4832 4833 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 4834$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4835if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 4836 $as_echo_n "(cached) " >&6 4837else 4838 cat >conftest.$ac_ext <<_ACEOF 4839/* confdefs.h. */ 4840_ACEOF 4841cat confdefs.h >>conftest.$ac_ext 4842cat >>conftest.$ac_ext <<_ACEOF 4843/* end confdefs.h. */ 4844 4845# define __EXTENSIONS__ 1 4846 $ac_includes_default 4847int 4848main () 4849{ 4850 4851 ; 4852 return 0; 4853} 4854_ACEOF 4855rm -f conftest.$ac_objext 4856if { (ac_try="$ac_compile" 4857case "(($ac_try" in 4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4859 *) ac_try_echo=$ac_try;; 4860esac 4861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4862$as_echo "$ac_try_echo") >&5 4863 (eval "$ac_compile") 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && { 4870 test -z "$ac_c_werror_flag" || 4871 test ! -s conftest.err 4872 } && test -s conftest.$ac_objext; then 4873 ac_cv_safe_to_define___extensions__=yes 4874else 4875 $as_echo "$as_me: failed program was:" >&5 4876sed 's/^/| /' conftest.$ac_ext >&5 4877 4878 ac_cv_safe_to_define___extensions__=no 4879fi 4880 4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4882fi 4883{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4884$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4885 test $ac_cv_safe_to_define___extensions__ = yes && 4886 cat >>confdefs.h <<\_ACEOF 4887#define __EXTENSIONS__ 1 4888_ACEOF 4889 4890 cat >>confdefs.h <<\_ACEOF 4891#define _ALL_SOURCE 1 4892_ACEOF 4893 4894 cat >>confdefs.h <<\_ACEOF 4895#define _GNU_SOURCE 1 4896_ACEOF 4897 4898 cat >>confdefs.h <<\_ACEOF 4899#define _POSIX_PTHREAD_SEMANTICS 1 4900_ACEOF 4901 4902 cat >>confdefs.h <<\_ACEOF 4903#define _TANDEM_SOURCE 1 4904_ACEOF 4905 4906 4907 4908# Find a good install program. We prefer a C program (faster), 4909# so one script is as good as another. But avoid the broken or 4910# incompatible versions: 4911# SysV /etc/install, /usr/sbin/install 4912# SunOS /usr/etc/install 4913# IRIX /sbin/install 4914# AIX /bin/install 4915# AmigaOS /C/install, which installs bootblocks on floppy discs 4916# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4917# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4918# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4919# OS/2's system install, which has a completely different semantic 4920# ./install, which can be erroneously created by make from ./install.sh. 4921# Reject install programs that cannot install multiple files. 4922{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4923$as_echo_n "checking for a BSD-compatible install... " >&6; } 4924if test -z "$INSTALL"; then 4925if test "${ac_cv_path_install+set}" = set; then 4926 $as_echo_n "(cached) " >&6 4927else 4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4929for as_dir in $PATH 4930do 4931 IFS=$as_save_IFS 4932 test -z "$as_dir" && as_dir=. 4933 # Account for people who put trailing slashes in PATH elements. 4934case $as_dir/ in 4935 ./ | .// | /cC/* | \ 4936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4938 /usr/ucb/* ) ;; 4939 *) 4940 # OSF1 and SCO ODT 3.0 have their own names for install. 4941 # Don't use installbsd from OSF since it installs stuff as root 4942 # by default. 4943 for ac_prog in ginstall scoinst install; do 4944 for ac_exec_ext in '' $ac_executable_extensions; do 4945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4946 if test $ac_prog = install && 4947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4948 # AIX install. It has an incompatible calling convention. 4949 : 4950 elif test $ac_prog = install && 4951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4952 # program-specific install script used by HP pwplus--don't use. 4953 : 4954 else 4955 rm -rf conftest.one conftest.two conftest.dir 4956 echo one > conftest.one 4957 echo two > conftest.two 4958 mkdir conftest.dir 4959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4960 test -s conftest.one && test -s conftest.two && 4961 test -s conftest.dir/conftest.one && 4962 test -s conftest.dir/conftest.two 4963 then 4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4965 break 3 4966 fi 4967 fi 4968 fi 4969 done 4970 done 4971 ;; 4972esac 4973 4974done 4975IFS=$as_save_IFS 4976 4977rm -rf conftest.one conftest.two conftest.dir 4978 4979fi 4980 if test "${ac_cv_path_install+set}" = set; then 4981 INSTALL=$ac_cv_path_install 4982 else 4983 # As a last resort, use the slow shell script. Don't cache a 4984 # value for INSTALL within a source directory, because that will 4985 # break other packages using the cache if that directory is 4986 # removed, or if the value is a relative name. 4987 INSTALL=$ac_install_sh 4988 fi 4989fi 4990{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4991$as_echo "$INSTALL" >&6; } 4992 4993# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4994# It thinks the first close brace ends the variable substitution. 4995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4996 4997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4998 4999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5000 5001{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5002$as_echo_n "checking whether ln -s works... " >&6; } 5003LN_S=$as_ln_s 5004if test "$LN_S" = "ln -s"; then 5005 { $as_echo "$as_me:$LINENO: result: yes" >&5 5006$as_echo "yes" >&6; } 5007else 5008 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5009$as_echo "no, using $LN_S" >&6; } 5010fi 5011 5012{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5013$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5014set x ${MAKE-make} 5015ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5016if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat >conftest.make <<\_ACEOF 5020SHELL = /bin/sh 5021all: 5022 @echo '@@@%%%=$(MAKE)=@@@%%%' 5023_ACEOF 5024# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5025case `${MAKE-make} -f conftest.make 2>/dev/null` in 5026 *@@@%%%=?*=@@@%%%*) 5027 eval ac_cv_prog_make_${ac_make}_set=yes;; 5028 *) 5029 eval ac_cv_prog_make_${ac_make}_set=no;; 5030esac 5031rm -f conftest.make 5032fi 5033if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5034 { $as_echo "$as_me:$LINENO: result: yes" >&5 5035$as_echo "yes" >&6; } 5036 SET_MAKE= 5037else 5038 { $as_echo "$as_me:$LINENO: result: no" >&5 5039$as_echo "no" >&6; } 5040 SET_MAKE="MAKE=${MAKE-make}" 5041fi 5042 5043case `pwd` in 5044 *\ * | *\ *) 5045 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5046$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5047esac 5048 5049 5050 5051macro_version='2.2.6' 5052macro_revision='1.3012' 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066ltmain="$ac_aux_dir/ltmain.sh" 5067 5068# Make sure we can run config.sub. 5069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5070 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 5071$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 5072 { (exit 1); exit 1; }; } 5073 5074{ $as_echo "$as_me:$LINENO: checking build system type" >&5 5075$as_echo_n "checking build system type... " >&6; } 5076if test "${ac_cv_build+set}" = set; then 5077 $as_echo_n "(cached) " >&6 5078else 5079 ac_build_alias=$build_alias 5080test "x$ac_build_alias" = x && 5081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5082test "x$ac_build_alias" = x && 5083 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 5084$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 5085 { (exit 1); exit 1; }; } 5086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5087 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 5088$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 5089 { (exit 1); exit 1; }; } 5090 5091fi 5092{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 5093$as_echo "$ac_cv_build" >&6; } 5094case $ac_cv_build in 5095*-*-*) ;; 5096*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 5097$as_echo "$as_me: error: invalid value of canonical build" >&2;} 5098 { (exit 1); exit 1; }; };; 5099esac 5100build=$ac_cv_build 5101ac_save_IFS=$IFS; IFS='-' 5102set x $ac_cv_build 5103shift 5104build_cpu=$1 5105build_vendor=$2 5106shift; shift 5107# Remember, the first character of IFS is used to create $*, 5108# except with old shells: 5109build_os=$* 5110IFS=$ac_save_IFS 5111case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5112 5113 5114{ $as_echo "$as_me:$LINENO: checking host system type" >&5 5115$as_echo_n "checking host system type... " >&6; } 5116if test "${ac_cv_host+set}" = set; then 5117 $as_echo_n "(cached) " >&6 5118else 5119 if test "x$host_alias" = x; then 5120 ac_cv_host=$ac_cv_build 5121else 5122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5123 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 5124$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 5125 { (exit 1); exit 1; }; } 5126fi 5127 5128fi 5129{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5130$as_echo "$ac_cv_host" >&6; } 5131case $ac_cv_host in 5132*-*-*) ;; 5133*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 5134$as_echo "$as_me: error: invalid value of canonical host" >&2;} 5135 { (exit 1); exit 1; }; };; 5136esac 5137host=$ac_cv_host 5138ac_save_IFS=$IFS; IFS='-' 5139set x $ac_cv_host 5140shift 5141host_cpu=$1 5142host_vendor=$2 5143shift; shift 5144# Remember, the first character of IFS is used to create $*, 5145# except with old shells: 5146host_os=$* 5147IFS=$ac_save_IFS 5148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5149 5150 5151{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5152$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5153if test "${ac_cv_path_SED+set}" = set; then 5154 $as_echo_n "(cached) " >&6 5155else 5156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5157 for ac_i in 1 2 3 4 5 6 7; do 5158 ac_script="$ac_script$as_nl$ac_script" 5159 done 5160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5161 $as_unset ac_script || ac_script= 5162 if test -z "$SED"; then 5163 ac_path_SED_found=false 5164 # Loop through the user's path and test for each of PROGNAME-LIST 5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 test -z "$as_dir" && as_dir=. 5170 for ac_prog in sed gsed; do 5171 for ac_exec_ext in '' $ac_executable_extensions; do 5172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5174# Check for GNU ac_path_SED and select it if it is found. 5175 # Check for GNU $ac_path_SED 5176case `"$ac_path_SED" --version 2>&1` in 5177*GNU*) 5178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5179*) 5180 ac_count=0 5181 $as_echo_n 0123456789 >"conftest.in" 5182 while : 5183 do 5184 cat "conftest.in" "conftest.in" >"conftest.tmp" 5185 mv "conftest.tmp" "conftest.in" 5186 cp "conftest.in" "conftest.nl" 5187 $as_echo '' >> "conftest.nl" 5188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5190 ac_count=`expr $ac_count + 1` 5191 if test $ac_count -gt ${ac_path_SED_max-0}; then 5192 # Best one so far, save it but keep looking for a better one 5193 ac_cv_path_SED="$ac_path_SED" 5194 ac_path_SED_max=$ac_count 5195 fi 5196 # 10*(2^10) chars as input seems more than enough 5197 test $ac_count -gt 10 && break 5198 done 5199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5200esac 5201 5202 $ac_path_SED_found && break 3 5203 done 5204 done 5205done 5206IFS=$as_save_IFS 5207 if test -z "$ac_cv_path_SED"; then 5208 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5209$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5210 { (exit 1); exit 1; }; } 5211 fi 5212else 5213 ac_cv_path_SED=$SED 5214fi 5215 5216fi 5217{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5218$as_echo "$ac_cv_path_SED" >&6; } 5219 SED="$ac_cv_path_SED" 5220 rm -f conftest.sed 5221 5222test -z "$SED" && SED=sed 5223Xsed="$SED -e 1s/^X//" 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5236$as_echo_n "checking for fgrep... " >&6; } 5237if test "${ac_cv_path_FGREP+set}" = set; then 5238 $as_echo_n "(cached) " >&6 5239else 5240 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5241 then ac_cv_path_FGREP="$GREP -F" 5242 else 5243 if test -z "$FGREP"; then 5244 ac_path_FGREP_found=false 5245 # Loop through the user's path and test for each of PROGNAME-LIST 5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_prog in fgrep; do 5252 for ac_exec_ext in '' $ac_executable_extensions; do 5253 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5254 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5255# Check for GNU ac_path_FGREP and select it if it is found. 5256 # Check for GNU $ac_path_FGREP 5257case `"$ac_path_FGREP" --version 2>&1` in 5258*GNU*) 5259 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5260*) 5261 ac_count=0 5262 $as_echo_n 0123456789 >"conftest.in" 5263 while : 5264 do 5265 cat "conftest.in" "conftest.in" >"conftest.tmp" 5266 mv "conftest.tmp" "conftest.in" 5267 cp "conftest.in" "conftest.nl" 5268 $as_echo 'FGREP' >> "conftest.nl" 5269 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5271 ac_count=`expr $ac_count + 1` 5272 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5273 # Best one so far, save it but keep looking for a better one 5274 ac_cv_path_FGREP="$ac_path_FGREP" 5275 ac_path_FGREP_max=$ac_count 5276 fi 5277 # 10*(2^10) chars as input seems more than enough 5278 test $ac_count -gt 10 && break 5279 done 5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5281esac 5282 5283 $ac_path_FGREP_found && break 3 5284 done 5285 done 5286done 5287IFS=$as_save_IFS 5288 if test -z "$ac_cv_path_FGREP"; then 5289 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5290$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5291 { (exit 1); exit 1; }; } 5292 fi 5293else 5294 ac_cv_path_FGREP=$FGREP 5295fi 5296 5297 fi 5298fi 5299{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5300$as_echo "$ac_cv_path_FGREP" >&6; } 5301 FGREP="$ac_cv_path_FGREP" 5302 5303 5304test -z "$GREP" && GREP=grep 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324# Check whether --with-gnu-ld was given. 5325if test "${with_gnu_ld+set}" = set; then 5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5327else 5328 with_gnu_ld=no 5329fi 5330 5331ac_prog=ld 5332if test "$GCC" = yes; then 5333 # Check if gcc -print-prog-name=ld gives a path. 5334 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5335$as_echo_n "checking for ld used by $CC... " >&6; } 5336 case $host in 5337 *-*-mingw*) 5338 # gcc leaves a trailing carriage return which upsets mingw 5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5340 *) 5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5342 esac 5343 case $ac_prog in 5344 # Accept absolute paths. 5345 [\\/]* | ?:[\\/]*) 5346 re_direlt='/[^/][^/]*/\.\./' 5347 # Canonicalize the pathname of ld 5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5351 done 5352 test -z "$LD" && LD="$ac_prog" 5353 ;; 5354 "") 5355 # If it fails, then pretend we aren't using GCC. 5356 ac_prog=ld 5357 ;; 5358 *) 5359 # If it is relative, then search for the first ld in PATH. 5360 with_gnu_ld=unknown 5361 ;; 5362 esac 5363elif test "$with_gnu_ld" = yes; then 5364 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5365$as_echo_n "checking for GNU ld... " >&6; } 5366else 5367 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5368$as_echo_n "checking for non-GNU ld... " >&6; } 5369fi 5370if test "${lt_cv_path_LD+set}" = set; then 5371 $as_echo_n "(cached) " >&6 5372else 5373 if test -z "$LD"; then 5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5375 for ac_dir in $PATH; do 5376 IFS="$lt_save_ifs" 5377 test -z "$ac_dir" && ac_dir=. 5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5379 lt_cv_path_LD="$ac_dir/$ac_prog" 5380 # Check to see if the program is GNU ld. I'd rather use --version, 5381 # but apparently some variants of GNU ld only accept -v. 5382 # Break only if it was the GNU/non-GNU ld that we prefer. 5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5384 *GNU* | *'with BFD'*) 5385 test "$with_gnu_ld" != no && break 5386 ;; 5387 *) 5388 test "$with_gnu_ld" != yes && break 5389 ;; 5390 esac 5391 fi 5392 done 5393 IFS="$lt_save_ifs" 5394else 5395 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5396fi 5397fi 5398 5399LD="$lt_cv_path_LD" 5400if test -n "$LD"; then 5401 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5402$as_echo "$LD" >&6; } 5403else 5404 { $as_echo "$as_me:$LINENO: result: no" >&5 5405$as_echo "no" >&6; } 5406fi 5407test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5408$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5409 { (exit 1); exit 1; }; } 5410{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5411$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5412if test "${lt_cv_prog_gnu_ld+set}" = set; then 5413 $as_echo_n "(cached) " >&6 5414else 5415 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5416case `$LD -v 2>&1 </dev/null` in 5417*GNU* | *'with BFD'*) 5418 lt_cv_prog_gnu_ld=yes 5419 ;; 5420*) 5421 lt_cv_prog_gnu_ld=no 5422 ;; 5423esac 5424fi 5425{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5426$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5427with_gnu_ld=$lt_cv_prog_gnu_ld 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5438$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5439if test "${lt_cv_path_NM+set}" = set; then 5440 $as_echo_n "(cached) " >&6 5441else 5442 if test -n "$NM"; then 5443 # Let the user override the test. 5444 lt_cv_path_NM="$NM" 5445else 5446 lt_nm_to_check="${ac_tool_prefix}nm" 5447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5448 lt_nm_to_check="$lt_nm_to_check nm" 5449 fi 5450 for lt_tmp_nm in $lt_nm_to_check; do 5451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5453 IFS="$lt_save_ifs" 5454 test -z "$ac_dir" && ac_dir=. 5455 tmp_nm="$ac_dir/$lt_tmp_nm" 5456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5457 # Check to see if the nm accepts a BSD-compat flag. 5458 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5459 # nm: unknown option "B" ignored 5460 # Tru64's nm complains that /dev/null is an invalid object file 5461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5462 */dev/null* | *'Invalid file or object type'*) 5463 lt_cv_path_NM="$tmp_nm -B" 5464 break 5465 ;; 5466 *) 5467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5468 */dev/null*) 5469 lt_cv_path_NM="$tmp_nm -p" 5470 break 5471 ;; 5472 *) 5473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5474 continue # so that we can try to find one that supports BSD flags 5475 ;; 5476 esac 5477 ;; 5478 esac 5479 fi 5480 done 5481 IFS="$lt_save_ifs" 5482 done 5483 : ${lt_cv_path_NM=no} 5484fi 5485fi 5486{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5487$as_echo "$lt_cv_path_NM" >&6; } 5488if test "$lt_cv_path_NM" != "no"; then 5489 NM="$lt_cv_path_NM" 5490else 5491 # Didn't find any BSD compatible name lister, look for dumpbin. 5492 if test -n "$ac_tool_prefix"; then 5493 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5494 do 5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5498$as_echo_n "checking for $ac_word... " >&6; } 5499if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5500 $as_echo_n "(cached) " >&6 5501else 5502 if test -n "$DUMPBIN"; then 5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5504else 5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5506for as_dir in $PATH 5507do 5508 IFS=$as_save_IFS 5509 test -z "$as_dir" && as_dir=. 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5514 break 2 5515 fi 5516done 5517done 5518IFS=$as_save_IFS 5519 5520fi 5521fi 5522DUMPBIN=$ac_cv_prog_DUMPBIN 5523if test -n "$DUMPBIN"; then 5524 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5525$as_echo "$DUMPBIN" >&6; } 5526else 5527 { $as_echo "$as_me:$LINENO: result: no" >&5 5528$as_echo "no" >&6; } 5529fi 5530 5531 5532 test -n "$DUMPBIN" && break 5533 done 5534fi 5535if test -z "$DUMPBIN"; then 5536 ac_ct_DUMPBIN=$DUMPBIN 5537 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5538do 5539 # Extract the first word of "$ac_prog", so it can be a program name with args. 5540set dummy $ac_prog; ac_word=$2 5541{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5542$as_echo_n "checking for $ac_word... " >&6; } 5543if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5544 $as_echo_n "(cached) " >&6 5545else 5546 if test -n "$ac_ct_DUMPBIN"; then 5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5548else 5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5550for as_dir in $PATH 5551do 5552 IFS=$as_save_IFS 5553 test -z "$as_dir" && as_dir=. 5554 for ac_exec_ext in '' $ac_executable_extensions; do 5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5558 break 2 5559 fi 5560done 5561done 5562IFS=$as_save_IFS 5563 5564fi 5565fi 5566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5567if test -n "$ac_ct_DUMPBIN"; then 5568 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5569$as_echo "$ac_ct_DUMPBIN" >&6; } 5570else 5571 { $as_echo "$as_me:$LINENO: result: no" >&5 5572$as_echo "no" >&6; } 5573fi 5574 5575 5576 test -n "$ac_ct_DUMPBIN" && break 5577done 5578 5579 if test "x$ac_ct_DUMPBIN" = x; then 5580 DUMPBIN=":" 5581 else 5582 case $cross_compiling:$ac_tool_warned in 5583yes:) 5584{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5586ac_tool_warned=yes ;; 5587esac 5588 DUMPBIN=$ac_ct_DUMPBIN 5589 fi 5590fi 5591 5592 5593 if test "$DUMPBIN" != ":"; then 5594 NM="$DUMPBIN" 5595 fi 5596fi 5597test -z "$NM" && NM=nm 5598 5599 5600 5601 5602 5603 5604{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5605$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5606if test "${lt_cv_nm_interface+set}" = set; then 5607 $as_echo_n "(cached) " >&6 5608else 5609 lt_cv_nm_interface="BSD nm" 5610 echo "int some_variable = 0;" > conftest.$ac_ext 5611 (eval echo "\"\$as_me:5611: $ac_compile\"" >&5) 5612 (eval "$ac_compile" 2>conftest.err) 5613 cat conftest.err >&5 5614 (eval echo "\"\$as_me:5614: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5615 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5616 cat conftest.err >&5 5617 (eval echo "\"\$as_me:5617: output\"" >&5) 5618 cat conftest.out >&5 5619 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5620 lt_cv_nm_interface="MS dumpbin" 5621 fi 5622 rm -f conftest* 5623fi 5624{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5625$as_echo "$lt_cv_nm_interface" >&6; } 5626 5627# find the maximum length of command line arguments 5628{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5629$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5630if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5631 $as_echo_n "(cached) " >&6 5632else 5633 i=0 5634 teststring="ABCD" 5635 5636 case $build_os in 5637 msdosdjgpp*) 5638 # On DJGPP, this test can blow up pretty badly due to problems in libc 5639 # (any single argument exceeding 2000 bytes causes a buffer overrun 5640 # during glob expansion). Even if it were fixed, the result of this 5641 # check would be larger than it should be. 5642 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5643 ;; 5644 5645 gnu*) 5646 # Under GNU Hurd, this test is not required because there is 5647 # no limit to the length of command line arguments. 5648 # Libtool will interpret -1 as no limit whatsoever 5649 lt_cv_sys_max_cmd_len=-1; 5650 ;; 5651 5652 cygwin* | mingw* | cegcc*) 5653 # On Win9x/ME, this test blows up -- it succeeds, but takes 5654 # about 5 minutes as the teststring grows exponentially. 5655 # Worse, since 9x/ME are not pre-emptively multitasking, 5656 # you end up with a "frozen" computer, even though with patience 5657 # the test eventually succeeds (with a max line length of 256k). 5658 # Instead, let's just punt: use the minimum linelength reported by 5659 # all of the supported platforms: 8192 (on NT/2K/XP). 5660 lt_cv_sys_max_cmd_len=8192; 5661 ;; 5662 5663 amigaos*) 5664 # On AmigaOS with pdksh, this test takes hours, literally. 5665 # So we just punt and use a minimum line length of 8192. 5666 lt_cv_sys_max_cmd_len=8192; 5667 ;; 5668 5669 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5670 # This has been around since 386BSD, at least. Likely further. 5671 if test -x /sbin/sysctl; then 5672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5673 elif test -x /usr/sbin/sysctl; then 5674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5675 else 5676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5677 fi 5678 # And add a safety zone 5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5681 ;; 5682 5683 interix*) 5684 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5685 lt_cv_sys_max_cmd_len=196608 5686 ;; 5687 5688 osf*) 5689 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5690 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5691 # nice to cause kernel panics so lets avoid the loop below. 5692 # First set a reasonable default. 5693 lt_cv_sys_max_cmd_len=16384 5694 # 5695 if test -x /sbin/sysconfig; then 5696 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5697 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5698 esac 5699 fi 5700 ;; 5701 sco3.2v5*) 5702 lt_cv_sys_max_cmd_len=102400 5703 ;; 5704 sysv5* | sco5v6* | sysv4.2uw2*) 5705 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5706 if test -n "$kargmax"; then 5707 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5708 else 5709 lt_cv_sys_max_cmd_len=32768 5710 fi 5711 ;; 5712 *) 5713 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5714 if test -n "$lt_cv_sys_max_cmd_len"; then 5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5717 else 5718 # Make teststring a little bigger before we do anything with it. 5719 # a 1K string should be a reasonable start. 5720 for i in 1 2 3 4 5 6 7 8 ; do 5721 teststring=$teststring$teststring 5722 done 5723 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5724 # If test is not a shell built-in, we'll probably end up computing a 5725 # maximum length that is only half of the actual maximum length, but 5726 # we can't tell. 5727 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5728 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5729 test $i != 17 # 1/2 MB should be enough 5730 do 5731 i=`expr $i + 1` 5732 teststring=$teststring$teststring 5733 done 5734 # Only check the string length outside the loop. 5735 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5736 teststring= 5737 # Add a significant safety factor because C++ compilers can tack on 5738 # massive amounts of additional arguments before passing them to the 5739 # linker. It appears as though 1/2 is a usable value. 5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5741 fi 5742 ;; 5743 esac 5744 5745fi 5746 5747if test -n $lt_cv_sys_max_cmd_len ; then 5748 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5749$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5750else 5751 { $as_echo "$as_me:$LINENO: result: none" >&5 5752$as_echo "none" >&6; } 5753fi 5754max_cmd_len=$lt_cv_sys_max_cmd_len 5755 5756 5757 5758 5759 5760 5761: ${CP="cp -f"} 5762: ${MV="mv -f"} 5763: ${RM="rm -f"} 5764 5765{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5766$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5767# Try some XSI features 5768xsi_shell=no 5769( _lt_dummy="a/b/c" 5770 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5771 = c,a/b,, \ 5772 && eval 'test $(( 1 + 1 )) -eq 2 \ 5773 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5774 && xsi_shell=yes 5775{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5776$as_echo "$xsi_shell" >&6; } 5777 5778 5779{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5780$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5781lt_shell_append=no 5782( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5783 >/dev/null 2>&1 \ 5784 && lt_shell_append=yes 5785{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5786$as_echo "$lt_shell_append" >&6; } 5787 5788 5789if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5790 lt_unset=unset 5791else 5792 lt_unset=false 5793fi 5794 5795 5796 5797 5798 5799# test EBCDIC or ASCII 5800case `echo X|tr X '\101'` in 5801 A) # ASCII based system 5802 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5803 lt_SP2NL='tr \040 \012' 5804 lt_NL2SP='tr \015\012 \040\040' 5805 ;; 5806 *) # EBCDIC based system 5807 lt_SP2NL='tr \100 \n' 5808 lt_NL2SP='tr \r\n \100\100' 5809 ;; 5810esac 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5821$as_echo_n "checking for $LD option to reload object files... " >&6; } 5822if test "${lt_cv_ld_reload_flag+set}" = set; then 5823 $as_echo_n "(cached) " >&6 5824else 5825 lt_cv_ld_reload_flag='-r' 5826fi 5827{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5828$as_echo "$lt_cv_ld_reload_flag" >&6; } 5829reload_flag=$lt_cv_ld_reload_flag 5830case $reload_flag in 5831"" | " "*) ;; 5832*) reload_flag=" $reload_flag" ;; 5833esac 5834reload_cmds='$LD$reload_flag -o $output$reload_objs' 5835case $host_os in 5836 darwin*) 5837 if test "$GCC" = yes; then 5838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5839 else 5840 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5841 fi 5842 ;; 5843esac 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853if test -n "$ac_tool_prefix"; then 5854 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5855set dummy ${ac_tool_prefix}objdump; ac_word=$2 5856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5857$as_echo_n "checking for $ac_word... " >&6; } 5858if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5859 $as_echo_n "(cached) " >&6 5860else 5861 if test -n "$OBJDUMP"; then 5862 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5863else 5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865for as_dir in $PATH 5866do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5871 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875done 5876done 5877IFS=$as_save_IFS 5878 5879fi 5880fi 5881OBJDUMP=$ac_cv_prog_OBJDUMP 5882if test -n "$OBJDUMP"; then 5883 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5884$as_echo "$OBJDUMP" >&6; } 5885else 5886 { $as_echo "$as_me:$LINENO: result: no" >&5 5887$as_echo "no" >&6; } 5888fi 5889 5890 5891fi 5892if test -z "$ac_cv_prog_OBJDUMP"; then 5893 ac_ct_OBJDUMP=$OBJDUMP 5894 # Extract the first word of "objdump", so it can be a program name with args. 5895set dummy objdump; ac_word=$2 5896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5897$as_echo_n "checking for $ac_word... " >&6; } 5898if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5899 $as_echo_n "(cached) " >&6 5900else 5901 if test -n "$ac_ct_OBJDUMP"; then 5902 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5903else 5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5905for as_dir in $PATH 5906do 5907 IFS=$as_save_IFS 5908 test -z "$as_dir" && as_dir=. 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5911 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5913 break 2 5914 fi 5915done 5916done 5917IFS=$as_save_IFS 5918 5919fi 5920fi 5921ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5922if test -n "$ac_ct_OBJDUMP"; then 5923 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5924$as_echo "$ac_ct_OBJDUMP" >&6; } 5925else 5926 { $as_echo "$as_me:$LINENO: result: no" >&5 5927$as_echo "no" >&6; } 5928fi 5929 5930 if test "x$ac_ct_OBJDUMP" = x; then 5931 OBJDUMP="false" 5932 else 5933 case $cross_compiling:$ac_tool_warned in 5934yes:) 5935{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5937ac_tool_warned=yes ;; 5938esac 5939 OBJDUMP=$ac_ct_OBJDUMP 5940 fi 5941else 5942 OBJDUMP="$ac_cv_prog_OBJDUMP" 5943fi 5944 5945test -z "$OBJDUMP" && OBJDUMP=objdump 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5956$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5957if test "${lt_cv_deplibs_check_method+set}" = set; then 5958 $as_echo_n "(cached) " >&6 5959else 5960 lt_cv_file_magic_cmd='$MAGIC_CMD' 5961lt_cv_file_magic_test_file= 5962lt_cv_deplibs_check_method='unknown' 5963# Need to set the preceding variable on all platforms that support 5964# interlibrary dependencies. 5965# 'none' -- dependencies not supported. 5966# `unknown' -- same as none, but documents that we really don't know. 5967# 'pass_all' -- all dependencies passed with no checks. 5968# 'test_compile' -- check by making test program. 5969# 'file_magic [[regex]]' -- check by looking for files in library path 5970# which responds to the $file_magic_cmd with a given extended regex. 5971# If you have `file' or equivalent on your system and you're not sure 5972# whether `pass_all' will *always* work, you probably want this one. 5973 5974case $host_os in 5975aix[4-9]*) 5976 lt_cv_deplibs_check_method=pass_all 5977 ;; 5978 5979beos*) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983bsdi[45]*) 5984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5985 lt_cv_file_magic_cmd='/usr/bin/file -L' 5986 lt_cv_file_magic_test_file=/shlib/libc.so 5987 ;; 5988 5989cygwin*) 5990 # func_win32_libid is a shell function defined in ltmain.sh 5991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5992 lt_cv_file_magic_cmd='func_win32_libid' 5993 ;; 5994 5995mingw* | pw32*) 5996 # Base MSYS/MinGW do not provide the 'file' command needed by 5997 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5998 # unless we find 'file', for example because we are cross-compiling. 5999 if ( file / ) >/dev/null 2>&1; then 6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6001 lt_cv_file_magic_cmd='func_win32_libid' 6002 else 6003 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6004 lt_cv_file_magic_cmd='$OBJDUMP -f' 6005 fi 6006 ;; 6007 6008cegcc) 6009 # use the weaker test based on 'objdump'. See mingw*. 6010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6011 lt_cv_file_magic_cmd='$OBJDUMP -f' 6012 ;; 6013 6014darwin* | rhapsody*) 6015 lt_cv_deplibs_check_method=pass_all 6016 ;; 6017 6018freebsd* | dragonfly*) 6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6020 case $host_cpu in 6021 i*86 ) 6022 # Not sure whether the presence of OpenBSD here was a mistake. 6023 # Let's accept both of them until this is cleared up. 6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6025 lt_cv_file_magic_cmd=/usr/bin/file 6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6027 ;; 6028 esac 6029 else 6030 lt_cv_deplibs_check_method=pass_all 6031 fi 6032 ;; 6033 6034gnu*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038hpux10.20* | hpux11*) 6039 lt_cv_file_magic_cmd=/usr/bin/file 6040 case $host_cpu in 6041 ia64*) 6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6044 ;; 6045 hppa*64*) 6046 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]' 6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6048 ;; 6049 *) 6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6052 ;; 6053 esac 6054 ;; 6055 6056interix[3-9]*) 6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6059 ;; 6060 6061irix5* | irix6* | nonstopux*) 6062 case $LD in 6063 *-32|*"-32 ") libmagic=32-bit;; 6064 *-n32|*"-n32 ") libmagic=N32;; 6065 *-64|*"-64 ") libmagic=64-bit;; 6066 *) libmagic=never-match;; 6067 esac 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071# This must be Linux ELF. 6072linux* | k*bsd*-gnu) 6073 lt_cv_deplibs_check_method=pass_all 6074 ;; 6075 6076netbsd*) 6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6079 else 6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6081 fi 6082 ;; 6083 6084newos6*) 6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6086 lt_cv_file_magic_cmd=/usr/bin/file 6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6088 ;; 6089 6090*nto* | *qnx*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 6094openbsd*) 6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6097 else 6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6099 fi 6100 ;; 6101 6102osf3* | osf4* | osf5*) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 6106rdos*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110solaris*) 6111 lt_cv_deplibs_check_method=pass_all 6112 ;; 6113 6114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 6118sysv4 | sysv4.3*) 6119 case $host_vendor in 6120 motorola) 6121 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]' 6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6123 ;; 6124 ncr) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 sequent) 6128 lt_cv_file_magic_cmd='/bin/file' 6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6130 ;; 6131 sni) 6132 lt_cv_file_magic_cmd='/bin/file' 6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6134 lt_cv_file_magic_test_file=/lib/libc.so 6135 ;; 6136 siemens) 6137 lt_cv_deplibs_check_method=pass_all 6138 ;; 6139 pc) 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 esac 6143 ;; 6144 6145tpf*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148esac 6149 6150fi 6151{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6152$as_echo "$lt_cv_deplibs_check_method" >&6; } 6153file_magic_cmd=$lt_cv_file_magic_cmd 6154deplibs_check_method=$lt_cv_deplibs_check_method 6155test -z "$deplibs_check_method" && deplibs_check_method=unknown 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168if test -n "$ac_tool_prefix"; then 6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6170set dummy ${ac_tool_prefix}ar; ac_word=$2 6171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6172$as_echo_n "checking for $ac_word... " >&6; } 6173if test "${ac_cv_prog_AR+set}" = set; then 6174 $as_echo_n "(cached) " >&6 6175else 6176 if test -n "$AR"; then 6177 ac_cv_prog_AR="$AR" # Let the user override the test. 6178else 6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180for as_dir in $PATH 6181do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6186 ac_cv_prog_AR="${ac_tool_prefix}ar" 6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190done 6191done 6192IFS=$as_save_IFS 6193 6194fi 6195fi 6196AR=$ac_cv_prog_AR 6197if test -n "$AR"; then 6198 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6199$as_echo "$AR" >&6; } 6200else 6201 { $as_echo "$as_me:$LINENO: result: no" >&5 6202$as_echo "no" >&6; } 6203fi 6204 6205 6206fi 6207if test -z "$ac_cv_prog_AR"; then 6208 ac_ct_AR=$AR 6209 # Extract the first word of "ar", so it can be a program name with args. 6210set dummy ar; ac_word=$2 6211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6212$as_echo_n "checking for $ac_word... " >&6; } 6213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6214 $as_echo_n "(cached) " >&6 6215else 6216 if test -n "$ac_ct_AR"; then 6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6218else 6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6226 ac_cv_prog_ac_ct_AR="ar" 6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230done 6231done 6232IFS=$as_save_IFS 6233 6234fi 6235fi 6236ac_ct_AR=$ac_cv_prog_ac_ct_AR 6237if test -n "$ac_ct_AR"; then 6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6239$as_echo "$ac_ct_AR" >&6; } 6240else 6241 { $as_echo "$as_me:$LINENO: result: no" >&5 6242$as_echo "no" >&6; } 6243fi 6244 6245 if test "x$ac_ct_AR" = x; then 6246 AR="false" 6247 else 6248 case $cross_compiling:$ac_tool_warned in 6249yes:) 6250{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6252ac_tool_warned=yes ;; 6253esac 6254 AR=$ac_ct_AR 6255 fi 6256else 6257 AR="$ac_cv_prog_AR" 6258fi 6259 6260test -z "$AR" && AR=ar 6261test -z "$AR_FLAGS" && AR_FLAGS=cru 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273if test -n "$ac_tool_prefix"; then 6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6275set dummy ${ac_tool_prefix}strip; ac_word=$2 6276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6277$as_echo_n "checking for $ac_word... " >&6; } 6278if test "${ac_cv_prog_STRIP+set}" = set; then 6279 $as_echo_n "(cached) " >&6 6280else 6281 if test -n "$STRIP"; then 6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6283else 6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6285for as_dir in $PATH 6286do 6287 IFS=$as_save_IFS 6288 test -z "$as_dir" && as_dir=. 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301STRIP=$ac_cv_prog_STRIP 6302if test -n "$STRIP"; then 6303 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6304$as_echo "$STRIP" >&6; } 6305else 6306 { $as_echo "$as_me:$LINENO: result: no" >&5 6307$as_echo "no" >&6; } 6308fi 6309 6310 6311fi 6312if test -z "$ac_cv_prog_STRIP"; then 6313 ac_ct_STRIP=$STRIP 6314 # Extract the first word of "strip", so it can be a program name with args. 6315set dummy strip; ac_word=$2 6316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6317$as_echo_n "checking for $ac_word... " >&6; } 6318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6319 $as_echo_n "(cached) " >&6 6320else 6321 if test -n "$ac_ct_STRIP"; then 6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6323else 6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325for as_dir in $PATH 6326do 6327 IFS=$as_save_IFS 6328 test -z "$as_dir" && as_dir=. 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6331 ac_cv_prog_ac_ct_STRIP="strip" 6332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6333 break 2 6334 fi 6335done 6336done 6337IFS=$as_save_IFS 6338 6339fi 6340fi 6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6342if test -n "$ac_ct_STRIP"; then 6343 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6344$as_echo "$ac_ct_STRIP" >&6; } 6345else 6346 { $as_echo "$as_me:$LINENO: result: no" >&5 6347$as_echo "no" >&6; } 6348fi 6349 6350 if test "x$ac_ct_STRIP" = x; then 6351 STRIP=":" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354yes:) 6355{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6357ac_tool_warned=yes ;; 6358esac 6359 STRIP=$ac_ct_STRIP 6360 fi 6361else 6362 STRIP="$ac_cv_prog_STRIP" 6363fi 6364 6365test -z "$STRIP" && STRIP=: 6366 6367 6368 6369 6370 6371 6372if test -n "$ac_tool_prefix"; then 6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6376$as_echo_n "checking for $ac_word... " >&6; } 6377if test "${ac_cv_prog_RANLIB+set}" = set; then 6378 $as_echo_n "(cached) " >&6 6379else 6380 if test -n "$RANLIB"; then 6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400RANLIB=$ac_cv_prog_RANLIB 6401if test -n "$RANLIB"; then 6402 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6403$as_echo "$RANLIB" >&6; } 6404else 6405 { $as_echo "$as_me:$LINENO: result: no" >&5 6406$as_echo "no" >&6; } 6407fi 6408 6409 6410fi 6411if test -z "$ac_cv_prog_RANLIB"; then 6412 ac_ct_RANLIB=$RANLIB 6413 # Extract the first word of "ranlib", so it can be a program name with args. 6414set dummy ranlib; ac_word=$2 6415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6416$as_echo_n "checking for $ac_word... " >&6; } 6417if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -n "$ac_ct_RANLIB"; then 6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6430 ac_cv_prog_ac_ct_RANLIB="ranlib" 6431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6441if test -n "$ac_ct_RANLIB"; then 6442 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6443$as_echo "$ac_ct_RANLIB" >&6; } 6444else 6445 { $as_echo "$as_me:$LINENO: result: no" >&5 6446$as_echo "no" >&6; } 6447fi 6448 6449 if test "x$ac_ct_RANLIB" = x; then 6450 RANLIB=":" 6451 else 6452 case $cross_compiling:$ac_tool_warned in 6453yes:) 6454{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6456ac_tool_warned=yes ;; 6457esac 6458 RANLIB=$ac_ct_RANLIB 6459 fi 6460else 6461 RANLIB="$ac_cv_prog_RANLIB" 6462fi 6463 6464test -z "$RANLIB" && RANLIB=: 6465 6466 6467 6468 6469 6470 6471# Determine commands to create old-style static archives. 6472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6473old_postinstall_cmds='chmod 644 $oldlib' 6474old_postuninstall_cmds= 6475 6476if test -n "$RANLIB"; then 6477 case $host_os in 6478 openbsd*) 6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6480 ;; 6481 *) 6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6483 ;; 6484 esac 6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6486fi 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521# If no C compiler was specified, use CC. 6522LTCC=${LTCC-"$CC"} 6523 6524# If no C compiler flags were specified, use CFLAGS. 6525LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6526 6527# Allow CC to be a program name with arguments. 6528compiler=$CC 6529 6530 6531# Check for command to grab the raw symbol name followed by C symbol from nm. 6532{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6533$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6534if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6535 $as_echo_n "(cached) " >&6 6536else 6537 6538# These are sane defaults that work on at least a few old systems. 6539# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6540 6541# Character class describing NM global symbol codes. 6542symcode='[BCDEGRST]' 6543 6544# Regexp to match symbols that can be accessed directly from C. 6545sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6546 6547# Define system-specific variables. 6548case $host_os in 6549aix*) 6550 symcode='[BCDT]' 6551 ;; 6552cygwin* | mingw* | pw32* | cegcc*) 6553 symcode='[ABCDGISTW]' 6554 ;; 6555hpux*) 6556 if test "$host_cpu" = ia64; then 6557 symcode='[ABCDEGRST]' 6558 fi 6559 ;; 6560irix* | nonstopux*) 6561 symcode='[BCDEGRST]' 6562 ;; 6563osf*) 6564 symcode='[BCDEGQRST]' 6565 ;; 6566solaris*) 6567 symcode='[BDRT]' 6568 ;; 6569sco3.2v5*) 6570 symcode='[DT]' 6571 ;; 6572sysv4.2uw2*) 6573 symcode='[DT]' 6574 ;; 6575sysv5* | sco5v6* | unixware* | OpenUNIX*) 6576 symcode='[ABDT]' 6577 ;; 6578sysv4) 6579 symcode='[DFNSTU]' 6580 ;; 6581esac 6582 6583# If we're using GNU nm, then use its standard symbol codes. 6584case `$NM -V 2>&1` in 6585*GNU* | *'with BFD'*) 6586 symcode='[ABCDGIRSTW]' ;; 6587esac 6588 6589# Transform an extracted symbol line into a proper C declaration. 6590# Some systems (esp. on ia64) link data and code symbols differently, 6591# so use this general approach. 6592lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6593 6594# Transform an extracted symbol line into symbol name and symbol address 6595lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6596lt_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'" 6597 6598# Handle CRLF in mingw tool chain 6599opt_cr= 6600case $build_os in 6601mingw*) 6602 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6603 ;; 6604esac 6605 6606# Try without a prefix underscore, then with it. 6607for ac_symprfx in "" "_"; do 6608 6609 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6610 symxfrm="\\1 $ac_symprfx\\2 \\2" 6611 6612 # Write the raw and C identifiers. 6613 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6614 # Fake it for dumpbin and say T for any non-static function 6615 # and D for any global variable. 6616 # Also find C++ and __fastcall symbols from MSVC++, 6617 # which start with @ or ?. 6618 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6619" {last_section=section; section=\$ 3};"\ 6620" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6621" \$ 0!~/External *\|/{next};"\ 6622" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6623" {if(hide[section]) next};"\ 6624" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6625" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6626" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6627" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6628" ' prfx=^$ac_symprfx" 6629 else 6630 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6631 fi 6632 6633 # Check to see that the pipe works correctly. 6634 pipe_works=no 6635 6636 rm -f conftest* 6637 cat > conftest.$ac_ext <<_LT_EOF 6638#ifdef __cplusplus 6639extern "C" { 6640#endif 6641char nm_test_var; 6642void nm_test_func(void); 6643void nm_test_func(void){} 6644#ifdef __cplusplus 6645} 6646#endif 6647int main(){nm_test_var='a';nm_test_func();return(0);} 6648_LT_EOF 6649 6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6651 (eval $ac_compile) 2>&5 6652 ac_status=$? 6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); }; then 6655 # Now try to grab the symbols. 6656 nlist=conftest.nm 6657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6659 ac_status=$? 6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); } && test -s "$nlist"; then 6662 # Try sorting and uniquifying the output. 6663 if sort "$nlist" | uniq > "$nlist"T; then 6664 mv -f "$nlist"T "$nlist" 6665 else 6666 rm -f "$nlist"T 6667 fi 6668 6669 # Make sure that we snagged all the symbols we need. 6670 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6671 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6672 cat <<_LT_EOF > conftest.$ac_ext 6673#ifdef __cplusplus 6674extern "C" { 6675#endif 6676 6677_LT_EOF 6678 # Now generate the symbol file. 6679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6680 6681 cat <<_LT_EOF >> conftest.$ac_ext 6682/* The mapping between symbol names and symbols. */ 6683const struct { 6684 const char *name; 6685 void *address; 6686} 6687lt__PROGRAM__LTX_preloaded_symbols[] = 6688{ 6689 { "@PROGRAM@", (void *) 0 }, 6690_LT_EOF 6691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6692 cat <<\_LT_EOF >> conftest.$ac_ext 6693 {0, (void *) 0} 6694}; 6695 6696/* This works around a problem in FreeBSD linker */ 6697#ifdef FREEBSD_WORKAROUND 6698static const void *lt_preloaded_setup() { 6699 return lt__PROGRAM__LTX_preloaded_symbols; 6700} 6701#endif 6702 6703#ifdef __cplusplus 6704} 6705#endif 6706_LT_EOF 6707 # Now try linking the two files. 6708 mv conftest.$ac_objext conftstm.$ac_objext 6709 lt_save_LIBS="$LIBS" 6710 lt_save_CFLAGS="$CFLAGS" 6711 LIBS="conftstm.$ac_objext" 6712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6714 (eval $ac_link) 2>&5 6715 ac_status=$? 6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6717 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6718 pipe_works=yes 6719 fi 6720 LIBS="$lt_save_LIBS" 6721 CFLAGS="$lt_save_CFLAGS" 6722 else 6723 echo "cannot find nm_test_func in $nlist" >&5 6724 fi 6725 else 6726 echo "cannot find nm_test_var in $nlist" >&5 6727 fi 6728 else 6729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6730 fi 6731 else 6732 echo "$progname: failed program was:" >&5 6733 cat conftest.$ac_ext >&5 6734 fi 6735 rm -rf conftest* conftst* 6736 6737 # Do not use the global_symbol_pipe unless it works. 6738 if test "$pipe_works" = yes; then 6739 break 6740 else 6741 lt_cv_sys_global_symbol_pipe= 6742 fi 6743done 6744 6745fi 6746 6747if test -z "$lt_cv_sys_global_symbol_pipe"; then 6748 lt_cv_sys_global_symbol_to_cdecl= 6749fi 6750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6751 { $as_echo "$as_me:$LINENO: result: failed" >&5 6752$as_echo "failed" >&6; } 6753else 6754 { $as_echo "$as_me:$LINENO: result: ok" >&5 6755$as_echo "ok" >&6; } 6756fi 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779# Check whether --enable-libtool-lock was given. 6780if test "${enable_libtool_lock+set}" = set; then 6781 enableval=$enable_libtool_lock; 6782fi 6783 6784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6785 6786# Some flags need to be propagated to the compiler or linker for good 6787# libtool support. 6788case $host in 6789ia64-*-hpux*) 6790 # Find out which ABI we are using. 6791 echo 'int i;' > conftest.$ac_ext 6792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6793 (eval $ac_compile) 2>&5 6794 ac_status=$? 6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6796 (exit $ac_status); }; then 6797 case `/usr/bin/file conftest.$ac_objext` in 6798 *ELF-32*) 6799 HPUX_IA64_MODE="32" 6800 ;; 6801 *ELF-64*) 6802 HPUX_IA64_MODE="64" 6803 ;; 6804 esac 6805 fi 6806 rm -rf conftest* 6807 ;; 6808*-*-irix6*) 6809 # Find out which ABI we are using. 6810 echo '#line 6810 "configure"' > conftest.$ac_ext 6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6812 (eval $ac_compile) 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); }; then 6816 if test "$lt_cv_prog_gnu_ld" = yes; then 6817 case `/usr/bin/file conftest.$ac_objext` in 6818 *32-bit*) 6819 LD="${LD-ld} -melf32bsmip" 6820 ;; 6821 *N32*) 6822 LD="${LD-ld} -melf32bmipn32" 6823 ;; 6824 *64-bit*) 6825 LD="${LD-ld} -melf64bmip" 6826 ;; 6827 esac 6828 else 6829 case `/usr/bin/file conftest.$ac_objext` in 6830 *32-bit*) 6831 LD="${LD-ld} -32" 6832 ;; 6833 *N32*) 6834 LD="${LD-ld} -n32" 6835 ;; 6836 *64-bit*) 6837 LD="${LD-ld} -64" 6838 ;; 6839 esac 6840 fi 6841 fi 6842 rm -rf conftest* 6843 ;; 6844 6845x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6846s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6847 # Find out which ABI we are using. 6848 echo 'int i;' > conftest.$ac_ext 6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6850 (eval $ac_compile) 2>&5 6851 ac_status=$? 6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6853 (exit $ac_status); }; then 6854 case `/usr/bin/file conftest.o` in 6855 *32-bit*) 6856 case $host in 6857 x86_64-*kfreebsd*-gnu) 6858 LD="${LD-ld} -m elf_i386_fbsd" 6859 ;; 6860 x86_64-*linux*) 6861 LD="${LD-ld} -m elf_i386" 6862 ;; 6863 ppc64-*linux*|powerpc64-*linux*) 6864 LD="${LD-ld} -m elf32ppclinux" 6865 ;; 6866 s390x-*linux*) 6867 LD="${LD-ld} -m elf_s390" 6868 ;; 6869 sparc64-*linux*) 6870 LD="${LD-ld} -m elf32_sparc" 6871 ;; 6872 esac 6873 ;; 6874 *64-bit*) 6875 case $host in 6876 x86_64-*kfreebsd*-gnu) 6877 LD="${LD-ld} -m elf_x86_64_fbsd" 6878 ;; 6879 x86_64-*linux*) 6880 LD="${LD-ld} -m elf_x86_64" 6881 ;; 6882 ppc*-*linux*|powerpc*-*linux*) 6883 LD="${LD-ld} -m elf64ppc" 6884 ;; 6885 s390*-*linux*|s390*-*tpf*) 6886 LD="${LD-ld} -m elf64_s390" 6887 ;; 6888 sparc*-*linux*) 6889 LD="${LD-ld} -m elf64_sparc" 6890 ;; 6891 esac 6892 ;; 6893 esac 6894 fi 6895 rm -rf conftest* 6896 ;; 6897 6898*-*-sco3.2v5*) 6899 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6900 SAVE_CFLAGS="$CFLAGS" 6901 CFLAGS="$CFLAGS -belf" 6902 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6903$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6904if test "${lt_cv_cc_needs_belf+set}" = set; then 6905 $as_echo_n "(cached) " >&6 6906else 6907 ac_ext=c 6908ac_cpp='$CPP $CPPFLAGS' 6909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6911ac_compiler_gnu=$ac_cv_c_compiler_gnu 6912 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 6920int 6921main () 6922{ 6923 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928rm -f conftest.$ac_objext conftest$ac_exeext 6929if { (ac_try="$ac_link" 6930case "(($ac_try" in 6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6932 *) ac_try_echo=$ac_try;; 6933esac 6934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6935$as_echo "$ac_try_echo") >&5 6936 (eval "$ac_link") 2>conftest.er1 6937 ac_status=$? 6938 grep -v '^ *+' conftest.er1 >conftest.err 6939 rm -f conftest.er1 6940 cat conftest.err >&5 6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6942 (exit $ac_status); } && { 6943 test -z "$ac_c_werror_flag" || 6944 test ! -s conftest.err 6945 } && test -s conftest$ac_exeext && { 6946 test "$cross_compiling" = yes || 6947 $as_test_x conftest$ac_exeext 6948 }; then 6949 lt_cv_cc_needs_belf=yes 6950else 6951 $as_echo "$as_me: failed program was:" >&5 6952sed 's/^/| /' conftest.$ac_ext >&5 6953 6954 lt_cv_cc_needs_belf=no 6955fi 6956 6957rm -rf conftest.dSYM 6958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6959 conftest$ac_exeext conftest.$ac_ext 6960 ac_ext=c 6961ac_cpp='$CPP $CPPFLAGS' 6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6964ac_compiler_gnu=$ac_cv_c_compiler_gnu 6965 6966fi 6967{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6968$as_echo "$lt_cv_cc_needs_belf" >&6; } 6969 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6971 CFLAGS="$SAVE_CFLAGS" 6972 fi 6973 ;; 6974sparc*-*solaris*) 6975 # Find out which ABI we are using. 6976 echo 'int i;' > conftest.$ac_ext 6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6978 (eval $ac_compile) 2>&5 6979 ac_status=$? 6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6981 (exit $ac_status); }; then 6982 case `/usr/bin/file conftest.o` in 6983 *64-bit*) 6984 case $lt_cv_prog_gnu_ld in 6985 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6986 *) 6987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6988 LD="${LD-ld} -64" 6989 fi 6990 ;; 6991 esac 6992 ;; 6993 esac 6994 fi 6995 rm -rf conftest* 6996 ;; 6997esac 6998 6999need_locks="$enable_libtool_lock" 7000 7001 7002 case $host_os in 7003 rhapsody* | darwin*) 7004 if test -n "$ac_tool_prefix"; then 7005 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7006set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7008$as_echo_n "checking for $ac_word... " >&6; } 7009if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7010 $as_echo_n "(cached) " >&6 7011else 7012 if test -n "$DSYMUTIL"; then 7013 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7014else 7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016for as_dir in $PATH 7017do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7022 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026done 7027done 7028IFS=$as_save_IFS 7029 7030fi 7031fi 7032DSYMUTIL=$ac_cv_prog_DSYMUTIL 7033if test -n "$DSYMUTIL"; then 7034 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7035$as_echo "$DSYMUTIL" >&6; } 7036else 7037 { $as_echo "$as_me:$LINENO: result: no" >&5 7038$as_echo "no" >&6; } 7039fi 7040 7041 7042fi 7043if test -z "$ac_cv_prog_DSYMUTIL"; then 7044 ac_ct_DSYMUTIL=$DSYMUTIL 7045 # Extract the first word of "dsymutil", so it can be a program name with args. 7046set dummy dsymutil; ac_word=$2 7047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7048$as_echo_n "checking for $ac_word... " >&6; } 7049if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7050 $as_echo_n "(cached) " >&6 7051else 7052 if test -n "$ac_ct_DSYMUTIL"; then 7053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7054else 7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056for as_dir in $PATH 7057do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_exec_ext in '' $ac_executable_extensions; do 7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7062 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7064 break 2 7065 fi 7066done 7067done 7068IFS=$as_save_IFS 7069 7070fi 7071fi 7072ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7073if test -n "$ac_ct_DSYMUTIL"; then 7074 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7075$as_echo "$ac_ct_DSYMUTIL" >&6; } 7076else 7077 { $as_echo "$as_me:$LINENO: result: no" >&5 7078$as_echo "no" >&6; } 7079fi 7080 7081 if test "x$ac_ct_DSYMUTIL" = x; then 7082 DSYMUTIL=":" 7083 else 7084 case $cross_compiling:$ac_tool_warned in 7085yes:) 7086{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7088ac_tool_warned=yes ;; 7089esac 7090 DSYMUTIL=$ac_ct_DSYMUTIL 7091 fi 7092else 7093 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7094fi 7095 7096 if test -n "$ac_tool_prefix"; then 7097 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7098set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7100$as_echo_n "checking for $ac_word... " >&6; } 7101if test "${ac_cv_prog_NMEDIT+set}" = set; then 7102 $as_echo_n "(cached) " >&6 7103else 7104 if test -n "$NMEDIT"; then 7105 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7106else 7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7108for as_dir in $PATH 7109do 7110 IFS=$as_save_IFS 7111 test -z "$as_dir" && as_dir=. 7112 for ac_exec_ext in '' $ac_executable_extensions; do 7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7116 break 2 7117 fi 7118done 7119done 7120IFS=$as_save_IFS 7121 7122fi 7123fi 7124NMEDIT=$ac_cv_prog_NMEDIT 7125if test -n "$NMEDIT"; then 7126 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7127$as_echo "$NMEDIT" >&6; } 7128else 7129 { $as_echo "$as_me:$LINENO: result: no" >&5 7130$as_echo "no" >&6; } 7131fi 7132 7133 7134fi 7135if test -z "$ac_cv_prog_NMEDIT"; then 7136 ac_ct_NMEDIT=$NMEDIT 7137 # Extract the first word of "nmedit", so it can be a program name with args. 7138set dummy nmedit; ac_word=$2 7139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7140$as_echo_n "checking for $ac_word... " >&6; } 7141if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7142 $as_echo_n "(cached) " >&6 7143else 7144 if test -n "$ac_ct_NMEDIT"; then 7145 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7146else 7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7148for as_dir in $PATH 7149do 7150 IFS=$as_save_IFS 7151 test -z "$as_dir" && as_dir=. 7152 for ac_exec_ext in '' $ac_executable_extensions; do 7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7154 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7156 break 2 7157 fi 7158done 7159done 7160IFS=$as_save_IFS 7161 7162fi 7163fi 7164ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7165if test -n "$ac_ct_NMEDIT"; then 7166 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7167$as_echo "$ac_ct_NMEDIT" >&6; } 7168else 7169 { $as_echo "$as_me:$LINENO: result: no" >&5 7170$as_echo "no" >&6; } 7171fi 7172 7173 if test "x$ac_ct_NMEDIT" = x; then 7174 NMEDIT=":" 7175 else 7176 case $cross_compiling:$ac_tool_warned in 7177yes:) 7178{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7180ac_tool_warned=yes ;; 7181esac 7182 NMEDIT=$ac_ct_NMEDIT 7183 fi 7184else 7185 NMEDIT="$ac_cv_prog_NMEDIT" 7186fi 7187 7188 if test -n "$ac_tool_prefix"; then 7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7190set dummy ${ac_tool_prefix}lipo; ac_word=$2 7191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7192$as_echo_n "checking for $ac_word... " >&6; } 7193if test "${ac_cv_prog_LIPO+set}" = set; then 7194 $as_echo_n "(cached) " >&6 7195else 7196 if test -n "$LIPO"; then 7197 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7198else 7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200for as_dir in $PATH 7201do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7206 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211done 7212IFS=$as_save_IFS 7213 7214fi 7215fi 7216LIPO=$ac_cv_prog_LIPO 7217if test -n "$LIPO"; then 7218 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7219$as_echo "$LIPO" >&6; } 7220else 7221 { $as_echo "$as_me:$LINENO: result: no" >&5 7222$as_echo "no" >&6; } 7223fi 7224 7225 7226fi 7227if test -z "$ac_cv_prog_LIPO"; then 7228 ac_ct_LIPO=$LIPO 7229 # Extract the first word of "lipo", so it can be a program name with args. 7230set dummy lipo; ac_word=$2 7231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7232$as_echo_n "checking for $ac_word... " >&6; } 7233if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7234 $as_echo_n "(cached) " >&6 7235else 7236 if test -n "$ac_ct_LIPO"; then 7237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7238else 7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7240for as_dir in $PATH 7241do 7242 IFS=$as_save_IFS 7243 test -z "$as_dir" && as_dir=. 7244 for ac_exec_ext in '' $ac_executable_extensions; do 7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7246 ac_cv_prog_ac_ct_LIPO="lipo" 7247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7248 break 2 7249 fi 7250done 7251done 7252IFS=$as_save_IFS 7253 7254fi 7255fi 7256ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7257if test -n "$ac_ct_LIPO"; then 7258 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7259$as_echo "$ac_ct_LIPO" >&6; } 7260else 7261 { $as_echo "$as_me:$LINENO: result: no" >&5 7262$as_echo "no" >&6; } 7263fi 7264 7265 if test "x$ac_ct_LIPO" = x; then 7266 LIPO=":" 7267 else 7268 case $cross_compiling:$ac_tool_warned in 7269yes:) 7270{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7272ac_tool_warned=yes ;; 7273esac 7274 LIPO=$ac_ct_LIPO 7275 fi 7276else 7277 LIPO="$ac_cv_prog_LIPO" 7278fi 7279 7280 if test -n "$ac_tool_prefix"; then 7281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7282set dummy ${ac_tool_prefix}otool; ac_word=$2 7283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7284$as_echo_n "checking for $ac_word... " >&6; } 7285if test "${ac_cv_prog_OTOOL+set}" = set; then 7286 $as_echo_n "(cached) " >&6 7287else 7288 if test -n "$OTOOL"; then 7289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7290else 7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7298 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302done 7303done 7304IFS=$as_save_IFS 7305 7306fi 7307fi 7308OTOOL=$ac_cv_prog_OTOOL 7309if test -n "$OTOOL"; then 7310 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7311$as_echo "$OTOOL" >&6; } 7312else 7313 { $as_echo "$as_me:$LINENO: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 7318fi 7319if test -z "$ac_cv_prog_OTOOL"; then 7320 ac_ct_OTOOL=$OTOOL 7321 # Extract the first word of "otool", so it can be a program name with args. 7322set dummy otool; ac_word=$2 7323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7324$as_echo_n "checking for $ac_word... " >&6; } 7325if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7326 $as_echo_n "(cached) " >&6 7327else 7328 if test -n "$ac_ct_OTOOL"; then 7329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7330else 7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7332for as_dir in $PATH 7333do 7334 IFS=$as_save_IFS 7335 test -z "$as_dir" && as_dir=. 7336 for ac_exec_ext in '' $ac_executable_extensions; do 7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7338 ac_cv_prog_ac_ct_OTOOL="otool" 7339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7340 break 2 7341 fi 7342done 7343done 7344IFS=$as_save_IFS 7345 7346fi 7347fi 7348ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7349if test -n "$ac_ct_OTOOL"; then 7350 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7351$as_echo "$ac_ct_OTOOL" >&6; } 7352else 7353 { $as_echo "$as_me:$LINENO: result: no" >&5 7354$as_echo "no" >&6; } 7355fi 7356 7357 if test "x$ac_ct_OTOOL" = x; then 7358 OTOOL=":" 7359 else 7360 case $cross_compiling:$ac_tool_warned in 7361yes:) 7362{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7364ac_tool_warned=yes ;; 7365esac 7366 OTOOL=$ac_ct_OTOOL 7367 fi 7368else 7369 OTOOL="$ac_cv_prog_OTOOL" 7370fi 7371 7372 if test -n "$ac_tool_prefix"; then 7373 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7374set dummy ${ac_tool_prefix}otool64; ac_word=$2 7375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7376$as_echo_n "checking for $ac_word... " >&6; } 7377if test "${ac_cv_prog_OTOOL64+set}" = set; then 7378 $as_echo_n "(cached) " >&6 7379else 7380 if test -n "$OTOOL64"; then 7381 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7382else 7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400OTOOL64=$ac_cv_prog_OTOOL64 7401if test -n "$OTOOL64"; then 7402 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7403$as_echo "$OTOOL64" >&6; } 7404else 7405 { $as_echo "$as_me:$LINENO: result: no" >&5 7406$as_echo "no" >&6; } 7407fi 7408 7409 7410fi 7411if test -z "$ac_cv_prog_OTOOL64"; then 7412 ac_ct_OTOOL64=$OTOOL64 7413 # Extract the first word of "otool64", so it can be a program name with args. 7414set dummy otool64; ac_word=$2 7415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7416$as_echo_n "checking for $ac_word... " >&6; } 7417if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7418 $as_echo_n "(cached) " >&6 7419else 7420 if test -n "$ac_ct_OTOOL64"; then 7421 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7422else 7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424for as_dir in $PATH 7425do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7430 ac_cv_prog_ac_ct_OTOOL64="otool64" 7431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435done 7436IFS=$as_save_IFS 7437 7438fi 7439fi 7440ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7441if test -n "$ac_ct_OTOOL64"; then 7442 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7443$as_echo "$ac_ct_OTOOL64" >&6; } 7444else 7445 { $as_echo "$as_me:$LINENO: result: no" >&5 7446$as_echo "no" >&6; } 7447fi 7448 7449 if test "x$ac_ct_OTOOL64" = x; then 7450 OTOOL64=":" 7451 else 7452 case $cross_compiling:$ac_tool_warned in 7453yes:) 7454{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7456ac_tool_warned=yes ;; 7457esac 7458 OTOOL64=$ac_ct_OTOOL64 7459 fi 7460else 7461 OTOOL64="$ac_cv_prog_OTOOL64" 7462fi 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7491$as_echo_n "checking for -single_module linker flag... " >&6; } 7492if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7493 $as_echo_n "(cached) " >&6 7494else 7495 lt_cv_apple_cc_single_mod=no 7496 if test -z "${LT_MULTI_MODULE}"; then 7497 # By default we will add the -single_module flag. You can override 7498 # by either setting the environment variable LT_MULTI_MODULE 7499 # non-empty at configure time, or by adding -multi_module to the 7500 # link flags. 7501 rm -rf libconftest.dylib* 7502 echo "int foo(void){return 1;}" > conftest.c 7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7504-dynamiclib -Wl,-single_module conftest.c" >&5 7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7507 _lt_result=$? 7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7509 lt_cv_apple_cc_single_mod=yes 7510 else 7511 cat conftest.err >&5 7512 fi 7513 rm -rf libconftest.dylib* 7514 rm -f conftest.* 7515 fi 7516fi 7517{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7518$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7519 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7520$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7521if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7522 $as_echo_n "(cached) " >&6 7523else 7524 lt_cv_ld_exported_symbols_list=no 7525 save_LDFLAGS=$LDFLAGS 7526 echo "_main" > conftest.sym 7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7528 cat >conftest.$ac_ext <<_ACEOF 7529/* confdefs.h. */ 7530_ACEOF 7531cat confdefs.h >>conftest.$ac_ext 7532cat >>conftest.$ac_ext <<_ACEOF 7533/* end confdefs.h. */ 7534 7535int 7536main () 7537{ 7538 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543rm -f conftest.$ac_objext conftest$ac_exeext 7544if { (ac_try="$ac_link" 7545case "(($ac_try" in 7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7547 *) ac_try_echo=$ac_try;; 7548esac 7549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7550$as_echo "$ac_try_echo") >&5 7551 (eval "$ac_link") 2>conftest.er1 7552 ac_status=$? 7553 grep -v '^ *+' conftest.er1 >conftest.err 7554 rm -f conftest.er1 7555 cat conftest.err >&5 7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7557 (exit $ac_status); } && { 7558 test -z "$ac_c_werror_flag" || 7559 test ! -s conftest.err 7560 } && test -s conftest$ac_exeext && { 7561 test "$cross_compiling" = yes || 7562 $as_test_x conftest$ac_exeext 7563 }; then 7564 lt_cv_ld_exported_symbols_list=yes 7565else 7566 $as_echo "$as_me: failed program was:" >&5 7567sed 's/^/| /' conftest.$ac_ext >&5 7568 7569 lt_cv_ld_exported_symbols_list=no 7570fi 7571 7572rm -rf conftest.dSYM 7573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7574 conftest$ac_exeext conftest.$ac_ext 7575 LDFLAGS="$save_LDFLAGS" 7576 7577fi 7578{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7579$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7580 case $host_os in 7581 rhapsody* | darwin1.[012]) 7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7583 darwin1.*) 7584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7585 darwin*) # darwin 5.x on 7586 # if running on 10.5 or later, the deployment target defaults 7587 # to the OS version, if on x86, and 10.4, the deployment 7588 # target defaults to 10.4. Don't you love it? 7589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7590 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7592 10.[012]*) 7593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7594 10.*) 7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7596 esac 7597 ;; 7598 esac 7599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7600 _lt_dar_single_mod='$single_module' 7601 fi 7602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7604 else 7605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7606 fi 7607 if test "$DSYMUTIL" != ":"; then 7608 _lt_dsymutil='~$DSYMUTIL $lib || :' 7609 else 7610 _lt_dsymutil= 7611 fi 7612 ;; 7613 esac 7614 7615 7616for ac_header in dlfcn.h 7617do 7618as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7619{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7620$as_echo_n "checking for $ac_header... " >&6; } 7621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7622 $as_echo_n "(cached) " >&6 7623else 7624 cat >conftest.$ac_ext <<_ACEOF 7625/* confdefs.h. */ 7626_ACEOF 7627cat confdefs.h >>conftest.$ac_ext 7628cat >>conftest.$ac_ext <<_ACEOF 7629/* end confdefs.h. */ 7630$ac_includes_default 7631 7632#include <$ac_header> 7633_ACEOF 7634rm -f conftest.$ac_objext 7635if { (ac_try="$ac_compile" 7636case "(($ac_try" in 7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7638 *) ac_try_echo=$ac_try;; 7639esac 7640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7641$as_echo "$ac_try_echo") >&5 7642 (eval "$ac_compile") 2>conftest.er1 7643 ac_status=$? 7644 grep -v '^ *+' conftest.er1 >conftest.err 7645 rm -f conftest.er1 7646 cat conftest.err >&5 7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } && { 7649 test -z "$ac_c_werror_flag" || 7650 test ! -s conftest.err 7651 } && test -s conftest.$ac_objext; then 7652 eval "$as_ac_Header=yes" 7653else 7654 $as_echo "$as_me: failed program was:" >&5 7655sed 's/^/| /' conftest.$ac_ext >&5 7656 7657 eval "$as_ac_Header=no" 7658fi 7659 7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7661fi 7662ac_res=`eval 'as_val=${'$as_ac_Header'} 7663 $as_echo "$as_val"'` 7664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7665$as_echo "$ac_res" >&6; } 7666as_val=`eval 'as_val=${'$as_ac_Header'} 7667 $as_echo "$as_val"'` 7668 if test "x$as_val" = x""yes; then 7669 cat >>confdefs.h <<_ACEOF 7670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7671_ACEOF 7672 7673fi 7674 7675done 7676 7677 7678 7679# Set options 7680 7681 7682 7683 enable_dlopen=no 7684 7685 7686 enable_win32_dll=no 7687 7688 7689 # Check whether --enable-shared was given. 7690if test "${enable_shared+set}" = set; then 7691 enableval=$enable_shared; p=${PACKAGE-default} 7692 case $enableval in 7693 yes) enable_shared=yes ;; 7694 no) enable_shared=no ;; 7695 *) 7696 enable_shared=no 7697 # Look at the argument we got. We use all the common list separators. 7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7699 for pkg in $enableval; do 7700 IFS="$lt_save_ifs" 7701 if test "X$pkg" = "X$p"; then 7702 enable_shared=yes 7703 fi 7704 done 7705 IFS="$lt_save_ifs" 7706 ;; 7707 esac 7708else 7709 enable_shared=yes 7710fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 # Check whether --enable-static was given. 7721if test "${enable_static+set}" = set; then 7722 enableval=$enable_static; p=${PACKAGE-default} 7723 case $enableval in 7724 yes) enable_static=yes ;; 7725 no) enable_static=no ;; 7726 *) 7727 enable_static=no 7728 # Look at the argument we got. We use all the common list separators. 7729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7730 for pkg in $enableval; do 7731 IFS="$lt_save_ifs" 7732 if test "X$pkg" = "X$p"; then 7733 enable_static=yes 7734 fi 7735 done 7736 IFS="$lt_save_ifs" 7737 ;; 7738 esac 7739else 7740 enable_static=yes 7741fi 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752# Check whether --with-pic was given. 7753if test "${with_pic+set}" = set; then 7754 withval=$with_pic; pic_mode="$withval" 7755else 7756 pic_mode=default 7757fi 7758 7759 7760test -z "$pic_mode" && pic_mode=default 7761 7762 7763 7764 7765 7766 7767 7768 # Check whether --enable-fast-install was given. 7769if test "${enable_fast_install+set}" = set; then 7770 enableval=$enable_fast_install; p=${PACKAGE-default} 7771 case $enableval in 7772 yes) enable_fast_install=yes ;; 7773 no) enable_fast_install=no ;; 7774 *) 7775 enable_fast_install=no 7776 # Look at the argument we got. We use all the common list separators. 7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7778 for pkg in $enableval; do 7779 IFS="$lt_save_ifs" 7780 if test "X$pkg" = "X$p"; then 7781 enable_fast_install=yes 7782 fi 7783 done 7784 IFS="$lt_save_ifs" 7785 ;; 7786 esac 7787else 7788 enable_fast_install=yes 7789fi 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801# This can be used to rebuild libtool when needed 7802LIBTOOL_DEPS="$ltmain" 7803 7804# Always use our own libtool. 7805LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831test -z "$LN_S" && LN_S="ln -s" 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846if test -n "${ZSH_VERSION+set}" ; then 7847 setopt NO_GLOB_SUBST 7848fi 7849 7850{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7851$as_echo_n "checking for objdir... " >&6; } 7852if test "${lt_cv_objdir+set}" = set; then 7853 $as_echo_n "(cached) " >&6 7854else 7855 rm -f .libs 2>/dev/null 7856mkdir .libs 2>/dev/null 7857if test -d .libs; then 7858 lt_cv_objdir=.libs 7859else 7860 # MS-DOS does not allow filenames that begin with a dot. 7861 lt_cv_objdir=_libs 7862fi 7863rmdir .libs 2>/dev/null 7864fi 7865{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7866$as_echo "$lt_cv_objdir" >&6; } 7867objdir=$lt_cv_objdir 7868 7869 7870 7871 7872 7873cat >>confdefs.h <<_ACEOF 7874#define LT_OBJDIR "$lt_cv_objdir/" 7875_ACEOF 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893case $host_os in 7894aix3*) 7895 # AIX sometimes has problems with the GCC collect2 program. For some 7896 # reason, if we set the COLLECT_NAMES environment variable, the problems 7897 # vanish in a puff of smoke. 7898 if test "X${COLLECT_NAMES+set}" != Xset; then 7899 COLLECT_NAMES= 7900 export COLLECT_NAMES 7901 fi 7902 ;; 7903esac 7904 7905# Sed substitution that helps us do robust quoting. It backslashifies 7906# metacharacters that are still active within double-quoted strings. 7907sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7908 7909# Same as above, but do not quote variable references. 7910double_quote_subst='s/\(["`\\]\)/\\\1/g' 7911 7912# Sed substitution to delay expansion of an escaped shell variable in a 7913# double_quote_subst'ed string. 7914delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7915 7916# Sed substitution to delay expansion of an escaped single quote. 7917delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7918 7919# Sed substitution to avoid accidental globbing in evaled expressions 7920no_glob_subst='s/\*/\\\*/g' 7921 7922# Global variables: 7923ofile=libtool 7924can_build_shared=yes 7925 7926# All known linkers require a `.a' archive for static linking (except MSVC, 7927# which needs '.lib'). 7928libext=a 7929 7930with_gnu_ld="$lt_cv_prog_gnu_ld" 7931 7932old_CC="$CC" 7933old_CFLAGS="$CFLAGS" 7934 7935# Set sane defaults for various variables 7936test -z "$CC" && CC=cc 7937test -z "$LTCC" && LTCC=$CC 7938test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7939test -z "$LD" && LD=ld 7940test -z "$ac_objext" && ac_objext=o 7941 7942for cc_temp in $compiler""; do 7943 case $cc_temp in 7944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7946 \-*) ;; 7947 *) break;; 7948 esac 7949done 7950cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7951 7952 7953# Only perform the check for file, if the check method requires it 7954test -z "$MAGIC_CMD" && MAGIC_CMD=file 7955case $deplibs_check_method in 7956file_magic*) 7957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7958 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7959$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7960if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7961 $as_echo_n "(cached) " >&6 7962else 7963 case $MAGIC_CMD in 7964[\\/*] | ?:[\\/]*) 7965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7966 ;; 7967*) 7968 lt_save_MAGIC_CMD="$MAGIC_CMD" 7969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7971 for ac_dir in $ac_dummy; do 7972 IFS="$lt_save_ifs" 7973 test -z "$ac_dir" && ac_dir=. 7974 if test -f $ac_dir/${ac_tool_prefix}file; then 7975 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7976 if test -n "$file_magic_test_file"; then 7977 case $deplibs_check_method in 7978 "file_magic "*) 7979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7982 $EGREP "$file_magic_regex" > /dev/null; then 7983 : 7984 else 7985 cat <<_LT_EOF 1>&2 7986 7987*** Warning: the command libtool uses to detect shared libraries, 7988*** $file_magic_cmd, produces output that libtool cannot recognize. 7989*** The result is that libtool may fail to recognize shared libraries 7990*** as such. This will affect the creation of libtool libraries that 7991*** depend on shared libraries, but programs linked with such libtool 7992*** libraries will work regardless of this problem. Nevertheless, you 7993*** may want to report the problem to your system manager and/or to 7994*** bug-libtool@gnu.org 7995 7996_LT_EOF 7997 fi ;; 7998 esac 7999 fi 8000 break 8001 fi 8002 done 8003 IFS="$lt_save_ifs" 8004 MAGIC_CMD="$lt_save_MAGIC_CMD" 8005 ;; 8006esac 8007fi 8008 8009MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8010if test -n "$MAGIC_CMD"; then 8011 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8012$as_echo "$MAGIC_CMD" >&6; } 8013else 8014 { $as_echo "$as_me:$LINENO: result: no" >&5 8015$as_echo "no" >&6; } 8016fi 8017 8018 8019 8020 8021 8022if test -z "$lt_cv_path_MAGIC_CMD"; then 8023 if test -n "$ac_tool_prefix"; then 8024 { $as_echo "$as_me:$LINENO: checking for file" >&5 8025$as_echo_n "checking for file... " >&6; } 8026if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8027 $as_echo_n "(cached) " >&6 8028else 8029 case $MAGIC_CMD in 8030[\\/*] | ?:[\\/]*) 8031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8032 ;; 8033*) 8034 lt_save_MAGIC_CMD="$MAGIC_CMD" 8035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8037 for ac_dir in $ac_dummy; do 8038 IFS="$lt_save_ifs" 8039 test -z "$ac_dir" && ac_dir=. 8040 if test -f $ac_dir/file; then 8041 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8042 if test -n "$file_magic_test_file"; then 8043 case $deplibs_check_method in 8044 "file_magic "*) 8045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8048 $EGREP "$file_magic_regex" > /dev/null; then 8049 : 8050 else 8051 cat <<_LT_EOF 1>&2 8052 8053*** Warning: the command libtool uses to detect shared libraries, 8054*** $file_magic_cmd, produces output that libtool cannot recognize. 8055*** The result is that libtool may fail to recognize shared libraries 8056*** as such. This will affect the creation of libtool libraries that 8057*** depend on shared libraries, but programs linked with such libtool 8058*** libraries will work regardless of this problem. Nevertheless, you 8059*** may want to report the problem to your system manager and/or to 8060*** bug-libtool@gnu.org 8061 8062_LT_EOF 8063 fi ;; 8064 esac 8065 fi 8066 break 8067 fi 8068 done 8069 IFS="$lt_save_ifs" 8070 MAGIC_CMD="$lt_save_MAGIC_CMD" 8071 ;; 8072esac 8073fi 8074 8075MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8076if test -n "$MAGIC_CMD"; then 8077 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8078$as_echo "$MAGIC_CMD" >&6; } 8079else 8080 { $as_echo "$as_me:$LINENO: result: no" >&5 8081$as_echo "no" >&6; } 8082fi 8083 8084 8085 else 8086 MAGIC_CMD=: 8087 fi 8088fi 8089 8090 fi 8091 ;; 8092esac 8093 8094# Use C for the default configuration in the libtool script 8095 8096lt_save_CC="$CC" 8097ac_ext=c 8098ac_cpp='$CPP $CPPFLAGS' 8099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8101ac_compiler_gnu=$ac_cv_c_compiler_gnu 8102 8103 8104# Source file extension for C test sources. 8105ac_ext=c 8106 8107# Object file extension for compiled C test sources. 8108objext=o 8109objext=$objext 8110 8111# Code to be used in simple compile tests 8112lt_simple_compile_test_code="int some_variable = 0;" 8113 8114# Code to be used in simple link tests 8115lt_simple_link_test_code='int main(){return(0);}' 8116 8117 8118 8119 8120 8121 8122 8123# If no C compiler was specified, use CC. 8124LTCC=${LTCC-"$CC"} 8125 8126# If no C compiler flags were specified, use CFLAGS. 8127LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8128 8129# Allow CC to be a program name with arguments. 8130compiler=$CC 8131 8132# Save the default compiler, since it gets overwritten when the other 8133# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8134compiler_DEFAULT=$CC 8135 8136# save warnings/boilerplate of simple test code 8137ac_outfile=conftest.$ac_objext 8138echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8139eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8140_lt_compiler_boilerplate=`cat conftest.err` 8141$RM conftest* 8142 8143ac_outfile=conftest.$ac_objext 8144echo "$lt_simple_link_test_code" >conftest.$ac_ext 8145eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8146_lt_linker_boilerplate=`cat conftest.err` 8147$RM -r conftest* 8148 8149 8150## CAVEAT EMPTOR: 8151## There is no encapsulation within the following macros, do not change 8152## the running order or otherwise move them around unless you know exactly 8153## what you are doing... 8154if test -n "$compiler"; then 8155 8156lt_prog_compiler_no_builtin_flag= 8157 8158if test "$GCC" = yes; then 8159 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8160 8161 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8162$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8163if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8164 $as_echo_n "(cached) " >&6 8165else 8166 lt_cv_prog_compiler_rtti_exceptions=no 8167 ac_outfile=conftest.$ac_objext 8168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8169 lt_compiler_flag="-fno-rtti -fno-exceptions" 8170 # Insert the option either (1) after the last *FLAGS variable, or 8171 # (2) before a word containing "conftest.", or (3) at the end. 8172 # Note that $ac_compile itself does not contain backslashes and begins 8173 # with a dollar sign (not a hyphen), so the echo should work correctly. 8174 # The option is referenced via a variable to avoid confusing sed. 8175 lt_compile=`echo "$ac_compile" | $SED \ 8176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8178 -e 's:$: $lt_compiler_flag:'` 8179 (eval echo "\"\$as_me:8179: $lt_compile\"" >&5) 8180 (eval "$lt_compile" 2>conftest.err) 8181 ac_status=$? 8182 cat conftest.err >&5 8183 echo "$as_me:8183: \$? = $ac_status" >&5 8184 if (exit $ac_status) && test -s "$ac_outfile"; then 8185 # The compiler can only warn and ignore the option if not recognized 8186 # So say no if there are warnings other than the usual output. 8187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8190 lt_cv_prog_compiler_rtti_exceptions=yes 8191 fi 8192 fi 8193 $RM conftest* 8194 8195fi 8196{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8197$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8198 8199if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8200 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8201else 8202 : 8203fi 8204 8205fi 8206 8207 8208 8209 8210 8211 8212 lt_prog_compiler_wl= 8213lt_prog_compiler_pic= 8214lt_prog_compiler_static= 8215 8216{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8217$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8218 8219 if test "$GCC" = yes; then 8220 lt_prog_compiler_wl='-Wl,' 8221 lt_prog_compiler_static='-static' 8222 8223 case $host_os in 8224 aix*) 8225 # All AIX code is PIC. 8226 if test "$host_cpu" = ia64; then 8227 # AIX 5 now supports IA64 processor 8228 lt_prog_compiler_static='-Bstatic' 8229 fi 8230 ;; 8231 8232 amigaos*) 8233 case $host_cpu in 8234 powerpc) 8235 # see comment about AmigaOS4 .so support 8236 lt_prog_compiler_pic='-fPIC' 8237 ;; 8238 m68k) 8239 # FIXME: we need at least 68020 code to build shared libraries, but 8240 # adding the `-m68020' flag to GCC prevents building anything better, 8241 # like `-m68040'. 8242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8243 ;; 8244 esac 8245 ;; 8246 8247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8248 # PIC is the default for these OSes. 8249 ;; 8250 8251 mingw* | cygwin* | pw32* | os2* | cegcc*) 8252 # This hack is so that the source file can tell whether it is being 8253 # built for inclusion in a dll (and should export symbols for example). 8254 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8255 # (--disable-auto-import) libraries 8256 lt_prog_compiler_pic='-DDLL_EXPORT' 8257 ;; 8258 8259 darwin* | rhapsody*) 8260 # PIC is the default on this platform 8261 # Common symbols not allowed in MH_DYLIB files 8262 lt_prog_compiler_pic='-fno-common' 8263 ;; 8264 8265 hpux*) 8266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8268 # sets the default TLS model and affects inlining. 8269 case $host_cpu in 8270 hppa*64*) 8271 # +Z the default 8272 ;; 8273 *) 8274 lt_prog_compiler_pic='-fPIC' 8275 ;; 8276 esac 8277 ;; 8278 8279 interix[3-9]*) 8280 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8281 # Instead, we relocate shared libraries at runtime. 8282 ;; 8283 8284 msdosdjgpp*) 8285 # Just because we use GCC doesn't mean we suddenly get shared libraries 8286 # on systems that don't support them. 8287 lt_prog_compiler_can_build_shared=no 8288 enable_shared=no 8289 ;; 8290 8291 *nto* | *qnx*) 8292 # QNX uses GNU C++, but need to define -shared option too, otherwise 8293 # it will coredump. 8294 lt_prog_compiler_pic='-fPIC -shared' 8295 ;; 8296 8297 sysv4*MP*) 8298 if test -d /usr/nec; then 8299 lt_prog_compiler_pic=-Kconform_pic 8300 fi 8301 ;; 8302 8303 *) 8304 lt_prog_compiler_pic='-fPIC' 8305 ;; 8306 esac 8307 else 8308 # PORTME Check for flag to pass linker flags through the system compiler. 8309 case $host_os in 8310 aix*) 8311 lt_prog_compiler_wl='-Wl,' 8312 if test "$host_cpu" = ia64; then 8313 # AIX 5 now supports IA64 processor 8314 lt_prog_compiler_static='-Bstatic' 8315 else 8316 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8317 fi 8318 ;; 8319 8320 mingw* | cygwin* | pw32* | os2* | cegcc*) 8321 # This hack is so that the source file can tell whether it is being 8322 # built for inclusion in a dll (and should export symbols for example). 8323 lt_prog_compiler_pic='-DDLL_EXPORT' 8324 ;; 8325 8326 hpux9* | hpux10* | hpux11*) 8327 lt_prog_compiler_wl='-Wl,' 8328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8329 # not for PA HP-UX. 8330 case $host_cpu in 8331 hppa*64*|ia64*) 8332 # +Z the default 8333 ;; 8334 *) 8335 lt_prog_compiler_pic='+Z' 8336 ;; 8337 esac 8338 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8339 lt_prog_compiler_static='${wl}-a ${wl}archive' 8340 ;; 8341 8342 irix5* | irix6* | nonstopux*) 8343 lt_prog_compiler_wl='-Wl,' 8344 # PIC (with -KPIC) is the default. 8345 lt_prog_compiler_static='-non_shared' 8346 ;; 8347 8348 linux* | k*bsd*-gnu) 8349 case $cc_basename in 8350 # old Intel for x86_64 which still supported -KPIC. 8351 ecc*) 8352 lt_prog_compiler_wl='-Wl,' 8353 lt_prog_compiler_pic='-KPIC' 8354 lt_prog_compiler_static='-static' 8355 ;; 8356 # icc used to be incompatible with GCC. 8357 # ICC 10 doesn't accept -KPIC any more. 8358 icc* | ifort*) 8359 lt_prog_compiler_wl='-Wl,' 8360 lt_prog_compiler_pic='-fPIC' 8361 lt_prog_compiler_static='-static' 8362 ;; 8363 # Lahey Fortran 8.1. 8364 lf95*) 8365 lt_prog_compiler_wl='-Wl,' 8366 lt_prog_compiler_pic='--shared' 8367 lt_prog_compiler_static='--static' 8368 ;; 8369 pgcc* | pgf77* | pgf90* | pgf95*) 8370 # Portland Group compilers (*not* the Pentium gcc compiler, 8371 # which looks to be a dead project) 8372 lt_prog_compiler_wl='-Wl,' 8373 lt_prog_compiler_pic='-fpic' 8374 lt_prog_compiler_static='-Bstatic' 8375 ;; 8376 ccc*) 8377 lt_prog_compiler_wl='-Wl,' 8378 # All Alpha code is PIC. 8379 lt_prog_compiler_static='-non_shared' 8380 ;; 8381 xl*) 8382 # IBM XL C 8.0/Fortran 10.1 on PPC 8383 lt_prog_compiler_wl='-Wl,' 8384 lt_prog_compiler_pic='-qpic' 8385 lt_prog_compiler_static='-qstaticlink' 8386 ;; 8387 *) 8388 case `$CC -V 2>&1 | sed 5q` in 8389 *Sun\ C*) 8390 # Sun C 5.9 8391 lt_prog_compiler_pic='-KPIC' 8392 lt_prog_compiler_static='-Bstatic' 8393 lt_prog_compiler_wl='-Wl,' 8394 ;; 8395 *Sun\ F*) 8396 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8397 lt_prog_compiler_pic='-KPIC' 8398 lt_prog_compiler_static='-Bstatic' 8399 lt_prog_compiler_wl='' 8400 ;; 8401 esac 8402 ;; 8403 esac 8404 ;; 8405 8406 newsos6) 8407 lt_prog_compiler_pic='-KPIC' 8408 lt_prog_compiler_static='-Bstatic' 8409 ;; 8410 8411 *nto* | *qnx*) 8412 # QNX uses GNU C++, but need to define -shared option too, otherwise 8413 # it will coredump. 8414 lt_prog_compiler_pic='-fPIC -shared' 8415 ;; 8416 8417 osf3* | osf4* | osf5*) 8418 lt_prog_compiler_wl='-Wl,' 8419 # All OSF/1 code is PIC. 8420 lt_prog_compiler_static='-non_shared' 8421 ;; 8422 8423 rdos*) 8424 lt_prog_compiler_static='-non_shared' 8425 ;; 8426 8427 solaris*) 8428 lt_prog_compiler_pic='-KPIC' 8429 lt_prog_compiler_static='-Bstatic' 8430 case $cc_basename in 8431 f77* | f90* | f95*) 8432 lt_prog_compiler_wl='-Qoption ld ';; 8433 *) 8434 lt_prog_compiler_wl='-Wl,';; 8435 esac 8436 ;; 8437 8438 sunos4*) 8439 lt_prog_compiler_wl='-Qoption ld ' 8440 lt_prog_compiler_pic='-PIC' 8441 lt_prog_compiler_static='-Bstatic' 8442 ;; 8443 8444 sysv4 | sysv4.2uw2* | sysv4.3*) 8445 lt_prog_compiler_wl='-Wl,' 8446 lt_prog_compiler_pic='-KPIC' 8447 lt_prog_compiler_static='-Bstatic' 8448 ;; 8449 8450 sysv4*MP*) 8451 if test -d /usr/nec ;then 8452 lt_prog_compiler_pic='-Kconform_pic' 8453 lt_prog_compiler_static='-Bstatic' 8454 fi 8455 ;; 8456 8457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8458 lt_prog_compiler_wl='-Wl,' 8459 lt_prog_compiler_pic='-KPIC' 8460 lt_prog_compiler_static='-Bstatic' 8461 ;; 8462 8463 unicos*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_can_build_shared=no 8466 ;; 8467 8468 uts4*) 8469 lt_prog_compiler_pic='-pic' 8470 lt_prog_compiler_static='-Bstatic' 8471 ;; 8472 8473 *) 8474 lt_prog_compiler_can_build_shared=no 8475 ;; 8476 esac 8477 fi 8478 8479case $host_os in 8480 # For platforms which do not support PIC, -DPIC is meaningless: 8481 *djgpp*) 8482 lt_prog_compiler_pic= 8483 ;; 8484 *) 8485 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8486 ;; 8487esac 8488{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8489$as_echo "$lt_prog_compiler_pic" >&6; } 8490 8491 8492 8493 8494 8495 8496# 8497# Check to make sure the PIC flag actually works. 8498# 8499if test -n "$lt_prog_compiler_pic"; then 8500 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8501$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8502if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8503 $as_echo_n "(cached) " >&6 8504else 8505 lt_cv_prog_compiler_pic_works=no 8506 ac_outfile=conftest.$ac_objext 8507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8508 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8509 # Insert the option either (1) after the last *FLAGS variable, or 8510 # (2) before a word containing "conftest.", or (3) at the end. 8511 # Note that $ac_compile itself does not contain backslashes and begins 8512 # with a dollar sign (not a hyphen), so the echo should work correctly. 8513 # The option is referenced via a variable to avoid confusing sed. 8514 lt_compile=`echo "$ac_compile" | $SED \ 8515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8517 -e 's:$: $lt_compiler_flag:'` 8518 (eval echo "\"\$as_me:8518: $lt_compile\"" >&5) 8519 (eval "$lt_compile" 2>conftest.err) 8520 ac_status=$? 8521 cat conftest.err >&5 8522 echo "$as_me:8522: \$? = $ac_status" >&5 8523 if (exit $ac_status) && test -s "$ac_outfile"; then 8524 # The compiler can only warn and ignore the option if not recognized 8525 # So say no if there are warnings other than the usual output. 8526 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8529 lt_cv_prog_compiler_pic_works=yes 8530 fi 8531 fi 8532 $RM conftest* 8533 8534fi 8535{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8536$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8537 8538if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8539 case $lt_prog_compiler_pic in 8540 "" | " "*) ;; 8541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8542 esac 8543else 8544 lt_prog_compiler_pic= 8545 lt_prog_compiler_can_build_shared=no 8546fi 8547 8548fi 8549 8550 8551 8552 8553 8554 8555# 8556# Check to make sure the static flag actually works. 8557# 8558wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8559{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8560$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8561if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_prog_compiler_static_works=no 8565 save_LDFLAGS="$LDFLAGS" 8566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8567 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8569 # The linker can only warn and ignore the option if not recognized 8570 # So say no if there are warnings 8571 if test -s conftest.err; then 8572 # Append any errors to the config.log. 8573 cat conftest.err 1>&5 8574 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8576 if diff conftest.exp conftest.er2 >/dev/null; then 8577 lt_cv_prog_compiler_static_works=yes 8578 fi 8579 else 8580 lt_cv_prog_compiler_static_works=yes 8581 fi 8582 fi 8583 $RM -r conftest* 8584 LDFLAGS="$save_LDFLAGS" 8585 8586fi 8587{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8588$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8589 8590if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8591 : 8592else 8593 lt_prog_compiler_static= 8594fi 8595 8596 8597 8598 8599 8600 8601 8602 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8604if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8605 $as_echo_n "(cached) " >&6 8606else 8607 lt_cv_prog_compiler_c_o=no 8608 $RM -r conftest 2>/dev/null 8609 mkdir conftest 8610 cd conftest 8611 mkdir out 8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8613 8614 lt_compiler_flag="-o out/conftest2.$ac_objext" 8615 # Insert the option either (1) after the last *FLAGS variable, or 8616 # (2) before a word containing "conftest.", or (3) at the end. 8617 # Note that $ac_compile itself does not contain backslashes and begins 8618 # with a dollar sign (not a hyphen), so the echo should work correctly. 8619 lt_compile=`echo "$ac_compile" | $SED \ 8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8622 -e 's:$: $lt_compiler_flag:'` 8623 (eval echo "\"\$as_me:8623: $lt_compile\"" >&5) 8624 (eval "$lt_compile" 2>out/conftest.err) 8625 ac_status=$? 8626 cat out/conftest.err >&5 8627 echo "$as_me:8627: \$? = $ac_status" >&5 8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8629 then 8630 # The compiler can only warn and ignore the option if not recognized 8631 # So say no if there are warnings 8632 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8635 lt_cv_prog_compiler_c_o=yes 8636 fi 8637 fi 8638 chmod u+w . 2>&5 8639 $RM conftest* 8640 # SGI C++ compiler will create directory out/ii_files/ for 8641 # template instantiation 8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8643 $RM out/* && rmdir out 8644 cd .. 8645 $RM -r conftest 8646 $RM conftest* 8647 8648fi 8649{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8650$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8651 8652 8653 8654 8655 8656 8657 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8659if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8660 $as_echo_n "(cached) " >&6 8661else 8662 lt_cv_prog_compiler_c_o=no 8663 $RM -r conftest 2>/dev/null 8664 mkdir conftest 8665 cd conftest 8666 mkdir out 8667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8668 8669 lt_compiler_flag="-o out/conftest2.$ac_objext" 8670 # Insert the option either (1) after the last *FLAGS variable, or 8671 # (2) before a word containing "conftest.", or (3) at the end. 8672 # Note that $ac_compile itself does not contain backslashes and begins 8673 # with a dollar sign (not a hyphen), so the echo should work correctly. 8674 lt_compile=`echo "$ac_compile" | $SED \ 8675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8677 -e 's:$: $lt_compiler_flag:'` 8678 (eval echo "\"\$as_me:8678: $lt_compile\"" >&5) 8679 (eval "$lt_compile" 2>out/conftest.err) 8680 ac_status=$? 8681 cat out/conftest.err >&5 8682 echo "$as_me:8682: \$? = $ac_status" >&5 8683 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8684 then 8685 # The compiler can only warn and ignore the option if not recognized 8686 # So say no if there are warnings 8687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8690 lt_cv_prog_compiler_c_o=yes 8691 fi 8692 fi 8693 chmod u+w . 2>&5 8694 $RM conftest* 8695 # SGI C++ compiler will create directory out/ii_files/ for 8696 # template instantiation 8697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8698 $RM out/* && rmdir out 8699 cd .. 8700 $RM -r conftest 8701 $RM conftest* 8702 8703fi 8704{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8705$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8706 8707 8708 8709 8710hard_links="nottested" 8711if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8712 # do not overwrite the value of need_locks provided by the user 8713 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8714$as_echo_n "checking if we can lock with hard links... " >&6; } 8715 hard_links=yes 8716 $RM conftest* 8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8718 touch conftest.a 8719 ln conftest.a conftest.b 2>&5 || hard_links=no 8720 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8721 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8722$as_echo "$hard_links" >&6; } 8723 if test "$hard_links" = no; then 8724 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8725$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8726 need_locks=warn 8727 fi 8728else 8729 need_locks=no 8730fi 8731 8732 8733 8734 8735 8736 8737 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8738$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8739 8740 runpath_var= 8741 allow_undefined_flag= 8742 always_export_symbols=no 8743 archive_cmds= 8744 archive_expsym_cmds= 8745 compiler_needs_object=no 8746 enable_shared_with_static_runtimes=no 8747 export_dynamic_flag_spec= 8748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8749 hardcode_automatic=no 8750 hardcode_direct=no 8751 hardcode_direct_absolute=no 8752 hardcode_libdir_flag_spec= 8753 hardcode_libdir_flag_spec_ld= 8754 hardcode_libdir_separator= 8755 hardcode_minus_L=no 8756 hardcode_shlibpath_var=unsupported 8757 inherit_rpath=no 8758 link_all_deplibs=unknown 8759 module_cmds= 8760 module_expsym_cmds= 8761 old_archive_from_new_cmds= 8762 old_archive_from_expsyms_cmds= 8763 thread_safe_flag_spec= 8764 whole_archive_flag_spec= 8765 # include_expsyms should be a list of space-separated symbols to be *always* 8766 # included in the symbol list 8767 include_expsyms= 8768 # exclude_expsyms can be an extended regexp of symbols to exclude 8769 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8771 # as well as any symbol that contains `d'. 8772 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8774 # platforms (ab)use it in PIC code, but their linkers get confused if 8775 # the symbol is explicitly referenced. Since portable code cannot 8776 # rely on this symbol name, it's probably fine to never include it in 8777 # preloaded symbol tables. 8778 # Exclude shared library initialization/finalization symbols. 8779 extract_expsyms_cmds= 8780 8781 case $host_os in 8782 cygwin* | mingw* | pw32* | cegcc*) 8783 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8784 # When not using gcc, we currently assume that we are using 8785 # Microsoft Visual C++. 8786 if test "$GCC" != yes; then 8787 with_gnu_ld=no 8788 fi 8789 ;; 8790 interix*) 8791 # we just hope/assume this is gcc and not c89 (= MSVC++) 8792 with_gnu_ld=yes 8793 ;; 8794 openbsd*) 8795 with_gnu_ld=no 8796 ;; 8797 esac 8798 8799 ld_shlibs=yes 8800 if test "$with_gnu_ld" = yes; then 8801 # If archive_cmds runs LD, not CC, wlarc should be empty 8802 wlarc='${wl}' 8803 8804 # Set some defaults for GNU ld with shared library support. These 8805 # are reset later if shared libraries are not supported. Putting them 8806 # here allows them to be overridden if necessary. 8807 runpath_var=LD_RUN_PATH 8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8809 export_dynamic_flag_spec='${wl}--export-dynamic' 8810 # ancient GNU ld didn't support --whole-archive et. al. 8811 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8812 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8813 else 8814 whole_archive_flag_spec= 8815 fi 8816 supports_anon_versioning=no 8817 case `$LD -v 2>&1` in 8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8821 *\ 2.11.*) ;; # other 2.11 versions 8822 *) supports_anon_versioning=yes ;; 8823 esac 8824 8825 # See if GNU ld supports shared libraries. 8826 case $host_os in 8827 aix[3-9]*) 8828 # On AIX/PPC, the GNU linker is very broken 8829 if test "$host_cpu" != ia64; then 8830 ld_shlibs=no 8831 cat <<_LT_EOF 1>&2 8832 8833*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8834*** to be unable to reliably create shared libraries on AIX. 8835*** Therefore, libtool is disabling shared libraries support. If you 8836*** really care for shared libraries, you may want to modify your PATH 8837*** so that a non-GNU linker is found, and then restart. 8838 8839_LT_EOF 8840 fi 8841 ;; 8842 8843 amigaos*) 8844 case $host_cpu in 8845 powerpc) 8846 # see comment about AmigaOS4 .so support 8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8848 archive_expsym_cmds='' 8849 ;; 8850 m68k) 8851 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)' 8852 hardcode_libdir_flag_spec='-L$libdir' 8853 hardcode_minus_L=yes 8854 ;; 8855 esac 8856 ;; 8857 8858 beos*) 8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8860 allow_undefined_flag=unsupported 8861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8862 # support --undefined. This deserves some investigation. FIXME 8863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8864 else 8865 ld_shlibs=no 8866 fi 8867 ;; 8868 8869 cygwin* | mingw* | pw32* | cegcc*) 8870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8871 # as there is no search path for DLLs. 8872 hardcode_libdir_flag_spec='-L$libdir' 8873 allow_undefined_flag=unsupported 8874 always_export_symbols=no 8875 enable_shared_with_static_runtimes=yes 8876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8877 8878 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8880 # If the export-symbols file already is a .def file (1st line 8881 # is EXPORTS), use it as is; otherwise, prepend... 8882 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8883 cp $export_symbols $output_objdir/$soname.def; 8884 else 8885 echo EXPORTS > $output_objdir/$soname.def; 8886 cat $export_symbols >> $output_objdir/$soname.def; 8887 fi~ 8888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8889 else 8890 ld_shlibs=no 8891 fi 8892 ;; 8893 8894 interix[3-9]*) 8895 hardcode_direct=no 8896 hardcode_shlibpath_var=no 8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8898 export_dynamic_flag_spec='${wl}-E' 8899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8900 # Instead, shared libraries are loaded at an image base (0x10000000 by 8901 # default) and relocated if they conflict, which is a slow very memory 8902 # consuming and fragmenting process. To avoid this, we pick a random, 8903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8904 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8906 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' 8907 ;; 8908 8909 gnu* | linux* | tpf* | k*bsd*-gnu) 8910 tmp_diet=no 8911 if test "$host_os" = linux-dietlibc; then 8912 case $cc_basename in 8913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8914 esac 8915 fi 8916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8917 && test "$tmp_diet" = no 8918 then 8919 tmp_addflag= 8920 tmp_sharedflag='-shared' 8921 case $cc_basename,$host_cpu in 8922 pgcc*) # Portland Group C compiler 8923 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' 8924 tmp_addflag=' $pic_flag' 8925 ;; 8926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8927 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' 8928 tmp_addflag=' $pic_flag -Mnomain' ;; 8929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8930 tmp_addflag=' -i_dynamic' ;; 8931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8932 tmp_addflag=' -i_dynamic -nofor_main' ;; 8933 ifc* | ifort*) # Intel Fortran compiler 8934 tmp_addflag=' -nofor_main' ;; 8935 lf95*) # Lahey Fortran 8.1 8936 whole_archive_flag_spec= 8937 tmp_sharedflag='--shared' ;; 8938 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8939 tmp_sharedflag='-qmkshrobj' 8940 tmp_addflag= ;; 8941 esac 8942 case `$CC -V 2>&1 | sed 5q` in 8943 *Sun\ C*) # Sun C 5.9 8944 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' 8945 compiler_needs_object=yes 8946 tmp_sharedflag='-G' ;; 8947 *Sun\ F*) # Sun Fortran 8.3 8948 tmp_sharedflag='-G' ;; 8949 esac 8950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8951 8952 if test "x$supports_anon_versioning" = xyes; then 8953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8955 echo "local: *; };" >> $output_objdir/$libname.ver~ 8956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8957 fi 8958 8959 case $cc_basename in 8960 xlf*) 8961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8963 hardcode_libdir_flag_spec= 8964 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8966 if test "x$supports_anon_versioning" = xyes; then 8967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8969 echo "local: *; };" >> $output_objdir/$libname.ver~ 8970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8971 fi 8972 ;; 8973 esac 8974 else 8975 ld_shlibs=no 8976 fi 8977 ;; 8978 8979 netbsd*) 8980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8982 wlarc= 8983 else 8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8986 fi 8987 ;; 8988 8989 solaris*) 8990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8991 ld_shlibs=no 8992 cat <<_LT_EOF 1>&2 8993 8994*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8995*** create shared libraries on Solaris systems. Therefore, libtool 8996*** is disabling shared libraries support. We urge you to upgrade GNU 8997*** binutils to release 2.9.1 or newer. Another option is to modify 8998*** your PATH or compiler configuration so that the native linker is 8999*** used, and then restart. 9000 9001_LT_EOF 9002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9005 else 9006 ld_shlibs=no 9007 fi 9008 ;; 9009 9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9011 case `$LD -v 2>&1` in 9012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9013 ld_shlibs=no 9014 cat <<_LT_EOF 1>&2 9015 9016*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9017*** reliably create shared libraries on SCO systems. Therefore, libtool 9018*** is disabling shared libraries support. We urge you to upgrade GNU 9019*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9020*** your PATH or compiler configuration so that the native linker is 9021*** used, and then restart. 9022 9023_LT_EOF 9024 ;; 9025 *) 9026 # For security reasons, it is highly recommended that you always 9027 # use absolute paths for naming shared libraries, and exclude the 9028 # DT_RUNPATH tag from executables and libraries. But doing so 9029 # requires that you compile everything twice, which is a pain. 9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9034 else 9035 ld_shlibs=no 9036 fi 9037 ;; 9038 esac 9039 ;; 9040 9041 sunos4*) 9042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9043 wlarc= 9044 hardcode_direct=yes 9045 hardcode_shlibpath_var=no 9046 ;; 9047 9048 *) 9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9052 else 9053 ld_shlibs=no 9054 fi 9055 ;; 9056 esac 9057 9058 if test "$ld_shlibs" = no; then 9059 runpath_var= 9060 hardcode_libdir_flag_spec= 9061 export_dynamic_flag_spec= 9062 whole_archive_flag_spec= 9063 fi 9064 else 9065 # PORTME fill in a description of your system's linker (not GNU ld) 9066 case $host_os in 9067 aix3*) 9068 allow_undefined_flag=unsupported 9069 always_export_symbols=yes 9070 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' 9071 # Note: this linker hardcodes the directories in LIBPATH if there 9072 # are no directories specified by -L. 9073 hardcode_minus_L=yes 9074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9075 # Neither direct hardcoding nor static linking is supported with a 9076 # broken collect2. 9077 hardcode_direct=unsupported 9078 fi 9079 ;; 9080 9081 aix[4-9]*) 9082 if test "$host_cpu" = ia64; then 9083 # On IA64, the linker does run time linking by default, so we don't 9084 # have to do anything special. 9085 aix_use_runtimelinking=no 9086 exp_sym_flag='-Bexport' 9087 no_entry_flag="" 9088 else 9089 # If we're using GNU nm, then we don't want the "-C" option. 9090 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9092 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' 9093 else 9094 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' 9095 fi 9096 aix_use_runtimelinking=no 9097 9098 # Test if we are trying to use run time linking or normal 9099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9100 # need to do runtime linking. 9101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9102 for ld_flag in $LDFLAGS; do 9103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9104 aix_use_runtimelinking=yes 9105 break 9106 fi 9107 done 9108 ;; 9109 esac 9110 9111 exp_sym_flag='-bexport' 9112 no_entry_flag='-bnoentry' 9113 fi 9114 9115 # When large executables or shared objects are built, AIX ld can 9116 # have problems creating the table of contents. If linking a library 9117 # or program results in "error TOC overflow" add -mminimal-toc to 9118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9120 9121 archive_cmds='' 9122 hardcode_direct=yes 9123 hardcode_direct_absolute=yes 9124 hardcode_libdir_separator=':' 9125 link_all_deplibs=yes 9126 file_list_spec='${wl}-f,' 9127 9128 if test "$GCC" = yes; then 9129 case $host_os in aix4.[012]|aix4.[012].*) 9130 # We only want to do this on AIX 4.2 and lower, the check 9131 # below for broken collect2 doesn't work under 4.3+ 9132 collect2name=`${CC} -print-prog-name=collect2` 9133 if test -f "$collect2name" && 9134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9135 then 9136 # We have reworked collect2 9137 : 9138 else 9139 # We have old collect2 9140 hardcode_direct=unsupported 9141 # It fails to find uninstalled libraries when the uninstalled 9142 # path is not listed in the libpath. Setting hardcode_minus_L 9143 # to unsupported forces relinking 9144 hardcode_minus_L=yes 9145 hardcode_libdir_flag_spec='-L$libdir' 9146 hardcode_libdir_separator= 9147 fi 9148 ;; 9149 esac 9150 shared_flag='-shared' 9151 if test "$aix_use_runtimelinking" = yes; then 9152 shared_flag="$shared_flag "'${wl}-G' 9153 fi 9154 else 9155 # not using gcc 9156 if test "$host_cpu" = ia64; then 9157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9158 # chokes on -Wl,-G. The following line is correct: 9159 shared_flag='-G' 9160 else 9161 if test "$aix_use_runtimelinking" = yes; then 9162 shared_flag='${wl}-G' 9163 else 9164 shared_flag='${wl}-bM:SRE' 9165 fi 9166 fi 9167 fi 9168 9169 export_dynamic_flag_spec='${wl}-bexpall' 9170 # It seems that -bexpall does not export symbols beginning with 9171 # underscore (_), so it is better to generate a list of symbols to export. 9172 always_export_symbols=yes 9173 if test "$aix_use_runtimelinking" = yes; then 9174 # Warning - without using the other runtime loading flags (-brtl), 9175 # -berok will link without error, but may produce a broken library. 9176 allow_undefined_flag='-berok' 9177 # Determine the default libpath from the value encoded in an 9178 # empty executable. 9179 cat >conftest.$ac_ext <<_ACEOF 9180/* confdefs.h. */ 9181_ACEOF 9182cat confdefs.h >>conftest.$ac_ext 9183cat >>conftest.$ac_ext <<_ACEOF 9184/* end confdefs.h. */ 9185 9186int 9187main () 9188{ 9189 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194rm -f conftest.$ac_objext conftest$ac_exeext 9195if { (ac_try="$ac_link" 9196case "(($ac_try" in 9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9198 *) ac_try_echo=$ac_try;; 9199esac 9200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9201$as_echo "$ac_try_echo") >&5 9202 (eval "$ac_link") 2>conftest.er1 9203 ac_status=$? 9204 grep -v '^ *+' conftest.er1 >conftest.err 9205 rm -f conftest.er1 9206 cat conftest.err >&5 9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 (exit $ac_status); } && { 9209 test -z "$ac_c_werror_flag" || 9210 test ! -s conftest.err 9211 } && test -s conftest$ac_exeext && { 9212 test "$cross_compiling" = yes || 9213 $as_test_x conftest$ac_exeext 9214 }; then 9215 9216lt_aix_libpath_sed=' 9217 /Import File Strings/,/^$/ { 9218 /^0/ { 9219 s/^0 *\(.*\)$/\1/ 9220 p 9221 } 9222 }' 9223aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9224# Check for a 64-bit object if we didn't find anything. 9225if test -z "$aix_libpath"; then 9226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9227fi 9228else 9229 $as_echo "$as_me: failed program was:" >&5 9230sed 's/^/| /' conftest.$ac_ext >&5 9231 9232 9233fi 9234 9235rm -rf conftest.dSYM 9236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9237 conftest$ac_exeext conftest.$ac_ext 9238if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9239 9240 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9241 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" 9242 else 9243 if test "$host_cpu" = ia64; then 9244 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9245 allow_undefined_flag="-z nodefs" 9246 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" 9247 else 9248 # Determine the default libpath from the value encoded in an 9249 # empty executable. 9250 cat >conftest.$ac_ext <<_ACEOF 9251/* confdefs.h. */ 9252_ACEOF 9253cat confdefs.h >>conftest.$ac_ext 9254cat >>conftest.$ac_ext <<_ACEOF 9255/* end confdefs.h. */ 9256 9257int 9258main () 9259{ 9260 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest.$ac_objext conftest$ac_exeext 9266if { (ac_try="$ac_link" 9267case "(($ac_try" in 9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9269 *) ac_try_echo=$ac_try;; 9270esac 9271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9272$as_echo "$ac_try_echo") >&5 9273 (eval "$ac_link") 2>conftest.er1 9274 ac_status=$? 9275 grep -v '^ *+' conftest.er1 >conftest.err 9276 rm -f conftest.er1 9277 cat conftest.err >&5 9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); } && { 9280 test -z "$ac_c_werror_flag" || 9281 test ! -s conftest.err 9282 } && test -s conftest$ac_exeext && { 9283 test "$cross_compiling" = yes || 9284 $as_test_x conftest$ac_exeext 9285 }; then 9286 9287lt_aix_libpath_sed=' 9288 /Import File Strings/,/^$/ { 9289 /^0/ { 9290 s/^0 *\(.*\)$/\1/ 9291 p 9292 } 9293 }' 9294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9295# Check for a 64-bit object if we didn't find anything. 9296if test -z "$aix_libpath"; then 9297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9298fi 9299else 9300 $as_echo "$as_me: failed program was:" >&5 9301sed 's/^/| /' conftest.$ac_ext >&5 9302 9303 9304fi 9305 9306rm -rf conftest.dSYM 9307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9308 conftest$ac_exeext conftest.$ac_ext 9309if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9310 9311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9312 # Warning - without using the other run time loading flags, 9313 # -berok will link without error, but may produce a broken library. 9314 no_undefined_flag=' ${wl}-bernotok' 9315 allow_undefined_flag=' ${wl}-berok' 9316 # Exported symbols can be pulled into shared objects from archives 9317 whole_archive_flag_spec='$convenience' 9318 archive_cmds_need_lc=yes 9319 # This is similar to how AIX traditionally builds its shared libraries. 9320 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' 9321 fi 9322 fi 9323 ;; 9324 9325 amigaos*) 9326 case $host_cpu in 9327 powerpc) 9328 # see comment about AmigaOS4 .so support 9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9330 archive_expsym_cmds='' 9331 ;; 9332 m68k) 9333 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)' 9334 hardcode_libdir_flag_spec='-L$libdir' 9335 hardcode_minus_L=yes 9336 ;; 9337 esac 9338 ;; 9339 9340 bsdi[45]*) 9341 export_dynamic_flag_spec=-rdynamic 9342 ;; 9343 9344 cygwin* | mingw* | pw32* | cegcc*) 9345 # When not using gcc, we currently assume that we are using 9346 # Microsoft Visual C++. 9347 # hardcode_libdir_flag_spec is actually meaningless, as there is 9348 # no search path for DLLs. 9349 hardcode_libdir_flag_spec=' ' 9350 allow_undefined_flag=unsupported 9351 # Tell ltmain to make .lib files, not .a files. 9352 libext=lib 9353 # Tell ltmain to make .dll files, not .so files. 9354 shrext_cmds=".dll" 9355 # FIXME: Setting linknames here is a bad hack. 9356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9357 # The linker will automatically build a .lib file if we build a DLL. 9358 old_archive_from_new_cmds='true' 9359 # FIXME: Should let the user specify the lib program. 9360 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9361 fix_srcfile_path='`cygpath -w "$srcfile"`' 9362 enable_shared_with_static_runtimes=yes 9363 ;; 9364 9365 darwin* | rhapsody*) 9366 9367 9368 archive_cmds_need_lc=no 9369 hardcode_direct=no 9370 hardcode_automatic=yes 9371 hardcode_shlibpath_var=unsupported 9372 whole_archive_flag_spec='' 9373 link_all_deplibs=yes 9374 allow_undefined_flag="$_lt_dar_allow_undefined" 9375 case $cc_basename in 9376 ifort*) _lt_dar_can_shared=yes ;; 9377 *) _lt_dar_can_shared=$GCC ;; 9378 esac 9379 if test "$_lt_dar_can_shared" = "yes"; then 9380 output_verbose_link_cmd=echo 9381 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9382 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9383 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}" 9384 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}" 9385 9386 else 9387 ld_shlibs=no 9388 fi 9389 9390 ;; 9391 9392 dgux*) 9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9394 hardcode_libdir_flag_spec='-L$libdir' 9395 hardcode_shlibpath_var=no 9396 ;; 9397 9398 freebsd1*) 9399 ld_shlibs=no 9400 ;; 9401 9402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9403 # support. Future versions do this automatically, but an explicit c++rt0.o 9404 # does not break anything, and helps significantly (at the cost of a little 9405 # extra space). 9406 freebsd2.2*) 9407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9408 hardcode_libdir_flag_spec='-R$libdir' 9409 hardcode_direct=yes 9410 hardcode_shlibpath_var=no 9411 ;; 9412 9413 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9414 freebsd2*) 9415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9416 hardcode_direct=yes 9417 hardcode_minus_L=yes 9418 hardcode_shlibpath_var=no 9419 ;; 9420 9421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9422 freebsd* | dragonfly*) 9423 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9424 hardcode_libdir_flag_spec='-R$libdir' 9425 hardcode_direct=yes 9426 hardcode_shlibpath_var=no 9427 ;; 9428 9429 hpux9*) 9430 if test "$GCC" = yes; then 9431 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' 9432 else 9433 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' 9434 fi 9435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9436 hardcode_libdir_separator=: 9437 hardcode_direct=yes 9438 9439 # hardcode_minus_L: Not really in the search PATH, 9440 # but as the default location of the library. 9441 hardcode_minus_L=yes 9442 export_dynamic_flag_spec='${wl}-E' 9443 ;; 9444 9445 hpux10*) 9446 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9447 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9448 else 9449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9450 fi 9451 if test "$with_gnu_ld" = no; then 9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9453 hardcode_libdir_flag_spec_ld='+b $libdir' 9454 hardcode_libdir_separator=: 9455 hardcode_direct=yes 9456 hardcode_direct_absolute=yes 9457 export_dynamic_flag_spec='${wl}-E' 9458 # hardcode_minus_L: Not really in the search PATH, 9459 # but as the default location of the library. 9460 hardcode_minus_L=yes 9461 fi 9462 ;; 9463 9464 hpux11*) 9465 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9466 case $host_cpu in 9467 hppa*64*) 9468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9469 ;; 9470 ia64*) 9471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9472 ;; 9473 *) 9474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9475 ;; 9476 esac 9477 else 9478 case $host_cpu in 9479 hppa*64*) 9480 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9481 ;; 9482 ia64*) 9483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9484 ;; 9485 *) 9486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9487 ;; 9488 esac 9489 fi 9490 if test "$with_gnu_ld" = no; then 9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9492 hardcode_libdir_separator=: 9493 9494 case $host_cpu in 9495 hppa*64*|ia64*) 9496 hardcode_direct=no 9497 hardcode_shlibpath_var=no 9498 ;; 9499 *) 9500 hardcode_direct=yes 9501 hardcode_direct_absolute=yes 9502 export_dynamic_flag_spec='${wl}-E' 9503 9504 # hardcode_minus_L: Not really in the search PATH, 9505 # but as the default location of the library. 9506 hardcode_minus_L=yes 9507 ;; 9508 esac 9509 fi 9510 ;; 9511 9512 irix5* | irix6* | nonstopux*) 9513 if test "$GCC" = yes; then 9514 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' 9515 # Try to use the -exported_symbol ld option, if it does not 9516 # work, assume that -exports_file does not work either and 9517 # implicitly export all symbols. 9518 save_LDFLAGS="$LDFLAGS" 9519 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9520 cat >conftest.$ac_ext <<_ACEOF 9521int foo(void) {} 9522_ACEOF 9523rm -f conftest.$ac_objext conftest$ac_exeext 9524if { (ac_try="$ac_link" 9525case "(($ac_try" in 9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9527 *) ac_try_echo=$ac_try;; 9528esac 9529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9530$as_echo "$ac_try_echo") >&5 9531 (eval "$ac_link") 2>conftest.er1 9532 ac_status=$? 9533 grep -v '^ *+' conftest.er1 >conftest.err 9534 rm -f conftest.er1 9535 cat conftest.err >&5 9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } && { 9538 test -z "$ac_c_werror_flag" || 9539 test ! -s conftest.err 9540 } && test -s conftest$ac_exeext && { 9541 test "$cross_compiling" = yes || 9542 $as_test_x conftest$ac_exeext 9543 }; then 9544 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' 9545 9546else 9547 $as_echo "$as_me: failed program was:" >&5 9548sed 's/^/| /' conftest.$ac_ext >&5 9549 9550 9551fi 9552 9553rm -rf conftest.dSYM 9554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 LDFLAGS="$save_LDFLAGS" 9557 else 9558 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' 9559 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' 9560 fi 9561 archive_cmds_need_lc='no' 9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9563 hardcode_libdir_separator=: 9564 inherit_rpath=yes 9565 link_all_deplibs=yes 9566 ;; 9567 9568 netbsd*) 9569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9571 else 9572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9573 fi 9574 hardcode_libdir_flag_spec='-R$libdir' 9575 hardcode_direct=yes 9576 hardcode_shlibpath_var=no 9577 ;; 9578 9579 newsos6) 9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9581 hardcode_direct=yes 9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9583 hardcode_libdir_separator=: 9584 hardcode_shlibpath_var=no 9585 ;; 9586 9587 *nto* | *qnx*) 9588 ;; 9589 9590 openbsd*) 9591 if test -f /usr/libexec/ld.so; then 9592 hardcode_direct=yes 9593 hardcode_shlibpath_var=no 9594 hardcode_direct_absolute=yes 9595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9599 export_dynamic_flag_spec='${wl}-E' 9600 else 9601 case $host_os in 9602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9604 hardcode_libdir_flag_spec='-R$libdir' 9605 ;; 9606 *) 9607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9608 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9609 ;; 9610 esac 9611 fi 9612 else 9613 ld_shlibs=no 9614 fi 9615 ;; 9616 9617 os2*) 9618 hardcode_libdir_flag_spec='-L$libdir' 9619 hardcode_minus_L=yes 9620 allow_undefined_flag=unsupported 9621 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' 9622 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9623 ;; 9624 9625 osf3*) 9626 if test "$GCC" = yes; then 9627 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9628 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' 9629 else 9630 allow_undefined_flag=' -expect_unresolved \*' 9631 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' 9632 fi 9633 archive_cmds_need_lc='no' 9634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9635 hardcode_libdir_separator=: 9636 ;; 9637 9638 osf4* | osf5*) # as osf3* with the addition of -msym flag 9639 if test "$GCC" = yes; then 9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9641 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' 9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9643 else 9644 allow_undefined_flag=' -expect_unresolved \*' 9645 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' 9646 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~ 9647 $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' 9648 9649 # Both c and cxx compiler support -rpath directly 9650 hardcode_libdir_flag_spec='-rpath $libdir' 9651 fi 9652 archive_cmds_need_lc='no' 9653 hardcode_libdir_separator=: 9654 ;; 9655 9656 solaris*) 9657 no_undefined_flag=' -z defs' 9658 if test "$GCC" = yes; then 9659 wlarc='${wl}' 9660 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9662 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9663 else 9664 case `$CC -V 2>&1` in 9665 *"Compilers 5.0"*) 9666 wlarc='' 9667 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9670 ;; 9671 *) 9672 wlarc='${wl}' 9673 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9675 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9676 ;; 9677 esac 9678 fi 9679 hardcode_libdir_flag_spec='-R$libdir' 9680 hardcode_shlibpath_var=no 9681 case $host_os in 9682 solaris2.[0-5] | solaris2.[0-5].*) ;; 9683 *) 9684 # The compiler driver will combine and reorder linker options, 9685 # but understands `-z linker_flag'. GCC discards it without `$wl', 9686 # but is careful enough not to reorder. 9687 # Supported since Solaris 2.6 (maybe 2.5.1?) 9688 if test "$GCC" = yes; then 9689 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9690 else 9691 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9692 fi 9693 ;; 9694 esac 9695 link_all_deplibs=yes 9696 ;; 9697 9698 sunos4*) 9699 if test "x$host_vendor" = xsequent; then 9700 # Use $CC to link under sequent, because it throws in some extra .o 9701 # files that make .init and .fini sections work. 9702 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9703 else 9704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9705 fi 9706 hardcode_libdir_flag_spec='-L$libdir' 9707 hardcode_direct=yes 9708 hardcode_minus_L=yes 9709 hardcode_shlibpath_var=no 9710 ;; 9711 9712 sysv4) 9713 case $host_vendor in 9714 sni) 9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9716 hardcode_direct=yes # is this really true??? 9717 ;; 9718 siemens) 9719 ## LD is ld it makes a PLAMLIB 9720 ## CC just makes a GrossModule. 9721 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9722 reload_cmds='$CC -r -o $output$reload_objs' 9723 hardcode_direct=no 9724 ;; 9725 motorola) 9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9727 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9728 ;; 9729 esac 9730 runpath_var='LD_RUN_PATH' 9731 hardcode_shlibpath_var=no 9732 ;; 9733 9734 sysv4.3*) 9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9736 hardcode_shlibpath_var=no 9737 export_dynamic_flag_spec='-Bexport' 9738 ;; 9739 9740 sysv4*MP*) 9741 if test -d /usr/nec; then 9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9743 hardcode_shlibpath_var=no 9744 runpath_var=LD_RUN_PATH 9745 hardcode_runpath_var=yes 9746 ld_shlibs=yes 9747 fi 9748 ;; 9749 9750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9751 no_undefined_flag='${wl}-z,text' 9752 archive_cmds_need_lc=no 9753 hardcode_shlibpath_var=no 9754 runpath_var='LD_RUN_PATH' 9755 9756 if test "$GCC" = yes; then 9757 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9759 else 9760 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9762 fi 9763 ;; 9764 9765 sysv5* | sco3.2v5* | sco5v6*) 9766 # Note: We can NOT use -z defs as we might desire, because we do not 9767 # link with -lc, and that would cause any symbols used from libc to 9768 # always be unresolved, which means just about no library would 9769 # ever link correctly. If we're not using GNU ld we use -z text 9770 # though, which does catch some bad symbols but isn't as heavy-handed 9771 # as -z defs. 9772 no_undefined_flag='${wl}-z,text' 9773 allow_undefined_flag='${wl}-z,nodefs' 9774 archive_cmds_need_lc=no 9775 hardcode_shlibpath_var=no 9776 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9777 hardcode_libdir_separator=':' 9778 link_all_deplibs=yes 9779 export_dynamic_flag_spec='${wl}-Bexport' 9780 runpath_var='LD_RUN_PATH' 9781 9782 if test "$GCC" = yes; then 9783 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9784 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9785 else 9786 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9787 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9788 fi 9789 ;; 9790 9791 uts4*) 9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9793 hardcode_libdir_flag_spec='-L$libdir' 9794 hardcode_shlibpath_var=no 9795 ;; 9796 9797 *) 9798 ld_shlibs=no 9799 ;; 9800 esac 9801 9802 if test x$host_vendor = xsni; then 9803 case $host in 9804 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9805 export_dynamic_flag_spec='${wl}-Blargedynsym' 9806 ;; 9807 esac 9808 fi 9809 fi 9810 9811{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9812$as_echo "$ld_shlibs" >&6; } 9813test "$ld_shlibs" = no && can_build_shared=no 9814 9815with_gnu_ld=$with_gnu_ld 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831# 9832# Do we need to explicitly link libc? 9833# 9834case "x$archive_cmds_need_lc" in 9835x|xyes) 9836 # Assume -lc should be added 9837 archive_cmds_need_lc=yes 9838 9839 if test "$enable_shared" = yes && test "$GCC" = yes; then 9840 case $archive_cmds in 9841 *'~'*) 9842 # FIXME: we may have to deal with multi-command sequences. 9843 ;; 9844 '$CC '*) 9845 # Test whether the compiler implicitly links with -lc since on some 9846 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9847 # to ld, don't add -lc before -lgcc. 9848 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9849$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9850 $RM conftest* 9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9852 9853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9854 (eval $ac_compile) 2>&5 9855 ac_status=$? 9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9857 (exit $ac_status); } 2>conftest.err; then 9858 soname=conftest 9859 lib=conftest 9860 libobjs=conftest.$ac_objext 9861 deplibs= 9862 wl=$lt_prog_compiler_wl 9863 pic_flag=$lt_prog_compiler_pic 9864 compiler_flags=-v 9865 linker_flags=-v 9866 verstring= 9867 output_objdir=. 9868 libname=conftest 9869 lt_save_allow_undefined_flag=$allow_undefined_flag 9870 allow_undefined_flag= 9871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9873 ac_status=$? 9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9875 (exit $ac_status); } 9876 then 9877 archive_cmds_need_lc=no 9878 else 9879 archive_cmds_need_lc=yes 9880 fi 9881 allow_undefined_flag=$lt_save_allow_undefined_flag 9882 else 9883 cat conftest.err 1>&5 9884 fi 9885 $RM conftest* 9886 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9887$as_echo "$archive_cmds_need_lc" >&6; } 9888 ;; 9889 esac 9890 fi 9891 ;; 9892esac 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10051$as_echo_n "checking dynamic linker characteristics... " >&6; } 10052 10053if test "$GCC" = yes; then 10054 case $host_os in 10055 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10056 *) lt_awk_arg="/^libraries:/" ;; 10057 esac 10058 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10059 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10060 # if the path contains ";" then we assume it to be the separator 10061 # otherwise default to the standard path separator (i.e. ":") - it is 10062 # assumed that no part of a normal pathname contains ";" but that should 10063 # okay in the real world where ";" in dirpaths is itself problematic. 10064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10065 else 10066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10067 fi 10068 # Ok, now we have the path, separated by spaces, we can step through it 10069 # and add multilib dir if necessary. 10070 lt_tmp_lt_search_path_spec= 10071 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10072 for lt_sys_path in $lt_search_path_spec; do 10073 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10075 else 10076 test -d "$lt_sys_path" && \ 10077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10078 fi 10079 done 10080 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10081BEGIN {RS=" "; FS="/|\n";} { 10082 lt_foo=""; 10083 lt_count=0; 10084 for (lt_i = NF; lt_i > 0; lt_i--) { 10085 if ($lt_i != "" && $lt_i != ".") { 10086 if ($lt_i == "..") { 10087 lt_count++; 10088 } else { 10089 if (lt_count == 0) { 10090 lt_foo="/" $lt_i lt_foo; 10091 } else { 10092 lt_count--; 10093 } 10094 } 10095 } 10096 } 10097 if (lt_foo != "") { lt_freq[lt_foo]++; } 10098 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10099}'` 10100 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10101else 10102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10103fi 10104library_names_spec= 10105libname_spec='lib$name' 10106soname_spec= 10107shrext_cmds=".so" 10108postinstall_cmds= 10109postuninstall_cmds= 10110finish_cmds= 10111finish_eval= 10112shlibpath_var= 10113shlibpath_overrides_runpath=unknown 10114version_type=none 10115dynamic_linker="$host_os ld.so" 10116sys_lib_dlsearch_path_spec="/lib /usr/lib" 10117need_lib_prefix=unknown 10118hardcode_into_libs=no 10119 10120# when you set need_version to no, make sure it does not cause -set_version 10121# flags to be left without arguments 10122need_version=unknown 10123 10124case $host_os in 10125aix3*) 10126 version_type=linux 10127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10128 shlibpath_var=LIBPATH 10129 10130 # AIX 3 has no versioning support, so we append a major version to the name. 10131 soname_spec='${libname}${release}${shared_ext}$major' 10132 ;; 10133 10134aix[4-9]*) 10135 version_type=linux 10136 need_lib_prefix=no 10137 need_version=no 10138 hardcode_into_libs=yes 10139 if test "$host_cpu" = ia64; then 10140 # AIX 5 supports IA64 10141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10142 shlibpath_var=LD_LIBRARY_PATH 10143 else 10144 # With GCC up to 2.95.x, collect2 would create an import file 10145 # for dependence libraries. The import file would start with 10146 # the line `#! .'. This would cause the generated library to 10147 # depend on `.', always an invalid library. This was fixed in 10148 # development snapshots of GCC prior to 3.0. 10149 case $host_os in 10150 aix4 | aix4.[01] | aix4.[01].*) 10151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10152 echo ' yes ' 10153 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10154 : 10155 else 10156 can_build_shared=no 10157 fi 10158 ;; 10159 esac 10160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10161 # soname into executable. Probably we can add versioning support to 10162 # collect2, so additional links can be useful in future. 10163 if test "$aix_use_runtimelinking" = yes; then 10164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10165 # instead of lib<name>.a to let people know that these are not 10166 # typical AIX shared libraries. 10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10168 else 10169 # We preserve .a as extension for shared libraries through AIX4.2 10170 # and later when we are not doing run time linking. 10171 library_names_spec='${libname}${release}.a $libname.a' 10172 soname_spec='${libname}${release}${shared_ext}$major' 10173 fi 10174 shlibpath_var=LIBPATH 10175 fi 10176 ;; 10177 10178amigaos*) 10179 case $host_cpu in 10180 powerpc) 10181 # Since July 2007 AmigaOS4 officially supports .so libraries. 10182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10184 ;; 10185 m68k) 10186 library_names_spec='$libname.ixlibrary $libname.a' 10187 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10188 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' 10189 ;; 10190 esac 10191 ;; 10192 10193beos*) 10194 library_names_spec='${libname}${shared_ext}' 10195 dynamic_linker="$host_os ld.so" 10196 shlibpath_var=LIBRARY_PATH 10197 ;; 10198 10199bsdi[45]*) 10200 version_type=linux 10201 need_version=no 10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10203 soname_spec='${libname}${release}${shared_ext}$major' 10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10205 shlibpath_var=LD_LIBRARY_PATH 10206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10208 # the default ld.so.conf also contains /usr/contrib/lib and 10209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10210 # libtool to hard-code these into programs 10211 ;; 10212 10213cygwin* | mingw* | pw32* | cegcc*) 10214 version_type=windows 10215 shrext_cmds=".dll" 10216 need_version=no 10217 need_lib_prefix=no 10218 10219 case $GCC,$host_os in 10220 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10221 library_names_spec='$libname.dll.a' 10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10223 postinstall_cmds='base_file=`basename \${file}`~ 10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10225 dldir=$destdir/`dirname \$dlpath`~ 10226 test -d \$dldir || mkdir -p \$dldir~ 10227 $install_prog $dir/$dlname \$dldir/$dlname~ 10228 chmod a+x \$dldir/$dlname~ 10229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10231 fi' 10232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10233 dlpath=$dir/\$dldll~ 10234 $RM \$dlpath' 10235 shlibpath_overrides_runpath=yes 10236 10237 case $host_os in 10238 cygwin*) 10239 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10242 ;; 10243 mingw* | cegcc*) 10244 # MinGW DLLs use traditional 'lib' prefix 10245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10246 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10247 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10248 # It is most probably a Windows format PATH printed by 10249 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10250 # path with ; separators, and with drive letters. We can handle the 10251 # drive letters (cygwin fileutils understands them), so leave them, 10252 # especially as we might pass files found there to a mingw objdump, 10253 # which wouldn't understand a cygwinified path. Ahh. 10254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10255 else 10256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10257 fi 10258 ;; 10259 pw32*) 10260 # pw32 DLLs use 'pw' prefix rather than 'lib' 10261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10262 ;; 10263 esac 10264 ;; 10265 10266 *) 10267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10268 ;; 10269 esac 10270 dynamic_linker='Win32 ld.exe' 10271 # FIXME: first we should search . and the directory the executable is in 10272 shlibpath_var=PATH 10273 ;; 10274 10275darwin* | rhapsody*) 10276 dynamic_linker="$host_os dyld" 10277 version_type=darwin 10278 need_lib_prefix=no 10279 need_version=no 10280 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10281 soname_spec='${libname}${release}${major}$shared_ext' 10282 shlibpath_overrides_runpath=yes 10283 shlibpath_var=DYLD_LIBRARY_PATH 10284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10285 10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10288 ;; 10289 10290dgux*) 10291 version_type=linux 10292 need_lib_prefix=no 10293 need_version=no 10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10295 soname_spec='${libname}${release}${shared_ext}$major' 10296 shlibpath_var=LD_LIBRARY_PATH 10297 ;; 10298 10299freebsd1*) 10300 dynamic_linker=no 10301 ;; 10302 10303freebsd* | dragonfly*) 10304 # DragonFly does not have aout. When/if they implement a new 10305 # versioning mechanism, adjust this. 10306 if test -x /usr/bin/objformat; then 10307 objformat=`/usr/bin/objformat` 10308 else 10309 case $host_os in 10310 freebsd[123]*) objformat=aout ;; 10311 *) objformat=elf ;; 10312 esac 10313 fi 10314 version_type=freebsd-$objformat 10315 case $version_type in 10316 freebsd-elf*) 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10318 need_version=no 10319 need_lib_prefix=no 10320 ;; 10321 freebsd-*) 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10323 need_version=yes 10324 ;; 10325 esac 10326 shlibpath_var=LD_LIBRARY_PATH 10327 case $host_os in 10328 freebsd2*) 10329 shlibpath_overrides_runpath=yes 10330 ;; 10331 freebsd3.[01]* | freebsdelf3.[01]*) 10332 shlibpath_overrides_runpath=yes 10333 hardcode_into_libs=yes 10334 ;; 10335 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10336 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10337 shlibpath_overrides_runpath=no 10338 hardcode_into_libs=yes 10339 ;; 10340 *) # from 4.6 on, and DragonFly 10341 shlibpath_overrides_runpath=yes 10342 hardcode_into_libs=yes 10343 ;; 10344 esac 10345 ;; 10346 10347gnu*) 10348 version_type=linux 10349 need_lib_prefix=no 10350 need_version=no 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 shlibpath_var=LD_LIBRARY_PATH 10354 hardcode_into_libs=yes 10355 ;; 10356 10357hpux9* | hpux10* | hpux11*) 10358 # Give a soname corresponding to the major version so that dld.sl refuses to 10359 # link against other versions. 10360 version_type=sunos 10361 need_lib_prefix=no 10362 need_version=no 10363 case $host_cpu in 10364 ia64*) 10365 shrext_cmds='.so' 10366 hardcode_into_libs=yes 10367 dynamic_linker="$host_os dld.so" 10368 shlibpath_var=LD_LIBRARY_PATH 10369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10371 soname_spec='${libname}${release}${shared_ext}$major' 10372 if test "X$HPUX_IA64_MODE" = X32; then 10373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10374 else 10375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10376 fi 10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10378 ;; 10379 hppa*64*) 10380 shrext_cmds='.sl' 10381 hardcode_into_libs=yes 10382 dynamic_linker="$host_os dld.sl" 10383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 soname_spec='${libname}${release}${shared_ext}$major' 10387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10389 ;; 10390 *) 10391 shrext_cmds='.sl' 10392 dynamic_linker="$host_os dld.sl" 10393 shlibpath_var=SHLIB_PATH 10394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10396 soname_spec='${libname}${release}${shared_ext}$major' 10397 ;; 10398 esac 10399 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10400 postinstall_cmds='chmod 555 $lib' 10401 ;; 10402 10403interix[3-9]*) 10404 version_type=linux 10405 need_lib_prefix=no 10406 need_version=no 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10408 soname_spec='${libname}${release}${shared_ext}$major' 10409 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10410 shlibpath_var=LD_LIBRARY_PATH 10411 shlibpath_overrides_runpath=no 10412 hardcode_into_libs=yes 10413 ;; 10414 10415irix5* | irix6* | nonstopux*) 10416 case $host_os in 10417 nonstopux*) version_type=nonstopux ;; 10418 *) 10419 if test "$lt_cv_prog_gnu_ld" = yes; then 10420 version_type=linux 10421 else 10422 version_type=irix 10423 fi ;; 10424 esac 10425 need_lib_prefix=no 10426 need_version=no 10427 soname_spec='${libname}${release}${shared_ext}$major' 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10429 case $host_os in 10430 irix5* | nonstopux*) 10431 libsuff= shlibsuff= 10432 ;; 10433 *) 10434 case $LD in # libtool.m4 will add one of these switches to LD 10435 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10436 libsuff= shlibsuff= libmagic=32-bit;; 10437 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10438 libsuff=32 shlibsuff=N32 libmagic=N32;; 10439 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10440 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10441 *) libsuff= shlibsuff= libmagic=never-match;; 10442 esac 10443 ;; 10444 esac 10445 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10446 shlibpath_overrides_runpath=no 10447 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10448 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10449 hardcode_into_libs=yes 10450 ;; 10451 10452# No shared lib support for Linux oldld, aout, or coff. 10453linux*oldld* | linux*aout* | linux*coff*) 10454 dynamic_linker=no 10455 ;; 10456 10457# This must be Linux ELF. 10458linux* | k*bsd*-gnu) 10459 version_type=linux 10460 need_lib_prefix=no 10461 need_version=no 10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10463 soname_spec='${libname}${release}${shared_ext}$major' 10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10465 shlibpath_var=LD_LIBRARY_PATH 10466 shlibpath_overrides_runpath=no 10467 # Some binutils ld are patched to set DT_RUNPATH 10468 save_LDFLAGS=$LDFLAGS 10469 save_libdir=$libdir 10470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10472 cat >conftest.$ac_ext <<_ACEOF 10473/* confdefs.h. */ 10474_ACEOF 10475cat confdefs.h >>conftest.$ac_ext 10476cat >>conftest.$ac_ext <<_ACEOF 10477/* end confdefs.h. */ 10478 10479int 10480main () 10481{ 10482 10483 ; 10484 return 0; 10485} 10486_ACEOF 10487rm -f conftest.$ac_objext conftest$ac_exeext 10488if { (ac_try="$ac_link" 10489case "(($ac_try" in 10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10491 *) ac_try_echo=$ac_try;; 10492esac 10493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10494$as_echo "$ac_try_echo") >&5 10495 (eval "$ac_link") 2>conftest.er1 10496 ac_status=$? 10497 grep -v '^ *+' conftest.er1 >conftest.err 10498 rm -f conftest.er1 10499 cat conftest.err >&5 10500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10501 (exit $ac_status); } && { 10502 test -z "$ac_c_werror_flag" || 10503 test ! -s conftest.err 10504 } && test -s conftest$ac_exeext && { 10505 test "$cross_compiling" = yes || 10506 $as_test_x conftest$ac_exeext 10507 }; then 10508 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10509 shlibpath_overrides_runpath=yes 10510fi 10511 10512else 10513 $as_echo "$as_me: failed program was:" >&5 10514sed 's/^/| /' conftest.$ac_ext >&5 10515 10516 10517fi 10518 10519rm -rf conftest.dSYM 10520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10521 conftest$ac_exeext conftest.$ac_ext 10522 LDFLAGS=$save_LDFLAGS 10523 libdir=$save_libdir 10524 10525 # This implies no fast_install, which is unacceptable. 10526 # Some rework will be needed to allow for fast_install 10527 # before this can be enabled. 10528 hardcode_into_libs=yes 10529 10530 # Add ABI-specific directories to the system library path. 10531 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10532 10533 # Append ld.so.conf contents to the search path 10534 if test -f /etc/ld.so.conf; then 10535 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' ' '` 10536 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10537 fi 10538 10539 # We used to test for /lib/ld.so.1 and disable shared libraries on 10540 # powerpc, because MkLinux only supported shared libraries with the 10541 # GNU dynamic linker. Since this was broken with cross compilers, 10542 # most powerpc-linux boxes support dynamic linking these days and 10543 # people can always --disable-shared, the test was removed, and we 10544 # assume the GNU/Linux dynamic linker is in use. 10545 dynamic_linker='GNU/Linux ld.so' 10546 ;; 10547 10548netbsd*) 10549 version_type=sunos 10550 need_lib_prefix=no 10551 need_version=no 10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10555 dynamic_linker='NetBSD (a.out) ld.so' 10556 else 10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10558 soname_spec='${libname}${release}${shared_ext}$major' 10559 dynamic_linker='NetBSD ld.elf_so' 10560 fi 10561 shlibpath_var=LD_LIBRARY_PATH 10562 shlibpath_overrides_runpath=yes 10563 hardcode_into_libs=yes 10564 ;; 10565 10566newsos6) 10567 version_type=linux 10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 shlibpath_overrides_runpath=yes 10571 ;; 10572 10573*nto* | *qnx*) 10574 version_type=qnx 10575 need_lib_prefix=no 10576 need_version=no 10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10578 soname_spec='${libname}${release}${shared_ext}$major' 10579 shlibpath_var=LD_LIBRARY_PATH 10580 shlibpath_overrides_runpath=no 10581 hardcode_into_libs=yes 10582 dynamic_linker='ldqnx.so' 10583 ;; 10584 10585openbsd*) 10586 version_type=sunos 10587 sys_lib_dlsearch_path_spec="/usr/lib" 10588 need_lib_prefix=no 10589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10590 case $host_os in 10591 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10592 *) need_version=no ;; 10593 esac 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10596 shlibpath_var=LD_LIBRARY_PATH 10597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10598 case $host_os in 10599 openbsd2.[89] | openbsd2.[89].*) 10600 shlibpath_overrides_runpath=no 10601 ;; 10602 *) 10603 shlibpath_overrides_runpath=yes 10604 ;; 10605 esac 10606 else 10607 shlibpath_overrides_runpath=yes 10608 fi 10609 ;; 10610 10611os2*) 10612 libname_spec='$name' 10613 shrext_cmds=".dll" 10614 need_lib_prefix=no 10615 library_names_spec='$libname${shared_ext} $libname.a' 10616 dynamic_linker='OS/2 ld.exe' 10617 shlibpath_var=LIBPATH 10618 ;; 10619 10620osf3* | osf4* | osf5*) 10621 version_type=osf 10622 need_lib_prefix=no 10623 need_version=no 10624 soname_spec='${libname}${release}${shared_ext}$major' 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10626 shlibpath_var=LD_LIBRARY_PATH 10627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10629 ;; 10630 10631rdos*) 10632 dynamic_linker=no 10633 ;; 10634 10635solaris*) 10636 version_type=linux 10637 need_lib_prefix=no 10638 need_version=no 10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10640 soname_spec='${libname}${release}${shared_ext}$major' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=yes 10643 hardcode_into_libs=yes 10644 # ldd complains unless libraries are executable 10645 postinstall_cmds='chmod +x $lib' 10646 ;; 10647 10648sunos4*) 10649 version_type=sunos 10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10652 shlibpath_var=LD_LIBRARY_PATH 10653 shlibpath_overrides_runpath=yes 10654 if test "$with_gnu_ld" = yes; then 10655 need_lib_prefix=no 10656 fi 10657 need_version=yes 10658 ;; 10659 10660sysv4 | sysv4.3*) 10661 version_type=linux 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 shlibpath_var=LD_LIBRARY_PATH 10665 case $host_vendor in 10666 sni) 10667 shlibpath_overrides_runpath=no 10668 need_lib_prefix=no 10669 runpath_var=LD_RUN_PATH 10670 ;; 10671 siemens) 10672 need_lib_prefix=no 10673 ;; 10674 motorola) 10675 need_lib_prefix=no 10676 need_version=no 10677 shlibpath_overrides_runpath=no 10678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10679 ;; 10680 esac 10681 ;; 10682 10683sysv4*MP*) 10684 if test -d /usr/nec ;then 10685 version_type=linux 10686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10687 soname_spec='$libname${shared_ext}.$major' 10688 shlibpath_var=LD_LIBRARY_PATH 10689 fi 10690 ;; 10691 10692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10693 version_type=freebsd-elf 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=yes 10700 hardcode_into_libs=yes 10701 if test "$with_gnu_ld" = yes; then 10702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10703 else 10704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10705 case $host_os in 10706 sco3.2v5*) 10707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10708 ;; 10709 esac 10710 fi 10711 sys_lib_dlsearch_path_spec='/usr/lib' 10712 ;; 10713 10714tpf*) 10715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10716 version_type=linux 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10720 shlibpath_var=LD_LIBRARY_PATH 10721 shlibpath_overrides_runpath=no 10722 hardcode_into_libs=yes 10723 ;; 10724 10725uts4*) 10726 version_type=linux 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10728 soname_spec='${libname}${release}${shared_ext}$major' 10729 shlibpath_var=LD_LIBRARY_PATH 10730 ;; 10731 10732*) 10733 dynamic_linker=no 10734 ;; 10735esac 10736{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10737$as_echo "$dynamic_linker" >&6; } 10738test "$dynamic_linker" = no && can_build_shared=no 10739 10740variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10741if test "$GCC" = yes; then 10742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10743fi 10744 10745if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10747fi 10748if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10750fi 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10839$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10840hardcode_action= 10841if test -n "$hardcode_libdir_flag_spec" || 10842 test -n "$runpath_var" || 10843 test "X$hardcode_automatic" = "Xyes" ; then 10844 10845 # We can hardcode non-existent directories. 10846 if test "$hardcode_direct" != no && 10847 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10848 # have to relink, otherwise we might link with an installed library 10849 # when we should be linking with a yet-to-be-installed one 10850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10851 test "$hardcode_minus_L" != no; then 10852 # Linking always hardcodes the temporary library directory. 10853 hardcode_action=relink 10854 else 10855 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10856 hardcode_action=immediate 10857 fi 10858else 10859 # We cannot hardcode anything, or else we can only hardcode existing 10860 # directories. 10861 hardcode_action=unsupported 10862fi 10863{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10864$as_echo "$hardcode_action" >&6; } 10865 10866if test "$hardcode_action" = relink || 10867 test "$inherit_rpath" = yes; then 10868 # Fast installation is not supported 10869 enable_fast_install=no 10870elif test "$shlibpath_overrides_runpath" = yes || 10871 test "$enable_shared" = no; then 10872 # Fast installation is not necessary 10873 enable_fast_install=needless 10874fi 10875 10876 10877 10878 10879 10880 10881 if test "x$enable_dlopen" != xyes; then 10882 enable_dlopen=unknown 10883 enable_dlopen_self=unknown 10884 enable_dlopen_self_static=unknown 10885else 10886 lt_cv_dlopen=no 10887 lt_cv_dlopen_libs= 10888 10889 case $host_os in 10890 beos*) 10891 lt_cv_dlopen="load_add_on" 10892 lt_cv_dlopen_libs= 10893 lt_cv_dlopen_self=yes 10894 ;; 10895 10896 mingw* | pw32* | cegcc*) 10897 lt_cv_dlopen="LoadLibrary" 10898 lt_cv_dlopen_libs= 10899 ;; 10900 10901 cygwin*) 10902 lt_cv_dlopen="dlopen" 10903 lt_cv_dlopen_libs= 10904 ;; 10905 10906 darwin*) 10907 # if libdl is installed we need to link against it 10908 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10909$as_echo_n "checking for dlopen in -ldl... " >&6; } 10910if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10911 $as_echo_n "(cached) " >&6 10912else 10913 ac_check_lib_save_LIBS=$LIBS 10914LIBS="-ldl $LIBS" 10915cat >conftest.$ac_ext <<_ACEOF 10916/* confdefs.h. */ 10917_ACEOF 10918cat confdefs.h >>conftest.$ac_ext 10919cat >>conftest.$ac_ext <<_ACEOF 10920/* end confdefs.h. */ 10921 10922/* Override any GCC internal prototype to avoid an error. 10923 Use char because int might match the return type of a GCC 10924 builtin and then its argument prototype would still apply. */ 10925#ifdef __cplusplus 10926extern "C" 10927#endif 10928char dlopen (); 10929int 10930main () 10931{ 10932return dlopen (); 10933 ; 10934 return 0; 10935} 10936_ACEOF 10937rm -f conftest.$ac_objext conftest$ac_exeext 10938if { (ac_try="$ac_link" 10939case "(($ac_try" in 10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10941 *) ac_try_echo=$ac_try;; 10942esac 10943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10944$as_echo "$ac_try_echo") >&5 10945 (eval "$ac_link") 2>conftest.er1 10946 ac_status=$? 10947 grep -v '^ *+' conftest.er1 >conftest.err 10948 rm -f conftest.er1 10949 cat conftest.err >&5 10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10951 (exit $ac_status); } && { 10952 test -z "$ac_c_werror_flag" || 10953 test ! -s conftest.err 10954 } && test -s conftest$ac_exeext && { 10955 test "$cross_compiling" = yes || 10956 $as_test_x conftest$ac_exeext 10957 }; then 10958 ac_cv_lib_dl_dlopen=yes 10959else 10960 $as_echo "$as_me: failed program was:" >&5 10961sed 's/^/| /' conftest.$ac_ext >&5 10962 10963 ac_cv_lib_dl_dlopen=no 10964fi 10965 10966rm -rf conftest.dSYM 10967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10968 conftest$ac_exeext conftest.$ac_ext 10969LIBS=$ac_check_lib_save_LIBS 10970fi 10971{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10972$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10973if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10975else 10976 10977 lt_cv_dlopen="dyld" 10978 lt_cv_dlopen_libs= 10979 lt_cv_dlopen_self=yes 10980 10981fi 10982 10983 ;; 10984 10985 *) 10986 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10987$as_echo_n "checking for shl_load... " >&6; } 10988if test "${ac_cv_func_shl_load+set}" = set; then 10989 $as_echo_n "(cached) " >&6 10990else 10991 cat >conftest.$ac_ext <<_ACEOF 10992/* confdefs.h. */ 10993_ACEOF 10994cat confdefs.h >>conftest.$ac_ext 10995cat >>conftest.$ac_ext <<_ACEOF 10996/* end confdefs.h. */ 10997/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10999#define shl_load innocuous_shl_load 11000 11001/* System header to define __stub macros and hopefully few prototypes, 11002 which can conflict with char shl_load (); below. 11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11004 <limits.h> exists even on freestanding compilers. */ 11005 11006#ifdef __STDC__ 11007# include <limits.h> 11008#else 11009# include <assert.h> 11010#endif 11011 11012#undef shl_load 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char shl_load (); 11021/* The GNU C library defines this for functions which it implements 11022 to always fail with ENOSYS. Some functions are actually named 11023 something starting with __ and the normal name is an alias. */ 11024#if defined __stub_shl_load || defined __stub___shl_load 11025choke me 11026#endif 11027 11028int 11029main () 11030{ 11031return shl_load (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036rm -f conftest.$ac_objext conftest$ac_exeext 11037if { (ac_try="$ac_link" 11038case "(($ac_try" in 11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11040 *) ac_try_echo=$ac_try;; 11041esac 11042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11043$as_echo "$ac_try_echo") >&5 11044 (eval "$ac_link") 2>conftest.er1 11045 ac_status=$? 11046 grep -v '^ *+' conftest.er1 >conftest.err 11047 rm -f conftest.er1 11048 cat conftest.err >&5 11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11050 (exit $ac_status); } && { 11051 test -z "$ac_c_werror_flag" || 11052 test ! -s conftest.err 11053 } && test -s conftest$ac_exeext && { 11054 test "$cross_compiling" = yes || 11055 $as_test_x conftest$ac_exeext 11056 }; then 11057 ac_cv_func_shl_load=yes 11058else 11059 $as_echo "$as_me: failed program was:" >&5 11060sed 's/^/| /' conftest.$ac_ext >&5 11061 11062 ac_cv_func_shl_load=no 11063fi 11064 11065rm -rf conftest.dSYM 11066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11067 conftest$ac_exeext conftest.$ac_ext 11068fi 11069{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11070$as_echo "$ac_cv_func_shl_load" >&6; } 11071if test "x$ac_cv_func_shl_load" = x""yes; then 11072 lt_cv_dlopen="shl_load" 11073else 11074 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11075$as_echo_n "checking for shl_load in -ldld... " >&6; } 11076if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11077 $as_echo_n "(cached) " >&6 11078else 11079 ac_check_lib_save_LIBS=$LIBS 11080LIBS="-ldld $LIBS" 11081cat >conftest.$ac_ext <<_ACEOF 11082/* confdefs.h. */ 11083_ACEOF 11084cat confdefs.h >>conftest.$ac_ext 11085cat >>conftest.$ac_ext <<_ACEOF 11086/* end confdefs.h. */ 11087 11088/* Override any GCC internal prototype to avoid an error. 11089 Use char because int might match the return type of a GCC 11090 builtin and then its argument prototype would still apply. */ 11091#ifdef __cplusplus 11092extern "C" 11093#endif 11094char shl_load (); 11095int 11096main () 11097{ 11098return shl_load (); 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103rm -f conftest.$ac_objext conftest$ac_exeext 11104if { (ac_try="$ac_link" 11105case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11110$as_echo "$ac_try_echo") >&5 11111 (eval "$ac_link") 2>conftest.er1 11112 ac_status=$? 11113 grep -v '^ *+' conftest.er1 >conftest.err 11114 rm -f conftest.er1 11115 cat conftest.err >&5 11116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11117 (exit $ac_status); } && { 11118 test -z "$ac_c_werror_flag" || 11119 test ! -s conftest.err 11120 } && test -s conftest$ac_exeext && { 11121 test "$cross_compiling" = yes || 11122 $as_test_x conftest$ac_exeext 11123 }; then 11124 ac_cv_lib_dld_shl_load=yes 11125else 11126 $as_echo "$as_me: failed program was:" >&5 11127sed 's/^/| /' conftest.$ac_ext >&5 11128 11129 ac_cv_lib_dld_shl_load=no 11130fi 11131 11132rm -rf conftest.dSYM 11133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11134 conftest$ac_exeext conftest.$ac_ext 11135LIBS=$ac_check_lib_save_LIBS 11136fi 11137{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11138$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11139if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11141else 11142 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11143$as_echo_n "checking for dlopen... " >&6; } 11144if test "${ac_cv_func_dlopen+set}" = set; then 11145 $as_echo_n "(cached) " >&6 11146else 11147 cat >conftest.$ac_ext <<_ACEOF 11148/* confdefs.h. */ 11149_ACEOF 11150cat confdefs.h >>conftest.$ac_ext 11151cat >>conftest.$ac_ext <<_ACEOF 11152/* end confdefs.h. */ 11153/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11154 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11155#define dlopen innocuous_dlopen 11156 11157/* System header to define __stub macros and hopefully few prototypes, 11158 which can conflict with char dlopen (); below. 11159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11160 <limits.h> exists even on freestanding compilers. */ 11161 11162#ifdef __STDC__ 11163# include <limits.h> 11164#else 11165# include <assert.h> 11166#endif 11167 11168#undef dlopen 11169 11170/* Override any GCC internal prototype to avoid an error. 11171 Use char because int might match the return type of a GCC 11172 builtin and then its argument prototype would still apply. */ 11173#ifdef __cplusplus 11174extern "C" 11175#endif 11176char dlopen (); 11177/* The GNU C library defines this for functions which it implements 11178 to always fail with ENOSYS. Some functions are actually named 11179 something starting with __ and the normal name is an alias. */ 11180#if defined __stub_dlopen || defined __stub___dlopen 11181choke me 11182#endif 11183 11184int 11185main () 11186{ 11187return dlopen (); 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192rm -f conftest.$ac_objext conftest$ac_exeext 11193if { (ac_try="$ac_link" 11194case "(($ac_try" in 11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11196 *) ac_try_echo=$ac_try;; 11197esac 11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11199$as_echo "$ac_try_echo") >&5 11200 (eval "$ac_link") 2>conftest.er1 11201 ac_status=$? 11202 grep -v '^ *+' conftest.er1 >conftest.err 11203 rm -f conftest.er1 11204 cat conftest.err >&5 11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11206 (exit $ac_status); } && { 11207 test -z "$ac_c_werror_flag" || 11208 test ! -s conftest.err 11209 } && test -s conftest$ac_exeext && { 11210 test "$cross_compiling" = yes || 11211 $as_test_x conftest$ac_exeext 11212 }; then 11213 ac_cv_func_dlopen=yes 11214else 11215 $as_echo "$as_me: failed program was:" >&5 11216sed 's/^/| /' conftest.$ac_ext >&5 11217 11218 ac_cv_func_dlopen=no 11219fi 11220 11221rm -rf conftest.dSYM 11222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11223 conftest$ac_exeext conftest.$ac_ext 11224fi 11225{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11226$as_echo "$ac_cv_func_dlopen" >&6; } 11227if test "x$ac_cv_func_dlopen" = x""yes; then 11228 lt_cv_dlopen="dlopen" 11229else 11230 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11231$as_echo_n "checking for dlopen in -ldl... " >&6; } 11232if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11233 $as_echo_n "(cached) " >&6 11234else 11235 ac_check_lib_save_LIBS=$LIBS 11236LIBS="-ldl $LIBS" 11237cat >conftest.$ac_ext <<_ACEOF 11238/* confdefs.h. */ 11239_ACEOF 11240cat confdefs.h >>conftest.$ac_ext 11241cat >>conftest.$ac_ext <<_ACEOF 11242/* end confdefs.h. */ 11243 11244/* Override any GCC internal prototype to avoid an error. 11245 Use char because int might match the return type of a GCC 11246 builtin and then its argument prototype would still apply. */ 11247#ifdef __cplusplus 11248extern "C" 11249#endif 11250char dlopen (); 11251int 11252main () 11253{ 11254return dlopen (); 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259rm -f conftest.$ac_objext conftest$ac_exeext 11260if { (ac_try="$ac_link" 11261case "(($ac_try" in 11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11263 *) ac_try_echo=$ac_try;; 11264esac 11265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11266$as_echo "$ac_try_echo") >&5 11267 (eval "$ac_link") 2>conftest.er1 11268 ac_status=$? 11269 grep -v '^ *+' conftest.er1 >conftest.err 11270 rm -f conftest.er1 11271 cat conftest.err >&5 11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11273 (exit $ac_status); } && { 11274 test -z "$ac_c_werror_flag" || 11275 test ! -s conftest.err 11276 } && test -s conftest$ac_exeext && { 11277 test "$cross_compiling" = yes || 11278 $as_test_x conftest$ac_exeext 11279 }; then 11280 ac_cv_lib_dl_dlopen=yes 11281else 11282 $as_echo "$as_me: failed program was:" >&5 11283sed 's/^/| /' conftest.$ac_ext >&5 11284 11285 ac_cv_lib_dl_dlopen=no 11286fi 11287 11288rm -rf conftest.dSYM 11289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11290 conftest$ac_exeext conftest.$ac_ext 11291LIBS=$ac_check_lib_save_LIBS 11292fi 11293{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11294$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11295if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11297else 11298 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11299$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11300if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11301 $as_echo_n "(cached) " >&6 11302else 11303 ac_check_lib_save_LIBS=$LIBS 11304LIBS="-lsvld $LIBS" 11305cat >conftest.$ac_ext <<_ACEOF 11306/* confdefs.h. */ 11307_ACEOF 11308cat confdefs.h >>conftest.$ac_ext 11309cat >>conftest.$ac_ext <<_ACEOF 11310/* end confdefs.h. */ 11311 11312/* Override any GCC internal prototype to avoid an error. 11313 Use char because int might match the return type of a GCC 11314 builtin and then its argument prototype would still apply. */ 11315#ifdef __cplusplus 11316extern "C" 11317#endif 11318char dlopen (); 11319int 11320main () 11321{ 11322return dlopen (); 11323 ; 11324 return 0; 11325} 11326_ACEOF 11327rm -f conftest.$ac_objext conftest$ac_exeext 11328if { (ac_try="$ac_link" 11329case "(($ac_try" in 11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11331 *) ac_try_echo=$ac_try;; 11332esac 11333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11334$as_echo "$ac_try_echo") >&5 11335 (eval "$ac_link") 2>conftest.er1 11336 ac_status=$? 11337 grep -v '^ *+' conftest.er1 >conftest.err 11338 rm -f conftest.er1 11339 cat conftest.err >&5 11340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11341 (exit $ac_status); } && { 11342 test -z "$ac_c_werror_flag" || 11343 test ! -s conftest.err 11344 } && test -s conftest$ac_exeext && { 11345 test "$cross_compiling" = yes || 11346 $as_test_x conftest$ac_exeext 11347 }; then 11348 ac_cv_lib_svld_dlopen=yes 11349else 11350 $as_echo "$as_me: failed program was:" >&5 11351sed 's/^/| /' conftest.$ac_ext >&5 11352 11353 ac_cv_lib_svld_dlopen=no 11354fi 11355 11356rm -rf conftest.dSYM 11357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11358 conftest$ac_exeext conftest.$ac_ext 11359LIBS=$ac_check_lib_save_LIBS 11360fi 11361{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11362$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11363if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11365else 11366 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11367$as_echo_n "checking for dld_link in -ldld... " >&6; } 11368if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11369 $as_echo_n "(cached) " >&6 11370else 11371 ac_check_lib_save_LIBS=$LIBS 11372LIBS="-ldld $LIBS" 11373cat >conftest.$ac_ext <<_ACEOF 11374/* confdefs.h. */ 11375_ACEOF 11376cat confdefs.h >>conftest.$ac_ext 11377cat >>conftest.$ac_ext <<_ACEOF 11378/* end confdefs.h. */ 11379 11380/* Override any GCC internal prototype to avoid an error. 11381 Use char because int might match the return type of a GCC 11382 builtin and then its argument prototype would still apply. */ 11383#ifdef __cplusplus 11384extern "C" 11385#endif 11386char dld_link (); 11387int 11388main () 11389{ 11390return dld_link (); 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_dld_dld_link=yes 11417else 11418 $as_echo "$as_me: failed program was:" >&5 11419sed 's/^/| /' conftest.$ac_ext >&5 11420 11421 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5 11430$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11431if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11433fi 11434 11435 11436fi 11437 11438 11439fi 11440 11441 11442fi 11443 11444 11445fi 11446 11447 11448fi 11449 11450 ;; 11451 esac 11452 11453 if test "x$lt_cv_dlopen" != xno; then 11454 enable_dlopen=yes 11455 else 11456 enable_dlopen=no 11457 fi 11458 11459 case $lt_cv_dlopen in 11460 dlopen) 11461 save_CPPFLAGS="$CPPFLAGS" 11462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11463 11464 save_LDFLAGS="$LDFLAGS" 11465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11466 11467 save_LIBS="$LIBS" 11468 LIBS="$lt_cv_dlopen_libs $LIBS" 11469 11470 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11471$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11472if test "${lt_cv_dlopen_self+set}" = set; then 11473 $as_echo_n "(cached) " >&6 11474else 11475 if test "$cross_compiling" = yes; then : 11476 lt_cv_dlopen_self=cross 11477else 11478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11479 lt_status=$lt_dlunknown 11480 cat > conftest.$ac_ext <<_LT_EOF 11481#line 11481 "configure" 11482#include "confdefs.h" 11483 11484#if HAVE_DLFCN_H 11485#include <dlfcn.h> 11486#endif 11487 11488#include <stdio.h> 11489 11490#ifdef RTLD_GLOBAL 11491# define LT_DLGLOBAL RTLD_GLOBAL 11492#else 11493# ifdef DL_GLOBAL 11494# define LT_DLGLOBAL DL_GLOBAL 11495# else 11496# define LT_DLGLOBAL 0 11497# endif 11498#endif 11499 11500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11501 find out it does not work in some platform. */ 11502#ifndef LT_DLLAZY_OR_NOW 11503# ifdef RTLD_LAZY 11504# define LT_DLLAZY_OR_NOW RTLD_LAZY 11505# else 11506# ifdef DL_LAZY 11507# define LT_DLLAZY_OR_NOW DL_LAZY 11508# else 11509# ifdef RTLD_NOW 11510# define LT_DLLAZY_OR_NOW RTLD_NOW 11511# else 11512# ifdef DL_NOW 11513# define LT_DLLAZY_OR_NOW DL_NOW 11514# else 11515# define LT_DLLAZY_OR_NOW 0 11516# endif 11517# endif 11518# endif 11519# endif 11520#endif 11521 11522void fnord() { int i=42;} 11523int main () 11524{ 11525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11526 int status = $lt_dlunknown; 11527 11528 if (self) 11529 { 11530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11532 /* dlclose (self); */ 11533 } 11534 else 11535 puts (dlerror ()); 11536 11537 return status; 11538} 11539_LT_EOF 11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11541 (eval $ac_link) 2>&5 11542 ac_status=$? 11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11545 (./conftest; exit; ) >&5 2>/dev/null 11546 lt_status=$? 11547 case x$lt_status in 11548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11550 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11551 esac 11552 else : 11553 # compilation failed 11554 lt_cv_dlopen_self=no 11555 fi 11556fi 11557rm -fr conftest* 11558 11559 11560fi 11561{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11562$as_echo "$lt_cv_dlopen_self" >&6; } 11563 11564 if test "x$lt_cv_dlopen_self" = xyes; then 11565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11566 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11567$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11568if test "${lt_cv_dlopen_self_static+set}" = set; then 11569 $as_echo_n "(cached) " >&6 11570else 11571 if test "$cross_compiling" = yes; then : 11572 lt_cv_dlopen_self_static=cross 11573else 11574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11575 lt_status=$lt_dlunknown 11576 cat > conftest.$ac_ext <<_LT_EOF 11577#line 11577 "configure" 11578#include "confdefs.h" 11579 11580#if HAVE_DLFCN_H 11581#include <dlfcn.h> 11582#endif 11583 11584#include <stdio.h> 11585 11586#ifdef RTLD_GLOBAL 11587# define LT_DLGLOBAL RTLD_GLOBAL 11588#else 11589# ifdef DL_GLOBAL 11590# define LT_DLGLOBAL DL_GLOBAL 11591# else 11592# define LT_DLGLOBAL 0 11593# endif 11594#endif 11595 11596/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11597 find out it does not work in some platform. */ 11598#ifndef LT_DLLAZY_OR_NOW 11599# ifdef RTLD_LAZY 11600# define LT_DLLAZY_OR_NOW RTLD_LAZY 11601# else 11602# ifdef DL_LAZY 11603# define LT_DLLAZY_OR_NOW DL_LAZY 11604# else 11605# ifdef RTLD_NOW 11606# define LT_DLLAZY_OR_NOW RTLD_NOW 11607# else 11608# ifdef DL_NOW 11609# define LT_DLLAZY_OR_NOW DL_NOW 11610# else 11611# define LT_DLLAZY_OR_NOW 0 11612# endif 11613# endif 11614# endif 11615# endif 11616#endif 11617 11618void fnord() { int i=42;} 11619int main () 11620{ 11621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11622 int status = $lt_dlunknown; 11623 11624 if (self) 11625 { 11626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11628 /* dlclose (self); */ 11629 } 11630 else 11631 puts (dlerror ()); 11632 11633 return status; 11634} 11635_LT_EOF 11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11637 (eval $ac_link) 2>&5 11638 ac_status=$? 11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11641 (./conftest; exit; ) >&5 2>/dev/null 11642 lt_status=$? 11643 case x$lt_status in 11644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11647 esac 11648 else : 11649 # compilation failed 11650 lt_cv_dlopen_self_static=no 11651 fi 11652fi 11653rm -fr conftest* 11654 11655 11656fi 11657{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11658$as_echo "$lt_cv_dlopen_self_static" >&6; } 11659 fi 11660 11661 CPPFLAGS="$save_CPPFLAGS" 11662 LDFLAGS="$save_LDFLAGS" 11663 LIBS="$save_LIBS" 11664 ;; 11665 esac 11666 11667 case $lt_cv_dlopen_self in 11668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11669 *) enable_dlopen_self=unknown ;; 11670 esac 11671 11672 case $lt_cv_dlopen_self_static in 11673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11674 *) enable_dlopen_self_static=unknown ;; 11675 esac 11676fi 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694striplib= 11695old_striplib= 11696{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11697$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11698if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11700 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11701 { $as_echo "$as_me:$LINENO: result: yes" >&5 11702$as_echo "yes" >&6; } 11703else 11704# FIXME - insert some real tests, host_os isn't really good enough 11705 case $host_os in 11706 darwin*) 11707 if test -n "$STRIP" ; then 11708 striplib="$STRIP -x" 11709 old_striplib="$STRIP -S" 11710 { $as_echo "$as_me:$LINENO: result: yes" >&5 11711$as_echo "yes" >&6; } 11712 else 11713 { $as_echo "$as_me:$LINENO: result: no" >&5 11714$as_echo "no" >&6; } 11715 fi 11716 ;; 11717 *) 11718 { $as_echo "$as_me:$LINENO: result: no" >&5 11719$as_echo "no" >&6; } 11720 ;; 11721 esac 11722fi 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 # Report which library types will actually be built 11736 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11737$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11738 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11739$as_echo "$can_build_shared" >&6; } 11740 11741 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11742$as_echo_n "checking whether to build shared libraries... " >&6; } 11743 test "$can_build_shared" = "no" && enable_shared=no 11744 11745 # On AIX, shared libraries and static libraries use the same namespace, and 11746 # are all built from PIC. 11747 case $host_os in 11748 aix3*) 11749 test "$enable_shared" = yes && enable_static=no 11750 if test -n "$RANLIB"; then 11751 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11752 postinstall_cmds='$RANLIB $lib' 11753 fi 11754 ;; 11755 11756 aix[4-9]*) 11757 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11758 test "$enable_shared" = yes && enable_static=no 11759 fi 11760 ;; 11761 esac 11762 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11763$as_echo "$enable_shared" >&6; } 11764 11765 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11766$as_echo_n "checking whether to build static libraries... " >&6; } 11767 # Make sure either enable_shared or enable_static is yes. 11768 test "$enable_shared" = yes || enable_static=yes 11769 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11770$as_echo "$enable_static" >&6; } 11771 11772 11773 11774 11775fi 11776ac_ext=c 11777ac_cpp='$CPP $CPPFLAGS' 11778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11780ac_compiler_gnu=$ac_cv_c_compiler_gnu 11781 11782CC="$lt_save_CC" 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 ac_config_commands="$ac_config_commands libtool" 11797 11798 11799 11800 11801# Only expand once: 11802 11803 11804 11805 11806 for flag in -pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing; do 11807 11808 { $as_echo "$as_me:$LINENO: checking if $CC supports $flag flag" >&5 11809$as_echo_n "checking if $CC supports $flag flag... " >&6; } 11810if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then 11811 $as_echo_n "(cached) " >&6 11812else 11813 11814 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then 11815 $as_echo_n "(cached) " >&6 11816else 11817 ac_save_CFLAGS="$CFLAGS" 11818 CFLAGS="$CFLAGS $flag" 11819 cat >conftest.$ac_ext <<_ACEOF 11820int a; 11821_ACEOF 11822rm -f conftest.$ac_objext 11823if { (ac_try="$ac_compile" 11824case "(($ac_try" in 11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11826 *) ac_try_echo=$ac_try;; 11827esac 11828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11829$as_echo "$ac_try_echo") >&5 11830 (eval "$ac_compile") 2>conftest.er1 11831 ac_status=$? 11832 grep -v '^ *+' conftest.er1 >conftest.err 11833 rm -f conftest.er1 11834 cat conftest.err >&5 11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11836 (exit $ac_status); } && { 11837 test -z "$ac_c_werror_flag" || 11838 test ! -s conftest.err 11839 } && test -s conftest.$ac_objext; then 11840 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 11841else 11842 $as_echo "$as_me: failed program was:" >&5 11843sed 's/^/| /' conftest.$ac_ext >&5 11844 11845 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 11846fi 11847 11848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11849 CFLAGS="$ac_save_CFLAGS" 11850 11851fi 11852 11853 11854 11855 11856fi 11857ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh\`'} 11858 $as_echo "$as_val"'` 11859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11860$as_echo "$ac_res" >&6; } 11861 11862 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then 11863 CFLAGS="$CFLAGS $flag"; 11864fi 11865 11866 11867 done 11868 11869 11870# Checks for header files. 11871 11872 { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5 11873$as_echo_n "checking whether to enable assertions... " >&6; } 11874 # Check whether --enable-assert was given. 11875if test "${enable_assert+set}" = set; then 11876 enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5 11877$as_echo "no" >&6; } 11878 11879cat >>confdefs.h <<\_ACEOF 11880#define NDEBUG 1 11881_ACEOF 11882 11883else 11884 { $as_echo "$as_me:$LINENO: result: yes" >&5 11885$as_echo "yes" >&6; } 11886fi 11887 11888 11889{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 11890$as_echo_n "checking for ANSI C header files... " >&6; } 11891if test "${ac_cv_header_stdc+set}" = set; then 11892 $as_echo_n "(cached) " >&6 11893else 11894 cat >conftest.$ac_ext <<_ACEOF 11895/* confdefs.h. */ 11896_ACEOF 11897cat confdefs.h >>conftest.$ac_ext 11898cat >>conftest.$ac_ext <<_ACEOF 11899/* end confdefs.h. */ 11900#include <stdlib.h> 11901#include <stdarg.h> 11902#include <string.h> 11903#include <float.h> 11904 11905int 11906main () 11907{ 11908 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913rm -f conftest.$ac_objext 11914if { (ac_try="$ac_compile" 11915case "(($ac_try" in 11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11917 *) ac_try_echo=$ac_try;; 11918esac 11919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11920$as_echo "$ac_try_echo") >&5 11921 (eval "$ac_compile") 2>conftest.er1 11922 ac_status=$? 11923 grep -v '^ *+' conftest.er1 >conftest.err 11924 rm -f conftest.er1 11925 cat conftest.err >&5 11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); } && { 11928 test -z "$ac_c_werror_flag" || 11929 test ! -s conftest.err 11930 } && test -s conftest.$ac_objext; then 11931 ac_cv_header_stdc=yes 11932else 11933 $as_echo "$as_me: failed program was:" >&5 11934sed 's/^/| /' conftest.$ac_ext >&5 11935 11936 ac_cv_header_stdc=no 11937fi 11938 11939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11940 11941if test $ac_cv_header_stdc = yes; then 11942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11943 cat >conftest.$ac_ext <<_ACEOF 11944/* confdefs.h. */ 11945_ACEOF 11946cat confdefs.h >>conftest.$ac_ext 11947cat >>conftest.$ac_ext <<_ACEOF 11948/* end confdefs.h. */ 11949#include <string.h> 11950 11951_ACEOF 11952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11953 $EGREP "memchr" >/dev/null 2>&1; then 11954 : 11955else 11956 ac_cv_header_stdc=no 11957fi 11958rm -f conftest* 11959 11960fi 11961 11962if test $ac_cv_header_stdc = yes; then 11963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11964 cat >conftest.$ac_ext <<_ACEOF 11965/* confdefs.h. */ 11966_ACEOF 11967cat confdefs.h >>conftest.$ac_ext 11968cat >>conftest.$ac_ext <<_ACEOF 11969/* end confdefs.h. */ 11970#include <stdlib.h> 11971 11972_ACEOF 11973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11974 $EGREP "free" >/dev/null 2>&1; then 11975 : 11976else 11977 ac_cv_header_stdc=no 11978fi 11979rm -f conftest* 11980 11981fi 11982 11983if test $ac_cv_header_stdc = yes; then 11984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11985 if test "$cross_compiling" = yes; then 11986 : 11987else 11988 cat >conftest.$ac_ext <<_ACEOF 11989/* confdefs.h. */ 11990_ACEOF 11991cat confdefs.h >>conftest.$ac_ext 11992cat >>conftest.$ac_ext <<_ACEOF 11993/* end confdefs.h. */ 11994#include <ctype.h> 11995#include <stdlib.h> 11996#if ((' ' & 0x0FF) == 0x020) 11997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11999#else 12000# define ISLOWER(c) \ 12001 (('a' <= (c) && (c) <= 'i') \ 12002 || ('j' <= (c) && (c) <= 'r') \ 12003 || ('s' <= (c) && (c) <= 'z')) 12004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12005#endif 12006 12007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12008int 12009main () 12010{ 12011 int i; 12012 for (i = 0; i < 256; i++) 12013 if (XOR (islower (i), ISLOWER (i)) 12014 || toupper (i) != TOUPPER (i)) 12015 return 2; 12016 return 0; 12017} 12018_ACEOF 12019rm -f conftest$ac_exeext 12020if { (ac_try="$ac_link" 12021case "(($ac_try" in 12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12023 *) ac_try_echo=$ac_try;; 12024esac 12025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12026$as_echo "$ac_try_echo") >&5 12027 (eval "$ac_link") 2>&5 12028 ac_status=$? 12029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12031 { (case "(($ac_try" in 12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12033 *) ac_try_echo=$ac_try;; 12034esac 12035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12036$as_echo "$ac_try_echo") >&5 12037 (eval "$ac_try") 2>&5 12038 ac_status=$? 12039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); }; }; then 12041 : 12042else 12043 $as_echo "$as_me: program exited with status $ac_status" >&5 12044$as_echo "$as_me: failed program was:" >&5 12045sed 's/^/| /' conftest.$ac_ext >&5 12046 12047( exit $ac_status ) 12048ac_cv_header_stdc=no 12049fi 12050rm -rf conftest.dSYM 12051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12052fi 12053 12054 12055fi 12056fi 12057{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12058$as_echo "$ac_cv_header_stdc" >&6; } 12059if test $ac_cv_header_stdc = yes; then 12060 12061cat >>confdefs.h <<\_ACEOF 12062#define STDC_HEADERS 1 12063_ACEOF 12064 12065fi 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h 12076do 12077as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12080$as_echo_n "checking for $ac_header... " >&6; } 12081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12082 $as_echo_n "(cached) " >&6 12083fi 12084ac_res=`eval 'as_val=${'$as_ac_Header'} 12085 $as_echo "$as_val"'` 12086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12087$as_echo "$ac_res" >&6; } 12088else 12089 # Is the header compilable? 12090{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12091$as_echo_n "checking $ac_header usability... " >&6; } 12092cat >conftest.$ac_ext <<_ACEOF 12093/* confdefs.h. */ 12094_ACEOF 12095cat confdefs.h >>conftest.$ac_ext 12096cat >>conftest.$ac_ext <<_ACEOF 12097/* end confdefs.h. */ 12098$ac_includes_default 12099#include <$ac_header> 12100_ACEOF 12101rm -f conftest.$ac_objext 12102if { (ac_try="$ac_compile" 12103case "(($ac_try" in 12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12105 *) ac_try_echo=$ac_try;; 12106esac 12107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12108$as_echo "$ac_try_echo") >&5 12109 (eval "$ac_compile") 2>conftest.er1 12110 ac_status=$? 12111 grep -v '^ *+' conftest.er1 >conftest.err 12112 rm -f conftest.er1 12113 cat conftest.err >&5 12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12115 (exit $ac_status); } && { 12116 test -z "$ac_c_werror_flag" || 12117 test ! -s conftest.err 12118 } && test -s conftest.$ac_objext; then 12119 ac_header_compiler=yes 12120else 12121 $as_echo "$as_me: failed program was:" >&5 12122sed 's/^/| /' conftest.$ac_ext >&5 12123 12124 ac_header_compiler=no 12125fi 12126 12127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12128{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12129$as_echo "$ac_header_compiler" >&6; } 12130 12131# Is the header present? 12132{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12133$as_echo_n "checking $ac_header presence... " >&6; } 12134cat >conftest.$ac_ext <<_ACEOF 12135/* confdefs.h. */ 12136_ACEOF 12137cat confdefs.h >>conftest.$ac_ext 12138cat >>conftest.$ac_ext <<_ACEOF 12139/* end confdefs.h. */ 12140#include <$ac_header> 12141_ACEOF 12142if { (ac_try="$ac_cpp conftest.$ac_ext" 12143case "(($ac_try" in 12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12145 *) ac_try_echo=$ac_try;; 12146esac 12147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12148$as_echo "$ac_try_echo") >&5 12149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12150 ac_status=$? 12151 grep -v '^ *+' conftest.er1 >conftest.err 12152 rm -f conftest.er1 12153 cat conftest.err >&5 12154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12155 (exit $ac_status); } >/dev/null && { 12156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12157 test ! -s conftest.err 12158 }; then 12159 ac_header_preproc=yes 12160else 12161 $as_echo "$as_me: failed program was:" >&5 12162sed 's/^/| /' conftest.$ac_ext >&5 12163 12164 ac_header_preproc=no 12165fi 12166 12167rm -f conftest.err conftest.$ac_ext 12168{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12169$as_echo "$ac_header_preproc" >&6; } 12170 12171# So? What about this header? 12172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12173 yes:no: ) 12174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12175$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12177$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12178 ac_header_preproc=yes 12179 ;; 12180 no:yes:* ) 12181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12182$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12184$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12186$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12188$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12190$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12192$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12193 ( cat <<\_ASBOX 12194## ---------------------------------------------- ## 12195## Report this to mzqnrzba (at) 0pointer (dot) de ## 12196## ---------------------------------------------- ## 12197_ASBOX 12198 ) | sed "s/^/$as_me: WARNING: /" >&2 12199 ;; 12200esac 12201{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12202$as_echo_n "checking for $ac_header... " >&6; } 12203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12204 $as_echo_n "(cached) " >&6 12205else 12206 eval "$as_ac_Header=\$ac_header_preproc" 12207fi 12208ac_res=`eval 'as_val=${'$as_ac_Header'} 12209 $as_echo "$as_val"'` 12210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12211$as_echo "$ac_res" >&6; } 12212 12213fi 12214as_val=`eval 'as_val=${'$as_ac_Header'} 12215 $as_echo "$as_val"'` 12216 if test "x$as_val" = x""yes; then 12217 cat >>confdefs.h <<_ACEOF 12218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12219_ACEOF 12220 12221fi 12222 12223done 12224 12225{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 12226$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12227if test "${ac_cv_header_sys_wait_h+set}" = set; then 12228 $as_echo_n "(cached) " >&6 12229else 12230 cat >conftest.$ac_ext <<_ACEOF 12231/* confdefs.h. */ 12232_ACEOF 12233cat confdefs.h >>conftest.$ac_ext 12234cat >>conftest.$ac_ext <<_ACEOF 12235/* end confdefs.h. */ 12236#include <sys/types.h> 12237#include <sys/wait.h> 12238#ifndef WEXITSTATUS 12239# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12240#endif 12241#ifndef WIFEXITED 12242# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12243#endif 12244 12245int 12246main () 12247{ 12248 int s; 12249 wait (&s); 12250 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255rm -f conftest.$ac_objext 12256if { (ac_try="$ac_compile" 12257case "(($ac_try" in 12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12259 *) ac_try_echo=$ac_try;; 12260esac 12261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12262$as_echo "$ac_try_echo") >&5 12263 (eval "$ac_compile") 2>conftest.er1 12264 ac_status=$? 12265 grep -v '^ *+' conftest.er1 >conftest.err 12266 rm -f conftest.er1 12267 cat conftest.err >&5 12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12269 (exit $ac_status); } && { 12270 test -z "$ac_c_werror_flag" || 12271 test ! -s conftest.err 12272 } && test -s conftest.$ac_objext; then 12273 ac_cv_header_sys_wait_h=yes 12274else 12275 $as_echo "$as_me: failed program was:" >&5 12276sed 's/^/| /' conftest.$ac_ext >&5 12277 12278 ac_cv_header_sys_wait_h=no 12279fi 12280 12281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12282fi 12283{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 12284$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12285if test $ac_cv_header_sys_wait_h = yes; then 12286 12287cat >>confdefs.h <<\_ACEOF 12288#define HAVE_SYS_WAIT_H 1 12289_ACEOF 12290 12291fi 12292 12293 12294# Checks for typedefs, structures, and compiler characteristics. 12295{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12296$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12297if test "${ac_cv_c_const+set}" = set; then 12298 $as_echo_n "(cached) " >&6 12299else 12300 cat >conftest.$ac_ext <<_ACEOF 12301/* confdefs.h. */ 12302_ACEOF 12303cat confdefs.h >>conftest.$ac_ext 12304cat >>conftest.$ac_ext <<_ACEOF 12305/* end confdefs.h. */ 12306 12307int 12308main () 12309{ 12310/* FIXME: Include the comments suggested by Paul. */ 12311#ifndef __cplusplus 12312 /* Ultrix mips cc rejects this. */ 12313 typedef int charset[2]; 12314 const charset cs; 12315 /* SunOS 4.1.1 cc rejects this. */ 12316 char const *const *pcpcc; 12317 char **ppc; 12318 /* NEC SVR4.0.2 mips cc rejects this. */ 12319 struct point {int x, y;}; 12320 static struct point const zero = {0,0}; 12321 /* AIX XL C 1.02.0.0 rejects this. 12322 It does not let you subtract one const X* pointer from another in 12323 an arm of an if-expression whose if-part is not a constant 12324 expression */ 12325 const char *g = "string"; 12326 pcpcc = &g + (g ? g-g : 0); 12327 /* HPUX 7.0 cc rejects these. */ 12328 ++pcpcc; 12329 ppc = (char**) pcpcc; 12330 pcpcc = (char const *const *) ppc; 12331 { /* SCO 3.2v4 cc rejects this. */ 12332 char *t; 12333 char const *s = 0 ? (char *) 0 : (char const *) 0; 12334 12335 *t++ = 0; 12336 if (s) return 0; 12337 } 12338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12339 int x[] = {25, 17}; 12340 const int *foo = &x[0]; 12341 ++foo; 12342 } 12343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12344 typedef const int *iptr; 12345 iptr p = 0; 12346 ++p; 12347 } 12348 { /* AIX XL C 1.02.0.0 rejects this saying 12349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12350 struct s { int j; const int *ap[3]; }; 12351 struct s *b; b->j = 5; 12352 } 12353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12354 const int foo = 10; 12355 if (!foo) return 0; 12356 } 12357 return !cs[0] && !zero.x; 12358#endif 12359 12360 ; 12361 return 0; 12362} 12363_ACEOF 12364rm -f conftest.$ac_objext 12365if { (ac_try="$ac_compile" 12366case "(($ac_try" in 12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12368 *) ac_try_echo=$ac_try;; 12369esac 12370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12371$as_echo "$ac_try_echo") >&5 12372 (eval "$ac_compile") 2>conftest.er1 12373 ac_status=$? 12374 grep -v '^ *+' conftest.er1 >conftest.err 12375 rm -f conftest.er1 12376 cat conftest.err >&5 12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12378 (exit $ac_status); } && { 12379 test -z "$ac_c_werror_flag" || 12380 test ! -s conftest.err 12381 } && test -s conftest.$ac_objext; then 12382 ac_cv_c_const=yes 12383else 12384 $as_echo "$as_me: failed program was:" >&5 12385sed 's/^/| /' conftest.$ac_ext >&5 12386 12387 ac_cv_c_const=no 12388fi 12389 12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12391fi 12392{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12393$as_echo "$ac_cv_c_const" >&6; } 12394if test $ac_cv_c_const = no; then 12395 12396cat >>confdefs.h <<\_ACEOF 12397#define const /**/ 12398_ACEOF 12399 12400fi 12401 12402{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 12403$as_echo_n "checking for pid_t... " >&6; } 12404if test "${ac_cv_type_pid_t+set}" = set; then 12405 $as_echo_n "(cached) " >&6 12406else 12407 ac_cv_type_pid_t=no 12408cat >conftest.$ac_ext <<_ACEOF 12409/* confdefs.h. */ 12410_ACEOF 12411cat confdefs.h >>conftest.$ac_ext 12412cat >>conftest.$ac_ext <<_ACEOF 12413/* end confdefs.h. */ 12414$ac_includes_default 12415int 12416main () 12417{ 12418if (sizeof (pid_t)) 12419 return 0; 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424rm -f conftest.$ac_objext 12425if { (ac_try="$ac_compile" 12426case "(($ac_try" in 12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12428 *) ac_try_echo=$ac_try;; 12429esac 12430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12431$as_echo "$ac_try_echo") >&5 12432 (eval "$ac_compile") 2>conftest.er1 12433 ac_status=$? 12434 grep -v '^ *+' conftest.er1 >conftest.err 12435 rm -f conftest.er1 12436 cat conftest.err >&5 12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12438 (exit $ac_status); } && { 12439 test -z "$ac_c_werror_flag" || 12440 test ! -s conftest.err 12441 } && test -s conftest.$ac_objext; then 12442 cat >conftest.$ac_ext <<_ACEOF 12443/* confdefs.h. */ 12444_ACEOF 12445cat confdefs.h >>conftest.$ac_ext 12446cat >>conftest.$ac_ext <<_ACEOF 12447/* end confdefs.h. */ 12448$ac_includes_default 12449int 12450main () 12451{ 12452if (sizeof ((pid_t))) 12453 return 0; 12454 ; 12455 return 0; 12456} 12457_ACEOF 12458rm -f conftest.$ac_objext 12459if { (ac_try="$ac_compile" 12460case "(($ac_try" in 12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12462 *) ac_try_echo=$ac_try;; 12463esac 12464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12465$as_echo "$ac_try_echo") >&5 12466 (eval "$ac_compile") 2>conftest.er1 12467 ac_status=$? 12468 grep -v '^ *+' conftest.er1 >conftest.err 12469 rm -f conftest.er1 12470 cat conftest.err >&5 12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12472 (exit $ac_status); } && { 12473 test -z "$ac_c_werror_flag" || 12474 test ! -s conftest.err 12475 } && test -s conftest.$ac_objext; then 12476 : 12477else 12478 $as_echo "$as_me: failed program was:" >&5 12479sed 's/^/| /' conftest.$ac_ext >&5 12480 12481 ac_cv_type_pid_t=yes 12482fi 12483 12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12485else 12486 $as_echo "$as_me: failed program was:" >&5 12487sed 's/^/| /' conftest.$ac_ext >&5 12488 12489 12490fi 12491 12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12493fi 12494{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 12495$as_echo "$ac_cv_type_pid_t" >&6; } 12496if test "x$ac_cv_type_pid_t" = x""yes; then 12497 : 12498else 12499 12500cat >>confdefs.h <<_ACEOF 12501#define pid_t int 12502_ACEOF 12503 12504fi 12505 12506{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12507$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12508if test "${ac_cv_header_time+set}" = set; then 12509 $as_echo_n "(cached) " >&6 12510else 12511 cat >conftest.$ac_ext <<_ACEOF 12512/* confdefs.h. */ 12513_ACEOF 12514cat confdefs.h >>conftest.$ac_ext 12515cat >>conftest.$ac_ext <<_ACEOF 12516/* end confdefs.h. */ 12517#include <sys/types.h> 12518#include <sys/time.h> 12519#include <time.h> 12520 12521int 12522main () 12523{ 12524if ((struct tm *) 0) 12525return 0; 12526 ; 12527 return 0; 12528} 12529_ACEOF 12530rm -f conftest.$ac_objext 12531if { (ac_try="$ac_compile" 12532case "(($ac_try" in 12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12534 *) ac_try_echo=$ac_try;; 12535esac 12536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12537$as_echo "$ac_try_echo") >&5 12538 (eval "$ac_compile") 2>conftest.er1 12539 ac_status=$? 12540 grep -v '^ *+' conftest.er1 >conftest.err 12541 rm -f conftest.er1 12542 cat conftest.err >&5 12543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12544 (exit $ac_status); } && { 12545 test -z "$ac_c_werror_flag" || 12546 test ! -s conftest.err 12547 } && test -s conftest.$ac_objext; then 12548 ac_cv_header_time=yes 12549else 12550 $as_echo "$as_me: failed program was:" >&5 12551sed 's/^/| /' conftest.$ac_ext >&5 12552 12553 ac_cv_header_time=no 12554fi 12555 12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12557fi 12558{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12559$as_echo "$ac_cv_header_time" >&6; } 12560if test $ac_cv_header_time = yes; then 12561 12562cat >>confdefs.h <<\_ACEOF 12563#define TIME_WITH_SYS_TIME 1 12564_ACEOF 12565 12566fi 12567 12568{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5 12569$as_echo_n "checking for working volatile... " >&6; } 12570if test "${ac_cv_c_volatile+set}" = set; then 12571 $as_echo_n "(cached) " >&6 12572else 12573 cat >conftest.$ac_ext <<_ACEOF 12574/* confdefs.h. */ 12575_ACEOF 12576cat confdefs.h >>conftest.$ac_ext 12577cat >>conftest.$ac_ext <<_ACEOF 12578/* end confdefs.h. */ 12579 12580int 12581main () 12582{ 12583 12584volatile int x; 12585int * volatile y = (int *) 0; 12586return !x && !y; 12587 ; 12588 return 0; 12589} 12590_ACEOF 12591rm -f conftest.$ac_objext 12592if { (ac_try="$ac_compile" 12593case "(($ac_try" in 12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12595 *) ac_try_echo=$ac_try;; 12596esac 12597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12598$as_echo "$ac_try_echo") >&5 12599 (eval "$ac_compile") 2>conftest.er1 12600 ac_status=$? 12601 grep -v '^ *+' conftest.er1 >conftest.err 12602 rm -f conftest.er1 12603 cat conftest.err >&5 12604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12605 (exit $ac_status); } && { 12606 test -z "$ac_c_werror_flag" || 12607 test ! -s conftest.err 12608 } && test -s conftest.$ac_objext; then 12609 ac_cv_c_volatile=yes 12610else 12611 $as_echo "$as_me: failed program was:" >&5 12612sed 's/^/| /' conftest.$ac_ext >&5 12613 12614 ac_cv_c_volatile=no 12615fi 12616 12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12618fi 12619{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 12620$as_echo "$ac_cv_c_volatile" >&6; } 12621if test $ac_cv_c_volatile = no; then 12622 12623cat >>confdefs.h <<\_ACEOF 12624#define volatile /**/ 12625_ACEOF 12626 12627fi 12628 12629 12630# Checks for library functions. 12631 12632for ac_header in vfork.h 12633do 12634as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12637$as_echo_n "checking for $ac_header... " >&6; } 12638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12639 $as_echo_n "(cached) " >&6 12640fi 12641ac_res=`eval 'as_val=${'$as_ac_Header'} 12642 $as_echo "$as_val"'` 12643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12644$as_echo "$ac_res" >&6; } 12645else 12646 # Is the header compilable? 12647{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12648$as_echo_n "checking $ac_header usability... " >&6; } 12649cat >conftest.$ac_ext <<_ACEOF 12650/* confdefs.h. */ 12651_ACEOF 12652cat confdefs.h >>conftest.$ac_ext 12653cat >>conftest.$ac_ext <<_ACEOF 12654/* end confdefs.h. */ 12655$ac_includes_default 12656#include <$ac_header> 12657_ACEOF 12658rm -f conftest.$ac_objext 12659if { (ac_try="$ac_compile" 12660case "(($ac_try" in 12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12662 *) ac_try_echo=$ac_try;; 12663esac 12664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12665$as_echo "$ac_try_echo") >&5 12666 (eval "$ac_compile") 2>conftest.er1 12667 ac_status=$? 12668 grep -v '^ *+' conftest.er1 >conftest.err 12669 rm -f conftest.er1 12670 cat conftest.err >&5 12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12672 (exit $ac_status); } && { 12673 test -z "$ac_c_werror_flag" || 12674 test ! -s conftest.err 12675 } && test -s conftest.$ac_objext; then 12676 ac_header_compiler=yes 12677else 12678 $as_echo "$as_me: failed program was:" >&5 12679sed 's/^/| /' conftest.$ac_ext >&5 12680 12681 ac_header_compiler=no 12682fi 12683 12684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12685{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12686$as_echo "$ac_header_compiler" >&6; } 12687 12688# Is the header present? 12689{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12690$as_echo_n "checking $ac_header presence... " >&6; } 12691cat >conftest.$ac_ext <<_ACEOF 12692/* confdefs.h. */ 12693_ACEOF 12694cat confdefs.h >>conftest.$ac_ext 12695cat >>conftest.$ac_ext <<_ACEOF 12696/* end confdefs.h. */ 12697#include <$ac_header> 12698_ACEOF 12699if { (ac_try="$ac_cpp conftest.$ac_ext" 12700case "(($ac_try" in 12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12702 *) ac_try_echo=$ac_try;; 12703esac 12704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12705$as_echo "$ac_try_echo") >&5 12706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12707 ac_status=$? 12708 grep -v '^ *+' conftest.er1 >conftest.err 12709 rm -f conftest.er1 12710 cat conftest.err >&5 12711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); } >/dev/null && { 12713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12714 test ! -s conftest.err 12715 }; then 12716 ac_header_preproc=yes 12717else 12718 $as_echo "$as_me: failed program was:" >&5 12719sed 's/^/| /' conftest.$ac_ext >&5 12720 12721 ac_header_preproc=no 12722fi 12723 12724rm -f conftest.err conftest.$ac_ext 12725{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12726$as_echo "$ac_header_preproc" >&6; } 12727 12728# So? What about this header? 12729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12730 yes:no: ) 12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12732$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12734$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12735 ac_header_preproc=yes 12736 ;; 12737 no:yes:* ) 12738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12739$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12741$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12743$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12745$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12747$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12749$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12750 ( cat <<\_ASBOX 12751## ---------------------------------------------- ## 12752## Report this to mzqnrzba (at) 0pointer (dot) de ## 12753## ---------------------------------------------- ## 12754_ASBOX 12755 ) | sed "s/^/$as_me: WARNING: /" >&2 12756 ;; 12757esac 12758{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12759$as_echo_n "checking for $ac_header... " >&6; } 12760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12761 $as_echo_n "(cached) " >&6 12762else 12763 eval "$as_ac_Header=\$ac_header_preproc" 12764fi 12765ac_res=`eval 'as_val=${'$as_ac_Header'} 12766 $as_echo "$as_val"'` 12767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12768$as_echo "$ac_res" >&6; } 12769 12770fi 12771as_val=`eval 'as_val=${'$as_ac_Header'} 12772 $as_echo "$as_val"'` 12773 if test "x$as_val" = x""yes; then 12774 cat >>confdefs.h <<_ACEOF 12775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12776_ACEOF 12777 12778fi 12779 12780done 12781 12782 12783 12784for ac_func in fork vfork 12785do 12786as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12787{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12788$as_echo_n "checking for $ac_func... " >&6; } 12789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12790 $as_echo_n "(cached) " >&6 12791else 12792 cat >conftest.$ac_ext <<_ACEOF 12793/* confdefs.h. */ 12794_ACEOF 12795cat confdefs.h >>conftest.$ac_ext 12796cat >>conftest.$ac_ext <<_ACEOF 12797/* end confdefs.h. */ 12798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12800#define $ac_func innocuous_$ac_func 12801 12802/* System header to define __stub macros and hopefully few prototypes, 12803 which can conflict with char $ac_func (); below. 12804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12805 <limits.h> exists even on freestanding compilers. */ 12806 12807#ifdef __STDC__ 12808# include <limits.h> 12809#else 12810# include <assert.h> 12811#endif 12812 12813#undef $ac_func 12814 12815/* Override any GCC internal prototype to avoid an error. 12816 Use char because int might match the return type of a GCC 12817 builtin and then its argument prototype would still apply. */ 12818#ifdef __cplusplus 12819extern "C" 12820#endif 12821char $ac_func (); 12822/* The GNU C library defines this for functions which it implements 12823 to always fail with ENOSYS. Some functions are actually named 12824 something starting with __ and the normal name is an alias. */ 12825#if defined __stub_$ac_func || defined __stub___$ac_func 12826choke me 12827#endif 12828 12829int 12830main () 12831{ 12832return $ac_func (); 12833 ; 12834 return 0; 12835} 12836_ACEOF 12837rm -f conftest.$ac_objext conftest$ac_exeext 12838if { (ac_try="$ac_link" 12839case "(($ac_try" in 12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12841 *) ac_try_echo=$ac_try;; 12842esac 12843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12844$as_echo "$ac_try_echo") >&5 12845 (eval "$ac_link") 2>conftest.er1 12846 ac_status=$? 12847 grep -v '^ *+' conftest.er1 >conftest.err 12848 rm -f conftest.er1 12849 cat conftest.err >&5 12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12851 (exit $ac_status); } && { 12852 test -z "$ac_c_werror_flag" || 12853 test ! -s conftest.err 12854 } && test -s conftest$ac_exeext && { 12855 test "$cross_compiling" = yes || 12856 $as_test_x conftest$ac_exeext 12857 }; then 12858 eval "$as_ac_var=yes" 12859else 12860 $as_echo "$as_me: failed program was:" >&5 12861sed 's/^/| /' conftest.$ac_ext >&5 12862 12863 eval "$as_ac_var=no" 12864fi 12865 12866rm -rf conftest.dSYM 12867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12868 conftest$ac_exeext conftest.$ac_ext 12869fi 12870ac_res=`eval 'as_val=${'$as_ac_var'} 12871 $as_echo "$as_val"'` 12872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12873$as_echo "$ac_res" >&6; } 12874as_val=`eval 'as_val=${'$as_ac_var'} 12875 $as_echo "$as_val"'` 12876 if test "x$as_val" = x""yes; then 12877 cat >>confdefs.h <<_ACEOF 12878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12879_ACEOF 12880 12881fi 12882done 12883 12884if test "x$ac_cv_func_fork" = xyes; then 12885 { $as_echo "$as_me:$LINENO: checking for working fork" >&5 12886$as_echo_n "checking for working fork... " >&6; } 12887if test "${ac_cv_func_fork_works+set}" = set; then 12888 $as_echo_n "(cached) " >&6 12889else 12890 if test "$cross_compiling" = yes; then 12891 ac_cv_func_fork_works=cross 12892else 12893 cat >conftest.$ac_ext <<_ACEOF 12894/* confdefs.h. */ 12895_ACEOF 12896cat confdefs.h >>conftest.$ac_ext 12897cat >>conftest.$ac_ext <<_ACEOF 12898/* end confdefs.h. */ 12899$ac_includes_default 12900int 12901main () 12902{ 12903 12904 /* By Ruediger Kuhlmann. */ 12905 return fork () < 0; 12906 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911rm -f conftest$ac_exeext 12912if { (ac_try="$ac_link" 12913case "(($ac_try" in 12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12915 *) ac_try_echo=$ac_try;; 12916esac 12917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12918$as_echo "$ac_try_echo") >&5 12919 (eval "$ac_link") 2>&5 12920 ac_status=$? 12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12923 { (case "(($ac_try" in 12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12925 *) ac_try_echo=$ac_try;; 12926esac 12927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12928$as_echo "$ac_try_echo") >&5 12929 (eval "$ac_try") 2>&5 12930 ac_status=$? 12931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12932 (exit $ac_status); }; }; then 12933 ac_cv_func_fork_works=yes 12934else 12935 $as_echo "$as_me: program exited with status $ac_status" >&5 12936$as_echo "$as_me: failed program was:" >&5 12937sed 's/^/| /' conftest.$ac_ext >&5 12938 12939( exit $ac_status ) 12940ac_cv_func_fork_works=no 12941fi 12942rm -rf conftest.dSYM 12943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12944fi 12945 12946 12947fi 12948{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 12949$as_echo "$ac_cv_func_fork_works" >&6; } 12950 12951else 12952 ac_cv_func_fork_works=$ac_cv_func_fork 12953fi 12954if test "x$ac_cv_func_fork_works" = xcross; then 12955 case $host in 12956 *-*-amigaos* | *-*-msdosdjgpp*) 12957 # Override, as these systems have only a dummy fork() stub 12958 ac_cv_func_fork_works=no 12959 ;; 12960 *) 12961 ac_cv_func_fork_works=yes 12962 ;; 12963 esac 12964 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 12965$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 12966fi 12967ac_cv_func_vfork_works=$ac_cv_func_vfork 12968if test "x$ac_cv_func_vfork" = xyes; then 12969 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 12970$as_echo_n "checking for working vfork... " >&6; } 12971if test "${ac_cv_func_vfork_works+set}" = set; then 12972 $as_echo_n "(cached) " >&6 12973else 12974 if test "$cross_compiling" = yes; then 12975 ac_cv_func_vfork_works=cross 12976else 12977 cat >conftest.$ac_ext <<_ACEOF 12978/* confdefs.h. */ 12979_ACEOF 12980cat confdefs.h >>conftest.$ac_ext 12981cat >>conftest.$ac_ext <<_ACEOF 12982/* end confdefs.h. */ 12983/* Thanks to Paul Eggert for this test. */ 12984$ac_includes_default 12985#include <sys/wait.h> 12986#ifdef HAVE_VFORK_H 12987# include <vfork.h> 12988#endif 12989/* On some sparc systems, changes by the child to local and incoming 12990 argument registers are propagated back to the parent. The compiler 12991 is told about this with #include <vfork.h>, but some compilers 12992 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 12993 static variable whose address is put into a register that is 12994 clobbered by the vfork. */ 12995static void 12996#ifdef __cplusplus 12997sparc_address_test (int arg) 12998# else 12999sparc_address_test (arg) int arg; 13000#endif 13001{ 13002 static pid_t child; 13003 if (!child) { 13004 child = vfork (); 13005 if (child < 0) { 13006 perror ("vfork"); 13007 _exit(2); 13008 } 13009 if (!child) { 13010 arg = getpid(); 13011 write(-1, "", 0); 13012 _exit (arg); 13013 } 13014 } 13015} 13016 13017int 13018main () 13019{ 13020 pid_t parent = getpid (); 13021 pid_t child; 13022 13023 sparc_address_test (0); 13024 13025 child = vfork (); 13026 13027 if (child == 0) { 13028 /* Here is another test for sparc vfork register problems. This 13029 test uses lots of local variables, at least as many local 13030 variables as main has allocated so far including compiler 13031 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13032 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13033 reuse the register of parent for one of the local variables, 13034 since it will think that parent can't possibly be used any more 13035 in this routine. Assigning to the local variable will thus 13036 munge parent in the parent process. */ 13037 pid_t 13038 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13039 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13040 /* Convince the compiler that p..p7 are live; otherwise, it might 13041 use the same hardware register for all 8 local variables. */ 13042 if (p != p1 || p != p2 || p != p3 || p != p4 13043 || p != p5 || p != p6 || p != p7) 13044 _exit(1); 13045 13046 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13047 from child file descriptors. If the child closes a descriptor 13048 before it execs or exits, this munges the parent's descriptor 13049 as well. Test for this by closing stdout in the child. */ 13050 _exit(close(fileno(stdout)) != 0); 13051 } else { 13052 int status; 13053 struct stat st; 13054 13055 while (wait(&status) != child) 13056 ; 13057 return ( 13058 /* Was there some problem with vforking? */ 13059 child < 0 13060 13061 /* Did the child fail? (This shouldn't happen.) */ 13062 || status 13063 13064 /* Did the vfork/compiler bug occur? */ 13065 || parent != getpid() 13066 13067 /* Did the file descriptor bug occur? */ 13068 || fstat(fileno(stdout), &st) != 0 13069 ); 13070 } 13071} 13072_ACEOF 13073rm -f conftest$ac_exeext 13074if { (ac_try="$ac_link" 13075case "(($ac_try" in 13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13077 *) ac_try_echo=$ac_try;; 13078esac 13079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13080$as_echo "$ac_try_echo") >&5 13081 (eval "$ac_link") 2>&5 13082 ac_status=$? 13083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13085 { (case "(($ac_try" in 13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13087 *) ac_try_echo=$ac_try;; 13088esac 13089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13090$as_echo "$ac_try_echo") >&5 13091 (eval "$ac_try") 2>&5 13092 ac_status=$? 13093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; }; then 13095 ac_cv_func_vfork_works=yes 13096else 13097 $as_echo "$as_me: program exited with status $ac_status" >&5 13098$as_echo "$as_me: failed program was:" >&5 13099sed 's/^/| /' conftest.$ac_ext >&5 13100 13101( exit $ac_status ) 13102ac_cv_func_vfork_works=no 13103fi 13104rm -rf conftest.dSYM 13105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13106fi 13107 13108 13109fi 13110{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 13111$as_echo "$ac_cv_func_vfork_works" >&6; } 13112 13113fi; 13114if test "x$ac_cv_func_fork_works" = xcross; then 13115 ac_cv_func_vfork_works=$ac_cv_func_vfork 13116 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13117$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13118fi 13119 13120if test "x$ac_cv_func_vfork_works" = xyes; then 13121 13122cat >>confdefs.h <<\_ACEOF 13123#define HAVE_WORKING_VFORK 1 13124_ACEOF 13125 13126else 13127 13128cat >>confdefs.h <<\_ACEOF 13129#define vfork fork 13130_ACEOF 13131 13132fi 13133if test "x$ac_cv_func_fork_works" = xyes; then 13134 13135cat >>confdefs.h <<\_ACEOF 13136#define HAVE_WORKING_FORK 1 13137_ACEOF 13138 13139fi 13140 13141 13142 13143for ac_header in sys/select.h sys/socket.h 13144do 13145as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13148$as_echo_n "checking for $ac_header... " >&6; } 13149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13150 $as_echo_n "(cached) " >&6 13151fi 13152ac_res=`eval 'as_val=${'$as_ac_Header'} 13153 $as_echo "$as_val"'` 13154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13155$as_echo "$ac_res" >&6; } 13156else 13157 # Is the header compilable? 13158{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13159$as_echo_n "checking $ac_header usability... " >&6; } 13160cat >conftest.$ac_ext <<_ACEOF 13161/* confdefs.h. */ 13162_ACEOF 13163cat confdefs.h >>conftest.$ac_ext 13164cat >>conftest.$ac_ext <<_ACEOF 13165/* end confdefs.h. */ 13166$ac_includes_default 13167#include <$ac_header> 13168_ACEOF 13169rm -f conftest.$ac_objext 13170if { (ac_try="$ac_compile" 13171case "(($ac_try" in 13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13173 *) ac_try_echo=$ac_try;; 13174esac 13175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13176$as_echo "$ac_try_echo") >&5 13177 (eval "$ac_compile") 2>conftest.er1 13178 ac_status=$? 13179 grep -v '^ *+' conftest.er1 >conftest.err 13180 rm -f conftest.er1 13181 cat conftest.err >&5 13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13183 (exit $ac_status); } && { 13184 test -z "$ac_c_werror_flag" || 13185 test ! -s conftest.err 13186 } && test -s conftest.$ac_objext; then 13187 ac_header_compiler=yes 13188else 13189 $as_echo "$as_me: failed program was:" >&5 13190sed 's/^/| /' conftest.$ac_ext >&5 13191 13192 ac_header_compiler=no 13193fi 13194 13195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13196{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13197$as_echo "$ac_header_compiler" >&6; } 13198 13199# Is the header present? 13200{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13201$as_echo_n "checking $ac_header presence... " >&6; } 13202cat >conftest.$ac_ext <<_ACEOF 13203/* confdefs.h. */ 13204_ACEOF 13205cat confdefs.h >>conftest.$ac_ext 13206cat >>conftest.$ac_ext <<_ACEOF 13207/* end confdefs.h. */ 13208#include <$ac_header> 13209_ACEOF 13210if { (ac_try="$ac_cpp conftest.$ac_ext" 13211case "(($ac_try" in 13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13213 *) ac_try_echo=$ac_try;; 13214esac 13215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13216$as_echo "$ac_try_echo") >&5 13217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13218 ac_status=$? 13219 grep -v '^ *+' conftest.er1 >conftest.err 13220 rm -f conftest.er1 13221 cat conftest.err >&5 13222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13223 (exit $ac_status); } >/dev/null && { 13224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13225 test ! -s conftest.err 13226 }; then 13227 ac_header_preproc=yes 13228else 13229 $as_echo "$as_me: failed program was:" >&5 13230sed 's/^/| /' conftest.$ac_ext >&5 13231 13232 ac_header_preproc=no 13233fi 13234 13235rm -f conftest.err conftest.$ac_ext 13236{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13237$as_echo "$ac_header_preproc" >&6; } 13238 13239# So? What about this header? 13240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13241 yes:no: ) 13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13243$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13245$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13246 ac_header_preproc=yes 13247 ;; 13248 no:yes:* ) 13249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13250$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13252$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13254$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13256$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13258$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13260$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13261 ( cat <<\_ASBOX 13262## ---------------------------------------------- ## 13263## Report this to mzqnrzba (at) 0pointer (dot) de ## 13264## ---------------------------------------------- ## 13265_ASBOX 13266 ) | sed "s/^/$as_me: WARNING: /" >&2 13267 ;; 13268esac 13269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13270$as_echo_n "checking for $ac_header... " >&6; } 13271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13272 $as_echo_n "(cached) " >&6 13273else 13274 eval "$as_ac_Header=\$ac_header_preproc" 13275fi 13276ac_res=`eval 'as_val=${'$as_ac_Header'} 13277 $as_echo "$as_val"'` 13278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13279$as_echo "$ac_res" >&6; } 13280 13281fi 13282as_val=`eval 'as_val=${'$as_ac_Header'} 13283 $as_echo "$as_val"'` 13284 if test "x$as_val" = x""yes; then 13285 cat >>confdefs.h <<_ACEOF 13286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13287_ACEOF 13288 13289fi 13290 13291done 13292 13293{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 13294$as_echo_n "checking types of arguments for select... " >&6; } 13295if test "${ac_cv_func_select_args+set}" = set; then 13296 $as_echo_n "(cached) " >&6 13297else 13298 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 13299 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 13300 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 13301 cat >conftest.$ac_ext <<_ACEOF 13302/* confdefs.h. */ 13303_ACEOF 13304cat confdefs.h >>conftest.$ac_ext 13305cat >>conftest.$ac_ext <<_ACEOF 13306/* end confdefs.h. */ 13307$ac_includes_default 13308#ifdef HAVE_SYS_SELECT_H 13309# include <sys/select.h> 13310#endif 13311#ifdef HAVE_SYS_SOCKET_H 13312# include <sys/socket.h> 13313#endif 13314 13315int 13316main () 13317{ 13318extern int select ($ac_arg1, 13319 $ac_arg234, $ac_arg234, $ac_arg234, 13320 $ac_arg5); 13321 ; 13322 return 0; 13323} 13324_ACEOF 13325rm -f conftest.$ac_objext 13326if { (ac_try="$ac_compile" 13327case "(($ac_try" in 13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13329 *) ac_try_echo=$ac_try;; 13330esac 13331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13332$as_echo "$ac_try_echo") >&5 13333 (eval "$ac_compile") 2>conftest.er1 13334 ac_status=$? 13335 grep -v '^ *+' conftest.er1 >conftest.err 13336 rm -f conftest.er1 13337 cat conftest.err >&5 13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13339 (exit $ac_status); } && { 13340 test -z "$ac_c_werror_flag" || 13341 test ! -s conftest.err 13342 } && test -s conftest.$ac_objext; then 13343 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 13344else 13345 $as_echo "$as_me: failed program was:" >&5 13346sed 's/^/| /' conftest.$ac_ext >&5 13347 13348 13349fi 13350 13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13352 done 13353 done 13354done 13355# Provide a safe default value. 13356: ${ac_cv_func_select_args='int,int *,struct timeval *'} 13357 13358fi 13359{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 13360$as_echo "$ac_cv_func_select_args" >&6; } 13361ac_save_IFS=$IFS; IFS=',' 13362set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 13363IFS=$ac_save_IFS 13364shift 13365 13366cat >>confdefs.h <<_ACEOF 13367#define SELECT_TYPE_ARG1 $1 13368_ACEOF 13369 13370 13371cat >>confdefs.h <<_ACEOF 13372#define SELECT_TYPE_ARG234 ($2) 13373_ACEOF 13374 13375 13376cat >>confdefs.h <<_ACEOF 13377#define SELECT_TYPE_ARG5 ($3) 13378_ACEOF 13379 13380rm -f conftest* 13381 13382 13383for ac_func in vprintf 13384do 13385as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13386{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13387$as_echo_n "checking for $ac_func... " >&6; } 13388if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13389 $as_echo_n "(cached) " >&6 13390else 13391 cat >conftest.$ac_ext <<_ACEOF 13392/* confdefs.h. */ 13393_ACEOF 13394cat confdefs.h >>conftest.$ac_ext 13395cat >>conftest.$ac_ext <<_ACEOF 13396/* end confdefs.h. */ 13397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13398 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13399#define $ac_func innocuous_$ac_func 13400 13401/* System header to define __stub macros and hopefully few prototypes, 13402 which can conflict with char $ac_func (); below. 13403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13404 <limits.h> exists even on freestanding compilers. */ 13405 13406#ifdef __STDC__ 13407# include <limits.h> 13408#else 13409# include <assert.h> 13410#endif 13411 13412#undef $ac_func 13413 13414/* Override any GCC internal prototype to avoid an error. 13415 Use char because int might match the return type of a GCC 13416 builtin and then its argument prototype would still apply. */ 13417#ifdef __cplusplus 13418extern "C" 13419#endif 13420char $ac_func (); 13421/* The GNU C library defines this for functions which it implements 13422 to always fail with ENOSYS. Some functions are actually named 13423 something starting with __ and the normal name is an alias. */ 13424#if defined __stub_$ac_func || defined __stub___$ac_func 13425choke me 13426#endif 13427 13428int 13429main () 13430{ 13431return $ac_func (); 13432 ; 13433 return 0; 13434} 13435_ACEOF 13436rm -f conftest.$ac_objext conftest$ac_exeext 13437if { (ac_try="$ac_link" 13438case "(($ac_try" in 13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13440 *) ac_try_echo=$ac_try;; 13441esac 13442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13443$as_echo "$ac_try_echo") >&5 13444 (eval "$ac_link") 2>conftest.er1 13445 ac_status=$? 13446 grep -v '^ *+' conftest.er1 >conftest.err 13447 rm -f conftest.er1 13448 cat conftest.err >&5 13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13450 (exit $ac_status); } && { 13451 test -z "$ac_c_werror_flag" || 13452 test ! -s conftest.err 13453 } && test -s conftest$ac_exeext && { 13454 test "$cross_compiling" = yes || 13455 $as_test_x conftest$ac_exeext 13456 }; then 13457 eval "$as_ac_var=yes" 13458else 13459 $as_echo "$as_me: failed program was:" >&5 13460sed 's/^/| /' conftest.$ac_ext >&5 13461 13462 eval "$as_ac_var=no" 13463fi 13464 13465rm -rf conftest.dSYM 13466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13467 conftest$ac_exeext conftest.$ac_ext 13468fi 13469ac_res=`eval 'as_val=${'$as_ac_var'} 13470 $as_echo "$as_val"'` 13471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13472$as_echo "$ac_res" >&6; } 13473as_val=`eval 'as_val=${'$as_ac_var'} 13474 $as_echo "$as_val"'` 13475 if test "x$as_val" = x""yes; then 13476 cat >>confdefs.h <<_ACEOF 13477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13478_ACEOF 13479 13480{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 13481$as_echo_n "checking for _doprnt... " >&6; } 13482if test "${ac_cv_func__doprnt+set}" = set; then 13483 $as_echo_n "(cached) " >&6 13484else 13485 cat >conftest.$ac_ext <<_ACEOF 13486/* confdefs.h. */ 13487_ACEOF 13488cat confdefs.h >>conftest.$ac_ext 13489cat >>conftest.$ac_ext <<_ACEOF 13490/* end confdefs.h. */ 13491/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13493#define _doprnt innocuous__doprnt 13494 13495/* System header to define __stub macros and hopefully few prototypes, 13496 which can conflict with char _doprnt (); below. 13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13498 <limits.h> exists even on freestanding compilers. */ 13499 13500#ifdef __STDC__ 13501# include <limits.h> 13502#else 13503# include <assert.h> 13504#endif 13505 13506#undef _doprnt 13507 13508/* Override any GCC internal prototype to avoid an error. 13509 Use char because int might match the return type of a GCC 13510 builtin and then its argument prototype would still apply. */ 13511#ifdef __cplusplus 13512extern "C" 13513#endif 13514char _doprnt (); 13515/* The GNU C library defines this for functions which it implements 13516 to always fail with ENOSYS. Some functions are actually named 13517 something starting with __ and the normal name is an alias. */ 13518#if defined __stub__doprnt || defined __stub____doprnt 13519choke me 13520#endif 13521 13522int 13523main () 13524{ 13525return _doprnt (); 13526 ; 13527 return 0; 13528} 13529_ACEOF 13530rm -f conftest.$ac_objext conftest$ac_exeext 13531if { (ac_try="$ac_link" 13532case "(($ac_try" in 13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13534 *) ac_try_echo=$ac_try;; 13535esac 13536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13537$as_echo "$ac_try_echo") >&5 13538 (eval "$ac_link") 2>conftest.er1 13539 ac_status=$? 13540 grep -v '^ *+' conftest.er1 >conftest.err 13541 rm -f conftest.er1 13542 cat conftest.err >&5 13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13544 (exit $ac_status); } && { 13545 test -z "$ac_c_werror_flag" || 13546 test ! -s conftest.err 13547 } && test -s conftest$ac_exeext && { 13548 test "$cross_compiling" = yes || 13549 $as_test_x conftest$ac_exeext 13550 }; then 13551 ac_cv_func__doprnt=yes 13552else 13553 $as_echo "$as_me: failed program was:" >&5 13554sed 's/^/| /' conftest.$ac_ext >&5 13555 13556 ac_cv_func__doprnt=no 13557fi 13558 13559rm -rf conftest.dSYM 13560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13561 conftest$ac_exeext conftest.$ac_ext 13562fi 13563{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 13564$as_echo "$ac_cv_func__doprnt" >&6; } 13565if test "x$ac_cv_func__doprnt" = x""yes; then 13566 13567cat >>confdefs.h <<\_ACEOF 13568#define HAVE_DOPRNT 1 13569_ACEOF 13570 13571fi 13572 13573fi 13574done 13575 13576 13577 13578 13579 13580 13581 13582 13583for ac_func in select strerror dup2 memset strrchr asprintf 13584do 13585as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13586{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13587$as_echo_n "checking for $ac_func... " >&6; } 13588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13589 $as_echo_n "(cached) " >&6 13590else 13591 cat >conftest.$ac_ext <<_ACEOF 13592/* confdefs.h. */ 13593_ACEOF 13594cat confdefs.h >>conftest.$ac_ext 13595cat >>conftest.$ac_ext <<_ACEOF 13596/* end confdefs.h. */ 13597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13598 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13599#define $ac_func innocuous_$ac_func 13600 13601/* System header to define __stub macros and hopefully few prototypes, 13602 which can conflict with char $ac_func (); below. 13603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13604 <limits.h> exists even on freestanding compilers. */ 13605 13606#ifdef __STDC__ 13607# include <limits.h> 13608#else 13609# include <assert.h> 13610#endif 13611 13612#undef $ac_func 13613 13614/* Override any GCC internal prototype to avoid an error. 13615 Use char because int might match the return type of a GCC 13616 builtin and then its argument prototype would still apply. */ 13617#ifdef __cplusplus 13618extern "C" 13619#endif 13620char $ac_func (); 13621/* The GNU C library defines this for functions which it implements 13622 to always fail with ENOSYS. Some functions are actually named 13623 something starting with __ and the normal name is an alias. */ 13624#if defined __stub_$ac_func || defined __stub___$ac_func 13625choke me 13626#endif 13627 13628int 13629main () 13630{ 13631return $ac_func (); 13632 ; 13633 return 0; 13634} 13635_ACEOF 13636rm -f conftest.$ac_objext conftest$ac_exeext 13637if { (ac_try="$ac_link" 13638case "(($ac_try" in 13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13640 *) ac_try_echo=$ac_try;; 13641esac 13642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13643$as_echo "$ac_try_echo") >&5 13644 (eval "$ac_link") 2>conftest.er1 13645 ac_status=$? 13646 grep -v '^ *+' conftest.er1 >conftest.err 13647 rm -f conftest.er1 13648 cat conftest.err >&5 13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13650 (exit $ac_status); } && { 13651 test -z "$ac_c_werror_flag" || 13652 test ! -s conftest.err 13653 } && test -s conftest$ac_exeext && { 13654 test "$cross_compiling" = yes || 13655 $as_test_x conftest$ac_exeext 13656 }; then 13657 eval "$as_ac_var=yes" 13658else 13659 $as_echo "$as_me: failed program was:" >&5 13660sed 's/^/| /' conftest.$ac_ext >&5 13661 13662 eval "$as_ac_var=no" 13663fi 13664 13665rm -rf conftest.dSYM 13666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13667 conftest$ac_exeext conftest.$ac_ext 13668fi 13669ac_res=`eval 'as_val=${'$as_ac_var'} 13670 $as_echo "$as_val"'` 13671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13672$as_echo "$ac_res" >&6; } 13673as_val=`eval 'as_val=${'$as_ac_var'} 13674 $as_echo "$as_val"'` 13675 if test "x$as_val" = x""yes; then 13676 cat >>confdefs.h <<_ACEOF 13677#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13678_ACEOF 13679 13680fi 13681done 13682 13683{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5 13684$as_echo_n "checking for mode_t... " >&6; } 13685if test "${ac_cv_type_mode_t+set}" = set; then 13686 $as_echo_n "(cached) " >&6 13687else 13688 ac_cv_type_mode_t=no 13689cat >conftest.$ac_ext <<_ACEOF 13690/* confdefs.h. */ 13691_ACEOF 13692cat confdefs.h >>conftest.$ac_ext 13693cat >>conftest.$ac_ext <<_ACEOF 13694/* end confdefs.h. */ 13695$ac_includes_default 13696int 13697main () 13698{ 13699if (sizeof (mode_t)) 13700 return 0; 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705rm -f conftest.$ac_objext 13706if { (ac_try="$ac_compile" 13707case "(($ac_try" in 13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13709 *) ac_try_echo=$ac_try;; 13710esac 13711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13712$as_echo "$ac_try_echo") >&5 13713 (eval "$ac_compile") 2>conftest.er1 13714 ac_status=$? 13715 grep -v '^ *+' conftest.er1 >conftest.err 13716 rm -f conftest.er1 13717 cat conftest.err >&5 13718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13719 (exit $ac_status); } && { 13720 test -z "$ac_c_werror_flag" || 13721 test ! -s conftest.err 13722 } && test -s conftest.$ac_objext; then 13723 cat >conftest.$ac_ext <<_ACEOF 13724/* confdefs.h. */ 13725_ACEOF 13726cat confdefs.h >>conftest.$ac_ext 13727cat >>conftest.$ac_ext <<_ACEOF 13728/* end confdefs.h. */ 13729$ac_includes_default 13730int 13731main () 13732{ 13733if (sizeof ((mode_t))) 13734 return 0; 13735 ; 13736 return 0; 13737} 13738_ACEOF 13739rm -f conftest.$ac_objext 13740if { (ac_try="$ac_compile" 13741case "(($ac_try" in 13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13743 *) ac_try_echo=$ac_try;; 13744esac 13745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13746$as_echo "$ac_try_echo") >&5 13747 (eval "$ac_compile") 2>conftest.er1 13748 ac_status=$? 13749 grep -v '^ *+' conftest.er1 >conftest.err 13750 rm -f conftest.er1 13751 cat conftest.err >&5 13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13753 (exit $ac_status); } && { 13754 test -z "$ac_c_werror_flag" || 13755 test ! -s conftest.err 13756 } && test -s conftest.$ac_objext; then 13757 : 13758else 13759 $as_echo "$as_me: failed program was:" >&5 13760sed 's/^/| /' conftest.$ac_ext >&5 13761 13762 ac_cv_type_mode_t=yes 13763fi 13764 13765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13766else 13767 $as_echo "$as_me: failed program was:" >&5 13768sed 's/^/| /' conftest.$ac_ext >&5 13769 13770 13771fi 13772 13773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13774fi 13775{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 13776$as_echo "$ac_cv_type_mode_t" >&6; } 13777if test "x$ac_cv_type_mode_t" = x""yes; then 13778 : 13779else 13780 13781cat >>confdefs.h <<_ACEOF 13782#define mode_t int 13783_ACEOF 13784 13785fi 13786 13787{ $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 13788$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 13789if test "${ac_cv_func_setpgrp_void+set}" = set; then 13790 $as_echo_n "(cached) " >&6 13791else 13792 if test "$cross_compiling" = yes; then 13793 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 13794$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} 13795 { (exit 1); exit 1; }; } 13796else 13797 cat >conftest.$ac_ext <<_ACEOF 13798/* confdefs.h. */ 13799_ACEOF 13800cat confdefs.h >>conftest.$ac_ext 13801cat >>conftest.$ac_ext <<_ACEOF 13802/* end confdefs.h. */ 13803$ac_includes_default 13804int 13805main () 13806{ 13807/* If this system has a BSD-style setpgrp which takes arguments, 13808 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 13809 exit successfully. */ 13810 return setpgrp (1,1) != -1; 13811 ; 13812 return 0; 13813} 13814_ACEOF 13815rm -f conftest$ac_exeext 13816if { (ac_try="$ac_link" 13817case "(($ac_try" in 13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13819 *) ac_try_echo=$ac_try;; 13820esac 13821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13822$as_echo "$ac_try_echo") >&5 13823 (eval "$ac_link") 2>&5 13824 ac_status=$? 13825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13827 { (case "(($ac_try" in 13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13829 *) ac_try_echo=$ac_try;; 13830esac 13831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13832$as_echo "$ac_try_echo") >&5 13833 (eval "$ac_try") 2>&5 13834 ac_status=$? 13835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13836 (exit $ac_status); }; }; then 13837 ac_cv_func_setpgrp_void=no 13838else 13839 $as_echo "$as_me: program exited with status $ac_status" >&5 13840$as_echo "$as_me: failed program was:" >&5 13841sed 's/^/| /' conftest.$ac_ext >&5 13842 13843( exit $ac_status ) 13844ac_cv_func_setpgrp_void=yes 13845fi 13846rm -rf conftest.dSYM 13847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13848fi 13849 13850 13851fi 13852{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 13853$as_echo "$ac_cv_func_setpgrp_void" >&6; } 13854if test $ac_cv_func_setpgrp_void = yes; then 13855 13856cat >>confdefs.h <<\_ACEOF 13857#define SETPGRP_VOID 1 13858_ACEOF 13859 13860fi 13861 13862{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 13863$as_echo_n "checking return type of signal handlers... " >&6; } 13864if test "${ac_cv_type_signal+set}" = set; then 13865 $as_echo_n "(cached) " >&6 13866else 13867 cat >conftest.$ac_ext <<_ACEOF 13868/* confdefs.h. */ 13869_ACEOF 13870cat confdefs.h >>conftest.$ac_ext 13871cat >>conftest.$ac_ext <<_ACEOF 13872/* end confdefs.h. */ 13873#include <sys/types.h> 13874#include <signal.h> 13875 13876int 13877main () 13878{ 13879return *(signal (0, 0)) (0) == 1; 13880 ; 13881 return 0; 13882} 13883_ACEOF 13884rm -f conftest.$ac_objext 13885if { (ac_try="$ac_compile" 13886case "(($ac_try" in 13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13888 *) ac_try_echo=$ac_try;; 13889esac 13890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13891$as_echo "$ac_try_echo") >&5 13892 (eval "$ac_compile") 2>conftest.er1 13893 ac_status=$? 13894 grep -v '^ *+' conftest.er1 >conftest.err 13895 rm -f conftest.er1 13896 cat conftest.err >&5 13897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13898 (exit $ac_status); } && { 13899 test -z "$ac_c_werror_flag" || 13900 test ! -s conftest.err 13901 } && test -s conftest.$ac_objext; then 13902 ac_cv_type_signal=int 13903else 13904 $as_echo "$as_me: failed program was:" >&5 13905sed 's/^/| /' conftest.$ac_ext >&5 13906 13907 ac_cv_type_signal=void 13908fi 13909 13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13911fi 13912{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 13913$as_echo "$ac_cv_type_signal" >&6; } 13914 13915cat >>confdefs.h <<_ACEOF 13916#define RETSIGTYPE $ac_cv_type_signal 13917_ACEOF 13918 13919 13920{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 13921$as_echo_n "checking for size_t... " >&6; } 13922if test "${ac_cv_type_size_t+set}" = set; then 13923 $as_echo_n "(cached) " >&6 13924else 13925 ac_cv_type_size_t=no 13926cat >conftest.$ac_ext <<_ACEOF 13927/* confdefs.h. */ 13928_ACEOF 13929cat confdefs.h >>conftest.$ac_ext 13930cat >>conftest.$ac_ext <<_ACEOF 13931/* end confdefs.h. */ 13932$ac_includes_default 13933int 13934main () 13935{ 13936if (sizeof (size_t)) 13937 return 0; 13938 ; 13939 return 0; 13940} 13941_ACEOF 13942rm -f conftest.$ac_objext 13943if { (ac_try="$ac_compile" 13944case "(($ac_try" in 13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13946 *) ac_try_echo=$ac_try;; 13947esac 13948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13949$as_echo "$ac_try_echo") >&5 13950 (eval "$ac_compile") 2>conftest.er1 13951 ac_status=$? 13952 grep -v '^ *+' conftest.er1 >conftest.err 13953 rm -f conftest.er1 13954 cat conftest.err >&5 13955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13956 (exit $ac_status); } && { 13957 test -z "$ac_c_werror_flag" || 13958 test ! -s conftest.err 13959 } && test -s conftest.$ac_objext; then 13960 cat >conftest.$ac_ext <<_ACEOF 13961/* confdefs.h. */ 13962_ACEOF 13963cat confdefs.h >>conftest.$ac_ext 13964cat >>conftest.$ac_ext <<_ACEOF 13965/* end confdefs.h. */ 13966$ac_includes_default 13967int 13968main () 13969{ 13970if (sizeof ((size_t))) 13971 return 0; 13972 ; 13973 return 0; 13974} 13975_ACEOF 13976rm -f conftest.$ac_objext 13977if { (ac_try="$ac_compile" 13978case "(($ac_try" in 13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13980 *) ac_try_echo=$ac_try;; 13981esac 13982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13983$as_echo "$ac_try_echo") >&5 13984 (eval "$ac_compile") 2>conftest.er1 13985 ac_status=$? 13986 grep -v '^ *+' conftest.er1 >conftest.err 13987 rm -f conftest.er1 13988 cat conftest.err >&5 13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13990 (exit $ac_status); } && { 13991 test -z "$ac_c_werror_flag" || 13992 test ! -s conftest.err 13993 } && test -s conftest.$ac_objext; then 13994 : 13995else 13996 $as_echo "$as_me: failed program was:" >&5 13997sed 's/^/| /' conftest.$ac_ext >&5 13998 13999 ac_cv_type_size_t=yes 14000fi 14001 14002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14003else 14004 $as_echo "$as_me: failed program was:" >&5 14005sed 's/^/| /' conftest.$ac_ext >&5 14006 14007 14008fi 14009 14010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14011fi 14012{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 14013$as_echo "$ac_cv_type_size_t" >&6; } 14014if test "x$ac_cv_type_size_t" = x""yes; then 14015 : 14016else 14017 14018cat >>confdefs.h <<_ACEOF 14019#define size_t unsigned int 14020_ACEOF 14021 14022fi 14023 14024 14025# Check whether --enable-largefile was given. 14026if test "${enable_largefile+set}" = set; then 14027 enableval=$enable_largefile; 14028fi 14029 14030if test "$enable_largefile" != no; then 14031 14032 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 14033$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14034if test "${ac_cv_sys_largefile_CC+set}" = set; then 14035 $as_echo_n "(cached) " >&6 14036else 14037 ac_cv_sys_largefile_CC=no 14038 if test "$GCC" != yes; then 14039 ac_save_CC=$CC 14040 while :; do 14041 # IRIX 6.2 and later do not support large files by default, 14042 # so use the C compiler's -n32 option if that helps. 14043 cat >conftest.$ac_ext <<_ACEOF 14044/* confdefs.h. */ 14045_ACEOF 14046cat confdefs.h >>conftest.$ac_ext 14047cat >>conftest.$ac_ext <<_ACEOF 14048/* end confdefs.h. */ 14049#include <sys/types.h> 14050 /* Check that off_t can represent 2**63 - 1 correctly. 14051 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14052 since some C++ compilers masquerading as C compilers 14053 incorrectly reject 9223372036854775807. */ 14054#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14056 && LARGE_OFF_T % 2147483647 == 1) 14057 ? 1 : -1]; 14058int 14059main () 14060{ 14061 14062 ; 14063 return 0; 14064} 14065_ACEOF 14066 rm -f conftest.$ac_objext 14067if { (ac_try="$ac_compile" 14068case "(($ac_try" in 14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14070 *) ac_try_echo=$ac_try;; 14071esac 14072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14073$as_echo "$ac_try_echo") >&5 14074 (eval "$ac_compile") 2>conftest.er1 14075 ac_status=$? 14076 grep -v '^ *+' conftest.er1 >conftest.err 14077 rm -f conftest.er1 14078 cat conftest.err >&5 14079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14080 (exit $ac_status); } && { 14081 test -z "$ac_c_werror_flag" || 14082 test ! -s conftest.err 14083 } && test -s conftest.$ac_objext; then 14084 break 14085else 14086 $as_echo "$as_me: failed program was:" >&5 14087sed 's/^/| /' conftest.$ac_ext >&5 14088 14089 14090fi 14091 14092rm -f core conftest.err conftest.$ac_objext 14093 CC="$CC -n32" 14094 rm -f conftest.$ac_objext 14095if { (ac_try="$ac_compile" 14096case "(($ac_try" in 14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14098 *) ac_try_echo=$ac_try;; 14099esac 14100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14101$as_echo "$ac_try_echo") >&5 14102 (eval "$ac_compile") 2>conftest.er1 14103 ac_status=$? 14104 grep -v '^ *+' conftest.er1 >conftest.err 14105 rm -f conftest.er1 14106 cat conftest.err >&5 14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14108 (exit $ac_status); } && { 14109 test -z "$ac_c_werror_flag" || 14110 test ! -s conftest.err 14111 } && test -s conftest.$ac_objext; then 14112 ac_cv_sys_largefile_CC=' -n32'; break 14113else 14114 $as_echo "$as_me: failed program was:" >&5 14115sed 's/^/| /' conftest.$ac_ext >&5 14116 14117 14118fi 14119 14120rm -f core conftest.err conftest.$ac_objext 14121 break 14122 done 14123 CC=$ac_save_CC 14124 rm -f conftest.$ac_ext 14125 fi 14126fi 14127{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 14128$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14129 if test "$ac_cv_sys_largefile_CC" != no; then 14130 CC=$CC$ac_cv_sys_largefile_CC 14131 fi 14132 14133 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14134$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14135if test "${ac_cv_sys_file_offset_bits+set}" = set; then 14136 $as_echo_n "(cached) " >&6 14137else 14138 while :; do 14139 cat >conftest.$ac_ext <<_ACEOF 14140/* confdefs.h. */ 14141_ACEOF 14142cat confdefs.h >>conftest.$ac_ext 14143cat >>conftest.$ac_ext <<_ACEOF 14144/* end confdefs.h. */ 14145#include <sys/types.h> 14146 /* Check that off_t can represent 2**63 - 1 correctly. 14147 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14148 since some C++ compilers masquerading as C compilers 14149 incorrectly reject 9223372036854775807. */ 14150#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14152 && LARGE_OFF_T % 2147483647 == 1) 14153 ? 1 : -1]; 14154int 14155main () 14156{ 14157 14158 ; 14159 return 0; 14160} 14161_ACEOF 14162rm -f conftest.$ac_objext 14163if { (ac_try="$ac_compile" 14164case "(($ac_try" in 14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14166 *) ac_try_echo=$ac_try;; 14167esac 14168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14169$as_echo "$ac_try_echo") >&5 14170 (eval "$ac_compile") 2>conftest.er1 14171 ac_status=$? 14172 grep -v '^ *+' conftest.er1 >conftest.err 14173 rm -f conftest.er1 14174 cat conftest.err >&5 14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14176 (exit $ac_status); } && { 14177 test -z "$ac_c_werror_flag" || 14178 test ! -s conftest.err 14179 } && test -s conftest.$ac_objext; then 14180 ac_cv_sys_file_offset_bits=no; break 14181else 14182 $as_echo "$as_me: failed program was:" >&5 14183sed 's/^/| /' conftest.$ac_ext >&5 14184 14185 14186fi 14187 14188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14189 cat >conftest.$ac_ext <<_ACEOF 14190/* confdefs.h. */ 14191_ACEOF 14192cat confdefs.h >>conftest.$ac_ext 14193cat >>conftest.$ac_ext <<_ACEOF 14194/* end confdefs.h. */ 14195#define _FILE_OFFSET_BITS 64 14196#include <sys/types.h> 14197 /* Check that off_t can represent 2**63 - 1 correctly. 14198 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14199 since some C++ compilers masquerading as C compilers 14200 incorrectly reject 9223372036854775807. */ 14201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14203 && LARGE_OFF_T % 2147483647 == 1) 14204 ? 1 : -1]; 14205int 14206main () 14207{ 14208 14209 ; 14210 return 0; 14211} 14212_ACEOF 14213rm -f conftest.$ac_objext 14214if { (ac_try="$ac_compile" 14215case "(($ac_try" in 14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14217 *) ac_try_echo=$ac_try;; 14218esac 14219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14220$as_echo "$ac_try_echo") >&5 14221 (eval "$ac_compile") 2>conftest.er1 14222 ac_status=$? 14223 grep -v '^ *+' conftest.er1 >conftest.err 14224 rm -f conftest.er1 14225 cat conftest.err >&5 14226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); } && { 14228 test -z "$ac_c_werror_flag" || 14229 test ! -s conftest.err 14230 } && test -s conftest.$ac_objext; then 14231 ac_cv_sys_file_offset_bits=64; break 14232else 14233 $as_echo "$as_me: failed program was:" >&5 14234sed 's/^/| /' conftest.$ac_ext >&5 14235 14236 14237fi 14238 14239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14240 ac_cv_sys_file_offset_bits=unknown 14241 break 14242done 14243fi 14244{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 14245$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14246case $ac_cv_sys_file_offset_bits in #( 14247 no | unknown) ;; 14248 *) 14249cat >>confdefs.h <<_ACEOF 14250#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14251_ACEOF 14252;; 14253esac 14254rm -rf conftest* 14255 if test $ac_cv_sys_file_offset_bits = unknown; then 14256 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 14257$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14258if test "${ac_cv_sys_large_files+set}" = set; then 14259 $as_echo_n "(cached) " >&6 14260else 14261 while :; do 14262 cat >conftest.$ac_ext <<_ACEOF 14263/* confdefs.h. */ 14264_ACEOF 14265cat confdefs.h >>conftest.$ac_ext 14266cat >>conftest.$ac_ext <<_ACEOF 14267/* end confdefs.h. */ 14268#include <sys/types.h> 14269 /* Check that off_t can represent 2**63 - 1 correctly. 14270 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14271 since some C++ compilers masquerading as C compilers 14272 incorrectly reject 9223372036854775807. */ 14273#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14275 && LARGE_OFF_T % 2147483647 == 1) 14276 ? 1 : -1]; 14277int 14278main () 14279{ 14280 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285rm -f conftest.$ac_objext 14286if { (ac_try="$ac_compile" 14287case "(($ac_try" in 14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14289 *) ac_try_echo=$ac_try;; 14290esac 14291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14292$as_echo "$ac_try_echo") >&5 14293 (eval "$ac_compile") 2>conftest.er1 14294 ac_status=$? 14295 grep -v '^ *+' conftest.er1 >conftest.err 14296 rm -f conftest.er1 14297 cat conftest.err >&5 14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14299 (exit $ac_status); } && { 14300 test -z "$ac_c_werror_flag" || 14301 test ! -s conftest.err 14302 } && test -s conftest.$ac_objext; then 14303 ac_cv_sys_large_files=no; break 14304else 14305 $as_echo "$as_me: failed program was:" >&5 14306sed 's/^/| /' conftest.$ac_ext >&5 14307 14308 14309fi 14310 14311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14312 cat >conftest.$ac_ext <<_ACEOF 14313/* confdefs.h. */ 14314_ACEOF 14315cat confdefs.h >>conftest.$ac_ext 14316cat >>conftest.$ac_ext <<_ACEOF 14317/* end confdefs.h. */ 14318#define _LARGE_FILES 1 14319#include <sys/types.h> 14320 /* Check that off_t can represent 2**63 - 1 correctly. 14321 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14322 since some C++ compilers masquerading as C compilers 14323 incorrectly reject 9223372036854775807. */ 14324#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14326 && LARGE_OFF_T % 2147483647 == 1) 14327 ? 1 : -1]; 14328int 14329main () 14330{ 14331 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336rm -f conftest.$ac_objext 14337if { (ac_try="$ac_compile" 14338case "(($ac_try" in 14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14340 *) ac_try_echo=$ac_try;; 14341esac 14342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14343$as_echo "$ac_try_echo") >&5 14344 (eval "$ac_compile") 2>conftest.er1 14345 ac_status=$? 14346 grep -v '^ *+' conftest.er1 >conftest.err 14347 rm -f conftest.er1 14348 cat conftest.err >&5 14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14350 (exit $ac_status); } && { 14351 test -z "$ac_c_werror_flag" || 14352 test ! -s conftest.err 14353 } && test -s conftest.$ac_objext; then 14354 ac_cv_sys_large_files=1; break 14355else 14356 $as_echo "$as_me: failed program was:" >&5 14357sed 's/^/| /' conftest.$ac_ext >&5 14358 14359 14360fi 14361 14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14363 ac_cv_sys_large_files=unknown 14364 break 14365done 14366fi 14367{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 14368$as_echo "$ac_cv_sys_large_files" >&6; } 14369case $ac_cv_sys_large_files in #( 14370 no | unknown) ;; 14371 *) 14372cat >>confdefs.h <<_ACEOF 14373#define _LARGE_FILES $ac_cv_sys_large_files 14374_ACEOF 14375;; 14376esac 14377rm -rf conftest* 14378 fi 14379fi 14380 14381 14382 14383 14384 14385 case $host in 14386 *-freebsd*) ;; 14387 *) 14388 for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do 14389 14390 { $as_echo "$as_me:$LINENO: checking if $CC supports $possible_flags flag" >&5 14391$as_echo_n "checking if $CC supports $possible_flags flag... " >&6; } 14392if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then 14393 $as_echo_n "(cached) " >&6 14394else 14395 ac_save_LDFLAGS="$LDFLAGS" 14396 LDFLAGS="$LDFLAGS $possible_flags" 14397 cat >conftest.$ac_ext <<_ACEOF 14398int main() { return 1; } 14399_ACEOF 14400rm -f conftest.$ac_objext conftest$ac_exeext 14401if { (ac_try="$ac_link" 14402case "(($ac_try" in 14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14404 *) ac_try_echo=$ac_try;; 14405esac 14406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14407$as_echo "$ac_try_echo") >&5 14408 (eval "$ac_link") 2>conftest.er1 14409 ac_status=$? 14410 grep -v '^ *+' conftest.er1 >conftest.err 14411 rm -f conftest.er1 14412 cat conftest.err >&5 14413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14414 (exit $ac_status); } && { 14415 test -z "$ac_c_werror_flag" || 14416 test ! -s conftest.err 14417 } && test -s conftest$ac_exeext && { 14418 test "$cross_compiling" = yes || 14419 $as_test_x conftest$ac_exeext 14420 }; then 14421 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'" 14422else 14423 $as_echo "$as_me: failed program was:" >&5 14424sed 's/^/| /' conftest.$ac_ext >&5 14425 14426 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`=" 14427fi 14428 14429rm -rf conftest.dSYM 14430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14431 conftest$ac_exeext conftest.$ac_ext 14432 LDFLAGS="$ac_save_LDFLAGS" 14433 14434fi 14435ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh\`'} 14436 $as_echo "$as_val"'` 14437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14438$as_echo "$ac_res" >&6; } 14439 14440 if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then 14441 LDFLAGS_NOUNDEFINED="$possible_flags" 14442fi 14443 14444 14445 break 14446 done 14447 ;; 14448 esac 14449 14450 14451 14452 14453 14454 # Check whether --enable-lynx was given. 14455if test "${enable_lynx+set}" = set; then 14456 enableval=$enable_lynx; 14457else 14458 enable_lynx=yes 14459fi 14460 14461 14462 case "${enable_lynx}" in 14463 yes) 14464 # Extract the first word of "lynx", so it can be a program name with args. 14465set dummy lynx; ac_word=$2 14466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 14467$as_echo_n "checking for $ac_word... " >&6; } 14468if test "${ac_cv_prog_have_lynx+set}" = set; then 14469 $as_echo_n "(cached) " >&6 14470else 14471 if test -n "$have_lynx"; then 14472 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test. 14473else 14474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14475for as_dir in $PATH 14476do 14477 IFS=$as_save_IFS 14478 test -z "$as_dir" && as_dir=. 14479 for ac_exec_ext in '' $ac_executable_extensions; do 14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14481 ac_cv_prog_have_lynx="yes" 14482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14483 break 2 14484 fi 14485done 14486done 14487IFS=$as_save_IFS 14488 14489 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no" 14490fi 14491fi 14492have_lynx=$ac_cv_prog_have_lynx 14493if test -n "$have_lynx"; then 14494 { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5 14495$as_echo "$have_lynx" >&6; } 14496else 14497 { $as_echo "$as_me:$LINENO: result: no" >&5 14498$as_echo "no" >&6; } 14499fi 14500 14501 14502 14503 if test x$have_lynx = xno ; then 14504 { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5 14505$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;} 14506 fi 14507 ;; 14508 no) 14509 have_lynx=no ;; 14510 *) 14511 { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5 14512$as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;} 14513 { (exit 1); exit 1; }; } ;; 14514 esac 14515 14516 if test "x$have_lynx" = xyes; then 14517 USE_LYNX_TRUE= 14518 USE_LYNX_FALSE='#' 14519else 14520 USE_LYNX_TRUE='#' 14521 USE_LYNX_FALSE= 14522fi 14523 14524 14525 14526# Check whether --enable-examples was given. 14527if test "${enable_examples+set}" = set; then 14528 enableval=$enable_examples; 14529else 14530 enable_examples="yes" 14531fi 14532 14533 if test "$enable_examples" = "yes"; then 14534 EXAMPLES_TRUE= 14535 EXAMPLES_FALSE='#' 14536else 14537 EXAMPLES_TRUE='#' 14538 EXAMPLES_FALSE= 14539fi 14540 14541 14542ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc" 14543 14544cat >confcache <<\_ACEOF 14545# This file is a shell script that caches the results of configure 14546# tests run on this system so they can be shared between configure 14547# scripts and configure runs, see configure's option --config-cache. 14548# It is not useful on other systems. If it contains results you don't 14549# want to keep, you may remove or edit it. 14550# 14551# config.status only pays attention to the cache file if you give it 14552# the --recheck option to rerun configure. 14553# 14554# `ac_cv_env_foo' variables (set or unset) will be overridden when 14555# loading this file, other *unset* `ac_cv_foo' will be assigned the 14556# following values. 14557 14558_ACEOF 14559 14560# The following way of writing the cache mishandles newlines in values, 14561# but we know of no workaround that is simple, portable, and efficient. 14562# So, we kill variables containing newlines. 14563# Ultrix sh set writes to stderr and can't be redirected directly, 14564# and sets the high bit in the cache file unless we assign to the vars. 14565( 14566 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14567 eval ac_val=\$$ac_var 14568 case $ac_val in #( 14569 *${as_nl}*) 14570 case $ac_var in #( 14571 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14572$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14573 esac 14574 case $ac_var in #( 14575 _ | IFS | as_nl) ;; #( 14576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14577 *) $as_unset $ac_var ;; 14578 esac ;; 14579 esac 14580 done 14581 14582 (set) 2>&1 | 14583 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14584 *${as_nl}ac_space=\ *) 14585 # `set' does not quote correctly, so add quotes (double-quote 14586 # substitution turns \\\\ into \\, and sed turns \\ into \). 14587 sed -n \ 14588 "s/'/'\\\\''/g; 14589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14590 ;; #( 14591 *) 14592 # `set' quotes correctly as required by POSIX, so do not add quotes. 14593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14594 ;; 14595 esac | 14596 sort 14597) | 14598 sed ' 14599 /^ac_cv_env_/b end 14600 t clear 14601 :clear 14602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14603 t end 14604 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14605 :end' >>confcache 14606if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14607 if test -w "$cache_file"; then 14608 test "x$cache_file" != "x/dev/null" && 14609 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14610$as_echo "$as_me: updating cache $cache_file" >&6;} 14611 cat confcache >$cache_file 14612 else 14613 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14614$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14615 fi 14616fi 14617rm -f confcache 14618 14619test "x$prefix" = xNONE && prefix=$ac_default_prefix 14620# Let make expand exec_prefix. 14621test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14622 14623DEFS=-DHAVE_CONFIG_H 14624 14625ac_libobjs= 14626ac_ltlibobjs= 14627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14628 # 1. Remove the extension, and $U if already installed. 14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14632 # will be set to the directory where LIBOBJS objects are built. 14633 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14634 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14635done 14636LIBOBJS=$ac_libobjs 14637 14638LTLIBOBJS=$ac_ltlibobjs 14639 14640 14641 if test -n "$EXEEXT"; then 14642 am__EXEEXT_TRUE= 14643 am__EXEEXT_FALSE='#' 14644else 14645 am__EXEEXT_TRUE='#' 14646 am__EXEEXT_FALSE= 14647fi 14648 14649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14650 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14651Usually this means the macro was only invoked conditionally." >&5 14652$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14653Usually this means the macro was only invoked conditionally." >&2;} 14654 { (exit 1); exit 1; }; } 14655fi 14656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14657 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14658Usually this means the macro was only invoked conditionally." >&5 14659$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14660Usually this means the macro was only invoked conditionally." >&2;} 14661 { (exit 1); exit 1; }; } 14662fi 14663if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then 14664 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined. 14665Usually this means the macro was only invoked conditionally." >&5 14666$as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined. 14667Usually this means the macro was only invoked conditionally." >&2;} 14668 { (exit 1); exit 1; }; } 14669fi 14670if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then 14671 { { $as_echo "$as_me:$LINENO: error: conditional \"EXAMPLES\" was never defined. 14672Usually this means the macro was only invoked conditionally." >&5 14673$as_echo "$as_me: error: conditional \"EXAMPLES\" was never defined. 14674Usually this means the macro was only invoked conditionally." >&2;} 14675 { (exit 1); exit 1; }; } 14676fi 14677 14678: ${CONFIG_STATUS=./config.status} 14679ac_write_fail=0 14680ac_clean_files_save=$ac_clean_files 14681ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14682{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14683$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14684cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14685#! $SHELL 14686# Generated by $as_me. 14687# Run this file to recreate the current configuration. 14688# Compiler output produced by configure, useful for debugging 14689# configure, is in config.log if it exists. 14690 14691debug=false 14692ac_cs_recheck=false 14693ac_cs_silent=false 14694SHELL=\${CONFIG_SHELL-$SHELL} 14695_ACEOF 14696 14697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14698## --------------------- ## 14699## M4sh Initialization. ## 14700## --------------------- ## 14701 14702# Be more Bourne compatible 14703DUALCASE=1; export DUALCASE # for MKS sh 14704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14705 emulate sh 14706 NULLCMD=: 14707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14708 # is contrary to our usage. Disable this feature. 14709 alias -g '${1+"$@"}'='"$@"' 14710 setopt NO_GLOB_SUBST 14711else 14712 case `(set -o) 2>/dev/null` in 14713 *posix*) set -o posix ;; 14714esac 14715 14716fi 14717 14718 14719 14720 14721# PATH needs CR 14722# Avoid depending upon Character Ranges. 14723as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14725as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14726as_cr_digits='0123456789' 14727as_cr_alnum=$as_cr_Letters$as_cr_digits 14728 14729as_nl=' 14730' 14731export as_nl 14732# Printing a long string crashes Solaris 7 /usr/bin/printf. 14733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14736if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14737 as_echo='printf %s\n' 14738 as_echo_n='printf %s' 14739else 14740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14742 as_echo_n='/usr/ucb/echo -n' 14743 else 14744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14745 as_echo_n_body='eval 14746 arg=$1; 14747 case $arg in 14748 *"$as_nl"*) 14749 expr "X$arg" : "X\\(.*\\)$as_nl"; 14750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14751 esac; 14752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14753 ' 14754 export as_echo_n_body 14755 as_echo_n='sh -c $as_echo_n_body as_echo' 14756 fi 14757 export as_echo_body 14758 as_echo='sh -c $as_echo_body as_echo' 14759fi 14760 14761# The user is always right. 14762if test "${PATH_SEPARATOR+set}" != set; then 14763 PATH_SEPARATOR=: 14764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14766 PATH_SEPARATOR=';' 14767 } 14768fi 14769 14770# Support unset when possible. 14771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14772 as_unset=unset 14773else 14774 as_unset=false 14775fi 14776 14777 14778# IFS 14779# We need space, tab and new line, in precisely that order. Quoting is 14780# there to prevent editors from complaining about space-tab. 14781# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14782# splitting by setting IFS to empty value.) 14783IFS=" "" $as_nl" 14784 14785# Find who we are. Look in the path if we contain no directory separator. 14786case $0 in 14787 *[\\/]* ) as_myself=$0 ;; 14788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14789for as_dir in $PATH 14790do 14791 IFS=$as_save_IFS 14792 test -z "$as_dir" && as_dir=. 14793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14794done 14795IFS=$as_save_IFS 14796 14797 ;; 14798esac 14799# We did not find ourselves, most probably we were run as `sh COMMAND' 14800# in which case we are not to be found in the path. 14801if test "x$as_myself" = x; then 14802 as_myself=$0 14803fi 14804if test ! -f "$as_myself"; then 14805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14806 { (exit 1); exit 1; } 14807fi 14808 14809# Work around bugs in pre-3.0 UWIN ksh. 14810for as_var in ENV MAIL MAILPATH 14811do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14812done 14813PS1='$ ' 14814PS2='> ' 14815PS4='+ ' 14816 14817# NLS nuisances. 14818LC_ALL=C 14819export LC_ALL 14820LANGUAGE=C 14821export LANGUAGE 14822 14823# Required to use basename. 14824if expr a : '\(a\)' >/dev/null 2>&1 && 14825 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14826 as_expr=expr 14827else 14828 as_expr=false 14829fi 14830 14831if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14832 as_basename=basename 14833else 14834 as_basename=false 14835fi 14836 14837 14838# Name of the executable. 14839as_me=`$as_basename -- "$0" || 14840$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14841 X"$0" : 'X\(//\)$' \| \ 14842 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14843$as_echo X/"$0" | 14844 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14845 s//\1/ 14846 q 14847 } 14848 /^X\/\(\/\/\)$/{ 14849 s//\1/ 14850 q 14851 } 14852 /^X\/\(\/\).*/{ 14853 s//\1/ 14854 q 14855 } 14856 s/.*/./; q'` 14857 14858# CDPATH. 14859$as_unset CDPATH 14860 14861 14862 14863 as_lineno_1=$LINENO 14864 as_lineno_2=$LINENO 14865 test "x$as_lineno_1" != "x$as_lineno_2" && 14866 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14867 14868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14869 # uniformly replaced by the line number. The first 'sed' inserts a 14870 # line-number line after each line using $LINENO; the second 'sed' 14871 # does the real work. The second script uses 'N' to pair each 14872 # line-number line with the line containing $LINENO, and appends 14873 # trailing '-' during substitution so that $LINENO is not a special 14874 # case at line end. 14875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14876 # scripts with optimization help from Paolo Bonzini. Blame Lee 14877 # E. McMahon (1931-1989) for sed's syntax. :-) 14878 sed -n ' 14879 p 14880 /[$]LINENO/= 14881 ' <$as_myself | 14882 sed ' 14883 s/[$]LINENO.*/&-/ 14884 t lineno 14885 b 14886 :lineno 14887 N 14888 :loop 14889 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14890 t loop 14891 s/-\n.*// 14892 ' >$as_me.lineno && 14893 chmod +x "$as_me.lineno" || 14894 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14895 { (exit 1); exit 1; }; } 14896 14897 # Don't try to exec as it changes $[0], causing all sort of problems 14898 # (the dirname of $[0] is not the place where we might find the 14899 # original and so on. Autoconf is especially sensitive to this). 14900 . "./$as_me.lineno" 14901 # Exit status is that of the last command. 14902 exit 14903} 14904 14905 14906if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14907 as_dirname=dirname 14908else 14909 as_dirname=false 14910fi 14911 14912ECHO_C= ECHO_N= ECHO_T= 14913case `echo -n x` in 14914-n*) 14915 case `echo 'x\c'` in 14916 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14917 *) ECHO_C='\c';; 14918 esac;; 14919*) 14920 ECHO_N='-n';; 14921esac 14922if expr a : '\(a\)' >/dev/null 2>&1 && 14923 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14924 as_expr=expr 14925else 14926 as_expr=false 14927fi 14928 14929rm -f conf$$ conf$$.exe conf$$.file 14930if test -d conf$$.dir; then 14931 rm -f conf$$.dir/conf$$.file 14932else 14933 rm -f conf$$.dir 14934 mkdir conf$$.dir 2>/dev/null 14935fi 14936if (echo >conf$$.file) 2>/dev/null; then 14937 if ln -s conf$$.file conf$$ 2>/dev/null; then 14938 as_ln_s='ln -s' 14939 # ... but there are two gotchas: 14940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14942 # In both cases, we have to default to `cp -p'. 14943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14944 as_ln_s='cp -p' 14945 elif ln conf$$.file conf$$ 2>/dev/null; then 14946 as_ln_s=ln 14947 else 14948 as_ln_s='cp -p' 14949 fi 14950else 14951 as_ln_s='cp -p' 14952fi 14953rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14954rmdir conf$$.dir 2>/dev/null 14955 14956if mkdir -p . 2>/dev/null; then 14957 as_mkdir_p=: 14958else 14959 test -d ./-p && rmdir ./-p 14960 as_mkdir_p=false 14961fi 14962 14963if test -x / >/dev/null 2>&1; then 14964 as_test_x='test -x' 14965else 14966 if ls -dL / >/dev/null 2>&1; then 14967 as_ls_L_option=L 14968 else 14969 as_ls_L_option= 14970 fi 14971 as_test_x=' 14972 eval sh -c '\'' 14973 if test -d "$1"; then 14974 test -d "$1/."; 14975 else 14976 case $1 in 14977 -*)set "./$1";; 14978 esac; 14979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14980 ???[sx]*):;;*)false;;esac;fi 14981 '\'' sh 14982 ' 14983fi 14984as_executable_p=$as_test_x 14985 14986# Sed expression to map a string onto a valid CPP name. 14987as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14988 14989# Sed expression to map a string onto a valid variable name. 14990as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14991 14992 14993exec 6>&1 14994 14995# Save the log message, to keep $[0] and so on meaningful, and to 14996# report actual input values of CONFIG_FILES etc. instead of their 14997# values after options handling. 14998ac_log=" 14999This file was extended by libdaemon $as_me 0.14, which was 15000generated by GNU Autoconf 2.63. Invocation command line was 15001 15002 CONFIG_FILES = $CONFIG_FILES 15003 CONFIG_HEADERS = $CONFIG_HEADERS 15004 CONFIG_LINKS = $CONFIG_LINKS 15005 CONFIG_COMMANDS = $CONFIG_COMMANDS 15006 $ $0 $@ 15007 15008on `(hostname || uname -n) 2>/dev/null | sed 1q` 15009" 15010 15011_ACEOF 15012 15013case $ac_config_files in *" 15014"*) set x $ac_config_files; shift; ac_config_files=$*;; 15015esac 15016 15017case $ac_config_headers in *" 15018"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15019esac 15020 15021 15022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15023# Files that config.status was made for. 15024config_files="$ac_config_files" 15025config_headers="$ac_config_headers" 15026config_commands="$ac_config_commands" 15027 15028_ACEOF 15029 15030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15031ac_cs_usage="\ 15032\`$as_me' instantiates files from templates according to the 15033current configuration. 15034 15035Usage: $0 [OPTION]... [FILE]... 15036 15037 -h, --help print this help, then exit 15038 -V, --version print version number and configuration settings, then exit 15039 -q, --quiet, --silent 15040 do not print progress messages 15041 -d, --debug don't remove temporary files 15042 --recheck update $as_me by reconfiguring in the same conditions 15043 --file=FILE[:TEMPLATE] 15044 instantiate the configuration file FILE 15045 --header=FILE[:TEMPLATE] 15046 instantiate the configuration header FILE 15047 15048Configuration files: 15049$config_files 15050 15051Configuration headers: 15052$config_headers 15053 15054Configuration commands: 15055$config_commands 15056 15057Report bugs to <bug-autoconf@gnu.org>." 15058 15059_ACEOF 15060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15061ac_cs_version="\\ 15062libdaemon config.status 0.14 15063configured by $0, generated by GNU Autoconf 2.63, 15064 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15065 15066Copyright (C) 2008 Free Software Foundation, Inc. 15067This config.status script is free software; the Free Software Foundation 15068gives unlimited permission to copy, distribute and modify it." 15069 15070ac_pwd='$ac_pwd' 15071srcdir='$srcdir' 15072INSTALL='$INSTALL' 15073MKDIR_P='$MKDIR_P' 15074AWK='$AWK' 15075test -n "\$AWK" || AWK=awk 15076_ACEOF 15077 15078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15079# The default lists apply if the user does not specify any file. 15080ac_need_defaults=: 15081while test $# != 0 15082do 15083 case $1 in 15084 --*=*) 15085 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15087 ac_shift=: 15088 ;; 15089 *) 15090 ac_option=$1 15091 ac_optarg=$2 15092 ac_shift=shift 15093 ;; 15094 esac 15095 15096 case $ac_option in 15097 # Handling of the options. 15098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15099 ac_cs_recheck=: ;; 15100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15101 $as_echo "$ac_cs_version"; exit ;; 15102 --debug | --debu | --deb | --de | --d | -d ) 15103 debug=: ;; 15104 --file | --fil | --fi | --f ) 15105 $ac_shift 15106 case $ac_optarg in 15107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15108 esac 15109 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 15110 ac_need_defaults=false;; 15111 --header | --heade | --head | --hea ) 15112 $ac_shift 15113 case $ac_optarg in 15114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15115 esac 15116 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 15117 ac_need_defaults=false;; 15118 --he | --h) 15119 # Conflict between --help and --header 15120 { $as_echo "$as_me: error: ambiguous option: $1 15121Try \`$0 --help' for more information." >&2 15122 { (exit 1); exit 1; }; };; 15123 --help | --hel | -h ) 15124 $as_echo "$ac_cs_usage"; exit ;; 15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15126 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15127 ac_cs_silent=: ;; 15128 15129 # This is an error. 15130 -*) { $as_echo "$as_me: error: unrecognized option: $1 15131Try \`$0 --help' for more information." >&2 15132 { (exit 1); exit 1; }; } ;; 15133 15134 *) ac_config_targets="$ac_config_targets $1" 15135 ac_need_defaults=false ;; 15136 15137 esac 15138 shift 15139done 15140 15141ac_configure_extra_args= 15142 15143if $ac_cs_silent; then 15144 exec 6>/dev/null 15145 ac_configure_extra_args="$ac_configure_extra_args --silent" 15146fi 15147 15148_ACEOF 15149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15150if \$ac_cs_recheck; then 15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15152 shift 15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15154 CONFIG_SHELL='$SHELL' 15155 export CONFIG_SHELL 15156 exec "\$@" 15157fi 15158 15159_ACEOF 15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15161exec 5>>config.log 15162{ 15163 echo 15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15165## Running $as_me. ## 15166_ASBOX 15167 $as_echo "$ac_log" 15168} >&5 15169 15170_ACEOF 15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15172# 15173# INIT-COMMANDS 15174# 15175AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15176 15177 15178# The HP-UX ksh and POSIX shell print the target directory to stdout 15179# if CDPATH is set. 15180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15181 15182sed_quote_subst='$sed_quote_subst' 15183double_quote_subst='$double_quote_subst' 15184delay_variable_subst='$delay_variable_subst' 15185macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15186macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15187enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15188enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15189pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15190enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15191host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15192host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15193host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15194build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15195build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15196build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15197SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15198Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15199GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15200EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15201FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15202LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15203NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15204LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15205max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15206ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15207exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15208lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15209lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15210lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15211reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15212reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15213OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15214deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15215file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15216AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15217AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15218STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15219RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15220old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15221old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15222old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15223CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15224CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15225compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15226GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15227lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15229lt_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"`' 15230lt_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"`' 15231objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15232SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15233ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15234MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15235lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15236lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15237lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15238lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15239lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15240need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15241DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15242NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15243LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15244OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15245OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15246libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15247shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15248extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15249archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15250enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15251export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15252whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15253compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15254old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15255old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15256archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15257archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15258module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15259module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15260with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15261allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15262no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15263hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15264hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15265hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15266hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15267hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15268hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15269hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15270hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15271inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15272link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15273fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15274always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15275export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15276exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15277include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15278prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15279file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15280variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15281need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15282need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15283version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15284runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15285shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15286shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15287libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15288library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15289soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15290postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15291postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15292finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15293finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15294hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15295sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15296sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15297hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15298enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15299enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15300enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15301old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15302striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15303 15304LTCC='$LTCC' 15305LTCFLAGS='$LTCFLAGS' 15306compiler='$compiler_DEFAULT' 15307 15308# Quote evaled strings. 15309for var in SED \ 15310GREP \ 15311EGREP \ 15312FGREP \ 15313LD \ 15314NM \ 15315LN_S \ 15316lt_SP2NL \ 15317lt_NL2SP \ 15318reload_flag \ 15319OBJDUMP \ 15320deplibs_check_method \ 15321file_magic_cmd \ 15322AR \ 15323AR_FLAGS \ 15324STRIP \ 15325RANLIB \ 15326CC \ 15327CFLAGS \ 15328compiler \ 15329lt_cv_sys_global_symbol_pipe \ 15330lt_cv_sys_global_symbol_to_cdecl \ 15331lt_cv_sys_global_symbol_to_c_name_address \ 15332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15333SHELL \ 15334ECHO \ 15335lt_prog_compiler_no_builtin_flag \ 15336lt_prog_compiler_wl \ 15337lt_prog_compiler_pic \ 15338lt_prog_compiler_static \ 15339lt_cv_prog_compiler_c_o \ 15340need_locks \ 15341DSYMUTIL \ 15342NMEDIT \ 15343LIPO \ 15344OTOOL \ 15345OTOOL64 \ 15346shrext_cmds \ 15347export_dynamic_flag_spec \ 15348whole_archive_flag_spec \ 15349compiler_needs_object \ 15350with_gnu_ld \ 15351allow_undefined_flag \ 15352no_undefined_flag \ 15353hardcode_libdir_flag_spec \ 15354hardcode_libdir_flag_spec_ld \ 15355hardcode_libdir_separator \ 15356fix_srcfile_path \ 15357exclude_expsyms \ 15358include_expsyms \ 15359file_list_spec \ 15360variables_saved_for_relink \ 15361libname_spec \ 15362library_names_spec \ 15363soname_spec \ 15364finish_eval \ 15365old_striplib \ 15366striplib; do 15367 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15368 *[\\\\\\\`\\"\\\$]*) 15369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15370 ;; 15371 *) 15372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15373 ;; 15374 esac 15375done 15376 15377# Double-quote double-evaled strings. 15378for var in reload_cmds \ 15379old_postinstall_cmds \ 15380old_postuninstall_cmds \ 15381old_archive_cmds \ 15382extract_expsyms_cmds \ 15383old_archive_from_new_cmds \ 15384old_archive_from_expsyms_cmds \ 15385archive_cmds \ 15386archive_expsym_cmds \ 15387module_cmds \ 15388module_expsym_cmds \ 15389export_symbols_cmds \ 15390prelink_cmds \ 15391postinstall_cmds \ 15392postuninstall_cmds \ 15393finish_cmds \ 15394sys_lib_search_path_spec \ 15395sys_lib_dlsearch_path_spec; do 15396 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15397 *[\\\\\\\`\\"\\\$]*) 15398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15399 ;; 15400 *) 15401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15402 ;; 15403 esac 15404done 15405 15406# Fix-up fallback echo if it was mangled by the above quoting rules. 15407case \$lt_ECHO in 15408*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15409 ;; 15410esac 15411 15412ac_aux_dir='$ac_aux_dir' 15413xsi_shell='$xsi_shell' 15414lt_shell_append='$lt_shell_append' 15415 15416# See if we are running on zsh, and set the options which allow our 15417# commands through without removal of \ escapes INIT. 15418if test -n "\${ZSH_VERSION+set}" ; then 15419 setopt NO_GLOB_SUBST 15420fi 15421 15422 15423 PACKAGE='$PACKAGE' 15424 VERSION='$VERSION' 15425 TIMESTAMP='$TIMESTAMP' 15426 RM='$RM' 15427 ofile='$ofile' 15428 15429 15430 15431 15432_ACEOF 15433 15434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15435 15436# Handling of arguments. 15437for ac_config_target in $ac_config_targets 15438do 15439 case $ac_config_target in 15440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15443 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; 15444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15445 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15446 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;; 15447 "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;; 15448 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 15449 "pkgconfig/libdaemon.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon.pc" ;; 15450 "pkgconfig/libdaemon-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon-uninstalled.pc" ;; 15451 15452 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15453$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15454 { (exit 1); exit 1; }; };; 15455 esac 15456done 15457 15458 15459# If the user did not use the arguments to specify the items to instantiate, 15460# then the envvar interface is used. Set only those that are not. 15461# We use the long form for the default assignment because of an extremely 15462# bizarre bug on SunOS 4.1.3. 15463if $ac_need_defaults; then 15464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15467fi 15468 15469# Have a temporary directory for convenience. Make it in the build tree 15470# simply because there is no reason against having it here, and in addition, 15471# creating and moving files from /tmp can sometimes cause problems. 15472# Hook for its removal unless debugging. 15473# Note that there is a small window in which the directory will not be cleaned: 15474# after its creation but before its name has been assigned to `$tmp'. 15475$debug || 15476{ 15477 tmp= 15478 trap 'exit_status=$? 15479 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15480' 0 15481 trap '{ (exit 1); exit 1; }' 1 2 13 15 15482} 15483# Create a (secure) tmp directory for tmp files. 15484 15485{ 15486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15487 test -n "$tmp" && test -d "$tmp" 15488} || 15489{ 15490 tmp=./conf$$-$RANDOM 15491 (umask 077 && mkdir "$tmp") 15492} || 15493{ 15494 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15495 { (exit 1); exit 1; } 15496} 15497 15498# Set up the scripts for CONFIG_FILES section. 15499# No need to generate them if there are no CONFIG_FILES. 15500# This happens for instance with `./config.status config.h'. 15501if test -n "$CONFIG_FILES"; then 15502 15503 15504ac_cr=' 15505' 15506ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15507if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15508 ac_cs_awk_cr='\\r' 15509else 15510 ac_cs_awk_cr=$ac_cr 15511fi 15512 15513echo 'BEGIN {' >"$tmp/subs1.awk" && 15514_ACEOF 15515 15516 15517{ 15518 echo "cat >conf$$subs.awk <<_ACEOF" && 15519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15520 echo "_ACEOF" 15521} >conf$$subs.sh || 15522 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15523$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15524 { (exit 1); exit 1; }; } 15525ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15526ac_delim='%!_!# ' 15527for ac_last_try in false false false false false :; do 15528 . ./conf$$subs.sh || 15529 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15530$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15531 { (exit 1); exit 1; }; } 15532 15533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15534 if test $ac_delim_n = $ac_delim_num; then 15535 break 15536 elif $ac_last_try; then 15537 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15538$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15539 { (exit 1); exit 1; }; } 15540 else 15541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15542 fi 15543done 15544rm -f conf$$subs.sh 15545 15546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15547cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15548_ACEOF 15549sed -n ' 15550h 15551s/^/S["/; s/!.*/"]=/ 15552p 15553g 15554s/^[^!]*!// 15555:repl 15556t repl 15557s/'"$ac_delim"'$// 15558t delim 15559:nl 15560h 15561s/\(.\{148\}\).*/\1/ 15562t more1 15563s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15564p 15565n 15566b repl 15567:more1 15568s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15569p 15570g 15571s/.\{148\}// 15572t nl 15573:delim 15574h 15575s/\(.\{148\}\).*/\1/ 15576t more2 15577s/["\\]/\\&/g; s/^/"/; s/$/"/ 15578p 15579b 15580:more2 15581s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15582p 15583g 15584s/.\{148\}// 15585t delim 15586' <conf$$subs.awk | sed ' 15587/^[^""]/{ 15588 N 15589 s/\n// 15590} 15591' >>$CONFIG_STATUS || ac_write_fail=1 15592rm -f conf$$subs.awk 15593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15594_ACAWK 15595cat >>"\$tmp/subs1.awk" <<_ACAWK && 15596 for (key in S) S_is_set[key] = 1 15597 FS = "" 15598 15599} 15600{ 15601 line = $ 0 15602 nfields = split(line, field, "@") 15603 substed = 0 15604 len = length(field[1]) 15605 for (i = 2; i < nfields; i++) { 15606 key = field[i] 15607 keylen = length(key) 15608 if (S_is_set[key]) { 15609 value = S[key] 15610 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15611 len += length(value) + length(field[++i]) 15612 substed = 1 15613 } else 15614 len += 1 + keylen 15615 } 15616 15617 print line 15618} 15619 15620_ACAWK 15621_ACEOF 15622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15623if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15625else 15626 cat 15627fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15628 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15629$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15630 { (exit 1); exit 1; }; } 15631_ACEOF 15632 15633# VPATH may cause trouble with some makes, so we remove $(srcdir), 15634# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15635# trailing colons and then remove the whole line if VPATH becomes empty 15636# (actually we leave an empty line to preserve line numbers). 15637if test "x$srcdir" = x.; then 15638 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15639s/:*\$(srcdir):*/:/ 15640s/:*\${srcdir}:*/:/ 15641s/:*@srcdir@:*/:/ 15642s/^\([^=]*=[ ]*\):*/\1/ 15643s/:*$// 15644s/^[^=]*=[ ]*$// 15645}' 15646fi 15647 15648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15649fi # test -n "$CONFIG_FILES" 15650 15651# Set up the scripts for CONFIG_HEADERS section. 15652# No need to generate them if there are no CONFIG_HEADERS. 15653# This happens for instance with `./config.status Makefile'. 15654if test -n "$CONFIG_HEADERS"; then 15655cat >"$tmp/defines.awk" <<\_ACAWK || 15656BEGIN { 15657_ACEOF 15658 15659# Transform confdefs.h into an awk script `defines.awk', embedded as 15660# here-document in config.status, that substitutes the proper values into 15661# config.h.in to produce config.h. 15662 15663# Create a delimiter string that does not exist in confdefs.h, to ease 15664# handling of long lines. 15665ac_delim='%!_!# ' 15666for ac_last_try in false false :; do 15667 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15668 if test -z "$ac_t"; then 15669 break 15670 elif $ac_last_try; then 15671 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15672$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15673 { (exit 1); exit 1; }; } 15674 else 15675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15676 fi 15677done 15678 15679# For the awk script, D is an array of macro values keyed by name, 15680# likewise P contains macro parameters if any. Preserve backslash 15681# newline sequences. 15682 15683ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15684sed -n ' 15685s/.\{148\}/&'"$ac_delim"'/g 15686t rset 15687:rset 15688s/^[ ]*#[ ]*define[ ][ ]*/ / 15689t def 15690d 15691:def 15692s/\\$// 15693t bsnl 15694s/["\\]/\\&/g 15695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15696D["\1"]=" \3"/p 15697s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15698d 15699:bsnl 15700s/["\\]/\\&/g 15701s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15702D["\1"]=" \3\\\\\\n"\\/p 15703t cont 15704s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15705t cont 15706d 15707:cont 15708n 15709s/.\{148\}/&'"$ac_delim"'/g 15710t clear 15711:clear 15712s/\\$// 15713t bsnlc 15714s/["\\]/\\&/g; s/^/"/; s/$/"/p 15715d 15716:bsnlc 15717s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15718b cont 15719' <confdefs.h | sed ' 15720s/'"$ac_delim"'/"\\\ 15721"/g' >>$CONFIG_STATUS || ac_write_fail=1 15722 15723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15724 for (key in D) D_is_set[key] = 1 15725 FS = "" 15726} 15727/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15728 line = \$ 0 15729 split(line, arg, " ") 15730 if (arg[1] == "#") { 15731 defundef = arg[2] 15732 mac1 = arg[3] 15733 } else { 15734 defundef = substr(arg[1], 2) 15735 mac1 = arg[2] 15736 } 15737 split(mac1, mac2, "(") #) 15738 macro = mac2[1] 15739 prefix = substr(line, 1, index(line, defundef) - 1) 15740 if (D_is_set[macro]) { 15741 # Preserve the white space surrounding the "#". 15742 print prefix "define", macro P[macro] D[macro] 15743 next 15744 } else { 15745 # Replace #undef with comments. This is necessary, for example, 15746 # in the case of _POSIX_SOURCE, which is predefined and required 15747 # on some systems where configure will not decide to define it. 15748 if (defundef == "undef") { 15749 print "/*", prefix defundef, macro, "*/" 15750 next 15751 } 15752 } 15753} 15754{ print } 15755_ACAWK 15756_ACEOF 15757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15758 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15759$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15760 { (exit 1); exit 1; }; } 15761fi # test -n "$CONFIG_HEADERS" 15762 15763 15764eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15765shift 15766for ac_tag 15767do 15768 case $ac_tag in 15769 :[FHLC]) ac_mode=$ac_tag; continue;; 15770 esac 15771 case $ac_mode$ac_tag in 15772 :[FHL]*:*);; 15773 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15774$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15775 { (exit 1); exit 1; }; };; 15776 :[FH]-) ac_tag=-:-;; 15777 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15778 esac 15779 ac_save_IFS=$IFS 15780 IFS=: 15781 set x $ac_tag 15782 IFS=$ac_save_IFS 15783 shift 15784 ac_file=$1 15785 shift 15786 15787 case $ac_mode in 15788 :L) ac_source=$1;; 15789 :[FH]) 15790 ac_file_inputs= 15791 for ac_f 15792 do 15793 case $ac_f in 15794 -) ac_f="$tmp/stdin";; 15795 *) # Look for the file first in the build tree, then in the source tree 15796 # (if the path is not absolute). The absolute path cannot be DOS-style, 15797 # because $ac_f cannot contain `:'. 15798 test -f "$ac_f" || 15799 case $ac_f in 15800 [\\/$]*) false;; 15801 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15802 esac || 15803 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15804$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15805 { (exit 1); exit 1; }; };; 15806 esac 15807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15808 ac_file_inputs="$ac_file_inputs '$ac_f'" 15809 done 15810 15811 # Let's still pretend it is `configure' which instantiates (i.e., don't 15812 # use $as_me), people would be surprised to read: 15813 # /* config.h. Generated by config.status. */ 15814 configure_input='Generated from '` 15815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15816 `' by configure.' 15817 if test x"$ac_file" != x-; then 15818 configure_input="$ac_file. $configure_input" 15819 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15820$as_echo "$as_me: creating $ac_file" >&6;} 15821 fi 15822 # Neutralize special characters interpreted by sed in replacement strings. 15823 case $configure_input in #( 15824 *\&* | *\|* | *\\* ) 15825 ac_sed_conf_input=`$as_echo "$configure_input" | 15826 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15827 *) ac_sed_conf_input=$configure_input;; 15828 esac 15829 15830 case $ac_tag in 15831 *:-:* | *:-) cat >"$tmp/stdin" \ 15832 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15833$as_echo "$as_me: error: could not create $ac_file" >&2;} 15834 { (exit 1); exit 1; }; } ;; 15835 esac 15836 ;; 15837 esac 15838 15839 ac_dir=`$as_dirname -- "$ac_file" || 15840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15841 X"$ac_file" : 'X\(//\)[^/]' \| \ 15842 X"$ac_file" : 'X\(//\)$' \| \ 15843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15844$as_echo X"$ac_file" | 15845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15846 s//\1/ 15847 q 15848 } 15849 /^X\(\/\/\)[^/].*/{ 15850 s//\1/ 15851 q 15852 } 15853 /^X\(\/\/\)$/{ 15854 s//\1/ 15855 q 15856 } 15857 /^X\(\/\).*/{ 15858 s//\1/ 15859 q 15860 } 15861 s/.*/./; q'` 15862 { as_dir="$ac_dir" 15863 case $as_dir in #( 15864 -*) as_dir=./$as_dir;; 15865 esac 15866 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15867 as_dirs= 15868 while :; do 15869 case $as_dir in #( 15870 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15871 *) as_qdir=$as_dir;; 15872 esac 15873 as_dirs="'$as_qdir' $as_dirs" 15874 as_dir=`$as_dirname -- "$as_dir" || 15875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15876 X"$as_dir" : 'X\(//\)[^/]' \| \ 15877 X"$as_dir" : 'X\(//\)$' \| \ 15878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15879$as_echo X"$as_dir" | 15880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15881 s//\1/ 15882 q 15883 } 15884 /^X\(\/\/\)[^/].*/{ 15885 s//\1/ 15886 q 15887 } 15888 /^X\(\/\/\)$/{ 15889 s//\1/ 15890 q 15891 } 15892 /^X\(\/\).*/{ 15893 s//\1/ 15894 q 15895 } 15896 s/.*/./; q'` 15897 test -d "$as_dir" && break 15898 done 15899 test -z "$as_dirs" || eval "mkdir $as_dirs" 15900 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15901$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15902 { (exit 1); exit 1; }; }; } 15903 ac_builddir=. 15904 15905case "$ac_dir" in 15906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15907*) 15908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15909 # A ".." for each directory in $ac_dir_suffix. 15910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15911 case $ac_top_builddir_sub in 15912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15914 esac ;; 15915esac 15916ac_abs_top_builddir=$ac_pwd 15917ac_abs_builddir=$ac_pwd$ac_dir_suffix 15918# for backward compatibility: 15919ac_top_builddir=$ac_top_build_prefix 15920 15921case $srcdir in 15922 .) # We are building in place. 15923 ac_srcdir=. 15924 ac_top_srcdir=$ac_top_builddir_sub 15925 ac_abs_top_srcdir=$ac_pwd ;; 15926 [\\/]* | ?:[\\/]* ) # Absolute name. 15927 ac_srcdir=$srcdir$ac_dir_suffix; 15928 ac_top_srcdir=$srcdir 15929 ac_abs_top_srcdir=$srcdir ;; 15930 *) # Relative name. 15931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15932 ac_top_srcdir=$ac_top_build_prefix$srcdir 15933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15934esac 15935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15936 15937 15938 case $ac_mode in 15939 :F) 15940 # 15941 # CONFIG_FILE 15942 # 15943 15944 case $INSTALL in 15945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15947 esac 15948 ac_MKDIR_P=$MKDIR_P 15949 case $MKDIR_P in 15950 [\\/$]* | ?:[\\/]* ) ;; 15951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15952 esac 15953_ACEOF 15954 15955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15956# If the template does not know about datarootdir, expand it. 15957# FIXME: This hack should be removed a few years after 2.60. 15958ac_datarootdir_hack=; ac_datarootdir_seen= 15959 15960ac_sed_dataroot=' 15961/datarootdir/ { 15962 p 15963 q 15964} 15965/@datadir@/p 15966/@docdir@/p 15967/@infodir@/p 15968/@localedir@/p 15969/@mandir@/p 15970' 15971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15972*datarootdir*) ac_datarootdir_seen=yes;; 15973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15974 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15976_ACEOF 15977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15978 ac_datarootdir_hack=' 15979 s&@datadir@&$datadir&g 15980 s&@docdir@&$docdir&g 15981 s&@infodir@&$infodir&g 15982 s&@localedir@&$localedir&g 15983 s&@mandir@&$mandir&g 15984 s&\\\${datarootdir}&$datarootdir&g' ;; 15985esac 15986_ACEOF 15987 15988# Neutralize VPATH when `$srcdir' = `.'. 15989# Shell code in configure.ac might set extrasub. 15990# FIXME: do we really want to maintain this feature? 15991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15992ac_sed_extra="$ac_vpsub 15993$extrasub 15994_ACEOF 15995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15996:t 15997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15998s|@configure_input@|$ac_sed_conf_input|;t t 15999s&@top_builddir@&$ac_top_builddir_sub&;t t 16000s&@top_build_prefix@&$ac_top_build_prefix&;t t 16001s&@srcdir@&$ac_srcdir&;t t 16002s&@abs_srcdir@&$ac_abs_srcdir&;t t 16003s&@top_srcdir@&$ac_top_srcdir&;t t 16004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16005s&@builddir@&$ac_builddir&;t t 16006s&@abs_builddir@&$ac_abs_builddir&;t t 16007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16008s&@INSTALL@&$ac_INSTALL&;t t 16009s&@MKDIR_P@&$ac_MKDIR_P&;t t 16010$ac_datarootdir_hack 16011" 16012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16014$as_echo "$as_me: error: could not create $ac_file" >&2;} 16015 { (exit 1); exit 1; }; } 16016 16017test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16020 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16021which seems to be undefined. Please make sure it is defined." >&5 16022$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16023which seems to be undefined. Please make sure it is defined." >&2;} 16024 16025 rm -f "$tmp/stdin" 16026 case $ac_file in 16027 -) cat "$tmp/out" && rm -f "$tmp/out";; 16028 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16029 esac \ 16030 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16031$as_echo "$as_me: error: could not create $ac_file" >&2;} 16032 { (exit 1); exit 1; }; } 16033 ;; 16034 :H) 16035 # 16036 # CONFIG_HEADER 16037 # 16038 if test x"$ac_file" != x-; then 16039 { 16040 $as_echo "/* $configure_input */" \ 16041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16042 } >"$tmp/config.h" \ 16043 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16044$as_echo "$as_me: error: could not create $ac_file" >&2;} 16045 { (exit 1); exit 1; }; } 16046 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16047 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 16048$as_echo "$as_me: $ac_file is unchanged" >&6;} 16049 else 16050 rm -f "$ac_file" 16051 mv "$tmp/config.h" "$ac_file" \ 16052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16053$as_echo "$as_me: error: could not create $ac_file" >&2;} 16054 { (exit 1); exit 1; }; } 16055 fi 16056 else 16057 $as_echo "/* $configure_input */" \ 16058 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16059 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 16060$as_echo "$as_me: error: could not create -" >&2;} 16061 { (exit 1); exit 1; }; } 16062 fi 16063# Compute "$ac_file"'s index in $config_headers. 16064_am_arg="$ac_file" 16065_am_stamp_count=1 16066for _am_header in $config_headers :; do 16067 case $_am_header in 16068 $_am_arg | $_am_arg:* ) 16069 break ;; 16070 * ) 16071 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16072 esac 16073done 16074echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16075$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16076 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16077 X"$_am_arg" : 'X\(//\)$' \| \ 16078 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16079$as_echo X"$_am_arg" | 16080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16081 s//\1/ 16082 q 16083 } 16084 /^X\(\/\/\)[^/].*/{ 16085 s//\1/ 16086 q 16087 } 16088 /^X\(\/\/\)$/{ 16089 s//\1/ 16090 q 16091 } 16092 /^X\(\/\).*/{ 16093 s//\1/ 16094 q 16095 } 16096 s/.*/./; q'`/stamp-h$_am_stamp_count 16097 ;; 16098 16099 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 16100$as_echo "$as_me: executing $ac_file commands" >&6;} 16101 ;; 16102 esac 16103 16104 16105 case $ac_file$ac_mode in 16106 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16107 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16108 # are listed without --file. Let's play safe and only enable the eval 16109 # if we detect the quoting. 16110 case $CONFIG_FILES in 16111 *\'*) eval set x "$CONFIG_FILES" ;; 16112 *) set x $CONFIG_FILES ;; 16113 esac 16114 shift 16115 for mf 16116 do 16117 # Strip MF so we end up with the name of the file. 16118 mf=`echo "$mf" | sed -e 's/:.*$//'` 16119 # Check whether this is an Automake generated Makefile or not. 16120 # We used to match only the files named `Makefile.in', but 16121 # some people rename them; so instead we look at the file content. 16122 # Grep'ing the first line is not enough: some people post-process 16123 # each Makefile.in and add a new line on top of each file to say so. 16124 # Grep'ing the whole file is not good either: AIX grep has a line 16125 # limit of 2048, but all sed's we know have understand at least 4000. 16126 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16127 dirpart=`$as_dirname -- "$mf" || 16128$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16129 X"$mf" : 'X\(//\)[^/]' \| \ 16130 X"$mf" : 'X\(//\)$' \| \ 16131 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16132$as_echo X"$mf" | 16133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16134 s//\1/ 16135 q 16136 } 16137 /^X\(\/\/\)[^/].*/{ 16138 s//\1/ 16139 q 16140 } 16141 /^X\(\/\/\)$/{ 16142 s//\1/ 16143 q 16144 } 16145 /^X\(\/\).*/{ 16146 s//\1/ 16147 q 16148 } 16149 s/.*/./; q'` 16150 else 16151 continue 16152 fi 16153 # Extract the definition of DEPDIR, am__include, and am__quote 16154 # from the Makefile without running `make'. 16155 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16156 test -z "$DEPDIR" && continue 16157 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16158 test -z "am__include" && continue 16159 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16160 # When using ansi2knr, U may be empty or an underscore; expand it 16161 U=`sed -n 's/^U = //p' < "$mf"` 16162 # Find all dependency output files, they are included files with 16163 # $(DEPDIR) in their names. We invoke sed twice because it is the 16164 # simplest approach to changing $(DEPDIR) to its actual value in the 16165 # expansion. 16166 for file in `sed -n " 16167 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16168 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16169 # Make sure the directory exists. 16170 test -f "$dirpart/$file" && continue 16171 fdir=`$as_dirname -- "$file" || 16172$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16173 X"$file" : 'X\(//\)[^/]' \| \ 16174 X"$file" : 'X\(//\)$' \| \ 16175 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16176$as_echo X"$file" | 16177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16178 s//\1/ 16179 q 16180 } 16181 /^X\(\/\/\)[^/].*/{ 16182 s//\1/ 16183 q 16184 } 16185 /^X\(\/\/\)$/{ 16186 s//\1/ 16187 q 16188 } 16189 /^X\(\/\).*/{ 16190 s//\1/ 16191 q 16192 } 16193 s/.*/./; q'` 16194 { as_dir=$dirpart/$fdir 16195 case $as_dir in #( 16196 -*) as_dir=./$as_dir;; 16197 esac 16198 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16199 as_dirs= 16200 while :; do 16201 case $as_dir in #( 16202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16203 *) as_qdir=$as_dir;; 16204 esac 16205 as_dirs="'$as_qdir' $as_dirs" 16206 as_dir=`$as_dirname -- "$as_dir" || 16207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16208 X"$as_dir" : 'X\(//\)[^/]' \| \ 16209 X"$as_dir" : 'X\(//\)$' \| \ 16210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16211$as_echo X"$as_dir" | 16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16213 s//\1/ 16214 q 16215 } 16216 /^X\(\/\/\)[^/].*/{ 16217 s//\1/ 16218 q 16219 } 16220 /^X\(\/\/\)$/{ 16221 s//\1/ 16222 q 16223 } 16224 /^X\(\/\).*/{ 16225 s//\1/ 16226 q 16227 } 16228 s/.*/./; q'` 16229 test -d "$as_dir" && break 16230 done 16231 test -z "$as_dirs" || eval "mkdir $as_dirs" 16232 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16233$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16234 { (exit 1); exit 1; }; }; } 16235 # echo "creating $dirpart/$file" 16236 echo '# dummy' > "$dirpart/$file" 16237 done 16238 done 16239} 16240 ;; 16241 "libtool":C) 16242 16243 # See if we are running on zsh, and set the options which allow our 16244 # commands through without removal of \ escapes. 16245 if test -n "${ZSH_VERSION+set}" ; then 16246 setopt NO_GLOB_SUBST 16247 fi 16248 16249 cfgfile="${ofile}T" 16250 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16251 $RM "$cfgfile" 16252 16253 cat <<_LT_EOF >> "$cfgfile" 16254#! $SHELL 16255 16256# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16257# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16259# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16260# 16261# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16262# 2006, 2007, 2008 Free Software Foundation, Inc. 16263# Written by Gordon Matzigkeit, 1996 16264# 16265# This file is part of GNU Libtool. 16266# 16267# GNU Libtool is free software; you can redistribute it and/or 16268# modify it under the terms of the GNU General Public License as 16269# published by the Free Software Foundation; either version 2 of 16270# the License, or (at your option) any later version. 16271# 16272# As a special exception to the GNU General Public License, 16273# if you distribute this file as part of a program or library that 16274# is built using GNU Libtool, you may include this file under the 16275# same distribution terms that you use for the rest of that program. 16276# 16277# GNU Libtool is distributed in the hope that it will be useful, 16278# but WITHOUT ANY WARRANTY; without even the implied warranty of 16279# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16280# GNU General Public License for more details. 16281# 16282# You should have received a copy of the GNU General Public License 16283# along with GNU Libtool; see the file COPYING. If not, a copy 16284# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16285# obtained by writing to the Free Software Foundation, Inc., 16286# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16287 16288 16289# The names of the tagged configurations supported by this script. 16290available_tags="" 16291 16292# ### BEGIN LIBTOOL CONFIG 16293 16294# Which release of libtool.m4 was used? 16295macro_version=$macro_version 16296macro_revision=$macro_revision 16297 16298# Whether or not to build shared libraries. 16299build_libtool_libs=$enable_shared 16300 16301# Whether or not to build static libraries. 16302build_old_libs=$enable_static 16303 16304# What type of objects to build. 16305pic_mode=$pic_mode 16306 16307# Whether or not to optimize for fast installation. 16308fast_install=$enable_fast_install 16309 16310# The host system. 16311host_alias=$host_alias 16312host=$host 16313host_os=$host_os 16314 16315# The build system. 16316build_alias=$build_alias 16317build=$build 16318build_os=$build_os 16319 16320# A sed program that does not truncate output. 16321SED=$lt_SED 16322 16323# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16324Xsed="\$SED -e 1s/^X//" 16325 16326# A grep program that handles long lines. 16327GREP=$lt_GREP 16328 16329# An ERE matcher. 16330EGREP=$lt_EGREP 16331 16332# A literal string matcher. 16333FGREP=$lt_FGREP 16334 16335# A BSD- or MS-compatible name lister. 16336NM=$lt_NM 16337 16338# Whether we need soft or hard links. 16339LN_S=$lt_LN_S 16340 16341# What is the maximum length of a command? 16342max_cmd_len=$max_cmd_len 16343 16344# Object file suffix (normally "o"). 16345objext=$ac_objext 16346 16347# Executable file suffix (normally ""). 16348exeext=$exeext 16349 16350# whether the shell understands "unset". 16351lt_unset=$lt_unset 16352 16353# turn spaces into newlines. 16354SP2NL=$lt_lt_SP2NL 16355 16356# turn newlines into spaces. 16357NL2SP=$lt_lt_NL2SP 16358 16359# How to create reloadable object files. 16360reload_flag=$lt_reload_flag 16361reload_cmds=$lt_reload_cmds 16362 16363# An object symbol dumper. 16364OBJDUMP=$lt_OBJDUMP 16365 16366# Method to check whether dependent libraries are shared objects. 16367deplibs_check_method=$lt_deplibs_check_method 16368 16369# Command to use when deplibs_check_method == "file_magic". 16370file_magic_cmd=$lt_file_magic_cmd 16371 16372# The archiver. 16373AR=$lt_AR 16374AR_FLAGS=$lt_AR_FLAGS 16375 16376# A symbol stripping program. 16377STRIP=$lt_STRIP 16378 16379# Commands used to install an old-style archive. 16380RANLIB=$lt_RANLIB 16381old_postinstall_cmds=$lt_old_postinstall_cmds 16382old_postuninstall_cmds=$lt_old_postuninstall_cmds 16383 16384# A C compiler. 16385LTCC=$lt_CC 16386 16387# LTCC compiler flags. 16388LTCFLAGS=$lt_CFLAGS 16389 16390# Take the output of nm and produce a listing of raw symbols and C names. 16391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16392 16393# Transform the output of nm in a proper C declaration. 16394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16395 16396# Transform the output of nm in a C name address pair. 16397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16398 16399# Transform the output of nm in a C name address pair when lib prefix is needed. 16400global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16401 16402# The name of the directory that contains temporary libtool files. 16403objdir=$objdir 16404 16405# Shell to use when invoking shell scripts. 16406SHELL=$lt_SHELL 16407 16408# An echo program that does not interpret backslashes. 16409ECHO=$lt_ECHO 16410 16411# Used to examine libraries when file_magic_cmd begins with "file". 16412MAGIC_CMD=$MAGIC_CMD 16413 16414# Must we lock files when doing compilation? 16415need_locks=$lt_need_locks 16416 16417# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16418DSYMUTIL=$lt_DSYMUTIL 16419 16420# Tool to change global to local symbols on Mac OS X. 16421NMEDIT=$lt_NMEDIT 16422 16423# Tool to manipulate fat objects and archives on Mac OS X. 16424LIPO=$lt_LIPO 16425 16426# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16427OTOOL=$lt_OTOOL 16428 16429# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16430OTOOL64=$lt_OTOOL64 16431 16432# Old archive suffix (normally "a"). 16433libext=$libext 16434 16435# Shared library suffix (normally ".so"). 16436shrext_cmds=$lt_shrext_cmds 16437 16438# The commands to extract the exported symbol list from a shared archive. 16439extract_expsyms_cmds=$lt_extract_expsyms_cmds 16440 16441# Variables whose values should be saved in libtool wrapper scripts and 16442# restored at link time. 16443variables_saved_for_relink=$lt_variables_saved_for_relink 16444 16445# Do we need the "lib" prefix for modules? 16446need_lib_prefix=$need_lib_prefix 16447 16448# Do we need a version for libraries? 16449need_version=$need_version 16450 16451# Library versioning type. 16452version_type=$version_type 16453 16454# Shared library runtime path variable. 16455runpath_var=$runpath_var 16456 16457# Shared library path variable. 16458shlibpath_var=$shlibpath_var 16459 16460# Is shlibpath searched before the hard-coded library search path? 16461shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16462 16463# Format of library name prefix. 16464libname_spec=$lt_libname_spec 16465 16466# List of archive names. First name is the real one, the rest are links. 16467# The last name is the one that the linker finds with -lNAME 16468library_names_spec=$lt_library_names_spec 16469 16470# The coded name of the library, if different from the real name. 16471soname_spec=$lt_soname_spec 16472 16473# Command to use after installation of a shared archive. 16474postinstall_cmds=$lt_postinstall_cmds 16475 16476# Command to use after uninstallation of a shared archive. 16477postuninstall_cmds=$lt_postuninstall_cmds 16478 16479# Commands used to finish a libtool library installation in a directory. 16480finish_cmds=$lt_finish_cmds 16481 16482# As "finish_cmds", except a single script fragment to be evaled but 16483# not shown. 16484finish_eval=$lt_finish_eval 16485 16486# Whether we should hardcode library paths into libraries. 16487hardcode_into_libs=$hardcode_into_libs 16488 16489# Compile-time system search path for libraries. 16490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16491 16492# Run-time system search path for libraries. 16493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16494 16495# Whether dlopen is supported. 16496dlopen_support=$enable_dlopen 16497 16498# Whether dlopen of programs is supported. 16499dlopen_self=$enable_dlopen_self 16500 16501# Whether dlopen of statically linked programs is supported. 16502dlopen_self_static=$enable_dlopen_self_static 16503 16504# Commands to strip libraries. 16505old_striplib=$lt_old_striplib 16506striplib=$lt_striplib 16507 16508 16509# The linker used to build libraries. 16510LD=$lt_LD 16511 16512# Commands used to build an old-style archive. 16513old_archive_cmds=$lt_old_archive_cmds 16514 16515# A language specific compiler. 16516CC=$lt_compiler 16517 16518# Is the compiler the GNU compiler? 16519with_gcc=$GCC 16520 16521# Compiler flag to turn off builtin functions. 16522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16523 16524# How to pass a linker flag through the compiler. 16525wl=$lt_lt_prog_compiler_wl 16526 16527# Additional compiler flags for building library objects. 16528pic_flag=$lt_lt_prog_compiler_pic 16529 16530# Compiler flag to prevent dynamic linking. 16531link_static_flag=$lt_lt_prog_compiler_static 16532 16533# Does compiler simultaneously support -c and -o options? 16534compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16535 16536# Whether or not to add -lc for building shared libraries. 16537build_libtool_need_lc=$archive_cmds_need_lc 16538 16539# Whether or not to disallow shared libs when runtime libs are static. 16540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16541 16542# Compiler flag to allow reflexive dlopens. 16543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16544 16545# Compiler flag to generate shared objects directly from archives. 16546whole_archive_flag_spec=$lt_whole_archive_flag_spec 16547 16548# Whether the compiler copes with passing no objects directly. 16549compiler_needs_object=$lt_compiler_needs_object 16550 16551# Create an old-style archive from a shared archive. 16552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16553 16554# Create a temporary old-style archive to link instead of a shared archive. 16555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16556 16557# Commands used to build a shared archive. 16558archive_cmds=$lt_archive_cmds 16559archive_expsym_cmds=$lt_archive_expsym_cmds 16560 16561# Commands used to build a loadable module if different from building 16562# a shared archive. 16563module_cmds=$lt_module_cmds 16564module_expsym_cmds=$lt_module_expsym_cmds 16565 16566# Whether we are building with GNU ld or not. 16567with_gnu_ld=$lt_with_gnu_ld 16568 16569# Flag that allows shared libraries with undefined symbols to be built. 16570allow_undefined_flag=$lt_allow_undefined_flag 16571 16572# Flag that enforces no undefined symbols. 16573no_undefined_flag=$lt_no_undefined_flag 16574 16575# Flag to hardcode \$libdir into a binary during linking. 16576# This must work even if \$libdir does not exist 16577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16578 16579# If ld is used when linking, flag to hardcode \$libdir into a binary 16580# during linking. This must work even if \$libdir does not exist. 16581hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16582 16583# Whether we need a single "-rpath" flag with a separated argument. 16584hardcode_libdir_separator=$lt_hardcode_libdir_separator 16585 16586# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16587# DIR into the resulting binary. 16588hardcode_direct=$hardcode_direct 16589 16590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16591# DIR into the resulting binary and the resulting library dependency is 16592# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16593# library is relocated. 16594hardcode_direct_absolute=$hardcode_direct_absolute 16595 16596# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16597# into the resulting binary. 16598hardcode_minus_L=$hardcode_minus_L 16599 16600# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16601# into the resulting binary. 16602hardcode_shlibpath_var=$hardcode_shlibpath_var 16603 16604# Set to "yes" if building a shared library automatically hardcodes DIR 16605# into the library and all subsequent libraries and executables linked 16606# against it. 16607hardcode_automatic=$hardcode_automatic 16608 16609# Set to yes if linker adds runtime paths of dependent libraries 16610# to runtime path list. 16611inherit_rpath=$inherit_rpath 16612 16613# Whether libtool must link a program against all its dependency libraries. 16614link_all_deplibs=$link_all_deplibs 16615 16616# Fix the shell variable \$srcfile for the compiler. 16617fix_srcfile_path=$lt_fix_srcfile_path 16618 16619# Set to "yes" if exported symbols are required. 16620always_export_symbols=$always_export_symbols 16621 16622# The commands to list exported symbols. 16623export_symbols_cmds=$lt_export_symbols_cmds 16624 16625# Symbols that should not be listed in the preloaded symbols. 16626exclude_expsyms=$lt_exclude_expsyms 16627 16628# Symbols that must always be exported. 16629include_expsyms=$lt_include_expsyms 16630 16631# Commands necessary for linking programs (against libraries) with templates. 16632prelink_cmds=$lt_prelink_cmds 16633 16634# Specify filename containing input files. 16635file_list_spec=$lt_file_list_spec 16636 16637# How to hardcode a shared library path into an executable. 16638hardcode_action=$hardcode_action 16639 16640# ### END LIBTOOL CONFIG 16641 16642_LT_EOF 16643 16644 case $host_os in 16645 aix3*) 16646 cat <<\_LT_EOF >> "$cfgfile" 16647# AIX sometimes has problems with the GCC collect2 program. For some 16648# reason, if we set the COLLECT_NAMES environment variable, the problems 16649# vanish in a puff of smoke. 16650if test "X${COLLECT_NAMES+set}" != Xset; then 16651 COLLECT_NAMES= 16652 export COLLECT_NAMES 16653fi 16654_LT_EOF 16655 ;; 16656 esac 16657 16658 16659ltmain="$ac_aux_dir/ltmain.sh" 16660 16661 16662 # We use sed instead of cat because bash on DJGPP gets confused if 16663 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16664 # text mode, it properly converts lines to CR/LF. This bash problem 16665 # is reportedly fixed, but why not run on old versions too? 16666 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16667 || (rm -f "$cfgfile"; exit 1) 16668 16669 case $xsi_shell in 16670 yes) 16671 cat << \_LT_EOF >> "$cfgfile" 16672 16673# func_dirname file append nondir_replacement 16674# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16675# otherwise set result to NONDIR_REPLACEMENT. 16676func_dirname () 16677{ 16678 case ${1} in 16679 */*) func_dirname_result="${1%/*}${2}" ;; 16680 * ) func_dirname_result="${3}" ;; 16681 esac 16682} 16683 16684# func_basename file 16685func_basename () 16686{ 16687 func_basename_result="${1##*/}" 16688} 16689 16690# func_dirname_and_basename file append nondir_replacement 16691# perform func_basename and func_dirname in a single function 16692# call: 16693# dirname: Compute the dirname of FILE. If nonempty, 16694# add APPEND to the result, otherwise set result 16695# to NONDIR_REPLACEMENT. 16696# value returned in "$func_dirname_result" 16697# basename: Compute filename of FILE. 16698# value retuned in "$func_basename_result" 16699# Implementation must be kept synchronized with func_dirname 16700# and func_basename. For efficiency, we do not delegate to 16701# those functions but instead duplicate the functionality here. 16702func_dirname_and_basename () 16703{ 16704 case ${1} in 16705 */*) func_dirname_result="${1%/*}${2}" ;; 16706 * ) func_dirname_result="${3}" ;; 16707 esac 16708 func_basename_result="${1##*/}" 16709} 16710 16711# func_stripname prefix suffix name 16712# strip PREFIX and SUFFIX off of NAME. 16713# PREFIX and SUFFIX must not contain globbing or regex special 16714# characters, hashes, percent signs, but SUFFIX may contain a leading 16715# dot (in which case that matches only a dot). 16716func_stripname () 16717{ 16718 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16719 # positional parameters, so assign one to ordinary parameter first. 16720 func_stripname_result=${3} 16721 func_stripname_result=${func_stripname_result#"${1}"} 16722 func_stripname_result=${func_stripname_result%"${2}"} 16723} 16724 16725# func_opt_split 16726func_opt_split () 16727{ 16728 func_opt_split_opt=${1%%=*} 16729 func_opt_split_arg=${1#*=} 16730} 16731 16732# func_lo2o object 16733func_lo2o () 16734{ 16735 case ${1} in 16736 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16737 *) func_lo2o_result=${1} ;; 16738 esac 16739} 16740 16741# func_xform libobj-or-source 16742func_xform () 16743{ 16744 func_xform_result=${1%.*}.lo 16745} 16746 16747# func_arith arithmetic-term... 16748func_arith () 16749{ 16750 func_arith_result=$(( $* )) 16751} 16752 16753# func_len string 16754# STRING may not start with a hyphen. 16755func_len () 16756{ 16757 func_len_result=${#1} 16758} 16759 16760_LT_EOF 16761 ;; 16762 *) # Bourne compatible functions. 16763 cat << \_LT_EOF >> "$cfgfile" 16764 16765# func_dirname file append nondir_replacement 16766# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16767# otherwise set result to NONDIR_REPLACEMENT. 16768func_dirname () 16769{ 16770 # Extract subdirectory from the argument. 16771 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 16772 if test "X$func_dirname_result" = "X${1}"; then 16773 func_dirname_result="${3}" 16774 else 16775 func_dirname_result="$func_dirname_result${2}" 16776 fi 16777} 16778 16779# func_basename file 16780func_basename () 16781{ 16782 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 16783} 16784 16785 16786# func_stripname prefix suffix name 16787# strip PREFIX and SUFFIX off of NAME. 16788# PREFIX and SUFFIX must not contain globbing or regex special 16789# characters, hashes, percent signs, but SUFFIX may contain a leading 16790# dot (in which case that matches only a dot). 16791# func_strip_suffix prefix name 16792func_stripname () 16793{ 16794 case ${2} in 16795 .*) func_stripname_result=`$ECHO "X${3}" \ 16796 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 16797 *) func_stripname_result=`$ECHO "X${3}" \ 16798 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 16799 esac 16800} 16801 16802# sed scripts: 16803my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16804my_sed_long_arg='1s/^-[^=]*=//' 16805 16806# func_opt_split 16807func_opt_split () 16808{ 16809 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 16810 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 16811} 16812 16813# func_lo2o object 16814func_lo2o () 16815{ 16816 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 16817} 16818 16819# func_xform libobj-or-source 16820func_xform () 16821{ 16822 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 16823} 16824 16825# func_arith arithmetic-term... 16826func_arith () 16827{ 16828 func_arith_result=`expr "$@"` 16829} 16830 16831# func_len string 16832# STRING may not start with a hyphen. 16833func_len () 16834{ 16835 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16836} 16837 16838_LT_EOF 16839esac 16840 16841case $lt_shell_append in 16842 yes) 16843 cat << \_LT_EOF >> "$cfgfile" 16844 16845# func_append var value 16846# Append VALUE to the end of shell variable VAR. 16847func_append () 16848{ 16849 eval "$1+=\$2" 16850} 16851_LT_EOF 16852 ;; 16853 *) 16854 cat << \_LT_EOF >> "$cfgfile" 16855 16856# func_append var value 16857# Append VALUE to the end of shell variable VAR. 16858func_append () 16859{ 16860 eval "$1=\$$1\$2" 16861} 16862 16863_LT_EOF 16864 ;; 16865 esac 16866 16867 16868 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16869 || (rm -f "$cfgfile"; exit 1) 16870 16871 mv -f "$cfgfile" "$ofile" || 16872 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16873 chmod +x "$ofile" 16874 16875 ;; 16876 16877 esac 16878done # for ac_tag 16879 16880 16881{ (exit 0); exit 0; } 16882_ACEOF 16883chmod +x $CONFIG_STATUS 16884ac_clean_files=$ac_clean_files_save 16885 16886test $ac_write_fail = 0 || 16887 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 16888$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 16889 { (exit 1); exit 1; }; } 16890 16891 16892# configure is writing to config.log, and then calls config.status. 16893# config.status does its own redirection, appending to config.log. 16894# Unfortunately, on DOS this fails, as config.log is still kept open 16895# by configure, so config.status won't be able to write to it; its 16896# output is simply discarded. So we exec the FD to /dev/null, 16897# effectively closing config.log, so it can be properly (re)opened and 16898# appended to by config.status. When coming back to configure, we 16899# need to make the FD available again. 16900if test "$no_create" != yes; then 16901 ac_cs_success=: 16902 ac_config_status_args= 16903 test "$silent" = yes && 16904 ac_config_status_args="$ac_config_status_args --quiet" 16905 exec 5>/dev/null 16906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16907 exec 5>>config.log 16908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16909 # would make configure fail if this is the last instruction. 16910 $ac_cs_success || { (exit 1); exit 1; } 16911fi 16912if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16913 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16914$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16915fi 16916 16917