1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.63. 4@%:@ 5@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7@%:@ This configure script is free software; the Free Software Foundation 8@%:@ gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIB@&t@OBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME= 745PACKAGE_TARNAME= 746PACKAGE_VERSION= 747PACKAGE_STRING= 748PACKAGE_BUGREPORT= 749 750ac_unique_file="event.c" 751# Factoring default headers for most tests. 752ac_includes_default="\ 753#include <stdio.h> 754#ifdef HAVE_SYS_TYPES_H 755# include <sys/types.h> 756#endif 757#ifdef HAVE_SYS_STAT_H 758# include <sys/stat.h> 759#endif 760#ifdef STDC_HEADERS 761# include <stdlib.h> 762# include <stddef.h> 763#else 764# ifdef HAVE_STDLIB_H 765# include <stdlib.h> 766# endif 767#endif 768#ifdef HAVE_STRING_H 769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 770# include <memory.h> 771# endif 772# include <string.h> 773#endif 774#ifdef HAVE_STRINGS_H 775# include <strings.h> 776#endif 777#ifdef HAVE_INTTYPES_H 778# include <inttypes.h> 779#endif 780#ifdef HAVE_STDINT_H 781# include <stdint.h> 782#endif 783#ifdef HAVE_UNISTD_H 784# include <unistd.h> 785#endif" 786 787ac_subst_vars='am__EXEEXT_FALSE 788am__EXEEXT_TRUE 789LTLIBOBJS 790LIB@&t@OBJS 791BUILD_WIN32_FALSE 792BUILD_WIN32_TRUE 793LIBTOOL_DEPS 794OTOOL64 795OTOOL 796LIPO 797NMEDIT 798DSYMUTIL 799lt_ECHO 800RANLIB 801AR 802OBJDUMP 803NM 804ac_ct_DUMPBIN 805DUMPBIN 806LD 807FGREP 808SED 809LIBTOOL 810EGREP 811GREP 812CPP 813LN_S 814am__fastdepCC_FALSE 815am__fastdepCC_TRUE 816CCDEPMODE 817AMDEPBACKSLASH 818AMDEP_FALSE 819AMDEP_TRUE 820am__quote 821am__include 822DEPDIR 823OBJEXT 824EXEEXT 825ac_ct_CC 826CPPFLAGS 827LDFLAGS 828CFLAGS 829CC 830host_os 831host_vendor 832host_cpu 833host 834build_os 835build_vendor 836build_cpu 837build 838am__untar 839am__tar 840AMTAR 841am__leading_dot 842SET_MAKE 843AWK 844mkdir_p 845MKDIR_P 846INSTALL_STRIP_PROGRAM 847STRIP 848install_sh 849MAKEINFO 850AUTOHEADER 851AUTOMAKE 852AUTOCONF 853ACLOCAL 854VERSION 855PACKAGE 856CYGPATH_W 857am__isrc 858INSTALL_DATA 859INSTALL_SCRIPT 860INSTALL_PROGRAM 861target_alias 862host_alias 863build_alias 864LIBS 865ECHO_T 866ECHO_N 867ECHO_C 868DEFS 869mandir 870localedir 871libdir 872psdir 873pdfdir 874dvidir 875htmldir 876infodir 877docdir 878oldincludedir 879includedir 880localstatedir 881sharedstatedir 882sysconfdir 883datadir 884datarootdir 885libexecdir 886sbindir 887bindir 888program_transform_name 889prefix 890exec_prefix 891PACKAGE_BUGREPORT 892PACKAGE_STRING 893PACKAGE_VERSION 894PACKAGE_TARNAME 895PACKAGE_NAME 896PATH_SEPARATOR 897SHELL' 898ac_subst_files='' 899ac_user_opts=' 900enable_option_checking 901enable_dependency_tracking 902enable_gcc_warnings 903enable_shared 904enable_static 905with_pic 906enable_fast_install 907with_gnu_ld 908enable_libtool_lock 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918CPP' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924ac_unrecognized_opts= 925ac_unrecognized_sep= 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1055 { (exit 1); exit 1; }; } 1056 ac_useropt_orig=$ac_useropt 1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1058 case $ac_user_opts in 1059 *" 1060"enable_$ac_useropt" 1061"*) ;; 1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1063 ac_unrecognized_sep=', ';; 1064 esac 1065 eval enable_$ac_useropt=\$ac_optarg ;; 1066 1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1069 | --exec | --exe | --ex) 1070 ac_prev=exec_prefix ;; 1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1073 | --exec=* | --exe=* | --ex=*) 1074 exec_prefix=$ac_optarg ;; 1075 1076 -gas | --gas | --ga | --g) 1077 # Obsolete; use --with-gas. 1078 with_gas=yes ;; 1079 1080 -help | --help | --hel | --he | -h) 1081 ac_init_help=long ;; 1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1083 ac_init_help=recursive ;; 1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1085 ac_init_help=short ;; 1086 1087 -host | --host | --hos | --ho) 1088 ac_prev=host_alias ;; 1089 -host=* | --host=* | --hos=* | --ho=*) 1090 host_alias=$ac_optarg ;; 1091 1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1093 ac_prev=htmldir ;; 1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1095 | --ht=*) 1096 htmldir=$ac_optarg ;; 1097 1098 -includedir | --includedir | --includedi | --included | --include \ 1099 | --includ | --inclu | --incl | --inc) 1100 ac_prev=includedir ;; 1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1102 | --includ=* | --inclu=* | --incl=* | --inc=*) 1103 includedir=$ac_optarg ;; 1104 1105 -infodir | --infodir | --infodi | --infod | --info | --inf) 1106 ac_prev=infodir ;; 1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1108 infodir=$ac_optarg ;; 1109 1110 -libdir | --libdir | --libdi | --libd) 1111 ac_prev=libdir ;; 1112 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1113 libdir=$ac_optarg ;; 1114 1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1116 | --libexe | --libex | --libe) 1117 ac_prev=libexecdir ;; 1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1119 | --libexe=* | --libex=* | --libe=*) 1120 libexecdir=$ac_optarg ;; 1121 1122 -localedir | --localedir | --localedi | --localed | --locale) 1123 ac_prev=localedir ;; 1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1125 localedir=$ac_optarg ;; 1126 1127 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1128 | --localstate | --localstat | --localsta | --localst | --locals) 1129 ac_prev=localstatedir ;; 1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1132 localstatedir=$ac_optarg ;; 1133 1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1135 ac_prev=mandir ;; 1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1137 mandir=$ac_optarg ;; 1138 1139 -nfp | --nfp | --nf) 1140 # Obsolete; use --without-fp. 1141 with_fp=no ;; 1142 1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1144 | --no-cr | --no-c | -n) 1145 no_create=yes ;; 1146 1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1149 no_recursion=yes ;; 1150 1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1153 | --oldin | --oldi | --old | --ol | --o) 1154 ac_prev=oldincludedir ;; 1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1158 oldincludedir=$ac_optarg ;; 1159 1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1161 ac_prev=prefix ;; 1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1163 prefix=$ac_optarg ;; 1164 1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1166 | --program-pre | --program-pr | --program-p) 1167 ac_prev=program_prefix ;; 1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1170 program_prefix=$ac_optarg ;; 1171 1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1173 | --program-suf | --program-su | --program-s) 1174 ac_prev=program_suffix ;; 1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1177 program_suffix=$ac_optarg ;; 1178 1179 -program-transform-name | --program-transform-name \ 1180 | --program-transform-nam | --program-transform-na \ 1181 | --program-transform-n | --program-transform- \ 1182 | --program-transform | --program-transfor \ 1183 | --program-transfo | --program-transf \ 1184 | --program-trans | --program-tran \ 1185 | --progr-tra | --program-tr | --program-t) 1186 ac_prev=program_transform_name ;; 1187 -program-transform-name=* | --program-transform-name=* \ 1188 | --program-transform-nam=* | --program-transform-na=* \ 1189 | --program-transform-n=* | --program-transform-=* \ 1190 | --program-transform=* | --program-transfor=* \ 1191 | --program-transfo=* | --program-transf=* \ 1192 | --program-trans=* | --program-tran=* \ 1193 | --progr-tra=* | --program-tr=* | --program-t=*) 1194 program_transform_name=$ac_optarg ;; 1195 1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1197 ac_prev=pdfdir ;; 1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1199 pdfdir=$ac_optarg ;; 1200 1201 -psdir | --psdir | --psdi | --psd | --ps) 1202 ac_prev=psdir ;; 1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1204 psdir=$ac_optarg ;; 1205 1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1207 | -silent | --silent | --silen | --sile | --sil) 1208 silent=yes ;; 1209 1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1211 ac_prev=sbindir ;; 1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1213 | --sbi=* | --sb=*) 1214 sbindir=$ac_optarg ;; 1215 1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1218 | --sharedst | --shareds | --shared | --share | --shar \ 1219 | --sha | --sh) 1220 ac_prev=sharedstatedir ;; 1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1224 | --sha=* | --sh=*) 1225 sharedstatedir=$ac_optarg ;; 1226 1227 -site | --site | --sit) 1228 ac_prev=site ;; 1229 -site=* | --site=* | --sit=*) 1230 site=$ac_optarg ;; 1231 1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1233 ac_prev=srcdir ;; 1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1235 srcdir=$ac_optarg ;; 1236 1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1238 | --syscon | --sysco | --sysc | --sys | --sy) 1239 ac_prev=sysconfdir ;; 1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1242 sysconfdir=$ac_optarg ;; 1243 1244 -target | --target | --targe | --targ | --tar | --ta | --t) 1245 ac_prev=target_alias ;; 1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1247 target_alias=$ac_optarg ;; 1248 1249 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1250 verbose=yes ;; 1251 1252 -version | --version | --versio | --versi | --vers | -V) 1253 ac_init_version=: ;; 1254 1255 -with-* | --with-*) 1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1257 # Reject names that are not valid shell variable names. 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1260 { (exit 1); exit 1; }; } 1261 ac_useropt_orig=$ac_useropt 1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1263 case $ac_user_opts in 1264 *" 1265"with_$ac_useropt" 1266"*) ;; 1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1268 ac_unrecognized_sep=', ';; 1269 esac 1270 eval with_$ac_useropt=\$ac_optarg ;; 1271 1272 -without-* | --without-*) 1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1274 # Reject names that are not valid shell variable names. 1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1277 { (exit 1); exit 1; }; } 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=no ;; 1288 1289 --x) 1290 # Obsolete; use --with-x. 1291 with_x=yes ;; 1292 1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1294 | --x-incl | --x-inc | --x-in | --x-i) 1295 ac_prev=x_includes ;; 1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1298 x_includes=$ac_optarg ;; 1299 1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1302 ac_prev=x_libraries ;; 1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1305 x_libraries=$ac_optarg ;; 1306 1307 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1308Try \`$0 --help' for more information." >&2 1309 { (exit 1); exit 1; }; } 1310 ;; 1311 1312 *=*) 1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1316 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1317 { (exit 1); exit 1; }; } 1318 eval $ac_envvar=\$ac_optarg 1319 export $ac_envvar ;; 1320 1321 *) 1322 # FIXME: should be removed in autoconf 3.0. 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1327 ;; 1328 1329 esac 1330done 1331 1332if test -n "$ac_prev"; then 1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1334 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1335 { (exit 1); exit 1; }; } 1336fi 1337 1338if test -n "$ac_unrecognized_opts"; then 1339 case $enable_option_checking in 1340 no) ;; 1341 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1342 { (exit 1); exit 1; }; } ;; 1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1344 esac 1345fi 1346 1347# Check all directory arguments for consistency. 1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1349 datadir sysconfdir sharedstatedir localstatedir includedir \ 1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1351 libdir localedir mandir 1352do 1353 eval ac_val=\$$ac_var 1354 # Remove trailing slashes. 1355 case $ac_val in 1356 */ ) 1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1358 eval $ac_var=\$ac_val;; 1359 esac 1360 # Be sure to have absolute directory names. 1361 case $ac_val in 1362 [\\/$]* | ?:[\\/]* ) continue;; 1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1364 esac 1365 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1366 { (exit 1); exit 1; }; } 1367done 1368 1369# There might be people who depend on the old broken behavior: `$host' 1370# used to hold the argument of --host etc. 1371# FIXME: To remove some day. 1372build=$build_alias 1373host=$host_alias 1374target=$target_alias 1375 1376# FIXME: To remove some day. 1377if test "x$host_alias" != x; then 1378 if test "x$build_alias" = x; then 1379 cross_compiling=maybe 1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1381 If a cross compiler is detected then cross compile mode will be used." >&2 1382 elif test "x$build_alias" != "x$host_alias"; then 1383 cross_compiling=yes 1384 fi 1385fi 1386 1387ac_tool_prefix= 1388test -n "$host_alias" && ac_tool_prefix=$host_alias- 1389 1390test "$silent" = yes && exec 6>/dev/null 1391 1392 1393ac_pwd=`pwd` && test -n "$ac_pwd" && 1394ac_ls_di=`ls -di .` && 1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1396 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1397 { (exit 1); exit 1; }; } 1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1399 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1400 { (exit 1); exit 1; }; } 1401 1402 1403# Find the source files, if location was not specified. 1404if test -z "$srcdir"; then 1405 ac_srcdir_defaulted=yes 1406 # Try the directory containing this script, then the parent directory. 1407 ac_confdir=`$as_dirname -- "$as_myself" || 1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1409 X"$as_myself" : 'X\(//\)[^/]' \| \ 1410 X"$as_myself" : 'X\(//\)$' \| \ 1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1412$as_echo X"$as_myself" | 1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\/\)[^/].*/{ 1418 s//\1/ 1419 q 1420 } 1421 /^X\(\/\/\)$/{ 1422 s//\1/ 1423 q 1424 } 1425 /^X\(\/\).*/{ 1426 s//\1/ 1427 q 1428 } 1429 s/.*/./; q'` 1430 srcdir=$ac_confdir 1431 if test ! -r "$srcdir/$ac_unique_file"; then 1432 srcdir=.. 1433 fi 1434else 1435 ac_srcdir_defaulted=no 1436fi 1437if test ! -r "$srcdir/$ac_unique_file"; then 1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1439 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1440 { (exit 1); exit 1; }; } 1441fi 1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1443ac_abs_confdir=`( 1444 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1445 { (exit 1); exit 1; }; } 1446 pwd)` 1447# When building in place, set srcdir=. 1448if test "$ac_abs_confdir" = "$ac_pwd"; then 1449 srcdir=. 1450fi 1451# Remove unnecessary trailing slashes from srcdir. 1452# Double slashes in file names in object file debugging info 1453# mess up M-x gdb in Emacs. 1454case $srcdir in 1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1456esac 1457for ac_var in $ac_precious_vars; do 1458 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1459 eval ac_env_${ac_var}_value=\$${ac_var} 1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1461 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1462done 1463 1464# 1465# Report the --help message. 1466# 1467if test "$ac_init_help" = "long"; then 1468 # Omit some internal or obsolete options to make the list less imposing. 1469 # This message is too long to be a string in the A/UX 3.1 sh. 1470 cat <<_ACEOF 1471\`configure' configures this package to adapt to many kinds of systems. 1472 1473Usage: $0 [OPTION]... [VAR=VALUE]... 1474 1475To assign environment variables (e.g., CC, CFLAGS...), specify them as 1476VAR=VALUE. See below for descriptions of some of the useful variables. 1477 1478Defaults for the options are specified in brackets. 1479 1480Configuration: 1481 -h, --help display this help and exit 1482 --help=short display options specific to this package 1483 --help=recursive display the short help of all the included packages 1484 -V, --version display version information and exit 1485 -q, --quiet, --silent do not print \`checking...' messages 1486 --cache-file=FILE cache test results in FILE [disabled] 1487 -C, --config-cache alias for \`--cache-file=config.cache' 1488 -n, --no-create do not create output files 1489 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1490 1491Installation directories: 1492 --prefix=PREFIX install architecture-independent files in PREFIX 1493 [$ac_default_prefix] 1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1495 [PREFIX] 1496 1497By default, \`make install' will install all the files in 1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1499an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1500for instance \`--prefix=\$HOME'. 1501 1502For better control, use the options below. 1503 1504Fine tuning of the installation directories: 1505 --bindir=DIR user executables [EPREFIX/bin] 1506 --sbindir=DIR system admin executables [EPREFIX/sbin] 1507 --libexecdir=DIR program executables [EPREFIX/libexec] 1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1511 --libdir=DIR object code libraries [EPREFIX/lib] 1512 --includedir=DIR C header files [PREFIX/include] 1513 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1516 --infodir=DIR info documentation [DATAROOTDIR/info] 1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1518 --mandir=DIR man documentation [DATAROOTDIR/man] 1519 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ 1520 --htmldir=DIR html documentation [DOCDIR] 1521 --dvidir=DIR dvi documentation [DOCDIR] 1522 --pdfdir=DIR pdf documentation [DOCDIR] 1523 --psdir=DIR ps documentation [DOCDIR] 1524_ACEOF 1525 1526 cat <<\_ACEOF 1527 1528Program names: 1529 --program-prefix=PREFIX prepend PREFIX to installed program names 1530 --program-suffix=SUFFIX append SUFFIX to installed program names 1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1532 1533System types: 1534 --build=BUILD configure for building on BUILD [guessed] 1535 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1536_ACEOF 1537fi 1538 1539if test -n "$ac_init_help"; then 1540 1541 cat <<\_ACEOF 1542 1543Optional Features: 1544 --disable-option-checking ignore unrecognized --enable/--with options 1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1547 --disable-dependency-tracking speeds up one-time build 1548 --enable-dependency-tracking do not reject slow dependency extractors 1549 --enable-gcc-warnings enable verbose warnings with GCC 1550 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1551 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1552 --enable-fast-install@<:@=PKGS@:>@ 1553 optimize for fast installation @<:@default=yes@:>@ 1554 --disable-libtool-lock avoid locking (might break parallel builds) 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1560 both@:>@ 1561 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 CPP C preprocessor 1572 1573Use these variables to override the choices made by `configure' or to help 1574it to find libraries and programs with nonstandard names/locations. 1575 1576_ACEOF 1577ac_status=$? 1578fi 1579 1580if test "$ac_init_help" = "recursive"; then 1581 # If there are subdirs, report their specific --help. 1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1583 test -d "$ac_dir" || 1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1585 continue 1586 ac_builddir=. 1587 1588case "$ac_dir" in 1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590*) 1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1592 # A ".." for each directory in $ac_dir_suffix. 1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1594 case $ac_top_builddir_sub in 1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1597 esac ;; 1598esac 1599ac_abs_top_builddir=$ac_pwd 1600ac_abs_builddir=$ac_pwd$ac_dir_suffix 1601# for backward compatibility: 1602ac_top_builddir=$ac_top_build_prefix 1603 1604case $srcdir in 1605 .) # We are building in place. 1606 ac_srcdir=. 1607 ac_top_srcdir=$ac_top_builddir_sub 1608 ac_abs_top_srcdir=$ac_pwd ;; 1609 [\\/]* | ?:[\\/]* ) # Absolute name. 1610 ac_srcdir=$srcdir$ac_dir_suffix; 1611 ac_top_srcdir=$srcdir 1612 ac_abs_top_srcdir=$srcdir ;; 1613 *) # Relative name. 1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1615 ac_top_srcdir=$ac_top_build_prefix$srcdir 1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1617esac 1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1619 1620 cd "$ac_dir" || { ac_status=$?; continue; } 1621 # Check for guested configure. 1622 if test -f "$ac_srcdir/configure.gnu"; then 1623 echo && 1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1625 elif test -f "$ac_srcdir/configure"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure" --help=recursive 1628 else 1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1630 fi || ac_status=$? 1631 cd "$ac_pwd" || { ac_status=$?; break; } 1632 done 1633fi 1634 1635test -n "$ac_init_help" && exit $ac_status 1636if $ac_init_version; then 1637 cat <<\_ACEOF 1638configure 1639generated by GNU Autoconf 2.63 1640 1641Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16422002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1643This configure script is free software; the Free Software Foundation 1644gives unlimited permission to copy, distribute and modify it. 1645_ACEOF 1646 exit 1647fi 1648cat >config.log <<_ACEOF 1649This file contains any messages produced by compilers while 1650running configure, to aid debugging if configure makes a mistake. 1651 1652It was created by $as_me, which was 1653generated by GNU Autoconf 2.63. Invocation command line was 1654 1655 $ $0 $@ 1656 1657_ACEOF 1658exec 5>>config.log 1659{ 1660cat <<_ASUNAME 1661@%:@@%:@ --------- @%:@@%:@ 1662@%:@@%:@ Platform. @%:@@%:@ 1663@%:@@%:@ --------- @%:@@%:@ 1664 1665hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1666uname -m = `(uname -m) 2>/dev/null || echo unknown` 1667uname -r = `(uname -r) 2>/dev/null || echo unknown` 1668uname -s = `(uname -s) 2>/dev/null || echo unknown` 1669uname -v = `(uname -v) 2>/dev/null || echo unknown` 1670 1671/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1672/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1673 1674/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1675/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1676/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1677/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1678/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1679/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1680/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1681 1682_ASUNAME 1683 1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1685for as_dir in $PATH 1686do 1687 IFS=$as_save_IFS 1688 test -z "$as_dir" && as_dir=. 1689 $as_echo "PATH: $as_dir" 1690done 1691IFS=$as_save_IFS 1692 1693} >&5 1694 1695cat >&5 <<_ACEOF 1696 1697 1698@%:@@%:@ ----------- @%:@@%:@ 1699@%:@@%:@ Core tests. @%:@@%:@ 1700@%:@@%:@ ----------- @%:@@%:@ 1701 1702_ACEOF 1703 1704 1705# Keep a trace of the command line. 1706# Strip out --no-create and --no-recursion so they do not pile up. 1707# Strip out --silent because we don't want to record it for future runs. 1708# Also quote any args containing shell meta-characters. 1709# Make two passes to allow for proper duplicate-argument suppression. 1710ac_configure_args= 1711ac_configure_args0= 1712ac_configure_args1= 1713ac_must_keep_next=false 1714for ac_pass in 1 2 1715do 1716 for ac_arg 1717 do 1718 case $ac_arg in 1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1721 | -silent | --silent | --silen | --sile | --sil) 1722 continue ;; 1723 *\'*) 1724 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1725 esac 1726 case $ac_pass in 1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1728 2) 1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1730 if test $ac_must_keep_next = true; then 1731 ac_must_keep_next=false # Got value, back to normal. 1732 else 1733 case $ac_arg in 1734 *=* | --config-cache | -C | -disable-* | --disable-* \ 1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1737 | -with-* | --with-* | -without-* | --without-* | --x) 1738 case "$ac_configure_args0 " in 1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1740 esac 1741 ;; 1742 -* ) ac_must_keep_next=true ;; 1743 esac 1744 fi 1745 ac_configure_args="$ac_configure_args '$ac_arg'" 1746 ;; 1747 esac 1748 done 1749done 1750$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1751$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1752 1753# When interrupted or exit'd, cleanup temporary files, and complete 1754# config.log. We remove comments because anyway the quotes in there 1755# would cause problems or look ugly. 1756# WARNING: Use '\'' to represent an apostrophe within the trap. 1757# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1758trap 'exit_status=$? 1759 # Save into config.log some information that might help in debugging. 1760 { 1761 echo 1762 1763 cat <<\_ASBOX 1764@%:@@%:@ ---------------- @%:@@%:@ 1765@%:@@%:@ Cache variables. @%:@@%:@ 1766@%:@@%:@ ---------------- @%:@@%:@ 1767_ASBOX 1768 echo 1769 # The following way of writing the cache mishandles newlines in values, 1770( 1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1772 eval ac_val=\$$ac_var 1773 case $ac_val in #( 1774 *${as_nl}*) 1775 case $ac_var in #( 1776 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1778 esac 1779 case $ac_var in #( 1780 _ | IFS | as_nl) ;; #( 1781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1782 *) $as_unset $ac_var ;; 1783 esac ;; 1784 esac 1785 done 1786 (set) 2>&1 | 1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1788 *${as_nl}ac_space=\ *) 1789 sed -n \ 1790 "s/'\''/'\''\\\\'\'''\''/g; 1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1792 ;; #( 1793 *) 1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1795 ;; 1796 esac | 1797 sort 1798) 1799 echo 1800 1801 cat <<\_ASBOX 1802@%:@@%:@ ----------------- @%:@@%:@ 1803@%:@@%:@ Output variables. @%:@@%:@ 1804@%:@@%:@ ----------------- @%:@@%:@ 1805_ASBOX 1806 echo 1807 for ac_var in $ac_subst_vars 1808 do 1809 eval ac_val=\$$ac_var 1810 case $ac_val in 1811 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1812 esac 1813 $as_echo "$ac_var='\''$ac_val'\''" 1814 done | sort 1815 echo 1816 1817 if test -n "$ac_subst_files"; then 1818 cat <<\_ASBOX 1819@%:@@%:@ ------------------- @%:@@%:@ 1820@%:@@%:@ File substitutions. @%:@@%:@ 1821@%:@@%:@ ------------------- @%:@@%:@ 1822_ASBOX 1823 echo 1824 for ac_var in $ac_subst_files 1825 do 1826 eval ac_val=\$$ac_var 1827 case $ac_val in 1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1829 esac 1830 $as_echo "$ac_var='\''$ac_val'\''" 1831 done | sort 1832 echo 1833 fi 1834 1835 if test -s confdefs.h; then 1836 cat <<\_ASBOX 1837@%:@@%:@ ----------- @%:@@%:@ 1838@%:@@%:@ confdefs.h. @%:@@%:@ 1839@%:@@%:@ ----------- @%:@@%:@ 1840_ASBOX 1841 echo 1842 cat confdefs.h 1843 echo 1844 fi 1845 test "$ac_signal" != 0 && 1846 $as_echo "$as_me: caught signal $ac_signal" 1847 $as_echo "$as_me: exit $exit_status" 1848 } >&5 1849 rm -f core *.core core.conftest.* && 1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1851 exit $exit_status 1852' 0 1853for ac_signal in 1 2 13 15; do 1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1855done 1856ac_signal=0 1857 1858# confdefs.h avoids OS command line length limits that DEFS can exceed. 1859rm -f -r conftest* confdefs.h 1860 1861# Predefined preprocessor variables. 1862 1863cat >>confdefs.h <<_ACEOF 1864@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1865_ACEOF 1866 1867 1868cat >>confdefs.h <<_ACEOF 1869@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1870_ACEOF 1871 1872 1873cat >>confdefs.h <<_ACEOF 1874@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1875_ACEOF 1876 1877 1878cat >>confdefs.h <<_ACEOF 1879@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1880_ACEOF 1881 1882 1883cat >>confdefs.h <<_ACEOF 1884@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1885_ACEOF 1886 1887 1888# Let the site file select an alternate cache file if it wants to. 1889# Prefer an explicitly selected file to automatically selected ones. 1890ac_site_file1=NONE 1891ac_site_file2=NONE 1892if test -n "$CONFIG_SITE"; then 1893 ac_site_file1=$CONFIG_SITE 1894elif test "x$prefix" != xNONE; then 1895 ac_site_file1=$prefix/share/config.site 1896 ac_site_file2=$prefix/etc/config.site 1897else 1898 ac_site_file1=$ac_default_prefix/share/config.site 1899 ac_site_file2=$ac_default_prefix/etc/config.site 1900fi 1901for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1902do 1903 test "x$ac_site_file" = xNONE && continue 1904 if test -r "$ac_site_file"; then 1905 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1906$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1907 sed 's/^/| /' "$ac_site_file" >&5 1908 . "$ac_site_file" 1909 fi 1910done 1911 1912if test -r "$cache_file"; then 1913 # Some versions of bash will fail to source /dev/null (special 1914 # files actually), so we avoid doing that. 1915 if test -f "$cache_file"; then 1916 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1917$as_echo "$as_me: loading cache $cache_file" >&6;} 1918 case $cache_file in 1919 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1920 *) . "./$cache_file";; 1921 esac 1922 fi 1923else 1924 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1925$as_echo "$as_me: creating cache $cache_file" >&6;} 1926 >$cache_file 1927fi 1928 1929# Check that the precious variables saved in the cache have kept the same 1930# value. 1931ac_cache_corrupted=false 1932for ac_var in $ac_precious_vars; do 1933 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1934 eval ac_new_set=\$ac_env_${ac_var}_set 1935 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1936 eval ac_new_val=\$ac_env_${ac_var}_value 1937 case $ac_old_set,$ac_new_set in 1938 set,) 1939 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1940$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1941 ac_cache_corrupted=: ;; 1942 ,set) 1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1944$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1945 ac_cache_corrupted=: ;; 1946 ,);; 1947 *) 1948 if test "x$ac_old_val" != "x$ac_new_val"; then 1949 # differences in whitespace do not lead to failure. 1950 ac_old_val_w=`echo x $ac_old_val` 1951 ac_new_val_w=`echo x $ac_new_val` 1952 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1953 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1954$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1955 ac_cache_corrupted=: 1956 else 1957 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1958$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1959 eval $ac_var=\$ac_old_val 1960 fi 1961 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1962$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1963 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1964$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1965 fi;; 1966 esac 1967 # Pass precious variables to config.status. 1968 if test "$ac_new_set" = set; then 1969 case $ac_new_val in 1970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1971 *) ac_arg=$ac_var=$ac_new_val ;; 1972 esac 1973 case " $ac_configure_args " in 1974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1975 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1976 esac 1977 fi 1978done 1979if $ac_cache_corrupted; then 1980 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1982 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1983$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1984 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1985$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1986 { (exit 1); exit 1; }; } 1987fi 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005ac_ext=c 2006ac_cpp='$CPP $CPPFLAGS' 2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2009ac_compiler_gnu=$ac_cv_c_compiler_gnu 2010 2011 2012 2013am__api_version='1.11' 2014 2015ac_aux_dir= 2016for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2017 if test -f "$ac_dir/install-sh"; then 2018 ac_aux_dir=$ac_dir 2019 ac_install_sh="$ac_aux_dir/install-sh -c" 2020 break 2021 elif test -f "$ac_dir/install.sh"; then 2022 ac_aux_dir=$ac_dir 2023 ac_install_sh="$ac_aux_dir/install.sh -c" 2024 break 2025 elif test -f "$ac_dir/shtool"; then 2026 ac_aux_dir=$ac_dir 2027 ac_install_sh="$ac_aux_dir/shtool install -c" 2028 break 2029 fi 2030done 2031if test -z "$ac_aux_dir"; then 2032 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2033$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2034 { (exit 1); exit 1; }; } 2035fi 2036 2037# These three variables are undocumented and unsupported, 2038# and are intended to be withdrawn in a future Autoconf release. 2039# They can cause serious problems if a builder's source tree is in a directory 2040# whose full name contains unusual characters. 2041ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2042ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2043ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2044 2045 2046# Find a good install program. We prefer a C program (faster), 2047# so one script is as good as another. But avoid the broken or 2048# incompatible versions: 2049# SysV /etc/install, /usr/sbin/install 2050# SunOS /usr/etc/install 2051# IRIX /sbin/install 2052# AIX /bin/install 2053# AmigaOS /C/install, which installs bootblocks on floppy discs 2054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2055# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2057# OS/2's system install, which has a completely different semantic 2058# ./install, which can be erroneously created by make from ./install.sh. 2059# Reject install programs that cannot install multiple files. 2060{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2061$as_echo_n "checking for a BSD-compatible install... " >&6; } 2062if test -z "$INSTALL"; then 2063if test "${ac_cv_path_install+set}" = set; then 2064 $as_echo_n "(cached) " >&6 2065else 2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2067for as_dir in $PATH 2068do 2069 IFS=$as_save_IFS 2070 test -z "$as_dir" && as_dir=. 2071 # Account for people who put trailing slashes in PATH elements. 2072case $as_dir/ in 2073 ./ | .// | /cC/* | \ 2074 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2075 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2076 /usr/ucb/* ) ;; 2077 *) 2078 # OSF1 and SCO ODT 3.0 have their own names for install. 2079 # Don't use installbsd from OSF since it installs stuff as root 2080 # by default. 2081 for ac_prog in ginstall scoinst install; do 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2084 if test $ac_prog = install && 2085 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2086 # AIX install. It has an incompatible calling convention. 2087 : 2088 elif test $ac_prog = install && 2089 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2090 # program-specific install script used by HP pwplus--don't use. 2091 : 2092 else 2093 rm -rf conftest.one conftest.two conftest.dir 2094 echo one > conftest.one 2095 echo two > conftest.two 2096 mkdir conftest.dir 2097 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2098 test -s conftest.one && test -s conftest.two && 2099 test -s conftest.dir/conftest.one && 2100 test -s conftest.dir/conftest.two 2101 then 2102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2103 break 3 2104 fi 2105 fi 2106 fi 2107 done 2108 done 2109 ;; 2110esac 2111 2112done 2113IFS=$as_save_IFS 2114 2115rm -rf conftest.one conftest.two conftest.dir 2116 2117fi 2118 if test "${ac_cv_path_install+set}" = set; then 2119 INSTALL=$ac_cv_path_install 2120 else 2121 # As a last resort, use the slow shell script. Don't cache a 2122 # value for INSTALL within a source directory, because that will 2123 # break other packages using the cache if that directory is 2124 # removed, or if the value is a relative name. 2125 INSTALL=$ac_install_sh 2126 fi 2127fi 2128{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2129$as_echo "$INSTALL" >&6; } 2130 2131# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2132# It thinks the first close brace ends the variable substitution. 2133test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2134 2135test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2136 2137test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2138 2139{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2140$as_echo_n "checking whether build environment is sane... " >&6; } 2141# Just in case 2142sleep 1 2143echo timestamp > conftest.file 2144# Reject unsafe characters in $srcdir or the absolute working directory 2145# name. Accept space and tab only in the latter. 2146am_lf=' 2147' 2148case `pwd` in 2149 *[\\\"\#\$\&\'\`$am_lf]*) 2150 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2151$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2152 { (exit 1); exit 1; }; };; 2153esac 2154case $srcdir in 2155 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2156 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2157$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2158 { (exit 1); exit 1; }; };; 2159esac 2160 2161# Do `set' in a subshell so we don't clobber the current shell's 2162# arguments. Must try -L first in case configure is actually a 2163# symlink; some systems play weird games with the mod time of symlinks 2164# (eg FreeBSD returns the mod time of the symlink's containing 2165# directory). 2166if ( 2167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2168 if test "$*" = "X"; then 2169 # -L didn't work. 2170 set X `ls -t "$srcdir/configure" conftest.file` 2171 fi 2172 rm -f conftest.file 2173 if test "$*" != "X $srcdir/configure conftest.file" \ 2174 && test "$*" != "X conftest.file $srcdir/configure"; then 2175 2176 # If neither matched, then we have a broken ls. This can happen 2177 # if, for instance, CONFIG_SHELL is bash and it inherits a 2178 # broken ls alias from the environment. This has actually 2179 # happened. Such a system could not be considered "sane". 2180 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2181alias in your environment" >&5 2182$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2183alias in your environment" >&2;} 2184 { (exit 1); exit 1; }; } 2185 fi 2186 2187 test "$2" = conftest.file 2188 ) 2189then 2190 # Ok. 2191 : 2192else 2193 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2194Check your system clock" >&5 2195$as_echo "$as_me: error: newly created file is older than distributed files! 2196Check your system clock" >&2;} 2197 { (exit 1); exit 1; }; } 2198fi 2199{ $as_echo "$as_me:$LINENO: result: yes" >&5 2200$as_echo "yes" >&6; } 2201test "$program_prefix" != NONE && 2202 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2203# Use a double $ so make ignores it. 2204test "$program_suffix" != NONE && 2205 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2206# Double any \ or $. 2207# By default was `s,x,x', remove it if useless. 2208ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2209program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2210 2211# expand $ac_aux_dir to an absolute path 2212am_aux_dir=`cd $ac_aux_dir && pwd` 2213 2214if test x"${MISSING+set}" != xset; then 2215 case $am_aux_dir in 2216 *\ * | *\ *) 2217 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2218 *) 2219 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2220 esac 2221fi 2222# Use eval to expand $SHELL 2223if eval "$MISSING --run true"; then 2224 am_missing_run="$MISSING --run " 2225else 2226 am_missing_run= 2227 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2228$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2229fi 2230 2231if test x"${install_sh}" != xset; then 2232 case $am_aux_dir in 2233 *\ * | *\ *) 2234 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2235 *) 2236 install_sh="\${SHELL} $am_aux_dir/install-sh" 2237 esac 2238fi 2239 2240# Installed binaries are usually stripped using `strip' when the user 2241# run `make install-strip'. However `strip' might not be the right 2242# tool to use in cross-compilation environments, therefore Automake 2243# will honor the `STRIP' environment variable to overrule this program. 2244if test "$cross_compiling" != no; then 2245 if test -n "$ac_tool_prefix"; then 2246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2247set dummy ${ac_tool_prefix}strip; ac_word=$2 2248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2249$as_echo_n "checking for $ac_word... " >&6; } 2250if test "${ac_cv_prog_STRIP+set}" = set; then 2251 $as_echo_n "(cached) " >&6 2252else 2253 if test -n "$STRIP"; then 2254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2255else 2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2257for as_dir in $PATH 2258do 2259 IFS=$as_save_IFS 2260 test -z "$as_dir" && as_dir=. 2261 for ac_exec_ext in '' $ac_executable_extensions; do 2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2263 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2265 break 2 2266 fi 2267done 2268done 2269IFS=$as_save_IFS 2270 2271fi 2272fi 2273STRIP=$ac_cv_prog_STRIP 2274if test -n "$STRIP"; then 2275 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2276$as_echo "$STRIP" >&6; } 2277else 2278 { $as_echo "$as_me:$LINENO: result: no" >&5 2279$as_echo "no" >&6; } 2280fi 2281 2282 2283fi 2284if test -z "$ac_cv_prog_STRIP"; then 2285 ac_ct_STRIP=$STRIP 2286 # Extract the first word of "strip", so it can be a program name with args. 2287set dummy strip; ac_word=$2 2288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2289$as_echo_n "checking for $ac_word... " >&6; } 2290if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2291 $as_echo_n "(cached) " >&6 2292else 2293 if test -n "$ac_ct_STRIP"; then 2294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2295else 2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH 2298do 2299 IFS=$as_save_IFS 2300 test -z "$as_dir" && as_dir=. 2301 for ac_exec_ext in '' $ac_executable_extensions; do 2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2303 ac_cv_prog_ac_ct_STRIP="strip" 2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2305 break 2 2306 fi 2307done 2308done 2309IFS=$as_save_IFS 2310 2311fi 2312fi 2313ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2314if test -n "$ac_ct_STRIP"; then 2315 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2316$as_echo "$ac_ct_STRIP" >&6; } 2317else 2318 { $as_echo "$as_me:$LINENO: result: no" >&5 2319$as_echo "no" >&6; } 2320fi 2321 2322 if test "x$ac_ct_STRIP" = x; then 2323 STRIP=":" 2324 else 2325 case $cross_compiling:$ac_tool_warned in 2326yes:) 2327{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2329ac_tool_warned=yes ;; 2330esac 2331 STRIP=$ac_ct_STRIP 2332 fi 2333else 2334 STRIP="$ac_cv_prog_STRIP" 2335fi 2336 2337fi 2338INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2339 2340{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2341$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2342if test -z "$MKDIR_P"; then 2343 if test "${ac_cv_path_mkdir+set}" = set; then 2344 $as_echo_n "(cached) " >&6 2345else 2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 for ac_prog in mkdir gmkdir; do 2352 for ac_exec_ext in '' $ac_executable_extensions; do 2353 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2354 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2355 'mkdir (GNU coreutils) '* | \ 2356 'mkdir (coreutils) '* | \ 2357 'mkdir (fileutils) '4.1*) 2358 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2359 break 3;; 2360 esac 2361 done 2362 done 2363done 2364IFS=$as_save_IFS 2365 2366fi 2367 2368 if test "${ac_cv_path_mkdir+set}" = set; then 2369 MKDIR_P="$ac_cv_path_mkdir -p" 2370 else 2371 # As a last resort, use the slow shell script. Don't cache a 2372 # value for MKDIR_P within a source directory, because that will 2373 # break other packages using the cache if that directory is 2374 # removed, or if the value is a relative name. 2375 test -d ./--version && rmdir ./--version 2376 MKDIR_P="$ac_install_sh -d" 2377 fi 2378fi 2379{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2380$as_echo "$MKDIR_P" >&6; } 2381 2382mkdir_p="$MKDIR_P" 2383case $mkdir_p in 2384 [\\/$]* | ?:[\\/]*) ;; 2385 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2386esac 2387 2388for ac_prog in gawk mawk nawk awk 2389do 2390 # Extract the first word of "$ac_prog", so it can be a program name with args. 2391set dummy $ac_prog; ac_word=$2 2392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2393$as_echo_n "checking for $ac_word... " >&6; } 2394if test "${ac_cv_prog_AWK+set}" = set; then 2395 $as_echo_n "(cached) " >&6 2396else 2397 if test -n "$AWK"; then 2398 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2399else 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2407 ac_cv_prog_AWK="$ac_prog" 2408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2409 break 2 2410 fi 2411done 2412done 2413IFS=$as_save_IFS 2414 2415fi 2416fi 2417AWK=$ac_cv_prog_AWK 2418if test -n "$AWK"; then 2419 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2420$as_echo "$AWK" >&6; } 2421else 2422 { $as_echo "$as_me:$LINENO: result: no" >&5 2423$as_echo "no" >&6; } 2424fi 2425 2426 2427 test -n "$AWK" && break 2428done 2429 2430{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2431$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2432set x ${MAKE-make} 2433ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2434if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2435 $as_echo_n "(cached) " >&6 2436else 2437 cat >conftest.make <<\_ACEOF 2438SHELL = /bin/sh 2439all: 2440 @echo '@@@%%%=$(MAKE)=@@@%%%' 2441_ACEOF 2442# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2443case `${MAKE-make} -f conftest.make 2>/dev/null` in 2444 *@@@%%%=?*=@@@%%%*) 2445 eval ac_cv_prog_make_${ac_make}_set=yes;; 2446 *) 2447 eval ac_cv_prog_make_${ac_make}_set=no;; 2448esac 2449rm -f conftest.make 2450fi 2451if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2452 { $as_echo "$as_me:$LINENO: result: yes" >&5 2453$as_echo "yes" >&6; } 2454 SET_MAKE= 2455else 2456 { $as_echo "$as_me:$LINENO: result: no" >&5 2457$as_echo "no" >&6; } 2458 SET_MAKE="MAKE=${MAKE-make}" 2459fi 2460 2461rm -rf .tst 2>/dev/null 2462mkdir .tst 2>/dev/null 2463if test -d .tst; then 2464 am__leading_dot=. 2465else 2466 am__leading_dot=_ 2467fi 2468rmdir .tst 2>/dev/null 2469 2470if test "`cd $srcdir && pwd`" != "`pwd`"; then 2471 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2472 # is not polluted with repeated "-I." 2473 am__isrc=' -I$(srcdir)' 2474 # test to see if srcdir already configured 2475 if test -f $srcdir/config.status; then 2476 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2477$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2478 { (exit 1); exit 1; }; } 2479 fi 2480fi 2481 2482# test whether we have cygpath 2483if test -z "$CYGPATH_W"; then 2484 if (cygpath --version) >/dev/null 2>/dev/null; then 2485 CYGPATH_W='cygpath -w' 2486 else 2487 CYGPATH_W=echo 2488 fi 2489fi 2490 2491 2492# Define the identity of the package. 2493 PACKAGE=libevent 2494 VERSION=1.4.14b-stable 2495 2496 2497cat >>confdefs.h <<_ACEOF 2498@%:@define PACKAGE "$PACKAGE" 2499_ACEOF 2500 2501 2502cat >>confdefs.h <<_ACEOF 2503@%:@define VERSION "$VERSION" 2504_ACEOF 2505 2506# Some tools Automake needs. 2507 2508ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2509 2510 2511AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2512 2513 2514AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2515 2516 2517AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2518 2519 2520MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2521 2522# We need awk for the "check" target. The system "awk" is bad on 2523# some platforms. 2524# Always define AMTAR for backward compatibility. 2525 2526AMTAR=${AMTAR-"${am_missing_run}tar"} 2527 2528am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2529 2530 2531 2532 2533 2534ac_config_headers="$ac_config_headers config.h" 2535 2536 2537# Make sure we can run config.sub. 2538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2539 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2540$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2541 { (exit 1); exit 1; }; } 2542 2543{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2544$as_echo_n "checking build system type... " >&6; } 2545if test "${ac_cv_build+set}" = set; then 2546 $as_echo_n "(cached) " >&6 2547else 2548 ac_build_alias=$build_alias 2549test "x$ac_build_alias" = x && 2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2551test "x$ac_build_alias" = x && 2552 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2553$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2554 { (exit 1); exit 1; }; } 2555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2556 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2557$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2558 { (exit 1); exit 1; }; } 2559 2560fi 2561{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2562$as_echo "$ac_cv_build" >&6; } 2563case $ac_cv_build in 2564*-*-*) ;; 2565*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2566$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2567 { (exit 1); exit 1; }; };; 2568esac 2569build=$ac_cv_build 2570ac_save_IFS=$IFS; IFS='-' 2571set x $ac_cv_build 2572shift 2573build_cpu=$1 2574build_vendor=$2 2575shift; shift 2576# Remember, the first character of IFS is used to create $*, 2577# except with old shells: 2578build_os=$* 2579IFS=$ac_save_IFS 2580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2581 2582 2583{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2584$as_echo_n "checking host system type... " >&6; } 2585if test "${ac_cv_host+set}" = set; then 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test "x$host_alias" = x; then 2589 ac_cv_host=$ac_cv_build 2590else 2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2592 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2593$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2594 { (exit 1); exit 1; }; } 2595fi 2596 2597fi 2598{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2599$as_echo "$ac_cv_host" >&6; } 2600case $ac_cv_host in 2601*-*-*) ;; 2602*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2603$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2604 { (exit 1); exit 1; }; };; 2605esac 2606host=$ac_cv_host 2607ac_save_IFS=$IFS; IFS='-' 2608set x $ac_cv_host 2609shift 2610host_cpu=$1 2611host_vendor=$2 2612shift; shift 2613# Remember, the first character of IFS is used to create $*, 2614# except with old shells: 2615host_os=$* 2616IFS=$ac_save_IFS 2617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2618 2619 2620 2621 2622cat >>confdefs.h <<\_ACEOF 2623@%:@define NUMERIC_VERSION 0x01040e00 2624_ACEOF 2625 2626 2627if test "$prefix" = "NONE"; then 2628 prefix="/usr/local" 2629fi 2630 2631ac_ext=c 2632ac_cpp='$CPP $CPPFLAGS' 2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2635ac_compiler_gnu=$ac_cv_c_compiler_gnu 2636if test -n "$ac_tool_prefix"; then 2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2638set dummy ${ac_tool_prefix}gcc; ac_word=$2 2639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2640$as_echo_n "checking for $ac_word... " >&6; } 2641if test "${ac_cv_prog_CC+set}" = set; then 2642 $as_echo_n "(cached) " >&6 2643else 2644 if test -n "$CC"; then 2645 ac_cv_prog_CC="$CC" # Let the user override the test. 2646else 2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2648for as_dir in $PATH 2649do 2650 IFS=$as_save_IFS 2651 test -z "$as_dir" && as_dir=. 2652 for ac_exec_ext in '' $ac_executable_extensions; do 2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2654 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2656 break 2 2657 fi 2658done 2659done 2660IFS=$as_save_IFS 2661 2662fi 2663fi 2664CC=$ac_cv_prog_CC 2665if test -n "$CC"; then 2666 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2667$as_echo "$CC" >&6; } 2668else 2669 { $as_echo "$as_me:$LINENO: result: no" >&5 2670$as_echo "no" >&6; } 2671fi 2672 2673 2674fi 2675if test -z "$ac_cv_prog_CC"; then 2676 ac_ct_CC=$CC 2677 # Extract the first word of "gcc", so it can be a program name with args. 2678set dummy gcc; ac_word=$2 2679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$ac_ct_CC"; then 2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2694 ac_cv_prog_ac_ct_CC="gcc" 2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704ac_ct_CC=$ac_cv_prog_ac_ct_CC 2705if test -n "$ac_ct_CC"; then 2706 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2707$as_echo "$ac_ct_CC" >&6; } 2708else 2709 { $as_echo "$as_me:$LINENO: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 if test "x$ac_ct_CC" = x; then 2714 CC="" 2715 else 2716 case $cross_compiling:$ac_tool_warned in 2717yes:) 2718{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2720ac_tool_warned=yes ;; 2721esac 2722 CC=$ac_ct_CC 2723 fi 2724else 2725 CC="$ac_cv_prog_CC" 2726fi 2727 2728if test -z "$CC"; then 2729 if test -n "$ac_tool_prefix"; then 2730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2731set dummy ${ac_tool_prefix}cc; ac_word=$2 2732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2733$as_echo_n "checking for $ac_word... " >&6; } 2734if test "${ac_cv_prog_CC+set}" = set; then 2735 $as_echo_n "(cached) " >&6 2736else 2737 if test -n "$CC"; then 2738 ac_cv_prog_CC="$CC" # Let the user override the test. 2739else 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 test -z "$as_dir" && as_dir=. 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2747 ac_cv_prog_CC="${ac_tool_prefix}cc" 2748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2749 break 2 2750 fi 2751done 2752done 2753IFS=$as_save_IFS 2754 2755fi 2756fi 2757CC=$ac_cv_prog_CC 2758if test -n "$CC"; then 2759 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2760$as_echo "$CC" >&6; } 2761else 2762 { $as_echo "$as_me:$LINENO: result: no" >&5 2763$as_echo "no" >&6; } 2764fi 2765 2766 2767 fi 2768fi 2769if test -z "$CC"; then 2770 # Extract the first word of "cc", so it can be a program name with args. 2771set dummy cc; ac_word=$2 2772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if test "${ac_cv_prog_CC+set}" = set; then 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780 ac_prog_rejected=no 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2789 ac_prog_rejected=yes 2790 continue 2791 fi 2792 ac_cv_prog_CC="cc" 2793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2794 break 2 2795 fi 2796done 2797done 2798IFS=$as_save_IFS 2799 2800if test $ac_prog_rejected = yes; then 2801 # We found a bogon in the path, so make sure we never use it. 2802 set dummy $ac_cv_prog_CC 2803 shift 2804 if test $@%:@ != 0; then 2805 # We chose a different compiler from the bogus one. 2806 # However, it has the same basename, so the bogon will be chosen 2807 # first if we set CC to just the basename; use the full file name. 2808 shift 2809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2810 fi 2811fi 2812fi 2813fi 2814CC=$ac_cv_prog_CC 2815if test -n "$CC"; then 2816 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2817$as_echo "$CC" >&6; } 2818else 2819 { $as_echo "$as_me:$LINENO: result: no" >&5 2820$as_echo "no" >&6; } 2821fi 2822 2823 2824fi 2825if test -z "$CC"; then 2826 if test -n "$ac_tool_prefix"; then 2827 for ac_prog in cl.exe 2828 do 2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2830set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if test "${ac_cv_prog_CC+set}" = set; then 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$CC"; then 2837 ac_cv_prog_CC="$CC" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856CC=$ac_cv_prog_CC 2857if test -n "$CC"; then 2858 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2859$as_echo "$CC" >&6; } 2860else 2861 { $as_echo "$as_me:$LINENO: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866 test -n "$CC" && break 2867 done 2868fi 2869if test -z "$CC"; then 2870 ac_ct_CC=$CC 2871 for ac_prog in cl.exe 2872do 2873 # Extract the first word of "$ac_prog", so it can be a program name with args. 2874set dummy $ac_prog; ac_word=$2 2875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$ac_ct_CC"; then 2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2890 ac_cv_prog_ac_ct_CC="$ac_prog" 2891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_CC=$ac_cv_prog_ac_ct_CC 2901if test -n "$ac_ct_CC"; then 2902 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2903$as_echo "$ac_ct_CC" >&6; } 2904else 2905 { $as_echo "$as_me:$LINENO: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910 test -n "$ac_ct_CC" && break 2911done 2912 2913 if test "x$ac_ct_CC" = x; then 2914 CC="" 2915 else 2916 case $cross_compiling:$ac_tool_warned in 2917yes:) 2918{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2920ac_tool_warned=yes ;; 2921esac 2922 CC=$ac_ct_CC 2923 fi 2924fi 2925 2926fi 2927 2928 2929test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2931{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2932See \`config.log' for more details." >&5 2933$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2934See \`config.log' for more details." >&2;} 2935 { (exit 1); exit 1; }; }; } 2936 2937# Provide some information about the compiler. 2938$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2939set X $ac_compile 2940ac_compiler=$2 2941{ (ac_try="$ac_compiler --version >&5" 2942case "(($ac_try" in 2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2944 *) ac_try_echo=$ac_try;; 2945esac 2946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2947$as_echo "$ac_try_echo") >&5 2948 (eval "$ac_compiler --version >&5") 2>&5 2949 ac_status=$? 2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); } 2952{ (ac_try="$ac_compiler -v >&5" 2953case "(($ac_try" in 2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2955 *) ac_try_echo=$ac_try;; 2956esac 2957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2958$as_echo "$ac_try_echo") >&5 2959 (eval "$ac_compiler -v >&5") 2>&5 2960 ac_status=$? 2961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); } 2963{ (ac_try="$ac_compiler -V >&5" 2964case "(($ac_try" in 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2966 *) ac_try_echo=$ac_try;; 2967esac 2968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2969$as_echo "$ac_try_echo") >&5 2970 (eval "$ac_compiler -V >&5") 2>&5 2971 ac_status=$? 2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2973 (exit $ac_status); } 2974 2975cat >conftest.$ac_ext <<_ACEOF 2976/* confdefs.h. */ 2977_ACEOF 2978cat confdefs.h >>conftest.$ac_ext 2979cat >>conftest.$ac_ext <<_ACEOF 2980/* end confdefs.h. */ 2981 2982int 2983main () 2984{ 2985 2986 ; 2987 return 0; 2988} 2989_ACEOF 2990ac_clean_files_save=$ac_clean_files 2991ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2992# Try to create an executable without -o first, disregard a.out. 2993# It will help us diagnose broken compilers, and finding out an intuition 2994# of exeext. 2995{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2996$as_echo_n "checking for C compiler default output file name... " >&6; } 2997ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2998 2999# The possible output files: 3000ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3001 3002ac_rmfiles= 3003for ac_file in $ac_files 3004do 3005 case $ac_file in 3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3008 esac 3009done 3010rm -f $ac_rmfiles 3011 3012if { (ac_try="$ac_link_default" 3013case "(($ac_try" in 3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3015 *) ac_try_echo=$ac_try;; 3016esac 3017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3018$as_echo "$ac_try_echo") >&5 3019 (eval "$ac_link_default") 2>&5 3020 ac_status=$? 3021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3022 (exit $ac_status); }; then 3023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3024# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3025# in a Makefile. We should not override ac_cv_exeext if it was cached, 3026# so that the user can short-circuit this test for compilers unknown to 3027# Autoconf. 3028for ac_file in $ac_files '' 3029do 3030 test -f "$ac_file" || continue 3031 case $ac_file in 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3033 ;; 3034 [ab].out ) 3035 # We found the default executable, but exeext='' is most 3036 # certainly right. 3037 break;; 3038 *.* ) 3039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3040 then :; else 3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3042 fi 3043 # We set ac_cv_exeext here because the later test for it is not 3044 # safe: cross compilers may not add the suffix if given an `-o' 3045 # argument, so we may need to know it at that point already. 3046 # Even if this section looks crufty: it has the advantage of 3047 # actually working. 3048 break;; 3049 * ) 3050 break;; 3051 esac 3052done 3053test "$ac_cv_exeext" = no && ac_cv_exeext= 3054 3055else 3056 ac_file='' 3057fi 3058 3059{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3060$as_echo "$ac_file" >&6; } 3061if test -z "$ac_file"; then 3062 $as_echo "$as_me: failed program was:" >&5 3063sed 's/^/| /' conftest.$ac_ext >&5 3064 3065{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3067{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3068See \`config.log' for more details." >&5 3069$as_echo "$as_me: error: C compiler cannot create executables 3070See \`config.log' for more details." >&2;} 3071 { (exit 77); exit 77; }; }; } 3072fi 3073 3074ac_exeext=$ac_cv_exeext 3075 3076# Check that the compiler produces executables we can run. If not, either 3077# the compiler is broken, or we cross compile. 3078{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3079$as_echo_n "checking whether the C compiler works... " >&6; } 3080# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3081# If not cross compiling, check that we can run a simple program. 3082if test "$cross_compiling" != yes; then 3083 if { ac_try='./$ac_file' 3084 { (case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3089$as_echo "$ac_try_echo") >&5 3090 (eval "$ac_try") 2>&5 3091 ac_status=$? 3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3093 (exit $ac_status); }; }; then 3094 cross_compiling=no 3095 else 3096 if test "$cross_compiling" = maybe; then 3097 cross_compiling=yes 3098 else 3099 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3101{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3102If you meant to cross compile, use \`--host'. 3103See \`config.log' for more details." >&5 3104$as_echo "$as_me: error: cannot run C compiled programs. 3105If you meant to cross compile, use \`--host'. 3106See \`config.log' for more details." >&2;} 3107 { (exit 1); exit 1; }; }; } 3108 fi 3109 fi 3110fi 3111{ $as_echo "$as_me:$LINENO: result: yes" >&5 3112$as_echo "yes" >&6; } 3113 3114rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3115ac_clean_files=$ac_clean_files_save 3116# Check that the compiler produces executables we can run. If not, either 3117# the compiler is broken, or we cross compile. 3118{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3119$as_echo_n "checking whether we are cross compiling... " >&6; } 3120{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3121$as_echo "$cross_compiling" >&6; } 3122 3123{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3124$as_echo_n "checking for suffix of executables... " >&6; } 3125if { (ac_try="$ac_link" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3131$as_echo "$ac_try_echo") >&5 3132 (eval "$ac_link") 2>&5 3133 ac_status=$? 3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); }; then 3136 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3137# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3138# work properly (i.e., refer to `conftest.exe'), while it won't with 3139# `rm'. 3140for ac_file in conftest.exe conftest conftest.*; do 3141 test -f "$ac_file" || continue 3142 case $ac_file in 3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3145 break;; 3146 * ) break;; 3147 esac 3148done 3149else 3150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3153See \`config.log' for more details." >&5 3154$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3155See \`config.log' for more details." >&2;} 3156 { (exit 1); exit 1; }; }; } 3157fi 3158 3159rm -f conftest$ac_cv_exeext 3160{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3161$as_echo "$ac_cv_exeext" >&6; } 3162 3163rm -f conftest.$ac_ext 3164EXEEXT=$ac_cv_exeext 3165ac_exeext=$EXEEXT 3166{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3167$as_echo_n "checking for suffix of object files... " >&6; } 3168if test "${ac_cv_objext+set}" = set; then 3169 $as_echo_n "(cached) " >&6 3170else 3171 cat >conftest.$ac_ext <<_ACEOF 3172/* confdefs.h. */ 3173_ACEOF 3174cat confdefs.h >>conftest.$ac_ext 3175cat >>conftest.$ac_ext <<_ACEOF 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186rm -f conftest.o conftest.obj 3187if { (ac_try="$ac_compile" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3193$as_echo "$ac_try_echo") >&5 3194 (eval "$ac_compile") 2>&5 3195 ac_status=$? 3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 (exit $ac_status); }; then 3198 for ac_file in conftest.o conftest.obj conftest.*; do 3199 test -f "$ac_file" || continue; 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3203 break;; 3204 esac 3205done 3206else 3207 $as_echo "$as_me: failed program was:" >&5 3208sed 's/^/| /' conftest.$ac_ext >&5 3209 3210{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3212{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3213See \`config.log' for more details." >&5 3214$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3215See \`config.log' for more details." >&2;} 3216 { (exit 1); exit 1; }; }; } 3217fi 3218 3219rm -f conftest.$ac_cv_objext conftest.$ac_ext 3220fi 3221{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3222$as_echo "$ac_cv_objext" >&6; } 3223OBJEXT=$ac_cv_objext 3224ac_objext=$OBJEXT 3225{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3226$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3227if test "${ac_cv_c_compiler_gnu+set}" = set; then 3228 $as_echo_n "(cached) " >&6 3229else 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240#ifndef __GNUC__ 3241 choke me 3242#endif 3243 3244 ; 3245 return 0; 3246} 3247_ACEOF 3248rm -f conftest.$ac_objext 3249if { (ac_try="$ac_compile" 3250case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253esac 3254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3255$as_echo "$ac_try_echo") >&5 3256 (eval "$ac_compile") 2>conftest.er1 3257 ac_status=$? 3258 grep -v '^ *+' conftest.er1 >conftest.err 3259 rm -f conftest.er1 3260 cat conftest.err >&5 3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); } && { 3263 test -z "$ac_c_werror_flag" || 3264 test ! -s conftest.err 3265 } && test -s conftest.$ac_objext; then 3266 ac_compiler_gnu=yes 3267else 3268 $as_echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271 ac_compiler_gnu=no 3272fi 3273 3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3275ac_cv_c_compiler_gnu=$ac_compiler_gnu 3276 3277fi 3278{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3279$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3280if test $ac_compiler_gnu = yes; then 3281 GCC=yes 3282else 3283 GCC= 3284fi 3285ac_test_CFLAGS=${CFLAGS+set} 3286ac_save_CFLAGS=$CFLAGS 3287{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3288$as_echo_n "checking whether $CC accepts -g... " >&6; } 3289if test "${ac_cv_prog_cc_g+set}" = set; then 3290 $as_echo_n "(cached) " >&6 3291else 3292 ac_save_c_werror_flag=$ac_c_werror_flag 3293 ac_c_werror_flag=yes 3294 ac_cv_prog_cc_g=no 3295 CFLAGS="-g" 3296 cat >conftest.$ac_ext <<_ACEOF 3297/* confdefs.h. */ 3298_ACEOF 3299cat confdefs.h >>conftest.$ac_ext 3300cat >>conftest.$ac_ext <<_ACEOF 3301/* end confdefs.h. */ 3302 3303int 3304main () 3305{ 3306 3307 ; 3308 return 0; 3309} 3310_ACEOF 3311rm -f conftest.$ac_objext 3312if { (ac_try="$ac_compile" 3313case "(($ac_try" in 3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3315 *) ac_try_echo=$ac_try;; 3316esac 3317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3318$as_echo "$ac_try_echo") >&5 3319 (eval "$ac_compile") 2>conftest.er1 3320 ac_status=$? 3321 grep -v '^ *+' conftest.er1 >conftest.err 3322 rm -f conftest.er1 3323 cat conftest.err >&5 3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } && { 3326 test -z "$ac_c_werror_flag" || 3327 test ! -s conftest.err 3328 } && test -s conftest.$ac_objext; then 3329 ac_cv_prog_cc_g=yes 3330else 3331 $as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334 CFLAGS="" 3335 cat >conftest.$ac_ext <<_ACEOF 3336/* confdefs.h. */ 3337_ACEOF 3338cat confdefs.h >>conftest.$ac_ext 3339cat >>conftest.$ac_ext <<_ACEOF 3340/* end confdefs.h. */ 3341 3342int 3343main () 3344{ 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350rm -f conftest.$ac_objext 3351if { (ac_try="$ac_compile" 3352case "(($ac_try" in 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354 *) ac_try_echo=$ac_try;; 3355esac 3356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3357$as_echo "$ac_try_echo") >&5 3358 (eval "$ac_compile") 2>conftest.er1 3359 ac_status=$? 3360 grep -v '^ *+' conftest.er1 >conftest.err 3361 rm -f conftest.er1 3362 cat conftest.err >&5 3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); } && { 3365 test -z "$ac_c_werror_flag" || 3366 test ! -s conftest.err 3367 } && test -s conftest.$ac_objext; then 3368 : 3369else 3370 $as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373 ac_c_werror_flag=$ac_save_c_werror_flag 3374 CFLAGS="-g" 3375 cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381 3382int 3383main () 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390rm -f conftest.$ac_objext 3391if { (ac_try="$ac_compile" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3397$as_echo "$ac_try_echo") >&5 3398 (eval "$ac_compile") 2>conftest.er1 3399 ac_status=$? 3400 grep -v '^ *+' conftest.er1 >conftest.err 3401 rm -f conftest.er1 3402 cat conftest.err >&5 3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); } && { 3405 test -z "$ac_c_werror_flag" || 3406 test ! -s conftest.err 3407 } && test -s conftest.$ac_objext; then 3408 ac_cv_prog_cc_g=yes 3409else 3410 $as_echo "$as_me: failed program was:" >&5 3411sed 's/^/| /' conftest.$ac_ext >&5 3412 3413 3414fi 3415 3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3417fi 3418 3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3420fi 3421 3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423 ac_c_werror_flag=$ac_save_c_werror_flag 3424fi 3425{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3426$as_echo "$ac_cv_prog_cc_g" >&6; } 3427if test "$ac_test_CFLAGS" = set; then 3428 CFLAGS=$ac_save_CFLAGS 3429elif test $ac_cv_prog_cc_g = yes; then 3430 if test "$GCC" = yes; then 3431 CFLAGS="-g -O2" 3432 else 3433 CFLAGS="-g" 3434 fi 3435else 3436 if test "$GCC" = yes; then 3437 CFLAGS="-O2" 3438 else 3439 CFLAGS= 3440 fi 3441fi 3442{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3443$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3444if test "${ac_cv_prog_cc_c89+set}" = set; then 3445 $as_echo_n "(cached) " >&6 3446else 3447 ac_cv_prog_cc_c89=no 3448ac_save_CC=$CC 3449cat >conftest.$ac_ext <<_ACEOF 3450/* confdefs.h. */ 3451_ACEOF 3452cat confdefs.h >>conftest.$ac_ext 3453cat >>conftest.$ac_ext <<_ACEOF 3454/* end confdefs.h. */ 3455#include <stdarg.h> 3456#include <stdio.h> 3457#include <sys/types.h> 3458#include <sys/stat.h> 3459/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3460struct buf { int x; }; 3461FILE * (*rcsopen) (struct buf *, struct stat *, int); 3462static char *e (p, i) 3463 char **p; 3464 int i; 3465{ 3466 return p[i]; 3467} 3468static char *f (char * (*g) (char **, int), char **p, ...) 3469{ 3470 char *s; 3471 va_list v; 3472 va_start (v,p); 3473 s = g (p, va_arg (v,int)); 3474 va_end (v); 3475 return s; 3476} 3477 3478/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3479 function prototypes and stuff, but not '\xHH' hex character constants. 3480 These don't provoke an error unfortunately, instead are silently treated 3481 as 'x'. The following induces an error, until -std is added to get 3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3483 array size at least. It's necessary to write '\x00'==0 to get something 3484 that's true only with -std. */ 3485int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3486 3487/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3488 inside strings and character constants. */ 3489#define FOO(x) 'x' 3490int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3491 3492int test (int i, double x); 3493struct s1 {int (*f) (int a);}; 3494struct s2 {int (*f) (double a);}; 3495int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3496int argc; 3497char **argv; 3498int 3499main () 3500{ 3501return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3508do 3509 CC="$ac_save_CC $ac_arg" 3510 rm -f conftest.$ac_objext 3511if { (ac_try="$ac_compile" 3512case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3517$as_echo "$ac_try_echo") >&5 3518 (eval "$ac_compile") 2>conftest.er1 3519 ac_status=$? 3520 grep -v '^ *+' conftest.er1 >conftest.err 3521 rm -f conftest.er1 3522 cat conftest.err >&5 3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); } && { 3525 test -z "$ac_c_werror_flag" || 3526 test ! -s conftest.err 3527 } && test -s conftest.$ac_objext; then 3528 ac_cv_prog_cc_c89=$ac_arg 3529else 3530 $as_echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533 3534fi 3535 3536rm -f core conftest.err conftest.$ac_objext 3537 test "x$ac_cv_prog_cc_c89" != "xno" && break 3538done 3539rm -f conftest.$ac_ext 3540CC=$ac_save_CC 3541 3542fi 3543# AC_CACHE_VAL 3544case "x$ac_cv_prog_cc_c89" in 3545 x) 3546 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3547$as_echo "none needed" >&6; } ;; 3548 xno) 3549 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3550$as_echo "unsupported" >&6; } ;; 3551 *) 3552 CC="$CC $ac_cv_prog_cc_c89" 3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3554$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3555esac 3556 3557 3558ac_ext=c 3559ac_cpp='$CPP $CPPFLAGS' 3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3562ac_compiler_gnu=$ac_cv_c_compiler_gnu 3563DEPDIR="${am__leading_dot}deps" 3564 3565ac_config_commands="$ac_config_commands depfiles" 3566 3567 3568am_make=${MAKE-make} 3569cat > confinc << 'END' 3570am__doit: 3571 @echo this is the am__doit target 3572.PHONY: am__doit 3573END 3574# If we don't find an include directive, just comment out the code. 3575{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3576$as_echo_n "checking for style of include used by $am_make... " >&6; } 3577am__include="#" 3578am__quote= 3579_am_result=none 3580# First try GNU make style include. 3581echo "include confinc" > confmf 3582# Ignore all kinds of additional output from `make'. 3583case `$am_make -s -f confmf 2> /dev/null` in #( 3584*the\ am__doit\ target*) 3585 am__include=include 3586 am__quote= 3587 _am_result=GNU 3588 ;; 3589esac 3590# Now try BSD make style include. 3591if test "$am__include" = "#"; then 3592 echo '.include "confinc"' > confmf 3593 case `$am_make -s -f confmf 2> /dev/null` in #( 3594 *the\ am__doit\ target*) 3595 am__include=.include 3596 am__quote="\"" 3597 _am_result=BSD 3598 ;; 3599 esac 3600fi 3601 3602 3603{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3604$as_echo "$_am_result" >&6; } 3605rm -f confinc confmf 3606 3607@%:@ Check whether --enable-dependency-tracking was given. 3608if test "${enable_dependency_tracking+set}" = set; then 3609 enableval=$enable_dependency_tracking; 3610fi 3611 3612if test "x$enable_dependency_tracking" != xno; then 3613 am_depcomp="$ac_aux_dir/depcomp" 3614 AMDEPBACKSLASH='\' 3615fi 3616 if test "x$enable_dependency_tracking" != xno; then 3617 AMDEP_TRUE= 3618 AMDEP_FALSE='#' 3619else 3620 AMDEP_TRUE='#' 3621 AMDEP_FALSE= 3622fi 3623 3624 3625 3626depcc="$CC" am_compiler_list= 3627 3628{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3629$as_echo_n "checking dependency style of $depcc... " >&6; } 3630if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3631 $as_echo_n "(cached) " >&6 3632else 3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3634 # We make a subdir and do the tests there. Otherwise we can end up 3635 # making bogus files that we don't know about and never remove. For 3636 # instance it was reported that on HP-UX the gcc test will end up 3637 # making a dummy file named `D' -- because `-MD' means `put the output 3638 # in D'. 3639 mkdir conftest.dir 3640 # Copy depcomp to subdir because otherwise we won't find it if we're 3641 # using a relative directory. 3642 cp "$am_depcomp" conftest.dir 3643 cd conftest.dir 3644 # We will build objects and dependencies in a subdirectory because 3645 # it helps to detect inapplicable dependency modes. For instance 3646 # both Tru64's cc and ICC support -MD to output dependencies as a 3647 # side effect of compilation, but ICC will put the dependencies in 3648 # the current directory while Tru64 will put them in the object 3649 # directory. 3650 mkdir sub 3651 3652 am_cv_CC_dependencies_compiler_type=none 3653 if test "$am_compiler_list" = ""; then 3654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3655 fi 3656 am__universal=false 3657 case " $depcc " in #( 3658 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3659 esac 3660 3661 for depmode in $am_compiler_list; do 3662 # Setup a source with many dependencies, because some compilers 3663 # like to wrap large dependency lists on column 80 (with \), and 3664 # we should not choose a depcomp mode which is confused by this. 3665 # 3666 # We need to recreate these files for each test, as the compiler may 3667 # overwrite some of them when testing with obscure command lines. 3668 # This happens at least with the AIX C compiler. 3669 : > sub/conftest.c 3670 for i in 1 2 3 4 5 6; do 3671 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3673 # Solaris 8's {/usr,}/bin/sh. 3674 touch sub/conftst$i.h 3675 done 3676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3677 3678 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3679 # mode. It turns out that the SunPro C++ compiler does not properly 3680 # handle `-M -o', and we need to detect this. Also, some Intel 3681 # versions had trouble with output in subdirs 3682 am__obj=sub/conftest.${OBJEXT-o} 3683 am__minus_obj="-o $am__obj" 3684 case $depmode in 3685 gcc) 3686 # This depmode causes a compiler race in universal mode. 3687 test "$am__universal" = false || continue 3688 ;; 3689 nosideeffect) 3690 # after this tag, mechanisms are not by side-effect, so they'll 3691 # only be used when explicitly requested 3692 if test "x$enable_dependency_tracking" = xyes; then 3693 continue 3694 else 3695 break 3696 fi 3697 ;; 3698 msvisualcpp | msvcmsys) 3699 # This compiler won't grok `-c -o', but also, the minuso test has 3700 # not run yet. These depmodes are late enough in the game, and 3701 # so weak that their functioning should not be impacted. 3702 am__obj=conftest.${OBJEXT-o} 3703 am__minus_obj= 3704 ;; 3705 none) break ;; 3706 esac 3707 if depmode=$depmode \ 3708 source=sub/conftest.c object=$am__obj \ 3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3711 >/dev/null 2>conftest.err && 3712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3716 # icc doesn't choke on unknown options, it will just issue warnings 3717 # or remarks (even with -Werror). So we grep stderr for any message 3718 # that says an option was ignored or not supported. 3719 # When given -MP, icc 7.0 and 7.1 complain thusly: 3720 # icc: Command line warning: ignoring option '-M'; no argument required 3721 # The diagnosis changed in icc 8.0: 3722 # icc: Command line remark: option '-MP' not supported 3723 if (grep 'ignoring option' conftest.err || 3724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3725 am_cv_CC_dependencies_compiler_type=$depmode 3726 break 3727 fi 3728 fi 3729 done 3730 3731 cd .. 3732 rm -rf conftest.dir 3733else 3734 am_cv_CC_dependencies_compiler_type=none 3735fi 3736 3737fi 3738{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3739$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3740CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3741 3742 if 3743 test "x$enable_dependency_tracking" != xno \ 3744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3745 am__fastdepCC_TRUE= 3746 am__fastdepCC_FALSE='#' 3747else 3748 am__fastdepCC_TRUE='#' 3749 am__fastdepCC_FALSE= 3750fi 3751 3752 3753# Find a good install program. We prefer a C program (faster), 3754# so one script is as good as another. But avoid the broken or 3755# incompatible versions: 3756# SysV /etc/install, /usr/sbin/install 3757# SunOS /usr/etc/install 3758# IRIX /sbin/install 3759# AIX /bin/install 3760# AmigaOS /C/install, which installs bootblocks on floppy discs 3761# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3762# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3763# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3764# OS/2's system install, which has a completely different semantic 3765# ./install, which can be erroneously created by make from ./install.sh. 3766# Reject install programs that cannot install multiple files. 3767{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3768$as_echo_n "checking for a BSD-compatible install... " >&6; } 3769if test -z "$INSTALL"; then 3770if test "${ac_cv_path_install+set}" = set; then 3771 $as_echo_n "(cached) " >&6 3772else 3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3774for as_dir in $PATH 3775do 3776 IFS=$as_save_IFS 3777 test -z "$as_dir" && as_dir=. 3778 # Account for people who put trailing slashes in PATH elements. 3779case $as_dir/ in 3780 ./ | .// | /cC/* | \ 3781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3782 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3783 /usr/ucb/* ) ;; 3784 *) 3785 # OSF1 and SCO ODT 3.0 have their own names for install. 3786 # Don't use installbsd from OSF since it installs stuff as root 3787 # by default. 3788 for ac_prog in ginstall scoinst install; do 3789 for ac_exec_ext in '' $ac_executable_extensions; do 3790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3791 if test $ac_prog = install && 3792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3793 # AIX install. It has an incompatible calling convention. 3794 : 3795 elif test $ac_prog = install && 3796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3797 # program-specific install script used by HP pwplus--don't use. 3798 : 3799 else 3800 rm -rf conftest.one conftest.two conftest.dir 3801 echo one > conftest.one 3802 echo two > conftest.two 3803 mkdir conftest.dir 3804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3805 test -s conftest.one && test -s conftest.two && 3806 test -s conftest.dir/conftest.one && 3807 test -s conftest.dir/conftest.two 3808 then 3809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3810 break 3 3811 fi 3812 fi 3813 fi 3814 done 3815 done 3816 ;; 3817esac 3818 3819done 3820IFS=$as_save_IFS 3821 3822rm -rf conftest.one conftest.two conftest.dir 3823 3824fi 3825 if test "${ac_cv_path_install+set}" = set; then 3826 INSTALL=$ac_cv_path_install 3827 else 3828 # As a last resort, use the slow shell script. Don't cache a 3829 # value for INSTALL within a source directory, because that will 3830 # break other packages using the cache if that directory is 3831 # removed, or if the value is a relative name. 3832 INSTALL=$ac_install_sh 3833 fi 3834fi 3835{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3836$as_echo "$INSTALL" >&6; } 3837 3838# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3839# It thinks the first close brace ends the variable substitution. 3840test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3841 3842test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3843 3844test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3845 3846{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3847$as_echo_n "checking whether ln -s works... " >&6; } 3848LN_S=$as_ln_s 3849if test "$LN_S" = "ln -s"; then 3850 { $as_echo "$as_me:$LINENO: result: yes" >&5 3851$as_echo "yes" >&6; } 3852else 3853 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3854$as_echo "no, using $LN_S" >&6; } 3855fi 3856 3857 3858 3859ac_ext=c 3860ac_cpp='$CPP $CPPFLAGS' 3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3863ac_compiler_gnu=$ac_cv_c_compiler_gnu 3864{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3865$as_echo_n "checking how to run the C preprocessor... " >&6; } 3866# On Suns, sometimes $CPP names a directory. 3867if test -n "$CPP" && test -d "$CPP"; then 3868 CPP= 3869fi 3870if test -z "$CPP"; then 3871 if test "${ac_cv_prog_CPP+set}" = set; then 3872 $as_echo_n "(cached) " >&6 3873else 3874 # Double quotes because CPP needs to be expanded 3875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3876 do 3877 ac_preproc_ok=false 3878for ac_c_preproc_warn_flag in '' yes 3879do 3880 # Use a header file that comes with gcc, so configuring glibc 3881 # with a fresh cross-compiler works. 3882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3883 # <limits.h> exists even on freestanding compilers. 3884 # On the NeXT, cc -E runs the code through the compiler's parser, 3885 # not just through cpp. "Syntax error" is here to catch this case. 3886 cat >conftest.$ac_ext <<_ACEOF 3887/* confdefs.h. */ 3888_ACEOF 3889cat confdefs.h >>conftest.$ac_ext 3890cat >>conftest.$ac_ext <<_ACEOF 3891/* end confdefs.h. */ 3892@%:@ifdef __STDC__ 3893@%:@ include <limits.h> 3894@%:@else 3895@%:@ include <assert.h> 3896@%:@endif 3897 Syntax error 3898_ACEOF 3899if { (ac_try="$ac_cpp conftest.$ac_ext" 3900case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903esac 3904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3905$as_echo "$ac_try_echo") >&5 3906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3907 ac_status=$? 3908 grep -v '^ *+' conftest.er1 >conftest.err 3909 rm -f conftest.er1 3910 cat conftest.err >&5 3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } >/dev/null && { 3913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3914 test ! -s conftest.err 3915 }; then 3916 : 3917else 3918 $as_echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921 # Broken: fails on valid input. 3922continue 3923fi 3924 3925rm -f conftest.err conftest.$ac_ext 3926 3927 # OK, works on sane cases. Now check whether nonexistent headers 3928 # can be detected and how. 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@%:@include <ac_nonexistent.h> 3936_ACEOF 3937if { (ac_try="$ac_cpp conftest.$ac_ext" 3938case "(($ac_try" in 3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3940 *) ac_try_echo=$ac_try;; 3941esac 3942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3943$as_echo "$ac_try_echo") >&5 3944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3945 ac_status=$? 3946 grep -v '^ *+' conftest.er1 >conftest.err 3947 rm -f conftest.er1 3948 cat conftest.err >&5 3949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); } >/dev/null && { 3951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3952 test ! -s conftest.err 3953 }; then 3954 # Broken: success on invalid input. 3955continue 3956else 3957 $as_echo "$as_me: failed program was:" >&5 3958sed 's/^/| /' conftest.$ac_ext >&5 3959 3960 # Passes both tests. 3961ac_preproc_ok=: 3962break 3963fi 3964 3965rm -f conftest.err conftest.$ac_ext 3966 3967done 3968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3969rm -f conftest.err conftest.$ac_ext 3970if $ac_preproc_ok; then 3971 break 3972fi 3973 3974 done 3975 ac_cv_prog_CPP=$CPP 3976 3977fi 3978 CPP=$ac_cv_prog_CPP 3979else 3980 ac_cv_prog_CPP=$CPP 3981fi 3982{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3983$as_echo "$CPP" >&6; } 3984ac_preproc_ok=false 3985for ac_c_preproc_warn_flag in '' yes 3986do 3987 # Use a header file that comes with gcc, so configuring glibc 3988 # with a fresh cross-compiler works. 3989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3990 # <limits.h> exists even on freestanding compilers. 3991 # On the NeXT, cc -E runs the code through the compiler's parser, 3992 # not just through cpp. "Syntax error" is here to catch this case. 3993 cat >conftest.$ac_ext <<_ACEOF 3994/* confdefs.h. */ 3995_ACEOF 3996cat confdefs.h >>conftest.$ac_ext 3997cat >>conftest.$ac_ext <<_ACEOF 3998/* end confdefs.h. */ 3999@%:@ifdef __STDC__ 4000@%:@ include <limits.h> 4001@%:@else 4002@%:@ include <assert.h> 4003@%:@endif 4004 Syntax error 4005_ACEOF 4006if { (ac_try="$ac_cpp conftest.$ac_ext" 4007case "(($ac_try" in 4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4009 *) ac_try_echo=$ac_try;; 4010esac 4011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4012$as_echo "$ac_try_echo") >&5 4013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4014 ac_status=$? 4015 grep -v '^ *+' conftest.er1 >conftest.err 4016 rm -f conftest.er1 4017 cat conftest.err >&5 4018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); } >/dev/null && { 4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4021 test ! -s conftest.err 4022 }; then 4023 : 4024else 4025 $as_echo "$as_me: failed program was:" >&5 4026sed 's/^/| /' conftest.$ac_ext >&5 4027 4028 # Broken: fails on valid input. 4029continue 4030fi 4031 4032rm -f conftest.err conftest.$ac_ext 4033 4034 # OK, works on sane cases. Now check whether nonexistent headers 4035 # can be detected and how. 4036 cat >conftest.$ac_ext <<_ACEOF 4037/* confdefs.h. */ 4038_ACEOF 4039cat confdefs.h >>conftest.$ac_ext 4040cat >>conftest.$ac_ext <<_ACEOF 4041/* end confdefs.h. */ 4042@%:@include <ac_nonexistent.h> 4043_ACEOF 4044if { (ac_try="$ac_cpp conftest.$ac_ext" 4045case "(($ac_try" in 4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4047 *) ac_try_echo=$ac_try;; 4048esac 4049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4050$as_echo "$ac_try_echo") >&5 4051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4052 ac_status=$? 4053 grep -v '^ *+' conftest.er1 >conftest.err 4054 rm -f conftest.er1 4055 cat conftest.err >&5 4056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4057 (exit $ac_status); } >/dev/null && { 4058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4059 test ! -s conftest.err 4060 }; then 4061 # Broken: success on invalid input. 4062continue 4063else 4064 $as_echo "$as_me: failed program was:" >&5 4065sed 's/^/| /' conftest.$ac_ext >&5 4066 4067 # Passes both tests. 4068ac_preproc_ok=: 4069break 4070fi 4071 4072rm -f conftest.err conftest.$ac_ext 4073 4074done 4075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4076rm -f conftest.err conftest.$ac_ext 4077if $ac_preproc_ok; then 4078 : 4079else 4080 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4082{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4083See \`config.log' for more details." >&5 4084$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4085See \`config.log' for more details." >&2;} 4086 { (exit 1); exit 1; }; }; } 4087fi 4088 4089ac_ext=c 4090ac_cpp='$CPP $CPPFLAGS' 4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4093ac_compiler_gnu=$ac_cv_c_compiler_gnu 4094 4095 4096{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4097$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4098if test "${ac_cv_path_GREP+set}" = set; then 4099 $as_echo_n "(cached) " >&6 4100else 4101 if test -z "$GREP"; then 4102 ac_path_GREP_found=false 4103 # Loop through the user's path and test for each of PROGNAME-LIST 4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4106do 4107 IFS=$as_save_IFS 4108 test -z "$as_dir" && as_dir=. 4109 for ac_prog in grep ggrep; do 4110 for ac_exec_ext in '' $ac_executable_extensions; do 4111 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4112 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4113# Check for GNU ac_path_GREP and select it if it is found. 4114 # Check for GNU $ac_path_GREP 4115case `"$ac_path_GREP" --version 2>&1` in 4116*GNU*) 4117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4118*) 4119 ac_count=0 4120 $as_echo_n 0123456789 >"conftest.in" 4121 while : 4122 do 4123 cat "conftest.in" "conftest.in" >"conftest.tmp" 4124 mv "conftest.tmp" "conftest.in" 4125 cp "conftest.in" "conftest.nl" 4126 $as_echo 'GREP' >> "conftest.nl" 4127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4129 ac_count=`expr $ac_count + 1` 4130 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4131 # Best one so far, save it but keep looking for a better one 4132 ac_cv_path_GREP="$ac_path_GREP" 4133 ac_path_GREP_max=$ac_count 4134 fi 4135 # 10*(2^10) chars as input seems more than enough 4136 test $ac_count -gt 10 && break 4137 done 4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4139esac 4140 4141 $ac_path_GREP_found && break 3 4142 done 4143 done 4144done 4145IFS=$as_save_IFS 4146 if test -z "$ac_cv_path_GREP"; then 4147 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4148$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4149 { (exit 1); exit 1; }; } 4150 fi 4151else 4152 ac_cv_path_GREP=$GREP 4153fi 4154 4155fi 4156{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4157$as_echo "$ac_cv_path_GREP" >&6; } 4158 GREP="$ac_cv_path_GREP" 4159 4160 4161{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4162$as_echo_n "checking for egrep... " >&6; } 4163if test "${ac_cv_path_EGREP+set}" = set; then 4164 $as_echo_n "(cached) " >&6 4165else 4166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4167 then ac_cv_path_EGREP="$GREP -E" 4168 else 4169 if test -z "$EGREP"; then 4170 ac_path_EGREP_found=false 4171 # Loop through the user's path and test for each of PROGNAME-LIST 4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 for ac_prog in egrep; do 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4181# Check for GNU ac_path_EGREP and select it if it is found. 4182 # Check for GNU $ac_path_EGREP 4183case `"$ac_path_EGREP" --version 2>&1` in 4184*GNU*) 4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4186*) 4187 ac_count=0 4188 $as_echo_n 0123456789 >"conftest.in" 4189 while : 4190 do 4191 cat "conftest.in" "conftest.in" >"conftest.tmp" 4192 mv "conftest.tmp" "conftest.in" 4193 cp "conftest.in" "conftest.nl" 4194 $as_echo 'EGREP' >> "conftest.nl" 4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4197 ac_count=`expr $ac_count + 1` 4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4199 # Best one so far, save it but keep looking for a better one 4200 ac_cv_path_EGREP="$ac_path_EGREP" 4201 ac_path_EGREP_max=$ac_count 4202 fi 4203 # 10*(2^10) chars as input seems more than enough 4204 test $ac_count -gt 10 && break 4205 done 4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4207esac 4208 4209 $ac_path_EGREP_found && break 3 4210 done 4211 done 4212done 4213IFS=$as_save_IFS 4214 if test -z "$ac_cv_path_EGREP"; then 4215 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4216$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4217 { (exit 1); exit 1; }; } 4218 fi 4219else 4220 ac_cv_path_EGREP=$EGREP 4221fi 4222 4223 fi 4224fi 4225{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4226$as_echo "$ac_cv_path_EGREP" >&6; } 4227 EGREP="$ac_cv_path_EGREP" 4228 4229 4230if test $ac_cv_c_compiler_gnu = yes; then 4231 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 4232$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4233if test "${ac_cv_prog_gcc_traditional+set}" = set; then 4234 $as_echo_n "(cached) " >&6 4235else 4236 ac_pattern="Autoconf.*'x'" 4237 cat >conftest.$ac_ext <<_ACEOF 4238/* confdefs.h. */ 4239_ACEOF 4240cat confdefs.h >>conftest.$ac_ext 4241cat >>conftest.$ac_ext <<_ACEOF 4242/* end confdefs.h. */ 4243#include <sgtty.h> 4244Autoconf TIOCGETP 4245_ACEOF 4246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4247 $EGREP "$ac_pattern" >/dev/null 2>&1; then 4248 ac_cv_prog_gcc_traditional=yes 4249else 4250 ac_cv_prog_gcc_traditional=no 4251fi 4252rm -f conftest* 4253 4254 4255 if test $ac_cv_prog_gcc_traditional = no; then 4256 cat >conftest.$ac_ext <<_ACEOF 4257/* confdefs.h. */ 4258_ACEOF 4259cat confdefs.h >>conftest.$ac_ext 4260cat >>conftest.$ac_ext <<_ACEOF 4261/* end confdefs.h. */ 4262#include <termio.h> 4263Autoconf TCGETA 4264_ACEOF 4265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4266 $EGREP "$ac_pattern" >/dev/null 2>&1; then 4267 ac_cv_prog_gcc_traditional=yes 4268fi 4269rm -f conftest* 4270 4271 fi 4272fi 4273{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 4274$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4275 if test $ac_cv_prog_gcc_traditional = yes; then 4276 CC="$CC -traditional" 4277 fi 4278fi 4279 4280if test "$GCC" = yes ; then 4281 CFLAGS="$CFLAGS -Wall" 4282 # And disable the strict-aliasing optimization, since it breaks 4283 # our sockaddr-handling code in strange ways. 4284 CFLAGS="$CFLAGS -fno-strict-aliasing" 4285fi 4286 4287{ $as_echo "$as_me:$LINENO: checking whether we need extra flags to make libc reentrant" >&5 4288$as_echo_n "checking whether we need extra flags to make libc reentrant... " >&6; } 4289case $host in 4290 *solaris* | *-osf* | *-hpux* ) 4291 { $as_echo "$as_me:$LINENO: result: -D_REENTRANT" >&5 4292$as_echo "-D_REENTRANT" >&6; } 4293 CFLAGS="$CFLAGS -D_REENTRANT" 4294 ;; 4295 *-aix* | *-freebsd* | *-darwin* ) 4296 { $as_echo "$as_me:$LINENO: result: -D_THREAD_SAFE" >&5 4297$as_echo "-D_THREAD_SAFE" >&6; } 4298 CFLAGS="$CFLAGS -D_THREAD_SAFE" 4299 ;; 4300 *) 4301 { $as_echo "$as_me:$LINENO: result: no" >&5 4302$as_echo "no" >&6; } 4303 ;; 4304esac 4305 4306@%:@ Check whether --enable-gcc-warnings was given. 4307if test "${enable_gcc_warnings+set}" = set; then 4308 enableval=$enable_gcc_warnings; 4309fi 4310 4311 4312case `pwd` in 4313 *\ * | *\ *) 4314 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4315$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4316esac 4317 4318 4319 4320macro_version='2.2.6b' 4321macro_revision='1.3017' 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335ltmain="$ac_aux_dir/ltmain.sh" 4336 4337{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4338$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4339if test "${ac_cv_path_SED+set}" = set; then 4340 $as_echo_n "(cached) " >&6 4341else 4342 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4343 for ac_i in 1 2 3 4 5 6 7; do 4344 ac_script="$ac_script$as_nl$ac_script" 4345 done 4346 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4347 $as_unset ac_script || ac_script= 4348 if test -z "$SED"; then 4349 ac_path_SED_found=false 4350 # Loop through the user's path and test for each of PROGNAME-LIST 4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_prog in sed gsed; do 4357 for ac_exec_ext in '' $ac_executable_extensions; do 4358 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4359 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4360# Check for GNU ac_path_SED and select it if it is found. 4361 # Check for GNU $ac_path_SED 4362case `"$ac_path_SED" --version 2>&1` in 4363*GNU*) 4364 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4365*) 4366 ac_count=0 4367 $as_echo_n 0123456789 >"conftest.in" 4368 while : 4369 do 4370 cat "conftest.in" "conftest.in" >"conftest.tmp" 4371 mv "conftest.tmp" "conftest.in" 4372 cp "conftest.in" "conftest.nl" 4373 $as_echo '' >> "conftest.nl" 4374 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4376 ac_count=`expr $ac_count + 1` 4377 if test $ac_count -gt ${ac_path_SED_max-0}; then 4378 # Best one so far, save it but keep looking for a better one 4379 ac_cv_path_SED="$ac_path_SED" 4380 ac_path_SED_max=$ac_count 4381 fi 4382 # 10*(2^10) chars as input seems more than enough 4383 test $ac_count -gt 10 && break 4384 done 4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4386esac 4387 4388 $ac_path_SED_found && break 3 4389 done 4390 done 4391done 4392IFS=$as_save_IFS 4393 if test -z "$ac_cv_path_SED"; then 4394 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4395$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4396 { (exit 1); exit 1; }; } 4397 fi 4398else 4399 ac_cv_path_SED=$SED 4400fi 4401 4402fi 4403{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4404$as_echo "$ac_cv_path_SED" >&6; } 4405 SED="$ac_cv_path_SED" 4406 rm -f conftest.sed 4407 4408test -z "$SED" && SED=sed 4409Xsed="$SED -e 1s/^X//" 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4422$as_echo_n "checking for fgrep... " >&6; } 4423if test "${ac_cv_path_FGREP+set}" = set; then 4424 $as_echo_n "(cached) " >&6 4425else 4426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4427 then ac_cv_path_FGREP="$GREP -F" 4428 else 4429 if test -z "$FGREP"; then 4430 ac_path_FGREP_found=false 4431 # Loop through the user's path and test for each of PROGNAME-LIST 4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_prog in fgrep; do 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4440 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4441# Check for GNU ac_path_FGREP and select it if it is found. 4442 # Check for GNU $ac_path_FGREP 4443case `"$ac_path_FGREP" --version 2>&1` in 4444*GNU*) 4445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4446*) 4447 ac_count=0 4448 $as_echo_n 0123456789 >"conftest.in" 4449 while : 4450 do 4451 cat "conftest.in" "conftest.in" >"conftest.tmp" 4452 mv "conftest.tmp" "conftest.in" 4453 cp "conftest.in" "conftest.nl" 4454 $as_echo 'FGREP' >> "conftest.nl" 4455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4457 ac_count=`expr $ac_count + 1` 4458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4459 # Best one so far, save it but keep looking for a better one 4460 ac_cv_path_FGREP="$ac_path_FGREP" 4461 ac_path_FGREP_max=$ac_count 4462 fi 4463 # 10*(2^10) chars as input seems more than enough 4464 test $ac_count -gt 10 && break 4465 done 4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4467esac 4468 4469 $ac_path_FGREP_found && break 3 4470 done 4471 done 4472done 4473IFS=$as_save_IFS 4474 if test -z "$ac_cv_path_FGREP"; then 4475 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4476$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4477 { (exit 1); exit 1; }; } 4478 fi 4479else 4480 ac_cv_path_FGREP=$FGREP 4481fi 4482 4483 fi 4484fi 4485{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4486$as_echo "$ac_cv_path_FGREP" >&6; } 4487 FGREP="$ac_cv_path_FGREP" 4488 4489 4490test -z "$GREP" && GREP=grep 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510@%:@ Check whether --with-gnu-ld was given. 4511if test "${with_gnu_ld+set}" = set; then 4512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4513else 4514 with_gnu_ld=no 4515fi 4516 4517ac_prog=ld 4518if test "$GCC" = yes; then 4519 # Check if gcc -print-prog-name=ld gives a path. 4520 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4521$as_echo_n "checking for ld used by $CC... " >&6; } 4522 case $host in 4523 *-*-mingw*) 4524 # gcc leaves a trailing carriage return which upsets mingw 4525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4526 *) 4527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4528 esac 4529 case $ac_prog in 4530 # Accept absolute paths. 4531 [\\/]* | ?:[\\/]*) 4532 re_direlt='/[^/][^/]*/\.\./' 4533 # Canonicalize the pathname of ld 4534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4537 done 4538 test -z "$LD" && LD="$ac_prog" 4539 ;; 4540 "") 4541 # If it fails, then pretend we aren't using GCC. 4542 ac_prog=ld 4543 ;; 4544 *) 4545 # If it is relative, then search for the first ld in PATH. 4546 with_gnu_ld=unknown 4547 ;; 4548 esac 4549elif test "$with_gnu_ld" = yes; then 4550 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4551$as_echo_n "checking for GNU ld... " >&6; } 4552else 4553 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4554$as_echo_n "checking for non-GNU ld... " >&6; } 4555fi 4556if test "${lt_cv_path_LD+set}" = set; then 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -z "$LD"; then 4560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4561 for ac_dir in $PATH; do 4562 IFS="$lt_save_ifs" 4563 test -z "$ac_dir" && ac_dir=. 4564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4565 lt_cv_path_LD="$ac_dir/$ac_prog" 4566 # Check to see if the program is GNU ld. I'd rather use --version, 4567 # but apparently some variants of GNU ld only accept -v. 4568 # Break only if it was the GNU/non-GNU ld that we prefer. 4569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4570 *GNU* | *'with BFD'*) 4571 test "$with_gnu_ld" != no && break 4572 ;; 4573 *) 4574 test "$with_gnu_ld" != yes && break 4575 ;; 4576 esac 4577 fi 4578 done 4579 IFS="$lt_save_ifs" 4580else 4581 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4582fi 4583fi 4584 4585LD="$lt_cv_path_LD" 4586if test -n "$LD"; then 4587 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4588$as_echo "$LD" >&6; } 4589else 4590 { $as_echo "$as_me:$LINENO: result: no" >&5 4591$as_echo "no" >&6; } 4592fi 4593test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4594$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4595 { (exit 1); exit 1; }; } 4596{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4597$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4598if test "${lt_cv_prog_gnu_ld+set}" = set; then 4599 $as_echo_n "(cached) " >&6 4600else 4601 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4602case `$LD -v 2>&1 </dev/null` in 4603*GNU* | *'with BFD'*) 4604 lt_cv_prog_gnu_ld=yes 4605 ;; 4606*) 4607 lt_cv_prog_gnu_ld=no 4608 ;; 4609esac 4610fi 4611{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4612$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4613with_gnu_ld=$lt_cv_prog_gnu_ld 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4624$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4625if test "${lt_cv_path_NM+set}" = set; then 4626 $as_echo_n "(cached) " >&6 4627else 4628 if test -n "$NM"; then 4629 # Let the user override the test. 4630 lt_cv_path_NM="$NM" 4631else 4632 lt_nm_to_check="${ac_tool_prefix}nm" 4633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4634 lt_nm_to_check="$lt_nm_to_check nm" 4635 fi 4636 for lt_tmp_nm in $lt_nm_to_check; do 4637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4639 IFS="$lt_save_ifs" 4640 test -z "$ac_dir" && ac_dir=. 4641 tmp_nm="$ac_dir/$lt_tmp_nm" 4642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4643 # Check to see if the nm accepts a BSD-compat flag. 4644 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4645 # nm: unknown option "B" ignored 4646 # Tru64's nm complains that /dev/null is an invalid object file 4647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4648 */dev/null* | *'Invalid file or object type'*) 4649 lt_cv_path_NM="$tmp_nm -B" 4650 break 4651 ;; 4652 *) 4653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4654 */dev/null*) 4655 lt_cv_path_NM="$tmp_nm -p" 4656 break 4657 ;; 4658 *) 4659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4660 continue # so that we can try to find one that supports BSD flags 4661 ;; 4662 esac 4663 ;; 4664 esac 4665 fi 4666 done 4667 IFS="$lt_save_ifs" 4668 done 4669 : ${lt_cv_path_NM=no} 4670fi 4671fi 4672{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4673$as_echo "$lt_cv_path_NM" >&6; } 4674if test "$lt_cv_path_NM" != "no"; then 4675 NM="$lt_cv_path_NM" 4676else 4677 # Didn't find any BSD compatible name lister, look for dumpbin. 4678 if test -n "$ac_tool_prefix"; then 4679 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4680 do 4681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4682set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4684$as_echo_n "checking for $ac_word... " >&6; } 4685if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test -n "$DUMPBIN"; then 4689 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4690else 4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4692for as_dir in $PATH 4693do 4694 IFS=$as_save_IFS 4695 test -z "$as_dir" && as_dir=. 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4698 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703done 4704IFS=$as_save_IFS 4705 4706fi 4707fi 4708DUMPBIN=$ac_cv_prog_DUMPBIN 4709if test -n "$DUMPBIN"; then 4710 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4711$as_echo "$DUMPBIN" >&6; } 4712else 4713 { $as_echo "$as_me:$LINENO: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716 4717 4718 test -n "$DUMPBIN" && break 4719 done 4720fi 4721if test -z "$DUMPBIN"; then 4722 ac_ct_DUMPBIN=$DUMPBIN 4723 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4724do 4725 # Extract the first word of "$ac_prog", so it can be a program name with args. 4726set dummy $ac_prog; ac_word=$2 4727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$ac_ct_DUMPBIN"; then 4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4742 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4753if test -n "$ac_ct_DUMPBIN"; then 4754 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4755$as_echo "$ac_ct_DUMPBIN" >&6; } 4756else 4757 { $as_echo "$as_me:$LINENO: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 4762 test -n "$ac_ct_DUMPBIN" && break 4763done 4764 4765 if test "x$ac_ct_DUMPBIN" = x; then 4766 DUMPBIN=":" 4767 else 4768 case $cross_compiling:$ac_tool_warned in 4769yes:) 4770{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4772ac_tool_warned=yes ;; 4773esac 4774 DUMPBIN=$ac_ct_DUMPBIN 4775 fi 4776fi 4777 4778 4779 if test "$DUMPBIN" != ":"; then 4780 NM="$DUMPBIN" 4781 fi 4782fi 4783test -z "$NM" && NM=nm 4784 4785 4786 4787 4788 4789 4790{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4791$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4792if test "${lt_cv_nm_interface+set}" = set; then 4793 $as_echo_n "(cached) " >&6 4794else 4795 lt_cv_nm_interface="BSD nm" 4796 echo "int some_variable = 0;" > conftest.$ac_ext 4797 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5) 4798 (eval "$ac_compile" 2>conftest.err) 4799 cat conftest.err >&5 4800 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4802 cat conftest.err >&5 4803 (eval echo "\"\$as_me:__oline__: output\"" >&5) 4804 cat conftest.out >&5 4805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4806 lt_cv_nm_interface="MS dumpbin" 4807 fi 4808 rm -f conftest* 4809fi 4810{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4811$as_echo "$lt_cv_nm_interface" >&6; } 4812 4813# find the maximum length of command line arguments 4814{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4815$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4816if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4817 $as_echo_n "(cached) " >&6 4818else 4819 i=0 4820 teststring="ABCD" 4821 4822 case $build_os in 4823 msdosdjgpp*) 4824 # On DJGPP, this test can blow up pretty badly due to problems in libc 4825 # (any single argument exceeding 2000 bytes causes a buffer overrun 4826 # during glob expansion). Even if it were fixed, the result of this 4827 # check would be larger than it should be. 4828 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4829 ;; 4830 4831 gnu*) 4832 # Under GNU Hurd, this test is not required because there is 4833 # no limit to the length of command line arguments. 4834 # Libtool will interpret -1 as no limit whatsoever 4835 lt_cv_sys_max_cmd_len=-1; 4836 ;; 4837 4838 cygwin* | mingw* | cegcc*) 4839 # On Win9x/ME, this test blows up -- it succeeds, but takes 4840 # about 5 minutes as the teststring grows exponentially. 4841 # Worse, since 9x/ME are not pre-emptively multitasking, 4842 # you end up with a "frozen" computer, even though with patience 4843 # the test eventually succeeds (with a max line length of 256k). 4844 # Instead, let's just punt: use the minimum linelength reported by 4845 # all of the supported platforms: 8192 (on NT/2K/XP). 4846 lt_cv_sys_max_cmd_len=8192; 4847 ;; 4848 4849 amigaos*) 4850 # On AmigaOS with pdksh, this test takes hours, literally. 4851 # So we just punt and use a minimum line length of 8192. 4852 lt_cv_sys_max_cmd_len=8192; 4853 ;; 4854 4855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4856 # This has been around since 386BSD, at least. Likely further. 4857 if test -x /sbin/sysctl; then 4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4859 elif test -x /usr/sbin/sysctl; then 4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4861 else 4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4863 fi 4864 # And add a safety zone 4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4867 ;; 4868 4869 interix*) 4870 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4871 lt_cv_sys_max_cmd_len=196608 4872 ;; 4873 4874 osf*) 4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4877 # nice to cause kernel panics so lets avoid the loop below. 4878 # First set a reasonable default. 4879 lt_cv_sys_max_cmd_len=16384 4880 # 4881 if test -x /sbin/sysconfig; then 4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4883 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4884 esac 4885 fi 4886 ;; 4887 sco3.2v5*) 4888 lt_cv_sys_max_cmd_len=102400 4889 ;; 4890 sysv5* | sco5v6* | sysv4.2uw2*) 4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4892 if test -n "$kargmax"; then 4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4894 else 4895 lt_cv_sys_max_cmd_len=32768 4896 fi 4897 ;; 4898 *) 4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4900 if test -n "$lt_cv_sys_max_cmd_len"; then 4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4903 else 4904 # Make teststring a little bigger before we do anything with it. 4905 # a 1K string should be a reasonable start. 4906 for i in 1 2 3 4 5 6 7 8 ; do 4907 teststring=$teststring$teststring 4908 done 4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4910 # If test is not a shell built-in, we'll probably end up computing a 4911 # maximum length that is only half of the actual maximum length, but 4912 # we can't tell. 4913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4914 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4915 test $i != 17 # 1/2 MB should be enough 4916 do 4917 i=`expr $i + 1` 4918 teststring=$teststring$teststring 4919 done 4920 # Only check the string length outside the loop. 4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4922 teststring= 4923 # Add a significant safety factor because C++ compilers can tack on 4924 # massive amounts of additional arguments before passing them to the 4925 # linker. It appears as though 1/2 is a usable value. 4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4927 fi 4928 ;; 4929 esac 4930 4931fi 4932 4933if test -n $lt_cv_sys_max_cmd_len ; then 4934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4935$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4936else 4937 { $as_echo "$as_me:$LINENO: result: none" >&5 4938$as_echo "none" >&6; } 4939fi 4940max_cmd_len=$lt_cv_sys_max_cmd_len 4941 4942 4943 4944 4945 4946 4947: ${CP="cp -f"} 4948: ${MV="mv -f"} 4949: ${RM="rm -f"} 4950 4951{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4952$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4953# Try some XSI features 4954xsi_shell=no 4955( _lt_dummy="a/b/c" 4956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4957 = c,a/b,, \ 4958 && eval 'test $(( 1 + 1 )) -eq 2 \ 4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4960 && xsi_shell=yes 4961{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4962$as_echo "$xsi_shell" >&6; } 4963 4964 4965{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4966$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4967lt_shell_append=no 4968( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4969 >/dev/null 2>&1 \ 4970 && lt_shell_append=yes 4971{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4972$as_echo "$lt_shell_append" >&6; } 4973 4974 4975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4976 lt_unset=unset 4977else 4978 lt_unset=false 4979fi 4980 4981 4982 4983 4984 4985# test EBCDIC or ASCII 4986case `echo X|tr X '\101'` in 4987 A) # ASCII based system 4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4989 lt_SP2NL='tr \040 \012' 4990 lt_NL2SP='tr \015\012 \040\040' 4991 ;; 4992 *) # EBCDIC based system 4993 lt_SP2NL='tr \100 \n' 4994 lt_NL2SP='tr \r\n \100\100' 4995 ;; 4996esac 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5007$as_echo_n "checking for $LD option to reload object files... " >&6; } 5008if test "${lt_cv_ld_reload_flag+set}" = set; then 5009 $as_echo_n "(cached) " >&6 5010else 5011 lt_cv_ld_reload_flag='-r' 5012fi 5013{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5014$as_echo "$lt_cv_ld_reload_flag" >&6; } 5015reload_flag=$lt_cv_ld_reload_flag 5016case $reload_flag in 5017"" | " "*) ;; 5018*) reload_flag=" $reload_flag" ;; 5019esac 5020reload_cmds='$LD$reload_flag -o $output$reload_objs' 5021case $host_os in 5022 darwin*) 5023 if test "$GCC" = yes; then 5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5025 else 5026 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5027 fi 5028 ;; 5029esac 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039if test -n "$ac_tool_prefix"; then 5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5041set dummy ${ac_tool_prefix}objdump; ac_word=$2 5042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5043$as_echo_n "checking for $ac_word... " >&6; } 5044if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5045 $as_echo_n "(cached) " >&6 5046else 5047 if test -n "$OBJDUMP"; then 5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5049else 5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061done 5062done 5063IFS=$as_save_IFS 5064 5065fi 5066fi 5067OBJDUMP=$ac_cv_prog_OBJDUMP 5068if test -n "$OBJDUMP"; then 5069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5070$as_echo "$OBJDUMP" >&6; } 5071else 5072 { $as_echo "$as_me:$LINENO: result: no" >&5 5073$as_echo "no" >&6; } 5074fi 5075 5076 5077fi 5078if test -z "$ac_cv_prog_OBJDUMP"; then 5079 ac_ct_OBJDUMP=$OBJDUMP 5080 # Extract the first word of "objdump", so it can be a program name with args. 5081set dummy objdump; ac_word=$2 5082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5083$as_echo_n "checking for $ac_word... " >&6; } 5084if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5085 $as_echo_n "(cached) " >&6 5086else 5087 if test -n "$ac_ct_OBJDUMP"; then 5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5089else 5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH 5092do 5093 IFS=$as_save_IFS 5094 test -z "$as_dir" && as_dir=. 5095 for ac_exec_ext in '' $ac_executable_extensions; do 5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5097 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5099 break 2 5100 fi 5101done 5102done 5103IFS=$as_save_IFS 5104 5105fi 5106fi 5107ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5108if test -n "$ac_ct_OBJDUMP"; then 5109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5110$as_echo "$ac_ct_OBJDUMP" >&6; } 5111else 5112 { $as_echo "$as_me:$LINENO: result: no" >&5 5113$as_echo "no" >&6; } 5114fi 5115 5116 if test "x$ac_ct_OBJDUMP" = x; then 5117 OBJDUMP="false" 5118 else 5119 case $cross_compiling:$ac_tool_warned in 5120yes:) 5121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5123ac_tool_warned=yes ;; 5124esac 5125 OBJDUMP=$ac_ct_OBJDUMP 5126 fi 5127else 5128 OBJDUMP="$ac_cv_prog_OBJDUMP" 5129fi 5130 5131test -z "$OBJDUMP" && OBJDUMP=objdump 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5142$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5143if test "${lt_cv_deplibs_check_method+set}" = set; then 5144 $as_echo_n "(cached) " >&6 5145else 5146 lt_cv_file_magic_cmd='$MAGIC_CMD' 5147lt_cv_file_magic_test_file= 5148lt_cv_deplibs_check_method='unknown' 5149# Need to set the preceding variable on all platforms that support 5150# interlibrary dependencies. 5151# 'none' -- dependencies not supported. 5152# `unknown' -- same as none, but documents that we really don't know. 5153# 'pass_all' -- all dependencies passed with no checks. 5154# 'test_compile' -- check by making test program. 5155# 'file_magic [[regex]]' -- check by looking for files in library path 5156# which responds to the $file_magic_cmd with a given extended regex. 5157# If you have `file' or equivalent on your system and you're not sure 5158# whether `pass_all' will *always* work, you probably want this one. 5159 5160case $host_os in 5161aix[4-9]*) 5162 lt_cv_deplibs_check_method=pass_all 5163 ;; 5164 5165beos*) 5166 lt_cv_deplibs_check_method=pass_all 5167 ;; 5168 5169bsdi[45]*) 5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5171 lt_cv_file_magic_cmd='/usr/bin/file -L' 5172 lt_cv_file_magic_test_file=/shlib/libc.so 5173 ;; 5174 5175cygwin*) 5176 # func_win32_libid is a shell function defined in ltmain.sh 5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5178 lt_cv_file_magic_cmd='func_win32_libid' 5179 ;; 5180 5181mingw* | pw32*) 5182 # Base MSYS/MinGW do not provide the 'file' command needed by 5183 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5184 # unless we find 'file', for example because we are cross-compiling. 5185 if ( file / ) >/dev/null 2>&1; then 5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5187 lt_cv_file_magic_cmd='func_win32_libid' 5188 else 5189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5190 lt_cv_file_magic_cmd='$OBJDUMP -f' 5191 fi 5192 ;; 5193 5194cegcc) 5195 # use the weaker test based on 'objdump'. See mingw*. 5196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5197 lt_cv_file_magic_cmd='$OBJDUMP -f' 5198 ;; 5199 5200darwin* | rhapsody*) 5201 lt_cv_deplibs_check_method=pass_all 5202 ;; 5203 5204freebsd* | dragonfly*) 5205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5206 case $host_cpu in 5207 i*86 ) 5208 # Not sure whether the presence of OpenBSD here was a mistake. 5209 # Let's accept both of them until this is cleared up. 5210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5211 lt_cv_file_magic_cmd=/usr/bin/file 5212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5213 ;; 5214 esac 5215 else 5216 lt_cv_deplibs_check_method=pass_all 5217 fi 5218 ;; 5219 5220gnu*) 5221 lt_cv_deplibs_check_method=pass_all 5222 ;; 5223 5224hpux10.20* | hpux11*) 5225 lt_cv_file_magic_cmd=/usr/bin/file 5226 case $host_cpu in 5227 ia64*) 5228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5230 ;; 5231 hppa*64*) 5232 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]' 5233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5234 ;; 5235 *) 5236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5237 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5238 ;; 5239 esac 5240 ;; 5241 5242interix[3-9]*) 5243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5245 ;; 5246 5247irix5* | irix6* | nonstopux*) 5248 case $LD in 5249 *-32|*"-32 ") libmagic=32-bit;; 5250 *-n32|*"-n32 ") libmagic=N32;; 5251 *-64|*"-64 ") libmagic=64-bit;; 5252 *) libmagic=never-match;; 5253 esac 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256 5257# This must be Linux ELF. 5258linux* | k*bsd*-gnu) 5259 lt_cv_deplibs_check_method=pass_all 5260 ;; 5261 5262netbsd*) 5263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5265 else 5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5267 fi 5268 ;; 5269 5270newos6*) 5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5272 lt_cv_file_magic_cmd=/usr/bin/file 5273 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5274 ;; 5275 5276*nto* | *qnx*) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 5280openbsd*) 5281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5283 else 5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5285 fi 5286 ;; 5287 5288osf3* | osf4* | osf5*) 5289 lt_cv_deplibs_check_method=pass_all 5290 ;; 5291 5292rdos*) 5293 lt_cv_deplibs_check_method=pass_all 5294 ;; 5295 5296solaris*) 5297 lt_cv_deplibs_check_method=pass_all 5298 ;; 5299 5300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5301 lt_cv_deplibs_check_method=pass_all 5302 ;; 5303 5304sysv4 | sysv4.3*) 5305 case $host_vendor in 5306 motorola) 5307 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]' 5308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5309 ;; 5310 ncr) 5311 lt_cv_deplibs_check_method=pass_all 5312 ;; 5313 sequent) 5314 lt_cv_file_magic_cmd='/bin/file' 5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5316 ;; 5317 sni) 5318 lt_cv_file_magic_cmd='/bin/file' 5319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5320 lt_cv_file_magic_test_file=/lib/libc.so 5321 ;; 5322 siemens) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 pc) 5326 lt_cv_deplibs_check_method=pass_all 5327 ;; 5328 esac 5329 ;; 5330 5331tpf*) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334esac 5335 5336fi 5337{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5338$as_echo "$lt_cv_deplibs_check_method" >&6; } 5339file_magic_cmd=$lt_cv_file_magic_cmd 5340deplibs_check_method=$lt_cv_deplibs_check_method 5341test -z "$deplibs_check_method" && deplibs_check_method=unknown 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354if test -n "$ac_tool_prefix"; then 5355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5356set dummy ${ac_tool_prefix}ar; ac_word=$2 5357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5358$as_echo_n "checking for $ac_word... " >&6; } 5359if test "${ac_cv_prog_AR+set}" = set; then 5360 $as_echo_n "(cached) " >&6 5361else 5362 if test -n "$AR"; then 5363 ac_cv_prog_AR="$AR" # Let the user override the test. 5364else 5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5366for as_dir in $PATH 5367do 5368 IFS=$as_save_IFS 5369 test -z "$as_dir" && as_dir=. 5370 for ac_exec_ext in '' $ac_executable_extensions; do 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5372 ac_cv_prog_AR="${ac_tool_prefix}ar" 5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5374 break 2 5375 fi 5376done 5377done 5378IFS=$as_save_IFS 5379 5380fi 5381fi 5382AR=$ac_cv_prog_AR 5383if test -n "$AR"; then 5384 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5385$as_echo "$AR" >&6; } 5386else 5387 { $as_echo "$as_me:$LINENO: result: no" >&5 5388$as_echo "no" >&6; } 5389fi 5390 5391 5392fi 5393if test -z "$ac_cv_prog_AR"; then 5394 ac_ct_AR=$AR 5395 # Extract the first word of "ar", so it can be a program name with args. 5396set dummy ar; ac_word=$2 5397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5398$as_echo_n "checking for $ac_word... " >&6; } 5399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5400 $as_echo_n "(cached) " >&6 5401else 5402 if test -n "$ac_ct_AR"; then 5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5404else 5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5406for as_dir in $PATH 5407do 5408 IFS=$as_save_IFS 5409 test -z "$as_dir" && as_dir=. 5410 for ac_exec_ext in '' $ac_executable_extensions; do 5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5412 ac_cv_prog_ac_ct_AR="ar" 5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5414 break 2 5415 fi 5416done 5417done 5418IFS=$as_save_IFS 5419 5420fi 5421fi 5422ac_ct_AR=$ac_cv_prog_ac_ct_AR 5423if test -n "$ac_ct_AR"; then 5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5425$as_echo "$ac_ct_AR" >&6; } 5426else 5427 { $as_echo "$as_me:$LINENO: result: no" >&5 5428$as_echo "no" >&6; } 5429fi 5430 5431 if test "x$ac_ct_AR" = x; then 5432 AR="false" 5433 else 5434 case $cross_compiling:$ac_tool_warned in 5435yes:) 5436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5438ac_tool_warned=yes ;; 5439esac 5440 AR=$ac_ct_AR 5441 fi 5442else 5443 AR="$ac_cv_prog_AR" 5444fi 5445 5446test -z "$AR" && AR=ar 5447test -z "$AR_FLAGS" && AR_FLAGS=cru 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459if test -n "$ac_tool_prefix"; then 5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5461set dummy ${ac_tool_prefix}strip; ac_word=$2 5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5463$as_echo_n "checking for $ac_word... " >&6; } 5464if test "${ac_cv_prog_STRIP+set}" = set; then 5465 $as_echo_n "(cached) " >&6 5466else 5467 if test -n "$STRIP"; then 5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5469else 5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481done 5482done 5483IFS=$as_save_IFS 5484 5485fi 5486fi 5487STRIP=$ac_cv_prog_STRIP 5488if test -n "$STRIP"; then 5489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5490$as_echo "$STRIP" >&6; } 5491else 5492 { $as_echo "$as_me:$LINENO: result: no" >&5 5493$as_echo "no" >&6; } 5494fi 5495 5496 5497fi 5498if test -z "$ac_cv_prog_STRIP"; then 5499 ac_ct_STRIP=$STRIP 5500 # Extract the first word of "strip", so it can be a program name with args. 5501set dummy strip; ac_word=$2 5502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5503$as_echo_n "checking for $ac_word... " >&6; } 5504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5505 $as_echo_n "(cached) " >&6 5506else 5507 if test -n "$ac_ct_STRIP"; then 5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5509else 5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511for as_dir in $PATH 5512do 5513 IFS=$as_save_IFS 5514 test -z "$as_dir" && as_dir=. 5515 for ac_exec_ext in '' $ac_executable_extensions; do 5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5517 ac_cv_prog_ac_ct_STRIP="strip" 5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5519 break 2 5520 fi 5521done 5522done 5523IFS=$as_save_IFS 5524 5525fi 5526fi 5527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5528if test -n "$ac_ct_STRIP"; then 5529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5530$as_echo "$ac_ct_STRIP" >&6; } 5531else 5532 { $as_echo "$as_me:$LINENO: result: no" >&5 5533$as_echo "no" >&6; } 5534fi 5535 5536 if test "x$ac_ct_STRIP" = x; then 5537 STRIP=":" 5538 else 5539 case $cross_compiling:$ac_tool_warned in 5540yes:) 5541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5543ac_tool_warned=yes ;; 5544esac 5545 STRIP=$ac_ct_STRIP 5546 fi 5547else 5548 STRIP="$ac_cv_prog_STRIP" 5549fi 5550 5551test -z "$STRIP" && STRIP=: 5552 5553 5554 5555 5556 5557 5558if test -n "$ac_tool_prefix"; then 5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5560set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5562$as_echo_n "checking for $ac_word... " >&6; } 5563if test "${ac_cv_prog_RANLIB+set}" = set; then 5564 $as_echo_n "(cached) " >&6 5565else 5566 if test -n "$RANLIB"; then 5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5568else 5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5570for as_dir in $PATH 5571do 5572 IFS=$as_save_IFS 5573 test -z "$as_dir" && as_dir=. 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5578 break 2 5579 fi 5580done 5581done 5582IFS=$as_save_IFS 5583 5584fi 5585fi 5586RANLIB=$ac_cv_prog_RANLIB 5587if test -n "$RANLIB"; then 5588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5589$as_echo "$RANLIB" >&6; } 5590else 5591 { $as_echo "$as_me:$LINENO: result: no" >&5 5592$as_echo "no" >&6; } 5593fi 5594 5595 5596fi 5597if test -z "$ac_cv_prog_RANLIB"; then 5598 ac_ct_RANLIB=$RANLIB 5599 # Extract the first word of "ranlib", so it can be a program name with args. 5600set dummy ranlib; ac_word=$2 5601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5602$as_echo_n "checking for $ac_word... " >&6; } 5603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5604 $as_echo_n "(cached) " >&6 5605else 5606 if test -n "$ac_ct_RANLIB"; then 5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5608else 5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5610for as_dir in $PATH 5611do 5612 IFS=$as_save_IFS 5613 test -z "$as_dir" && as_dir=. 5614 for ac_exec_ext in '' $ac_executable_extensions; do 5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5616 ac_cv_prog_ac_ct_RANLIB="ranlib" 5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5618 break 2 5619 fi 5620done 5621done 5622IFS=$as_save_IFS 5623 5624fi 5625fi 5626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5627if test -n "$ac_ct_RANLIB"; then 5628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5629$as_echo "$ac_ct_RANLIB" >&6; } 5630else 5631 { $as_echo "$as_me:$LINENO: result: no" >&5 5632$as_echo "no" >&6; } 5633fi 5634 5635 if test "x$ac_ct_RANLIB" = x; then 5636 RANLIB=":" 5637 else 5638 case $cross_compiling:$ac_tool_warned in 5639yes:) 5640{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5642ac_tool_warned=yes ;; 5643esac 5644 RANLIB=$ac_ct_RANLIB 5645 fi 5646else 5647 RANLIB="$ac_cv_prog_RANLIB" 5648fi 5649 5650test -z "$RANLIB" && RANLIB=: 5651 5652 5653 5654 5655 5656 5657# Determine commands to create old-style static archives. 5658old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5659old_postinstall_cmds='chmod 644 $oldlib' 5660old_postuninstall_cmds= 5661 5662if test -n "$RANLIB"; then 5663 case $host_os in 5664 openbsd*) 5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5666 ;; 5667 *) 5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5669 ;; 5670 esac 5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5672fi 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707# If no C compiler was specified, use CC. 5708LTCC=${LTCC-"$CC"} 5709 5710# If no C compiler flags were specified, use CFLAGS. 5711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5712 5713# Allow CC to be a program name with arguments. 5714compiler=$CC 5715 5716 5717# Check for command to grab the raw symbol name followed by C symbol from nm. 5718{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5719$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5720if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5721 $as_echo_n "(cached) " >&6 5722else 5723 5724# These are sane defaults that work on at least a few old systems. 5725# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5726 5727# Character class describing NM global symbol codes. 5728symcode='[BCDEGRST]' 5729 5730# Regexp to match symbols that can be accessed directly from C. 5731sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5732 5733# Define system-specific variables. 5734case $host_os in 5735aix*) 5736 symcode='[BCDT]' 5737 ;; 5738cygwin* | mingw* | pw32* | cegcc*) 5739 symcode='[ABCDGISTW]' 5740 ;; 5741hpux*) 5742 if test "$host_cpu" = ia64; then 5743 symcode='[ABCDEGRST]' 5744 fi 5745 ;; 5746irix* | nonstopux*) 5747 symcode='[BCDEGRST]' 5748 ;; 5749osf*) 5750 symcode='[BCDEGQRST]' 5751 ;; 5752solaris*) 5753 symcode='[BDRT]' 5754 ;; 5755sco3.2v5*) 5756 symcode='[DT]' 5757 ;; 5758sysv4.2uw2*) 5759 symcode='[DT]' 5760 ;; 5761sysv5* | sco5v6* | unixware* | OpenUNIX*) 5762 symcode='[ABDT]' 5763 ;; 5764sysv4) 5765 symcode='[DFNSTU]' 5766 ;; 5767esac 5768 5769# If we're using GNU nm, then use its standard symbol codes. 5770case `$NM -V 2>&1` in 5771*GNU* | *'with BFD'*) 5772 symcode='[ABCDGIRSTW]' ;; 5773esac 5774 5775# Transform an extracted symbol line into a proper C declaration. 5776# Some systems (esp. on ia64) link data and code symbols differently, 5777# so use this general approach. 5778lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5779 5780# Transform an extracted symbol line into symbol name and symbol address 5781lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5782lt_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'" 5783 5784# Handle CRLF in mingw tool chain 5785opt_cr= 5786case $build_os in 5787mingw*) 5788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5789 ;; 5790esac 5791 5792# Try without a prefix underscore, then with it. 5793for ac_symprfx in "" "_"; do 5794 5795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5796 symxfrm="\\1 $ac_symprfx\\2 \\2" 5797 5798 # Write the raw and C identifiers. 5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5800 # Fake it for dumpbin and say T for any non-static function 5801 # and D for any global variable. 5802 # Also find C++ and __fastcall symbols from MSVC++, 5803 # which start with @ or ?. 5804 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5805" {last_section=section; section=\$ 3};"\ 5806" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5807" \$ 0!~/External *\|/{next};"\ 5808" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5809" {if(hide[section]) next};"\ 5810" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5811" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5812" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5813" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5814" ' prfx=^$ac_symprfx" 5815 else 5816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5817 fi 5818 5819 # Check to see that the pipe works correctly. 5820 pipe_works=no 5821 5822 rm -f conftest* 5823 cat > conftest.$ac_ext <<_LT_EOF 5824#ifdef __cplusplus 5825extern "C" { 5826#endif 5827char nm_test_var; 5828void nm_test_func(void); 5829void nm_test_func(void){} 5830#ifdef __cplusplus 5831} 5832#endif 5833int main(){nm_test_var='a';nm_test_func();return(0);} 5834_LT_EOF 5835 5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5837 (eval $ac_compile) 2>&5 5838 ac_status=$? 5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 (exit $ac_status); }; then 5841 # Now try to grab the symbols. 5842 nlist=conftest.nm 5843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5845 ac_status=$? 5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && test -s "$nlist"; then 5848 # Try sorting and uniquifying the output. 5849 if sort "$nlist" | uniq > "$nlist"T; then 5850 mv -f "$nlist"T "$nlist" 5851 else 5852 rm -f "$nlist"T 5853 fi 5854 5855 # Make sure that we snagged all the symbols we need. 5856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5858 cat <<_LT_EOF > conftest.$ac_ext 5859#ifdef __cplusplus 5860extern "C" { 5861#endif 5862 5863_LT_EOF 5864 # Now generate the symbol file. 5865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5866 5867 cat <<_LT_EOF >> conftest.$ac_ext 5868 5869/* The mapping between symbol names and symbols. */ 5870const struct { 5871 const char *name; 5872 void *address; 5873} 5874lt__PROGRAM__LTX_preloaded_symbols[] = 5875{ 5876 { "@PROGRAM@", (void *) 0 }, 5877_LT_EOF 5878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5879 cat <<\_LT_EOF >> conftest.$ac_ext 5880 {0, (void *) 0} 5881}; 5882 5883/* This works around a problem in FreeBSD linker */ 5884#ifdef FREEBSD_WORKAROUND 5885static const void *lt_preloaded_setup() { 5886 return lt__PROGRAM__LTX_preloaded_symbols; 5887} 5888#endif 5889 5890#ifdef __cplusplus 5891} 5892#endif 5893_LT_EOF 5894 # Now try linking the two files. 5895 mv conftest.$ac_objext conftstm.$ac_objext 5896 lt_save_LIBS="$LIBS" 5897 lt_save_CFLAGS="$CFLAGS" 5898 LIBS="conftstm.$ac_objext" 5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5901 (eval $ac_link) 2>&5 5902 ac_status=$? 5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5905 pipe_works=yes 5906 fi 5907 LIBS="$lt_save_LIBS" 5908 CFLAGS="$lt_save_CFLAGS" 5909 else 5910 echo "cannot find nm_test_func in $nlist" >&5 5911 fi 5912 else 5913 echo "cannot find nm_test_var in $nlist" >&5 5914 fi 5915 else 5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5917 fi 5918 else 5919 echo "$progname: failed program was:" >&5 5920 cat conftest.$ac_ext >&5 5921 fi 5922 rm -rf conftest* conftst* 5923 5924 # Do not use the global_symbol_pipe unless it works. 5925 if test "$pipe_works" = yes; then 5926 break 5927 else 5928 lt_cv_sys_global_symbol_pipe= 5929 fi 5930done 5931 5932fi 5933 5934if test -z "$lt_cv_sys_global_symbol_pipe"; then 5935 lt_cv_sys_global_symbol_to_cdecl= 5936fi 5937if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5938 { $as_echo "$as_me:$LINENO: result: failed" >&5 5939$as_echo "failed" >&6; } 5940else 5941 { $as_echo "$as_me:$LINENO: result: ok" >&5 5942$as_echo "ok" >&6; } 5943fi 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966@%:@ Check whether --enable-libtool-lock was given. 5967if test "${enable_libtool_lock+set}" = set; then 5968 enableval=$enable_libtool_lock; 5969fi 5970 5971test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5972 5973# Some flags need to be propagated to the compiler or linker for good 5974# libtool support. 5975case $host in 5976ia64-*-hpux*) 5977 # Find out which ABI we are using. 5978 echo 'int i;' > conftest.$ac_ext 5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5980 (eval $ac_compile) 2>&5 5981 ac_status=$? 5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); }; then 5984 case `/usr/bin/file conftest.$ac_objext` in 5985 *ELF-32*) 5986 HPUX_IA64_MODE="32" 5987 ;; 5988 *ELF-64*) 5989 HPUX_IA64_MODE="64" 5990 ;; 5991 esac 5992 fi 5993 rm -rf conftest* 5994 ;; 5995*-*-irix6*) 5996 # Find out which ABI we are using. 5997 echo '#line __oline__ "configure"' > conftest.$ac_ext 5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5999 (eval $ac_compile) 2>&5 6000 ac_status=$? 6001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6002 (exit $ac_status); }; then 6003 if test "$lt_cv_prog_gnu_ld" = yes; then 6004 case `/usr/bin/file conftest.$ac_objext` in 6005 *32-bit*) 6006 LD="${LD-ld} -melf32bsmip" 6007 ;; 6008 *N32*) 6009 LD="${LD-ld} -melf32bmipn32" 6010 ;; 6011 *64-bit*) 6012 LD="${LD-ld} -melf64bmip" 6013 ;; 6014 esac 6015 else 6016 case `/usr/bin/file conftest.$ac_objext` in 6017 *32-bit*) 6018 LD="${LD-ld} -32" 6019 ;; 6020 *N32*) 6021 LD="${LD-ld} -n32" 6022 ;; 6023 *64-bit*) 6024 LD="${LD-ld} -64" 6025 ;; 6026 esac 6027 fi 6028 fi 6029 rm -rf conftest* 6030 ;; 6031 6032x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6033s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6034 # Find out which ABI we are using. 6035 echo 'int i;' > conftest.$ac_ext 6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6037 (eval $ac_compile) 2>&5 6038 ac_status=$? 6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6040 (exit $ac_status); }; then 6041 case `/usr/bin/file conftest.o` in 6042 *32-bit*) 6043 case $host in 6044 x86_64-*kfreebsd*-gnu) 6045 LD="${LD-ld} -m elf_i386_fbsd" 6046 ;; 6047 x86_64-*linux*) 6048 LD="${LD-ld} -m elf_i386" 6049 ;; 6050 ppc64-*linux*|powerpc64-*linux*) 6051 LD="${LD-ld} -m elf32ppclinux" 6052 ;; 6053 s390x-*linux*) 6054 LD="${LD-ld} -m elf_s390" 6055 ;; 6056 sparc64-*linux*) 6057 LD="${LD-ld} -m elf32_sparc" 6058 ;; 6059 esac 6060 ;; 6061 *64-bit*) 6062 case $host in 6063 x86_64-*kfreebsd*-gnu) 6064 LD="${LD-ld} -m elf_x86_64_fbsd" 6065 ;; 6066 x86_64-*linux*) 6067 LD="${LD-ld} -m elf_x86_64" 6068 ;; 6069 ppc*-*linux*|powerpc*-*linux*) 6070 LD="${LD-ld} -m elf64ppc" 6071 ;; 6072 s390*-*linux*|s390*-*tpf*) 6073 LD="${LD-ld} -m elf64_s390" 6074 ;; 6075 sparc*-*linux*) 6076 LD="${LD-ld} -m elf64_sparc" 6077 ;; 6078 esac 6079 ;; 6080 esac 6081 fi 6082 rm -rf conftest* 6083 ;; 6084 6085*-*-sco3.2v5*) 6086 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6087 SAVE_CFLAGS="$CFLAGS" 6088 CFLAGS="$CFLAGS -belf" 6089 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6090$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6091if test "${lt_cv_cc_needs_belf+set}" = set; then 6092 $as_echo_n "(cached) " >&6 6093else 6094 ac_ext=c 6095ac_cpp='$CPP $CPPFLAGS' 6096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6098ac_compiler_gnu=$ac_cv_c_compiler_gnu 6099 6100 cat >conftest.$ac_ext <<_ACEOF 6101/* confdefs.h. */ 6102_ACEOF 6103cat confdefs.h >>conftest.$ac_ext 6104cat >>conftest.$ac_ext <<_ACEOF 6105/* end confdefs.h. */ 6106 6107int 6108main () 6109{ 6110 6111 ; 6112 return 0; 6113} 6114_ACEOF 6115rm -f conftest.$ac_objext conftest$ac_exeext 6116if { (ac_try="$ac_link" 6117case "(($ac_try" in 6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6119 *) ac_try_echo=$ac_try;; 6120esac 6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6122$as_echo "$ac_try_echo") >&5 6123 (eval "$ac_link") 2>conftest.er1 6124 ac_status=$? 6125 grep -v '^ *+' conftest.er1 >conftest.err 6126 rm -f conftest.er1 6127 cat conftest.err >&5 6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); } && { 6130 test -z "$ac_c_werror_flag" || 6131 test ! -s conftest.err 6132 } && test -s conftest$ac_exeext && { 6133 test "$cross_compiling" = yes || 6134 $as_test_x conftest$ac_exeext 6135 }; then 6136 lt_cv_cc_needs_belf=yes 6137else 6138 $as_echo "$as_me: failed program was:" >&5 6139sed 's/^/| /' conftest.$ac_ext >&5 6140 6141 lt_cv_cc_needs_belf=no 6142fi 6143 6144rm -rf conftest.dSYM 6145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6146 conftest$ac_exeext conftest.$ac_ext 6147 ac_ext=c 6148ac_cpp='$CPP $CPPFLAGS' 6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6151ac_compiler_gnu=$ac_cv_c_compiler_gnu 6152 6153fi 6154{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6155$as_echo "$lt_cv_cc_needs_belf" >&6; } 6156 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6158 CFLAGS="$SAVE_CFLAGS" 6159 fi 6160 ;; 6161sparc*-*solaris*) 6162 # Find out which ABI we are using. 6163 echo 'int i;' > conftest.$ac_ext 6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6165 (eval $ac_compile) 2>&5 6166 ac_status=$? 6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6168 (exit $ac_status); }; then 6169 case `/usr/bin/file conftest.o` in 6170 *64-bit*) 6171 case $lt_cv_prog_gnu_ld in 6172 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6173 *) 6174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6175 LD="${LD-ld} -64" 6176 fi 6177 ;; 6178 esac 6179 ;; 6180 esac 6181 fi 6182 rm -rf conftest* 6183 ;; 6184esac 6185 6186need_locks="$enable_libtool_lock" 6187 6188 6189 case $host_os in 6190 rhapsody* | darwin*) 6191 if test -n "$ac_tool_prefix"; then 6192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6193set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6195$as_echo_n "checking for $ac_word... " >&6; } 6196if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6197 $as_echo_n "(cached) " >&6 6198else 6199 if test -n "$DSYMUTIL"; then 6200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6201else 6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6203for as_dir in $PATH 6204do 6205 IFS=$as_save_IFS 6206 test -z "$as_dir" && as_dir=. 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214done 6215IFS=$as_save_IFS 6216 6217fi 6218fi 6219DSYMUTIL=$ac_cv_prog_DSYMUTIL 6220if test -n "$DSYMUTIL"; then 6221 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6222$as_echo "$DSYMUTIL" >&6; } 6223else 6224 { $as_echo "$as_me:$LINENO: result: no" >&5 6225$as_echo "no" >&6; } 6226fi 6227 6228 6229fi 6230if test -z "$ac_cv_prog_DSYMUTIL"; then 6231 ac_ct_DSYMUTIL=$DSYMUTIL 6232 # Extract the first word of "dsymutil", so it can be a program name with args. 6233set dummy dsymutil; ac_word=$2 6234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6235$as_echo_n "checking for $ac_word... " >&6; } 6236if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6237 $as_echo_n "(cached) " >&6 6238else 6239 if test -n "$ac_ct_DSYMUTIL"; then 6240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6241else 6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6243for as_dir in $PATH 6244do 6245 IFS=$as_save_IFS 6246 test -z "$as_dir" && as_dir=. 6247 for ac_exec_ext in '' $ac_executable_extensions; do 6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6251 break 2 6252 fi 6253done 6254done 6255IFS=$as_save_IFS 6256 6257fi 6258fi 6259ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6260if test -n "$ac_ct_DSYMUTIL"; then 6261 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6262$as_echo "$ac_ct_DSYMUTIL" >&6; } 6263else 6264 { $as_echo "$as_me:$LINENO: result: no" >&5 6265$as_echo "no" >&6; } 6266fi 6267 6268 if test "x$ac_ct_DSYMUTIL" = x; then 6269 DSYMUTIL=":" 6270 else 6271 case $cross_compiling:$ac_tool_warned in 6272yes:) 6273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6275ac_tool_warned=yes ;; 6276esac 6277 DSYMUTIL=$ac_ct_DSYMUTIL 6278 fi 6279else 6280 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6281fi 6282 6283 if test -n "$ac_tool_prefix"; then 6284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6285set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6287$as_echo_n "checking for $ac_word... " >&6; } 6288if test "${ac_cv_prog_NMEDIT+set}" = set; then 6289 $as_echo_n "(cached) " >&6 6290else 6291 if test -n "$NMEDIT"; then 6292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6293else 6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295for as_dir in $PATH 6296do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305done 6306done 6307IFS=$as_save_IFS 6308 6309fi 6310fi 6311NMEDIT=$ac_cv_prog_NMEDIT 6312if test -n "$NMEDIT"; then 6313 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6314$as_echo "$NMEDIT" >&6; } 6315else 6316 { $as_echo "$as_me:$LINENO: result: no" >&5 6317$as_echo "no" >&6; } 6318fi 6319 6320 6321fi 6322if test -z "$ac_cv_prog_NMEDIT"; then 6323 ac_ct_NMEDIT=$NMEDIT 6324 # Extract the first word of "nmedit", so it can be a program name with args. 6325set dummy nmedit; ac_word=$2 6326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6327$as_echo_n "checking for $ac_word... " >&6; } 6328if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6329 $as_echo_n "(cached) " >&6 6330else 6331 if test -n "$ac_ct_NMEDIT"; then 6332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6333else 6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6335for as_dir in $PATH 6336do 6337 IFS=$as_save_IFS 6338 test -z "$as_dir" && as_dir=. 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6341 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345done 6346done 6347IFS=$as_save_IFS 6348 6349fi 6350fi 6351ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6352if test -n "$ac_ct_NMEDIT"; then 6353 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6354$as_echo "$ac_ct_NMEDIT" >&6; } 6355else 6356 { $as_echo "$as_me:$LINENO: result: no" >&5 6357$as_echo "no" >&6; } 6358fi 6359 6360 if test "x$ac_ct_NMEDIT" = x; then 6361 NMEDIT=":" 6362 else 6363 case $cross_compiling:$ac_tool_warned in 6364yes:) 6365{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6367ac_tool_warned=yes ;; 6368esac 6369 NMEDIT=$ac_ct_NMEDIT 6370 fi 6371else 6372 NMEDIT="$ac_cv_prog_NMEDIT" 6373fi 6374 6375 if test -n "$ac_tool_prefix"; then 6376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6377set dummy ${ac_tool_prefix}lipo; ac_word=$2 6378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6379$as_echo_n "checking for $ac_word... " >&6; } 6380if test "${ac_cv_prog_LIPO+set}" = set; then 6381 $as_echo_n "(cached) " >&6 6382else 6383 if test -n "$LIPO"; then 6384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6385else 6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6387for as_dir in $PATH 6388do 6389 IFS=$as_save_IFS 6390 test -z "$as_dir" && as_dir=. 6391 for ac_exec_ext in '' $ac_executable_extensions; do 6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6395 break 2 6396 fi 6397done 6398done 6399IFS=$as_save_IFS 6400 6401fi 6402fi 6403LIPO=$ac_cv_prog_LIPO 6404if test -n "$LIPO"; then 6405 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6406$as_echo "$LIPO" >&6; } 6407else 6408 { $as_echo "$as_me:$LINENO: result: no" >&5 6409$as_echo "no" >&6; } 6410fi 6411 6412 6413fi 6414if test -z "$ac_cv_prog_LIPO"; then 6415 ac_ct_LIPO=$LIPO 6416 # Extract the first word of "lipo", so it can be a program name with args. 6417set dummy lipo; ac_word=$2 6418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6419$as_echo_n "checking for $ac_word... " >&6; } 6420if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6421 $as_echo_n "(cached) " >&6 6422else 6423 if test -n "$ac_ct_LIPO"; then 6424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6425else 6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6427for as_dir in $PATH 6428do 6429 IFS=$as_save_IFS 6430 test -z "$as_dir" && as_dir=. 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6433 ac_cv_prog_ac_ct_LIPO="lipo" 6434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437done 6438done 6439IFS=$as_save_IFS 6440 6441fi 6442fi 6443ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6444if test -n "$ac_ct_LIPO"; then 6445 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6446$as_echo "$ac_ct_LIPO" >&6; } 6447else 6448 { $as_echo "$as_me:$LINENO: result: no" >&5 6449$as_echo "no" >&6; } 6450fi 6451 6452 if test "x$ac_ct_LIPO" = x; then 6453 LIPO=":" 6454 else 6455 case $cross_compiling:$ac_tool_warned in 6456yes:) 6457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6459ac_tool_warned=yes ;; 6460esac 6461 LIPO=$ac_ct_LIPO 6462 fi 6463else 6464 LIPO="$ac_cv_prog_LIPO" 6465fi 6466 6467 if test -n "$ac_tool_prefix"; then 6468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6469set dummy ${ac_tool_prefix}otool; ac_word=$2 6470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if test "${ac_cv_prog_OTOOL+set}" = set; then 6473 $as_echo_n "(cached) " >&6 6474else 6475 if test -n "$OTOOL"; then 6476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6477else 6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479for as_dir in $PATH 6480do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490done 6491IFS=$as_save_IFS 6492 6493fi 6494fi 6495OTOOL=$ac_cv_prog_OTOOL 6496if test -n "$OTOOL"; then 6497 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6498$as_echo "$OTOOL" >&6; } 6499else 6500 { $as_echo "$as_me:$LINENO: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503 6504 6505fi 6506if test -z "$ac_cv_prog_OTOOL"; then 6507 ac_ct_OTOOL=$OTOOL 6508 # Extract the first word of "otool", so it can be a program name with args. 6509set dummy otool; ac_word=$2 6510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6511$as_echo_n "checking for $ac_word... " >&6; } 6512if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6513 $as_echo_n "(cached) " >&6 6514else 6515 if test -n "$ac_ct_OTOOL"; then 6516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6517else 6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6525 ac_cv_prog_ac_ct_OTOOL="otool" 6526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530done 6531IFS=$as_save_IFS 6532 6533fi 6534fi 6535ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6536if test -n "$ac_ct_OTOOL"; then 6537 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6538$as_echo "$ac_ct_OTOOL" >&6; } 6539else 6540 { $as_echo "$as_me:$LINENO: result: no" >&5 6541$as_echo "no" >&6; } 6542fi 6543 6544 if test "x$ac_ct_OTOOL" = x; then 6545 OTOOL=":" 6546 else 6547 case $cross_compiling:$ac_tool_warned in 6548yes:) 6549{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6551ac_tool_warned=yes ;; 6552esac 6553 OTOOL=$ac_ct_OTOOL 6554 fi 6555else 6556 OTOOL="$ac_cv_prog_OTOOL" 6557fi 6558 6559 if test -n "$ac_tool_prefix"; then 6560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6561set dummy ${ac_tool_prefix}otool64; ac_word=$2 6562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6563$as_echo_n "checking for $ac_word... " >&6; } 6564if test "${ac_cv_prog_OTOOL64+set}" = set; then 6565 $as_echo_n "(cached) " >&6 6566else 6567 if test -n "$OTOOL64"; then 6568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6569else 6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6571for as_dir in $PATH 6572do 6573 IFS=$as_save_IFS 6574 test -z "$as_dir" && as_dir=. 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581done 6582done 6583IFS=$as_save_IFS 6584 6585fi 6586fi 6587OTOOL64=$ac_cv_prog_OTOOL64 6588if test -n "$OTOOL64"; then 6589 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6590$as_echo "$OTOOL64" >&6; } 6591else 6592 { $as_echo "$as_me:$LINENO: result: no" >&5 6593$as_echo "no" >&6; } 6594fi 6595 6596 6597fi 6598if test -z "$ac_cv_prog_OTOOL64"; then 6599 ac_ct_OTOOL64=$OTOOL64 6600 # Extract the first word of "otool64", so it can be a program name with args. 6601set dummy otool64; ac_word=$2 6602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6603$as_echo_n "checking for $ac_word... " >&6; } 6604if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6605 $as_echo_n "(cached) " >&6 6606else 6607 if test -n "$ac_ct_OTOOL64"; then 6608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 test -z "$as_dir" && as_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6617 ac_cv_prog_ac_ct_OTOOL64="otool64" 6618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6619 break 2 6620 fi 6621done 6622done 6623IFS=$as_save_IFS 6624 6625fi 6626fi 6627ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6628if test -n "$ac_ct_OTOOL64"; then 6629 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6630$as_echo "$ac_ct_OTOOL64" >&6; } 6631else 6632 { $as_echo "$as_me:$LINENO: result: no" >&5 6633$as_echo "no" >&6; } 6634fi 6635 6636 if test "x$ac_ct_OTOOL64" = x; then 6637 OTOOL64=":" 6638 else 6639 case $cross_compiling:$ac_tool_warned in 6640yes:) 6641{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6643ac_tool_warned=yes ;; 6644esac 6645 OTOOL64=$ac_ct_OTOOL64 6646 fi 6647else 6648 OTOOL64="$ac_cv_prog_OTOOL64" 6649fi 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6678$as_echo_n "checking for -single_module linker flag... " >&6; } 6679if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6680 $as_echo_n "(cached) " >&6 6681else 6682 lt_cv_apple_cc_single_mod=no 6683 if test -z "${LT_MULTI_MODULE}"; then 6684 # By default we will add the -single_module flag. You can override 6685 # by either setting the environment variable LT_MULTI_MODULE 6686 # non-empty at configure time, or by adding -multi_module to the 6687 # link flags. 6688 rm -rf libconftest.dylib* 6689 echo "int foo(void){return 1;}" > conftest.c 6690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6691-dynamiclib -Wl,-single_module conftest.c" >&5 6692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6694 _lt_result=$? 6695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6696 lt_cv_apple_cc_single_mod=yes 6697 else 6698 cat conftest.err >&5 6699 fi 6700 rm -rf libconftest.dylib* 6701 rm -f conftest.* 6702 fi 6703fi 6704{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6705$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6706 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6707$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6708if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6709 $as_echo_n "(cached) " >&6 6710else 6711 lt_cv_ld_exported_symbols_list=no 6712 save_LDFLAGS=$LDFLAGS 6713 echo "_main" > conftest.sym 6714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6715 cat >conftest.$ac_ext <<_ACEOF 6716/* confdefs.h. */ 6717_ACEOF 6718cat confdefs.h >>conftest.$ac_ext 6719cat >>conftest.$ac_ext <<_ACEOF 6720/* end confdefs.h. */ 6721 6722int 6723main () 6724{ 6725 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730rm -f conftest.$ac_objext conftest$ac_exeext 6731if { (ac_try="$ac_link" 6732case "(($ac_try" in 6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6734 *) ac_try_echo=$ac_try;; 6735esac 6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6737$as_echo "$ac_try_echo") >&5 6738 (eval "$ac_link") 2>conftest.er1 6739 ac_status=$? 6740 grep -v '^ *+' conftest.er1 >conftest.err 6741 rm -f conftest.er1 6742 cat conftest.err >&5 6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6744 (exit $ac_status); } && { 6745 test -z "$ac_c_werror_flag" || 6746 test ! -s conftest.err 6747 } && test -s conftest$ac_exeext && { 6748 test "$cross_compiling" = yes || 6749 $as_test_x conftest$ac_exeext 6750 }; then 6751 lt_cv_ld_exported_symbols_list=yes 6752else 6753 $as_echo "$as_me: failed program was:" >&5 6754sed 's/^/| /' conftest.$ac_ext >&5 6755 6756 lt_cv_ld_exported_symbols_list=no 6757fi 6758 6759rm -rf conftest.dSYM 6760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6761 conftest$ac_exeext conftest.$ac_ext 6762 LDFLAGS="$save_LDFLAGS" 6763 6764fi 6765{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6766$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6767 case $host_os in 6768 rhapsody* | darwin1.[012]) 6769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6770 darwin1.*) 6771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6772 darwin*) # darwin 5.x on 6773 # if running on 10.5 or later, the deployment target defaults 6774 # to the OS version, if on x86, and 10.4, the deployment 6775 # target defaults to 10.4. Don't you love it? 6776 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6777 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6778 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6779 10.[012]*) 6780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6781 10.*) 6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6783 esac 6784 ;; 6785 esac 6786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6787 _lt_dar_single_mod='$single_module' 6788 fi 6789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6791 else 6792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6793 fi 6794 if test "$DSYMUTIL" != ":"; then 6795 _lt_dsymutil='~$DSYMUTIL $lib || :' 6796 else 6797 _lt_dsymutil= 6798 fi 6799 ;; 6800 esac 6801 6802{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6803$as_echo_n "checking for ANSI C header files... " >&6; } 6804if test "${ac_cv_header_stdc+set}" = set; then 6805 $as_echo_n "(cached) " >&6 6806else 6807 cat >conftest.$ac_ext <<_ACEOF 6808/* confdefs.h. */ 6809_ACEOF 6810cat confdefs.h >>conftest.$ac_ext 6811cat >>conftest.$ac_ext <<_ACEOF 6812/* end confdefs.h. */ 6813#include <stdlib.h> 6814#include <stdarg.h> 6815#include <string.h> 6816#include <float.h> 6817 6818int 6819main () 6820{ 6821 6822 ; 6823 return 0; 6824} 6825_ACEOF 6826rm -f conftest.$ac_objext 6827if { (ac_try="$ac_compile" 6828case "(($ac_try" in 6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6830 *) ac_try_echo=$ac_try;; 6831esac 6832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6833$as_echo "$ac_try_echo") >&5 6834 (eval "$ac_compile") 2>conftest.er1 6835 ac_status=$? 6836 grep -v '^ *+' conftest.er1 >conftest.err 6837 rm -f conftest.er1 6838 cat conftest.err >&5 6839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); } && { 6841 test -z "$ac_c_werror_flag" || 6842 test ! -s conftest.err 6843 } && test -s conftest.$ac_objext; then 6844 ac_cv_header_stdc=yes 6845else 6846 $as_echo "$as_me: failed program was:" >&5 6847sed 's/^/| /' conftest.$ac_ext >&5 6848 6849 ac_cv_header_stdc=no 6850fi 6851 6852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6853 6854if test $ac_cv_header_stdc = yes; then 6855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6856 cat >conftest.$ac_ext <<_ACEOF 6857/* confdefs.h. */ 6858_ACEOF 6859cat confdefs.h >>conftest.$ac_ext 6860cat >>conftest.$ac_ext <<_ACEOF 6861/* end confdefs.h. */ 6862#include <string.h> 6863 6864_ACEOF 6865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6866 $EGREP "memchr" >/dev/null 2>&1; then 6867 : 6868else 6869 ac_cv_header_stdc=no 6870fi 6871rm -f conftest* 6872 6873fi 6874 6875if test $ac_cv_header_stdc = yes; then 6876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6877 cat >conftest.$ac_ext <<_ACEOF 6878/* confdefs.h. */ 6879_ACEOF 6880cat confdefs.h >>conftest.$ac_ext 6881cat >>conftest.$ac_ext <<_ACEOF 6882/* end confdefs.h. */ 6883#include <stdlib.h> 6884 6885_ACEOF 6886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6887 $EGREP "free" >/dev/null 2>&1; then 6888 : 6889else 6890 ac_cv_header_stdc=no 6891fi 6892rm -f conftest* 6893 6894fi 6895 6896if test $ac_cv_header_stdc = yes; then 6897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6898 if test "$cross_compiling" = yes; then 6899 : 6900else 6901 cat >conftest.$ac_ext <<_ACEOF 6902/* confdefs.h. */ 6903_ACEOF 6904cat confdefs.h >>conftest.$ac_ext 6905cat >>conftest.$ac_ext <<_ACEOF 6906/* end confdefs.h. */ 6907#include <ctype.h> 6908#include <stdlib.h> 6909#if ((' ' & 0x0FF) == 0x020) 6910# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6911# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6912#else 6913# define ISLOWER(c) \ 6914 (('a' <= (c) && (c) <= 'i') \ 6915 || ('j' <= (c) && (c) <= 'r') \ 6916 || ('s' <= (c) && (c) <= 'z')) 6917# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6918#endif 6919 6920#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6921int 6922main () 6923{ 6924 int i; 6925 for (i = 0; i < 256; i++) 6926 if (XOR (islower (i), ISLOWER (i)) 6927 || toupper (i) != TOUPPER (i)) 6928 return 2; 6929 return 0; 6930} 6931_ACEOF 6932rm -f conftest$ac_exeext 6933if { (ac_try="$ac_link" 6934case "(($ac_try" in 6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6936 *) ac_try_echo=$ac_try;; 6937esac 6938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6939$as_echo "$ac_try_echo") >&5 6940 (eval "$ac_link") 2>&5 6941 ac_status=$? 6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6944 { (case "(($ac_try" in 6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6946 *) ac_try_echo=$ac_try;; 6947esac 6948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6949$as_echo "$ac_try_echo") >&5 6950 (eval "$ac_try") 2>&5 6951 ac_status=$? 6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6953 (exit $ac_status); }; }; then 6954 : 6955else 6956 $as_echo "$as_me: program exited with status $ac_status" >&5 6957$as_echo "$as_me: failed program was:" >&5 6958sed 's/^/| /' conftest.$ac_ext >&5 6959 6960( exit $ac_status ) 6961ac_cv_header_stdc=no 6962fi 6963rm -rf conftest.dSYM 6964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6965fi 6966 6967 6968fi 6969fi 6970{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6971$as_echo "$ac_cv_header_stdc" >&6; } 6972if test $ac_cv_header_stdc = yes; then 6973 6974cat >>confdefs.h <<\_ACEOF 6975@%:@define STDC_HEADERS 1 6976_ACEOF 6977 6978fi 6979 6980# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6991 inttypes.h stdint.h unistd.h 6992do 6993as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6994{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6995$as_echo_n "checking for $ac_header... " >&6; } 6996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6997 $as_echo_n "(cached) " >&6 6998else 6999 cat >conftest.$ac_ext <<_ACEOF 7000/* confdefs.h. */ 7001_ACEOF 7002cat confdefs.h >>conftest.$ac_ext 7003cat >>conftest.$ac_ext <<_ACEOF 7004/* end confdefs.h. */ 7005$ac_includes_default 7006 7007@%:@include <$ac_header> 7008_ACEOF 7009rm -f conftest.$ac_objext 7010if { (ac_try="$ac_compile" 7011case "(($ac_try" in 7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7013 *) ac_try_echo=$ac_try;; 7014esac 7015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7016$as_echo "$ac_try_echo") >&5 7017 (eval "$ac_compile") 2>conftest.er1 7018 ac_status=$? 7019 grep -v '^ *+' conftest.er1 >conftest.err 7020 rm -f conftest.er1 7021 cat conftest.err >&5 7022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7023 (exit $ac_status); } && { 7024 test -z "$ac_c_werror_flag" || 7025 test ! -s conftest.err 7026 } && test -s conftest.$ac_objext; then 7027 eval "$as_ac_Header=yes" 7028else 7029 $as_echo "$as_me: failed program was:" >&5 7030sed 's/^/| /' conftest.$ac_ext >&5 7031 7032 eval "$as_ac_Header=no" 7033fi 7034 7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7036fi 7037ac_res=`eval 'as_val=${'$as_ac_Header'} 7038 $as_echo "$as_val"'` 7039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7040$as_echo "$ac_res" >&6; } 7041as_val=`eval 'as_val=${'$as_ac_Header'} 7042 $as_echo "$as_val"'` 7043 if test "x$as_val" = x""yes; then 7044 cat >>confdefs.h <<_ACEOF 7045@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7046_ACEOF 7047 7048fi 7049 7050done 7051 7052 7053 7054for ac_header in dlfcn.h 7055do 7056as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7057{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7058$as_echo_n "checking for $ac_header... " >&6; } 7059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7060 $as_echo_n "(cached) " >&6 7061else 7062 cat >conftest.$ac_ext <<_ACEOF 7063/* confdefs.h. */ 7064_ACEOF 7065cat confdefs.h >>conftest.$ac_ext 7066cat >>conftest.$ac_ext <<_ACEOF 7067/* end confdefs.h. */ 7068$ac_includes_default 7069 7070@%:@include <$ac_header> 7071_ACEOF 7072rm -f conftest.$ac_objext 7073if { (ac_try="$ac_compile" 7074case "(($ac_try" in 7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7076 *) ac_try_echo=$ac_try;; 7077esac 7078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7079$as_echo "$ac_try_echo") >&5 7080 (eval "$ac_compile") 2>conftest.er1 7081 ac_status=$? 7082 grep -v '^ *+' conftest.er1 >conftest.err 7083 rm -f conftest.er1 7084 cat conftest.err >&5 7085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7086 (exit $ac_status); } && { 7087 test -z "$ac_c_werror_flag" || 7088 test ! -s conftest.err 7089 } && test -s conftest.$ac_objext; then 7090 eval "$as_ac_Header=yes" 7091else 7092 $as_echo "$as_me: failed program was:" >&5 7093sed 's/^/| /' conftest.$ac_ext >&5 7094 7095 eval "$as_ac_Header=no" 7096fi 7097 7098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7099fi 7100ac_res=`eval 'as_val=${'$as_ac_Header'} 7101 $as_echo "$as_val"'` 7102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7103$as_echo "$ac_res" >&6; } 7104as_val=`eval 'as_val=${'$as_ac_Header'} 7105 $as_echo "$as_val"'` 7106 if test "x$as_val" = x""yes; then 7107 cat >>confdefs.h <<_ACEOF 7108@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7109_ACEOF 7110 7111fi 7112 7113done 7114 7115 7116 7117# Set options 7118 7119 7120 7121 enable_dlopen=no 7122 7123 7124 enable_win32_dll=no 7125 7126 7127 @%:@ Check whether --enable-shared was given. 7128if test "${enable_shared+set}" = set; then 7129 enableval=$enable_shared; p=${PACKAGE-default} 7130 case $enableval in 7131 yes) enable_shared=yes ;; 7132 no) enable_shared=no ;; 7133 *) 7134 enable_shared=no 7135 # Look at the argument we got. We use all the common list separators. 7136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7137 for pkg in $enableval; do 7138 IFS="$lt_save_ifs" 7139 if test "X$pkg" = "X$p"; then 7140 enable_shared=yes 7141 fi 7142 done 7143 IFS="$lt_save_ifs" 7144 ;; 7145 esac 7146else 7147 enable_shared=yes 7148fi 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 @%:@ Check whether --enable-static was given. 7159if test "${enable_static+set}" = set; then 7160 enableval=$enable_static; p=${PACKAGE-default} 7161 case $enableval in 7162 yes) enable_static=yes ;; 7163 no) enable_static=no ;; 7164 *) 7165 enable_static=no 7166 # Look at the argument we got. We use all the common list separators. 7167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7168 for pkg in $enableval; do 7169 IFS="$lt_save_ifs" 7170 if test "X$pkg" = "X$p"; then 7171 enable_static=yes 7172 fi 7173 done 7174 IFS="$lt_save_ifs" 7175 ;; 7176 esac 7177else 7178 enable_static=yes 7179fi 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190@%:@ Check whether --with-pic was given. 7191if test "${with_pic+set}" = set; then 7192 withval=$with_pic; pic_mode="$withval" 7193else 7194 pic_mode=default 7195fi 7196 7197 7198test -z "$pic_mode" && pic_mode=default 7199 7200 7201 7202 7203 7204 7205 7206 @%:@ Check whether --enable-fast-install was given. 7207if test "${enable_fast_install+set}" = set; then 7208 enableval=$enable_fast_install; p=${PACKAGE-default} 7209 case $enableval in 7210 yes) enable_fast_install=yes ;; 7211 no) enable_fast_install=no ;; 7212 *) 7213 enable_fast_install=no 7214 # Look at the argument we got. We use all the common list separators. 7215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7216 for pkg in $enableval; do 7217 IFS="$lt_save_ifs" 7218 if test "X$pkg" = "X$p"; then 7219 enable_fast_install=yes 7220 fi 7221 done 7222 IFS="$lt_save_ifs" 7223 ;; 7224 esac 7225else 7226 enable_fast_install=yes 7227fi 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239# This can be used to rebuild libtool when needed 7240LIBTOOL_DEPS="$ltmain" 7241 7242# Always use our own libtool. 7243LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269test -z "$LN_S" && LN_S="ln -s" 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284if test -n "${ZSH_VERSION+set}" ; then 7285 setopt NO_GLOB_SUBST 7286fi 7287 7288{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7289$as_echo_n "checking for objdir... " >&6; } 7290if test "${lt_cv_objdir+set}" = set; then 7291 $as_echo_n "(cached) " >&6 7292else 7293 rm -f .libs 2>/dev/null 7294mkdir .libs 2>/dev/null 7295if test -d .libs; then 7296 lt_cv_objdir=.libs 7297else 7298 # MS-DOS does not allow filenames that begin with a dot. 7299 lt_cv_objdir=_libs 7300fi 7301rmdir .libs 2>/dev/null 7302fi 7303{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7304$as_echo "$lt_cv_objdir" >&6; } 7305objdir=$lt_cv_objdir 7306 7307 7308 7309 7310 7311cat >>confdefs.h <<_ACEOF 7312@%:@define LT_OBJDIR "$lt_cv_objdir/" 7313_ACEOF 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331case $host_os in 7332aix3*) 7333 # AIX sometimes has problems with the GCC collect2 program. For some 7334 # reason, if we set the COLLECT_NAMES environment variable, the problems 7335 # vanish in a puff of smoke. 7336 if test "X${COLLECT_NAMES+set}" != Xset; then 7337 COLLECT_NAMES= 7338 export COLLECT_NAMES 7339 fi 7340 ;; 7341esac 7342 7343# Sed substitution that helps us do robust quoting. It backslashifies 7344# metacharacters that are still active within double-quoted strings. 7345sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7346 7347# Same as above, but do not quote variable references. 7348double_quote_subst='s/\(["`\\]\)/\\\1/g' 7349 7350# Sed substitution to delay expansion of an escaped shell variable in a 7351# double_quote_subst'ed string. 7352delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7353 7354# Sed substitution to delay expansion of an escaped single quote. 7355delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7356 7357# Sed substitution to avoid accidental globbing in evaled expressions 7358no_glob_subst='s/\*/\\\*/g' 7359 7360# Global variables: 7361ofile=libtool 7362can_build_shared=yes 7363 7364# All known linkers require a `.a' archive for static linking (except MSVC, 7365# which needs '.lib'). 7366libext=a 7367 7368with_gnu_ld="$lt_cv_prog_gnu_ld" 7369 7370old_CC="$CC" 7371old_CFLAGS="$CFLAGS" 7372 7373# Set sane defaults for various variables 7374test -z "$CC" && CC=cc 7375test -z "$LTCC" && LTCC=$CC 7376test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7377test -z "$LD" && LD=ld 7378test -z "$ac_objext" && ac_objext=o 7379 7380for cc_temp in $compiler""; do 7381 case $cc_temp in 7382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7384 \-*) ;; 7385 *) break;; 7386 esac 7387done 7388cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7389 7390 7391# Only perform the check for file, if the check method requires it 7392test -z "$MAGIC_CMD" && MAGIC_CMD=file 7393case $deplibs_check_method in 7394file_magic*) 7395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7396 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7397$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7398if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7399 $as_echo_n "(cached) " >&6 7400else 7401 case $MAGIC_CMD in 7402[\\/*] | ?:[\\/]*) 7403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7404 ;; 7405*) 7406 lt_save_MAGIC_CMD="$MAGIC_CMD" 7407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7409 for ac_dir in $ac_dummy; do 7410 IFS="$lt_save_ifs" 7411 test -z "$ac_dir" && ac_dir=. 7412 if test -f $ac_dir/${ac_tool_prefix}file; then 7413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7414 if test -n "$file_magic_test_file"; then 7415 case $deplibs_check_method in 7416 "file_magic "*) 7417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7420 $EGREP "$file_magic_regex" > /dev/null; then 7421 : 7422 else 7423 cat <<_LT_EOF 1>&2 7424 7425*** Warning: the command libtool uses to detect shared libraries, 7426*** $file_magic_cmd, produces output that libtool cannot recognize. 7427*** The result is that libtool may fail to recognize shared libraries 7428*** as such. This will affect the creation of libtool libraries that 7429*** depend on shared libraries, but programs linked with such libtool 7430*** libraries will work regardless of this problem. Nevertheless, you 7431*** may want to report the problem to your system manager and/or to 7432*** bug-libtool@gnu.org 7433 7434_LT_EOF 7435 fi ;; 7436 esac 7437 fi 7438 break 7439 fi 7440 done 7441 IFS="$lt_save_ifs" 7442 MAGIC_CMD="$lt_save_MAGIC_CMD" 7443 ;; 7444esac 7445fi 7446 7447MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7448if test -n "$MAGIC_CMD"; then 7449 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7450$as_echo "$MAGIC_CMD" >&6; } 7451else 7452 { $as_echo "$as_me:$LINENO: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 7457 7458 7459 7460if test -z "$lt_cv_path_MAGIC_CMD"; then 7461 if test -n "$ac_tool_prefix"; then 7462 { $as_echo "$as_me:$LINENO: checking for file" >&5 7463$as_echo_n "checking for file... " >&6; } 7464if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7465 $as_echo_n "(cached) " >&6 7466else 7467 case $MAGIC_CMD in 7468[\\/*] | ?:[\\/]*) 7469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7470 ;; 7471*) 7472 lt_save_MAGIC_CMD="$MAGIC_CMD" 7473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7475 for ac_dir in $ac_dummy; do 7476 IFS="$lt_save_ifs" 7477 test -z "$ac_dir" && ac_dir=. 7478 if test -f $ac_dir/file; then 7479 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7480 if test -n "$file_magic_test_file"; then 7481 case $deplibs_check_method in 7482 "file_magic "*) 7483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7486 $EGREP "$file_magic_regex" > /dev/null; then 7487 : 7488 else 7489 cat <<_LT_EOF 1>&2 7490 7491*** Warning: the command libtool uses to detect shared libraries, 7492*** $file_magic_cmd, produces output that libtool cannot recognize. 7493*** The result is that libtool may fail to recognize shared libraries 7494*** as such. This will affect the creation of libtool libraries that 7495*** depend on shared libraries, but programs linked with such libtool 7496*** libraries will work regardless of this problem. Nevertheless, you 7497*** may want to report the problem to your system manager and/or to 7498*** bug-libtool@gnu.org 7499 7500_LT_EOF 7501 fi ;; 7502 esac 7503 fi 7504 break 7505 fi 7506 done 7507 IFS="$lt_save_ifs" 7508 MAGIC_CMD="$lt_save_MAGIC_CMD" 7509 ;; 7510esac 7511fi 7512 7513MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7514if test -n "$MAGIC_CMD"; then 7515 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7516$as_echo "$MAGIC_CMD" >&6; } 7517else 7518 { $as_echo "$as_me:$LINENO: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 7523 else 7524 MAGIC_CMD=: 7525 fi 7526fi 7527 7528 fi 7529 ;; 7530esac 7531 7532# Use C for the default configuration in the libtool script 7533 7534lt_save_CC="$CC" 7535ac_ext=c 7536ac_cpp='$CPP $CPPFLAGS' 7537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7539ac_compiler_gnu=$ac_cv_c_compiler_gnu 7540 7541 7542# Source file extension for C test sources. 7543ac_ext=c 7544 7545# Object file extension for compiled C test sources. 7546objext=o 7547objext=$objext 7548 7549# Code to be used in simple compile tests 7550lt_simple_compile_test_code="int some_variable = 0;" 7551 7552# Code to be used in simple link tests 7553lt_simple_link_test_code='int main(){return(0);}' 7554 7555 7556 7557 7558 7559 7560 7561# If no C compiler was specified, use CC. 7562LTCC=${LTCC-"$CC"} 7563 7564# If no C compiler flags were specified, use CFLAGS. 7565LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7566 7567# Allow CC to be a program name with arguments. 7568compiler=$CC 7569 7570# Save the default compiler, since it gets overwritten when the other 7571# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7572compiler_DEFAULT=$CC 7573 7574# save warnings/boilerplate of simple test code 7575ac_outfile=conftest.$ac_objext 7576echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7577eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7578_lt_compiler_boilerplate=`cat conftest.err` 7579$RM conftest* 7580 7581ac_outfile=conftest.$ac_objext 7582echo "$lt_simple_link_test_code" >conftest.$ac_ext 7583eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7584_lt_linker_boilerplate=`cat conftest.err` 7585$RM -r conftest* 7586 7587 7588if test -n "$compiler"; then 7589 7590lt_prog_compiler_no_builtin_flag= 7591 7592if test "$GCC" = yes; then 7593 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7594 7595 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7596$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7597if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7598 $as_echo_n "(cached) " >&6 7599else 7600 lt_cv_prog_compiler_rtti_exceptions=no 7601 ac_outfile=conftest.$ac_objext 7602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7603 lt_compiler_flag="-fno-rtti -fno-exceptions" 7604 # Insert the option either (1) after the last *FLAGS variable, or 7605 # (2) before a word containing "conftest.", or (3) at the end. 7606 # Note that $ac_compile itself does not contain backslashes and begins 7607 # with a dollar sign (not a hyphen), so the echo should work correctly. 7608 # The option is referenced via a variable to avoid confusing sed. 7609 lt_compile=`echo "$ac_compile" | $SED \ 7610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7612 -e 's:$: $lt_compiler_flag:'` 7613 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7614 (eval "$lt_compile" 2>conftest.err) 7615 ac_status=$? 7616 cat conftest.err >&5 7617 echo "$as_me:__oline__: \$? = $ac_status" >&5 7618 if (exit $ac_status) && test -s "$ac_outfile"; then 7619 # The compiler can only warn and ignore the option if not recognized 7620 # So say no if there are warnings other than the usual output. 7621 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7624 lt_cv_prog_compiler_rtti_exceptions=yes 7625 fi 7626 fi 7627 $RM conftest* 7628 7629fi 7630{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7631$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7632 7633if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7634 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7635else 7636 : 7637fi 7638 7639fi 7640 7641 7642 7643 7644 7645 7646 lt_prog_compiler_wl= 7647lt_prog_compiler_pic= 7648lt_prog_compiler_static= 7649 7650{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7651$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7652 7653 if test "$GCC" = yes; then 7654 lt_prog_compiler_wl='-Wl,' 7655 lt_prog_compiler_static='-static' 7656 7657 case $host_os in 7658 aix*) 7659 # All AIX code is PIC. 7660 if test "$host_cpu" = ia64; then 7661 # AIX 5 now supports IA64 processor 7662 lt_prog_compiler_static='-Bstatic' 7663 fi 7664 ;; 7665 7666 amigaos*) 7667 case $host_cpu in 7668 powerpc) 7669 # see comment about AmigaOS4 .so support 7670 lt_prog_compiler_pic='-fPIC' 7671 ;; 7672 m68k) 7673 # FIXME: we need at least 68020 code to build shared libraries, but 7674 # adding the `-m68020' flag to GCC prevents building anything better, 7675 # like `-m68040'. 7676 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7677 ;; 7678 esac 7679 ;; 7680 7681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7682 # PIC is the default for these OSes. 7683 ;; 7684 7685 mingw* | cygwin* | pw32* | os2* | cegcc*) 7686 # This hack is so that the source file can tell whether it is being 7687 # built for inclusion in a dll (and should export symbols for example). 7688 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7689 # (--disable-auto-import) libraries 7690 lt_prog_compiler_pic='-DDLL_EXPORT' 7691 ;; 7692 7693 darwin* | rhapsody*) 7694 # PIC is the default on this platform 7695 # Common symbols not allowed in MH_DYLIB files 7696 lt_prog_compiler_pic='-fno-common' 7697 ;; 7698 7699 hpux*) 7700 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7701 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7702 # sets the default TLS model and affects inlining. 7703 case $host_cpu in 7704 hppa*64*) 7705 # +Z the default 7706 ;; 7707 *) 7708 lt_prog_compiler_pic='-fPIC' 7709 ;; 7710 esac 7711 ;; 7712 7713 interix[3-9]*) 7714 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7715 # Instead, we relocate shared libraries at runtime. 7716 ;; 7717 7718 msdosdjgpp*) 7719 # Just because we use GCC doesn't mean we suddenly get shared libraries 7720 # on systems that don't support them. 7721 lt_prog_compiler_can_build_shared=no 7722 enable_shared=no 7723 ;; 7724 7725 *nto* | *qnx*) 7726 # QNX uses GNU C++, but need to define -shared option too, otherwise 7727 # it will coredump. 7728 lt_prog_compiler_pic='-fPIC -shared' 7729 ;; 7730 7731 sysv4*MP*) 7732 if test -d /usr/nec; then 7733 lt_prog_compiler_pic=-Kconform_pic 7734 fi 7735 ;; 7736 7737 *) 7738 lt_prog_compiler_pic='-fPIC' 7739 ;; 7740 esac 7741 else 7742 # PORTME Check for flag to pass linker flags through the system compiler. 7743 case $host_os in 7744 aix*) 7745 lt_prog_compiler_wl='-Wl,' 7746 if test "$host_cpu" = ia64; then 7747 # AIX 5 now supports IA64 processor 7748 lt_prog_compiler_static='-Bstatic' 7749 else 7750 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7751 fi 7752 ;; 7753 7754 mingw* | cygwin* | pw32* | os2* | cegcc*) 7755 # This hack is so that the source file can tell whether it is being 7756 # built for inclusion in a dll (and should export symbols for example). 7757 lt_prog_compiler_pic='-DDLL_EXPORT' 7758 ;; 7759 7760 hpux9* | hpux10* | hpux11*) 7761 lt_prog_compiler_wl='-Wl,' 7762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7763 # not for PA HP-UX. 7764 case $host_cpu in 7765 hppa*64*|ia64*) 7766 # +Z the default 7767 ;; 7768 *) 7769 lt_prog_compiler_pic='+Z' 7770 ;; 7771 esac 7772 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7773 lt_prog_compiler_static='${wl}-a ${wl}archive' 7774 ;; 7775 7776 irix5* | irix6* | nonstopux*) 7777 lt_prog_compiler_wl='-Wl,' 7778 # PIC (with -KPIC) is the default. 7779 lt_prog_compiler_static='-non_shared' 7780 ;; 7781 7782 linux* | k*bsd*-gnu) 7783 case $cc_basename in 7784 # old Intel for x86_64 which still supported -KPIC. 7785 ecc*) 7786 lt_prog_compiler_wl='-Wl,' 7787 lt_prog_compiler_pic='-KPIC' 7788 lt_prog_compiler_static='-static' 7789 ;; 7790 # icc used to be incompatible with GCC. 7791 # ICC 10 doesn't accept -KPIC any more. 7792 icc* | ifort*) 7793 lt_prog_compiler_wl='-Wl,' 7794 lt_prog_compiler_pic='-fPIC' 7795 lt_prog_compiler_static='-static' 7796 ;; 7797 # Lahey Fortran 8.1. 7798 lf95*) 7799 lt_prog_compiler_wl='-Wl,' 7800 lt_prog_compiler_pic='--shared' 7801 lt_prog_compiler_static='--static' 7802 ;; 7803 pgcc* | pgf77* | pgf90* | pgf95*) 7804 # Portland Group compilers (*not* the Pentium gcc compiler, 7805 # which looks to be a dead project) 7806 lt_prog_compiler_wl='-Wl,' 7807 lt_prog_compiler_pic='-fpic' 7808 lt_prog_compiler_static='-Bstatic' 7809 ;; 7810 ccc*) 7811 lt_prog_compiler_wl='-Wl,' 7812 # All Alpha code is PIC. 7813 lt_prog_compiler_static='-non_shared' 7814 ;; 7815 xl*) 7816 # IBM XL C 8.0/Fortran 10.1 on PPC 7817 lt_prog_compiler_wl='-Wl,' 7818 lt_prog_compiler_pic='-qpic' 7819 lt_prog_compiler_static='-qstaticlink' 7820 ;; 7821 *) 7822 case `$CC -V 2>&1 | sed 5q` in 7823 *Sun\ C*) 7824 # Sun C 5.9 7825 lt_prog_compiler_pic='-KPIC' 7826 lt_prog_compiler_static='-Bstatic' 7827 lt_prog_compiler_wl='-Wl,' 7828 ;; 7829 *Sun\ F*) 7830 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7831 lt_prog_compiler_pic='-KPIC' 7832 lt_prog_compiler_static='-Bstatic' 7833 lt_prog_compiler_wl='' 7834 ;; 7835 esac 7836 ;; 7837 esac 7838 ;; 7839 7840 newsos6) 7841 lt_prog_compiler_pic='-KPIC' 7842 lt_prog_compiler_static='-Bstatic' 7843 ;; 7844 7845 *nto* | *qnx*) 7846 # QNX uses GNU C++, but need to define -shared option too, otherwise 7847 # it will coredump. 7848 lt_prog_compiler_pic='-fPIC -shared' 7849 ;; 7850 7851 osf3* | osf4* | osf5*) 7852 lt_prog_compiler_wl='-Wl,' 7853 # All OSF/1 code is PIC. 7854 lt_prog_compiler_static='-non_shared' 7855 ;; 7856 7857 rdos*) 7858 lt_prog_compiler_static='-non_shared' 7859 ;; 7860 7861 solaris*) 7862 lt_prog_compiler_pic='-KPIC' 7863 lt_prog_compiler_static='-Bstatic' 7864 case $cc_basename in 7865 f77* | f90* | f95*) 7866 lt_prog_compiler_wl='-Qoption ld ';; 7867 *) 7868 lt_prog_compiler_wl='-Wl,';; 7869 esac 7870 ;; 7871 7872 sunos4*) 7873 lt_prog_compiler_wl='-Qoption ld ' 7874 lt_prog_compiler_pic='-PIC' 7875 lt_prog_compiler_static='-Bstatic' 7876 ;; 7877 7878 sysv4 | sysv4.2uw2* | sysv4.3*) 7879 lt_prog_compiler_wl='-Wl,' 7880 lt_prog_compiler_pic='-KPIC' 7881 lt_prog_compiler_static='-Bstatic' 7882 ;; 7883 7884 sysv4*MP*) 7885 if test -d /usr/nec ;then 7886 lt_prog_compiler_pic='-Kconform_pic' 7887 lt_prog_compiler_static='-Bstatic' 7888 fi 7889 ;; 7890 7891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7892 lt_prog_compiler_wl='-Wl,' 7893 lt_prog_compiler_pic='-KPIC' 7894 lt_prog_compiler_static='-Bstatic' 7895 ;; 7896 7897 unicos*) 7898 lt_prog_compiler_wl='-Wl,' 7899 lt_prog_compiler_can_build_shared=no 7900 ;; 7901 7902 uts4*) 7903 lt_prog_compiler_pic='-pic' 7904 lt_prog_compiler_static='-Bstatic' 7905 ;; 7906 7907 *) 7908 lt_prog_compiler_can_build_shared=no 7909 ;; 7910 esac 7911 fi 7912 7913case $host_os in 7914 # For platforms which do not support PIC, -DPIC is meaningless: 7915 *djgpp*) 7916 lt_prog_compiler_pic= 7917 ;; 7918 *) 7919 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 7920 ;; 7921esac 7922{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7923$as_echo "$lt_prog_compiler_pic" >&6; } 7924 7925 7926 7927 7928 7929 7930# 7931# Check to make sure the PIC flag actually works. 7932# 7933if test -n "$lt_prog_compiler_pic"; then 7934 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7935$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7936if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7937 $as_echo_n "(cached) " >&6 7938else 7939 lt_cv_prog_compiler_pic_works=no 7940 ac_outfile=conftest.$ac_objext 7941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7942 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" 7943 # Insert the option either (1) after the last *FLAGS variable, or 7944 # (2) before a word containing "conftest.", or (3) at the end. 7945 # Note that $ac_compile itself does not contain backslashes and begins 7946 # with a dollar sign (not a hyphen), so the echo should work correctly. 7947 # The option is referenced via a variable to avoid confusing sed. 7948 lt_compile=`echo "$ac_compile" | $SED \ 7949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7951 -e 's:$: $lt_compiler_flag:'` 7952 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7953 (eval "$lt_compile" 2>conftest.err) 7954 ac_status=$? 7955 cat conftest.err >&5 7956 echo "$as_me:__oline__: \$? = $ac_status" >&5 7957 if (exit $ac_status) && test -s "$ac_outfile"; then 7958 # The compiler can only warn and ignore the option if not recognized 7959 # So say no if there are warnings other than the usual output. 7960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7963 lt_cv_prog_compiler_pic_works=yes 7964 fi 7965 fi 7966 $RM conftest* 7967 7968fi 7969{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7970$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7971 7972if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7973 case $lt_prog_compiler_pic in 7974 "" | " "*) ;; 7975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7976 esac 7977else 7978 lt_prog_compiler_pic= 7979 lt_prog_compiler_can_build_shared=no 7980fi 7981 7982fi 7983 7984 7985 7986 7987 7988 7989# 7990# Check to make sure the static flag actually works. 7991# 7992wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7993{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7994$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7995if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7996 $as_echo_n "(cached) " >&6 7997else 7998 lt_cv_prog_compiler_static_works=no 7999 save_LDFLAGS="$LDFLAGS" 8000 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8001 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8003 # The linker can only warn and ignore the option if not recognized 8004 # So say no if there are warnings 8005 if test -s conftest.err; then 8006 # Append any errors to the config.log. 8007 cat conftest.err 1>&5 8008 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8010 if diff conftest.exp conftest.er2 >/dev/null; then 8011 lt_cv_prog_compiler_static_works=yes 8012 fi 8013 else 8014 lt_cv_prog_compiler_static_works=yes 8015 fi 8016 fi 8017 $RM -r conftest* 8018 LDFLAGS="$save_LDFLAGS" 8019 8020fi 8021{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8022$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8023 8024if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8025 : 8026else 8027 lt_prog_compiler_static= 8028fi 8029 8030 8031 8032 8033 8034 8035 8036 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8038if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8039 $as_echo_n "(cached) " >&6 8040else 8041 lt_cv_prog_compiler_c_o=no 8042 $RM -r conftest 2>/dev/null 8043 mkdir conftest 8044 cd conftest 8045 mkdir out 8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8047 8048 lt_compiler_flag="-o out/conftest2.$ac_objext" 8049 # Insert the option either (1) after the last *FLAGS variable, or 8050 # (2) before a word containing "conftest.", or (3) at the end. 8051 # Note that $ac_compile itself does not contain backslashes and begins 8052 # with a dollar sign (not a hyphen), so the echo should work correctly. 8053 lt_compile=`echo "$ac_compile" | $SED \ 8054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8056 -e 's:$: $lt_compiler_flag:'` 8057 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 8058 (eval "$lt_compile" 2>out/conftest.err) 8059 ac_status=$? 8060 cat out/conftest.err >&5 8061 echo "$as_me:__oline__: \$? = $ac_status" >&5 8062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8063 then 8064 # The compiler can only warn and ignore the option if not recognized 8065 # So say no if there are warnings 8066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8069 lt_cv_prog_compiler_c_o=yes 8070 fi 8071 fi 8072 chmod u+w . 2>&5 8073 $RM conftest* 8074 # SGI C++ compiler will create directory out/ii_files/ for 8075 # template instantiation 8076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8077 $RM out/* && rmdir out 8078 cd .. 8079 $RM -r conftest 8080 $RM conftest* 8081 8082fi 8083{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8084$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8085 8086 8087 8088 8089 8090 8091 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8092$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8093if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8094 $as_echo_n "(cached) " >&6 8095else 8096 lt_cv_prog_compiler_c_o=no 8097 $RM -r conftest 2>/dev/null 8098 mkdir conftest 8099 cd conftest 8100 mkdir out 8101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8102 8103 lt_compiler_flag="-o out/conftest2.$ac_objext" 8104 # Insert the option either (1) after the last *FLAGS variable, or 8105 # (2) before a word containing "conftest.", or (3) at the end. 8106 # Note that $ac_compile itself does not contain backslashes and begins 8107 # with a dollar sign (not a hyphen), so the echo should work correctly. 8108 lt_compile=`echo "$ac_compile" | $SED \ 8109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8111 -e 's:$: $lt_compiler_flag:'` 8112 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 8113 (eval "$lt_compile" 2>out/conftest.err) 8114 ac_status=$? 8115 cat out/conftest.err >&5 8116 echo "$as_me:__oline__: \$? = $ac_status" >&5 8117 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8118 then 8119 # The compiler can only warn and ignore the option if not recognized 8120 # So say no if there are warnings 8121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8124 lt_cv_prog_compiler_c_o=yes 8125 fi 8126 fi 8127 chmod u+w . 2>&5 8128 $RM conftest* 8129 # SGI C++ compiler will create directory out/ii_files/ for 8130 # template instantiation 8131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8132 $RM out/* && rmdir out 8133 cd .. 8134 $RM -r conftest 8135 $RM conftest* 8136 8137fi 8138{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8139$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8140 8141 8142 8143 8144hard_links="nottested" 8145if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8146 # do not overwrite the value of need_locks provided by the user 8147 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8148$as_echo_n "checking if we can lock with hard links... " >&6; } 8149 hard_links=yes 8150 $RM conftest* 8151 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8152 touch conftest.a 8153 ln conftest.a conftest.b 2>&5 || hard_links=no 8154 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8155 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8156$as_echo "$hard_links" >&6; } 8157 if test "$hard_links" = no; then 8158 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8159$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8160 need_locks=warn 8161 fi 8162else 8163 need_locks=no 8164fi 8165 8166 8167 8168 8169 8170 8171 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8172$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8173 8174 runpath_var= 8175 allow_undefined_flag= 8176 always_export_symbols=no 8177 archive_cmds= 8178 archive_expsym_cmds= 8179 compiler_needs_object=no 8180 enable_shared_with_static_runtimes=no 8181 export_dynamic_flag_spec= 8182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8183 hardcode_automatic=no 8184 hardcode_direct=no 8185 hardcode_direct_absolute=no 8186 hardcode_libdir_flag_spec= 8187 hardcode_libdir_flag_spec_ld= 8188 hardcode_libdir_separator= 8189 hardcode_minus_L=no 8190 hardcode_shlibpath_var=unsupported 8191 inherit_rpath=no 8192 link_all_deplibs=unknown 8193 module_cmds= 8194 module_expsym_cmds= 8195 old_archive_from_new_cmds= 8196 old_archive_from_expsyms_cmds= 8197 thread_safe_flag_spec= 8198 whole_archive_flag_spec= 8199 # include_expsyms should be a list of space-separated symbols to be *always* 8200 # included in the symbol list 8201 include_expsyms= 8202 # exclude_expsyms can be an extended regexp of symbols to exclude 8203 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8205 # as well as any symbol that contains `d'. 8206 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8208 # platforms (ab)use it in PIC code, but their linkers get confused if 8209 # the symbol is explicitly referenced. Since portable code cannot 8210 # rely on this symbol name, it's probably fine to never include it in 8211 # preloaded symbol tables. 8212 # Exclude shared library initialization/finalization symbols. 8213 extract_expsyms_cmds= 8214 8215 case $host_os in 8216 cygwin* | mingw* | pw32* | cegcc*) 8217 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8218 # When not using gcc, we currently assume that we are using 8219 # Microsoft Visual C++. 8220 if test "$GCC" != yes; then 8221 with_gnu_ld=no 8222 fi 8223 ;; 8224 interix*) 8225 # we just hope/assume this is gcc and not c89 (= MSVC++) 8226 with_gnu_ld=yes 8227 ;; 8228 openbsd*) 8229 with_gnu_ld=no 8230 ;; 8231 esac 8232 8233 ld_shlibs=yes 8234 if test "$with_gnu_ld" = yes; then 8235 # If archive_cmds runs LD, not CC, wlarc should be empty 8236 wlarc='${wl}' 8237 8238 # Set some defaults for GNU ld with shared library support. These 8239 # are reset later if shared libraries are not supported. Putting them 8240 # here allows them to be overridden if necessary. 8241 runpath_var=LD_RUN_PATH 8242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8243 export_dynamic_flag_spec='${wl}--export-dynamic' 8244 # ancient GNU ld didn't support --whole-archive et. al. 8245 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8246 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8247 else 8248 whole_archive_flag_spec= 8249 fi 8250 supports_anon_versioning=no 8251 case `$LD -v 2>&1` in 8252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8255 *\ 2.11.*) ;; # other 2.11 versions 8256 *) supports_anon_versioning=yes ;; 8257 esac 8258 8259 # See if GNU ld supports shared libraries. 8260 case $host_os in 8261 aix[3-9]*) 8262 # On AIX/PPC, the GNU linker is very broken 8263 if test "$host_cpu" != ia64; then 8264 ld_shlibs=no 8265 cat <<_LT_EOF 1>&2 8266 8267*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8268*** to be unable to reliably create shared libraries on AIX. 8269*** Therefore, libtool is disabling shared libraries support. If you 8270*** really care for shared libraries, you may want to modify your PATH 8271*** so that a non-GNU linker is found, and then restart. 8272 8273_LT_EOF 8274 fi 8275 ;; 8276 8277 amigaos*) 8278 case $host_cpu in 8279 powerpc) 8280 # see comment about AmigaOS4 .so support 8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8282 archive_expsym_cmds='' 8283 ;; 8284 m68k) 8285 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)' 8286 hardcode_libdir_flag_spec='-L$libdir' 8287 hardcode_minus_L=yes 8288 ;; 8289 esac 8290 ;; 8291 8292 beos*) 8293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8294 allow_undefined_flag=unsupported 8295 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8296 # support --undefined. This deserves some investigation. FIXME 8297 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8298 else 8299 ld_shlibs=no 8300 fi 8301 ;; 8302 8303 cygwin* | mingw* | pw32* | cegcc*) 8304 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8305 # as there is no search path for DLLs. 8306 hardcode_libdir_flag_spec='-L$libdir' 8307 allow_undefined_flag=unsupported 8308 always_export_symbols=no 8309 enable_shared_with_static_runtimes=yes 8310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8311 8312 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8314 # If the export-symbols file already is a .def file (1st line 8315 # is EXPORTS), use it as is; otherwise, prepend... 8316 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8317 cp $export_symbols $output_objdir/$soname.def; 8318 else 8319 echo EXPORTS > $output_objdir/$soname.def; 8320 cat $export_symbols >> $output_objdir/$soname.def; 8321 fi~ 8322 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 8328 interix[3-9]*) 8329 hardcode_direct=no 8330 hardcode_shlibpath_var=no 8331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8332 export_dynamic_flag_spec='${wl}-E' 8333 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8334 # Instead, shared libraries are loaded at an image base (0x10000000 by 8335 # default) and relocated if they conflict, which is a slow very memory 8336 # consuming and fragmenting process. To avoid this, we pick a random, 8337 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8338 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8340 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' 8341 ;; 8342 8343 gnu* | linux* | tpf* | k*bsd*-gnu) 8344 tmp_diet=no 8345 if test "$host_os" = linux-dietlibc; then 8346 case $cc_basename in 8347 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8348 esac 8349 fi 8350 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8351 && test "$tmp_diet" = no 8352 then 8353 tmp_addflag= 8354 tmp_sharedflag='-shared' 8355 case $cc_basename,$host_cpu in 8356 pgcc*) # Portland Group C compiler 8357 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' 8358 tmp_addflag=' $pic_flag' 8359 ;; 8360 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8361 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' 8362 tmp_addflag=' $pic_flag -Mnomain' ;; 8363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8364 tmp_addflag=' -i_dynamic' ;; 8365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8366 tmp_addflag=' -i_dynamic -nofor_main' ;; 8367 ifc* | ifort*) # Intel Fortran compiler 8368 tmp_addflag=' -nofor_main' ;; 8369 lf95*) # Lahey Fortran 8.1 8370 whole_archive_flag_spec= 8371 tmp_sharedflag='--shared' ;; 8372 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8373 tmp_sharedflag='-qmkshrobj' 8374 tmp_addflag= ;; 8375 esac 8376 case `$CC -V 2>&1 | sed 5q` in 8377 *Sun\ C*) # Sun C 5.9 8378 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' 8379 compiler_needs_object=yes 8380 tmp_sharedflag='-G' ;; 8381 *Sun\ F*) # Sun Fortran 8.3 8382 tmp_sharedflag='-G' ;; 8383 esac 8384 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8385 8386 if test "x$supports_anon_versioning" = xyes; then 8387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8389 echo "local: *; };" >> $output_objdir/$libname.ver~ 8390 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8391 fi 8392 8393 case $cc_basename in 8394 xlf*) 8395 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8396 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8397 hardcode_libdir_flag_spec= 8398 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8399 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8400 if test "x$supports_anon_versioning" = xyes; then 8401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8403 echo "local: *; };" >> $output_objdir/$libname.ver~ 8404 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8405 fi 8406 ;; 8407 esac 8408 else 8409 ld_shlibs=no 8410 fi 8411 ;; 8412 8413 netbsd*) 8414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8416 wlarc= 8417 else 8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8420 fi 8421 ;; 8422 8423 solaris*) 8424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8425 ld_shlibs=no 8426 cat <<_LT_EOF 1>&2 8427 8428*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8429*** create shared libraries on Solaris systems. Therefore, libtool 8430*** is disabling shared libraries support. We urge you to upgrade GNU 8431*** binutils to release 2.9.1 or newer. Another option is to modify 8432*** your PATH or compiler configuration so that the native linker is 8433*** used, and then restart. 8434 8435_LT_EOF 8436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8439 else 8440 ld_shlibs=no 8441 fi 8442 ;; 8443 8444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8445 case `$LD -v 2>&1` in 8446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8447 ld_shlibs=no 8448 cat <<_LT_EOF 1>&2 8449 8450*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8451*** reliably create shared libraries on SCO systems. Therefore, libtool 8452*** is disabling shared libraries support. We urge you to upgrade GNU 8453*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8454*** your PATH or compiler configuration so that the native linker is 8455*** used, and then restart. 8456 8457_LT_EOF 8458 ;; 8459 *) 8460 # For security reasons, it is highly recommended that you always 8461 # use absolute paths for naming shared libraries, and exclude the 8462 # DT_RUNPATH tag from executables and libraries. But doing so 8463 # requires that you compile everything twice, which is a pain. 8464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8468 else 8469 ld_shlibs=no 8470 fi 8471 ;; 8472 esac 8473 ;; 8474 8475 sunos4*) 8476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8477 wlarc= 8478 hardcode_direct=yes 8479 hardcode_shlibpath_var=no 8480 ;; 8481 8482 *) 8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8486 else 8487 ld_shlibs=no 8488 fi 8489 ;; 8490 esac 8491 8492 if test "$ld_shlibs" = no; then 8493 runpath_var= 8494 hardcode_libdir_flag_spec= 8495 export_dynamic_flag_spec= 8496 whole_archive_flag_spec= 8497 fi 8498 else 8499 # PORTME fill in a description of your system's linker (not GNU ld) 8500 case $host_os in 8501 aix3*) 8502 allow_undefined_flag=unsupported 8503 always_export_symbols=yes 8504 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' 8505 # Note: this linker hardcodes the directories in LIBPATH if there 8506 # are no directories specified by -L. 8507 hardcode_minus_L=yes 8508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8509 # Neither direct hardcoding nor static linking is supported with a 8510 # broken collect2. 8511 hardcode_direct=unsupported 8512 fi 8513 ;; 8514 8515 aix[4-9]*) 8516 if test "$host_cpu" = ia64; then 8517 # On IA64, the linker does run time linking by default, so we don't 8518 # have to do anything special. 8519 aix_use_runtimelinking=no 8520 exp_sym_flag='-Bexport' 8521 no_entry_flag="" 8522 else 8523 # If we're using GNU nm, then we don't want the "-C" option. 8524 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8525 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8526 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' 8527 else 8528 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' 8529 fi 8530 aix_use_runtimelinking=no 8531 8532 # Test if we are trying to use run time linking or normal 8533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8534 # need to do runtime linking. 8535 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8536 for ld_flag in $LDFLAGS; do 8537 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8538 aix_use_runtimelinking=yes 8539 break 8540 fi 8541 done 8542 ;; 8543 esac 8544 8545 exp_sym_flag='-bexport' 8546 no_entry_flag='-bnoentry' 8547 fi 8548 8549 # When large executables or shared objects are built, AIX ld can 8550 # have problems creating the table of contents. If linking a library 8551 # or program results in "error TOC overflow" add -mminimal-toc to 8552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8554 8555 archive_cmds='' 8556 hardcode_direct=yes 8557 hardcode_direct_absolute=yes 8558 hardcode_libdir_separator=':' 8559 link_all_deplibs=yes 8560 file_list_spec='${wl}-f,' 8561 8562 if test "$GCC" = yes; then 8563 case $host_os in aix4.[012]|aix4.[012].*) 8564 # We only want to do this on AIX 4.2 and lower, the check 8565 # below for broken collect2 doesn't work under 4.3+ 8566 collect2name=`${CC} -print-prog-name=collect2` 8567 if test -f "$collect2name" && 8568 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8569 then 8570 # We have reworked collect2 8571 : 8572 else 8573 # We have old collect2 8574 hardcode_direct=unsupported 8575 # It fails to find uninstalled libraries when the uninstalled 8576 # path is not listed in the libpath. Setting hardcode_minus_L 8577 # to unsupported forces relinking 8578 hardcode_minus_L=yes 8579 hardcode_libdir_flag_spec='-L$libdir' 8580 hardcode_libdir_separator= 8581 fi 8582 ;; 8583 esac 8584 shared_flag='-shared' 8585 if test "$aix_use_runtimelinking" = yes; then 8586 shared_flag="$shared_flag "'${wl}-G' 8587 fi 8588 else 8589 # not using gcc 8590 if test "$host_cpu" = ia64; then 8591 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8592 # chokes on -Wl,-G. The following line is correct: 8593 shared_flag='-G' 8594 else 8595 if test "$aix_use_runtimelinking" = yes; then 8596 shared_flag='${wl}-G' 8597 else 8598 shared_flag='${wl}-bM:SRE' 8599 fi 8600 fi 8601 fi 8602 8603 export_dynamic_flag_spec='${wl}-bexpall' 8604 # It seems that -bexpall does not export symbols beginning with 8605 # underscore (_), so it is better to generate a list of symbols to export. 8606 always_export_symbols=yes 8607 if test "$aix_use_runtimelinking" = yes; then 8608 # Warning - without using the other runtime loading flags (-brtl), 8609 # -berok will link without error, but may produce a broken library. 8610 allow_undefined_flag='-berok' 8611 # Determine the default libpath from the value encoded in an 8612 # empty executable. 8613 cat >conftest.$ac_ext <<_ACEOF 8614/* confdefs.h. */ 8615_ACEOF 8616cat confdefs.h >>conftest.$ac_ext 8617cat >>conftest.$ac_ext <<_ACEOF 8618/* end confdefs.h. */ 8619 8620int 8621main () 8622{ 8623 8624 ; 8625 return 0; 8626} 8627_ACEOF 8628rm -f conftest.$ac_objext conftest$ac_exeext 8629if { (ac_try="$ac_link" 8630case "(($ac_try" in 8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8632 *) ac_try_echo=$ac_try;; 8633esac 8634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8635$as_echo "$ac_try_echo") >&5 8636 (eval "$ac_link") 2>conftest.er1 8637 ac_status=$? 8638 grep -v '^ *+' conftest.er1 >conftest.err 8639 rm -f conftest.er1 8640 cat conftest.err >&5 8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 (exit $ac_status); } && { 8643 test -z "$ac_c_werror_flag" || 8644 test ! -s conftest.err 8645 } && test -s conftest$ac_exeext && { 8646 test "$cross_compiling" = yes || 8647 $as_test_x conftest$ac_exeext 8648 }; then 8649 8650lt_aix_libpath_sed=' 8651 /Import File Strings/,/^$/ { 8652 /^0/ { 8653 s/^0 *\(.*\)$/\1/ 8654 p 8655 } 8656 }' 8657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8658# Check for a 64-bit object if we didn't find anything. 8659if test -z "$aix_libpath"; then 8660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8661fi 8662else 8663 $as_echo "$as_me: failed program was:" >&5 8664sed 's/^/| /' conftest.$ac_ext >&5 8665 8666 8667fi 8668 8669rm -rf conftest.dSYM 8670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8671 conftest$ac_exeext conftest.$ac_ext 8672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8673 8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8675 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" 8676 else 8677 if test "$host_cpu" = ia64; then 8678 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8679 allow_undefined_flag="-z nodefs" 8680 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" 8681 else 8682 # Determine the default libpath from the value encoded in an 8683 # empty executable. 8684 cat >conftest.$ac_ext <<_ACEOF 8685/* confdefs.h. */ 8686_ACEOF 8687cat confdefs.h >>conftest.$ac_ext 8688cat >>conftest.$ac_ext <<_ACEOF 8689/* end confdefs.h. */ 8690 8691int 8692main () 8693{ 8694 8695 ; 8696 return 0; 8697} 8698_ACEOF 8699rm -f conftest.$ac_objext conftest$ac_exeext 8700if { (ac_try="$ac_link" 8701case "(($ac_try" in 8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8703 *) ac_try_echo=$ac_try;; 8704esac 8705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8706$as_echo "$ac_try_echo") >&5 8707 (eval "$ac_link") 2>conftest.er1 8708 ac_status=$? 8709 grep -v '^ *+' conftest.er1 >conftest.err 8710 rm -f conftest.er1 8711 cat conftest.err >&5 8712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 (exit $ac_status); } && { 8714 test -z "$ac_c_werror_flag" || 8715 test ! -s conftest.err 8716 } && test -s conftest$ac_exeext && { 8717 test "$cross_compiling" = yes || 8718 $as_test_x conftest$ac_exeext 8719 }; then 8720 8721lt_aix_libpath_sed=' 8722 /Import File Strings/,/^$/ { 8723 /^0/ { 8724 s/^0 *\(.*\)$/\1/ 8725 p 8726 } 8727 }' 8728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8729# Check for a 64-bit object if we didn't find anything. 8730if test -z "$aix_libpath"; then 8731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8732fi 8733else 8734 $as_echo "$as_me: failed program was:" >&5 8735sed 's/^/| /' conftest.$ac_ext >&5 8736 8737 8738fi 8739 8740rm -rf conftest.dSYM 8741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8742 conftest$ac_exeext conftest.$ac_ext 8743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8744 8745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8746 # Warning - without using the other run time loading flags, 8747 # -berok will link without error, but may produce a broken library. 8748 no_undefined_flag=' ${wl}-bernotok' 8749 allow_undefined_flag=' ${wl}-berok' 8750 # Exported symbols can be pulled into shared objects from archives 8751 whole_archive_flag_spec='$convenience' 8752 archive_cmds_need_lc=yes 8753 # This is similar to how AIX traditionally builds its shared libraries. 8754 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' 8755 fi 8756 fi 8757 ;; 8758 8759 amigaos*) 8760 case $host_cpu in 8761 powerpc) 8762 # see comment about AmigaOS4 .so support 8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8764 archive_expsym_cmds='' 8765 ;; 8766 m68k) 8767 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)' 8768 hardcode_libdir_flag_spec='-L$libdir' 8769 hardcode_minus_L=yes 8770 ;; 8771 esac 8772 ;; 8773 8774 bsdi[45]*) 8775 export_dynamic_flag_spec=-rdynamic 8776 ;; 8777 8778 cygwin* | mingw* | pw32* | cegcc*) 8779 # When not using gcc, we currently assume that we are using 8780 # Microsoft Visual C++. 8781 # hardcode_libdir_flag_spec is actually meaningless, as there is 8782 # no search path for DLLs. 8783 hardcode_libdir_flag_spec=' ' 8784 allow_undefined_flag=unsupported 8785 # Tell ltmain to make .lib files, not .a files. 8786 libext=lib 8787 # Tell ltmain to make .dll files, not .so files. 8788 shrext_cmds=".dll" 8789 # FIXME: Setting linknames here is a bad hack. 8790 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8791 # The linker will automatically build a .lib file if we build a DLL. 8792 old_archive_from_new_cmds='true' 8793 # FIXME: Should let the user specify the lib program. 8794 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8795 fix_srcfile_path='`cygpath -w "$srcfile"`' 8796 enable_shared_with_static_runtimes=yes 8797 ;; 8798 8799 darwin* | rhapsody*) 8800 8801 8802 archive_cmds_need_lc=no 8803 hardcode_direct=no 8804 hardcode_automatic=yes 8805 hardcode_shlibpath_var=unsupported 8806 whole_archive_flag_spec='' 8807 link_all_deplibs=yes 8808 allow_undefined_flag="$_lt_dar_allow_undefined" 8809 case $cc_basename in 8810 ifort*) _lt_dar_can_shared=yes ;; 8811 *) _lt_dar_can_shared=$GCC ;; 8812 esac 8813 if test "$_lt_dar_can_shared" = "yes"; then 8814 output_verbose_link_cmd=echo 8815 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8816 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8817 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}" 8818 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}" 8819 8820 else 8821 ld_shlibs=no 8822 fi 8823 8824 ;; 8825 8826 dgux*) 8827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8828 hardcode_libdir_flag_spec='-L$libdir' 8829 hardcode_shlibpath_var=no 8830 ;; 8831 8832 freebsd1*) 8833 ld_shlibs=no 8834 ;; 8835 8836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8837 # support. Future versions do this automatically, but an explicit c++rt0.o 8838 # does not break anything, and helps significantly (at the cost of a little 8839 # extra space). 8840 freebsd2.2*) 8841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8842 hardcode_libdir_flag_spec='-R$libdir' 8843 hardcode_direct=yes 8844 hardcode_shlibpath_var=no 8845 ;; 8846 8847 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8848 freebsd2*) 8849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8850 hardcode_direct=yes 8851 hardcode_minus_L=yes 8852 hardcode_shlibpath_var=no 8853 ;; 8854 8855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8856 freebsd* | dragonfly*) 8857 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8858 hardcode_libdir_flag_spec='-R$libdir' 8859 hardcode_direct=yes 8860 hardcode_shlibpath_var=no 8861 ;; 8862 8863 hpux9*) 8864 if test "$GCC" = yes; then 8865 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' 8866 else 8867 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' 8868 fi 8869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8870 hardcode_libdir_separator=: 8871 hardcode_direct=yes 8872 8873 # hardcode_minus_L: Not really in the search PATH, 8874 # but as the default location of the library. 8875 hardcode_minus_L=yes 8876 export_dynamic_flag_spec='${wl}-E' 8877 ;; 8878 8879 hpux10*) 8880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8882 else 8883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8884 fi 8885 if test "$with_gnu_ld" = no; then 8886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8887 hardcode_libdir_flag_spec_ld='+b $libdir' 8888 hardcode_libdir_separator=: 8889 hardcode_direct=yes 8890 hardcode_direct_absolute=yes 8891 export_dynamic_flag_spec='${wl}-E' 8892 # hardcode_minus_L: Not really in the search PATH, 8893 # but as the default location of the library. 8894 hardcode_minus_L=yes 8895 fi 8896 ;; 8897 8898 hpux11*) 8899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8900 case $host_cpu in 8901 hppa*64*) 8902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8903 ;; 8904 ia64*) 8905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8906 ;; 8907 *) 8908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8909 ;; 8910 esac 8911 else 8912 case $host_cpu in 8913 hppa*64*) 8914 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8915 ;; 8916 ia64*) 8917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8918 ;; 8919 *) 8920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8921 ;; 8922 esac 8923 fi 8924 if test "$with_gnu_ld" = no; then 8925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8926 hardcode_libdir_separator=: 8927 8928 case $host_cpu in 8929 hppa*64*|ia64*) 8930 hardcode_direct=no 8931 hardcode_shlibpath_var=no 8932 ;; 8933 *) 8934 hardcode_direct=yes 8935 hardcode_direct_absolute=yes 8936 export_dynamic_flag_spec='${wl}-E' 8937 8938 # hardcode_minus_L: Not really in the search PATH, 8939 # but as the default location of the library. 8940 hardcode_minus_L=yes 8941 ;; 8942 esac 8943 fi 8944 ;; 8945 8946 irix5* | irix6* | nonstopux*) 8947 if test "$GCC" = yes; then 8948 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' 8949 # Try to use the -exported_symbol ld option, if it does not 8950 # work, assume that -exports_file does not work either and 8951 # implicitly export all symbols. 8952 save_LDFLAGS="$LDFLAGS" 8953 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8954 cat >conftest.$ac_ext <<_ACEOF 8955int foo(void) {} 8956_ACEOF 8957rm -f conftest.$ac_objext conftest$ac_exeext 8958if { (ac_try="$ac_link" 8959case "(($ac_try" in 8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8961 *) ac_try_echo=$ac_try;; 8962esac 8963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8964$as_echo "$ac_try_echo") >&5 8965 (eval "$ac_link") 2>conftest.er1 8966 ac_status=$? 8967 grep -v '^ *+' conftest.er1 >conftest.err 8968 rm -f conftest.er1 8969 cat conftest.err >&5 8970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8971 (exit $ac_status); } && { 8972 test -z "$ac_c_werror_flag" || 8973 test ! -s conftest.err 8974 } && test -s conftest$ac_exeext && { 8975 test "$cross_compiling" = yes || 8976 $as_test_x conftest$ac_exeext 8977 }; then 8978 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' 8979 8980else 8981 $as_echo "$as_me: failed program was:" >&5 8982sed 's/^/| /' conftest.$ac_ext >&5 8983 8984 8985fi 8986 8987rm -rf conftest.dSYM 8988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8989 conftest$ac_exeext conftest.$ac_ext 8990 LDFLAGS="$save_LDFLAGS" 8991 else 8992 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' 8993 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' 8994 fi 8995 archive_cmds_need_lc='no' 8996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8997 hardcode_libdir_separator=: 8998 inherit_rpath=yes 8999 link_all_deplibs=yes 9000 ;; 9001 9002 netbsd*) 9003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9005 else 9006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9007 fi 9008 hardcode_libdir_flag_spec='-R$libdir' 9009 hardcode_direct=yes 9010 hardcode_shlibpath_var=no 9011 ;; 9012 9013 newsos6) 9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9015 hardcode_direct=yes 9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9017 hardcode_libdir_separator=: 9018 hardcode_shlibpath_var=no 9019 ;; 9020 9021 *nto* | *qnx*) 9022 ;; 9023 9024 openbsd*) 9025 if test -f /usr/libexec/ld.so; then 9026 hardcode_direct=yes 9027 hardcode_shlibpath_var=no 9028 hardcode_direct_absolute=yes 9029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9033 export_dynamic_flag_spec='${wl}-E' 9034 else 9035 case $host_os in 9036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9038 hardcode_libdir_flag_spec='-R$libdir' 9039 ;; 9040 *) 9041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9043 ;; 9044 esac 9045 fi 9046 else 9047 ld_shlibs=no 9048 fi 9049 ;; 9050 9051 os2*) 9052 hardcode_libdir_flag_spec='-L$libdir' 9053 hardcode_minus_L=yes 9054 allow_undefined_flag=unsupported 9055 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' 9056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9057 ;; 9058 9059 osf3*) 9060 if test "$GCC" = yes; then 9061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9062 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' 9063 else 9064 allow_undefined_flag=' -expect_unresolved \*' 9065 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' 9066 fi 9067 archive_cmds_need_lc='no' 9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9069 hardcode_libdir_separator=: 9070 ;; 9071 9072 osf4* | osf5*) # as osf3* with the addition of -msym flag 9073 if test "$GCC" = yes; then 9074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9075 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' 9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9077 else 9078 allow_undefined_flag=' -expect_unresolved \*' 9079 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' 9080 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~ 9081 $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' 9082 9083 # Both c and cxx compiler support -rpath directly 9084 hardcode_libdir_flag_spec='-rpath $libdir' 9085 fi 9086 archive_cmds_need_lc='no' 9087 hardcode_libdir_separator=: 9088 ;; 9089 9090 solaris*) 9091 no_undefined_flag=' -z defs' 9092 if test "$GCC" = yes; then 9093 wlarc='${wl}' 9094 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9096 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9097 else 9098 case `$CC -V 2>&1` in 9099 *"Compilers 5.0"*) 9100 wlarc='' 9101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9104 ;; 9105 *) 9106 wlarc='${wl}' 9107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9110 ;; 9111 esac 9112 fi 9113 hardcode_libdir_flag_spec='-R$libdir' 9114 hardcode_shlibpath_var=no 9115 case $host_os in 9116 solaris2.[0-5] | solaris2.[0-5].*) ;; 9117 *) 9118 # The compiler driver will combine and reorder linker options, 9119 # but understands `-z linker_flag'. GCC discards it without `$wl', 9120 # but is careful enough not to reorder. 9121 # Supported since Solaris 2.6 (maybe 2.5.1?) 9122 if test "$GCC" = yes; then 9123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9124 else 9125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9126 fi 9127 ;; 9128 esac 9129 link_all_deplibs=yes 9130 ;; 9131 9132 sunos4*) 9133 if test "x$host_vendor" = xsequent; then 9134 # Use $CC to link under sequent, because it throws in some extra .o 9135 # files that make .init and .fini sections work. 9136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9137 else 9138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9139 fi 9140 hardcode_libdir_flag_spec='-L$libdir' 9141 hardcode_direct=yes 9142 hardcode_minus_L=yes 9143 hardcode_shlibpath_var=no 9144 ;; 9145 9146 sysv4) 9147 case $host_vendor in 9148 sni) 9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9150 hardcode_direct=yes # is this really true??? 9151 ;; 9152 siemens) 9153 ## LD is ld it makes a PLAMLIB 9154 ## CC just makes a GrossModule. 9155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9156 reload_cmds='$CC -r -o $output$reload_objs' 9157 hardcode_direct=no 9158 ;; 9159 motorola) 9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9162 ;; 9163 esac 9164 runpath_var='LD_RUN_PATH' 9165 hardcode_shlibpath_var=no 9166 ;; 9167 9168 sysv4.3*) 9169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9170 hardcode_shlibpath_var=no 9171 export_dynamic_flag_spec='-Bexport' 9172 ;; 9173 9174 sysv4*MP*) 9175 if test -d /usr/nec; then 9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9177 hardcode_shlibpath_var=no 9178 runpath_var=LD_RUN_PATH 9179 hardcode_runpath_var=yes 9180 ld_shlibs=yes 9181 fi 9182 ;; 9183 9184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9185 no_undefined_flag='${wl}-z,text' 9186 archive_cmds_need_lc=no 9187 hardcode_shlibpath_var=no 9188 runpath_var='LD_RUN_PATH' 9189 9190 if test "$GCC" = yes; then 9191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9193 else 9194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9196 fi 9197 ;; 9198 9199 sysv5* | sco3.2v5* | sco5v6*) 9200 # Note: We can NOT use -z defs as we might desire, because we do not 9201 # link with -lc, and that would cause any symbols used from libc to 9202 # always be unresolved, which means just about no library would 9203 # ever link correctly. If we're not using GNU ld we use -z text 9204 # though, which does catch some bad symbols but isn't as heavy-handed 9205 # as -z defs. 9206 no_undefined_flag='${wl}-z,text' 9207 allow_undefined_flag='${wl}-z,nodefs' 9208 archive_cmds_need_lc=no 9209 hardcode_shlibpath_var=no 9210 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9211 hardcode_libdir_separator=':' 9212 link_all_deplibs=yes 9213 export_dynamic_flag_spec='${wl}-Bexport' 9214 runpath_var='LD_RUN_PATH' 9215 9216 if test "$GCC" = yes; then 9217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9219 else 9220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9222 fi 9223 ;; 9224 9225 uts4*) 9226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9227 hardcode_libdir_flag_spec='-L$libdir' 9228 hardcode_shlibpath_var=no 9229 ;; 9230 9231 *) 9232 ld_shlibs=no 9233 ;; 9234 esac 9235 9236 if test x$host_vendor = xsni; then 9237 case $host in 9238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9239 export_dynamic_flag_spec='${wl}-Blargedynsym' 9240 ;; 9241 esac 9242 fi 9243 fi 9244 9245{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9246$as_echo "$ld_shlibs" >&6; } 9247test "$ld_shlibs" = no && can_build_shared=no 9248 9249with_gnu_ld=$with_gnu_ld 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265# 9266# Do we need to explicitly link libc? 9267# 9268case "x$archive_cmds_need_lc" in 9269x|xyes) 9270 # Assume -lc should be added 9271 archive_cmds_need_lc=yes 9272 9273 if test "$enable_shared" = yes && test "$GCC" = yes; then 9274 case $archive_cmds in 9275 *'~'*) 9276 # FIXME: we may have to deal with multi-command sequences. 9277 ;; 9278 '$CC '*) 9279 # Test whether the compiler implicitly links with -lc since on some 9280 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9281 # to ld, don't add -lc before -lgcc. 9282 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9283$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9284 $RM conftest* 9285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9286 9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9288 (eval $ac_compile) 2>&5 9289 ac_status=$? 9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9291 (exit $ac_status); } 2>conftest.err; then 9292 soname=conftest 9293 lib=conftest 9294 libobjs=conftest.$ac_objext 9295 deplibs= 9296 wl=$lt_prog_compiler_wl 9297 pic_flag=$lt_prog_compiler_pic 9298 compiler_flags=-v 9299 linker_flags=-v 9300 verstring= 9301 output_objdir=. 9302 libname=conftest 9303 lt_save_allow_undefined_flag=$allow_undefined_flag 9304 allow_undefined_flag= 9305 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9306 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9307 ac_status=$? 9308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9309 (exit $ac_status); } 9310 then 9311 archive_cmds_need_lc=no 9312 else 9313 archive_cmds_need_lc=yes 9314 fi 9315 allow_undefined_flag=$lt_save_allow_undefined_flag 9316 else 9317 cat conftest.err 1>&5 9318 fi 9319 $RM conftest* 9320 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9321$as_echo "$archive_cmds_need_lc" >&6; } 9322 ;; 9323 esac 9324 fi 9325 ;; 9326esac 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9485$as_echo_n "checking dynamic linker characteristics... " >&6; } 9486 9487if test "$GCC" = yes; then 9488 case $host_os in 9489 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9490 *) lt_awk_arg="/^libraries:/" ;; 9491 esac 9492 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9493 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9494 # if the path contains ";" then we assume it to be the separator 9495 # otherwise default to the standard path separator (i.e. ":") - it is 9496 # assumed that no part of a normal pathname contains ";" but that should 9497 # okay in the real world where ";" in dirpaths is itself problematic. 9498 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9499 else 9500 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9501 fi 9502 # Ok, now we have the path, separated by spaces, we can step through it 9503 # and add multilib dir if necessary. 9504 lt_tmp_lt_search_path_spec= 9505 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9506 for lt_sys_path in $lt_search_path_spec; do 9507 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9508 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9509 else 9510 test -d "$lt_sys_path" && \ 9511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9512 fi 9513 done 9514 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9515BEGIN {RS=" "; FS="/|\n";} { 9516 lt_foo=""; 9517 lt_count=0; 9518 for (lt_i = NF; lt_i > 0; lt_i--) { 9519 if ($lt_i != "" && $lt_i != ".") { 9520 if ($lt_i == "..") { 9521 lt_count++; 9522 } else { 9523 if (lt_count == 0) { 9524 lt_foo="/" $lt_i lt_foo; 9525 } else { 9526 lt_count--; 9527 } 9528 } 9529 } 9530 } 9531 if (lt_foo != "") { lt_freq[lt_foo]++; } 9532 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9533}'` 9534 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9535else 9536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9537fi 9538library_names_spec= 9539libname_spec='lib$name' 9540soname_spec= 9541shrext_cmds=".so" 9542postinstall_cmds= 9543postuninstall_cmds= 9544finish_cmds= 9545finish_eval= 9546shlibpath_var= 9547shlibpath_overrides_runpath=unknown 9548version_type=none 9549dynamic_linker="$host_os ld.so" 9550sys_lib_dlsearch_path_spec="/lib /usr/lib" 9551need_lib_prefix=unknown 9552hardcode_into_libs=no 9553 9554# when you set need_version to no, make sure it does not cause -set_version 9555# flags to be left without arguments 9556need_version=unknown 9557 9558case $host_os in 9559aix3*) 9560 version_type=linux 9561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9562 shlibpath_var=LIBPATH 9563 9564 # AIX 3 has no versioning support, so we append a major version to the name. 9565 soname_spec='${libname}${release}${shared_ext}$major' 9566 ;; 9567 9568aix[4-9]*) 9569 version_type=linux 9570 need_lib_prefix=no 9571 need_version=no 9572 hardcode_into_libs=yes 9573 if test "$host_cpu" = ia64; then 9574 # AIX 5 supports IA64 9575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9576 shlibpath_var=LD_LIBRARY_PATH 9577 else 9578 # With GCC up to 2.95.x, collect2 would create an import file 9579 # for dependence libraries. The import file would start with 9580 # the line `#! .'. This would cause the generated library to 9581 # depend on `.', always an invalid library. This was fixed in 9582 # development snapshots of GCC prior to 3.0. 9583 case $host_os in 9584 aix4 | aix4.[01] | aix4.[01].*) 9585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9586 echo ' yes ' 9587 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9588 : 9589 else 9590 can_build_shared=no 9591 fi 9592 ;; 9593 esac 9594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9595 # soname into executable. Probably we can add versioning support to 9596 # collect2, so additional links can be useful in future. 9597 if test "$aix_use_runtimelinking" = yes; then 9598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9599 # instead of lib<name>.a to let people know that these are not 9600 # typical AIX shared libraries. 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 else 9603 # We preserve .a as extension for shared libraries through AIX4.2 9604 # and later when we are not doing run time linking. 9605 library_names_spec='${libname}${release}.a $libname.a' 9606 soname_spec='${libname}${release}${shared_ext}$major' 9607 fi 9608 shlibpath_var=LIBPATH 9609 fi 9610 ;; 9611 9612amigaos*) 9613 case $host_cpu in 9614 powerpc) 9615 # Since July 2007 AmigaOS4 officially supports .so libraries. 9616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9618 ;; 9619 m68k) 9620 library_names_spec='$libname.ixlibrary $libname.a' 9621 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9622 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' 9623 ;; 9624 esac 9625 ;; 9626 9627beos*) 9628 library_names_spec='${libname}${shared_ext}' 9629 dynamic_linker="$host_os ld.so" 9630 shlibpath_var=LIBRARY_PATH 9631 ;; 9632 9633bsdi[45]*) 9634 version_type=linux 9635 need_version=no 9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9637 soname_spec='${libname}${release}${shared_ext}$major' 9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9639 shlibpath_var=LD_LIBRARY_PATH 9640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9642 # the default ld.so.conf also contains /usr/contrib/lib and 9643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9644 # libtool to hard-code these into programs 9645 ;; 9646 9647cygwin* | mingw* | pw32* | cegcc*) 9648 version_type=windows 9649 shrext_cmds=".dll" 9650 need_version=no 9651 need_lib_prefix=no 9652 9653 case $GCC,$host_os in 9654 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9655 library_names_spec='$libname.dll.a' 9656 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9657 postinstall_cmds='base_file=`basename \${file}`~ 9658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9659 dldir=$destdir/`dirname \$dlpath`~ 9660 test -d \$dldir || mkdir -p \$dldir~ 9661 $install_prog $dir/$dlname \$dldir/$dlname~ 9662 chmod a+x \$dldir/$dlname~ 9663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9665 fi' 9666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9667 dlpath=$dir/\$dldll~ 9668 $RM \$dlpath' 9669 shlibpath_overrides_runpath=yes 9670 9671 case $host_os in 9672 cygwin*) 9673 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9676 ;; 9677 mingw* | cegcc*) 9678 # MinGW DLLs use traditional 'lib' prefix 9679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9680 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9681 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9682 # It is most probably a Windows format PATH printed by 9683 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9684 # path with ; separators, and with drive letters. We can handle the 9685 # drive letters (cygwin fileutils understands them), so leave them, 9686 # especially as we might pass files found there to a mingw objdump, 9687 # which wouldn't understand a cygwinified path. Ahh. 9688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9689 else 9690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9691 fi 9692 ;; 9693 pw32*) 9694 # pw32 DLLs use 'pw' prefix rather than 'lib' 9695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9696 ;; 9697 esac 9698 ;; 9699 9700 *) 9701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9702 ;; 9703 esac 9704 dynamic_linker='Win32 ld.exe' 9705 # FIXME: first we should search . and the directory the executable is in 9706 shlibpath_var=PATH 9707 ;; 9708 9709darwin* | rhapsody*) 9710 dynamic_linker="$host_os dyld" 9711 version_type=darwin 9712 need_lib_prefix=no 9713 need_version=no 9714 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9715 soname_spec='${libname}${release}${major}$shared_ext' 9716 shlibpath_overrides_runpath=yes 9717 shlibpath_var=DYLD_LIBRARY_PATH 9718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9719 9720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9722 ;; 9723 9724dgux*) 9725 version_type=linux 9726 need_lib_prefix=no 9727 need_version=no 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 ;; 9732 9733freebsd1*) 9734 dynamic_linker=no 9735 ;; 9736 9737freebsd* | dragonfly*) 9738 # DragonFly does not have aout. When/if they implement a new 9739 # versioning mechanism, adjust this. 9740 if test -x /usr/bin/objformat; then 9741 objformat=`/usr/bin/objformat` 9742 else 9743 case $host_os in 9744 freebsd[123]*) objformat=aout ;; 9745 *) objformat=elf ;; 9746 esac 9747 fi 9748 version_type=freebsd-$objformat 9749 case $version_type in 9750 freebsd-elf*) 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9752 need_version=no 9753 need_lib_prefix=no 9754 ;; 9755 freebsd-*) 9756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9757 need_version=yes 9758 ;; 9759 esac 9760 shlibpath_var=LD_LIBRARY_PATH 9761 case $host_os in 9762 freebsd2*) 9763 shlibpath_overrides_runpath=yes 9764 ;; 9765 freebsd3.[01]* | freebsdelf3.[01]*) 9766 shlibpath_overrides_runpath=yes 9767 hardcode_into_libs=yes 9768 ;; 9769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9771 shlibpath_overrides_runpath=no 9772 hardcode_into_libs=yes 9773 ;; 9774 *) # from 4.6 on, and DragonFly 9775 shlibpath_overrides_runpath=yes 9776 hardcode_into_libs=yes 9777 ;; 9778 esac 9779 ;; 9780 9781gnu*) 9782 version_type=linux 9783 need_lib_prefix=no 9784 need_version=no 9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9786 soname_spec='${libname}${release}${shared_ext}$major' 9787 shlibpath_var=LD_LIBRARY_PATH 9788 hardcode_into_libs=yes 9789 ;; 9790 9791hpux9* | hpux10* | hpux11*) 9792 # Give a soname corresponding to the major version so that dld.sl refuses to 9793 # link against other versions. 9794 version_type=sunos 9795 need_lib_prefix=no 9796 need_version=no 9797 case $host_cpu in 9798 ia64*) 9799 shrext_cmds='.so' 9800 hardcode_into_libs=yes 9801 dynamic_linker="$host_os dld.so" 9802 shlibpath_var=LD_LIBRARY_PATH 9803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9805 soname_spec='${libname}${release}${shared_ext}$major' 9806 if test "X$HPUX_IA64_MODE" = X32; then 9807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9808 else 9809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9810 fi 9811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9812 ;; 9813 hppa*64*) 9814 shrext_cmds='.sl' 9815 hardcode_into_libs=yes 9816 dynamic_linker="$host_os dld.sl" 9817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9820 soname_spec='${libname}${release}${shared_ext}$major' 9821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9823 ;; 9824 *) 9825 shrext_cmds='.sl' 9826 dynamic_linker="$host_os dld.sl" 9827 shlibpath_var=SHLIB_PATH 9828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9830 soname_spec='${libname}${release}${shared_ext}$major' 9831 ;; 9832 esac 9833 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9834 postinstall_cmds='chmod 555 $lib' 9835 ;; 9836 9837interix[3-9]*) 9838 version_type=linux 9839 need_lib_prefix=no 9840 need_version=no 9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9842 soname_spec='${libname}${release}${shared_ext}$major' 9843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9844 shlibpath_var=LD_LIBRARY_PATH 9845 shlibpath_overrides_runpath=no 9846 hardcode_into_libs=yes 9847 ;; 9848 9849irix5* | irix6* | nonstopux*) 9850 case $host_os in 9851 nonstopux*) version_type=nonstopux ;; 9852 *) 9853 if test "$lt_cv_prog_gnu_ld" = yes; then 9854 version_type=linux 9855 else 9856 version_type=irix 9857 fi ;; 9858 esac 9859 need_lib_prefix=no 9860 need_version=no 9861 soname_spec='${libname}${release}${shared_ext}$major' 9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9863 case $host_os in 9864 irix5* | nonstopux*) 9865 libsuff= shlibsuff= 9866 ;; 9867 *) 9868 case $LD in # libtool.m4 will add one of these switches to LD 9869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9870 libsuff= shlibsuff= libmagic=32-bit;; 9871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9872 libsuff=32 shlibsuff=N32 libmagic=N32;; 9873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9874 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9875 *) libsuff= shlibsuff= libmagic=never-match;; 9876 esac 9877 ;; 9878 esac 9879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9880 shlibpath_overrides_runpath=no 9881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9883 hardcode_into_libs=yes 9884 ;; 9885 9886# No shared lib support for Linux oldld, aout, or coff. 9887linux*oldld* | linux*aout* | linux*coff*) 9888 dynamic_linker=no 9889 ;; 9890 9891# This must be Linux ELF. 9892linux* | k*bsd*-gnu) 9893 version_type=linux 9894 need_lib_prefix=no 9895 need_version=no 9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9897 soname_spec='${libname}${release}${shared_ext}$major' 9898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9899 shlibpath_var=LD_LIBRARY_PATH 9900 shlibpath_overrides_runpath=no 9901 # Some binutils ld are patched to set DT_RUNPATH 9902 save_LDFLAGS=$LDFLAGS 9903 save_libdir=$libdir 9904 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9905 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9906 cat >conftest.$ac_ext <<_ACEOF 9907/* confdefs.h. */ 9908_ACEOF 9909cat confdefs.h >>conftest.$ac_ext 9910cat >>conftest.$ac_ext <<_ACEOF 9911/* end confdefs.h. */ 9912 9913int 9914main () 9915{ 9916 9917 ; 9918 return 0; 9919} 9920_ACEOF 9921rm -f conftest.$ac_objext conftest$ac_exeext 9922if { (ac_try="$ac_link" 9923case "(($ac_try" in 9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9925 *) ac_try_echo=$ac_try;; 9926esac 9927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9928$as_echo "$ac_try_echo") >&5 9929 (eval "$ac_link") 2>conftest.er1 9930 ac_status=$? 9931 grep -v '^ *+' conftest.er1 >conftest.err 9932 rm -f conftest.er1 9933 cat conftest.err >&5 9934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9935 (exit $ac_status); } && { 9936 test -z "$ac_c_werror_flag" || 9937 test ! -s conftest.err 9938 } && test -s conftest$ac_exeext && { 9939 test "$cross_compiling" = yes || 9940 $as_test_x conftest$ac_exeext 9941 }; then 9942 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9943 shlibpath_overrides_runpath=yes 9944fi 9945 9946else 9947 $as_echo "$as_me: failed program was:" >&5 9948sed 's/^/| /' conftest.$ac_ext >&5 9949 9950 9951fi 9952 9953rm -rf conftest.dSYM 9954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9955 conftest$ac_exeext conftest.$ac_ext 9956 LDFLAGS=$save_LDFLAGS 9957 libdir=$save_libdir 9958 9959 # This implies no fast_install, which is unacceptable. 9960 # Some rework will be needed to allow for fast_install 9961 # before this can be enabled. 9962 hardcode_into_libs=yes 9963 9964 # Append ld.so.conf contents to the search path 9965 if test -f /etc/ld.so.conf; then 9966 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' ' '` 9967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9968 fi 9969 9970 # We used to test for /lib/ld.so.1 and disable shared libraries on 9971 # powerpc, because MkLinux only supported shared libraries with the 9972 # GNU dynamic linker. Since this was broken with cross compilers, 9973 # most powerpc-linux boxes support dynamic linking these days and 9974 # people can always --disable-shared, the test was removed, and we 9975 # assume the GNU/Linux dynamic linker is in use. 9976 dynamic_linker='GNU/Linux ld.so' 9977 ;; 9978 9979netbsd*) 9980 version_type=sunos 9981 need_lib_prefix=no 9982 need_version=no 9983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9986 dynamic_linker='NetBSD (a.out) ld.so' 9987 else 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9989 soname_spec='${libname}${release}${shared_ext}$major' 9990 dynamic_linker='NetBSD ld.elf_so' 9991 fi 9992 shlibpath_var=LD_LIBRARY_PATH 9993 shlibpath_overrides_runpath=yes 9994 hardcode_into_libs=yes 9995 ;; 9996 9997newsos6) 9998 version_type=linux 9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10000 shlibpath_var=LD_LIBRARY_PATH 10001 shlibpath_overrides_runpath=yes 10002 ;; 10003 10004*nto* | *qnx*) 10005 version_type=qnx 10006 need_lib_prefix=no 10007 need_version=no 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10009 soname_spec='${libname}${release}${shared_ext}$major' 10010 shlibpath_var=LD_LIBRARY_PATH 10011 shlibpath_overrides_runpath=no 10012 hardcode_into_libs=yes 10013 dynamic_linker='ldqnx.so' 10014 ;; 10015 10016openbsd*) 10017 version_type=sunos 10018 sys_lib_dlsearch_path_spec="/usr/lib" 10019 need_lib_prefix=no 10020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10021 case $host_os in 10022 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10023 *) need_version=no ;; 10024 esac 10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10029 case $host_os in 10030 openbsd2.[89] | openbsd2.[89].*) 10031 shlibpath_overrides_runpath=no 10032 ;; 10033 *) 10034 shlibpath_overrides_runpath=yes 10035 ;; 10036 esac 10037 else 10038 shlibpath_overrides_runpath=yes 10039 fi 10040 ;; 10041 10042os2*) 10043 libname_spec='$name' 10044 shrext_cmds=".dll" 10045 need_lib_prefix=no 10046 library_names_spec='$libname${shared_ext} $libname.a' 10047 dynamic_linker='OS/2 ld.exe' 10048 shlibpath_var=LIBPATH 10049 ;; 10050 10051osf3* | osf4* | osf5*) 10052 version_type=osf 10053 need_lib_prefix=no 10054 need_version=no 10055 soname_spec='${libname}${release}${shared_ext}$major' 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10057 shlibpath_var=LD_LIBRARY_PATH 10058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10060 ;; 10061 10062rdos*) 10063 dynamic_linker=no 10064 ;; 10065 10066solaris*) 10067 version_type=linux 10068 need_lib_prefix=no 10069 need_version=no 10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10071 soname_spec='${libname}${release}${shared_ext}$major' 10072 shlibpath_var=LD_LIBRARY_PATH 10073 shlibpath_overrides_runpath=yes 10074 hardcode_into_libs=yes 10075 # ldd complains unless libraries are executable 10076 postinstall_cmds='chmod +x $lib' 10077 ;; 10078 10079sunos4*) 10080 version_type=sunos 10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10083 shlibpath_var=LD_LIBRARY_PATH 10084 shlibpath_overrides_runpath=yes 10085 if test "$with_gnu_ld" = yes; then 10086 need_lib_prefix=no 10087 fi 10088 need_version=yes 10089 ;; 10090 10091sysv4 | sysv4.3*) 10092 version_type=linux 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10094 soname_spec='${libname}${release}${shared_ext}$major' 10095 shlibpath_var=LD_LIBRARY_PATH 10096 case $host_vendor in 10097 sni) 10098 shlibpath_overrides_runpath=no 10099 need_lib_prefix=no 10100 runpath_var=LD_RUN_PATH 10101 ;; 10102 siemens) 10103 need_lib_prefix=no 10104 ;; 10105 motorola) 10106 need_lib_prefix=no 10107 need_version=no 10108 shlibpath_overrides_runpath=no 10109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10110 ;; 10111 esac 10112 ;; 10113 10114sysv4*MP*) 10115 if test -d /usr/nec ;then 10116 version_type=linux 10117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10118 soname_spec='$libname${shared_ext}.$major' 10119 shlibpath_var=LD_LIBRARY_PATH 10120 fi 10121 ;; 10122 10123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10124 version_type=freebsd-elf 10125 need_lib_prefix=no 10126 need_version=no 10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10128 soname_spec='${libname}${release}${shared_ext}$major' 10129 shlibpath_var=LD_LIBRARY_PATH 10130 shlibpath_overrides_runpath=yes 10131 hardcode_into_libs=yes 10132 if test "$with_gnu_ld" = yes; then 10133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10134 else 10135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10136 case $host_os in 10137 sco3.2v5*) 10138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10139 ;; 10140 esac 10141 fi 10142 sys_lib_dlsearch_path_spec='/usr/lib' 10143 ;; 10144 10145tpf*) 10146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10147 version_type=linux 10148 need_lib_prefix=no 10149 need_version=no 10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10151 shlibpath_var=LD_LIBRARY_PATH 10152 shlibpath_overrides_runpath=no 10153 hardcode_into_libs=yes 10154 ;; 10155 10156uts4*) 10157 version_type=linux 10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10159 soname_spec='${libname}${release}${shared_ext}$major' 10160 shlibpath_var=LD_LIBRARY_PATH 10161 ;; 10162 10163*) 10164 dynamic_linker=no 10165 ;; 10166esac 10167{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10168$as_echo "$dynamic_linker" >&6; } 10169test "$dynamic_linker" = no && can_build_shared=no 10170 10171variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10172if test "$GCC" = yes; then 10173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10174fi 10175 10176if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10178fi 10179if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10181fi 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10270$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10271hardcode_action= 10272if test -n "$hardcode_libdir_flag_spec" || 10273 test -n "$runpath_var" || 10274 test "X$hardcode_automatic" = "Xyes" ; then 10275 10276 # We can hardcode non-existent directories. 10277 if test "$hardcode_direct" != no && 10278 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10279 # have to relink, otherwise we might link with an installed library 10280 # when we should be linking with a yet-to-be-installed one 10281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10282 test "$hardcode_minus_L" != no; then 10283 # Linking always hardcodes the temporary library directory. 10284 hardcode_action=relink 10285 else 10286 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10287 hardcode_action=immediate 10288 fi 10289else 10290 # We cannot hardcode anything, or else we can only hardcode existing 10291 # directories. 10292 hardcode_action=unsupported 10293fi 10294{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10295$as_echo "$hardcode_action" >&6; } 10296 10297if test "$hardcode_action" = relink || 10298 test "$inherit_rpath" = yes; then 10299 # Fast installation is not supported 10300 enable_fast_install=no 10301elif test "$shlibpath_overrides_runpath" = yes || 10302 test "$enable_shared" = no; then 10303 # Fast installation is not necessary 10304 enable_fast_install=needless 10305fi 10306 10307 10308 10309 10310 10311 10312 if test "x$enable_dlopen" != xyes; then 10313 enable_dlopen=unknown 10314 enable_dlopen_self=unknown 10315 enable_dlopen_self_static=unknown 10316else 10317 lt_cv_dlopen=no 10318 lt_cv_dlopen_libs= 10319 10320 case $host_os in 10321 beos*) 10322 lt_cv_dlopen="load_add_on" 10323 lt_cv_dlopen_libs= 10324 lt_cv_dlopen_self=yes 10325 ;; 10326 10327 mingw* | pw32* | cegcc*) 10328 lt_cv_dlopen="LoadLibrary" 10329 lt_cv_dlopen_libs= 10330 ;; 10331 10332 cygwin*) 10333 lt_cv_dlopen="dlopen" 10334 lt_cv_dlopen_libs= 10335 ;; 10336 10337 darwin*) 10338 # if libdl is installed we need to link against it 10339 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10340$as_echo_n "checking for dlopen in -ldl... " >&6; } 10341if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10342 $as_echo_n "(cached) " >&6 10343else 10344 ac_check_lib_save_LIBS=$LIBS 10345LIBS="-ldl $LIBS" 10346cat >conftest.$ac_ext <<_ACEOF 10347/* confdefs.h. */ 10348_ACEOF 10349cat confdefs.h >>conftest.$ac_ext 10350cat >>conftest.$ac_ext <<_ACEOF 10351/* end confdefs.h. */ 10352 10353/* Override any GCC internal prototype to avoid an error. 10354 Use char because int might match the return type of a GCC 10355 builtin and then its argument prototype would still apply. */ 10356#ifdef __cplusplus 10357extern "C" 10358#endif 10359char dlopen (); 10360int 10361main () 10362{ 10363return dlopen (); 10364 ; 10365 return 0; 10366} 10367_ACEOF 10368rm -f conftest.$ac_objext conftest$ac_exeext 10369if { (ac_try="$ac_link" 10370case "(($ac_try" in 10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10372 *) ac_try_echo=$ac_try;; 10373esac 10374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10375$as_echo "$ac_try_echo") >&5 10376 (eval "$ac_link") 2>conftest.er1 10377 ac_status=$? 10378 grep -v '^ *+' conftest.er1 >conftest.err 10379 rm -f conftest.er1 10380 cat conftest.err >&5 10381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10382 (exit $ac_status); } && { 10383 test -z "$ac_c_werror_flag" || 10384 test ! -s conftest.err 10385 } && test -s conftest$ac_exeext && { 10386 test "$cross_compiling" = yes || 10387 $as_test_x conftest$ac_exeext 10388 }; then 10389 ac_cv_lib_dl_dlopen=yes 10390else 10391 $as_echo "$as_me: failed program was:" >&5 10392sed 's/^/| /' conftest.$ac_ext >&5 10393 10394 ac_cv_lib_dl_dlopen=no 10395fi 10396 10397rm -rf conftest.dSYM 10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10399 conftest$ac_exeext conftest.$ac_ext 10400LIBS=$ac_check_lib_save_LIBS 10401fi 10402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10403$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10404if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10406else 10407 10408 lt_cv_dlopen="dyld" 10409 lt_cv_dlopen_libs= 10410 lt_cv_dlopen_self=yes 10411 10412fi 10413 10414 ;; 10415 10416 *) 10417 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10418$as_echo_n "checking for shl_load... " >&6; } 10419if test "${ac_cv_func_shl_load+set}" = set; then 10420 $as_echo_n "(cached) " >&6 10421else 10422 cat >conftest.$ac_ext <<_ACEOF 10423/* confdefs.h. */ 10424_ACEOF 10425cat confdefs.h >>conftest.$ac_ext 10426cat >>conftest.$ac_ext <<_ACEOF 10427/* end confdefs.h. */ 10428/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10429 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10430#define shl_load innocuous_shl_load 10431 10432/* System header to define __stub macros and hopefully few prototypes, 10433 which can conflict with char shl_load (); below. 10434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10435 <limits.h> exists even on freestanding compilers. */ 10436 10437#ifdef __STDC__ 10438# include <limits.h> 10439#else 10440# include <assert.h> 10441#endif 10442 10443#undef shl_load 10444 10445/* Override any GCC internal prototype to avoid an error. 10446 Use char because int might match the return type of a GCC 10447 builtin and then its argument prototype would still apply. */ 10448#ifdef __cplusplus 10449extern "C" 10450#endif 10451char shl_load (); 10452/* The GNU C library defines this for functions which it implements 10453 to always fail with ENOSYS. Some functions are actually named 10454 something starting with __ and the normal name is an alias. */ 10455#if defined __stub_shl_load || defined __stub___shl_load 10456choke me 10457#endif 10458 10459int 10460main () 10461{ 10462return shl_load (); 10463 ; 10464 return 0; 10465} 10466_ACEOF 10467rm -f conftest.$ac_objext conftest$ac_exeext 10468if { (ac_try="$ac_link" 10469case "(($ac_try" in 10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10471 *) ac_try_echo=$ac_try;; 10472esac 10473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10474$as_echo "$ac_try_echo") >&5 10475 (eval "$ac_link") 2>conftest.er1 10476 ac_status=$? 10477 grep -v '^ *+' conftest.er1 >conftest.err 10478 rm -f conftest.er1 10479 cat conftest.err >&5 10480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10481 (exit $ac_status); } && { 10482 test -z "$ac_c_werror_flag" || 10483 test ! -s conftest.err 10484 } && test -s conftest$ac_exeext && { 10485 test "$cross_compiling" = yes || 10486 $as_test_x conftest$ac_exeext 10487 }; then 10488 ac_cv_func_shl_load=yes 10489else 10490 $as_echo "$as_me: failed program was:" >&5 10491sed 's/^/| /' conftest.$ac_ext >&5 10492 10493 ac_cv_func_shl_load=no 10494fi 10495 10496rm -rf conftest.dSYM 10497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10498 conftest$ac_exeext conftest.$ac_ext 10499fi 10500{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10501$as_echo "$ac_cv_func_shl_load" >&6; } 10502if test "x$ac_cv_func_shl_load" = x""yes; then 10503 lt_cv_dlopen="shl_load" 10504else 10505 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10506$as_echo_n "checking for shl_load in -ldld... " >&6; } 10507if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10508 $as_echo_n "(cached) " >&6 10509else 10510 ac_check_lib_save_LIBS=$LIBS 10511LIBS="-ldld $LIBS" 10512cat >conftest.$ac_ext <<_ACEOF 10513/* confdefs.h. */ 10514_ACEOF 10515cat confdefs.h >>conftest.$ac_ext 10516cat >>conftest.$ac_ext <<_ACEOF 10517/* end confdefs.h. */ 10518 10519/* Override any GCC internal prototype to avoid an error. 10520 Use char because int might match the return type of a GCC 10521 builtin and then its argument prototype would still apply. */ 10522#ifdef __cplusplus 10523extern "C" 10524#endif 10525char shl_load (); 10526int 10527main () 10528{ 10529return shl_load (); 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534rm -f conftest.$ac_objext conftest$ac_exeext 10535if { (ac_try="$ac_link" 10536case "(($ac_try" in 10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10538 *) ac_try_echo=$ac_try;; 10539esac 10540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10541$as_echo "$ac_try_echo") >&5 10542 (eval "$ac_link") 2>conftest.er1 10543 ac_status=$? 10544 grep -v '^ *+' conftest.er1 >conftest.err 10545 rm -f conftest.er1 10546 cat conftest.err >&5 10547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 (exit $ac_status); } && { 10549 test -z "$ac_c_werror_flag" || 10550 test ! -s conftest.err 10551 } && test -s conftest$ac_exeext && { 10552 test "$cross_compiling" = yes || 10553 $as_test_x conftest$ac_exeext 10554 }; then 10555 ac_cv_lib_dld_shl_load=yes 10556else 10557 $as_echo "$as_me: failed program was:" >&5 10558sed 's/^/| /' conftest.$ac_ext >&5 10559 10560 ac_cv_lib_dld_shl_load=no 10561fi 10562 10563rm -rf conftest.dSYM 10564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10565 conftest$ac_exeext conftest.$ac_ext 10566LIBS=$ac_check_lib_save_LIBS 10567fi 10568{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10569$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10570if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10571 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10572else 10573 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10574$as_echo_n "checking for dlopen... " >&6; } 10575if test "${ac_cv_func_dlopen+set}" = set; then 10576 $as_echo_n "(cached) " >&6 10577else 10578 cat >conftest.$ac_ext <<_ACEOF 10579/* confdefs.h. */ 10580_ACEOF 10581cat confdefs.h >>conftest.$ac_ext 10582cat >>conftest.$ac_ext <<_ACEOF 10583/* end confdefs.h. */ 10584/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10585 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10586#define dlopen innocuous_dlopen 10587 10588/* System header to define __stub macros and hopefully few prototypes, 10589 which can conflict with char dlopen (); below. 10590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10591 <limits.h> exists even on freestanding compilers. */ 10592 10593#ifdef __STDC__ 10594# include <limits.h> 10595#else 10596# include <assert.h> 10597#endif 10598 10599#undef dlopen 10600 10601/* Override any GCC internal prototype to avoid an error. 10602 Use char because int might match the return type of a GCC 10603 builtin and then its argument prototype would still apply. */ 10604#ifdef __cplusplus 10605extern "C" 10606#endif 10607char dlopen (); 10608/* The GNU C library defines this for functions which it implements 10609 to always fail with ENOSYS. Some functions are actually named 10610 something starting with __ and the normal name is an alias. */ 10611#if defined __stub_dlopen || defined __stub___dlopen 10612choke me 10613#endif 10614 10615int 10616main () 10617{ 10618return dlopen (); 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623rm -f conftest.$ac_objext conftest$ac_exeext 10624if { (ac_try="$ac_link" 10625case "(($ac_try" in 10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10627 *) ac_try_echo=$ac_try;; 10628esac 10629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10630$as_echo "$ac_try_echo") >&5 10631 (eval "$ac_link") 2>conftest.er1 10632 ac_status=$? 10633 grep -v '^ *+' conftest.er1 >conftest.err 10634 rm -f conftest.er1 10635 cat conftest.err >&5 10636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10637 (exit $ac_status); } && { 10638 test -z "$ac_c_werror_flag" || 10639 test ! -s conftest.err 10640 } && test -s conftest$ac_exeext && { 10641 test "$cross_compiling" = yes || 10642 $as_test_x conftest$ac_exeext 10643 }; then 10644 ac_cv_func_dlopen=yes 10645else 10646 $as_echo "$as_me: failed program was:" >&5 10647sed 's/^/| /' conftest.$ac_ext >&5 10648 10649 ac_cv_func_dlopen=no 10650fi 10651 10652rm -rf conftest.dSYM 10653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10654 conftest$ac_exeext conftest.$ac_ext 10655fi 10656{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10657$as_echo "$ac_cv_func_dlopen" >&6; } 10658if test "x$ac_cv_func_dlopen" = x""yes; then 10659 lt_cv_dlopen="dlopen" 10660else 10661 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10662$as_echo_n "checking for dlopen in -ldl... " >&6; } 10663if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10664 $as_echo_n "(cached) " >&6 10665else 10666 ac_check_lib_save_LIBS=$LIBS 10667LIBS="-ldl $LIBS" 10668cat >conftest.$ac_ext <<_ACEOF 10669/* confdefs.h. */ 10670_ACEOF 10671cat confdefs.h >>conftest.$ac_ext 10672cat >>conftest.$ac_ext <<_ACEOF 10673/* end confdefs.h. */ 10674 10675/* Override any GCC internal prototype to avoid an error. 10676 Use char because int might match the return type of a GCC 10677 builtin and then its argument prototype would still apply. */ 10678#ifdef __cplusplus 10679extern "C" 10680#endif 10681char dlopen (); 10682int 10683main () 10684{ 10685return dlopen (); 10686 ; 10687 return 0; 10688} 10689_ACEOF 10690rm -f conftest.$ac_objext conftest$ac_exeext 10691if { (ac_try="$ac_link" 10692case "(($ac_try" in 10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10694 *) ac_try_echo=$ac_try;; 10695esac 10696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10697$as_echo "$ac_try_echo") >&5 10698 (eval "$ac_link") 2>conftest.er1 10699 ac_status=$? 10700 grep -v '^ *+' conftest.er1 >conftest.err 10701 rm -f conftest.er1 10702 cat conftest.err >&5 10703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10704 (exit $ac_status); } && { 10705 test -z "$ac_c_werror_flag" || 10706 test ! -s conftest.err 10707 } && test -s conftest$ac_exeext && { 10708 test "$cross_compiling" = yes || 10709 $as_test_x conftest$ac_exeext 10710 }; then 10711 ac_cv_lib_dl_dlopen=yes 10712else 10713 $as_echo "$as_me: failed program was:" >&5 10714sed 's/^/| /' conftest.$ac_ext >&5 10715 10716 ac_cv_lib_dl_dlopen=no 10717fi 10718 10719rm -rf conftest.dSYM 10720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10721 conftest$ac_exeext conftest.$ac_ext 10722LIBS=$ac_check_lib_save_LIBS 10723fi 10724{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10725$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10726if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10728else 10729 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10730$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10731if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10732 $as_echo_n "(cached) " >&6 10733else 10734 ac_check_lib_save_LIBS=$LIBS 10735LIBS="-lsvld $LIBS" 10736cat >conftest.$ac_ext <<_ACEOF 10737/* confdefs.h. */ 10738_ACEOF 10739cat confdefs.h >>conftest.$ac_ext 10740cat >>conftest.$ac_ext <<_ACEOF 10741/* end confdefs.h. */ 10742 10743/* Override any GCC internal prototype to avoid an error. 10744 Use char because int might match the return type of a GCC 10745 builtin and then its argument prototype would still apply. */ 10746#ifdef __cplusplus 10747extern "C" 10748#endif 10749char dlopen (); 10750int 10751main () 10752{ 10753return dlopen (); 10754 ; 10755 return 0; 10756} 10757_ACEOF 10758rm -f conftest.$ac_objext conftest$ac_exeext 10759if { (ac_try="$ac_link" 10760case "(($ac_try" in 10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10762 *) ac_try_echo=$ac_try;; 10763esac 10764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10765$as_echo "$ac_try_echo") >&5 10766 (eval "$ac_link") 2>conftest.er1 10767 ac_status=$? 10768 grep -v '^ *+' conftest.er1 >conftest.err 10769 rm -f conftest.er1 10770 cat conftest.err >&5 10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10772 (exit $ac_status); } && { 10773 test -z "$ac_c_werror_flag" || 10774 test ! -s conftest.err 10775 } && test -s conftest$ac_exeext && { 10776 test "$cross_compiling" = yes || 10777 $as_test_x conftest$ac_exeext 10778 }; then 10779 ac_cv_lib_svld_dlopen=yes 10780else 10781 $as_echo "$as_me: failed program was:" >&5 10782sed 's/^/| /' conftest.$ac_ext >&5 10783 10784 ac_cv_lib_svld_dlopen=no 10785fi 10786 10787rm -rf conftest.dSYM 10788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10789 conftest$ac_exeext conftest.$ac_ext 10790LIBS=$ac_check_lib_save_LIBS 10791fi 10792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10793$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10794if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10796else 10797 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10798$as_echo_n "checking for dld_link in -ldld... " >&6; } 10799if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10800 $as_echo_n "(cached) " >&6 10801else 10802 ac_check_lib_save_LIBS=$LIBS 10803LIBS="-ldld $LIBS" 10804cat >conftest.$ac_ext <<_ACEOF 10805/* confdefs.h. */ 10806_ACEOF 10807cat confdefs.h >>conftest.$ac_ext 10808cat >>conftest.$ac_ext <<_ACEOF 10809/* end confdefs.h. */ 10810 10811/* Override any GCC internal prototype to avoid an error. 10812 Use char because int might match the return type of a GCC 10813 builtin and then its argument prototype would still apply. */ 10814#ifdef __cplusplus 10815extern "C" 10816#endif 10817char dld_link (); 10818int 10819main () 10820{ 10821return dld_link (); 10822 ; 10823 return 0; 10824} 10825_ACEOF 10826rm -f conftest.$ac_objext conftest$ac_exeext 10827if { (ac_try="$ac_link" 10828case "(($ac_try" in 10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10830 *) ac_try_echo=$ac_try;; 10831esac 10832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10833$as_echo "$ac_try_echo") >&5 10834 (eval "$ac_link") 2>conftest.er1 10835 ac_status=$? 10836 grep -v '^ *+' conftest.er1 >conftest.err 10837 rm -f conftest.er1 10838 cat conftest.err >&5 10839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10840 (exit $ac_status); } && { 10841 test -z "$ac_c_werror_flag" || 10842 test ! -s conftest.err 10843 } && test -s conftest$ac_exeext && { 10844 test "$cross_compiling" = yes || 10845 $as_test_x conftest$ac_exeext 10846 }; then 10847 ac_cv_lib_dld_dld_link=yes 10848else 10849 $as_echo "$as_me: failed program was:" >&5 10850sed 's/^/| /' conftest.$ac_ext >&5 10851 10852 ac_cv_lib_dld_dld_link=no 10853fi 10854 10855rm -rf conftest.dSYM 10856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10857 conftest$ac_exeext conftest.$ac_ext 10858LIBS=$ac_check_lib_save_LIBS 10859fi 10860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10861$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10862if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10863 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10864fi 10865 10866 10867fi 10868 10869 10870fi 10871 10872 10873fi 10874 10875 10876fi 10877 10878 10879fi 10880 10881 ;; 10882 esac 10883 10884 if test "x$lt_cv_dlopen" != xno; then 10885 enable_dlopen=yes 10886 else 10887 enable_dlopen=no 10888 fi 10889 10890 case $lt_cv_dlopen in 10891 dlopen) 10892 save_CPPFLAGS="$CPPFLAGS" 10893 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10894 10895 save_LDFLAGS="$LDFLAGS" 10896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10897 10898 save_LIBS="$LIBS" 10899 LIBS="$lt_cv_dlopen_libs $LIBS" 10900 10901 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10902$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10903if test "${lt_cv_dlopen_self+set}" = set; then 10904 $as_echo_n "(cached) " >&6 10905else 10906 if test "$cross_compiling" = yes; then : 10907 lt_cv_dlopen_self=cross 10908else 10909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10910 lt_status=$lt_dlunknown 10911 cat > conftest.$ac_ext <<_LT_EOF 10912#line __oline__ "configure" 10913#include "confdefs.h" 10914 10915#if HAVE_DLFCN_H 10916#include <dlfcn.h> 10917#endif 10918 10919#include <stdio.h> 10920 10921#ifdef RTLD_GLOBAL 10922# define LT_DLGLOBAL RTLD_GLOBAL 10923#else 10924# ifdef DL_GLOBAL 10925# define LT_DLGLOBAL DL_GLOBAL 10926# else 10927# define LT_DLGLOBAL 0 10928# endif 10929#endif 10930 10931/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10932 find out it does not work in some platform. */ 10933#ifndef LT_DLLAZY_OR_NOW 10934# ifdef RTLD_LAZY 10935# define LT_DLLAZY_OR_NOW RTLD_LAZY 10936# else 10937# ifdef DL_LAZY 10938# define LT_DLLAZY_OR_NOW DL_LAZY 10939# else 10940# ifdef RTLD_NOW 10941# define LT_DLLAZY_OR_NOW RTLD_NOW 10942# else 10943# ifdef DL_NOW 10944# define LT_DLLAZY_OR_NOW DL_NOW 10945# else 10946# define LT_DLLAZY_OR_NOW 0 10947# endif 10948# endif 10949# endif 10950# endif 10951#endif 10952 10953void fnord() { int i=42;} 10954int main () 10955{ 10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10957 int status = $lt_dlunknown; 10958 10959 if (self) 10960 { 10961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10963 /* dlclose (self); */ 10964 } 10965 else 10966 puts (dlerror ()); 10967 10968 return status; 10969} 10970_LT_EOF 10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10972 (eval $ac_link) 2>&5 10973 ac_status=$? 10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10976 (./conftest; exit; ) >&5 2>/dev/null 10977 lt_status=$? 10978 case x$lt_status in 10979 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10980 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10981 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10982 esac 10983 else : 10984 # compilation failed 10985 lt_cv_dlopen_self=no 10986 fi 10987fi 10988rm -fr conftest* 10989 10990 10991fi 10992{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10993$as_echo "$lt_cv_dlopen_self" >&6; } 10994 10995 if test "x$lt_cv_dlopen_self" = xyes; then 10996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10997 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10998$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10999if test "${lt_cv_dlopen_self_static+set}" = set; then 11000 $as_echo_n "(cached) " >&6 11001else 11002 if test "$cross_compiling" = yes; then : 11003 lt_cv_dlopen_self_static=cross 11004else 11005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11006 lt_status=$lt_dlunknown 11007 cat > conftest.$ac_ext <<_LT_EOF 11008#line __oline__ "configure" 11009#include "confdefs.h" 11010 11011#if HAVE_DLFCN_H 11012#include <dlfcn.h> 11013#endif 11014 11015#include <stdio.h> 11016 11017#ifdef RTLD_GLOBAL 11018# define LT_DLGLOBAL RTLD_GLOBAL 11019#else 11020# ifdef DL_GLOBAL 11021# define LT_DLGLOBAL DL_GLOBAL 11022# else 11023# define LT_DLGLOBAL 0 11024# endif 11025#endif 11026 11027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11028 find out it does not work in some platform. */ 11029#ifndef LT_DLLAZY_OR_NOW 11030# ifdef RTLD_LAZY 11031# define LT_DLLAZY_OR_NOW RTLD_LAZY 11032# else 11033# ifdef DL_LAZY 11034# define LT_DLLAZY_OR_NOW DL_LAZY 11035# else 11036# ifdef RTLD_NOW 11037# define LT_DLLAZY_OR_NOW RTLD_NOW 11038# else 11039# ifdef DL_NOW 11040# define LT_DLLAZY_OR_NOW DL_NOW 11041# else 11042# define LT_DLLAZY_OR_NOW 0 11043# endif 11044# endif 11045# endif 11046# endif 11047#endif 11048 11049void fnord() { int i=42;} 11050int main () 11051{ 11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11053 int status = $lt_dlunknown; 11054 11055 if (self) 11056 { 11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11059 /* dlclose (self); */ 11060 } 11061 else 11062 puts (dlerror ()); 11063 11064 return status; 11065} 11066_LT_EOF 11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11068 (eval $ac_link) 2>&5 11069 ac_status=$? 11070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11072 (./conftest; exit; ) >&5 2>/dev/null 11073 lt_status=$? 11074 case x$lt_status in 11075 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11076 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11077 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11078 esac 11079 else : 11080 # compilation failed 11081 lt_cv_dlopen_self_static=no 11082 fi 11083fi 11084rm -fr conftest* 11085 11086 11087fi 11088{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11089$as_echo "$lt_cv_dlopen_self_static" >&6; } 11090 fi 11091 11092 CPPFLAGS="$save_CPPFLAGS" 11093 LDFLAGS="$save_LDFLAGS" 11094 LIBS="$save_LIBS" 11095 ;; 11096 esac 11097 11098 case $lt_cv_dlopen_self in 11099 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11100 *) enable_dlopen_self=unknown ;; 11101 esac 11102 11103 case $lt_cv_dlopen_self_static in 11104 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11105 *) enable_dlopen_self_static=unknown ;; 11106 esac 11107fi 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125striplib= 11126old_striplib= 11127{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11128$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11129if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11130 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11131 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11132 { $as_echo "$as_me:$LINENO: result: yes" >&5 11133$as_echo "yes" >&6; } 11134else 11135# FIXME - insert some real tests, host_os isn't really good enough 11136 case $host_os in 11137 darwin*) 11138 if test -n "$STRIP" ; then 11139 striplib="$STRIP -x" 11140 old_striplib="$STRIP -S" 11141 { $as_echo "$as_me:$LINENO: result: yes" >&5 11142$as_echo "yes" >&6; } 11143 else 11144 { $as_echo "$as_me:$LINENO: result: no" >&5 11145$as_echo "no" >&6; } 11146 fi 11147 ;; 11148 *) 11149 { $as_echo "$as_me:$LINENO: result: no" >&5 11150$as_echo "no" >&6; } 11151 ;; 11152 esac 11153fi 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 # Report which library types will actually be built 11167 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11168$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11169 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11170$as_echo "$can_build_shared" >&6; } 11171 11172 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11173$as_echo_n "checking whether to build shared libraries... " >&6; } 11174 test "$can_build_shared" = "no" && enable_shared=no 11175 11176 # On AIX, shared libraries and static libraries use the same namespace, and 11177 # are all built from PIC. 11178 case $host_os in 11179 aix3*) 11180 test "$enable_shared" = yes && enable_static=no 11181 if test -n "$RANLIB"; then 11182 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11183 postinstall_cmds='$RANLIB $lib' 11184 fi 11185 ;; 11186 11187 aix[4-9]*) 11188 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11189 test "$enable_shared" = yes && enable_static=no 11190 fi 11191 ;; 11192 esac 11193 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11194$as_echo "$enable_shared" >&6; } 11195 11196 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11197$as_echo_n "checking whether to build static libraries... " >&6; } 11198 # Make sure either enable_shared or enable_static is yes. 11199 test "$enable_shared" = yes || enable_static=yes 11200 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11201$as_echo "$enable_static" >&6; } 11202 11203 11204 11205 11206fi 11207ac_ext=c 11208ac_cpp='$CPP $CPPFLAGS' 11209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11211ac_compiler_gnu=$ac_cv_c_compiler_gnu 11212 11213CC="$lt_save_CC" 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 ac_config_commands="$ac_config_commands libtool" 11228 11229 11230 11231 11232# Only expand once: 11233 11234 11235 11236 11237 11238 11239{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 11240$as_echo_n "checking for socket in -lsocket... " >&6; } 11241if test "${ac_cv_lib_socket_socket+set}" = set; then 11242 $as_echo_n "(cached) " >&6 11243else 11244 ac_check_lib_save_LIBS=$LIBS 11245LIBS="-lsocket $LIBS" 11246cat >conftest.$ac_ext <<_ACEOF 11247/* confdefs.h. */ 11248_ACEOF 11249cat confdefs.h >>conftest.$ac_ext 11250cat >>conftest.$ac_ext <<_ACEOF 11251/* end confdefs.h. */ 11252 11253/* Override any GCC internal prototype to avoid an error. 11254 Use char because int might match the return type of a GCC 11255 builtin and then its argument prototype would still apply. */ 11256#ifdef __cplusplus 11257extern "C" 11258#endif 11259char socket (); 11260int 11261main () 11262{ 11263return socket (); 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268rm -f conftest.$ac_objext conftest$ac_exeext 11269if { (ac_try="$ac_link" 11270case "(($ac_try" in 11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11272 *) ac_try_echo=$ac_try;; 11273esac 11274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11275$as_echo "$ac_try_echo") >&5 11276 (eval "$ac_link") 2>conftest.er1 11277 ac_status=$? 11278 grep -v '^ *+' conftest.er1 >conftest.err 11279 rm -f conftest.er1 11280 cat conftest.err >&5 11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11282 (exit $ac_status); } && { 11283 test -z "$ac_c_werror_flag" || 11284 test ! -s conftest.err 11285 } && test -s conftest$ac_exeext && { 11286 test "$cross_compiling" = yes || 11287 $as_test_x conftest$ac_exeext 11288 }; then 11289 ac_cv_lib_socket_socket=yes 11290else 11291 $as_echo "$as_me: failed program was:" >&5 11292sed 's/^/| /' conftest.$ac_ext >&5 11293 11294 ac_cv_lib_socket_socket=no 11295fi 11296 11297rm -rf conftest.dSYM 11298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11299 conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 11303$as_echo "$ac_cv_lib_socket_socket" >&6; } 11304if test "x$ac_cv_lib_socket_socket" = x""yes; then 11305 cat >>confdefs.h <<_ACEOF 11306@%:@define HAVE_LIBSOCKET 1 11307_ACEOF 11308 11309 LIBS="-lsocket $LIBS" 11310 11311fi 11312 11313 11314{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 11315$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 11316if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then 11317 $as_echo_n "(cached) " >&6 11318else 11319 ac_check_lib_save_LIBS=$LIBS 11320LIBS="-lresolv $LIBS" 11321cat >conftest.$ac_ext <<_ACEOF 11322/* confdefs.h. */ 11323_ACEOF 11324cat confdefs.h >>conftest.$ac_ext 11325cat >>conftest.$ac_ext <<_ACEOF 11326/* end confdefs.h. */ 11327 11328/* Override any GCC internal prototype to avoid an error. 11329 Use char because int might match the return type of a GCC 11330 builtin and then its argument prototype would still apply. */ 11331#ifdef __cplusplus 11332extern "C" 11333#endif 11334char inet_aton (); 11335int 11336main () 11337{ 11338return inet_aton (); 11339 ; 11340 return 0; 11341} 11342_ACEOF 11343rm -f conftest.$ac_objext conftest$ac_exeext 11344if { (ac_try="$ac_link" 11345case "(($ac_try" in 11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11347 *) ac_try_echo=$ac_try;; 11348esac 11349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11350$as_echo "$ac_try_echo") >&5 11351 (eval "$ac_link") 2>conftest.er1 11352 ac_status=$? 11353 grep -v '^ *+' conftest.er1 >conftest.err 11354 rm -f conftest.er1 11355 cat conftest.err >&5 11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11357 (exit $ac_status); } && { 11358 test -z "$ac_c_werror_flag" || 11359 test ! -s conftest.err 11360 } && test -s conftest$ac_exeext && { 11361 test "$cross_compiling" = yes || 11362 $as_test_x conftest$ac_exeext 11363 }; then 11364 ac_cv_lib_resolv_inet_aton=yes 11365else 11366 $as_echo "$as_me: failed program was:" >&5 11367sed 's/^/| /' conftest.$ac_ext >&5 11368 11369 ac_cv_lib_resolv_inet_aton=no 11370fi 11371 11372rm -rf conftest.dSYM 11373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11374 conftest$ac_exeext conftest.$ac_ext 11375LIBS=$ac_check_lib_save_LIBS 11376fi 11377{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 11378$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 11379if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then 11380 cat >>confdefs.h <<_ACEOF 11381@%:@define HAVE_LIBRESOLV 1 11382_ACEOF 11383 11384 LIBS="-lresolv $LIBS" 11385 11386fi 11387 11388 11389{ $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 11390$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 11391if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 11392 $as_echo_n "(cached) " >&6 11393else 11394 ac_check_lib_save_LIBS=$LIBS 11395LIBS="-lrt $LIBS" 11396cat >conftest.$ac_ext <<_ACEOF 11397/* confdefs.h. */ 11398_ACEOF 11399cat confdefs.h >>conftest.$ac_ext 11400cat >>conftest.$ac_ext <<_ACEOF 11401/* end confdefs.h. */ 11402 11403/* Override any GCC internal prototype to avoid an error. 11404 Use char because int might match the return type of a GCC 11405 builtin and then its argument prototype would still apply. */ 11406#ifdef __cplusplus 11407extern "C" 11408#endif 11409char clock_gettime (); 11410int 11411main () 11412{ 11413return clock_gettime (); 11414 ; 11415 return 0; 11416} 11417_ACEOF 11418rm -f conftest.$ac_objext conftest$ac_exeext 11419if { (ac_try="$ac_link" 11420case "(($ac_try" in 11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11422 *) ac_try_echo=$ac_try;; 11423esac 11424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11425$as_echo "$ac_try_echo") >&5 11426 (eval "$ac_link") 2>conftest.er1 11427 ac_status=$? 11428 grep -v '^ *+' conftest.er1 >conftest.err 11429 rm -f conftest.er1 11430 cat conftest.err >&5 11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 (exit $ac_status); } && { 11433 test -z "$ac_c_werror_flag" || 11434 test ! -s conftest.err 11435 } && test -s conftest$ac_exeext && { 11436 test "$cross_compiling" = yes || 11437 $as_test_x conftest$ac_exeext 11438 }; then 11439 ac_cv_lib_rt_clock_gettime=yes 11440else 11441 $as_echo "$as_me: failed program was:" >&5 11442sed 's/^/| /' conftest.$ac_ext >&5 11443 11444 ac_cv_lib_rt_clock_gettime=no 11445fi 11446 11447rm -rf conftest.dSYM 11448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11449 conftest$ac_exeext conftest.$ac_ext 11450LIBS=$ac_check_lib_save_LIBS 11451fi 11452{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 11453$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 11454if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then 11455 cat >>confdefs.h <<_ACEOF 11456@%:@define HAVE_LIBRT 1 11457_ACEOF 11458 11459 LIBS="-lrt $LIBS" 11460 11461fi 11462 11463 11464{ $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 11465$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } 11466if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 11467 $as_echo_n "(cached) " >&6 11468else 11469 ac_check_lib_save_LIBS=$LIBS 11470LIBS="-lnsl $LIBS" 11471cat >conftest.$ac_ext <<_ACEOF 11472/* confdefs.h. */ 11473_ACEOF 11474cat confdefs.h >>conftest.$ac_ext 11475cat >>conftest.$ac_ext <<_ACEOF 11476/* end confdefs.h. */ 11477 11478/* Override any GCC internal prototype to avoid an error. 11479 Use char because int might match the return type of a GCC 11480 builtin and then its argument prototype would still apply. */ 11481#ifdef __cplusplus 11482extern "C" 11483#endif 11484char inet_ntoa (); 11485int 11486main () 11487{ 11488return inet_ntoa (); 11489 ; 11490 return 0; 11491} 11492_ACEOF 11493rm -f conftest.$ac_objext conftest$ac_exeext 11494if { (ac_try="$ac_link" 11495case "(($ac_try" in 11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11497 *) ac_try_echo=$ac_try;; 11498esac 11499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11500$as_echo "$ac_try_echo") >&5 11501 (eval "$ac_link") 2>conftest.er1 11502 ac_status=$? 11503 grep -v '^ *+' conftest.er1 >conftest.err 11504 rm -f conftest.er1 11505 cat conftest.err >&5 11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11507 (exit $ac_status); } && { 11508 test -z "$ac_c_werror_flag" || 11509 test ! -s conftest.err 11510 } && test -s conftest$ac_exeext && { 11511 test "$cross_compiling" = yes || 11512 $as_test_x conftest$ac_exeext 11513 }; then 11514 ac_cv_lib_nsl_inet_ntoa=yes 11515else 11516 $as_echo "$as_me: failed program was:" >&5 11517sed 's/^/| /' conftest.$ac_ext >&5 11518 11519 ac_cv_lib_nsl_inet_ntoa=no 11520fi 11521 11522rm -rf conftest.dSYM 11523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11524 conftest$ac_exeext conftest.$ac_ext 11525LIBS=$ac_check_lib_save_LIBS 11526fi 11527{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 11528$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } 11529if test "x$ac_cv_lib_nsl_inet_ntoa" = x""yes; then 11530 cat >>confdefs.h <<_ACEOF 11531@%:@define HAVE_LIBNSL 1 11532_ACEOF 11533 11534 LIBS="-lnsl $LIBS" 11535 11536fi 11537 11538 11539{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 11540$as_echo_n "checking for ANSI C header files... " >&6; } 11541if test "${ac_cv_header_stdc+set}" = set; then 11542 $as_echo_n "(cached) " >&6 11543else 11544 cat >conftest.$ac_ext <<_ACEOF 11545/* confdefs.h. */ 11546_ACEOF 11547cat confdefs.h >>conftest.$ac_ext 11548cat >>conftest.$ac_ext <<_ACEOF 11549/* end confdefs.h. */ 11550#include <stdlib.h> 11551#include <stdarg.h> 11552#include <string.h> 11553#include <float.h> 11554 11555int 11556main () 11557{ 11558 11559 ; 11560 return 0; 11561} 11562_ACEOF 11563rm -f conftest.$ac_objext 11564if { (ac_try="$ac_compile" 11565case "(($ac_try" in 11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11567 *) ac_try_echo=$ac_try;; 11568esac 11569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11570$as_echo "$ac_try_echo") >&5 11571 (eval "$ac_compile") 2>conftest.er1 11572 ac_status=$? 11573 grep -v '^ *+' conftest.er1 >conftest.err 11574 rm -f conftest.er1 11575 cat conftest.err >&5 11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11577 (exit $ac_status); } && { 11578 test -z "$ac_c_werror_flag" || 11579 test ! -s conftest.err 11580 } && test -s conftest.$ac_objext; then 11581 ac_cv_header_stdc=yes 11582else 11583 $as_echo "$as_me: failed program was:" >&5 11584sed 's/^/| /' conftest.$ac_ext >&5 11585 11586 ac_cv_header_stdc=no 11587fi 11588 11589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11590 11591if test $ac_cv_header_stdc = yes; then 11592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11593 cat >conftest.$ac_ext <<_ACEOF 11594/* confdefs.h. */ 11595_ACEOF 11596cat confdefs.h >>conftest.$ac_ext 11597cat >>conftest.$ac_ext <<_ACEOF 11598/* end confdefs.h. */ 11599#include <string.h> 11600 11601_ACEOF 11602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11603 $EGREP "memchr" >/dev/null 2>&1; then 11604 : 11605else 11606 ac_cv_header_stdc=no 11607fi 11608rm -f conftest* 11609 11610fi 11611 11612if test $ac_cv_header_stdc = yes; then 11613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11614 cat >conftest.$ac_ext <<_ACEOF 11615/* confdefs.h. */ 11616_ACEOF 11617cat confdefs.h >>conftest.$ac_ext 11618cat >>conftest.$ac_ext <<_ACEOF 11619/* end confdefs.h. */ 11620#include <stdlib.h> 11621 11622_ACEOF 11623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11624 $EGREP "free" >/dev/null 2>&1; then 11625 : 11626else 11627 ac_cv_header_stdc=no 11628fi 11629rm -f conftest* 11630 11631fi 11632 11633if test $ac_cv_header_stdc = yes; then 11634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11635 if test "$cross_compiling" = yes; then 11636 : 11637else 11638 cat >conftest.$ac_ext <<_ACEOF 11639/* confdefs.h. */ 11640_ACEOF 11641cat confdefs.h >>conftest.$ac_ext 11642cat >>conftest.$ac_ext <<_ACEOF 11643/* end confdefs.h. */ 11644#include <ctype.h> 11645#include <stdlib.h> 11646#if ((' ' & 0x0FF) == 0x020) 11647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11649#else 11650# define ISLOWER(c) \ 11651 (('a' <= (c) && (c) <= 'i') \ 11652 || ('j' <= (c) && (c) <= 'r') \ 11653 || ('s' <= (c) && (c) <= 'z')) 11654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11655#endif 11656 11657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11658int 11659main () 11660{ 11661 int i; 11662 for (i = 0; i < 256; i++) 11663 if (XOR (islower (i), ISLOWER (i)) 11664 || toupper (i) != TOUPPER (i)) 11665 return 2; 11666 return 0; 11667} 11668_ACEOF 11669rm -f conftest$ac_exeext 11670if { (ac_try="$ac_link" 11671case "(($ac_try" in 11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11673 *) ac_try_echo=$ac_try;; 11674esac 11675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11676$as_echo "$ac_try_echo") >&5 11677 (eval "$ac_link") 2>&5 11678 ac_status=$? 11679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11681 { (case "(($ac_try" in 11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11683 *) ac_try_echo=$ac_try;; 11684esac 11685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11686$as_echo "$ac_try_echo") >&5 11687 (eval "$ac_try") 2>&5 11688 ac_status=$? 11689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11690 (exit $ac_status); }; }; then 11691 : 11692else 11693 $as_echo "$as_me: program exited with status $ac_status" >&5 11694$as_echo "$as_me: failed program was:" >&5 11695sed 's/^/| /' conftest.$ac_ext >&5 11696 11697( exit $ac_status ) 11698ac_cv_header_stdc=no 11699fi 11700rm -rf conftest.dSYM 11701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11702fi 11703 11704 11705fi 11706fi 11707{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 11708$as_echo "$ac_cv_header_stdc" >&6; } 11709if test $ac_cv_header_stdc = yes; then 11710 11711cat >>confdefs.h <<\_ACEOF 11712@%:@define STDC_HEADERS 1 11713_ACEOF 11714 11715fi 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in6.h sys/socket.h 11736do 11737as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11740$as_echo_n "checking for $ac_header... " >&6; } 11741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11742 $as_echo_n "(cached) " >&6 11743fi 11744ac_res=`eval 'as_val=${'$as_ac_Header'} 11745 $as_echo "$as_val"'` 11746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11747$as_echo "$ac_res" >&6; } 11748else 11749 # Is the header compilable? 11750{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11751$as_echo_n "checking $ac_header usability... " >&6; } 11752cat >conftest.$ac_ext <<_ACEOF 11753/* confdefs.h. */ 11754_ACEOF 11755cat confdefs.h >>conftest.$ac_ext 11756cat >>conftest.$ac_ext <<_ACEOF 11757/* end confdefs.h. */ 11758$ac_includes_default 11759@%:@include <$ac_header> 11760_ACEOF 11761rm -f conftest.$ac_objext 11762if { (ac_try="$ac_compile" 11763case "(($ac_try" in 11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11765 *) ac_try_echo=$ac_try;; 11766esac 11767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11768$as_echo "$ac_try_echo") >&5 11769 (eval "$ac_compile") 2>conftest.er1 11770 ac_status=$? 11771 grep -v '^ *+' conftest.er1 >conftest.err 11772 rm -f conftest.er1 11773 cat conftest.err >&5 11774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11775 (exit $ac_status); } && { 11776 test -z "$ac_c_werror_flag" || 11777 test ! -s conftest.err 11778 } && test -s conftest.$ac_objext; then 11779 ac_header_compiler=yes 11780else 11781 $as_echo "$as_me: failed program was:" >&5 11782sed 's/^/| /' conftest.$ac_ext >&5 11783 11784 ac_header_compiler=no 11785fi 11786 11787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11788{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11789$as_echo "$ac_header_compiler" >&6; } 11790 11791# Is the header present? 11792{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11793$as_echo_n "checking $ac_header presence... " >&6; } 11794cat >conftest.$ac_ext <<_ACEOF 11795/* confdefs.h. */ 11796_ACEOF 11797cat confdefs.h >>conftest.$ac_ext 11798cat >>conftest.$ac_ext <<_ACEOF 11799/* end confdefs.h. */ 11800@%:@include <$ac_header> 11801_ACEOF 11802if { (ac_try="$ac_cpp conftest.$ac_ext" 11803case "(($ac_try" in 11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11805 *) ac_try_echo=$ac_try;; 11806esac 11807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11808$as_echo "$ac_try_echo") >&5 11809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11810 ac_status=$? 11811 grep -v '^ *+' conftest.er1 >conftest.err 11812 rm -f conftest.er1 11813 cat conftest.err >&5 11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11815 (exit $ac_status); } >/dev/null && { 11816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11817 test ! -s conftest.err 11818 }; then 11819 ac_header_preproc=yes 11820else 11821 $as_echo "$as_me: failed program was:" >&5 11822sed 's/^/| /' conftest.$ac_ext >&5 11823 11824 ac_header_preproc=no 11825fi 11826 11827rm -f conftest.err conftest.$ac_ext 11828{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11829$as_echo "$ac_header_preproc" >&6; } 11830 11831# So? What about this header? 11832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11833 yes:no: ) 11834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11835$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11837$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11838 ac_header_preproc=yes 11839 ;; 11840 no:yes:* ) 11841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11842$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11844$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11846$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11848$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11850$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11852$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11853 11854 ;; 11855esac 11856{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11857$as_echo_n "checking for $ac_header... " >&6; } 11858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11859 $as_echo_n "(cached) " >&6 11860else 11861 eval "$as_ac_Header=\$ac_header_preproc" 11862fi 11863ac_res=`eval 'as_val=${'$as_ac_Header'} 11864 $as_echo "$as_val"'` 11865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11866$as_echo "$ac_res" >&6; } 11867 11868fi 11869as_val=`eval 'as_val=${'$as_ac_Header'} 11870 $as_echo "$as_val"'` 11871 if test "x$as_val" = x""yes; then 11872 cat >>confdefs.h <<_ACEOF 11873@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11874_ACEOF 11875 11876fi 11877 11878done 11879 11880if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 11881 { $as_echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5 11882$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 11883 cat >conftest.$ac_ext <<_ACEOF 11884/* confdefs.h. */ 11885_ACEOF 11886cat confdefs.h >>conftest.$ac_ext 11887cat >>conftest.$ac_ext <<_ACEOF 11888/* end confdefs.h. */ 11889 11890#include <sys/queue.h> 11891#ifdef TAILQ_FOREACH 11892 yes 11893#endif 11894 11895_ACEOF 11896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11897 $EGREP "yes" >/dev/null 2>&1; then 11898 { $as_echo "$as_me:$LINENO: result: yes" >&5 11899$as_echo "yes" >&6; } 11900 11901cat >>confdefs.h <<\_ACEOF 11902@%:@define HAVE_TAILQFOREACH 1 11903_ACEOF 11904 11905else 11906 { $as_echo "$as_me:$LINENO: result: no" >&5 11907$as_echo "no" >&6; } 11908 11909fi 11910rm -f conftest* 11911 11912fi 11913 11914if test "x$ac_cv_header_sys_time_h" = "xyes"; then 11915 { $as_echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5 11916$as_echo_n "checking for timeradd in sys/time.h... " >&6; } 11917 cat >conftest.$ac_ext <<_ACEOF 11918/* confdefs.h. */ 11919_ACEOF 11920cat confdefs.h >>conftest.$ac_ext 11921cat >>conftest.$ac_ext <<_ACEOF 11922/* end confdefs.h. */ 11923 11924#include <sys/time.h> 11925#ifdef timeradd 11926 yes 11927#endif 11928 11929_ACEOF 11930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11931 $EGREP "yes" >/dev/null 2>&1; then 11932 11933cat >>confdefs.h <<\_ACEOF 11934@%:@define HAVE_TIMERADD 1 11935_ACEOF 11936 11937 { $as_echo "$as_me:$LINENO: result: yes" >&5 11938$as_echo "yes" >&6; } 11939else 11940 { $as_echo "$as_me:$LINENO: result: no" >&5 11941$as_echo "no" >&6; } 11942 11943fi 11944rm -f conftest* 11945 11946fi 11947 11948if test "x$ac_cv_header_sys_time_h" = "xyes"; then 11949 { $as_echo "$as_me:$LINENO: checking for timercmp in sys/time.h" >&5 11950$as_echo_n "checking for timercmp in sys/time.h... " >&6; } 11951 cat >conftest.$ac_ext <<_ACEOF 11952/* confdefs.h. */ 11953_ACEOF 11954cat confdefs.h >>conftest.$ac_ext 11955cat >>conftest.$ac_ext <<_ACEOF 11956/* end confdefs.h. */ 11957 11958#include <sys/time.h> 11959#ifdef timercmp 11960 yes 11961#endif 11962 11963_ACEOF 11964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11965 $EGREP "yes" >/dev/null 2>&1; then 11966 11967cat >>confdefs.h <<\_ACEOF 11968@%:@define HAVE_TIMERCMP 1 11969_ACEOF 11970 11971 { $as_echo "$as_me:$LINENO: result: yes" >&5 11972$as_echo "yes" >&6; } 11973else 11974 { $as_echo "$as_me:$LINENO: result: no" >&5 11975$as_echo "no" >&6; } 11976 11977fi 11978rm -f conftest* 11979 11980fi 11981 11982if test "x$ac_cv_header_sys_time_h" = "xyes"; then 11983 { $as_echo "$as_me:$LINENO: checking for timerclear in sys/time.h" >&5 11984$as_echo_n "checking for timerclear in sys/time.h... " >&6; } 11985 cat >conftest.$ac_ext <<_ACEOF 11986/* confdefs.h. */ 11987_ACEOF 11988cat confdefs.h >>conftest.$ac_ext 11989cat >>conftest.$ac_ext <<_ACEOF 11990/* end confdefs.h. */ 11991 11992#include <sys/time.h> 11993#ifdef timerclear 11994 yes 11995#endif 11996 11997_ACEOF 11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11999 $EGREP "yes" >/dev/null 2>&1; then 12000 12001cat >>confdefs.h <<\_ACEOF 12002@%:@define HAVE_TIMERCLEAR 1 12003_ACEOF 12004 12005 { $as_echo "$as_me:$LINENO: result: yes" >&5 12006$as_echo "yes" >&6; } 12007else 12008 { $as_echo "$as_me:$LINENO: result: no" >&5 12009$as_echo "no" >&6; } 12010 12011fi 12012rm -f conftest* 12013 12014fi 12015 12016if test "x$ac_cv_header_sys_time_h" = "xyes"; then 12017 { $as_echo "$as_me:$LINENO: checking for timerisset in sys/time.h" >&5 12018$as_echo_n "checking for timerisset in sys/time.h... " >&6; } 12019 cat >conftest.$ac_ext <<_ACEOF 12020/* confdefs.h. */ 12021_ACEOF 12022cat confdefs.h >>conftest.$ac_ext 12023cat >>conftest.$ac_ext <<_ACEOF 12024/* end confdefs.h. */ 12025 12026#include <sys/time.h> 12027#ifdef timerisset 12028 yes 12029#endif 12030 12031_ACEOF 12032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12033 $EGREP "yes" >/dev/null 2>&1; then 12034 12035cat >>confdefs.h <<\_ACEOF 12036@%:@define HAVE_TIMERISSET 1 12037_ACEOF 12038 12039 { $as_echo "$as_me:$LINENO: result: yes" >&5 12040$as_echo "yes" >&6; } 12041else 12042 { $as_echo "$as_me:$LINENO: result: no" >&5 12043$as_echo "no" >&6; } 12044 12045fi 12046rm -f conftest* 12047 12048fi 12049 12050{ $as_echo "$as_me:$LINENO: checking for WIN32" >&5 12051$as_echo_n "checking for WIN32... " >&6; } 12052cat >conftest.$ac_ext <<_ACEOF 12053/* confdefs.h. */ 12054_ACEOF 12055cat confdefs.h >>conftest.$ac_ext 12056cat >>conftest.$ac_ext <<_ACEOF 12057/* end confdefs.h. */ 12058 12059int 12060main () 12061{ 12062 12063#ifndef WIN32 12064die horribly 12065#endif 12066 12067 ; 12068 return 0; 12069} 12070_ACEOF 12071rm -f conftest.$ac_objext 12072if { (ac_try="$ac_compile" 12073case "(($ac_try" in 12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12075 *) ac_try_echo=$ac_try;; 12076esac 12077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12078$as_echo "$ac_try_echo") >&5 12079 (eval "$ac_compile") 2>conftest.er1 12080 ac_status=$? 12081 grep -v '^ *+' conftest.er1 >conftest.err 12082 rm -f conftest.er1 12083 cat conftest.err >&5 12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12085 (exit $ac_status); } && { 12086 test -z "$ac_c_werror_flag" || 12087 test ! -s conftest.err 12088 } && test -s conftest.$ac_objext; then 12089 bwin32=true; { $as_echo "$as_me:$LINENO: result: yes" >&5 12090$as_echo "yes" >&6; } 12091else 12092 $as_echo "$as_me: failed program was:" >&5 12093sed 's/^/| /' conftest.$ac_ext >&5 12094 12095 bwin32=false; { $as_echo "$as_me:$LINENO: result: no" >&5 12096$as_echo "no" >&6; } 12097fi 12098 12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12100 12101 if test x$bwin32 = xtrue; then 12102 BUILD_WIN32_TRUE= 12103 BUILD_WIN32_FALSE='#' 12104else 12105 BUILD_WIN32_TRUE='#' 12106 BUILD_WIN32_FALSE= 12107fi 12108 12109 12110{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12111$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12112if test "${ac_cv_c_const+set}" = set; then 12113 $as_echo_n "(cached) " >&6 12114else 12115 cat >conftest.$ac_ext <<_ACEOF 12116/* confdefs.h. */ 12117_ACEOF 12118cat confdefs.h >>conftest.$ac_ext 12119cat >>conftest.$ac_ext <<_ACEOF 12120/* end confdefs.h. */ 12121 12122int 12123main () 12124{ 12125/* FIXME: Include the comments suggested by Paul. */ 12126#ifndef __cplusplus 12127 /* Ultrix mips cc rejects this. */ 12128 typedef int charset[2]; 12129 const charset cs; 12130 /* SunOS 4.1.1 cc rejects this. */ 12131 char const *const *pcpcc; 12132 char **ppc; 12133 /* NEC SVR4.0.2 mips cc rejects this. */ 12134 struct point {int x, y;}; 12135 static struct point const zero = {0,0}; 12136 /* AIX XL C 1.02.0.0 rejects this. 12137 It does not let you subtract one const X* pointer from another in 12138 an arm of an if-expression whose if-part is not a constant 12139 expression */ 12140 const char *g = "string"; 12141 pcpcc = &g + (g ? g-g : 0); 12142 /* HPUX 7.0 cc rejects these. */ 12143 ++pcpcc; 12144 ppc = (char**) pcpcc; 12145 pcpcc = (char const *const *) ppc; 12146 { /* SCO 3.2v4 cc rejects this. */ 12147 char *t; 12148 char const *s = 0 ? (char *) 0 : (char const *) 0; 12149 12150 *t++ = 0; 12151 if (s) return 0; 12152 } 12153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12154 int x[] = {25, 17}; 12155 const int *foo = &x[0]; 12156 ++foo; 12157 } 12158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12159 typedef const int *iptr; 12160 iptr p = 0; 12161 ++p; 12162 } 12163 { /* AIX XL C 1.02.0.0 rejects this saying 12164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12165 struct s { int j; const int *ap[3]; }; 12166 struct s *b; b->j = 5; 12167 } 12168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12169 const int foo = 10; 12170 if (!foo) return 0; 12171 } 12172 return !cs[0] && !zero.x; 12173#endif 12174 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179rm -f conftest.$ac_objext 12180if { (ac_try="$ac_compile" 12181case "(($ac_try" in 12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12183 *) ac_try_echo=$ac_try;; 12184esac 12185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12186$as_echo "$ac_try_echo") >&5 12187 (eval "$ac_compile") 2>conftest.er1 12188 ac_status=$? 12189 grep -v '^ *+' conftest.er1 >conftest.err 12190 rm -f conftest.er1 12191 cat conftest.err >&5 12192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12193 (exit $ac_status); } && { 12194 test -z "$ac_c_werror_flag" || 12195 test ! -s conftest.err 12196 } && test -s conftest.$ac_objext; then 12197 ac_cv_c_const=yes 12198else 12199 $as_echo "$as_me: failed program was:" >&5 12200sed 's/^/| /' conftest.$ac_ext >&5 12201 12202 ac_cv_c_const=no 12203fi 12204 12205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12206fi 12207{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12208$as_echo "$ac_cv_c_const" >&6; } 12209if test $ac_cv_c_const = no; then 12210 12211cat >>confdefs.h <<\_ACEOF 12212@%:@define const /**/ 12213_ACEOF 12214 12215fi 12216 12217{ $as_echo "$as_me:$LINENO: checking for inline" >&5 12218$as_echo_n "checking for inline... " >&6; } 12219if test "${ac_cv_c_inline+set}" = set; then 12220 $as_echo_n "(cached) " >&6 12221else 12222 ac_cv_c_inline=no 12223for ac_kw in inline __inline__ __inline; do 12224 cat >conftest.$ac_ext <<_ACEOF 12225/* confdefs.h. */ 12226_ACEOF 12227cat confdefs.h >>conftest.$ac_ext 12228cat >>conftest.$ac_ext <<_ACEOF 12229/* end confdefs.h. */ 12230#ifndef __cplusplus 12231typedef int foo_t; 12232static $ac_kw foo_t static_foo () {return 0; } 12233$ac_kw foo_t foo () {return 0; } 12234#endif 12235 12236_ACEOF 12237rm -f conftest.$ac_objext 12238if { (ac_try="$ac_compile" 12239case "(($ac_try" in 12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12241 *) ac_try_echo=$ac_try;; 12242esac 12243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12244$as_echo "$ac_try_echo") >&5 12245 (eval "$ac_compile") 2>conftest.er1 12246 ac_status=$? 12247 grep -v '^ *+' conftest.er1 >conftest.err 12248 rm -f conftest.er1 12249 cat conftest.err >&5 12250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12251 (exit $ac_status); } && { 12252 test -z "$ac_c_werror_flag" || 12253 test ! -s conftest.err 12254 } && test -s conftest.$ac_objext; then 12255 ac_cv_c_inline=$ac_kw 12256else 12257 $as_echo "$as_me: failed program was:" >&5 12258sed 's/^/| /' conftest.$ac_ext >&5 12259 12260 12261fi 12262 12263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12264 test "$ac_cv_c_inline" != no && break 12265done 12266 12267fi 12268{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12269$as_echo "$ac_cv_c_inline" >&6; } 12270 12271 12272case $ac_cv_c_inline in 12273 inline | yes) ;; 12274 *) 12275 case $ac_cv_c_inline in 12276 no) ac_val=;; 12277 *) ac_val=$ac_cv_c_inline;; 12278 esac 12279 cat >>confdefs.h <<_ACEOF 12280#ifndef __cplusplus 12281#define inline $ac_val 12282#endif 12283_ACEOF 12284 ;; 12285esac 12286 12287{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12288$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12289if test "${ac_cv_header_time+set}" = set; then 12290 $as_echo_n "(cached) " >&6 12291else 12292 cat >conftest.$ac_ext <<_ACEOF 12293/* confdefs.h. */ 12294_ACEOF 12295cat confdefs.h >>conftest.$ac_ext 12296cat >>conftest.$ac_ext <<_ACEOF 12297/* end confdefs.h. */ 12298#include <sys/types.h> 12299#include <sys/time.h> 12300#include <time.h> 12301 12302int 12303main () 12304{ 12305if ((struct tm *) 0) 12306return 0; 12307 ; 12308 return 0; 12309} 12310_ACEOF 12311rm -f conftest.$ac_objext 12312if { (ac_try="$ac_compile" 12313case "(($ac_try" in 12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12315 *) ac_try_echo=$ac_try;; 12316esac 12317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12318$as_echo "$ac_try_echo") >&5 12319 (eval "$ac_compile") 2>conftest.er1 12320 ac_status=$? 12321 grep -v '^ *+' conftest.er1 >conftest.err 12322 rm -f conftest.er1 12323 cat conftest.err >&5 12324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); } && { 12326 test -z "$ac_c_werror_flag" || 12327 test ! -s conftest.err 12328 } && test -s conftest.$ac_objext; then 12329 ac_cv_header_time=yes 12330else 12331 $as_echo "$as_me: failed program was:" >&5 12332sed 's/^/| /' conftest.$ac_ext >&5 12333 12334 ac_cv_header_time=no 12335fi 12336 12337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12338fi 12339{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12340$as_echo "$ac_cv_header_time" >&6; } 12341if test $ac_cv_header_time = yes; then 12342 12343cat >>confdefs.h <<\_ACEOF 12344@%:@define TIME_WITH_SYS_TIME 1 12345_ACEOF 12346 12347fi 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop signal sigaction strtoll issetugid geteuid getegid 12367do 12368as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12369{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12370$as_echo_n "checking for $ac_func... " >&6; } 12371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12372 $as_echo_n "(cached) " >&6 12373else 12374 cat >conftest.$ac_ext <<_ACEOF 12375/* confdefs.h. */ 12376_ACEOF 12377cat confdefs.h >>conftest.$ac_ext 12378cat >>conftest.$ac_ext <<_ACEOF 12379/* end confdefs.h. */ 12380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12381 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12382#define $ac_func innocuous_$ac_func 12383 12384/* System header to define __stub macros and hopefully few prototypes, 12385 which can conflict with char $ac_func (); below. 12386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12387 <limits.h> exists even on freestanding compilers. */ 12388 12389#ifdef __STDC__ 12390# include <limits.h> 12391#else 12392# include <assert.h> 12393#endif 12394 12395#undef $ac_func 12396 12397/* Override any GCC internal prototype to avoid an error. 12398 Use char because int might match the return type of a GCC 12399 builtin and then its argument prototype would still apply. */ 12400#ifdef __cplusplus 12401extern "C" 12402#endif 12403char $ac_func (); 12404/* The GNU C library defines this for functions which it implements 12405 to always fail with ENOSYS. Some functions are actually named 12406 something starting with __ and the normal name is an alias. */ 12407#if defined __stub_$ac_func || defined __stub___$ac_func 12408choke me 12409#endif 12410 12411int 12412main () 12413{ 12414return $ac_func (); 12415 ; 12416 return 0; 12417} 12418_ACEOF 12419rm -f conftest.$ac_objext conftest$ac_exeext 12420if { (ac_try="$ac_link" 12421case "(($ac_try" in 12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12423 *) ac_try_echo=$ac_try;; 12424esac 12425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12426$as_echo "$ac_try_echo") >&5 12427 (eval "$ac_link") 2>conftest.er1 12428 ac_status=$? 12429 grep -v '^ *+' conftest.er1 >conftest.err 12430 rm -f conftest.er1 12431 cat conftest.err >&5 12432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12433 (exit $ac_status); } && { 12434 test -z "$ac_c_werror_flag" || 12435 test ! -s conftest.err 12436 } && test -s conftest$ac_exeext && { 12437 test "$cross_compiling" = yes || 12438 $as_test_x conftest$ac_exeext 12439 }; then 12440 eval "$as_ac_var=yes" 12441else 12442 $as_echo "$as_me: failed program was:" >&5 12443sed 's/^/| /' conftest.$ac_ext >&5 12444 12445 eval "$as_ac_var=no" 12446fi 12447 12448rm -rf conftest.dSYM 12449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12450 conftest$ac_exeext conftest.$ac_ext 12451fi 12452ac_res=`eval 'as_val=${'$as_ac_var'} 12453 $as_echo "$as_val"'` 12454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12455$as_echo "$ac_res" >&6; } 12456as_val=`eval 'as_val=${'$as_ac_var'} 12457 $as_echo "$as_val"'` 12458 if test "x$as_val" = x""yes; then 12459 cat >>confdefs.h <<_ACEOF 12460@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12461_ACEOF 12462 12463fi 12464done 12465 12466 12467# The cast to long int works around a bug in the HP C Compiler 12468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12470# This bug is HP SR number 8606223364. 12471{ $as_echo "$as_me:$LINENO: checking size of long" >&5 12472$as_echo_n "checking size of long... " >&6; } 12473if test "${ac_cv_sizeof_long+set}" = set; then 12474 $as_echo_n "(cached) " >&6 12475else 12476 if test "$cross_compiling" = yes; then 12477 # Depending upon the size, compute the lo and hi bounds. 12478cat >conftest.$ac_ext <<_ACEOF 12479/* confdefs.h. */ 12480_ACEOF 12481cat confdefs.h >>conftest.$ac_ext 12482cat >>conftest.$ac_ext <<_ACEOF 12483/* end confdefs.h. */ 12484$ac_includes_default 12485int 12486main () 12487{ 12488static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@; 12489test_array @<:@0@:>@ = 0 12490 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495rm -f conftest.$ac_objext 12496if { (ac_try="$ac_compile" 12497case "(($ac_try" in 12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12499 *) ac_try_echo=$ac_try;; 12500esac 12501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12502$as_echo "$ac_try_echo") >&5 12503 (eval "$ac_compile") 2>conftest.er1 12504 ac_status=$? 12505 grep -v '^ *+' conftest.er1 >conftest.err 12506 rm -f conftest.er1 12507 cat conftest.err >&5 12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12509 (exit $ac_status); } && { 12510 test -z "$ac_c_werror_flag" || 12511 test ! -s conftest.err 12512 } && test -s conftest.$ac_objext; then 12513 ac_lo=0 ac_mid=0 12514 while :; do 12515 cat >conftest.$ac_ext <<_ACEOF 12516/* confdefs.h. */ 12517_ACEOF 12518cat confdefs.h >>conftest.$ac_ext 12519cat >>conftest.$ac_ext <<_ACEOF 12520/* end confdefs.h. */ 12521$ac_includes_default 12522int 12523main () 12524{ 12525static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@; 12526test_array @<:@0@:>@ = 0 12527 12528 ; 12529 return 0; 12530} 12531_ACEOF 12532rm -f conftest.$ac_objext 12533if { (ac_try="$ac_compile" 12534case "(($ac_try" in 12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12536 *) ac_try_echo=$ac_try;; 12537esac 12538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12539$as_echo "$ac_try_echo") >&5 12540 (eval "$ac_compile") 2>conftest.er1 12541 ac_status=$? 12542 grep -v '^ *+' conftest.er1 >conftest.err 12543 rm -f conftest.er1 12544 cat conftest.err >&5 12545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12546 (exit $ac_status); } && { 12547 test -z "$ac_c_werror_flag" || 12548 test ! -s conftest.err 12549 } && test -s conftest.$ac_objext; then 12550 ac_hi=$ac_mid; break 12551else 12552 $as_echo "$as_me: failed program was:" >&5 12553sed 's/^/| /' conftest.$ac_ext >&5 12554 12555 ac_lo=`expr $ac_mid + 1` 12556 if test $ac_lo -le $ac_mid; then 12557 ac_lo= ac_hi= 12558 break 12559 fi 12560 ac_mid=`expr 2 '*' $ac_mid + 1` 12561fi 12562 12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12564 done 12565else 12566 $as_echo "$as_me: failed program was:" >&5 12567sed 's/^/| /' conftest.$ac_ext >&5 12568 12569 cat >conftest.$ac_ext <<_ACEOF 12570/* confdefs.h. */ 12571_ACEOF 12572cat confdefs.h >>conftest.$ac_ext 12573cat >>conftest.$ac_ext <<_ACEOF 12574/* end confdefs.h. */ 12575$ac_includes_default 12576int 12577main () 12578{ 12579static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@; 12580test_array @<:@0@:>@ = 0 12581 12582 ; 12583 return 0; 12584} 12585_ACEOF 12586rm -f conftest.$ac_objext 12587if { (ac_try="$ac_compile" 12588case "(($ac_try" in 12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12590 *) ac_try_echo=$ac_try;; 12591esac 12592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12593$as_echo "$ac_try_echo") >&5 12594 (eval "$ac_compile") 2>conftest.er1 12595 ac_status=$? 12596 grep -v '^ *+' conftest.er1 >conftest.err 12597 rm -f conftest.er1 12598 cat conftest.err >&5 12599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12600 (exit $ac_status); } && { 12601 test -z "$ac_c_werror_flag" || 12602 test ! -s conftest.err 12603 } && test -s conftest.$ac_objext; then 12604 ac_hi=-1 ac_mid=-1 12605 while :; do 12606 cat >conftest.$ac_ext <<_ACEOF 12607/* confdefs.h. */ 12608_ACEOF 12609cat confdefs.h >>conftest.$ac_ext 12610cat >>conftest.$ac_ext <<_ACEOF 12611/* end confdefs.h. */ 12612$ac_includes_default 12613int 12614main () 12615{ 12616static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@; 12617test_array @<:@0@:>@ = 0 12618 12619 ; 12620 return 0; 12621} 12622_ACEOF 12623rm -f conftest.$ac_objext 12624if { (ac_try="$ac_compile" 12625case "(($ac_try" in 12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12627 *) ac_try_echo=$ac_try;; 12628esac 12629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12630$as_echo "$ac_try_echo") >&5 12631 (eval "$ac_compile") 2>conftest.er1 12632 ac_status=$? 12633 grep -v '^ *+' conftest.er1 >conftest.err 12634 rm -f conftest.er1 12635 cat conftest.err >&5 12636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12637 (exit $ac_status); } && { 12638 test -z "$ac_c_werror_flag" || 12639 test ! -s conftest.err 12640 } && test -s conftest.$ac_objext; then 12641 ac_lo=$ac_mid; break 12642else 12643 $as_echo "$as_me: failed program was:" >&5 12644sed 's/^/| /' conftest.$ac_ext >&5 12645 12646 ac_hi=`expr '(' $ac_mid ')' - 1` 12647 if test $ac_mid -le $ac_hi; then 12648 ac_lo= ac_hi= 12649 break 12650 fi 12651 ac_mid=`expr 2 '*' $ac_mid` 12652fi 12653 12654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12655 done 12656else 12657 $as_echo "$as_me: failed program was:" >&5 12658sed 's/^/| /' conftest.$ac_ext >&5 12659 12660 ac_lo= ac_hi= 12661fi 12662 12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12664fi 12665 12666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12667# Binary search between lo and hi bounds. 12668while test "x$ac_lo" != "x$ac_hi"; do 12669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12670 cat >conftest.$ac_ext <<_ACEOF 12671/* confdefs.h. */ 12672_ACEOF 12673cat confdefs.h >>conftest.$ac_ext 12674cat >>conftest.$ac_ext <<_ACEOF 12675/* end confdefs.h. */ 12676$ac_includes_default 12677int 12678main () 12679{ 12680static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@; 12681test_array @<:@0@:>@ = 0 12682 12683 ; 12684 return 0; 12685} 12686_ACEOF 12687rm -f conftest.$ac_objext 12688if { (ac_try="$ac_compile" 12689case "(($ac_try" in 12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12691 *) ac_try_echo=$ac_try;; 12692esac 12693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12694$as_echo "$ac_try_echo") >&5 12695 (eval "$ac_compile") 2>conftest.er1 12696 ac_status=$? 12697 grep -v '^ *+' conftest.er1 >conftest.err 12698 rm -f conftest.er1 12699 cat conftest.err >&5 12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12701 (exit $ac_status); } && { 12702 test -z "$ac_c_werror_flag" || 12703 test ! -s conftest.err 12704 } && test -s conftest.$ac_objext; then 12705 ac_hi=$ac_mid 12706else 12707 $as_echo "$as_me: failed program was:" >&5 12708sed 's/^/| /' conftest.$ac_ext >&5 12709 12710 ac_lo=`expr '(' $ac_mid ')' + 1` 12711fi 12712 12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12714done 12715case $ac_lo in 12716?*) ac_cv_sizeof_long=$ac_lo;; 12717'') if test "$ac_cv_type_long" = yes; then 12718 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12720{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 12721See \`config.log' for more details." >&5 12722$as_echo "$as_me: error: cannot compute sizeof (long) 12723See \`config.log' for more details." >&2;} 12724 { (exit 77); exit 77; }; }; } 12725 else 12726 ac_cv_sizeof_long=0 12727 fi ;; 12728esac 12729else 12730 cat >conftest.$ac_ext <<_ACEOF 12731/* confdefs.h. */ 12732_ACEOF 12733cat confdefs.h >>conftest.$ac_ext 12734cat >>conftest.$ac_ext <<_ACEOF 12735/* end confdefs.h. */ 12736$ac_includes_default 12737static long int longval () { return (long int) (sizeof (long)); } 12738static unsigned long int ulongval () { return (long int) (sizeof (long)); } 12739@%:@include <stdio.h> 12740@%:@include <stdlib.h> 12741int 12742main () 12743{ 12744 12745 FILE *f = fopen ("conftest.val", "w"); 12746 if (! f) 12747 return 1; 12748 if (((long int) (sizeof (long))) < 0) 12749 { 12750 long int i = longval (); 12751 if (i != ((long int) (sizeof (long)))) 12752 return 1; 12753 fprintf (f, "%ld", i); 12754 } 12755 else 12756 { 12757 unsigned long int i = ulongval (); 12758 if (i != ((long int) (sizeof (long)))) 12759 return 1; 12760 fprintf (f, "%lu", i); 12761 } 12762 /* Do not output a trailing newline, as this causes \r\n confusion 12763 on some platforms. */ 12764 return ferror (f) || fclose (f) != 0; 12765 12766 ; 12767 return 0; 12768} 12769_ACEOF 12770rm -f conftest$ac_exeext 12771if { (ac_try="$ac_link" 12772case "(($ac_try" in 12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12774 *) ac_try_echo=$ac_try;; 12775esac 12776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12777$as_echo "$ac_try_echo") >&5 12778 (eval "$ac_link") 2>&5 12779 ac_status=$? 12780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12782 { (case "(($ac_try" in 12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12784 *) ac_try_echo=$ac_try;; 12785esac 12786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12787$as_echo "$ac_try_echo") >&5 12788 (eval "$ac_try") 2>&5 12789 ac_status=$? 12790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); }; }; then 12792 ac_cv_sizeof_long=`cat conftest.val` 12793else 12794 $as_echo "$as_me: program exited with status $ac_status" >&5 12795$as_echo "$as_me: failed program was:" >&5 12796sed 's/^/| /' conftest.$ac_ext >&5 12797 12798( exit $ac_status ) 12799if test "$ac_cv_type_long" = yes; then 12800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12802{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 12803See \`config.log' for more details." >&5 12804$as_echo "$as_me: error: cannot compute sizeof (long) 12805See \`config.log' for more details." >&2;} 12806 { (exit 77); exit 77; }; }; } 12807 else 12808 ac_cv_sizeof_long=0 12809 fi 12810fi 12811rm -rf conftest.dSYM 12812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12813fi 12814rm -f conftest.val 12815fi 12816{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 12817$as_echo "$ac_cv_sizeof_long" >&6; } 12818 12819 12820 12821cat >>confdefs.h <<_ACEOF 12822@%:@define SIZEOF_LONG $ac_cv_sizeof_long 12823_ACEOF 12824 12825 12826 12827if test "x$ac_cv_func_clock_gettime" = "xyes"; then 12828 12829cat >>confdefs.h <<\_ACEOF 12830@%:@define DNS_USE_CPU_CLOCK_FOR_ID 1 12831_ACEOF 12832 12833else 12834 12835cat >>confdefs.h <<\_ACEOF 12836@%:@define DNS_USE_GETTIMEOFDAY_FOR_ID 1 12837_ACEOF 12838 12839fi 12840 12841{ $as_echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5 12842$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; } 12843cat >conftest.$ac_ext <<_ACEOF 12844/* confdefs.h. */ 12845_ACEOF 12846cat confdefs.h >>conftest.$ac_ext 12847cat >>conftest.$ac_ext <<_ACEOF 12848/* end confdefs.h. */ 12849 12850#define _GNU_SOURCE 12851#include <fcntl.h> 12852#ifdef F_SETFD 12853yes 12854#endif 12855 12856_ACEOF 12857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12858 $EGREP "yes" >/dev/null 2>&1; then 12859 12860cat >>confdefs.h <<\_ACEOF 12861@%:@define HAVE_SETFD 1 12862_ACEOF 12863 12864 { $as_echo "$as_me:$LINENO: result: yes" >&5 12865$as_echo "yes" >&6; } 12866else 12867 { $as_echo "$as_me:$LINENO: result: no" >&5 12868$as_echo "no" >&6; } 12869fi 12870rm -f conftest* 12871 12872 12873needsignal=no 12874haveselect=no 12875 12876for ac_func in select 12877do 12878as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12879{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12880$as_echo_n "checking for $ac_func... " >&6; } 12881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12882 $as_echo_n "(cached) " >&6 12883else 12884 cat >conftest.$ac_ext <<_ACEOF 12885/* confdefs.h. */ 12886_ACEOF 12887cat confdefs.h >>conftest.$ac_ext 12888cat >>conftest.$ac_ext <<_ACEOF 12889/* end confdefs.h. */ 12890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12891 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12892#define $ac_func innocuous_$ac_func 12893 12894/* System header to define __stub macros and hopefully few prototypes, 12895 which can conflict with char $ac_func (); below. 12896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12897 <limits.h> exists even on freestanding compilers. */ 12898 12899#ifdef __STDC__ 12900# include <limits.h> 12901#else 12902# include <assert.h> 12903#endif 12904 12905#undef $ac_func 12906 12907/* Override any GCC internal prototype to avoid an error. 12908 Use char because int might match the return type of a GCC 12909 builtin and then its argument prototype would still apply. */ 12910#ifdef __cplusplus 12911extern "C" 12912#endif 12913char $ac_func (); 12914/* The GNU C library defines this for functions which it implements 12915 to always fail with ENOSYS. Some functions are actually named 12916 something starting with __ and the normal name is an alias. */ 12917#if defined __stub_$ac_func || defined __stub___$ac_func 12918choke me 12919#endif 12920 12921int 12922main () 12923{ 12924return $ac_func (); 12925 ; 12926 return 0; 12927} 12928_ACEOF 12929rm -f conftest.$ac_objext conftest$ac_exeext 12930if { (ac_try="$ac_link" 12931case "(($ac_try" in 12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12933 *) ac_try_echo=$ac_try;; 12934esac 12935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12936$as_echo "$ac_try_echo") >&5 12937 (eval "$ac_link") 2>conftest.er1 12938 ac_status=$? 12939 grep -v '^ *+' conftest.er1 >conftest.err 12940 rm -f conftest.er1 12941 cat conftest.err >&5 12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); } && { 12944 test -z "$ac_c_werror_flag" || 12945 test ! -s conftest.err 12946 } && test -s conftest$ac_exeext && { 12947 test "$cross_compiling" = yes || 12948 $as_test_x conftest$ac_exeext 12949 }; then 12950 eval "$as_ac_var=yes" 12951else 12952 $as_echo "$as_me: failed program was:" >&5 12953sed 's/^/| /' conftest.$ac_ext >&5 12954 12955 eval "$as_ac_var=no" 12956fi 12957 12958rm -rf conftest.dSYM 12959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12960 conftest$ac_exeext conftest.$ac_ext 12961fi 12962ac_res=`eval 'as_val=${'$as_ac_var'} 12963 $as_echo "$as_val"'` 12964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12965$as_echo "$ac_res" >&6; } 12966as_val=`eval 'as_val=${'$as_ac_var'} 12967 $as_echo "$as_val"'` 12968 if test "x$as_val" = x""yes; then 12969 cat >>confdefs.h <<_ACEOF 12970@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12971_ACEOF 12972 haveselect=yes 12973fi 12974done 12975 12976if test "x$haveselect" = "xyes" ; then 12977 case " $LIB@&t@OBJS " in 12978 *" select.$ac_objext "* ) ;; 12979 *) LIB@&t@OBJS="$LIB@&t@OBJS select.$ac_objext" 12980 ;; 12981esac 12982 12983 needsignal=yes 12984fi 12985 12986havepoll=no 12987 12988for ac_func in poll 12989do 12990as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12991{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12992$as_echo_n "checking for $ac_func... " >&6; } 12993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12994 $as_echo_n "(cached) " >&6 12995else 12996 cat >conftest.$ac_ext <<_ACEOF 12997/* confdefs.h. */ 12998_ACEOF 12999cat confdefs.h >>conftest.$ac_ext 13000cat >>conftest.$ac_ext <<_ACEOF 13001/* end confdefs.h. */ 13002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13003 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13004#define $ac_func innocuous_$ac_func 13005 13006/* System header to define __stub macros and hopefully few prototypes, 13007 which can conflict with char $ac_func (); below. 13008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13009 <limits.h> exists even on freestanding compilers. */ 13010 13011#ifdef __STDC__ 13012# include <limits.h> 13013#else 13014# include <assert.h> 13015#endif 13016 13017#undef $ac_func 13018 13019/* Override any GCC internal prototype to avoid an error. 13020 Use char because int might match the return type of a GCC 13021 builtin and then its argument prototype would still apply. */ 13022#ifdef __cplusplus 13023extern "C" 13024#endif 13025char $ac_func (); 13026/* The GNU C library defines this for functions which it implements 13027 to always fail with ENOSYS. Some functions are actually named 13028 something starting with __ and the normal name is an alias. */ 13029#if defined __stub_$ac_func || defined __stub___$ac_func 13030choke me 13031#endif 13032 13033int 13034main () 13035{ 13036return $ac_func (); 13037 ; 13038 return 0; 13039} 13040_ACEOF 13041rm -f conftest.$ac_objext conftest$ac_exeext 13042if { (ac_try="$ac_link" 13043case "(($ac_try" in 13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13045 *) ac_try_echo=$ac_try;; 13046esac 13047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13048$as_echo "$ac_try_echo") >&5 13049 (eval "$ac_link") 2>conftest.er1 13050 ac_status=$? 13051 grep -v '^ *+' conftest.er1 >conftest.err 13052 rm -f conftest.er1 13053 cat conftest.err >&5 13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13055 (exit $ac_status); } && { 13056 test -z "$ac_c_werror_flag" || 13057 test ! -s conftest.err 13058 } && test -s conftest$ac_exeext && { 13059 test "$cross_compiling" = yes || 13060 $as_test_x conftest$ac_exeext 13061 }; then 13062 eval "$as_ac_var=yes" 13063else 13064 $as_echo "$as_me: failed program was:" >&5 13065sed 's/^/| /' conftest.$ac_ext >&5 13066 13067 eval "$as_ac_var=no" 13068fi 13069 13070rm -rf conftest.dSYM 13071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13072 conftest$ac_exeext conftest.$ac_ext 13073fi 13074ac_res=`eval 'as_val=${'$as_ac_var'} 13075 $as_echo "$as_val"'` 13076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13077$as_echo "$ac_res" >&6; } 13078as_val=`eval 'as_val=${'$as_ac_var'} 13079 $as_echo "$as_val"'` 13080 if test "x$as_val" = x""yes; then 13081 cat >>confdefs.h <<_ACEOF 13082@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13083_ACEOF 13084 havepoll=yes 13085fi 13086done 13087 13088if test "x$havepoll" = "xyes" ; then 13089 case " $LIB@&t@OBJS " in 13090 *" poll.$ac_objext "* ) ;; 13091 *) LIB@&t@OBJS="$LIB@&t@OBJS poll.$ac_objext" 13092 ;; 13093esac 13094 13095 needsignal=yes 13096fi 13097 13098haveepoll=no 13099 13100for ac_func in epoll_ctl 13101do 13102as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13103{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13104$as_echo_n "checking for $ac_func... " >&6; } 13105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat >conftest.$ac_ext <<_ACEOF 13109/* confdefs.h. */ 13110_ACEOF 13111cat confdefs.h >>conftest.$ac_ext 13112cat >>conftest.$ac_ext <<_ACEOF 13113/* end confdefs.h. */ 13114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13115 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13116#define $ac_func innocuous_$ac_func 13117 13118/* System header to define __stub macros and hopefully few prototypes, 13119 which can conflict with char $ac_func (); below. 13120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13121 <limits.h> exists even on freestanding compilers. */ 13122 13123#ifdef __STDC__ 13124# include <limits.h> 13125#else 13126# include <assert.h> 13127#endif 13128 13129#undef $ac_func 13130 13131/* Override any GCC internal prototype to avoid an error. 13132 Use char because int might match the return type of a GCC 13133 builtin and then its argument prototype would still apply. */ 13134#ifdef __cplusplus 13135extern "C" 13136#endif 13137char $ac_func (); 13138/* The GNU C library defines this for functions which it implements 13139 to always fail with ENOSYS. Some functions are actually named 13140 something starting with __ and the normal name is an alias. */ 13141#if defined __stub_$ac_func || defined __stub___$ac_func 13142choke me 13143#endif 13144 13145int 13146main () 13147{ 13148return $ac_func (); 13149 ; 13150 return 0; 13151} 13152_ACEOF 13153rm -f conftest.$ac_objext conftest$ac_exeext 13154if { (ac_try="$ac_link" 13155case "(($ac_try" in 13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13157 *) ac_try_echo=$ac_try;; 13158esac 13159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13160$as_echo "$ac_try_echo") >&5 13161 (eval "$ac_link") 2>conftest.er1 13162 ac_status=$? 13163 grep -v '^ *+' conftest.er1 >conftest.err 13164 rm -f conftest.er1 13165 cat conftest.err >&5 13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13167 (exit $ac_status); } && { 13168 test -z "$ac_c_werror_flag" || 13169 test ! -s conftest.err 13170 } && test -s conftest$ac_exeext && { 13171 test "$cross_compiling" = yes || 13172 $as_test_x conftest$ac_exeext 13173 }; then 13174 eval "$as_ac_var=yes" 13175else 13176 $as_echo "$as_me: failed program was:" >&5 13177sed 's/^/| /' conftest.$ac_ext >&5 13178 13179 eval "$as_ac_var=no" 13180fi 13181 13182rm -rf conftest.dSYM 13183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13184 conftest$ac_exeext conftest.$ac_ext 13185fi 13186ac_res=`eval 'as_val=${'$as_ac_var'} 13187 $as_echo "$as_val"'` 13188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13189$as_echo "$ac_res" >&6; } 13190as_val=`eval 'as_val=${'$as_ac_var'} 13191 $as_echo "$as_val"'` 13192 if test "x$as_val" = x""yes; then 13193 cat >>confdefs.h <<_ACEOF 13194@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13195_ACEOF 13196 haveepoll=yes 13197fi 13198done 13199 13200if test "x$haveepoll" = "xyes" ; then 13201 13202cat >>confdefs.h <<\_ACEOF 13203@%:@define HAVE_EPOLL 1 13204_ACEOF 13205 13206 case " $LIB@&t@OBJS " in 13207 *" epoll.$ac_objext "* ) ;; 13208 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll.$ac_objext" 13209 ;; 13210esac 13211 13212 needsignal=yes 13213fi 13214 13215havedevpoll=no 13216if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 13217 13218cat >>confdefs.h <<\_ACEOF 13219@%:@define HAVE_DEVPOLL 1 13220_ACEOF 13221 13222 case " $LIB@&t@OBJS " in 13223 *" devpoll.$ac_objext "* ) ;; 13224 *) LIB@&t@OBJS="$LIB@&t@OBJS devpoll.$ac_objext" 13225 ;; 13226esac 13227 13228fi 13229 13230havekqueue=no 13231if test "x$ac_cv_header_sys_event_h" = "xyes"; then 13232 13233for ac_func in kqueue 13234do 13235as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13236{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13237$as_echo_n "checking for $ac_func... " >&6; } 13238if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13239 $as_echo_n "(cached) " >&6 13240else 13241 cat >conftest.$ac_ext <<_ACEOF 13242/* confdefs.h. */ 13243_ACEOF 13244cat confdefs.h >>conftest.$ac_ext 13245cat >>conftest.$ac_ext <<_ACEOF 13246/* end confdefs.h. */ 13247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13248 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13249#define $ac_func innocuous_$ac_func 13250 13251/* System header to define __stub macros and hopefully few prototypes, 13252 which can conflict with char $ac_func (); below. 13253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13254 <limits.h> exists even on freestanding compilers. */ 13255 13256#ifdef __STDC__ 13257# include <limits.h> 13258#else 13259# include <assert.h> 13260#endif 13261 13262#undef $ac_func 13263 13264/* Override any GCC internal prototype to avoid an error. 13265 Use char because int might match the return type of a GCC 13266 builtin and then its argument prototype would still apply. */ 13267#ifdef __cplusplus 13268extern "C" 13269#endif 13270char $ac_func (); 13271/* The GNU C library defines this for functions which it implements 13272 to always fail with ENOSYS. Some functions are actually named 13273 something starting with __ and the normal name is an alias. */ 13274#if defined __stub_$ac_func || defined __stub___$ac_func 13275choke me 13276#endif 13277 13278int 13279main () 13280{ 13281return $ac_func (); 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286rm -f conftest.$ac_objext conftest$ac_exeext 13287if { (ac_try="$ac_link" 13288case "(($ac_try" in 13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13290 *) ac_try_echo=$ac_try;; 13291esac 13292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13293$as_echo "$ac_try_echo") >&5 13294 (eval "$ac_link") 2>conftest.er1 13295 ac_status=$? 13296 grep -v '^ *+' conftest.er1 >conftest.err 13297 rm -f conftest.er1 13298 cat conftest.err >&5 13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13300 (exit $ac_status); } && { 13301 test -z "$ac_c_werror_flag" || 13302 test ! -s conftest.err 13303 } && test -s conftest$ac_exeext && { 13304 test "$cross_compiling" = yes || 13305 $as_test_x conftest$ac_exeext 13306 }; then 13307 eval "$as_ac_var=yes" 13308else 13309 $as_echo "$as_me: failed program was:" >&5 13310sed 's/^/| /' conftest.$ac_ext >&5 13311 13312 eval "$as_ac_var=no" 13313fi 13314 13315rm -rf conftest.dSYM 13316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13317 conftest$ac_exeext conftest.$ac_ext 13318fi 13319ac_res=`eval 'as_val=${'$as_ac_var'} 13320 $as_echo "$as_val"'` 13321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13322$as_echo "$ac_res" >&6; } 13323as_val=`eval 'as_val=${'$as_ac_var'} 13324 $as_echo "$as_val"'` 13325 if test "x$as_val" = x""yes; then 13326 cat >>confdefs.h <<_ACEOF 13327@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13328_ACEOF 13329 havekqueue=yes 13330fi 13331done 13332 13333 if test "x$havekqueue" = "xyes" ; then 13334 { $as_echo "$as_me:$LINENO: checking for working kqueue" >&5 13335$as_echo_n "checking for working kqueue... " >&6; } 13336 if test "$cross_compiling" = yes; then 13337 { $as_echo "$as_me:$LINENO: result: no" >&5 13338$as_echo "no" >&6; } 13339else 13340 cat >conftest.$ac_ext <<_ACEOF 13341/* confdefs.h. */ 13342_ACEOF 13343cat confdefs.h >>conftest.$ac_ext 13344cat >>conftest.$ac_ext <<_ACEOF 13345/* end confdefs.h. */ 13346#include <sys/types.h> 13347#include <sys/time.h> 13348#include <sys/event.h> 13349#include <stdio.h> 13350#include <unistd.h> 13351#include <fcntl.h> 13352 13353int 13354main(int argc, char **argv) 13355{ 13356 int kq; 13357 int n; 13358 int fd[2]; 13359 struct kevent ev; 13360 struct timespec ts; 13361 char buf[8000]; 13362 13363 if (pipe(fd) == -1) 13364 exit(1); 13365 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 13366 exit(1); 13367 13368 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 13369 ; 13370 13371 if ((kq = kqueue()) == -1) 13372 exit(1); 13373 13374 ev.ident = fd[1]; 13375 ev.filter = EVFILT_WRITE; 13376 ev.flags = EV_ADD | EV_ENABLE; 13377 n = kevent(kq, &ev, 1, NULL, 0, NULL); 13378 if (n == -1) 13379 exit(1); 13380 13381 read(fd[0], buf, sizeof(buf)); 13382 13383 ts.tv_sec = 0; 13384 ts.tv_nsec = 0; 13385 n = kevent(kq, NULL, 0, &ev, 1, &ts); 13386 if (n == -1 || n == 0) 13387 exit(1); 13388 13389 exit(0); 13390} 13391_ACEOF 13392rm -f conftest$ac_exeext 13393if { (ac_try="$ac_link" 13394case "(($ac_try" in 13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13396 *) ac_try_echo=$ac_try;; 13397esac 13398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13399$as_echo "$ac_try_echo") >&5 13400 (eval "$ac_link") 2>&5 13401 ac_status=$? 13402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13404 { (case "(($ac_try" in 13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13406 *) ac_try_echo=$ac_try;; 13407esac 13408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13409$as_echo "$ac_try_echo") >&5 13410 (eval "$ac_try") 2>&5 13411 ac_status=$? 13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13413 (exit $ac_status); }; }; then 13414 { $as_echo "$as_me:$LINENO: result: yes" >&5 13415$as_echo "yes" >&6; } 13416 13417cat >>confdefs.h <<\_ACEOF 13418@%:@define HAVE_WORKING_KQUEUE 1 13419_ACEOF 13420 13421 case " $LIB@&t@OBJS " in 13422 *" kqueue.$ac_objext "* ) ;; 13423 *) LIB@&t@OBJS="$LIB@&t@OBJS kqueue.$ac_objext" 13424 ;; 13425esac 13426 13427else 13428 $as_echo "$as_me: program exited with status $ac_status" >&5 13429$as_echo "$as_me: failed program was:" >&5 13430sed 's/^/| /' conftest.$ac_ext >&5 13431 13432( exit $ac_status ) 13433{ $as_echo "$as_me:$LINENO: result: no" >&5 13434$as_echo "no" >&6; } 13435fi 13436rm -rf conftest.dSYM 13437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13438fi 13439 13440 13441 fi 13442fi 13443 13444haveepollsyscall=no 13445if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 13446 if test "x$haveepoll" = "xno" ; then 13447 { $as_echo "$as_me:$LINENO: checking for epoll system call" >&5 13448$as_echo_n "checking for epoll system call... " >&6; } 13449 if test "$cross_compiling" = yes; then 13450 { $as_echo "$as_me:$LINENO: result: no" >&5 13451$as_echo "no" >&6; } 13452else 13453 cat >conftest.$ac_ext <<_ACEOF 13454/* confdefs.h. */ 13455_ACEOF 13456cat confdefs.h >>conftest.$ac_ext 13457cat >>conftest.$ac_ext <<_ACEOF 13458/* end confdefs.h. */ 13459#include <stdint.h> 13460#include <sys/param.h> 13461#include <sys/types.h> 13462#include <sys/syscall.h> 13463#include <sys/epoll.h> 13464#include <unistd.h> 13465 13466int 13467epoll_create(int size) 13468{ 13469 return (syscall(__NR_epoll_create, size)); 13470} 13471 13472int 13473main(int argc, char **argv) 13474{ 13475 int epfd; 13476 13477 epfd = epoll_create(256); 13478 exit (epfd == -1 ? 1 : 0); 13479} 13480_ACEOF 13481rm -f conftest$ac_exeext 13482if { (ac_try="$ac_link" 13483case "(($ac_try" in 13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13485 *) ac_try_echo=$ac_try;; 13486esac 13487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13488$as_echo "$ac_try_echo") >&5 13489 (eval "$ac_link") 2>&5 13490 ac_status=$? 13491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13493 { (case "(($ac_try" in 13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13495 *) ac_try_echo=$ac_try;; 13496esac 13497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13498$as_echo "$ac_try_echo") >&5 13499 (eval "$ac_try") 2>&5 13500 ac_status=$? 13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13502 (exit $ac_status); }; }; then 13503 { $as_echo "$as_me:$LINENO: result: yes" >&5 13504$as_echo "yes" >&6; } 13505 13506cat >>confdefs.h <<\_ACEOF 13507@%:@define HAVE_EPOLL 1 13508_ACEOF 13509 13510 needsignal=yes 13511 case " $LIB@&t@OBJS " in 13512 *" epoll_sub.$ac_objext "* ) ;; 13513 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext" 13514 ;; 13515esac 13516 13517 case " $LIB@&t@OBJS " in 13518 *" epoll.$ac_objext "* ) ;; 13519 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll.$ac_objext" 13520 ;; 13521esac 13522 13523else 13524 $as_echo "$as_me: program exited with status $ac_status" >&5 13525$as_echo "$as_me: failed program was:" >&5 13526sed 's/^/| /' conftest.$ac_ext >&5 13527 13528( exit $ac_status ) 13529{ $as_echo "$as_me:$LINENO: result: no" >&5 13530$as_echo "no" >&6; } 13531fi 13532rm -rf conftest.dSYM 13533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13534fi 13535 13536 13537 fi 13538fi 13539 13540haveeventports=no 13541 13542for ac_func in port_create 13543do 13544as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13545{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13546$as_echo_n "checking for $ac_func... " >&6; } 13547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13548 $as_echo_n "(cached) " >&6 13549else 13550 cat >conftest.$ac_ext <<_ACEOF 13551/* confdefs.h. */ 13552_ACEOF 13553cat confdefs.h >>conftest.$ac_ext 13554cat >>conftest.$ac_ext <<_ACEOF 13555/* end confdefs.h. */ 13556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13557 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13558#define $ac_func innocuous_$ac_func 13559 13560/* System header to define __stub macros and hopefully few prototypes, 13561 which can conflict with char $ac_func (); below. 13562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13563 <limits.h> exists even on freestanding compilers. */ 13564 13565#ifdef __STDC__ 13566# include <limits.h> 13567#else 13568# include <assert.h> 13569#endif 13570 13571#undef $ac_func 13572 13573/* Override any GCC internal prototype to avoid an error. 13574 Use char because int might match the return type of a GCC 13575 builtin and then its argument prototype would still apply. */ 13576#ifdef __cplusplus 13577extern "C" 13578#endif 13579char $ac_func (); 13580/* The GNU C library defines this for functions which it implements 13581 to always fail with ENOSYS. Some functions are actually named 13582 something starting with __ and the normal name is an alias. */ 13583#if defined __stub_$ac_func || defined __stub___$ac_func 13584choke me 13585#endif 13586 13587int 13588main () 13589{ 13590return $ac_func (); 13591 ; 13592 return 0; 13593} 13594_ACEOF 13595rm -f conftest.$ac_objext conftest$ac_exeext 13596if { (ac_try="$ac_link" 13597case "(($ac_try" in 13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13599 *) ac_try_echo=$ac_try;; 13600esac 13601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13602$as_echo "$ac_try_echo") >&5 13603 (eval "$ac_link") 2>conftest.er1 13604 ac_status=$? 13605 grep -v '^ *+' conftest.er1 >conftest.err 13606 rm -f conftest.er1 13607 cat conftest.err >&5 13608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13609 (exit $ac_status); } && { 13610 test -z "$ac_c_werror_flag" || 13611 test ! -s conftest.err 13612 } && test -s conftest$ac_exeext && { 13613 test "$cross_compiling" = yes || 13614 $as_test_x conftest$ac_exeext 13615 }; then 13616 eval "$as_ac_var=yes" 13617else 13618 $as_echo "$as_me: failed program was:" >&5 13619sed 's/^/| /' conftest.$ac_ext >&5 13620 13621 eval "$as_ac_var=no" 13622fi 13623 13624rm -rf conftest.dSYM 13625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13626 conftest$ac_exeext conftest.$ac_ext 13627fi 13628ac_res=`eval 'as_val=${'$as_ac_var'} 13629 $as_echo "$as_val"'` 13630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13631$as_echo "$ac_res" >&6; } 13632as_val=`eval 'as_val=${'$as_ac_var'} 13633 $as_echo "$as_val"'` 13634 if test "x$as_val" = x""yes; then 13635 cat >>confdefs.h <<_ACEOF 13636@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13637_ACEOF 13638 haveeventports=yes 13639fi 13640done 13641 13642if test "x$haveeventports" = "xyes" ; then 13643 13644cat >>confdefs.h <<\_ACEOF 13645@%:@define HAVE_EVENT_PORTS 1 13646_ACEOF 13647 13648 case " $LIB@&t@OBJS " in 13649 *" evport.$ac_objext "* ) ;; 13650 *) LIB@&t@OBJS="$LIB@&t@OBJS evport.$ac_objext" 13651 ;; 13652esac 13653 13654 needsignal=yes 13655fi 13656if test "x$bwin32" = "xtrue"; then 13657 needsignal=yes 13658fi 13659if test "x$bwin32" = "xtrue"; then 13660 needsignal=yes 13661fi 13662if test "x$needsignal" = "xyes" ; then 13663 case " $LIB@&t@OBJS " in 13664 *" signal.$ac_objext "* ) ;; 13665 *) LIB@&t@OBJS="$LIB@&t@OBJS signal.$ac_objext" 13666 ;; 13667esac 13668 13669fi 13670 13671{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 13672$as_echo_n "checking for pid_t... " >&6; } 13673if test "${ac_cv_type_pid_t+set}" = set; then 13674 $as_echo_n "(cached) " >&6 13675else 13676 ac_cv_type_pid_t=no 13677cat >conftest.$ac_ext <<_ACEOF 13678/* confdefs.h. */ 13679_ACEOF 13680cat confdefs.h >>conftest.$ac_ext 13681cat >>conftest.$ac_ext <<_ACEOF 13682/* end confdefs.h. */ 13683$ac_includes_default 13684int 13685main () 13686{ 13687if (sizeof (pid_t)) 13688 return 0; 13689 ; 13690 return 0; 13691} 13692_ACEOF 13693rm -f conftest.$ac_objext 13694if { (ac_try="$ac_compile" 13695case "(($ac_try" in 13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13697 *) ac_try_echo=$ac_try;; 13698esac 13699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13700$as_echo "$ac_try_echo") >&5 13701 (eval "$ac_compile") 2>conftest.er1 13702 ac_status=$? 13703 grep -v '^ *+' conftest.er1 >conftest.err 13704 rm -f conftest.er1 13705 cat conftest.err >&5 13706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13707 (exit $ac_status); } && { 13708 test -z "$ac_c_werror_flag" || 13709 test ! -s conftest.err 13710 } && test -s conftest.$ac_objext; then 13711 cat >conftest.$ac_ext <<_ACEOF 13712/* confdefs.h. */ 13713_ACEOF 13714cat confdefs.h >>conftest.$ac_ext 13715cat >>conftest.$ac_ext <<_ACEOF 13716/* end confdefs.h. */ 13717$ac_includes_default 13718int 13719main () 13720{ 13721if (sizeof ((pid_t))) 13722 return 0; 13723 ; 13724 return 0; 13725} 13726_ACEOF 13727rm -f conftest.$ac_objext 13728if { (ac_try="$ac_compile" 13729case "(($ac_try" in 13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13731 *) ac_try_echo=$ac_try;; 13732esac 13733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13734$as_echo "$ac_try_echo") >&5 13735 (eval "$ac_compile") 2>conftest.er1 13736 ac_status=$? 13737 grep -v '^ *+' conftest.er1 >conftest.err 13738 rm -f conftest.er1 13739 cat conftest.err >&5 13740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); } && { 13742 test -z "$ac_c_werror_flag" || 13743 test ! -s conftest.err 13744 } && test -s conftest.$ac_objext; then 13745 : 13746else 13747 $as_echo "$as_me: failed program was:" >&5 13748sed 's/^/| /' conftest.$ac_ext >&5 13749 13750 ac_cv_type_pid_t=yes 13751fi 13752 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754else 13755 $as_echo "$as_me: failed program was:" >&5 13756sed 's/^/| /' conftest.$ac_ext >&5 13757 13758 13759fi 13760 13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13762fi 13763{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 13764$as_echo "$ac_cv_type_pid_t" >&6; } 13765if test "x$ac_cv_type_pid_t" = x""yes; then 13766 : 13767else 13768 13769cat >>confdefs.h <<_ACEOF 13770@%:@define pid_t int 13771_ACEOF 13772 13773fi 13774 13775{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 13776$as_echo_n "checking for size_t... " >&6; } 13777if test "${ac_cv_type_size_t+set}" = set; then 13778 $as_echo_n "(cached) " >&6 13779else 13780 ac_cv_type_size_t=no 13781cat >conftest.$ac_ext <<_ACEOF 13782/* confdefs.h. */ 13783_ACEOF 13784cat confdefs.h >>conftest.$ac_ext 13785cat >>conftest.$ac_ext <<_ACEOF 13786/* end confdefs.h. */ 13787$ac_includes_default 13788int 13789main () 13790{ 13791if (sizeof (size_t)) 13792 return 0; 13793 ; 13794 return 0; 13795} 13796_ACEOF 13797rm -f conftest.$ac_objext 13798if { (ac_try="$ac_compile" 13799case "(($ac_try" in 13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13801 *) ac_try_echo=$ac_try;; 13802esac 13803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13804$as_echo "$ac_try_echo") >&5 13805 (eval "$ac_compile") 2>conftest.er1 13806 ac_status=$? 13807 grep -v '^ *+' conftest.er1 >conftest.err 13808 rm -f conftest.er1 13809 cat conftest.err >&5 13810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13811 (exit $ac_status); } && { 13812 test -z "$ac_c_werror_flag" || 13813 test ! -s conftest.err 13814 } && test -s conftest.$ac_objext; then 13815 cat >conftest.$ac_ext <<_ACEOF 13816/* confdefs.h. */ 13817_ACEOF 13818cat confdefs.h >>conftest.$ac_ext 13819cat >>conftest.$ac_ext <<_ACEOF 13820/* end confdefs.h. */ 13821$ac_includes_default 13822int 13823main () 13824{ 13825if (sizeof ((size_t))) 13826 return 0; 13827 ; 13828 return 0; 13829} 13830_ACEOF 13831rm -f conftest.$ac_objext 13832if { (ac_try="$ac_compile" 13833case "(($ac_try" in 13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13835 *) ac_try_echo=$ac_try;; 13836esac 13837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13838$as_echo "$ac_try_echo") >&5 13839 (eval "$ac_compile") 2>conftest.er1 13840 ac_status=$? 13841 grep -v '^ *+' conftest.er1 >conftest.err 13842 rm -f conftest.er1 13843 cat conftest.err >&5 13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13845 (exit $ac_status); } && { 13846 test -z "$ac_c_werror_flag" || 13847 test ! -s conftest.err 13848 } && test -s conftest.$ac_objext; then 13849 : 13850else 13851 $as_echo "$as_me: failed program was:" >&5 13852sed 's/^/| /' conftest.$ac_ext >&5 13853 13854 ac_cv_type_size_t=yes 13855fi 13856 13857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13858else 13859 $as_echo "$as_me: failed program was:" >&5 13860sed 's/^/| /' conftest.$ac_ext >&5 13861 13862 13863fi 13864 13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13866fi 13867{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 13868$as_echo "$ac_cv_type_size_t" >&6; } 13869if test "x$ac_cv_type_size_t" = x""yes; then 13870 : 13871else 13872 13873cat >>confdefs.h <<_ACEOF 13874@%:@define size_t unsigned int 13875_ACEOF 13876 13877fi 13878 13879{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 13880$as_echo_n "checking for uint64_t... " >&6; } 13881if test "${ac_cv_type_uint64_t+set}" = set; then 13882 $as_echo_n "(cached) " >&6 13883else 13884 ac_cv_type_uint64_t=no 13885cat >conftest.$ac_ext <<_ACEOF 13886/* confdefs.h. */ 13887_ACEOF 13888cat confdefs.h >>conftest.$ac_ext 13889cat >>conftest.$ac_ext <<_ACEOF 13890/* end confdefs.h. */ 13891#ifdef HAVE_STDINT_H 13892#include <stdint.h> 13893#elif defined(HAVE_INTTYPES_H) 13894#include <inttypes.h> 13895#endif 13896#ifdef HAVE_SYS_TYPES_H 13897#include <sys/types.h> 13898#endif 13899 13900int 13901main () 13902{ 13903if (sizeof (uint64_t)) 13904 return 0; 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909rm -f conftest.$ac_objext 13910if { (ac_try="$ac_compile" 13911case "(($ac_try" in 13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13913 *) ac_try_echo=$ac_try;; 13914esac 13915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13916$as_echo "$ac_try_echo") >&5 13917 (eval "$ac_compile") 2>conftest.er1 13918 ac_status=$? 13919 grep -v '^ *+' conftest.er1 >conftest.err 13920 rm -f conftest.er1 13921 cat conftest.err >&5 13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13923 (exit $ac_status); } && { 13924 test -z "$ac_c_werror_flag" || 13925 test ! -s conftest.err 13926 } && test -s conftest.$ac_objext; then 13927 cat >conftest.$ac_ext <<_ACEOF 13928/* confdefs.h. */ 13929_ACEOF 13930cat confdefs.h >>conftest.$ac_ext 13931cat >>conftest.$ac_ext <<_ACEOF 13932/* end confdefs.h. */ 13933#ifdef HAVE_STDINT_H 13934#include <stdint.h> 13935#elif defined(HAVE_INTTYPES_H) 13936#include <inttypes.h> 13937#endif 13938#ifdef HAVE_SYS_TYPES_H 13939#include <sys/types.h> 13940#endif 13941 13942int 13943main () 13944{ 13945if (sizeof ((uint64_t))) 13946 return 0; 13947 ; 13948 return 0; 13949} 13950_ACEOF 13951rm -f conftest.$ac_objext 13952if { (ac_try="$ac_compile" 13953case "(($ac_try" in 13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13955 *) ac_try_echo=$ac_try;; 13956esac 13957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13958$as_echo "$ac_try_echo") >&5 13959 (eval "$ac_compile") 2>conftest.er1 13960 ac_status=$? 13961 grep -v '^ *+' conftest.er1 >conftest.err 13962 rm -f conftest.er1 13963 cat conftest.err >&5 13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13965 (exit $ac_status); } && { 13966 test -z "$ac_c_werror_flag" || 13967 test ! -s conftest.err 13968 } && test -s conftest.$ac_objext; then 13969 : 13970else 13971 $as_echo "$as_me: failed program was:" >&5 13972sed 's/^/| /' conftest.$ac_ext >&5 13973 13974 ac_cv_type_uint64_t=yes 13975fi 13976 13977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13978else 13979 $as_echo "$as_me: failed program was:" >&5 13980sed 's/^/| /' conftest.$ac_ext >&5 13981 13982 13983fi 13984 13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13986fi 13987{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 13988$as_echo "$ac_cv_type_uint64_t" >&6; } 13989if test "x$ac_cv_type_uint64_t" = x""yes; then 13990 13991cat >>confdefs.h <<_ACEOF 13992@%:@define HAVE_UINT64_T 1 13993_ACEOF 13994 13995 13996fi 13997{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 13998$as_echo_n "checking for uint32_t... " >&6; } 13999if test "${ac_cv_type_uint32_t+set}" = set; then 14000 $as_echo_n "(cached) " >&6 14001else 14002 ac_cv_type_uint32_t=no 14003cat >conftest.$ac_ext <<_ACEOF 14004/* confdefs.h. */ 14005_ACEOF 14006cat confdefs.h >>conftest.$ac_ext 14007cat >>conftest.$ac_ext <<_ACEOF 14008/* end confdefs.h. */ 14009#ifdef HAVE_STDINT_H 14010#include <stdint.h> 14011#elif defined(HAVE_INTTYPES_H) 14012#include <inttypes.h> 14013#endif 14014#ifdef HAVE_SYS_TYPES_H 14015#include <sys/types.h> 14016#endif 14017 14018int 14019main () 14020{ 14021if (sizeof (uint32_t)) 14022 return 0; 14023 ; 14024 return 0; 14025} 14026_ACEOF 14027rm -f conftest.$ac_objext 14028if { (ac_try="$ac_compile" 14029case "(($ac_try" in 14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14031 *) ac_try_echo=$ac_try;; 14032esac 14033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14034$as_echo "$ac_try_echo") >&5 14035 (eval "$ac_compile") 2>conftest.er1 14036 ac_status=$? 14037 grep -v '^ *+' conftest.er1 >conftest.err 14038 rm -f conftest.er1 14039 cat conftest.err >&5 14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } && { 14042 test -z "$ac_c_werror_flag" || 14043 test ! -s conftest.err 14044 } && test -s conftest.$ac_objext; then 14045 cat >conftest.$ac_ext <<_ACEOF 14046/* confdefs.h. */ 14047_ACEOF 14048cat confdefs.h >>conftest.$ac_ext 14049cat >>conftest.$ac_ext <<_ACEOF 14050/* end confdefs.h. */ 14051#ifdef HAVE_STDINT_H 14052#include <stdint.h> 14053#elif defined(HAVE_INTTYPES_H) 14054#include <inttypes.h> 14055#endif 14056#ifdef HAVE_SYS_TYPES_H 14057#include <sys/types.h> 14058#endif 14059 14060int 14061main () 14062{ 14063if (sizeof ((uint32_t))) 14064 return 0; 14065 ; 14066 return 0; 14067} 14068_ACEOF 14069rm -f conftest.$ac_objext 14070if { (ac_try="$ac_compile" 14071case "(($ac_try" in 14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14073 *) ac_try_echo=$ac_try;; 14074esac 14075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14076$as_echo "$ac_try_echo") >&5 14077 (eval "$ac_compile") 2>conftest.er1 14078 ac_status=$? 14079 grep -v '^ *+' conftest.er1 >conftest.err 14080 rm -f conftest.er1 14081 cat conftest.err >&5 14082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14083 (exit $ac_status); } && { 14084 test -z "$ac_c_werror_flag" || 14085 test ! -s conftest.err 14086 } && test -s conftest.$ac_objext; then 14087 : 14088else 14089 $as_echo "$as_me: failed program was:" >&5 14090sed 's/^/| /' conftest.$ac_ext >&5 14091 14092 ac_cv_type_uint32_t=yes 14093fi 14094 14095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14096else 14097 $as_echo "$as_me: failed program was:" >&5 14098sed 's/^/| /' conftest.$ac_ext >&5 14099 14100 14101fi 14102 14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14104fi 14105{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 14106$as_echo "$ac_cv_type_uint32_t" >&6; } 14107if test "x$ac_cv_type_uint32_t" = x""yes; then 14108 14109cat >>confdefs.h <<_ACEOF 14110@%:@define HAVE_UINT32_T 1 14111_ACEOF 14112 14113 14114fi 14115{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 14116$as_echo_n "checking for uint16_t... " >&6; } 14117if test "${ac_cv_type_uint16_t+set}" = set; then 14118 $as_echo_n "(cached) " >&6 14119else 14120 ac_cv_type_uint16_t=no 14121cat >conftest.$ac_ext <<_ACEOF 14122/* confdefs.h. */ 14123_ACEOF 14124cat confdefs.h >>conftest.$ac_ext 14125cat >>conftest.$ac_ext <<_ACEOF 14126/* end confdefs.h. */ 14127#ifdef HAVE_STDINT_H 14128#include <stdint.h> 14129#elif defined(HAVE_INTTYPES_H) 14130#include <inttypes.h> 14131#endif 14132#ifdef HAVE_SYS_TYPES_H 14133#include <sys/types.h> 14134#endif 14135 14136int 14137main () 14138{ 14139if (sizeof (uint16_t)) 14140 return 0; 14141 ; 14142 return 0; 14143} 14144_ACEOF 14145rm -f conftest.$ac_objext 14146if { (ac_try="$ac_compile" 14147case "(($ac_try" in 14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14149 *) ac_try_echo=$ac_try;; 14150esac 14151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14152$as_echo "$ac_try_echo") >&5 14153 (eval "$ac_compile") 2>conftest.er1 14154 ac_status=$? 14155 grep -v '^ *+' conftest.er1 >conftest.err 14156 rm -f conftest.er1 14157 cat conftest.err >&5 14158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14159 (exit $ac_status); } && { 14160 test -z "$ac_c_werror_flag" || 14161 test ! -s conftest.err 14162 } && test -s conftest.$ac_objext; then 14163 cat >conftest.$ac_ext <<_ACEOF 14164/* confdefs.h. */ 14165_ACEOF 14166cat confdefs.h >>conftest.$ac_ext 14167cat >>conftest.$ac_ext <<_ACEOF 14168/* end confdefs.h. */ 14169#ifdef HAVE_STDINT_H 14170#include <stdint.h> 14171#elif defined(HAVE_INTTYPES_H) 14172#include <inttypes.h> 14173#endif 14174#ifdef HAVE_SYS_TYPES_H 14175#include <sys/types.h> 14176#endif 14177 14178int 14179main () 14180{ 14181if (sizeof ((uint16_t))) 14182 return 0; 14183 ; 14184 return 0; 14185} 14186_ACEOF 14187rm -f conftest.$ac_objext 14188if { (ac_try="$ac_compile" 14189case "(($ac_try" in 14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14191 *) ac_try_echo=$ac_try;; 14192esac 14193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14194$as_echo "$ac_try_echo") >&5 14195 (eval "$ac_compile") 2>conftest.er1 14196 ac_status=$? 14197 grep -v '^ *+' conftest.er1 >conftest.err 14198 rm -f conftest.er1 14199 cat conftest.err >&5 14200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14201 (exit $ac_status); } && { 14202 test -z "$ac_c_werror_flag" || 14203 test ! -s conftest.err 14204 } && test -s conftest.$ac_objext; then 14205 : 14206else 14207 $as_echo "$as_me: failed program was:" >&5 14208sed 's/^/| /' conftest.$ac_ext >&5 14209 14210 ac_cv_type_uint16_t=yes 14211fi 14212 14213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14214else 14215 $as_echo "$as_me: failed program was:" >&5 14216sed 's/^/| /' conftest.$ac_ext >&5 14217 14218 14219fi 14220 14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14222fi 14223{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 14224$as_echo "$ac_cv_type_uint16_t" >&6; } 14225if test "x$ac_cv_type_uint16_t" = x""yes; then 14226 14227cat >>confdefs.h <<_ACEOF 14228@%:@define HAVE_UINT16_T 1 14229_ACEOF 14230 14231 14232fi 14233{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 14234$as_echo_n "checking for uint8_t... " >&6; } 14235if test "${ac_cv_type_uint8_t+set}" = set; then 14236 $as_echo_n "(cached) " >&6 14237else 14238 ac_cv_type_uint8_t=no 14239cat >conftest.$ac_ext <<_ACEOF 14240/* confdefs.h. */ 14241_ACEOF 14242cat confdefs.h >>conftest.$ac_ext 14243cat >>conftest.$ac_ext <<_ACEOF 14244/* end confdefs.h. */ 14245#ifdef HAVE_STDINT_H 14246#include <stdint.h> 14247#elif defined(HAVE_INTTYPES_H) 14248#include <inttypes.h> 14249#endif 14250#ifdef HAVE_SYS_TYPES_H 14251#include <sys/types.h> 14252#endif 14253 14254int 14255main () 14256{ 14257if (sizeof (uint8_t)) 14258 return 0; 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263rm -f conftest.$ac_objext 14264if { (ac_try="$ac_compile" 14265case "(($ac_try" in 14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14267 *) ac_try_echo=$ac_try;; 14268esac 14269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14270$as_echo "$ac_try_echo") >&5 14271 (eval "$ac_compile") 2>conftest.er1 14272 ac_status=$? 14273 grep -v '^ *+' conftest.er1 >conftest.err 14274 rm -f conftest.er1 14275 cat conftest.err >&5 14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14277 (exit $ac_status); } && { 14278 test -z "$ac_c_werror_flag" || 14279 test ! -s conftest.err 14280 } && test -s conftest.$ac_objext; then 14281 cat >conftest.$ac_ext <<_ACEOF 14282/* confdefs.h. */ 14283_ACEOF 14284cat confdefs.h >>conftest.$ac_ext 14285cat >>conftest.$ac_ext <<_ACEOF 14286/* end confdefs.h. */ 14287#ifdef HAVE_STDINT_H 14288#include <stdint.h> 14289#elif defined(HAVE_INTTYPES_H) 14290#include <inttypes.h> 14291#endif 14292#ifdef HAVE_SYS_TYPES_H 14293#include <sys/types.h> 14294#endif 14295 14296int 14297main () 14298{ 14299if (sizeof ((uint8_t))) 14300 return 0; 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305rm -f conftest.$ac_objext 14306if { (ac_try="$ac_compile" 14307case "(($ac_try" in 14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14309 *) ac_try_echo=$ac_try;; 14310esac 14311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14312$as_echo "$ac_try_echo") >&5 14313 (eval "$ac_compile") 2>conftest.er1 14314 ac_status=$? 14315 grep -v '^ *+' conftest.er1 >conftest.err 14316 rm -f conftest.er1 14317 cat conftest.err >&5 14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14319 (exit $ac_status); } && { 14320 test -z "$ac_c_werror_flag" || 14321 test ! -s conftest.err 14322 } && test -s conftest.$ac_objext; then 14323 : 14324else 14325 $as_echo "$as_me: failed program was:" >&5 14326sed 's/^/| /' conftest.$ac_ext >&5 14327 14328 ac_cv_type_uint8_t=yes 14329fi 14330 14331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14332else 14333 $as_echo "$as_me: failed program was:" >&5 14334sed 's/^/| /' conftest.$ac_ext >&5 14335 14336 14337fi 14338 14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14340fi 14341{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 14342$as_echo "$ac_cv_type_uint8_t" >&6; } 14343if test "x$ac_cv_type_uint8_t" = x""yes; then 14344 14345cat >>confdefs.h <<_ACEOF 14346@%:@define HAVE_UINT8_T 1 14347_ACEOF 14348 14349 14350fi 14351 14352{ $as_echo "$as_me:$LINENO: checking for fd_mask" >&5 14353$as_echo_n "checking for fd_mask... " >&6; } 14354if test "${ac_cv_type_fd_mask+set}" = set; then 14355 $as_echo_n "(cached) " >&6 14356else 14357 ac_cv_type_fd_mask=no 14358cat >conftest.$ac_ext <<_ACEOF 14359/* confdefs.h. */ 14360_ACEOF 14361cat confdefs.h >>conftest.$ac_ext 14362cat >>conftest.$ac_ext <<_ACEOF 14363/* end confdefs.h. */ 14364#ifdef HAVE_SYS_TYPES_H 14365#include <sys/types.h> 14366#endif 14367#ifdef HAVE_SELECT_H 14368#include <select.h> 14369#endif 14370 14371int 14372main () 14373{ 14374if (sizeof (fd_mask)) 14375 return 0; 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380rm -f conftest.$ac_objext 14381if { (ac_try="$ac_compile" 14382case "(($ac_try" in 14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14384 *) ac_try_echo=$ac_try;; 14385esac 14386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14387$as_echo "$ac_try_echo") >&5 14388 (eval "$ac_compile") 2>conftest.er1 14389 ac_status=$? 14390 grep -v '^ *+' conftest.er1 >conftest.err 14391 rm -f conftest.er1 14392 cat conftest.err >&5 14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14394 (exit $ac_status); } && { 14395 test -z "$ac_c_werror_flag" || 14396 test ! -s conftest.err 14397 } && test -s conftest.$ac_objext; then 14398 cat >conftest.$ac_ext <<_ACEOF 14399/* confdefs.h. */ 14400_ACEOF 14401cat confdefs.h >>conftest.$ac_ext 14402cat >>conftest.$ac_ext <<_ACEOF 14403/* end confdefs.h. */ 14404#ifdef HAVE_SYS_TYPES_H 14405#include <sys/types.h> 14406#endif 14407#ifdef HAVE_SELECT_H 14408#include <select.h> 14409#endif 14410 14411int 14412main () 14413{ 14414if (sizeof ((fd_mask))) 14415 return 0; 14416 ; 14417 return 0; 14418} 14419_ACEOF 14420rm -f conftest.$ac_objext 14421if { (ac_try="$ac_compile" 14422case "(($ac_try" in 14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14424 *) ac_try_echo=$ac_try;; 14425esac 14426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14427$as_echo "$ac_try_echo") >&5 14428 (eval "$ac_compile") 2>conftest.er1 14429 ac_status=$? 14430 grep -v '^ *+' conftest.er1 >conftest.err 14431 rm -f conftest.er1 14432 cat conftest.err >&5 14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14434 (exit $ac_status); } && { 14435 test -z "$ac_c_werror_flag" || 14436 test ! -s conftest.err 14437 } && test -s conftest.$ac_objext; then 14438 : 14439else 14440 $as_echo "$as_me: failed program was:" >&5 14441sed 's/^/| /' conftest.$ac_ext >&5 14442 14443 ac_cv_type_fd_mask=yes 14444fi 14445 14446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14447else 14448 $as_echo "$as_me: failed program was:" >&5 14449sed 's/^/| /' conftest.$ac_ext >&5 14450 14451 14452fi 14453 14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14455fi 14456{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5 14457$as_echo "$ac_cv_type_fd_mask" >&6; } 14458if test "x$ac_cv_type_fd_mask" = x""yes; then 14459 14460cat >>confdefs.h <<_ACEOF 14461@%:@define HAVE_FD_MASK 1 14462_ACEOF 14463 14464 14465fi 14466 14467 14468# The cast to long int works around a bug in the HP C Compiler 14469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14471# This bug is HP SR number 8606223364. 14472{ $as_echo "$as_me:$LINENO: checking size of long long" >&5 14473$as_echo_n "checking size of long long... " >&6; } 14474if test "${ac_cv_sizeof_long_long+set}" = set; then 14475 $as_echo_n "(cached) " >&6 14476else 14477 if test "$cross_compiling" = yes; then 14478 # Depending upon the size, compute the lo and hi bounds. 14479cat >conftest.$ac_ext <<_ACEOF 14480/* confdefs.h. */ 14481_ACEOF 14482cat confdefs.h >>conftest.$ac_ext 14483cat >>conftest.$ac_ext <<_ACEOF 14484/* end confdefs.h. */ 14485$ac_includes_default 14486int 14487main () 14488{ 14489static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@; 14490test_array @<:@0@:>@ = 0 14491 14492 ; 14493 return 0; 14494} 14495_ACEOF 14496rm -f conftest.$ac_objext 14497if { (ac_try="$ac_compile" 14498case "(($ac_try" in 14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14500 *) ac_try_echo=$ac_try;; 14501esac 14502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14503$as_echo "$ac_try_echo") >&5 14504 (eval "$ac_compile") 2>conftest.er1 14505 ac_status=$? 14506 grep -v '^ *+' conftest.er1 >conftest.err 14507 rm -f conftest.er1 14508 cat conftest.err >&5 14509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14510 (exit $ac_status); } && { 14511 test -z "$ac_c_werror_flag" || 14512 test ! -s conftest.err 14513 } && test -s conftest.$ac_objext; then 14514 ac_lo=0 ac_mid=0 14515 while :; do 14516 cat >conftest.$ac_ext <<_ACEOF 14517/* confdefs.h. */ 14518_ACEOF 14519cat confdefs.h >>conftest.$ac_ext 14520cat >>conftest.$ac_ext <<_ACEOF 14521/* end confdefs.h. */ 14522$ac_includes_default 14523int 14524main () 14525{ 14526static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@; 14527test_array @<:@0@:>@ = 0 14528 14529 ; 14530 return 0; 14531} 14532_ACEOF 14533rm -f conftest.$ac_objext 14534if { (ac_try="$ac_compile" 14535case "(($ac_try" in 14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14537 *) ac_try_echo=$ac_try;; 14538esac 14539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14540$as_echo "$ac_try_echo") >&5 14541 (eval "$ac_compile") 2>conftest.er1 14542 ac_status=$? 14543 grep -v '^ *+' conftest.er1 >conftest.err 14544 rm -f conftest.er1 14545 cat conftest.err >&5 14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14547 (exit $ac_status); } && { 14548 test -z "$ac_c_werror_flag" || 14549 test ! -s conftest.err 14550 } && test -s conftest.$ac_objext; then 14551 ac_hi=$ac_mid; break 14552else 14553 $as_echo "$as_me: failed program was:" >&5 14554sed 's/^/| /' conftest.$ac_ext >&5 14555 14556 ac_lo=`expr $ac_mid + 1` 14557 if test $ac_lo -le $ac_mid; then 14558 ac_lo= ac_hi= 14559 break 14560 fi 14561 ac_mid=`expr 2 '*' $ac_mid + 1` 14562fi 14563 14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14565 done 14566else 14567 $as_echo "$as_me: failed program was:" >&5 14568sed 's/^/| /' conftest.$ac_ext >&5 14569 14570 cat >conftest.$ac_ext <<_ACEOF 14571/* confdefs.h. */ 14572_ACEOF 14573cat confdefs.h >>conftest.$ac_ext 14574cat >>conftest.$ac_ext <<_ACEOF 14575/* end confdefs.h. */ 14576$ac_includes_default 14577int 14578main () 14579{ 14580static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@; 14581test_array @<:@0@:>@ = 0 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587rm -f conftest.$ac_objext 14588if { (ac_try="$ac_compile" 14589case "(($ac_try" in 14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14591 *) ac_try_echo=$ac_try;; 14592esac 14593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14594$as_echo "$ac_try_echo") >&5 14595 (eval "$ac_compile") 2>conftest.er1 14596 ac_status=$? 14597 grep -v '^ *+' conftest.er1 >conftest.err 14598 rm -f conftest.er1 14599 cat conftest.err >&5 14600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14601 (exit $ac_status); } && { 14602 test -z "$ac_c_werror_flag" || 14603 test ! -s conftest.err 14604 } && test -s conftest.$ac_objext; then 14605 ac_hi=-1 ac_mid=-1 14606 while :; do 14607 cat >conftest.$ac_ext <<_ACEOF 14608/* confdefs.h. */ 14609_ACEOF 14610cat confdefs.h >>conftest.$ac_ext 14611cat >>conftest.$ac_ext <<_ACEOF 14612/* end confdefs.h. */ 14613$ac_includes_default 14614int 14615main () 14616{ 14617static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@; 14618test_array @<:@0@:>@ = 0 14619 14620 ; 14621 return 0; 14622} 14623_ACEOF 14624rm -f conftest.$ac_objext 14625if { (ac_try="$ac_compile" 14626case "(($ac_try" in 14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14628 *) ac_try_echo=$ac_try;; 14629esac 14630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14631$as_echo "$ac_try_echo") >&5 14632 (eval "$ac_compile") 2>conftest.er1 14633 ac_status=$? 14634 grep -v '^ *+' conftest.er1 >conftest.err 14635 rm -f conftest.er1 14636 cat conftest.err >&5 14637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14638 (exit $ac_status); } && { 14639 test -z "$ac_c_werror_flag" || 14640 test ! -s conftest.err 14641 } && test -s conftest.$ac_objext; then 14642 ac_lo=$ac_mid; break 14643else 14644 $as_echo "$as_me: failed program was:" >&5 14645sed 's/^/| /' conftest.$ac_ext >&5 14646 14647 ac_hi=`expr '(' $ac_mid ')' - 1` 14648 if test $ac_mid -le $ac_hi; then 14649 ac_lo= ac_hi= 14650 break 14651 fi 14652 ac_mid=`expr 2 '*' $ac_mid` 14653fi 14654 14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656 done 14657else 14658 $as_echo "$as_me: failed program was:" >&5 14659sed 's/^/| /' conftest.$ac_ext >&5 14660 14661 ac_lo= ac_hi= 14662fi 14663 14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14665fi 14666 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668# Binary search between lo and hi bounds. 14669while test "x$ac_lo" != "x$ac_hi"; do 14670 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14671 cat >conftest.$ac_ext <<_ACEOF 14672/* confdefs.h. */ 14673_ACEOF 14674cat confdefs.h >>conftest.$ac_ext 14675cat >>conftest.$ac_ext <<_ACEOF 14676/* end confdefs.h. */ 14677$ac_includes_default 14678int 14679main () 14680{ 14681static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@; 14682test_array @<:@0@:>@ = 0 14683 14684 ; 14685 return 0; 14686} 14687_ACEOF 14688rm -f conftest.$ac_objext 14689if { (ac_try="$ac_compile" 14690case "(($ac_try" in 14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14692 *) ac_try_echo=$ac_try;; 14693esac 14694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14695$as_echo "$ac_try_echo") >&5 14696 (eval "$ac_compile") 2>conftest.er1 14697 ac_status=$? 14698 grep -v '^ *+' conftest.er1 >conftest.err 14699 rm -f conftest.er1 14700 cat conftest.err >&5 14701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14702 (exit $ac_status); } && { 14703 test -z "$ac_c_werror_flag" || 14704 test ! -s conftest.err 14705 } && test -s conftest.$ac_objext; then 14706 ac_hi=$ac_mid 14707else 14708 $as_echo "$as_me: failed program was:" >&5 14709sed 's/^/| /' conftest.$ac_ext >&5 14710 14711 ac_lo=`expr '(' $ac_mid ')' + 1` 14712fi 14713 14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14715done 14716case $ac_lo in 14717?*) ac_cv_sizeof_long_long=$ac_lo;; 14718'') if test "$ac_cv_type_long_long" = yes; then 14719 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14721{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 14722See \`config.log' for more details." >&5 14723$as_echo "$as_me: error: cannot compute sizeof (long long) 14724See \`config.log' for more details." >&2;} 14725 { (exit 77); exit 77; }; }; } 14726 else 14727 ac_cv_sizeof_long_long=0 14728 fi ;; 14729esac 14730else 14731 cat >conftest.$ac_ext <<_ACEOF 14732/* confdefs.h. */ 14733_ACEOF 14734cat confdefs.h >>conftest.$ac_ext 14735cat >>conftest.$ac_ext <<_ACEOF 14736/* end confdefs.h. */ 14737$ac_includes_default 14738static long int longval () { return (long int) (sizeof (long long)); } 14739static unsigned long int ulongval () { return (long int) (sizeof (long long)); } 14740@%:@include <stdio.h> 14741@%:@include <stdlib.h> 14742int 14743main () 14744{ 14745 14746 FILE *f = fopen ("conftest.val", "w"); 14747 if (! f) 14748 return 1; 14749 if (((long int) (sizeof (long long))) < 0) 14750 { 14751 long int i = longval (); 14752 if (i != ((long int) (sizeof (long long)))) 14753 return 1; 14754 fprintf (f, "%ld", i); 14755 } 14756 else 14757 { 14758 unsigned long int i = ulongval (); 14759 if (i != ((long int) (sizeof (long long)))) 14760 return 1; 14761 fprintf (f, "%lu", i); 14762 } 14763 /* Do not output a trailing newline, as this causes \r\n confusion 14764 on some platforms. */ 14765 return ferror (f) || fclose (f) != 0; 14766 14767 ; 14768 return 0; 14769} 14770_ACEOF 14771rm -f conftest$ac_exeext 14772if { (ac_try="$ac_link" 14773case "(($ac_try" in 14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14775 *) ac_try_echo=$ac_try;; 14776esac 14777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14778$as_echo "$ac_try_echo") >&5 14779 (eval "$ac_link") 2>&5 14780 ac_status=$? 14781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14783 { (case "(($ac_try" in 14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14785 *) ac_try_echo=$ac_try;; 14786esac 14787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14788$as_echo "$ac_try_echo") >&5 14789 (eval "$ac_try") 2>&5 14790 ac_status=$? 14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14792 (exit $ac_status); }; }; then 14793 ac_cv_sizeof_long_long=`cat conftest.val` 14794else 14795 $as_echo "$as_me: program exited with status $ac_status" >&5 14796$as_echo "$as_me: failed program was:" >&5 14797sed 's/^/| /' conftest.$ac_ext >&5 14798 14799( exit $ac_status ) 14800if test "$ac_cv_type_long_long" = yes; then 14801 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14803{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 14804See \`config.log' for more details." >&5 14805$as_echo "$as_me: error: cannot compute sizeof (long long) 14806See \`config.log' for more details." >&2;} 14807 { (exit 77); exit 77; }; }; } 14808 else 14809 ac_cv_sizeof_long_long=0 14810 fi 14811fi 14812rm -rf conftest.dSYM 14813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14814fi 14815rm -f conftest.val 14816fi 14817{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 14818$as_echo "$ac_cv_sizeof_long_long" >&6; } 14819 14820 14821 14822cat >>confdefs.h <<_ACEOF 14823@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14824_ACEOF 14825 14826 14827# The cast to long int works around a bug in the HP C Compiler 14828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14830# This bug is HP SR number 8606223364. 14831{ $as_echo "$as_me:$LINENO: checking size of int" >&5 14832$as_echo_n "checking size of int... " >&6; } 14833if test "${ac_cv_sizeof_int+set}" = set; then 14834 $as_echo_n "(cached) " >&6 14835else 14836 if test "$cross_compiling" = yes; then 14837 # Depending upon the size, compute the lo and hi bounds. 14838cat >conftest.$ac_ext <<_ACEOF 14839/* confdefs.h. */ 14840_ACEOF 14841cat confdefs.h >>conftest.$ac_ext 14842cat >>conftest.$ac_ext <<_ACEOF 14843/* end confdefs.h. */ 14844$ac_includes_default 14845int 14846main () 14847{ 14848static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@; 14849test_array @<:@0@:>@ = 0 14850 14851 ; 14852 return 0; 14853} 14854_ACEOF 14855rm -f conftest.$ac_objext 14856if { (ac_try="$ac_compile" 14857case "(($ac_try" in 14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14859 *) ac_try_echo=$ac_try;; 14860esac 14861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14862$as_echo "$ac_try_echo") >&5 14863 (eval "$ac_compile") 2>conftest.er1 14864 ac_status=$? 14865 grep -v '^ *+' conftest.er1 >conftest.err 14866 rm -f conftest.er1 14867 cat conftest.err >&5 14868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14869 (exit $ac_status); } && { 14870 test -z "$ac_c_werror_flag" || 14871 test ! -s conftest.err 14872 } && test -s conftest.$ac_objext; then 14873 ac_lo=0 ac_mid=0 14874 while :; do 14875 cat >conftest.$ac_ext <<_ACEOF 14876/* confdefs.h. */ 14877_ACEOF 14878cat confdefs.h >>conftest.$ac_ext 14879cat >>conftest.$ac_ext <<_ACEOF 14880/* end confdefs.h. */ 14881$ac_includes_default 14882int 14883main () 14884{ 14885static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@; 14886test_array @<:@0@:>@ = 0 14887 14888 ; 14889 return 0; 14890} 14891_ACEOF 14892rm -f conftest.$ac_objext 14893if { (ac_try="$ac_compile" 14894case "(($ac_try" in 14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14896 *) ac_try_echo=$ac_try;; 14897esac 14898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14899$as_echo "$ac_try_echo") >&5 14900 (eval "$ac_compile") 2>conftest.er1 14901 ac_status=$? 14902 grep -v '^ *+' conftest.er1 >conftest.err 14903 rm -f conftest.er1 14904 cat conftest.err >&5 14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14906 (exit $ac_status); } && { 14907 test -z "$ac_c_werror_flag" || 14908 test ! -s conftest.err 14909 } && test -s conftest.$ac_objext; then 14910 ac_hi=$ac_mid; break 14911else 14912 $as_echo "$as_me: failed program was:" >&5 14913sed 's/^/| /' conftest.$ac_ext >&5 14914 14915 ac_lo=`expr $ac_mid + 1` 14916 if test $ac_lo -le $ac_mid; then 14917 ac_lo= ac_hi= 14918 break 14919 fi 14920 ac_mid=`expr 2 '*' $ac_mid + 1` 14921fi 14922 14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14924 done 14925else 14926 $as_echo "$as_me: failed program was:" >&5 14927sed 's/^/| /' conftest.$ac_ext >&5 14928 14929 cat >conftest.$ac_ext <<_ACEOF 14930/* confdefs.h. */ 14931_ACEOF 14932cat confdefs.h >>conftest.$ac_ext 14933cat >>conftest.$ac_ext <<_ACEOF 14934/* end confdefs.h. */ 14935$ac_includes_default 14936int 14937main () 14938{ 14939static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@; 14940test_array @<:@0@:>@ = 0 14941 14942 ; 14943 return 0; 14944} 14945_ACEOF 14946rm -f conftest.$ac_objext 14947if { (ac_try="$ac_compile" 14948case "(($ac_try" in 14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14950 *) ac_try_echo=$ac_try;; 14951esac 14952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14953$as_echo "$ac_try_echo") >&5 14954 (eval "$ac_compile") 2>conftest.er1 14955 ac_status=$? 14956 grep -v '^ *+' conftest.er1 >conftest.err 14957 rm -f conftest.er1 14958 cat conftest.err >&5 14959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14960 (exit $ac_status); } && { 14961 test -z "$ac_c_werror_flag" || 14962 test ! -s conftest.err 14963 } && test -s conftest.$ac_objext; then 14964 ac_hi=-1 ac_mid=-1 14965 while :; do 14966 cat >conftest.$ac_ext <<_ACEOF 14967/* confdefs.h. */ 14968_ACEOF 14969cat confdefs.h >>conftest.$ac_ext 14970cat >>conftest.$ac_ext <<_ACEOF 14971/* end confdefs.h. */ 14972$ac_includes_default 14973int 14974main () 14975{ 14976static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@; 14977test_array @<:@0@:>@ = 0 14978 14979 ; 14980 return 0; 14981} 14982_ACEOF 14983rm -f conftest.$ac_objext 14984if { (ac_try="$ac_compile" 14985case "(($ac_try" in 14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14987 *) ac_try_echo=$ac_try;; 14988esac 14989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14990$as_echo "$ac_try_echo") >&5 14991 (eval "$ac_compile") 2>conftest.er1 14992 ac_status=$? 14993 grep -v '^ *+' conftest.er1 >conftest.err 14994 rm -f conftest.er1 14995 cat conftest.err >&5 14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14997 (exit $ac_status); } && { 14998 test -z "$ac_c_werror_flag" || 14999 test ! -s conftest.err 15000 } && test -s conftest.$ac_objext; then 15001 ac_lo=$ac_mid; break 15002else 15003 $as_echo "$as_me: failed program was:" >&5 15004sed 's/^/| /' conftest.$ac_ext >&5 15005 15006 ac_hi=`expr '(' $ac_mid ')' - 1` 15007 if test $ac_mid -le $ac_hi; then 15008 ac_lo= ac_hi= 15009 break 15010 fi 15011 ac_mid=`expr 2 '*' $ac_mid` 15012fi 15013 15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15015 done 15016else 15017 $as_echo "$as_me: failed program was:" >&5 15018sed 's/^/| /' conftest.$ac_ext >&5 15019 15020 ac_lo= ac_hi= 15021fi 15022 15023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15024fi 15025 15026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15027# Binary search between lo and hi bounds. 15028while test "x$ac_lo" != "x$ac_hi"; do 15029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15030 cat >conftest.$ac_ext <<_ACEOF 15031/* confdefs.h. */ 15032_ACEOF 15033cat confdefs.h >>conftest.$ac_ext 15034cat >>conftest.$ac_ext <<_ACEOF 15035/* end confdefs.h. */ 15036$ac_includes_default 15037int 15038main () 15039{ 15040static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@; 15041test_array @<:@0@:>@ = 0 15042 15043 ; 15044 return 0; 15045} 15046_ACEOF 15047rm -f conftest.$ac_objext 15048if { (ac_try="$ac_compile" 15049case "(($ac_try" in 15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15051 *) ac_try_echo=$ac_try;; 15052esac 15053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15054$as_echo "$ac_try_echo") >&5 15055 (eval "$ac_compile") 2>conftest.er1 15056 ac_status=$? 15057 grep -v '^ *+' conftest.er1 >conftest.err 15058 rm -f conftest.er1 15059 cat conftest.err >&5 15060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15061 (exit $ac_status); } && { 15062 test -z "$ac_c_werror_flag" || 15063 test ! -s conftest.err 15064 } && test -s conftest.$ac_objext; then 15065 ac_hi=$ac_mid 15066else 15067 $as_echo "$as_me: failed program was:" >&5 15068sed 's/^/| /' conftest.$ac_ext >&5 15069 15070 ac_lo=`expr '(' $ac_mid ')' + 1` 15071fi 15072 15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15074done 15075case $ac_lo in 15076?*) ac_cv_sizeof_int=$ac_lo;; 15077'') if test "$ac_cv_type_int" = yes; then 15078 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 15079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15080{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 15081See \`config.log' for more details." >&5 15082$as_echo "$as_me: error: cannot compute sizeof (int) 15083See \`config.log' for more details." >&2;} 15084 { (exit 77); exit 77; }; }; } 15085 else 15086 ac_cv_sizeof_int=0 15087 fi ;; 15088esac 15089else 15090 cat >conftest.$ac_ext <<_ACEOF 15091/* confdefs.h. */ 15092_ACEOF 15093cat confdefs.h >>conftest.$ac_ext 15094cat >>conftest.$ac_ext <<_ACEOF 15095/* end confdefs.h. */ 15096$ac_includes_default 15097static long int longval () { return (long int) (sizeof (int)); } 15098static unsigned long int ulongval () { return (long int) (sizeof (int)); } 15099@%:@include <stdio.h> 15100@%:@include <stdlib.h> 15101int 15102main () 15103{ 15104 15105 FILE *f = fopen ("conftest.val", "w"); 15106 if (! f) 15107 return 1; 15108 if (((long int) (sizeof (int))) < 0) 15109 { 15110 long int i = longval (); 15111 if (i != ((long int) (sizeof (int)))) 15112 return 1; 15113 fprintf (f, "%ld", i); 15114 } 15115 else 15116 { 15117 unsigned long int i = ulongval (); 15118 if (i != ((long int) (sizeof (int)))) 15119 return 1; 15120 fprintf (f, "%lu", i); 15121 } 15122 /* Do not output a trailing newline, as this causes \r\n confusion 15123 on some platforms. */ 15124 return ferror (f) || fclose (f) != 0; 15125 15126 ; 15127 return 0; 15128} 15129_ACEOF 15130rm -f conftest$ac_exeext 15131if { (ac_try="$ac_link" 15132case "(($ac_try" in 15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15134 *) ac_try_echo=$ac_try;; 15135esac 15136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15137$as_echo "$ac_try_echo") >&5 15138 (eval "$ac_link") 2>&5 15139 ac_status=$? 15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15142 { (case "(($ac_try" in 15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15144 *) ac_try_echo=$ac_try;; 15145esac 15146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15147$as_echo "$ac_try_echo") >&5 15148 (eval "$ac_try") 2>&5 15149 ac_status=$? 15150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15151 (exit $ac_status); }; }; then 15152 ac_cv_sizeof_int=`cat conftest.val` 15153else 15154 $as_echo "$as_me: program exited with status $ac_status" >&5 15155$as_echo "$as_me: failed program was:" >&5 15156sed 's/^/| /' conftest.$ac_ext >&5 15157 15158( exit $ac_status ) 15159if test "$ac_cv_type_int" = yes; then 15160 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 15161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15162{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 15163See \`config.log' for more details." >&5 15164$as_echo "$as_me: error: cannot compute sizeof (int) 15165See \`config.log' for more details." >&2;} 15166 { (exit 77); exit 77; }; }; } 15167 else 15168 ac_cv_sizeof_int=0 15169 fi 15170fi 15171rm -rf conftest.dSYM 15172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15173fi 15174rm -f conftest.val 15175fi 15176{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 15177$as_echo "$ac_cv_sizeof_int" >&6; } 15178 15179 15180 15181cat >>confdefs.h <<_ACEOF 15182@%:@define SIZEOF_INT $ac_cv_sizeof_int 15183_ACEOF 15184 15185 15186# The cast to long int works around a bug in the HP C Compiler 15187# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15188# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15189# This bug is HP SR number 8606223364. 15190{ $as_echo "$as_me:$LINENO: checking size of short" >&5 15191$as_echo_n "checking size of short... " >&6; } 15192if test "${ac_cv_sizeof_short+set}" = set; then 15193 $as_echo_n "(cached) " >&6 15194else 15195 if test "$cross_compiling" = yes; then 15196 # Depending upon the size, compute the lo and hi bounds. 15197cat >conftest.$ac_ext <<_ACEOF 15198/* confdefs.h. */ 15199_ACEOF 15200cat confdefs.h >>conftest.$ac_ext 15201cat >>conftest.$ac_ext <<_ACEOF 15202/* end confdefs.h. */ 15203$ac_includes_default 15204int 15205main () 15206{ 15207static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@; 15208test_array @<:@0@:>@ = 0 15209 15210 ; 15211 return 0; 15212} 15213_ACEOF 15214rm -f conftest.$ac_objext 15215if { (ac_try="$ac_compile" 15216case "(($ac_try" in 15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15218 *) ac_try_echo=$ac_try;; 15219esac 15220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15221$as_echo "$ac_try_echo") >&5 15222 (eval "$ac_compile") 2>conftest.er1 15223 ac_status=$? 15224 grep -v '^ *+' conftest.er1 >conftest.err 15225 rm -f conftest.er1 15226 cat conftest.err >&5 15227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 (exit $ac_status); } && { 15229 test -z "$ac_c_werror_flag" || 15230 test ! -s conftest.err 15231 } && test -s conftest.$ac_objext; then 15232 ac_lo=0 ac_mid=0 15233 while :; do 15234 cat >conftest.$ac_ext <<_ACEOF 15235/* confdefs.h. */ 15236_ACEOF 15237cat confdefs.h >>conftest.$ac_ext 15238cat >>conftest.$ac_ext <<_ACEOF 15239/* end confdefs.h. */ 15240$ac_includes_default 15241int 15242main () 15243{ 15244static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@; 15245test_array @<:@0@:>@ = 0 15246 15247 ; 15248 return 0; 15249} 15250_ACEOF 15251rm -f conftest.$ac_objext 15252if { (ac_try="$ac_compile" 15253case "(($ac_try" in 15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15255 *) ac_try_echo=$ac_try;; 15256esac 15257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15258$as_echo "$ac_try_echo") >&5 15259 (eval "$ac_compile") 2>conftest.er1 15260 ac_status=$? 15261 grep -v '^ *+' conftest.er1 >conftest.err 15262 rm -f conftest.er1 15263 cat conftest.err >&5 15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15265 (exit $ac_status); } && { 15266 test -z "$ac_c_werror_flag" || 15267 test ! -s conftest.err 15268 } && test -s conftest.$ac_objext; then 15269 ac_hi=$ac_mid; break 15270else 15271 $as_echo "$as_me: failed program was:" >&5 15272sed 's/^/| /' conftest.$ac_ext >&5 15273 15274 ac_lo=`expr $ac_mid + 1` 15275 if test $ac_lo -le $ac_mid; then 15276 ac_lo= ac_hi= 15277 break 15278 fi 15279 ac_mid=`expr 2 '*' $ac_mid + 1` 15280fi 15281 15282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15283 done 15284else 15285 $as_echo "$as_me: failed program was:" >&5 15286sed 's/^/| /' conftest.$ac_ext >&5 15287 15288 cat >conftest.$ac_ext <<_ACEOF 15289/* confdefs.h. */ 15290_ACEOF 15291cat confdefs.h >>conftest.$ac_ext 15292cat >>conftest.$ac_ext <<_ACEOF 15293/* end confdefs.h. */ 15294$ac_includes_default 15295int 15296main () 15297{ 15298static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@; 15299test_array @<:@0@:>@ = 0 15300 15301 ; 15302 return 0; 15303} 15304_ACEOF 15305rm -f conftest.$ac_objext 15306if { (ac_try="$ac_compile" 15307case "(($ac_try" in 15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15309 *) ac_try_echo=$ac_try;; 15310esac 15311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15312$as_echo "$ac_try_echo") >&5 15313 (eval "$ac_compile") 2>conftest.er1 15314 ac_status=$? 15315 grep -v '^ *+' conftest.er1 >conftest.err 15316 rm -f conftest.er1 15317 cat conftest.err >&5 15318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15319 (exit $ac_status); } && { 15320 test -z "$ac_c_werror_flag" || 15321 test ! -s conftest.err 15322 } && test -s conftest.$ac_objext; then 15323 ac_hi=-1 ac_mid=-1 15324 while :; do 15325 cat >conftest.$ac_ext <<_ACEOF 15326/* confdefs.h. */ 15327_ACEOF 15328cat confdefs.h >>conftest.$ac_ext 15329cat >>conftest.$ac_ext <<_ACEOF 15330/* end confdefs.h. */ 15331$ac_includes_default 15332int 15333main () 15334{ 15335static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@; 15336test_array @<:@0@:>@ = 0 15337 15338 ; 15339 return 0; 15340} 15341_ACEOF 15342rm -f conftest.$ac_objext 15343if { (ac_try="$ac_compile" 15344case "(($ac_try" in 15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15346 *) ac_try_echo=$ac_try;; 15347esac 15348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15349$as_echo "$ac_try_echo") >&5 15350 (eval "$ac_compile") 2>conftest.er1 15351 ac_status=$? 15352 grep -v '^ *+' conftest.er1 >conftest.err 15353 rm -f conftest.er1 15354 cat conftest.err >&5 15355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15356 (exit $ac_status); } && { 15357 test -z "$ac_c_werror_flag" || 15358 test ! -s conftest.err 15359 } && test -s conftest.$ac_objext; then 15360 ac_lo=$ac_mid; break 15361else 15362 $as_echo "$as_me: failed program was:" >&5 15363sed 's/^/| /' conftest.$ac_ext >&5 15364 15365 ac_hi=`expr '(' $ac_mid ')' - 1` 15366 if test $ac_mid -le $ac_hi; then 15367 ac_lo= ac_hi= 15368 break 15369 fi 15370 ac_mid=`expr 2 '*' $ac_mid` 15371fi 15372 15373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15374 done 15375else 15376 $as_echo "$as_me: failed program was:" >&5 15377sed 's/^/| /' conftest.$ac_ext >&5 15378 15379 ac_lo= ac_hi= 15380fi 15381 15382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15383fi 15384 15385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15386# Binary search between lo and hi bounds. 15387while test "x$ac_lo" != "x$ac_hi"; do 15388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15389 cat >conftest.$ac_ext <<_ACEOF 15390/* confdefs.h. */ 15391_ACEOF 15392cat confdefs.h >>conftest.$ac_ext 15393cat >>conftest.$ac_ext <<_ACEOF 15394/* end confdefs.h. */ 15395$ac_includes_default 15396int 15397main () 15398{ 15399static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@; 15400test_array @<:@0@:>@ = 0 15401 15402 ; 15403 return 0; 15404} 15405_ACEOF 15406rm -f conftest.$ac_objext 15407if { (ac_try="$ac_compile" 15408case "(($ac_try" in 15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15410 *) ac_try_echo=$ac_try;; 15411esac 15412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15413$as_echo "$ac_try_echo") >&5 15414 (eval "$ac_compile") 2>conftest.er1 15415 ac_status=$? 15416 grep -v '^ *+' conftest.er1 >conftest.err 15417 rm -f conftest.er1 15418 cat conftest.err >&5 15419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15420 (exit $ac_status); } && { 15421 test -z "$ac_c_werror_flag" || 15422 test ! -s conftest.err 15423 } && test -s conftest.$ac_objext; then 15424 ac_hi=$ac_mid 15425else 15426 $as_echo "$as_me: failed program was:" >&5 15427sed 's/^/| /' conftest.$ac_ext >&5 15428 15429 ac_lo=`expr '(' $ac_mid ')' + 1` 15430fi 15431 15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15433done 15434case $ac_lo in 15435?*) ac_cv_sizeof_short=$ac_lo;; 15436'') if test "$ac_cv_type_short" = yes; then 15437 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 15438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15439{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 15440See \`config.log' for more details." >&5 15441$as_echo "$as_me: error: cannot compute sizeof (short) 15442See \`config.log' for more details." >&2;} 15443 { (exit 77); exit 77; }; }; } 15444 else 15445 ac_cv_sizeof_short=0 15446 fi ;; 15447esac 15448else 15449 cat >conftest.$ac_ext <<_ACEOF 15450/* confdefs.h. */ 15451_ACEOF 15452cat confdefs.h >>conftest.$ac_ext 15453cat >>conftest.$ac_ext <<_ACEOF 15454/* end confdefs.h. */ 15455$ac_includes_default 15456static long int longval () { return (long int) (sizeof (short)); } 15457static unsigned long int ulongval () { return (long int) (sizeof (short)); } 15458@%:@include <stdio.h> 15459@%:@include <stdlib.h> 15460int 15461main () 15462{ 15463 15464 FILE *f = fopen ("conftest.val", "w"); 15465 if (! f) 15466 return 1; 15467 if (((long int) (sizeof (short))) < 0) 15468 { 15469 long int i = longval (); 15470 if (i != ((long int) (sizeof (short)))) 15471 return 1; 15472 fprintf (f, "%ld", i); 15473 } 15474 else 15475 { 15476 unsigned long int i = ulongval (); 15477 if (i != ((long int) (sizeof (short)))) 15478 return 1; 15479 fprintf (f, "%lu", i); 15480 } 15481 /* Do not output a trailing newline, as this causes \r\n confusion 15482 on some platforms. */ 15483 return ferror (f) || fclose (f) != 0; 15484 15485 ; 15486 return 0; 15487} 15488_ACEOF 15489rm -f conftest$ac_exeext 15490if { (ac_try="$ac_link" 15491case "(($ac_try" in 15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15493 *) ac_try_echo=$ac_try;; 15494esac 15495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15496$as_echo "$ac_try_echo") >&5 15497 (eval "$ac_link") 2>&5 15498 ac_status=$? 15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15501 { (case "(($ac_try" in 15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15503 *) ac_try_echo=$ac_try;; 15504esac 15505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15506$as_echo "$ac_try_echo") >&5 15507 (eval "$ac_try") 2>&5 15508 ac_status=$? 15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15510 (exit $ac_status); }; }; then 15511 ac_cv_sizeof_short=`cat conftest.val` 15512else 15513 $as_echo "$as_me: program exited with status $ac_status" >&5 15514$as_echo "$as_me: failed program was:" >&5 15515sed 's/^/| /' conftest.$ac_ext >&5 15516 15517( exit $ac_status ) 15518if test "$ac_cv_type_short" = yes; then 15519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 15520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15521{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 15522See \`config.log' for more details." >&5 15523$as_echo "$as_me: error: cannot compute sizeof (short) 15524See \`config.log' for more details." >&2;} 15525 { (exit 77); exit 77; }; }; } 15526 else 15527 ac_cv_sizeof_short=0 15528 fi 15529fi 15530rm -rf conftest.dSYM 15531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15532fi 15533rm -f conftest.val 15534fi 15535{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 15536$as_echo "$ac_cv_sizeof_short" >&6; } 15537 15538 15539 15540cat >>confdefs.h <<_ACEOF 15541@%:@define SIZEOF_SHORT $ac_cv_sizeof_short 15542_ACEOF 15543 15544 15545{ $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5 15546$as_echo_n "checking for struct in6_addr... " >&6; } 15547if test "${ac_cv_type_struct_in6_addr+set}" = set; then 15548 $as_echo_n "(cached) " >&6 15549else 15550 ac_cv_type_struct_in6_addr=no 15551cat >conftest.$ac_ext <<_ACEOF 15552/* confdefs.h. */ 15553_ACEOF 15554cat confdefs.h >>conftest.$ac_ext 15555cat >>conftest.$ac_ext <<_ACEOF 15556/* end confdefs.h. */ 15557#ifdef WIN32 15558#include <winsock2.h> 15559#else 15560#include <sys/types.h> 15561#include <netinet/in.h> 15562#include <sys/socket.h> 15563#endif 15564#ifdef HAVE_NETINET_IN6_H 15565#include <netinet/in6.h> 15566#endif 15567 15568int 15569main () 15570{ 15571if (sizeof (struct in6_addr)) 15572 return 0; 15573 ; 15574 return 0; 15575} 15576_ACEOF 15577rm -f conftest.$ac_objext 15578if { (ac_try="$ac_compile" 15579case "(($ac_try" in 15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15581 *) ac_try_echo=$ac_try;; 15582esac 15583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15584$as_echo "$ac_try_echo") >&5 15585 (eval "$ac_compile") 2>conftest.er1 15586 ac_status=$? 15587 grep -v '^ *+' conftest.er1 >conftest.err 15588 rm -f conftest.er1 15589 cat conftest.err >&5 15590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15591 (exit $ac_status); } && { 15592 test -z "$ac_c_werror_flag" || 15593 test ! -s conftest.err 15594 } && test -s conftest.$ac_objext; then 15595 cat >conftest.$ac_ext <<_ACEOF 15596/* confdefs.h. */ 15597_ACEOF 15598cat confdefs.h >>conftest.$ac_ext 15599cat >>conftest.$ac_ext <<_ACEOF 15600/* end confdefs.h. */ 15601#ifdef WIN32 15602#include <winsock2.h> 15603#else 15604#include <sys/types.h> 15605#include <netinet/in.h> 15606#include <sys/socket.h> 15607#endif 15608#ifdef HAVE_NETINET_IN6_H 15609#include <netinet/in6.h> 15610#endif 15611 15612int 15613main () 15614{ 15615if (sizeof ((struct in6_addr))) 15616 return 0; 15617 ; 15618 return 0; 15619} 15620_ACEOF 15621rm -f conftest.$ac_objext 15622if { (ac_try="$ac_compile" 15623case "(($ac_try" in 15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15625 *) ac_try_echo=$ac_try;; 15626esac 15627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15628$as_echo "$ac_try_echo") >&5 15629 (eval "$ac_compile") 2>conftest.er1 15630 ac_status=$? 15631 grep -v '^ *+' conftest.er1 >conftest.err 15632 rm -f conftest.er1 15633 cat conftest.err >&5 15634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15635 (exit $ac_status); } && { 15636 test -z "$ac_c_werror_flag" || 15637 test ! -s conftest.err 15638 } && test -s conftest.$ac_objext; then 15639 : 15640else 15641 $as_echo "$as_me: failed program was:" >&5 15642sed 's/^/| /' conftest.$ac_ext >&5 15643 15644 ac_cv_type_struct_in6_addr=yes 15645fi 15646 15647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15648else 15649 $as_echo "$as_me: failed program was:" >&5 15650sed 's/^/| /' conftest.$ac_ext >&5 15651 15652 15653fi 15654 15655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15656fi 15657{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5 15658$as_echo "$ac_cv_type_struct_in6_addr" >&6; } 15659if test "x$ac_cv_type_struct_in6_addr" = x""yes; then 15660 15661cat >>confdefs.h <<_ACEOF 15662@%:@define HAVE_STRUCT_IN6_ADDR 1 15663_ACEOF 15664 15665 15666fi 15667 15668 15669{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 15670$as_echo_n "checking for socklen_t... " >&6; } 15671cat >conftest.$ac_ext <<_ACEOF 15672/* confdefs.h. */ 15673_ACEOF 15674cat confdefs.h >>conftest.$ac_ext 15675cat >>conftest.$ac_ext <<_ACEOF 15676/* end confdefs.h. */ 15677 15678 #include <sys/types.h> 15679 #include <sys/socket.h> 15680int 15681main () 15682{ 15683socklen_t x; 15684 ; 15685 return 0; 15686} 15687_ACEOF 15688rm -f conftest.$ac_objext 15689if { (ac_try="$ac_compile" 15690case "(($ac_try" in 15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15692 *) ac_try_echo=$ac_try;; 15693esac 15694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15695$as_echo "$ac_try_echo") >&5 15696 (eval "$ac_compile") 2>conftest.er1 15697 ac_status=$? 15698 grep -v '^ *+' conftest.er1 >conftest.err 15699 rm -f conftest.er1 15700 cat conftest.err >&5 15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15702 (exit $ac_status); } && { 15703 test -z "$ac_c_werror_flag" || 15704 test ! -s conftest.err 15705 } && test -s conftest.$ac_objext; then 15706 { $as_echo "$as_me:$LINENO: result: yes" >&5 15707$as_echo "yes" >&6; } 15708else 15709 $as_echo "$as_me: failed program was:" >&5 15710sed 's/^/| /' conftest.$ac_ext >&5 15711 15712 { $as_echo "$as_me:$LINENO: result: no" >&5 15713$as_echo "no" >&6; } 15714 15715cat >>confdefs.h <<\_ACEOF 15716@%:@define socklen_t unsigned int 15717_ACEOF 15718 15719 15720fi 15721 15722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15723 15724{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5 15725$as_echo_n "checking whether our compiler supports __func__... " >&6; } 15726cat >conftest.$ac_ext <<_ACEOF 15727/* confdefs.h. */ 15728_ACEOF 15729cat confdefs.h >>conftest.$ac_ext 15730cat >>conftest.$ac_ext <<_ACEOF 15731/* end confdefs.h. */ 15732 15733int 15734main () 15735{ 15736 const char *cp = __func__; 15737 ; 15738 return 0; 15739} 15740_ACEOF 15741rm -f conftest.$ac_objext 15742if { (ac_try="$ac_compile" 15743case "(($ac_try" in 15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15745 *) ac_try_echo=$ac_try;; 15746esac 15747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15748$as_echo "$ac_try_echo") >&5 15749 (eval "$ac_compile") 2>conftest.er1 15750 ac_status=$? 15751 grep -v '^ *+' conftest.er1 >conftest.err 15752 rm -f conftest.er1 15753 cat conftest.err >&5 15754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15755 (exit $ac_status); } && { 15756 test -z "$ac_c_werror_flag" || 15757 test ! -s conftest.err 15758 } && test -s conftest.$ac_objext; then 15759 { $as_echo "$as_me:$LINENO: result: yes" >&5 15760$as_echo "yes" >&6; } 15761else 15762 $as_echo "$as_me: failed program was:" >&5 15763sed 's/^/| /' conftest.$ac_ext >&5 15764 15765 { $as_echo "$as_me:$LINENO: result: no" >&5 15766$as_echo "no" >&6; } 15767 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5 15768$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 15769 cat >conftest.$ac_ext <<_ACEOF 15770/* confdefs.h. */ 15771_ACEOF 15772cat confdefs.h >>conftest.$ac_ext 15773cat >>conftest.$ac_ext <<_ACEOF 15774/* end confdefs.h. */ 15775 15776int 15777main () 15778{ 15779 const char *cp = __FUNCTION__; 15780 ; 15781 return 0; 15782} 15783_ACEOF 15784rm -f conftest.$ac_objext 15785if { (ac_try="$ac_compile" 15786case "(($ac_try" in 15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15788 *) ac_try_echo=$ac_try;; 15789esac 15790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15791$as_echo "$ac_try_echo") >&5 15792 (eval "$ac_compile") 2>conftest.er1 15793 ac_status=$? 15794 grep -v '^ *+' conftest.er1 >conftest.err 15795 rm -f conftest.er1 15796 cat conftest.err >&5 15797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15798 (exit $ac_status); } && { 15799 test -z "$ac_c_werror_flag" || 15800 test ! -s conftest.err 15801 } && test -s conftest.$ac_objext; then 15802 { $as_echo "$as_me:$LINENO: result: yes" >&5 15803$as_echo "yes" >&6; } 15804 15805cat >>confdefs.h <<\_ACEOF 15806@%:@define __func__ __FUNCTION__ 15807_ACEOF 15808 15809else 15810 $as_echo "$as_me: failed program was:" >&5 15811sed 's/^/| /' conftest.$ac_ext >&5 15812 15813 { $as_echo "$as_me:$LINENO: result: no" >&5 15814$as_echo "no" >&6; } 15815 15816cat >>confdefs.h <<\_ACEOF 15817@%:@define __func__ __FILE__ 15818_ACEOF 15819 15820fi 15821 15822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15823fi 15824 15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15826 15827 15828# Add some more warnings which we use in development but not in the 15829# released versions. (Some relevant gcc versions can't handle these.) 15830if test x$enable_gcc_warnings = xyes; then 15831 15832 cat >conftest.$ac_ext <<_ACEOF 15833/* confdefs.h. */ 15834_ACEOF 15835cat confdefs.h >>conftest.$ac_ext 15836cat >>conftest.$ac_ext <<_ACEOF 15837/* end confdefs.h. */ 15838 15839int 15840main () 15841{ 15842 15843#if !defined(__GNUC__) || (__GNUC__ < 4) 15844#error 15845#endif 15846 ; 15847 return 0; 15848} 15849_ACEOF 15850rm -f conftest.$ac_objext 15851if { (ac_try="$ac_compile" 15852case "(($ac_try" in 15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15854 *) ac_try_echo=$ac_try;; 15855esac 15856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15857$as_echo "$ac_try_echo") >&5 15858 (eval "$ac_compile") 2>conftest.er1 15859 ac_status=$? 15860 grep -v '^ *+' conftest.er1 >conftest.err 15861 rm -f conftest.er1 15862 cat conftest.err >&5 15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15864 (exit $ac_status); } && { 15865 test -z "$ac_c_werror_flag" || 15866 test ! -s conftest.err 15867 } && test -s conftest.$ac_objext; then 15868 have_gcc4=yes 15869else 15870 $as_echo "$as_me: failed program was:" >&5 15871sed 's/^/| /' conftest.$ac_ext >&5 15872 15873 have_gcc4=no 15874fi 15875 15876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15877 15878 cat >conftest.$ac_ext <<_ACEOF 15879/* confdefs.h. */ 15880_ACEOF 15881cat confdefs.h >>conftest.$ac_ext 15882cat >>conftest.$ac_ext <<_ACEOF 15883/* end confdefs.h. */ 15884 15885int 15886main () 15887{ 15888 15889#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 15890#error 15891#endif 15892 ; 15893 return 0; 15894} 15895_ACEOF 15896rm -f conftest.$ac_objext 15897if { (ac_try="$ac_compile" 15898case "(($ac_try" in 15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15900 *) ac_try_echo=$ac_try;; 15901esac 15902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15903$as_echo "$ac_try_echo") >&5 15904 (eval "$ac_compile") 2>conftest.er1 15905 ac_status=$? 15906 grep -v '^ *+' conftest.er1 >conftest.err 15907 rm -f conftest.er1 15908 cat conftest.err >&5 15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15910 (exit $ac_status); } && { 15911 test -z "$ac_c_werror_flag" || 15912 test ! -s conftest.err 15913 } && test -s conftest.$ac_objext; then 15914 have_gcc42=yes 15915else 15916 $as_echo "$as_me: failed program was:" >&5 15917sed 's/^/| /' conftest.$ac_ext >&5 15918 15919 have_gcc42=no 15920fi 15921 15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15923 15924 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror" 15925 CFLAGS="$CFLAGS -Wno-unused-parameter -Wno-sign-compare -Wstrict-aliasing" 15926 15927 if test x$have_gcc4 = xyes ; then 15928 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 15929 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 15930 #CFLAGS="$CFLAGS -Wold-style-definition" 15931 fi 15932 15933 if test x$have_gcc42 = xyes ; then 15934 # These warnings break gcc 4.0.2 and work on gcc 4.2 15935 CFLAGS="$CFLAGS -Waddress -Wnormalized=id -Woverride-init" 15936 fi 15937 15938##This will break the world on some 64-bit architectures 15939# CFLAGS="$CFLAGS -Winline" 15940 15941fi 15942 15943ac_config_files="$ac_config_files Makefile test/Makefile sample/Makefile" 15944 15945cat >confcache <<\_ACEOF 15946# This file is a shell script that caches the results of configure 15947# tests run on this system so they can be shared between configure 15948# scripts and configure runs, see configure's option --config-cache. 15949# It is not useful on other systems. If it contains results you don't 15950# want to keep, you may remove or edit it. 15951# 15952# config.status only pays attention to the cache file if you give it 15953# the --recheck option to rerun configure. 15954# 15955# `ac_cv_env_foo' variables (set or unset) will be overridden when 15956# loading this file, other *unset* `ac_cv_foo' will be assigned the 15957# following values. 15958 15959_ACEOF 15960 15961# The following way of writing the cache mishandles newlines in values, 15962# but we know of no workaround that is simple, portable, and efficient. 15963# So, we kill variables containing newlines. 15964# Ultrix sh set writes to stderr and can't be redirected directly, 15965# and sets the high bit in the cache file unless we assign to the vars. 15966( 15967 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15968 eval ac_val=\$$ac_var 15969 case $ac_val in #( 15970 *${as_nl}*) 15971 case $ac_var in #( 15972 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 15973$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15974 esac 15975 case $ac_var in #( 15976 _ | IFS | as_nl) ;; #( 15977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15978 *) $as_unset $ac_var ;; 15979 esac ;; 15980 esac 15981 done 15982 15983 (set) 2>&1 | 15984 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15985 *${as_nl}ac_space=\ *) 15986 # `set' does not quote correctly, so add quotes (double-quote 15987 # substitution turns \\\\ into \\, and sed turns \\ into \). 15988 sed -n \ 15989 "s/'/'\\\\''/g; 15990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15991 ;; #( 15992 *) 15993 # `set' quotes correctly as required by POSIX, so do not add quotes. 15994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15995 ;; 15996 esac | 15997 sort 15998) | 15999 sed ' 16000 /^ac_cv_env_/b end 16001 t clear 16002 :clear 16003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16004 t end 16005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16006 :end' >>confcache 16007if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16008 if test -w "$cache_file"; then 16009 test "x$cache_file" != "x/dev/null" && 16010 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 16011$as_echo "$as_me: updating cache $cache_file" >&6;} 16012 cat confcache >$cache_file 16013 else 16014 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 16015$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16016 fi 16017fi 16018rm -f confcache 16019 16020test "x$prefix" = xNONE && prefix=$ac_default_prefix 16021# Let make expand exec_prefix. 16022test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16023 16024DEFS=-DHAVE_CONFIG_H 16025 16026ac_libobjs= 16027ac_ltlibobjs= 16028for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16029 # 1. Remove the extension, and $U if already installed. 16030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16031 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16033 # will be set to the directory where LIBOBJS objects are built. 16034 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16035 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 16036done 16037LIB@&t@OBJS=$ac_libobjs 16038 16039LTLIBOBJS=$ac_ltlibobjs 16040 16041 16042 if test -n "$EXEEXT"; then 16043 am__EXEEXT_TRUE= 16044 am__EXEEXT_FALSE='#' 16045else 16046 am__EXEEXT_TRUE='#' 16047 am__EXEEXT_FALSE= 16048fi 16049 16050if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16051 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 16052Usually this means the macro was only invoked conditionally." >&5 16053$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 16054Usually this means the macro was only invoked conditionally." >&2;} 16055 { (exit 1); exit 1; }; } 16056fi 16057if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16058 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 16059Usually this means the macro was only invoked conditionally." >&5 16060$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 16061Usually this means the macro was only invoked conditionally." >&2;} 16062 { (exit 1); exit 1; }; } 16063fi 16064if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 16065 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WIN32\" was never defined. 16066Usually this means the macro was only invoked conditionally." >&5 16067$as_echo "$as_me: error: conditional \"BUILD_WIN32\" was never defined. 16068Usually this means the macro was only invoked conditionally." >&2;} 16069 { (exit 1); exit 1; }; } 16070fi 16071 16072: ${CONFIG_STATUS=./config.status} 16073ac_write_fail=0 16074ac_clean_files_save=$ac_clean_files 16075ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16076{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 16077$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16078cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16079#! $SHELL 16080# Generated by $as_me. 16081# Run this file to recreate the current configuration. 16082# Compiler output produced by configure, useful for debugging 16083# configure, is in config.log if it exists. 16084 16085debug=false 16086ac_cs_recheck=false 16087ac_cs_silent=false 16088SHELL=\${CONFIG_SHELL-$SHELL} 16089_ACEOF 16090 16091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16092## --------------------- ## 16093## M4sh Initialization. ## 16094## --------------------- ## 16095 16096# Be more Bourne compatible 16097DUALCASE=1; export DUALCASE # for MKS sh 16098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16099 emulate sh 16100 NULLCMD=: 16101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16102 # is contrary to our usage. Disable this feature. 16103 alias -g '${1+"$@"}'='"$@"' 16104 setopt NO_GLOB_SUBST 16105else 16106 case `(set -o) 2>/dev/null` in 16107 *posix*) set -o posix ;; 16108esac 16109 16110fi 16111 16112 16113 16114 16115# PATH needs CR 16116# Avoid depending upon Character Ranges. 16117as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16119as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16120as_cr_digits='0123456789' 16121as_cr_alnum=$as_cr_Letters$as_cr_digits 16122 16123as_nl=' 16124' 16125export as_nl 16126# Printing a long string crashes Solaris 7 /usr/bin/printf. 16127as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16129as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16130if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16131 as_echo='printf %s\n' 16132 as_echo_n='printf %s' 16133else 16134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16136 as_echo_n='/usr/ucb/echo -n' 16137 else 16138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16139 as_echo_n_body='eval 16140 arg=$1; 16141 case $arg in 16142 *"$as_nl"*) 16143 expr "X$arg" : "X\\(.*\\)$as_nl"; 16144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16145 esac; 16146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16147 ' 16148 export as_echo_n_body 16149 as_echo_n='sh -c $as_echo_n_body as_echo' 16150 fi 16151 export as_echo_body 16152 as_echo='sh -c $as_echo_body as_echo' 16153fi 16154 16155# The user is always right. 16156if test "${PATH_SEPARATOR+set}" != set; then 16157 PATH_SEPARATOR=: 16158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16160 PATH_SEPARATOR=';' 16161 } 16162fi 16163 16164# Support unset when possible. 16165if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16166 as_unset=unset 16167else 16168 as_unset=false 16169fi 16170 16171 16172# IFS 16173# We need space, tab and new line, in precisely that order. Quoting is 16174# there to prevent editors from complaining about space-tab. 16175# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16176# splitting by setting IFS to empty value.) 16177IFS=" "" $as_nl" 16178 16179# Find who we are. Look in the path if we contain no directory separator. 16180case $0 in 16181 *[\\/]* ) as_myself=$0 ;; 16182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16183for as_dir in $PATH 16184do 16185 IFS=$as_save_IFS 16186 test -z "$as_dir" && as_dir=. 16187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16188done 16189IFS=$as_save_IFS 16190 16191 ;; 16192esac 16193# We did not find ourselves, most probably we were run as `sh COMMAND' 16194# in which case we are not to be found in the path. 16195if test "x$as_myself" = x; then 16196 as_myself=$0 16197fi 16198if test ! -f "$as_myself"; then 16199 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16200 { (exit 1); exit 1; } 16201fi 16202 16203# Work around bugs in pre-3.0 UWIN ksh. 16204for as_var in ENV MAIL MAILPATH 16205do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16206done 16207PS1='$ ' 16208PS2='> ' 16209PS4='+ ' 16210 16211# NLS nuisances. 16212LC_ALL=C 16213export LC_ALL 16214LANGUAGE=C 16215export LANGUAGE 16216 16217# Required to use basename. 16218if expr a : '\(a\)' >/dev/null 2>&1 && 16219 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16220 as_expr=expr 16221else 16222 as_expr=false 16223fi 16224 16225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16226 as_basename=basename 16227else 16228 as_basename=false 16229fi 16230 16231 16232# Name of the executable. 16233as_me=`$as_basename -- "$0" || 16234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16235 X"$0" : 'X\(//\)$' \| \ 16236 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16237$as_echo X/"$0" | 16238 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16239 s//\1/ 16240 q 16241 } 16242 /^X\/\(\/\/\)$/{ 16243 s//\1/ 16244 q 16245 } 16246 /^X\/\(\/\).*/{ 16247 s//\1/ 16248 q 16249 } 16250 s/.*/./; q'` 16251 16252# CDPATH. 16253$as_unset CDPATH 16254 16255 16256 16257 as_lineno_1=$LINENO 16258 as_lineno_2=$LINENO 16259 test "x$as_lineno_1" != "x$as_lineno_2" && 16260 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 16261 16262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16263 # uniformly replaced by the line number. The first 'sed' inserts a 16264 # line-number line after each line using $LINENO; the second 'sed' 16265 # does the real work. The second script uses 'N' to pair each 16266 # line-number line with the line containing $LINENO, and appends 16267 # trailing '-' during substitution so that $LINENO is not a special 16268 # case at line end. 16269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16270 # scripts with optimization help from Paolo Bonzini. Blame Lee 16271 # E. McMahon (1931-1989) for sed's syntax. :-) 16272 sed -n ' 16273 p 16274 /[$]LINENO/= 16275 ' <$as_myself | 16276 sed ' 16277 s/[$]LINENO.*/&-/ 16278 t lineno 16279 b 16280 :lineno 16281 N 16282 :loop 16283 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 16284 t loop 16285 s/-\n.*// 16286 ' >$as_me.lineno && 16287 chmod +x "$as_me.lineno" || 16288 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 16289 { (exit 1); exit 1; }; } 16290 16291 # Don't try to exec as it changes $[0], causing all sort of problems 16292 # (the dirname of $[0] is not the place where we might find the 16293 # original and so on. Autoconf is especially sensitive to this). 16294 . "./$as_me.lineno" 16295 # Exit status is that of the last command. 16296 exit 16297} 16298 16299 16300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16301 as_dirname=dirname 16302else 16303 as_dirname=false 16304fi 16305 16306ECHO_C= ECHO_N= ECHO_T= 16307case `echo -n x` in 16308-n*) 16309 case `echo 'x\c'` in 16310 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16311 *) ECHO_C='\c';; 16312 esac;; 16313*) 16314 ECHO_N='-n';; 16315esac 16316if expr a : '\(a\)' >/dev/null 2>&1 && 16317 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16318 as_expr=expr 16319else 16320 as_expr=false 16321fi 16322 16323rm -f conf$$ conf$$.exe conf$$.file 16324if test -d conf$$.dir; then 16325 rm -f conf$$.dir/conf$$.file 16326else 16327 rm -f conf$$.dir 16328 mkdir conf$$.dir 2>/dev/null 16329fi 16330if (echo >conf$$.file) 2>/dev/null; then 16331 if ln -s conf$$.file conf$$ 2>/dev/null; then 16332 as_ln_s='ln -s' 16333 # ... but there are two gotchas: 16334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16336 # In both cases, we have to default to `cp -p'. 16337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16338 as_ln_s='cp -p' 16339 elif ln conf$$.file conf$$ 2>/dev/null; then 16340 as_ln_s=ln 16341 else 16342 as_ln_s='cp -p' 16343 fi 16344else 16345 as_ln_s='cp -p' 16346fi 16347rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16348rmdir conf$$.dir 2>/dev/null 16349 16350if mkdir -p . 2>/dev/null; then 16351 as_mkdir_p=: 16352else 16353 test -d ./-p && rmdir ./-p 16354 as_mkdir_p=false 16355fi 16356 16357if test -x / >/dev/null 2>&1; then 16358 as_test_x='test -x' 16359else 16360 if ls -dL / >/dev/null 2>&1; then 16361 as_ls_L_option=L 16362 else 16363 as_ls_L_option= 16364 fi 16365 as_test_x=' 16366 eval sh -c '\'' 16367 if test -d "$1"; then 16368 test -d "$1/."; 16369 else 16370 case $1 in 16371 -*)set "./$1";; 16372 esac; 16373 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 16374 ???[sx]*):;;*)false;;esac;fi 16375 '\'' sh 16376 ' 16377fi 16378as_executable_p=$as_test_x 16379 16380# Sed expression to map a string onto a valid CPP name. 16381as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16382 16383# Sed expression to map a string onto a valid variable name. 16384as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16385 16386 16387exec 6>&1 16388 16389# Save the log message, to keep $[0] and so on meaningful, and to 16390# report actual input values of CONFIG_FILES etc. instead of their 16391# values after options handling. 16392ac_log=" 16393This file was extended by $as_me, which was 16394generated by GNU Autoconf 2.63. Invocation command line was 16395 16396 CONFIG_FILES = $CONFIG_FILES 16397 CONFIG_HEADERS = $CONFIG_HEADERS 16398 CONFIG_LINKS = $CONFIG_LINKS 16399 CONFIG_COMMANDS = $CONFIG_COMMANDS 16400 $ $0 $@ 16401 16402on `(hostname || uname -n) 2>/dev/null | sed 1q` 16403" 16404 16405_ACEOF 16406 16407case $ac_config_files in *" 16408"*) set x $ac_config_files; shift; ac_config_files=$*;; 16409esac 16410 16411case $ac_config_headers in *" 16412"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16413esac 16414 16415 16416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16417# Files that config.status was made for. 16418config_files="$ac_config_files" 16419config_headers="$ac_config_headers" 16420config_commands="$ac_config_commands" 16421 16422_ACEOF 16423 16424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16425ac_cs_usage="\ 16426\`$as_me' instantiates files from templates according to the 16427current configuration. 16428 16429Usage: $0 [OPTION]... [FILE]... 16430 16431 -h, --help print this help, then exit 16432 -V, --version print version number and configuration settings, then exit 16433 -q, --quiet, --silent 16434 do not print progress messages 16435 -d, --debug don't remove temporary files 16436 --recheck update $as_me by reconfiguring in the same conditions 16437 --file=FILE[:TEMPLATE] 16438 instantiate the configuration file FILE 16439 --header=FILE[:TEMPLATE] 16440 instantiate the configuration header FILE 16441 16442Configuration files: 16443$config_files 16444 16445Configuration headers: 16446$config_headers 16447 16448Configuration commands: 16449$config_commands 16450 16451Report bugs to <bug-autoconf@gnu.org>." 16452 16453_ACEOF 16454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16455ac_cs_version="\\ 16456config.status 16457configured by $0, generated by GNU Autoconf 2.63, 16458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16459 16460Copyright (C) 2008 Free Software Foundation, Inc. 16461This config.status script is free software; the Free Software Foundation 16462gives unlimited permission to copy, distribute and modify it." 16463 16464ac_pwd='$ac_pwd' 16465srcdir='$srcdir' 16466INSTALL='$INSTALL' 16467MKDIR_P='$MKDIR_P' 16468AWK='$AWK' 16469test -n "\$AWK" || AWK=awk 16470_ACEOF 16471 16472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16473# The default lists apply if the user does not specify any file. 16474ac_need_defaults=: 16475while test $# != 0 16476do 16477 case $1 in 16478 --*=*) 16479 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16481 ac_shift=: 16482 ;; 16483 *) 16484 ac_option=$1 16485 ac_optarg=$2 16486 ac_shift=shift 16487 ;; 16488 esac 16489 16490 case $ac_option in 16491 # Handling of the options. 16492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16493 ac_cs_recheck=: ;; 16494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16495 $as_echo "$ac_cs_version"; exit ;; 16496 --debug | --debu | --deb | --de | --d | -d ) 16497 debug=: ;; 16498 --file | --fil | --fi | --f ) 16499 $ac_shift 16500 case $ac_optarg in 16501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16502 esac 16503 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 16504 ac_need_defaults=false;; 16505 --header | --heade | --head | --hea ) 16506 $ac_shift 16507 case $ac_optarg in 16508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16509 esac 16510 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 16511 ac_need_defaults=false;; 16512 --he | --h) 16513 # Conflict between --help and --header 16514 { $as_echo "$as_me: error: ambiguous option: $1 16515Try \`$0 --help' for more information." >&2 16516 { (exit 1); exit 1; }; };; 16517 --help | --hel | -h ) 16518 $as_echo "$ac_cs_usage"; exit ;; 16519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16520 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16521 ac_cs_silent=: ;; 16522 16523 # This is an error. 16524 -*) { $as_echo "$as_me: error: unrecognized option: $1 16525Try \`$0 --help' for more information." >&2 16526 { (exit 1); exit 1; }; } ;; 16527 16528 *) ac_config_targets="$ac_config_targets $1" 16529 ac_need_defaults=false ;; 16530 16531 esac 16532 shift 16533done 16534 16535ac_configure_extra_args= 16536 16537if $ac_cs_silent; then 16538 exec 6>/dev/null 16539 ac_configure_extra_args="$ac_configure_extra_args --silent" 16540fi 16541 16542_ACEOF 16543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16544if \$ac_cs_recheck; then 16545 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16546 shift 16547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16548 CONFIG_SHELL='$SHELL' 16549 export CONFIG_SHELL 16550 exec "\$@" 16551fi 16552 16553_ACEOF 16554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16555exec 5>>config.log 16556{ 16557 echo 16558 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 16559@%:@@%:@ Running $as_me. @%:@@%:@ 16560_ASBOX 16561 $as_echo "$ac_log" 16562} >&5 16563 16564_ACEOF 16565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16566# 16567# INIT-COMMANDS 16568# 16569AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16570 16571 16572# The HP-UX ksh and POSIX shell print the target directory to stdout 16573# if CDPATH is set. 16574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16575 16576sed_quote_subst='$sed_quote_subst' 16577double_quote_subst='$double_quote_subst' 16578delay_variable_subst='$delay_variable_subst' 16579macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16580macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16581enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16582enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16583pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16584enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16585host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16586host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16587host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16588build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16589build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16590build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16591SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16592Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16593GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16594EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16595FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16596LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16597NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16598LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16599max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16600ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16601exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16602lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16603lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16604lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16605reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16606reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16607OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16608deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16609file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16610AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16611AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16612STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16613RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16614old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16615old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16616old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16617CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16618CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16619compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16620GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16621lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16622lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16623lt_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"`' 16624lt_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"`' 16625objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16626SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16627ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16628MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16629lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16630lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16631lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16632lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16633lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16634need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16635DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16636NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16637LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16638OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16639OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16640libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16641shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16642extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16643archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16644enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16645export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16646whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16647compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16648old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16649old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16650archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16651archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16652module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16653module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16654with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16655allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16656no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16657hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16658hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16659hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16660hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16661hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16662hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16663hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16664hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16665inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16666link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16667fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16668always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16669export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16670exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16671include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16672prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16673file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16674variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16675need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16676need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16677version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16678runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16679shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16680shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16681libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16682library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16683soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16684postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16685postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16686finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16687finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16688hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16689sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16690sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16691hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16692enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16693enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16694enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16695old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16696striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16697 16698LTCC='$LTCC' 16699LTCFLAGS='$LTCFLAGS' 16700compiler='$compiler_DEFAULT' 16701 16702# Quote evaled strings. 16703for var in SED \ 16704GREP \ 16705EGREP \ 16706FGREP \ 16707LD \ 16708NM \ 16709LN_S \ 16710lt_SP2NL \ 16711lt_NL2SP \ 16712reload_flag \ 16713OBJDUMP \ 16714deplibs_check_method \ 16715file_magic_cmd \ 16716AR \ 16717AR_FLAGS \ 16718STRIP \ 16719RANLIB \ 16720CC \ 16721CFLAGS \ 16722compiler \ 16723lt_cv_sys_global_symbol_pipe \ 16724lt_cv_sys_global_symbol_to_cdecl \ 16725lt_cv_sys_global_symbol_to_c_name_address \ 16726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16727SHELL \ 16728ECHO \ 16729lt_prog_compiler_no_builtin_flag \ 16730lt_prog_compiler_wl \ 16731lt_prog_compiler_pic \ 16732lt_prog_compiler_static \ 16733lt_cv_prog_compiler_c_o \ 16734need_locks \ 16735DSYMUTIL \ 16736NMEDIT \ 16737LIPO \ 16738OTOOL \ 16739OTOOL64 \ 16740shrext_cmds \ 16741export_dynamic_flag_spec \ 16742whole_archive_flag_spec \ 16743compiler_needs_object \ 16744with_gnu_ld \ 16745allow_undefined_flag \ 16746no_undefined_flag \ 16747hardcode_libdir_flag_spec \ 16748hardcode_libdir_flag_spec_ld \ 16749hardcode_libdir_separator \ 16750fix_srcfile_path \ 16751exclude_expsyms \ 16752include_expsyms \ 16753file_list_spec \ 16754variables_saved_for_relink \ 16755libname_spec \ 16756library_names_spec \ 16757soname_spec \ 16758finish_eval \ 16759old_striplib \ 16760striplib; do 16761 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16762 *[\\\\\\\`\\"\\\$]*) 16763 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16764 ;; 16765 *) 16766 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16767 ;; 16768 esac 16769done 16770 16771# Double-quote double-evaled strings. 16772for var in reload_cmds \ 16773old_postinstall_cmds \ 16774old_postuninstall_cmds \ 16775old_archive_cmds \ 16776extract_expsyms_cmds \ 16777old_archive_from_new_cmds \ 16778old_archive_from_expsyms_cmds \ 16779archive_cmds \ 16780archive_expsym_cmds \ 16781module_cmds \ 16782module_expsym_cmds \ 16783export_symbols_cmds \ 16784prelink_cmds \ 16785postinstall_cmds \ 16786postuninstall_cmds \ 16787finish_cmds \ 16788sys_lib_search_path_spec \ 16789sys_lib_dlsearch_path_spec; do 16790 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16791 *[\\\\\\\`\\"\\\$]*) 16792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16793 ;; 16794 *) 16795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16796 ;; 16797 esac 16798done 16799 16800# Fix-up fallback echo if it was mangled by the above quoting rules. 16801case \$lt_ECHO in 16802*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16803 ;; 16804esac 16805 16806ac_aux_dir='$ac_aux_dir' 16807xsi_shell='$xsi_shell' 16808lt_shell_append='$lt_shell_append' 16809 16810# See if we are running on zsh, and set the options which allow our 16811# commands through without removal of \ escapes INIT. 16812if test -n "\${ZSH_VERSION+set}" ; then 16813 setopt NO_GLOB_SUBST 16814fi 16815 16816 16817 PACKAGE='$PACKAGE' 16818 VERSION='$VERSION' 16819 TIMESTAMP='$TIMESTAMP' 16820 RM='$RM' 16821 ofile='$ofile' 16822 16823 16824 16825 16826_ACEOF 16827 16828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16829 16830# Handling of arguments. 16831for ac_config_target in $ac_config_targets 16832do 16833 case $ac_config_target in 16834 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16835 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16836 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16838 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 16839 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;; 16840 16841 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16842$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16843 { (exit 1); exit 1; }; };; 16844 esac 16845done 16846 16847 16848# If the user did not use the arguments to specify the items to instantiate, 16849# then the envvar interface is used. Set only those that are not. 16850# We use the long form for the default assignment because of an extremely 16851# bizarre bug on SunOS 4.1.3. 16852if $ac_need_defaults; then 16853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16856fi 16857 16858# Have a temporary directory for convenience. Make it in the build tree 16859# simply because there is no reason against having it here, and in addition, 16860# creating and moving files from /tmp can sometimes cause problems. 16861# Hook for its removal unless debugging. 16862# Note that there is a small window in which the directory will not be cleaned: 16863# after its creation but before its name has been assigned to `$tmp'. 16864$debug || 16865{ 16866 tmp= 16867 trap 'exit_status=$? 16868 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16869' 0 16870 trap '{ (exit 1); exit 1; }' 1 2 13 15 16871} 16872# Create a (secure) tmp directory for tmp files. 16873 16874{ 16875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16876 test -n "$tmp" && test -d "$tmp" 16877} || 16878{ 16879 tmp=./conf$$-$RANDOM 16880 (umask 077 && mkdir "$tmp") 16881} || 16882{ 16883 $as_echo "$as_me: cannot create a temporary directory in ." >&2 16884 { (exit 1); exit 1; } 16885} 16886 16887# Set up the scripts for CONFIG_FILES section. 16888# No need to generate them if there are no CONFIG_FILES. 16889# This happens for instance with `./config.status config.h'. 16890if test -n "$CONFIG_FILES"; then 16891 16892 16893ac_cr=' 16894' 16895ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16896if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16897 ac_cs_awk_cr='\\r' 16898else 16899 ac_cs_awk_cr=$ac_cr 16900fi 16901 16902echo 'BEGIN {' >"$tmp/subs1.awk" && 16903_ACEOF 16904 16905 16906{ 16907 echo "cat >conf$$subs.awk <<_ACEOF" && 16908 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16909 echo "_ACEOF" 16910} >conf$$subs.sh || 16911 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16912$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16913 { (exit 1); exit 1; }; } 16914ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16915ac_delim='%!_!# ' 16916for ac_last_try in false false false false false :; do 16917 . ./conf$$subs.sh || 16918 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16919$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16920 { (exit 1); exit 1; }; } 16921 16922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16923 if test $ac_delim_n = $ac_delim_num; then 16924 break 16925 elif $ac_last_try; then 16926 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16927$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16928 { (exit 1); exit 1; }; } 16929 else 16930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16931 fi 16932done 16933rm -f conf$$subs.sh 16934 16935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16936cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16937_ACEOF 16938sed -n ' 16939h 16940s/^/S["/; s/!.*/"]=/ 16941p 16942g 16943s/^[^!]*!// 16944:repl 16945t repl 16946s/'"$ac_delim"'$// 16947t delim 16948:nl 16949h 16950s/\(.\{148\}\).*/\1/ 16951t more1 16952s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16953p 16954n 16955b repl 16956:more1 16957s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16958p 16959g 16960s/.\{148\}// 16961t nl 16962:delim 16963h 16964s/\(.\{148\}\).*/\1/ 16965t more2 16966s/["\\]/\\&/g; s/^/"/; s/$/"/ 16967p 16968b 16969:more2 16970s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16971p 16972g 16973s/.\{148\}// 16974t delim 16975' <conf$$subs.awk | sed ' 16976/^[^""]/{ 16977 N 16978 s/\n// 16979} 16980' >>$CONFIG_STATUS || ac_write_fail=1 16981rm -f conf$$subs.awk 16982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16983_ACAWK 16984cat >>"\$tmp/subs1.awk" <<_ACAWK && 16985 for (key in S) S_is_set[key] = 1 16986 FS = "" 16987 16988} 16989{ 16990 line = $ 0 16991 nfields = split(line, field, "@") 16992 substed = 0 16993 len = length(field[1]) 16994 for (i = 2; i < nfields; i++) { 16995 key = field[i] 16996 keylen = length(key) 16997 if (S_is_set[key]) { 16998 value = S[key] 16999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17000 len += length(value) + length(field[++i]) 17001 substed = 1 17002 } else 17003 len += 1 + keylen 17004 } 17005 17006 print line 17007} 17008 17009_ACAWK 17010_ACEOF 17011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17012if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17014else 17015 cat 17016fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17017 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 17018$as_echo "$as_me: error: could not setup config files machinery" >&2;} 17019 { (exit 1); exit 1; }; } 17020_ACEOF 17021 17022# VPATH may cause trouble with some makes, so we remove $(srcdir), 17023# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17024# trailing colons and then remove the whole line if VPATH becomes empty 17025# (actually we leave an empty line to preserve line numbers). 17026if test "x$srcdir" = x.; then 17027 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17028s/:*\$(srcdir):*/:/ 17029s/:*\${srcdir}:*/:/ 17030s/:*@srcdir@:*/:/ 17031s/^\([^=]*=[ ]*\):*/\1/ 17032s/:*$// 17033s/^[^=]*=[ ]*$// 17034}' 17035fi 17036 17037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17038fi # test -n "$CONFIG_FILES" 17039 17040# Set up the scripts for CONFIG_HEADERS section. 17041# No need to generate them if there are no CONFIG_HEADERS. 17042# This happens for instance with `./config.status Makefile'. 17043if test -n "$CONFIG_HEADERS"; then 17044cat >"$tmp/defines.awk" <<\_ACAWK || 17045BEGIN { 17046_ACEOF 17047 17048# Transform confdefs.h into an awk script `defines.awk', embedded as 17049# here-document in config.status, that substitutes the proper values into 17050# config.h.in to produce config.h. 17051 17052# Create a delimiter string that does not exist in confdefs.h, to ease 17053# handling of long lines. 17054ac_delim='%!_!# ' 17055for ac_last_try in false false :; do 17056 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17057 if test -z "$ac_t"; then 17058 break 17059 elif $ac_last_try; then 17060 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 17061$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 17062 { (exit 1); exit 1; }; } 17063 else 17064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17065 fi 17066done 17067 17068# For the awk script, D is an array of macro values keyed by name, 17069# likewise P contains macro parameters if any. Preserve backslash 17070# newline sequences. 17071 17072ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17073sed -n ' 17074s/.\{148\}/&'"$ac_delim"'/g 17075t rset 17076:rset 17077s/^[ ]*#[ ]*define[ ][ ]*/ / 17078t def 17079d 17080:def 17081s/\\$// 17082t bsnl 17083s/["\\]/\\&/g 17084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17085D["\1"]=" \3"/p 17086s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17087d 17088:bsnl 17089s/["\\]/\\&/g 17090s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17091D["\1"]=" \3\\\\\\n"\\/p 17092t cont 17093s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17094t cont 17095d 17096:cont 17097n 17098s/.\{148\}/&'"$ac_delim"'/g 17099t clear 17100:clear 17101s/\\$// 17102t bsnlc 17103s/["\\]/\\&/g; s/^/"/; s/$/"/p 17104d 17105:bsnlc 17106s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17107b cont 17108' <confdefs.h | sed ' 17109s/'"$ac_delim"'/"\\\ 17110"/g' >>$CONFIG_STATUS || ac_write_fail=1 17111 17112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17113 for (key in D) D_is_set[key] = 1 17114 FS = "" 17115} 17116/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17117 line = \$ 0 17118 split(line, arg, " ") 17119 if (arg[1] == "#") { 17120 defundef = arg[2] 17121 mac1 = arg[3] 17122 } else { 17123 defundef = substr(arg[1], 2) 17124 mac1 = arg[2] 17125 } 17126 split(mac1, mac2, "(") #) 17127 macro = mac2[1] 17128 prefix = substr(line, 1, index(line, defundef) - 1) 17129 if (D_is_set[macro]) { 17130 # Preserve the white space surrounding the "#". 17131 print prefix "define", macro P[macro] D[macro] 17132 next 17133 } else { 17134 # Replace #undef with comments. This is necessary, for example, 17135 # in the case of _POSIX_SOURCE, which is predefined and required 17136 # on some systems where configure will not decide to define it. 17137 if (defundef == "undef") { 17138 print "/*", prefix defundef, macro, "*/" 17139 next 17140 } 17141 } 17142} 17143{ print } 17144_ACAWK 17145_ACEOF 17146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17147 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 17148$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 17149 { (exit 1); exit 1; }; } 17150fi # test -n "$CONFIG_HEADERS" 17151 17152 17153eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17154shift 17155for ac_tag 17156do 17157 case $ac_tag in 17158 :[FHLC]) ac_mode=$ac_tag; continue;; 17159 esac 17160 case $ac_mode$ac_tag in 17161 :[FHL]*:*);; 17162 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 17163$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 17164 { (exit 1); exit 1; }; };; 17165 :[FH]-) ac_tag=-:-;; 17166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17167 esac 17168 ac_save_IFS=$IFS 17169 IFS=: 17170 set x $ac_tag 17171 IFS=$ac_save_IFS 17172 shift 17173 ac_file=$1 17174 shift 17175 17176 case $ac_mode in 17177 :L) ac_source=$1;; 17178 :[FH]) 17179 ac_file_inputs= 17180 for ac_f 17181 do 17182 case $ac_f in 17183 -) ac_f="$tmp/stdin";; 17184 *) # Look for the file first in the build tree, then in the source tree 17185 # (if the path is not absolute). The absolute path cannot be DOS-style, 17186 # because $ac_f cannot contain `:'. 17187 test -f "$ac_f" || 17188 case $ac_f in 17189 [\\/$]*) false;; 17190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17191 esac || 17192 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 17193$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 17194 { (exit 1); exit 1; }; };; 17195 esac 17196 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17197 ac_file_inputs="$ac_file_inputs '$ac_f'" 17198 done 17199 17200 # Let's still pretend it is `configure' which instantiates (i.e., don't 17201 # use $as_me), people would be surprised to read: 17202 # /* config.h. Generated by config.status. */ 17203 configure_input='Generated from '` 17204 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17205 `' by configure.' 17206 if test x"$ac_file" != x-; then 17207 configure_input="$ac_file. $configure_input" 17208 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 17209$as_echo "$as_me: creating $ac_file" >&6;} 17210 fi 17211 # Neutralize special characters interpreted by sed in replacement strings. 17212 case $configure_input in #( 17213 *\&* | *\|* | *\\* ) 17214 ac_sed_conf_input=`$as_echo "$configure_input" | 17215 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17216 *) ac_sed_conf_input=$configure_input;; 17217 esac 17218 17219 case $ac_tag in 17220 *:-:* | *:-) cat >"$tmp/stdin" \ 17221 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17222$as_echo "$as_me: error: could not create $ac_file" >&2;} 17223 { (exit 1); exit 1; }; } ;; 17224 esac 17225 ;; 17226 esac 17227 17228 ac_dir=`$as_dirname -- "$ac_file" || 17229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17230 X"$ac_file" : 'X\(//\)[^/]' \| \ 17231 X"$ac_file" : 'X\(//\)$' \| \ 17232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17233$as_echo X"$ac_file" | 17234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17235 s//\1/ 17236 q 17237 } 17238 /^X\(\/\/\)[^/].*/{ 17239 s//\1/ 17240 q 17241 } 17242 /^X\(\/\/\)$/{ 17243 s//\1/ 17244 q 17245 } 17246 /^X\(\/\).*/{ 17247 s//\1/ 17248 q 17249 } 17250 s/.*/./; q'` 17251 { as_dir="$ac_dir" 17252 case $as_dir in #( 17253 -*) as_dir=./$as_dir;; 17254 esac 17255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17256 as_dirs= 17257 while :; do 17258 case $as_dir in #( 17259 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17260 *) as_qdir=$as_dir;; 17261 esac 17262 as_dirs="'$as_qdir' $as_dirs" 17263 as_dir=`$as_dirname -- "$as_dir" || 17264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17265 X"$as_dir" : 'X\(//\)[^/]' \| \ 17266 X"$as_dir" : 'X\(//\)$' \| \ 17267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17268$as_echo X"$as_dir" | 17269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17270 s//\1/ 17271 q 17272 } 17273 /^X\(\/\/\)[^/].*/{ 17274 s//\1/ 17275 q 17276 } 17277 /^X\(\/\/\)$/{ 17278 s//\1/ 17279 q 17280 } 17281 /^X\(\/\).*/{ 17282 s//\1/ 17283 q 17284 } 17285 s/.*/./; q'` 17286 test -d "$as_dir" && break 17287 done 17288 test -z "$as_dirs" || eval "mkdir $as_dirs" 17289 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17290$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 17291 { (exit 1); exit 1; }; }; } 17292 ac_builddir=. 17293 17294case "$ac_dir" in 17295.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17296*) 17297 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17298 # A ".." for each directory in $ac_dir_suffix. 17299 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17300 case $ac_top_builddir_sub in 17301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17303 esac ;; 17304esac 17305ac_abs_top_builddir=$ac_pwd 17306ac_abs_builddir=$ac_pwd$ac_dir_suffix 17307# for backward compatibility: 17308ac_top_builddir=$ac_top_build_prefix 17309 17310case $srcdir in 17311 .) # We are building in place. 17312 ac_srcdir=. 17313 ac_top_srcdir=$ac_top_builddir_sub 17314 ac_abs_top_srcdir=$ac_pwd ;; 17315 [\\/]* | ?:[\\/]* ) # Absolute name. 17316 ac_srcdir=$srcdir$ac_dir_suffix; 17317 ac_top_srcdir=$srcdir 17318 ac_abs_top_srcdir=$srcdir ;; 17319 *) # Relative name. 17320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17321 ac_top_srcdir=$ac_top_build_prefix$srcdir 17322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17323esac 17324ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17325 17326 17327 case $ac_mode in 17328 :F) 17329 # 17330 # CONFIG_FILE 17331 # 17332 17333 case $INSTALL in 17334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17336 esac 17337 ac_MKDIR_P=$MKDIR_P 17338 case $MKDIR_P in 17339 [\\/$]* | ?:[\\/]* ) ;; 17340 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17341 esac 17342_ACEOF 17343 17344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17345# If the template does not know about datarootdir, expand it. 17346# FIXME: This hack should be removed a few years after 2.60. 17347ac_datarootdir_hack=; ac_datarootdir_seen= 17348 17349ac_sed_dataroot=' 17350/datarootdir/ { 17351 p 17352 q 17353} 17354/@datadir@/p 17355/@docdir@/p 17356/@infodir@/p 17357/@localedir@/p 17358/@mandir@/p 17359' 17360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17361*datarootdir*) ac_datarootdir_seen=yes;; 17362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17363 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17365_ACEOF 17366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17367 ac_datarootdir_hack=' 17368 s&@datadir@&$datadir&g 17369 s&@docdir@&$docdir&g 17370 s&@infodir@&$infodir&g 17371 s&@localedir@&$localedir&g 17372 s&@mandir@&$mandir&g 17373 s&\\\${datarootdir}&$datarootdir&g' ;; 17374esac 17375_ACEOF 17376 17377# Neutralize VPATH when `$srcdir' = `.'. 17378# Shell code in configure.ac might set extrasub. 17379# FIXME: do we really want to maintain this feature? 17380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17381ac_sed_extra="$ac_vpsub 17382$extrasub 17383_ACEOF 17384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17385:t 17386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17387s|@configure_input@|$ac_sed_conf_input|;t t 17388s&@top_builddir@&$ac_top_builddir_sub&;t t 17389s&@top_build_prefix@&$ac_top_build_prefix&;t t 17390s&@srcdir@&$ac_srcdir&;t t 17391s&@abs_srcdir@&$ac_abs_srcdir&;t t 17392s&@top_srcdir@&$ac_top_srcdir&;t t 17393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17394s&@builddir@&$ac_builddir&;t t 17395s&@abs_builddir@&$ac_abs_builddir&;t t 17396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17397s&@INSTALL@&$ac_INSTALL&;t t 17398s&@MKDIR_P@&$ac_MKDIR_P&;t t 17399$ac_datarootdir_hack 17400" 17401eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17402 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17403$as_echo "$as_me: error: could not create $ac_file" >&2;} 17404 { (exit 1); exit 1; }; } 17405 17406test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17407 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17408 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17409 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17410which seems to be undefined. Please make sure it is defined." >&5 17411$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17412which seems to be undefined. Please make sure it is defined." >&2;} 17413 17414 rm -f "$tmp/stdin" 17415 case $ac_file in 17416 -) cat "$tmp/out" && rm -f "$tmp/out";; 17417 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17418 esac \ 17419 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17420$as_echo "$as_me: error: could not create $ac_file" >&2;} 17421 { (exit 1); exit 1; }; } 17422 ;; 17423 :H) 17424 # 17425 # CONFIG_HEADER 17426 # 17427 if test x"$ac_file" != x-; then 17428 { 17429 $as_echo "/* $configure_input */" \ 17430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17431 } >"$tmp/config.h" \ 17432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17433$as_echo "$as_me: error: could not create $ac_file" >&2;} 17434 { (exit 1); exit 1; }; } 17435 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17436 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 17437$as_echo "$as_me: $ac_file is unchanged" >&6;} 17438 else 17439 rm -f "$ac_file" 17440 mv "$tmp/config.h" "$ac_file" \ 17441 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17442$as_echo "$as_me: error: could not create $ac_file" >&2;} 17443 { (exit 1); exit 1; }; } 17444 fi 17445 else 17446 $as_echo "/* $configure_input */" \ 17447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17448 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 17449$as_echo "$as_me: error: could not create -" >&2;} 17450 { (exit 1); exit 1; }; } 17451 fi 17452# Compute "$ac_file"'s index in $config_headers. 17453_am_arg="$ac_file" 17454_am_stamp_count=1 17455for _am_header in $config_headers :; do 17456 case $_am_header in 17457 $_am_arg | $_am_arg:* ) 17458 break ;; 17459 * ) 17460 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17461 esac 17462done 17463echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17464$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17465 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17466 X"$_am_arg" : 'X\(//\)$' \| \ 17467 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17468$as_echo X"$_am_arg" | 17469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17470 s//\1/ 17471 q 17472 } 17473 /^X\(\/\/\)[^/].*/{ 17474 s//\1/ 17475 q 17476 } 17477 /^X\(\/\/\)$/{ 17478 s//\1/ 17479 q 17480 } 17481 /^X\(\/\).*/{ 17482 s//\1/ 17483 q 17484 } 17485 s/.*/./; q'`/stamp-h$_am_stamp_count 17486 ;; 17487 17488 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 17489$as_echo "$as_me: executing $ac_file commands" >&6;} 17490 ;; 17491 esac 17492 17493 17494 case $ac_file$ac_mode in 17495 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17496 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17497 # are listed without --file. Let's play safe and only enable the eval 17498 # if we detect the quoting. 17499 case $CONFIG_FILES in 17500 *\'*) eval set x "$CONFIG_FILES" ;; 17501 *) set x $CONFIG_FILES ;; 17502 esac 17503 shift 17504 for mf 17505 do 17506 # Strip MF so we end up with the name of the file. 17507 mf=`echo "$mf" | sed -e 's/:.*$//'` 17508 # Check whether this is an Automake generated Makefile or not. 17509 # We used to match only the files named `Makefile.in', but 17510 # some people rename them; so instead we look at the file content. 17511 # Grep'ing the first line is not enough: some people post-process 17512 # each Makefile.in and add a new line on top of each file to say so. 17513 # Grep'ing the whole file is not good either: AIX grep has a line 17514 # limit of 2048, but all sed's we know have understand at least 4000. 17515 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17516 dirpart=`$as_dirname -- "$mf" || 17517$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17518 X"$mf" : 'X\(//\)[^/]' \| \ 17519 X"$mf" : 'X\(//\)$' \| \ 17520 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17521$as_echo X"$mf" | 17522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17523 s//\1/ 17524 q 17525 } 17526 /^X\(\/\/\)[^/].*/{ 17527 s//\1/ 17528 q 17529 } 17530 /^X\(\/\/\)$/{ 17531 s//\1/ 17532 q 17533 } 17534 /^X\(\/\).*/{ 17535 s//\1/ 17536 q 17537 } 17538 s/.*/./; q'` 17539 else 17540 continue 17541 fi 17542 # Extract the definition of DEPDIR, am__include, and am__quote 17543 # from the Makefile without running `make'. 17544 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17545 test -z "$DEPDIR" && continue 17546 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17547 test -z "am__include" && continue 17548 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17549 # When using ansi2knr, U may be empty or an underscore; expand it 17550 U=`sed -n 's/^U = //p' < "$mf"` 17551 # Find all dependency output files, they are included files with 17552 # $(DEPDIR) in their names. We invoke sed twice because it is the 17553 # simplest approach to changing $(DEPDIR) to its actual value in the 17554 # expansion. 17555 for file in `sed -n " 17556 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17557 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17558 # Make sure the directory exists. 17559 test -f "$dirpart/$file" && continue 17560 fdir=`$as_dirname -- "$file" || 17561$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17562 X"$file" : 'X\(//\)[^/]' \| \ 17563 X"$file" : 'X\(//\)$' \| \ 17564 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17565$as_echo X"$file" | 17566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17567 s//\1/ 17568 q 17569 } 17570 /^X\(\/\/\)[^/].*/{ 17571 s//\1/ 17572 q 17573 } 17574 /^X\(\/\/\)$/{ 17575 s//\1/ 17576 q 17577 } 17578 /^X\(\/\).*/{ 17579 s//\1/ 17580 q 17581 } 17582 s/.*/./; q'` 17583 { as_dir=$dirpart/$fdir 17584 case $as_dir in #( 17585 -*) as_dir=./$as_dir;; 17586 esac 17587 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17588 as_dirs= 17589 while :; do 17590 case $as_dir in #( 17591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17592 *) as_qdir=$as_dir;; 17593 esac 17594 as_dirs="'$as_qdir' $as_dirs" 17595 as_dir=`$as_dirname -- "$as_dir" || 17596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17597 X"$as_dir" : 'X\(//\)[^/]' \| \ 17598 X"$as_dir" : 'X\(//\)$' \| \ 17599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17600$as_echo X"$as_dir" | 17601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17602 s//\1/ 17603 q 17604 } 17605 /^X\(\/\/\)[^/].*/{ 17606 s//\1/ 17607 q 17608 } 17609 /^X\(\/\/\)$/{ 17610 s//\1/ 17611 q 17612 } 17613 /^X\(\/\).*/{ 17614 s//\1/ 17615 q 17616 } 17617 s/.*/./; q'` 17618 test -d "$as_dir" && break 17619 done 17620 test -z "$as_dirs" || eval "mkdir $as_dirs" 17621 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17622$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 17623 { (exit 1); exit 1; }; }; } 17624 # echo "creating $dirpart/$file" 17625 echo '# dummy' > "$dirpart/$file" 17626 done 17627 done 17628} 17629 ;; 17630 "libtool":C) 17631 17632 # See if we are running on zsh, and set the options which allow our 17633 # commands through without removal of \ escapes. 17634 if test -n "${ZSH_VERSION+set}" ; then 17635 setopt NO_GLOB_SUBST 17636 fi 17637 17638 cfgfile="${ofile}T" 17639 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17640 $RM "$cfgfile" 17641 17642 cat <<_LT_EOF >> "$cfgfile" 17643#! $SHELL 17644 17645# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17646# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17647# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17648# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17649# 17650# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17651# 2006, 2007, 2008 Free Software Foundation, Inc. 17652# Written by Gordon Matzigkeit, 1996 17653# 17654# This file is part of GNU Libtool. 17655# 17656# GNU Libtool is free software; you can redistribute it and/or 17657# modify it under the terms of the GNU General Public License as 17658# published by the Free Software Foundation; either version 2 of 17659# the License, or (at your option) any later version. 17660# 17661# As a special exception to the GNU General Public License, 17662# if you distribute this file as part of a program or library that 17663# is built using GNU Libtool, you may include this file under the 17664# same distribution terms that you use for the rest of that program. 17665# 17666# GNU Libtool is distributed in the hope that it will be useful, 17667# but WITHOUT ANY WARRANTY; without even the implied warranty of 17668# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17669# GNU General Public License for more details. 17670# 17671# You should have received a copy of the GNU General Public License 17672# along with GNU Libtool; see the file COPYING. If not, a copy 17673# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17674# obtained by writing to the Free Software Foundation, Inc., 17675# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17676 17677 17678# The names of the tagged configurations supported by this script. 17679available_tags="" 17680 17681# ### BEGIN LIBTOOL CONFIG 17682 17683# Which release of libtool.m4 was used? 17684macro_version=$macro_version 17685macro_revision=$macro_revision 17686 17687# Whether or not to build shared libraries. 17688build_libtool_libs=$enable_shared 17689 17690# Whether or not to build static libraries. 17691build_old_libs=$enable_static 17692 17693# What type of objects to build. 17694pic_mode=$pic_mode 17695 17696# Whether or not to optimize for fast installation. 17697fast_install=$enable_fast_install 17698 17699# The host system. 17700host_alias=$host_alias 17701host=$host 17702host_os=$host_os 17703 17704# The build system. 17705build_alias=$build_alias 17706build=$build 17707build_os=$build_os 17708 17709# A sed program that does not truncate output. 17710SED=$lt_SED 17711 17712# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17713Xsed="\$SED -e 1s/^X//" 17714 17715# A grep program that handles long lines. 17716GREP=$lt_GREP 17717 17718# An ERE matcher. 17719EGREP=$lt_EGREP 17720 17721# A literal string matcher. 17722FGREP=$lt_FGREP 17723 17724# A BSD- or MS-compatible name lister. 17725NM=$lt_NM 17726 17727# Whether we need soft or hard links. 17728LN_S=$lt_LN_S 17729 17730# What is the maximum length of a command? 17731max_cmd_len=$max_cmd_len 17732 17733# Object file suffix (normally "o"). 17734objext=$ac_objext 17735 17736# Executable file suffix (normally ""). 17737exeext=$exeext 17738 17739# whether the shell understands "unset". 17740lt_unset=$lt_unset 17741 17742# turn spaces into newlines. 17743SP2NL=$lt_lt_SP2NL 17744 17745# turn newlines into spaces. 17746NL2SP=$lt_lt_NL2SP 17747 17748# How to create reloadable object files. 17749reload_flag=$lt_reload_flag 17750reload_cmds=$lt_reload_cmds 17751 17752# An object symbol dumper. 17753OBJDUMP=$lt_OBJDUMP 17754 17755# Method to check whether dependent libraries are shared objects. 17756deplibs_check_method=$lt_deplibs_check_method 17757 17758# Command to use when deplibs_check_method == "file_magic". 17759file_magic_cmd=$lt_file_magic_cmd 17760 17761# The archiver. 17762AR=$lt_AR 17763AR_FLAGS=$lt_AR_FLAGS 17764 17765# A symbol stripping program. 17766STRIP=$lt_STRIP 17767 17768# Commands used to install an old-style archive. 17769RANLIB=$lt_RANLIB 17770old_postinstall_cmds=$lt_old_postinstall_cmds 17771old_postuninstall_cmds=$lt_old_postuninstall_cmds 17772 17773# A C compiler. 17774LTCC=$lt_CC 17775 17776# LTCC compiler flags. 17777LTCFLAGS=$lt_CFLAGS 17778 17779# Take the output of nm and produce a listing of raw symbols and C names. 17780global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17781 17782# Transform the output of nm in a proper C declaration. 17783global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17784 17785# Transform the output of nm in a C name address pair. 17786global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17787 17788# Transform the output of nm in a C name address pair when lib prefix is needed. 17789global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17790 17791# The name of the directory that contains temporary libtool files. 17792objdir=$objdir 17793 17794# Shell to use when invoking shell scripts. 17795SHELL=$lt_SHELL 17796 17797# An echo program that does not interpret backslashes. 17798ECHO=$lt_ECHO 17799 17800# Used to examine libraries when file_magic_cmd begins with "file". 17801MAGIC_CMD=$MAGIC_CMD 17802 17803# Must we lock files when doing compilation? 17804need_locks=$lt_need_locks 17805 17806# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17807DSYMUTIL=$lt_DSYMUTIL 17808 17809# Tool to change global to local symbols on Mac OS X. 17810NMEDIT=$lt_NMEDIT 17811 17812# Tool to manipulate fat objects and archives on Mac OS X. 17813LIPO=$lt_LIPO 17814 17815# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17816OTOOL=$lt_OTOOL 17817 17818# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17819OTOOL64=$lt_OTOOL64 17820 17821# Old archive suffix (normally "a"). 17822libext=$libext 17823 17824# Shared library suffix (normally ".so"). 17825shrext_cmds=$lt_shrext_cmds 17826 17827# The commands to extract the exported symbol list from a shared archive. 17828extract_expsyms_cmds=$lt_extract_expsyms_cmds 17829 17830# Variables whose values should be saved in libtool wrapper scripts and 17831# restored at link time. 17832variables_saved_for_relink=$lt_variables_saved_for_relink 17833 17834# Do we need the "lib" prefix for modules? 17835need_lib_prefix=$need_lib_prefix 17836 17837# Do we need a version for libraries? 17838need_version=$need_version 17839 17840# Library versioning type. 17841version_type=$version_type 17842 17843# Shared library runtime path variable. 17844runpath_var=$runpath_var 17845 17846# Shared library path variable. 17847shlibpath_var=$shlibpath_var 17848 17849# Is shlibpath searched before the hard-coded library search path? 17850shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17851 17852# Format of library name prefix. 17853libname_spec=$lt_libname_spec 17854 17855# List of archive names. First name is the real one, the rest are links. 17856# The last name is the one that the linker finds with -lNAME 17857library_names_spec=$lt_library_names_spec 17858 17859# The coded name of the library, if different from the real name. 17860soname_spec=$lt_soname_spec 17861 17862# Command to use after installation of a shared archive. 17863postinstall_cmds=$lt_postinstall_cmds 17864 17865# Command to use after uninstallation of a shared archive. 17866postuninstall_cmds=$lt_postuninstall_cmds 17867 17868# Commands used to finish a libtool library installation in a directory. 17869finish_cmds=$lt_finish_cmds 17870 17871# As "finish_cmds", except a single script fragment to be evaled but 17872# not shown. 17873finish_eval=$lt_finish_eval 17874 17875# Whether we should hardcode library paths into libraries. 17876hardcode_into_libs=$hardcode_into_libs 17877 17878# Compile-time system search path for libraries. 17879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17880 17881# Run-time system search path for libraries. 17882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17883 17884# Whether dlopen is supported. 17885dlopen_support=$enable_dlopen 17886 17887# Whether dlopen of programs is supported. 17888dlopen_self=$enable_dlopen_self 17889 17890# Whether dlopen of statically linked programs is supported. 17891dlopen_self_static=$enable_dlopen_self_static 17892 17893# Commands to strip libraries. 17894old_striplib=$lt_old_striplib 17895striplib=$lt_striplib 17896 17897 17898# The linker used to build libraries. 17899LD=$lt_LD 17900 17901# Commands used to build an old-style archive. 17902old_archive_cmds=$lt_old_archive_cmds 17903 17904# A language specific compiler. 17905CC=$lt_compiler 17906 17907# Is the compiler the GNU compiler? 17908with_gcc=$GCC 17909 17910# Compiler flag to turn off builtin functions. 17911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17912 17913# How to pass a linker flag through the compiler. 17914wl=$lt_lt_prog_compiler_wl 17915 17916# Additional compiler flags for building library objects. 17917pic_flag=$lt_lt_prog_compiler_pic 17918 17919# Compiler flag to prevent dynamic linking. 17920link_static_flag=$lt_lt_prog_compiler_static 17921 17922# Does compiler simultaneously support -c and -o options? 17923compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17924 17925# Whether or not to add -lc for building shared libraries. 17926build_libtool_need_lc=$archive_cmds_need_lc 17927 17928# Whether or not to disallow shared libs when runtime libs are static. 17929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17930 17931# Compiler flag to allow reflexive dlopens. 17932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17933 17934# Compiler flag to generate shared objects directly from archives. 17935whole_archive_flag_spec=$lt_whole_archive_flag_spec 17936 17937# Whether the compiler copes with passing no objects directly. 17938compiler_needs_object=$lt_compiler_needs_object 17939 17940# Create an old-style archive from a shared archive. 17941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17942 17943# Create a temporary old-style archive to link instead of a shared archive. 17944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17945 17946# Commands used to build a shared archive. 17947archive_cmds=$lt_archive_cmds 17948archive_expsym_cmds=$lt_archive_expsym_cmds 17949 17950# Commands used to build a loadable module if different from building 17951# a shared archive. 17952module_cmds=$lt_module_cmds 17953module_expsym_cmds=$lt_module_expsym_cmds 17954 17955# Whether we are building with GNU ld or not. 17956with_gnu_ld=$lt_with_gnu_ld 17957 17958# Flag that allows shared libraries with undefined symbols to be built. 17959allow_undefined_flag=$lt_allow_undefined_flag 17960 17961# Flag that enforces no undefined symbols. 17962no_undefined_flag=$lt_no_undefined_flag 17963 17964# Flag to hardcode \$libdir into a binary during linking. 17965# This must work even if \$libdir does not exist 17966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17967 17968# If ld is used when linking, flag to hardcode \$libdir into a binary 17969# during linking. This must work even if \$libdir does not exist. 17970hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17971 17972# Whether we need a single "-rpath" flag with a separated argument. 17973hardcode_libdir_separator=$lt_hardcode_libdir_separator 17974 17975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17976# DIR into the resulting binary. 17977hardcode_direct=$hardcode_direct 17978 17979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17980# DIR into the resulting binary and the resulting library dependency is 17981# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17982# library is relocated. 17983hardcode_direct_absolute=$hardcode_direct_absolute 17984 17985# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17986# into the resulting binary. 17987hardcode_minus_L=$hardcode_minus_L 17988 17989# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17990# into the resulting binary. 17991hardcode_shlibpath_var=$hardcode_shlibpath_var 17992 17993# Set to "yes" if building a shared library automatically hardcodes DIR 17994# into the library and all subsequent libraries and executables linked 17995# against it. 17996hardcode_automatic=$hardcode_automatic 17997 17998# Set to yes if linker adds runtime paths of dependent libraries 17999# to runtime path list. 18000inherit_rpath=$inherit_rpath 18001 18002# Whether libtool must link a program against all its dependency libraries. 18003link_all_deplibs=$link_all_deplibs 18004 18005# Fix the shell variable \$srcfile for the compiler. 18006fix_srcfile_path=$lt_fix_srcfile_path 18007 18008# Set to "yes" if exported symbols are required. 18009always_export_symbols=$always_export_symbols 18010 18011# The commands to list exported symbols. 18012export_symbols_cmds=$lt_export_symbols_cmds 18013 18014# Symbols that should not be listed in the preloaded symbols. 18015exclude_expsyms=$lt_exclude_expsyms 18016 18017# Symbols that must always be exported. 18018include_expsyms=$lt_include_expsyms 18019 18020# Commands necessary for linking programs (against libraries) with templates. 18021prelink_cmds=$lt_prelink_cmds 18022 18023# Specify filename containing input files. 18024file_list_spec=$lt_file_list_spec 18025 18026# How to hardcode a shared library path into an executable. 18027hardcode_action=$hardcode_action 18028 18029# ### END LIBTOOL CONFIG 18030 18031_LT_EOF 18032 18033 case $host_os in 18034 aix3*) 18035 cat <<\_LT_EOF >> "$cfgfile" 18036# AIX sometimes has problems with the GCC collect2 program. For some 18037# reason, if we set the COLLECT_NAMES environment variable, the problems 18038# vanish in a puff of smoke. 18039if test "X${COLLECT_NAMES+set}" != Xset; then 18040 COLLECT_NAMES= 18041 export COLLECT_NAMES 18042fi 18043_LT_EOF 18044 ;; 18045 esac 18046 18047 18048ltmain="$ac_aux_dir/ltmain.sh" 18049 18050 18051 # We use sed instead of cat because bash on DJGPP gets confused if 18052 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18053 # text mode, it properly converts lines to CR/LF. This bash problem 18054 # is reportedly fixed, but why not run on old versions too? 18055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18056 || (rm -f "$cfgfile"; exit 1) 18057 18058 case $xsi_shell in 18059 yes) 18060 cat << \_LT_EOF >> "$cfgfile" 18061 18062# func_dirname file append nondir_replacement 18063# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18064# otherwise set result to NONDIR_REPLACEMENT. 18065func_dirname () 18066{ 18067 case ${1} in 18068 */*) func_dirname_result="${1%/*}${2}" ;; 18069 * ) func_dirname_result="${3}" ;; 18070 esac 18071} 18072 18073# func_basename file 18074func_basename () 18075{ 18076 func_basename_result="${1##*/}" 18077} 18078 18079# func_dirname_and_basename file append nondir_replacement 18080# perform func_basename and func_dirname in a single function 18081# call: 18082# dirname: Compute the dirname of FILE. If nonempty, 18083# add APPEND to the result, otherwise set result 18084# to NONDIR_REPLACEMENT. 18085# value returned in "$func_dirname_result" 18086# basename: Compute filename of FILE. 18087# value retuned in "$func_basename_result" 18088# Implementation must be kept synchronized with func_dirname 18089# and func_basename. For efficiency, we do not delegate to 18090# those functions but instead duplicate the functionality here. 18091func_dirname_and_basename () 18092{ 18093 case ${1} in 18094 */*) func_dirname_result="${1%/*}${2}" ;; 18095 * ) func_dirname_result="${3}" ;; 18096 esac 18097 func_basename_result="${1##*/}" 18098} 18099 18100# func_stripname prefix suffix name 18101# strip PREFIX and SUFFIX off of NAME. 18102# PREFIX and SUFFIX must not contain globbing or regex special 18103# characters, hashes, percent signs, but SUFFIX may contain a leading 18104# dot (in which case that matches only a dot). 18105func_stripname () 18106{ 18107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18108 # positional parameters, so assign one to ordinary parameter first. 18109 func_stripname_result=${3} 18110 func_stripname_result=${func_stripname_result#"${1}"} 18111 func_stripname_result=${func_stripname_result%"${2}"} 18112} 18113 18114# func_opt_split 18115func_opt_split () 18116{ 18117 func_opt_split_opt=${1%%=*} 18118 func_opt_split_arg=${1#*=} 18119} 18120 18121# func_lo2o object 18122func_lo2o () 18123{ 18124 case ${1} in 18125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18126 *) func_lo2o_result=${1} ;; 18127 esac 18128} 18129 18130# func_xform libobj-or-source 18131func_xform () 18132{ 18133 func_xform_result=${1%.*}.lo 18134} 18135 18136# func_arith arithmetic-term... 18137func_arith () 18138{ 18139 func_arith_result=$(( $* )) 18140} 18141 18142# func_len string 18143# STRING may not start with a hyphen. 18144func_len () 18145{ 18146 func_len_result=${#1} 18147} 18148 18149_LT_EOF 18150 ;; 18151 *) # Bourne compatible functions. 18152 cat << \_LT_EOF >> "$cfgfile" 18153 18154# func_dirname file append nondir_replacement 18155# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18156# otherwise set result to NONDIR_REPLACEMENT. 18157func_dirname () 18158{ 18159 # Extract subdirectory from the argument. 18160 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 18161 if test "X$func_dirname_result" = "X${1}"; then 18162 func_dirname_result="${3}" 18163 else 18164 func_dirname_result="$func_dirname_result${2}" 18165 fi 18166} 18167 18168# func_basename file 18169func_basename () 18170{ 18171 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 18172} 18173 18174 18175# func_stripname prefix suffix name 18176# strip PREFIX and SUFFIX off of NAME. 18177# PREFIX and SUFFIX must not contain globbing or regex special 18178# characters, hashes, percent signs, but SUFFIX may contain a leading 18179# dot (in which case that matches only a dot). 18180# func_strip_suffix prefix name 18181func_stripname () 18182{ 18183 case ${2} in 18184 .*) func_stripname_result=`$ECHO "X${3}" \ 18185 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 18186 *) func_stripname_result=`$ECHO "X${3}" \ 18187 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 18188 esac 18189} 18190 18191# sed scripts: 18192my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18193my_sed_long_arg='1s/^-[^=]*=//' 18194 18195# func_opt_split 18196func_opt_split () 18197{ 18198 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 18199 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 18200} 18201 18202# func_lo2o object 18203func_lo2o () 18204{ 18205 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 18206} 18207 18208# func_xform libobj-or-source 18209func_xform () 18210{ 18211 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 18212} 18213 18214# func_arith arithmetic-term... 18215func_arith () 18216{ 18217 func_arith_result=`expr "$@"` 18218} 18219 18220# func_len string 18221# STRING may not start with a hyphen. 18222func_len () 18223{ 18224 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18225} 18226 18227_LT_EOF 18228esac 18229 18230case $lt_shell_append in 18231 yes) 18232 cat << \_LT_EOF >> "$cfgfile" 18233 18234# func_append var value 18235# Append VALUE to the end of shell variable VAR. 18236func_append () 18237{ 18238 eval "$1+=\$2" 18239} 18240_LT_EOF 18241 ;; 18242 *) 18243 cat << \_LT_EOF >> "$cfgfile" 18244 18245# func_append var value 18246# Append VALUE to the end of shell variable VAR. 18247func_append () 18248{ 18249 eval "$1=\$$1\$2" 18250} 18251 18252_LT_EOF 18253 ;; 18254 esac 18255 18256 18257 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18258 || (rm -f "$cfgfile"; exit 1) 18259 18260 mv -f "$cfgfile" "$ofile" || 18261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18262 chmod +x "$ofile" 18263 18264 ;; 18265 18266 esac 18267done # for ac_tag 18268 18269 18270{ (exit 0); exit 0; } 18271_ACEOF 18272chmod +x $CONFIG_STATUS 18273ac_clean_files=$ac_clean_files_save 18274 18275test $ac_write_fail = 0 || 18276 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 18277$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 18278 { (exit 1); exit 1; }; } 18279 18280 18281# configure is writing to config.log, and then calls config.status. 18282# config.status does its own redirection, appending to config.log. 18283# Unfortunately, on DOS this fails, as config.log is still kept open 18284# by configure, so config.status won't be able to write to it; its 18285# output is simply discarded. So we exec the FD to /dev/null, 18286# effectively closing config.log, so it can be properly (re)opened and 18287# appended to by config.status. When coming back to configure, we 18288# need to make the FD available again. 18289if test "$no_create" != yes; then 18290 ac_cs_success=: 18291 ac_config_status_args= 18292 test "$silent" = yes && 18293 ac_config_status_args="$ac_config_status_args --quiet" 18294 exec 5>/dev/null 18295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18296 exec 5>>config.log 18297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18298 # would make configure fail if this is the last instruction. 18299 $ac_cs_success || { (exit 1); exit 1; } 18300fi 18301if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18302 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18303$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18304fi 18305 18306