1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for sqlite 3.8.3. 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=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME='sqlite' 745PACKAGE_TARNAME='sqlite' 746PACKAGE_VERSION='3.8.3' 747PACKAGE_STRING='sqlite 3.8.3' 748PACKAGE_BUGREPORT='' 749 750# Factoring default headers for most tests. 751ac_includes_default="\ 752#include <stdio.h> 753#ifdef HAVE_SYS_TYPES_H 754# include <sys/types.h> 755#endif 756#ifdef HAVE_SYS_STAT_H 757# include <sys/stat.h> 758#endif 759#ifdef STDC_HEADERS 760# include <stdlib.h> 761# include <stddef.h> 762#else 763# ifdef HAVE_STDLIB_H 764# include <stdlib.h> 765# endif 766#endif 767#ifdef HAVE_STRING_H 768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 769# include <memory.h> 770# endif 771# include <string.h> 772#endif 773#ifdef HAVE_STRINGS_H 774# include <strings.h> 775#endif 776#ifdef HAVE_INTTYPES_H 777# include <inttypes.h> 778#endif 779#ifdef HAVE_STDINT_H 780# include <stdint.h> 781#endif 782#ifdef HAVE_UNISTD_H 783# include <unistd.h> 784#endif" 785 786ac_subst_vars='SHELL 787PATH_SEPARATOR 788PACKAGE_NAME 789PACKAGE_TARNAME 790PACKAGE_VERSION 791PACKAGE_STRING 792PACKAGE_BUGREPORT 793exec_prefix 794prefix 795program_transform_name 796bindir 797sbindir 798libexecdir 799datarootdir 800datadir 801sysconfdir 802sharedstatedir 803localstatedir 804includedir 805oldincludedir 806docdir 807infodir 808htmldir 809dvidir 810pdfdir 811psdir 812libdir 813localedir 814mandir 815DEFS 816ECHO_C 817ECHO_N 818ECHO_T 819LIBS 820build_alias 821host_alias 822target_alias 823LIBTOOL 824build 825build_cpu 826build_vendor 827build_os 828host 829host_cpu 830host_vendor 831host_os 832CC 833CFLAGS 834LDFLAGS 835CPPFLAGS 836ac_ct_CC 837EXEEXT 838OBJEXT 839SED 840GREP 841EGREP 842FGREP 843LD 844DUMPBIN 845ac_ct_DUMPBIN 846NM 847LN_S 848OBJDUMP 849AR 850STRIP 851RANLIB 852lt_ECHO 853DSYMUTIL 854NMEDIT 855LIPO 856OTOOL 857OTOOL64 858CPP 859INSTALL_PROGRAM 860INSTALL_SCRIPT 861INSTALL_DATA 862AWK 863TCLSH_CMD 864TCLLIBDIR 865program_prefix 866VERSION 867RELEASE 868VERSION_NUMBER 869BUILD_CC 870SQLITE_THREADSAFE 871XTHREADCONNECT 872ALLOWRELEASE 873TEMP_STORE 874BUILD_EXEEXT 875SQLITE_OS_UNIX 876SQLITE_OS_WIN 877TARGET_EXEEXT 878TCL_VERSION 879TCL_BIN_DIR 880TCL_SRC_DIR 881TCL_INCLUDE_SPEC 882TCL_LIB_FILE 883TCL_LIB_FLAG 884TCL_LIB_SPEC 885TCL_STUB_LIB_FILE 886TCL_STUB_LIB_FLAG 887TCL_STUB_LIB_SPEC 888HAVE_TCL 889TARGET_READLINE_LIBS 890TARGET_READLINE_INC 891TARGET_HAVE_READLINE 892TARGET_DEBUG 893USE_AMALGAMATION 894OPT_FEATURE_FLAGS 895USE_GCOV 896BUILD_CFLAGS 897LIBOBJS 898LTLIBOBJS' 899ac_subst_files='' 900ac_user_opts=' 901enable_option_checking 902enable_shared 903enable_static 904with_pic 905enable_fast_install 906with_gnu_ld 907enable_libtool_lock 908enable_largefile 909with_hints 910enable_threadsafe 911enable_cross_thread_connections 912enable_releasemode 913enable_tempstore 914enable_tcl 915with_tcl 916enable_readline 917with_readline_lib 918with_readline_inc 919enable_debug 920enable_amalgamation 921enable_load_extension 922enable_gcov 923' 924 ac_precious_vars='build_alias 925host_alias 926target_alias 927CC 928CFLAGS 929LDFLAGS 930LIBS 931CPPFLAGS 932CPP 933TCLLIBDIR' 934 935 936# Initialize some variables set by options. 937ac_init_help= 938ac_init_version=false 939ac_unrecognized_opts= 940ac_unrecognized_sep= 941# The variables have the same names as the options, with 942# dashes changed to underlines. 943cache_file=/dev/null 944exec_prefix=NONE 945no_create= 946no_recursion= 947prefix=NONE 948program_prefix=NONE 949program_suffix=NONE 950program_transform_name=s,x,x, 951silent= 952site= 953srcdir= 954verbose= 955x_includes=NONE 956x_libraries=NONE 957 958# Installation directory options. 959# These are left unexpanded so users can "make install exec_prefix=/foo" 960# and all the variables that are supposed to be based on exec_prefix 961# by default will actually change. 962# Use braces instead of parens because sh, perl, etc. also accept them. 963# (The list follows the same order as the GNU Coding Standards.) 964bindir='${exec_prefix}/bin' 965sbindir='${exec_prefix}/sbin' 966libexecdir='${exec_prefix}/libexec' 967datarootdir='${prefix}/share' 968datadir='${datarootdir}' 969sysconfdir='${prefix}/etc' 970sharedstatedir='${prefix}/com' 971localstatedir='${prefix}/var' 972includedir='${prefix}/include' 973oldincludedir='/usr/include' 974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 975infodir='${datarootdir}/info' 976htmldir='${docdir}' 977dvidir='${docdir}' 978pdfdir='${docdir}' 979psdir='${docdir}' 980libdir='${exec_prefix}/lib' 981localedir='${datarootdir}/locale' 982mandir='${datarootdir}/man' 983 984ac_prev= 985ac_dashdash= 986for ac_option 987do 988 # If the previous option needs an argument, assign it. 989 if test -n "$ac_prev"; then 990 eval $ac_prev=\$ac_option 991 ac_prev= 992 continue 993 fi 994 995 case $ac_option in 996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1043 { (exit 1); exit 1; }; } 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=no ;; 1054 1055 -docdir | --docdir | --docdi | --doc | --do) 1056 ac_prev=docdir ;; 1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1058 docdir=$ac_optarg ;; 1059 1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1061 ac_prev=dvidir ;; 1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1063 dvidir=$ac_optarg ;; 1064 1065 -enable-* | --enable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1226 ac_prev=sbindir ;; 1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1228 | --sbi=* | --sb=*) 1229 sbindir=$ac_optarg ;; 1230 1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1233 | --sharedst | --shareds | --shared | --share | --shar \ 1234 | --sha | --sh) 1235 ac_prev=sharedstatedir ;; 1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1239 | --sha=* | --sh=*) 1240 sharedstatedir=$ac_optarg ;; 1241 1242 -site | --site | --sit) 1243 ac_prev=site ;; 1244 -site=* | --site=* | --sit=*) 1245 site=$ac_optarg ;; 1246 1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1248 ac_prev=srcdir ;; 1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1250 srcdir=$ac_optarg ;; 1251 1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1253 | --syscon | --sysco | --sysc | --sys | --sy) 1254 ac_prev=sysconfdir ;; 1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1257 sysconfdir=$ac_optarg ;; 1258 1259 -target | --target | --targe | --targ | --tar | --ta | --t) 1260 ac_prev=target_alias ;; 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1262 target_alias=$ac_optarg ;; 1263 1264 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1265 verbose=yes ;; 1266 1267 -version | --version | --versio | --versi | --vers | -V) 1268 ac_init_version=: ;; 1269 1270 -with-* | --with-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1275 { (exit 1); exit 1; }; } 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280"with_$ac_useropt" 1281"*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1292 { (exit 1); exit 1; }; } 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=no ;; 1303 1304 --x) 1305 # Obsolete; use --with-x. 1306 with_x=yes ;; 1307 1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1309 | --x-incl | --x-inc | --x-in | --x-i) 1310 ac_prev=x_includes ;; 1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1313 x_includes=$ac_optarg ;; 1314 1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1317 ac_prev=x_libraries ;; 1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1320 x_libraries=$ac_optarg ;; 1321 1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1323Try \`$0 --help' for more information." >&2 1324 { (exit 1); exit 1; }; } 1325 ;; 1326 1327 *=*) 1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1332 { (exit 1); exit 1; }; } 1333 eval $ac_envvar=\$ac_optarg 1334 export $ac_envvar ;; 1335 1336 *) 1337 # FIXME: should be removed in autoconf 3.0. 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1342 ;; 1343 1344 esac 1345done 1346 1347if test -n "$ac_prev"; then 1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1350 { (exit 1); exit 1; }; } 1351fi 1352 1353if test -n "$ac_unrecognized_opts"; then 1354 case $enable_option_checking in 1355 no) ;; 1356 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1357 { (exit 1); exit 1; }; } ;; 1358 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360fi 1361 1362# Check all directory arguments for consistency. 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir 1367do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1381 { (exit 1); exit 1; }; } 1382done 1383 1384# There might be people who depend on the old broken behavior: `$host' 1385# used to hold the argument of --host etc. 1386# FIXME: To remove some day. 1387build=$build_alias 1388host=$host_alias 1389target=$target_alias 1390 1391# FIXME: To remove some day. 1392if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1396 If a cross compiler is detected then cross compile mode will be used." >&2 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400fi 1401 1402ac_tool_prefix= 1403test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405test "$silent" = yes && exec 6>/dev/null 1406 1407 1408ac_pwd=`pwd` && test -n "$ac_pwd" && 1409ac_ls_di=`ls -di .` && 1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1412 { (exit 1); exit 1; }; } 1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1415 { (exit 1); exit 1; }; } 1416 1417 1418# Find the source files, if location was not specified. 1419if test -z "$srcdir"; then 1420 ac_srcdir_defaulted=yes 1421 # Try the directory containing this script, then the parent directory. 1422 ac_confdir=`$as_dirname -- "$as_myself" || 1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1424 X"$as_myself" : 'X\(//\)[^/]' \| \ 1425 X"$as_myself" : 'X\(//\)$' \| \ 1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1427$as_echo X"$as_myself" | 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)[^/].*/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\).*/{ 1441 s//\1/ 1442 q 1443 } 1444 s/.*/./; q'` 1445 srcdir=$ac_confdir 1446 if test ! -r "$srcdir/$ac_unique_file"; then 1447 srcdir=.. 1448 fi 1449else 1450 ac_srcdir_defaulted=no 1451fi 1452if test ! -r "$srcdir/$ac_unique_file"; then 1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1455 { (exit 1); exit 1; }; } 1456fi 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1458ac_abs_confdir=`( 1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1460 { (exit 1); exit 1; }; } 1461 pwd)` 1462# When building in place, set srcdir=. 1463if test "$ac_abs_confdir" = "$ac_pwd"; then 1464 srcdir=. 1465fi 1466# Remove unnecessary trailing slashes from srcdir. 1467# Double slashes in file names in object file debugging info 1468# mess up M-x gdb in Emacs. 1469case $srcdir in 1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1471esac 1472for ac_var in $ac_precious_vars; do 1473 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_env_${ac_var}_value=\$${ac_var} 1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1477done 1478 1479# 1480# Report the --help message. 1481# 1482if test "$ac_init_help" = "long"; then 1483 # Omit some internal or obsolete options to make the list less imposing. 1484 # This message is too long to be a string in the A/UX 3.1 sh. 1485 cat <<_ACEOF 1486\`configure' configures sqlite 3.8.3 to adapt to many kinds of systems. 1487 1488Usage: $0 [OPTION]... [VAR=VALUE]... 1489 1490To assign environment variables (e.g., CC, CFLAGS...), specify them as 1491VAR=VALUE. See below for descriptions of some of the useful variables. 1492 1493Defaults for the options are specified in brackets. 1494 1495Configuration: 1496 -h, --help display this help and exit 1497 --help=short display options specific to this package 1498 --help=recursive display the short help of all the included packages 1499 -V, --version display version information and exit 1500 -q, --quiet, --silent do not print \`checking...' messages 1501 --cache-file=FILE cache test results in FILE [disabled] 1502 -C, --config-cache alias for \`--cache-file=config.cache' 1503 -n, --no-create do not create output files 1504 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1505 1506Installation directories: 1507 --prefix=PREFIX install architecture-independent files in PREFIX 1508 [$ac_default_prefix] 1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1510 [PREFIX] 1511 1512By default, \`make install' will install all the files in 1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1514an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1515for instance \`--prefix=\$HOME'. 1516 1517For better control, use the options below. 1518 1519Fine tuning of the installation directories: 1520 --bindir=DIR user executables [EPREFIX/bin] 1521 --sbindir=DIR system admin executables [EPREFIX/sbin] 1522 --libexecdir=DIR program executables [EPREFIX/libexec] 1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1526 --libdir=DIR object code libraries [EPREFIX/lib] 1527 --includedir=DIR C header files [PREFIX/include] 1528 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1531 --infodir=DIR info documentation [DATAROOTDIR/info] 1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1533 --mandir=DIR man documentation [DATAROOTDIR/man] 1534 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1535 --htmldir=DIR html documentation [DOCDIR] 1536 --dvidir=DIR dvi documentation [DOCDIR] 1537 --pdfdir=DIR pdf documentation [DOCDIR] 1538 --psdir=DIR ps documentation [DOCDIR] 1539_ACEOF 1540 1541 cat <<\_ACEOF 1542 1543System types: 1544 --build=BUILD configure for building on BUILD [guessed] 1545 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1546_ACEOF 1547fi 1548 1549if test -n "$ac_init_help"; then 1550 case $ac_init_help in 1551 short | recursive ) echo "Configuration of sqlite 3.8.3:";; 1552 esac 1553 cat <<\_ACEOF 1554 1555Optional Features: 1556 --disable-option-checking ignore unrecognized --enable/--with options 1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1559 --enable-shared[=PKGS] build shared libraries [default=yes] 1560 --enable-static[=PKGS] build static libraries [default=yes] 1561 --enable-fast-install[=PKGS] 1562 optimize for fast installation [default=yes] 1563 --disable-libtool-lock avoid locking (might break parallel builds) 1564 --disable-largefile omit support for large files 1565 --enable-threadsafe Support threadsafe operation 1566 --enable-cross-thread-connections 1567 Allow connection sharing across threads 1568 --enable-releasemode Support libtool link to release mode 1569 --enable-tempstore Use an in-ram database for temporary tables 1570 (never,no,yes,always) 1571 --disable-tcl do not build TCL extension 1572 --disable-readline disable readline support [default=detect] 1573 --enable-debug enable debugging & verbose explain 1574 --disable-amalgamation Disable the amalgamation and instead build all files 1575 separately 1576 --enable-load-extension Enable loading of external extensions 1577 --enable-gcov Enable coverage testing using gcov 1578 1579Optional Packages: 1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1582 --with-pic try to use only PIC/non-PIC objects [default=use 1583 both] 1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1585 --with-hints=FILE Read configuration options from FILE 1586 --with-tcl=DIR directory containing tcl configuration 1587 (tclConfig.sh) 1588 --with-readline-lib specify readline library 1589 --with-readline-inc specify readline include paths 1590 1591Some influential environment variables: 1592 CC C compiler command 1593 CFLAGS C compiler flags 1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1595 nonstandard directory <lib dir> 1596 LIBS libraries to pass to the linker, e.g. -l<library> 1597 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1598 you have headers in a nonstandard directory <include dir> 1599 CPP C preprocessor 1600 TCLLIBDIR Where to install tcl plugin 1601 1602Use these variables to override the choices made by `configure' or to help 1603it to find libraries and programs with nonstandard names/locations. 1604 1605_ACEOF 1606ac_status=$? 1607fi 1608 1609if test "$ac_init_help" = "recursive"; then 1610 # If there are subdirs, report their specific --help. 1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1612 test -d "$ac_dir" || 1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1614 continue 1615 ac_builddir=. 1616 1617case "$ac_dir" in 1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619*) 1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1621 # A ".." for each directory in $ac_dir_suffix. 1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1623 case $ac_top_builddir_sub in 1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1626 esac ;; 1627esac 1628ac_abs_top_builddir=$ac_pwd 1629ac_abs_builddir=$ac_pwd$ac_dir_suffix 1630# for backward compatibility: 1631ac_top_builddir=$ac_top_build_prefix 1632 1633case $srcdir in 1634 .) # We are building in place. 1635 ac_srcdir=. 1636 ac_top_srcdir=$ac_top_builddir_sub 1637 ac_abs_top_srcdir=$ac_pwd ;; 1638 [\\/]* | ?:[\\/]* ) # Absolute name. 1639 ac_srcdir=$srcdir$ac_dir_suffix; 1640 ac_top_srcdir=$srcdir 1641 ac_abs_top_srcdir=$srcdir ;; 1642 *) # Relative name. 1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1644 ac_top_srcdir=$ac_top_build_prefix$srcdir 1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1646esac 1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1648 1649 cd "$ac_dir" || { ac_status=$?; continue; } 1650 # Check for guested configure. 1651 if test -f "$ac_srcdir/configure.gnu"; then 1652 echo && 1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1654 elif test -f "$ac_srcdir/configure"; then 1655 echo && 1656 $SHELL "$ac_srcdir/configure" --help=recursive 1657 else 1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1659 fi || ac_status=$? 1660 cd "$ac_pwd" || { ac_status=$?; break; } 1661 done 1662fi 1663 1664test -n "$ac_init_help" && exit $ac_status 1665if $ac_init_version; then 1666 cat <<\_ACEOF 1667sqlite configure 3.8.3 1668generated by GNU Autoconf 2.62 1669 1670Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16712002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1672This configure script is free software; the Free Software Foundation 1673gives unlimited permission to copy, distribute and modify it. 1674_ACEOF 1675 exit 1676fi 1677cat >config.log <<_ACEOF 1678This file contains any messages produced by compilers while 1679running configure, to aid debugging if configure makes a mistake. 1680 1681It was created by sqlite $as_me 3.8.3, which was 1682generated by GNU Autoconf 2.62. Invocation command line was 1683 1684 $ $0 $@ 1685 1686_ACEOF 1687exec 5>>config.log 1688{ 1689cat <<_ASUNAME 1690## --------- ## 1691## Platform. ## 1692## --------- ## 1693 1694hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1695uname -m = `(uname -m) 2>/dev/null || echo unknown` 1696uname -r = `(uname -r) 2>/dev/null || echo unknown` 1697uname -s = `(uname -s) 2>/dev/null || echo unknown` 1698uname -v = `(uname -v) 2>/dev/null || echo unknown` 1699 1700/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1701/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1702 1703/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1704/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1705/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1706/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1707/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1708/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1709/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1710 1711_ASUNAME 1712 1713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1714for as_dir in $PATH 1715do 1716 IFS=$as_save_IFS 1717 test -z "$as_dir" && as_dir=. 1718 $as_echo "PATH: $as_dir" 1719done 1720IFS=$as_save_IFS 1721 1722} >&5 1723 1724cat >&5 <<_ACEOF 1725 1726 1727## ----------- ## 1728## Core tests. ## 1729## ----------- ## 1730 1731_ACEOF 1732 1733 1734# Keep a trace of the command line. 1735# Strip out --no-create and --no-recursion so they do not pile up. 1736# Strip out --silent because we don't want to record it for future runs. 1737# Also quote any args containing shell meta-characters. 1738# Make two passes to allow for proper duplicate-argument suppression. 1739ac_configure_args= 1740ac_configure_args0= 1741ac_configure_args1= 1742ac_must_keep_next=false 1743for ac_pass in 1 2 1744do 1745 for ac_arg 1746 do 1747 case $ac_arg in 1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1750 | -silent | --silent | --silen | --sile | --sil) 1751 continue ;; 1752 *\'*) 1753 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1754 esac 1755 case $ac_pass in 1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1757 2) 1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1759 if test $ac_must_keep_next = true; then 1760 ac_must_keep_next=false # Got value, back to normal. 1761 else 1762 case $ac_arg in 1763 *=* | --config-cache | -C | -disable-* | --disable-* \ 1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1766 | -with-* | --with-* | -without-* | --without-* | --x) 1767 case "$ac_configure_args0 " in 1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1769 esac 1770 ;; 1771 -* ) ac_must_keep_next=true ;; 1772 esac 1773 fi 1774 ac_configure_args="$ac_configure_args '$ac_arg'" 1775 ;; 1776 esac 1777 done 1778done 1779$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1780$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1781 1782# When interrupted or exit'd, cleanup temporary files, and complete 1783# config.log. We remove comments because anyway the quotes in there 1784# would cause problems or look ugly. 1785# WARNING: Use '\'' to represent an apostrophe within the trap. 1786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1787trap 'exit_status=$? 1788 # Save into config.log some information that might help in debugging. 1789 { 1790 echo 1791 1792 cat <<\_ASBOX 1793## ---------------- ## 1794## Cache variables. ## 1795## ---------------- ## 1796_ASBOX 1797 echo 1798 # The following way of writing the cache mishandles newlines in values, 1799( 1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1801 eval ac_val=\$$ac_var 1802 case $ac_val in #( 1803 *${as_nl}*) 1804 case $ac_var in #( 1805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1806$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1807 esac 1808 case $ac_var in #( 1809 _ | IFS | as_nl) ;; #( 1810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1811 *) $as_unset $ac_var ;; 1812 esac ;; 1813 esac 1814 done 1815 (set) 2>&1 | 1816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1817 *${as_nl}ac_space=\ *) 1818 sed -n \ 1819 "s/'\''/'\''\\\\'\'''\''/g; 1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1821 ;; #( 1822 *) 1823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1824 ;; 1825 esac | 1826 sort 1827) 1828 echo 1829 1830 cat <<\_ASBOX 1831## ----------------- ## 1832## Output variables. ## 1833## ----------------- ## 1834_ASBOX 1835 echo 1836 for ac_var in $ac_subst_vars 1837 do 1838 eval ac_val=\$$ac_var 1839 case $ac_val in 1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1841 esac 1842 $as_echo "$ac_var='\''$ac_val'\''" 1843 done | sort 1844 echo 1845 1846 if test -n "$ac_subst_files"; then 1847 cat <<\_ASBOX 1848## ------------------- ## 1849## File substitutions. ## 1850## ------------------- ## 1851_ASBOX 1852 echo 1853 for ac_var in $ac_subst_files 1854 do 1855 eval ac_val=\$$ac_var 1856 case $ac_val in 1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1858 esac 1859 $as_echo "$ac_var='\''$ac_val'\''" 1860 done | sort 1861 echo 1862 fi 1863 1864 if test -s confdefs.h; then 1865 cat <<\_ASBOX 1866## ----------- ## 1867## confdefs.h. ## 1868## ----------- ## 1869_ASBOX 1870 echo 1871 cat confdefs.h 1872 echo 1873 fi 1874 test "$ac_signal" != 0 && 1875 $as_echo "$as_me: caught signal $ac_signal" 1876 $as_echo "$as_me: exit $exit_status" 1877 } >&5 1878 rm -f core *.core core.conftest.* && 1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1880 exit $exit_status 1881' 0 1882for ac_signal in 1 2 13 15; do 1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1884done 1885ac_signal=0 1886 1887# confdefs.h avoids OS command line length limits that DEFS can exceed. 1888rm -f -r conftest* confdefs.h 1889 1890# Predefined preprocessor variables. 1891 1892cat >>confdefs.h <<_ACEOF 1893#define PACKAGE_NAME "$PACKAGE_NAME" 1894_ACEOF 1895 1896 1897cat >>confdefs.h <<_ACEOF 1898#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1899_ACEOF 1900 1901 1902cat >>confdefs.h <<_ACEOF 1903#define PACKAGE_VERSION "$PACKAGE_VERSION" 1904_ACEOF 1905 1906 1907cat >>confdefs.h <<_ACEOF 1908#define PACKAGE_STRING "$PACKAGE_STRING" 1909_ACEOF 1910 1911 1912cat >>confdefs.h <<_ACEOF 1913#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1914_ACEOF 1915 1916 1917# Let the site file select an alternate cache file if it wants to. 1918# Prefer an explicitly selected file to automatically selected ones. 1919ac_site_file1=NONE 1920ac_site_file2=NONE 1921if test -n "$CONFIG_SITE"; then 1922 ac_site_file1=$CONFIG_SITE 1923elif test "x$prefix" != xNONE; then 1924 ac_site_file1=$prefix/share/config.site 1925 ac_site_file2=$prefix/etc/config.site 1926else 1927 ac_site_file1=$ac_default_prefix/share/config.site 1928 ac_site_file2=$ac_default_prefix/etc/config.site 1929fi 1930for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1931do 1932 test "x$ac_site_file" = xNONE && continue 1933 if test -r "$ac_site_file"; then 1934 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1935$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1936 sed 's/^/| /' "$ac_site_file" >&5 1937 . "$ac_site_file" 1938 fi 1939done 1940 1941if test -r "$cache_file"; then 1942 # Some versions of bash will fail to source /dev/null (special 1943 # files actually), so we avoid doing that. 1944 if test -f "$cache_file"; then 1945 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1946$as_echo "$as_me: loading cache $cache_file" >&6;} 1947 case $cache_file in 1948 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1949 *) . "./$cache_file";; 1950 esac 1951 fi 1952else 1953 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1954$as_echo "$as_me: creating cache $cache_file" >&6;} 1955 >$cache_file 1956fi 1957 1958# Check that the precious variables saved in the cache have kept the same 1959# value. 1960ac_cache_corrupted=false 1961for ac_var in $ac_precious_vars; do 1962 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1963 eval ac_new_set=\$ac_env_${ac_var}_set 1964 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1965 eval ac_new_val=\$ac_env_${ac_var}_value 1966 case $ac_old_set,$ac_new_set in 1967 set,) 1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1969$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1970 ac_cache_corrupted=: ;; 1971 ,set) 1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1973$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1974 ac_cache_corrupted=: ;; 1975 ,);; 1976 *) 1977 if test "x$ac_old_val" != "x$ac_new_val"; then 1978 # differences in whitespace do not lead to failure. 1979 ac_old_val_w=`echo x $ac_old_val` 1980 ac_new_val_w=`echo x $ac_new_val` 1981 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1983$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1984 ac_cache_corrupted=: 1985 else 1986 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1987$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1988 eval $ac_var=\$ac_old_val 1989 fi 1990 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1991$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1992 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1993$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1994 fi;; 1995 esac 1996 # Pass precious variables to config.status. 1997 if test "$ac_new_set" = set; then 1998 case $ac_new_val in 1999 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2000 *) ac_arg=$ac_var=$ac_new_val ;; 2001 esac 2002 case " $ac_configure_args " in 2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2005 esac 2006 fi 2007done 2008if $ac_cache_corrupted; then 2009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2010$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2012$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2013 { (exit 1); exit 1; }; } 2014fi 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040ac_ext=c 2041ac_cpp='$CPP $CPPFLAGS' 2042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2044ac_compiler_gnu=$ac_cv_c_compiler_gnu 2045 2046 2047 2048sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2049if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2050{ { $as_echo "$as_me:$LINENO: error: configure script is out of date: 2051 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2052 top level VERSION file = $sqlite_version_sanity_check 2053please regen with autoconf" >&5 2054$as_echo "$as_me: error: configure script is out of date: 2055 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2056 top level VERSION file = $sqlite_version_sanity_check 2057please regen with autoconf" >&2;} 2058 { (exit 1); exit 1; }; } 2059fi 2060 2061# The following RCS revision string applies to configure.in 2062# $Revision: 1.56 $ 2063 2064######### 2065# Programs needed 2066# 2067case `pwd` in 2068 *\ * | *\ *) 2069 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2070$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2071esac 2072 2073 2074 2075macro_version='2.2.6' 2076macro_revision='1.3012' 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090ltmain="$ac_aux_dir/ltmain.sh" 2091 2092ac_aux_dir= 2093for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2094 if test -f "$ac_dir/install-sh"; then 2095 ac_aux_dir=$ac_dir 2096 ac_install_sh="$ac_aux_dir/install-sh -c" 2097 break 2098 elif test -f "$ac_dir/install.sh"; then 2099 ac_aux_dir=$ac_dir 2100 ac_install_sh="$ac_aux_dir/install.sh -c" 2101 break 2102 elif test -f "$ac_dir/shtool"; then 2103 ac_aux_dir=$ac_dir 2104 ac_install_sh="$ac_aux_dir/shtool install -c" 2105 break 2106 fi 2107done 2108if test -z "$ac_aux_dir"; then 2109 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2110$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2111 { (exit 1); exit 1; }; } 2112fi 2113 2114# These three variables are undocumented and unsupported, 2115# and are intended to be withdrawn in a future Autoconf release. 2116# They can cause serious problems if a builder's source tree is in a directory 2117# whose full name contains unusual characters. 2118ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2119ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2120ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2121 2122 2123# Make sure we can run config.sub. 2124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2125 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2126$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2127 { (exit 1); exit 1; }; } 2128 2129{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2130$as_echo_n "checking build system type... " >&6; } 2131if test "${ac_cv_build+set}" = set; then 2132 $as_echo_n "(cached) " >&6 2133else 2134 ac_build_alias=$build_alias 2135test "x$ac_build_alias" = x && 2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2137test "x$ac_build_alias" = x && 2138 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2139$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2140 { (exit 1); exit 1; }; } 2141ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2142 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2143$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2144 { (exit 1); exit 1; }; } 2145 2146fi 2147{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2148$as_echo "$ac_cv_build" >&6; } 2149case $ac_cv_build in 2150*-*-*) ;; 2151*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2152$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2153 { (exit 1); exit 1; }; };; 2154esac 2155build=$ac_cv_build 2156ac_save_IFS=$IFS; IFS='-' 2157set x $ac_cv_build 2158shift 2159build_cpu=$1 2160build_vendor=$2 2161shift; shift 2162# Remember, the first character of IFS is used to create $*, 2163# except with old shells: 2164build_os=$* 2165IFS=$ac_save_IFS 2166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2167 2168 2169{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2170$as_echo_n "checking host system type... " >&6; } 2171if test "${ac_cv_host+set}" = set; then 2172 $as_echo_n "(cached) " >&6 2173else 2174 if test "x$host_alias" = x; then 2175 ac_cv_host=$ac_cv_build 2176else 2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2178 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2179$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2180 { (exit 1); exit 1; }; } 2181fi 2182 2183fi 2184{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2185$as_echo "$ac_cv_host" >&6; } 2186case $ac_cv_host in 2187*-*-*) ;; 2188*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2189$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2190 { (exit 1); exit 1; }; };; 2191esac 2192host=$ac_cv_host 2193ac_save_IFS=$IFS; IFS='-' 2194set x $ac_cv_host 2195shift 2196host_cpu=$1 2197host_vendor=$2 2198shift; shift 2199# Remember, the first character of IFS is used to create $*, 2200# except with old shells: 2201host_os=$* 2202IFS=$ac_save_IFS 2203case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2204 2205 2206ac_ext=c 2207ac_cpp='$CPP $CPPFLAGS' 2208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2210ac_compiler_gnu=$ac_cv_c_compiler_gnu 2211if test -n "$ac_tool_prefix"; then 2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2213set dummy ${ac_tool_prefix}gcc; ac_word=$2 2214{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2215$as_echo_n "checking for $ac_word... " >&6; } 2216if test "${ac_cv_prog_CC+set}" = set; then 2217 $as_echo_n "(cached) " >&6 2218else 2219 if test -n "$CC"; then 2220 ac_cv_prog_CC="$CC" # Let the user override the test. 2221else 2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2223for as_dir in $PATH 2224do 2225 IFS=$as_save_IFS 2226 test -z "$as_dir" && as_dir=. 2227 for ac_exec_ext in '' $ac_executable_extensions; do 2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2229 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2231 break 2 2232 fi 2233done 2234done 2235IFS=$as_save_IFS 2236 2237fi 2238fi 2239CC=$ac_cv_prog_CC 2240if test -n "$CC"; then 2241 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2242$as_echo "$CC" >&6; } 2243else 2244 { $as_echo "$as_me:$LINENO: result: no" >&5 2245$as_echo "no" >&6; } 2246fi 2247 2248 2249fi 2250if test -z "$ac_cv_prog_CC"; then 2251 ac_ct_CC=$CC 2252 # Extract the first word of "gcc", so it can be a program name with args. 2253set dummy gcc; ac_word=$2 2254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2255$as_echo_n "checking for $ac_word... " >&6; } 2256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2257 $as_echo_n "(cached) " >&6 2258else 2259 if test -n "$ac_ct_CC"; then 2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2261else 2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2263for as_dir in $PATH 2264do 2265 IFS=$as_save_IFS 2266 test -z "$as_dir" && as_dir=. 2267 for ac_exec_ext in '' $ac_executable_extensions; do 2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2269 ac_cv_prog_ac_ct_CC="gcc" 2270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2271 break 2 2272 fi 2273done 2274done 2275IFS=$as_save_IFS 2276 2277fi 2278fi 2279ac_ct_CC=$ac_cv_prog_ac_ct_CC 2280if test -n "$ac_ct_CC"; then 2281 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2282$as_echo "$ac_ct_CC" >&6; } 2283else 2284 { $as_echo "$as_me:$LINENO: result: no" >&5 2285$as_echo "no" >&6; } 2286fi 2287 2288 if test "x$ac_ct_CC" = x; then 2289 CC="" 2290 else 2291 case $cross_compiling:$ac_tool_warned in 2292yes:) 2293{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2294whose name does not start with the host triplet. If you think this 2295configuration is useful to you, please write to autoconf@gnu.org." >&5 2296$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2297whose name does not start with the host triplet. If you think this 2298configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2299ac_tool_warned=yes ;; 2300esac 2301 CC=$ac_ct_CC 2302 fi 2303else 2304 CC="$ac_cv_prog_CC" 2305fi 2306 2307if test -z "$CC"; then 2308 if test -n "$ac_tool_prefix"; then 2309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2310set dummy ${ac_tool_prefix}cc; ac_word=$2 2311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2312$as_echo_n "checking for $ac_word... " >&6; } 2313if test "${ac_cv_prog_CC+set}" = set; then 2314 $as_echo_n "(cached) " >&6 2315else 2316 if test -n "$CC"; then 2317 ac_cv_prog_CC="$CC" # Let the user override the test. 2318else 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2320for as_dir in $PATH 2321do 2322 IFS=$as_save_IFS 2323 test -z "$as_dir" && as_dir=. 2324 for ac_exec_ext in '' $ac_executable_extensions; do 2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2326 ac_cv_prog_CC="${ac_tool_prefix}cc" 2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2328 break 2 2329 fi 2330done 2331done 2332IFS=$as_save_IFS 2333 2334fi 2335fi 2336CC=$ac_cv_prog_CC 2337if test -n "$CC"; then 2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2339$as_echo "$CC" >&6; } 2340else 2341 { $as_echo "$as_me:$LINENO: result: no" >&5 2342$as_echo "no" >&6; } 2343fi 2344 2345 2346 fi 2347fi 2348if test -z "$CC"; then 2349 # Extract the first word of "cc", so it can be a program name with args. 2350set dummy cc; ac_word=$2 2351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2352$as_echo_n "checking for $ac_word... " >&6; } 2353if test "${ac_cv_prog_CC+set}" = set; then 2354 $as_echo_n "(cached) " >&6 2355else 2356 if test -n "$CC"; then 2357 ac_cv_prog_CC="$CC" # Let the user override the test. 2358else 2359 ac_prog_rejected=no 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2368 ac_prog_rejected=yes 2369 continue 2370 fi 2371 ac_cv_prog_CC="cc" 2372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377IFS=$as_save_IFS 2378 2379if test $ac_prog_rejected = yes; then 2380 # We found a bogon in the path, so make sure we never use it. 2381 set dummy $ac_cv_prog_CC 2382 shift 2383 if test $# != 0; then 2384 # We chose a different compiler from the bogus one. 2385 # However, it has the same basename, so the bogon will be chosen 2386 # first if we set CC to just the basename; use the full file name. 2387 shift 2388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2389 fi 2390fi 2391fi 2392fi 2393CC=$ac_cv_prog_CC 2394if test -n "$CC"; then 2395 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2396$as_echo "$CC" >&6; } 2397else 2398 { $as_echo "$as_me:$LINENO: result: no" >&5 2399$as_echo "no" >&6; } 2400fi 2401 2402 2403fi 2404if test -z "$CC"; then 2405 if test -n "$ac_tool_prefix"; then 2406 for ac_prog in cl.exe 2407 do 2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2409set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2411$as_echo_n "checking for $ac_word... " >&6; } 2412if test "${ac_cv_prog_CC+set}" = set; then 2413 $as_echo_n "(cached) " >&6 2414else 2415 if test -n "$CC"; then 2416 ac_cv_prog_CC="$CC" # Let the user override the test. 2417else 2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2419for as_dir in $PATH 2420do 2421 IFS=$as_save_IFS 2422 test -z "$as_dir" && as_dir=. 2423 for ac_exec_ext in '' $ac_executable_extensions; do 2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2427 break 2 2428 fi 2429done 2430done 2431IFS=$as_save_IFS 2432 2433fi 2434fi 2435CC=$ac_cv_prog_CC 2436if test -n "$CC"; then 2437 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2438$as_echo "$CC" >&6; } 2439else 2440 { $as_echo "$as_me:$LINENO: result: no" >&5 2441$as_echo "no" >&6; } 2442fi 2443 2444 2445 test -n "$CC" && break 2446 done 2447fi 2448if test -z "$CC"; then 2449 ac_ct_CC=$CC 2450 for ac_prog in cl.exe 2451do 2452 # Extract the first word of "$ac_prog", so it can be a program name with args. 2453set dummy $ac_prog; ac_word=$2 2454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2455$as_echo_n "checking for $ac_word... " >&6; } 2456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2457 $as_echo_n "(cached) " >&6 2458else 2459 if test -n "$ac_ct_CC"; then 2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2461else 2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 for ac_exec_ext in '' $ac_executable_extensions; do 2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2469 ac_cv_prog_ac_ct_CC="$ac_prog" 2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2471 break 2 2472 fi 2473done 2474done 2475IFS=$as_save_IFS 2476 2477fi 2478fi 2479ac_ct_CC=$ac_cv_prog_ac_ct_CC 2480if test -n "$ac_ct_CC"; then 2481 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2482$as_echo "$ac_ct_CC" >&6; } 2483else 2484 { $as_echo "$as_me:$LINENO: result: no" >&5 2485$as_echo "no" >&6; } 2486fi 2487 2488 2489 test -n "$ac_ct_CC" && break 2490done 2491 2492 if test "x$ac_ct_CC" = x; then 2493 CC="" 2494 else 2495 case $cross_compiling:$ac_tool_warned in 2496yes:) 2497{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2498whose name does not start with the host triplet. If you think this 2499configuration is useful to you, please write to autoconf@gnu.org." >&5 2500$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2501whose name does not start with the host triplet. If you think this 2502configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2503ac_tool_warned=yes ;; 2504esac 2505 CC=$ac_ct_CC 2506 fi 2507fi 2508 2509fi 2510 2511 2512test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2513See \`config.log' for more details." >&5 2514$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2515See \`config.log' for more details." >&2;} 2516 { (exit 1); exit 1; }; } 2517 2518# Provide some information about the compiler. 2519$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2520set X $ac_compile 2521ac_compiler=$2 2522{ (ac_try="$ac_compiler --version >&5" 2523case "(($ac_try" in 2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2525 *) ac_try_echo=$ac_try;; 2526esac 2527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2528$as_echo "$ac_try_echo") >&5 2529 (eval "$ac_compiler --version >&5") 2>&5 2530 ac_status=$? 2531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); } 2533{ (ac_try="$ac_compiler -v >&5" 2534case "(($ac_try" in 2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2536 *) ac_try_echo=$ac_try;; 2537esac 2538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2539$as_echo "$ac_try_echo") >&5 2540 (eval "$ac_compiler -v >&5") 2>&5 2541 ac_status=$? 2542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2543 (exit $ac_status); } 2544{ (ac_try="$ac_compiler -V >&5" 2545case "(($ac_try" in 2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2547 *) ac_try_echo=$ac_try;; 2548esac 2549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2550$as_echo "$ac_try_echo") >&5 2551 (eval "$ac_compiler -V >&5") 2>&5 2552 ac_status=$? 2553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); } 2555 2556cat >conftest.$ac_ext <<_ACEOF 2557/* confdefs.h. */ 2558_ACEOF 2559cat confdefs.h >>conftest.$ac_ext 2560cat >>conftest.$ac_ext <<_ACEOF 2561/* end confdefs.h. */ 2562 2563int 2564main () 2565{ 2566 2567 ; 2568 return 0; 2569} 2570_ACEOF 2571ac_clean_files_save=$ac_clean_files 2572ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2573# Try to create an executable without -o first, disregard a.out. 2574# It will help us diagnose broken compilers, and finding out an intuition 2575# of exeext. 2576{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2577$as_echo_n "checking for C compiler default output file name... " >&6; } 2578ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2579 2580# The possible output files: 2581ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2582 2583ac_rmfiles= 2584for ac_file in $ac_files 2585do 2586 case $ac_file in 2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2588 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2589 esac 2590done 2591rm -f $ac_rmfiles 2592 2593if { (ac_try="$ac_link_default" 2594case "(($ac_try" in 2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2596 *) ac_try_echo=$ac_try;; 2597esac 2598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2599$as_echo "$ac_try_echo") >&5 2600 (eval "$ac_link_default") 2>&5 2601 ac_status=$? 2602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2603 (exit $ac_status); }; then 2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2605# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2606# in a Makefile. We should not override ac_cv_exeext if it was cached, 2607# so that the user can short-circuit this test for compilers unknown to 2608# Autoconf. 2609for ac_file in $ac_files '' 2610do 2611 test -f "$ac_file" || continue 2612 case $ac_file in 2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2614 ;; 2615 [ab].out ) 2616 # We found the default executable, but exeext='' is most 2617 # certainly right. 2618 break;; 2619 *.* ) 2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2621 then :; else 2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2623 fi 2624 # We set ac_cv_exeext here because the later test for it is not 2625 # safe: cross compilers may not add the suffix if given an `-o' 2626 # argument, so we may need to know it at that point already. 2627 # Even if this section looks crufty: it has the advantage of 2628 # actually working. 2629 break;; 2630 * ) 2631 break;; 2632 esac 2633done 2634test "$ac_cv_exeext" = no && ac_cv_exeext= 2635 2636else 2637 ac_file='' 2638fi 2639 2640{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2641$as_echo "$ac_file" >&6; } 2642if test -z "$ac_file"; then 2643 $as_echo "$as_me: failed program was:" >&5 2644sed 's/^/| /' conftest.$ac_ext >&5 2645 2646{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2647See \`config.log' for more details." >&5 2648$as_echo "$as_me: error: C compiler cannot create executables 2649See \`config.log' for more details." >&2;} 2650 { (exit 77); exit 77; }; } 2651fi 2652 2653ac_exeext=$ac_cv_exeext 2654 2655# Check that the compiler produces executables we can run. If not, either 2656# the compiler is broken, or we cross compile. 2657{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2658$as_echo_n "checking whether the C compiler works... " >&6; } 2659# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2660# If not cross compiling, check that we can run a simple program. 2661if test "$cross_compiling" != yes; then 2662 if { ac_try='./$ac_file' 2663 { (case "(($ac_try" in 2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2665 *) ac_try_echo=$ac_try;; 2666esac 2667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2668$as_echo "$ac_try_echo") >&5 2669 (eval "$ac_try") 2>&5 2670 ac_status=$? 2671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); }; }; then 2673 cross_compiling=no 2674 else 2675 if test "$cross_compiling" = maybe; then 2676 cross_compiling=yes 2677 else 2678 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2679If you meant to cross compile, use \`--host'. 2680See \`config.log' for more details." >&5 2681$as_echo "$as_me: error: cannot run C compiled programs. 2682If you meant to cross compile, use \`--host'. 2683See \`config.log' for more details." >&2;} 2684 { (exit 1); exit 1; }; } 2685 fi 2686 fi 2687fi 2688{ $as_echo "$as_me:$LINENO: result: yes" >&5 2689$as_echo "yes" >&6; } 2690 2691rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2692ac_clean_files=$ac_clean_files_save 2693# Check that the compiler produces executables we can run. If not, either 2694# the compiler is broken, or we cross compile. 2695{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2696$as_echo_n "checking whether we are cross compiling... " >&6; } 2697{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2698$as_echo "$cross_compiling" >&6; } 2699 2700{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2701$as_echo_n "checking for suffix of executables... " >&6; } 2702if { (ac_try="$ac_link" 2703case "(($ac_try" in 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2705 *) ac_try_echo=$ac_try;; 2706esac 2707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2708$as_echo "$ac_try_echo") >&5 2709 (eval "$ac_link") 2>&5 2710 ac_status=$? 2711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2712 (exit $ac_status); }; then 2713 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2714# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2715# work properly (i.e., refer to `conftest.exe'), while it won't with 2716# `rm'. 2717for ac_file in conftest.exe conftest conftest.*; do 2718 test -f "$ac_file" || continue 2719 case $ac_file in 2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2722 break;; 2723 * ) break;; 2724 esac 2725done 2726else 2727 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2728See \`config.log' for more details." >&5 2729$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2730See \`config.log' for more details." >&2;} 2731 { (exit 1); exit 1; }; } 2732fi 2733 2734rm -f conftest$ac_cv_exeext 2735{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2736$as_echo "$ac_cv_exeext" >&6; } 2737 2738rm -f conftest.$ac_ext 2739EXEEXT=$ac_cv_exeext 2740ac_exeext=$EXEEXT 2741{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2742$as_echo_n "checking for suffix of object files... " >&6; } 2743if test "${ac_cv_objext+set}" = set; then 2744 $as_echo_n "(cached) " >&6 2745else 2746 cat >conftest.$ac_ext <<_ACEOF 2747/* confdefs.h. */ 2748_ACEOF 2749cat confdefs.h >>conftest.$ac_ext 2750cat >>conftest.$ac_ext <<_ACEOF 2751/* end confdefs.h. */ 2752 2753int 2754main () 2755{ 2756 2757 ; 2758 return 0; 2759} 2760_ACEOF 2761rm -f conftest.o conftest.obj 2762if { (ac_try="$ac_compile" 2763case "(($ac_try" in 2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2765 *) ac_try_echo=$ac_try;; 2766esac 2767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2768$as_echo "$ac_try_echo") >&5 2769 (eval "$ac_compile") 2>&5 2770 ac_status=$? 2771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; then 2773 for ac_file in conftest.o conftest.obj conftest.*; do 2774 test -f "$ac_file" || continue; 2775 case $ac_file in 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2778 break;; 2779 esac 2780done 2781else 2782 $as_echo "$as_me: failed program was:" >&5 2783sed 's/^/| /' conftest.$ac_ext >&5 2784 2785{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2786See \`config.log' for more details." >&5 2787$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2788See \`config.log' for more details." >&2;} 2789 { (exit 1); exit 1; }; } 2790fi 2791 2792rm -f conftest.$ac_cv_objext conftest.$ac_ext 2793fi 2794{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2795$as_echo "$ac_cv_objext" >&6; } 2796OBJEXT=$ac_cv_objext 2797ac_objext=$OBJEXT 2798{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2799$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2800if test "${ac_cv_c_compiler_gnu+set}" = set; then 2801 $as_echo_n "(cached) " >&6 2802else 2803 cat >conftest.$ac_ext <<_ACEOF 2804/* confdefs.h. */ 2805_ACEOF 2806cat confdefs.h >>conftest.$ac_ext 2807cat >>conftest.$ac_ext <<_ACEOF 2808/* end confdefs.h. */ 2809 2810int 2811main () 2812{ 2813#ifndef __GNUC__ 2814 choke me 2815#endif 2816 2817 ; 2818 return 0; 2819} 2820_ACEOF 2821rm -f conftest.$ac_objext 2822if { (ac_try="$ac_compile" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2828$as_echo "$ac_try_echo") >&5 2829 (eval "$ac_compile") 2>conftest.er1 2830 ac_status=$? 2831 grep -v '^ *+' conftest.er1 >conftest.err 2832 rm -f conftest.er1 2833 cat conftest.err >&5 2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2835 (exit $ac_status); } && { 2836 test -z "$ac_c_werror_flag" || 2837 test ! -s conftest.err 2838 } && test -s conftest.$ac_objext; then 2839 ac_compiler_gnu=yes 2840else 2841 $as_echo "$as_me: failed program was:" >&5 2842sed 's/^/| /' conftest.$ac_ext >&5 2843 2844 ac_compiler_gnu=no 2845fi 2846 2847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2848ac_cv_c_compiler_gnu=$ac_compiler_gnu 2849 2850fi 2851{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2852$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2853if test $ac_compiler_gnu = yes; then 2854 GCC=yes 2855else 2856 GCC= 2857fi 2858ac_test_CFLAGS=${CFLAGS+set} 2859ac_save_CFLAGS=$CFLAGS 2860{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2861$as_echo_n "checking whether $CC accepts -g... " >&6; } 2862if test "${ac_cv_prog_cc_g+set}" = set; then 2863 $as_echo_n "(cached) " >&6 2864else 2865 ac_save_c_werror_flag=$ac_c_werror_flag 2866 ac_c_werror_flag=yes 2867 ac_cv_prog_cc_g=no 2868 CFLAGS="-g" 2869 cat >conftest.$ac_ext <<_ACEOF 2870/* confdefs.h. */ 2871_ACEOF 2872cat confdefs.h >>conftest.$ac_ext 2873cat >>conftest.$ac_ext <<_ACEOF 2874/* end confdefs.h. */ 2875 2876int 2877main () 2878{ 2879 2880 ; 2881 return 0; 2882} 2883_ACEOF 2884rm -f conftest.$ac_objext 2885if { (ac_try="$ac_compile" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2891$as_echo "$ac_try_echo") >&5 2892 (eval "$ac_compile") 2>conftest.er1 2893 ac_status=$? 2894 grep -v '^ *+' conftest.er1 >conftest.err 2895 rm -f conftest.er1 2896 cat conftest.err >&5 2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); } && { 2899 test -z "$ac_c_werror_flag" || 2900 test ! -s conftest.err 2901 } && test -s conftest.$ac_objext; then 2902 ac_cv_prog_cc_g=yes 2903else 2904 $as_echo "$as_me: failed program was:" >&5 2905sed 's/^/| /' conftest.$ac_ext >&5 2906 2907 CFLAGS="" 2908 cat >conftest.$ac_ext <<_ACEOF 2909/* confdefs.h. */ 2910_ACEOF 2911cat confdefs.h >>conftest.$ac_ext 2912cat >>conftest.$ac_ext <<_ACEOF 2913/* end confdefs.h. */ 2914 2915int 2916main () 2917{ 2918 2919 ; 2920 return 0; 2921} 2922_ACEOF 2923rm -f conftest.$ac_objext 2924if { (ac_try="$ac_compile" 2925case "(($ac_try" in 2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2927 *) ac_try_echo=$ac_try;; 2928esac 2929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2930$as_echo "$ac_try_echo") >&5 2931 (eval "$ac_compile") 2>conftest.er1 2932 ac_status=$? 2933 grep -v '^ *+' conftest.er1 >conftest.err 2934 rm -f conftest.er1 2935 cat conftest.err >&5 2936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } && { 2938 test -z "$ac_c_werror_flag" || 2939 test ! -s conftest.err 2940 } && test -s conftest.$ac_objext; then 2941 : 2942else 2943 $as_echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 ac_c_werror_flag=$ac_save_c_werror_flag 2947 CFLAGS="-g" 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963rm -f conftest.$ac_objext 2964if { (ac_try="$ac_compile" 2965case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968esac 2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2970$as_echo "$ac_try_echo") >&5 2971 (eval "$ac_compile") 2>conftest.er1 2972 ac_status=$? 2973 grep -v '^ *+' conftest.er1 >conftest.err 2974 rm -f conftest.er1 2975 cat conftest.err >&5 2976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); } && { 2978 test -z "$ac_c_werror_flag" || 2979 test ! -s conftest.err 2980 } && test -s conftest.$ac_objext; then 2981 ac_cv_prog_cc_g=yes 2982else 2983 $as_echo "$as_me: failed program was:" >&5 2984sed 's/^/| /' conftest.$ac_ext >&5 2985 2986 2987fi 2988 2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2990fi 2991 2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2993fi 2994 2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2996 ac_c_werror_flag=$ac_save_c_werror_flag 2997fi 2998{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2999$as_echo "$ac_cv_prog_cc_g" >&6; } 3000if test "$ac_test_CFLAGS" = set; then 3001 CFLAGS=$ac_save_CFLAGS 3002elif test $ac_cv_prog_cc_g = yes; then 3003 if test "$GCC" = yes; then 3004 CFLAGS="-g -O2" 3005 else 3006 CFLAGS="-g" 3007 fi 3008else 3009 if test "$GCC" = yes; then 3010 CFLAGS="-O2" 3011 else 3012 CFLAGS= 3013 fi 3014fi 3015{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3016$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3017if test "${ac_cv_prog_cc_c89+set}" = set; then 3018 $as_echo_n "(cached) " >&6 3019else 3020 ac_cv_prog_cc_c89=no 3021ac_save_CC=$CC 3022cat >conftest.$ac_ext <<_ACEOF 3023/* confdefs.h. */ 3024_ACEOF 3025cat confdefs.h >>conftest.$ac_ext 3026cat >>conftest.$ac_ext <<_ACEOF 3027/* end confdefs.h. */ 3028#include <stdarg.h> 3029#include <stdio.h> 3030#include <sys/types.h> 3031#include <sys/stat.h> 3032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3033struct buf { int x; }; 3034FILE * (*rcsopen) (struct buf *, struct stat *, int); 3035static char *e (p, i) 3036 char **p; 3037 int i; 3038{ 3039 return p[i]; 3040} 3041static char *f (char * (*g) (char **, int), char **p, ...) 3042{ 3043 char *s; 3044 va_list v; 3045 va_start (v,p); 3046 s = g (p, va_arg (v,int)); 3047 va_end (v); 3048 return s; 3049} 3050 3051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3052 function prototypes and stuff, but not '\xHH' hex character constants. 3053 These don't provoke an error unfortunately, instead are silently treated 3054 as 'x'. The following induces an error, until -std is added to get 3055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3056 array size at least. It's necessary to write '\x00'==0 to get something 3057 that's true only with -std. */ 3058int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3059 3060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3061 inside strings and character constants. */ 3062#define FOO(x) 'x' 3063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3064 3065int test (int i, double x); 3066struct s1 {int (*f) (int a);}; 3067struct s2 {int (*f) (double a);}; 3068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3069int argc; 3070char **argv; 3071int 3072main () 3073{ 3074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3081do 3082 CC="$ac_save_CC $ac_arg" 3083 rm -f conftest.$ac_objext 3084if { (ac_try="$ac_compile" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3090$as_echo "$ac_try_echo") >&5 3091 (eval "$ac_compile") 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } && { 3098 test -z "$ac_c_werror_flag" || 3099 test ! -s conftest.err 3100 } && test -s conftest.$ac_objext; then 3101 ac_cv_prog_cc_c89=$ac_arg 3102else 3103 $as_echo "$as_me: failed program was:" >&5 3104sed 's/^/| /' conftest.$ac_ext >&5 3105 3106 3107fi 3108 3109rm -f core conftest.err conftest.$ac_objext 3110 test "x$ac_cv_prog_cc_c89" != "xno" && break 3111done 3112rm -f conftest.$ac_ext 3113CC=$ac_save_CC 3114 3115fi 3116# AC_CACHE_VAL 3117case "x$ac_cv_prog_cc_c89" in 3118 x) 3119 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3120$as_echo "none needed" >&6; } ;; 3121 xno) 3122 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3123$as_echo "unsupported" >&6; } ;; 3124 *) 3125 CC="$CC $ac_cv_prog_cc_c89" 3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3127$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3128esac 3129 3130 3131ac_ext=c 3132ac_cpp='$CPP $CPPFLAGS' 3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3135ac_compiler_gnu=$ac_cv_c_compiler_gnu 3136 3137{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3138$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3139if test "${ac_cv_path_SED+set}" = set; then 3140 $as_echo_n "(cached) " >&6 3141else 3142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3143 for ac_i in 1 2 3 4 5 6 7; do 3144 ac_script="$ac_script$as_nl$ac_script" 3145 done 3146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3147 $as_unset ac_script || ac_script= 3148 if test -z "$SED"; then 3149 ac_path_SED_found=false 3150 # Loop through the user's path and test for each of PROGNAME-LIST 3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_prog in sed gsed; do 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3160# Check for GNU ac_path_SED and select it if it is found. 3161 # Check for GNU $ac_path_SED 3162case `"$ac_path_SED" --version 2>&1` in 3163*GNU*) 3164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3165*) 3166 ac_count=0 3167 $as_echo_n 0123456789 >"conftest.in" 3168 while : 3169 do 3170 cat "conftest.in" "conftest.in" >"conftest.tmp" 3171 mv "conftest.tmp" "conftest.in" 3172 cp "conftest.in" "conftest.nl" 3173 $as_echo '' >> "conftest.nl" 3174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3176 ac_count=`expr $ac_count + 1` 3177 if test $ac_count -gt ${ac_path_SED_max-0}; then 3178 # Best one so far, save it but keep looking for a better one 3179 ac_cv_path_SED="$ac_path_SED" 3180 ac_path_SED_max=$ac_count 3181 fi 3182 # 10*(2^10) chars as input seems more than enough 3183 test $ac_count -gt 10 && break 3184 done 3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3186esac 3187 3188 $ac_path_SED_found && break 3 3189 done 3190 done 3191done 3192IFS=$as_save_IFS 3193 if test -z "$ac_cv_path_SED"; then 3194 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3195$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3196 { (exit 1); exit 1; }; } 3197 fi 3198else 3199 ac_cv_path_SED=$SED 3200fi 3201 3202fi 3203{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3204$as_echo "$ac_cv_path_SED" >&6; } 3205 SED="$ac_cv_path_SED" 3206 rm -f conftest.sed 3207 3208test -z "$SED" && SED=sed 3209Xsed="$SED -e 1s/^X//" 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3222$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3223if test "${ac_cv_path_GREP+set}" = set; then 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -z "$GREP"; then 3227 ac_path_GREP_found=false 3228 # Loop through the user's path and test for each of PROGNAME-LIST 3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_prog in grep ggrep; do 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3237 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3238# Check for GNU ac_path_GREP and select it if it is found. 3239 # Check for GNU $ac_path_GREP 3240case `"$ac_path_GREP" --version 2>&1` in 3241*GNU*) 3242 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3243*) 3244 ac_count=0 3245 $as_echo_n 0123456789 >"conftest.in" 3246 while : 3247 do 3248 cat "conftest.in" "conftest.in" >"conftest.tmp" 3249 mv "conftest.tmp" "conftest.in" 3250 cp "conftest.in" "conftest.nl" 3251 $as_echo 'GREP' >> "conftest.nl" 3252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3254 ac_count=`expr $ac_count + 1` 3255 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3256 # Best one so far, save it but keep looking for a better one 3257 ac_cv_path_GREP="$ac_path_GREP" 3258 ac_path_GREP_max=$ac_count 3259 fi 3260 # 10*(2^10) chars as input seems more than enough 3261 test $ac_count -gt 10 && break 3262 done 3263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3264esac 3265 3266 $ac_path_GREP_found && break 3 3267 done 3268 done 3269done 3270IFS=$as_save_IFS 3271 if test -z "$ac_cv_path_GREP"; then 3272 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3273$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3274 { (exit 1); exit 1; }; } 3275 fi 3276else 3277 ac_cv_path_GREP=$GREP 3278fi 3279 3280fi 3281{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3282$as_echo "$ac_cv_path_GREP" >&6; } 3283 GREP="$ac_cv_path_GREP" 3284 3285 3286{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3287$as_echo_n "checking for egrep... " >&6; } 3288if test "${ac_cv_path_EGREP+set}" = set; then 3289 $as_echo_n "(cached) " >&6 3290else 3291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3292 then ac_cv_path_EGREP="$GREP -E" 3293 else 3294 if test -z "$EGREP"; then 3295 ac_path_EGREP_found=false 3296 # Loop through the user's path and test for each of PROGNAME-LIST 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3299do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 for ac_prog in egrep; do 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3306# Check for GNU ac_path_EGREP and select it if it is found. 3307 # Check for GNU $ac_path_EGREP 3308case `"$ac_path_EGREP" --version 2>&1` in 3309*GNU*) 3310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3311*) 3312 ac_count=0 3313 $as_echo_n 0123456789 >"conftest.in" 3314 while : 3315 do 3316 cat "conftest.in" "conftest.in" >"conftest.tmp" 3317 mv "conftest.tmp" "conftest.in" 3318 cp "conftest.in" "conftest.nl" 3319 $as_echo 'EGREP' >> "conftest.nl" 3320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3322 ac_count=`expr $ac_count + 1` 3323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3324 # Best one so far, save it but keep looking for a better one 3325 ac_cv_path_EGREP="$ac_path_EGREP" 3326 ac_path_EGREP_max=$ac_count 3327 fi 3328 # 10*(2^10) chars as input seems more than enough 3329 test $ac_count -gt 10 && break 3330 done 3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3332esac 3333 3334 $ac_path_EGREP_found && break 3 3335 done 3336 done 3337done 3338IFS=$as_save_IFS 3339 if test -z "$ac_cv_path_EGREP"; then 3340 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3341$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3342 { (exit 1); exit 1; }; } 3343 fi 3344else 3345 ac_cv_path_EGREP=$EGREP 3346fi 3347 3348 fi 3349fi 3350{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3351$as_echo "$ac_cv_path_EGREP" >&6; } 3352 EGREP="$ac_cv_path_EGREP" 3353 3354 3355{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3356$as_echo_n "checking for fgrep... " >&6; } 3357if test "${ac_cv_path_FGREP+set}" = set; then 3358 $as_echo_n "(cached) " >&6 3359else 3360 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3361 then ac_cv_path_FGREP="$GREP -F" 3362 else 3363 if test -z "$FGREP"; then 3364 ac_path_FGREP_found=false 3365 # Loop through the user's path and test for each of PROGNAME-LIST 3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_prog in fgrep; do 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3374 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3375# Check for GNU ac_path_FGREP and select it if it is found. 3376 # Check for GNU $ac_path_FGREP 3377case `"$ac_path_FGREP" --version 2>&1` in 3378*GNU*) 3379 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3380*) 3381 ac_count=0 3382 $as_echo_n 0123456789 >"conftest.in" 3383 while : 3384 do 3385 cat "conftest.in" "conftest.in" >"conftest.tmp" 3386 mv "conftest.tmp" "conftest.in" 3387 cp "conftest.in" "conftest.nl" 3388 $as_echo 'FGREP' >> "conftest.nl" 3389 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3391 ac_count=`expr $ac_count + 1` 3392 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3393 # Best one so far, save it but keep looking for a better one 3394 ac_cv_path_FGREP="$ac_path_FGREP" 3395 ac_path_FGREP_max=$ac_count 3396 fi 3397 # 10*(2^10) chars as input seems more than enough 3398 test $ac_count -gt 10 && break 3399 done 3400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3401esac 3402 3403 $ac_path_FGREP_found && break 3 3404 done 3405 done 3406done 3407IFS=$as_save_IFS 3408 if test -z "$ac_cv_path_FGREP"; then 3409 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3410$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3411 { (exit 1); exit 1; }; } 3412 fi 3413else 3414 ac_cv_path_FGREP=$FGREP 3415fi 3416 3417 fi 3418fi 3419{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3420$as_echo "$ac_cv_path_FGREP" >&6; } 3421 FGREP="$ac_cv_path_FGREP" 3422 3423 3424test -z "$GREP" && GREP=grep 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444# Check whether --with-gnu-ld was given. 3445if test "${with_gnu_ld+set}" = set; then 3446 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3447else 3448 with_gnu_ld=no 3449fi 3450 3451ac_prog=ld 3452if test "$GCC" = yes; then 3453 # Check if gcc -print-prog-name=ld gives a path. 3454 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3455$as_echo_n "checking for ld used by $CC... " >&6; } 3456 case $host in 3457 *-*-mingw*) 3458 # gcc leaves a trailing carriage return which upsets mingw 3459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3460 *) 3461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3462 esac 3463 case $ac_prog in 3464 # Accept absolute paths. 3465 [\\/]* | ?:[\\/]*) 3466 re_direlt='/[^/][^/]*/\.\./' 3467 # Canonicalize the pathname of ld 3468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3471 done 3472 test -z "$LD" && LD="$ac_prog" 3473 ;; 3474 "") 3475 # If it fails, then pretend we aren't using GCC. 3476 ac_prog=ld 3477 ;; 3478 *) 3479 # If it is relative, then search for the first ld in PATH. 3480 with_gnu_ld=unknown 3481 ;; 3482 esac 3483elif test "$with_gnu_ld" = yes; then 3484 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 3485$as_echo_n "checking for GNU ld... " >&6; } 3486else 3487 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3488$as_echo_n "checking for non-GNU ld... " >&6; } 3489fi 3490if test "${lt_cv_path_LD+set}" = set; then 3491 $as_echo_n "(cached) " >&6 3492else 3493 if test -z "$LD"; then 3494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3495 for ac_dir in $PATH; do 3496 IFS="$lt_save_ifs" 3497 test -z "$ac_dir" && ac_dir=. 3498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3499 lt_cv_path_LD="$ac_dir/$ac_prog" 3500 # Check to see if the program is GNU ld. I'd rather use --version, 3501 # but apparently some variants of GNU ld only accept -v. 3502 # Break only if it was the GNU/non-GNU ld that we prefer. 3503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3504 *GNU* | *'with BFD'*) 3505 test "$with_gnu_ld" != no && break 3506 ;; 3507 *) 3508 test "$with_gnu_ld" != yes && break 3509 ;; 3510 esac 3511 fi 3512 done 3513 IFS="$lt_save_ifs" 3514else 3515 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3516fi 3517fi 3518 3519LD="$lt_cv_path_LD" 3520if test -n "$LD"; then 3521 { $as_echo "$as_me:$LINENO: result: $LD" >&5 3522$as_echo "$LD" >&6; } 3523else 3524 { $as_echo "$as_me:$LINENO: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3528$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3529 { (exit 1); exit 1; }; } 3530{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3532if test "${lt_cv_prog_gnu_ld+set}" = set; then 3533 $as_echo_n "(cached) " >&6 3534else 3535 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3536case `$LD -v 2>&1 </dev/null` in 3537*GNU* | *'with BFD'*) 3538 lt_cv_prog_gnu_ld=yes 3539 ;; 3540*) 3541 lt_cv_prog_gnu_ld=no 3542 ;; 3543esac 3544fi 3545{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3546$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3547with_gnu_ld=$lt_cv_prog_gnu_ld 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 3558$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3559if test "${lt_cv_path_NM+set}" = set; then 3560 $as_echo_n "(cached) " >&6 3561else 3562 if test -n "$NM"; then 3563 # Let the user override the test. 3564 lt_cv_path_NM="$NM" 3565else 3566 lt_nm_to_check="${ac_tool_prefix}nm" 3567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3568 lt_nm_to_check="$lt_nm_to_check nm" 3569 fi 3570 for lt_tmp_nm in $lt_nm_to_check; do 3571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3573 IFS="$lt_save_ifs" 3574 test -z "$ac_dir" && ac_dir=. 3575 tmp_nm="$ac_dir/$lt_tmp_nm" 3576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3577 # Check to see if the nm accepts a BSD-compat flag. 3578 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3579 # nm: unknown option "B" ignored 3580 # Tru64's nm complains that /dev/null is an invalid object file 3581 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3582 */dev/null* | *'Invalid file or object type'*) 3583 lt_cv_path_NM="$tmp_nm -B" 3584 break 3585 ;; 3586 *) 3587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3588 */dev/null*) 3589 lt_cv_path_NM="$tmp_nm -p" 3590 break 3591 ;; 3592 *) 3593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3594 continue # so that we can try to find one that supports BSD flags 3595 ;; 3596 esac 3597 ;; 3598 esac 3599 fi 3600 done 3601 IFS="$lt_save_ifs" 3602 done 3603 : ${lt_cv_path_NM=no} 3604fi 3605fi 3606{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3607$as_echo "$lt_cv_path_NM" >&6; } 3608if test "$lt_cv_path_NM" != "no"; then 3609 NM="$lt_cv_path_NM" 3610else 3611 # Didn't find any BSD compatible name lister, look for dumpbin. 3612 if test -n "$ac_tool_prefix"; then 3613 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3614 do 3615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3616set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3618$as_echo_n "checking for $ac_word... " >&6; } 3619if test "${ac_cv_prog_DUMPBIN+set}" = set; then 3620 $as_echo_n "(cached) " >&6 3621else 3622 if test -n "$DUMPBIN"; then 3623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3624else 3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3626for as_dir in $PATH 3627do 3628 IFS=$as_save_IFS 3629 test -z "$as_dir" && as_dir=. 3630 for ac_exec_ext in '' $ac_executable_extensions; do 3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3634 break 2 3635 fi 3636done 3637done 3638IFS=$as_save_IFS 3639 3640fi 3641fi 3642DUMPBIN=$ac_cv_prog_DUMPBIN 3643if test -n "$DUMPBIN"; then 3644 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 3645$as_echo "$DUMPBIN" >&6; } 3646else 3647 { $as_echo "$as_me:$LINENO: result: no" >&5 3648$as_echo "no" >&6; } 3649fi 3650 3651 3652 test -n "$DUMPBIN" && break 3653 done 3654fi 3655if test -z "$DUMPBIN"; then 3656 ac_ct_DUMPBIN=$DUMPBIN 3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3658do 3659 # Extract the first word of "$ac_prog", so it can be a program name with args. 3660set dummy $ac_prog; ac_word=$2 3661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3662$as_echo_n "checking for $ac_word... " >&6; } 3663if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 3664 $as_echo_n "(cached) " >&6 3665else 3666 if test -n "$ac_ct_DUMPBIN"; then 3667 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3668else 3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3670for as_dir in $PATH 3671do 3672 IFS=$as_save_IFS 3673 test -z "$as_dir" && as_dir=. 3674 for ac_exec_ext in '' $ac_executable_extensions; do 3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3676 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3678 break 2 3679 fi 3680done 3681done 3682IFS=$as_save_IFS 3683 3684fi 3685fi 3686ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3687if test -n "$ac_ct_DUMPBIN"; then 3688 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 3689$as_echo "$ac_ct_DUMPBIN" >&6; } 3690else 3691 { $as_echo "$as_me:$LINENO: result: no" >&5 3692$as_echo "no" >&6; } 3693fi 3694 3695 3696 test -n "$ac_ct_DUMPBIN" && break 3697done 3698 3699 if test "x$ac_ct_DUMPBIN" = x; then 3700 DUMPBIN=":" 3701 else 3702 case $cross_compiling:$ac_tool_warned in 3703yes:) 3704{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3705whose name does not start with the host triplet. If you think this 3706configuration is useful to you, please write to [email protected]." >&5 3707$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3708whose name does not start with the host triplet. If you think this 3709configuration is useful to you, please write to [email protected]." >&2;} 3710ac_tool_warned=yes ;; 3711esac 3712 DUMPBIN=$ac_ct_DUMPBIN 3713 fi 3714fi 3715 3716 3717 if test "$DUMPBIN" != ":"; then 3718 NM="$DUMPBIN" 3719 fi 3720fi 3721test -z "$NM" && NM=nm 3722 3723 3724 3725 3726 3727 3728{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 3729$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3730if test "${lt_cv_nm_interface+set}" = set; then 3731 $as_echo_n "(cached) " >&6 3732else 3733 lt_cv_nm_interface="BSD nm" 3734 echo "int some_variable = 0;" > conftest.$ac_ext 3735 (eval echo "\"\$as_me:3735: $ac_compile\"" >&5) 3736 (eval "$ac_compile" 2>conftest.err) 3737 cat conftest.err >&5 3738 (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3740 cat conftest.err >&5 3741 (eval echo "\"\$as_me:3741: output\"" >&5) 3742 cat conftest.out >&5 3743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3744 lt_cv_nm_interface="MS dumpbin" 3745 fi 3746 rm -f conftest* 3747fi 3748{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 3749$as_echo "$lt_cv_nm_interface" >&6; } 3750 3751{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3752$as_echo_n "checking whether ln -s works... " >&6; } 3753LN_S=$as_ln_s 3754if test "$LN_S" = "ln -s"; then 3755 { $as_echo "$as_me:$LINENO: result: yes" >&5 3756$as_echo "yes" >&6; } 3757else 3758 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3759$as_echo "no, using $LN_S" >&6; } 3760fi 3761 3762# find the maximum length of command line arguments 3763{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3764$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3765if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3766 $as_echo_n "(cached) " >&6 3767else 3768 i=0 3769 teststring="ABCD" 3770 3771 case $build_os in 3772 msdosdjgpp*) 3773 # On DJGPP, this test can blow up pretty badly due to problems in libc 3774 # (any single argument exceeding 2000 bytes causes a buffer overrun 3775 # during glob expansion). Even if it were fixed, the result of this 3776 # check would be larger than it should be. 3777 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3778 ;; 3779 3780 gnu*) 3781 # Under GNU Hurd, this test is not required because there is 3782 # no limit to the length of command line arguments. 3783 # Libtool will interpret -1 as no limit whatsoever 3784 lt_cv_sys_max_cmd_len=-1; 3785 ;; 3786 3787 cygwin* | mingw* | cegcc*) 3788 # On Win9x/ME, this test blows up -- it succeeds, but takes 3789 # about 5 minutes as the teststring grows exponentially. 3790 # Worse, since 9x/ME are not pre-emptively multitasking, 3791 # you end up with a "frozen" computer, even though with patience 3792 # the test eventually succeeds (with a max line length of 256k). 3793 # Instead, let's just punt: use the minimum linelength reported by 3794 # all of the supported platforms: 8192 (on NT/2K/XP). 3795 lt_cv_sys_max_cmd_len=8192; 3796 ;; 3797 3798 amigaos*) 3799 # On AmigaOS with pdksh, this test takes hours, literally. 3800 # So we just punt and use a minimum line length of 8192. 3801 lt_cv_sys_max_cmd_len=8192; 3802 ;; 3803 3804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3805 # This has been around since 386BSD, at least. Likely further. 3806 if test -x /sbin/sysctl; then 3807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3808 elif test -x /usr/sbin/sysctl; then 3809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3810 else 3811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3812 fi 3813 # And add a safety zone 3814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3816 ;; 3817 3818 interix*) 3819 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3820 lt_cv_sys_max_cmd_len=196608 3821 ;; 3822 3823 osf*) 3824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3826 # nice to cause kernel panics so lets avoid the loop below. 3827 # First set a reasonable default. 3828 lt_cv_sys_max_cmd_len=16384 3829 # 3830 if test -x /sbin/sysconfig; then 3831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3832 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3833 esac 3834 fi 3835 ;; 3836 sco3.2v5*) 3837 lt_cv_sys_max_cmd_len=102400 3838 ;; 3839 sysv5* | sco5v6* | sysv4.2uw2*) 3840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3841 if test -n "$kargmax"; then 3842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3843 else 3844 lt_cv_sys_max_cmd_len=32768 3845 fi 3846 ;; 3847 *) 3848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3849 if test -n "$lt_cv_sys_max_cmd_len"; then 3850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3852 else 3853 # Make teststring a little bigger before we do anything with it. 3854 # a 1K string should be a reasonable start. 3855 for i in 1 2 3 4 5 6 7 8 ; do 3856 teststring=$teststring$teststring 3857 done 3858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3859 # If test is not a shell built-in, we'll probably end up computing a 3860 # maximum length that is only half of the actual maximum length, but 3861 # we can't tell. 3862 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3863 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3864 test $i != 17 # 1/2 MB should be enough 3865 do 3866 i=`expr $i + 1` 3867 teststring=$teststring$teststring 3868 done 3869 # Only check the string length outside the loop. 3870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3871 teststring= 3872 # Add a significant safety factor because C++ compilers can tack on 3873 # massive amounts of additional arguments before passing them to the 3874 # linker. It appears as though 1/2 is a usable value. 3875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3876 fi 3877 ;; 3878 esac 3879 3880fi 3881 3882if test -n $lt_cv_sys_max_cmd_len ; then 3883 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3884$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 3885else 3886 { $as_echo "$as_me:$LINENO: result: none" >&5 3887$as_echo "none" >&6; } 3888fi 3889max_cmd_len=$lt_cv_sys_max_cmd_len 3890 3891 3892 3893 3894 3895 3896: ${CP="cp -f"} 3897: ${MV="mv -f"} 3898: ${RM="rm -f"} 3899 3900{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3901$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 3902# Try some XSI features 3903xsi_shell=no 3904( _lt_dummy="a/b/c" 3905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3906 = c,a/b,, \ 3907 && eval 'test $(( 1 + 1 )) -eq 2 \ 3908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3909 && xsi_shell=yes 3910{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 3911$as_echo "$xsi_shell" >&6; } 3912 3913 3914{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3915$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 3916lt_shell_append=no 3917( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3918 >/dev/null 2>&1 \ 3919 && lt_shell_append=yes 3920{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3921$as_echo "$lt_shell_append" >&6; } 3922 3923 3924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3925 lt_unset=unset 3926else 3927 lt_unset=false 3928fi 3929 3930 3931 3932 3933 3934# test EBCDIC or ASCII 3935case `echo X|tr X '\101'` in 3936 A) # ASCII based system 3937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3938 lt_SP2NL='tr \040 \012' 3939 lt_NL2SP='tr \015\012 \040\040' 3940 ;; 3941 *) # EBCDIC based system 3942 lt_SP2NL='tr \100 \n' 3943 lt_NL2SP='tr \r\n \100\100' 3944 ;; 3945esac 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3956$as_echo_n "checking for $LD option to reload object files... " >&6; } 3957if test "${lt_cv_ld_reload_flag+set}" = set; then 3958 $as_echo_n "(cached) " >&6 3959else 3960 lt_cv_ld_reload_flag='-r' 3961fi 3962{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3963$as_echo "$lt_cv_ld_reload_flag" >&6; } 3964reload_flag=$lt_cv_ld_reload_flag 3965case $reload_flag in 3966"" | " "*) ;; 3967*) reload_flag=" $reload_flag" ;; 3968esac 3969reload_cmds='$LD$reload_flag -o $output$reload_objs' 3970case $host_os in 3971 darwin*) 3972 if test "$GCC" = yes; then 3973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3974 else 3975 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3976 fi 3977 ;; 3978esac 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988if test -n "$ac_tool_prefix"; then 3989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3990set dummy ${ac_tool_prefix}objdump; ac_word=$2 3991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3992$as_echo_n "checking for $ac_word... " >&6; } 3993if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3994 $as_echo_n "(cached) " >&6 3995else 3996 if test -n "$OBJDUMP"; then 3997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3998else 3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000for as_dir in $PATH 4001do 4002 IFS=$as_save_IFS 4003 test -z "$as_dir" && as_dir=. 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4008 break 2 4009 fi 4010done 4011done 4012IFS=$as_save_IFS 4013 4014fi 4015fi 4016OBJDUMP=$ac_cv_prog_OBJDUMP 4017if test -n "$OBJDUMP"; then 4018 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4019$as_echo "$OBJDUMP" >&6; } 4020else 4021 { $as_echo "$as_me:$LINENO: result: no" >&5 4022$as_echo "no" >&6; } 4023fi 4024 4025 4026fi 4027if test -z "$ac_cv_prog_OBJDUMP"; then 4028 ac_ct_OBJDUMP=$OBJDUMP 4029 # Extract the first word of "objdump", so it can be a program name with args. 4030set dummy objdump; ac_word=$2 4031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4032$as_echo_n "checking for $ac_word... " >&6; } 4033if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4034 $as_echo_n "(cached) " >&6 4035else 4036 if test -n "$ac_ct_OBJDUMP"; then 4037 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4038else 4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040for as_dir in $PATH 4041do 4042 IFS=$as_save_IFS 4043 test -z "$as_dir" && as_dir=. 4044 for ac_exec_ext in '' $ac_executable_extensions; do 4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4046 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4048 break 2 4049 fi 4050done 4051done 4052IFS=$as_save_IFS 4053 4054fi 4055fi 4056ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4057if test -n "$ac_ct_OBJDUMP"; then 4058 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4059$as_echo "$ac_ct_OBJDUMP" >&6; } 4060else 4061 { $as_echo "$as_me:$LINENO: result: no" >&5 4062$as_echo "no" >&6; } 4063fi 4064 4065 if test "x$ac_ct_OBJDUMP" = x; then 4066 OBJDUMP="false" 4067 else 4068 case $cross_compiling:$ac_tool_warned in 4069yes:) 4070{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4071whose name does not start with the host triplet. If you think this 4072configuration is useful to you, please write to [email protected]." >&5 4073$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4074whose name does not start with the host triplet. If you think this 4075configuration is useful to you, please write to [email protected]." >&2;} 4076ac_tool_warned=yes ;; 4077esac 4078 OBJDUMP=$ac_ct_OBJDUMP 4079 fi 4080else 4081 OBJDUMP="$ac_cv_prog_OBJDUMP" 4082fi 4083 4084test -z "$OBJDUMP" && OBJDUMP=objdump 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4095$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4096if test "${lt_cv_deplibs_check_method+set}" = set; then 4097 $as_echo_n "(cached) " >&6 4098else 4099 lt_cv_file_magic_cmd='$MAGIC_CMD' 4100lt_cv_file_magic_test_file= 4101lt_cv_deplibs_check_method='unknown' 4102# Need to set the preceding variable on all platforms that support 4103# interlibrary dependencies. 4104# 'none' -- dependencies not supported. 4105# `unknown' -- same as none, but documents that we really don't know. 4106# 'pass_all' -- all dependencies passed with no checks. 4107# 'test_compile' -- check by making test program. 4108# 'file_magic [[regex]]' -- check by looking for files in library path 4109# which responds to the $file_magic_cmd with a given extended regex. 4110# If you have `file' or equivalent on your system and you're not sure 4111# whether `pass_all' will *always* work, you probably want this one. 4112 4113case $host_os in 4114aix[4-9]*) 4115 lt_cv_deplibs_check_method=pass_all 4116 ;; 4117 4118beos*) 4119 lt_cv_deplibs_check_method=pass_all 4120 ;; 4121 4122bsdi[45]*) 4123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4124 lt_cv_file_magic_cmd='/usr/bin/file -L' 4125 lt_cv_file_magic_test_file=/shlib/libc.so 4126 ;; 4127 4128cygwin*) 4129 # func_win32_libid is a shell function defined in ltmain.sh 4130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4131 lt_cv_file_magic_cmd='func_win32_libid' 4132 ;; 4133 4134mingw* | pw32*) 4135 # Base MSYS/MinGW do not provide the 'file' command needed by 4136 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4137 # unless we find 'file', for example because we are cross-compiling. 4138 if ( file / ) >/dev/null 2>&1; then 4139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4140 lt_cv_file_magic_cmd='func_win32_libid' 4141 else 4142 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4143 lt_cv_file_magic_cmd='$OBJDUMP -f' 4144 fi 4145 ;; 4146 4147cegcc) 4148 # use the weaker test based on 'objdump'. See mingw*. 4149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4150 lt_cv_file_magic_cmd='$OBJDUMP -f' 4151 ;; 4152 4153darwin* | rhapsody*) 4154 lt_cv_deplibs_check_method=pass_all 4155 ;; 4156 4157freebsd* | dragonfly*) 4158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4159 case $host_cpu in 4160 i*86 ) 4161 # Not sure whether the presence of OpenBSD here was a mistake. 4162 # Let's accept both of them until this is cleared up. 4163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4164 lt_cv_file_magic_cmd=/usr/bin/file 4165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4166 ;; 4167 esac 4168 else 4169 lt_cv_deplibs_check_method=pass_all 4170 fi 4171 ;; 4172 4173gnu*) 4174 lt_cv_deplibs_check_method=pass_all 4175 ;; 4176 4177hpux10.20* | hpux11*) 4178 lt_cv_file_magic_cmd=/usr/bin/file 4179 case $host_cpu in 4180 ia64*) 4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4183 ;; 4184 hppa*64*) 4185 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]' 4186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4187 ;; 4188 *) 4189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4190 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4191 ;; 4192 esac 4193 ;; 4194 4195interix[3-9]*) 4196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4198 ;; 4199 4200irix5* | irix6* | nonstopux*) 4201 case $LD in 4202 *-32|*"-32 ") libmagic=32-bit;; 4203 *-n32|*"-n32 ") libmagic=N32;; 4204 *-64|*"-64 ") libmagic=64-bit;; 4205 *) libmagic=never-match;; 4206 esac 4207 lt_cv_deplibs_check_method=pass_all 4208 ;; 4209 4210# This must be Linux ELF. 4211linux* | k*bsd*-gnu) 4212 lt_cv_deplibs_check_method=pass_all 4213 ;; 4214 4215netbsd*) 4216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4218 else 4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4220 fi 4221 ;; 4222 4223newos6*) 4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4225 lt_cv_file_magic_cmd=/usr/bin/file 4226 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4227 ;; 4228 4229*nto* | *qnx*) 4230 lt_cv_deplibs_check_method=pass_all 4231 ;; 4232 4233openbsd*) 4234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4236 else 4237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4238 fi 4239 ;; 4240 4241osf3* | osf4* | osf5*) 4242 lt_cv_deplibs_check_method=pass_all 4243 ;; 4244 4245rdos*) 4246 lt_cv_deplibs_check_method=pass_all 4247 ;; 4248 4249solaris*) 4250 lt_cv_deplibs_check_method=pass_all 4251 ;; 4252 4253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4254 lt_cv_deplibs_check_method=pass_all 4255 ;; 4256 4257sysv4 | sysv4.3*) 4258 case $host_vendor in 4259 motorola) 4260 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]' 4261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4262 ;; 4263 ncr) 4264 lt_cv_deplibs_check_method=pass_all 4265 ;; 4266 sequent) 4267 lt_cv_file_magic_cmd='/bin/file' 4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4269 ;; 4270 sni) 4271 lt_cv_file_magic_cmd='/bin/file' 4272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4273 lt_cv_file_magic_test_file=/lib/libc.so 4274 ;; 4275 siemens) 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 pc) 4279 lt_cv_deplibs_check_method=pass_all 4280 ;; 4281 esac 4282 ;; 4283 4284tpf*) 4285 lt_cv_deplibs_check_method=pass_all 4286 ;; 4287esac 4288 4289fi 4290{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4291$as_echo "$lt_cv_deplibs_check_method" >&6; } 4292file_magic_cmd=$lt_cv_file_magic_cmd 4293deplibs_check_method=$lt_cv_deplibs_check_method 4294test -z "$deplibs_check_method" && deplibs_check_method=unknown 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307if test -n "$ac_tool_prefix"; then 4308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4309set dummy ${ac_tool_prefix}ar; ac_word=$2 4310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4311$as_echo_n "checking for $ac_word... " >&6; } 4312if test "${ac_cv_prog_AR+set}" = set; then 4313 $as_echo_n "(cached) " >&6 4314else 4315 if test -n "$AR"; then 4316 ac_cv_prog_AR="$AR" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4325 ac_cv_prog_AR="${ac_tool_prefix}ar" 4326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330done 4331IFS=$as_save_IFS 4332 4333fi 4334fi 4335AR=$ac_cv_prog_AR 4336if test -n "$AR"; then 4337 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4338$as_echo "$AR" >&6; } 4339else 4340 { $as_echo "$as_me:$LINENO: result: no" >&5 4341$as_echo "no" >&6; } 4342fi 4343 4344 4345fi 4346if test -z "$ac_cv_prog_AR"; then 4347 ac_ct_AR=$AR 4348 # Extract the first word of "ar", so it can be a program name with args. 4349set dummy ar; ac_word=$2 4350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4351$as_echo_n "checking for $ac_word... " >&6; } 4352if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$ac_ct_AR"; then 4356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4365 ac_cv_prog_ac_ct_AR="ar" 4366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4367 break 2 4368 fi 4369done 4370done 4371IFS=$as_save_IFS 4372 4373fi 4374fi 4375ac_ct_AR=$ac_cv_prog_ac_ct_AR 4376if test -n "$ac_ct_AR"; then 4377 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4378$as_echo "$ac_ct_AR" >&6; } 4379else 4380 { $as_echo "$as_me:$LINENO: result: no" >&5 4381$as_echo "no" >&6; } 4382fi 4383 4384 if test "x$ac_ct_AR" = x; then 4385 AR="false" 4386 else 4387 case $cross_compiling:$ac_tool_warned in 4388yes:) 4389{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4390whose name does not start with the host triplet. If you think this 4391configuration is useful to you, please write to [email protected]." >&5 4392$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4393whose name does not start with the host triplet. If you think this 4394configuration is useful to you, please write to [email protected]." >&2;} 4395ac_tool_warned=yes ;; 4396esac 4397 AR=$ac_ct_AR 4398 fi 4399else 4400 AR="$ac_cv_prog_AR" 4401fi 4402 4403test -z "$AR" && AR=ar 4404test -z "$AR_FLAGS" && AR_FLAGS=cru 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416if test -n "$ac_tool_prefix"; then 4417 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4418set dummy ${ac_tool_prefix}strip; ac_word=$2 4419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4420$as_echo_n "checking for $ac_word... " >&6; } 4421if test "${ac_cv_prog_STRIP+set}" = set; then 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -n "$STRIP"; then 4425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4426else 4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4434 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439done 4440IFS=$as_save_IFS 4441 4442fi 4443fi 4444STRIP=$ac_cv_prog_STRIP 4445if test -n "$STRIP"; then 4446 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4447$as_echo "$STRIP" >&6; } 4448else 4449 { $as_echo "$as_me:$LINENO: result: no" >&5 4450$as_echo "no" >&6; } 4451fi 4452 4453 4454fi 4455if test -z "$ac_cv_prog_STRIP"; then 4456 ac_ct_STRIP=$STRIP 4457 # Extract the first word of "strip", so it can be a program name with args. 4458set dummy strip; ac_word=$2 4459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4460$as_echo_n "checking for $ac_word... " >&6; } 4461if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -n "$ac_ct_STRIP"; then 4465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4466else 4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH 4469do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4474 ac_cv_prog_ac_ct_STRIP="strip" 4475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4476 break 2 4477 fi 4478done 4479done 4480IFS=$as_save_IFS 4481 4482fi 4483fi 4484ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4485if test -n "$ac_ct_STRIP"; then 4486 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4487$as_echo "$ac_ct_STRIP" >&6; } 4488else 4489 { $as_echo "$as_me:$LINENO: result: no" >&5 4490$as_echo "no" >&6; } 4491fi 4492 4493 if test "x$ac_ct_STRIP" = x; then 4494 STRIP=":" 4495 else 4496 case $cross_compiling:$ac_tool_warned in 4497yes:) 4498{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4499whose name does not start with the host triplet. If you think this 4500configuration is useful to you, please write to [email protected]." >&5 4501$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4502whose name does not start with the host triplet. If you think this 4503configuration is useful to you, please write to [email protected]." >&2;} 4504ac_tool_warned=yes ;; 4505esac 4506 STRIP=$ac_ct_STRIP 4507 fi 4508else 4509 STRIP="$ac_cv_prog_STRIP" 4510fi 4511 4512test -z "$STRIP" && STRIP=: 4513 4514 4515 4516 4517 4518 4519if test -n "$ac_tool_prefix"; then 4520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4521set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4523$as_echo_n "checking for $ac_word... " >&6; } 4524if test "${ac_cv_prog_RANLIB+set}" = set; then 4525 $as_echo_n "(cached) " >&6 4526else 4527 if test -n "$RANLIB"; then 4528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4529else 4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4531for as_dir in $PATH 4532do 4533 IFS=$as_save_IFS 4534 test -z "$as_dir" && as_dir=. 4535 for ac_exec_ext in '' $ac_executable_extensions; do 4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4539 break 2 4540 fi 4541done 4542done 4543IFS=$as_save_IFS 4544 4545fi 4546fi 4547RANLIB=$ac_cv_prog_RANLIB 4548if test -n "$RANLIB"; then 4549 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4550$as_echo "$RANLIB" >&6; } 4551else 4552 { $as_echo "$as_me:$LINENO: result: no" >&5 4553$as_echo "no" >&6; } 4554fi 4555 4556 4557fi 4558if test -z "$ac_cv_prog_RANLIB"; then 4559 ac_ct_RANLIB=$RANLIB 4560 # Extract the first word of "ranlib", so it can be a program name with args. 4561set dummy ranlib; ac_word=$2 4562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4563$as_echo_n "checking for $ac_word... " >&6; } 4564if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4565 $as_echo_n "(cached) " >&6 4566else 4567 if test -n "$ac_ct_RANLIB"; then 4568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4569else 4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4571for as_dir in $PATH 4572do 4573 IFS=$as_save_IFS 4574 test -z "$as_dir" && as_dir=. 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4577 ac_cv_prog_ac_ct_RANLIB="ranlib" 4578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4579 break 2 4580 fi 4581done 4582done 4583IFS=$as_save_IFS 4584 4585fi 4586fi 4587ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4588if test -n "$ac_ct_RANLIB"; then 4589 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4590$as_echo "$ac_ct_RANLIB" >&6; } 4591else 4592 { $as_echo "$as_me:$LINENO: result: no" >&5 4593$as_echo "no" >&6; } 4594fi 4595 4596 if test "x$ac_ct_RANLIB" = x; then 4597 RANLIB=":" 4598 else 4599 case $cross_compiling:$ac_tool_warned in 4600yes:) 4601{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4602whose name does not start with the host triplet. If you think this 4603configuration is useful to you, please write to [email protected]." >&5 4604$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4605whose name does not start with the host triplet. If you think this 4606configuration is useful to you, please write to [email protected]." >&2;} 4607ac_tool_warned=yes ;; 4608esac 4609 RANLIB=$ac_ct_RANLIB 4610 fi 4611else 4612 RANLIB="$ac_cv_prog_RANLIB" 4613fi 4614 4615test -z "$RANLIB" && RANLIB=: 4616 4617 4618 4619 4620 4621 4622# Determine commands to create old-style static archives. 4623old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4624old_postinstall_cmds='chmod 644 $oldlib' 4625old_postuninstall_cmds= 4626 4627if test -n "$RANLIB"; then 4628 case $host_os in 4629 openbsd*) 4630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4631 ;; 4632 *) 4633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4634 ;; 4635 esac 4636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4637fi 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672# If no C compiler was specified, use CC. 4673LTCC=${LTCC-"$CC"} 4674 4675# If no C compiler flags were specified, use CFLAGS. 4676LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4677 4678# Allow CC to be a program name with arguments. 4679compiler=$CC 4680 4681 4682# Check for command to grab the raw symbol name followed by C symbol from nm. 4683{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4684$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4685if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4686 $as_echo_n "(cached) " >&6 4687else 4688 4689# These are sane defaults that work on at least a few old systems. 4690# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4691 4692# Character class describing NM global symbol codes. 4693symcode='[BCDEGRST]' 4694 4695# Regexp to match symbols that can be accessed directly from C. 4696sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4697 4698# Define system-specific variables. 4699case $host_os in 4700aix*) 4701 symcode='[BCDT]' 4702 ;; 4703cygwin* | mingw* | pw32* | cegcc*) 4704 symcode='[ABCDGISTW]' 4705 ;; 4706hpux*) 4707 if test "$host_cpu" = ia64; then 4708 symcode='[ABCDEGRST]' 4709 fi 4710 ;; 4711irix* | nonstopux*) 4712 symcode='[BCDEGRST]' 4713 ;; 4714osf*) 4715 symcode='[BCDEGQRST]' 4716 ;; 4717solaris*) 4718 symcode='[BDRT]' 4719 ;; 4720sco3.2v5*) 4721 symcode='[DT]' 4722 ;; 4723sysv4.2uw2*) 4724 symcode='[DT]' 4725 ;; 4726sysv5* | sco5v6* | unixware* | OpenUNIX*) 4727 symcode='[ABDT]' 4728 ;; 4729sysv4) 4730 symcode='[DFNSTU]' 4731 ;; 4732esac 4733 4734# If we're using GNU nm, then use its standard symbol codes. 4735case `$NM -V 2>&1` in 4736*GNU* | *'with BFD'*) 4737 symcode='[ABCDGIRSTW]' ;; 4738esac 4739 4740# Transform an extracted symbol line into a proper C declaration. 4741# Some systems (esp. on ia64) link data and code symbols differently, 4742# so use this general approach. 4743lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4744 4745# Transform an extracted symbol line into symbol name and symbol address 4746lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4747lt_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'" 4748 4749# Handle CRLF in mingw tool chain 4750opt_cr= 4751case $build_os in 4752mingw*) 4753 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4754 ;; 4755esac 4756 4757# Try without a prefix underscore, then with it. 4758for ac_symprfx in "" "_"; do 4759 4760 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4761 symxfrm="\\1 $ac_symprfx\\2 \\2" 4762 4763 # Write the raw and C identifiers. 4764 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4765 # Fake it for dumpbin and say T for any non-static function 4766 # and D for any global variable. 4767 # Also find C++ and __fastcall symbols from MSVC++, 4768 # which start with @ or ?. 4769 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4770" {last_section=section; section=\$ 3};"\ 4771" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4772" \$ 0!~/External *\|/{next};"\ 4773" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4774" {if(hide[section]) next};"\ 4775" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4776" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4777" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4778" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4779" ' prfx=^$ac_symprfx" 4780 else 4781 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4782 fi 4783 4784 # Check to see that the pipe works correctly. 4785 pipe_works=no 4786 4787 rm -f conftest* 4788 cat > conftest.$ac_ext <<_LT_EOF 4789#ifdef __cplusplus 4790extern "C" { 4791#endif 4792char nm_test_var; 4793void nm_test_func(void); 4794void nm_test_func(void){} 4795#ifdef __cplusplus 4796} 4797#endif 4798int main(){nm_test_var='a';nm_test_func();return(0);} 4799_LT_EOF 4800 4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4802 (eval $ac_compile) 2>&5 4803 ac_status=$? 4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); }; then 4806 # Now try to grab the symbols. 4807 nlist=conftest.nm 4808 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4809 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4810 ac_status=$? 4811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); } && test -s "$nlist"; then 4813 # Try sorting and uniquifying the output. 4814 if sort "$nlist" | uniq > "$nlist"T; then 4815 mv -f "$nlist"T "$nlist" 4816 else 4817 rm -f "$nlist"T 4818 fi 4819 4820 # Make sure that we snagged all the symbols we need. 4821 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4822 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4823 cat <<_LT_EOF > conftest.$ac_ext 4824#ifdef __cplusplus 4825extern "C" { 4826#endif 4827 4828_LT_EOF 4829 # Now generate the symbol file. 4830 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4831 4832 cat <<_LT_EOF >> conftest.$ac_ext 4833 4834/* The mapping between symbol names and symbols. */ 4835const struct { 4836 const char *name; 4837 void *address; 4838} 4839lt__PROGRAM__LTX_preloaded_symbols[] = 4840{ 4841 { "@PROGRAM@", (void *) 0 }, 4842_LT_EOF 4843 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4844 cat <<\_LT_EOF >> conftest.$ac_ext 4845 {0, (void *) 0} 4846}; 4847 4848/* This works around a problem in FreeBSD linker */ 4849#ifdef FREEBSD_WORKAROUND 4850static const void *lt_preloaded_setup() { 4851 return lt__PROGRAM__LTX_preloaded_symbols; 4852} 4853#endif 4854 4855#ifdef __cplusplus 4856} 4857#endif 4858_LT_EOF 4859 # Now try linking the two files. 4860 mv conftest.$ac_objext conftstm.$ac_objext 4861 lt_save_LIBS="$LIBS" 4862 lt_save_CFLAGS="$CFLAGS" 4863 LIBS="conftstm.$ac_objext" 4864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4866 (eval $ac_link) 2>&5 4867 ac_status=$? 4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4870 pipe_works=yes 4871 fi 4872 LIBS="$lt_save_LIBS" 4873 CFLAGS="$lt_save_CFLAGS" 4874 else 4875 echo "cannot find nm_test_func in $nlist" >&5 4876 fi 4877 else 4878 echo "cannot find nm_test_var in $nlist" >&5 4879 fi 4880 else 4881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4882 fi 4883 else 4884 echo "$progname: failed program was:" >&5 4885 cat conftest.$ac_ext >&5 4886 fi 4887 rm -rf conftest* conftst* 4888 4889 # Do not use the global_symbol_pipe unless it works. 4890 if test "$pipe_works" = yes; then 4891 break 4892 else 4893 lt_cv_sys_global_symbol_pipe= 4894 fi 4895done 4896 4897fi 4898 4899if test -z "$lt_cv_sys_global_symbol_pipe"; then 4900 lt_cv_sys_global_symbol_to_cdecl= 4901fi 4902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4903 { $as_echo "$as_me:$LINENO: result: failed" >&5 4904$as_echo "failed" >&6; } 4905else 4906 { $as_echo "$as_me:$LINENO: result: ok" >&5 4907$as_echo "ok" >&6; } 4908fi 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932# Check whether --enable-libtool-lock was given. 4933if test "${enable_libtool_lock+set}" = set; then 4934 enableval=$enable_libtool_lock; 4935fi 4936 4937test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4938 4939# Some flags need to be propagated to the compiler or linker for good 4940# libtool support. 4941case $host in 4942ia64-*-hpux*) 4943 # Find out which ABI we are using. 4944 echo 'int i;' > conftest.$ac_ext 4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4946 (eval $ac_compile) 2>&5 4947 ac_status=$? 4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; then 4950 case `/usr/bin/file conftest.$ac_objext` in 4951 *ELF-32*) 4952 HPUX_IA64_MODE="32" 4953 ;; 4954 *ELF-64*) 4955 HPUX_IA64_MODE="64" 4956 ;; 4957 esac 4958 fi 4959 rm -rf conftest* 4960 ;; 4961*-*-irix6*) 4962 # Find out which ABI we are using. 4963 echo '#line 4963 "configure"' > conftest.$ac_ext 4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4965 (eval $ac_compile) 2>&5 4966 ac_status=$? 4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; then 4969 if test "$lt_cv_prog_gnu_ld" = yes; then 4970 case `/usr/bin/file conftest.$ac_objext` in 4971 *32-bit*) 4972 LD="${LD-ld} -melf32bsmip" 4973 ;; 4974 *N32*) 4975 LD="${LD-ld} -melf32bmipn32" 4976 ;; 4977 *64-bit*) 4978 LD="${LD-ld} -melf64bmip" 4979 ;; 4980 esac 4981 else 4982 case `/usr/bin/file conftest.$ac_objext` in 4983 *32-bit*) 4984 LD="${LD-ld} -32" 4985 ;; 4986 *N32*) 4987 LD="${LD-ld} -n32" 4988 ;; 4989 *64-bit*) 4990 LD="${LD-ld} -64" 4991 ;; 4992 esac 4993 fi 4994 fi 4995 rm -rf conftest* 4996 ;; 4997 4998x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4999s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5000 # Find out which ABI we are using. 5001 echo 'int i;' > conftest.$ac_ext 5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5003 (eval $ac_compile) 2>&5 5004 ac_status=$? 5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); }; then 5007 case `/usr/bin/file conftest.o` in 5008 *32-bit*) 5009 case $host in 5010 x86_64-*kfreebsd*-gnu) 5011 LD="${LD-ld} -m elf_i386_fbsd" 5012 ;; 5013 x86_64-*linux*) 5014 LD="${LD-ld} -m elf_i386" 5015 ;; 5016 ppc64-*linux*|powerpc64-*linux*) 5017 LD="${LD-ld} -m elf32ppclinux" 5018 ;; 5019 s390x-*linux*) 5020 LD="${LD-ld} -m elf_s390" 5021 ;; 5022 sparc64-*linux*) 5023 LD="${LD-ld} -m elf32_sparc" 5024 ;; 5025 esac 5026 ;; 5027 *64-bit*) 5028 case $host in 5029 x86_64-*kfreebsd*-gnu) 5030 LD="${LD-ld} -m elf_x86_64_fbsd" 5031 ;; 5032 x86_64-*linux*) 5033 LD="${LD-ld} -m elf_x86_64" 5034 ;; 5035 ppc*-*linux*|powerpc*-*linux*) 5036 LD="${LD-ld} -m elf64ppc" 5037 ;; 5038 s390*-*linux*|s390*-*tpf*) 5039 LD="${LD-ld} -m elf64_s390" 5040 ;; 5041 sparc*-*linux*) 5042 LD="${LD-ld} -m elf64_sparc" 5043 ;; 5044 esac 5045 ;; 5046 esac 5047 fi 5048 rm -rf conftest* 5049 ;; 5050 5051*-*-sco3.2v5*) 5052 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5053 SAVE_CFLAGS="$CFLAGS" 5054 CFLAGS="$CFLAGS -belf" 5055 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5056$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5057if test "${lt_cv_cc_needs_belf+set}" = set; then 5058 $as_echo_n "(cached) " >&6 5059else 5060 ac_ext=c 5061ac_cpp='$CPP $CPPFLAGS' 5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5064ac_compiler_gnu=$ac_cv_c_compiler_gnu 5065 5066 cat >conftest.$ac_ext <<_ACEOF 5067/* confdefs.h. */ 5068_ACEOF 5069cat confdefs.h >>conftest.$ac_ext 5070cat >>conftest.$ac_ext <<_ACEOF 5071/* end confdefs.h. */ 5072 5073int 5074main () 5075{ 5076 5077 ; 5078 return 0; 5079} 5080_ACEOF 5081rm -f conftest.$ac_objext conftest$ac_exeext 5082if { (ac_try="$ac_link" 5083case "(($ac_try" in 5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5085 *) ac_try_echo=$ac_try;; 5086esac 5087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5088$as_echo "$ac_try_echo") >&5 5089 (eval "$ac_link") 2>conftest.er1 5090 ac_status=$? 5091 grep -v '^ *+' conftest.er1 >conftest.err 5092 rm -f conftest.er1 5093 cat conftest.err >&5 5094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 (exit $ac_status); } && { 5096 test -z "$ac_c_werror_flag" || 5097 test ! -s conftest.err 5098 } && test -s conftest$ac_exeext && { 5099 test "$cross_compiling" = yes || 5100 $as_test_x conftest$ac_exeext 5101 }; then 5102 lt_cv_cc_needs_belf=yes 5103else 5104 $as_echo "$as_me: failed program was:" >&5 5105sed 's/^/| /' conftest.$ac_ext >&5 5106 5107 lt_cv_cc_needs_belf=no 5108fi 5109 5110rm -rf conftest.dSYM 5111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5112 conftest$ac_exeext conftest.$ac_ext 5113 ac_ext=c 5114ac_cpp='$CPP $CPPFLAGS' 5115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5117ac_compiler_gnu=$ac_cv_c_compiler_gnu 5118 5119fi 5120{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5121$as_echo "$lt_cv_cc_needs_belf" >&6; } 5122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5124 CFLAGS="$SAVE_CFLAGS" 5125 fi 5126 ;; 5127sparc*-*solaris*) 5128 # Find out which ABI we are using. 5129 echo 'int i;' > conftest.$ac_ext 5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5131 (eval $ac_compile) 2>&5 5132 ac_status=$? 5133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); }; then 5135 case `/usr/bin/file conftest.o` in 5136 *64-bit*) 5137 case $lt_cv_prog_gnu_ld in 5138 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5139 *) 5140 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5141 LD="${LD-ld} -64" 5142 fi 5143 ;; 5144 esac 5145 ;; 5146 esac 5147 fi 5148 rm -rf conftest* 5149 ;; 5150esac 5151 5152need_locks="$enable_libtool_lock" 5153 5154 5155 case $host_os in 5156 rhapsody* | darwin*) 5157 if test -n "$ac_tool_prefix"; then 5158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5159set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5161$as_echo_n "checking for $ac_word... " >&6; } 5162if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$DSYMUTIL"; then 5166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185DSYMUTIL=$ac_cv_prog_DSYMUTIL 5186if test -n "$DSYMUTIL"; then 5187 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5188$as_echo "$DSYMUTIL" >&6; } 5189else 5190 { $as_echo "$as_me:$LINENO: result: no" >&5 5191$as_echo "no" >&6; } 5192fi 5193 5194 5195fi 5196if test -z "$ac_cv_prog_DSYMUTIL"; then 5197 ac_ct_DSYMUTIL=$DSYMUTIL 5198 # Extract the first word of "dsymutil", so it can be a program name with args. 5199set dummy dsymutil; ac_word=$2 5200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5201$as_echo_n "checking for $ac_word... " >&6; } 5202if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5203 $as_echo_n "(cached) " >&6 5204else 5205 if test -n "$ac_ct_DSYMUTIL"; then 5206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5207else 5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209for as_dir in $PATH 5210do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219done 5220done 5221IFS=$as_save_IFS 5222 5223fi 5224fi 5225ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5226if test -n "$ac_ct_DSYMUTIL"; then 5227 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5228$as_echo "$ac_ct_DSYMUTIL" >&6; } 5229else 5230 { $as_echo "$as_me:$LINENO: result: no" >&5 5231$as_echo "no" >&6; } 5232fi 5233 5234 if test "x$ac_ct_DSYMUTIL" = x; then 5235 DSYMUTIL=":" 5236 else 5237 case $cross_compiling:$ac_tool_warned in 5238yes:) 5239{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5240whose name does not start with the host triplet. If you think this 5241configuration is useful to you, please write to [email protected]." >&5 5242$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5243whose name does not start with the host triplet. If you think this 5244configuration is useful to you, please write to [email protected]." >&2;} 5245ac_tool_warned=yes ;; 5246esac 5247 DSYMUTIL=$ac_ct_DSYMUTIL 5248 fi 5249else 5250 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5251fi 5252 5253 if test -n "$ac_tool_prefix"; then 5254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5255set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5257$as_echo_n "checking for $ac_word... " >&6; } 5258if test "${ac_cv_prog_NMEDIT+set}" = set; then 5259 $as_echo_n "(cached) " >&6 5260else 5261 if test -n "$NMEDIT"; then 5262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5263else 5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5265for as_dir in $PATH 5266do 5267 IFS=$as_save_IFS 5268 test -z "$as_dir" && as_dir=. 5269 for ac_exec_ext in '' $ac_executable_extensions; do 5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5273 break 2 5274 fi 5275done 5276done 5277IFS=$as_save_IFS 5278 5279fi 5280fi 5281NMEDIT=$ac_cv_prog_NMEDIT 5282if test -n "$NMEDIT"; then 5283 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5284$as_echo "$NMEDIT" >&6; } 5285else 5286 { $as_echo "$as_me:$LINENO: result: no" >&5 5287$as_echo "no" >&6; } 5288fi 5289 5290 5291fi 5292if test -z "$ac_cv_prog_NMEDIT"; then 5293 ac_ct_NMEDIT=$NMEDIT 5294 # Extract the first word of "nmedit", so it can be a program name with args. 5295set dummy nmedit; ac_word=$2 5296{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5297$as_echo_n "checking for $ac_word... " >&6; } 5298if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5299 $as_echo_n "(cached) " >&6 5300else 5301 if test -n "$ac_ct_NMEDIT"; then 5302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5303else 5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5305for as_dir in $PATH 5306do 5307 IFS=$as_save_IFS 5308 test -z "$as_dir" && as_dir=. 5309 for ac_exec_ext in '' $ac_executable_extensions; do 5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5311 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5313 break 2 5314 fi 5315done 5316done 5317IFS=$as_save_IFS 5318 5319fi 5320fi 5321ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5322if test -n "$ac_ct_NMEDIT"; then 5323 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5324$as_echo "$ac_ct_NMEDIT" >&6; } 5325else 5326 { $as_echo "$as_me:$LINENO: result: no" >&5 5327$as_echo "no" >&6; } 5328fi 5329 5330 if test "x$ac_ct_NMEDIT" = x; then 5331 NMEDIT=":" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334yes:) 5335{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5336whose name does not start with the host triplet. If you think this 5337configuration is useful to you, please write to [email protected]." >&5 5338$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5339whose name does not start with the host triplet. If you think this 5340configuration is useful to you, please write to [email protected]." >&2;} 5341ac_tool_warned=yes ;; 5342esac 5343 NMEDIT=$ac_ct_NMEDIT 5344 fi 5345else 5346 NMEDIT="$ac_cv_prog_NMEDIT" 5347fi 5348 5349 if test -n "$ac_tool_prefix"; then 5350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5351set dummy ${ac_tool_prefix}lipo; ac_word=$2 5352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5353$as_echo_n "checking for $ac_word... " >&6; } 5354if test "${ac_cv_prog_LIPO+set}" = set; then 5355 $as_echo_n "(cached) " >&6 5356else 5357 if test -n "$LIPO"; then 5358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5359else 5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH 5362do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371done 5372done 5373IFS=$as_save_IFS 5374 5375fi 5376fi 5377LIPO=$ac_cv_prog_LIPO 5378if test -n "$LIPO"; then 5379 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5380$as_echo "$LIPO" >&6; } 5381else 5382 { $as_echo "$as_me:$LINENO: result: no" >&5 5383$as_echo "no" >&6; } 5384fi 5385 5386 5387fi 5388if test -z "$ac_cv_prog_LIPO"; then 5389 ac_ct_LIPO=$LIPO 5390 # Extract the first word of "lipo", so it can be a program name with args. 5391set dummy lipo; ac_word=$2 5392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5393$as_echo_n "checking for $ac_word... " >&6; } 5394if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5395 $as_echo_n "(cached) " >&6 5396else 5397 if test -n "$ac_ct_LIPO"; then 5398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5399else 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5407 ac_cv_prog_ac_ct_LIPO="lipo" 5408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411done 5412done 5413IFS=$as_save_IFS 5414 5415fi 5416fi 5417ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5418if test -n "$ac_ct_LIPO"; then 5419 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5420$as_echo "$ac_ct_LIPO" >&6; } 5421else 5422 { $as_echo "$as_me:$LINENO: result: no" >&5 5423$as_echo "no" >&6; } 5424fi 5425 5426 if test "x$ac_ct_LIPO" = x; then 5427 LIPO=":" 5428 else 5429 case $cross_compiling:$ac_tool_warned in 5430yes:) 5431{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5432whose name does not start with the host triplet. If you think this 5433configuration is useful to you, please write to [email protected]." >&5 5434$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5435whose name does not start with the host triplet. If you think this 5436configuration is useful to you, please write to [email protected]." >&2;} 5437ac_tool_warned=yes ;; 5438esac 5439 LIPO=$ac_ct_LIPO 5440 fi 5441else 5442 LIPO="$ac_cv_prog_LIPO" 5443fi 5444 5445 if test -n "$ac_tool_prefix"; then 5446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5447set dummy ${ac_tool_prefix}otool; ac_word=$2 5448{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5449$as_echo_n "checking for $ac_word... " >&6; } 5450if test "${ac_cv_prog_OTOOL+set}" = set; then 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test -n "$OTOOL"; then 5454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5455else 5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5457for as_dir in $PATH 5458do 5459 IFS=$as_save_IFS 5460 test -z "$as_dir" && as_dir=. 5461 for ac_exec_ext in '' $ac_executable_extensions; do 5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5465 break 2 5466 fi 5467done 5468done 5469IFS=$as_save_IFS 5470 5471fi 5472fi 5473OTOOL=$ac_cv_prog_OTOOL 5474if test -n "$OTOOL"; then 5475 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 5476$as_echo "$OTOOL" >&6; } 5477else 5478 { $as_echo "$as_me:$LINENO: result: no" >&5 5479$as_echo "no" >&6; } 5480fi 5481 5482 5483fi 5484if test -z "$ac_cv_prog_OTOOL"; then 5485 ac_ct_OTOOL=$OTOOL 5486 # Extract the first word of "otool", so it can be a program name with args. 5487set dummy otool; ac_word=$2 5488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5489$as_echo_n "checking for $ac_word... " >&6; } 5490if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 5491 $as_echo_n "(cached) " >&6 5492else 5493 if test -n "$ac_ct_OTOOL"; then 5494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5495else 5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5497for as_dir in $PATH 5498do 5499 IFS=$as_save_IFS 5500 test -z "$as_dir" && as_dir=. 5501 for ac_exec_ext in '' $ac_executable_extensions; do 5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5503 ac_cv_prog_ac_ct_OTOOL="otool" 5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5505 break 2 5506 fi 5507done 5508done 5509IFS=$as_save_IFS 5510 5511fi 5512fi 5513ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5514if test -n "$ac_ct_OTOOL"; then 5515 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 5516$as_echo "$ac_ct_OTOOL" >&6; } 5517else 5518 { $as_echo "$as_me:$LINENO: result: no" >&5 5519$as_echo "no" >&6; } 5520fi 5521 5522 if test "x$ac_ct_OTOOL" = x; then 5523 OTOOL=":" 5524 else 5525 case $cross_compiling:$ac_tool_warned in 5526yes:) 5527{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5528whose name does not start with the host triplet. If you think this 5529configuration is useful to you, please write to [email protected]." >&5 5530$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5531whose name does not start with the host triplet. If you think this 5532configuration is useful to you, please write to [email protected]." >&2;} 5533ac_tool_warned=yes ;; 5534esac 5535 OTOOL=$ac_ct_OTOOL 5536 fi 5537else 5538 OTOOL="$ac_cv_prog_OTOOL" 5539fi 5540 5541 if test -n "$ac_tool_prefix"; then 5542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5543set dummy ${ac_tool_prefix}otool64; ac_word=$2 5544{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if test "${ac_cv_prog_OTOOL64+set}" = set; then 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$OTOOL64"; then 5550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569OTOOL64=$ac_cv_prog_OTOOL64 5570if test -n "$OTOOL64"; then 5571 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 5572$as_echo "$OTOOL64" >&6; } 5573else 5574 { $as_echo "$as_me:$LINENO: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579fi 5580if test -z "$ac_cv_prog_OTOOL64"; then 5581 ac_ct_OTOOL64=$OTOOL64 5582 # Extract the first word of "otool64", so it can be a program name with args. 5583set dummy otool64; ac_word=$2 5584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5585$as_echo_n "checking for $ac_word... " >&6; } 5586if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 5587 $as_echo_n "(cached) " >&6 5588else 5589 if test -n "$ac_ct_OTOOL64"; then 5590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5591else 5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_exec_ext in '' $ac_executable_extensions; do 5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5599 ac_cv_prog_ac_ct_OTOOL64="otool64" 5600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5601 break 2 5602 fi 5603done 5604done 5605IFS=$as_save_IFS 5606 5607fi 5608fi 5609ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5610if test -n "$ac_ct_OTOOL64"; then 5611 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 5612$as_echo "$ac_ct_OTOOL64" >&6; } 5613else 5614 { $as_echo "$as_me:$LINENO: result: no" >&5 5615$as_echo "no" >&6; } 5616fi 5617 5618 if test "x$ac_ct_OTOOL64" = x; then 5619 OTOOL64=":" 5620 else 5621 case $cross_compiling:$ac_tool_warned in 5622yes:) 5623{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5624whose name does not start with the host triplet. If you think this 5625configuration is useful to you, please write to [email protected]." >&5 5626$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5627whose name does not start with the host triplet. If you think this 5628configuration is useful to you, please write to [email protected]." >&2;} 5629ac_tool_warned=yes ;; 5630esac 5631 OTOOL64=$ac_ct_OTOOL64 5632 fi 5633else 5634 OTOOL64="$ac_cv_prog_OTOOL64" 5635fi 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 5664$as_echo_n "checking for -single_module linker flag... " >&6; } 5665if test "${lt_cv_apple_cc_single_mod+set}" = set; then 5666 $as_echo_n "(cached) " >&6 5667else 5668 lt_cv_apple_cc_single_mod=no 5669 if test -z "${LT_MULTI_MODULE}"; then 5670 # By default we will add the -single_module flag. You can override 5671 # by either setting the environment variable LT_MULTI_MODULE 5672 # non-empty at configure time, or by adding -multi_module to the 5673 # link flags. 5674 rm -rf libconftest.dylib* 5675 echo "int foo(void){return 1;}" > conftest.c 5676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5677-dynamiclib -Wl,-single_module conftest.c" >&5 5678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5680 _lt_result=$? 5681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5682 lt_cv_apple_cc_single_mod=yes 5683 else 5684 cat conftest.err >&5 5685 fi 5686 rm -rf libconftest.dylib* 5687 rm -f conftest.* 5688 fi 5689fi 5690{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 5691$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5692 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 5693$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5694if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 5695 $as_echo_n "(cached) " >&6 5696else 5697 lt_cv_ld_exported_symbols_list=no 5698 save_LDFLAGS=$LDFLAGS 5699 echo "_main" > conftest.sym 5700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5701 cat >conftest.$ac_ext <<_ACEOF 5702/* confdefs.h. */ 5703_ACEOF 5704cat confdefs.h >>conftest.$ac_ext 5705cat >>conftest.$ac_ext <<_ACEOF 5706/* end confdefs.h. */ 5707 5708int 5709main () 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716rm -f conftest.$ac_objext conftest$ac_exeext 5717if { (ac_try="$ac_link" 5718case "(($ac_try" in 5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5720 *) ac_try_echo=$ac_try;; 5721esac 5722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5723$as_echo "$ac_try_echo") >&5 5724 (eval "$ac_link") 2>conftest.er1 5725 ac_status=$? 5726 grep -v '^ *+' conftest.er1 >conftest.err 5727 rm -f conftest.er1 5728 cat conftest.err >&5 5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5730 (exit $ac_status); } && { 5731 test -z "$ac_c_werror_flag" || 5732 test ! -s conftest.err 5733 } && test -s conftest$ac_exeext && { 5734 test "$cross_compiling" = yes || 5735 $as_test_x conftest$ac_exeext 5736 }; then 5737 lt_cv_ld_exported_symbols_list=yes 5738else 5739 $as_echo "$as_me: failed program was:" >&5 5740sed 's/^/| /' conftest.$ac_ext >&5 5741 5742 lt_cv_ld_exported_symbols_list=no 5743fi 5744 5745rm -rf conftest.dSYM 5746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5747 conftest$ac_exeext conftest.$ac_ext 5748 LDFLAGS="$save_LDFLAGS" 5749 5750fi 5751{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 5752$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5753 case $host_os in 5754 rhapsody* | darwin1.[012]) 5755 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5756 darwin1.*) 5757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5758 darwin*) # darwin 5.x on 5759 # if running on 10.5 or later, the deployment target defaults 5760 # to the OS version, if on x86, and 10.4, the deployment 5761 # target defaults to 10.4. Don't you love it? 5762 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5763 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5764 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5765 10.[012]*) 5766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5767 10.*) 5768 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5769 esac 5770 ;; 5771 esac 5772 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5773 _lt_dar_single_mod='$single_module' 5774 fi 5775 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5776 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5777 else 5778 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5779 fi 5780 if test "$DSYMUTIL" != ":"; then 5781 _lt_dsymutil='~$DSYMUTIL $lib || :' 5782 else 5783 _lt_dsymutil= 5784 fi 5785 ;; 5786 esac 5787 5788ac_ext=c 5789ac_cpp='$CPP $CPPFLAGS' 5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5792ac_compiler_gnu=$ac_cv_c_compiler_gnu 5793{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5794$as_echo_n "checking how to run the C preprocessor... " >&6; } 5795# On Suns, sometimes $CPP names a directory. 5796if test -n "$CPP" && test -d "$CPP"; then 5797 CPP= 5798fi 5799if test -z "$CPP"; then 5800 if test "${ac_cv_prog_CPP+set}" = set; then 5801 $as_echo_n "(cached) " >&6 5802else 5803 # Double quotes because CPP needs to be expanded 5804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5805 do 5806 ac_preproc_ok=false 5807for ac_c_preproc_warn_flag in '' yes 5808do 5809 # Use a header file that comes with gcc, so configuring glibc 5810 # with a fresh cross-compiler works. 5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5812 # <limits.h> exists even on freestanding compilers. 5813 # On the NeXT, cc -E runs the code through the compiler's parser, 5814 # not just through cpp. "Syntax error" is here to catch this case. 5815 cat >conftest.$ac_ext <<_ACEOF 5816/* confdefs.h. */ 5817_ACEOF 5818cat confdefs.h >>conftest.$ac_ext 5819cat >>conftest.$ac_ext <<_ACEOF 5820/* end confdefs.h. */ 5821#ifdef __STDC__ 5822# include <limits.h> 5823#else 5824# include <assert.h> 5825#endif 5826 Syntax error 5827_ACEOF 5828if { (ac_try="$ac_cpp conftest.$ac_ext" 5829case "(($ac_try" in 5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5831 *) ac_try_echo=$ac_try;; 5832esac 5833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5834$as_echo "$ac_try_echo") >&5 5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } >/dev/null && { 5842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5843 test ! -s conftest.err 5844 }; then 5845 : 5846else 5847 $as_echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 # Broken: fails on valid input. 5851continue 5852fi 5853 5854rm -f conftest.err conftest.$ac_ext 5855 5856 # OK, works on sane cases. Now check whether nonexistent headers 5857 # can be detected and how. 5858 cat >conftest.$ac_ext <<_ACEOF 5859/* confdefs.h. */ 5860_ACEOF 5861cat confdefs.h >>conftest.$ac_ext 5862cat >>conftest.$ac_ext <<_ACEOF 5863/* end confdefs.h. */ 5864#include <ac_nonexistent.h> 5865_ACEOF 5866if { (ac_try="$ac_cpp conftest.$ac_ext" 5867case "(($ac_try" in 5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5869 *) ac_try_echo=$ac_try;; 5870esac 5871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5872$as_echo "$ac_try_echo") >&5 5873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5874 ac_status=$? 5875 grep -v '^ *+' conftest.er1 >conftest.err 5876 rm -f conftest.er1 5877 cat conftest.err >&5 5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5879 (exit $ac_status); } >/dev/null && { 5880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5881 test ! -s conftest.err 5882 }; then 5883 # Broken: success on invalid input. 5884continue 5885else 5886 $as_echo "$as_me: failed program was:" >&5 5887sed 's/^/| /' conftest.$ac_ext >&5 5888 5889 # Passes both tests. 5890ac_preproc_ok=: 5891break 5892fi 5893 5894rm -f conftest.err conftest.$ac_ext 5895 5896done 5897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5898rm -f conftest.err conftest.$ac_ext 5899if $ac_preproc_ok; then 5900 break 5901fi 5902 5903 done 5904 ac_cv_prog_CPP=$CPP 5905 5906fi 5907 CPP=$ac_cv_prog_CPP 5908else 5909 ac_cv_prog_CPP=$CPP 5910fi 5911{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 5912$as_echo "$CPP" >&6; } 5913ac_preproc_ok=false 5914for ac_c_preproc_warn_flag in '' yes 5915do 5916 # Use a header file that comes with gcc, so configuring glibc 5917 # with a fresh cross-compiler works. 5918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5919 # <limits.h> exists even on freestanding compilers. 5920 # On the NeXT, cc -E runs the code through the compiler's parser, 5921 # not just through cpp. "Syntax error" is here to catch this case. 5922 cat >conftest.$ac_ext <<_ACEOF 5923/* confdefs.h. */ 5924_ACEOF 5925cat confdefs.h >>conftest.$ac_ext 5926cat >>conftest.$ac_ext <<_ACEOF 5927/* end confdefs.h. */ 5928#ifdef __STDC__ 5929# include <limits.h> 5930#else 5931# include <assert.h> 5932#endif 5933 Syntax error 5934_ACEOF 5935if { (ac_try="$ac_cpp conftest.$ac_ext" 5936case "(($ac_try" in 5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5938 *) ac_try_echo=$ac_try;; 5939esac 5940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5941$as_echo "$ac_try_echo") >&5 5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5943 ac_status=$? 5944 grep -v '^ *+' conftest.er1 >conftest.err 5945 rm -f conftest.er1 5946 cat conftest.err >&5 5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); } >/dev/null && { 5949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5950 test ! -s conftest.err 5951 }; then 5952 : 5953else 5954 $as_echo "$as_me: failed program was:" >&5 5955sed 's/^/| /' conftest.$ac_ext >&5 5956 5957 # Broken: fails on valid input. 5958continue 5959fi 5960 5961rm -f conftest.err conftest.$ac_ext 5962 5963 # OK, works on sane cases. Now check whether nonexistent headers 5964 # can be detected and how. 5965 cat >conftest.$ac_ext <<_ACEOF 5966/* confdefs.h. */ 5967_ACEOF 5968cat confdefs.h >>conftest.$ac_ext 5969cat >>conftest.$ac_ext <<_ACEOF 5970/* end confdefs.h. */ 5971#include <ac_nonexistent.h> 5972_ACEOF 5973if { (ac_try="$ac_cpp conftest.$ac_ext" 5974case "(($ac_try" in 5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5976 *) ac_try_echo=$ac_try;; 5977esac 5978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5979$as_echo "$ac_try_echo") >&5 5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } >/dev/null && { 5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5988 test ! -s conftest.err 5989 }; then 5990 # Broken: success on invalid input. 5991continue 5992else 5993 $as_echo "$as_me: failed program was:" >&5 5994sed 's/^/| /' conftest.$ac_ext >&5 5995 5996 # Passes both tests. 5997ac_preproc_ok=: 5998break 5999fi 6000 6001rm -f conftest.err conftest.$ac_ext 6002 6003done 6004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6005rm -f conftest.err conftest.$ac_ext 6006if $ac_preproc_ok; then 6007 : 6008else 6009 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6010See \`config.log' for more details." >&5 6011$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6012See \`config.log' for more details." >&2;} 6013 { (exit 1); exit 1; }; } 6014fi 6015 6016ac_ext=c 6017ac_cpp='$CPP $CPPFLAGS' 6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6020ac_compiler_gnu=$ac_cv_c_compiler_gnu 6021 6022 6023{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6024$as_echo_n "checking for ANSI C header files... " >&6; } 6025if test "${ac_cv_header_stdc+set}" = set; then 6026 $as_echo_n "(cached) " >&6 6027else 6028 cat >conftest.$ac_ext <<_ACEOF 6029/* confdefs.h. */ 6030_ACEOF 6031cat confdefs.h >>conftest.$ac_ext 6032cat >>conftest.$ac_ext <<_ACEOF 6033/* end confdefs.h. */ 6034#include <stdlib.h> 6035#include <stdarg.h> 6036#include <string.h> 6037#include <float.h> 6038 6039int 6040main () 6041{ 6042 6043 ; 6044 return 0; 6045} 6046_ACEOF 6047rm -f conftest.$ac_objext 6048if { (ac_try="$ac_compile" 6049case "(($ac_try" in 6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6051 *) ac_try_echo=$ac_try;; 6052esac 6053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6054$as_echo "$ac_try_echo") >&5 6055 (eval "$ac_compile") 2>conftest.er1 6056 ac_status=$? 6057 grep -v '^ *+' conftest.er1 >conftest.err 6058 rm -f conftest.er1 6059 cat conftest.err >&5 6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); } && { 6062 test -z "$ac_c_werror_flag" || 6063 test ! -s conftest.err 6064 } && test -s conftest.$ac_objext; then 6065 ac_cv_header_stdc=yes 6066else 6067 $as_echo "$as_me: failed program was:" >&5 6068sed 's/^/| /' conftest.$ac_ext >&5 6069 6070 ac_cv_header_stdc=no 6071fi 6072 6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6074 6075if test $ac_cv_header_stdc = yes; then 6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6077 cat >conftest.$ac_ext <<_ACEOF 6078/* confdefs.h. */ 6079_ACEOF 6080cat confdefs.h >>conftest.$ac_ext 6081cat >>conftest.$ac_ext <<_ACEOF 6082/* end confdefs.h. */ 6083#include <string.h> 6084 6085_ACEOF 6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6087 $EGREP "memchr" >/dev/null 2>&1; then 6088 : 6089else 6090 ac_cv_header_stdc=no 6091fi 6092rm -f conftest* 6093 6094fi 6095 6096if test $ac_cv_header_stdc = yes; then 6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6098 cat >conftest.$ac_ext <<_ACEOF 6099/* confdefs.h. */ 6100_ACEOF 6101cat confdefs.h >>conftest.$ac_ext 6102cat >>conftest.$ac_ext <<_ACEOF 6103/* end confdefs.h. */ 6104#include <stdlib.h> 6105 6106_ACEOF 6107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6108 $EGREP "free" >/dev/null 2>&1; then 6109 : 6110else 6111 ac_cv_header_stdc=no 6112fi 6113rm -f conftest* 6114 6115fi 6116 6117if test $ac_cv_header_stdc = yes; then 6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6119 if test "$cross_compiling" = yes; then 6120 : 6121else 6122 cat >conftest.$ac_ext <<_ACEOF 6123/* confdefs.h. */ 6124_ACEOF 6125cat confdefs.h >>conftest.$ac_ext 6126cat >>conftest.$ac_ext <<_ACEOF 6127/* end confdefs.h. */ 6128#include <ctype.h> 6129#include <stdlib.h> 6130#if ((' ' & 0x0FF) == 0x020) 6131# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6132# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6133#else 6134# define ISLOWER(c) \ 6135 (('a' <= (c) && (c) <= 'i') \ 6136 || ('j' <= (c) && (c) <= 'r') \ 6137 || ('s' <= (c) && (c) <= 'z')) 6138# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6139#endif 6140 6141#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6142int 6143main () 6144{ 6145 int i; 6146 for (i = 0; i < 256; i++) 6147 if (XOR (islower (i), ISLOWER (i)) 6148 || toupper (i) != TOUPPER (i)) 6149 return 2; 6150 return 0; 6151} 6152_ACEOF 6153rm -f conftest$ac_exeext 6154if { (ac_try="$ac_link" 6155case "(($ac_try" in 6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6157 *) ac_try_echo=$ac_try;; 6158esac 6159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6160$as_echo "$ac_try_echo") >&5 6161 (eval "$ac_link") 2>&5 6162 ac_status=$? 6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6165 { (case "(($ac_try" in 6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6167 *) ac_try_echo=$ac_try;; 6168esac 6169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6170$as_echo "$ac_try_echo") >&5 6171 (eval "$ac_try") 2>&5 6172 ac_status=$? 6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); }; }; then 6175 : 6176else 6177 $as_echo "$as_me: program exited with status $ac_status" >&5 6178$as_echo "$as_me: failed program was:" >&5 6179sed 's/^/| /' conftest.$ac_ext >&5 6180 6181( exit $ac_status ) 6182ac_cv_header_stdc=no 6183fi 6184rm -rf conftest.dSYM 6185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6186fi 6187 6188 6189fi 6190fi 6191{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6192$as_echo "$ac_cv_header_stdc" >&6; } 6193if test $ac_cv_header_stdc = yes; then 6194 6195cat >>confdefs.h <<\_ACEOF 6196#define STDC_HEADERS 1 6197_ACEOF 6198 6199fi 6200 6201# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6212 inttypes.h stdint.h unistd.h 6213do 6214as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6215{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6216$as_echo_n "checking for $ac_header... " >&6; } 6217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6218 $as_echo_n "(cached) " >&6 6219else 6220 cat >conftest.$ac_ext <<_ACEOF 6221/* confdefs.h. */ 6222_ACEOF 6223cat confdefs.h >>conftest.$ac_ext 6224cat >>conftest.$ac_ext <<_ACEOF 6225/* end confdefs.h. */ 6226$ac_includes_default 6227 6228#include <$ac_header> 6229_ACEOF 6230rm -f conftest.$ac_objext 6231if { (ac_try="$ac_compile" 6232case "(($ac_try" in 6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6234 *) ac_try_echo=$ac_try;; 6235esac 6236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6237$as_echo "$ac_try_echo") >&5 6238 (eval "$ac_compile") 2>conftest.er1 6239 ac_status=$? 6240 grep -v '^ *+' conftest.er1 >conftest.err 6241 rm -f conftest.er1 6242 cat conftest.err >&5 6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } && { 6245 test -z "$ac_c_werror_flag" || 6246 test ! -s conftest.err 6247 } && test -s conftest.$ac_objext; then 6248 eval "$as_ac_Header=yes" 6249else 6250 $as_echo "$as_me: failed program was:" >&5 6251sed 's/^/| /' conftest.$ac_ext >&5 6252 6253 eval "$as_ac_Header=no" 6254fi 6255 6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6257fi 6258ac_res=`eval 'as_val=${'$as_ac_Header'} 6259 $as_echo "$as_val"'` 6260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6261$as_echo "$ac_res" >&6; } 6262if test `eval 'as_val=${'$as_ac_Header'} 6263 $as_echo "$as_val"'` = yes; then 6264 cat >>confdefs.h <<_ACEOF 6265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6266_ACEOF 6267 6268fi 6269 6270done 6271 6272 6273 6274for ac_header in dlfcn.h 6275do 6276as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6277{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6278$as_echo_n "checking for $ac_header... " >&6; } 6279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6280 $as_echo_n "(cached) " >&6 6281else 6282 cat >conftest.$ac_ext <<_ACEOF 6283/* confdefs.h. */ 6284_ACEOF 6285cat confdefs.h >>conftest.$ac_ext 6286cat >>conftest.$ac_ext <<_ACEOF 6287/* end confdefs.h. */ 6288$ac_includes_default 6289 6290#include <$ac_header> 6291_ACEOF 6292rm -f conftest.$ac_objext 6293if { (ac_try="$ac_compile" 6294case "(($ac_try" in 6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6296 *) ac_try_echo=$ac_try;; 6297esac 6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6299$as_echo "$ac_try_echo") >&5 6300 (eval "$ac_compile") 2>conftest.er1 6301 ac_status=$? 6302 grep -v '^ *+' conftest.er1 >conftest.err 6303 rm -f conftest.er1 6304 cat conftest.err >&5 6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); } && { 6307 test -z "$ac_c_werror_flag" || 6308 test ! -s conftest.err 6309 } && test -s conftest.$ac_objext; then 6310 eval "$as_ac_Header=yes" 6311else 6312 $as_echo "$as_me: failed program was:" >&5 6313sed 's/^/| /' conftest.$ac_ext >&5 6314 6315 eval "$as_ac_Header=no" 6316fi 6317 6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6319fi 6320ac_res=`eval 'as_val=${'$as_ac_Header'} 6321 $as_echo "$as_val"'` 6322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6323$as_echo "$ac_res" >&6; } 6324if test `eval 'as_val=${'$as_ac_Header'} 6325 $as_echo "$as_val"'` = yes; then 6326 cat >>confdefs.h <<_ACEOF 6327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6328_ACEOF 6329 6330fi 6331 6332done 6333 6334 6335 6336# Set options 6337 6338 6339 6340 enable_dlopen=no 6341 6342 6343 enable_win32_dll=no 6344 6345 6346 # Check whether --enable-shared was given. 6347if test "${enable_shared+set}" = set; then 6348 enableval=$enable_shared; p=${PACKAGE-default} 6349 case $enableval in 6350 yes) enable_shared=yes ;; 6351 no) enable_shared=no ;; 6352 *) 6353 enable_shared=no 6354 # Look at the argument we got. We use all the common list separators. 6355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6356 for pkg in $enableval; do 6357 IFS="$lt_save_ifs" 6358 if test "X$pkg" = "X$p"; then 6359 enable_shared=yes 6360 fi 6361 done 6362 IFS="$lt_save_ifs" 6363 ;; 6364 esac 6365else 6366 enable_shared=yes 6367fi 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 # Check whether --enable-static was given. 6378if test "${enable_static+set}" = set; then 6379 enableval=$enable_static; p=${PACKAGE-default} 6380 case $enableval in 6381 yes) enable_static=yes ;; 6382 no) enable_static=no ;; 6383 *) 6384 enable_static=no 6385 # Look at the argument we got. We use all the common list separators. 6386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6387 for pkg in $enableval; do 6388 IFS="$lt_save_ifs" 6389 if test "X$pkg" = "X$p"; then 6390 enable_static=yes 6391 fi 6392 done 6393 IFS="$lt_save_ifs" 6394 ;; 6395 esac 6396else 6397 enable_static=yes 6398fi 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409# Check whether --with-pic was given. 6410if test "${with_pic+set}" = set; then 6411 withval=$with_pic; pic_mode="$withval" 6412else 6413 pic_mode=default 6414fi 6415 6416 6417test -z "$pic_mode" && pic_mode=default 6418 6419 6420 6421 6422 6423 6424 6425 # Check whether --enable-fast-install was given. 6426if test "${enable_fast_install+set}" = set; then 6427 enableval=$enable_fast_install; p=${PACKAGE-default} 6428 case $enableval in 6429 yes) enable_fast_install=yes ;; 6430 no) enable_fast_install=no ;; 6431 *) 6432 enable_fast_install=no 6433 # Look at the argument we got. We use all the common list separators. 6434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6435 for pkg in $enableval; do 6436 IFS="$lt_save_ifs" 6437 if test "X$pkg" = "X$p"; then 6438 enable_fast_install=yes 6439 fi 6440 done 6441 IFS="$lt_save_ifs" 6442 ;; 6443 esac 6444else 6445 enable_fast_install=yes 6446fi 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458# This can be used to rebuild libtool when needed 6459LIBTOOL_DEPS="$ltmain" 6460 6461# Always use our own libtool. 6462LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488test -z "$LN_S" && LN_S="ln -s" 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503if test -n "${ZSH_VERSION+set}" ; then 6504 setopt NO_GLOB_SUBST 6505fi 6506 6507{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6508$as_echo_n "checking for objdir... " >&6; } 6509if test "${lt_cv_objdir+set}" = set; then 6510 $as_echo_n "(cached) " >&6 6511else 6512 rm -f .libs 2>/dev/null 6513mkdir .libs 2>/dev/null 6514if test -d .libs; then 6515 lt_cv_objdir=.libs 6516else 6517 # MS-DOS does not allow filenames that begin with a dot. 6518 lt_cv_objdir=_libs 6519fi 6520rmdir .libs 2>/dev/null 6521fi 6522{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6523$as_echo "$lt_cv_objdir" >&6; } 6524objdir=$lt_cv_objdir 6525 6526 6527 6528 6529 6530cat >>confdefs.h <<_ACEOF 6531#define LT_OBJDIR "$lt_cv_objdir/" 6532_ACEOF 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550case $host_os in 6551aix3*) 6552 # AIX sometimes has problems with the GCC collect2 program. For some 6553 # reason, if we set the COLLECT_NAMES environment variable, the problems 6554 # vanish in a puff of smoke. 6555 if test "X${COLLECT_NAMES+set}" != Xset; then 6556 COLLECT_NAMES= 6557 export COLLECT_NAMES 6558 fi 6559 ;; 6560esac 6561 6562# Sed substitution that helps us do robust quoting. It backslashifies 6563# metacharacters that are still active within double-quoted strings. 6564sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6565 6566# Same as above, but do not quote variable references. 6567double_quote_subst='s/\(["`\\]\)/\\\1/g' 6568 6569# Sed substitution to delay expansion of an escaped shell variable in a 6570# double_quote_subst'ed string. 6571delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6572 6573# Sed substitution to delay expansion of an escaped single quote. 6574delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6575 6576# Sed substitution to avoid accidental globbing in evaled expressions 6577no_glob_subst='s/\*/\\\*/g' 6578 6579# Global variables: 6580ofile=libtool 6581can_build_shared=yes 6582 6583# All known linkers require a `.a' archive for static linking (except MSVC, 6584# which needs '.lib'). 6585libext=a 6586 6587with_gnu_ld="$lt_cv_prog_gnu_ld" 6588 6589old_CC="$CC" 6590old_CFLAGS="$CFLAGS" 6591 6592# Set sane defaults for various variables 6593test -z "$CC" && CC=cc 6594test -z "$LTCC" && LTCC=$CC 6595test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6596test -z "$LD" && LD=ld 6597test -z "$ac_objext" && ac_objext=o 6598 6599for cc_temp in $compiler""; do 6600 case $cc_temp in 6601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6603 \-*) ;; 6604 *) break;; 6605 esac 6606done 6607cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6608 6609 6610# Only perform the check for file, if the check method requires it 6611test -z "$MAGIC_CMD" && MAGIC_CMD=file 6612case $deplibs_check_method in 6613file_magic*) 6614 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6615 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6616$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6617if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6618 $as_echo_n "(cached) " >&6 6619else 6620 case $MAGIC_CMD in 6621[\\/*] | ?:[\\/]*) 6622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6623 ;; 6624*) 6625 lt_save_MAGIC_CMD="$MAGIC_CMD" 6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6628 for ac_dir in $ac_dummy; do 6629 IFS="$lt_save_ifs" 6630 test -z "$ac_dir" && ac_dir=. 6631 if test -f $ac_dir/${ac_tool_prefix}file; then 6632 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6633 if test -n "$file_magic_test_file"; then 6634 case $deplibs_check_method in 6635 "file_magic "*) 6636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6639 $EGREP "$file_magic_regex" > /dev/null; then 6640 : 6641 else 6642 cat <<_LT_EOF 1>&2 6643 6644*** Warning: the command libtool uses to detect shared libraries, 6645*** $file_magic_cmd, produces output that libtool cannot recognize. 6646*** The result is that libtool may fail to recognize shared libraries 6647*** as such. This will affect the creation of libtool libraries that 6648*** depend on shared libraries, but programs linked with such libtool 6649*** libraries will work regardless of this problem. Nevertheless, you 6650*** may want to report the problem to your system manager and/or to 6651*** [email protected] 6652 6653_LT_EOF 6654 fi ;; 6655 esac 6656 fi 6657 break 6658 fi 6659 done 6660 IFS="$lt_save_ifs" 6661 MAGIC_CMD="$lt_save_MAGIC_CMD" 6662 ;; 6663esac 6664fi 6665 6666MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6667if test -n "$MAGIC_CMD"; then 6668 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6669$as_echo "$MAGIC_CMD" >&6; } 6670else 6671 { $as_echo "$as_me:$LINENO: result: no" >&5 6672$as_echo "no" >&6; } 6673fi 6674 6675 6676 6677 6678 6679if test -z "$lt_cv_path_MAGIC_CMD"; then 6680 if test -n "$ac_tool_prefix"; then 6681 { $as_echo "$as_me:$LINENO: checking for file" >&5 6682$as_echo_n "checking for file... " >&6; } 6683if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6684 $as_echo_n "(cached) " >&6 6685else 6686 case $MAGIC_CMD in 6687[\\/*] | ?:[\\/]*) 6688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6689 ;; 6690*) 6691 lt_save_MAGIC_CMD="$MAGIC_CMD" 6692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6694 for ac_dir in $ac_dummy; do 6695 IFS="$lt_save_ifs" 6696 test -z "$ac_dir" && ac_dir=. 6697 if test -f $ac_dir/file; then 6698 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6699 if test -n "$file_magic_test_file"; then 6700 case $deplibs_check_method in 6701 "file_magic "*) 6702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6705 $EGREP "$file_magic_regex" > /dev/null; then 6706 : 6707 else 6708 cat <<_LT_EOF 1>&2 6709 6710*** Warning: the command libtool uses to detect shared libraries, 6711*** $file_magic_cmd, produces output that libtool cannot recognize. 6712*** The result is that libtool may fail to recognize shared libraries 6713*** as such. This will affect the creation of libtool libraries that 6714*** depend on shared libraries, but programs linked with such libtool 6715*** libraries will work regardless of this problem. Nevertheless, you 6716*** may want to report the problem to your system manager and/or to 6717*** [email protected] 6718 6719_LT_EOF 6720 fi ;; 6721 esac 6722 fi 6723 break 6724 fi 6725 done 6726 IFS="$lt_save_ifs" 6727 MAGIC_CMD="$lt_save_MAGIC_CMD" 6728 ;; 6729esac 6730fi 6731 6732MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6733if test -n "$MAGIC_CMD"; then 6734 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6735$as_echo "$MAGIC_CMD" >&6; } 6736else 6737 { $as_echo "$as_me:$LINENO: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 6742 else 6743 MAGIC_CMD=: 6744 fi 6745fi 6746 6747 fi 6748 ;; 6749esac 6750 6751# Use C for the default configuration in the libtool script 6752 6753lt_save_CC="$CC" 6754ac_ext=c 6755ac_cpp='$CPP $CPPFLAGS' 6756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6758ac_compiler_gnu=$ac_cv_c_compiler_gnu 6759 6760 6761# Source file extension for C test sources. 6762ac_ext=c 6763 6764# Object file extension for compiled C test sources. 6765objext=o 6766objext=$objext 6767 6768# Code to be used in simple compile tests 6769lt_simple_compile_test_code="int some_variable = 0;" 6770 6771# Code to be used in simple link tests 6772lt_simple_link_test_code='int main(){return(0);}' 6773 6774 6775 6776 6777 6778 6779 6780# If no C compiler was specified, use CC. 6781LTCC=${LTCC-"$CC"} 6782 6783# If no C compiler flags were specified, use CFLAGS. 6784LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6785 6786# Allow CC to be a program name with arguments. 6787compiler=$CC 6788 6789# Save the default compiler, since it gets overwritten when the other 6790# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6791compiler_DEFAULT=$CC 6792 6793# save warnings/boilerplate of simple test code 6794ac_outfile=conftest.$ac_objext 6795echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6797_lt_compiler_boilerplate=`cat conftest.err` 6798$RM conftest* 6799 6800ac_outfile=conftest.$ac_objext 6801echo "$lt_simple_link_test_code" >conftest.$ac_ext 6802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6803_lt_linker_boilerplate=`cat conftest.err` 6804$RM -r conftest* 6805 6806 6807if test -n "$compiler"; then 6808 6809lt_prog_compiler_no_builtin_flag= 6810 6811if test "$GCC" = yes; then 6812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6813 6814 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6815$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6816if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6817 $as_echo_n "(cached) " >&6 6818else 6819 lt_cv_prog_compiler_rtti_exceptions=no 6820 ac_outfile=conftest.$ac_objext 6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6822 lt_compiler_flag="-fno-rtti -fno-exceptions" 6823 # Insert the option either (1) after the last *FLAGS variable, or 6824 # (2) before a word containing "conftest.", or (3) at the end. 6825 # Note that $ac_compile itself does not contain backslashes and begins 6826 # with a dollar sign (not a hyphen), so the echo should work correctly. 6827 # The option is referenced via a variable to avoid confusing sed. 6828 lt_compile=`echo "$ac_compile" | $SED \ 6829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6831 -e 's:$: $lt_compiler_flag:'` 6832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5) 6833 (eval "$lt_compile" 2>conftest.err) 6834 ac_status=$? 6835 cat conftest.err >&5 6836 echo "$as_me:6836: \$? = $ac_status" >&5 6837 if (exit $ac_status) && test -s "$ac_outfile"; then 6838 # The compiler can only warn and ignore the option if not recognized 6839 # So say no if there are warnings other than the usual output. 6840 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6843 lt_cv_prog_compiler_rtti_exceptions=yes 6844 fi 6845 fi 6846 $RM conftest* 6847 6848fi 6849{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6850$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6851 6852if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6854else 6855 : 6856fi 6857 6858fi 6859 6860 6861 6862 6863 6864 6865 lt_prog_compiler_wl= 6866lt_prog_compiler_pic= 6867lt_prog_compiler_static= 6868 6869{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6870$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6871 6872 if test "$GCC" = yes; then 6873 lt_prog_compiler_wl='-Wl,' 6874 lt_prog_compiler_static='-static' 6875 6876 case $host_os in 6877 aix*) 6878 # All AIX code is PIC. 6879 if test "$host_cpu" = ia64; then 6880 # AIX 5 now supports IA64 processor 6881 lt_prog_compiler_static='-Bstatic' 6882 fi 6883 ;; 6884 6885 amigaos*) 6886 case $host_cpu in 6887 powerpc) 6888 # see comment about AmigaOS4 .so support 6889 lt_prog_compiler_pic='-fPIC' 6890 ;; 6891 m68k) 6892 # FIXME: we need at least 68020 code to build shared libraries, but 6893 # adding the `-m68020' flag to GCC prevents building anything better, 6894 # like `-m68040'. 6895 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6896 ;; 6897 esac 6898 ;; 6899 6900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6901 # PIC is the default for these OSes. 6902 ;; 6903 6904 mingw* | cygwin* | pw32* | os2* | cegcc*) 6905 # This hack is so that the source file can tell whether it is being 6906 # built for inclusion in a dll (and should export symbols for example). 6907 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6908 # (--disable-auto-import) libraries 6909 lt_prog_compiler_pic='-DDLL_EXPORT' 6910 ;; 6911 6912 darwin* | rhapsody*) 6913 # PIC is the default on this platform 6914 # Common symbols not allowed in MH_DYLIB files 6915 lt_prog_compiler_pic='-fno-common' 6916 ;; 6917 6918 hpux*) 6919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6921 # sets the default TLS model and affects inlining. 6922 case $host_cpu in 6923 hppa*64*) 6924 # +Z the default 6925 ;; 6926 *) 6927 lt_prog_compiler_pic='-fPIC' 6928 ;; 6929 esac 6930 ;; 6931 6932 interix[3-9]*) 6933 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6934 # Instead, we relocate shared libraries at runtime. 6935 ;; 6936 6937 msdosdjgpp*) 6938 # Just because we use GCC doesn't mean we suddenly get shared libraries 6939 # on systems that don't support them. 6940 lt_prog_compiler_can_build_shared=no 6941 enable_shared=no 6942 ;; 6943 6944 *nto* | *qnx*) 6945 # QNX uses GNU C++, but need to define -shared option too, otherwise 6946 # it will coredump. 6947 lt_prog_compiler_pic='-fPIC -shared' 6948 ;; 6949 6950 sysv4*MP*) 6951 if test -d /usr/nec; then 6952 lt_prog_compiler_pic=-Kconform_pic 6953 fi 6954 ;; 6955 6956 *) 6957 lt_prog_compiler_pic='-fPIC' 6958 ;; 6959 esac 6960 else 6961 # PORTME Check for flag to pass linker flags through the system compiler. 6962 case $host_os in 6963 aix*) 6964 lt_prog_compiler_wl='-Wl,' 6965 if test "$host_cpu" = ia64; then 6966 # AIX 5 now supports IA64 processor 6967 lt_prog_compiler_static='-Bstatic' 6968 else 6969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6970 fi 6971 ;; 6972 6973 mingw* | cygwin* | pw32* | os2* | cegcc*) 6974 # This hack is so that the source file can tell whether it is being 6975 # built for inclusion in a dll (and should export symbols for example). 6976 lt_prog_compiler_pic='-DDLL_EXPORT' 6977 ;; 6978 6979 hpux9* | hpux10* | hpux11*) 6980 lt_prog_compiler_wl='-Wl,' 6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6982 # not for PA HP-UX. 6983 case $host_cpu in 6984 hppa*64*|ia64*) 6985 # +Z the default 6986 ;; 6987 *) 6988 lt_prog_compiler_pic='+Z' 6989 ;; 6990 esac 6991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6992 lt_prog_compiler_static='${wl}-a ${wl}archive' 6993 ;; 6994 6995 irix5* | irix6* | nonstopux*) 6996 lt_prog_compiler_wl='-Wl,' 6997 # PIC (with -KPIC) is the default. 6998 lt_prog_compiler_static='-non_shared' 6999 ;; 7000 7001 linux* | k*bsd*-gnu) 7002 case $cc_basename in 7003 # old Intel for x86_64 which still supported -KPIC. 7004 ecc*) 7005 lt_prog_compiler_wl='-Wl,' 7006 lt_prog_compiler_pic='-KPIC' 7007 lt_prog_compiler_static='-static' 7008 ;; 7009 # icc used to be incompatible with GCC. 7010 # ICC 10 doesn't accept -KPIC any more. 7011 icc* | ifort*) 7012 lt_prog_compiler_wl='-Wl,' 7013 lt_prog_compiler_pic='-fPIC' 7014 lt_prog_compiler_static='-static' 7015 ;; 7016 # Lahey Fortran 8.1. 7017 lf95*) 7018 lt_prog_compiler_wl='-Wl,' 7019 lt_prog_compiler_pic='--shared' 7020 lt_prog_compiler_static='--static' 7021 ;; 7022 pgcc* | pgf77* | pgf90* | pgf95*) 7023 # Portland Group compilers (*not* the Pentium gcc compiler, 7024 # which looks to be a dead project) 7025 lt_prog_compiler_wl='-Wl,' 7026 lt_prog_compiler_pic='-fpic' 7027 lt_prog_compiler_static='-Bstatic' 7028 ;; 7029 ccc*) 7030 lt_prog_compiler_wl='-Wl,' 7031 # All Alpha code is PIC. 7032 lt_prog_compiler_static='-non_shared' 7033 ;; 7034 xl*) 7035 # IBM XL C 8.0/Fortran 10.1 on PPC 7036 lt_prog_compiler_wl='-Wl,' 7037 lt_prog_compiler_pic='-qpic' 7038 lt_prog_compiler_static='-qstaticlink' 7039 ;; 7040 *) 7041 case `$CC -V 2>&1 | sed 5q` in 7042 *Sun\ C*) 7043 # Sun C 5.9 7044 lt_prog_compiler_pic='-KPIC' 7045 lt_prog_compiler_static='-Bstatic' 7046 lt_prog_compiler_wl='-Wl,' 7047 ;; 7048 *Sun\ F*) 7049 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7050 lt_prog_compiler_pic='-KPIC' 7051 lt_prog_compiler_static='-Bstatic' 7052 lt_prog_compiler_wl='' 7053 ;; 7054 esac 7055 ;; 7056 esac 7057 ;; 7058 7059 newsos6) 7060 lt_prog_compiler_pic='-KPIC' 7061 lt_prog_compiler_static='-Bstatic' 7062 ;; 7063 7064 *nto* | *qnx*) 7065 # QNX uses GNU C++, but need to define -shared option too, otherwise 7066 # it will coredump. 7067 lt_prog_compiler_pic='-fPIC -shared' 7068 ;; 7069 7070 osf3* | osf4* | osf5*) 7071 lt_prog_compiler_wl='-Wl,' 7072 # All OSF/1 code is PIC. 7073 lt_prog_compiler_static='-non_shared' 7074 ;; 7075 7076 rdos*) 7077 lt_prog_compiler_static='-non_shared' 7078 ;; 7079 7080 solaris*) 7081 lt_prog_compiler_pic='-KPIC' 7082 lt_prog_compiler_static='-Bstatic' 7083 case $cc_basename in 7084 f77* | f90* | f95*) 7085 lt_prog_compiler_wl='-Qoption ld ';; 7086 *) 7087 lt_prog_compiler_wl='-Wl,';; 7088 esac 7089 ;; 7090 7091 sunos4*) 7092 lt_prog_compiler_wl='-Qoption ld ' 7093 lt_prog_compiler_pic='-PIC' 7094 lt_prog_compiler_static='-Bstatic' 7095 ;; 7096 7097 sysv4 | sysv4.2uw2* | sysv4.3*) 7098 lt_prog_compiler_wl='-Wl,' 7099 lt_prog_compiler_pic='-KPIC' 7100 lt_prog_compiler_static='-Bstatic' 7101 ;; 7102 7103 sysv4*MP*) 7104 if test -d /usr/nec ;then 7105 lt_prog_compiler_pic='-Kconform_pic' 7106 lt_prog_compiler_static='-Bstatic' 7107 fi 7108 ;; 7109 7110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7111 lt_prog_compiler_wl='-Wl,' 7112 lt_prog_compiler_pic='-KPIC' 7113 lt_prog_compiler_static='-Bstatic' 7114 ;; 7115 7116 unicos*) 7117 lt_prog_compiler_wl='-Wl,' 7118 lt_prog_compiler_can_build_shared=no 7119 ;; 7120 7121 uts4*) 7122 lt_prog_compiler_pic='-pic' 7123 lt_prog_compiler_static='-Bstatic' 7124 ;; 7125 7126 *) 7127 lt_prog_compiler_can_build_shared=no 7128 ;; 7129 esac 7130 fi 7131 7132case $host_os in 7133 # For platforms which do not support PIC, -DPIC is meaningless: 7134 *djgpp*) 7135 lt_prog_compiler_pic= 7136 ;; 7137 *) 7138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7139 ;; 7140esac 7141{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7142$as_echo "$lt_prog_compiler_pic" >&6; } 7143 7144 7145 7146 7147 7148 7149# 7150# Check to make sure the PIC flag actually works. 7151# 7152if test -n "$lt_prog_compiler_pic"; then 7153 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7154$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7155if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7156 $as_echo_n "(cached) " >&6 7157else 7158 lt_cv_prog_compiler_pic_works=no 7159 ac_outfile=conftest.$ac_objext 7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7161 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7162 # Insert the option either (1) after the last *FLAGS variable, or 7163 # (2) before a word containing "conftest.", or (3) at the end. 7164 # Note that $ac_compile itself does not contain backslashes and begins 7165 # with a dollar sign (not a hyphen), so the echo should work correctly. 7166 # The option is referenced via a variable to avoid confusing sed. 7167 lt_compile=`echo "$ac_compile" | $SED \ 7168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7170 -e 's:$: $lt_compiler_flag:'` 7171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5) 7172 (eval "$lt_compile" 2>conftest.err) 7173 ac_status=$? 7174 cat conftest.err >&5 7175 echo "$as_me:7175: \$? = $ac_status" >&5 7176 if (exit $ac_status) && test -s "$ac_outfile"; then 7177 # The compiler can only warn and ignore the option if not recognized 7178 # So say no if there are warnings other than the usual output. 7179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7182 lt_cv_prog_compiler_pic_works=yes 7183 fi 7184 fi 7185 $RM conftest* 7186 7187fi 7188{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7189$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7190 7191if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7192 case $lt_prog_compiler_pic in 7193 "" | " "*) ;; 7194 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7195 esac 7196else 7197 lt_prog_compiler_pic= 7198 lt_prog_compiler_can_build_shared=no 7199fi 7200 7201fi 7202 7203 7204 7205 7206 7207 7208# 7209# Check to make sure the static flag actually works. 7210# 7211wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7212{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7213$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7214if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7215 $as_echo_n "(cached) " >&6 7216else 7217 lt_cv_prog_compiler_static_works=no 7218 save_LDFLAGS="$LDFLAGS" 7219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7220 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7222 # The linker can only warn and ignore the option if not recognized 7223 # So say no if there are warnings 7224 if test -s conftest.err; then 7225 # Append any errors to the config.log. 7226 cat conftest.err 1>&5 7227 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7229 if diff conftest.exp conftest.er2 >/dev/null; then 7230 lt_cv_prog_compiler_static_works=yes 7231 fi 7232 else 7233 lt_cv_prog_compiler_static_works=yes 7234 fi 7235 fi 7236 $RM -r conftest* 7237 LDFLAGS="$save_LDFLAGS" 7238 7239fi 7240{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7241$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7242 7243if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7244 : 7245else 7246 lt_prog_compiler_static= 7247fi 7248 7249 7250 7251 7252 7253 7254 7255 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7257if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7258 $as_echo_n "(cached) " >&6 7259else 7260 lt_cv_prog_compiler_c_o=no 7261 $RM -r conftest 2>/dev/null 7262 mkdir conftest 7263 cd conftest 7264 mkdir out 7265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7266 7267 lt_compiler_flag="-o out/conftest2.$ac_objext" 7268 # Insert the option either (1) after the last *FLAGS variable, or 7269 # (2) before a word containing "conftest.", or (3) at the end. 7270 # Note that $ac_compile itself does not contain backslashes and begins 7271 # with a dollar sign (not a hyphen), so the echo should work correctly. 7272 lt_compile=`echo "$ac_compile" | $SED \ 7273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7275 -e 's:$: $lt_compiler_flag:'` 7276 (eval echo "\"\$as_me:7276: $lt_compile\"" >&5) 7277 (eval "$lt_compile" 2>out/conftest.err) 7278 ac_status=$? 7279 cat out/conftest.err >&5 7280 echo "$as_me:7280: \$? = $ac_status" >&5 7281 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7282 then 7283 # The compiler can only warn and ignore the option if not recognized 7284 # So say no if there are warnings 7285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7288 lt_cv_prog_compiler_c_o=yes 7289 fi 7290 fi 7291 chmod u+w . 2>&5 7292 $RM conftest* 7293 # SGI C++ compiler will create directory out/ii_files/ for 7294 # template instantiation 7295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7296 $RM out/* && rmdir out 7297 cd .. 7298 $RM -r conftest 7299 $RM conftest* 7300 7301fi 7302{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7303$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7304 7305 7306 7307 7308 7309 7310 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7311$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7312if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7313 $as_echo_n "(cached) " >&6 7314else 7315 lt_cv_prog_compiler_c_o=no 7316 $RM -r conftest 2>/dev/null 7317 mkdir conftest 7318 cd conftest 7319 mkdir out 7320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7321 7322 lt_compiler_flag="-o out/conftest2.$ac_objext" 7323 # Insert the option either (1) after the last *FLAGS variable, or 7324 # (2) before a word containing "conftest.", or (3) at the end. 7325 # Note that $ac_compile itself does not contain backslashes and begins 7326 # with a dollar sign (not a hyphen), so the echo should work correctly. 7327 lt_compile=`echo "$ac_compile" | $SED \ 7328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7330 -e 's:$: $lt_compiler_flag:'` 7331 (eval echo "\"\$as_me:7331: $lt_compile\"" >&5) 7332 (eval "$lt_compile" 2>out/conftest.err) 7333 ac_status=$? 7334 cat out/conftest.err >&5 7335 echo "$as_me:7335: \$? = $ac_status" >&5 7336 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7337 then 7338 # The compiler can only warn and ignore the option if not recognized 7339 # So say no if there are warnings 7340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7343 lt_cv_prog_compiler_c_o=yes 7344 fi 7345 fi 7346 chmod u+w . 2>&5 7347 $RM conftest* 7348 # SGI C++ compiler will create directory out/ii_files/ for 7349 # template instantiation 7350 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7351 $RM out/* && rmdir out 7352 cd .. 7353 $RM -r conftest 7354 $RM conftest* 7355 7356fi 7357{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7358$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7359 7360 7361 7362 7363hard_links="nottested" 7364if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7365 # do not overwrite the value of need_locks provided by the user 7366 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7367$as_echo_n "checking if we can lock with hard links... " >&6; } 7368 hard_links=yes 7369 $RM conftest* 7370 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7371 touch conftest.a 7372 ln conftest.a conftest.b 2>&5 || hard_links=no 7373 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7374 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7375$as_echo "$hard_links" >&6; } 7376 if test "$hard_links" = no; then 7377 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7378$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7379 need_locks=warn 7380 fi 7381else 7382 need_locks=no 7383fi 7384 7385 7386 7387 7388 7389 7390 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7391$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7392 7393 runpath_var= 7394 allow_undefined_flag= 7395 always_export_symbols=no 7396 archive_cmds= 7397 archive_expsym_cmds= 7398 compiler_needs_object=no 7399 enable_shared_with_static_runtimes=no 7400 export_dynamic_flag_spec= 7401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7402 hardcode_automatic=no 7403 hardcode_direct=no 7404 hardcode_direct_absolute=no 7405 hardcode_libdir_flag_spec= 7406 hardcode_libdir_flag_spec_ld= 7407 hardcode_libdir_separator= 7408 hardcode_minus_L=no 7409 hardcode_shlibpath_var=unsupported 7410 inherit_rpath=no 7411 link_all_deplibs=unknown 7412 module_cmds= 7413 module_expsym_cmds= 7414 old_archive_from_new_cmds= 7415 old_archive_from_expsyms_cmds= 7416 thread_safe_flag_spec= 7417 whole_archive_flag_spec= 7418 # include_expsyms should be a list of space-separated symbols to be *always* 7419 # included in the symbol list 7420 include_expsyms= 7421 # exclude_expsyms can be an extended regexp of symbols to exclude 7422 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7424 # as well as any symbol that contains `d'. 7425 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7427 # platforms (ab)use it in PIC code, but their linkers get confused if 7428 # the symbol is explicitly referenced. Since portable code cannot 7429 # rely on this symbol name, it's probably fine to never include it in 7430 # preloaded symbol tables. 7431 # Exclude shared library initialization/finalization symbols. 7432 extract_expsyms_cmds= 7433 7434 case $host_os in 7435 cygwin* | mingw* | pw32* | cegcc*) 7436 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7437 # When not using gcc, we currently assume that we are using 7438 # Microsoft Visual C++. 7439 if test "$GCC" != yes; then 7440 with_gnu_ld=no 7441 fi 7442 ;; 7443 interix*) 7444 # we just hope/assume this is gcc and not c89 (= MSVC++) 7445 with_gnu_ld=yes 7446 ;; 7447 openbsd*) 7448 with_gnu_ld=no 7449 ;; 7450 esac 7451 7452 ld_shlibs=yes 7453 if test "$with_gnu_ld" = yes; then 7454 # If archive_cmds runs LD, not CC, wlarc should be empty 7455 wlarc='${wl}' 7456 7457 # Set some defaults for GNU ld with shared library support. These 7458 # are reset later if shared libraries are not supported. Putting them 7459 # here allows them to be overridden if necessary. 7460 runpath_var=LD_RUN_PATH 7461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7462 export_dynamic_flag_spec='${wl}--export-dynamic' 7463 # ancient GNU ld didn't support --whole-archive et. al. 7464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7465 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7466 else 7467 whole_archive_flag_spec= 7468 fi 7469 supports_anon_versioning=no 7470 case `$LD -v 2>&1` in 7471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7474 *\ 2.11.*) ;; # other 2.11 versions 7475 *) supports_anon_versioning=yes ;; 7476 esac 7477 7478 # See if GNU ld supports shared libraries. 7479 case $host_os in 7480 aix[3-9]*) 7481 # On AIX/PPC, the GNU linker is very broken 7482 if test "$host_cpu" != ia64; then 7483 ld_shlibs=no 7484 cat <<_LT_EOF 1>&2 7485 7486*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7487*** to be unable to reliably create shared libraries on AIX. 7488*** Therefore, libtool is disabling shared libraries support. If you 7489*** really care for shared libraries, you may want to modify your PATH 7490*** so that a non-GNU linker is found, and then restart. 7491 7492_LT_EOF 7493 fi 7494 ;; 7495 7496 amigaos*) 7497 case $host_cpu in 7498 powerpc) 7499 # see comment about AmigaOS4 .so support 7500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7501 archive_expsym_cmds='' 7502 ;; 7503 m68k) 7504 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)' 7505 hardcode_libdir_flag_spec='-L$libdir' 7506 hardcode_minus_L=yes 7507 ;; 7508 esac 7509 ;; 7510 7511 beos*) 7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7513 allow_undefined_flag=unsupported 7514 # Joseph Beckenbach <[email protected]> says some releases of gcc 7515 # support --undefined. This deserves some investigation. FIXME 7516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7517 else 7518 ld_shlibs=no 7519 fi 7520 ;; 7521 7522 cygwin* | mingw* | pw32* | cegcc*) 7523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7524 # as there is no search path for DLLs. 7525 hardcode_libdir_flag_spec='-L$libdir' 7526 allow_undefined_flag=unsupported 7527 always_export_symbols=no 7528 enable_shared_with_static_runtimes=yes 7529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7530 7531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7533 # If the export-symbols file already is a .def file (1st line 7534 # is EXPORTS), use it as is; otherwise, prepend... 7535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7536 cp $export_symbols $output_objdir/$soname.def; 7537 else 7538 echo EXPORTS > $output_objdir/$soname.def; 7539 cat $export_symbols >> $output_objdir/$soname.def; 7540 fi~ 7541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7542 else 7543 ld_shlibs=no 7544 fi 7545 ;; 7546 7547 interix[3-9]*) 7548 hardcode_direct=no 7549 hardcode_shlibpath_var=no 7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7551 export_dynamic_flag_spec='${wl}-E' 7552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7553 # Instead, shared libraries are loaded at an image base (0x10000000 by 7554 # default) and relocated if they conflict, which is a slow very memory 7555 # consuming and fragmenting process. To avoid this, we pick a random, 7556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7557 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7559 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' 7560 ;; 7561 7562 gnu* | linux* | tpf* | k*bsd*-gnu) 7563 tmp_diet=no 7564 if test "$host_os" = linux-dietlibc; then 7565 case $cc_basename in 7566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7567 esac 7568 fi 7569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7570 && test "$tmp_diet" = no 7571 then 7572 tmp_addflag= 7573 tmp_sharedflag='-shared' 7574 case $cc_basename,$host_cpu in 7575 pgcc*) # Portland Group C compiler 7576 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' 7577 tmp_addflag=' $pic_flag' 7578 ;; 7579 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7580 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' 7581 tmp_addflag=' $pic_flag -Mnomain' ;; 7582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7583 tmp_addflag=' -i_dynamic' ;; 7584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7585 tmp_addflag=' -i_dynamic -nofor_main' ;; 7586 ifc* | ifort*) # Intel Fortran compiler 7587 tmp_addflag=' -nofor_main' ;; 7588 lf95*) # Lahey Fortran 8.1 7589 whole_archive_flag_spec= 7590 tmp_sharedflag='--shared' ;; 7591 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7592 tmp_sharedflag='-qmkshrobj' 7593 tmp_addflag= ;; 7594 esac 7595 case `$CC -V 2>&1 | sed 5q` in 7596 *Sun\ C*) # Sun C 5.9 7597 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' 7598 compiler_needs_object=yes 7599 tmp_sharedflag='-G' ;; 7600 *Sun\ F*) # Sun Fortran 8.3 7601 tmp_sharedflag='-G' ;; 7602 esac 7603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7604 7605 if test "x$supports_anon_versioning" = xyes; then 7606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7608 echo "local: *; };" >> $output_objdir/$libname.ver~ 7609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7610 fi 7611 7612 case $cc_basename in 7613 xlf*) 7614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7616 hardcode_libdir_flag_spec= 7617 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7618 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7619 if test "x$supports_anon_versioning" = xyes; then 7620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7622 echo "local: *; };" >> $output_objdir/$libname.ver~ 7623 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7624 fi 7625 ;; 7626 esac 7627 else 7628 ld_shlibs=no 7629 fi 7630 ;; 7631 7632 netbsd*) 7633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7635 wlarc= 7636 else 7637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7639 fi 7640 ;; 7641 7642 solaris*) 7643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7644 ld_shlibs=no 7645 cat <<_LT_EOF 1>&2 7646 7647*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7648*** create shared libraries on Solaris systems. Therefore, libtool 7649*** is disabling shared libraries support. We urge you to upgrade GNU 7650*** binutils to release 2.9.1 or newer. Another option is to modify 7651*** your PATH or compiler configuration so that the native linker is 7652*** used, and then restart. 7653 7654_LT_EOF 7655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7658 else 7659 ld_shlibs=no 7660 fi 7661 ;; 7662 7663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7664 case `$LD -v 2>&1` in 7665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7666 ld_shlibs=no 7667 cat <<_LT_EOF 1>&2 7668 7669*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7670*** reliably create shared libraries on SCO systems. Therefore, libtool 7671*** is disabling shared libraries support. We urge you to upgrade GNU 7672*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7673*** your PATH or compiler configuration so that the native linker is 7674*** used, and then restart. 7675 7676_LT_EOF 7677 ;; 7678 *) 7679 # For security reasons, it is highly recommended that you always 7680 # use absolute paths for naming shared libraries, and exclude the 7681 # DT_RUNPATH tag from executables and libraries. But doing so 7682 # requires that you compile everything twice, which is a pain. 7683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7687 else 7688 ld_shlibs=no 7689 fi 7690 ;; 7691 esac 7692 ;; 7693 7694 sunos4*) 7695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7696 wlarc= 7697 hardcode_direct=yes 7698 hardcode_shlibpath_var=no 7699 ;; 7700 7701 *) 7702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7705 else 7706 ld_shlibs=no 7707 fi 7708 ;; 7709 esac 7710 7711 if test "$ld_shlibs" = no; then 7712 runpath_var= 7713 hardcode_libdir_flag_spec= 7714 export_dynamic_flag_spec= 7715 whole_archive_flag_spec= 7716 fi 7717 else 7718 # PORTME fill in a description of your system's linker (not GNU ld) 7719 case $host_os in 7720 aix3*) 7721 allow_undefined_flag=unsupported 7722 always_export_symbols=yes 7723 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' 7724 # Note: this linker hardcodes the directories in LIBPATH if there 7725 # are no directories specified by -L. 7726 hardcode_minus_L=yes 7727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7728 # Neither direct hardcoding nor static linking is supported with a 7729 # broken collect2. 7730 hardcode_direct=unsupported 7731 fi 7732 ;; 7733 7734 aix[4-9]*) 7735 if test "$host_cpu" = ia64; then 7736 # On IA64, the linker does run time linking by default, so we don't 7737 # have to do anything special. 7738 aix_use_runtimelinking=no 7739 exp_sym_flag='-Bexport' 7740 no_entry_flag="" 7741 else 7742 # If we're using GNU nm, then we don't want the "-C" option. 7743 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7745 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' 7746 else 7747 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' 7748 fi 7749 aix_use_runtimelinking=no 7750 7751 # Test if we are trying to use run time linking or normal 7752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7753 # need to do runtime linking. 7754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7755 for ld_flag in $LDFLAGS; do 7756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7757 aix_use_runtimelinking=yes 7758 break 7759 fi 7760 done 7761 ;; 7762 esac 7763 7764 exp_sym_flag='-bexport' 7765 no_entry_flag='-bnoentry' 7766 fi 7767 7768 # When large executables or shared objects are built, AIX ld can 7769 # have problems creating the table of contents. If linking a library 7770 # or program results in "error TOC overflow" add -mminimal-toc to 7771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7773 7774 archive_cmds='' 7775 hardcode_direct=yes 7776 hardcode_direct_absolute=yes 7777 hardcode_libdir_separator=':' 7778 link_all_deplibs=yes 7779 file_list_spec='${wl}-f,' 7780 7781 if test "$GCC" = yes; then 7782 case $host_os in aix4.[012]|aix4.[012].*) 7783 # We only want to do this on AIX 4.2 and lower, the check 7784 # below for broken collect2 doesn't work under 4.3+ 7785 collect2name=`${CC} -print-prog-name=collect2` 7786 if test -f "$collect2name" && 7787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7788 then 7789 # We have reworked collect2 7790 : 7791 else 7792 # We have old collect2 7793 hardcode_direct=unsupported 7794 # It fails to find uninstalled libraries when the uninstalled 7795 # path is not listed in the libpath. Setting hardcode_minus_L 7796 # to unsupported forces relinking 7797 hardcode_minus_L=yes 7798 hardcode_libdir_flag_spec='-L$libdir' 7799 hardcode_libdir_separator= 7800 fi 7801 ;; 7802 esac 7803 shared_flag='-shared' 7804 if test "$aix_use_runtimelinking" = yes; then 7805 shared_flag="$shared_flag "'${wl}-G' 7806 fi 7807 else 7808 # not using gcc 7809 if test "$host_cpu" = ia64; then 7810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7811 # chokes on -Wl,-G. The following line is correct: 7812 shared_flag='-G' 7813 else 7814 if test "$aix_use_runtimelinking" = yes; then 7815 shared_flag='${wl}-G' 7816 else 7817 shared_flag='${wl}-bM:SRE' 7818 fi 7819 fi 7820 fi 7821 7822 export_dynamic_flag_spec='${wl}-bexpall' 7823 # It seems that -bexpall does not export symbols beginning with 7824 # underscore (_), so it is better to generate a list of symbols to export. 7825 always_export_symbols=yes 7826 if test "$aix_use_runtimelinking" = yes; then 7827 # Warning - without using the other runtime loading flags (-brtl), 7828 # -berok will link without error, but may produce a broken library. 7829 allow_undefined_flag='-berok' 7830 # Determine the default libpath from the value encoded in an 7831 # empty executable. 7832 cat >conftest.$ac_ext <<_ACEOF 7833/* confdefs.h. */ 7834_ACEOF 7835cat confdefs.h >>conftest.$ac_ext 7836cat >>conftest.$ac_ext <<_ACEOF 7837/* end confdefs.h. */ 7838 7839int 7840main () 7841{ 7842 7843 ; 7844 return 0; 7845} 7846_ACEOF 7847rm -f conftest.$ac_objext conftest$ac_exeext 7848if { (ac_try="$ac_link" 7849case "(($ac_try" in 7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7851 *) ac_try_echo=$ac_try;; 7852esac 7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7854$as_echo "$ac_try_echo") >&5 7855 (eval "$ac_link") 2>conftest.er1 7856 ac_status=$? 7857 grep -v '^ *+' conftest.er1 >conftest.err 7858 rm -f conftest.er1 7859 cat conftest.err >&5 7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7861 (exit $ac_status); } && { 7862 test -z "$ac_c_werror_flag" || 7863 test ! -s conftest.err 7864 } && test -s conftest$ac_exeext && { 7865 test "$cross_compiling" = yes || 7866 $as_test_x conftest$ac_exeext 7867 }; then 7868 7869lt_aix_libpath_sed=' 7870 /Import File Strings/,/^$/ { 7871 /^0/ { 7872 s/^0 *\(.*\)$/\1/ 7873 p 7874 } 7875 }' 7876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7877# Check for a 64-bit object if we didn't find anything. 7878if test -z "$aix_libpath"; then 7879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7880fi 7881else 7882 $as_echo "$as_me: failed program was:" >&5 7883sed 's/^/| /' conftest.$ac_ext >&5 7884 7885 7886fi 7887 7888rm -rf conftest.dSYM 7889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7890 conftest$ac_exeext conftest.$ac_ext 7891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7892 7893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7894 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" 7895 else 7896 if test "$host_cpu" = ia64; then 7897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7898 allow_undefined_flag="-z nodefs" 7899 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" 7900 else 7901 # Determine the default libpath from the value encoded in an 7902 # empty executable. 7903 cat >conftest.$ac_ext <<_ACEOF 7904/* confdefs.h. */ 7905_ACEOF 7906cat confdefs.h >>conftest.$ac_ext 7907cat >>conftest.$ac_ext <<_ACEOF 7908/* end confdefs.h. */ 7909 7910int 7911main () 7912{ 7913 7914 ; 7915 return 0; 7916} 7917_ACEOF 7918rm -f conftest.$ac_objext conftest$ac_exeext 7919if { (ac_try="$ac_link" 7920case "(($ac_try" in 7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7922 *) ac_try_echo=$ac_try;; 7923esac 7924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7925$as_echo "$ac_try_echo") >&5 7926 (eval "$ac_link") 2>conftest.er1 7927 ac_status=$? 7928 grep -v '^ *+' conftest.er1 >conftest.err 7929 rm -f conftest.er1 7930 cat conftest.err >&5 7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7932 (exit $ac_status); } && { 7933 test -z "$ac_c_werror_flag" || 7934 test ! -s conftest.err 7935 } && test -s conftest$ac_exeext && { 7936 test "$cross_compiling" = yes || 7937 $as_test_x conftest$ac_exeext 7938 }; then 7939 7940lt_aix_libpath_sed=' 7941 /Import File Strings/,/^$/ { 7942 /^0/ { 7943 s/^0 *\(.*\)$/\1/ 7944 p 7945 } 7946 }' 7947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7948# Check for a 64-bit object if we didn't find anything. 7949if test -z "$aix_libpath"; then 7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7951fi 7952else 7953 $as_echo "$as_me: failed program was:" >&5 7954sed 's/^/| /' conftest.$ac_ext >&5 7955 7956 7957fi 7958 7959rm -rf conftest.dSYM 7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7961 conftest$ac_exeext conftest.$ac_ext 7962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7963 7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7965 # Warning - without using the other run time loading flags, 7966 # -berok will link without error, but may produce a broken library. 7967 no_undefined_flag=' ${wl}-bernotok' 7968 allow_undefined_flag=' ${wl}-berok' 7969 # Exported symbols can be pulled into shared objects from archives 7970 whole_archive_flag_spec='$convenience' 7971 archive_cmds_need_lc=yes 7972 # This is similar to how AIX traditionally builds its shared libraries. 7973 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' 7974 fi 7975 fi 7976 ;; 7977 7978 amigaos*) 7979 case $host_cpu in 7980 powerpc) 7981 # see comment about AmigaOS4 .so support 7982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7983 archive_expsym_cmds='' 7984 ;; 7985 m68k) 7986 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)' 7987 hardcode_libdir_flag_spec='-L$libdir' 7988 hardcode_minus_L=yes 7989 ;; 7990 esac 7991 ;; 7992 7993 bsdi[45]*) 7994 export_dynamic_flag_spec=-rdynamic 7995 ;; 7996 7997 cygwin* | mingw* | pw32* | cegcc*) 7998 # When not using gcc, we currently assume that we are using 7999 # Microsoft Visual C++. 8000 # hardcode_libdir_flag_spec is actually meaningless, as there is 8001 # no search path for DLLs. 8002 hardcode_libdir_flag_spec=' ' 8003 allow_undefined_flag=unsupported 8004 # Tell ltmain to make .lib files, not .a files. 8005 libext=lib 8006 # Tell ltmain to make .dll files, not .so files. 8007 shrext_cmds=".dll" 8008 # FIXME: Setting linknames here is a bad hack. 8009 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8010 # The linker will automatically build a .lib file if we build a DLL. 8011 old_archive_from_new_cmds='true' 8012 # FIXME: Should let the user specify the lib program. 8013 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8014 fix_srcfile_path='`cygpath -w "$srcfile"`' 8015 enable_shared_with_static_runtimes=yes 8016 ;; 8017 8018 darwin* | rhapsody*) 8019 8020 8021 archive_cmds_need_lc=no 8022 hardcode_direct=no 8023 hardcode_automatic=yes 8024 hardcode_shlibpath_var=unsupported 8025 whole_archive_flag_spec='' 8026 link_all_deplibs=yes 8027 allow_undefined_flag="$_lt_dar_allow_undefined" 8028 case $cc_basename in 8029 ifort*) _lt_dar_can_shared=yes ;; 8030 *) _lt_dar_can_shared=$GCC ;; 8031 esac 8032 if test "$_lt_dar_can_shared" = "yes"; then 8033 output_verbose_link_cmd=echo 8034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8036 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}" 8037 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}" 8038 8039 else 8040 ld_shlibs=no 8041 fi 8042 8043 ;; 8044 8045 dgux*) 8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8047 hardcode_libdir_flag_spec='-L$libdir' 8048 hardcode_shlibpath_var=no 8049 ;; 8050 8051 freebsd1*) 8052 ld_shlibs=no 8053 ;; 8054 8055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8056 # support. Future versions do this automatically, but an explicit c++rt0.o 8057 # does not break anything, and helps significantly (at the cost of a little 8058 # extra space). 8059 freebsd2.2*) 8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8061 hardcode_libdir_flag_spec='-R$libdir' 8062 hardcode_direct=yes 8063 hardcode_shlibpath_var=no 8064 ;; 8065 8066 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8067 freebsd2*) 8068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8069 hardcode_direct=yes 8070 hardcode_minus_L=yes 8071 hardcode_shlibpath_var=no 8072 ;; 8073 8074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8075 freebsd* | dragonfly*) 8076 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8077 hardcode_libdir_flag_spec='-R$libdir' 8078 hardcode_direct=yes 8079 hardcode_shlibpath_var=no 8080 ;; 8081 8082 hpux9*) 8083 if test "$GCC" = yes; then 8084 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' 8085 else 8086 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' 8087 fi 8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8089 hardcode_libdir_separator=: 8090 hardcode_direct=yes 8091 8092 # hardcode_minus_L: Not really in the search PATH, 8093 # but as the default location of the library. 8094 hardcode_minus_L=yes 8095 export_dynamic_flag_spec='${wl}-E' 8096 ;; 8097 8098 hpux10*) 8099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8101 else 8102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8103 fi 8104 if test "$with_gnu_ld" = no; then 8105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8106 hardcode_libdir_flag_spec_ld='+b $libdir' 8107 hardcode_libdir_separator=: 8108 hardcode_direct=yes 8109 hardcode_direct_absolute=yes 8110 export_dynamic_flag_spec='${wl}-E' 8111 # hardcode_minus_L: Not really in the search PATH, 8112 # but as the default location of the library. 8113 hardcode_minus_L=yes 8114 fi 8115 ;; 8116 8117 hpux11*) 8118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8119 case $host_cpu in 8120 hppa*64*) 8121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8122 ;; 8123 ia64*) 8124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8125 ;; 8126 *) 8127 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8128 ;; 8129 esac 8130 else 8131 case $host_cpu in 8132 hppa*64*) 8133 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8134 ;; 8135 ia64*) 8136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8137 ;; 8138 *) 8139 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8140 ;; 8141 esac 8142 fi 8143 if test "$with_gnu_ld" = no; then 8144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8145 hardcode_libdir_separator=: 8146 8147 case $host_cpu in 8148 hppa*64*|ia64*) 8149 hardcode_direct=no 8150 hardcode_shlibpath_var=no 8151 ;; 8152 *) 8153 hardcode_direct=yes 8154 hardcode_direct_absolute=yes 8155 export_dynamic_flag_spec='${wl}-E' 8156 8157 # hardcode_minus_L: Not really in the search PATH, 8158 # but as the default location of the library. 8159 hardcode_minus_L=yes 8160 ;; 8161 esac 8162 fi 8163 ;; 8164 8165 irix5* | irix6* | nonstopux*) 8166 if test "$GCC" = yes; then 8167 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' 8168 # Try to use the -exported_symbol ld option, if it does not 8169 # work, assume that -exports_file does not work either and 8170 # implicitly export all symbols. 8171 save_LDFLAGS="$LDFLAGS" 8172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8173 cat >conftest.$ac_ext <<_ACEOF 8174int foo(void) {} 8175_ACEOF 8176rm -f conftest.$ac_objext conftest$ac_exeext 8177if { (ac_try="$ac_link" 8178case "(($ac_try" in 8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8180 *) ac_try_echo=$ac_try;; 8181esac 8182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8183$as_echo "$ac_try_echo") >&5 8184 (eval "$ac_link") 2>conftest.er1 8185 ac_status=$? 8186 grep -v '^ *+' conftest.er1 >conftest.err 8187 rm -f conftest.er1 8188 cat conftest.err >&5 8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 (exit $ac_status); } && { 8191 test -z "$ac_c_werror_flag" || 8192 test ! -s conftest.err 8193 } && test -s conftest$ac_exeext && { 8194 test "$cross_compiling" = yes || 8195 $as_test_x conftest$ac_exeext 8196 }; then 8197 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' 8198 8199else 8200 $as_echo "$as_me: failed program was:" >&5 8201sed 's/^/| /' conftest.$ac_ext >&5 8202 8203 8204fi 8205 8206rm -rf conftest.dSYM 8207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8208 conftest$ac_exeext conftest.$ac_ext 8209 LDFLAGS="$save_LDFLAGS" 8210 else 8211 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' 8212 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' 8213 fi 8214 archive_cmds_need_lc='no' 8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8216 hardcode_libdir_separator=: 8217 inherit_rpath=yes 8218 link_all_deplibs=yes 8219 ;; 8220 8221 netbsd*) 8222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8224 else 8225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8226 fi 8227 hardcode_libdir_flag_spec='-R$libdir' 8228 hardcode_direct=yes 8229 hardcode_shlibpath_var=no 8230 ;; 8231 8232 newsos6) 8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8234 hardcode_direct=yes 8235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8236 hardcode_libdir_separator=: 8237 hardcode_shlibpath_var=no 8238 ;; 8239 8240 *nto* | *qnx*) 8241 ;; 8242 8243 openbsd*) 8244 if test -f /usr/libexec/ld.so; then 8245 hardcode_direct=yes 8246 hardcode_shlibpath_var=no 8247 hardcode_direct_absolute=yes 8248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8252 export_dynamic_flag_spec='${wl}-E' 8253 else 8254 case $host_os in 8255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8257 hardcode_libdir_flag_spec='-R$libdir' 8258 ;; 8259 *) 8260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8262 ;; 8263 esac 8264 fi 8265 else 8266 ld_shlibs=no 8267 fi 8268 ;; 8269 8270 os2*) 8271 hardcode_libdir_flag_spec='-L$libdir' 8272 hardcode_minus_L=yes 8273 allow_undefined_flag=unsupported 8274 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' 8275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8276 ;; 8277 8278 osf3*) 8279 if test "$GCC" = yes; then 8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8281 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' 8282 else 8283 allow_undefined_flag=' -expect_unresolved \*' 8284 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' 8285 fi 8286 archive_cmds_need_lc='no' 8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8288 hardcode_libdir_separator=: 8289 ;; 8290 8291 osf4* | osf5*) # as osf3* with the addition of -msym flag 8292 if test "$GCC" = yes; then 8293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8294 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' 8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8296 else 8297 allow_undefined_flag=' -expect_unresolved \*' 8298 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' 8299 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~ 8300 $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' 8301 8302 # Both c and cxx compiler support -rpath directly 8303 hardcode_libdir_flag_spec='-rpath $libdir' 8304 fi 8305 archive_cmds_need_lc='no' 8306 hardcode_libdir_separator=: 8307 ;; 8308 8309 solaris*) 8310 no_undefined_flag=' -z defs' 8311 if test "$GCC" = yes; then 8312 wlarc='${wl}' 8313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8316 else 8317 case `$CC -V 2>&1` in 8318 *"Compilers 5.0"*) 8319 wlarc='' 8320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8323 ;; 8324 *) 8325 wlarc='${wl}' 8326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8329 ;; 8330 esac 8331 fi 8332 hardcode_libdir_flag_spec='-R$libdir' 8333 hardcode_shlibpath_var=no 8334 case $host_os in 8335 solaris2.[0-5] | solaris2.[0-5].*) ;; 8336 *) 8337 # The compiler driver will combine and reorder linker options, 8338 # but understands `-z linker_flag'. GCC discards it without `$wl', 8339 # but is careful enough not to reorder. 8340 # Supported since Solaris 2.6 (maybe 2.5.1?) 8341 if test "$GCC" = yes; then 8342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8343 else 8344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8345 fi 8346 ;; 8347 esac 8348 link_all_deplibs=yes 8349 ;; 8350 8351 sunos4*) 8352 if test "x$host_vendor" = xsequent; then 8353 # Use $CC to link under sequent, because it throws in some extra .o 8354 # files that make .init and .fini sections work. 8355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8356 else 8357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8358 fi 8359 hardcode_libdir_flag_spec='-L$libdir' 8360 hardcode_direct=yes 8361 hardcode_minus_L=yes 8362 hardcode_shlibpath_var=no 8363 ;; 8364 8365 sysv4) 8366 case $host_vendor in 8367 sni) 8368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8369 hardcode_direct=yes # is this really true??? 8370 ;; 8371 siemens) 8372 ## LD is ld it makes a PLAMLIB 8373 ## CC just makes a GrossModule. 8374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8375 reload_cmds='$CC -r -o $output$reload_objs' 8376 hardcode_direct=no 8377 ;; 8378 motorola) 8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8381 ;; 8382 esac 8383 runpath_var='LD_RUN_PATH' 8384 hardcode_shlibpath_var=no 8385 ;; 8386 8387 sysv4.3*) 8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8389 hardcode_shlibpath_var=no 8390 export_dynamic_flag_spec='-Bexport' 8391 ;; 8392 8393 sysv4*MP*) 8394 if test -d /usr/nec; then 8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8396 hardcode_shlibpath_var=no 8397 runpath_var=LD_RUN_PATH 8398 hardcode_runpath_var=yes 8399 ld_shlibs=yes 8400 fi 8401 ;; 8402 8403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8404 no_undefined_flag='${wl}-z,text' 8405 archive_cmds_need_lc=no 8406 hardcode_shlibpath_var=no 8407 runpath_var='LD_RUN_PATH' 8408 8409 if test "$GCC" = yes; then 8410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8412 else 8413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8415 fi 8416 ;; 8417 8418 sysv5* | sco3.2v5* | sco5v6*) 8419 # Note: We can NOT use -z defs as we might desire, because we do not 8420 # link with -lc, and that would cause any symbols used from libc to 8421 # always be unresolved, which means just about no library would 8422 # ever link correctly. If we're not using GNU ld we use -z text 8423 # though, which does catch some bad symbols but isn't as heavy-handed 8424 # as -z defs. 8425 no_undefined_flag='${wl}-z,text' 8426 allow_undefined_flag='${wl}-z,nodefs' 8427 archive_cmds_need_lc=no 8428 hardcode_shlibpath_var=no 8429 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8430 hardcode_libdir_separator=':' 8431 link_all_deplibs=yes 8432 export_dynamic_flag_spec='${wl}-Bexport' 8433 runpath_var='LD_RUN_PATH' 8434 8435 if test "$GCC" = yes; then 8436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8438 else 8439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8441 fi 8442 ;; 8443 8444 uts4*) 8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8446 hardcode_libdir_flag_spec='-L$libdir' 8447 hardcode_shlibpath_var=no 8448 ;; 8449 8450 *) 8451 ld_shlibs=no 8452 ;; 8453 esac 8454 8455 if test x$host_vendor = xsni; then 8456 case $host in 8457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8458 export_dynamic_flag_spec='${wl}-Blargedynsym' 8459 ;; 8460 esac 8461 fi 8462 fi 8463 8464{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8465$as_echo "$ld_shlibs" >&6; } 8466test "$ld_shlibs" = no && can_build_shared=no 8467 8468with_gnu_ld=$with_gnu_ld 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484# 8485# Do we need to explicitly link libc? 8486# 8487case "x$archive_cmds_need_lc" in 8488x|xyes) 8489 # Assume -lc should be added 8490 archive_cmds_need_lc=yes 8491 8492 if test "$enable_shared" = yes && test "$GCC" = yes; then 8493 case $archive_cmds in 8494 *'~'*) 8495 # FIXME: we may have to deal with multi-command sequences. 8496 ;; 8497 '$CC '*) 8498 # Test whether the compiler implicitly links with -lc since on some 8499 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8500 # to ld, don't add -lc before -lgcc. 8501 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8502$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8503 $RM conftest* 8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8505 8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8507 (eval $ac_compile) 2>&5 8508 ac_status=$? 8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8510 (exit $ac_status); } 2>conftest.err; then 8511 soname=conftest 8512 lib=conftest 8513 libobjs=conftest.$ac_objext 8514 deplibs= 8515 wl=$lt_prog_compiler_wl 8516 pic_flag=$lt_prog_compiler_pic 8517 compiler_flags=-v 8518 linker_flags=-v 8519 verstring= 8520 output_objdir=. 8521 libname=conftest 8522 lt_save_allow_undefined_flag=$allow_undefined_flag 8523 allow_undefined_flag= 8524 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 8525 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8526 ac_status=$? 8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8528 (exit $ac_status); } 8529 then 8530 archive_cmds_need_lc=no 8531 else 8532 archive_cmds_need_lc=yes 8533 fi 8534 allow_undefined_flag=$lt_save_allow_undefined_flag 8535 else 8536 cat conftest.err 1>&5 8537 fi 8538 $RM conftest* 8539 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8540$as_echo "$archive_cmds_need_lc" >&6; } 8541 ;; 8542 esac 8543 fi 8544 ;; 8545esac 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8704$as_echo_n "checking dynamic linker characteristics... " >&6; } 8705 8706if test "$GCC" = yes; then 8707 case $host_os in 8708 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8709 *) lt_awk_arg="/^libraries:/" ;; 8710 esac 8711 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8712 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8713 # if the path contains ";" then we assume it to be the separator 8714 # otherwise default to the standard path separator (i.e. ":") - it is 8715 # assumed that no part of a normal pathname contains ";" but that should 8716 # okay in the real world where ";" in dirpaths is itself problematic. 8717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8718 else 8719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8720 fi 8721 # Ok, now we have the path, separated by spaces, we can step through it 8722 # and add multilib dir if necessary. 8723 lt_tmp_lt_search_path_spec= 8724 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8725 for lt_sys_path in $lt_search_path_spec; do 8726 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8728 else 8729 test -d "$lt_sys_path" && \ 8730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8731 fi 8732 done 8733 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8734BEGIN {RS=" "; FS="/|\n";} { 8735 lt_foo=""; 8736 lt_count=0; 8737 for (lt_i = NF; lt_i > 0; lt_i--) { 8738 if ($lt_i != "" && $lt_i != ".") { 8739 if ($lt_i == "..") { 8740 lt_count++; 8741 } else { 8742 if (lt_count == 0) { 8743 lt_foo="/" $lt_i lt_foo; 8744 } else { 8745 lt_count--; 8746 } 8747 } 8748 } 8749 } 8750 if (lt_foo != "") { lt_freq[lt_foo]++; } 8751 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8752}'` 8753 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8754else 8755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8756fi 8757library_names_spec= 8758libname_spec='lib$name' 8759soname_spec= 8760shrext_cmds=".so" 8761postinstall_cmds= 8762postuninstall_cmds= 8763finish_cmds= 8764finish_eval= 8765shlibpath_var= 8766shlibpath_overrides_runpath=unknown 8767version_type=none 8768dynamic_linker="$host_os ld.so" 8769sys_lib_dlsearch_path_spec="/lib /usr/lib" 8770need_lib_prefix=unknown 8771hardcode_into_libs=no 8772 8773# when you set need_version to no, make sure it does not cause -set_version 8774# flags to be left without arguments 8775need_version=unknown 8776 8777case $host_os in 8778aix3*) 8779 version_type=linux 8780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8781 shlibpath_var=LIBPATH 8782 8783 # AIX 3 has no versioning support, so we append a major version to the name. 8784 soname_spec='${libname}${release}${shared_ext}$major' 8785 ;; 8786 8787aix[4-9]*) 8788 version_type=linux 8789 need_lib_prefix=no 8790 need_version=no 8791 hardcode_into_libs=yes 8792 if test "$host_cpu" = ia64; then 8793 # AIX 5 supports IA64 8794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8795 shlibpath_var=LD_LIBRARY_PATH 8796 else 8797 # With GCC up to 2.95.x, collect2 would create an import file 8798 # for dependence libraries. The import file would start with 8799 # the line `#! .'. This would cause the generated library to 8800 # depend on `.', always an invalid library. This was fixed in 8801 # development snapshots of GCC prior to 3.0. 8802 case $host_os in 8803 aix4 | aix4.[01] | aix4.[01].*) 8804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8805 echo ' yes ' 8806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8807 : 8808 else 8809 can_build_shared=no 8810 fi 8811 ;; 8812 esac 8813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8814 # soname into executable. Probably we can add versioning support to 8815 # collect2, so additional links can be useful in future. 8816 if test "$aix_use_runtimelinking" = yes; then 8817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8818 # instead of lib<name>.a to let people know that these are not 8819 # typical AIX shared libraries. 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8821 else 8822 # We preserve .a as extension for shared libraries through AIX4.2 8823 # and later when we are not doing run time linking. 8824 library_names_spec='${libname}${release}.a $libname.a' 8825 soname_spec='${libname}${release}${shared_ext}$major' 8826 fi 8827 shlibpath_var=LIBPATH 8828 fi 8829 ;; 8830 8831amigaos*) 8832 case $host_cpu in 8833 powerpc) 8834 # Since July 2007 AmigaOS4 officially supports .so libraries. 8835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8837 ;; 8838 m68k) 8839 library_names_spec='$libname.ixlibrary $libname.a' 8840 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8841 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' 8842 ;; 8843 esac 8844 ;; 8845 8846beos*) 8847 library_names_spec='${libname}${shared_ext}' 8848 dynamic_linker="$host_os ld.so" 8849 shlibpath_var=LIBRARY_PATH 8850 ;; 8851 8852bsdi[45]*) 8853 version_type=linux 8854 need_version=no 8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8856 soname_spec='${libname}${release}${shared_ext}$major' 8857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8858 shlibpath_var=LD_LIBRARY_PATH 8859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8861 # the default ld.so.conf also contains /usr/contrib/lib and 8862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8863 # libtool to hard-code these into programs 8864 ;; 8865 8866cygwin* | mingw* | pw32* | cegcc*) 8867 version_type=windows 8868 shrext_cmds=".dll" 8869 need_version=no 8870 need_lib_prefix=no 8871 8872 case $GCC,$host_os in 8873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8874 library_names_spec='$libname.dll.a' 8875 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8876 postinstall_cmds='base_file=`basename \${file}`~ 8877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8878 dldir=$destdir/`dirname \$dlpath`~ 8879 test -d \$dldir || mkdir -p \$dldir~ 8880 $install_prog $dir/$dlname \$dldir/$dlname~ 8881 chmod a+x \$dldir/$dlname~ 8882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8884 fi' 8885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8886 dlpath=$dir/\$dldll~ 8887 $RM \$dlpath' 8888 shlibpath_overrides_runpath=yes 8889 8890 case $host_os in 8891 cygwin*) 8892 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8895 ;; 8896 mingw* | cegcc*) 8897 # MinGW DLLs use traditional 'lib' prefix 8898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8899 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8900 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8901 # It is most probably a Windows format PATH printed by 8902 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8903 # path with ; separators, and with drive letters. We can handle the 8904 # drive letters (cygwin fileutils understands them), so leave them, 8905 # especially as we might pass files found there to a mingw objdump, 8906 # which wouldn't understand a cygwinified path. Ahh. 8907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8908 else 8909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8910 fi 8911 ;; 8912 pw32*) 8913 # pw32 DLLs use 'pw' prefix rather than 'lib' 8914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8915 ;; 8916 esac 8917 ;; 8918 8919 *) 8920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8921 ;; 8922 esac 8923 dynamic_linker='Win32 ld.exe' 8924 # FIXME: first we should search . and the directory the executable is in 8925 shlibpath_var=PATH 8926 ;; 8927 8928darwin* | rhapsody*) 8929 dynamic_linker="$host_os dyld" 8930 version_type=darwin 8931 need_lib_prefix=no 8932 need_version=no 8933 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8934 soname_spec='${libname}${release}${major}$shared_ext' 8935 shlibpath_overrides_runpath=yes 8936 shlibpath_var=DYLD_LIBRARY_PATH 8937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8938 8939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8941 ;; 8942 8943dgux*) 8944 version_type=linux 8945 need_lib_prefix=no 8946 need_version=no 8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 shlibpath_var=LD_LIBRARY_PATH 8950 ;; 8951 8952freebsd1*) 8953 dynamic_linker=no 8954 ;; 8955 8956freebsd* | dragonfly*) 8957 # DragonFly does not have aout. When/if they implement a new 8958 # versioning mechanism, adjust this. 8959 if test -x /usr/bin/objformat; then 8960 objformat=`/usr/bin/objformat` 8961 else 8962 case $host_os in 8963 freebsd[123]*) objformat=aout ;; 8964 *) objformat=elf ;; 8965 esac 8966 fi 8967 # Handle Gentoo/FreeBSD as it was Linux 8968 case $host_vendor in 8969 gentoo) 8970 version_type=linux ;; 8971 *) 8972 version_type=freebsd-$objformat ;; 8973 esac 8974 8975 case $version_type in 8976 freebsd-elf*) 8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8978 need_version=no 8979 need_lib_prefix=no 8980 ;; 8981 freebsd-*) 8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8983 need_version=yes 8984 ;; 8985 linux) 8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8987 soname_spec='${libname}${release}${shared_ext}$major' 8988 need_lib_prefix=no 8989 need_version=no 8990 ;; 8991 esac 8992 shlibpath_var=LD_LIBRARY_PATH 8993 case $host_os in 8994 freebsd2*) 8995 shlibpath_overrides_runpath=yes 8996 ;; 8997 freebsd3.[01]* | freebsdelf3.[01]*) 8998 shlibpath_overrides_runpath=yes 8999 hardcode_into_libs=yes 9000 ;; 9001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9003 shlibpath_overrides_runpath=no 9004 hardcode_into_libs=yes 9005 ;; 9006 *) # from 4.6 on, and DragonFly 9007 shlibpath_overrides_runpath=yes 9008 hardcode_into_libs=yes 9009 ;; 9010 esac 9011 ;; 9012 9013gnu*) 9014 version_type=linux 9015 need_lib_prefix=no 9016 need_version=no 9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9018 soname_spec='${libname}${release}${shared_ext}$major' 9019 shlibpath_var=LD_LIBRARY_PATH 9020 hardcode_into_libs=yes 9021 ;; 9022 9023hpux9* | hpux10* | hpux11*) 9024 # Give a soname corresponding to the major version so that dld.sl refuses to 9025 # link against other versions. 9026 version_type=sunos 9027 need_lib_prefix=no 9028 need_version=no 9029 case $host_cpu in 9030 ia64*) 9031 shrext_cmds='.so' 9032 hardcode_into_libs=yes 9033 dynamic_linker="$host_os dld.so" 9034 shlibpath_var=LD_LIBRARY_PATH 9035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9037 soname_spec='${libname}${release}${shared_ext}$major' 9038 if test "X$HPUX_IA64_MODE" = X32; then 9039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9040 else 9041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9042 fi 9043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9044 ;; 9045 hppa*64*) 9046 shrext_cmds='.sl' 9047 hardcode_into_libs=yes 9048 dynamic_linker="$host_os dld.sl" 9049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9052 soname_spec='${libname}${release}${shared_ext}$major' 9053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9055 ;; 9056 *) 9057 shrext_cmds='.sl' 9058 dynamic_linker="$host_os dld.sl" 9059 shlibpath_var=SHLIB_PATH 9060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9062 soname_spec='${libname}${release}${shared_ext}$major' 9063 ;; 9064 esac 9065 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9066 postinstall_cmds='chmod 555 $lib' 9067 ;; 9068 9069interix[3-9]*) 9070 version_type=linux 9071 need_lib_prefix=no 9072 need_version=no 9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9074 soname_spec='${libname}${release}${shared_ext}$major' 9075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9076 shlibpath_var=LD_LIBRARY_PATH 9077 shlibpath_overrides_runpath=no 9078 hardcode_into_libs=yes 9079 ;; 9080 9081irix5* | irix6* | nonstopux*) 9082 case $host_os in 9083 nonstopux*) version_type=nonstopux ;; 9084 *) 9085 if test "$lt_cv_prog_gnu_ld" = yes; then 9086 version_type=linux 9087 else 9088 version_type=irix 9089 fi ;; 9090 esac 9091 need_lib_prefix=no 9092 need_version=no 9093 soname_spec='${libname}${release}${shared_ext}$major' 9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9095 case $host_os in 9096 irix5* | nonstopux*) 9097 libsuff= shlibsuff= 9098 ;; 9099 *) 9100 case $LD in # libtool.m4 will add one of these switches to LD 9101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9102 libsuff= shlibsuff= libmagic=32-bit;; 9103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9104 libsuff=32 shlibsuff=N32 libmagic=N32;; 9105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9106 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9107 *) libsuff= shlibsuff= libmagic=never-match;; 9108 esac 9109 ;; 9110 esac 9111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9112 shlibpath_overrides_runpath=no 9113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9115 hardcode_into_libs=yes 9116 ;; 9117 9118# No shared lib support for Linux oldld, aout, or coff. 9119linux*oldld* | linux*aout* | linux*coff*) 9120 dynamic_linker=no 9121 ;; 9122 9123# This must be Linux ELF. 9124linux* | k*bsd*-gnu) 9125 version_type=linux 9126 need_lib_prefix=no 9127 need_version=no 9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9129 soname_spec='${libname}${release}${shared_ext}$major' 9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9131 shlibpath_var=LD_LIBRARY_PATH 9132 shlibpath_overrides_runpath=no 9133 # Some binutils ld are patched to set DT_RUNPATH 9134 save_LDFLAGS=$LDFLAGS 9135 save_libdir=$libdir 9136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9138 cat >conftest.$ac_ext <<_ACEOF 9139/* confdefs.h. */ 9140_ACEOF 9141cat confdefs.h >>conftest.$ac_ext 9142cat >>conftest.$ac_ext <<_ACEOF 9143/* end confdefs.h. */ 9144 9145int 9146main () 9147{ 9148 9149 ; 9150 return 0; 9151} 9152_ACEOF 9153rm -f conftest.$ac_objext conftest$ac_exeext 9154if { (ac_try="$ac_link" 9155case "(($ac_try" in 9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9157 *) ac_try_echo=$ac_try;; 9158esac 9159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9160$as_echo "$ac_try_echo") >&5 9161 (eval "$ac_link") 2>conftest.er1 9162 ac_status=$? 9163 grep -v '^ *+' conftest.er1 >conftest.err 9164 rm -f conftest.er1 9165 cat conftest.err >&5 9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9167 (exit $ac_status); } && { 9168 test -z "$ac_c_werror_flag" || 9169 test ! -s conftest.err 9170 } && test -s conftest$ac_exeext && { 9171 test "$cross_compiling" = yes || 9172 $as_test_x conftest$ac_exeext 9173 }; then 9174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9175 shlibpath_overrides_runpath=yes 9176fi 9177 9178else 9179 $as_echo "$as_me: failed program was:" >&5 9180sed 's/^/| /' conftest.$ac_ext >&5 9181 9182 9183fi 9184 9185rm -rf conftest.dSYM 9186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9187 conftest$ac_exeext conftest.$ac_ext 9188 LDFLAGS=$save_LDFLAGS 9189 libdir=$save_libdir 9190 9191 # This implies no fast_install, which is unacceptable. 9192 # Some rework will be needed to allow for fast_install 9193 # before this can be enabled. 9194 hardcode_into_libs=yes 9195 9196 # Append ld.so.conf contents to the search path 9197 if test -f /etc/ld.so.conf; then 9198 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' ' '` 9199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9200 fi 9201 9202 # We used to test for /lib/ld.so.1 and disable shared libraries on 9203 # powerpc, because MkLinux only supported shared libraries with the 9204 # GNU dynamic linker. Since this was broken with cross compilers, 9205 # most powerpc-linux boxes support dynamic linking these days and 9206 # people can always --disable-shared, the test was removed, and we 9207 # assume the GNU/Linux dynamic linker is in use. 9208 dynamic_linker='GNU/Linux ld.so' 9209 ;; 9210 9211netbsd*) 9212 version_type=sunos 9213 need_lib_prefix=no 9214 need_version=no 9215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9218 dynamic_linker='NetBSD (a.out) ld.so' 9219 else 9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9221 soname_spec='${libname}${release}${shared_ext}$major' 9222 dynamic_linker='NetBSD ld.elf_so' 9223 fi 9224 shlibpath_var=LD_LIBRARY_PATH 9225 shlibpath_overrides_runpath=yes 9226 hardcode_into_libs=yes 9227 ;; 9228 9229newsos6) 9230 version_type=linux 9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9232 shlibpath_var=LD_LIBRARY_PATH 9233 shlibpath_overrides_runpath=yes 9234 ;; 9235 9236*nto* | *qnx*) 9237 version_type=qnx 9238 need_lib_prefix=no 9239 need_version=no 9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9241 soname_spec='${libname}${release}${shared_ext}$major' 9242 shlibpath_var=LD_LIBRARY_PATH 9243 shlibpath_overrides_runpath=no 9244 hardcode_into_libs=yes 9245 dynamic_linker='ldqnx.so' 9246 ;; 9247 9248openbsd*) 9249 version_type=sunos 9250 sys_lib_dlsearch_path_spec="/usr/lib" 9251 need_lib_prefix=no 9252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9253 case $host_os in 9254 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9255 *) need_version=no ;; 9256 esac 9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9259 shlibpath_var=LD_LIBRARY_PATH 9260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9261 case $host_os in 9262 openbsd2.[89] | openbsd2.[89].*) 9263 shlibpath_overrides_runpath=no 9264 ;; 9265 *) 9266 shlibpath_overrides_runpath=yes 9267 ;; 9268 esac 9269 else 9270 shlibpath_overrides_runpath=yes 9271 fi 9272 ;; 9273 9274os2*) 9275 libname_spec='$name' 9276 shrext_cmds=".dll" 9277 need_lib_prefix=no 9278 library_names_spec='$libname${shared_ext} $libname.a' 9279 dynamic_linker='OS/2 ld.exe' 9280 shlibpath_var=LIBPATH 9281 ;; 9282 9283osf3* | osf4* | osf5*) 9284 version_type=osf 9285 need_lib_prefix=no 9286 need_version=no 9287 soname_spec='${libname}${release}${shared_ext}$major' 9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9289 shlibpath_var=LD_LIBRARY_PATH 9290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9292 ;; 9293 9294rdos*) 9295 dynamic_linker=no 9296 ;; 9297 9298solaris*) 9299 version_type=linux 9300 need_lib_prefix=no 9301 need_version=no 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9303 soname_spec='${libname}${release}${shared_ext}$major' 9304 shlibpath_var=LD_LIBRARY_PATH 9305 shlibpath_overrides_runpath=yes 9306 hardcode_into_libs=yes 9307 # ldd complains unless libraries are executable 9308 postinstall_cmds='chmod +x $lib' 9309 ;; 9310 9311sunos4*) 9312 version_type=sunos 9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9315 shlibpath_var=LD_LIBRARY_PATH 9316 shlibpath_overrides_runpath=yes 9317 if test "$with_gnu_ld" = yes; then 9318 need_lib_prefix=no 9319 fi 9320 need_version=yes 9321 ;; 9322 9323sysv4 | sysv4.3*) 9324 version_type=linux 9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9326 soname_spec='${libname}${release}${shared_ext}$major' 9327 shlibpath_var=LD_LIBRARY_PATH 9328 case $host_vendor in 9329 sni) 9330 shlibpath_overrides_runpath=no 9331 need_lib_prefix=no 9332 runpath_var=LD_RUN_PATH 9333 ;; 9334 siemens) 9335 need_lib_prefix=no 9336 ;; 9337 motorola) 9338 need_lib_prefix=no 9339 need_version=no 9340 shlibpath_overrides_runpath=no 9341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9342 ;; 9343 esac 9344 ;; 9345 9346sysv4*MP*) 9347 if test -d /usr/nec ;then 9348 version_type=linux 9349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9350 soname_spec='$libname${shared_ext}.$major' 9351 shlibpath_var=LD_LIBRARY_PATH 9352 fi 9353 ;; 9354 9355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9356 version_type=freebsd-elf 9357 need_lib_prefix=no 9358 need_version=no 9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 shlibpath_var=LD_LIBRARY_PATH 9362 shlibpath_overrides_runpath=yes 9363 hardcode_into_libs=yes 9364 if test "$with_gnu_ld" = yes; then 9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9366 else 9367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9368 case $host_os in 9369 sco3.2v5*) 9370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9371 ;; 9372 esac 9373 fi 9374 sys_lib_dlsearch_path_spec='/usr/lib' 9375 ;; 9376 9377tpf*) 9378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9379 version_type=linux 9380 need_lib_prefix=no 9381 need_version=no 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 shlibpath_var=LD_LIBRARY_PATH 9384 shlibpath_overrides_runpath=no 9385 hardcode_into_libs=yes 9386 ;; 9387 9388uts4*) 9389 version_type=linux 9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9391 soname_spec='${libname}${release}${shared_ext}$major' 9392 shlibpath_var=LD_LIBRARY_PATH 9393 ;; 9394 9395*) 9396 dynamic_linker=no 9397 ;; 9398esac 9399{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9400$as_echo "$dynamic_linker" >&6; } 9401test "$dynamic_linker" = no && can_build_shared=no 9402 9403variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9404if test "$GCC" = yes; then 9405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9406fi 9407 9408if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9410fi 9411if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9413fi 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 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9502$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9503hardcode_action= 9504if test -n "$hardcode_libdir_flag_spec" || 9505 test -n "$runpath_var" || 9506 test "X$hardcode_automatic" = "Xyes" ; then 9507 9508 # We can hardcode non-existent directories. 9509 if test "$hardcode_direct" != no && 9510 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9511 # have to relink, otherwise we might link with an installed library 9512 # when we should be linking with a yet-to-be-installed one 9513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9514 test "$hardcode_minus_L" != no; then 9515 # Linking always hardcodes the temporary library directory. 9516 hardcode_action=relink 9517 else 9518 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9519 hardcode_action=immediate 9520 fi 9521else 9522 # We cannot hardcode anything, or else we can only hardcode existing 9523 # directories. 9524 hardcode_action=unsupported 9525fi 9526{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9527$as_echo "$hardcode_action" >&6; } 9528 9529if test "$hardcode_action" = relink || 9530 test "$inherit_rpath" = yes; then 9531 # Fast installation is not supported 9532 enable_fast_install=no 9533elif test "$shlibpath_overrides_runpath" = yes || 9534 test "$enable_shared" = no; then 9535 # Fast installation is not necessary 9536 enable_fast_install=needless 9537fi 9538 9539 9540 9541 9542 9543 9544 if test "x$enable_dlopen" != xyes; then 9545 enable_dlopen=unknown 9546 enable_dlopen_self=unknown 9547 enable_dlopen_self_static=unknown 9548else 9549 lt_cv_dlopen=no 9550 lt_cv_dlopen_libs= 9551 9552 case $host_os in 9553 beos*) 9554 lt_cv_dlopen="load_add_on" 9555 lt_cv_dlopen_libs= 9556 lt_cv_dlopen_self=yes 9557 ;; 9558 9559 mingw* | pw32* | cegcc*) 9560 lt_cv_dlopen="LoadLibrary" 9561 lt_cv_dlopen_libs= 9562 ;; 9563 9564 cygwin*) 9565 lt_cv_dlopen="dlopen" 9566 lt_cv_dlopen_libs= 9567 ;; 9568 9569 darwin*) 9570 # if libdl is installed we need to link against it 9571 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9572$as_echo_n "checking for dlopen in -ldl... " >&6; } 9573if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9574 $as_echo_n "(cached) " >&6 9575else 9576 ac_check_lib_save_LIBS=$LIBS 9577LIBS="-ldl $LIBS" 9578cat >conftest.$ac_ext <<_ACEOF 9579/* confdefs.h. */ 9580_ACEOF 9581cat confdefs.h >>conftest.$ac_ext 9582cat >>conftest.$ac_ext <<_ACEOF 9583/* end confdefs.h. */ 9584 9585/* Override any GCC internal prototype to avoid an error. 9586 Use char because int might match the return type of a GCC 9587 builtin and then its argument prototype would still apply. */ 9588#ifdef __cplusplus 9589extern "C" 9590#endif 9591char dlopen (); 9592int 9593main () 9594{ 9595return dlopen (); 9596 ; 9597 return 0; 9598} 9599_ACEOF 9600rm -f conftest.$ac_objext conftest$ac_exeext 9601if { (ac_try="$ac_link" 9602case "(($ac_try" in 9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9604 *) ac_try_echo=$ac_try;; 9605esac 9606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9607$as_echo "$ac_try_echo") >&5 9608 (eval "$ac_link") 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && { 9615 test -z "$ac_c_werror_flag" || 9616 test ! -s conftest.err 9617 } && test -s conftest$ac_exeext && { 9618 test "$cross_compiling" = yes || 9619 $as_test_x conftest$ac_exeext 9620 }; then 9621 ac_cv_lib_dl_dlopen=yes 9622else 9623 $as_echo "$as_me: failed program was:" >&5 9624sed 's/^/| /' conftest.$ac_ext >&5 9625 9626 ac_cv_lib_dl_dlopen=no 9627fi 9628 9629rm -rf conftest.dSYM 9630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9631 conftest$ac_exeext conftest.$ac_ext 9632LIBS=$ac_check_lib_save_LIBS 9633fi 9634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9635$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9636if test $ac_cv_lib_dl_dlopen = yes; then 9637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9638else 9639 9640 lt_cv_dlopen="dyld" 9641 lt_cv_dlopen_libs= 9642 lt_cv_dlopen_self=yes 9643 9644fi 9645 9646 ;; 9647 9648 *) 9649 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9650$as_echo_n "checking for shl_load... " >&6; } 9651if test "${ac_cv_func_shl_load+set}" = set; then 9652 $as_echo_n "(cached) " >&6 9653else 9654 cat >conftest.$ac_ext <<_ACEOF 9655/* confdefs.h. */ 9656_ACEOF 9657cat confdefs.h >>conftest.$ac_ext 9658cat >>conftest.$ac_ext <<_ACEOF 9659/* end confdefs.h. */ 9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9662#define shl_load innocuous_shl_load 9663 9664/* System header to define __stub macros and hopefully few prototypes, 9665 which can conflict with char shl_load (); below. 9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9667 <limits.h> exists even on freestanding compilers. */ 9668 9669#ifdef __STDC__ 9670# include <limits.h> 9671#else 9672# include <assert.h> 9673#endif 9674 9675#undef shl_load 9676 9677/* Override any GCC internal prototype to avoid an error. 9678 Use char because int might match the return type of a GCC 9679 builtin and then its argument prototype would still apply. */ 9680#ifdef __cplusplus 9681extern "C" 9682#endif 9683char shl_load (); 9684/* The GNU C library defines this for functions which it implements 9685 to always fail with ENOSYS. Some functions are actually named 9686 something starting with __ and the normal name is an alias. */ 9687#if defined __stub_shl_load || defined __stub___shl_load 9688choke me 9689#endif 9690 9691int 9692main () 9693{ 9694return shl_load (); 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699rm -f conftest.$ac_objext conftest$ac_exeext 9700if { (ac_try="$ac_link" 9701case "(($ac_try" in 9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9703 *) ac_try_echo=$ac_try;; 9704esac 9705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9706$as_echo "$ac_try_echo") >&5 9707 (eval "$ac_link") 2>conftest.er1 9708 ac_status=$? 9709 grep -v '^ *+' conftest.er1 >conftest.err 9710 rm -f conftest.er1 9711 cat conftest.err >&5 9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); } && { 9714 test -z "$ac_c_werror_flag" || 9715 test ! -s conftest.err 9716 } && test -s conftest$ac_exeext && { 9717 test "$cross_compiling" = yes || 9718 $as_test_x conftest$ac_exeext 9719 }; then 9720 ac_cv_func_shl_load=yes 9721else 9722 $as_echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725 ac_cv_func_shl_load=no 9726fi 9727 9728rm -rf conftest.dSYM 9729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9730 conftest$ac_exeext conftest.$ac_ext 9731fi 9732{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9733$as_echo "$ac_cv_func_shl_load" >&6; } 9734if test $ac_cv_func_shl_load = yes; then 9735 lt_cv_dlopen="shl_load" 9736else 9737 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9738$as_echo_n "checking for shl_load in -ldld... " >&6; } 9739if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9740 $as_echo_n "(cached) " >&6 9741else 9742 ac_check_lib_save_LIBS=$LIBS 9743LIBS="-ldld $LIBS" 9744cat >conftest.$ac_ext <<_ACEOF 9745/* confdefs.h. */ 9746_ACEOF 9747cat confdefs.h >>conftest.$ac_ext 9748cat >>conftest.$ac_ext <<_ACEOF 9749/* end confdefs.h. */ 9750 9751/* Override any GCC internal prototype to avoid an error. 9752 Use char because int might match the return type of a GCC 9753 builtin and then its argument prototype would still apply. */ 9754#ifdef __cplusplus 9755extern "C" 9756#endif 9757char shl_load (); 9758int 9759main () 9760{ 9761return shl_load (); 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766rm -f conftest.$ac_objext conftest$ac_exeext 9767if { (ac_try="$ac_link" 9768case "(($ac_try" in 9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9770 *) ac_try_echo=$ac_try;; 9771esac 9772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9773$as_echo "$ac_try_echo") >&5 9774 (eval "$ac_link") 2>conftest.er1 9775 ac_status=$? 9776 grep -v '^ *+' conftest.er1 >conftest.err 9777 rm -f conftest.er1 9778 cat conftest.err >&5 9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9780 (exit $ac_status); } && { 9781 test -z "$ac_c_werror_flag" || 9782 test ! -s conftest.err 9783 } && test -s conftest$ac_exeext && { 9784 test "$cross_compiling" = yes || 9785 $as_test_x conftest$ac_exeext 9786 }; then 9787 ac_cv_lib_dld_shl_load=yes 9788else 9789 $as_echo "$as_me: failed program was:" >&5 9790sed 's/^/| /' conftest.$ac_ext >&5 9791 9792 ac_cv_lib_dld_shl_load=no 9793fi 9794 9795rm -rf conftest.dSYM 9796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9797 conftest$ac_exeext conftest.$ac_ext 9798LIBS=$ac_check_lib_save_LIBS 9799fi 9800{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9801$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9802if test $ac_cv_lib_dld_shl_load = yes; then 9803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9804else 9805 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9806$as_echo_n "checking for dlopen... " >&6; } 9807if test "${ac_cv_func_dlopen+set}" = set; then 9808 $as_echo_n "(cached) " >&6 9809else 9810 cat >conftest.$ac_ext <<_ACEOF 9811/* confdefs.h. */ 9812_ACEOF 9813cat confdefs.h >>conftest.$ac_ext 9814cat >>conftest.$ac_ext <<_ACEOF 9815/* end confdefs.h. */ 9816/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9818#define dlopen innocuous_dlopen 9819 9820/* System header to define __stub macros and hopefully few prototypes, 9821 which can conflict with char dlopen (); below. 9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9823 <limits.h> exists even on freestanding compilers. */ 9824 9825#ifdef __STDC__ 9826# include <limits.h> 9827#else 9828# include <assert.h> 9829#endif 9830 9831#undef dlopen 9832 9833/* Override any GCC internal prototype to avoid an error. 9834 Use char because int might match the return type of a GCC 9835 builtin and then its argument prototype would still apply. */ 9836#ifdef __cplusplus 9837extern "C" 9838#endif 9839char dlopen (); 9840/* The GNU C library defines this for functions which it implements 9841 to always fail with ENOSYS. Some functions are actually named 9842 something starting with __ and the normal name is an alias. */ 9843#if defined __stub_dlopen || defined __stub___dlopen 9844choke me 9845#endif 9846 9847int 9848main () 9849{ 9850return dlopen (); 9851 ; 9852 return 0; 9853} 9854_ACEOF 9855rm -f conftest.$ac_objext conftest$ac_exeext 9856if { (ac_try="$ac_link" 9857case "(($ac_try" in 9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9859 *) ac_try_echo=$ac_try;; 9860esac 9861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9862$as_echo "$ac_try_echo") >&5 9863 (eval "$ac_link") 2>conftest.er1 9864 ac_status=$? 9865 grep -v '^ *+' conftest.er1 >conftest.err 9866 rm -f conftest.er1 9867 cat conftest.err >&5 9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9869 (exit $ac_status); } && { 9870 test -z "$ac_c_werror_flag" || 9871 test ! -s conftest.err 9872 } && test -s conftest$ac_exeext && { 9873 test "$cross_compiling" = yes || 9874 $as_test_x conftest$ac_exeext 9875 }; then 9876 ac_cv_func_dlopen=yes 9877else 9878 $as_echo "$as_me: failed program was:" >&5 9879sed 's/^/| /' conftest.$ac_ext >&5 9880 9881 ac_cv_func_dlopen=no 9882fi 9883 9884rm -rf conftest.dSYM 9885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9886 conftest$ac_exeext conftest.$ac_ext 9887fi 9888{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9889$as_echo "$ac_cv_func_dlopen" >&6; } 9890if test $ac_cv_func_dlopen = yes; then 9891 lt_cv_dlopen="dlopen" 9892else 9893 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9894$as_echo_n "checking for dlopen in -ldl... " >&6; } 9895if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9896 $as_echo_n "(cached) " >&6 9897else 9898 ac_check_lib_save_LIBS=$LIBS 9899LIBS="-ldl $LIBS" 9900cat >conftest.$ac_ext <<_ACEOF 9901/* confdefs.h. */ 9902_ACEOF 9903cat confdefs.h >>conftest.$ac_ext 9904cat >>conftest.$ac_ext <<_ACEOF 9905/* end confdefs.h. */ 9906 9907/* Override any GCC internal prototype to avoid an error. 9908 Use char because int might match the return type of a GCC 9909 builtin and then its argument prototype would still apply. */ 9910#ifdef __cplusplus 9911extern "C" 9912#endif 9913char dlopen (); 9914int 9915main () 9916{ 9917return dlopen (); 9918 ; 9919 return 0; 9920} 9921_ACEOF 9922rm -f conftest.$ac_objext conftest$ac_exeext 9923if { (ac_try="$ac_link" 9924case "(($ac_try" in 9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9926 *) ac_try_echo=$ac_try;; 9927esac 9928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9929$as_echo "$ac_try_echo") >&5 9930 (eval "$ac_link") 2>conftest.er1 9931 ac_status=$? 9932 grep -v '^ *+' conftest.er1 >conftest.err 9933 rm -f conftest.er1 9934 cat conftest.err >&5 9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9936 (exit $ac_status); } && { 9937 test -z "$ac_c_werror_flag" || 9938 test ! -s conftest.err 9939 } && test -s conftest$ac_exeext && { 9940 test "$cross_compiling" = yes || 9941 $as_test_x conftest$ac_exeext 9942 }; then 9943 ac_cv_lib_dl_dlopen=yes 9944else 9945 $as_echo "$as_me: failed program was:" >&5 9946sed 's/^/| /' conftest.$ac_ext >&5 9947 9948 ac_cv_lib_dl_dlopen=no 9949fi 9950 9951rm -rf conftest.dSYM 9952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9953 conftest$ac_exeext conftest.$ac_ext 9954LIBS=$ac_check_lib_save_LIBS 9955fi 9956{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9957$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9958if test $ac_cv_lib_dl_dlopen = yes; then 9959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9960else 9961 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9962$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9963if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9964 $as_echo_n "(cached) " >&6 9965else 9966 ac_check_lib_save_LIBS=$LIBS 9967LIBS="-lsvld $LIBS" 9968cat >conftest.$ac_ext <<_ACEOF 9969/* confdefs.h. */ 9970_ACEOF 9971cat confdefs.h >>conftest.$ac_ext 9972cat >>conftest.$ac_ext <<_ACEOF 9973/* end confdefs.h. */ 9974 9975/* Override any GCC internal prototype to avoid an error. 9976 Use char because int might match the return type of a GCC 9977 builtin and then its argument prototype would still apply. */ 9978#ifdef __cplusplus 9979extern "C" 9980#endif 9981char dlopen (); 9982int 9983main () 9984{ 9985return dlopen (); 9986 ; 9987 return 0; 9988} 9989_ACEOF 9990rm -f conftest.$ac_objext conftest$ac_exeext 9991if { (ac_try="$ac_link" 9992case "(($ac_try" in 9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9994 *) ac_try_echo=$ac_try;; 9995esac 9996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9997$as_echo "$ac_try_echo") >&5 9998 (eval "$ac_link") 2>conftest.er1 9999 ac_status=$? 10000 grep -v '^ *+' conftest.er1 >conftest.err 10001 rm -f conftest.er1 10002 cat conftest.err >&5 10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10004 (exit $ac_status); } && { 10005 test -z "$ac_c_werror_flag" || 10006 test ! -s conftest.err 10007 } && test -s conftest$ac_exeext && { 10008 test "$cross_compiling" = yes || 10009 $as_test_x conftest$ac_exeext 10010 }; then 10011 ac_cv_lib_svld_dlopen=yes 10012else 10013 $as_echo "$as_me: failed program was:" >&5 10014sed 's/^/| /' conftest.$ac_ext >&5 10015 10016 ac_cv_lib_svld_dlopen=no 10017fi 10018 10019rm -rf conftest.dSYM 10020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10021 conftest$ac_exeext conftest.$ac_ext 10022LIBS=$ac_check_lib_save_LIBS 10023fi 10024{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10025$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10026if test $ac_cv_lib_svld_dlopen = yes; then 10027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10028else 10029 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10030$as_echo_n "checking for dld_link in -ldld... " >&6; } 10031if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10032 $as_echo_n "(cached) " >&6 10033else 10034 ac_check_lib_save_LIBS=$LIBS 10035LIBS="-ldld $LIBS" 10036cat >conftest.$ac_ext <<_ACEOF 10037/* confdefs.h. */ 10038_ACEOF 10039cat confdefs.h >>conftest.$ac_ext 10040cat >>conftest.$ac_ext <<_ACEOF 10041/* end confdefs.h. */ 10042 10043/* Override any GCC internal prototype to avoid an error. 10044 Use char because int might match the return type of a GCC 10045 builtin and then its argument prototype would still apply. */ 10046#ifdef __cplusplus 10047extern "C" 10048#endif 10049char dld_link (); 10050int 10051main () 10052{ 10053return dld_link (); 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058rm -f conftest.$ac_objext conftest$ac_exeext 10059if { (ac_try="$ac_link" 10060case "(($ac_try" in 10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10062 *) ac_try_echo=$ac_try;; 10063esac 10064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10065$as_echo "$ac_try_echo") >&5 10066 (eval "$ac_link") 2>conftest.er1 10067 ac_status=$? 10068 grep -v '^ *+' conftest.er1 >conftest.err 10069 rm -f conftest.er1 10070 cat conftest.err >&5 10071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10072 (exit $ac_status); } && { 10073 test -z "$ac_c_werror_flag" || 10074 test ! -s conftest.err 10075 } && test -s conftest$ac_exeext && { 10076 test "$cross_compiling" = yes || 10077 $as_test_x conftest$ac_exeext 10078 }; then 10079 ac_cv_lib_dld_dld_link=yes 10080else 10081 $as_echo "$as_me: failed program was:" >&5 10082sed 's/^/| /' conftest.$ac_ext >&5 10083 10084 ac_cv_lib_dld_dld_link=no 10085fi 10086 10087rm -rf conftest.dSYM 10088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10089 conftest$ac_exeext conftest.$ac_ext 10090LIBS=$ac_check_lib_save_LIBS 10091fi 10092{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10093$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10094if test $ac_cv_lib_dld_dld_link = yes; then 10095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10096fi 10097 10098 10099fi 10100 10101 10102fi 10103 10104 10105fi 10106 10107 10108fi 10109 10110 10111fi 10112 10113 ;; 10114 esac 10115 10116 if test "x$lt_cv_dlopen" != xno; then 10117 enable_dlopen=yes 10118 else 10119 enable_dlopen=no 10120 fi 10121 10122 case $lt_cv_dlopen in 10123 dlopen) 10124 save_CPPFLAGS="$CPPFLAGS" 10125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10126 10127 save_LDFLAGS="$LDFLAGS" 10128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10129 10130 save_LIBS="$LIBS" 10131 LIBS="$lt_cv_dlopen_libs $LIBS" 10132 10133 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10134$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10135if test "${lt_cv_dlopen_self+set}" = set; then 10136 $as_echo_n "(cached) " >&6 10137else 10138 if test "$cross_compiling" = yes; then : 10139 lt_cv_dlopen_self=cross 10140else 10141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10142 lt_status=$lt_dlunknown 10143 cat > conftest.$ac_ext <<_LT_EOF 10144#line 10144 "configure" 10145#include "confdefs.h" 10146 10147#if HAVE_DLFCN_H 10148#include <dlfcn.h> 10149#endif 10150 10151#include <stdio.h> 10152 10153#ifdef RTLD_GLOBAL 10154# define LT_DLGLOBAL RTLD_GLOBAL 10155#else 10156# ifdef DL_GLOBAL 10157# define LT_DLGLOBAL DL_GLOBAL 10158# else 10159# define LT_DLGLOBAL 0 10160# endif 10161#endif 10162 10163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10164 find out it does not work in some platform. */ 10165#ifndef LT_DLLAZY_OR_NOW 10166# ifdef RTLD_LAZY 10167# define LT_DLLAZY_OR_NOW RTLD_LAZY 10168# else 10169# ifdef DL_LAZY 10170# define LT_DLLAZY_OR_NOW DL_LAZY 10171# else 10172# ifdef RTLD_NOW 10173# define LT_DLLAZY_OR_NOW RTLD_NOW 10174# else 10175# ifdef DL_NOW 10176# define LT_DLLAZY_OR_NOW DL_NOW 10177# else 10178# define LT_DLLAZY_OR_NOW 0 10179# endif 10180# endif 10181# endif 10182# endif 10183#endif 10184 10185void fnord() { int i=42;} 10186int main () 10187{ 10188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10189 int status = $lt_dlunknown; 10190 10191 if (self) 10192 { 10193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10195 /* dlclose (self); */ 10196 } 10197 else 10198 puts (dlerror ()); 10199 10200 return status; 10201} 10202_LT_EOF 10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10204 (eval $ac_link) 2>&5 10205 ac_status=$? 10206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10208 (./conftest; exit; ) >&5 2>/dev/null 10209 lt_status=$? 10210 case x$lt_status in 10211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10214 esac 10215 else : 10216 # compilation failed 10217 lt_cv_dlopen_self=no 10218 fi 10219fi 10220rm -fr conftest* 10221 10222 10223fi 10224{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10225$as_echo "$lt_cv_dlopen_self" >&6; } 10226 10227 if test "x$lt_cv_dlopen_self" = xyes; then 10228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10229 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10230$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10231if test "${lt_cv_dlopen_self_static+set}" = set; then 10232 $as_echo_n "(cached) " >&6 10233else 10234 if test "$cross_compiling" = yes; then : 10235 lt_cv_dlopen_self_static=cross 10236else 10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10238 lt_status=$lt_dlunknown 10239 cat > conftest.$ac_ext <<_LT_EOF 10240#line 10240 "configure" 10241#include "confdefs.h" 10242 10243#if HAVE_DLFCN_H 10244#include <dlfcn.h> 10245#endif 10246 10247#include <stdio.h> 10248 10249#ifdef RTLD_GLOBAL 10250# define LT_DLGLOBAL RTLD_GLOBAL 10251#else 10252# ifdef DL_GLOBAL 10253# define LT_DLGLOBAL DL_GLOBAL 10254# else 10255# define LT_DLGLOBAL 0 10256# endif 10257#endif 10258 10259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10260 find out it does not work in some platform. */ 10261#ifndef LT_DLLAZY_OR_NOW 10262# ifdef RTLD_LAZY 10263# define LT_DLLAZY_OR_NOW RTLD_LAZY 10264# else 10265# ifdef DL_LAZY 10266# define LT_DLLAZY_OR_NOW DL_LAZY 10267# else 10268# ifdef RTLD_NOW 10269# define LT_DLLAZY_OR_NOW RTLD_NOW 10270# else 10271# ifdef DL_NOW 10272# define LT_DLLAZY_OR_NOW DL_NOW 10273# else 10274# define LT_DLLAZY_OR_NOW 0 10275# endif 10276# endif 10277# endif 10278# endif 10279#endif 10280 10281void fnord() { int i=42;} 10282int main () 10283{ 10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10285 int status = $lt_dlunknown; 10286 10287 if (self) 10288 { 10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10291 /* dlclose (self); */ 10292 } 10293 else 10294 puts (dlerror ()); 10295 10296 return status; 10297} 10298_LT_EOF 10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10300 (eval $ac_link) 2>&5 10301 ac_status=$? 10302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10304 (./conftest; exit; ) >&5 2>/dev/null 10305 lt_status=$? 10306 case x$lt_status in 10307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10310 esac 10311 else : 10312 # compilation failed 10313 lt_cv_dlopen_self_static=no 10314 fi 10315fi 10316rm -fr conftest* 10317 10318 10319fi 10320{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10321$as_echo "$lt_cv_dlopen_self_static" >&6; } 10322 fi 10323 10324 CPPFLAGS="$save_CPPFLAGS" 10325 LDFLAGS="$save_LDFLAGS" 10326 LIBS="$save_LIBS" 10327 ;; 10328 esac 10329 10330 case $lt_cv_dlopen_self in 10331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10332 *) enable_dlopen_self=unknown ;; 10333 esac 10334 10335 case $lt_cv_dlopen_self_static in 10336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10337 *) enable_dlopen_self_static=unknown ;; 10338 esac 10339fi 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357striplib= 10358old_striplib= 10359{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10360$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10363 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10364 { $as_echo "$as_me:$LINENO: result: yes" >&5 10365$as_echo "yes" >&6; } 10366else 10367# FIXME - insert some real tests, host_os isn't really good enough 10368 case $host_os in 10369 darwin*) 10370 if test -n "$STRIP" ; then 10371 striplib="$STRIP -x" 10372 old_striplib="$STRIP -S" 10373 { $as_echo "$as_me:$LINENO: result: yes" >&5 10374$as_echo "yes" >&6; } 10375 else 10376 { $as_echo "$as_me:$LINENO: result: no" >&5 10377$as_echo "no" >&6; } 10378 fi 10379 ;; 10380 *) 10381 { $as_echo "$as_me:$LINENO: result: no" >&5 10382$as_echo "no" >&6; } 10383 ;; 10384 esac 10385fi 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 # Report which library types will actually be built 10399 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10400$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10401 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10402$as_echo "$can_build_shared" >&6; } 10403 10404 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10405$as_echo_n "checking whether to build shared libraries... " >&6; } 10406 test "$can_build_shared" = "no" && enable_shared=no 10407 10408 # On AIX, shared libraries and static libraries use the same namespace, and 10409 # are all built from PIC. 10410 case $host_os in 10411 aix3*) 10412 test "$enable_shared" = yes && enable_static=no 10413 if test -n "$RANLIB"; then 10414 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10415 postinstall_cmds='$RANLIB $lib' 10416 fi 10417 ;; 10418 10419 aix[4-9]*) 10420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10421 test "$enable_shared" = yes && enable_static=no 10422 fi 10423 ;; 10424 esac 10425 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10426$as_echo "$enable_shared" >&6; } 10427 10428 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10429$as_echo_n "checking whether to build static libraries... " >&6; } 10430 # Make sure either enable_shared or enable_static is yes. 10431 test "$enable_shared" = yes || enable_static=yes 10432 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10433$as_echo "$enable_static" >&6; } 10434 10435 10436 10437 10438fi 10439ac_ext=c 10440ac_cpp='$CPP $CPPFLAGS' 10441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10443ac_compiler_gnu=$ac_cv_c_compiler_gnu 10444 10445CC="$lt_save_CC" 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 ac_config_commands="$ac_config_commands libtool" 10460 10461 10462 10463 10464# Only expand once: 10465 10466 10467# Find a good install program. We prefer a C program (faster), 10468# so one script is as good as another. But avoid the broken or 10469# incompatible versions: 10470# SysV /etc/install, /usr/sbin/install 10471# SunOS /usr/etc/install 10472# IRIX /sbin/install 10473# AIX /bin/install 10474# AmigaOS /C/install, which installs bootblocks on floppy discs 10475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10476# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10478# OS/2's system install, which has a completely different semantic 10479# ./install, which can be erroneously created by make from ./install.sh. 10480# Reject install programs that cannot install multiple files. 10481{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 10482$as_echo_n "checking for a BSD-compatible install... " >&6; } 10483if test -z "$INSTALL"; then 10484if test "${ac_cv_path_install+set}" = set; then 10485 $as_echo_n "(cached) " >&6 10486else 10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10488for as_dir in $PATH 10489do 10490 IFS=$as_save_IFS 10491 test -z "$as_dir" && as_dir=. 10492 # Account for people who put trailing slashes in PATH elements. 10493case $as_dir/ in 10494 ./ | .// | /cC/* | \ 10495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10496 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 10497 /usr/ucb/* ) ;; 10498 *) 10499 # OSF1 and SCO ODT 3.0 have their own names for install. 10500 # Don't use installbsd from OSF since it installs stuff as root 10501 # by default. 10502 for ac_prog in ginstall scoinst install; do 10503 for ac_exec_ext in '' $ac_executable_extensions; do 10504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 10505 if test $ac_prog = install && 10506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10507 # AIX install. It has an incompatible calling convention. 10508 : 10509 elif test $ac_prog = install && 10510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10511 # program-specific install script used by HP pwplus--don't use. 10512 : 10513 else 10514 rm -rf conftest.one conftest.two conftest.dir 10515 echo one > conftest.one 10516 echo two > conftest.two 10517 mkdir conftest.dir 10518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10519 test -s conftest.one && test -s conftest.two && 10520 test -s conftest.dir/conftest.one && 10521 test -s conftest.dir/conftest.two 10522 then 10523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10524 break 3 10525 fi 10526 fi 10527 fi 10528 done 10529 done 10530 ;; 10531esac 10532 10533done 10534IFS=$as_save_IFS 10535 10536rm -rf conftest.one conftest.two conftest.dir 10537 10538fi 10539 if test "${ac_cv_path_install+set}" = set; then 10540 INSTALL=$ac_cv_path_install 10541 else 10542 # As a last resort, use the slow shell script. Don't cache a 10543 # value for INSTALL within a source directory, because that will 10544 # break other packages using the cache if that directory is 10545 # removed, or if the value is a relative name. 10546 INSTALL=$ac_install_sh 10547 fi 10548fi 10549{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 10550$as_echo "$INSTALL" >&6; } 10551 10552# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10553# It thinks the first close brace ends the variable substitution. 10554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10555 10556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10557 10558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10559 10560for ac_prog in gawk mawk nawk awk 10561do 10562 # Extract the first word of "$ac_prog", so it can be a program name with args. 10563set dummy $ac_prog; ac_word=$2 10564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10565$as_echo_n "checking for $ac_word... " >&6; } 10566if test "${ac_cv_prog_AWK+set}" = set; then 10567 $as_echo_n "(cached) " >&6 10568else 10569 if test -n "$AWK"; then 10570 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10571else 10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10573for as_dir in $PATH 10574do 10575 IFS=$as_save_IFS 10576 test -z "$as_dir" && as_dir=. 10577 for ac_exec_ext in '' $ac_executable_extensions; do 10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10579 ac_cv_prog_AWK="$ac_prog" 10580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10581 break 2 10582 fi 10583done 10584done 10585IFS=$as_save_IFS 10586 10587fi 10588fi 10589AWK=$ac_cv_prog_AWK 10590if test -n "$AWK"; then 10591 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 10592$as_echo "$AWK" >&6; } 10593else 10594 { $as_echo "$as_me:$LINENO: result: no" >&5 10595$as_echo "no" >&6; } 10596fi 10597 10598 10599 test -n "$AWK" && break 10600done 10601 10602 10603######### 10604# Enable large file support (if special flags are necessary) 10605# 10606# Check whether --enable-largefile was given. 10607if test "${enable_largefile+set}" = set; then 10608 enableval=$enable_largefile; 10609fi 10610 10611if test "$enable_largefile" != no; then 10612 10613 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 10614$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10615if test "${ac_cv_sys_largefile_CC+set}" = set; then 10616 $as_echo_n "(cached) " >&6 10617else 10618 ac_cv_sys_largefile_CC=no 10619 if test "$GCC" != yes; then 10620 ac_save_CC=$CC 10621 while :; do 10622 # IRIX 6.2 and later do not support large files by default, 10623 # so use the C compiler's -n32 option if that helps. 10624 cat >conftest.$ac_ext <<_ACEOF 10625/* confdefs.h. */ 10626_ACEOF 10627cat confdefs.h >>conftest.$ac_ext 10628cat >>conftest.$ac_ext <<_ACEOF 10629/* end confdefs.h. */ 10630#include <sys/types.h> 10631 /* Check that off_t can represent 2**63 - 1 correctly. 10632 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10633 since some C++ compilers masquerading as C compilers 10634 incorrectly reject 9223372036854775807. */ 10635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10637 && LARGE_OFF_T % 2147483647 == 1) 10638 ? 1 : -1]; 10639int 10640main () 10641{ 10642 10643 ; 10644 return 0; 10645} 10646_ACEOF 10647 rm -f conftest.$ac_objext 10648if { (ac_try="$ac_compile" 10649case "(($ac_try" in 10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10651 *) ac_try_echo=$ac_try;; 10652esac 10653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10654$as_echo "$ac_try_echo") >&5 10655 (eval "$ac_compile") 2>conftest.er1 10656 ac_status=$? 10657 grep -v '^ *+' conftest.er1 >conftest.err 10658 rm -f conftest.er1 10659 cat conftest.err >&5 10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 (exit $ac_status); } && { 10662 test -z "$ac_c_werror_flag" || 10663 test ! -s conftest.err 10664 } && test -s conftest.$ac_objext; then 10665 break 10666else 10667 $as_echo "$as_me: failed program was:" >&5 10668sed 's/^/| /' conftest.$ac_ext >&5 10669 10670 10671fi 10672 10673rm -f core conftest.err conftest.$ac_objext 10674 CC="$CC -n32" 10675 rm -f conftest.$ac_objext 10676if { (ac_try="$ac_compile" 10677case "(($ac_try" in 10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10679 *) ac_try_echo=$ac_try;; 10680esac 10681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10682$as_echo "$ac_try_echo") >&5 10683 (eval "$ac_compile") 2>conftest.er1 10684 ac_status=$? 10685 grep -v '^ *+' conftest.er1 >conftest.err 10686 rm -f conftest.er1 10687 cat conftest.err >&5 10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); } && { 10690 test -z "$ac_c_werror_flag" || 10691 test ! -s conftest.err 10692 } && test -s conftest.$ac_objext; then 10693 ac_cv_sys_largefile_CC=' -n32'; break 10694else 10695 $as_echo "$as_me: failed program was:" >&5 10696sed 's/^/| /' conftest.$ac_ext >&5 10697 10698 10699fi 10700 10701rm -f core conftest.err conftest.$ac_objext 10702 break 10703 done 10704 CC=$ac_save_CC 10705 rm -f conftest.$ac_ext 10706 fi 10707fi 10708{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 10709$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10710 if test "$ac_cv_sys_largefile_CC" != no; then 10711 CC=$CC$ac_cv_sys_largefile_CC 10712 fi 10713 10714 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10715$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10716if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10717 $as_echo_n "(cached) " >&6 10718else 10719 while :; do 10720 cat >conftest.$ac_ext <<_ACEOF 10721/* confdefs.h. */ 10722_ACEOF 10723cat confdefs.h >>conftest.$ac_ext 10724cat >>conftest.$ac_ext <<_ACEOF 10725/* end confdefs.h. */ 10726#include <sys/types.h> 10727 /* Check that off_t can represent 2**63 - 1 correctly. 10728 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10729 since some C++ compilers masquerading as C compilers 10730 incorrectly reject 9223372036854775807. */ 10731#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10733 && LARGE_OFF_T % 2147483647 == 1) 10734 ? 1 : -1]; 10735int 10736main () 10737{ 10738 10739 ; 10740 return 0; 10741} 10742_ACEOF 10743rm -f conftest.$ac_objext 10744if { (ac_try="$ac_compile" 10745case "(($ac_try" in 10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10747 *) ac_try_echo=$ac_try;; 10748esac 10749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10750$as_echo "$ac_try_echo") >&5 10751 (eval "$ac_compile") 2>conftest.er1 10752 ac_status=$? 10753 grep -v '^ *+' conftest.er1 >conftest.err 10754 rm -f conftest.er1 10755 cat conftest.err >&5 10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 (exit $ac_status); } && { 10758 test -z "$ac_c_werror_flag" || 10759 test ! -s conftest.err 10760 } && test -s conftest.$ac_objext; then 10761 ac_cv_sys_file_offset_bits=no; break 10762else 10763 $as_echo "$as_me: failed program was:" >&5 10764sed 's/^/| /' conftest.$ac_ext >&5 10765 10766 10767fi 10768 10769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10770 cat >conftest.$ac_ext <<_ACEOF 10771/* confdefs.h. */ 10772_ACEOF 10773cat confdefs.h >>conftest.$ac_ext 10774cat >>conftest.$ac_ext <<_ACEOF 10775/* end confdefs.h. */ 10776#define _FILE_OFFSET_BITS 64 10777#include <sys/types.h> 10778 /* Check that off_t can represent 2**63 - 1 correctly. 10779 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10780 since some C++ compilers masquerading as C compilers 10781 incorrectly reject 9223372036854775807. */ 10782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10784 && LARGE_OFF_T % 2147483647 == 1) 10785 ? 1 : -1]; 10786int 10787main () 10788{ 10789 10790 ; 10791 return 0; 10792} 10793_ACEOF 10794rm -f conftest.$ac_objext 10795if { (ac_try="$ac_compile" 10796case "(($ac_try" in 10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10798 *) ac_try_echo=$ac_try;; 10799esac 10800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10801$as_echo "$ac_try_echo") >&5 10802 (eval "$ac_compile") 2>conftest.er1 10803 ac_status=$? 10804 grep -v '^ *+' conftest.er1 >conftest.err 10805 rm -f conftest.er1 10806 cat conftest.err >&5 10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10808 (exit $ac_status); } && { 10809 test -z "$ac_c_werror_flag" || 10810 test ! -s conftest.err 10811 } && test -s conftest.$ac_objext; then 10812 ac_cv_sys_file_offset_bits=64; break 10813else 10814 $as_echo "$as_me: failed program was:" >&5 10815sed 's/^/| /' conftest.$ac_ext >&5 10816 10817 10818fi 10819 10820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10821 ac_cv_sys_file_offset_bits=unknown 10822 break 10823done 10824fi 10825{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 10826$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10827case $ac_cv_sys_file_offset_bits in #( 10828 no | unknown) ;; 10829 *) 10830cat >>confdefs.h <<_ACEOF 10831#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10832_ACEOF 10833;; 10834esac 10835rm -rf conftest* 10836 if test $ac_cv_sys_file_offset_bits = unknown; then 10837 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10838$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10839if test "${ac_cv_sys_large_files+set}" = set; then 10840 $as_echo_n "(cached) " >&6 10841else 10842 while :; do 10843 cat >conftest.$ac_ext <<_ACEOF 10844/* confdefs.h. */ 10845_ACEOF 10846cat confdefs.h >>conftest.$ac_ext 10847cat >>conftest.$ac_ext <<_ACEOF 10848/* end confdefs.h. */ 10849#include <sys/types.h> 10850 /* Check that off_t can represent 2**63 - 1 correctly. 10851 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10852 since some C++ compilers masquerading as C compilers 10853 incorrectly reject 9223372036854775807. */ 10854#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10856 && LARGE_OFF_T % 2147483647 == 1) 10857 ? 1 : -1]; 10858int 10859main () 10860{ 10861 10862 ; 10863 return 0; 10864} 10865_ACEOF 10866rm -f conftest.$ac_objext 10867if { (ac_try="$ac_compile" 10868case "(($ac_try" in 10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10870 *) ac_try_echo=$ac_try;; 10871esac 10872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10873$as_echo "$ac_try_echo") >&5 10874 (eval "$ac_compile") 2>conftest.er1 10875 ac_status=$? 10876 grep -v '^ *+' conftest.er1 >conftest.err 10877 rm -f conftest.er1 10878 cat conftest.err >&5 10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 (exit $ac_status); } && { 10881 test -z "$ac_c_werror_flag" || 10882 test ! -s conftest.err 10883 } && test -s conftest.$ac_objext; then 10884 ac_cv_sys_large_files=no; break 10885else 10886 $as_echo "$as_me: failed program was:" >&5 10887sed 's/^/| /' conftest.$ac_ext >&5 10888 10889 10890fi 10891 10892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10893 cat >conftest.$ac_ext <<_ACEOF 10894/* confdefs.h. */ 10895_ACEOF 10896cat confdefs.h >>conftest.$ac_ext 10897cat >>conftest.$ac_ext <<_ACEOF 10898/* end confdefs.h. */ 10899#define _LARGE_FILES 1 10900#include <sys/types.h> 10901 /* Check that off_t can represent 2**63 - 1 correctly. 10902 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10903 since some C++ compilers masquerading as C compilers 10904 incorrectly reject 9223372036854775807. */ 10905#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10907 && LARGE_OFF_T % 2147483647 == 1) 10908 ? 1 : -1]; 10909int 10910main () 10911{ 10912 10913 ; 10914 return 0; 10915} 10916_ACEOF 10917rm -f conftest.$ac_objext 10918if { (ac_try="$ac_compile" 10919case "(($ac_try" in 10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10921 *) ac_try_echo=$ac_try;; 10922esac 10923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10924$as_echo "$ac_try_echo") >&5 10925 (eval "$ac_compile") 2>conftest.er1 10926 ac_status=$? 10927 grep -v '^ *+' conftest.er1 >conftest.err 10928 rm -f conftest.er1 10929 cat conftest.err >&5 10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); } && { 10932 test -z "$ac_c_werror_flag" || 10933 test ! -s conftest.err 10934 } && test -s conftest.$ac_objext; then 10935 ac_cv_sys_large_files=1; break 10936else 10937 $as_echo "$as_me: failed program was:" >&5 10938sed 's/^/| /' conftest.$ac_ext >&5 10939 10940 10941fi 10942 10943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10944 ac_cv_sys_large_files=unknown 10945 break 10946done 10947fi 10948{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10949$as_echo "$ac_cv_sys_large_files" >&6; } 10950case $ac_cv_sys_large_files in #( 10951 no | unknown) ;; 10952 *) 10953cat >>confdefs.h <<_ACEOF 10954#define _LARGE_FILES $ac_cv_sys_large_files 10955_ACEOF 10956;; 10957esac 10958rm -rf conftest* 10959 fi 10960fi 10961 10962 10963######### 10964# Check for needed/wanted data types 10965{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5 10966$as_echo_n "checking for int8_t... " >&6; } 10967if test "${ac_cv_type_int8_t+set}" = set; then 10968 $as_echo_n "(cached) " >&6 10969else 10970 ac_cv_type_int8_t=no 10971cat >conftest.$ac_ext <<_ACEOF 10972/* confdefs.h. */ 10973_ACEOF 10974cat confdefs.h >>conftest.$ac_ext 10975cat >>conftest.$ac_ext <<_ACEOF 10976/* end confdefs.h. */ 10977$ac_includes_default 10978int 10979main () 10980{ 10981if (sizeof (int8_t)) 10982 return 0; 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987rm -f conftest.$ac_objext 10988if { (ac_try="$ac_compile" 10989case "(($ac_try" in 10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10991 *) ac_try_echo=$ac_try;; 10992esac 10993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10994$as_echo "$ac_try_echo") >&5 10995 (eval "$ac_compile") 2>conftest.er1 10996 ac_status=$? 10997 grep -v '^ *+' conftest.er1 >conftest.err 10998 rm -f conftest.er1 10999 cat conftest.err >&5 11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 (exit $ac_status); } && { 11002 test -z "$ac_c_werror_flag" || 11003 test ! -s conftest.err 11004 } && test -s conftest.$ac_objext; then 11005 cat >conftest.$ac_ext <<_ACEOF 11006/* confdefs.h. */ 11007_ACEOF 11008cat confdefs.h >>conftest.$ac_ext 11009cat >>conftest.$ac_ext <<_ACEOF 11010/* end confdefs.h. */ 11011$ac_includes_default 11012int 11013main () 11014{ 11015if (sizeof ((int8_t))) 11016 return 0; 11017 ; 11018 return 0; 11019} 11020_ACEOF 11021rm -f conftest.$ac_objext 11022if { (ac_try="$ac_compile" 11023case "(($ac_try" in 11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11025 *) ac_try_echo=$ac_try;; 11026esac 11027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11028$as_echo "$ac_try_echo") >&5 11029 (eval "$ac_compile") 2>conftest.er1 11030 ac_status=$? 11031 grep -v '^ *+' conftest.er1 >conftest.err 11032 rm -f conftest.er1 11033 cat conftest.err >&5 11034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11035 (exit $ac_status); } && { 11036 test -z "$ac_c_werror_flag" || 11037 test ! -s conftest.err 11038 } && test -s conftest.$ac_objext; then 11039 : 11040else 11041 $as_echo "$as_me: failed program was:" >&5 11042sed 's/^/| /' conftest.$ac_ext >&5 11043 11044 ac_cv_type_int8_t=yes 11045fi 11046 11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11048else 11049 $as_echo "$as_me: failed program was:" >&5 11050sed 's/^/| /' conftest.$ac_ext >&5 11051 11052 11053fi 11054 11055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11056fi 11057{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11058$as_echo "$ac_cv_type_int8_t" >&6; } 11059if test $ac_cv_type_int8_t = yes; then 11060 11061cat >>confdefs.h <<_ACEOF 11062#define HAVE_INT8_T 1 11063_ACEOF 11064 11065 11066fi 11067{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5 11068$as_echo_n "checking for int16_t... " >&6; } 11069if test "${ac_cv_type_int16_t+set}" = set; then 11070 $as_echo_n "(cached) " >&6 11071else 11072 ac_cv_type_int16_t=no 11073cat >conftest.$ac_ext <<_ACEOF 11074/* confdefs.h. */ 11075_ACEOF 11076cat confdefs.h >>conftest.$ac_ext 11077cat >>conftest.$ac_ext <<_ACEOF 11078/* end confdefs.h. */ 11079$ac_includes_default 11080int 11081main () 11082{ 11083if (sizeof (int16_t)) 11084 return 0; 11085 ; 11086 return 0; 11087} 11088_ACEOF 11089rm -f conftest.$ac_objext 11090if { (ac_try="$ac_compile" 11091case "(($ac_try" in 11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11093 *) ac_try_echo=$ac_try;; 11094esac 11095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11096$as_echo "$ac_try_echo") >&5 11097 (eval "$ac_compile") 2>conftest.er1 11098 ac_status=$? 11099 grep -v '^ *+' conftest.er1 >conftest.err 11100 rm -f conftest.er1 11101 cat conftest.err >&5 11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 (exit $ac_status); } && { 11104 test -z "$ac_c_werror_flag" || 11105 test ! -s conftest.err 11106 } && test -s conftest.$ac_objext; then 11107 cat >conftest.$ac_ext <<_ACEOF 11108/* confdefs.h. */ 11109_ACEOF 11110cat confdefs.h >>conftest.$ac_ext 11111cat >>conftest.$ac_ext <<_ACEOF 11112/* end confdefs.h. */ 11113$ac_includes_default 11114int 11115main () 11116{ 11117if (sizeof ((int16_t))) 11118 return 0; 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123rm -f conftest.$ac_objext 11124if { (ac_try="$ac_compile" 11125case "(($ac_try" in 11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11127 *) ac_try_echo=$ac_try;; 11128esac 11129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11130$as_echo "$ac_try_echo") >&5 11131 (eval "$ac_compile") 2>conftest.er1 11132 ac_status=$? 11133 grep -v '^ *+' conftest.er1 >conftest.err 11134 rm -f conftest.er1 11135 cat conftest.err >&5 11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11137 (exit $ac_status); } && { 11138 test -z "$ac_c_werror_flag" || 11139 test ! -s conftest.err 11140 } && test -s conftest.$ac_objext; then 11141 : 11142else 11143 $as_echo "$as_me: failed program was:" >&5 11144sed 's/^/| /' conftest.$ac_ext >&5 11145 11146 ac_cv_type_int16_t=yes 11147fi 11148 11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11150else 11151 $as_echo "$as_me: failed program was:" >&5 11152sed 's/^/| /' conftest.$ac_ext >&5 11153 11154 11155fi 11156 11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11158fi 11159{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11160$as_echo "$ac_cv_type_int16_t" >&6; } 11161if test $ac_cv_type_int16_t = yes; then 11162 11163cat >>confdefs.h <<_ACEOF 11164#define HAVE_INT16_T 1 11165_ACEOF 11166 11167 11168fi 11169{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5 11170$as_echo_n "checking for int32_t... " >&6; } 11171if test "${ac_cv_type_int32_t+set}" = set; then 11172 $as_echo_n "(cached) " >&6 11173else 11174 ac_cv_type_int32_t=no 11175cat >conftest.$ac_ext <<_ACEOF 11176/* confdefs.h. */ 11177_ACEOF 11178cat confdefs.h >>conftest.$ac_ext 11179cat >>conftest.$ac_ext <<_ACEOF 11180/* end confdefs.h. */ 11181$ac_includes_default 11182int 11183main () 11184{ 11185if (sizeof (int32_t)) 11186 return 0; 11187 ; 11188 return 0; 11189} 11190_ACEOF 11191rm -f conftest.$ac_objext 11192if { (ac_try="$ac_compile" 11193case "(($ac_try" in 11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11195 *) ac_try_echo=$ac_try;; 11196esac 11197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11198$as_echo "$ac_try_echo") >&5 11199 (eval "$ac_compile") 2>conftest.er1 11200 ac_status=$? 11201 grep -v '^ *+' conftest.er1 >conftest.err 11202 rm -f conftest.er1 11203 cat conftest.err >&5 11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11205 (exit $ac_status); } && { 11206 test -z "$ac_c_werror_flag" || 11207 test ! -s conftest.err 11208 } && test -s conftest.$ac_objext; then 11209 cat >conftest.$ac_ext <<_ACEOF 11210/* confdefs.h. */ 11211_ACEOF 11212cat confdefs.h >>conftest.$ac_ext 11213cat >>conftest.$ac_ext <<_ACEOF 11214/* end confdefs.h. */ 11215$ac_includes_default 11216int 11217main () 11218{ 11219if (sizeof ((int32_t))) 11220 return 0; 11221 ; 11222 return 0; 11223} 11224_ACEOF 11225rm -f conftest.$ac_objext 11226if { (ac_try="$ac_compile" 11227case "(($ac_try" in 11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11229 *) ac_try_echo=$ac_try;; 11230esac 11231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11232$as_echo "$ac_try_echo") >&5 11233 (eval "$ac_compile") 2>conftest.er1 11234 ac_status=$? 11235 grep -v '^ *+' conftest.er1 >conftest.err 11236 rm -f conftest.er1 11237 cat conftest.err >&5 11238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11239 (exit $ac_status); } && { 11240 test -z "$ac_c_werror_flag" || 11241 test ! -s conftest.err 11242 } && test -s conftest.$ac_objext; then 11243 : 11244else 11245 $as_echo "$as_me: failed program was:" >&5 11246sed 's/^/| /' conftest.$ac_ext >&5 11247 11248 ac_cv_type_int32_t=yes 11249fi 11250 11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11252else 11253 $as_echo "$as_me: failed program was:" >&5 11254sed 's/^/| /' conftest.$ac_ext >&5 11255 11256 11257fi 11258 11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11260fi 11261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11262$as_echo "$ac_cv_type_int32_t" >&6; } 11263if test $ac_cv_type_int32_t = yes; then 11264 11265cat >>confdefs.h <<_ACEOF 11266#define HAVE_INT32_T 1 11267_ACEOF 11268 11269 11270fi 11271{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5 11272$as_echo_n "checking for int64_t... " >&6; } 11273if test "${ac_cv_type_int64_t+set}" = set; then 11274 $as_echo_n "(cached) " >&6 11275else 11276 ac_cv_type_int64_t=no 11277cat >conftest.$ac_ext <<_ACEOF 11278/* confdefs.h. */ 11279_ACEOF 11280cat confdefs.h >>conftest.$ac_ext 11281cat >>conftest.$ac_ext <<_ACEOF 11282/* end confdefs.h. */ 11283$ac_includes_default 11284int 11285main () 11286{ 11287if (sizeof (int64_t)) 11288 return 0; 11289 ; 11290 return 0; 11291} 11292_ACEOF 11293rm -f conftest.$ac_objext 11294if { (ac_try="$ac_compile" 11295case "(($ac_try" in 11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11297 *) ac_try_echo=$ac_try;; 11298esac 11299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11300$as_echo "$ac_try_echo") >&5 11301 (eval "$ac_compile") 2>conftest.er1 11302 ac_status=$? 11303 grep -v '^ *+' conftest.er1 >conftest.err 11304 rm -f conftest.er1 11305 cat conftest.err >&5 11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11307 (exit $ac_status); } && { 11308 test -z "$ac_c_werror_flag" || 11309 test ! -s conftest.err 11310 } && test -s conftest.$ac_objext; then 11311 cat >conftest.$ac_ext <<_ACEOF 11312/* confdefs.h. */ 11313_ACEOF 11314cat confdefs.h >>conftest.$ac_ext 11315cat >>conftest.$ac_ext <<_ACEOF 11316/* end confdefs.h. */ 11317$ac_includes_default 11318int 11319main () 11320{ 11321if (sizeof ((int64_t))) 11322 return 0; 11323 ; 11324 return 0; 11325} 11326_ACEOF 11327rm -f conftest.$ac_objext 11328if { (ac_try="$ac_compile" 11329case "(($ac_try" in 11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11331 *) ac_try_echo=$ac_try;; 11332esac 11333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11334$as_echo "$ac_try_echo") >&5 11335 (eval "$ac_compile") 2>conftest.er1 11336 ac_status=$? 11337 grep -v '^ *+' conftest.er1 >conftest.err 11338 rm -f conftest.er1 11339 cat conftest.err >&5 11340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11341 (exit $ac_status); } && { 11342 test -z "$ac_c_werror_flag" || 11343 test ! -s conftest.err 11344 } && test -s conftest.$ac_objext; then 11345 : 11346else 11347 $as_echo "$as_me: failed program was:" >&5 11348sed 's/^/| /' conftest.$ac_ext >&5 11349 11350 ac_cv_type_int64_t=yes 11351fi 11352 11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11354else 11355 $as_echo "$as_me: failed program was:" >&5 11356sed 's/^/| /' conftest.$ac_ext >&5 11357 11358 11359fi 11360 11361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11362fi 11363{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11364$as_echo "$ac_cv_type_int64_t" >&6; } 11365if test $ac_cv_type_int64_t = yes; then 11366 11367cat >>confdefs.h <<_ACEOF 11368#define HAVE_INT64_T 1 11369_ACEOF 11370 11371 11372fi 11373{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 11374$as_echo_n "checking for intptr_t... " >&6; } 11375if test "${ac_cv_type_intptr_t+set}" = set; then 11376 $as_echo_n "(cached) " >&6 11377else 11378 ac_cv_type_intptr_t=no 11379cat >conftest.$ac_ext <<_ACEOF 11380/* confdefs.h. */ 11381_ACEOF 11382cat confdefs.h >>conftest.$ac_ext 11383cat >>conftest.$ac_ext <<_ACEOF 11384/* end confdefs.h. */ 11385$ac_includes_default 11386int 11387main () 11388{ 11389if (sizeof (intptr_t)) 11390 return 0; 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395rm -f conftest.$ac_objext 11396if { (ac_try="$ac_compile" 11397case "(($ac_try" in 11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11399 *) ac_try_echo=$ac_try;; 11400esac 11401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11402$as_echo "$ac_try_echo") >&5 11403 (eval "$ac_compile") 2>conftest.er1 11404 ac_status=$? 11405 grep -v '^ *+' conftest.er1 >conftest.err 11406 rm -f conftest.er1 11407 cat conftest.err >&5 11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); } && { 11410 test -z "$ac_c_werror_flag" || 11411 test ! -s conftest.err 11412 } && test -s conftest.$ac_objext; then 11413 cat >conftest.$ac_ext <<_ACEOF 11414/* confdefs.h. */ 11415_ACEOF 11416cat confdefs.h >>conftest.$ac_ext 11417cat >>conftest.$ac_ext <<_ACEOF 11418/* end confdefs.h. */ 11419$ac_includes_default 11420int 11421main () 11422{ 11423if (sizeof ((intptr_t))) 11424 return 0; 11425 ; 11426 return 0; 11427} 11428_ACEOF 11429rm -f conftest.$ac_objext 11430if { (ac_try="$ac_compile" 11431case "(($ac_try" in 11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11433 *) ac_try_echo=$ac_try;; 11434esac 11435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11436$as_echo "$ac_try_echo") >&5 11437 (eval "$ac_compile") 2>conftest.er1 11438 ac_status=$? 11439 grep -v '^ *+' conftest.er1 >conftest.err 11440 rm -f conftest.er1 11441 cat conftest.err >&5 11442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11443 (exit $ac_status); } && { 11444 test -z "$ac_c_werror_flag" || 11445 test ! -s conftest.err 11446 } && test -s conftest.$ac_objext; then 11447 : 11448else 11449 $as_echo "$as_me: failed program was:" >&5 11450sed 's/^/| /' conftest.$ac_ext >&5 11451 11452 ac_cv_type_intptr_t=yes 11453fi 11454 11455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11456else 11457 $as_echo "$as_me: failed program was:" >&5 11458sed 's/^/| /' conftest.$ac_ext >&5 11459 11460 11461fi 11462 11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11464fi 11465{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 11466$as_echo "$ac_cv_type_intptr_t" >&6; } 11467if test $ac_cv_type_intptr_t = yes; then 11468 11469cat >>confdefs.h <<_ACEOF 11470#define HAVE_INTPTR_T 1 11471_ACEOF 11472 11473 11474fi 11475{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 11476$as_echo_n "checking for uint8_t... " >&6; } 11477if test "${ac_cv_type_uint8_t+set}" = set; then 11478 $as_echo_n "(cached) " >&6 11479else 11480 ac_cv_type_uint8_t=no 11481cat >conftest.$ac_ext <<_ACEOF 11482/* confdefs.h. */ 11483_ACEOF 11484cat confdefs.h >>conftest.$ac_ext 11485cat >>conftest.$ac_ext <<_ACEOF 11486/* end confdefs.h. */ 11487$ac_includes_default 11488int 11489main () 11490{ 11491if (sizeof (uint8_t)) 11492 return 0; 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497rm -f conftest.$ac_objext 11498if { (ac_try="$ac_compile" 11499case "(($ac_try" in 11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11501 *) ac_try_echo=$ac_try;; 11502esac 11503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11504$as_echo "$ac_try_echo") >&5 11505 (eval "$ac_compile") 2>conftest.er1 11506 ac_status=$? 11507 grep -v '^ *+' conftest.er1 >conftest.err 11508 rm -f conftest.er1 11509 cat conftest.err >&5 11510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11511 (exit $ac_status); } && { 11512 test -z "$ac_c_werror_flag" || 11513 test ! -s conftest.err 11514 } && test -s conftest.$ac_objext; then 11515 cat >conftest.$ac_ext <<_ACEOF 11516/* confdefs.h. */ 11517_ACEOF 11518cat confdefs.h >>conftest.$ac_ext 11519cat >>conftest.$ac_ext <<_ACEOF 11520/* end confdefs.h. */ 11521$ac_includes_default 11522int 11523main () 11524{ 11525if (sizeof ((uint8_t))) 11526 return 0; 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531rm -f conftest.$ac_objext 11532if { (ac_try="$ac_compile" 11533case "(($ac_try" in 11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11535 *) ac_try_echo=$ac_try;; 11536esac 11537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11538$as_echo "$ac_try_echo") >&5 11539 (eval "$ac_compile") 2>conftest.er1 11540 ac_status=$? 11541 grep -v '^ *+' conftest.er1 >conftest.err 11542 rm -f conftest.er1 11543 cat conftest.err >&5 11544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11545 (exit $ac_status); } && { 11546 test -z "$ac_c_werror_flag" || 11547 test ! -s conftest.err 11548 } && test -s conftest.$ac_objext; then 11549 : 11550else 11551 $as_echo "$as_me: failed program was:" >&5 11552sed 's/^/| /' conftest.$ac_ext >&5 11553 11554 ac_cv_type_uint8_t=yes 11555fi 11556 11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11558else 11559 $as_echo "$as_me: failed program was:" >&5 11560sed 's/^/| /' conftest.$ac_ext >&5 11561 11562 11563fi 11564 11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11566fi 11567{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11568$as_echo "$ac_cv_type_uint8_t" >&6; } 11569if test $ac_cv_type_uint8_t = yes; then 11570 11571cat >>confdefs.h <<_ACEOF 11572#define HAVE_UINT8_T 1 11573_ACEOF 11574 11575 11576fi 11577{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 11578$as_echo_n "checking for uint16_t... " >&6; } 11579if test "${ac_cv_type_uint16_t+set}" = set; then 11580 $as_echo_n "(cached) " >&6 11581else 11582 ac_cv_type_uint16_t=no 11583cat >conftest.$ac_ext <<_ACEOF 11584/* confdefs.h. */ 11585_ACEOF 11586cat confdefs.h >>conftest.$ac_ext 11587cat >>conftest.$ac_ext <<_ACEOF 11588/* end confdefs.h. */ 11589$ac_includes_default 11590int 11591main () 11592{ 11593if (sizeof (uint16_t)) 11594 return 0; 11595 ; 11596 return 0; 11597} 11598_ACEOF 11599rm -f conftest.$ac_objext 11600if { (ac_try="$ac_compile" 11601case "(($ac_try" in 11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11603 *) ac_try_echo=$ac_try;; 11604esac 11605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11606$as_echo "$ac_try_echo") >&5 11607 (eval "$ac_compile") 2>conftest.er1 11608 ac_status=$? 11609 grep -v '^ *+' conftest.er1 >conftest.err 11610 rm -f conftest.er1 11611 cat conftest.err >&5 11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11613 (exit $ac_status); } && { 11614 test -z "$ac_c_werror_flag" || 11615 test ! -s conftest.err 11616 } && test -s conftest.$ac_objext; then 11617 cat >conftest.$ac_ext <<_ACEOF 11618/* confdefs.h. */ 11619_ACEOF 11620cat confdefs.h >>conftest.$ac_ext 11621cat >>conftest.$ac_ext <<_ACEOF 11622/* end confdefs.h. */ 11623$ac_includes_default 11624int 11625main () 11626{ 11627if (sizeof ((uint16_t))) 11628 return 0; 11629 ; 11630 return 0; 11631} 11632_ACEOF 11633rm -f conftest.$ac_objext 11634if { (ac_try="$ac_compile" 11635case "(($ac_try" in 11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11637 *) ac_try_echo=$ac_try;; 11638esac 11639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11640$as_echo "$ac_try_echo") >&5 11641 (eval "$ac_compile") 2>conftest.er1 11642 ac_status=$? 11643 grep -v '^ *+' conftest.er1 >conftest.err 11644 rm -f conftest.er1 11645 cat conftest.err >&5 11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11647 (exit $ac_status); } && { 11648 test -z "$ac_c_werror_flag" || 11649 test ! -s conftest.err 11650 } && test -s conftest.$ac_objext; then 11651 : 11652else 11653 $as_echo "$as_me: failed program was:" >&5 11654sed 's/^/| /' conftest.$ac_ext >&5 11655 11656 ac_cv_type_uint16_t=yes 11657fi 11658 11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11660else 11661 $as_echo "$as_me: failed program was:" >&5 11662sed 's/^/| /' conftest.$ac_ext >&5 11663 11664 11665fi 11666 11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11668fi 11669{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11670$as_echo "$ac_cv_type_uint16_t" >&6; } 11671if test $ac_cv_type_uint16_t = yes; then 11672 11673cat >>confdefs.h <<_ACEOF 11674#define HAVE_UINT16_T 1 11675_ACEOF 11676 11677 11678fi 11679{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 11680$as_echo_n "checking for uint32_t... " >&6; } 11681if test "${ac_cv_type_uint32_t+set}" = set; then 11682 $as_echo_n "(cached) " >&6 11683else 11684 ac_cv_type_uint32_t=no 11685cat >conftest.$ac_ext <<_ACEOF 11686/* confdefs.h. */ 11687_ACEOF 11688cat confdefs.h >>conftest.$ac_ext 11689cat >>conftest.$ac_ext <<_ACEOF 11690/* end confdefs.h. */ 11691$ac_includes_default 11692int 11693main () 11694{ 11695if (sizeof (uint32_t)) 11696 return 0; 11697 ; 11698 return 0; 11699} 11700_ACEOF 11701rm -f conftest.$ac_objext 11702if { (ac_try="$ac_compile" 11703case "(($ac_try" in 11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11705 *) ac_try_echo=$ac_try;; 11706esac 11707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11708$as_echo "$ac_try_echo") >&5 11709 (eval "$ac_compile") 2>conftest.er1 11710 ac_status=$? 11711 grep -v '^ *+' conftest.er1 >conftest.err 11712 rm -f conftest.er1 11713 cat conftest.err >&5 11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11715 (exit $ac_status); } && { 11716 test -z "$ac_c_werror_flag" || 11717 test ! -s conftest.err 11718 } && test -s conftest.$ac_objext; then 11719 cat >conftest.$ac_ext <<_ACEOF 11720/* confdefs.h. */ 11721_ACEOF 11722cat confdefs.h >>conftest.$ac_ext 11723cat >>conftest.$ac_ext <<_ACEOF 11724/* end confdefs.h. */ 11725$ac_includes_default 11726int 11727main () 11728{ 11729if (sizeof ((uint32_t))) 11730 return 0; 11731 ; 11732 return 0; 11733} 11734_ACEOF 11735rm -f conftest.$ac_objext 11736if { (ac_try="$ac_compile" 11737case "(($ac_try" in 11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11739 *) ac_try_echo=$ac_try;; 11740esac 11741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11742$as_echo "$ac_try_echo") >&5 11743 (eval "$ac_compile") 2>conftest.er1 11744 ac_status=$? 11745 grep -v '^ *+' conftest.er1 >conftest.err 11746 rm -f conftest.er1 11747 cat conftest.err >&5 11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11749 (exit $ac_status); } && { 11750 test -z "$ac_c_werror_flag" || 11751 test ! -s conftest.err 11752 } && test -s conftest.$ac_objext; then 11753 : 11754else 11755 $as_echo "$as_me: failed program was:" >&5 11756sed 's/^/| /' conftest.$ac_ext >&5 11757 11758 ac_cv_type_uint32_t=yes 11759fi 11760 11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11762else 11763 $as_echo "$as_me: failed program was:" >&5 11764sed 's/^/| /' conftest.$ac_ext >&5 11765 11766 11767fi 11768 11769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11770fi 11771{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11772$as_echo "$ac_cv_type_uint32_t" >&6; } 11773if test $ac_cv_type_uint32_t = yes; then 11774 11775cat >>confdefs.h <<_ACEOF 11776#define HAVE_UINT32_T 1 11777_ACEOF 11778 11779 11780fi 11781{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 11782$as_echo_n "checking for uint64_t... " >&6; } 11783if test "${ac_cv_type_uint64_t+set}" = set; then 11784 $as_echo_n "(cached) " >&6 11785else 11786 ac_cv_type_uint64_t=no 11787cat >conftest.$ac_ext <<_ACEOF 11788/* confdefs.h. */ 11789_ACEOF 11790cat confdefs.h >>conftest.$ac_ext 11791cat >>conftest.$ac_ext <<_ACEOF 11792/* end confdefs.h. */ 11793$ac_includes_default 11794int 11795main () 11796{ 11797if (sizeof (uint64_t)) 11798 return 0; 11799 ; 11800 return 0; 11801} 11802_ACEOF 11803rm -f conftest.$ac_objext 11804if { (ac_try="$ac_compile" 11805case "(($ac_try" in 11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11807 *) ac_try_echo=$ac_try;; 11808esac 11809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11810$as_echo "$ac_try_echo") >&5 11811 (eval "$ac_compile") 2>conftest.er1 11812 ac_status=$? 11813 grep -v '^ *+' conftest.er1 >conftest.err 11814 rm -f conftest.er1 11815 cat conftest.err >&5 11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11817 (exit $ac_status); } && { 11818 test -z "$ac_c_werror_flag" || 11819 test ! -s conftest.err 11820 } && test -s conftest.$ac_objext; then 11821 cat >conftest.$ac_ext <<_ACEOF 11822/* confdefs.h. */ 11823_ACEOF 11824cat confdefs.h >>conftest.$ac_ext 11825cat >>conftest.$ac_ext <<_ACEOF 11826/* end confdefs.h. */ 11827$ac_includes_default 11828int 11829main () 11830{ 11831if (sizeof ((uint64_t))) 11832 return 0; 11833 ; 11834 return 0; 11835} 11836_ACEOF 11837rm -f conftest.$ac_objext 11838if { (ac_try="$ac_compile" 11839case "(($ac_try" in 11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11841 *) ac_try_echo=$ac_try;; 11842esac 11843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11844$as_echo "$ac_try_echo") >&5 11845 (eval "$ac_compile") 2>conftest.er1 11846 ac_status=$? 11847 grep -v '^ *+' conftest.er1 >conftest.err 11848 rm -f conftest.er1 11849 cat conftest.err >&5 11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11851 (exit $ac_status); } && { 11852 test -z "$ac_c_werror_flag" || 11853 test ! -s conftest.err 11854 } && test -s conftest.$ac_objext; then 11855 : 11856else 11857 $as_echo "$as_me: failed program was:" >&5 11858sed 's/^/| /' conftest.$ac_ext >&5 11859 11860 ac_cv_type_uint64_t=yes 11861fi 11862 11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11864else 11865 $as_echo "$as_me: failed program was:" >&5 11866sed 's/^/| /' conftest.$ac_ext >&5 11867 11868 11869fi 11870 11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11872fi 11873{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 11874$as_echo "$ac_cv_type_uint64_t" >&6; } 11875if test $ac_cv_type_uint64_t = yes; then 11876 11877cat >>confdefs.h <<_ACEOF 11878#define HAVE_UINT64_T 1 11879_ACEOF 11880 11881 11882fi 11883{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 11884$as_echo_n "checking for uintptr_t... " >&6; } 11885if test "${ac_cv_type_uintptr_t+set}" = set; then 11886 $as_echo_n "(cached) " >&6 11887else 11888 ac_cv_type_uintptr_t=no 11889cat >conftest.$ac_ext <<_ACEOF 11890/* confdefs.h. */ 11891_ACEOF 11892cat confdefs.h >>conftest.$ac_ext 11893cat >>conftest.$ac_ext <<_ACEOF 11894/* end confdefs.h. */ 11895$ac_includes_default 11896int 11897main () 11898{ 11899if (sizeof (uintptr_t)) 11900 return 0; 11901 ; 11902 return 0; 11903} 11904_ACEOF 11905rm -f conftest.$ac_objext 11906if { (ac_try="$ac_compile" 11907case "(($ac_try" in 11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11909 *) ac_try_echo=$ac_try;; 11910esac 11911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11912$as_echo "$ac_try_echo") >&5 11913 (eval "$ac_compile") 2>conftest.er1 11914 ac_status=$? 11915 grep -v '^ *+' conftest.er1 >conftest.err 11916 rm -f conftest.er1 11917 cat conftest.err >&5 11918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11919 (exit $ac_status); } && { 11920 test -z "$ac_c_werror_flag" || 11921 test ! -s conftest.err 11922 } && test -s conftest.$ac_objext; then 11923 cat >conftest.$ac_ext <<_ACEOF 11924/* confdefs.h. */ 11925_ACEOF 11926cat confdefs.h >>conftest.$ac_ext 11927cat >>conftest.$ac_ext <<_ACEOF 11928/* end confdefs.h. */ 11929$ac_includes_default 11930int 11931main () 11932{ 11933if (sizeof ((uintptr_t))) 11934 return 0; 11935 ; 11936 return 0; 11937} 11938_ACEOF 11939rm -f conftest.$ac_objext 11940if { (ac_try="$ac_compile" 11941case "(($ac_try" in 11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11943 *) ac_try_echo=$ac_try;; 11944esac 11945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11946$as_echo "$ac_try_echo") >&5 11947 (eval "$ac_compile") 2>conftest.er1 11948 ac_status=$? 11949 grep -v '^ *+' conftest.er1 >conftest.err 11950 rm -f conftest.er1 11951 cat conftest.err >&5 11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11953 (exit $ac_status); } && { 11954 test -z "$ac_c_werror_flag" || 11955 test ! -s conftest.err 11956 } && test -s conftest.$ac_objext; then 11957 : 11958else 11959 $as_echo "$as_me: failed program was:" >&5 11960sed 's/^/| /' conftest.$ac_ext >&5 11961 11962 ac_cv_type_uintptr_t=yes 11963fi 11964 11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11966else 11967 $as_echo "$as_me: failed program was:" >&5 11968sed 's/^/| /' conftest.$ac_ext >&5 11969 11970 11971fi 11972 11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11974fi 11975{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 11976$as_echo "$ac_cv_type_uintptr_t" >&6; } 11977if test $ac_cv_type_uintptr_t = yes; then 11978 11979cat >>confdefs.h <<_ACEOF 11980#define HAVE_UINTPTR_T 1 11981_ACEOF 11982 11983 11984fi 11985 11986 11987######### 11988# Check for needed/wanted headers 11989 11990 11991 11992 11993 11994for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 11995do 11996as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11999$as_echo_n "checking for $ac_header... " >&6; } 12000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12001 $as_echo_n "(cached) " >&6 12002fi 12003ac_res=`eval 'as_val=${'$as_ac_Header'} 12004 $as_echo "$as_val"'` 12005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12006$as_echo "$ac_res" >&6; } 12007else 12008 # Is the header compilable? 12009{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12010$as_echo_n "checking $ac_header usability... " >&6; } 12011cat >conftest.$ac_ext <<_ACEOF 12012/* confdefs.h. */ 12013_ACEOF 12014cat confdefs.h >>conftest.$ac_ext 12015cat >>conftest.$ac_ext <<_ACEOF 12016/* end confdefs.h. */ 12017$ac_includes_default 12018#include <$ac_header> 12019_ACEOF 12020rm -f conftest.$ac_objext 12021if { (ac_try="$ac_compile" 12022case "(($ac_try" in 12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12024 *) ac_try_echo=$ac_try;; 12025esac 12026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12027$as_echo "$ac_try_echo") >&5 12028 (eval "$ac_compile") 2>conftest.er1 12029 ac_status=$? 12030 grep -v '^ *+' conftest.er1 >conftest.err 12031 rm -f conftest.er1 12032 cat conftest.err >&5 12033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12034 (exit $ac_status); } && { 12035 test -z "$ac_c_werror_flag" || 12036 test ! -s conftest.err 12037 } && test -s conftest.$ac_objext; then 12038 ac_header_compiler=yes 12039else 12040 $as_echo "$as_me: failed program was:" >&5 12041sed 's/^/| /' conftest.$ac_ext >&5 12042 12043 ac_header_compiler=no 12044fi 12045 12046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12047{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12048$as_echo "$ac_header_compiler" >&6; } 12049 12050# Is the header present? 12051{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12052$as_echo_n "checking $ac_header presence... " >&6; } 12053cat >conftest.$ac_ext <<_ACEOF 12054/* confdefs.h. */ 12055_ACEOF 12056cat confdefs.h >>conftest.$ac_ext 12057cat >>conftest.$ac_ext <<_ACEOF 12058/* end confdefs.h. */ 12059#include <$ac_header> 12060_ACEOF 12061if { (ac_try="$ac_cpp conftest.$ac_ext" 12062case "(($ac_try" in 12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12064 *) ac_try_echo=$ac_try;; 12065esac 12066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12067$as_echo "$ac_try_echo") >&5 12068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12069 ac_status=$? 12070 grep -v '^ *+' conftest.er1 >conftest.err 12071 rm -f conftest.er1 12072 cat conftest.err >&5 12073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12074 (exit $ac_status); } >/dev/null && { 12075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12076 test ! -s conftest.err 12077 }; then 12078 ac_header_preproc=yes 12079else 12080 $as_echo "$as_me: failed program was:" >&5 12081sed 's/^/| /' conftest.$ac_ext >&5 12082 12083 ac_header_preproc=no 12084fi 12085 12086rm -f conftest.err conftest.$ac_ext 12087{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12088$as_echo "$ac_header_preproc" >&6; } 12089 12090# So? What about this header? 12091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12092 yes:no: ) 12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12094$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12096$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12097 ac_header_preproc=yes 12098 ;; 12099 no:yes:* ) 12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12101$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12103$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12105$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12107$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12109$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12111$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12112 12113 ;; 12114esac 12115{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12116$as_echo_n "checking for $ac_header... " >&6; } 12117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12118 $as_echo_n "(cached) " >&6 12119else 12120 eval "$as_ac_Header=\$ac_header_preproc" 12121fi 12122ac_res=`eval 'as_val=${'$as_ac_Header'} 12123 $as_echo "$as_val"'` 12124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12125$as_echo "$ac_res" >&6; } 12126 12127fi 12128if test `eval 'as_val=${'$as_ac_Header'} 12129 $as_echo "$as_val"'` = yes; then 12130 cat >>confdefs.h <<_ACEOF 12131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12132_ACEOF 12133 12134fi 12135 12136done 12137 12138 12139######### 12140# Figure out whether or not we have these functions 12141# 12142 12143 12144 12145 12146 12147 12148 12149for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size 12150do 12151as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12152{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12153$as_echo_n "checking for $ac_func... " >&6; } 12154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12155 $as_echo_n "(cached) " >&6 12156else 12157 cat >conftest.$ac_ext <<_ACEOF 12158/* confdefs.h. */ 12159_ACEOF 12160cat confdefs.h >>conftest.$ac_ext 12161cat >>conftest.$ac_ext <<_ACEOF 12162/* end confdefs.h. */ 12163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12164 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12165#define $ac_func innocuous_$ac_func 12166 12167/* System header to define __stub macros and hopefully few prototypes, 12168 which can conflict with char $ac_func (); below. 12169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12170 <limits.h> exists even on freestanding compilers. */ 12171 12172#ifdef __STDC__ 12173# include <limits.h> 12174#else 12175# include <assert.h> 12176#endif 12177 12178#undef $ac_func 12179 12180/* Override any GCC internal prototype to avoid an error. 12181 Use char because int might match the return type of a GCC 12182 builtin and then its argument prototype would still apply. */ 12183#ifdef __cplusplus 12184extern "C" 12185#endif 12186char $ac_func (); 12187/* The GNU C library defines this for functions which it implements 12188 to always fail with ENOSYS. Some functions are actually named 12189 something starting with __ and the normal name is an alias. */ 12190#if defined __stub_$ac_func || defined __stub___$ac_func 12191choke me 12192#endif 12193 12194int 12195main () 12196{ 12197return $ac_func (); 12198 ; 12199 return 0; 12200} 12201_ACEOF 12202rm -f conftest.$ac_objext conftest$ac_exeext 12203if { (ac_try="$ac_link" 12204case "(($ac_try" in 12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12206 *) ac_try_echo=$ac_try;; 12207esac 12208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12209$as_echo "$ac_try_echo") >&5 12210 (eval "$ac_link") 2>conftest.er1 12211 ac_status=$? 12212 grep -v '^ *+' conftest.er1 >conftest.err 12213 rm -f conftest.er1 12214 cat conftest.err >&5 12215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12216 (exit $ac_status); } && { 12217 test -z "$ac_c_werror_flag" || 12218 test ! -s conftest.err 12219 } && test -s conftest$ac_exeext && { 12220 test "$cross_compiling" = yes || 12221 $as_test_x conftest$ac_exeext 12222 }; then 12223 eval "$as_ac_var=yes" 12224else 12225 $as_echo "$as_me: failed program was:" >&5 12226sed 's/^/| /' conftest.$ac_ext >&5 12227 12228 eval "$as_ac_var=no" 12229fi 12230 12231rm -rf conftest.dSYM 12232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12233 conftest$ac_exeext conftest.$ac_ext 12234fi 12235ac_res=`eval 'as_val=${'$as_ac_var'} 12236 $as_echo "$as_val"'` 12237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12238$as_echo "$ac_res" >&6; } 12239if test `eval 'as_val=${'$as_ac_var'} 12240 $as_echo "$as_val"'` = yes; then 12241 cat >>confdefs.h <<_ACEOF 12242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12243_ACEOF 12244 12245fi 12246done 12247 12248 12249######### 12250# By default, we use the amalgamation (this may be changed below...) 12251# 12252USE_AMALGAMATION=1 12253 12254######### 12255# See whether we can run specific tclsh versions known to work well; 12256# if not, then we fall back to plain tclsh. 12257# TODO: try other versions before falling back? 12258# 12259for ac_prog in tclsh8.6 tclsh8.5 tclsh 12260do 12261 # Extract the first word of "$ac_prog", so it can be a program name with args. 12262set dummy $ac_prog; ac_word=$2 12263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12264$as_echo_n "checking for $ac_word... " >&6; } 12265if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then 12266 $as_echo_n "(cached) " >&6 12267else 12268 if test -n "$TCLSH_CMD"; then 12269 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 12270else 12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12272for as_dir in $PATH 12273do 12274 IFS=$as_save_IFS 12275 test -z "$as_dir" && as_dir=. 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12278 ac_cv_prog_TCLSH_CMD="$ac_prog" 12279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12280 break 2 12281 fi 12282done 12283done 12284IFS=$as_save_IFS 12285 12286fi 12287fi 12288TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 12289if test -n "$TCLSH_CMD"; then 12290 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 12291$as_echo "$TCLSH_CMD" >&6; } 12292else 12293 { $as_echo "$as_me:$LINENO: result: no" >&5 12294$as_echo "no" >&6; } 12295fi 12296 12297 12298 test -n "$TCLSH_CMD" && break 12299done 12300test -n "$TCLSH_CMD" || TCLSH_CMD="none" 12301 12302if test "$TCLSH_CMD" = "none"; then 12303 # If we can't find a local tclsh, then building the amalgamation will fail. 12304 # We act as though --disable-amalgamation has been used. 12305 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 12306 USE_AMALGAMATION=0 12307 TCLSH_CMD="tclsh" 12308fi 12309 12310 12311 12312if test "x${TCLLIBDIR+set}" != "xset" ; then 12313 TCLLIBDIR='$(libdir)' 12314 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 12315 TCLLIBDIR=$i 12316 break 12317 done 12318 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 12319fi 12320 12321 12322######### 12323# Set up an appropriate program prefix 12324# 12325if test "$program_prefix" = "NONE"; then 12326 program_prefix="" 12327fi 12328 12329 12330VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 12331{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5 12332$as_echo "$as_me: Version set to $VERSION" >&6;} 12333 12334RELEASE=`cat $srcdir/VERSION` 12335{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5 12336$as_echo "$as_me: Release set to $RELEASE" >&6;} 12337 12338VERSION_NUMBER=`cat $srcdir/VERSION \ 12339 | sed 's/[^0-9]/ /g' \ 12340 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 12341{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5 12342$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} 12343 12344 12345######### 12346# Check to see if the --with-hints=FILE option is used. If there is none, 12347# then check for a files named "$host.hints" and ../$hosts.hints where 12348# $host is the hostname of the build system. If still no hints are 12349# found, try looking in $system.hints and ../$system.hints where 12350# $system is the result of uname -s. 12351# 12352 12353# Check whether --with-hints was given. 12354if test "${with_hints+set}" = set; then 12355 withval=$with_hints; hints=$withval 12356fi 12357 12358if test "$hints" = ""; then 12359 host=`hostname | sed 's/\..*//'` 12360 if test -r $host.hints; then 12361 hints=$host.hints 12362 else 12363 if test -r ../$host.hints; then 12364 hints=../$host.hints 12365 fi 12366 fi 12367fi 12368if test "$hints" = ""; then 12369 sys=`uname -s` 12370 if test -r $sys.hints; then 12371 hints=$sys.hints 12372 else 12373 if test -r ../$sys.hints; then 12374 hints=../$sys.hints 12375 fi 12376 fi 12377fi 12378if test "$hints" != ""; then 12379 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5 12380$as_echo "reading hints from $hints" >&6; } 12381 . $hints 12382fi 12383 12384######### 12385# Locate a compiler for the build machine. This compiler should 12386# generate command-line programs that run on the build machine. 12387# 12388if test x"$cross_compiling" = xno; then 12389 BUILD_CC=$CC 12390 BUILD_CFLAGS=$CFLAGS 12391else 12392 if test "${BUILD_CC+set}" != set; then 12393 for ac_prog in gcc cc cl 12394do 12395 # Extract the first word of "$ac_prog", so it can be a program name with args. 12396set dummy $ac_prog; ac_word=$2 12397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12398$as_echo_n "checking for $ac_word... " >&6; } 12399if test "${ac_cv_prog_BUILD_CC+set}" = set; then 12400 $as_echo_n "(cached) " >&6 12401else 12402 if test -n "$BUILD_CC"; then 12403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 12404else 12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12406for as_dir in $PATH 12407do 12408 IFS=$as_save_IFS 12409 test -z "$as_dir" && as_dir=. 12410 for ac_exec_ext in '' $ac_executable_extensions; do 12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12412 ac_cv_prog_BUILD_CC="$ac_prog" 12413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12414 break 2 12415 fi 12416done 12417done 12418IFS=$as_save_IFS 12419 12420fi 12421fi 12422BUILD_CC=$ac_cv_prog_BUILD_CC 12423if test -n "$BUILD_CC"; then 12424 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 12425$as_echo "$BUILD_CC" >&6; } 12426else 12427 { $as_echo "$as_me:$LINENO: result: no" >&5 12428$as_echo "no" >&6; } 12429fi 12430 12431 12432 test -n "$BUILD_CC" && break 12433done 12434 12435 fi 12436 if test "${BUILD_CFLAGS+set}" != set; then 12437 BUILD_CFLAGS="-g" 12438 fi 12439fi 12440 12441 12442########## 12443# Do we want to support multithreaded use of sqlite 12444# 12445# Check whether --enable-threadsafe was given. 12446if test "${enable_threadsafe+set}" = set; then 12447 enableval=$enable_threadsafe; 12448else 12449 enable_threadsafe=yes 12450fi 12451 12452{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 12453$as_echo_n "checking whether to support threadsafe operation... " >&6; } 12454if test "$enable_threadsafe" = "no"; then 12455 SQLITE_THREADSAFE=0 12456 { $as_echo "$as_me:$LINENO: result: no" >&5 12457$as_echo "no" >&6; } 12458else 12459 SQLITE_THREADSAFE=1 12460 { $as_echo "$as_me:$LINENO: result: yes" >&5 12461$as_echo "yes" >&6; } 12462fi 12463 12464 12465if test "$SQLITE_THREADSAFE" = "1"; then 12466 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 12467$as_echo_n "checking for library containing pthread_create... " >&6; } 12468if test "${ac_cv_search_pthread_create+set}" = set; then 12469 $as_echo_n "(cached) " >&6 12470else 12471 ac_func_search_save_LIBS=$LIBS 12472cat >conftest.$ac_ext <<_ACEOF 12473/* confdefs.h. */ 12474_ACEOF 12475cat confdefs.h >>conftest.$ac_ext 12476cat >>conftest.$ac_ext <<_ACEOF 12477/* end confdefs.h. */ 12478 12479/* Override any GCC internal prototype to avoid an error. 12480 Use char because int might match the return type of a GCC 12481 builtin and then its argument prototype would still apply. */ 12482#ifdef __cplusplus 12483extern "C" 12484#endif 12485char pthread_create (); 12486int 12487main () 12488{ 12489return pthread_create (); 12490 ; 12491 return 0; 12492} 12493_ACEOF 12494for ac_lib in '' pthread; do 12495 if test -z "$ac_lib"; then 12496 ac_res="none required" 12497 else 12498 ac_res=-l$ac_lib 12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12500 fi 12501 rm -f conftest.$ac_objext conftest$ac_exeext 12502if { (ac_try="$ac_link" 12503case "(($ac_try" in 12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12505 *) ac_try_echo=$ac_try;; 12506esac 12507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12508$as_echo "$ac_try_echo") >&5 12509 (eval "$ac_link") 2>conftest.er1 12510 ac_status=$? 12511 grep -v '^ *+' conftest.er1 >conftest.err 12512 rm -f conftest.er1 12513 cat conftest.err >&5 12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12515 (exit $ac_status); } && { 12516 test -z "$ac_c_werror_flag" || 12517 test ! -s conftest.err 12518 } && test -s conftest$ac_exeext && { 12519 test "$cross_compiling" = yes || 12520 $as_test_x conftest$ac_exeext 12521 }; then 12522 ac_cv_search_pthread_create=$ac_res 12523else 12524 $as_echo "$as_me: failed program was:" >&5 12525sed 's/^/| /' conftest.$ac_ext >&5 12526 12527 12528fi 12529 12530rm -rf conftest.dSYM 12531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12532 conftest$ac_exeext 12533 if test "${ac_cv_search_pthread_create+set}" = set; then 12534 break 12535fi 12536done 12537if test "${ac_cv_search_pthread_create+set}" = set; then 12538 : 12539else 12540 ac_cv_search_pthread_create=no 12541fi 12542rm conftest.$ac_ext 12543LIBS=$ac_func_search_save_LIBS 12544fi 12545{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 12546$as_echo "$ac_cv_search_pthread_create" >&6; } 12547ac_res=$ac_cv_search_pthread_create 12548if test "$ac_res" != no; then 12549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12550 12551fi 12552 12553fi 12554 12555########## 12556# Do we want to allow a connection created in one thread to be used 12557# in another thread. This does not work on many Linux systems (ex: RedHat 9) 12558# due to bugs in the threading implementations. This is thus off by default. 12559# 12560# Check whether --enable-cross-thread-connections was given. 12561if test "${enable_cross_thread_connections+set}" = set; then 12562 enableval=$enable_cross_thread_connections; 12563else 12564 enable_xthreadconnect=no 12565fi 12566 12567{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 12568$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; } 12569if test "$enable_xthreadconnect" = "no"; then 12570 XTHREADCONNECT='' 12571 { $as_echo "$as_me:$LINENO: result: no" >&5 12572$as_echo "no" >&6; } 12573else 12574 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' 12575 { $as_echo "$as_me:$LINENO: result: yes" >&5 12576$as_echo "yes" >&6; } 12577fi 12578 12579 12580########## 12581# Do we want to support release 12582# 12583# Check whether --enable-releasemode was given. 12584if test "${enable_releasemode+set}" = set; then 12585 enableval=$enable_releasemode; 12586else 12587 enable_releasemode=no 12588fi 12589 12590{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 12591$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 12592if test "$enable_releasemode" = "no"; then 12593 ALLOWRELEASE="" 12594 { $as_echo "$as_me:$LINENO: result: no" >&5 12595$as_echo "no" >&6; } 12596else 12597 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 12598 { $as_echo "$as_me:$LINENO: result: yes" >&5 12599$as_echo "yes" >&6; } 12600fi 12601 12602 12603########## 12604# Do we want temporary databases in memory 12605# 12606# Check whether --enable-tempstore was given. 12607if test "${enable_tempstore+set}" = set; then 12608 enableval=$enable_tempstore; 12609else 12610 enable_tempstore=no 12611fi 12612 12613{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 12614$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 12615case "$enable_tempstore" in 12616 never ) 12617 TEMP_STORE=0 12618 { $as_echo "$as_me:$LINENO: result: never" >&5 12619$as_echo "never" >&6; } 12620 ;; 12621 no ) 12622 TEMP_STORE=1 12623 { $as_echo "$as_me:$LINENO: result: no" >&5 12624$as_echo "no" >&6; } 12625 ;; 12626 yes ) 12627 TEMP_STORE=2 12628 { $as_echo "$as_me:$LINENO: result: yes" >&5 12629$as_echo "yes" >&6; } 12630 ;; 12631 always ) 12632 TEMP_STORE=3 12633 { $as_echo "$as_me:$LINENO: result: always" >&5 12634$as_echo "always" >&6; } 12635 ;; 12636 * ) 12637 TEMP_STORE=1 12638 { $as_echo "$as_me:$LINENO: result: no" >&5 12639$as_echo "no" >&6; } 12640 ;; 12641esac 12642 12643 12644 12645########### 12646# Lots of things are different if we are compiling for Windows using 12647# the CYGWIN environment. So check for that special case and handle 12648# things accordingly. 12649# 12650{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 12651$as_echo_n "checking if executables have the .exe suffix... " >&6; } 12652if test "$config_BUILD_EXEEXT" = ".exe"; then 12653 CYGWIN=yes 12654 { $as_echo "$as_me:$LINENO: result: yes" >&5 12655$as_echo "yes" >&6; } 12656else 12657 { $as_echo "$as_me:$LINENO: result: unknown" >&5 12658$as_echo "unknown" >&6; } 12659fi 12660if test "$CYGWIN" != "yes"; then 12661 { $as_echo "$as_me:$LINENO: checking host system type" >&5 12662$as_echo_n "checking host system type... " >&6; } 12663if test "${ac_cv_host+set}" = set; then 12664 $as_echo_n "(cached) " >&6 12665else 12666 if test "x$host_alias" = x; then 12667 ac_cv_host=$ac_cv_build 12668else 12669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 12670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 12671$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 12672 { (exit 1); exit 1; }; } 12673fi 12674 12675fi 12676{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 12677$as_echo "$ac_cv_host" >&6; } 12678case $ac_cv_host in 12679*-*-*) ;; 12680*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 12681$as_echo "$as_me: error: invalid value of canonical host" >&2;} 12682 { (exit 1); exit 1; }; };; 12683esac 12684host=$ac_cv_host 12685ac_save_IFS=$IFS; IFS='-' 12686set x $ac_cv_host 12687shift 12688host_cpu=$1 12689host_vendor=$2 12690shift; shift 12691# Remember, the first character of IFS is used to create $*, 12692# except with old shells: 12693host_os=$* 12694IFS=$ac_save_IFS 12695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 12696 12697 12698case $host_os in 12699 *cygwin* ) CYGWIN=yes;; 12700 * ) CYGWIN=no;; 12701esac 12702 12703fi 12704if test "$CYGWIN" = "yes"; then 12705 BUILD_EXEEXT=.exe 12706else 12707 BUILD_EXEEXT=$EXEEXT 12708fi 12709if test x"$cross_compiling" = xno; then 12710 TARGET_EXEEXT=$BUILD_EXEEXT 12711else 12712 TARGET_EXEEXT=$config_TARGET_EXEEXT 12713fi 12714if test "$TARGET_EXEEXT" = ".exe"; then 12715 SQLITE_OS_UNIX=0 12716 SQLITE_OS_WIN=1 12717 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 12718else 12719 SQLITE_OS_UNIX=1 12720 SQLITE_OS_WIN=0 12721 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 12722fi 12723 12724 12725 12726 12727 12728 12729########## 12730# Figure out all the parameters needed to compile against Tcl. 12731# 12732# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 12733# macros in the in the tcl.m4 file of the standard TCL distribution. 12734# Those macros could not be used directly since we have to make some 12735# minor changes to accomodate systems that do not have TCL installed. 12736# 12737# Check whether --enable-tcl was given. 12738if test "${enable_tcl+set}" = set; then 12739 enableval=$enable_tcl; use_tcl=$enableval 12740else 12741 use_tcl=yes 12742fi 12743 12744if test "${use_tcl}" = "yes" ; then 12745 12746# Check whether --with-tcl was given. 12747if test "${with_tcl+set}" = set; then 12748 withval=$with_tcl; with_tclconfig=${withval} 12749fi 12750 12751 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 12752$as_echo_n "checking for Tcl configuration... " >&6; } 12753 if test "${ac_cv_c_tclconfig+set}" = set; then 12754 $as_echo_n "(cached) " >&6 12755else 12756 12757 # First check to see if --with-tcl was specified. 12758 if test x"${with_tclconfig}" != x ; then 12759 if test -f "${with_tclconfig}/tclConfig.sh" ; then 12760 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 12761 else 12762 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 12763$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 12764 { (exit 1); exit 1; }; } 12765 fi 12766 fi 12767 12768 # Start autosearch by asking tclsh 12769 if test x"${ac_cv_c_tclconfig}" = x ; then 12770 if test x"$cross_compiling" = xno; then 12771 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 12772 do 12773 if test -f "$i/tclConfig.sh" ; then 12774 ac_cv_c_tclconfig="$i" 12775 break 12776 fi 12777 done 12778 fi 12779 fi 12780 12781 # then check for a private Tcl installation 12782 if test x"${ac_cv_c_tclconfig}" = x ; then 12783 for i in \ 12784 ../tcl \ 12785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 12787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 12788 ../../tcl \ 12789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 12791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 12792 ../../../tcl \ 12793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 12795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 12796 do 12797 if test -f "$i/unix/tclConfig.sh" ; then 12798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12799 break 12800 fi 12801 done 12802 fi 12803 12804 # check in a few common install locations 12805 if test x"${ac_cv_c_tclconfig}" = x ; then 12806 for i in \ 12807 `ls -d ${libdir} 2>/dev/null` \ 12808 `ls -d /usr/local/lib 2>/dev/null` \ 12809 `ls -d /usr/contrib/lib 2>/dev/null` \ 12810 `ls -d /usr/lib 2>/dev/null` 12811 do 12812 if test -f "$i/tclConfig.sh" ; then 12813 ac_cv_c_tclconfig=`(cd $i; pwd)` 12814 break 12815 fi 12816 done 12817 fi 12818 12819 # check in a few other private locations 12820 if test x"${ac_cv_c_tclconfig}" = x ; then 12821 for i in \ 12822 ${srcdir}/../tcl \ 12823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 12825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 12826 do 12827 if test -f "$i/unix/tclConfig.sh" ; then 12828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12829 break 12830 fi 12831 done 12832 fi 12833 12834fi 12835 12836 12837 if test x"${ac_cv_c_tclconfig}" = x ; then 12838 use_tcl=no 12839 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 12840$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 12841 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 12842$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 12843 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 12844$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 12845 else 12846 TCL_BIN_DIR=${ac_cv_c_tclconfig} 12847 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 12848$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 12849 12850 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 12851$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 12852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 12853 { $as_echo "$as_me:$LINENO: result: loading" >&5 12854$as_echo "loading" >&6; } 12855 . $TCL_BIN_DIR/tclConfig.sh 12856 else 12857 { $as_echo "$as_me:$LINENO: result: file not found" >&5 12858$as_echo "file not found" >&6; } 12859 fi 12860 12861 # 12862 # If the TCL_BIN_DIR is the build directory (not the install directory), 12863 # then set the common variable name to the value of the build variables. 12864 # For example, the variable TCL_LIB_SPEC will be set to the value 12865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 12866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 12867 # installed and uninstalled version of Tcl. 12868 # 12869 12870 if test -f $TCL_BIN_DIR/Makefile ; then 12871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 12872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 12873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 12874 fi 12875 12876 # 12877 # eval is required to do the TCL_DBGX substitution 12878 # 12879 12880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 12881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 12882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 12883 12884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 12885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 12886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 fi 12901fi 12902if test "${use_tcl}" = "no" ; then 12903 HAVE_TCL="" 12904else 12905 HAVE_TCL=1 12906fi 12907 12908 12909########## 12910# Figure out what C libraries are required to compile programs 12911# that use "readline()" library. 12912# 12913TARGET_READLINE_LIBS="" 12914TARGET_READLINE_INC="" 12915TARGET_HAVE_READLINE=0 12916# Check whether --enable-readline was given. 12917if test "${enable_readline+set}" = set; then 12918 enableval=$enable_readline; with_readline=$enableval 12919else 12920 with_readline=auto 12921fi 12922 12923 12924if test x"$with_readline" != xno; then 12925 found="yes" 12926 12927 12928# Check whether --with-readline-lib was given. 12929if test "${with_readline_lib+set}" = set; then 12930 withval=$with_readline_lib; with_readline_lib=$withval 12931else 12932 with_readline_lib="auto" 12933fi 12934 12935 if test "x$with_readline_lib" = xauto; then 12936 save_LIBS="$LIBS" 12937 LIBS="" 12938 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 12939$as_echo_n "checking for library containing tgetent... " >&6; } 12940if test "${ac_cv_search_tgetent+set}" = set; then 12941 $as_echo_n "(cached) " >&6 12942else 12943 ac_func_search_save_LIBS=$LIBS 12944cat >conftest.$ac_ext <<_ACEOF 12945/* confdefs.h. */ 12946_ACEOF 12947cat confdefs.h >>conftest.$ac_ext 12948cat >>conftest.$ac_ext <<_ACEOF 12949/* end confdefs.h. */ 12950 12951/* Override any GCC internal prototype to avoid an error. 12952 Use char because int might match the return type of a GCC 12953 builtin and then its argument prototype would still apply. */ 12954#ifdef __cplusplus 12955extern "C" 12956#endif 12957char tgetent (); 12958int 12959main () 12960{ 12961return tgetent (); 12962 ; 12963 return 0; 12964} 12965_ACEOF 12966for ac_lib in '' readline ncurses curses termcap; do 12967 if test -z "$ac_lib"; then 12968 ac_res="none required" 12969 else 12970 ac_res=-l$ac_lib 12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12972 fi 12973 rm -f conftest.$ac_objext conftest$ac_exeext 12974if { (ac_try="$ac_link" 12975case "(($ac_try" in 12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12977 *) ac_try_echo=$ac_try;; 12978esac 12979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12980$as_echo "$ac_try_echo") >&5 12981 (eval "$ac_link") 2>conftest.er1 12982 ac_status=$? 12983 grep -v '^ *+' conftest.er1 >conftest.err 12984 rm -f conftest.er1 12985 cat conftest.err >&5 12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12987 (exit $ac_status); } && { 12988 test -z "$ac_c_werror_flag" || 12989 test ! -s conftest.err 12990 } && test -s conftest$ac_exeext && { 12991 test "$cross_compiling" = yes || 12992 $as_test_x conftest$ac_exeext 12993 }; then 12994 ac_cv_search_tgetent=$ac_res 12995else 12996 $as_echo "$as_me: failed program was:" >&5 12997sed 's/^/| /' conftest.$ac_ext >&5 12998 12999 13000fi 13001 13002rm -rf conftest.dSYM 13003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13004 conftest$ac_exeext 13005 if test "${ac_cv_search_tgetent+set}" = set; then 13006 break 13007fi 13008done 13009if test "${ac_cv_search_tgetent+set}" = set; then 13010 : 13011else 13012 ac_cv_search_tgetent=no 13013fi 13014rm conftest.$ac_ext 13015LIBS=$ac_func_search_save_LIBS 13016fi 13017{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 13018$as_echo "$ac_cv_search_tgetent" >&6; } 13019ac_res=$ac_cv_search_tgetent 13020if test "$ac_res" != no; then 13021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13022 term_LIBS="$LIBS" 13023else 13024 term_LIBS="" 13025fi 13026 13027 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 13028$as_echo_n "checking for readline in -lreadline... " >&6; } 13029if test "${ac_cv_lib_readline_readline+set}" = set; then 13030 $as_echo_n "(cached) " >&6 13031else 13032 ac_check_lib_save_LIBS=$LIBS 13033LIBS="-lreadline $LIBS" 13034cat >conftest.$ac_ext <<_ACEOF 13035/* confdefs.h. */ 13036_ACEOF 13037cat confdefs.h >>conftest.$ac_ext 13038cat >>conftest.$ac_ext <<_ACEOF 13039/* end confdefs.h. */ 13040 13041/* Override any GCC internal prototype to avoid an error. 13042 Use char because int might match the return type of a GCC 13043 builtin and then its argument prototype would still apply. */ 13044#ifdef __cplusplus 13045extern "C" 13046#endif 13047char readline (); 13048int 13049main () 13050{ 13051return readline (); 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056rm -f conftest.$ac_objext conftest$ac_exeext 13057if { (ac_try="$ac_link" 13058case "(($ac_try" in 13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13060 *) ac_try_echo=$ac_try;; 13061esac 13062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13063$as_echo "$ac_try_echo") >&5 13064 (eval "$ac_link") 2>conftest.er1 13065 ac_status=$? 13066 grep -v '^ *+' conftest.er1 >conftest.err 13067 rm -f conftest.er1 13068 cat conftest.err >&5 13069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13070 (exit $ac_status); } && { 13071 test -z "$ac_c_werror_flag" || 13072 test ! -s conftest.err 13073 } && test -s conftest$ac_exeext && { 13074 test "$cross_compiling" = yes || 13075 $as_test_x conftest$ac_exeext 13076 }; then 13077 ac_cv_lib_readline_readline=yes 13078else 13079 $as_echo "$as_me: failed program was:" >&5 13080sed 's/^/| /' conftest.$ac_ext >&5 13081 13082 ac_cv_lib_readline_readline=no 13083fi 13084 13085rm -rf conftest.dSYM 13086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13087 conftest$ac_exeext conftest.$ac_ext 13088LIBS=$ac_check_lib_save_LIBS 13089fi 13090{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 13091$as_echo "$ac_cv_lib_readline_readline" >&6; } 13092if test $ac_cv_lib_readline_readline = yes; then 13093 TARGET_READLINE_LIBS="-lreadline" 13094else 13095 found="no" 13096fi 13097 13098 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 13099 LIBS="$save_LIBS" 13100 else 13101 TARGET_READLINE_LIBS="$with_readline_lib" 13102 fi 13103 13104 13105# Check whether --with-readline-inc was given. 13106if test "${with_readline_inc+set}" = set; then 13107 withval=$with_readline_inc; with_readline_inc=$withval 13108else 13109 with_readline_inc="auto" 13110fi 13111 13112 if test "x$with_readline_inc" = xauto; then 13113 if test "${ac_cv_header_readline_h+set}" = set; then 13114 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13115$as_echo_n "checking for readline.h... " >&6; } 13116if test "${ac_cv_header_readline_h+set}" = set; then 13117 $as_echo_n "(cached) " >&6 13118fi 13119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13120$as_echo "$ac_cv_header_readline_h" >&6; } 13121else 13122 # Is the header compilable? 13123{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5 13124$as_echo_n "checking readline.h usability... " >&6; } 13125cat >conftest.$ac_ext <<_ACEOF 13126/* confdefs.h. */ 13127_ACEOF 13128cat confdefs.h >>conftest.$ac_ext 13129cat >>conftest.$ac_ext <<_ACEOF 13130/* end confdefs.h. */ 13131$ac_includes_default 13132#include <readline.h> 13133_ACEOF 13134rm -f conftest.$ac_objext 13135if { (ac_try="$ac_compile" 13136case "(($ac_try" in 13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13138 *) ac_try_echo=$ac_try;; 13139esac 13140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13141$as_echo "$ac_try_echo") >&5 13142 (eval "$ac_compile") 2>conftest.er1 13143 ac_status=$? 13144 grep -v '^ *+' conftest.er1 >conftest.err 13145 rm -f conftest.er1 13146 cat conftest.err >&5 13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13148 (exit $ac_status); } && { 13149 test -z "$ac_c_werror_flag" || 13150 test ! -s conftest.err 13151 } && test -s conftest.$ac_objext; then 13152 ac_header_compiler=yes 13153else 13154 $as_echo "$as_me: failed program was:" >&5 13155sed 's/^/| /' conftest.$ac_ext >&5 13156 13157 ac_header_compiler=no 13158fi 13159 13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13162$as_echo "$ac_header_compiler" >&6; } 13163 13164# Is the header present? 13165{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5 13166$as_echo_n "checking readline.h presence... " >&6; } 13167cat >conftest.$ac_ext <<_ACEOF 13168/* confdefs.h. */ 13169_ACEOF 13170cat confdefs.h >>conftest.$ac_ext 13171cat >>conftest.$ac_ext <<_ACEOF 13172/* end confdefs.h. */ 13173#include <readline.h> 13174_ACEOF 13175if { (ac_try="$ac_cpp conftest.$ac_ext" 13176case "(($ac_try" in 13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13178 *) ac_try_echo=$ac_try;; 13179esac 13180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13181$as_echo "$ac_try_echo") >&5 13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13183 ac_status=$? 13184 grep -v '^ *+' conftest.er1 >conftest.err 13185 rm -f conftest.er1 13186 cat conftest.err >&5 13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13188 (exit $ac_status); } >/dev/null && { 13189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13190 test ! -s conftest.err 13191 }; then 13192 ac_header_preproc=yes 13193else 13194 $as_echo "$as_me: failed program was:" >&5 13195sed 's/^/| /' conftest.$ac_ext >&5 13196 13197 ac_header_preproc=no 13198fi 13199 13200rm -f conftest.err conftest.$ac_ext 13201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13202$as_echo "$ac_header_preproc" >&6; } 13203 13204# So? What about this header? 13205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13206 yes:no: ) 13207 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 13208$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13209 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 13210$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 13211 ac_header_preproc=yes 13212 ;; 13213 no:yes:* ) 13214 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 13215$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 13216 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 13217$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 13219$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 13221$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 13222 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 13223$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 13224 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 13225$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 13226 13227 ;; 13228esac 13229{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13230$as_echo_n "checking for readline.h... " >&6; } 13231if test "${ac_cv_header_readline_h+set}" = set; then 13232 $as_echo_n "(cached) " >&6 13233else 13234 ac_cv_header_readline_h=$ac_header_preproc 13235fi 13236{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13237$as_echo "$ac_cv_header_readline_h" >&6; } 13238 13239fi 13240if test $ac_cv_header_readline_h = yes; then 13241 found="yes" 13242else 13243 13244 found="no" 13245 if test "$cross_compiling" != yes; then 13246 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 13247 for subdir in include include/readline; do 13248 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 13249{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 13250$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 13251if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13252 $as_echo_n "(cached) " >&6 13253else 13254 test "$cross_compiling" = yes && 13255 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13256$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13257 { (exit 1); exit 1; }; } 13258if test -r "$dir/$subdir/readline.h"; then 13259 eval "$as_ac_File=yes" 13260else 13261 eval "$as_ac_File=no" 13262fi 13263fi 13264ac_res=`eval 'as_val=${'$as_ac_File'} 13265 $as_echo "$as_val"'` 13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13267$as_echo "$ac_res" >&6; } 13268if test `eval 'as_val=${'$as_ac_File'} 13269 $as_echo "$as_val"'` = yes; then 13270 found=yes 13271fi 13272 13273 if test "$found" = "yes"; then 13274 TARGET_READLINE_INC="-I$dir/$subdir" 13275 break 13276 fi 13277 done 13278 test "$found" = "yes" && break 13279 done 13280 fi 13281 13282fi 13283 13284 13285 else 13286 TARGET_READLINE_INC="$with_readline_inc" 13287 fi 13288 13289 if test x"$found" = xno; then 13290 TARGET_READLINE_LIBS="" 13291 TARGET_READLINE_INC="" 13292 TARGET_HAVE_READLINE=0 13293 else 13294 TARGET_HAVE_READLINE=1 13295 fi 13296fi 13297 13298 13299 13300 13301 13302########## 13303# Figure out what C libraries are required to compile programs 13304# that use "fdatasync()" function. 13305# 13306{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 13307$as_echo_n "checking for library containing fdatasync... " >&6; } 13308if test "${ac_cv_search_fdatasync+set}" = set; then 13309 $as_echo_n "(cached) " >&6 13310else 13311 ac_func_search_save_LIBS=$LIBS 13312cat >conftest.$ac_ext <<_ACEOF 13313/* confdefs.h. */ 13314_ACEOF 13315cat confdefs.h >>conftest.$ac_ext 13316cat >>conftest.$ac_ext <<_ACEOF 13317/* end confdefs.h. */ 13318 13319/* Override any GCC internal prototype to avoid an error. 13320 Use char because int might match the return type of a GCC 13321 builtin and then its argument prototype would still apply. */ 13322#ifdef __cplusplus 13323extern "C" 13324#endif 13325char fdatasync (); 13326int 13327main () 13328{ 13329return fdatasync (); 13330 ; 13331 return 0; 13332} 13333_ACEOF 13334for ac_lib in '' rt; do 13335 if test -z "$ac_lib"; then 13336 ac_res="none required" 13337 else 13338 ac_res=-l$ac_lib 13339 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13340 fi 13341 rm -f conftest.$ac_objext conftest$ac_exeext 13342if { (ac_try="$ac_link" 13343case "(($ac_try" in 13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13345 *) ac_try_echo=$ac_try;; 13346esac 13347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13348$as_echo "$ac_try_echo") >&5 13349 (eval "$ac_link") 2>conftest.er1 13350 ac_status=$? 13351 grep -v '^ *+' conftest.er1 >conftest.err 13352 rm -f conftest.er1 13353 cat conftest.err >&5 13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13355 (exit $ac_status); } && { 13356 test -z "$ac_c_werror_flag" || 13357 test ! -s conftest.err 13358 } && test -s conftest$ac_exeext && { 13359 test "$cross_compiling" = yes || 13360 $as_test_x conftest$ac_exeext 13361 }; then 13362 ac_cv_search_fdatasync=$ac_res 13363else 13364 $as_echo "$as_me: failed program was:" >&5 13365sed 's/^/| /' conftest.$ac_ext >&5 13366 13367 13368fi 13369 13370rm -rf conftest.dSYM 13371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13372 conftest$ac_exeext 13373 if test "${ac_cv_search_fdatasync+set}" = set; then 13374 break 13375fi 13376done 13377if test "${ac_cv_search_fdatasync+set}" = set; then 13378 : 13379else 13380 ac_cv_search_fdatasync=no 13381fi 13382rm conftest.$ac_ext 13383LIBS=$ac_func_search_save_LIBS 13384fi 13385{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 13386$as_echo "$ac_cv_search_fdatasync" >&6; } 13387ac_res=$ac_cv_search_fdatasync 13388if test "$ac_res" != no; then 13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13390 13391fi 13392 13393 13394######### 13395# check for debug enabled 13396# Check whether --enable-debug was given. 13397if test "${enable_debug+set}" = set; then 13398 enableval=$enable_debug; use_debug=$enableval 13399else 13400 use_debug=no 13401fi 13402 13403if test "${use_debug}" = "yes" ; then 13404 TARGET_DEBUG="-DSQLITE_DEBUG=1" 13405else 13406 TARGET_DEBUG="-DNDEBUG" 13407fi 13408 13409 13410######### 13411# See whether we should use the amalgamation to build 13412# Check whether --enable-amalgamation was given. 13413if test "${enable_amalgamation+set}" = set; then 13414 enableval=$enable_amalgamation; use_amalgamation=$enableval 13415else 13416 use_amalgamation=yes 13417fi 13418 13419if test "${use_amalgamation}" != "yes" ; then 13420 USE_AMALGAMATION=0 13421fi 13422 13423 13424######### 13425# See whether we should allow loadable extensions 13426# Check whether --enable-load-extension was given. 13427if test "${enable_load_extension+set}" = set; then 13428 enableval=$enable_load_extension; use_loadextension=$enableval 13429else 13430 use_loadextension=no 13431fi 13432 13433if test "${use_loadextension}" = "yes" ; then 13434 OPT_FEATURE_FLAGS="" 13435 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13436$as_echo_n "checking for library containing dlopen... " >&6; } 13437if test "${ac_cv_search_dlopen+set}" = set; then 13438 $as_echo_n "(cached) " >&6 13439else 13440 ac_func_search_save_LIBS=$LIBS 13441cat >conftest.$ac_ext <<_ACEOF 13442/* confdefs.h. */ 13443_ACEOF 13444cat confdefs.h >>conftest.$ac_ext 13445cat >>conftest.$ac_ext <<_ACEOF 13446/* end confdefs.h. */ 13447 13448/* Override any GCC internal prototype to avoid an error. 13449 Use char because int might match the return type of a GCC 13450 builtin and then its argument prototype would still apply. */ 13451#ifdef __cplusplus 13452extern "C" 13453#endif 13454char dlopen (); 13455int 13456main () 13457{ 13458return dlopen (); 13459 ; 13460 return 0; 13461} 13462_ACEOF 13463for ac_lib in '' dl; do 13464 if test -z "$ac_lib"; then 13465 ac_res="none required" 13466 else 13467 ac_res=-l$ac_lib 13468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13469 fi 13470 rm -f conftest.$ac_objext conftest$ac_exeext 13471if { (ac_try="$ac_link" 13472case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13477$as_echo "$ac_try_echo") >&5 13478 (eval "$ac_link") 2>conftest.er1 13479 ac_status=$? 13480 grep -v '^ *+' conftest.er1 >conftest.err 13481 rm -f conftest.er1 13482 cat conftest.err >&5 13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13484 (exit $ac_status); } && { 13485 test -z "$ac_c_werror_flag" || 13486 test ! -s conftest.err 13487 } && test -s conftest$ac_exeext && { 13488 test "$cross_compiling" = yes || 13489 $as_test_x conftest$ac_exeext 13490 }; then 13491 ac_cv_search_dlopen=$ac_res 13492else 13493 $as_echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 13497fi 13498 13499rm -rf conftest.dSYM 13500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13501 conftest$ac_exeext 13502 if test "${ac_cv_search_dlopen+set}" = set; then 13503 break 13504fi 13505done 13506if test "${ac_cv_search_dlopen+set}" = set; then 13507 : 13508else 13509 ac_cv_search_dlopen=no 13510fi 13511rm conftest.$ac_ext 13512LIBS=$ac_func_search_save_LIBS 13513fi 13514{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13515$as_echo "$ac_cv_search_dlopen" >&6; } 13516ac_res=$ac_cv_search_dlopen 13517if test "$ac_res" != no; then 13518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13519 13520fi 13521 13522else 13523 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 13524fi 13525 13526######### 13527# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter 13528for option in $CFLAGS $CPPFLAGS 13529do 13530 case $option in 13531 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13532 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13533 esac 13534done 13535 13536 13537 13538# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 13539ac_temp_CFLAGS="" 13540for option in $CFLAGS 13541do 13542 case $option in 13543 -DSQLITE_OMIT*) ;; 13544 -DSQLITE_ENABLE*) ;; 13545 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 13546 esac 13547done 13548CFLAGS=$ac_temp_CFLAGS 13549 13550 13551# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 13552ac_temp_CPPFLAGS="" 13553for option in $CPPFLAGS 13554do 13555 case $option in 13556 -DSQLITE_OMIT*) ;; 13557 -DSQLITE_ENABLE*) ;; 13558 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 13559 esac 13560done 13561CPPFLAGS=$ac_temp_CPPFLAGS 13562 13563 13564# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 13565ac_temp_BUILD_CFLAGS="" 13566for option in $BUILD_CFLAGS 13567do 13568 case $option in 13569 -DSQLITE_OMIT*) ;; 13570 -DSQLITE_ENABLE*) ;; 13571 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 13572 esac 13573done 13574BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 13575 13576 13577######### 13578# See whether we should use GCOV 13579# Check whether --enable-gcov was given. 13580if test "${enable_gcov+set}" = set; then 13581 enableval=$enable_gcov; use_gcov=$enableval 13582else 13583 use_gcov=no 13584fi 13585 13586if test "${use_gcov}" = "yes" ; then 13587 USE_GCOV=1 13588else 13589 USE_GCOV=0 13590fi 13591 13592 13593 13594######### 13595# Output the config header 13596ac_config_headers="$ac_config_headers config.h" 13597 13598 13599######### 13600# Generate the output files. 13601# 13602 13603ac_config_files="$ac_config_files Makefile sqlite3.pc" 13604 13605cat >confcache <<\_ACEOF 13606# This file is a shell script that caches the results of configure 13607# tests run on this system so they can be shared between configure 13608# scripts and configure runs, see configure's option --config-cache. 13609# It is not useful on other systems. If it contains results you don't 13610# want to keep, you may remove or edit it. 13611# 13612# config.status only pays attention to the cache file if you give it 13613# the --recheck option to rerun configure. 13614# 13615# `ac_cv_env_foo' variables (set or unset) will be overridden when 13616# loading this file, other *unset* `ac_cv_foo' will be assigned the 13617# following values. 13618 13619_ACEOF 13620 13621# The following way of writing the cache mishandles newlines in values, 13622# but we know of no workaround that is simple, portable, and efficient. 13623# So, we kill variables containing newlines. 13624# Ultrix sh set writes to stderr and can't be redirected directly, 13625# and sets the high bit in the cache file unless we assign to the vars. 13626( 13627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13628 eval ac_val=\$$ac_var 13629 case $ac_val in #( 13630 *${as_nl}*) 13631 case $ac_var in #( 13632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13633$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13634 esac 13635 case $ac_var in #( 13636 _ | IFS | as_nl) ;; #( 13637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13638 *) $as_unset $ac_var ;; 13639 esac ;; 13640 esac 13641 done 13642 13643 (set) 2>&1 | 13644 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13645 *${as_nl}ac_space=\ *) 13646 # `set' does not quote correctly, so add quotes (double-quote 13647 # substitution turns \\\\ into \\, and sed turns \\ into \). 13648 sed -n \ 13649 "s/'/'\\\\''/g; 13650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13651 ;; #( 13652 *) 13653 # `set' quotes correctly as required by POSIX, so do not add quotes. 13654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13655 ;; 13656 esac | 13657 sort 13658) | 13659 sed ' 13660 /^ac_cv_env_/b end 13661 t clear 13662 :clear 13663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13664 t end 13665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13666 :end' >>confcache 13667if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13668 if test -w "$cache_file"; then 13669 test "x$cache_file" != "x/dev/null" && 13670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13671$as_echo "$as_me: updating cache $cache_file" >&6;} 13672 cat confcache >$cache_file 13673 else 13674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13676 fi 13677fi 13678rm -f confcache 13679 13680test "x$prefix" = xNONE && prefix=$ac_default_prefix 13681# Let make expand exec_prefix. 13682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13683 13684DEFS=-DHAVE_CONFIG_H 13685 13686ac_libobjs= 13687ac_ltlibobjs= 13688for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13689 # 1. Remove the extension, and $U if already installed. 13690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13693 # will be set to the directory where LIBOBJS objects are built. 13694 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13695 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13696done 13697LIBOBJS=$ac_libobjs 13698 13699LTLIBOBJS=$ac_ltlibobjs 13700 13701 13702 13703: ${CONFIG_STATUS=./config.status} 13704ac_write_fail=0 13705ac_clean_files_save=$ac_clean_files 13706ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13707{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13708$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13709cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13710#! $SHELL 13711# Generated by $as_me. 13712# Run this file to recreate the current configuration. 13713# Compiler output produced by configure, useful for debugging 13714# configure, is in config.log if it exists. 13715 13716debug=false 13717ac_cs_recheck=false 13718ac_cs_silent=false 13719SHELL=\${CONFIG_SHELL-$SHELL} 13720_ACEOF 13721 13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13723## --------------------- ## 13724## M4sh Initialization. ## 13725## --------------------- ## 13726 13727# Be more Bourne compatible 13728DUALCASE=1; export DUALCASE # for MKS sh 13729if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13730 emulate sh 13731 NULLCMD=: 13732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13733 # is contrary to our usage. Disable this feature. 13734 alias -g '${1+"$@"}'='"$@"' 13735 setopt NO_GLOB_SUBST 13736else 13737 case `(set -o) 2>/dev/null` in 13738 *posix*) set -o posix ;; 13739esac 13740 13741fi 13742 13743 13744 13745 13746# PATH needs CR 13747# Avoid depending upon Character Ranges. 13748as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13750as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13751as_cr_digits='0123456789' 13752as_cr_alnum=$as_cr_Letters$as_cr_digits 13753 13754as_nl=' 13755' 13756export as_nl 13757# Printing a long string crashes Solaris 7 /usr/bin/printf. 13758as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13759as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13760as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13761if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13762 as_echo='printf %s\n' 13763 as_echo_n='printf %s' 13764else 13765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13767 as_echo_n='/usr/ucb/echo -n' 13768 else 13769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13770 as_echo_n_body='eval 13771 arg=$1; 13772 case $arg in 13773 *"$as_nl"*) 13774 expr "X$arg" : "X\\(.*\\)$as_nl"; 13775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13776 esac; 13777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13778 ' 13779 export as_echo_n_body 13780 as_echo_n='sh -c $as_echo_n_body as_echo' 13781 fi 13782 export as_echo_body 13783 as_echo='sh -c $as_echo_body as_echo' 13784fi 13785 13786# The user is always right. 13787if test "${PATH_SEPARATOR+set}" != set; then 13788 PATH_SEPARATOR=: 13789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13791 PATH_SEPARATOR=';' 13792 } 13793fi 13794 13795# Support unset when possible. 13796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13797 as_unset=unset 13798else 13799 as_unset=false 13800fi 13801 13802 13803# IFS 13804# We need space, tab and new line, in precisely that order. Quoting is 13805# there to prevent editors from complaining about space-tab. 13806# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13807# splitting by setting IFS to empty value.) 13808IFS=" "" $as_nl" 13809 13810# Find who we are. Look in the path if we contain no directory separator. 13811case $0 in 13812 *[\\/]* ) as_myself=$0 ;; 13813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13814for as_dir in $PATH 13815do 13816 IFS=$as_save_IFS 13817 test -z "$as_dir" && as_dir=. 13818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13819done 13820IFS=$as_save_IFS 13821 13822 ;; 13823esac 13824# We did not find ourselves, most probably we were run as `sh COMMAND' 13825# in which case we are not to be found in the path. 13826if test "x$as_myself" = x; then 13827 as_myself=$0 13828fi 13829if test ! -f "$as_myself"; then 13830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13831 { (exit 1); exit 1; } 13832fi 13833 13834# Work around bugs in pre-3.0 UWIN ksh. 13835for as_var in ENV MAIL MAILPATH 13836do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13837done 13838PS1='$ ' 13839PS2='> ' 13840PS4='+ ' 13841 13842# NLS nuisances. 13843LC_ALL=C 13844export LC_ALL 13845LANGUAGE=C 13846export LANGUAGE 13847 13848# Required to use basename. 13849if expr a : '\(a\)' >/dev/null 2>&1 && 13850 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13851 as_expr=expr 13852else 13853 as_expr=false 13854fi 13855 13856if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13857 as_basename=basename 13858else 13859 as_basename=false 13860fi 13861 13862 13863# Name of the executable. 13864as_me=`$as_basename -- "$0" || 13865$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13866 X"$0" : 'X\(//\)$' \| \ 13867 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13868$as_echo X/"$0" | 13869 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13870 s//\1/ 13871 q 13872 } 13873 /^X\/\(\/\/\)$/{ 13874 s//\1/ 13875 q 13876 } 13877 /^X\/\(\/\).*/{ 13878 s//\1/ 13879 q 13880 } 13881 s/.*/./; q'` 13882 13883# CDPATH. 13884$as_unset CDPATH 13885 13886 13887 13888 as_lineno_1=$LINENO 13889 as_lineno_2=$LINENO 13890 test "x$as_lineno_1" != "x$as_lineno_2" && 13891 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13892 13893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13894 # uniformly replaced by the line number. The first 'sed' inserts a 13895 # line-number line after each line using $LINENO; the second 'sed' 13896 # does the real work. The second script uses 'N' to pair each 13897 # line-number line with the line containing $LINENO, and appends 13898 # trailing '-' during substitution so that $LINENO is not a special 13899 # case at line end. 13900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13901 # scripts with optimization help from Paolo Bonzini. Blame Lee 13902 # E. McMahon (1931-1989) for sed's syntax. :-) 13903 sed -n ' 13904 p 13905 /[$]LINENO/= 13906 ' <$as_myself | 13907 sed ' 13908 s/[$]LINENO.*/&-/ 13909 t lineno 13910 b 13911 :lineno 13912 N 13913 :loop 13914 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13915 t loop 13916 s/-\n.*// 13917 ' >$as_me.lineno && 13918 chmod +x "$as_me.lineno" || 13919 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13920 { (exit 1); exit 1; }; } 13921 13922 # Don't try to exec as it changes $[0], causing all sort of problems 13923 # (the dirname of $[0] is not the place where we might find the 13924 # original and so on. Autoconf is especially sensitive to this). 13925 . "./$as_me.lineno" 13926 # Exit status is that of the last command. 13927 exit 13928} 13929 13930 13931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13932 as_dirname=dirname 13933else 13934 as_dirname=false 13935fi 13936 13937ECHO_C= ECHO_N= ECHO_T= 13938case `echo -n x` in 13939-n*) 13940 case `echo 'x\c'` in 13941 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13942 *) ECHO_C='\c';; 13943 esac;; 13944*) 13945 ECHO_N='-n';; 13946esac 13947if expr a : '\(a\)' >/dev/null 2>&1 && 13948 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13949 as_expr=expr 13950else 13951 as_expr=false 13952fi 13953 13954rm -f conf$$ conf$$.exe conf$$.file 13955if test -d conf$$.dir; then 13956 rm -f conf$$.dir/conf$$.file 13957else 13958 rm -f conf$$.dir 13959 mkdir conf$$.dir 2>/dev/null 13960fi 13961if (echo >conf$$.file) 2>/dev/null; then 13962 if ln -s conf$$.file conf$$ 2>/dev/null; then 13963 as_ln_s='ln -s' 13964 # ... but there are two gotchas: 13965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13967 # In both cases, we have to default to `cp -p'. 13968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13969 as_ln_s='cp -p' 13970 elif ln conf$$.file conf$$ 2>/dev/null; then 13971 as_ln_s=ln 13972 else 13973 as_ln_s='cp -p' 13974 fi 13975else 13976 as_ln_s='cp -p' 13977fi 13978rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13979rmdir conf$$.dir 2>/dev/null 13980 13981if mkdir -p . 2>/dev/null; then 13982 as_mkdir_p=: 13983else 13984 test -d ./-p && rmdir ./-p 13985 as_mkdir_p=false 13986fi 13987 13988if test -x / >/dev/null 2>&1; then 13989 as_test_x='test -x' 13990else 13991 if ls -dL / >/dev/null 2>&1; then 13992 as_ls_L_option=L 13993 else 13994 as_ls_L_option= 13995 fi 13996 as_test_x=' 13997 eval sh -c '\'' 13998 if test -d "$1"; then 13999 test -d "$1/."; 14000 else 14001 case $1 in 14002 -*)set "./$1";; 14003 esac; 14004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14005 ???[sx]*):;;*)false;;esac;fi 14006 '\'' sh 14007 ' 14008fi 14009as_executable_p=$as_test_x 14010 14011# Sed expression to map a string onto a valid CPP name. 14012as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14013 14014# Sed expression to map a string onto a valid variable name. 14015as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14016 14017 14018exec 6>&1 14019 14020# Save the log message, to keep $[0] and so on meaningful, and to 14021# report actual input values of CONFIG_FILES etc. instead of their 14022# values after options handling. 14023ac_log=" 14024This file was extended by sqlite $as_me 3.8.3, which was 14025generated by GNU Autoconf 2.62. Invocation command line was 14026 14027 CONFIG_FILES = $CONFIG_FILES 14028 CONFIG_HEADERS = $CONFIG_HEADERS 14029 CONFIG_LINKS = $CONFIG_LINKS 14030 CONFIG_COMMANDS = $CONFIG_COMMANDS 14031 $ $0 $@ 14032 14033on `(hostname || uname -n) 2>/dev/null | sed 1q` 14034" 14035 14036_ACEOF 14037 14038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14039# Files that config.status was made for. 14040config_files="$ac_config_files" 14041config_headers="$ac_config_headers" 14042config_commands="$ac_config_commands" 14043 14044_ACEOF 14045 14046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14047ac_cs_usage="\ 14048\`$as_me' instantiates files from templates according to the 14049current configuration. 14050 14051Usage: $0 [OPTIONS] [FILE]... 14052 14053 -h, --help print this help, then exit 14054 -V, --version print version number and configuration settings, then exit 14055 -q, --quiet do not print progress messages 14056 -d, --debug don't remove temporary files 14057 --recheck update $as_me by reconfiguring in the same conditions 14058 --file=FILE[:TEMPLATE] 14059 instantiate the configuration file FILE 14060 --header=FILE[:TEMPLATE] 14061 instantiate the configuration header FILE 14062 14063Configuration files: 14064$config_files 14065 14066Configuration headers: 14067$config_headers 14068 14069Configuration commands: 14070$config_commands 14071 14072Report bugs to <[email protected]>." 14073 14074_ACEOF 14075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14076ac_cs_version="\\ 14077sqlite config.status 3.8.3 14078configured by $0, generated by GNU Autoconf 2.62, 14079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14080 14081Copyright (C) 2008 Free Software Foundation, Inc. 14082This config.status script is free software; the Free Software Foundation 14083gives unlimited permission to copy, distribute and modify it." 14084 14085ac_pwd='$ac_pwd' 14086srcdir='$srcdir' 14087INSTALL='$INSTALL' 14088AWK='$AWK' 14089test -n "\$AWK" || AWK=awk 14090_ACEOF 14091 14092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14093# The default lists apply if the user does not specify any file. 14094ac_need_defaults=: 14095while test $# != 0 14096do 14097 case $1 in 14098 --*=*) 14099 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14101 ac_shift=: 14102 ;; 14103 *) 14104 ac_option=$1 14105 ac_optarg=$2 14106 ac_shift=shift 14107 ;; 14108 esac 14109 14110 case $ac_option in 14111 # Handling of the options. 14112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14113 ac_cs_recheck=: ;; 14114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14115 $as_echo "$ac_cs_version"; exit ;; 14116 --debug | --debu | --deb | --de | --d | -d ) 14117 debug=: ;; 14118 --file | --fil | --fi | --f ) 14119 $ac_shift 14120 case $ac_optarg in 14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14122 esac 14123 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14124 ac_need_defaults=false;; 14125 --header | --heade | --head | --hea ) 14126 $ac_shift 14127 case $ac_optarg in 14128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14129 esac 14130 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14131 ac_need_defaults=false;; 14132 --he | --h) 14133 # Conflict between --help and --header 14134 { $as_echo "$as_me: error: ambiguous option: $1 14135Try \`$0 --help' for more information." >&2 14136 { (exit 1); exit 1; }; };; 14137 --help | --hel | -h ) 14138 $as_echo "$ac_cs_usage"; exit ;; 14139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14140 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14141 ac_cs_silent=: ;; 14142 14143 # This is an error. 14144 -*) { $as_echo "$as_me: error: unrecognized option: $1 14145Try \`$0 --help' for more information." >&2 14146 { (exit 1); exit 1; }; } ;; 14147 14148 *) ac_config_targets="$ac_config_targets $1" 14149 ac_need_defaults=false ;; 14150 14151 esac 14152 shift 14153done 14154 14155ac_configure_extra_args= 14156 14157if $ac_cs_silent; then 14158 exec 6>/dev/null 14159 ac_configure_extra_args="$ac_configure_extra_args --silent" 14160fi 14161 14162_ACEOF 14163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14164if \$ac_cs_recheck; then 14165 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14166 shift 14167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14168 CONFIG_SHELL='$SHELL' 14169 export CONFIG_SHELL 14170 exec "\$@" 14171fi 14172 14173_ACEOF 14174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14175exec 5>>config.log 14176{ 14177 echo 14178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14179## Running $as_me. ## 14180_ASBOX 14181 $as_echo "$ac_log" 14182} >&5 14183 14184_ACEOF 14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14186# 14187# INIT-COMMANDS 14188# 14189 14190 14191# The HP-UX ksh and POSIX shell print the target directory to stdout 14192# if CDPATH is set. 14193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14194 14195sed_quote_subst='$sed_quote_subst' 14196double_quote_subst='$double_quote_subst' 14197delay_variable_subst='$delay_variable_subst' 14198macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14199macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14200enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14201enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14202pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14203enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14204host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14205host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14206host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14207build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14208build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14209build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14210SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14211Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14212GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14213EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14214FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14215LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14216NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14217LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14218max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14219ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14220exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14221lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14222lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14223lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14224reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14225reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14226OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14227deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14228file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14229AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14230AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14231STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14232RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14233old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14234old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14235old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14236CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14237CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14238compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14239GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14240lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14241lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14242lt_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"`' 14243lt_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"`' 14244objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14245SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14246ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14247MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14248lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14249lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14250lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14251lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14252lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14253need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14254DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14255NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14256LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14257OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14258OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14259libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14260shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14261extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14262archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14263enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14264export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14265whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14266compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14267old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14268old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14269archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14270archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14271module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14272module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14273with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14274allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14275no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14276hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14277hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14278hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14279hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14280hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14281hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14282hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14283hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14284inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14285link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14286fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14287always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14288export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14289exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14290include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14291prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14292file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14293variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14294need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14295need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14296version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14297runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14298shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14299shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14300libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14301library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14302soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14303postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14304postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14305finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14306finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14307hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14308sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14309sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14310hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14311enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14312enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14313enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14314old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14315striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14316 14317LTCC='$LTCC' 14318LTCFLAGS='$LTCFLAGS' 14319compiler='$compiler_DEFAULT' 14320 14321# Quote evaled strings. 14322for var in SED \ 14323GREP \ 14324EGREP \ 14325FGREP \ 14326LD \ 14327NM \ 14328LN_S \ 14329lt_SP2NL \ 14330lt_NL2SP \ 14331reload_flag \ 14332OBJDUMP \ 14333deplibs_check_method \ 14334file_magic_cmd \ 14335AR \ 14336AR_FLAGS \ 14337STRIP \ 14338RANLIB \ 14339CC \ 14340CFLAGS \ 14341compiler \ 14342lt_cv_sys_global_symbol_pipe \ 14343lt_cv_sys_global_symbol_to_cdecl \ 14344lt_cv_sys_global_symbol_to_c_name_address \ 14345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14346SHELL \ 14347ECHO \ 14348lt_prog_compiler_no_builtin_flag \ 14349lt_prog_compiler_wl \ 14350lt_prog_compiler_pic \ 14351lt_prog_compiler_static \ 14352lt_cv_prog_compiler_c_o \ 14353need_locks \ 14354DSYMUTIL \ 14355NMEDIT \ 14356LIPO \ 14357OTOOL \ 14358OTOOL64 \ 14359shrext_cmds \ 14360export_dynamic_flag_spec \ 14361whole_archive_flag_spec \ 14362compiler_needs_object \ 14363with_gnu_ld \ 14364allow_undefined_flag \ 14365no_undefined_flag \ 14366hardcode_libdir_flag_spec \ 14367hardcode_libdir_flag_spec_ld \ 14368hardcode_libdir_separator \ 14369fix_srcfile_path \ 14370exclude_expsyms \ 14371include_expsyms \ 14372file_list_spec \ 14373variables_saved_for_relink \ 14374libname_spec \ 14375library_names_spec \ 14376soname_spec \ 14377finish_eval \ 14378old_striplib \ 14379striplib; do 14380 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14381 *[\\\\\\\`\\"\\\$]*) 14382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14383 ;; 14384 *) 14385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14386 ;; 14387 esac 14388done 14389 14390# Double-quote double-evaled strings. 14391for var in reload_cmds \ 14392old_postinstall_cmds \ 14393old_postuninstall_cmds \ 14394old_archive_cmds \ 14395extract_expsyms_cmds \ 14396old_archive_from_new_cmds \ 14397old_archive_from_expsyms_cmds \ 14398archive_cmds \ 14399archive_expsym_cmds \ 14400module_cmds \ 14401module_expsym_cmds \ 14402export_symbols_cmds \ 14403prelink_cmds \ 14404postinstall_cmds \ 14405postuninstall_cmds \ 14406finish_cmds \ 14407sys_lib_search_path_spec \ 14408sys_lib_dlsearch_path_spec; do 14409 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14410 *[\\\\\\\`\\"\\\$]*) 14411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14412 ;; 14413 *) 14414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14415 ;; 14416 esac 14417done 14418 14419# Fix-up fallback echo if it was mangled by the above quoting rules. 14420case \$lt_ECHO in 14421*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14422 ;; 14423esac 14424 14425ac_aux_dir='$ac_aux_dir' 14426xsi_shell='$xsi_shell' 14427lt_shell_append='$lt_shell_append' 14428 14429# See if we are running on zsh, and set the options which allow our 14430# commands through without removal of \ escapes INIT. 14431if test -n "\${ZSH_VERSION+set}" ; then 14432 setopt NO_GLOB_SUBST 14433fi 14434 14435 14436 PACKAGE='$PACKAGE' 14437 VERSION='$VERSION' 14438 TIMESTAMP='$TIMESTAMP' 14439 RM='$RM' 14440 ofile='$ofile' 14441 14442 14443 14444 14445_ACEOF 14446 14447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14448 14449# Handling of arguments. 14450for ac_config_target in $ac_config_targets 14451do 14452 case $ac_config_target in 14453 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14455 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14456 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 14457 14458 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14459$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14460 { (exit 1); exit 1; }; };; 14461 esac 14462done 14463 14464 14465# If the user did not use the arguments to specify the items to instantiate, 14466# then the envvar interface is used. Set only those that are not. 14467# We use the long form for the default assignment because of an extremely 14468# bizarre bug on SunOS 4.1.3. 14469if $ac_need_defaults; then 14470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14473fi 14474 14475# Have a temporary directory for convenience. Make it in the build tree 14476# simply because there is no reason against having it here, and in addition, 14477# creating and moving files from /tmp can sometimes cause problems. 14478# Hook for its removal unless debugging. 14479# Note that there is a small window in which the directory will not be cleaned: 14480# after its creation but before its name has been assigned to `$tmp'. 14481$debug || 14482{ 14483 tmp= 14484 trap 'exit_status=$? 14485 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14486' 0 14487 trap '{ (exit 1); exit 1; }' 1 2 13 15 14488} 14489# Create a (secure) tmp directory for tmp files. 14490 14491{ 14492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14493 test -n "$tmp" && test -d "$tmp" 14494} || 14495{ 14496 tmp=./conf$$-$RANDOM 14497 (umask 077 && mkdir "$tmp") 14498} || 14499{ 14500 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14501 { (exit 1); exit 1; } 14502} 14503 14504# Set up the scripts for CONFIG_FILES section. 14505# No need to generate them if there are no CONFIG_FILES. 14506# This happens for instance with `./config.status config.h'. 14507if test -n "$CONFIG_FILES"; then 14508 14509 14510ac_cr=' 14511' 14512ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14513if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14514 ac_cs_awk_cr='\\r' 14515else 14516 ac_cs_awk_cr=$ac_cr 14517fi 14518 14519echo 'BEGIN {' >"$tmp/subs1.awk" && 14520_ACEOF 14521 14522 14523{ 14524 echo "cat >conf$$subs.awk <<_ACEOF" && 14525 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14526 echo "_ACEOF" 14527} >conf$$subs.sh || 14528 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14529$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14530 { (exit 1); exit 1; }; } 14531ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14532ac_delim='%!_!# ' 14533for ac_last_try in false false false false false :; do 14534 . ./conf$$subs.sh || 14535 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14536$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14537 { (exit 1); exit 1; }; } 14538 14539 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14540 break 14541 elif $ac_last_try; then 14542 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14543$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14544 { (exit 1); exit 1; }; } 14545 else 14546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14547 fi 14548done 14549rm -f conf$$subs.sh 14550 14551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14552cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14553_ACEOF 14554sed -n ' 14555h 14556s/^/S["/; s/!.*/"]=/ 14557p 14558g 14559s/^[^!]*!// 14560:repl 14561t repl 14562s/'"$ac_delim"'$// 14563t delim 14564:nl 14565h 14566s/\(.\{148\}\).*/\1/ 14567t more1 14568s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14569p 14570n 14571b repl 14572:more1 14573s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14574p 14575g 14576s/.\{148\}// 14577t nl 14578:delim 14579h 14580s/\(.\{148\}\).*/\1/ 14581t more2 14582s/["\\]/\\&/g; s/^/"/; s/$/"/ 14583p 14584b 14585:more2 14586s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14587p 14588g 14589s/.\{148\}// 14590t delim 14591' <conf$$subs.awk | sed ' 14592/^[^""]/{ 14593 N 14594 s/\n// 14595} 14596' >>$CONFIG_STATUS || ac_write_fail=1 14597rm -f conf$$subs.awk 14598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14599_ACAWK 14600cat >>"\$tmp/subs1.awk" <<_ACAWK && 14601 for (key in S) S_is_set[key] = 1 14602 FS = "" 14603 14604} 14605{ 14606 line = $ 0 14607 nfields = split(line, field, "@") 14608 substed = 0 14609 len = length(field[1]) 14610 for (i = 2; i < nfields; i++) { 14611 key = field[i] 14612 keylen = length(key) 14613 if (S_is_set[key]) { 14614 value = S[key] 14615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14616 len += length(value) + length(field[++i]) 14617 substed = 1 14618 } else 14619 len += 1 + keylen 14620 } 14621 14622 print line 14623} 14624 14625_ACAWK 14626_ACEOF 14627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14628if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14630else 14631 cat 14632fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14633 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14634$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14635 { (exit 1); exit 1; }; } 14636_ACEOF 14637 14638# VPATH may cause trouble with some makes, so we remove $(srcdir), 14639# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14640# trailing colons and then remove the whole line if VPATH becomes empty 14641# (actually we leave an empty line to preserve line numbers). 14642if test "x$srcdir" = x.; then 14643 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14644s/:*\$(srcdir):*/:/ 14645s/:*\${srcdir}:*/:/ 14646s/:*@srcdir@:*/:/ 14647s/^\([^=]*=[ ]*\):*/\1/ 14648s/:*$// 14649s/^[^=]*=[ ]*$// 14650}' 14651fi 14652 14653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14654fi # test -n "$CONFIG_FILES" 14655 14656# Set up the scripts for CONFIG_HEADERS section. 14657# No need to generate them if there are no CONFIG_HEADERS. 14658# This happens for instance with `./config.status Makefile'. 14659if test -n "$CONFIG_HEADERS"; then 14660cat >"$tmp/defines.awk" <<\_ACAWK || 14661BEGIN { 14662_ACEOF 14663 14664# Transform confdefs.h into an awk script `defines.awk', embedded as 14665# here-document in config.status, that substitutes the proper values into 14666# config.h.in to produce config.h. 14667 14668# Create a delimiter string that does not exist in confdefs.h, to ease 14669# handling of long lines. 14670ac_delim='%!_!# ' 14671for ac_last_try in false false :; do 14672 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14673 if test -z "$ac_t"; then 14674 break 14675 elif $ac_last_try; then 14676 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14677$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14678 { (exit 1); exit 1; }; } 14679 else 14680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14681 fi 14682done 14683 14684# For the awk script, D is an array of macro values keyed by name, 14685# likewise P contains macro parameters if any. Preserve backslash 14686# newline sequences. 14687 14688ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14689sed -n ' 14690s/.\{148\}/&'"$ac_delim"'/g 14691t rset 14692:rset 14693s/^[ ]*#[ ]*define[ ][ ]*/ / 14694t def 14695d 14696:def 14697s/\\$// 14698t bsnl 14699s/["\\]/\\&/g 14700s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14701D["\1"]=" \3"/p 14702s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14703d 14704:bsnl 14705s/["\\]/\\&/g 14706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14707D["\1"]=" \3\\\\\\n"\\/p 14708t cont 14709s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14710t cont 14711d 14712:cont 14713n 14714s/.\{148\}/&'"$ac_delim"'/g 14715t clear 14716:clear 14717s/\\$// 14718t bsnlc 14719s/["\\]/\\&/g; s/^/"/; s/$/"/p 14720d 14721:bsnlc 14722s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14723b cont 14724' <confdefs.h | sed ' 14725s/'"$ac_delim"'/"\\\ 14726"/g' >>$CONFIG_STATUS || ac_write_fail=1 14727 14728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14729 for (key in D) D_is_set[key] = 1 14730 FS = "" 14731} 14732/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14733 line = \$ 0 14734 split(line, arg, " ") 14735 if (arg[1] == "#") { 14736 defundef = arg[2] 14737 mac1 = arg[3] 14738 } else { 14739 defundef = substr(arg[1], 2) 14740 mac1 = arg[2] 14741 } 14742 split(mac1, mac2, "(") #) 14743 macro = mac2[1] 14744 if (D_is_set[macro]) { 14745 # Preserve the white space surrounding the "#". 14746 prefix = substr(line, 1, index(line, defundef) - 1) 14747 print prefix "define", macro P[macro] D[macro] 14748 next 14749 } else { 14750 # Replace #undef with comments. This is necessary, for example, 14751 # in the case of _POSIX_SOURCE, which is predefined and required 14752 # on some systems where configure will not decide to define it. 14753 if (defundef == "undef") { 14754 print "/*", line, "*/" 14755 next 14756 } 14757 } 14758} 14759{ print } 14760_ACAWK 14761_ACEOF 14762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14763 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14764$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14765 { (exit 1); exit 1; }; } 14766fi # test -n "$CONFIG_HEADERS" 14767 14768 14769eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14770shift 14771for ac_tag 14772do 14773 case $ac_tag in 14774 :[FHLC]) ac_mode=$ac_tag; continue;; 14775 esac 14776 case $ac_mode$ac_tag in 14777 :[FHL]*:*);; 14778 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14779$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14780 { (exit 1); exit 1; }; };; 14781 :[FH]-) ac_tag=-:-;; 14782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14783 esac 14784 ac_save_IFS=$IFS 14785 IFS=: 14786 set x $ac_tag 14787 IFS=$ac_save_IFS 14788 shift 14789 ac_file=$1 14790 shift 14791 14792 case $ac_mode in 14793 :L) ac_source=$1;; 14794 :[FH]) 14795 ac_file_inputs= 14796 for ac_f 14797 do 14798 case $ac_f in 14799 -) ac_f="$tmp/stdin";; 14800 *) # Look for the file first in the build tree, then in the source tree 14801 # (if the path is not absolute). The absolute path cannot be DOS-style, 14802 # because $ac_f cannot contain `:'. 14803 test -f "$ac_f" || 14804 case $ac_f in 14805 [\\/$]*) false;; 14806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14807 esac || 14808 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14809$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14810 { (exit 1); exit 1; }; };; 14811 esac 14812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14813 ac_file_inputs="$ac_file_inputs '$ac_f'" 14814 done 14815 14816 # Let's still pretend it is `configure' which instantiates (i.e., don't 14817 # use $as_me), people would be surprised to read: 14818 # /* config.h. Generated by config.status. */ 14819 configure_input='Generated from '` 14820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14821 `' by configure.' 14822 if test x"$ac_file" != x-; then 14823 configure_input="$ac_file. $configure_input" 14824 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14825$as_echo "$as_me: creating $ac_file" >&6;} 14826 fi 14827 # Neutralize special characters interpreted by sed in replacement strings. 14828 case $configure_input in #( 14829 *\&* | *\|* | *\\* ) 14830 ac_sed_conf_input=`$as_echo "$configure_input" | 14831 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14832 *) ac_sed_conf_input=$configure_input;; 14833 esac 14834 14835 case $ac_tag in 14836 *:-:* | *:-) cat >"$tmp/stdin" \ 14837 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14838$as_echo "$as_me: error: could not create $ac_file" >&2;} 14839 { (exit 1); exit 1; }; } ;; 14840 esac 14841 ;; 14842 esac 14843 14844 ac_dir=`$as_dirname -- "$ac_file" || 14845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14846 X"$ac_file" : 'X\(//\)[^/]' \| \ 14847 X"$ac_file" : 'X\(//\)$' \| \ 14848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14849$as_echo X"$ac_file" | 14850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14851 s//\1/ 14852 q 14853 } 14854 /^X\(\/\/\)[^/].*/{ 14855 s//\1/ 14856 q 14857 } 14858 /^X\(\/\/\)$/{ 14859 s//\1/ 14860 q 14861 } 14862 /^X\(\/\).*/{ 14863 s//\1/ 14864 q 14865 } 14866 s/.*/./; q'` 14867 { as_dir="$ac_dir" 14868 case $as_dir in #( 14869 -*) as_dir=./$as_dir;; 14870 esac 14871 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14872 as_dirs= 14873 while :; do 14874 case $as_dir in #( 14875 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14876 *) as_qdir=$as_dir;; 14877 esac 14878 as_dirs="'$as_qdir' $as_dirs" 14879 as_dir=`$as_dirname -- "$as_dir" || 14880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14881 X"$as_dir" : 'X\(//\)[^/]' \| \ 14882 X"$as_dir" : 'X\(//\)$' \| \ 14883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14884$as_echo X"$as_dir" | 14885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14886 s//\1/ 14887 q 14888 } 14889 /^X\(\/\/\)[^/].*/{ 14890 s//\1/ 14891 q 14892 } 14893 /^X\(\/\/\)$/{ 14894 s//\1/ 14895 q 14896 } 14897 /^X\(\/\).*/{ 14898 s//\1/ 14899 q 14900 } 14901 s/.*/./; q'` 14902 test -d "$as_dir" && break 14903 done 14904 test -z "$as_dirs" || eval "mkdir $as_dirs" 14905 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14906$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14907 { (exit 1); exit 1; }; }; } 14908 ac_builddir=. 14909 14910case "$ac_dir" in 14911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14912*) 14913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14914 # A ".." for each directory in $ac_dir_suffix. 14915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14916 case $ac_top_builddir_sub in 14917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14919 esac ;; 14920esac 14921ac_abs_top_builddir=$ac_pwd 14922ac_abs_builddir=$ac_pwd$ac_dir_suffix 14923# for backward compatibility: 14924ac_top_builddir=$ac_top_build_prefix 14925 14926case $srcdir in 14927 .) # We are building in place. 14928 ac_srcdir=. 14929 ac_top_srcdir=$ac_top_builddir_sub 14930 ac_abs_top_srcdir=$ac_pwd ;; 14931 [\\/]* | ?:[\\/]* ) # Absolute name. 14932 ac_srcdir=$srcdir$ac_dir_suffix; 14933 ac_top_srcdir=$srcdir 14934 ac_abs_top_srcdir=$srcdir ;; 14935 *) # Relative name. 14936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14937 ac_top_srcdir=$ac_top_build_prefix$srcdir 14938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14939esac 14940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14941 14942 14943 case $ac_mode in 14944 :F) 14945 # 14946 # CONFIG_FILE 14947 # 14948 14949 case $INSTALL in 14950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14952 esac 14953_ACEOF 14954 14955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14956# If the template does not know about datarootdir, expand it. 14957# FIXME: This hack should be removed a few years after 2.60. 14958ac_datarootdir_hack=; ac_datarootdir_seen= 14959 14960ac_sed_dataroot=' 14961/datarootdir/ { 14962 p 14963 q 14964} 14965/@datadir@/p 14966/@docdir@/p 14967/@infodir@/p 14968/@localedir@/p 14969/@mandir@/p 14970' 14971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14972*datarootdir*) ac_datarootdir_seen=yes;; 14973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14974 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14976_ACEOF 14977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14978 ac_datarootdir_hack=' 14979 s&@datadir@&$datadir&g 14980 s&@docdir@&$docdir&g 14981 s&@infodir@&$infodir&g 14982 s&@localedir@&$localedir&g 14983 s&@mandir@&$mandir&g 14984 s&\\\${datarootdir}&$datarootdir&g' ;; 14985esac 14986_ACEOF 14987 14988# Neutralize VPATH when `$srcdir' = `.'. 14989# Shell code in configure.ac might set extrasub. 14990# FIXME: do we really want to maintain this feature? 14991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14992ac_sed_extra="$ac_vpsub 14993$extrasub 14994_ACEOF 14995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14996:t 14997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14998s|@configure_input@|$ac_sed_conf_input|;t t 14999s&@top_builddir@&$ac_top_builddir_sub&;t t 15000s&@top_build_prefix@&$ac_top_build_prefix&;t t 15001s&@srcdir@&$ac_srcdir&;t t 15002s&@abs_srcdir@&$ac_abs_srcdir&;t t 15003s&@top_srcdir@&$ac_top_srcdir&;t t 15004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15005s&@builddir@&$ac_builddir&;t t 15006s&@abs_builddir@&$ac_abs_builddir&;t t 15007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15008s&@INSTALL@&$ac_INSTALL&;t t 15009$ac_datarootdir_hack 15010" 15011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15012 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15013$as_echo "$as_me: error: could not create $ac_file" >&2;} 15014 { (exit 1); exit 1; }; } 15015 15016test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15019 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15020which seems to be undefined. Please make sure it is defined." >&5 15021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15022which seems to be undefined. Please make sure it is defined." >&2;} 15023 15024 rm -f "$tmp/stdin" 15025 case $ac_file in 15026 -) cat "$tmp/out" && rm -f "$tmp/out";; 15027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15028 esac \ 15029 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15030$as_echo "$as_me: error: could not create $ac_file" >&2;} 15031 { (exit 1); exit 1; }; } 15032 ;; 15033 :H) 15034 # 15035 # CONFIG_HEADER 15036 # 15037 if test x"$ac_file" != x-; then 15038 { 15039 $as_echo "/* $configure_input */" \ 15040 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15041 } >"$tmp/config.h" \ 15042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15043$as_echo "$as_me: error: could not create $ac_file" >&2;} 15044 { (exit 1); exit 1; }; } 15045 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15046 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15047$as_echo "$as_me: $ac_file is unchanged" >&6;} 15048 else 15049 rm -f "$ac_file" 15050 mv "$tmp/config.h" "$ac_file" \ 15051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15052$as_echo "$as_me: error: could not create $ac_file" >&2;} 15053 { (exit 1); exit 1; }; } 15054 fi 15055 else 15056 $as_echo "/* $configure_input */" \ 15057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15058 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15059$as_echo "$as_me: error: could not create -" >&2;} 15060 { (exit 1); exit 1; }; } 15061 fi 15062 ;; 15063 15064 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15065$as_echo "$as_me: executing $ac_file commands" >&6;} 15066 ;; 15067 esac 15068 15069 15070 case $ac_file$ac_mode in 15071 "libtool":C) 15072 15073 # See if we are running on zsh, and set the options which allow our 15074 # commands through without removal of \ escapes. 15075 if test -n "${ZSH_VERSION+set}" ; then 15076 setopt NO_GLOB_SUBST 15077 fi 15078 15079 cfgfile="${ofile}T" 15080 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15081 $RM "$cfgfile" 15082 15083 cat <<_LT_EOF >> "$cfgfile" 15084#! $SHELL 15085 15086# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15087# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15089# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15090# 15091# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15092# 2006, 2007, 2008 Free Software Foundation, Inc. 15093# Written by Gordon Matzigkeit, 1996 15094# 15095# This file is part of GNU Libtool. 15096# 15097# GNU Libtool is free software; you can redistribute it and/or 15098# modify it under the terms of the GNU General Public License as 15099# published by the Free Software Foundation; either version 2 of 15100# the License, or (at your option) any later version. 15101# 15102# As a special exception to the GNU General Public License, 15103# if you distribute this file as part of a program or library that 15104# is built using GNU Libtool, you may include this file under the 15105# same distribution terms that you use for the rest of that program. 15106# 15107# GNU Libtool is distributed in the hope that it will be useful, 15108# but WITHOUT ANY WARRANTY; without even the implied warranty of 15109# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15110# GNU General Public License for more details. 15111# 15112# You should have received a copy of the GNU General Public License 15113# along with GNU Libtool; see the file COPYING. If not, a copy 15114# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15115# obtained by writing to the Free Software Foundation, Inc., 15116# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15117 15118 15119# The names of the tagged configurations supported by this script. 15120available_tags="" 15121 15122# ### BEGIN LIBTOOL CONFIG 15123 15124# Which release of libtool.m4 was used? 15125macro_version=$macro_version 15126macro_revision=$macro_revision 15127 15128# Whether or not to build shared libraries. 15129build_libtool_libs=$enable_shared 15130 15131# Whether or not to build static libraries. 15132build_old_libs=$enable_static 15133 15134# What type of objects to build. 15135pic_mode=$pic_mode 15136 15137# Whether or not to optimize for fast installation. 15138fast_install=$enable_fast_install 15139 15140# The host system. 15141host_alias=$host_alias 15142host=$host 15143host_os=$host_os 15144 15145# The build system. 15146build_alias=$build_alias 15147build=$build 15148build_os=$build_os 15149 15150# A sed program that does not truncate output. 15151SED=$lt_SED 15152 15153# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15154Xsed="\$SED -e 1s/^X//" 15155 15156# A grep program that handles long lines. 15157GREP=$lt_GREP 15158 15159# An ERE matcher. 15160EGREP=$lt_EGREP 15161 15162# A literal string matcher. 15163FGREP=$lt_FGREP 15164 15165# A BSD- or MS-compatible name lister. 15166NM=$lt_NM 15167 15168# Whether we need soft or hard links. 15169LN_S=$lt_LN_S 15170 15171# What is the maximum length of a command? 15172max_cmd_len=$max_cmd_len 15173 15174# Object file suffix (normally "o"). 15175objext=$ac_objext 15176 15177# Executable file suffix (normally ""). 15178exeext=$exeext 15179 15180# whether the shell understands "unset". 15181lt_unset=$lt_unset 15182 15183# turn spaces into newlines. 15184SP2NL=$lt_lt_SP2NL 15185 15186# turn newlines into spaces. 15187NL2SP=$lt_lt_NL2SP 15188 15189# How to create reloadable object files. 15190reload_flag=$lt_reload_flag 15191reload_cmds=$lt_reload_cmds 15192 15193# An object symbol dumper. 15194OBJDUMP=$lt_OBJDUMP 15195 15196# Method to check whether dependent libraries are shared objects. 15197deplibs_check_method=$lt_deplibs_check_method 15198 15199# Command to use when deplibs_check_method == "file_magic". 15200file_magic_cmd=$lt_file_magic_cmd 15201 15202# The archiver. 15203AR=$lt_AR 15204AR_FLAGS=$lt_AR_FLAGS 15205 15206# A symbol stripping program. 15207STRIP=$lt_STRIP 15208 15209# Commands used to install an old-style archive. 15210RANLIB=$lt_RANLIB 15211old_postinstall_cmds=$lt_old_postinstall_cmds 15212old_postuninstall_cmds=$lt_old_postuninstall_cmds 15213 15214# A C compiler. 15215LTCC=$lt_CC 15216 15217# LTCC compiler flags. 15218LTCFLAGS=$lt_CFLAGS 15219 15220# Take the output of nm and produce a listing of raw symbols and C names. 15221global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15222 15223# Transform the output of nm in a proper C declaration. 15224global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15225 15226# Transform the output of nm in a C name address pair. 15227global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15228 15229# Transform the output of nm in a C name address pair when lib prefix is needed. 15230global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15231 15232# The name of the directory that contains temporary libtool files. 15233objdir=$objdir 15234 15235# Shell to use when invoking shell scripts. 15236SHELL=$lt_SHELL 15237 15238# An echo program that does not interpret backslashes. 15239ECHO=$lt_ECHO 15240 15241# Used to examine libraries when file_magic_cmd begins with "file". 15242MAGIC_CMD=$MAGIC_CMD 15243 15244# Must we lock files when doing compilation? 15245need_locks=$lt_need_locks 15246 15247# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15248DSYMUTIL=$lt_DSYMUTIL 15249 15250# Tool to change global to local symbols on Mac OS X. 15251NMEDIT=$lt_NMEDIT 15252 15253# Tool to manipulate fat objects and archives on Mac OS X. 15254LIPO=$lt_LIPO 15255 15256# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15257OTOOL=$lt_OTOOL 15258 15259# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15260OTOOL64=$lt_OTOOL64 15261 15262# Old archive suffix (normally "a"). 15263libext=$libext 15264 15265# Shared library suffix (normally ".so"). 15266shrext_cmds=$lt_shrext_cmds 15267 15268# The commands to extract the exported symbol list from a shared archive. 15269extract_expsyms_cmds=$lt_extract_expsyms_cmds 15270 15271# Variables whose values should be saved in libtool wrapper scripts and 15272# restored at link time. 15273variables_saved_for_relink=$lt_variables_saved_for_relink 15274 15275# Do we need the "lib" prefix for modules? 15276need_lib_prefix=$need_lib_prefix 15277 15278# Do we need a version for libraries? 15279need_version=$need_version 15280 15281# Library versioning type. 15282version_type=$version_type 15283 15284# Shared library runtime path variable. 15285runpath_var=$runpath_var 15286 15287# Shared library path variable. 15288shlibpath_var=$shlibpath_var 15289 15290# Is shlibpath searched before the hard-coded library search path? 15291shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15292 15293# Format of library name prefix. 15294libname_spec=$lt_libname_spec 15295 15296# List of archive names. First name is the real one, the rest are links. 15297# The last name is the one that the linker finds with -lNAME 15298library_names_spec=$lt_library_names_spec 15299 15300# The coded name of the library, if different from the real name. 15301soname_spec=$lt_soname_spec 15302 15303# Command to use after installation of a shared archive. 15304postinstall_cmds=$lt_postinstall_cmds 15305 15306# Command to use after uninstallation of a shared archive. 15307postuninstall_cmds=$lt_postuninstall_cmds 15308 15309# Commands used to finish a libtool library installation in a directory. 15310finish_cmds=$lt_finish_cmds 15311 15312# As "finish_cmds", except a single script fragment to be evaled but 15313# not shown. 15314finish_eval=$lt_finish_eval 15315 15316# Whether we should hardcode library paths into libraries. 15317hardcode_into_libs=$hardcode_into_libs 15318 15319# Compile-time system search path for libraries. 15320sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15321 15322# Run-time system search path for libraries. 15323sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15324 15325# Whether dlopen is supported. 15326dlopen_support=$enable_dlopen 15327 15328# Whether dlopen of programs is supported. 15329dlopen_self=$enable_dlopen_self 15330 15331# Whether dlopen of statically linked programs is supported. 15332dlopen_self_static=$enable_dlopen_self_static 15333 15334# Commands to strip libraries. 15335old_striplib=$lt_old_striplib 15336striplib=$lt_striplib 15337 15338 15339# The linker used to build libraries. 15340LD=$lt_LD 15341 15342# Commands used to build an old-style archive. 15343old_archive_cmds=$lt_old_archive_cmds 15344 15345# A language specific compiler. 15346CC=$lt_compiler 15347 15348# Is the compiler the GNU compiler? 15349with_gcc=$GCC 15350 15351# Compiler flag to turn off builtin functions. 15352no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15353 15354# How to pass a linker flag through the compiler. 15355wl=$lt_lt_prog_compiler_wl 15356 15357# Additional compiler flags for building library objects. 15358pic_flag=$lt_lt_prog_compiler_pic 15359 15360# Compiler flag to prevent dynamic linking. 15361link_static_flag=$lt_lt_prog_compiler_static 15362 15363# Does compiler simultaneously support -c and -o options? 15364compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15365 15366# Whether or not to add -lc for building shared libraries. 15367build_libtool_need_lc=$archive_cmds_need_lc 15368 15369# Whether or not to disallow shared libs when runtime libs are static. 15370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15371 15372# Compiler flag to allow reflexive dlopens. 15373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15374 15375# Compiler flag to generate shared objects directly from archives. 15376whole_archive_flag_spec=$lt_whole_archive_flag_spec 15377 15378# Whether the compiler copes with passing no objects directly. 15379compiler_needs_object=$lt_compiler_needs_object 15380 15381# Create an old-style archive from a shared archive. 15382old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15383 15384# Create a temporary old-style archive to link instead of a shared archive. 15385old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15386 15387# Commands used to build a shared archive. 15388archive_cmds=$lt_archive_cmds 15389archive_expsym_cmds=$lt_archive_expsym_cmds 15390 15391# Commands used to build a loadable module if different from building 15392# a shared archive. 15393module_cmds=$lt_module_cmds 15394module_expsym_cmds=$lt_module_expsym_cmds 15395 15396# Whether we are building with GNU ld or not. 15397with_gnu_ld=$lt_with_gnu_ld 15398 15399# Flag that allows shared libraries with undefined symbols to be built. 15400allow_undefined_flag=$lt_allow_undefined_flag 15401 15402# Flag that enforces no undefined symbols. 15403no_undefined_flag=$lt_no_undefined_flag 15404 15405# Flag to hardcode \$libdir into a binary during linking. 15406# This must work even if \$libdir does not exist 15407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15408 15409# If ld is used when linking, flag to hardcode \$libdir into a binary 15410# during linking. This must work even if \$libdir does not exist. 15411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15412 15413# Whether we need a single "-rpath" flag with a separated argument. 15414hardcode_libdir_separator=$lt_hardcode_libdir_separator 15415 15416# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15417# DIR into the resulting binary. 15418hardcode_direct=$hardcode_direct 15419 15420# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15421# DIR into the resulting binary and the resulting library dependency is 15422# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15423# library is relocated. 15424hardcode_direct_absolute=$hardcode_direct_absolute 15425 15426# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15427# into the resulting binary. 15428hardcode_minus_L=$hardcode_minus_L 15429 15430# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15431# into the resulting binary. 15432hardcode_shlibpath_var=$hardcode_shlibpath_var 15433 15434# Set to "yes" if building a shared library automatically hardcodes DIR 15435# into the library and all subsequent libraries and executables linked 15436# against it. 15437hardcode_automatic=$hardcode_automatic 15438 15439# Set to yes if linker adds runtime paths of dependent libraries 15440# to runtime path list. 15441inherit_rpath=$inherit_rpath 15442 15443# Whether libtool must link a program against all its dependency libraries. 15444link_all_deplibs=$link_all_deplibs 15445 15446# Fix the shell variable \$srcfile for the compiler. 15447fix_srcfile_path=$lt_fix_srcfile_path 15448 15449# Set to "yes" if exported symbols are required. 15450always_export_symbols=$always_export_symbols 15451 15452# The commands to list exported symbols. 15453export_symbols_cmds=$lt_export_symbols_cmds 15454 15455# Symbols that should not be listed in the preloaded symbols. 15456exclude_expsyms=$lt_exclude_expsyms 15457 15458# Symbols that must always be exported. 15459include_expsyms=$lt_include_expsyms 15460 15461# Commands necessary for linking programs (against libraries) with templates. 15462prelink_cmds=$lt_prelink_cmds 15463 15464# Specify filename containing input files. 15465file_list_spec=$lt_file_list_spec 15466 15467# How to hardcode a shared library path into an executable. 15468hardcode_action=$hardcode_action 15469 15470# ### END LIBTOOL CONFIG 15471 15472_LT_EOF 15473 15474 case $host_os in 15475 aix3*) 15476 cat <<\_LT_EOF >> "$cfgfile" 15477# AIX sometimes has problems with the GCC collect2 program. For some 15478# reason, if we set the COLLECT_NAMES environment variable, the problems 15479# vanish in a puff of smoke. 15480if test "X${COLLECT_NAMES+set}" != Xset; then 15481 COLLECT_NAMES= 15482 export COLLECT_NAMES 15483fi 15484_LT_EOF 15485 ;; 15486 esac 15487 15488 15489ltmain="$ac_aux_dir/ltmain.sh" 15490 15491 15492 # We use sed instead of cat because bash on DJGPP gets confused if 15493 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15494 # text mode, it properly converts lines to CR/LF. This bash problem 15495 # is reportedly fixed, but why not run on old versions too? 15496 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15497 || (rm -f "$cfgfile"; exit 1) 15498 15499 case $xsi_shell in 15500 yes) 15501 cat << \_LT_EOF >> "$cfgfile" 15502 15503# func_dirname file append nondir_replacement 15504# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15505# otherwise set result to NONDIR_REPLACEMENT. 15506func_dirname () 15507{ 15508 case ${1} in 15509 */*) func_dirname_result="${1%/*}${2}" ;; 15510 * ) func_dirname_result="${3}" ;; 15511 esac 15512} 15513 15514# func_basename file 15515func_basename () 15516{ 15517 func_basename_result="${1##*/}" 15518} 15519 15520# func_dirname_and_basename file append nondir_replacement 15521# perform func_basename and func_dirname in a single function 15522# call: 15523# dirname: Compute the dirname of FILE. If nonempty, 15524# add APPEND to the result, otherwise set result 15525# to NONDIR_REPLACEMENT. 15526# value returned in "$func_dirname_result" 15527# basename: Compute filename of FILE. 15528# value retuned in "$func_basename_result" 15529# Implementation must be kept synchronized with func_dirname 15530# and func_basename. For efficiency, we do not delegate to 15531# those functions but instead duplicate the functionality here. 15532func_dirname_and_basename () 15533{ 15534 case ${1} in 15535 */*) func_dirname_result="${1%/*}${2}" ;; 15536 * ) func_dirname_result="${3}" ;; 15537 esac 15538 func_basename_result="${1##*/}" 15539} 15540 15541# func_stripname prefix suffix name 15542# strip PREFIX and SUFFIX off of NAME. 15543# PREFIX and SUFFIX must not contain globbing or regex special 15544# characters, hashes, percent signs, but SUFFIX may contain a leading 15545# dot (in which case that matches only a dot). 15546func_stripname () 15547{ 15548 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15549 # positional parameters, so assign one to ordinary parameter first. 15550 func_stripname_result=${3} 15551 func_stripname_result=${func_stripname_result#"${1}"} 15552 func_stripname_result=${func_stripname_result%"${2}"} 15553} 15554 15555# func_opt_split 15556func_opt_split () 15557{ 15558 func_opt_split_opt=${1%%=*} 15559 func_opt_split_arg=${1#*=} 15560} 15561 15562# func_lo2o object 15563func_lo2o () 15564{ 15565 case ${1} in 15566 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15567 *) func_lo2o_result=${1} ;; 15568 esac 15569} 15570 15571# func_xform libobj-or-source 15572func_xform () 15573{ 15574 func_xform_result=${1%.*}.lo 15575} 15576 15577# func_arith arithmetic-term... 15578func_arith () 15579{ 15580 func_arith_result=$(( $* )) 15581} 15582 15583# func_len string 15584# STRING may not start with a hyphen. 15585func_len () 15586{ 15587 func_len_result=${#1} 15588} 15589 15590_LT_EOF 15591 ;; 15592 *) # Bourne compatible functions. 15593 cat << \_LT_EOF >> "$cfgfile" 15594 15595# func_dirname file append nondir_replacement 15596# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15597# otherwise set result to NONDIR_REPLACEMENT. 15598func_dirname () 15599{ 15600 # Extract subdirectory from the argument. 15601 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15602 if test "X$func_dirname_result" = "X${1}"; then 15603 func_dirname_result="${3}" 15604 else 15605 func_dirname_result="$func_dirname_result${2}" 15606 fi 15607} 15608 15609# func_basename file 15610func_basename () 15611{ 15612 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15613} 15614 15615 15616# func_stripname prefix suffix name 15617# strip PREFIX and SUFFIX off of NAME. 15618# PREFIX and SUFFIX must not contain globbing or regex special 15619# characters, hashes, percent signs, but SUFFIX may contain a leading 15620# dot (in which case that matches only a dot). 15621# func_strip_suffix prefix name 15622func_stripname () 15623{ 15624 case ${2} in 15625 .*) func_stripname_result=`$ECHO "X${3}" \ 15626 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15627 *) func_stripname_result=`$ECHO "X${3}" \ 15628 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15629 esac 15630} 15631 15632# sed scripts: 15633my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15634my_sed_long_arg='1s/^-[^=]*=//' 15635 15636# func_opt_split 15637func_opt_split () 15638{ 15639 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15640 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15641} 15642 15643# func_lo2o object 15644func_lo2o () 15645{ 15646 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15647} 15648 15649# func_xform libobj-or-source 15650func_xform () 15651{ 15652 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15653} 15654 15655# func_arith arithmetic-term... 15656func_arith () 15657{ 15658 func_arith_result=`expr "$@"` 15659} 15660 15661# func_len string 15662# STRING may not start with a hyphen. 15663func_len () 15664{ 15665 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15666} 15667 15668_LT_EOF 15669esac 15670 15671case $lt_shell_append in 15672 yes) 15673 cat << \_LT_EOF >> "$cfgfile" 15674 15675# func_append var value 15676# Append VALUE to the end of shell variable VAR. 15677func_append () 15678{ 15679 eval "$1+=\$2" 15680} 15681_LT_EOF 15682 ;; 15683 *) 15684 cat << \_LT_EOF >> "$cfgfile" 15685 15686# func_append var value 15687# Append VALUE to the end of shell variable VAR. 15688func_append () 15689{ 15690 eval "$1=\$$1\$2" 15691} 15692 15693_LT_EOF 15694 ;; 15695 esac 15696 15697 15698 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15699 || (rm -f "$cfgfile"; exit 1) 15700 15701 mv -f "$cfgfile" "$ofile" || 15702 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15703 chmod +x "$ofile" 15704 15705 ;; 15706 15707 esac 15708done # for ac_tag 15709 15710 15711{ (exit 0); exit 0; } 15712_ACEOF 15713chmod +x $CONFIG_STATUS 15714ac_clean_files=$ac_clean_files_save 15715 15716test $ac_write_fail = 0 || 15717 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15718$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15719 { (exit 1); exit 1; }; } 15720 15721 15722# configure is writing to config.log, and then calls config.status. 15723# config.status does its own redirection, appending to config.log. 15724# Unfortunately, on DOS this fails, as config.log is still kept open 15725# by configure, so config.status won't be able to write to it; its 15726# output is simply discarded. So we exec the FD to /dev/null, 15727# effectively closing config.log, so it can be properly (re)opened and 15728# appended to by config.status. When coming back to configure, we 15729# need to make the FD available again. 15730if test "$no_create" != yes; then 15731 ac_cs_success=: 15732 ac_config_status_args= 15733 test "$silent" = yes && 15734 ac_config_status_args="$ac_config_status_args --quiet" 15735 exec 5>/dev/null 15736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15737 exec 5>>config.log 15738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15739 # would make configure fail if this is the last instruction. 15740 $ac_cs_success || { (exit 1); exit 1; } 15741fi 15742if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15743 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 15744$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 15745fi 15746 15747