1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sqlite 3.36.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (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 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 558# Check that we are running under the correct shell. 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561case X$lt_ECHO in 562X*--fallback-echo) 563 # Remove one level of quotation (which was required for Make). 564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 565 ;; 566esac 567 568ECHO=${lt_ECHO-echo} 569if test "X$1" = X--no-reexec; then 570 # Discard the --no-reexec flag, and continue. 571 shift 572elif test "X$1" = X--fallback-echo; then 573 # Avoid inline document here, it may be left over 574 : 575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 576 # Yippee, $ECHO works! 577 : 578else 579 # Restart under the correct shell. 580 exec $SHELL "$0" --no-reexec ${1+"$@"} 581fi 582 583if test "X$1" = X--fallback-echo; then 584 # used as fallback echo 585 shift 586 cat <<_LT_EOF 587$* 588_LT_EOF 589 exit 0 590fi 591 592# The HP-UX ksh and POSIX shell print the target directory to stdout 593# if CDPATH is set. 594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 595 596if test -z "$lt_ECHO"; then 597 if test "X${echo_test_string+set}" != Xset; then 598 # find a string as large as possible, as long as the shell can cope with it 599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 601 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 603 then 604 break 605 fi 606 done 607 fi 608 609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 : 613 else 614 # The Solaris, AIX, and Digital Unix default echo programs unquote 615 # backslashes. This makes it impossible to quote backslashes using 616 # echo "$something" | sed 's/\\/\\\\/g' 617 # 618 # So, first we look for a working echo in the user's PATH. 619 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 621 for dir in $PATH /usr/ucb; do 622 IFS="$lt_save_ifs" 623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 ECHO="$dir/echo" 628 break 629 fi 630 done 631 IFS="$lt_save_ifs" 632 633 if test "X$ECHO" = Xecho; then 634 # We didn't find a better echo, so look for alternatives. 635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 637 test "X$echo_testing_string" = "X$echo_test_string"; then 638 # This shell has a builtin print -r that does the trick. 639 ECHO='print -r' 640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 641 test "X$CONFIG_SHELL" != X/bin/ksh; then 642 # If we have ksh, try running configure again with it. 643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 644 export ORIGINAL_CONFIG_SHELL 645 CONFIG_SHELL=/bin/ksh 646 export CONFIG_SHELL 647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 648 else 649 # Try using printf. 650 ECHO='printf %s\n' 651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 653 test "X$echo_testing_string" = "X$echo_test_string"; then 654 # Cool, printf works 655 : 656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 657 test "X$echo_testing_string" = 'X\t' && 658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 659 test "X$echo_testing_string" = "X$echo_test_string"; then 660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 661 export CONFIG_SHELL 662 SHELL="$CONFIG_SHELL" 663 export SHELL 664 ECHO="$CONFIG_SHELL $0 --fallback-echo" 665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 666 test "X$echo_testing_string" = 'X\t' && 667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 668 test "X$echo_testing_string" = "X$echo_test_string"; then 669 ECHO="$CONFIG_SHELL $0 --fallback-echo" 670 else 671 # maybe with a smaller string... 672 prev=: 673 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 676 then 677 break 678 fi 679 prev="$cmd" 680 done 681 682 if test "$prev" != 'sed 50q "$0"'; then 683 echo_test_string=`eval $prev` 684 export echo_test_string 685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 686 else 687 # Oops. We lost completely, so just stick with echo. 688 ECHO=echo 689 fi 690 fi 691 fi 692 fi 693 fi 694fi 695 696# Copy echo and quote the copy suitably for passing to libtool from 697# the Makefile, instead of quoting the original, which is used later. 698lt_ECHO=$ECHO 699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 701fi 702 703 704 705 706test -n "$DJDIR" || exec 7<&0 </dev/null 707exec 6>&1 708 709# Name of the host. 710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 711# so uname gets run too. 712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714# 715# Initializations. 716# 717ac_default_prefix=/usr/local 718ac_clean_files= 719ac_config_libobj_dir=. 720LIBOBJS= 721cross_compiling=no 722subdirs= 723MFLAGS= 724MAKEFLAGS= 725 726# Identity of this package. 727PACKAGE_NAME='sqlite' 728PACKAGE_TARNAME='sqlite' 729PACKAGE_VERSION='3.36.0' 730PACKAGE_STRING='sqlite 3.36.0' 731PACKAGE_BUGREPORT='' 732PACKAGE_URL='' 733 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='LTLIBOBJS 771LIBOBJS 772BUILD_CFLAGS 773USE_GCOV 774OPT_FEATURE_FLAGS 775HAVE_ZLIB 776USE_AMALGAMATION 777TARGET_DEBUG 778TARGET_HAVE_EDITLINE 779TARGET_HAVE_READLINE 780TARGET_READLINE_INC 781TARGET_READLINE_LIBS 782HAVE_TCL 783TCL_SHLIB_SUFFIX 784TCL_STUB_LIB_SPEC 785TCL_STUB_LIB_FLAG 786TCL_STUB_LIB_FILE 787TCL_LIB_SPEC 788TCL_LIB_FLAG 789TCL_LIB_FILE 790TCL_INCLUDE_SPEC 791TCL_SRC_DIR 792TCL_BIN_DIR 793TCL_VERSION 794TARGET_EXEEXT 795SQLITE_OS_WIN 796SQLITE_OS_UNIX 797BUILD_EXEEXT 798TEMP_STORE 799ALLOWRELEASE 800SQLITE_THREADSAFE 801BUILD_CC 802RELEASE 803VERSION 804program_prefix 805TCLLIBDIR 806TCLSH_CMD 807INSTALL_DATA 808INSTALL_SCRIPT 809INSTALL_PROGRAM 810CPP 811OTOOL64 812OTOOL 813LIPO 814NMEDIT 815DSYMUTIL 816lt_ECHO 817RANLIB 818STRIP 819AR 820OBJDUMP 821LN_S 822NM 823ac_ct_DUMPBIN 824DUMPBIN 825LD 826FGREP 827EGREP 828GREP 829SED 830OBJEXT 831EXEEXT 832ac_ct_CC 833CPPFLAGS 834LDFLAGS 835CFLAGS 836CC 837host_os 838host_vendor 839host_cpu 840host 841build_os 842build_vendor 843build_cpu 844build 845LIBTOOL 846target_alias 847host_alias 848build_alias 849LIBS 850ECHO_T 851ECHO_N 852ECHO_C 853DEFS 854mandir 855localedir 856libdir 857psdir 858pdfdir 859dvidir 860htmldir 861infodir 862docdir 863oldincludedir 864includedir 865localstatedir 866sharedstatedir 867sysconfdir 868datadir 869datarootdir 870libexecdir 871sbindir 872bindir 873program_transform_name 874prefix 875exec_prefix 876PACKAGE_URL 877PACKAGE_BUGREPORT 878PACKAGE_STRING 879PACKAGE_VERSION 880PACKAGE_TARNAME 881PACKAGE_NAME 882PATH_SEPARATOR 883SHELL' 884ac_subst_files='' 885ac_user_opts=' 886enable_option_checking 887enable_shared 888enable_static 889with_pic 890enable_fast_install 891with_gnu_ld 892enable_libtool_lock 893enable_largefile 894enable_threadsafe 895enable_releasemode 896enable_tempstore 897enable_tcl 898with_tcl 899enable_editline 900enable_readline 901with_readline_lib 902with_readline_inc 903enable_debug 904enable_amalgamation 905enable_load_extension 906enable_math 907enable_all 908enable_memsys5 909enable_memsys3 910enable_fts3 911enable_fts4 912enable_fts5 913enable_json1 914enable_update_limit 915enable_geopoly 916enable_rtree 917enable_session 918enable_gcov 919' 920 ac_precious_vars='build_alias 921host_alias 922target_alias 923CC 924CFLAGS 925LDFLAGS 926LIBS 927CPPFLAGS 928CPP 929TCLLIBDIR' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *=) ac_optarg= ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error $? "invalid feature name: $ac_useropt" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044"enable_$ac_useropt" 1045"*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=no ;; 1050 1051 -docdir | --docdir | --docdi | --doc | --do) 1052 ac_prev=docdir ;; 1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1054 docdir=$ac_optarg ;; 1055 1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1057 ac_prev=dvidir ;; 1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1059 dvidir=$ac_optarg ;; 1060 1061 -enable-* | --enable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1221 ac_prev=sbindir ;; 1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1223 | --sbi=* | --sb=*) 1224 sbindir=$ac_optarg ;; 1225 1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1228 | --sharedst | --shareds | --shared | --share | --shar \ 1229 | --sha | --sh) 1230 ac_prev=sharedstatedir ;; 1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1234 | --sha=* | --sh=*) 1235 sharedstatedir=$ac_optarg ;; 1236 1237 -site | --site | --sit) 1238 ac_prev=site ;; 1239 -site=* | --site=* | --sit=*) 1240 site=$ac_optarg ;; 1241 1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1243 ac_prev=srcdir ;; 1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1245 srcdir=$ac_optarg ;; 1246 1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1248 | --syscon | --sysco | --sysc | --sys | --sy) 1249 ac_prev=sysconfdir ;; 1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1252 sysconfdir=$ac_optarg ;; 1253 1254 -target | --target | --targe | --targ | --tar | --ta | --t) 1255 ac_prev=target_alias ;; 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1257 target_alias=$ac_optarg ;; 1258 1259 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1260 verbose=yes ;; 1261 1262 -version | --version | --versio | --versi | --vers | -V) 1263 ac_init_version=: ;; 1264 1265 -with-* | --with-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 as_fn_error $? "invalid package name: $ac_useropt" 1270 ac_useropt_orig=$ac_useropt 1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1272 case $ac_user_opts in 1273 *" 1274"with_$ac_useropt" 1275"*) ;; 1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1277 ac_unrecognized_sep=', ';; 1278 esac 1279 eval with_$ac_useropt=\$ac_optarg ;; 1280 1281 -without-* | --without-*) 1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1283 # Reject names that are not valid shell variable names. 1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1285 as_fn_error $? "invalid package name: $ac_useropt" 1286 ac_useropt_orig=$ac_useropt 1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1288 case $ac_user_opts in 1289 *" 1290"with_$ac_useropt" 1291"*) ;; 1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1293 ac_unrecognized_sep=', ';; 1294 esac 1295 eval with_$ac_useropt=no ;; 1296 1297 --x) 1298 # Obsolete; use --with-x. 1299 with_x=yes ;; 1300 1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1302 | --x-incl | --x-inc | --x-in | --x-i) 1303 ac_prev=x_includes ;; 1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1306 x_includes=$ac_optarg ;; 1307 1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1310 ac_prev=x_libraries ;; 1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1313 x_libraries=$ac_optarg ;; 1314 1315 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1316Try \`$0 --help' for more information" 1317 ;; 1318 1319 *=*) 1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1321 # Reject names that are not valid shell variable names. 1322 case $ac_envvar in #( 1323 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1325 esac 1326 eval $ac_envvar=\$ac_optarg 1327 export $ac_envvar ;; 1328 1329 *) 1330 # FIXME: should be removed in autoconf 3.0. 1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1335 ;; 1336 1337 esac 1338done 1339 1340if test -n "$ac_prev"; then 1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1342 as_fn_error $? "missing argument to $ac_option" 1343fi 1344 1345if test -n "$ac_unrecognized_opts"; then 1346 case $enable_option_checking in 1347 no) ;; 1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1350 esac 1351fi 1352 1353# Check all directory arguments for consistency. 1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1355 datadir sysconfdir sharedstatedir localstatedir includedir \ 1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1357 libdir localedir mandir 1358do 1359 eval ac_val=\$$ac_var 1360 # Remove trailing slashes. 1361 case $ac_val in 1362 */ ) 1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1364 eval $ac_var=\$ac_val;; 1365 esac 1366 # Be sure to have absolute directory names. 1367 case $ac_val in 1368 [\\/$]* | ?:[\\/]* ) continue;; 1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1370 esac 1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1372done 1373 1374# There might be people who depend on the old broken behavior: `$host' 1375# used to hold the argument of --host etc. 1376# FIXME: To remove some day. 1377build=$build_alias 1378host=$host_alias 1379target=$target_alias 1380 1381# FIXME: To remove some day. 1382if test "x$host_alias" != x; then 1383 if test "x$build_alias" = x; then 1384 cross_compiling=maybe 1385 elif test "x$build_alias" != "x$host_alias"; then 1386 cross_compiling=yes 1387 fi 1388fi 1389 1390ac_tool_prefix= 1391test -n "$host_alias" && ac_tool_prefix=$host_alias- 1392 1393test "$silent" = yes && exec 6>/dev/null 1394 1395 1396ac_pwd=`pwd` && test -n "$ac_pwd" && 1397ac_ls_di=`ls -di .` && 1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1399 as_fn_error $? "working directory cannot be determined" 1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1401 as_fn_error $? "pwd does not report name of working directory" 1402 1403 1404# Find the source files, if location was not specified. 1405if test -z "$srcdir"; then 1406 ac_srcdir_defaulted=yes 1407 # Try the directory containing this script, then the parent directory. 1408 ac_confdir=`$as_dirname -- "$as_myself" || 1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1410 X"$as_myself" : 'X\(//\)[^/]' \| \ 1411 X"$as_myself" : 'X\(//\)$' \| \ 1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1413$as_echo X"$as_myself" | 1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\/\)[^/].*/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)$/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\).*/{ 1427 s//\1/ 1428 q 1429 } 1430 s/.*/./; q'` 1431 srcdir=$ac_confdir 1432 if test ! -r "$srcdir/$ac_unique_file"; then 1433 srcdir=.. 1434 fi 1435else 1436 ac_srcdir_defaulted=no 1437fi 1438if test ! -r "$srcdir/$ac_unique_file"; then 1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1441fi 1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1443ac_abs_confdir=`( 1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1445 pwd)` 1446# When building in place, set srcdir=. 1447if test "$ac_abs_confdir" = "$ac_pwd"; then 1448 srcdir=. 1449fi 1450# Remove unnecessary trailing slashes from srcdir. 1451# Double slashes in file names in object file debugging info 1452# mess up M-x gdb in Emacs. 1453case $srcdir in 1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1455esac 1456for ac_var in $ac_precious_vars; do 1457 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_env_${ac_var}_value=\$${ac_var} 1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1460 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1461done 1462 1463# 1464# Report the --help message. 1465# 1466if test "$ac_init_help" = "long"; then 1467 # Omit some internal or obsolete options to make the list less imposing. 1468 # This message is too long to be a string in the A/UX 3.1 sh. 1469 cat <<_ACEOF 1470\`configure' configures sqlite 3.36.0 to adapt to many kinds of systems. 1471 1472Usage: $0 [OPTION]... [VAR=VALUE]... 1473 1474To assign environment variables (e.g., CC, CFLAGS...), specify them as 1475VAR=VALUE. See below for descriptions of some of the useful variables. 1476 1477Defaults for the options are specified in brackets. 1478 1479Configuration: 1480 -h, --help display this help and exit 1481 --help=short display options specific to this package 1482 --help=recursive display the short help of all the included packages 1483 -V, --version display version information and exit 1484 -q, --quiet, --silent do not print \`checking ...' messages 1485 --cache-file=FILE cache test results in FILE [disabled] 1486 -C, --config-cache alias for \`--cache-file=config.cache' 1487 -n, --no-create do not create output files 1488 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1489 1490Installation directories: 1491 --prefix=PREFIX install architecture-independent files in PREFIX 1492 [$ac_default_prefix] 1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1494 [PREFIX] 1495 1496By default, \`make install' will install all the files in 1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1498an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1499for instance \`--prefix=\$HOME'. 1500 1501For better control, use the options below. 1502 1503Fine tuning of the installation directories: 1504 --bindir=DIR user executables [EPREFIX/bin] 1505 --sbindir=DIR system admin executables [EPREFIX/sbin] 1506 --libexecdir=DIR program executables [EPREFIX/libexec] 1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1510 --libdir=DIR object code libraries [EPREFIX/lib] 1511 --includedir=DIR C header files [PREFIX/include] 1512 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1515 --infodir=DIR info documentation [DATAROOTDIR/info] 1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1517 --mandir=DIR man documentation [DATAROOTDIR/man] 1518 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1519 --htmldir=DIR html documentation [DOCDIR] 1520 --dvidir=DIR dvi documentation [DOCDIR] 1521 --pdfdir=DIR pdf documentation [DOCDIR] 1522 --psdir=DIR ps documentation [DOCDIR] 1523_ACEOF 1524 1525 cat <<\_ACEOF 1526 1527System types: 1528 --build=BUILD configure for building on BUILD [guessed] 1529 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1530_ACEOF 1531fi 1532 1533if test -n "$ac_init_help"; then 1534 case $ac_init_help in 1535 short | recursive ) echo "Configuration of sqlite 3.36.0:";; 1536 esac 1537 cat <<\_ACEOF 1538 1539Optional Features: 1540 --disable-option-checking ignore unrecognized --enable/--with options 1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1543 --enable-shared[=PKGS] build shared libraries [default=yes] 1544 --enable-static[=PKGS] build static libraries [default=yes] 1545 --enable-fast-install[=PKGS] 1546 optimize for fast installation [default=yes] 1547 --disable-libtool-lock avoid locking (might break parallel builds) 1548 --disable-largefile omit support for large files 1549 --disable-threadsafe Disable mutexing 1550 --enable-releasemode Support libtool link to release mode 1551 --enable-tempstore Use an in-ram database for temporary tables 1552 (never,no,yes,always) 1553 --disable-tcl do not build TCL extension 1554 --enable-editline enable BSD editline support 1555 --disable-readline disable readline support 1556 --enable-debug enable debugging & verbose explain 1557 --disable-amalgamation Disable the amalgamation and instead build all files 1558 separately 1559 --disable-load-extension 1560 Disable loading of external extensions 1561 --disable-math Disable math functions 1562 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions 1563 --enable-memsys5 Enable MEMSYS5 1564 --enable-memsys3 Enable MEMSYS3 1565 --enable-fts3 Enable the FTS3 extension 1566 --enable-fts4 Enable the FTS4 extension 1567 --enable-fts5 Enable the FTS5 extension 1568 --enable-json1 Enable the JSON1 extension 1569 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause 1570 --enable-geopoly Enable the GEOPOLY extension 1571 --enable-rtree Enable the RTREE extension 1572 --enable-session Enable the SESSION extension 1573 --enable-gcov Enable coverage testing using gcov 1574 1575Optional Packages: 1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1578 --with-pic try to use only PIC/non-PIC objects [default=use 1579 both] 1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1581 --with-tcl=DIR directory containing tcl configuration 1582 (tclConfig.sh) 1583 --with-readline-lib specify readline library 1584 --with-readline-inc specify readline include paths 1585 1586Some influential environment variables: 1587 CC C compiler command 1588 CFLAGS C compiler flags 1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1590 nonstandard directory <lib dir> 1591 LIBS libraries to pass to the linker, e.g. -l<library> 1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1593 you have headers in a nonstandard directory <include dir> 1594 CPP C preprocessor 1595 TCLLIBDIR Where to install tcl plugin 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600Report bugs to the package provider. 1601_ACEOF 1602ac_status=$? 1603fi 1604 1605if test "$ac_init_help" = "recursive"; then 1606 # If there are subdirs, report their specific --help. 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1608 test -d "$ac_dir" || 1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1610 continue 1611 ac_builddir=. 1612 1613case "$ac_dir" in 1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615*) 1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1617 # A ".." for each directory in $ac_dir_suffix. 1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1619 case $ac_top_builddir_sub in 1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1622 esac ;; 1623esac 1624ac_abs_top_builddir=$ac_pwd 1625ac_abs_builddir=$ac_pwd$ac_dir_suffix 1626# for backward compatibility: 1627ac_top_builddir=$ac_top_build_prefix 1628 1629case $srcdir in 1630 .) # We are building in place. 1631 ac_srcdir=. 1632 ac_top_srcdir=$ac_top_builddir_sub 1633 ac_abs_top_srcdir=$ac_pwd ;; 1634 [\\/]* | ?:[\\/]* ) # Absolute name. 1635 ac_srcdir=$srcdir$ac_dir_suffix; 1636 ac_top_srcdir=$srcdir 1637 ac_abs_top_srcdir=$srcdir ;; 1638 *) # Relative name. 1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1640 ac_top_srcdir=$ac_top_build_prefix$srcdir 1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1642esac 1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1644 1645 cd "$ac_dir" || { ac_status=$?; continue; } 1646 # Check for guested configure. 1647 if test -f "$ac_srcdir/configure.gnu"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1650 elif test -f "$ac_srcdir/configure"; then 1651 echo && 1652 $SHELL "$ac_srcdir/configure" --help=recursive 1653 else 1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1655 fi || ac_status=$? 1656 cd "$ac_pwd" || { ac_status=$?; break; } 1657 done 1658fi 1659 1660test -n "$ac_init_help" && exit $ac_status 1661if $ac_init_version; then 1662 cat <<\_ACEOF 1663sqlite configure 3.36.0 1664generated by GNU Autoconf 2.69 1665 1666Copyright (C) 2012 Free Software Foundation, Inc. 1667This configure script is free software; the Free Software Foundation 1668gives unlimited permission to copy, distribute and modify it. 1669_ACEOF 1670 exit 1671fi 1672 1673## ------------------------ ## 1674## Autoconf initialization. ## 1675## ------------------------ ## 1676 1677# ac_fn_c_try_compile LINENO 1678# -------------------------- 1679# Try to compile conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_compile () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext 1684 if { { ac_try="$ac_compile" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_compile") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest.$ac_objext; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_compile 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 test -x conftest$ac_exeext 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1753 # interfere with the next link command; also delete a directory that is 1754 # left behind by Apple's compiler. We do this before executing the actions. 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_link 1760 1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1762# ------------------------------------------------------- 1763# Tests whether HEADER exists and can be compiled using the include files in 1764# INCLUDES, setting the cache variable VAR accordingly. 1765ac_fn_c_check_header_compile () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1769$as_echo_n "checking for $2... " >&6; } 1770if eval \${$3+:} false; then : 1771 $as_echo_n "(cached) " >&6 1772else 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775$4 1776#include <$2> 1777_ACEOF 1778if ac_fn_c_try_compile "$LINENO"; then : 1779 eval "$3=yes" 1780else 1781 eval "$3=no" 1782fi 1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_header_compile 1791 1792# ac_fn_c_try_cpp LINENO 1793# ---------------------- 1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1795ac_fn_c_try_cpp () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 if { { ac_try="$ac_cpp conftest.$ac_ext" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } > conftest.i && { 1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1815 test ! -s conftest.err 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_c_try_cpp 1828 1829# ac_fn_c_try_run LINENO 1830# ---------------------- 1831# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1832# that executables *can* be run. 1833ac_fn_c_try_run () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 if { { ac_try="$ac_link" 1837case "(($ac_try" in 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1839 *) ac_try_echo=$ac_try;; 1840esac 1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1842$as_echo "$ac_try_echo"; } >&5 1843 (eval "$ac_link") 2>&5 1844 ac_status=$? 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1847 { { case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_try") 2>&5 1854 ac_status=$? 1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1856 test $ac_status = 0; }; }; then : 1857 ac_retval=0 1858else 1859 $as_echo "$as_me: program exited with status $ac_status" >&5 1860 $as_echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863 ac_retval=$ac_status 1864fi 1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 as_fn_set_status $ac_retval 1868 1869} # ac_fn_c_try_run 1870 1871# ac_fn_c_check_func LINENO FUNC VAR 1872# ---------------------------------- 1873# Tests whether FUNC exists, setting the cache variable VAR accordingly 1874ac_fn_c_check_func () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1878$as_echo_n "checking for $2... " >&6; } 1879if eval \${$3+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881else 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1886#define $2 innocuous_$2 1887 1888/* System header to define __stub macros and hopefully few prototypes, 1889 which can conflict with char $2 (); below. 1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1891 <limits.h> exists even on freestanding compilers. */ 1892 1893#ifdef __STDC__ 1894# include <limits.h> 1895#else 1896# include <assert.h> 1897#endif 1898 1899#undef $2 1900 1901/* Override any GCC internal prototype to avoid an error. 1902 Use char because int might match the return type of a GCC 1903 builtin and then its argument prototype would still apply. */ 1904#ifdef __cplusplus 1905extern "C" 1906#endif 1907char $2 (); 1908/* The GNU C library defines this for functions which it implements 1909 to always fail with ENOSYS. Some functions are actually named 1910 something starting with __ and the normal name is an alias. */ 1911#if defined __stub_$2 || defined __stub___$2 1912choke me 1913#endif 1914 1915int 1916main () 1917{ 1918return $2 (); 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_link "$LINENO"; then : 1924 eval "$3=yes" 1925else 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext \ 1929 conftest$ac_exeext conftest.$ac_ext 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_check_func 1937 1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1939# ------------------------------------------- 1940# Tests whether TYPE exists after having included INCLUDES, setting cache 1941# variable VAR accordingly. 1942ac_fn_c_check_type () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1946$as_echo_n "checking for $2... " >&6; } 1947if eval \${$3+:} false; then : 1948 $as_echo_n "(cached) " >&6 1949else 1950 eval "$3=no" 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954int 1955main () 1956{ 1957if (sizeof ($2)) 1958 return 0; 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966$4 1967int 1968main () 1969{ 1970if (sizeof (($2))) 1971 return 0; 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_compile "$LINENO"; then : 1977 1978else 1979 eval "$3=yes" 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982fi 1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1984fi 1985eval ac_res=\$$3 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987$as_echo "$ac_res" >&6; } 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_type 1991 1992# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1993# ------------------------------------------------------- 1994# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1995# the include files in INCLUDES and setting the cache variable VAR 1996# accordingly. 1997ac_fn_c_check_header_mongrel () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 if eval \${$3+:} false; then : 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2002$as_echo_n "checking for $2... " >&6; } 2003if eval \${$3+:} false; then : 2004 $as_echo_n "(cached) " >&6 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009else 2010 # Is the header compilable? 2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2012$as_echo_n "checking $2 usability... " >&6; } 2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$4 2016#include <$2> 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO"; then : 2019 ac_header_compiler=yes 2020else 2021 ac_header_compiler=no 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2025$as_echo "$ac_header_compiler" >&6; } 2026 2027# Is the header present? 2028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2029$as_echo_n "checking $2 presence... " >&6; } 2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032#include <$2> 2033_ACEOF 2034if ac_fn_c_try_cpp "$LINENO"; then : 2035 ac_header_preproc=yes 2036else 2037 ac_header_preproc=no 2038fi 2039rm -f conftest.err conftest.i conftest.$ac_ext 2040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2041$as_echo "$ac_header_preproc" >&6; } 2042 2043# So? What about this header? 2044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2045 yes:no: ) 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2047$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2050 ;; 2051 no:yes:* ) 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2053$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2055$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2057$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2059$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2062 ;; 2063esac 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065$as_echo_n "checking for $2... " >&6; } 2066if eval \${$3+:} false; then : 2067 $as_echo_n "(cached) " >&6 2068else 2069 eval "$3=\$ac_header_compiler" 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074fi 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 2077} # ac_fn_c_check_header_mongrel 2078cat >config.log <<_ACEOF 2079This file contains any messages produced by compilers while 2080running configure, to aid debugging if configure makes a mistake. 2081 2082It was created by sqlite $as_me 3.36.0, which was 2083generated by GNU Autoconf 2.69. Invocation command line was 2084 2085 $ $0 $@ 2086 2087_ACEOF 2088exec 5>>config.log 2089{ 2090cat <<_ASUNAME 2091## --------- ## 2092## Platform. ## 2093## --------- ## 2094 2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2096uname -m = `(uname -m) 2>/dev/null || echo unknown` 2097uname -r = `(uname -r) 2>/dev/null || echo unknown` 2098uname -s = `(uname -s) 2>/dev/null || echo unknown` 2099uname -v = `(uname -v) 2>/dev/null || echo unknown` 2100 2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2103 2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2111 2112_ASUNAME 2113 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 $as_echo "PATH: $as_dir" 2120 done 2121IFS=$as_save_IFS 2122 2123} >&5 2124 2125cat >&5 <<_ACEOF 2126 2127 2128## ----------- ## 2129## Core tests. ## 2130## ----------- ## 2131 2132_ACEOF 2133 2134 2135# Keep a trace of the command line. 2136# Strip out --no-create and --no-recursion so they do not pile up. 2137# Strip out --silent because we don't want to record it for future runs. 2138# Also quote any args containing shell meta-characters. 2139# Make two passes to allow for proper duplicate-argument suppression. 2140ac_configure_args= 2141ac_configure_args0= 2142ac_configure_args1= 2143ac_must_keep_next=false 2144for ac_pass in 1 2 2145do 2146 for ac_arg 2147 do 2148 case $ac_arg in 2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2151 | -silent | --silent | --silen | --sile | --sil) 2152 continue ;; 2153 *\'*) 2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 esac 2156 case $ac_pass in 2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2158 2) 2159 as_fn_append ac_configure_args1 " '$ac_arg'" 2160 if test $ac_must_keep_next = true; then 2161 ac_must_keep_next=false # Got value, back to normal. 2162 else 2163 case $ac_arg in 2164 *=* | --config-cache | -C | -disable-* | --disable-* \ 2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2167 | -with-* | --with-* | -without-* | --without-* | --x) 2168 case "$ac_configure_args0 " in 2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2170 esac 2171 ;; 2172 -* ) ac_must_keep_next=true ;; 2173 esac 2174 fi 2175 as_fn_append ac_configure_args " '$ac_arg'" 2176 ;; 2177 esac 2178 done 2179done 2180{ ac_configure_args0=; unset ac_configure_args0;} 2181{ ac_configure_args1=; unset ac_configure_args1;} 2182 2183# When interrupted or exit'd, cleanup temporary files, and complete 2184# config.log. We remove comments because anyway the quotes in there 2185# would cause problems or look ugly. 2186# WARNING: Use '\'' to represent an apostrophe within the trap. 2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2188trap 'exit_status=$? 2189 # Save into config.log some information that might help in debugging. 2190 { 2191 echo 2192 2193 $as_echo "## ---------------- ## 2194## Cache variables. ## 2195## ---------------- ##" 2196 echo 2197 # The following way of writing the cache mishandles newlines in values, 2198( 2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in #( 2202 *${as_nl}*) 2203 case $ac_var in #( 2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2206 esac 2207 case $ac_var in #( 2208 _ | IFS | as_nl) ;; #( 2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2210 *) { eval $ac_var=; unset $ac_var;} ;; 2211 esac ;; 2212 esac 2213 done 2214 (set) 2>&1 | 2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2216 *${as_nl}ac_space=\ *) 2217 sed -n \ 2218 "s/'\''/'\''\\\\'\'''\''/g; 2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2220 ;; #( 2221 *) 2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2223 ;; 2224 esac | 2225 sort 2226) 2227 echo 2228 2229 $as_echo "## ----------------- ## 2230## Output variables. ## 2231## ----------------- ##" 2232 echo 2233 for ac_var in $ac_subst_vars 2234 do 2235 eval ac_val=\$$ac_var 2236 case $ac_val in 2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2238 esac 2239 $as_echo "$ac_var='\''$ac_val'\''" 2240 done | sort 2241 echo 2242 2243 if test -n "$ac_subst_files"; then 2244 $as_echo "## ------------------- ## 2245## File substitutions. ## 2246## ------------------- ##" 2247 echo 2248 for ac_var in $ac_subst_files 2249 do 2250 eval ac_val=\$$ac_var 2251 case $ac_val in 2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2253 esac 2254 $as_echo "$ac_var='\''$ac_val'\''" 2255 done | sort 2256 echo 2257 fi 2258 2259 if test -s confdefs.h; then 2260 $as_echo "## ----------- ## 2261## confdefs.h. ## 2262## ----------- ##" 2263 echo 2264 cat confdefs.h 2265 echo 2266 fi 2267 test "$ac_signal" != 0 && 2268 $as_echo "$as_me: caught signal $ac_signal" 2269 $as_echo "$as_me: exit $exit_status" 2270 } >&5 2271 rm -f core *.core core.conftest.* && 2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2273 exit $exit_status 2274' 0 2275for ac_signal in 1 2 13 15; do 2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2277done 2278ac_signal=0 2279 2280# confdefs.h avoids OS command line length limits that DEFS can exceed. 2281rm -f -r conftest* confdefs.h 2282 2283$as_echo "/* confdefs.h */" > confdefs.h 2284 2285# Predefined preprocessor variables. 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_NAME "$PACKAGE_NAME" 2289_ACEOF 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2293_ACEOF 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_VERSION "$PACKAGE_VERSION" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_STRING "$PACKAGE_STRING" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2305_ACEOF 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_URL "$PACKAGE_URL" 2309_ACEOF 2310 2311 2312# Let the site file select an alternate cache file if it wants to. 2313# Prefer an explicitly selected file to automatically selected ones. 2314ac_site_file1=NONE 2315ac_site_file2=NONE 2316if test -n "$CONFIG_SITE"; then 2317 # We do not want a PATH search for config.site. 2318 case $CONFIG_SITE in #(( 2319 -*) ac_site_file1=./$CONFIG_SITE;; 2320 */*) ac_site_file1=$CONFIG_SITE;; 2321 *) ac_site_file1=./$CONFIG_SITE;; 2322 esac 2323elif test "x$prefix" != xNONE; then 2324 ac_site_file1=$prefix/share/config.site 2325 ac_site_file2=$prefix/etc/config.site 2326else 2327 ac_site_file1=$ac_default_prefix/share/config.site 2328 ac_site_file2=$ac_default_prefix/etc/config.site 2329fi 2330for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2331do 2332 test "x$ac_site_file" = xNONE && continue 2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2335$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2336 sed 's/^/| /' "$ac_site_file" >&5 2337 . "$ac_site_file" \ 2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2340as_fn_error $? "failed to load site script $ac_site_file 2341See \`config.log' for more details" "$LINENO" 5; } 2342 fi 2343done 2344 2345if test -r "$cache_file"; then 2346 # Some versions of bash will fail to source /dev/null (special files 2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2350$as_echo "$as_me: loading cache $cache_file" >&6;} 2351 case $cache_file in 2352 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2353 *) . "./$cache_file";; 2354 esac 2355 fi 2356else 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2358$as_echo "$as_me: creating cache $cache_file" >&6;} 2359 >$cache_file 2360fi 2361 2362# Check that the precious variables saved in the cache have kept the same 2363# value. 2364ac_cache_corrupted=false 2365for ac_var in $ac_precious_vars; do 2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2367 eval ac_new_set=\$ac_env_${ac_var}_set 2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2369 eval ac_new_val=\$ac_env_${ac_var}_value 2370 case $ac_old_set,$ac_new_set in 2371 set,) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2374 ac_cache_corrupted=: ;; 2375 ,set) 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2378 ac_cache_corrupted=: ;; 2379 ,);; 2380 *) 2381 if test "x$ac_old_val" != "x$ac_new_val"; then 2382 # differences in whitespace do not lead to failure. 2383 ac_old_val_w=`echo x $ac_old_val` 2384 ac_new_val_w=`echo x $ac_new_val` 2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2388 ac_cache_corrupted=: 2389 else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2392 eval $ac_var=\$ac_old_val 2393 fi 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2398 fi;; 2399 esac 2400 # Pass precious variables to config.status. 2401 if test "$ac_new_set" = set; then 2402 case $ac_new_val in 2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2404 *) ac_arg=$ac_var=$ac_new_val ;; 2405 esac 2406 case " $ac_configure_args " in 2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2409 esac 2410 fi 2411done 2412if $ac_cache_corrupted; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2418fi 2419## -------------------- ## 2420## Main body of script. ## 2421## -------------------- ## 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428 2429 2430 2431sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2432if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2433as_fn_error $? "configure script is out of date: 2434 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2435 top level VERSION file = $sqlite_version_sanity_check 2436please regen with autoconf" "$LINENO" 5 2437fi 2438 2439######### 2440# Programs needed 2441# 2442case `pwd` in 2443 *\ * | *\ *) 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2445$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2446esac 2447 2448 2449 2450macro_version='2.2.6' 2451macro_revision='1.3012' 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465ltmain="$ac_aux_dir/ltmain.sh" 2466 2467ac_aux_dir= 2468for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2469 if test -f "$ac_dir/install-sh"; then 2470 ac_aux_dir=$ac_dir 2471 ac_install_sh="$ac_aux_dir/install-sh -c" 2472 break 2473 elif test -f "$ac_dir/install.sh"; then 2474 ac_aux_dir=$ac_dir 2475 ac_install_sh="$ac_aux_dir/install.sh -c" 2476 break 2477 elif test -f "$ac_dir/shtool"; then 2478 ac_aux_dir=$ac_dir 2479 ac_install_sh="$ac_aux_dir/shtool install -c" 2480 break 2481 fi 2482done 2483if test -z "$ac_aux_dir"; then 2484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2485fi 2486 2487# These three variables are undocumented and unsupported, 2488# and are intended to be withdrawn in a future Autoconf release. 2489# They can cause serious problems if a builder's source tree is in a directory 2490# whose full name contains unusual characters. 2491ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2492ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2493ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2494 2495 2496# Make sure we can run config.sub. 2497$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2499 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2501$as_echo_n "checking build system type... " >&6; } 2502if ${ac_cv_build+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 ac_build_alias=$build_alias 2506test "x$ac_build_alias" = x && 2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2508test "x$ac_build_alias" = x && 2509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2512 2513fi 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2515$as_echo "$ac_cv_build" >&6; } 2516case $ac_cv_build in 2517*-*-*) ;; 2518*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2519esac 2520build=$ac_cv_build 2521ac_save_IFS=$IFS; IFS='-' 2522set x $ac_cv_build 2523shift 2524build_cpu=$1 2525build_vendor=$2 2526shift; shift 2527# Remember, the first character of IFS is used to create $*, 2528# except with old shells: 2529build_os=$* 2530IFS=$ac_save_IFS 2531case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2532 2533 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2535$as_echo_n "checking host system type... " >&6; } 2536if ${ac_cv_host+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 if test "x$host_alias" = x; then 2540 ac_cv_host=$ac_cv_build 2541else 2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2544fi 2545 2546fi 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2548$as_echo "$ac_cv_host" >&6; } 2549case $ac_cv_host in 2550*-*-*) ;; 2551*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2552esac 2553host=$ac_cv_host 2554ac_save_IFS=$IFS; IFS='-' 2555set x $ac_cv_host 2556shift 2557host_cpu=$1 2558host_vendor=$2 2559shift; shift 2560# Remember, the first character of IFS is used to create $*, 2561# except with old shells: 2562host_os=$* 2563IFS=$ac_save_IFS 2564case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2565 2566 2567ac_ext=c 2568ac_cpp='$CPP $CPPFLAGS' 2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2571ac_compiler_gnu=$ac_cv_c_compiler_gnu 2572if test -n "$ac_tool_prefix"; then 2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2574set dummy ${ac_tool_prefix}gcc; ac_word=$2 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2576$as_echo_n "checking for $ac_word... " >&6; } 2577if ${ac_cv_prog_CC+:} false; then : 2578 $as_echo_n "(cached) " >&6 2579else 2580 if test -n "$CC"; then 2581 ac_cv_prog_CC="$CC" # Let the user override the test. 2582else 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2590 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2592 break 2 2593 fi 2594done 2595 done 2596IFS=$as_save_IFS 2597 2598fi 2599fi 2600CC=$ac_cv_prog_CC 2601if test -n "$CC"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2603$as_echo "$CC" >&6; } 2604else 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2606$as_echo "no" >&6; } 2607fi 2608 2609 2610fi 2611if test -z "$ac_cv_prog_CC"; then 2612 ac_ct_CC=$CC 2613 # Extract the first word of "gcc", so it can be a program name with args. 2614set dummy gcc; ac_word=$2 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616$as_echo_n "checking for $ac_word... " >&6; } 2617if ${ac_cv_prog_ac_ct_CC+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test -n "$ac_ct_CC"; then 2621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2630 ac_cv_prog_ac_ct_CC="gcc" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635 done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640ac_ct_CC=$ac_cv_prog_ac_ct_CC 2641if test -n "$ac_ct_CC"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2643$as_echo "$ac_ct_CC" >&6; } 2644else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646$as_echo "no" >&6; } 2647fi 2648 2649 if test "x$ac_ct_CC" = x; then 2650 CC="" 2651 else 2652 case $cross_compiling:$ac_tool_warned in 2653yes:) 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2656ac_tool_warned=yes ;; 2657esac 2658 CC=$ac_ct_CC 2659 fi 2660else 2661 CC="$ac_cv_prog_CC" 2662fi 2663 2664if test -z "$CC"; then 2665 if test -n "$ac_tool_prefix"; then 2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2667set dummy ${ac_tool_prefix}cc; ac_word=$2 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2669$as_echo_n "checking for $ac_word... " >&6; } 2670if ${ac_cv_prog_CC+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 if test -n "$CC"; then 2674 ac_cv_prog_CC="$CC" # Let the user override the test. 2675else 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 test -z "$as_dir" && as_dir=. 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2683 ac_cv_prog_CC="${ac_tool_prefix}cc" 2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2685 break 2 2686 fi 2687done 2688 done 2689IFS=$as_save_IFS 2690 2691fi 2692fi 2693CC=$ac_cv_prog_CC 2694if test -n "$CC"; then 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2696$as_echo "$CC" >&6; } 2697else 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2699$as_echo "no" >&6; } 2700fi 2701 2702 2703 fi 2704fi 2705if test -z "$CC"; then 2706 # Extract the first word of "cc", so it can be a program name with args. 2707set dummy cc; ac_word=$2 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709$as_echo_n "checking for $ac_word... " >&6; } 2710if ${ac_cv_prog_CC+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test -n "$CC"; then 2714 ac_cv_prog_CC="$CC" # Let the user override the test. 2715else 2716 ac_prog_rejected=no 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2725 ac_prog_rejected=yes 2726 continue 2727 fi 2728 ac_cv_prog_CC="cc" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736if test $ac_prog_rejected = yes; then 2737 # We found a bogon in the path, so make sure we never use it. 2738 set dummy $ac_cv_prog_CC 2739 shift 2740 if test $# != 0; then 2741 # We chose a different compiler from the bogus one. 2742 # However, it has the same basename, so the bogon will be chosen 2743 # first if we set CC to just the basename; use the full file name. 2744 shift 2745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2746 fi 2747fi 2748fi 2749fi 2750CC=$ac_cv_prog_CC 2751if test -n "$CC"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2753$as_echo "$CC" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760fi 2761if test -z "$CC"; then 2762 if test -n "$ac_tool_prefix"; then 2763 for ac_prog in cl.exe 2764 do 2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2766set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768$as_echo_n "checking for $ac_word... " >&6; } 2769if ${ac_cv_prog_CC+:} false; then : 2770 $as_echo_n "(cached) " >&6 2771else 2772 if test -n "$CC"; then 2773 ac_cv_prog_CC="$CC" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787 done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792CC=$ac_cv_prog_CC 2793if test -n "$CC"; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2795$as_echo "$CC" >&6; } 2796else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798$as_echo "no" >&6; } 2799fi 2800 2801 2802 test -n "$CC" && break 2803 done 2804fi 2805if test -z "$CC"; then 2806 ac_ct_CC=$CC 2807 for ac_prog in cl.exe 2808do 2809 # Extract the first word of "$ac_prog", so it can be a program name with args. 2810set dummy $ac_prog; ac_word=$2 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if ${ac_cv_prog_ac_ct_CC+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$ac_ct_CC"; then 2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2826 ac_cv_prog_ac_ct_CC="$ac_prog" 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831 done 2832IFS=$as_save_IFS 2833 2834fi 2835fi 2836ac_ct_CC=$ac_cv_prog_ac_ct_CC 2837if test -n "$ac_ct_CC"; then 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2839$as_echo "$ac_ct_CC" >&6; } 2840else 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2842$as_echo "no" >&6; } 2843fi 2844 2845 2846 test -n "$ac_ct_CC" && break 2847done 2848 2849 if test "x$ac_ct_CC" = x; then 2850 CC="" 2851 else 2852 case $cross_compiling:$ac_tool_warned in 2853yes:) 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2856ac_tool_warned=yes ;; 2857esac 2858 CC=$ac_ct_CC 2859 fi 2860fi 2861 2862fi 2863 2864 2865test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2867as_fn_error $? "no acceptable C compiler found in \$PATH 2868See \`config.log' for more details" "$LINENO" 5; } 2869 2870# Provide some information about the compiler. 2871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2872set X $ac_compile 2873ac_compiler=$2 2874for ac_option in --version -v -V -qversion; do 2875 { { ac_try="$ac_compiler $ac_option >&5" 2876case "(($ac_try" in 2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878 *) ac_try_echo=$ac_try;; 2879esac 2880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2881$as_echo "$ac_try_echo"; } >&5 2882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2883 ac_status=$? 2884 if test -s conftest.err; then 2885 sed '10a\ 2886... rest of stderr output deleted ... 2887 10q' conftest.err >conftest.er1 2888 cat conftest.er1 >&5 2889 fi 2890 rm -f conftest.er1 conftest.err 2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2892 test $ac_status = 0; } 2893done 2894 2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2896/* end confdefs.h. */ 2897 2898int 2899main () 2900{ 2901 2902 ; 2903 return 0; 2904} 2905_ACEOF 2906ac_clean_files_save=$ac_clean_files 2907ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2908# Try to create an executable without -o first, disregard a.out. 2909# It will help us diagnose broken compilers, and finding out an intuition 2910# of exeext. 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2912$as_echo_n "checking whether the C compiler works... " >&6; } 2913ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2914 2915# The possible output files: 2916ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2917 2918ac_rmfiles= 2919for ac_file in $ac_files 2920do 2921 case $ac_file in 2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2923 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2924 esac 2925done 2926rm -f $ac_rmfiles 2927 2928if { { ac_try="$ac_link_default" 2929case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932esac 2933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2934$as_echo "$ac_try_echo"; } >&5 2935 (eval "$ac_link_default") 2>&5 2936 ac_status=$? 2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2938 test $ac_status = 0; }; then : 2939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2940# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2941# in a Makefile. We should not override ac_cv_exeext if it was cached, 2942# so that the user can short-circuit this test for compilers unknown to 2943# Autoconf. 2944for ac_file in $ac_files '' 2945do 2946 test -f "$ac_file" || continue 2947 case $ac_file in 2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2949 ;; 2950 [ab].out ) 2951 # We found the default executable, but exeext='' is most 2952 # certainly right. 2953 break;; 2954 *.* ) 2955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2956 then :; else 2957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2958 fi 2959 # We set ac_cv_exeext here because the later test for it is not 2960 # safe: cross compilers may not add the suffix if given an `-o' 2961 # argument, so we may need to know it at that point already. 2962 # Even if this section looks crufty: it has the advantage of 2963 # actually working. 2964 break;; 2965 * ) 2966 break;; 2967 esac 2968done 2969test "$ac_cv_exeext" = no && ac_cv_exeext= 2970 2971else 2972 ac_file='' 2973fi 2974if test -z "$ac_file"; then : 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976$as_echo "no" >&6; } 2977$as_echo "$as_me: failed program was:" >&5 2978sed 's/^/| /' conftest.$ac_ext >&5 2979 2980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2982as_fn_error 77 "C compiler cannot create executables 2983See \`config.log' for more details" "$LINENO" 5; } 2984else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2986$as_echo "yes" >&6; } 2987fi 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2989$as_echo_n "checking for C compiler default output file name... " >&6; } 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2991$as_echo "$ac_file" >&6; } 2992ac_exeext=$ac_cv_exeext 2993 2994rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2995ac_clean_files=$ac_clean_files_save 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2997$as_echo_n "checking for suffix of executables... " >&6; } 2998if { { ac_try="$ac_link" 2999case "(($ac_try" in 3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3001 *) ac_try_echo=$ac_try;; 3002esac 3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3004$as_echo "$ac_try_echo"; } >&5 3005 (eval "$ac_link") 2>&5 3006 ac_status=$? 3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3008 test $ac_status = 0; }; then : 3009 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3010# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3011# work properly (i.e., refer to `conftest.exe'), while it won't with 3012# `rm'. 3013for ac_file in conftest.exe conftest conftest.*; do 3014 test -f "$ac_file" || continue 3015 case $ac_file in 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3018 break;; 3019 * ) break;; 3020 esac 3021done 3022else 3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3025as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3026See \`config.log' for more details" "$LINENO" 5; } 3027fi 3028rm -f conftest conftest$ac_cv_exeext 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3030$as_echo "$ac_cv_exeext" >&6; } 3031 3032rm -f conftest.$ac_ext 3033EXEEXT=$ac_cv_exeext 3034ac_exeext=$EXEEXT 3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3036/* end confdefs.h. */ 3037#include <stdio.h> 3038int 3039main () 3040{ 3041FILE *f = fopen ("conftest.out", "w"); 3042 return ferror (f) || fclose (f) != 0; 3043 3044 ; 3045 return 0; 3046} 3047_ACEOF 3048ac_clean_files="$ac_clean_files conftest.out" 3049# Check that the compiler produces executables we can run. If not, either 3050# the compiler is broken, or we cross compile. 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3052$as_echo_n "checking whether we are cross compiling... " >&6; } 3053if test "$cross_compiling" != yes; then 3054 { { ac_try="$ac_link" 3055case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058esac 3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3060$as_echo "$ac_try_echo"; } >&5 3061 (eval "$ac_link") 2>&5 3062 ac_status=$? 3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3064 test $ac_status = 0; } 3065 if { ac_try='./conftest$ac_cv_exeext' 3066 { { case "(($ac_try" in 3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3068 *) ac_try_echo=$ac_try;; 3069esac 3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3071$as_echo "$ac_try_echo"; } >&5 3072 (eval "$ac_try") 2>&5 3073 ac_status=$? 3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3075 test $ac_status = 0; }; }; then 3076 cross_compiling=no 3077 else 3078 if test "$cross_compiling" = maybe; then 3079 cross_compiling=yes 3080 else 3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3083as_fn_error $? "cannot run C compiled programs. 3084If you meant to cross compile, use \`--host'. 3085See \`config.log' for more details" "$LINENO" 5; } 3086 fi 3087 fi 3088fi 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3090$as_echo "$cross_compiling" >&6; } 3091 3092rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3093ac_clean_files=$ac_clean_files_save 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3095$as_echo_n "checking for suffix of object files... " >&6; } 3096if ${ac_cv_objext+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3100/* end confdefs.h. */ 3101 3102int 3103main () 3104{ 3105 3106 ; 3107 return 0; 3108} 3109_ACEOF 3110rm -f conftest.o conftest.obj 3111if { { ac_try="$ac_compile" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3117$as_echo "$ac_try_echo"; } >&5 3118 (eval "$ac_compile") 2>&5 3119 ac_status=$? 3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121 test $ac_status = 0; }; then : 3122 for ac_file in conftest.o conftest.obj conftest.*; do 3123 test -f "$ac_file" || continue; 3124 case $ac_file in 3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3127 break;; 3128 esac 3129done 3130else 3131 $as_echo "$as_me: failed program was:" >&5 3132sed 's/^/| /' conftest.$ac_ext >&5 3133 3134{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3136as_fn_error $? "cannot compute suffix of object files: cannot compile 3137See \`config.log' for more details" "$LINENO" 5; } 3138fi 3139rm -f conftest.$ac_cv_objext conftest.$ac_ext 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3142$as_echo "$ac_cv_objext" >&6; } 3143OBJEXT=$ac_cv_objext 3144ac_objext=$OBJEXT 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3146$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3147if ${ac_cv_c_compiler_gnu+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3151/* end confdefs.h. */ 3152 3153int 3154main () 3155{ 3156#ifndef __GNUC__ 3157 choke me 3158#endif 3159 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164if ac_fn_c_try_compile "$LINENO"; then : 3165 ac_compiler_gnu=yes 3166else 3167 ac_compiler_gnu=no 3168fi 3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3170ac_cv_c_compiler_gnu=$ac_compiler_gnu 3171 3172fi 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3174$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3175if test $ac_compiler_gnu = yes; then 3176 GCC=yes 3177else 3178 GCC= 3179fi 3180ac_test_CFLAGS=${CFLAGS+set} 3181ac_save_CFLAGS=$CFLAGS 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3183$as_echo_n "checking whether $CC accepts -g... " >&6; } 3184if ${ac_cv_prog_cc_g+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 ac_save_c_werror_flag=$ac_c_werror_flag 3188 ac_c_werror_flag=yes 3189 ac_cv_prog_cc_g=no 3190 CFLAGS="-g" 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193 3194int 3195main () 3196{ 3197 3198 ; 3199 return 0; 3200} 3201_ACEOF 3202if ac_fn_c_try_compile "$LINENO"; then : 3203 ac_cv_prog_cc_g=yes 3204else 3205 CFLAGS="" 3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217if ac_fn_c_try_compile "$LINENO"; then : 3218 3219else 3220 ac_c_werror_flag=$ac_save_c_werror_flag 3221 CFLAGS="-g" 3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233if ac_fn_c_try_compile "$LINENO"; then : 3234 ac_cv_prog_cc_g=yes 3235fi 3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3237fi 3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3239fi 3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3241 ac_c_werror_flag=$ac_save_c_werror_flag 3242fi 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3244$as_echo "$ac_cv_prog_cc_g" >&6; } 3245if test "$ac_test_CFLAGS" = set; then 3246 CFLAGS=$ac_save_CFLAGS 3247elif test $ac_cv_prog_cc_g = yes; then 3248 if test "$GCC" = yes; then 3249 CFLAGS="-g -O2" 3250 else 3251 CFLAGS="-g" 3252 fi 3253else 3254 if test "$GCC" = yes; then 3255 CFLAGS="-O2" 3256 else 3257 CFLAGS= 3258 fi 3259fi 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3261$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3262if ${ac_cv_prog_cc_c89+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264else 3265 ac_cv_prog_cc_c89=no 3266ac_save_CC=$CC 3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269#include <stdarg.h> 3270#include <stdio.h> 3271struct stat; 3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3273struct buf { int x; }; 3274FILE * (*rcsopen) (struct buf *, struct stat *, int); 3275static char *e (p, i) 3276 char **p; 3277 int i; 3278{ 3279 return p[i]; 3280} 3281static char *f (char * (*g) (char **, int), char **p, ...) 3282{ 3283 char *s; 3284 va_list v; 3285 va_start (v,p); 3286 s = g (p, va_arg (v,int)); 3287 va_end (v); 3288 return s; 3289} 3290 3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3292 function prototypes and stuff, but not '\xHH' hex character constants. 3293 These don't provoke an error unfortunately, instead are silently treated 3294 as 'x'. The following induces an error, until -std is added to get 3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3296 array size at least. It's necessary to write '\x00'==0 to get something 3297 that's true only with -std. */ 3298int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3299 3300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3301 inside strings and character constants. */ 3302#define FOO(x) 'x' 3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3304 3305int test (int i, double x); 3306struct s1 {int (*f) (int a);}; 3307struct s2 {int (*f) (double a);}; 3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3309int argc; 3310char **argv; 3311int 3312main () 3313{ 3314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3321do 3322 CC="$ac_save_CC $ac_arg" 3323 if ac_fn_c_try_compile "$LINENO"; then : 3324 ac_cv_prog_cc_c89=$ac_arg 3325fi 3326rm -f core conftest.err conftest.$ac_objext 3327 test "x$ac_cv_prog_cc_c89" != "xno" && break 3328done 3329rm -f conftest.$ac_ext 3330CC=$ac_save_CC 3331 3332fi 3333# AC_CACHE_VAL 3334case "x$ac_cv_prog_cc_c89" in 3335 x) 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3337$as_echo "none needed" >&6; } ;; 3338 xno) 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3340$as_echo "unsupported" >&6; } ;; 3341 *) 3342 CC="$CC $ac_cv_prog_cc_c89" 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3344$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3345esac 3346if test "x$ac_cv_prog_cc_c89" != xno; then : 3347 3348fi 3349 3350ac_ext=c 3351ac_cpp='$CPP $CPPFLAGS' 3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3354ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3357$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3358if ${ac_cv_path_SED+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3362 for ac_i in 1 2 3 4 5 6 7; do 3363 ac_script="$ac_script$as_nl$ac_script" 3364 done 3365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3366 { ac_script=; unset ac_script;} 3367 if test -z "$SED"; then 3368 ac_path_SED_found=false 3369 # Loop through the user's path and test for each of PROGNAME-LIST 3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_prog in sed gsed; do 3376 for ac_exec_ext in '' $ac_executable_extensions; do 3377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3378 as_fn_executable_p "$ac_path_SED" || continue 3379# Check for GNU ac_path_SED and select it if it is found. 3380 # Check for GNU $ac_path_SED 3381case `"$ac_path_SED" --version 2>&1` in 3382*GNU*) 3383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3384*) 3385 ac_count=0 3386 $as_echo_n 0123456789 >"conftest.in" 3387 while : 3388 do 3389 cat "conftest.in" "conftest.in" >"conftest.tmp" 3390 mv "conftest.tmp" "conftest.in" 3391 cp "conftest.in" "conftest.nl" 3392 $as_echo '' >> "conftest.nl" 3393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3395 as_fn_arith $ac_count + 1 && ac_count=$as_val 3396 if test $ac_count -gt ${ac_path_SED_max-0}; then 3397 # Best one so far, save it but keep looking for a better one 3398 ac_cv_path_SED="$ac_path_SED" 3399 ac_path_SED_max=$ac_count 3400 fi 3401 # 10*(2^10) chars as input seems more than enough 3402 test $ac_count -gt 10 && break 3403 done 3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3405esac 3406 3407 $ac_path_SED_found && break 3 3408 done 3409 done 3410 done 3411IFS=$as_save_IFS 3412 if test -z "$ac_cv_path_SED"; then 3413 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3414 fi 3415else 3416 ac_cv_path_SED=$SED 3417fi 3418 3419fi 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3421$as_echo "$ac_cv_path_SED" >&6; } 3422 SED="$ac_cv_path_SED" 3423 rm -f conftest.sed 3424 3425test -z "$SED" && SED=sed 3426Xsed="$SED -e 1s/^X//" 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3439$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3440if ${ac_cv_path_GREP+:} false; then : 3441 $as_echo_n "(cached) " >&6 3442else 3443 if test -z "$GREP"; then 3444 ac_path_GREP_found=false 3445 # Loop through the user's path and test for each of PROGNAME-LIST 3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3448do 3449 IFS=$as_save_IFS 3450 test -z "$as_dir" && as_dir=. 3451 for ac_prog in grep ggrep; do 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3454 as_fn_executable_p "$ac_path_GREP" || continue 3455# Check for GNU ac_path_GREP and select it if it is found. 3456 # Check for GNU $ac_path_GREP 3457case `"$ac_path_GREP" --version 2>&1` in 3458*GNU*) 3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3460*) 3461 ac_count=0 3462 $as_echo_n 0123456789 >"conftest.in" 3463 while : 3464 do 3465 cat "conftest.in" "conftest.in" >"conftest.tmp" 3466 mv "conftest.tmp" "conftest.in" 3467 cp "conftest.in" "conftest.nl" 3468 $as_echo 'GREP' >> "conftest.nl" 3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3471 as_fn_arith $ac_count + 1 && ac_count=$as_val 3472 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3473 # Best one so far, save it but keep looking for a better one 3474 ac_cv_path_GREP="$ac_path_GREP" 3475 ac_path_GREP_max=$ac_count 3476 fi 3477 # 10*(2^10) chars as input seems more than enough 3478 test $ac_count -gt 10 && break 3479 done 3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3481esac 3482 3483 $ac_path_GREP_found && break 3 3484 done 3485 done 3486 done 3487IFS=$as_save_IFS 3488 if test -z "$ac_cv_path_GREP"; then 3489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3490 fi 3491else 3492 ac_cv_path_GREP=$GREP 3493fi 3494 3495fi 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3497$as_echo "$ac_cv_path_GREP" >&6; } 3498 GREP="$ac_cv_path_GREP" 3499 3500 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3502$as_echo_n "checking for egrep... " >&6; } 3503if ${ac_cv_path_EGREP+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3507 then ac_cv_path_EGREP="$GREP -E" 3508 else 3509 if test -z "$EGREP"; then 3510 ac_path_EGREP_found=false 3511 # Loop through the user's path and test for each of PROGNAME-LIST 3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_prog in egrep; do 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3520 as_fn_executable_p "$ac_path_EGREP" || continue 3521# Check for GNU ac_path_EGREP and select it if it is found. 3522 # Check for GNU $ac_path_EGREP 3523case `"$ac_path_EGREP" --version 2>&1` in 3524*GNU*) 3525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3526*) 3527 ac_count=0 3528 $as_echo_n 0123456789 >"conftest.in" 3529 while : 3530 do 3531 cat "conftest.in" "conftest.in" >"conftest.tmp" 3532 mv "conftest.tmp" "conftest.in" 3533 cp "conftest.in" "conftest.nl" 3534 $as_echo 'EGREP' >> "conftest.nl" 3535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3537 as_fn_arith $ac_count + 1 && ac_count=$as_val 3538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3539 # Best one so far, save it but keep looking for a better one 3540 ac_cv_path_EGREP="$ac_path_EGREP" 3541 ac_path_EGREP_max=$ac_count 3542 fi 3543 # 10*(2^10) chars as input seems more than enough 3544 test $ac_count -gt 10 && break 3545 done 3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3547esac 3548 3549 $ac_path_EGREP_found && break 3 3550 done 3551 done 3552 done 3553IFS=$as_save_IFS 3554 if test -z "$ac_cv_path_EGREP"; then 3555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3556 fi 3557else 3558 ac_cv_path_EGREP=$EGREP 3559fi 3560 3561 fi 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3564$as_echo "$ac_cv_path_EGREP" >&6; } 3565 EGREP="$ac_cv_path_EGREP" 3566 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3569$as_echo_n "checking for fgrep... " >&6; } 3570if ${ac_cv_path_FGREP+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3574 then ac_cv_path_FGREP="$GREP -F" 3575 else 3576 if test -z "$FGREP"; then 3577 ac_path_FGREP_found=false 3578 # Loop through the user's path and test for each of PROGNAME-LIST 3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3581do 3582 IFS=$as_save_IFS 3583 test -z "$as_dir" && as_dir=. 3584 for ac_prog in fgrep; do 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3587 as_fn_executable_p "$ac_path_FGREP" || continue 3588# Check for GNU ac_path_FGREP and select it if it is found. 3589 # Check for GNU $ac_path_FGREP 3590case `"$ac_path_FGREP" --version 2>&1` in 3591*GNU*) 3592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3593*) 3594 ac_count=0 3595 $as_echo_n 0123456789 >"conftest.in" 3596 while : 3597 do 3598 cat "conftest.in" "conftest.in" >"conftest.tmp" 3599 mv "conftest.tmp" "conftest.in" 3600 cp "conftest.in" "conftest.nl" 3601 $as_echo 'FGREP' >> "conftest.nl" 3602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3604 as_fn_arith $ac_count + 1 && ac_count=$as_val 3605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3606 # Best one so far, save it but keep looking for a better one 3607 ac_cv_path_FGREP="$ac_path_FGREP" 3608 ac_path_FGREP_max=$ac_count 3609 fi 3610 # 10*(2^10) chars as input seems more than enough 3611 test $ac_count -gt 10 && break 3612 done 3613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3614esac 3615 3616 $ac_path_FGREP_found && break 3 3617 done 3618 done 3619 done 3620IFS=$as_save_IFS 3621 if test -z "$ac_cv_path_FGREP"; then 3622 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3623 fi 3624else 3625 ac_cv_path_FGREP=$FGREP 3626fi 3627 3628 fi 3629fi 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3631$as_echo "$ac_cv_path_FGREP" >&6; } 3632 FGREP="$ac_cv_path_FGREP" 3633 3634 3635test -z "$GREP" && GREP=grep 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655# Check whether --with-gnu-ld was given. 3656if test "${with_gnu_ld+set}" = set; then : 3657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3658else 3659 with_gnu_ld=no 3660fi 3661 3662ac_prog=ld 3663if test "$GCC" = yes; then 3664 # Check if gcc -print-prog-name=ld gives a path. 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3666$as_echo_n "checking for ld used by $CC... " >&6; } 3667 case $host in 3668 *-*-mingw*) 3669 # gcc leaves a trailing carriage return which upsets mingw 3670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3671 *) 3672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3673 esac 3674 case $ac_prog in 3675 # Accept absolute paths. 3676 [\\/]* | ?:[\\/]*) 3677 re_direlt='/[^/][^/]*/\.\./' 3678 # Canonicalize the pathname of ld 3679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3682 done 3683 test -z "$LD" && LD="$ac_prog" 3684 ;; 3685 "") 3686 # If it fails, then pretend we aren't using GCC. 3687 ac_prog=ld 3688 ;; 3689 *) 3690 # If it is relative, then search for the first ld in PATH. 3691 with_gnu_ld=unknown 3692 ;; 3693 esac 3694elif test "$with_gnu_ld" = yes; then 3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3696$as_echo_n "checking for GNU ld... " >&6; } 3697else 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3699$as_echo_n "checking for non-GNU ld... " >&6; } 3700fi 3701if ${lt_cv_path_LD+:} false; then : 3702 $as_echo_n "(cached) " >&6 3703else 3704 if test -z "$LD"; then 3705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3706 for ac_dir in $PATH; do 3707 IFS="$lt_save_ifs" 3708 test -z "$ac_dir" && ac_dir=. 3709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3710 lt_cv_path_LD="$ac_dir/$ac_prog" 3711 # Check to see if the program is GNU ld. I'd rather use --version, 3712 # but apparently some variants of GNU ld only accept -v. 3713 # Break only if it was the GNU/non-GNU ld that we prefer. 3714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3715 *GNU* | *'with BFD'*) 3716 test "$with_gnu_ld" != no && break 3717 ;; 3718 *) 3719 test "$with_gnu_ld" != yes && break 3720 ;; 3721 esac 3722 fi 3723 done 3724 IFS="$lt_save_ifs" 3725else 3726 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3727fi 3728fi 3729 3730LD="$lt_cv_path_LD" 3731if test -n "$LD"; then 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3733$as_echo "$LD" >&6; } 3734else 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3736$as_echo "no" >&6; } 3737fi 3738test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3741if ${lt_cv_prog_gnu_ld+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3745case `$LD -v 2>&1 </dev/null` in 3746*GNU* | *'with BFD'*) 3747 lt_cv_prog_gnu_ld=yes 3748 ;; 3749*) 3750 lt_cv_prog_gnu_ld=no 3751 ;; 3752esac 3753fi 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3755$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3756with_gnu_ld=$lt_cv_prog_gnu_ld 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3767$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3768if ${lt_cv_path_NM+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 if test -n "$NM"; then 3772 # Let the user override the test. 3773 lt_cv_path_NM="$NM" 3774else 3775 lt_nm_to_check="${ac_tool_prefix}nm" 3776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3777 lt_nm_to_check="$lt_nm_to_check nm" 3778 fi 3779 for lt_tmp_nm in $lt_nm_to_check; do 3780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3782 IFS="$lt_save_ifs" 3783 test -z "$ac_dir" && ac_dir=. 3784 tmp_nm="$ac_dir/$lt_tmp_nm" 3785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3786 # Check to see if the nm accepts a BSD-compat flag. 3787 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3788 # nm: unknown option "B" ignored 3789 # Tru64's nm complains that /dev/null is an invalid object file 3790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3791 */dev/null* | *'Invalid file or object type'*) 3792 lt_cv_path_NM="$tmp_nm -B" 3793 break 3794 ;; 3795 *) 3796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3797 */dev/null*) 3798 lt_cv_path_NM="$tmp_nm -p" 3799 break 3800 ;; 3801 *) 3802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3803 continue # so that we can try to find one that supports BSD flags 3804 ;; 3805 esac 3806 ;; 3807 esac 3808 fi 3809 done 3810 IFS="$lt_save_ifs" 3811 done 3812 : ${lt_cv_path_NM=no} 3813fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3816$as_echo "$lt_cv_path_NM" >&6; } 3817if test "$lt_cv_path_NM" != "no"; then 3818 NM="$lt_cv_path_NM" 3819else 3820 # Didn't find any BSD compatible name lister, look for dumpbin. 3821 if test -n "$ac_tool_prefix"; then 3822 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3823 do 3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3825set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3827$as_echo_n "checking for $ac_word... " >&6; } 3828if ${ac_cv_prog_DUMPBIN+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830else 3831 if test -n "$DUMPBIN"; then 3832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3833else 3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835for as_dir in $PATH 3836do 3837 IFS=$as_save_IFS 3838 test -z "$as_dir" && as_dir=. 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3843 break 2 3844 fi 3845done 3846 done 3847IFS=$as_save_IFS 3848 3849fi 3850fi 3851DUMPBIN=$ac_cv_prog_DUMPBIN 3852if test -n "$DUMPBIN"; then 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3854$as_echo "$DUMPBIN" >&6; } 3855else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857$as_echo "no" >&6; } 3858fi 3859 3860 3861 test -n "$DUMPBIN" && break 3862 done 3863fi 3864if test -z "$DUMPBIN"; then 3865 ac_ct_DUMPBIN=$DUMPBIN 3866 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3867do 3868 # Extract the first word of "$ac_prog", so it can be a program name with args. 3869set dummy $ac_prog; ac_word=$2 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3871$as_echo_n "checking for $ac_word... " >&6; } 3872if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 if test -n "$ac_ct_DUMPBIN"; then 3876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889done 3890 done 3891IFS=$as_save_IFS 3892 3893fi 3894fi 3895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3896if test -n "$ac_ct_DUMPBIN"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3898$as_echo "$ac_ct_DUMPBIN" >&6; } 3899else 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3901$as_echo "no" >&6; } 3902fi 3903 3904 3905 test -n "$ac_ct_DUMPBIN" && break 3906done 3907 3908 if test "x$ac_ct_DUMPBIN" = x; then 3909 DUMPBIN=":" 3910 else 3911 case $cross_compiling:$ac_tool_warned in 3912yes:) 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3915ac_tool_warned=yes ;; 3916esac 3917 DUMPBIN=$ac_ct_DUMPBIN 3918 fi 3919fi 3920 3921 3922 if test "$DUMPBIN" != ":"; then 3923 NM="$DUMPBIN" 3924 fi 3925fi 3926test -z "$NM" && NM=nm 3927 3928 3929 3930 3931 3932 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3934$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3935if ${lt_cv_nm_interface+:} false; then : 3936 $as_echo_n "(cached) " >&6 3937else 3938 lt_cv_nm_interface="BSD nm" 3939 echo "int some_variable = 0;" > conftest.$ac_ext 3940 (eval echo "\"\$as_me:3940: $ac_compile\"" >&5) 3941 (eval "$ac_compile" 2>conftest.err) 3942 cat conftest.err >&5 3943 (eval echo "\"\$as_me:3943: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3945 cat conftest.err >&5 3946 (eval echo "\"\$as_me:3946: output\"" >&5) 3947 cat conftest.out >&5 3948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3949 lt_cv_nm_interface="MS dumpbin" 3950 fi 3951 rm -f conftest* 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3954$as_echo "$lt_cv_nm_interface" >&6; } 3955 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3957$as_echo_n "checking whether ln -s works... " >&6; } 3958LN_S=$as_ln_s 3959if test "$LN_S" = "ln -s"; then 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3961$as_echo "yes" >&6; } 3962else 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3964$as_echo "no, using $LN_S" >&6; } 3965fi 3966 3967# find the maximum length of command line arguments 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3969$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3970if ${lt_cv_sys_max_cmd_len+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 i=0 3974 teststring="ABCD" 3975 3976 case $build_os in 3977 msdosdjgpp*) 3978 # On DJGPP, this test can blow up pretty badly due to problems in libc 3979 # (any single argument exceeding 2000 bytes causes a buffer overrun 3980 # during glob expansion). Even if it were fixed, the result of this 3981 # check would be larger than it should be. 3982 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3983 ;; 3984 3985 gnu*) 3986 # Under GNU Hurd, this test is not required because there is 3987 # no limit to the length of command line arguments. 3988 # Libtool will interpret -1 as no limit whatsoever 3989 lt_cv_sys_max_cmd_len=-1; 3990 ;; 3991 3992 cygwin* | mingw* | cegcc*) 3993 # On Win9x/ME, this test blows up -- it succeeds, but takes 3994 # about 5 minutes as the teststring grows exponentially. 3995 # Worse, since 9x/ME are not pre-emptively multitasking, 3996 # you end up with a "frozen" computer, even though with patience 3997 # the test eventually succeeds (with a max line length of 256k). 3998 # Instead, let's just punt: use the minimum linelength reported by 3999 # all of the supported platforms: 8192 (on NT/2K/XP). 4000 lt_cv_sys_max_cmd_len=8192; 4001 ;; 4002 4003 amigaos*) 4004 # On AmigaOS with pdksh, this test takes hours, literally. 4005 # So we just punt and use a minimum line length of 8192. 4006 lt_cv_sys_max_cmd_len=8192; 4007 ;; 4008 4009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4010 # This has been around since 386BSD, at least. Likely further. 4011 if test -x /sbin/sysctl; then 4012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4013 elif test -x /usr/sbin/sysctl; then 4014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4015 else 4016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4017 fi 4018 # And add a safety zone 4019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4021 ;; 4022 4023 interix*) 4024 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4025 lt_cv_sys_max_cmd_len=196608 4026 ;; 4027 4028 osf*) 4029 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4030 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4031 # nice to cause kernel panics so lets avoid the loop below. 4032 # First set a reasonable default. 4033 lt_cv_sys_max_cmd_len=16384 4034 # 4035 if test -x /sbin/sysconfig; then 4036 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4037 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4038 esac 4039 fi 4040 ;; 4041 sco3.2v5*) 4042 lt_cv_sys_max_cmd_len=102400 4043 ;; 4044 sysv5* | sco5v6* | sysv4.2uw2*) 4045 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4046 if test -n "$kargmax"; then 4047 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4048 else 4049 lt_cv_sys_max_cmd_len=32768 4050 fi 4051 ;; 4052 *) 4053 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4054 if test -n "$lt_cv_sys_max_cmd_len"; then 4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4057 else 4058 # Make teststring a little bigger before we do anything with it. 4059 # a 1K string should be a reasonable start. 4060 for i in 1 2 3 4 5 6 7 8 ; do 4061 teststring=$teststring$teststring 4062 done 4063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4064 # If test is not a shell built-in, we'll probably end up computing a 4065 # maximum length that is only half of the actual maximum length, but 4066 # we can't tell. 4067 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4068 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4069 test $i != 17 # 1/2 MB should be enough 4070 do 4071 i=`expr $i + 1` 4072 teststring=$teststring$teststring 4073 done 4074 # Only check the string length outside the loop. 4075 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4076 teststring= 4077 # Add a significant safety factor because C++ compilers can tack on 4078 # massive amounts of additional arguments before passing them to the 4079 # linker. It appears as though 1/2 is a usable value. 4080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4081 fi 4082 ;; 4083 esac 4084 4085fi 4086 4087if test -n $lt_cv_sys_max_cmd_len ; then 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4089$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4090else 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4092$as_echo "none" >&6; } 4093fi 4094max_cmd_len=$lt_cv_sys_max_cmd_len 4095 4096 4097 4098 4099 4100 4101: ${CP="cp -f"} 4102: ${MV="mv -f"} 4103: ${RM="rm -f"} 4104 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4106$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4107# Try some XSI features 4108xsi_shell=no 4109( _lt_dummy="a/b/c" 4110 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4111 = c,a/b,, \ 4112 && eval 'test $(( 1 + 1 )) -eq 2 \ 4113 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4114 && xsi_shell=yes 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4116$as_echo "$xsi_shell" >&6; } 4117 4118 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4120$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4121lt_shell_append=no 4122( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4123 >/dev/null 2>&1 \ 4124 && lt_shell_append=yes 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4126$as_echo "$lt_shell_append" >&6; } 4127 4128 4129if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4130 lt_unset=unset 4131else 4132 lt_unset=false 4133fi 4134 4135 4136 4137 4138 4139# test EBCDIC or ASCII 4140case `echo X|tr X '\101'` in 4141 A) # ASCII based system 4142 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4143 lt_SP2NL='tr \040 \012' 4144 lt_NL2SP='tr \015\012 \040\040' 4145 ;; 4146 *) # EBCDIC based system 4147 lt_SP2NL='tr \100 \n' 4148 lt_NL2SP='tr \r\n \100\100' 4149 ;; 4150esac 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4161$as_echo_n "checking for $LD option to reload object files... " >&6; } 4162if ${lt_cv_ld_reload_flag+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164else 4165 lt_cv_ld_reload_flag='-r' 4166fi 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4168$as_echo "$lt_cv_ld_reload_flag" >&6; } 4169reload_flag=$lt_cv_ld_reload_flag 4170case $reload_flag in 4171"" | " "*) ;; 4172*) reload_flag=" $reload_flag" ;; 4173esac 4174reload_cmds='$LD$reload_flag -o $output$reload_objs' 4175case $host_os in 4176 darwin*) 4177 if test "$GCC" = yes; then 4178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4179 else 4180 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4181 fi 4182 ;; 4183esac 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193if test -n "$ac_tool_prefix"; then 4194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4195set dummy ${ac_tool_prefix}objdump; ac_word=$2 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4197$as_echo_n "checking for $ac_word... " >&6; } 4198if ${ac_cv_prog_OBJDUMP+:} false; then : 4199 $as_echo_n "(cached) " >&6 4200else 4201 if test -n "$OBJDUMP"; then 4202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4203else 4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205for as_dir in $PATH 4206do 4207 IFS=$as_save_IFS 4208 test -z "$as_dir" && as_dir=. 4209 for ac_exec_ext in '' $ac_executable_extensions; do 4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4213 break 2 4214 fi 4215done 4216 done 4217IFS=$as_save_IFS 4218 4219fi 4220fi 4221OBJDUMP=$ac_cv_prog_OBJDUMP 4222if test -n "$OBJDUMP"; then 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4224$as_echo "$OBJDUMP" >&6; } 4225else 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227$as_echo "no" >&6; } 4228fi 4229 4230 4231fi 4232if test -z "$ac_cv_prog_OBJDUMP"; then 4233 ac_ct_OBJDUMP=$OBJDUMP 4234 # Extract the first word of "objdump", so it can be a program name with args. 4235set dummy objdump; ac_word=$2 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4237$as_echo_n "checking for $ac_word... " >&6; } 4238if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4239 $as_echo_n "(cached) " >&6 4240else 4241 if test -n "$ac_ct_OBJDUMP"; then 4242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4243else 4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4245for as_dir in $PATH 4246do 4247 IFS=$as_save_IFS 4248 test -z "$as_dir" && as_dir=. 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4251 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4253 break 2 4254 fi 4255done 4256 done 4257IFS=$as_save_IFS 4258 4259fi 4260fi 4261ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4262if test -n "$ac_ct_OBJDUMP"; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4264$as_echo "$ac_ct_OBJDUMP" >&6; } 4265else 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4267$as_echo "no" >&6; } 4268fi 4269 4270 if test "x$ac_ct_OBJDUMP" = x; then 4271 OBJDUMP="false" 4272 else 4273 case $cross_compiling:$ac_tool_warned in 4274yes:) 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4277ac_tool_warned=yes ;; 4278esac 4279 OBJDUMP=$ac_ct_OBJDUMP 4280 fi 4281else 4282 OBJDUMP="$ac_cv_prog_OBJDUMP" 4283fi 4284 4285test -z "$OBJDUMP" && OBJDUMP=objdump 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4296$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4297if ${lt_cv_deplibs_check_method+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 lt_cv_file_magic_cmd='$MAGIC_CMD' 4301lt_cv_file_magic_test_file= 4302lt_cv_deplibs_check_method='unknown' 4303# Need to set the preceding variable on all platforms that support 4304# interlibrary dependencies. 4305# 'none' -- dependencies not supported. 4306# `unknown' -- same as none, but documents that we really don't know. 4307# 'pass_all' -- all dependencies passed with no checks. 4308# 'test_compile' -- check by making test program. 4309# 'file_magic [[regex]]' -- check by looking for files in library path 4310# which responds to the $file_magic_cmd with a given extended regex. 4311# If you have `file' or equivalent on your system and you're not sure 4312# whether `pass_all' will *always* work, you probably want this one. 4313 4314case $host_os in 4315aix[4-9]*) 4316 lt_cv_deplibs_check_method=pass_all 4317 ;; 4318 4319beos*) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 4323bsdi[45]*) 4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4325 lt_cv_file_magic_cmd='/usr/bin/file -L' 4326 lt_cv_file_magic_test_file=/shlib/libc.so 4327 ;; 4328 4329cygwin*) 4330 # func_win32_libid is a shell function defined in ltmain.sh 4331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4332 lt_cv_file_magic_cmd='func_win32_libid' 4333 ;; 4334 4335mingw* | pw32*) 4336 # Base MSYS/MinGW do not provide the 'file' command needed by 4337 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4338 # unless we find 'file', for example because we are cross-compiling. 4339 if ( file / ) >/dev/null 2>&1; then 4340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4341 lt_cv_file_magic_cmd='func_win32_libid' 4342 else 4343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4344 lt_cv_file_magic_cmd='$OBJDUMP -f' 4345 fi 4346 ;; 4347 4348cegcc) 4349 # use the weaker test based on 'objdump'. See mingw*. 4350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4351 lt_cv_file_magic_cmd='$OBJDUMP -f' 4352 ;; 4353 4354darwin* | rhapsody*) 4355 lt_cv_deplibs_check_method=pass_all 4356 ;; 4357 4358freebsd* | dragonfly*) 4359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4360 case $host_cpu in 4361 i*86 ) 4362 # Not sure whether the presence of OpenBSD here was a mistake. 4363 # Let's accept both of them until this is cleared up. 4364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4365 lt_cv_file_magic_cmd=/usr/bin/file 4366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4367 ;; 4368 esac 4369 else 4370 lt_cv_deplibs_check_method=pass_all 4371 fi 4372 ;; 4373 4374gnu*) 4375 lt_cv_deplibs_check_method=pass_all 4376 ;; 4377 4378hpux10.20* | hpux11*) 4379 lt_cv_file_magic_cmd=/usr/bin/file 4380 case $host_cpu in 4381 ia64*) 4382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4384 ;; 4385 hppa*64*) 4386 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]' 4387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4388 ;; 4389 *) 4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4391 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4392 ;; 4393 esac 4394 ;; 4395 4396interix[3-9]*) 4397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4399 ;; 4400 4401irix5* | irix6* | nonstopux*) 4402 case $LD in 4403 *-32|*"-32 ") libmagic=32-bit;; 4404 *-n32|*"-n32 ") libmagic=N32;; 4405 *-64|*"-64 ") libmagic=64-bit;; 4406 *) libmagic=never-match;; 4407 esac 4408 lt_cv_deplibs_check_method=pass_all 4409 ;; 4410 4411# This must be Linux ELF. 4412linux* | k*bsd*-gnu) 4413 lt_cv_deplibs_check_method=pass_all 4414 ;; 4415 4416netbsd*) 4417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4419 else 4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4421 fi 4422 ;; 4423 4424newos6*) 4425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4426 lt_cv_file_magic_cmd=/usr/bin/file 4427 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4428 ;; 4429 4430*nto* | *qnx*) 4431 lt_cv_deplibs_check_method=pass_all 4432 ;; 4433 4434openbsd*) 4435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4437 else 4438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4439 fi 4440 ;; 4441 4442osf3* | osf4* | osf5*) 4443 lt_cv_deplibs_check_method=pass_all 4444 ;; 4445 4446rdos*) 4447 lt_cv_deplibs_check_method=pass_all 4448 ;; 4449 4450solaris*) 4451 lt_cv_deplibs_check_method=pass_all 4452 ;; 4453 4454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4455 lt_cv_deplibs_check_method=pass_all 4456 ;; 4457 4458sysv4 | sysv4.3*) 4459 case $host_vendor in 4460 motorola) 4461 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]' 4462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4463 ;; 4464 ncr) 4465 lt_cv_deplibs_check_method=pass_all 4466 ;; 4467 sequent) 4468 lt_cv_file_magic_cmd='/bin/file' 4469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4470 ;; 4471 sni) 4472 lt_cv_file_magic_cmd='/bin/file' 4473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4474 lt_cv_file_magic_test_file=/lib/libc.so 4475 ;; 4476 siemens) 4477 lt_cv_deplibs_check_method=pass_all 4478 ;; 4479 pc) 4480 lt_cv_deplibs_check_method=pass_all 4481 ;; 4482 esac 4483 ;; 4484 4485tpf*) 4486 lt_cv_deplibs_check_method=pass_all 4487 ;; 4488esac 4489 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4492$as_echo "$lt_cv_deplibs_check_method" >&6; } 4493file_magic_cmd=$lt_cv_file_magic_cmd 4494deplibs_check_method=$lt_cv_deplibs_check_method 4495test -z "$deplibs_check_method" && deplibs_check_method=unknown 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508if test -n "$ac_tool_prefix"; then 4509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4510set dummy ${ac_tool_prefix}ar; ac_word=$2 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4512$as_echo_n "checking for $ac_word... " >&6; } 4513if ${ac_cv_prog_AR+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -n "$AR"; then 4517 ac_cv_prog_AR="$AR" # Let the user override the test. 4518else 4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4526 ac_cv_prog_AR="${ac_tool_prefix}ar" 4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534fi 4535fi 4536AR=$ac_cv_prog_AR 4537if test -n "$AR"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4539$as_echo "$AR" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546fi 4547if test -z "$ac_cv_prog_AR"; then 4548 ac_ct_AR=$AR 4549 # Extract the first word of "ar", so it can be a program name with args. 4550set dummy ar; ac_word=$2 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4552$as_echo_n "checking for $ac_word... " >&6; } 4553if ${ac_cv_prog_ac_ct_AR+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if test -n "$ac_ct_AR"; then 4557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4558else 4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4560for as_dir in $PATH 4561do 4562 IFS=$as_save_IFS 4563 test -z "$as_dir" && as_dir=. 4564 for ac_exec_ext in '' $ac_executable_extensions; do 4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4566 ac_cv_prog_ac_ct_AR="ar" 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4568 break 2 4569 fi 4570done 4571 done 4572IFS=$as_save_IFS 4573 4574fi 4575fi 4576ac_ct_AR=$ac_cv_prog_ac_ct_AR 4577if test -n "$ac_ct_AR"; then 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4579$as_echo "$ac_ct_AR" >&6; } 4580else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4582$as_echo "no" >&6; } 4583fi 4584 4585 if test "x$ac_ct_AR" = x; then 4586 AR="false" 4587 else 4588 case $cross_compiling:$ac_tool_warned in 4589yes:) 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4592ac_tool_warned=yes ;; 4593esac 4594 AR=$ac_ct_AR 4595 fi 4596else 4597 AR="$ac_cv_prog_AR" 4598fi 4599 4600test -z "$AR" && AR=ar 4601test -z "$AR_FLAGS" && AR_FLAGS=cru 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613if test -n "$ac_tool_prefix"; then 4614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4615set dummy ${ac_tool_prefix}strip; ac_word=$2 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4617$as_echo_n "checking for $ac_word... " >&6; } 4618if ${ac_cv_prog_STRIP+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 if test -n "$STRIP"; then 4622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4623else 4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635done 4636 done 4637IFS=$as_save_IFS 4638 4639fi 4640fi 4641STRIP=$ac_cv_prog_STRIP 4642if test -n "$STRIP"; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4644$as_echo "$STRIP" >&6; } 4645else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648fi 4649 4650 4651fi 4652if test -z "$ac_cv_prog_STRIP"; then 4653 ac_ct_STRIP=$STRIP 4654 # Extract the first word of "strip", so it can be a program name with args. 4655set dummy strip; ac_word=$2 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657$as_echo_n "checking for $ac_word... " >&6; } 4658if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 if test -n "$ac_ct_STRIP"; then 4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4663else 4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665for as_dir in $PATH 4666do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4671 ac_cv_prog_ac_ct_STRIP="strip" 4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675done 4676 done 4677IFS=$as_save_IFS 4678 4679fi 4680fi 4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4682if test -n "$ac_ct_STRIP"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4684$as_echo "$ac_ct_STRIP" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 if test "x$ac_ct_STRIP" = x; then 4691 STRIP=":" 4692 else 4693 case $cross_compiling:$ac_tool_warned in 4694yes:) 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4697ac_tool_warned=yes ;; 4698esac 4699 STRIP=$ac_ct_STRIP 4700 fi 4701else 4702 STRIP="$ac_cv_prog_STRIP" 4703fi 4704 4705test -z "$STRIP" && STRIP=: 4706 4707 4708 4709 4710 4711 4712if test -n "$ac_tool_prefix"; then 4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4714set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4716$as_echo_n "checking for $ac_word... " >&6; } 4717if ${ac_cv_prog_RANLIB+:} false; then : 4718 $as_echo_n "(cached) " >&6 4719else 4720 if test -n "$RANLIB"; then 4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4722else 4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724for as_dir in $PATH 4725do 4726 IFS=$as_save_IFS 4727 test -z "$as_dir" && as_dir=. 4728 for ac_exec_ext in '' $ac_executable_extensions; do 4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4732 break 2 4733 fi 4734done 4735 done 4736IFS=$as_save_IFS 4737 4738fi 4739fi 4740RANLIB=$ac_cv_prog_RANLIB 4741if test -n "$RANLIB"; then 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4743$as_echo "$RANLIB" >&6; } 4744else 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747fi 4748 4749 4750fi 4751if test -z "$ac_cv_prog_RANLIB"; then 4752 ac_ct_RANLIB=$RANLIB 4753 # Extract the first word of "ranlib", so it can be a program name with args. 4754set dummy ranlib; ac_word=$2 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4756$as_echo_n "checking for $ac_word... " >&6; } 4757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -n "$ac_ct_RANLIB"; then 4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4770 ac_cv_prog_ac_ct_RANLIB="ranlib" 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775 done 4776IFS=$as_save_IFS 4777 4778fi 4779fi 4780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4781if test -n "$ac_ct_RANLIB"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4783$as_echo "$ac_ct_RANLIB" >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4786$as_echo "no" >&6; } 4787fi 4788 4789 if test "x$ac_ct_RANLIB" = x; then 4790 RANLIB=":" 4791 else 4792 case $cross_compiling:$ac_tool_warned in 4793yes:) 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4796ac_tool_warned=yes ;; 4797esac 4798 RANLIB=$ac_ct_RANLIB 4799 fi 4800else 4801 RANLIB="$ac_cv_prog_RANLIB" 4802fi 4803 4804test -z "$RANLIB" && RANLIB=: 4805 4806 4807 4808 4809 4810 4811# Determine commands to create old-style static archives. 4812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4813old_postinstall_cmds='chmod 644 $oldlib' 4814old_postuninstall_cmds= 4815 4816if test -n "$RANLIB"; then 4817 case $host_os in 4818 openbsd*) 4819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4820 ;; 4821 *) 4822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4823 ;; 4824 esac 4825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4826fi 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861# If no C compiler was specified, use CC. 4862LTCC=${LTCC-"$CC"} 4863 4864# If no C compiler flags were specified, use CFLAGS. 4865LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4866 4867# Allow CC to be a program name with arguments. 4868compiler=$CC 4869 4870 4871# Check for command to grab the raw symbol name followed by C symbol from nm. 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4873$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4874if ${lt_cv_sys_global_symbol_pipe+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 4878# These are sane defaults that work on at least a few old systems. 4879# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4880 4881# Character class describing NM global symbol codes. 4882symcode='[BCDEGRST]' 4883 4884# Regexp to match symbols that can be accessed directly from C. 4885sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4886 4887# Define system-specific variables. 4888case $host_os in 4889aix*) 4890 symcode='[BCDT]' 4891 ;; 4892cygwin* | mingw* | pw32* | cegcc*) 4893 symcode='[ABCDGISTW]' 4894 ;; 4895hpux*) 4896 if test "$host_cpu" = ia64; then 4897 symcode='[ABCDEGRST]' 4898 fi 4899 ;; 4900irix* | nonstopux*) 4901 symcode='[BCDEGRST]' 4902 ;; 4903osf*) 4904 symcode='[BCDEGQRST]' 4905 ;; 4906solaris*) 4907 symcode='[BDRT]' 4908 ;; 4909sco3.2v5*) 4910 symcode='[DT]' 4911 ;; 4912sysv4.2uw2*) 4913 symcode='[DT]' 4914 ;; 4915sysv5* | sco5v6* | unixware* | OpenUNIX*) 4916 symcode='[ABDT]' 4917 ;; 4918sysv4) 4919 symcode='[DFNSTU]' 4920 ;; 4921esac 4922 4923# If we're using GNU nm, then use its standard symbol codes. 4924case `$NM -V 2>&1` in 4925*GNU* | *'with BFD'*) 4926 symcode='[ABCDGIRSTW]' ;; 4927esac 4928 4929# Transform an extracted symbol line into a proper C declaration. 4930# Some systems (esp. on ia64) link data and code symbols differently, 4931# so use this general approach. 4932lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4933 4934# Transform an extracted symbol line into symbol name and symbol address 4935lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4936lt_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'" 4937 4938# Handle CRLF in mingw tool chain 4939opt_cr= 4940case $build_os in 4941mingw*) 4942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4943 ;; 4944esac 4945 4946# Try without a prefix underscore, then with it. 4947for ac_symprfx in "" "_"; do 4948 4949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4950 symxfrm="\\1 $ac_symprfx\\2 \\2" 4951 4952 # Write the raw and C identifiers. 4953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4954 # Fake it for dumpbin and say T for any non-static function 4955 # and D for any global variable. 4956 # Also find C++ and __fastcall symbols from MSVC++, 4957 # which start with @ or ?. 4958 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4959" {last_section=section; section=\$ 3};"\ 4960" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4961" \$ 0!~/External *\|/{next};"\ 4962" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4963" {if(hide[section]) next};"\ 4964" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4965" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4966" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4967" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4968" ' prfx=^$ac_symprfx" 4969 else 4970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4971 fi 4972 4973 # Check to see that the pipe works correctly. 4974 pipe_works=no 4975 4976 rm -f conftest* 4977 cat > conftest.$ac_ext <<_LT_EOF 4978#ifdef __cplusplus 4979extern "C" { 4980#endif 4981char nm_test_var; 4982void nm_test_func(void); 4983void nm_test_func(void){} 4984#ifdef __cplusplus 4985} 4986#endif 4987int main(){nm_test_var='a';nm_test_func();return(0);} 4988_LT_EOF 4989 4990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4991 (eval $ac_compile) 2>&5 4992 ac_status=$? 4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4994 test $ac_status = 0; }; then 4995 # Now try to grab the symbols. 4996 nlist=conftest.nm 4997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 4998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4999 ac_status=$? 5000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5001 test $ac_status = 0; } && test -s "$nlist"; then 5002 # Try sorting and uniquifying the output. 5003 if sort "$nlist" | uniq > "$nlist"T; then 5004 mv -f "$nlist"T "$nlist" 5005 else 5006 rm -f "$nlist"T 5007 fi 5008 5009 # Make sure that we snagged all the symbols we need. 5010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5012 cat <<_LT_EOF > conftest.$ac_ext 5013#ifdef __cplusplus 5014extern "C" { 5015#endif 5016 5017_LT_EOF 5018 # Now generate the symbol file. 5019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5020 5021 cat <<_LT_EOF >> conftest.$ac_ext 5022 5023/* The mapping between symbol names and symbols. */ 5024const struct { 5025 const char *name; 5026 void *address; 5027} 5028lt__PROGRAM__LTX_preloaded_symbols[] = 5029{ 5030 { "@PROGRAM@", (void *) 0 }, 5031_LT_EOF 5032 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5033 cat <<\_LT_EOF >> conftest.$ac_ext 5034 {0, (void *) 0} 5035}; 5036 5037/* This works around a problem in FreeBSD linker */ 5038#ifdef FREEBSD_WORKAROUND 5039static const void *lt_preloaded_setup() { 5040 return lt__PROGRAM__LTX_preloaded_symbols; 5041} 5042#endif 5043 5044#ifdef __cplusplus 5045} 5046#endif 5047_LT_EOF 5048 # Now try linking the two files. 5049 mv conftest.$ac_objext conftstm.$ac_objext 5050 lt_save_LIBS="$LIBS" 5051 lt_save_CFLAGS="$CFLAGS" 5052 LIBS="conftstm.$ac_objext" 5053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5055 (eval $ac_link) 2>&5 5056 ac_status=$? 5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5059 pipe_works=yes 5060 fi 5061 LIBS="$lt_save_LIBS" 5062 CFLAGS="$lt_save_CFLAGS" 5063 else 5064 echo "cannot find nm_test_func in $nlist" >&5 5065 fi 5066 else 5067 echo "cannot find nm_test_var in $nlist" >&5 5068 fi 5069 else 5070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5071 fi 5072 else 5073 echo "$progname: failed program was:" >&5 5074 cat conftest.$ac_ext >&5 5075 fi 5076 rm -rf conftest* conftst* 5077 5078 # Do not use the global_symbol_pipe unless it works. 5079 if test "$pipe_works" = yes; then 5080 break 5081 else 5082 lt_cv_sys_global_symbol_pipe= 5083 fi 5084done 5085 5086fi 5087 5088if test -z "$lt_cv_sys_global_symbol_pipe"; then 5089 lt_cv_sys_global_symbol_to_cdecl= 5090fi 5091if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5093$as_echo "failed" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5096$as_echo "ok" >&6; } 5097fi 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121# Check whether --enable-libtool-lock was given. 5122if test "${enable_libtool_lock+set}" = set; then : 5123 enableval=$enable_libtool_lock; 5124fi 5125 5126test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5127 5128# Some flags need to be propagated to the compiler or linker for good 5129# libtool support. 5130case $host in 5131ia64-*-hpux*) 5132 # Find out which ABI we are using. 5133 echo 'int i;' > conftest.$ac_ext 5134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5135 (eval $ac_compile) 2>&5 5136 ac_status=$? 5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5138 test $ac_status = 0; }; then 5139 case `/usr/bin/file conftest.$ac_objext` in 5140 *ELF-32*) 5141 HPUX_IA64_MODE="32" 5142 ;; 5143 *ELF-64*) 5144 HPUX_IA64_MODE="64" 5145 ;; 5146 esac 5147 fi 5148 rm -rf conftest* 5149 ;; 5150*-*-irix6*) 5151 # Find out which ABI we are using. 5152 echo '#line 5152 "configure"' > conftest.$ac_ext 5153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5154 (eval $ac_compile) 2>&5 5155 ac_status=$? 5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5157 test $ac_status = 0; }; then 5158 if test "$lt_cv_prog_gnu_ld" = yes; then 5159 case `/usr/bin/file conftest.$ac_objext` in 5160 *32-bit*) 5161 LD="${LD-ld} -melf32bsmip" 5162 ;; 5163 *N32*) 5164 LD="${LD-ld} -melf32bmipn32" 5165 ;; 5166 *64-bit*) 5167 LD="${LD-ld} -melf64bmip" 5168 ;; 5169 esac 5170 else 5171 case `/usr/bin/file conftest.$ac_objext` in 5172 *32-bit*) 5173 LD="${LD-ld} -32" 5174 ;; 5175 *N32*) 5176 LD="${LD-ld} -n32" 5177 ;; 5178 *64-bit*) 5179 LD="${LD-ld} -64" 5180 ;; 5181 esac 5182 fi 5183 fi 5184 rm -rf conftest* 5185 ;; 5186 5187x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5188s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5189 # Find out which ABI we are using. 5190 echo 'int i;' > conftest.$ac_ext 5191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5192 (eval $ac_compile) 2>&5 5193 ac_status=$? 5194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5195 test $ac_status = 0; }; then 5196 case `/usr/bin/file conftest.o` in 5197 *32-bit*) 5198 case $host in 5199 x86_64-*kfreebsd*-gnu) 5200 LD="${LD-ld} -m elf_i386_fbsd" 5201 ;; 5202 x86_64-*linux*) 5203 LD="${LD-ld} -m elf_i386" 5204 ;; 5205 ppc64-*linux*|powerpc64-*linux*) 5206 LD="${LD-ld} -m elf32ppclinux" 5207 ;; 5208 s390x-*linux*) 5209 LD="${LD-ld} -m elf_s390" 5210 ;; 5211 sparc64-*linux*) 5212 LD="${LD-ld} -m elf32_sparc" 5213 ;; 5214 esac 5215 ;; 5216 *64-bit*) 5217 case $host in 5218 x86_64-*kfreebsd*-gnu) 5219 LD="${LD-ld} -m elf_x86_64_fbsd" 5220 ;; 5221 x86_64-*linux*) 5222 LD="${LD-ld} -m elf_x86_64" 5223 ;; 5224 ppc*-*linux*|powerpc*-*linux*) 5225 LD="${LD-ld} -m elf64ppc" 5226 ;; 5227 s390*-*linux*|s390*-*tpf*) 5228 LD="${LD-ld} -m elf64_s390" 5229 ;; 5230 sparc*-*linux*) 5231 LD="${LD-ld} -m elf64_sparc" 5232 ;; 5233 esac 5234 ;; 5235 esac 5236 fi 5237 rm -rf conftest* 5238 ;; 5239 5240*-*-sco3.2v5*) 5241 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5242 SAVE_CFLAGS="$CFLAGS" 5243 CFLAGS="$CFLAGS -belf" 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5245$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5246if ${lt_cv_cc_needs_belf+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 ac_ext=c 5250ac_cpp='$CPP $CPPFLAGS' 5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5253ac_compiler_gnu=$ac_cv_c_compiler_gnu 5254 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257 5258int 5259main () 5260{ 5261 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_link "$LINENO"; then : 5267 lt_cv_cc_needs_belf=yes 5268else 5269 lt_cv_cc_needs_belf=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext \ 5272 conftest$ac_exeext conftest.$ac_ext 5273 ac_ext=c 5274ac_cpp='$CPP $CPPFLAGS' 5275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5277ac_compiler_gnu=$ac_cv_c_compiler_gnu 5278 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5281$as_echo "$lt_cv_cc_needs_belf" >&6; } 5282 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5284 CFLAGS="$SAVE_CFLAGS" 5285 fi 5286 ;; 5287sparc*-*solaris*) 5288 # Find out which ABI we are using. 5289 echo 'int i;' > conftest.$ac_ext 5290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5291 (eval $ac_compile) 2>&5 5292 ac_status=$? 5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5294 test $ac_status = 0; }; then 5295 case `/usr/bin/file conftest.o` in 5296 *64-bit*) 5297 case $lt_cv_prog_gnu_ld in 5298 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5299 *) 5300 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5301 LD="${LD-ld} -64" 5302 fi 5303 ;; 5304 esac 5305 ;; 5306 esac 5307 fi 5308 rm -rf conftest* 5309 ;; 5310esac 5311 5312need_locks="$enable_libtool_lock" 5313 5314 5315 case $host_os in 5316 rhapsody* | darwin*) 5317 if test -n "$ac_tool_prefix"; then 5318 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5319set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321$as_echo_n "checking for $ac_word... " >&6; } 5322if ${ac_cv_prog_DSYMUTIL+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 if test -n "$DSYMUTIL"; then 5326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5327else 5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329for as_dir in $PATH 5330do 5331 IFS=$as_save_IFS 5332 test -z "$as_dir" && as_dir=. 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5335 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5337 break 2 5338 fi 5339done 5340 done 5341IFS=$as_save_IFS 5342 5343fi 5344fi 5345DSYMUTIL=$ac_cv_prog_DSYMUTIL 5346if test -n "$DSYMUTIL"; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5348$as_echo "$DSYMUTIL" >&6; } 5349else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352fi 5353 5354 5355fi 5356if test -z "$ac_cv_prog_DSYMUTIL"; then 5357 ac_ct_DSYMUTIL=$DSYMUTIL 5358 # Extract the first word of "dsymutil", so it can be a program name with args. 5359set dummy dsymutil; ac_word=$2 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5361$as_echo_n "checking for $ac_word... " >&6; } 5362if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 if test -n "$ac_ct_DSYMUTIL"; then 5366 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5367else 5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH 5370do 5371 IFS=$as_save_IFS 5372 test -z "$as_dir" && as_dir=. 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5375 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379done 5380 done 5381IFS=$as_save_IFS 5382 5383fi 5384fi 5385ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5386if test -n "$ac_ct_DSYMUTIL"; then 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5388$as_echo "$ac_ct_DSYMUTIL" >&6; } 5389else 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391$as_echo "no" >&6; } 5392fi 5393 5394 if test "x$ac_ct_DSYMUTIL" = x; then 5395 DSYMUTIL=":" 5396 else 5397 case $cross_compiling:$ac_tool_warned in 5398yes:) 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5401ac_tool_warned=yes ;; 5402esac 5403 DSYMUTIL=$ac_ct_DSYMUTIL 5404 fi 5405else 5406 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5407fi 5408 5409 if test -n "$ac_tool_prefix"; then 5410 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5411set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5413$as_echo_n "checking for $ac_word... " >&6; } 5414if ${ac_cv_prog_NMEDIT+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 if test -n "$NMEDIT"; then 5418 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5419else 5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5427 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5429 break 2 5430 fi 5431done 5432 done 5433IFS=$as_save_IFS 5434 5435fi 5436fi 5437NMEDIT=$ac_cv_prog_NMEDIT 5438if test -n "$NMEDIT"; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5440$as_echo "$NMEDIT" >&6; } 5441else 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5443$as_echo "no" >&6; } 5444fi 5445 5446 5447fi 5448if test -z "$ac_cv_prog_NMEDIT"; then 5449 ac_ct_NMEDIT=$NMEDIT 5450 # Extract the first word of "nmedit", so it can be a program name with args. 5451set dummy nmedit; ac_word=$2 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5453$as_echo_n "checking for $ac_word... " >&6; } 5454if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456else 5457 if test -n "$ac_ct_NMEDIT"; then 5458 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5459else 5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5461for as_dir in $PATH 5462do 5463 IFS=$as_save_IFS 5464 test -z "$as_dir" && as_dir=. 5465 for ac_exec_ext in '' $ac_executable_extensions; do 5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5467 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5469 break 2 5470 fi 5471done 5472 done 5473IFS=$as_save_IFS 5474 5475fi 5476fi 5477ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5478if test -n "$ac_ct_NMEDIT"; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5480$as_echo "$ac_ct_NMEDIT" >&6; } 5481else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483$as_echo "no" >&6; } 5484fi 5485 5486 if test "x$ac_ct_NMEDIT" = x; then 5487 NMEDIT=":" 5488 else 5489 case $cross_compiling:$ac_tool_warned in 5490yes:) 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5493ac_tool_warned=yes ;; 5494esac 5495 NMEDIT=$ac_ct_NMEDIT 5496 fi 5497else 5498 NMEDIT="$ac_cv_prog_NMEDIT" 5499fi 5500 5501 if test -n "$ac_tool_prefix"; then 5502 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5503set dummy ${ac_tool_prefix}lipo; ac_word=$2 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5505$as_echo_n "checking for $ac_word... " >&6; } 5506if ${ac_cv_prog_LIPO+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 if test -n "$LIPO"; then 5510 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5511else 5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5513for as_dir in $PATH 5514do 5515 IFS=$as_save_IFS 5516 test -z "$as_dir" && as_dir=. 5517 for ac_exec_ext in '' $ac_executable_extensions; do 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5519 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5521 break 2 5522 fi 5523done 5524 done 5525IFS=$as_save_IFS 5526 5527fi 5528fi 5529LIPO=$ac_cv_prog_LIPO 5530if test -n "$LIPO"; then 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5532$as_echo "$LIPO" >&6; } 5533else 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5535$as_echo "no" >&6; } 5536fi 5537 5538 5539fi 5540if test -z "$ac_cv_prog_LIPO"; then 5541 ac_ct_LIPO=$LIPO 5542 # Extract the first word of "lipo", so it can be a program name with args. 5543set dummy lipo; ac_word=$2 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$ac_ct_LIPO"; then 5550 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5559 ac_cv_prog_ac_ct_LIPO="lipo" 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564 done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5570if test -n "$ac_ct_LIPO"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5572$as_echo "$ac_ct_LIPO" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 if test "x$ac_ct_LIPO" = x; then 5579 LIPO=":" 5580 else 5581 case $cross_compiling:$ac_tool_warned in 5582yes:) 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5585ac_tool_warned=yes ;; 5586esac 5587 LIPO=$ac_ct_LIPO 5588 fi 5589else 5590 LIPO="$ac_cv_prog_LIPO" 5591fi 5592 5593 if test -n "$ac_tool_prefix"; then 5594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5595set dummy ${ac_tool_prefix}otool; ac_word=$2 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5597$as_echo_n "checking for $ac_word... " >&6; } 5598if ${ac_cv_prog_OTOOL+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 if test -n "$OTOOL"; then 5602 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5603else 5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5605for as_dir in $PATH 5606do 5607 IFS=$as_save_IFS 5608 test -z "$as_dir" && as_dir=. 5609 for ac_exec_ext in '' $ac_executable_extensions; do 5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5611 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5613 break 2 5614 fi 5615done 5616 done 5617IFS=$as_save_IFS 5618 5619fi 5620fi 5621OTOOL=$ac_cv_prog_OTOOL 5622if test -n "$OTOOL"; then 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5624$as_echo "$OTOOL" >&6; } 5625else 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5627$as_echo "no" >&6; } 5628fi 5629 5630 5631fi 5632if test -z "$ac_cv_prog_OTOOL"; then 5633 ac_ct_OTOOL=$OTOOL 5634 # Extract the first word of "otool", so it can be a program name with args. 5635set dummy otool; ac_word=$2 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5637$as_echo_n "checking for $ac_word... " >&6; } 5638if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 if test -n "$ac_ct_OTOOL"; then 5642 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5643else 5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645for as_dir in $PATH 5646do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5651 ac_cv_prog_ac_ct_OTOOL="otool" 5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655done 5656 done 5657IFS=$as_save_IFS 5658 5659fi 5660fi 5661ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5662if test -n "$ac_ct_OTOOL"; then 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5664$as_echo "$ac_ct_OTOOL" >&6; } 5665else 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5667$as_echo "no" >&6; } 5668fi 5669 5670 if test "x$ac_ct_OTOOL" = x; then 5671 OTOOL=":" 5672 else 5673 case $cross_compiling:$ac_tool_warned in 5674yes:) 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5677ac_tool_warned=yes ;; 5678esac 5679 OTOOL=$ac_ct_OTOOL 5680 fi 5681else 5682 OTOOL="$ac_cv_prog_OTOOL" 5683fi 5684 5685 if test -n "$ac_tool_prefix"; then 5686 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5687set dummy ${ac_tool_prefix}otool64; ac_word=$2 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5689$as_echo_n "checking for $ac_word... " >&6; } 5690if ${ac_cv_prog_OTOOL64+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 if test -n "$OTOOL64"; then 5694 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5695else 5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5697for as_dir in $PATH 5698do 5699 IFS=$as_save_IFS 5700 test -z "$as_dir" && as_dir=. 5701 for ac_exec_ext in '' $ac_executable_extensions; do 5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5703 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5705 break 2 5706 fi 5707done 5708 done 5709IFS=$as_save_IFS 5710 5711fi 5712fi 5713OTOOL64=$ac_cv_prog_OTOOL64 5714if test -n "$OTOOL64"; then 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5716$as_echo "$OTOOL64" >&6; } 5717else 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5719$as_echo "no" >&6; } 5720fi 5721 5722 5723fi 5724if test -z "$ac_cv_prog_OTOOL64"; then 5725 ac_ct_OTOOL64=$OTOOL64 5726 # Extract the first word of "otool64", so it can be a program name with args. 5727set dummy otool64; ac_word=$2 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5729$as_echo_n "checking for $ac_word... " >&6; } 5730if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 if test -n "$ac_ct_OTOOL64"; then 5734 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5735else 5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5737for as_dir in $PATH 5738do 5739 IFS=$as_save_IFS 5740 test -z "$as_dir" && as_dir=. 5741 for ac_exec_ext in '' $ac_executable_extensions; do 5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5743 ac_cv_prog_ac_ct_OTOOL64="otool64" 5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5745 break 2 5746 fi 5747done 5748 done 5749IFS=$as_save_IFS 5750 5751fi 5752fi 5753ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5754if test -n "$ac_ct_OTOOL64"; then 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5756$as_echo "$ac_ct_OTOOL64" >&6; } 5757else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5759$as_echo "no" >&6; } 5760fi 5761 5762 if test "x$ac_ct_OTOOL64" = x; then 5763 OTOOL64=":" 5764 else 5765 case $cross_compiling:$ac_tool_warned in 5766yes:) 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5769ac_tool_warned=yes ;; 5770esac 5771 OTOOL64=$ac_ct_OTOOL64 5772 fi 5773else 5774 OTOOL64="$ac_cv_prog_OTOOL64" 5775fi 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5804$as_echo_n "checking for -single_module linker flag... " >&6; } 5805if ${lt_cv_apple_cc_single_mod+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 lt_cv_apple_cc_single_mod=no 5809 if test -z "${LT_MULTI_MODULE}"; then 5810 # By default we will add the -single_module flag. You can override 5811 # by either setting the environment variable LT_MULTI_MODULE 5812 # non-empty at configure time, or by adding -multi_module to the 5813 # link flags. 5814 rm -rf libconftest.dylib* 5815 echo "int foo(void){return 1;}" > conftest.c 5816 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5817-dynamiclib -Wl,-single_module conftest.c" >&5 5818 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5819 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5820 _lt_result=$? 5821 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5822 lt_cv_apple_cc_single_mod=yes 5823 else 5824 cat conftest.err >&5 5825 fi 5826 rm -rf libconftest.dylib* 5827 rm -f conftest.* 5828 fi 5829fi 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5831$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5833$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5834if ${lt_cv_ld_exported_symbols_list+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 lt_cv_ld_exported_symbols_list=no 5838 save_LDFLAGS=$LDFLAGS 5839 echo "_main" > conftest.sym 5840 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843 5844int 5845main () 5846{ 5847 5848 ; 5849 return 0; 5850} 5851_ACEOF 5852if ac_fn_c_try_link "$LINENO"; then : 5853 lt_cv_ld_exported_symbols_list=yes 5854else 5855 lt_cv_ld_exported_symbols_list=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext \ 5858 conftest$ac_exeext conftest.$ac_ext 5859 LDFLAGS="$save_LDFLAGS" 5860 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5863$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5864 case $host_os in 5865 rhapsody* | darwin1.[012]) 5866 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5867 darwin1.*) 5868 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5869 darwin*) # darwin 5.x on 5870 # if running on 10.5 or later, the deployment target defaults 5871 # to the OS version, if on x86, and 10.4, the deployment 5872 # target defaults to 10.4. Don't you love it? 5873 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5874 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5876 10.[012]*) 5877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5878 10.*) 5879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5880 esac 5881 ;; 5882 esac 5883 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5884 _lt_dar_single_mod='$single_module' 5885 fi 5886 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5887 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5888 else 5889 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5890 fi 5891 if test "$DSYMUTIL" != ":"; then 5892 _lt_dsymutil='~$DSYMUTIL $lib || :' 5893 else 5894 _lt_dsymutil= 5895 fi 5896 ;; 5897 esac 5898 5899ac_ext=c 5900ac_cpp='$CPP $CPPFLAGS' 5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5903ac_compiler_gnu=$ac_cv_c_compiler_gnu 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5905$as_echo_n "checking how to run the C preprocessor... " >&6; } 5906# On Suns, sometimes $CPP names a directory. 5907if test -n "$CPP" && test -d "$CPP"; then 5908 CPP= 5909fi 5910if test -z "$CPP"; then 5911 if ${ac_cv_prog_CPP+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 # Double quotes because CPP needs to be expanded 5915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5916 do 5917 ac_preproc_ok=false 5918for ac_c_preproc_warn_flag in '' yes 5919do 5920 # Use a header file that comes with gcc, so configuring glibc 5921 # with a fresh cross-compiler works. 5922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5923 # <limits.h> exists even on freestanding compilers. 5924 # On the NeXT, cc -E runs the code through the compiler's parser, 5925 # not just through cpp. "Syntax error" is here to catch this case. 5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 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_fn_c_try_cpp "$LINENO"; then : 5936 5937else 5938 # Broken: fails on valid input. 5939continue 5940fi 5941rm -f conftest.err conftest.i conftest.$ac_ext 5942 5943 # OK, works on sane cases. Now check whether nonexistent headers 5944 # can be detected and how. 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946/* end confdefs.h. */ 5947#include <ac_nonexistent.h> 5948_ACEOF 5949if ac_fn_c_try_cpp "$LINENO"; then : 5950 # Broken: success on invalid input. 5951continue 5952else 5953 # Passes both tests. 5954ac_preproc_ok=: 5955break 5956fi 5957rm -f conftest.err conftest.i conftest.$ac_ext 5958 5959done 5960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5961rm -f conftest.i conftest.err conftest.$ac_ext 5962if $ac_preproc_ok; then : 5963 break 5964fi 5965 5966 done 5967 ac_cv_prog_CPP=$CPP 5968 5969fi 5970 CPP=$ac_cv_prog_CPP 5971else 5972 ac_cv_prog_CPP=$CPP 5973fi 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5975$as_echo "$CPP" >&6; } 5976ac_preproc_ok=false 5977for ac_c_preproc_warn_flag in '' yes 5978do 5979 # Use a header file that comes with gcc, so configuring glibc 5980 # with a fresh cross-compiler works. 5981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5982 # <limits.h> exists even on freestanding compilers. 5983 # On the NeXT, cc -E runs the code through the compiler's parser, 5984 # not just through cpp. "Syntax error" is here to catch this case. 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987#ifdef __STDC__ 5988# include <limits.h> 5989#else 5990# include <assert.h> 5991#endif 5992 Syntax error 5993_ACEOF 5994if ac_fn_c_try_cpp "$LINENO"; then : 5995 5996else 5997 # Broken: fails on valid input. 5998continue 5999fi 6000rm -f conftest.err conftest.i conftest.$ac_ext 6001 6002 # OK, works on sane cases. Now check whether nonexistent headers 6003 # can be detected and how. 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006#include <ac_nonexistent.h> 6007_ACEOF 6008if ac_fn_c_try_cpp "$LINENO"; then : 6009 # Broken: success on invalid input. 6010continue 6011else 6012 # Passes both tests. 6013ac_preproc_ok=: 6014break 6015fi 6016rm -f conftest.err conftest.i conftest.$ac_ext 6017 6018done 6019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6020rm -f conftest.i conftest.err conftest.$ac_ext 6021if $ac_preproc_ok; then : 6022 6023else 6024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6026as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6027See \`config.log' for more details" "$LINENO" 5; } 6028fi 6029 6030ac_ext=c 6031ac_cpp='$CPP $CPPFLAGS' 6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6034ac_compiler_gnu=$ac_cv_c_compiler_gnu 6035 6036 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6038$as_echo_n "checking for ANSI C header files... " >&6; } 6039if ${ac_cv_header_stdc+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043/* end confdefs.h. */ 6044#include <stdlib.h> 6045#include <stdarg.h> 6046#include <string.h> 6047#include <float.h> 6048 6049int 6050main () 6051{ 6052 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057if ac_fn_c_try_compile "$LINENO"; then : 6058 ac_cv_header_stdc=yes 6059else 6060 ac_cv_header_stdc=no 6061fi 6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6063 6064if test $ac_cv_header_stdc = yes; then 6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068#include <string.h> 6069 6070_ACEOF 6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6072 $EGREP "memchr" >/dev/null 2>&1; then : 6073 6074else 6075 ac_cv_header_stdc=no 6076fi 6077rm -f conftest* 6078 6079fi 6080 6081if test $ac_cv_header_stdc = yes; then 6082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085#include <stdlib.h> 6086 6087_ACEOF 6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6089 $EGREP "free" >/dev/null 2>&1; then : 6090 6091else 6092 ac_cv_header_stdc=no 6093fi 6094rm -f conftest* 6095 6096fi 6097 6098if test $ac_cv_header_stdc = yes; then 6099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6100 if test "$cross_compiling" = yes; then : 6101 : 6102else 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105#include <ctype.h> 6106#include <stdlib.h> 6107#if ((' ' & 0x0FF) == 0x020) 6108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6110#else 6111# define ISLOWER(c) \ 6112 (('a' <= (c) && (c) <= 'i') \ 6113 || ('j' <= (c) && (c) <= 'r') \ 6114 || ('s' <= (c) && (c) <= 'z')) 6115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6116#endif 6117 6118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6119int 6120main () 6121{ 6122 int i; 6123 for (i = 0; i < 256; i++) 6124 if (XOR (islower (i), ISLOWER (i)) 6125 || toupper (i) != TOUPPER (i)) 6126 return 2; 6127 return 0; 6128} 6129_ACEOF 6130if ac_fn_c_try_run "$LINENO"; then : 6131 6132else 6133 ac_cv_header_stdc=no 6134fi 6135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6136 conftest.$ac_objext conftest.beam conftest.$ac_ext 6137fi 6138 6139fi 6140fi 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6142$as_echo "$ac_cv_header_stdc" >&6; } 6143if test $ac_cv_header_stdc = yes; then 6144 6145$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6146 6147fi 6148 6149# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6150for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6151 inttypes.h stdint.h unistd.h 6152do : 6153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6155" 6156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6157 cat >>confdefs.h <<_ACEOF 6158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6159_ACEOF 6160 6161fi 6162 6163done 6164 6165 6166for ac_header in dlfcn.h 6167do : 6168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6169" 6170if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6171 cat >>confdefs.h <<_ACEOF 6172#define HAVE_DLFCN_H 1 6173_ACEOF 6174 6175fi 6176 6177done 6178 6179 6180 6181# Set options 6182 6183 6184 6185 enable_dlopen=no 6186 6187 6188 enable_win32_dll=no 6189 6190 6191 # Check whether --enable-shared was given. 6192if test "${enable_shared+set}" = set; then : 6193 enableval=$enable_shared; p=${PACKAGE-default} 6194 case $enableval in 6195 yes) enable_shared=yes ;; 6196 no) enable_shared=no ;; 6197 *) 6198 enable_shared=no 6199 # Look at the argument we got. We use all the common list separators. 6200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6201 for pkg in $enableval; do 6202 IFS="$lt_save_ifs" 6203 if test "X$pkg" = "X$p"; then 6204 enable_shared=yes 6205 fi 6206 done 6207 IFS="$lt_save_ifs" 6208 ;; 6209 esac 6210else 6211 enable_shared=yes 6212fi 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 # Check whether --enable-static was given. 6223if test "${enable_static+set}" = set; then : 6224 enableval=$enable_static; p=${PACKAGE-default} 6225 case $enableval in 6226 yes) enable_static=yes ;; 6227 no) enable_static=no ;; 6228 *) 6229 enable_static=no 6230 # Look at the argument we got. We use all the common list separators. 6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6232 for pkg in $enableval; do 6233 IFS="$lt_save_ifs" 6234 if test "X$pkg" = "X$p"; then 6235 enable_static=yes 6236 fi 6237 done 6238 IFS="$lt_save_ifs" 6239 ;; 6240 esac 6241else 6242 enable_static=yes 6243fi 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254# Check whether --with-pic was given. 6255if test "${with_pic+set}" = set; then : 6256 withval=$with_pic; pic_mode="$withval" 6257else 6258 pic_mode=default 6259fi 6260 6261 6262test -z "$pic_mode" && pic_mode=default 6263 6264 6265 6266 6267 6268 6269 6270 # Check whether --enable-fast-install was given. 6271if test "${enable_fast_install+set}" = set; then : 6272 enableval=$enable_fast_install; p=${PACKAGE-default} 6273 case $enableval in 6274 yes) enable_fast_install=yes ;; 6275 no) enable_fast_install=no ;; 6276 *) 6277 enable_fast_install=no 6278 # Look at the argument we got. We use all the common list separators. 6279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6280 for pkg in $enableval; do 6281 IFS="$lt_save_ifs" 6282 if test "X$pkg" = "X$p"; then 6283 enable_fast_install=yes 6284 fi 6285 done 6286 IFS="$lt_save_ifs" 6287 ;; 6288 esac 6289else 6290 enable_fast_install=yes 6291fi 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303# This can be used to rebuild libtool when needed 6304LIBTOOL_DEPS="$ltmain" 6305 6306# Always use our own libtool. 6307LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333test -z "$LN_S" && LN_S="ln -s" 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348if test -n "${ZSH_VERSION+set}" ; then 6349 setopt NO_GLOB_SUBST 6350fi 6351 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6353$as_echo_n "checking for objdir... " >&6; } 6354if ${lt_cv_objdir+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 rm -f .libs 2>/dev/null 6358mkdir .libs 2>/dev/null 6359if test -d .libs; then 6360 lt_cv_objdir=.libs 6361else 6362 # MS-DOS does not allow filenames that begin with a dot. 6363 lt_cv_objdir=_libs 6364fi 6365rmdir .libs 2>/dev/null 6366fi 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6368$as_echo "$lt_cv_objdir" >&6; } 6369objdir=$lt_cv_objdir 6370 6371 6372 6373 6374 6375cat >>confdefs.h <<_ACEOF 6376#define LT_OBJDIR "$lt_cv_objdir/" 6377_ACEOF 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395case $host_os in 6396aix3*) 6397 # AIX sometimes has problems with the GCC collect2 program. For some 6398 # reason, if we set the COLLECT_NAMES environment variable, the problems 6399 # vanish in a puff of smoke. 6400 if test "X${COLLECT_NAMES+set}" != Xset; then 6401 COLLECT_NAMES= 6402 export COLLECT_NAMES 6403 fi 6404 ;; 6405esac 6406 6407# Sed substitution that helps us do robust quoting. It backslashifies 6408# metacharacters that are still active within double-quoted strings. 6409sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6410 6411# Same as above, but do not quote variable references. 6412double_quote_subst='s/\(["`\\]\)/\\\1/g' 6413 6414# Sed substitution to delay expansion of an escaped shell variable in a 6415# double_quote_subst'ed string. 6416delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6417 6418# Sed substitution to delay expansion of an escaped single quote. 6419delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6420 6421# Sed substitution to avoid accidental globbing in evaled expressions 6422no_glob_subst='s/\*/\\\*/g' 6423 6424# Global variables: 6425ofile=libtool 6426can_build_shared=yes 6427 6428# All known linkers require a `.a' archive for static linking (except MSVC, 6429# which needs '.lib'). 6430libext=a 6431 6432with_gnu_ld="$lt_cv_prog_gnu_ld" 6433 6434old_CC="$CC" 6435old_CFLAGS="$CFLAGS" 6436 6437# Set sane defaults for various variables 6438test -z "$CC" && CC=cc 6439test -z "$LTCC" && LTCC=$CC 6440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6441test -z "$LD" && LD=ld 6442test -z "$ac_objext" && ac_objext=o 6443 6444for cc_temp in $compiler""; do 6445 case $cc_temp in 6446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6448 \-*) ;; 6449 *) break;; 6450 esac 6451done 6452cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6453 6454 6455# Only perform the check for file, if the check method requires it 6456test -z "$MAGIC_CMD" && MAGIC_CMD=file 6457case $deplibs_check_method in 6458file_magic*) 6459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6461$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6462if ${lt_cv_path_MAGIC_CMD+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 case $MAGIC_CMD in 6466[\\/*] | ?:[\\/]*) 6467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6468 ;; 6469*) 6470 lt_save_MAGIC_CMD="$MAGIC_CMD" 6471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6473 for ac_dir in $ac_dummy; do 6474 IFS="$lt_save_ifs" 6475 test -z "$ac_dir" && ac_dir=. 6476 if test -f $ac_dir/${ac_tool_prefix}file; then 6477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6478 if test -n "$file_magic_test_file"; then 6479 case $deplibs_check_method in 6480 "file_magic "*) 6481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6484 $EGREP "$file_magic_regex" > /dev/null; then 6485 : 6486 else 6487 cat <<_LT_EOF 1>&2 6488 6489*** Warning: the command libtool uses to detect shared libraries, 6490*** $file_magic_cmd, produces output that libtool cannot recognize. 6491*** The result is that libtool may fail to recognize shared libraries 6492*** as such. This will affect the creation of libtool libraries that 6493*** depend on shared libraries, but programs linked with such libtool 6494*** libraries will work regardless of this problem. Nevertheless, you 6495*** may want to report the problem to your system manager and/or to 6496*** [email protected] 6497 6498_LT_EOF 6499 fi ;; 6500 esac 6501 fi 6502 break 6503 fi 6504 done 6505 IFS="$lt_save_ifs" 6506 MAGIC_CMD="$lt_save_MAGIC_CMD" 6507 ;; 6508esac 6509fi 6510 6511MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6512if test -n "$MAGIC_CMD"; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6514$as_echo "$MAGIC_CMD" >&6; } 6515else 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517$as_echo "no" >&6; } 6518fi 6519 6520 6521 6522 6523 6524if test -z "$lt_cv_path_MAGIC_CMD"; then 6525 if test -n "$ac_tool_prefix"; then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6527$as_echo_n "checking for file... " >&6; } 6528if ${lt_cv_path_MAGIC_CMD+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 case $MAGIC_CMD in 6532[\\/*] | ?:[\\/]*) 6533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6534 ;; 6535*) 6536 lt_save_MAGIC_CMD="$MAGIC_CMD" 6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6539 for ac_dir in $ac_dummy; do 6540 IFS="$lt_save_ifs" 6541 test -z "$ac_dir" && ac_dir=. 6542 if test -f $ac_dir/file; then 6543 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6544 if test -n "$file_magic_test_file"; then 6545 case $deplibs_check_method in 6546 "file_magic "*) 6547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6550 $EGREP "$file_magic_regex" > /dev/null; then 6551 : 6552 else 6553 cat <<_LT_EOF 1>&2 6554 6555*** Warning: the command libtool uses to detect shared libraries, 6556*** $file_magic_cmd, produces output that libtool cannot recognize. 6557*** The result is that libtool may fail to recognize shared libraries 6558*** as such. This will affect the creation of libtool libraries that 6559*** depend on shared libraries, but programs linked with such libtool 6560*** libraries will work regardless of this problem. Nevertheless, you 6561*** may want to report the problem to your system manager and/or to 6562*** [email protected] 6563 6564_LT_EOF 6565 fi ;; 6566 esac 6567 fi 6568 break 6569 fi 6570 done 6571 IFS="$lt_save_ifs" 6572 MAGIC_CMD="$lt_save_MAGIC_CMD" 6573 ;; 6574esac 6575fi 6576 6577MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6578if test -n "$MAGIC_CMD"; then 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6580$as_echo "$MAGIC_CMD" >&6; } 6581else 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6583$as_echo "no" >&6; } 6584fi 6585 6586 6587 else 6588 MAGIC_CMD=: 6589 fi 6590fi 6591 6592 fi 6593 ;; 6594esac 6595 6596# Use C for the default configuration in the libtool script 6597 6598lt_save_CC="$CC" 6599ac_ext=c 6600ac_cpp='$CPP $CPPFLAGS' 6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6603ac_compiler_gnu=$ac_cv_c_compiler_gnu 6604 6605 6606# Source file extension for C test sources. 6607ac_ext=c 6608 6609# Object file extension for compiled C test sources. 6610objext=o 6611objext=$objext 6612 6613# Code to be used in simple compile tests 6614lt_simple_compile_test_code="int some_variable = 0;" 6615 6616# Code to be used in simple link tests 6617lt_simple_link_test_code='int main(){return(0);}' 6618 6619 6620 6621 6622 6623 6624 6625# If no C compiler was specified, use CC. 6626LTCC=${LTCC-"$CC"} 6627 6628# If no C compiler flags were specified, use CFLAGS. 6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6630 6631# Allow CC to be a program name with arguments. 6632compiler=$CC 6633 6634# Save the default compiler, since it gets overwritten when the other 6635# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6636compiler_DEFAULT=$CC 6637 6638# save warnings/boilerplate of simple test code 6639ac_outfile=conftest.$ac_objext 6640echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6642_lt_compiler_boilerplate=`cat conftest.err` 6643$RM conftest* 6644 6645ac_outfile=conftest.$ac_objext 6646echo "$lt_simple_link_test_code" >conftest.$ac_ext 6647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6648_lt_linker_boilerplate=`cat conftest.err` 6649$RM -r conftest* 6650 6651 6652if test -n "$compiler"; then 6653 6654lt_prog_compiler_no_builtin_flag= 6655 6656if test "$GCC" = yes; then 6657 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6658 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6660$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6661if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 lt_cv_prog_compiler_rtti_exceptions=no 6665 ac_outfile=conftest.$ac_objext 6666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6667 lt_compiler_flag="-fno-rtti -fno-exceptions" 6668 # Insert the option either (1) after the last *FLAGS variable, or 6669 # (2) before a word containing "conftest.", or (3) at the end. 6670 # Note that $ac_compile itself does not contain backslashes and begins 6671 # with a dollar sign (not a hyphen), so the echo should work correctly. 6672 # The option is referenced via a variable to avoid confusing sed. 6673 lt_compile=`echo "$ac_compile" | $SED \ 6674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6676 -e 's:$: $lt_compiler_flag:'` 6677 (eval echo "\"\$as_me:6677: $lt_compile\"" >&5) 6678 (eval "$lt_compile" 2>conftest.err) 6679 ac_status=$? 6680 cat conftest.err >&5 6681 echo "$as_me:6681: \$? = $ac_status" >&5 6682 if (exit $ac_status) && test -s "$ac_outfile"; then 6683 # The compiler can only warn and ignore the option if not recognized 6684 # So say no if there are warnings other than the usual output. 6685 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6688 lt_cv_prog_compiler_rtti_exceptions=yes 6689 fi 6690 fi 6691 $RM conftest* 6692 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6695$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6696 6697if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6699else 6700 : 6701fi 6702 6703fi 6704 6705 6706 6707 6708 6709 6710 lt_prog_compiler_wl= 6711lt_prog_compiler_pic= 6712lt_prog_compiler_static= 6713 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6715$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6716 6717 if test "$GCC" = yes; then 6718 lt_prog_compiler_wl='-Wl,' 6719 lt_prog_compiler_static='-static' 6720 6721 case $host_os in 6722 aix*) 6723 # All AIX code is PIC. 6724 if test "$host_cpu" = ia64; then 6725 # AIX 5 now supports IA64 processor 6726 lt_prog_compiler_static='-Bstatic' 6727 fi 6728 ;; 6729 6730 amigaos*) 6731 case $host_cpu in 6732 powerpc) 6733 # see comment about AmigaOS4 .so support 6734 lt_prog_compiler_pic='-fPIC' 6735 ;; 6736 m68k) 6737 # FIXME: we need at least 68020 code to build shared libraries, but 6738 # adding the `-m68020' flag to GCC prevents building anything better, 6739 # like `-m68040'. 6740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6741 ;; 6742 esac 6743 ;; 6744 6745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6746 # PIC is the default for these OSes. 6747 ;; 6748 6749 mingw* | cygwin* | pw32* | os2* | cegcc*) 6750 # This hack is so that the source file can tell whether it is being 6751 # built for inclusion in a dll (and should export symbols for example). 6752 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6753 # (--disable-auto-import) libraries 6754 lt_prog_compiler_pic='-DDLL_EXPORT' 6755 ;; 6756 6757 darwin* | rhapsody*) 6758 # PIC is the default on this platform 6759 # Common symbols not allowed in MH_DYLIB files 6760 lt_prog_compiler_pic='-fno-common' 6761 ;; 6762 6763 hpux*) 6764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6766 # sets the default TLS model and affects inlining. 6767 case $host_cpu in 6768 hppa*64*) 6769 # +Z the default 6770 ;; 6771 *) 6772 lt_prog_compiler_pic='-fPIC' 6773 ;; 6774 esac 6775 ;; 6776 6777 interix[3-9]*) 6778 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6779 # Instead, we relocate shared libraries at runtime. 6780 ;; 6781 6782 msdosdjgpp*) 6783 # Just because we use GCC doesn't mean we suddenly get shared libraries 6784 # on systems that don't support them. 6785 lt_prog_compiler_can_build_shared=no 6786 enable_shared=no 6787 ;; 6788 6789 *nto* | *qnx*) 6790 # QNX uses GNU C++, but need to define -shared option too, otherwise 6791 # it will coredump. 6792 lt_prog_compiler_pic='-fPIC -shared' 6793 ;; 6794 6795 sysv4*MP*) 6796 if test -d /usr/nec; then 6797 lt_prog_compiler_pic=-Kconform_pic 6798 fi 6799 ;; 6800 6801 *) 6802 lt_prog_compiler_pic='-fPIC' 6803 ;; 6804 esac 6805 else 6806 # PORTME Check for flag to pass linker flags through the system compiler. 6807 case $host_os in 6808 aix*) 6809 lt_prog_compiler_wl='-Wl,' 6810 if test "$host_cpu" = ia64; then 6811 # AIX 5 now supports IA64 processor 6812 lt_prog_compiler_static='-Bstatic' 6813 else 6814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6815 fi 6816 ;; 6817 6818 mingw* | cygwin* | pw32* | os2* | cegcc*) 6819 # This hack is so that the source file can tell whether it is being 6820 # built for inclusion in a dll (and should export symbols for example). 6821 lt_prog_compiler_pic='-DDLL_EXPORT' 6822 ;; 6823 6824 hpux9* | hpux10* | hpux11*) 6825 lt_prog_compiler_wl='-Wl,' 6826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6827 # not for PA HP-UX. 6828 case $host_cpu in 6829 hppa*64*|ia64*) 6830 # +Z the default 6831 ;; 6832 *) 6833 lt_prog_compiler_pic='+Z' 6834 ;; 6835 esac 6836 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6837 lt_prog_compiler_static='${wl}-a ${wl}archive' 6838 ;; 6839 6840 irix5* | irix6* | nonstopux*) 6841 lt_prog_compiler_wl='-Wl,' 6842 # PIC (with -KPIC) is the default. 6843 lt_prog_compiler_static='-non_shared' 6844 ;; 6845 6846 linux* | k*bsd*-gnu) 6847 case $cc_basename in 6848 # old Intel for x86_64 which still supported -KPIC. 6849 ecc*) 6850 lt_prog_compiler_wl='-Wl,' 6851 lt_prog_compiler_pic='-KPIC' 6852 lt_prog_compiler_static='-static' 6853 ;; 6854 # icc used to be incompatible with GCC. 6855 # ICC 10 doesn't accept -KPIC any more. 6856 icc* | ifort*) 6857 lt_prog_compiler_wl='-Wl,' 6858 lt_prog_compiler_pic='-fPIC' 6859 lt_prog_compiler_static='-static' 6860 ;; 6861 # Lahey Fortran 8.1. 6862 lf95*) 6863 lt_prog_compiler_wl='-Wl,' 6864 lt_prog_compiler_pic='--shared' 6865 lt_prog_compiler_static='--static' 6866 ;; 6867 pgcc* | pgf77* | pgf90* | pgf95*) 6868 # Portland Group compilers (*not* the Pentium gcc compiler, 6869 # which looks to be a dead project) 6870 lt_prog_compiler_wl='-Wl,' 6871 lt_prog_compiler_pic='-fpic' 6872 lt_prog_compiler_static='-Bstatic' 6873 ;; 6874 ccc*) 6875 lt_prog_compiler_wl='-Wl,' 6876 # All Alpha code is PIC. 6877 lt_prog_compiler_static='-non_shared' 6878 ;; 6879 xl*) 6880 # IBM XL C 8.0/Fortran 10.1 on PPC 6881 lt_prog_compiler_wl='-Wl,' 6882 lt_prog_compiler_pic='-qpic' 6883 lt_prog_compiler_static='-qstaticlink' 6884 ;; 6885 *) 6886 case `$CC -V 2>&1 | sed 5q` in 6887 *Sun\ C*) 6888 # Sun C 5.9 6889 lt_prog_compiler_pic='-KPIC' 6890 lt_prog_compiler_static='-Bstatic' 6891 lt_prog_compiler_wl='-Wl,' 6892 ;; 6893 *Sun\ F*) 6894 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6895 lt_prog_compiler_pic='-KPIC' 6896 lt_prog_compiler_static='-Bstatic' 6897 lt_prog_compiler_wl='' 6898 ;; 6899 esac 6900 ;; 6901 esac 6902 ;; 6903 6904 newsos6) 6905 lt_prog_compiler_pic='-KPIC' 6906 lt_prog_compiler_static='-Bstatic' 6907 ;; 6908 6909 *nto* | *qnx*) 6910 # QNX uses GNU C++, but need to define -shared option too, otherwise 6911 # it will coredump. 6912 lt_prog_compiler_pic='-fPIC -shared' 6913 ;; 6914 6915 osf3* | osf4* | osf5*) 6916 lt_prog_compiler_wl='-Wl,' 6917 # All OSF/1 code is PIC. 6918 lt_prog_compiler_static='-non_shared' 6919 ;; 6920 6921 rdos*) 6922 lt_prog_compiler_static='-non_shared' 6923 ;; 6924 6925 solaris*) 6926 lt_prog_compiler_pic='-KPIC' 6927 lt_prog_compiler_static='-Bstatic' 6928 case $cc_basename in 6929 f77* | f90* | f95*) 6930 lt_prog_compiler_wl='-Qoption ld ';; 6931 *) 6932 lt_prog_compiler_wl='-Wl,';; 6933 esac 6934 ;; 6935 6936 sunos4*) 6937 lt_prog_compiler_wl='-Qoption ld ' 6938 lt_prog_compiler_pic='-PIC' 6939 lt_prog_compiler_static='-Bstatic' 6940 ;; 6941 6942 sysv4 | sysv4.2uw2* | sysv4.3*) 6943 lt_prog_compiler_wl='-Wl,' 6944 lt_prog_compiler_pic='-KPIC' 6945 lt_prog_compiler_static='-Bstatic' 6946 ;; 6947 6948 sysv4*MP*) 6949 if test -d /usr/nec ;then 6950 lt_prog_compiler_pic='-Kconform_pic' 6951 lt_prog_compiler_static='-Bstatic' 6952 fi 6953 ;; 6954 6955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6956 lt_prog_compiler_wl='-Wl,' 6957 lt_prog_compiler_pic='-KPIC' 6958 lt_prog_compiler_static='-Bstatic' 6959 ;; 6960 6961 unicos*) 6962 lt_prog_compiler_wl='-Wl,' 6963 lt_prog_compiler_can_build_shared=no 6964 ;; 6965 6966 uts4*) 6967 lt_prog_compiler_pic='-pic' 6968 lt_prog_compiler_static='-Bstatic' 6969 ;; 6970 6971 *) 6972 lt_prog_compiler_can_build_shared=no 6973 ;; 6974 esac 6975 fi 6976 6977case $host_os in 6978 # For platforms which do not support PIC, -DPIC is meaningless: 6979 *djgpp*) 6980 lt_prog_compiler_pic= 6981 ;; 6982 *) 6983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6984 ;; 6985esac 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 6987$as_echo "$lt_prog_compiler_pic" >&6; } 6988 6989 6990 6991 6992 6993 6994# 6995# Check to make sure the PIC flag actually works. 6996# 6997if test -n "$lt_prog_compiler_pic"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6999$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7000if ${lt_cv_prog_compiler_pic_works+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 lt_cv_prog_compiler_pic_works=no 7004 ac_outfile=conftest.$ac_objext 7005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7007 # Insert the option either (1) after the last *FLAGS variable, or 7008 # (2) before a word containing "conftest.", or (3) at the end. 7009 # Note that $ac_compile itself does not contain backslashes and begins 7010 # with a dollar sign (not a hyphen), so the echo should work correctly. 7011 # The option is referenced via a variable to avoid confusing sed. 7012 lt_compile=`echo "$ac_compile" | $SED \ 7013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7015 -e 's:$: $lt_compiler_flag:'` 7016 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5) 7017 (eval "$lt_compile" 2>conftest.err) 7018 ac_status=$? 7019 cat conftest.err >&5 7020 echo "$as_me:7020: \$? = $ac_status" >&5 7021 if (exit $ac_status) && test -s "$ac_outfile"; then 7022 # The compiler can only warn and ignore the option if not recognized 7023 # So say no if there are warnings other than the usual output. 7024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7027 lt_cv_prog_compiler_pic_works=yes 7028 fi 7029 fi 7030 $RM conftest* 7031 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7034$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7035 7036if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7037 case $lt_prog_compiler_pic in 7038 "" | " "*) ;; 7039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7040 esac 7041else 7042 lt_prog_compiler_pic= 7043 lt_prog_compiler_can_build_shared=no 7044fi 7045 7046fi 7047 7048 7049 7050 7051 7052 7053# 7054# Check to make sure the static flag actually works. 7055# 7056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7059if ${lt_cv_prog_compiler_static_works+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 lt_cv_prog_compiler_static_works=no 7063 save_LDFLAGS="$LDFLAGS" 7064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7065 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7067 # The linker can only warn and ignore the option if not recognized 7068 # So say no if there are warnings 7069 if test -s conftest.err; then 7070 # Append any errors to the config.log. 7071 cat conftest.err 1>&5 7072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7074 if diff conftest.exp conftest.er2 >/dev/null; then 7075 lt_cv_prog_compiler_static_works=yes 7076 fi 7077 else 7078 lt_cv_prog_compiler_static_works=yes 7079 fi 7080 fi 7081 $RM -r conftest* 7082 LDFLAGS="$save_LDFLAGS" 7083 7084fi 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7086$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7087 7088if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7089 : 7090else 7091 lt_prog_compiler_static= 7092fi 7093 7094 7095 7096 7097 7098 7099 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7102if ${lt_cv_prog_compiler_c_o+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 lt_cv_prog_compiler_c_o=no 7106 $RM -r conftest 2>/dev/null 7107 mkdir conftest 7108 cd conftest 7109 mkdir out 7110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7111 7112 lt_compiler_flag="-o out/conftest2.$ac_objext" 7113 # Insert the option either (1) after the last *FLAGS variable, or 7114 # (2) before a word containing "conftest.", or (3) at the end. 7115 # Note that $ac_compile itself does not contain backslashes and begins 7116 # with a dollar sign (not a hyphen), so the echo should work correctly. 7117 lt_compile=`echo "$ac_compile" | $SED \ 7118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7120 -e 's:$: $lt_compiler_flag:'` 7121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5) 7122 (eval "$lt_compile" 2>out/conftest.err) 7123 ac_status=$? 7124 cat out/conftest.err >&5 7125 echo "$as_me:7125: \$? = $ac_status" >&5 7126 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7127 then 7128 # The compiler can only warn and ignore the option if not recognized 7129 # So say no if there are warnings 7130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7133 lt_cv_prog_compiler_c_o=yes 7134 fi 7135 fi 7136 chmod u+w . 2>&5 7137 $RM conftest* 7138 # SGI C++ compiler will create directory out/ii_files/ for 7139 # template instantiation 7140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7141 $RM out/* && rmdir out 7142 cd .. 7143 $RM -r conftest 7144 $RM conftest* 7145 7146fi 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7148$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7149 7150 7151 7152 7153 7154 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7156$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7157if ${lt_cv_prog_compiler_c_o+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 lt_cv_prog_compiler_c_o=no 7161 $RM -r conftest 2>/dev/null 7162 mkdir conftest 7163 cd conftest 7164 mkdir out 7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7166 7167 lt_compiler_flag="-o out/conftest2.$ac_objext" 7168 # Insert the option either (1) after the last *FLAGS variable, or 7169 # (2) before a word containing "conftest.", or (3) at the end. 7170 # Note that $ac_compile itself does not contain backslashes and begins 7171 # with a dollar sign (not a hyphen), so the echo should work correctly. 7172 lt_compile=`echo "$ac_compile" | $SED \ 7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7175 -e 's:$: $lt_compiler_flag:'` 7176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5) 7177 (eval "$lt_compile" 2>out/conftest.err) 7178 ac_status=$? 7179 cat out/conftest.err >&5 7180 echo "$as_me:7180: \$? = $ac_status" >&5 7181 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7182 then 7183 # The compiler can only warn and ignore the option if not recognized 7184 # So say no if there are warnings 7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7188 lt_cv_prog_compiler_c_o=yes 7189 fi 7190 fi 7191 chmod u+w . 2>&5 7192 $RM conftest* 7193 # SGI C++ compiler will create directory out/ii_files/ for 7194 # template instantiation 7195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7196 $RM out/* && rmdir out 7197 cd .. 7198 $RM -r conftest 7199 $RM conftest* 7200 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7203$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7204 7205 7206 7207 7208hard_links="nottested" 7209if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7210 # do not overwrite the value of need_locks provided by the user 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7212$as_echo_n "checking if we can lock with hard links... " >&6; } 7213 hard_links=yes 7214 $RM conftest* 7215 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7216 touch conftest.a 7217 ln conftest.a conftest.b 2>&5 || hard_links=no 7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7220$as_echo "$hard_links" >&6; } 7221 if test "$hard_links" = no; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7223$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7224 need_locks=warn 7225 fi 7226else 7227 need_locks=no 7228fi 7229 7230 7231 7232 7233 7234 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7237 7238 runpath_var= 7239 allow_undefined_flag= 7240 always_export_symbols=no 7241 archive_cmds= 7242 archive_expsym_cmds= 7243 compiler_needs_object=no 7244 enable_shared_with_static_runtimes=no 7245 export_dynamic_flag_spec= 7246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7247 hardcode_automatic=no 7248 hardcode_direct=no 7249 hardcode_direct_absolute=no 7250 hardcode_libdir_flag_spec= 7251 hardcode_libdir_flag_spec_ld= 7252 hardcode_libdir_separator= 7253 hardcode_minus_L=no 7254 hardcode_shlibpath_var=unsupported 7255 inherit_rpath=no 7256 link_all_deplibs=unknown 7257 module_cmds= 7258 module_expsym_cmds= 7259 old_archive_from_new_cmds= 7260 old_archive_from_expsyms_cmds= 7261 thread_safe_flag_spec= 7262 whole_archive_flag_spec= 7263 # include_expsyms should be a list of space-separated symbols to be *always* 7264 # included in the symbol list 7265 include_expsyms= 7266 # exclude_expsyms can be an extended regexp of symbols to exclude 7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7269 # as well as any symbol that contains `d'. 7270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7272 # platforms (ab)use it in PIC code, but their linkers get confused if 7273 # the symbol is explicitly referenced. Since portable code cannot 7274 # rely on this symbol name, it's probably fine to never include it in 7275 # preloaded symbol tables. 7276 # Exclude shared library initialization/finalization symbols. 7277 extract_expsyms_cmds= 7278 7279 case $host_os in 7280 cygwin* | mingw* | pw32* | cegcc*) 7281 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7282 # When not using gcc, we currently assume that we are using 7283 # Microsoft Visual C++. 7284 if test "$GCC" != yes; then 7285 with_gnu_ld=no 7286 fi 7287 ;; 7288 interix*) 7289 # we just hope/assume this is gcc and not c89 (= MSVC++) 7290 with_gnu_ld=yes 7291 ;; 7292 openbsd*) 7293 with_gnu_ld=no 7294 ;; 7295 esac 7296 7297 ld_shlibs=yes 7298 if test "$with_gnu_ld" = yes; then 7299 # If archive_cmds runs LD, not CC, wlarc should be empty 7300 wlarc='${wl}' 7301 7302 # Set some defaults for GNU ld with shared library support. These 7303 # are reset later if shared libraries are not supported. Putting them 7304 # here allows them to be overridden if necessary. 7305 runpath_var=LD_RUN_PATH 7306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7307 export_dynamic_flag_spec='${wl}--export-dynamic' 7308 # ancient GNU ld didn't support --whole-archive et. al. 7309 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7310 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7311 else 7312 whole_archive_flag_spec= 7313 fi 7314 supports_anon_versioning=no 7315 case `$LD -v 2>&1` in 7316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7319 *\ 2.11.*) ;; # other 2.11 versions 7320 *) supports_anon_versioning=yes ;; 7321 esac 7322 7323 # See if GNU ld supports shared libraries. 7324 case $host_os in 7325 aix[3-9]*) 7326 # On AIX/PPC, the GNU linker is very broken 7327 if test "$host_cpu" != ia64; then 7328 ld_shlibs=no 7329 cat <<_LT_EOF 1>&2 7330 7331*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7332*** to be unable to reliably create shared libraries on AIX. 7333*** Therefore, libtool is disabling shared libraries support. If you 7334*** really care for shared libraries, you may want to modify your PATH 7335*** so that a non-GNU linker is found, and then restart. 7336 7337_LT_EOF 7338 fi 7339 ;; 7340 7341 amigaos*) 7342 case $host_cpu in 7343 powerpc) 7344 # see comment about AmigaOS4 .so support 7345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7346 archive_expsym_cmds='' 7347 ;; 7348 m68k) 7349 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)' 7350 hardcode_libdir_flag_spec='-L$libdir' 7351 hardcode_minus_L=yes 7352 ;; 7353 esac 7354 ;; 7355 7356 beos*) 7357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7358 allow_undefined_flag=unsupported 7359 # Joseph Beckenbach <[email protected]> says some releases of gcc 7360 # support --undefined. This deserves some investigation. FIXME 7361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7362 else 7363 ld_shlibs=no 7364 fi 7365 ;; 7366 7367 cygwin* | mingw* | pw32* | cegcc*) 7368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7369 # as there is no search path for DLLs. 7370 hardcode_libdir_flag_spec='-L$libdir' 7371 allow_undefined_flag=unsupported 7372 always_export_symbols=no 7373 enable_shared_with_static_runtimes=yes 7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7375 7376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7378 # If the export-symbols file already is a .def file (1st line 7379 # is EXPORTS), use it as is; otherwise, prepend... 7380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7381 cp $export_symbols $output_objdir/$soname.def; 7382 else 7383 echo EXPORTS > $output_objdir/$soname.def; 7384 cat $export_symbols >> $output_objdir/$soname.def; 7385 fi~ 7386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7387 else 7388 ld_shlibs=no 7389 fi 7390 ;; 7391 7392 interix[3-9]*) 7393 hardcode_direct=no 7394 hardcode_shlibpath_var=no 7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7396 export_dynamic_flag_spec='${wl}-E' 7397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7398 # Instead, shared libraries are loaded at an image base (0x10000000 by 7399 # default) and relocated if they conflict, which is a slow very memory 7400 # consuming and fragmenting process. To avoid this, we pick a random, 7401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7402 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7404 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' 7405 ;; 7406 7407 gnu* | linux* | tpf* | k*bsd*-gnu) 7408 tmp_diet=no 7409 if test "$host_os" = linux-dietlibc; then 7410 case $cc_basename in 7411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7412 esac 7413 fi 7414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7415 && test "$tmp_diet" = no 7416 then 7417 tmp_addflag= 7418 tmp_sharedflag='-shared' 7419 case $cc_basename,$host_cpu in 7420 pgcc*) # Portland Group C compiler 7421 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' 7422 tmp_addflag=' $pic_flag' 7423 ;; 7424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7425 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' 7426 tmp_addflag=' $pic_flag -Mnomain' ;; 7427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7428 tmp_addflag=' -i_dynamic' ;; 7429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7430 tmp_addflag=' -i_dynamic -nofor_main' ;; 7431 ifc* | ifort*) # Intel Fortran compiler 7432 tmp_addflag=' -nofor_main' ;; 7433 lf95*) # Lahey Fortran 8.1 7434 whole_archive_flag_spec= 7435 tmp_sharedflag='--shared' ;; 7436 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7437 tmp_sharedflag='-qmkshrobj' 7438 tmp_addflag= ;; 7439 esac 7440 case `$CC -V 2>&1 | sed 5q` in 7441 *Sun\ C*) # Sun C 5.9 7442 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' 7443 compiler_needs_object=yes 7444 tmp_sharedflag='-G' ;; 7445 *Sun\ F*) # Sun Fortran 8.3 7446 tmp_sharedflag='-G' ;; 7447 esac 7448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7449 7450 if test "x$supports_anon_versioning" = xyes; then 7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7453 echo "local: *; };" >> $output_objdir/$libname.ver~ 7454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7455 fi 7456 7457 case $cc_basename in 7458 xlf*) 7459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7461 hardcode_libdir_flag_spec= 7462 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7464 if test "x$supports_anon_versioning" = xyes; then 7465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7467 echo "local: *; };" >> $output_objdir/$libname.ver~ 7468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7469 fi 7470 ;; 7471 esac 7472 else 7473 ld_shlibs=no 7474 fi 7475 ;; 7476 7477 netbsd*) 7478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7480 wlarc= 7481 else 7482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7484 fi 7485 ;; 7486 7487 solaris*) 7488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7489 ld_shlibs=no 7490 cat <<_LT_EOF 1>&2 7491 7492*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7493*** create shared libraries on Solaris systems. Therefore, libtool 7494*** is disabling shared libraries support. We urge you to upgrade GNU 7495*** binutils to release 2.9.1 or newer. Another option is to modify 7496*** your PATH or compiler configuration so that the native linker is 7497*** used, and then restart. 7498 7499_LT_EOF 7500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7503 else 7504 ld_shlibs=no 7505 fi 7506 ;; 7507 7508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7509 case `$LD -v 2>&1` in 7510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7511 ld_shlibs=no 7512 cat <<_LT_EOF 1>&2 7513 7514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7515*** reliably create shared libraries on SCO systems. Therefore, libtool 7516*** is disabling shared libraries support. We urge you to upgrade GNU 7517*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7518*** your PATH or compiler configuration so that the native linker is 7519*** used, and then restart. 7520 7521_LT_EOF 7522 ;; 7523 *) 7524 # For security reasons, it is highly recommended that you always 7525 # use absolute paths for naming shared libraries, and exclude the 7526 # DT_RUNPATH tag from executables and libraries. But doing so 7527 # requires that you compile everything twice, which is a pain. 7528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7532 else 7533 ld_shlibs=no 7534 fi 7535 ;; 7536 esac 7537 ;; 7538 7539 sunos4*) 7540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7541 wlarc= 7542 hardcode_direct=yes 7543 hardcode_shlibpath_var=no 7544 ;; 7545 7546 *) 7547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7550 else 7551 ld_shlibs=no 7552 fi 7553 ;; 7554 esac 7555 7556 if test "$ld_shlibs" = no; then 7557 runpath_var= 7558 hardcode_libdir_flag_spec= 7559 export_dynamic_flag_spec= 7560 whole_archive_flag_spec= 7561 fi 7562 else 7563 # PORTME fill in a description of your system's linker (not GNU ld) 7564 case $host_os in 7565 aix3*) 7566 allow_undefined_flag=unsupported 7567 always_export_symbols=yes 7568 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' 7569 # Note: this linker hardcodes the directories in LIBPATH if there 7570 # are no directories specified by -L. 7571 hardcode_minus_L=yes 7572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7573 # Neither direct hardcoding nor static linking is supported with a 7574 # broken collect2. 7575 hardcode_direct=unsupported 7576 fi 7577 ;; 7578 7579 aix[4-9]*) 7580 if test "$host_cpu" = ia64; then 7581 # On IA64, the linker does run time linking by default, so we don't 7582 # have to do anything special. 7583 aix_use_runtimelinking=no 7584 exp_sym_flag='-Bexport' 7585 no_entry_flag="" 7586 else 7587 # If we're using GNU nm, then we don't want the "-C" option. 7588 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7589 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7590 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' 7591 else 7592 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' 7593 fi 7594 aix_use_runtimelinking=no 7595 7596 # Test if we are trying to use run time linking or normal 7597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7598 # need to do runtime linking. 7599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7600 for ld_flag in $LDFLAGS; do 7601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7602 aix_use_runtimelinking=yes 7603 break 7604 fi 7605 done 7606 ;; 7607 esac 7608 7609 exp_sym_flag='-bexport' 7610 no_entry_flag='-bnoentry' 7611 fi 7612 7613 # When large executables or shared objects are built, AIX ld can 7614 # have problems creating the table of contents. If linking a library 7615 # or program results in "error TOC overflow" add -mminimal-toc to 7616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7618 7619 archive_cmds='' 7620 hardcode_direct=yes 7621 hardcode_direct_absolute=yes 7622 hardcode_libdir_separator=':' 7623 link_all_deplibs=yes 7624 file_list_spec='${wl}-f,' 7625 7626 if test "$GCC" = yes; then 7627 case $host_os in aix4.[012]|aix4.[012].*) 7628 # We only want to do this on AIX 4.2 and lower, the check 7629 # below for broken collect2 doesn't work under 4.3+ 7630 collect2name=`${CC} -print-prog-name=collect2` 7631 if test -f "$collect2name" && 7632 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7633 then 7634 # We have reworked collect2 7635 : 7636 else 7637 # We have old collect2 7638 hardcode_direct=unsupported 7639 # It fails to find uninstalled libraries when the uninstalled 7640 # path is not listed in the libpath. Setting hardcode_minus_L 7641 # to unsupported forces relinking 7642 hardcode_minus_L=yes 7643 hardcode_libdir_flag_spec='-L$libdir' 7644 hardcode_libdir_separator= 7645 fi 7646 ;; 7647 esac 7648 shared_flag='-shared' 7649 if test "$aix_use_runtimelinking" = yes; then 7650 shared_flag="$shared_flag "'${wl}-G' 7651 fi 7652 else 7653 # not using gcc 7654 if test "$host_cpu" = ia64; then 7655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7656 # chokes on -Wl,-G. The following line is correct: 7657 shared_flag='-G' 7658 else 7659 if test "$aix_use_runtimelinking" = yes; then 7660 shared_flag='${wl}-G' 7661 else 7662 shared_flag='${wl}-bM:SRE' 7663 fi 7664 fi 7665 fi 7666 7667 export_dynamic_flag_spec='${wl}-bexpall' 7668 # It seems that -bexpall does not export symbols beginning with 7669 # underscore (_), so it is better to generate a list of symbols to export. 7670 always_export_symbols=yes 7671 if test "$aix_use_runtimelinking" = yes; then 7672 # Warning - without using the other runtime loading flags (-brtl), 7673 # -berok will link without error, but may produce a broken library. 7674 allow_undefined_flag='-berok' 7675 # Determine the default libpath from the value encoded in an 7676 # empty executable. 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679 7680int 7681main () 7682{ 7683 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688if ac_fn_c_try_link "$LINENO"; then : 7689 7690lt_aix_libpath_sed=' 7691 /Import File Strings/,/^$/ { 7692 /^0/ { 7693 s/^0 *\(.*\)$/\1/ 7694 p 7695 } 7696 }' 7697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7698# Check for a 64-bit object if we didn't find anything. 7699if test -z "$aix_libpath"; then 7700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7701fi 7702fi 7703rm -f core conftest.err conftest.$ac_objext \ 7704 conftest$ac_exeext conftest.$ac_ext 7705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7706 7707 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7708 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" 7709 else 7710 if test "$host_cpu" = ia64; then 7711 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7712 allow_undefined_flag="-z nodefs" 7713 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" 7714 else 7715 # Determine the default libpath from the value encoded in an 7716 # empty executable. 7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718/* end confdefs.h. */ 7719 7720int 7721main () 7722{ 7723 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728if ac_fn_c_try_link "$LINENO"; then : 7729 7730lt_aix_libpath_sed=' 7731 /Import File Strings/,/^$/ { 7732 /^0/ { 7733 s/^0 *\(.*\)$/\1/ 7734 p 7735 } 7736 }' 7737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7738# Check for a 64-bit object if we didn't find anything. 7739if test -z "$aix_libpath"; then 7740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7741fi 7742fi 7743rm -f core conftest.err conftest.$ac_objext \ 7744 conftest$ac_exeext conftest.$ac_ext 7745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7746 7747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7748 # Warning - without using the other run time loading flags, 7749 # -berok will link without error, but may produce a broken library. 7750 no_undefined_flag=' ${wl}-bernotok' 7751 allow_undefined_flag=' ${wl}-berok' 7752 # Exported symbols can be pulled into shared objects from archives 7753 whole_archive_flag_spec='$convenience' 7754 archive_cmds_need_lc=yes 7755 # This is similar to how AIX traditionally builds its shared libraries. 7756 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' 7757 fi 7758 fi 7759 ;; 7760 7761 amigaos*) 7762 case $host_cpu in 7763 powerpc) 7764 # see comment about AmigaOS4 .so support 7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7766 archive_expsym_cmds='' 7767 ;; 7768 m68k) 7769 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)' 7770 hardcode_libdir_flag_spec='-L$libdir' 7771 hardcode_minus_L=yes 7772 ;; 7773 esac 7774 ;; 7775 7776 bsdi[45]*) 7777 export_dynamic_flag_spec=-rdynamic 7778 ;; 7779 7780 cygwin* | mingw* | pw32* | cegcc*) 7781 # When not using gcc, we currently assume that we are using 7782 # Microsoft Visual C++. 7783 # hardcode_libdir_flag_spec is actually meaningless, as there is 7784 # no search path for DLLs. 7785 hardcode_libdir_flag_spec=' ' 7786 allow_undefined_flag=unsupported 7787 # Tell ltmain to make .lib files, not .a files. 7788 libext=lib 7789 # Tell ltmain to make .dll files, not .so files. 7790 shrext_cmds=".dll" 7791 # FIXME: Setting linknames here is a bad hack. 7792 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7793 # The linker will automatically build a .lib file if we build a DLL. 7794 old_archive_from_new_cmds='true' 7795 # FIXME: Should let the user specify the lib program. 7796 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7797 fix_srcfile_path='`cygpath -w "$srcfile"`' 7798 enable_shared_with_static_runtimes=yes 7799 ;; 7800 7801 darwin* | rhapsody*) 7802 7803 7804 archive_cmds_need_lc=no 7805 hardcode_direct=no 7806 hardcode_automatic=yes 7807 hardcode_shlibpath_var=unsupported 7808 whole_archive_flag_spec='' 7809 link_all_deplibs=yes 7810 allow_undefined_flag="$_lt_dar_allow_undefined" 7811 case $cc_basename in 7812 ifort*) _lt_dar_can_shared=yes ;; 7813 *) _lt_dar_can_shared=$GCC ;; 7814 esac 7815 if test "$_lt_dar_can_shared" = "yes"; then 7816 output_verbose_link_cmd=echo 7817 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7818 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7819 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}" 7820 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}" 7821 7822 else 7823 ld_shlibs=no 7824 fi 7825 7826 ;; 7827 7828 dgux*) 7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7830 hardcode_libdir_flag_spec='-L$libdir' 7831 hardcode_shlibpath_var=no 7832 ;; 7833 7834 freebsd1*) 7835 ld_shlibs=no 7836 ;; 7837 7838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7839 # support. Future versions do this automatically, but an explicit c++rt0.o 7840 # does not break anything, and helps significantly (at the cost of a little 7841 # extra space). 7842 freebsd2.2*) 7843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7844 hardcode_libdir_flag_spec='-R$libdir' 7845 hardcode_direct=yes 7846 hardcode_shlibpath_var=no 7847 ;; 7848 7849 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7850 freebsd2*) 7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7852 hardcode_direct=yes 7853 hardcode_minus_L=yes 7854 hardcode_shlibpath_var=no 7855 ;; 7856 7857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7858 freebsd* | dragonfly*) 7859 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7860 hardcode_libdir_flag_spec='-R$libdir' 7861 hardcode_direct=yes 7862 hardcode_shlibpath_var=no 7863 ;; 7864 7865 hpux9*) 7866 if test "$GCC" = yes; then 7867 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' 7868 else 7869 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' 7870 fi 7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7872 hardcode_libdir_separator=: 7873 hardcode_direct=yes 7874 7875 # hardcode_minus_L: Not really in the search PATH, 7876 # but as the default location of the library. 7877 hardcode_minus_L=yes 7878 export_dynamic_flag_spec='${wl}-E' 7879 ;; 7880 7881 hpux10*) 7882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7884 else 7885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7886 fi 7887 if test "$with_gnu_ld" = no; then 7888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7889 hardcode_libdir_flag_spec_ld='+b $libdir' 7890 hardcode_libdir_separator=: 7891 hardcode_direct=yes 7892 hardcode_direct_absolute=yes 7893 export_dynamic_flag_spec='${wl}-E' 7894 # hardcode_minus_L: Not really in the search PATH, 7895 # but as the default location of the library. 7896 hardcode_minus_L=yes 7897 fi 7898 ;; 7899 7900 hpux11*) 7901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7902 case $host_cpu in 7903 hppa*64*) 7904 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7905 ;; 7906 ia64*) 7907 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7908 ;; 7909 *) 7910 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7911 ;; 7912 esac 7913 else 7914 case $host_cpu in 7915 hppa*64*) 7916 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7917 ;; 7918 ia64*) 7919 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7920 ;; 7921 *) 7922 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7923 ;; 7924 esac 7925 fi 7926 if test "$with_gnu_ld" = no; then 7927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7928 hardcode_libdir_separator=: 7929 7930 case $host_cpu in 7931 hppa*64*|ia64*) 7932 hardcode_direct=no 7933 hardcode_shlibpath_var=no 7934 ;; 7935 *) 7936 hardcode_direct=yes 7937 hardcode_direct_absolute=yes 7938 export_dynamic_flag_spec='${wl}-E' 7939 7940 # hardcode_minus_L: Not really in the search PATH, 7941 # but as the default location of the library. 7942 hardcode_minus_L=yes 7943 ;; 7944 esac 7945 fi 7946 ;; 7947 7948 irix5* | irix6* | nonstopux*) 7949 if test "$GCC" = yes; then 7950 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' 7951 # Try to use the -exported_symbol ld option, if it does not 7952 # work, assume that -exports_file does not work either and 7953 # implicitly export all symbols. 7954 save_LDFLAGS="$LDFLAGS" 7955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958int foo(void) {} 7959_ACEOF 7960if ac_fn_c_try_link "$LINENO"; then : 7961 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' 7962 7963fi 7964rm -f core conftest.err conftest.$ac_objext \ 7965 conftest$ac_exeext conftest.$ac_ext 7966 LDFLAGS="$save_LDFLAGS" 7967 else 7968 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' 7969 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' 7970 fi 7971 archive_cmds_need_lc='no' 7972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7973 hardcode_libdir_separator=: 7974 inherit_rpath=yes 7975 link_all_deplibs=yes 7976 ;; 7977 7978 netbsd*) 7979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7981 else 7982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7983 fi 7984 hardcode_libdir_flag_spec='-R$libdir' 7985 hardcode_direct=yes 7986 hardcode_shlibpath_var=no 7987 ;; 7988 7989 newsos6) 7990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7991 hardcode_direct=yes 7992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7993 hardcode_libdir_separator=: 7994 hardcode_shlibpath_var=no 7995 ;; 7996 7997 *nto* | *qnx*) 7998 ;; 7999 8000 openbsd*) 8001 if test -f /usr/libexec/ld.so; then 8002 hardcode_direct=yes 8003 hardcode_shlibpath_var=no 8004 hardcode_direct_absolute=yes 8005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8009 export_dynamic_flag_spec='${wl}-E' 8010 else 8011 case $host_os in 8012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8014 hardcode_libdir_flag_spec='-R$libdir' 8015 ;; 8016 *) 8017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8019 ;; 8020 esac 8021 fi 8022 else 8023 ld_shlibs=no 8024 fi 8025 ;; 8026 8027 os2*) 8028 hardcode_libdir_flag_spec='-L$libdir' 8029 hardcode_minus_L=yes 8030 allow_undefined_flag=unsupported 8031 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' 8032 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8033 ;; 8034 8035 osf3*) 8036 if test "$GCC" = yes; then 8037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8038 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' 8039 else 8040 allow_undefined_flag=' -expect_unresolved \*' 8041 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' 8042 fi 8043 archive_cmds_need_lc='no' 8044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8045 hardcode_libdir_separator=: 8046 ;; 8047 8048 osf4* | osf5*) # as osf3* with the addition of -msym flag 8049 if test "$GCC" = yes; then 8050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8051 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' 8052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8053 else 8054 allow_undefined_flag=' -expect_unresolved \*' 8055 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' 8056 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~ 8057 $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' 8058 8059 # Both c and cxx compiler support -rpath directly 8060 hardcode_libdir_flag_spec='-rpath $libdir' 8061 fi 8062 archive_cmds_need_lc='no' 8063 hardcode_libdir_separator=: 8064 ;; 8065 8066 solaris*) 8067 no_undefined_flag=' -z defs' 8068 if test "$GCC" = yes; then 8069 wlarc='${wl}' 8070 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8072 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8073 else 8074 case `$CC -V 2>&1` in 8075 *"Compilers 5.0"*) 8076 wlarc='' 8077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8080 ;; 8081 *) 8082 wlarc='${wl}' 8083 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8085 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8086 ;; 8087 esac 8088 fi 8089 hardcode_libdir_flag_spec='-R$libdir' 8090 hardcode_shlibpath_var=no 8091 case $host_os in 8092 solaris2.[0-5] | solaris2.[0-5].*) ;; 8093 *) 8094 # The compiler driver will combine and reorder linker options, 8095 # but understands `-z linker_flag'. GCC discards it without `$wl', 8096 # but is careful enough not to reorder. 8097 # Supported since Solaris 2.6 (maybe 2.5.1?) 8098 if test "$GCC" = yes; then 8099 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8100 else 8101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8102 fi 8103 ;; 8104 esac 8105 link_all_deplibs=yes 8106 ;; 8107 8108 sunos4*) 8109 if test "x$host_vendor" = xsequent; then 8110 # Use $CC to link under sequent, because it throws in some extra .o 8111 # files that make .init and .fini sections work. 8112 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8113 else 8114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8115 fi 8116 hardcode_libdir_flag_spec='-L$libdir' 8117 hardcode_direct=yes 8118 hardcode_minus_L=yes 8119 hardcode_shlibpath_var=no 8120 ;; 8121 8122 sysv4) 8123 case $host_vendor in 8124 sni) 8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8126 hardcode_direct=yes # is this really true??? 8127 ;; 8128 siemens) 8129 ## LD is ld it makes a PLAMLIB 8130 ## CC just makes a GrossModule. 8131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8132 reload_cmds='$CC -r -o $output$reload_objs' 8133 hardcode_direct=no 8134 ;; 8135 motorola) 8136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8138 ;; 8139 esac 8140 runpath_var='LD_RUN_PATH' 8141 hardcode_shlibpath_var=no 8142 ;; 8143 8144 sysv4.3*) 8145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8146 hardcode_shlibpath_var=no 8147 export_dynamic_flag_spec='-Bexport' 8148 ;; 8149 8150 sysv4*MP*) 8151 if test -d /usr/nec; then 8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8153 hardcode_shlibpath_var=no 8154 runpath_var=LD_RUN_PATH 8155 hardcode_runpath_var=yes 8156 ld_shlibs=yes 8157 fi 8158 ;; 8159 8160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8161 no_undefined_flag='${wl}-z,text' 8162 archive_cmds_need_lc=no 8163 hardcode_shlibpath_var=no 8164 runpath_var='LD_RUN_PATH' 8165 8166 if test "$GCC" = yes; then 8167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8169 else 8170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8172 fi 8173 ;; 8174 8175 sysv5* | sco3.2v5* | sco5v6*) 8176 # Note: We can NOT use -z defs as we might desire, because we do not 8177 # link with -lc, and that would cause any symbols used from libc to 8178 # always be unresolved, which means just about no library would 8179 # ever link correctly. If we're not using GNU ld we use -z text 8180 # though, which does catch some bad symbols but isn't as heavy-handed 8181 # as -z defs. 8182 no_undefined_flag='${wl}-z,text' 8183 allow_undefined_flag='${wl}-z,nodefs' 8184 archive_cmds_need_lc=no 8185 hardcode_shlibpath_var=no 8186 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8187 hardcode_libdir_separator=':' 8188 link_all_deplibs=yes 8189 export_dynamic_flag_spec='${wl}-Bexport' 8190 runpath_var='LD_RUN_PATH' 8191 8192 if test "$GCC" = yes; then 8193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8195 else 8196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8198 fi 8199 ;; 8200 8201 uts4*) 8202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8203 hardcode_libdir_flag_spec='-L$libdir' 8204 hardcode_shlibpath_var=no 8205 ;; 8206 8207 *) 8208 ld_shlibs=no 8209 ;; 8210 esac 8211 8212 if test x$host_vendor = xsni; then 8213 case $host in 8214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8215 export_dynamic_flag_spec='${wl}-Blargedynsym' 8216 ;; 8217 esac 8218 fi 8219 fi 8220 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8222$as_echo "$ld_shlibs" >&6; } 8223test "$ld_shlibs" = no && can_build_shared=no 8224 8225with_gnu_ld=$with_gnu_ld 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241# 8242# Do we need to explicitly link libc? 8243# 8244case "x$archive_cmds_need_lc" in 8245x|xyes) 8246 # Assume -lc should be added 8247 archive_cmds_need_lc=yes 8248 8249 if test "$enable_shared" = yes && test "$GCC" = yes; then 8250 case $archive_cmds in 8251 *'~'*) 8252 # FIXME: we may have to deal with multi-command sequences. 8253 ;; 8254 '$CC '*) 8255 # Test whether the compiler implicitly links with -lc since on some 8256 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8257 # to ld, don't add -lc before -lgcc. 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8260 $RM conftest* 8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8262 8263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8264 (eval $ac_compile) 2>&5 8265 ac_status=$? 8266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8267 test $ac_status = 0; } 2>conftest.err; then 8268 soname=conftest 8269 lib=conftest 8270 libobjs=conftest.$ac_objext 8271 deplibs= 8272 wl=$lt_prog_compiler_wl 8273 pic_flag=$lt_prog_compiler_pic 8274 compiler_flags=-v 8275 linker_flags=-v 8276 verstring= 8277 output_objdir=. 8278 libname=conftest 8279 lt_save_allow_undefined_flag=$allow_undefined_flag 8280 allow_undefined_flag= 8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8282 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8283 ac_status=$? 8284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8285 test $ac_status = 0; } 8286 then 8287 archive_cmds_need_lc=no 8288 else 8289 archive_cmds_need_lc=yes 8290 fi 8291 allow_undefined_flag=$lt_save_allow_undefined_flag 8292 else 8293 cat conftest.err 1>&5 8294 fi 8295 $RM conftest* 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8297$as_echo "$archive_cmds_need_lc" >&6; } 8298 ;; 8299 esac 8300 fi 8301 ;; 8302esac 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8461$as_echo_n "checking dynamic linker characteristics... " >&6; } 8462 8463if test "$GCC" = yes; then 8464 case $host_os in 8465 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8466 *) lt_awk_arg="/^libraries:/" ;; 8467 esac 8468 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8469 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8470 # if the path contains ";" then we assume it to be the separator 8471 # otherwise default to the standard path separator (i.e. ":") - it is 8472 # assumed that no part of a normal pathname contains ";" but that should 8473 # okay in the real world where ";" in dirpaths is itself problematic. 8474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8475 else 8476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8477 fi 8478 # Ok, now we have the path, separated by spaces, we can step through it 8479 # and add multilib dir if necessary. 8480 lt_tmp_lt_search_path_spec= 8481 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8482 for lt_sys_path in $lt_search_path_spec; do 8483 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8485 else 8486 test -d "$lt_sys_path" && \ 8487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8488 fi 8489 done 8490 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8491BEGIN {RS=" "; FS="/|\n";} { 8492 lt_foo=""; 8493 lt_count=0; 8494 for (lt_i = NF; lt_i > 0; lt_i--) { 8495 if ($lt_i != "" && $lt_i != ".") { 8496 if ($lt_i == "..") { 8497 lt_count++; 8498 } else { 8499 if (lt_count == 0) { 8500 lt_foo="/" $lt_i lt_foo; 8501 } else { 8502 lt_count--; 8503 } 8504 } 8505 } 8506 } 8507 if (lt_foo != "") { lt_freq[lt_foo]++; } 8508 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8509}'` 8510 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8511else 8512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8513fi 8514library_names_spec= 8515libname_spec='lib$name' 8516soname_spec= 8517shrext_cmds=".so" 8518postinstall_cmds= 8519postuninstall_cmds= 8520finish_cmds= 8521finish_eval= 8522shlibpath_var= 8523shlibpath_overrides_runpath=unknown 8524version_type=none 8525dynamic_linker="$host_os ld.so" 8526sys_lib_dlsearch_path_spec="/lib /usr/lib" 8527need_lib_prefix=unknown 8528hardcode_into_libs=no 8529 8530# when you set need_version to no, make sure it does not cause -set_version 8531# flags to be left without arguments 8532need_version=unknown 8533 8534case $host_os in 8535aix3*) 8536 version_type=linux 8537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8538 shlibpath_var=LIBPATH 8539 8540 # AIX 3 has no versioning support, so we append a major version to the name. 8541 soname_spec='${libname}${release}${shared_ext}$major' 8542 ;; 8543 8544aix[4-9]*) 8545 version_type=linux 8546 need_lib_prefix=no 8547 need_version=no 8548 hardcode_into_libs=yes 8549 if test "$host_cpu" = ia64; then 8550 # AIX 5 supports IA64 8551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8552 shlibpath_var=LD_LIBRARY_PATH 8553 else 8554 # With GCC up to 2.95.x, collect2 would create an import file 8555 # for dependence libraries. The import file would start with 8556 # the line `#! .'. This would cause the generated library to 8557 # depend on `.', always an invalid library. This was fixed in 8558 # development snapshots of GCC prior to 3.0. 8559 case $host_os in 8560 aix4 | aix4.[01] | aix4.[01].*) 8561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8562 echo ' yes ' 8563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8564 : 8565 else 8566 can_build_shared=no 8567 fi 8568 ;; 8569 esac 8570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8571 # soname into executable. Probably we can add versioning support to 8572 # collect2, so additional links can be useful in future. 8573 if test "$aix_use_runtimelinking" = yes; then 8574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8575 # instead of lib<name>.a to let people know that these are not 8576 # typical AIX shared libraries. 8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8578 else 8579 # We preserve .a as extension for shared libraries through AIX4.2 8580 # and later when we are not doing run time linking. 8581 library_names_spec='${libname}${release}.a $libname.a' 8582 soname_spec='${libname}${release}${shared_ext}$major' 8583 fi 8584 shlibpath_var=LIBPATH 8585 fi 8586 ;; 8587 8588amigaos*) 8589 case $host_cpu in 8590 powerpc) 8591 # Since July 2007 AmigaOS4 officially supports .so libraries. 8592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8594 ;; 8595 m68k) 8596 library_names_spec='$libname.ixlibrary $libname.a' 8597 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8598 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' 8599 ;; 8600 esac 8601 ;; 8602 8603beos*) 8604 library_names_spec='${libname}${shared_ext}' 8605 dynamic_linker="$host_os ld.so" 8606 shlibpath_var=LIBRARY_PATH 8607 ;; 8608 8609bsdi[45]*) 8610 version_type=linux 8611 need_version=no 8612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8613 soname_spec='${libname}${release}${shared_ext}$major' 8614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8615 shlibpath_var=LD_LIBRARY_PATH 8616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8618 # the default ld.so.conf also contains /usr/contrib/lib and 8619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8620 # libtool to hard-code these into programs 8621 ;; 8622 8623cygwin* | mingw* | pw32* | cegcc*) 8624 version_type=windows 8625 shrext_cmds=".dll" 8626 need_version=no 8627 need_lib_prefix=no 8628 8629 case $GCC,$host_os in 8630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8631 library_names_spec='$libname.dll.a' 8632 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8633 postinstall_cmds='base_file=`basename \${file}`~ 8634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8635 dldir=$destdir/`dirname \$dlpath`~ 8636 test -d \$dldir || mkdir -p \$dldir~ 8637 $install_prog $dir/$dlname \$dldir/$dlname~ 8638 chmod a+x \$dldir/$dlname~ 8639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8641 fi' 8642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8643 dlpath=$dir/\$dldll~ 8644 $RM \$dlpath' 8645 shlibpath_overrides_runpath=yes 8646 8647 case $host_os in 8648 cygwin*) 8649 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8652 ;; 8653 mingw* | cegcc*) 8654 # MinGW DLLs use traditional 'lib' prefix 8655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8656 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8657 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8658 # It is most probably a Windows format PATH printed by 8659 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8660 # path with ; separators, and with drive letters. We can handle the 8661 # drive letters (cygwin fileutils understands them), so leave them, 8662 # especially as we might pass files found there to a mingw objdump, 8663 # which wouldn't understand a cygwinified path. Ahh. 8664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8665 else 8666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8667 fi 8668 ;; 8669 pw32*) 8670 # pw32 DLLs use 'pw' prefix rather than 'lib' 8671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8672 ;; 8673 esac 8674 ;; 8675 8676 *) 8677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8678 ;; 8679 esac 8680 dynamic_linker='Win32 ld.exe' 8681 # FIXME: first we should search . and the directory the executable is in 8682 shlibpath_var=PATH 8683 ;; 8684 8685darwin* | rhapsody*) 8686 dynamic_linker="$host_os dyld" 8687 version_type=darwin 8688 need_lib_prefix=no 8689 need_version=no 8690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8691 soname_spec='${libname}${release}${major}$shared_ext' 8692 shlibpath_overrides_runpath=yes 8693 shlibpath_var=DYLD_LIBRARY_PATH 8694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8695 8696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8698 ;; 8699 8700dgux*) 8701 version_type=linux 8702 need_lib_prefix=no 8703 need_version=no 8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8705 soname_spec='${libname}${release}${shared_ext}$major' 8706 shlibpath_var=LD_LIBRARY_PATH 8707 ;; 8708 8709freebsd1*) 8710 dynamic_linker=no 8711 ;; 8712 8713freebsd* | dragonfly*) 8714 # DragonFly does not have aout. When/if they implement a new 8715 # versioning mechanism, adjust this. 8716 if test -x /usr/bin/objformat; then 8717 objformat=`/usr/bin/objformat` 8718 else 8719 case $host_os in 8720 freebsd[123]*) objformat=aout ;; 8721 *) objformat=elf ;; 8722 esac 8723 fi 8724 # Handle Gentoo/FreeBSD as it was Linux 8725 case $host_vendor in 8726 gentoo) 8727 version_type=linux ;; 8728 *) 8729 version_type=freebsd-$objformat ;; 8730 esac 8731 8732 case $version_type in 8733 freebsd-elf*) 8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8735 need_version=no 8736 need_lib_prefix=no 8737 ;; 8738 freebsd-*) 8739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8740 need_version=yes 8741 ;; 8742 linux) 8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8744 soname_spec='${libname}${release}${shared_ext}$major' 8745 need_lib_prefix=no 8746 need_version=no 8747 ;; 8748 esac 8749 shlibpath_var=LD_LIBRARY_PATH 8750 case $host_os in 8751 freebsd2*) 8752 shlibpath_overrides_runpath=yes 8753 ;; 8754 freebsd3.[01]* | freebsdelf3.[01]*) 8755 shlibpath_overrides_runpath=yes 8756 hardcode_into_libs=yes 8757 ;; 8758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8760 shlibpath_overrides_runpath=no 8761 hardcode_into_libs=yes 8762 ;; 8763 *) # from 4.6 on, and DragonFly 8764 shlibpath_overrides_runpath=yes 8765 hardcode_into_libs=yes 8766 ;; 8767 esac 8768 ;; 8769 8770gnu*) 8771 version_type=linux 8772 need_lib_prefix=no 8773 need_version=no 8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8775 soname_spec='${libname}${release}${shared_ext}$major' 8776 shlibpath_var=LD_LIBRARY_PATH 8777 hardcode_into_libs=yes 8778 ;; 8779 8780hpux9* | hpux10* | hpux11*) 8781 # Give a soname corresponding to the major version so that dld.sl refuses to 8782 # link against other versions. 8783 version_type=sunos 8784 need_lib_prefix=no 8785 need_version=no 8786 case $host_cpu in 8787 ia64*) 8788 shrext_cmds='.so' 8789 hardcode_into_libs=yes 8790 dynamic_linker="$host_os dld.so" 8791 shlibpath_var=LD_LIBRARY_PATH 8792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8794 soname_spec='${libname}${release}${shared_ext}$major' 8795 if test "X$HPUX_IA64_MODE" = X32; then 8796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8797 else 8798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8799 fi 8800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8801 ;; 8802 hppa*64*) 8803 shrext_cmds='.sl' 8804 hardcode_into_libs=yes 8805 dynamic_linker="$host_os dld.sl" 8806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8809 soname_spec='${libname}${release}${shared_ext}$major' 8810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8812 ;; 8813 *) 8814 shrext_cmds='.sl' 8815 dynamic_linker="$host_os dld.sl" 8816 shlibpath_var=SHLIB_PATH 8817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8819 soname_spec='${libname}${release}${shared_ext}$major' 8820 ;; 8821 esac 8822 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8823 postinstall_cmds='chmod 555 $lib' 8824 ;; 8825 8826interix[3-9]*) 8827 version_type=linux 8828 need_lib_prefix=no 8829 need_version=no 8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8831 soname_spec='${libname}${release}${shared_ext}$major' 8832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8833 shlibpath_var=LD_LIBRARY_PATH 8834 shlibpath_overrides_runpath=no 8835 hardcode_into_libs=yes 8836 ;; 8837 8838irix5* | irix6* | nonstopux*) 8839 case $host_os in 8840 nonstopux*) version_type=nonstopux ;; 8841 *) 8842 if test "$lt_cv_prog_gnu_ld" = yes; then 8843 version_type=linux 8844 else 8845 version_type=irix 8846 fi ;; 8847 esac 8848 need_lib_prefix=no 8849 need_version=no 8850 soname_spec='${libname}${release}${shared_ext}$major' 8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8852 case $host_os in 8853 irix5* | nonstopux*) 8854 libsuff= shlibsuff= 8855 ;; 8856 *) 8857 case $LD in # libtool.m4 will add one of these switches to LD 8858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8859 libsuff= shlibsuff= libmagic=32-bit;; 8860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8861 libsuff=32 shlibsuff=N32 libmagic=N32;; 8862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8864 *) libsuff= shlibsuff= libmagic=never-match;; 8865 esac 8866 ;; 8867 esac 8868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8869 shlibpath_overrides_runpath=no 8870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8872 hardcode_into_libs=yes 8873 ;; 8874 8875# No shared lib support for Linux oldld, aout, or coff. 8876linux*oldld* | linux*aout* | linux*coff*) 8877 dynamic_linker=no 8878 ;; 8879 8880# This must be Linux ELF. 8881linux* | k*bsd*-gnu) 8882 version_type=linux 8883 need_lib_prefix=no 8884 need_version=no 8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8886 soname_spec='${libname}${release}${shared_ext}$major' 8887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8888 shlibpath_var=LD_LIBRARY_PATH 8889 shlibpath_overrides_runpath=no 8890 # Some binutils ld are patched to set DT_RUNPATH 8891 save_LDFLAGS=$LDFLAGS 8892 save_libdir=$libdir 8893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897 8898int 8899main () 8900{ 8901 8902 ; 8903 return 0; 8904} 8905_ACEOF 8906if ac_fn_c_try_link "$LINENO"; then : 8907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 8908 shlibpath_overrides_runpath=yes 8909fi 8910fi 8911rm -f core conftest.err conftest.$ac_objext \ 8912 conftest$ac_exeext conftest.$ac_ext 8913 LDFLAGS=$save_LDFLAGS 8914 libdir=$save_libdir 8915 8916 # This implies no fast_install, which is unacceptable. 8917 # Some rework will be needed to allow for fast_install 8918 # before this can be enabled. 8919 hardcode_into_libs=yes 8920 8921 # Append ld.so.conf contents to the search path 8922 if test -f /etc/ld.so.conf; then 8923 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' ' '` 8924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8925 fi 8926 8927 # We used to test for /lib/ld.so.1 and disable shared libraries on 8928 # powerpc, because MkLinux only supported shared libraries with the 8929 # GNU dynamic linker. Since this was broken with cross compilers, 8930 # most powerpc-linux boxes support dynamic linking these days and 8931 # people can always --disable-shared, the test was removed, and we 8932 # assume the GNU/Linux dynamic linker is in use. 8933 dynamic_linker='GNU/Linux ld.so' 8934 ;; 8935 8936netbsd*) 8937 version_type=sunos 8938 need_lib_prefix=no 8939 need_version=no 8940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8943 dynamic_linker='NetBSD (a.out) ld.so' 8944 else 8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8946 soname_spec='${libname}${release}${shared_ext}$major' 8947 dynamic_linker='NetBSD ld.elf_so' 8948 fi 8949 shlibpath_var=LD_LIBRARY_PATH 8950 shlibpath_overrides_runpath=yes 8951 hardcode_into_libs=yes 8952 ;; 8953 8954newsos6) 8955 version_type=linux 8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8957 shlibpath_var=LD_LIBRARY_PATH 8958 shlibpath_overrides_runpath=yes 8959 ;; 8960 8961*nto* | *qnx*) 8962 version_type=qnx 8963 need_lib_prefix=no 8964 need_version=no 8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8966 soname_spec='${libname}${release}${shared_ext}$major' 8967 shlibpath_var=LD_LIBRARY_PATH 8968 shlibpath_overrides_runpath=no 8969 hardcode_into_libs=yes 8970 dynamic_linker='ldqnx.so' 8971 ;; 8972 8973openbsd*) 8974 version_type=sunos 8975 sys_lib_dlsearch_path_spec="/usr/lib" 8976 need_lib_prefix=no 8977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8978 case $host_os in 8979 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8980 *) need_version=no ;; 8981 esac 8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8984 shlibpath_var=LD_LIBRARY_PATH 8985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8986 case $host_os in 8987 openbsd2.[89] | openbsd2.[89].*) 8988 shlibpath_overrides_runpath=no 8989 ;; 8990 *) 8991 shlibpath_overrides_runpath=yes 8992 ;; 8993 esac 8994 else 8995 shlibpath_overrides_runpath=yes 8996 fi 8997 ;; 8998 8999os2*) 9000 libname_spec='$name' 9001 shrext_cmds=".dll" 9002 need_lib_prefix=no 9003 library_names_spec='$libname${shared_ext} $libname.a' 9004 dynamic_linker='OS/2 ld.exe' 9005 shlibpath_var=LIBPATH 9006 ;; 9007 9008osf3* | osf4* | osf5*) 9009 version_type=osf 9010 need_lib_prefix=no 9011 need_version=no 9012 soname_spec='${libname}${release}${shared_ext}$major' 9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9014 shlibpath_var=LD_LIBRARY_PATH 9015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9017 ;; 9018 9019rdos*) 9020 dynamic_linker=no 9021 ;; 9022 9023solaris*) 9024 version_type=linux 9025 need_lib_prefix=no 9026 need_version=no 9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9028 soname_spec='${libname}${release}${shared_ext}$major' 9029 shlibpath_var=LD_LIBRARY_PATH 9030 shlibpath_overrides_runpath=yes 9031 hardcode_into_libs=yes 9032 # ldd complains unless libraries are executable 9033 postinstall_cmds='chmod +x $lib' 9034 ;; 9035 9036sunos4*) 9037 version_type=sunos 9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9040 shlibpath_var=LD_LIBRARY_PATH 9041 shlibpath_overrides_runpath=yes 9042 if test "$with_gnu_ld" = yes; then 9043 need_lib_prefix=no 9044 fi 9045 need_version=yes 9046 ;; 9047 9048sysv4 | sysv4.3*) 9049 version_type=linux 9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9051 soname_spec='${libname}${release}${shared_ext}$major' 9052 shlibpath_var=LD_LIBRARY_PATH 9053 case $host_vendor in 9054 sni) 9055 shlibpath_overrides_runpath=no 9056 need_lib_prefix=no 9057 runpath_var=LD_RUN_PATH 9058 ;; 9059 siemens) 9060 need_lib_prefix=no 9061 ;; 9062 motorola) 9063 need_lib_prefix=no 9064 need_version=no 9065 shlibpath_overrides_runpath=no 9066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9067 ;; 9068 esac 9069 ;; 9070 9071sysv4*MP*) 9072 if test -d /usr/nec ;then 9073 version_type=linux 9074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9075 soname_spec='$libname${shared_ext}.$major' 9076 shlibpath_var=LD_LIBRARY_PATH 9077 fi 9078 ;; 9079 9080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9081 version_type=freebsd-elf 9082 need_lib_prefix=no 9083 need_version=no 9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9085 soname_spec='${libname}${release}${shared_ext}$major' 9086 shlibpath_var=LD_LIBRARY_PATH 9087 shlibpath_overrides_runpath=yes 9088 hardcode_into_libs=yes 9089 if test "$with_gnu_ld" = yes; then 9090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9091 else 9092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9093 case $host_os in 9094 sco3.2v5*) 9095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9096 ;; 9097 esac 9098 fi 9099 sys_lib_dlsearch_path_spec='/usr/lib' 9100 ;; 9101 9102tpf*) 9103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9104 version_type=linux 9105 need_lib_prefix=no 9106 need_version=no 9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9108 shlibpath_var=LD_LIBRARY_PATH 9109 shlibpath_overrides_runpath=no 9110 hardcode_into_libs=yes 9111 ;; 9112 9113uts4*) 9114 version_type=linux 9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9116 soname_spec='${libname}${release}${shared_ext}$major' 9117 shlibpath_var=LD_LIBRARY_PATH 9118 ;; 9119 9120*) 9121 dynamic_linker=no 9122 ;; 9123esac 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9125$as_echo "$dynamic_linker" >&6; } 9126test "$dynamic_linker" = no && can_build_shared=no 9127 9128variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9129if test "$GCC" = yes; then 9130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9131fi 9132 9133if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9134 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9135fi 9136if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9137 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9138fi 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9227$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9228hardcode_action= 9229if test -n "$hardcode_libdir_flag_spec" || 9230 test -n "$runpath_var" || 9231 test "X$hardcode_automatic" = "Xyes" ; then 9232 9233 # We can hardcode non-existent directories. 9234 if test "$hardcode_direct" != no && 9235 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9236 # have to relink, otherwise we might link with an installed library 9237 # when we should be linking with a yet-to-be-installed one 9238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9239 test "$hardcode_minus_L" != no; then 9240 # Linking always hardcodes the temporary library directory. 9241 hardcode_action=relink 9242 else 9243 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9244 hardcode_action=immediate 9245 fi 9246else 9247 # We cannot hardcode anything, or else we can only hardcode existing 9248 # directories. 9249 hardcode_action=unsupported 9250fi 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9252$as_echo "$hardcode_action" >&6; } 9253 9254if test "$hardcode_action" = relink || 9255 test "$inherit_rpath" = yes; then 9256 # Fast installation is not supported 9257 enable_fast_install=no 9258elif test "$shlibpath_overrides_runpath" = yes || 9259 test "$enable_shared" = no; then 9260 # Fast installation is not necessary 9261 enable_fast_install=needless 9262fi 9263 9264 9265 9266 9267 9268 9269 if test "x$enable_dlopen" != xyes; then 9270 enable_dlopen=unknown 9271 enable_dlopen_self=unknown 9272 enable_dlopen_self_static=unknown 9273else 9274 lt_cv_dlopen=no 9275 lt_cv_dlopen_libs= 9276 9277 case $host_os in 9278 beos*) 9279 lt_cv_dlopen="load_add_on" 9280 lt_cv_dlopen_libs= 9281 lt_cv_dlopen_self=yes 9282 ;; 9283 9284 mingw* | pw32* | cegcc*) 9285 lt_cv_dlopen="LoadLibrary" 9286 lt_cv_dlopen_libs= 9287 ;; 9288 9289 cygwin*) 9290 lt_cv_dlopen="dlopen" 9291 lt_cv_dlopen_libs= 9292 ;; 9293 9294 darwin*) 9295 # if libdl is installed we need to link against it 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9297$as_echo_n "checking for dlopen in -ldl... " >&6; } 9298if ${ac_cv_lib_dl_dlopen+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 ac_check_lib_save_LIBS=$LIBS 9302LIBS="-ldl $LIBS" 9303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304/* end confdefs.h. */ 9305 9306/* Override any GCC internal prototype to avoid an error. 9307 Use char because int might match the return type of a GCC 9308 builtin and then its argument prototype would still apply. */ 9309#ifdef __cplusplus 9310extern "C" 9311#endif 9312char dlopen (); 9313int 9314main () 9315{ 9316return dlopen (); 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321if ac_fn_c_try_link "$LINENO"; then : 9322 ac_cv_lib_dl_dlopen=yes 9323else 9324 ac_cv_lib_dl_dlopen=no 9325fi 9326rm -f core conftest.err conftest.$ac_objext \ 9327 conftest$ac_exeext conftest.$ac_ext 9328LIBS=$ac_check_lib_save_LIBS 9329fi 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9331$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9332if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9334else 9335 9336 lt_cv_dlopen="dyld" 9337 lt_cv_dlopen_libs= 9338 lt_cv_dlopen_self=yes 9339 9340fi 9341 9342 ;; 9343 9344 *) 9345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9346if test "x$ac_cv_func_shl_load" = xyes; then : 9347 lt_cv_dlopen="shl_load" 9348else 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9350$as_echo_n "checking for shl_load in -ldld... " >&6; } 9351if ${ac_cv_lib_dld_shl_load+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 ac_check_lib_save_LIBS=$LIBS 9355LIBS="-ldld $LIBS" 9356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358 9359/* Override any GCC internal prototype to avoid an error. 9360 Use char because int might match the return type of a GCC 9361 builtin and then its argument prototype would still apply. */ 9362#ifdef __cplusplus 9363extern "C" 9364#endif 9365char shl_load (); 9366int 9367main () 9368{ 9369return shl_load (); 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374if ac_fn_c_try_link "$LINENO"; then : 9375 ac_cv_lib_dld_shl_load=yes 9376else 9377 ac_cv_lib_dld_shl_load=no 9378fi 9379rm -f core conftest.err conftest.$ac_objext \ 9380 conftest$ac_exeext conftest.$ac_ext 9381LIBS=$ac_check_lib_save_LIBS 9382fi 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9384$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9385if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9387else 9388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9389if test "x$ac_cv_func_dlopen" = xyes; then : 9390 lt_cv_dlopen="dlopen" 9391else 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9393$as_echo_n "checking for dlopen in -ldl... " >&6; } 9394if ${ac_cv_lib_dl_dlopen+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396else 9397 ac_check_lib_save_LIBS=$LIBS 9398LIBS="-ldl $LIBS" 9399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401 9402/* Override any GCC internal prototype to avoid an error. 9403 Use char because int might match the return type of a GCC 9404 builtin and then its argument prototype would still apply. */ 9405#ifdef __cplusplus 9406extern "C" 9407#endif 9408char dlopen (); 9409int 9410main () 9411{ 9412return dlopen (); 9413 ; 9414 return 0; 9415} 9416_ACEOF 9417if ac_fn_c_try_link "$LINENO"; then : 9418 ac_cv_lib_dl_dlopen=yes 9419else 9420 ac_cv_lib_dl_dlopen=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext \ 9423 conftest$ac_exeext conftest.$ac_ext 9424LIBS=$ac_check_lib_save_LIBS 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9427$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9428if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9430else 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9432$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9433if ${ac_cv_lib_svld_dlopen+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 ac_check_lib_save_LIBS=$LIBS 9437LIBS="-lsvld $LIBS" 9438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440 9441/* Override any GCC internal prototype to avoid an error. 9442 Use char because int might match the return type of a GCC 9443 builtin and then its argument prototype would still apply. */ 9444#ifdef __cplusplus 9445extern "C" 9446#endif 9447char dlopen (); 9448int 9449main () 9450{ 9451return dlopen (); 9452 ; 9453 return 0; 9454} 9455_ACEOF 9456if ac_fn_c_try_link "$LINENO"; then : 9457 ac_cv_lib_svld_dlopen=yes 9458else 9459 ac_cv_lib_svld_dlopen=no 9460fi 9461rm -f core conftest.err conftest.$ac_objext \ 9462 conftest$ac_exeext conftest.$ac_ext 9463LIBS=$ac_check_lib_save_LIBS 9464fi 9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9466$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9467if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 9468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9469else 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9471$as_echo_n "checking for dld_link in -ldld... " >&6; } 9472if ${ac_cv_lib_dld_dld_link+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 ac_check_lib_save_LIBS=$LIBS 9476LIBS="-ldld $LIBS" 9477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479 9480/* Override any GCC internal prototype to avoid an error. 9481 Use char because int might match the return type of a GCC 9482 builtin and then its argument prototype would still apply. */ 9483#ifdef __cplusplus 9484extern "C" 9485#endif 9486char dld_link (); 9487int 9488main () 9489{ 9490return dld_link (); 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495if ac_fn_c_try_link "$LINENO"; then : 9496 ac_cv_lib_dld_dld_link=yes 9497else 9498 ac_cv_lib_dld_dld_link=no 9499fi 9500rm -f core conftest.err conftest.$ac_objext \ 9501 conftest$ac_exeext conftest.$ac_ext 9502LIBS=$ac_check_lib_save_LIBS 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9505$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9506if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 9507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9508fi 9509 9510 9511fi 9512 9513 9514fi 9515 9516 9517fi 9518 9519 9520fi 9521 9522 9523fi 9524 9525 ;; 9526 esac 9527 9528 if test "x$lt_cv_dlopen" != xno; then 9529 enable_dlopen=yes 9530 else 9531 enable_dlopen=no 9532 fi 9533 9534 case $lt_cv_dlopen in 9535 dlopen) 9536 save_CPPFLAGS="$CPPFLAGS" 9537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9538 9539 save_LDFLAGS="$LDFLAGS" 9540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9541 9542 save_LIBS="$LIBS" 9543 LIBS="$lt_cv_dlopen_libs $LIBS" 9544 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9546$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9547if ${lt_cv_dlopen_self+:} false; then : 9548 $as_echo_n "(cached) " >&6 9549else 9550 if test "$cross_compiling" = yes; then : 9551 lt_cv_dlopen_self=cross 9552else 9553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9554 lt_status=$lt_dlunknown 9555 cat > conftest.$ac_ext <<_LT_EOF 9556#line 9556 "configure" 9557#include "confdefs.h" 9558 9559#if HAVE_DLFCN_H 9560#include <dlfcn.h> 9561#endif 9562 9563#include <stdio.h> 9564 9565#ifdef RTLD_GLOBAL 9566# define LT_DLGLOBAL RTLD_GLOBAL 9567#else 9568# ifdef DL_GLOBAL 9569# define LT_DLGLOBAL DL_GLOBAL 9570# else 9571# define LT_DLGLOBAL 0 9572# endif 9573#endif 9574 9575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9576 find out it does not work in some platform. */ 9577#ifndef LT_DLLAZY_OR_NOW 9578# ifdef RTLD_LAZY 9579# define LT_DLLAZY_OR_NOW RTLD_LAZY 9580# else 9581# ifdef DL_LAZY 9582# define LT_DLLAZY_OR_NOW DL_LAZY 9583# else 9584# ifdef RTLD_NOW 9585# define LT_DLLAZY_OR_NOW RTLD_NOW 9586# else 9587# ifdef DL_NOW 9588# define LT_DLLAZY_OR_NOW DL_NOW 9589# else 9590# define LT_DLLAZY_OR_NOW 0 9591# endif 9592# endif 9593# endif 9594# endif 9595#endif 9596 9597void fnord() { int i=42;} 9598int main () 9599{ 9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9601 int status = $lt_dlunknown; 9602 9603 if (self) 9604 { 9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9607 /* dlclose (self); */ 9608 } 9609 else 9610 puts (dlerror ()); 9611 9612 return status; 9613} 9614_LT_EOF 9615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9616 (eval $ac_link) 2>&5 9617 ac_status=$? 9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9620 (./conftest; exit; ) >&5 2>/dev/null 9621 lt_status=$? 9622 case x$lt_status in 9623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9625 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9626 esac 9627 else : 9628 # compilation failed 9629 lt_cv_dlopen_self=no 9630 fi 9631fi 9632rm -fr conftest* 9633 9634 9635fi 9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9637$as_echo "$lt_cv_dlopen_self" >&6; } 9638 9639 if test "x$lt_cv_dlopen_self" = xyes; then 9640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9642$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9643if ${lt_cv_dlopen_self_static+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 if test "$cross_compiling" = yes; then : 9647 lt_cv_dlopen_self_static=cross 9648else 9649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9650 lt_status=$lt_dlunknown 9651 cat > conftest.$ac_ext <<_LT_EOF 9652#line 9652 "configure" 9653#include "confdefs.h" 9654 9655#if HAVE_DLFCN_H 9656#include <dlfcn.h> 9657#endif 9658 9659#include <stdio.h> 9660 9661#ifdef RTLD_GLOBAL 9662# define LT_DLGLOBAL RTLD_GLOBAL 9663#else 9664# ifdef DL_GLOBAL 9665# define LT_DLGLOBAL DL_GLOBAL 9666# else 9667# define LT_DLGLOBAL 0 9668# endif 9669#endif 9670 9671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9672 find out it does not work in some platform. */ 9673#ifndef LT_DLLAZY_OR_NOW 9674# ifdef RTLD_LAZY 9675# define LT_DLLAZY_OR_NOW RTLD_LAZY 9676# else 9677# ifdef DL_LAZY 9678# define LT_DLLAZY_OR_NOW DL_LAZY 9679# else 9680# ifdef RTLD_NOW 9681# define LT_DLLAZY_OR_NOW RTLD_NOW 9682# else 9683# ifdef DL_NOW 9684# define LT_DLLAZY_OR_NOW DL_NOW 9685# else 9686# define LT_DLLAZY_OR_NOW 0 9687# endif 9688# endif 9689# endif 9690# endif 9691#endif 9692 9693void fnord() { int i=42;} 9694int main () 9695{ 9696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9697 int status = $lt_dlunknown; 9698 9699 if (self) 9700 { 9701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9703 /* dlclose (self); */ 9704 } 9705 else 9706 puts (dlerror ()); 9707 9708 return status; 9709} 9710_LT_EOF 9711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9712 (eval $ac_link) 2>&5 9713 ac_status=$? 9714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9716 (./conftest; exit; ) >&5 2>/dev/null 9717 lt_status=$? 9718 case x$lt_status in 9719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9721 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9722 esac 9723 else : 9724 # compilation failed 9725 lt_cv_dlopen_self_static=no 9726 fi 9727fi 9728rm -fr conftest* 9729 9730 9731fi 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 9733$as_echo "$lt_cv_dlopen_self_static" >&6; } 9734 fi 9735 9736 CPPFLAGS="$save_CPPFLAGS" 9737 LDFLAGS="$save_LDFLAGS" 9738 LIBS="$save_LIBS" 9739 ;; 9740 esac 9741 9742 case $lt_cv_dlopen_self in 9743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9744 *) enable_dlopen_self=unknown ;; 9745 esac 9746 9747 case $lt_cv_dlopen_self_static in 9748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9749 *) enable_dlopen_self_static=unknown ;; 9750 esac 9751fi 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769striplib= 9770old_striplib= 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9772$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9773if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9774 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9775 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9777$as_echo "yes" >&6; } 9778else 9779# FIXME - insert some real tests, host_os isn't really good enough 9780 case $host_os in 9781 darwin*) 9782 if test -n "$STRIP" ; then 9783 striplib="$STRIP -x" 9784 old_striplib="$STRIP -S" 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9786$as_echo "yes" >&6; } 9787 else 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9789$as_echo "no" >&6; } 9790 fi 9791 ;; 9792 *) 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9794$as_echo "no" >&6; } 9795 ;; 9796 esac 9797fi 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 # Report which library types will actually be built 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 9812$as_echo_n "checking if libtool supports shared libraries... " >&6; } 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 9814$as_echo "$can_build_shared" >&6; } 9815 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 9817$as_echo_n "checking whether to build shared libraries... " >&6; } 9818 test "$can_build_shared" = "no" && enable_shared=no 9819 9820 # On AIX, shared libraries and static libraries use the same namespace, and 9821 # are all built from PIC. 9822 case $host_os in 9823 aix3*) 9824 test "$enable_shared" = yes && enable_static=no 9825 if test -n "$RANLIB"; then 9826 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9827 postinstall_cmds='$RANLIB $lib' 9828 fi 9829 ;; 9830 9831 aix[4-9]*) 9832 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9833 test "$enable_shared" = yes && enable_static=no 9834 fi 9835 ;; 9836 esac 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 9838$as_echo "$enable_shared" >&6; } 9839 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 9841$as_echo_n "checking whether to build static libraries... " >&6; } 9842 # Make sure either enable_shared or enable_static is yes. 9843 test "$enable_shared" = yes || enable_static=yes 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 9845$as_echo "$enable_static" >&6; } 9846 9847 9848 9849 9850fi 9851ac_ext=c 9852ac_cpp='$CPP $CPPFLAGS' 9853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9855ac_compiler_gnu=$ac_cv_c_compiler_gnu 9856 9857CC="$lt_save_CC" 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 ac_config_commands="$ac_config_commands libtool" 9872 9873 9874 9875 9876# Only expand once: 9877 9878 9879# Find a good install program. We prefer a C program (faster), 9880# so one script is as good as another. But avoid the broken or 9881# incompatible versions: 9882# SysV /etc/install, /usr/sbin/install 9883# SunOS /usr/etc/install 9884# IRIX /sbin/install 9885# AIX /bin/install 9886# AmigaOS /C/install, which installs bootblocks on floppy discs 9887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9888# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9890# OS/2's system install, which has a completely different semantic 9891# ./install, which can be erroneously created by make from ./install.sh. 9892# Reject install programs that cannot install multiple files. 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9894$as_echo_n "checking for a BSD-compatible install... " >&6; } 9895if test -z "$INSTALL"; then 9896if ${ac_cv_path_install+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898else 9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9900for as_dir in $PATH 9901do 9902 IFS=$as_save_IFS 9903 test -z "$as_dir" && as_dir=. 9904 # Account for people who put trailing slashes in PATH elements. 9905case $as_dir/ in #(( 9906 ./ | .// | /[cC]/* | \ 9907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9909 /usr/ucb/* ) ;; 9910 *) 9911 # OSF1 and SCO ODT 3.0 have their own names for install. 9912 # Don't use installbsd from OSF since it installs stuff as root 9913 # by default. 9914 for ac_prog in ginstall scoinst install; do 9915 for ac_exec_ext in '' $ac_executable_extensions; do 9916 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9917 if test $ac_prog = install && 9918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9919 # AIX install. It has an incompatible calling convention. 9920 : 9921 elif test $ac_prog = install && 9922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9923 # program-specific install script used by HP pwplus--don't use. 9924 : 9925 else 9926 rm -rf conftest.one conftest.two conftest.dir 9927 echo one > conftest.one 9928 echo two > conftest.two 9929 mkdir conftest.dir 9930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9931 test -s conftest.one && test -s conftest.two && 9932 test -s conftest.dir/conftest.one && 9933 test -s conftest.dir/conftest.two 9934 then 9935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9936 break 3 9937 fi 9938 fi 9939 fi 9940 done 9941 done 9942 ;; 9943esac 9944 9945 done 9946IFS=$as_save_IFS 9947 9948rm -rf conftest.one conftest.two conftest.dir 9949 9950fi 9951 if test "${ac_cv_path_install+set}" = set; then 9952 INSTALL=$ac_cv_path_install 9953 else 9954 # As a last resort, use the slow shell script. Don't cache a 9955 # value for INSTALL within a source directory, because that will 9956 # break other packages using the cache if that directory is 9957 # removed, or if the value is a relative name. 9958 INSTALL=$ac_install_sh 9959 fi 9960fi 9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9962$as_echo "$INSTALL" >&6; } 9963 9964# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9965# It thinks the first close brace ends the variable substitution. 9966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9967 9968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9969 9970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9971 9972 9973######### 9974# Enable large file support (if special flags are necessary) 9975# 9976# Check whether --enable-largefile was given. 9977if test "${enable_largefile+set}" = set; then : 9978 enableval=$enable_largefile; 9979fi 9980 9981if test "$enable_largefile" != no; then 9982 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9984$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 9985if ${ac_cv_sys_largefile_CC+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 ac_cv_sys_largefile_CC=no 9989 if test "$GCC" != yes; then 9990 ac_save_CC=$CC 9991 while :; do 9992 # IRIX 6.2 and later do not support large files by default, 9993 # so use the C compiler's -n32 option if that helps. 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996#include <sys/types.h> 9997 /* Check that off_t can represent 2**63 - 1 correctly. 9998 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9999 since some C++ compilers masquerading as C compilers 10000 incorrectly reject 9223372036854775807. */ 10001#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10003 && LARGE_OFF_T % 2147483647 == 1) 10004 ? 1 : -1]; 10005int 10006main () 10007{ 10008 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013 if ac_fn_c_try_compile "$LINENO"; then : 10014 break 10015fi 10016rm -f core conftest.err conftest.$ac_objext 10017 CC="$CC -n32" 10018 if ac_fn_c_try_compile "$LINENO"; then : 10019 ac_cv_sys_largefile_CC=' -n32'; break 10020fi 10021rm -f core conftest.err conftest.$ac_objext 10022 break 10023 done 10024 CC=$ac_save_CC 10025 rm -f conftest.$ac_ext 10026 fi 10027fi 10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10029$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10030 if test "$ac_cv_sys_largefile_CC" != no; then 10031 CC=$CC$ac_cv_sys_largefile_CC 10032 fi 10033 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10035$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10036if ${ac_cv_sys_file_offset_bits+:} false; then : 10037 $as_echo_n "(cached) " >&6 10038else 10039 while :; do 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041/* end confdefs.h. */ 10042#include <sys/types.h> 10043 /* Check that off_t can represent 2**63 - 1 correctly. 10044 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10045 since some C++ compilers masquerading as C compilers 10046 incorrectly reject 9223372036854775807. */ 10047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10049 && LARGE_OFF_T % 2147483647 == 1) 10050 ? 1 : -1]; 10051int 10052main () 10053{ 10054 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_compile "$LINENO"; then : 10060 ac_cv_sys_file_offset_bits=no; break 10061fi 10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064/* end confdefs.h. */ 10065#define _FILE_OFFSET_BITS 64 10066#include <sys/types.h> 10067 /* Check that off_t can represent 2**63 - 1 correctly. 10068 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10069 since some C++ compilers masquerading as C compilers 10070 incorrectly reject 9223372036854775807. */ 10071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10073 && LARGE_OFF_T % 2147483647 == 1) 10074 ? 1 : -1]; 10075int 10076main () 10077{ 10078 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083if ac_fn_c_try_compile "$LINENO"; then : 10084 ac_cv_sys_file_offset_bits=64; break 10085fi 10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10087 ac_cv_sys_file_offset_bits=unknown 10088 break 10089done 10090fi 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10092$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10093case $ac_cv_sys_file_offset_bits in #( 10094 no | unknown) ;; 10095 *) 10096cat >>confdefs.h <<_ACEOF 10097#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10098_ACEOF 10099;; 10100esac 10101rm -rf conftest* 10102 if test $ac_cv_sys_file_offset_bits = unknown; then 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10104$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10105if ${ac_cv_sys_large_files+:} false; then : 10106 $as_echo_n "(cached) " >&6 10107else 10108 while :; do 10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10110/* end confdefs.h. */ 10111#include <sys/types.h> 10112 /* Check that off_t can represent 2**63 - 1 correctly. 10113 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10114 since some C++ compilers masquerading as C compilers 10115 incorrectly reject 9223372036854775807. */ 10116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10118 && LARGE_OFF_T % 2147483647 == 1) 10119 ? 1 : -1]; 10120int 10121main () 10122{ 10123 10124 ; 10125 return 0; 10126} 10127_ACEOF 10128if ac_fn_c_try_compile "$LINENO"; then : 10129 ac_cv_sys_large_files=no; break 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134#define _LARGE_FILES 1 10135#include <sys/types.h> 10136 /* Check that off_t can represent 2**63 - 1 correctly. 10137 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10138 since some C++ compilers masquerading as C compilers 10139 incorrectly reject 9223372036854775807. */ 10140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10142 && LARGE_OFF_T % 2147483647 == 1) 10143 ? 1 : -1]; 10144int 10145main () 10146{ 10147 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152if ac_fn_c_try_compile "$LINENO"; then : 10153 ac_cv_sys_large_files=1; break 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10156 ac_cv_sys_large_files=unknown 10157 break 10158done 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10161$as_echo "$ac_cv_sys_large_files" >&6; } 10162case $ac_cv_sys_large_files in #( 10163 no | unknown) ;; 10164 *) 10165cat >>confdefs.h <<_ACEOF 10166#define _LARGE_FILES $ac_cv_sys_large_files 10167_ACEOF 10168;; 10169esac 10170rm -rf conftest* 10171 fi 10172 10173 10174fi 10175 10176 10177######### 10178# Check for needed/wanted data types 10179ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 10180if test "x$ac_cv_type_int8_t" = xyes; then : 10181 10182cat >>confdefs.h <<_ACEOF 10183#define HAVE_INT8_T 1 10184_ACEOF 10185 10186 10187fi 10188ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 10189if test "x$ac_cv_type_int16_t" = xyes; then : 10190 10191cat >>confdefs.h <<_ACEOF 10192#define HAVE_INT16_T 1 10193_ACEOF 10194 10195 10196fi 10197ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 10198if test "x$ac_cv_type_int32_t" = xyes; then : 10199 10200cat >>confdefs.h <<_ACEOF 10201#define HAVE_INT32_T 1 10202_ACEOF 10203 10204 10205fi 10206ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 10207if test "x$ac_cv_type_int64_t" = xyes; then : 10208 10209cat >>confdefs.h <<_ACEOF 10210#define HAVE_INT64_T 1 10211_ACEOF 10212 10213 10214fi 10215ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 10216if test "x$ac_cv_type_intptr_t" = xyes; then : 10217 10218cat >>confdefs.h <<_ACEOF 10219#define HAVE_INTPTR_T 1 10220_ACEOF 10221 10222 10223fi 10224ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 10225if test "x$ac_cv_type_uint8_t" = xyes; then : 10226 10227cat >>confdefs.h <<_ACEOF 10228#define HAVE_UINT8_T 1 10229_ACEOF 10230 10231 10232fi 10233ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 10234if test "x$ac_cv_type_uint16_t" = xyes; then : 10235 10236cat >>confdefs.h <<_ACEOF 10237#define HAVE_UINT16_T 1 10238_ACEOF 10239 10240 10241fi 10242ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 10243if test "x$ac_cv_type_uint32_t" = xyes; then : 10244 10245cat >>confdefs.h <<_ACEOF 10246#define HAVE_UINT32_T 1 10247_ACEOF 10248 10249 10250fi 10251ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 10252if test "x$ac_cv_type_uint64_t" = xyes; then : 10253 10254cat >>confdefs.h <<_ACEOF 10255#define HAVE_UINT64_T 1 10256_ACEOF 10257 10258 10259fi 10260ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 10261if test "x$ac_cv_type_uintptr_t" = xyes; then : 10262 10263cat >>confdefs.h <<_ACEOF 10264#define HAVE_UINTPTR_T 1 10265_ACEOF 10266 10267 10268fi 10269 10270 10271######### 10272# Check for needed/wanted headers 10273for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 10274do : 10275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10276ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10278 cat >>confdefs.h <<_ACEOF 10279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10280_ACEOF 10281 10282fi 10283 10284done 10285 10286 10287######### 10288# Figure out whether or not we have these functions 10289# 10290for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64 10291do : 10292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10294if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10295 cat >>confdefs.h <<_ACEOF 10296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10297_ACEOF 10298 10299fi 10300done 10301 10302 10303######### 10304# By default, we use the amalgamation (this may be changed below...) 10305# 10306USE_AMALGAMATION=1 10307 10308######### 10309# See whether we can run specific tclsh versions known to work well; 10310# if not, then we fall back to plain tclsh. 10311# TODO: try other versions before falling back? 10312# 10313for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh 10314do 10315 # Extract the first word of "$ac_prog", so it can be a program name with args. 10316set dummy $ac_prog; ac_word=$2 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10318$as_echo_n "checking for $ac_word... " >&6; } 10319if ${ac_cv_prog_TCLSH_CMD+:} false; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 if test -n "$TCLSH_CMD"; then 10323 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 10324else 10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10326for as_dir in $PATH 10327do 10328 IFS=$as_save_IFS 10329 test -z "$as_dir" && as_dir=. 10330 for ac_exec_ext in '' $ac_executable_extensions; do 10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10332 ac_cv_prog_TCLSH_CMD="$ac_prog" 10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10334 break 2 10335 fi 10336done 10337 done 10338IFS=$as_save_IFS 10339 10340fi 10341fi 10342TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 10343if test -n "$TCLSH_CMD"; then 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 10345$as_echo "$TCLSH_CMD" >&6; } 10346else 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10348$as_echo "no" >&6; } 10349fi 10350 10351 10352 test -n "$TCLSH_CMD" && break 10353done 10354test -n "$TCLSH_CMD" || TCLSH_CMD="none" 10355 10356if test "$TCLSH_CMD" = "none"; then 10357 # If we can't find a local tclsh, then building the amalgamation will fail. 10358 # We act as though --disable-amalgamation has been used. 10359 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 10360 USE_AMALGAMATION=0 10361 TCLSH_CMD="tclsh" 10362fi 10363 10364 10365 10366if test "x${TCLLIBDIR+set}" != "xset" ; then 10367 TCLLIBDIR='$(libdir)' 10368 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 10369 if test -d $i ; then 10370 TCLLIBDIR=$i 10371 break 10372 fi 10373 done 10374 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 10375fi 10376 10377 10378######### 10379# Set up an appropriate program prefix 10380# 10381if test "$program_prefix" = "NONE"; then 10382 program_prefix="" 10383fi 10384 10385 10386VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 10387{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5 10388$as_echo "$as_me: Version set to $VERSION" >&6;} 10389 10390RELEASE=`cat $srcdir/VERSION` 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5 10392$as_echo "$as_me: Release set to $RELEASE" >&6;} 10393 10394 10395######### 10396# Locate a compiler for the build machine. This compiler should 10397# generate command-line programs that run on the build machine. 10398# 10399if test x"$cross_compiling" = xno; then 10400 BUILD_CC=$CC 10401 BUILD_CFLAGS=$CFLAGS 10402else 10403 if test "${BUILD_CC+set}" != set; then 10404 for ac_prog in gcc cc cl 10405do 10406 # Extract the first word of "$ac_prog", so it can be a program name with args. 10407set dummy $ac_prog; ac_word=$2 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10409$as_echo_n "checking for $ac_word... " >&6; } 10410if ${ac_cv_prog_BUILD_CC+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 if test -n "$BUILD_CC"; then 10414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10415else 10416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10417for as_dir in $PATH 10418do 10419 IFS=$as_save_IFS 10420 test -z "$as_dir" && as_dir=. 10421 for ac_exec_ext in '' $ac_executable_extensions; do 10422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10423 ac_cv_prog_BUILD_CC="$ac_prog" 10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10425 break 2 10426 fi 10427done 10428 done 10429IFS=$as_save_IFS 10430 10431fi 10432fi 10433BUILD_CC=$ac_cv_prog_BUILD_CC 10434if test -n "$BUILD_CC"; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 10436$as_echo "$BUILD_CC" >&6; } 10437else 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10439$as_echo "no" >&6; } 10440fi 10441 10442 10443 test -n "$BUILD_CC" && break 10444done 10445 10446 fi 10447 if test "${BUILD_CFLAGS+set}" != set; then 10448 BUILD_CFLAGS="-g" 10449 fi 10450fi 10451 10452 10453########## 10454# Do we want to support multithreaded use of sqlite 10455# 10456# Check whether --enable-threadsafe was given. 10457if test "${enable_threadsafe+set}" = set; then : 10458 enableval=$enable_threadsafe; 10459fi 10460 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5 10462$as_echo_n "checking whether to support threadsafe operation... " >&6; } 10463if test "$enable_threadsafe" = "no"; then 10464 SQLITE_THREADSAFE=0 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10466$as_echo "no" >&6; } 10467else 10468 SQLITE_THREADSAFE=1 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10470$as_echo "yes" >&6; } 10471fi 10472 10473 10474if test "$SQLITE_THREADSAFE" = "1"; then 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 10476$as_echo_n "checking for library containing pthread_create... " >&6; } 10477if ${ac_cv_search_pthread_create+:} false; then : 10478 $as_echo_n "(cached) " >&6 10479else 10480 ac_func_search_save_LIBS=$LIBS 10481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10482/* end confdefs.h. */ 10483 10484/* Override any GCC internal prototype to avoid an error. 10485 Use char because int might match the return type of a GCC 10486 builtin and then its argument prototype would still apply. */ 10487#ifdef __cplusplus 10488extern "C" 10489#endif 10490char pthread_create (); 10491int 10492main () 10493{ 10494return pthread_create (); 10495 ; 10496 return 0; 10497} 10498_ACEOF 10499for ac_lib in '' pthread; do 10500 if test -z "$ac_lib"; then 10501 ac_res="none required" 10502 else 10503 ac_res=-l$ac_lib 10504 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10505 fi 10506 if ac_fn_c_try_link "$LINENO"; then : 10507 ac_cv_search_pthread_create=$ac_res 10508fi 10509rm -f core conftest.err conftest.$ac_objext \ 10510 conftest$ac_exeext 10511 if ${ac_cv_search_pthread_create+:} false; then : 10512 break 10513fi 10514done 10515if ${ac_cv_search_pthread_create+:} false; then : 10516 10517else 10518 ac_cv_search_pthread_create=no 10519fi 10520rm conftest.$ac_ext 10521LIBS=$ac_func_search_save_LIBS 10522fi 10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 10524$as_echo "$ac_cv_search_pthread_create" >&6; } 10525ac_res=$ac_cv_search_pthread_create 10526if test "$ac_res" != no; then : 10527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10528 10529fi 10530 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5 10532$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; } 10533if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10534 $as_echo_n "(cached) " >&6 10535else 10536 ac_func_search_save_LIBS=$LIBS 10537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539 10540/* Override any GCC internal prototype to avoid an error. 10541 Use char because int might match the return type of a GCC 10542 builtin and then its argument prototype would still apply. */ 10543#ifdef __cplusplus 10544extern "C" 10545#endif 10546char pthread_mutexattr_init (); 10547int 10548main () 10549{ 10550return pthread_mutexattr_init (); 10551 ; 10552 return 0; 10553} 10554_ACEOF 10555for ac_lib in '' pthread; do 10556 if test -z "$ac_lib"; then 10557 ac_res="none required" 10558 else 10559 ac_res=-l$ac_lib 10560 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10561 fi 10562 if ac_fn_c_try_link "$LINENO"; then : 10563 ac_cv_search_pthread_mutexattr_init=$ac_res 10564fi 10565rm -f core conftest.err conftest.$ac_objext \ 10566 conftest$ac_exeext 10567 if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10568 break 10569fi 10570done 10571if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10572 10573else 10574 ac_cv_search_pthread_mutexattr_init=no 10575fi 10576rm conftest.$ac_ext 10577LIBS=$ac_func_search_save_LIBS 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5 10580$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; } 10581ac_res=$ac_cv_search_pthread_mutexattr_init 10582if test "$ac_res" != no; then : 10583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10584 10585fi 10586 10587fi 10588 10589########## 10590# Do we want to support release 10591# 10592# Check whether --enable-releasemode was given. 10593if test "${enable_releasemode+set}" = set; then : 10594 enableval=$enable_releasemode; 10595else 10596 enable_releasemode=no 10597fi 10598 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5 10600$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 10601if test "$enable_releasemode" = "no"; then 10602 ALLOWRELEASE="" 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10604$as_echo "no" >&6; } 10605else 10606 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10608$as_echo "yes" >&6; } 10609fi 10610 10611 10612########## 10613# Do we want temporary databases in memory 10614# 10615# Check whether --enable-tempstore was given. 10616if test "${enable_tempstore+set}" = set; then : 10617 enableval=$enable_tempstore; 10618else 10619 enable_tempstore=no 10620fi 10621 10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5 10623$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 10624case "$enable_tempstore" in 10625 never ) 10626 TEMP_STORE=0 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5 10628$as_echo "never" >&6; } 10629 ;; 10630 no ) 10631 TEMP_STORE=1 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10633$as_echo "no" >&6; } 10634 ;; 10635 yes ) 10636 TEMP_STORE=2 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10638$as_echo "yes" >&6; } 10639 ;; 10640 always ) 10641 TEMP_STORE=3 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5 10643$as_echo "always" >&6; } 10644 ;; 10645 * ) 10646 TEMP_STORE=1 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10648$as_echo "no" >&6; } 10649 ;; 10650esac 10651 10652 10653 10654########### 10655# Lots of things are different if we are compiling for Windows using 10656# the CYGWIN environment. So check for that special case and handle 10657# things accordingly. 10658# 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5 10660$as_echo_n "checking if executables have the .exe suffix... " >&6; } 10661if test "$config_BUILD_EXEEXT" = ".exe"; then 10662 CYGWIN=yes 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10664$as_echo "yes" >&6; } 10665else 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 10667$as_echo "unknown" >&6; } 10668fi 10669if test "$CYGWIN" != "yes"; then 10670 10671case $host_os in 10672 *cygwin* ) CYGWIN=yes;; 10673 * ) CYGWIN=no;; 10674esac 10675 10676fi 10677if test "$CYGWIN" = "yes"; then 10678 BUILD_EXEEXT=.exe 10679else 10680 BUILD_EXEEXT=$EXEEXT 10681fi 10682if test x"$cross_compiling" = xno; then 10683 TARGET_EXEEXT=$BUILD_EXEEXT 10684else 10685 TARGET_EXEEXT=$config_TARGET_EXEEXT 10686fi 10687if test "$TARGET_EXEEXT" = ".exe"; then 10688 SQLITE_OS_UNIX=0 10689 SQLITE_OS_WIN=1 10690 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 10691else 10692 SQLITE_OS_UNIX=1 10693 SQLITE_OS_WIN=0 10694 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 10695fi 10696 10697 10698 10699 10700 10701 10702########## 10703# Figure out all the parameters needed to compile against Tcl. 10704# 10705# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 10706# macros in the in the tcl.m4 file of the standard TCL distribution. 10707# Those macros could not be used directly since we have to make some 10708# minor changes to accomodate systems that do not have TCL installed. 10709# 10710# Check whether --enable-tcl was given. 10711if test "${enable_tcl+set}" = set; then : 10712 enableval=$enable_tcl; use_tcl=$enableval 10713else 10714 use_tcl=yes 10715fi 10716 10717if test "${use_tcl}" = "yes" ; then 10718 10719# Check whether --with-tcl was given. 10720if test "${with_tcl+set}" = set; then : 10721 withval=$with_tcl; with_tclconfig=${withval} 10722fi 10723 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 10725$as_echo_n "checking for Tcl configuration... " >&6; } 10726 if ${ac_cv_c_tclconfig+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 10730 # First check to see if --with-tcl was specified. 10731 if test x"${with_tclconfig}" != x ; then 10732 if test -f "${with_tclconfig}/tclConfig.sh" ; then 10733 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 10734 else 10735 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 10736 fi 10737 fi 10738 10739 # Start autosearch by asking tclsh 10740 if test x"${ac_cv_c_tclconfig}" = x ; then 10741 if test x"$cross_compiling" = xno; then 10742 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 10743 do 10744 if test -f "$i/tclConfig.sh" ; then 10745 ac_cv_c_tclconfig="$i" 10746 break 10747 fi 10748 done 10749 fi 10750 fi 10751 10752 # On ubuntu 14.10, $auto_path on tclsh is not quite correct. 10753 # So try again after applying corrections. 10754 if test x"${ac_cv_c_tclconfig}" = x ; then 10755 if test x"$cross_compiling" = xno; then 10756 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'` 10757 do 10758 if test -f "$i/tclConfig.sh" ; then 10759 ac_cv_c_tclconfig="$i" 10760 break 10761 fi 10762 done 10763 fi 10764 fi 10765 10766 # Recent versions of Xcode on Macs hid the tclConfig.sh file 10767 # in a strange place. 10768 if test x"${ac_cv_c_tclconfig}" = x ; then 10769 if test x"$cross_compiling" = xno; then 10770 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib 10771 do 10772 if test -f "$i/tclConfig.sh" ; then 10773 ac_cv_c_tclconfig="$i" 10774 break 10775 fi 10776 done 10777 fi 10778 fi 10779 10780 # then check for a private Tcl installation 10781 if test x"${ac_cv_c_tclconfig}" = x ; then 10782 for i in \ 10783 ../tcl \ 10784 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10785 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 10786 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 10787 ../../tcl \ 10788 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10789 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 10790 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 10791 ../../../tcl \ 10792 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10793 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 10794 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 10795 do 10796 if test -f "$i/unix/tclConfig.sh" ; then 10797 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10798 break 10799 fi 10800 done 10801 fi 10802 10803 # check in a few common install locations 10804 if test x"${ac_cv_c_tclconfig}" = x ; then 10805 for i in \ 10806 `ls -d ${libdir} 2>/dev/null` \ 10807 `ls -d /usr/local/lib 2>/dev/null` \ 10808 `ls -d /usr/contrib/lib 2>/dev/null` \ 10809 `ls -d /usr/lib 2>/dev/null` 10810 do 10811 if test -f "$i/tclConfig.sh" ; then 10812 ac_cv_c_tclconfig=`(cd $i; pwd)` 10813 break 10814 fi 10815 done 10816 fi 10817 10818 # check in a few other private locations 10819 if test x"${ac_cv_c_tclconfig}" = x ; then 10820 for i in \ 10821 ${srcdir}/../tcl \ 10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 10825 do 10826 if test -f "$i/unix/tclConfig.sh" ; then 10827 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10828 break 10829 fi 10830 done 10831 fi 10832 10833fi 10834 10835 10836 if test x"${ac_cv_c_tclconfig}" = x ; then 10837 use_tcl=no 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 10839$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 10841$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 10843$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 10844 else 10845 TCL_BIN_DIR=${ac_cv_c_tclconfig} 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 10847$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 10848 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 10850$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 10851 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 10853$as_echo "loading" >&6; } 10854 . $TCL_BIN_DIR/tclConfig.sh 10855 else 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 10857$as_echo "file not found" >&6; } 10858 fi 10859 10860 # 10861 # If the TCL_BIN_DIR is the build directory (not the install directory), 10862 # then set the common variable name to the value of the build variables. 10863 # For example, the variable TCL_LIB_SPEC will be set to the value 10864 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 10865 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 10866 # installed and uninstalled version of Tcl. 10867 # 10868 10869 if test -f $TCL_BIN_DIR/Makefile ; then 10870 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 10871 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 10872 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 10873 fi 10874 10875 # 10876 # eval is required to do the TCL_DBGX substitution 10877 # 10878 10879 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 10880 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 10881 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 10882 10883 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 10884 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 10885 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 fi 10901fi 10902if test "${use_tcl}" = "no" ; then 10903 HAVE_TCL="" 10904else 10905 HAVE_TCL=1 10906fi 10907 10908 10909########## 10910# Figure out what C libraries are required to compile programs 10911# that use "readline()" library. 10912# 10913TARGET_READLINE_LIBS="" 10914TARGET_READLINE_INC="" 10915TARGET_HAVE_READLINE=0 10916TARGET_HAVE_EDITLINE=0 10917# Check whether --enable-editline was given. 10918if test "${enable_editline+set}" = set; then : 10919 enableval=$enable_editline; with_editline=$enableval 10920else 10921 with_editline=auto 10922fi 10923 10924# Check whether --enable-readline was given. 10925if test "${enable_readline+set}" = set; then : 10926 enableval=$enable_readline; with_readline=$enableval 10927else 10928 with_readline=auto 10929fi 10930 10931 10932if test x"$with_editline" != xno; then 10933 sLIBS=$LIBS 10934 LIBS="" 10935 TARGET_HAVE_EDITLINE=1 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 10937$as_echo_n "checking for library containing readline... " >&6; } 10938if ${ac_cv_search_readline+:} false; then : 10939 $as_echo_n "(cached) " >&6 10940else 10941 ac_func_search_save_LIBS=$LIBS 10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943/* end confdefs.h. */ 10944 10945/* Override any GCC internal prototype to avoid an error. 10946 Use char because int might match the return type of a GCC 10947 builtin and then its argument prototype would still apply. */ 10948#ifdef __cplusplus 10949extern "C" 10950#endif 10951char readline (); 10952int 10953main () 10954{ 10955return readline (); 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960for ac_lib in '' edit; do 10961 if test -z "$ac_lib"; then 10962 ac_res="none required" 10963 else 10964 ac_res=-l$ac_lib 10965 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10966 fi 10967 if ac_fn_c_try_link "$LINENO"; then : 10968 ac_cv_search_readline=$ac_res 10969fi 10970rm -f core conftest.err conftest.$ac_objext \ 10971 conftest$ac_exeext 10972 if ${ac_cv_search_readline+:} false; then : 10973 break 10974fi 10975done 10976if ${ac_cv_search_readline+:} false; then : 10977 10978else 10979 ac_cv_search_readline=no 10980fi 10981rm conftest.$ac_ext 10982LIBS=$ac_func_search_save_LIBS 10983fi 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 10985$as_echo "$ac_cv_search_readline" >&6; } 10986ac_res=$ac_cv_search_readline 10987if test "$ac_res" != no; then : 10988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10989 with_readline=no 10990else 10991 TARGET_HAVE_EDITLINE=0 10992fi 10993 10994 TARGET_READLINE_LIBS=$LIBS 10995 LIBS=$sLIBS 10996fi 10997if test x"$with_readline" != xno; then 10998 found="yes" 10999 11000 11001# Check whether --with-readline-lib was given. 11002if test "${with_readline_lib+set}" = set; then : 11003 withval=$with_readline_lib; with_readline_lib=$withval 11004else 11005 with_readline_lib="auto" 11006fi 11007 11008 if test "x$with_readline_lib" = xauto; then 11009 save_LIBS="$LIBS" 11010 LIBS="" 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 11012$as_echo_n "checking for library containing tgetent... " >&6; } 11013if ${ac_cv_search_tgetent+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_func_search_save_LIBS=$LIBS 11017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11018/* end confdefs.h. */ 11019 11020/* Override any GCC internal prototype to avoid an error. 11021 Use char because int might match the return type of a GCC 11022 builtin and then its argument prototype would still apply. */ 11023#ifdef __cplusplus 11024extern "C" 11025#endif 11026char tgetent (); 11027int 11028main () 11029{ 11030return tgetent (); 11031 ; 11032 return 0; 11033} 11034_ACEOF 11035for ac_lib in '' readline ncurses curses termcap; do 11036 if test -z "$ac_lib"; then 11037 ac_res="none required" 11038 else 11039 ac_res=-l$ac_lib 11040 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11041 fi 11042 if ac_fn_c_try_link "$LINENO"; then : 11043 ac_cv_search_tgetent=$ac_res 11044fi 11045rm -f core conftest.err conftest.$ac_objext \ 11046 conftest$ac_exeext 11047 if ${ac_cv_search_tgetent+:} false; then : 11048 break 11049fi 11050done 11051if ${ac_cv_search_tgetent+:} false; then : 11052 11053else 11054 ac_cv_search_tgetent=no 11055fi 11056rm conftest.$ac_ext 11057LIBS=$ac_func_search_save_LIBS 11058fi 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 11060$as_echo "$ac_cv_search_tgetent" >&6; } 11061ac_res=$ac_cv_search_tgetent 11062if test "$ac_res" != no; then : 11063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11064 term_LIBS="$LIBS" 11065else 11066 term_LIBS="" 11067fi 11068 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 11070$as_echo_n "checking for readline in -lreadline... " >&6; } 11071if ${ac_cv_lib_readline_readline+:} false; then : 11072 $as_echo_n "(cached) " >&6 11073else 11074 ac_check_lib_save_LIBS=$LIBS 11075LIBS="-lreadline $LIBS" 11076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11077/* end confdefs.h. */ 11078 11079/* Override any GCC internal prototype to avoid an error. 11080 Use char because int might match the return type of a GCC 11081 builtin and then its argument prototype would still apply. */ 11082#ifdef __cplusplus 11083extern "C" 11084#endif 11085char readline (); 11086int 11087main () 11088{ 11089return readline (); 11090 ; 11091 return 0; 11092} 11093_ACEOF 11094if ac_fn_c_try_link "$LINENO"; then : 11095 ac_cv_lib_readline_readline=yes 11096else 11097 ac_cv_lib_readline_readline=no 11098fi 11099rm -f core conftest.err conftest.$ac_objext \ 11100 conftest$ac_exeext conftest.$ac_ext 11101LIBS=$ac_check_lib_save_LIBS 11102fi 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 11104$as_echo "$ac_cv_lib_readline_readline" >&6; } 11105if test "x$ac_cv_lib_readline_readline" = xyes; then : 11106 TARGET_READLINE_LIBS="-lreadline" 11107else 11108 found="no" 11109fi 11110 11111 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 11112 LIBS="$save_LIBS" 11113 else 11114 TARGET_READLINE_LIBS="$with_readline_lib" 11115 fi 11116 11117 11118# Check whether --with-readline-inc was given. 11119if test "${with_readline_inc+set}" = set; then : 11120 withval=$with_readline_inc; with_readline_inc=$withval 11121else 11122 with_readline_inc="auto" 11123fi 11124 11125 if test "x$with_readline_inc" = xauto; then 11126 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 11127if test "x$ac_cv_header_readline_h" = xyes; then : 11128 found="yes" 11129else 11130 11131 found="no" 11132 if test "$cross_compiling" != yes; then 11133 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 11134 for subdir in include include/readline; do 11135 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 11136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5 11137$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 11138if eval \${$as_ac_File+:} false; then : 11139 $as_echo_n "(cached) " >&6 11140else 11141 test "$cross_compiling" = yes && 11142 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11143if test -r "$dir/$subdir/readline.h"; then 11144 eval "$as_ac_File=yes" 11145else 11146 eval "$as_ac_File=no" 11147fi 11148fi 11149eval ac_res=\$$as_ac_File 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11151$as_echo "$ac_res" >&6; } 11152if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 11153 found=yes 11154fi 11155 11156 if test "$found" = "yes"; then 11157 TARGET_READLINE_INC="-I$dir/$subdir" 11158 break 11159 fi 11160 done 11161 test "$found" = "yes" && break 11162 done 11163 fi 11164 11165fi 11166 11167 11168 else 11169 TARGET_READLINE_INC="$with_readline_inc" 11170 fi 11171 11172 if test x"$found" = xno; then 11173 TARGET_READLINE_LIBS="" 11174 TARGET_READLINE_INC="" 11175 TARGET_HAVE_READLINE=0 11176 else 11177 TARGET_HAVE_READLINE=1 11178 fi 11179fi 11180 11181 11182 11183 11184 11185 11186########## 11187# Figure out what C libraries are required to compile programs 11188# that use "fdatasync()" function. 11189# 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 11191$as_echo_n "checking for library containing fdatasync... " >&6; } 11192if ${ac_cv_search_fdatasync+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194else 11195 ac_func_search_save_LIBS=$LIBS 11196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11197/* end confdefs.h. */ 11198 11199/* Override any GCC internal prototype to avoid an error. 11200 Use char because int might match the return type of a GCC 11201 builtin and then its argument prototype would still apply. */ 11202#ifdef __cplusplus 11203extern "C" 11204#endif 11205char fdatasync (); 11206int 11207main () 11208{ 11209return fdatasync (); 11210 ; 11211 return 0; 11212} 11213_ACEOF 11214for ac_lib in '' rt; do 11215 if test -z "$ac_lib"; then 11216 ac_res="none required" 11217 else 11218 ac_res=-l$ac_lib 11219 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11220 fi 11221 if ac_fn_c_try_link "$LINENO"; then : 11222 ac_cv_search_fdatasync=$ac_res 11223fi 11224rm -f core conftest.err conftest.$ac_objext \ 11225 conftest$ac_exeext 11226 if ${ac_cv_search_fdatasync+:} false; then : 11227 break 11228fi 11229done 11230if ${ac_cv_search_fdatasync+:} false; then : 11231 11232else 11233 ac_cv_search_fdatasync=no 11234fi 11235rm conftest.$ac_ext 11236LIBS=$ac_func_search_save_LIBS 11237fi 11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 11239$as_echo "$ac_cv_search_fdatasync" >&6; } 11240ac_res=$ac_cv_search_fdatasync 11241if test "$ac_res" != no; then : 11242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11243 11244fi 11245 11246 11247######### 11248# check for debug enabled 11249# Check whether --enable-debug was given. 11250if test "${enable_debug+set}" = set; then : 11251 enableval=$enable_debug; 11252fi 11253 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5 11255$as_echo_n "checking build type... " >&6; } 11256if test "${enable_debug}" = "yes" ; then 11257 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0" 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 11259$as_echo "debug" >&6; } 11260else 11261 TARGET_DEBUG="-DNDEBUG" 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5 11263$as_echo "release" >&6; } 11264fi 11265 11266 11267######### 11268# See whether we should use the amalgamation to build 11269# Check whether --enable-amalgamation was given. 11270if test "${enable_amalgamation+set}" = set; then : 11271 enableval=$enable_amalgamation; 11272fi 11273 11274if test "${enable_amalgamation}" = "no" ; then 11275 USE_AMALGAMATION=0 11276fi 11277 11278 11279######### 11280# Look for zlib. Only needed by extensions and by the sqlite3.exe shell 11281for ac_header in zlib.h 11282do : 11283 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11284if test "x$ac_cv_header_zlib_h" = xyes; then : 11285 cat >>confdefs.h <<_ACEOF 11286#define HAVE_ZLIB_H 1 11287_ACEOF 11288 11289fi 11290 11291done 11292 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 11294$as_echo_n "checking for library containing deflate... " >&6; } 11295if ${ac_cv_search_deflate+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 ac_func_search_save_LIBS=$LIBS 11299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300/* end confdefs.h. */ 11301 11302/* Override any GCC internal prototype to avoid an error. 11303 Use char because int might match the return type of a GCC 11304 builtin and then its argument prototype would still apply. */ 11305#ifdef __cplusplus 11306extern "C" 11307#endif 11308char deflate (); 11309int 11310main () 11311{ 11312return deflate (); 11313 ; 11314 return 0; 11315} 11316_ACEOF 11317for ac_lib in '' z; do 11318 if test -z "$ac_lib"; then 11319 ac_res="none required" 11320 else 11321 ac_res=-l$ac_lib 11322 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11323 fi 11324 if ac_fn_c_try_link "$LINENO"; then : 11325 ac_cv_search_deflate=$ac_res 11326fi 11327rm -f core conftest.err conftest.$ac_objext \ 11328 conftest$ac_exeext 11329 if ${ac_cv_search_deflate+:} false; then : 11330 break 11331fi 11332done 11333if ${ac_cv_search_deflate+:} false; then : 11334 11335else 11336 ac_cv_search_deflate=no 11337fi 11338rm conftest.$ac_ext 11339LIBS=$ac_func_search_save_LIBS 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 11342$as_echo "$ac_cv_search_deflate" >&6; } 11343ac_res=$ac_cv_search_deflate 11344if test "$ac_res" != no; then : 11345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11346 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1" 11347else 11348 HAVE_ZLIB="" 11349fi 11350 11351 11352 11353######### 11354# See whether we should allow loadable extensions 11355# Check whether --enable-load-extension was given. 11356if test "${enable_load_extension+set}" = set; then : 11357 enableval=$enable_load_extension; 11358else 11359 enable_load_extension=yes 11360fi 11361 11362if test "${enable_load_extension}" = "yes" ; then 11363 OPT_FEATURE_FLAGS="" 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11365$as_echo_n "checking for library containing dlopen... " >&6; } 11366if ${ac_cv_search_dlopen+:} false; then : 11367 $as_echo_n "(cached) " >&6 11368else 11369 ac_func_search_save_LIBS=$LIBS 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char dlopen (); 11380int 11381main () 11382{ 11383return dlopen (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388for ac_lib in '' dl; do 11389 if test -z "$ac_lib"; then 11390 ac_res="none required" 11391 else 11392 ac_res=-l$ac_lib 11393 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11394 fi 11395 if ac_fn_c_try_link "$LINENO"; then : 11396 ac_cv_search_dlopen=$ac_res 11397fi 11398rm -f core conftest.err conftest.$ac_objext \ 11399 conftest$ac_exeext 11400 if ${ac_cv_search_dlopen+:} false; then : 11401 break 11402fi 11403done 11404if ${ac_cv_search_dlopen+:} false; then : 11405 11406else 11407 ac_cv_search_dlopen=no 11408fi 11409rm conftest.$ac_ext 11410LIBS=$ac_func_search_save_LIBS 11411fi 11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11413$as_echo "$ac_cv_search_dlopen" >&6; } 11414ac_res=$ac_cv_search_dlopen 11415if test "$ac_res" != no; then : 11416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11417 11418fi 11419 11420else 11421 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 11422fi 11423 11424########## 11425# Do we want to support math functions 11426# 11427# Check whether --enable-math was given. 11428if test "${enable_math+set}" = set; then : 11429 enableval=$enable_math; 11430fi 11431 11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5 11433$as_echo_n "checking whether to support math functions... " >&6; } 11434if test "$enable_math" = "no"; then 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11436$as_echo "no" >&6; } 11437else 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11439$as_echo "yes" >&6; } 11440 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS" 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5 11442$as_echo_n "checking for library containing ceil... " >&6; } 11443if ${ac_cv_search_ceil+:} false; then : 11444 $as_echo_n "(cached) " >&6 11445else 11446 ac_func_search_save_LIBS=$LIBS 11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448/* end confdefs.h. */ 11449 11450/* Override any GCC internal prototype to avoid an error. 11451 Use char because int might match the return type of a GCC 11452 builtin and then its argument prototype would still apply. */ 11453#ifdef __cplusplus 11454extern "C" 11455#endif 11456char ceil (); 11457int 11458main () 11459{ 11460return ceil (); 11461 ; 11462 return 0; 11463} 11464_ACEOF 11465for ac_lib in '' m; do 11466 if test -z "$ac_lib"; then 11467 ac_res="none required" 11468 else 11469 ac_res=-l$ac_lib 11470 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11471 fi 11472 if ac_fn_c_try_link "$LINENO"; then : 11473 ac_cv_search_ceil=$ac_res 11474fi 11475rm -f core conftest.err conftest.$ac_objext \ 11476 conftest$ac_exeext 11477 if ${ac_cv_search_ceil+:} false; then : 11478 break 11479fi 11480done 11481if ${ac_cv_search_ceil+:} false; then : 11482 11483else 11484 ac_cv_search_ceil=no 11485fi 11486rm conftest.$ac_ext 11487LIBS=$ac_func_search_save_LIBS 11488fi 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5 11490$as_echo "$ac_cv_search_ceil" >&6; } 11491ac_res=$ac_cv_search_ceil 11492if test "$ac_res" != no; then : 11493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11494 11495fi 11496 11497fi 11498 11499 11500######## 11501# The --enable-all argument is short-hand to enable 11502# multiple extensions. 11503# Check whether --enable-all was given. 11504if test "${enable_all+set}" = set; then : 11505 enableval=$enable_all; 11506fi 11507 11508 11509########## 11510# Do we want to support memsys3 and/or memsys5 11511# 11512# Check whether --enable-memsys5 was given. 11513if test "${enable_memsys5+set}" = set; then : 11514 enableval=$enable_memsys5; 11515fi 11516 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5 11518$as_echo_n "checking whether to support MEMSYS5... " >&6; } 11519if test "${enable_memsys5}" = "yes"; then 11520 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5" 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11522$as_echo "yes" >&6; } 11523else 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11525$as_echo "no" >&6; } 11526fi 11527# Check whether --enable-memsys3 was given. 11528if test "${enable_memsys3+set}" = set; then : 11529 enableval=$enable_memsys3; 11530fi 11531 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5 11533$as_echo_n "checking whether to support MEMSYS3... " >&6; } 11534if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then 11535 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3" 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11537$as_echo "yes" >&6; } 11538else 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11540$as_echo "no" >&6; } 11541fi 11542 11543######### 11544# See whether we should enable Full Text Search extensions 11545# Check whether --enable-fts3 was given. 11546if test "${enable_fts3+set}" = set; then : 11547 enableval=$enable_fts3; 11548fi 11549 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5 11551$as_echo_n "checking whether to support FTS3... " >&6; } 11552if test "${enable_fts3}" = "yes" ; then 11553 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3" 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11555$as_echo "yes" >&6; } 11556else 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11558$as_echo "no" >&6; } 11559fi 11560# Check whether --enable-fts4 was given. 11561if test "${enable_fts4+set}" = set; then : 11562 enableval=$enable_fts4; 11563fi 11564 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5 11566$as_echo_n "checking whether to support FTS4... " >&6; } 11567if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11569$as_echo "yes" >&6; } 11570 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4" 11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11572$as_echo_n "checking for library containing log... " >&6; } 11573if ${ac_cv_search_log+:} false; then : 11574 $as_echo_n "(cached) " >&6 11575else 11576 ac_func_search_save_LIBS=$LIBS 11577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11578/* end confdefs.h. */ 11579 11580/* Override any GCC internal prototype to avoid an error. 11581 Use char because int might match the return type of a GCC 11582 builtin and then its argument prototype would still apply. */ 11583#ifdef __cplusplus 11584extern "C" 11585#endif 11586char log (); 11587int 11588main () 11589{ 11590return log (); 11591 ; 11592 return 0; 11593} 11594_ACEOF 11595for ac_lib in '' m; do 11596 if test -z "$ac_lib"; then 11597 ac_res="none required" 11598 else 11599 ac_res=-l$ac_lib 11600 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11601 fi 11602 if ac_fn_c_try_link "$LINENO"; then : 11603 ac_cv_search_log=$ac_res 11604fi 11605rm -f core conftest.err conftest.$ac_objext \ 11606 conftest$ac_exeext 11607 if ${ac_cv_search_log+:} false; then : 11608 break 11609fi 11610done 11611if ${ac_cv_search_log+:} false; then : 11612 11613else 11614 ac_cv_search_log=no 11615fi 11616rm conftest.$ac_ext 11617LIBS=$ac_func_search_save_LIBS 11618fi 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11620$as_echo "$ac_cv_search_log" >&6; } 11621ac_res=$ac_cv_search_log 11622if test "$ac_res" != no; then : 11623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11624 11625fi 11626 11627else 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11629$as_echo "no" >&6; } 11630fi 11631# Check whether --enable-fts5 was given. 11632if test "${enable_fts5+set}" = set; then : 11633 enableval=$enable_fts5; 11634fi 11635 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5 11637$as_echo_n "checking whether to support FTS5... " >&6; } 11638if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11640$as_echo "yes" >&6; } 11641 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5" 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11643$as_echo_n "checking for library containing log... " >&6; } 11644if ${ac_cv_search_log+:} false; then : 11645 $as_echo_n "(cached) " >&6 11646else 11647 ac_func_search_save_LIBS=$LIBS 11648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11649/* end confdefs.h. */ 11650 11651/* Override any GCC internal prototype to avoid an error. 11652 Use char because int might match the return type of a GCC 11653 builtin and then its argument prototype would still apply. */ 11654#ifdef __cplusplus 11655extern "C" 11656#endif 11657char log (); 11658int 11659main () 11660{ 11661return log (); 11662 ; 11663 return 0; 11664} 11665_ACEOF 11666for ac_lib in '' m; do 11667 if test -z "$ac_lib"; then 11668 ac_res="none required" 11669 else 11670 ac_res=-l$ac_lib 11671 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11672 fi 11673 if ac_fn_c_try_link "$LINENO"; then : 11674 ac_cv_search_log=$ac_res 11675fi 11676rm -f core conftest.err conftest.$ac_objext \ 11677 conftest$ac_exeext 11678 if ${ac_cv_search_log+:} false; then : 11679 break 11680fi 11681done 11682if ${ac_cv_search_log+:} false; then : 11683 11684else 11685 ac_cv_search_log=no 11686fi 11687rm conftest.$ac_ext 11688LIBS=$ac_func_search_save_LIBS 11689fi 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11691$as_echo "$ac_cv_search_log" >&6; } 11692ac_res=$ac_cv_search_log 11693if test "$ac_res" != no; then : 11694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11695 11696fi 11697 11698else 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11700$as_echo "no" >&6; } 11701fi 11702 11703######### 11704# See whether we should enable JSON1 11705# Check whether --enable-json1 was given. 11706if test "${enable_json1+set}" = set; then : 11707 enableval=$enable_json1; 11708fi 11709 11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON" >&5 11711$as_echo_n "checking whether to support JSON... " >&6; } 11712if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then 11713 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1" 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11715$as_echo "yes" >&6; } 11716else 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11718$as_echo "no" >&6; } 11719fi 11720 11721######### 11722# See whether we should enable the LIMIT clause on UPDATE and DELETE 11723# statements. 11724# Check whether --enable-update-limit was given. 11725if test "${enable_update_limit+set}" = set; then : 11726 enableval=$enable_update_limit; 11727fi 11728 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5 11730$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; } 11731if test "${enable_update_limit}" = "yes" ; then 11732 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT" 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11734$as_echo "yes" >&6; } 11735else 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11737$as_echo "no" >&6; } 11738fi 11739 11740######### 11741# See whether we should enable GEOPOLY 11742# Check whether --enable-geopoly was given. 11743if test "${enable_geopoly+set}" = set; then : 11744 enableval=$enable_geopoly; enable_geopoly=yes 11745else 11746 enable_geopoly=no 11747fi 11748 11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5 11750$as_echo_n "checking whether to support GEOPOLY... " >&6; } 11751if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then 11752 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY" 11753 enable_rtree=yes 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11755$as_echo "yes" >&6; } 11756else 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11758$as_echo "no" >&6; } 11759fi 11760 11761######### 11762# See whether we should enable RTREE 11763# Check whether --enable-rtree was given. 11764if test "${enable_rtree+set}" = set; then : 11765 enableval=$enable_rtree; 11766fi 11767 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5 11769$as_echo_n "checking whether to support RTREE... " >&6; } 11770if test "${enable_rtree}" = "yes" ; then 11771 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE" 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11773$as_echo "yes" >&6; } 11774else 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11776$as_echo "no" >&6; } 11777fi 11778 11779######### 11780# See whether we should enable the SESSION extension 11781# Check whether --enable-session was given. 11782if test "${enable_session+set}" = set; then : 11783 enableval=$enable_session; 11784fi 11785 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5 11787$as_echo_n "checking whether to support SESSION... " >&6; } 11788if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then 11789 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION" 11790 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK" 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11792$as_echo "yes" >&6; } 11793else 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11795$as_echo "no" >&6; } 11796fi 11797 11798######### 11799# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter 11800for option in $CFLAGS $CPPFLAGS 11801do 11802 case $option in 11803 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11804 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11805 esac 11806done 11807 11808 11809 11810# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 11811ac_temp_CFLAGS="" 11812for option in $CFLAGS 11813do 11814 case $option in 11815 -DSQLITE_OMIT*) ;; 11816 -DSQLITE_ENABLE*) ;; 11817 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 11818 esac 11819done 11820CFLAGS=$ac_temp_CFLAGS 11821 11822 11823# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 11824ac_temp_CPPFLAGS="" 11825for option in $CPPFLAGS 11826do 11827 case $option in 11828 -DSQLITE_OMIT*) ;; 11829 -DSQLITE_ENABLE*) ;; 11830 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 11831 esac 11832done 11833CPPFLAGS=$ac_temp_CPPFLAGS 11834 11835 11836# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 11837ac_temp_BUILD_CFLAGS="" 11838for option in $BUILD_CFLAGS 11839do 11840 case $option in 11841 -DSQLITE_OMIT*) ;; 11842 -DSQLITE_ENABLE*) ;; 11843 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 11844 esac 11845done 11846BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 11847 11848 11849######### 11850# See whether we should use GCOV 11851# Check whether --enable-gcov was given. 11852if test "${enable_gcov+set}" = set; then : 11853 enableval=$enable_gcov; 11854fi 11855 11856if test "${use_gcov}" = "yes" ; then 11857 USE_GCOV=1 11858else 11859 USE_GCOV=0 11860fi 11861 11862 11863 11864######### 11865# Output the config header 11866ac_config_headers="$ac_config_headers config.h" 11867 11868 11869######### 11870# Generate the output files. 11871# 11872 11873ac_config_files="$ac_config_files Makefile sqlite3.pc" 11874 11875cat >confcache <<\_ACEOF 11876# This file is a shell script that caches the results of configure 11877# tests run on this system so they can be shared between configure 11878# scripts and configure runs, see configure's option --config-cache. 11879# It is not useful on other systems. If it contains results you don't 11880# want to keep, you may remove or edit it. 11881# 11882# config.status only pays attention to the cache file if you give it 11883# the --recheck option to rerun configure. 11884# 11885# `ac_cv_env_foo' variables (set or unset) will be overridden when 11886# loading this file, other *unset* `ac_cv_foo' will be assigned the 11887# following values. 11888 11889_ACEOF 11890 11891# The following way of writing the cache mishandles newlines in values, 11892# but we know of no workaround that is simple, portable, and efficient. 11893# So, we kill variables containing newlines. 11894# Ultrix sh set writes to stderr and can't be redirected directly, 11895# and sets the high bit in the cache file unless we assign to the vars. 11896( 11897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11898 eval ac_val=\$$ac_var 11899 case $ac_val in #( 11900 *${as_nl}*) 11901 case $ac_var in #( 11902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11903$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11904 esac 11905 case $ac_var in #( 11906 _ | IFS | as_nl) ;; #( 11907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11908 *) { eval $ac_var=; unset $ac_var;} ;; 11909 esac ;; 11910 esac 11911 done 11912 11913 (set) 2>&1 | 11914 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11915 *${as_nl}ac_space=\ *) 11916 # `set' does not quote correctly, so add quotes: double-quote 11917 # substitution turns \\\\ into \\, and sed turns \\ into \. 11918 sed -n \ 11919 "s/'/'\\\\''/g; 11920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11921 ;; #( 11922 *) 11923 # `set' quotes correctly as required by POSIX, so do not add quotes. 11924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11925 ;; 11926 esac | 11927 sort 11928) | 11929 sed ' 11930 /^ac_cv_env_/b end 11931 t clear 11932 :clear 11933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11934 t end 11935 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11936 :end' >>confcache 11937if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11938 if test -w "$cache_file"; then 11939 if test "x$cache_file" != "x/dev/null"; then 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11941$as_echo "$as_me: updating cache $cache_file" >&6;} 11942 if test ! -f "$cache_file" || test -h "$cache_file"; then 11943 cat confcache >"$cache_file" 11944 else 11945 case $cache_file in #( 11946 */* | ?:*) 11947 mv -f confcache "$cache_file"$$ && 11948 mv -f "$cache_file"$$ "$cache_file" ;; #( 11949 *) 11950 mv -f confcache "$cache_file" ;; 11951 esac 11952 fi 11953 fi 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11956$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11957 fi 11958fi 11959rm -f confcache 11960 11961test "x$prefix" = xNONE && prefix=$ac_default_prefix 11962# Let make expand exec_prefix. 11963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11964 11965DEFS=-DHAVE_CONFIG_H 11966 11967ac_libobjs= 11968ac_ltlibobjs= 11969U= 11970for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11971 # 1. Remove the extension, and $U if already installed. 11972 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11973 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11974 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11975 # will be set to the directory where LIBOBJS objects are built. 11976 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11977 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11978done 11979LIBOBJS=$ac_libobjs 11980 11981LTLIBOBJS=$ac_ltlibobjs 11982 11983 11984 11985: "${CONFIG_STATUS=./config.status}" 11986ac_write_fail=0 11987ac_clean_files_save=$ac_clean_files 11988ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11989{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11990$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11991as_write_fail=0 11992cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11993#! $SHELL 11994# Generated by $as_me. 11995# Run this file to recreate the current configuration. 11996# Compiler output produced by configure, useful for debugging 11997# configure, is in config.log if it exists. 11998 11999debug=false 12000ac_cs_recheck=false 12001ac_cs_silent=false 12002 12003SHELL=\${CONFIG_SHELL-$SHELL} 12004export SHELL 12005_ASEOF 12006cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12007## -------------------- ## 12008## M4sh Initialization. ## 12009## -------------------- ## 12010 12011# Be more Bourne compatible 12012DUALCASE=1; export DUALCASE # for MKS sh 12013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12014 emulate sh 12015 NULLCMD=: 12016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12017 # is contrary to our usage. Disable this feature. 12018 alias -g '${1+"$@"}'='"$@"' 12019 setopt NO_GLOB_SUBST 12020else 12021 case `(set -o) 2>/dev/null` in #( 12022 *posix*) : 12023 set -o posix ;; #( 12024 *) : 12025 ;; 12026esac 12027fi 12028 12029 12030as_nl=' 12031' 12032export as_nl 12033# Printing a long string crashes Solaris 7 /usr/bin/printf. 12034as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12036as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12037# Prefer a ksh shell builtin over an external printf program on Solaris, 12038# but without wasting forks for bash or zsh. 12039if test -z "$BASH_VERSION$ZSH_VERSION" \ 12040 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12041 as_echo='print -r --' 12042 as_echo_n='print -rn --' 12043elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12044 as_echo='printf %s\n' 12045 as_echo_n='printf %s' 12046else 12047 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12048 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12049 as_echo_n='/usr/ucb/echo -n' 12050 else 12051 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12052 as_echo_n_body='eval 12053 arg=$1; 12054 case $arg in #( 12055 *"$as_nl"*) 12056 expr "X$arg" : "X\\(.*\\)$as_nl"; 12057 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12058 esac; 12059 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12060 ' 12061 export as_echo_n_body 12062 as_echo_n='sh -c $as_echo_n_body as_echo' 12063 fi 12064 export as_echo_body 12065 as_echo='sh -c $as_echo_body as_echo' 12066fi 12067 12068# The user is always right. 12069if test "${PATH_SEPARATOR+set}" != set; then 12070 PATH_SEPARATOR=: 12071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12073 PATH_SEPARATOR=';' 12074 } 12075fi 12076 12077 12078# IFS 12079# We need space, tab and new line, in precisely that order. Quoting is 12080# there to prevent editors from complaining about space-tab. 12081# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12082# splitting by setting IFS to empty value.) 12083IFS=" "" $as_nl" 12084 12085# Find who we are. Look in the path if we contain no directory separator. 12086as_myself= 12087case $0 in #(( 12088 *[\\/]* ) as_myself=$0 ;; 12089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12090for as_dir in $PATH 12091do 12092 IFS=$as_save_IFS 12093 test -z "$as_dir" && as_dir=. 12094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12095 done 12096IFS=$as_save_IFS 12097 12098 ;; 12099esac 12100# We did not find ourselves, most probably we were run as `sh COMMAND' 12101# in which case we are not to be found in the path. 12102if test "x$as_myself" = x; then 12103 as_myself=$0 12104fi 12105if test ! -f "$as_myself"; then 12106 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12107 exit 1 12108fi 12109 12110# Unset variables that we do not need and which cause bugs (e.g. in 12111# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12112# suppresses any "Segmentation fault" message there. '((' could 12113# trigger a bug in pdksh 5.2.14. 12114for as_var in BASH_ENV ENV MAIL MAILPATH 12115do eval test x\${$as_var+set} = xset \ 12116 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12117done 12118PS1='$ ' 12119PS2='> ' 12120PS4='+ ' 12121 12122# NLS nuisances. 12123LC_ALL=C 12124export LC_ALL 12125LANGUAGE=C 12126export LANGUAGE 12127 12128# CDPATH. 12129(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12130 12131 12132# as_fn_error STATUS ERROR [LINENO LOG_FD] 12133# ---------------------------------------- 12134# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12135# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12136# script with STATUS, using 1 if that was 0. 12137as_fn_error () 12138{ 12139 as_status=$1; test $as_status -eq 0 && as_status=1 12140 if test "$4"; then 12141 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12142 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12143 fi 12144 $as_echo "$as_me: error: $2" >&2 12145 as_fn_exit $as_status 12146} # as_fn_error 12147 12148 12149# as_fn_set_status STATUS 12150# ----------------------- 12151# Set $? to STATUS, without forking. 12152as_fn_set_status () 12153{ 12154 return $1 12155} # as_fn_set_status 12156 12157# as_fn_exit STATUS 12158# ----------------- 12159# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12160as_fn_exit () 12161{ 12162 set +e 12163 as_fn_set_status $1 12164 exit $1 12165} # as_fn_exit 12166 12167# as_fn_unset VAR 12168# --------------- 12169# Portably unset VAR. 12170as_fn_unset () 12171{ 12172 { eval $1=; unset $1;} 12173} 12174as_unset=as_fn_unset 12175# as_fn_append VAR VALUE 12176# ---------------------- 12177# Append the text in VALUE to the end of the definition contained in VAR. Take 12178# advantage of any shell optimizations that allow amortized linear growth over 12179# repeated appends, instead of the typical quadratic growth present in naive 12180# implementations. 12181if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12182 eval 'as_fn_append () 12183 { 12184 eval $1+=\$2 12185 }' 12186else 12187 as_fn_append () 12188 { 12189 eval $1=\$$1\$2 12190 } 12191fi # as_fn_append 12192 12193# as_fn_arith ARG... 12194# ------------------ 12195# Perform arithmetic evaluation on the ARGs, and store the result in the 12196# global $as_val. Take advantage of shells that can avoid forks. The arguments 12197# must be portable across $(()) and expr. 12198if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12199 eval 'as_fn_arith () 12200 { 12201 as_val=$(( $* )) 12202 }' 12203else 12204 as_fn_arith () 12205 { 12206 as_val=`expr "$@" || test $? -eq 1` 12207 } 12208fi # as_fn_arith 12209 12210 12211if expr a : '\(a\)' >/dev/null 2>&1 && 12212 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12213 as_expr=expr 12214else 12215 as_expr=false 12216fi 12217 12218if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12219 as_basename=basename 12220else 12221 as_basename=false 12222fi 12223 12224if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12225 as_dirname=dirname 12226else 12227 as_dirname=false 12228fi 12229 12230as_me=`$as_basename -- "$0" || 12231$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12232 X"$0" : 'X\(//\)$' \| \ 12233 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12234$as_echo X/"$0" | 12235 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12236 s//\1/ 12237 q 12238 } 12239 /^X\/\(\/\/\)$/{ 12240 s//\1/ 12241 q 12242 } 12243 /^X\/\(\/\).*/{ 12244 s//\1/ 12245 q 12246 } 12247 s/.*/./; q'` 12248 12249# Avoid depending upon Character Ranges. 12250as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12251as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12252as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12253as_cr_digits='0123456789' 12254as_cr_alnum=$as_cr_Letters$as_cr_digits 12255 12256ECHO_C= ECHO_N= ECHO_T= 12257case `echo -n x` in #((((( 12258-n*) 12259 case `echo 'xy\c'` in 12260 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12261 xy) ECHO_C='\c';; 12262 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12263 ECHO_T=' ';; 12264 esac;; 12265*) 12266 ECHO_N='-n';; 12267esac 12268 12269rm -f conf$$ conf$$.exe conf$$.file 12270if test -d conf$$.dir; then 12271 rm -f conf$$.dir/conf$$.file 12272else 12273 rm -f conf$$.dir 12274 mkdir conf$$.dir 2>/dev/null 12275fi 12276if (echo >conf$$.file) 2>/dev/null; then 12277 if ln -s conf$$.file conf$$ 2>/dev/null; then 12278 as_ln_s='ln -s' 12279 # ... but there are two gotchas: 12280 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12281 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12282 # In both cases, we have to default to `cp -pR'. 12283 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12284 as_ln_s='cp -pR' 12285 elif ln conf$$.file conf$$ 2>/dev/null; then 12286 as_ln_s=ln 12287 else 12288 as_ln_s='cp -pR' 12289 fi 12290else 12291 as_ln_s='cp -pR' 12292fi 12293rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12294rmdir conf$$.dir 2>/dev/null 12295 12296 12297# as_fn_mkdir_p 12298# ------------- 12299# Create "$as_dir" as a directory, including parents if necessary. 12300as_fn_mkdir_p () 12301{ 12302 12303 case $as_dir in #( 12304 -*) as_dir=./$as_dir;; 12305 esac 12306 test -d "$as_dir" || eval $as_mkdir_p || { 12307 as_dirs= 12308 while :; do 12309 case $as_dir in #( 12310 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12311 *) as_qdir=$as_dir;; 12312 esac 12313 as_dirs="'$as_qdir' $as_dirs" 12314 as_dir=`$as_dirname -- "$as_dir" || 12315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12316 X"$as_dir" : 'X\(//\)[^/]' \| \ 12317 X"$as_dir" : 'X\(//\)$' \| \ 12318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12319$as_echo X"$as_dir" | 12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12321 s//\1/ 12322 q 12323 } 12324 /^X\(\/\/\)[^/].*/{ 12325 s//\1/ 12326 q 12327 } 12328 /^X\(\/\/\)$/{ 12329 s//\1/ 12330 q 12331 } 12332 /^X\(\/\).*/{ 12333 s//\1/ 12334 q 12335 } 12336 s/.*/./; q'` 12337 test -d "$as_dir" && break 12338 done 12339 test -z "$as_dirs" || eval "mkdir $as_dirs" 12340 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12341 12342 12343} # as_fn_mkdir_p 12344if mkdir -p . 2>/dev/null; then 12345 as_mkdir_p='mkdir -p "$as_dir"' 12346else 12347 test -d ./-p && rmdir ./-p 12348 as_mkdir_p=false 12349fi 12350 12351 12352# as_fn_executable_p FILE 12353# ----------------------- 12354# Test if FILE is an executable regular file. 12355as_fn_executable_p () 12356{ 12357 test -f "$1" && test -x "$1" 12358} # as_fn_executable_p 12359as_test_x='test -x' 12360as_executable_p=as_fn_executable_p 12361 12362# Sed expression to map a string onto a valid CPP name. 12363as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12364 12365# Sed expression to map a string onto a valid variable name. 12366as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12367 12368 12369exec 6>&1 12370## ----------------------------------- ## 12371## Main body of $CONFIG_STATUS script. ## 12372## ----------------------------------- ## 12373_ASEOF 12374test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12375 12376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12377# Save the log message, to keep $0 and so on meaningful, and to 12378# report actual input values of CONFIG_FILES etc. instead of their 12379# values after options handling. 12380ac_log=" 12381This file was extended by sqlite $as_me 3.36.0, which was 12382generated by GNU Autoconf 2.69. Invocation command line was 12383 12384 CONFIG_FILES = $CONFIG_FILES 12385 CONFIG_HEADERS = $CONFIG_HEADERS 12386 CONFIG_LINKS = $CONFIG_LINKS 12387 CONFIG_COMMANDS = $CONFIG_COMMANDS 12388 $ $0 $@ 12389 12390on `(hostname || uname -n) 2>/dev/null | sed 1q` 12391" 12392 12393_ACEOF 12394 12395case $ac_config_files in *" 12396"*) set x $ac_config_files; shift; ac_config_files=$*;; 12397esac 12398 12399case $ac_config_headers in *" 12400"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12401esac 12402 12403 12404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12405# Files that config.status was made for. 12406config_files="$ac_config_files" 12407config_headers="$ac_config_headers" 12408config_commands="$ac_config_commands" 12409 12410_ACEOF 12411 12412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12413ac_cs_usage="\ 12414\`$as_me' instantiates files and other configuration actions 12415from templates according to the current configuration. Unless the files 12416and actions are specified as TAGs, all are instantiated by default. 12417 12418Usage: $0 [OPTION]... [TAG]... 12419 12420 -h, --help print this help, then exit 12421 -V, --version print version number and configuration settings, then exit 12422 --config print configuration, then exit 12423 -q, --quiet, --silent 12424 do not print progress messages 12425 -d, --debug don't remove temporary files 12426 --recheck update $as_me by reconfiguring in the same conditions 12427 --file=FILE[:TEMPLATE] 12428 instantiate the configuration file FILE 12429 --header=FILE[:TEMPLATE] 12430 instantiate the configuration header FILE 12431 12432Configuration files: 12433$config_files 12434 12435Configuration headers: 12436$config_headers 12437 12438Configuration commands: 12439$config_commands 12440 12441Report bugs to the package provider." 12442 12443_ACEOF 12444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12445ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12446ac_cs_version="\\ 12447sqlite config.status 3.36.0 12448configured by $0, generated by GNU Autoconf 2.69, 12449 with options \\"\$ac_cs_config\\" 12450 12451Copyright (C) 2012 Free Software Foundation, Inc. 12452This config.status script is free software; the Free Software Foundation 12453gives unlimited permission to copy, distribute and modify it." 12454 12455ac_pwd='$ac_pwd' 12456srcdir='$srcdir' 12457INSTALL='$INSTALL' 12458test -n "\$AWK" || AWK=awk 12459_ACEOF 12460 12461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12462# The default lists apply if the user does not specify any file. 12463ac_need_defaults=: 12464while test $# != 0 12465do 12466 case $1 in 12467 --*=?*) 12468 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12470 ac_shift=: 12471 ;; 12472 --*=) 12473 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12474 ac_optarg= 12475 ac_shift=: 12476 ;; 12477 *) 12478 ac_option=$1 12479 ac_optarg=$2 12480 ac_shift=shift 12481 ;; 12482 esac 12483 12484 case $ac_option in 12485 # Handling of the options. 12486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12487 ac_cs_recheck=: ;; 12488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12489 $as_echo "$ac_cs_version"; exit ;; 12490 --config | --confi | --conf | --con | --co | --c ) 12491 $as_echo "$ac_cs_config"; exit ;; 12492 --debug | --debu | --deb | --de | --d | -d ) 12493 debug=: ;; 12494 --file | --fil | --fi | --f ) 12495 $ac_shift 12496 case $ac_optarg in 12497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12498 '') as_fn_error $? "missing file argument" ;; 12499 esac 12500 as_fn_append CONFIG_FILES " '$ac_optarg'" 12501 ac_need_defaults=false;; 12502 --header | --heade | --head | --hea ) 12503 $ac_shift 12504 case $ac_optarg in 12505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12506 esac 12507 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12508 ac_need_defaults=false;; 12509 --he | --h) 12510 # Conflict between --help and --header 12511 as_fn_error $? "ambiguous option: \`$1' 12512Try \`$0 --help' for more information.";; 12513 --help | --hel | -h ) 12514 $as_echo "$ac_cs_usage"; exit ;; 12515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12516 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12517 ac_cs_silent=: ;; 12518 12519 # This is an error. 12520 -*) as_fn_error $? "unrecognized option: \`$1' 12521Try \`$0 --help' for more information." ;; 12522 12523 *) as_fn_append ac_config_targets " $1" 12524 ac_need_defaults=false ;; 12525 12526 esac 12527 shift 12528done 12529 12530ac_configure_extra_args= 12531 12532if $ac_cs_silent; then 12533 exec 6>/dev/null 12534 ac_configure_extra_args="$ac_configure_extra_args --silent" 12535fi 12536 12537_ACEOF 12538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12539if \$ac_cs_recheck; then 12540 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12541 shift 12542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12543 CONFIG_SHELL='$SHELL' 12544 export CONFIG_SHELL 12545 exec "\$@" 12546fi 12547 12548_ACEOF 12549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12550exec 5>>config.log 12551{ 12552 echo 12553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12554## Running $as_me. ## 12555_ASBOX 12556 $as_echo "$ac_log" 12557} >&5 12558 12559_ACEOF 12560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12561# 12562# INIT-COMMANDS 12563# 12564 12565 12566# The HP-UX ksh and POSIX shell print the target directory to stdout 12567# if CDPATH is set. 12568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12569 12570sed_quote_subst='$sed_quote_subst' 12571double_quote_subst='$double_quote_subst' 12572delay_variable_subst='$delay_variable_subst' 12573macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12574macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12575enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12576enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12577pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12578enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12579host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12580host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12581host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12582build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12583build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12584build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12585SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12586Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12587GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12588EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12589FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12590LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12591NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12592LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12593max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12594ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12595exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12596lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12597lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12598lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12599reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12600reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12601OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12602deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12603file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12604AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12605AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12606STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12607RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12608old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12609old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12610old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12611CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12612CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12613compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12614GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12615lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12616lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12617lt_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"`' 12618lt_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"`' 12619objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12620SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12621ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12622MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12623lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12624lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12625lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12626lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12627lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12628need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12629DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12630NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12631LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12632OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12633OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12634libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12635shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12636extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12637archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12638enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12639export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12640whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12641compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12642old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12643old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12644archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12645archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12646module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12647module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12648with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12649allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12650no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12651hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12652hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12653hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12654hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12655hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12656hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12657hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12658hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12659inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12660link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12661fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12662always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12663export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12664exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12665include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12666prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12667file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12668variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12669need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12670need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12671version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12672runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12673shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12674shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12675libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12676library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12677soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12678postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12679postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12680finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12681finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12682hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12683sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12684sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12685hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12686enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12687enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12688enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12689old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12690striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12691 12692LTCC='$LTCC' 12693LTCFLAGS='$LTCFLAGS' 12694compiler='$compiler_DEFAULT' 12695 12696# Quote evaled strings. 12697for var in SED \ 12698GREP \ 12699EGREP \ 12700FGREP \ 12701LD \ 12702NM \ 12703LN_S \ 12704lt_SP2NL \ 12705lt_NL2SP \ 12706reload_flag \ 12707OBJDUMP \ 12708deplibs_check_method \ 12709file_magic_cmd \ 12710AR \ 12711AR_FLAGS \ 12712STRIP \ 12713RANLIB \ 12714CC \ 12715CFLAGS \ 12716compiler \ 12717lt_cv_sys_global_symbol_pipe \ 12718lt_cv_sys_global_symbol_to_cdecl \ 12719lt_cv_sys_global_symbol_to_c_name_address \ 12720lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12721SHELL \ 12722ECHO \ 12723lt_prog_compiler_no_builtin_flag \ 12724lt_prog_compiler_wl \ 12725lt_prog_compiler_pic \ 12726lt_prog_compiler_static \ 12727lt_cv_prog_compiler_c_o \ 12728need_locks \ 12729DSYMUTIL \ 12730NMEDIT \ 12731LIPO \ 12732OTOOL \ 12733OTOOL64 \ 12734shrext_cmds \ 12735export_dynamic_flag_spec \ 12736whole_archive_flag_spec \ 12737compiler_needs_object \ 12738with_gnu_ld \ 12739allow_undefined_flag \ 12740no_undefined_flag \ 12741hardcode_libdir_flag_spec \ 12742hardcode_libdir_flag_spec_ld \ 12743hardcode_libdir_separator \ 12744fix_srcfile_path \ 12745exclude_expsyms \ 12746include_expsyms \ 12747file_list_spec \ 12748variables_saved_for_relink \ 12749libname_spec \ 12750library_names_spec \ 12751soname_spec \ 12752finish_eval \ 12753old_striplib \ 12754striplib; do 12755 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12756 *[\\\\\\\`\\"\\\$]*) 12757 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12758 ;; 12759 *) 12760 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12761 ;; 12762 esac 12763done 12764 12765# Double-quote double-evaled strings. 12766for var in reload_cmds \ 12767old_postinstall_cmds \ 12768old_postuninstall_cmds \ 12769old_archive_cmds \ 12770extract_expsyms_cmds \ 12771old_archive_from_new_cmds \ 12772old_archive_from_expsyms_cmds \ 12773archive_cmds \ 12774archive_expsym_cmds \ 12775module_cmds \ 12776module_expsym_cmds \ 12777export_symbols_cmds \ 12778prelink_cmds \ 12779postinstall_cmds \ 12780postuninstall_cmds \ 12781finish_cmds \ 12782sys_lib_search_path_spec \ 12783sys_lib_dlsearch_path_spec; do 12784 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12785 *[\\\\\\\`\\"\\\$]*) 12786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12787 ;; 12788 *) 12789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12790 ;; 12791 esac 12792done 12793 12794# Fix-up fallback echo if it was mangled by the above quoting rules. 12795case \$lt_ECHO in 12796*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12797 ;; 12798esac 12799 12800ac_aux_dir='$ac_aux_dir' 12801xsi_shell='$xsi_shell' 12802lt_shell_append='$lt_shell_append' 12803 12804# See if we are running on zsh, and set the options which allow our 12805# commands through without removal of \ escapes INIT. 12806if test -n "\${ZSH_VERSION+set}" ; then 12807 setopt NO_GLOB_SUBST 12808fi 12809 12810 12811 PACKAGE='$PACKAGE' 12812 VERSION='$VERSION' 12813 TIMESTAMP='$TIMESTAMP' 12814 RM='$RM' 12815 ofile='$ofile' 12816 12817 12818 12819 12820_ACEOF 12821 12822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12823 12824# Handling of arguments. 12825for ac_config_target in $ac_config_targets 12826do 12827 case $ac_config_target in 12828 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12829 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12831 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 12832 12833 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12834 esac 12835done 12836 12837 12838# If the user did not use the arguments to specify the items to instantiate, 12839# then the envvar interface is used. Set only those that are not. 12840# We use the long form for the default assignment because of an extremely 12841# bizarre bug on SunOS 4.1.3. 12842if $ac_need_defaults; then 12843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12846fi 12847 12848# Have a temporary directory for convenience. Make it in the build tree 12849# simply because there is no reason against having it here, and in addition, 12850# creating and moving files from /tmp can sometimes cause problems. 12851# Hook for its removal unless debugging. 12852# Note that there is a small window in which the directory will not be cleaned: 12853# after its creation but before its name has been assigned to `$tmp'. 12854$debug || 12855{ 12856 tmp= ac_tmp= 12857 trap 'exit_status=$? 12858 : "${ac_tmp:=$tmp}" 12859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12860' 0 12861 trap 'as_fn_exit 1' 1 2 13 15 12862} 12863# Create a (secure) tmp directory for tmp files. 12864 12865{ 12866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12867 test -d "$tmp" 12868} || 12869{ 12870 tmp=./conf$$-$RANDOM 12871 (umask 077 && mkdir "$tmp") 12872} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12873ac_tmp=$tmp 12874 12875# Set up the scripts for CONFIG_FILES section. 12876# No need to generate them if there are no CONFIG_FILES. 12877# This happens for instance with `./config.status config.h'. 12878if test -n "$CONFIG_FILES"; then 12879 12880 12881ac_cr=`echo X | tr X '\015'` 12882# On cygwin, bash can eat \r inside `` if the user requested igncr. 12883# But we know of no other shell where ac_cr would be empty at this 12884# point, so we can use a bashism as a fallback. 12885if test "x$ac_cr" = x; then 12886 eval ac_cr=\$\'\\r\' 12887fi 12888ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12889if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12890 ac_cs_awk_cr='\\r' 12891else 12892 ac_cs_awk_cr=$ac_cr 12893fi 12894 12895echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12896_ACEOF 12897 12898 12899{ 12900 echo "cat >conf$$subs.awk <<_ACEOF" && 12901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12902 echo "_ACEOF" 12903} >conf$$subs.sh || 12904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12905ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12906ac_delim='%!_!# ' 12907for ac_last_try in false false false false false :; do 12908 . ./conf$$subs.sh || 12909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12910 12911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12912 if test $ac_delim_n = $ac_delim_num; then 12913 break 12914 elif $ac_last_try; then 12915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12916 else 12917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12918 fi 12919done 12920rm -f conf$$subs.sh 12921 12922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12923cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12924_ACEOF 12925sed -n ' 12926h 12927s/^/S["/; s/!.*/"]=/ 12928p 12929g 12930s/^[^!]*!// 12931:repl 12932t repl 12933s/'"$ac_delim"'$// 12934t delim 12935:nl 12936h 12937s/\(.\{148\}\)..*/\1/ 12938t more1 12939s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12940p 12941n 12942b repl 12943:more1 12944s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12945p 12946g 12947s/.\{148\}// 12948t nl 12949:delim 12950h 12951s/\(.\{148\}\)..*/\1/ 12952t more2 12953s/["\\]/\\&/g; s/^/"/; s/$/"/ 12954p 12955b 12956:more2 12957s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12958p 12959g 12960s/.\{148\}// 12961t delim 12962' <conf$$subs.awk | sed ' 12963/^[^""]/{ 12964 N 12965 s/\n// 12966} 12967' >>$CONFIG_STATUS || ac_write_fail=1 12968rm -f conf$$subs.awk 12969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12970_ACAWK 12971cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12972 for (key in S) S_is_set[key] = 1 12973 FS = "" 12974 12975} 12976{ 12977 line = $ 0 12978 nfields = split(line, field, "@") 12979 substed = 0 12980 len = length(field[1]) 12981 for (i = 2; i < nfields; i++) { 12982 key = field[i] 12983 keylen = length(key) 12984 if (S_is_set[key]) { 12985 value = S[key] 12986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12987 len += length(value) + length(field[++i]) 12988 substed = 1 12989 } else 12990 len += 1 + keylen 12991 } 12992 12993 print line 12994} 12995 12996_ACAWK 12997_ACEOF 12998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13001else 13002 cat 13003fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13005_ACEOF 13006 13007# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13009# trailing colons and then remove the whole line if VPATH becomes empty 13010# (actually we leave an empty line to preserve line numbers). 13011if test "x$srcdir" = x.; then 13012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13013h 13014s/// 13015s/^/:/ 13016s/[ ]*$/:/ 13017s/:\$(srcdir):/:/g 13018s/:\${srcdir}:/:/g 13019s/:@srcdir@:/:/g 13020s/^:*// 13021s/:*$// 13022x 13023s/\(=[ ]*\).*/\1/ 13024G 13025s/\n// 13026s/^[^=]*=[ ]*$// 13027}' 13028fi 13029 13030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13031fi # test -n "$CONFIG_FILES" 13032 13033# Set up the scripts for CONFIG_HEADERS section. 13034# No need to generate them if there are no CONFIG_HEADERS. 13035# This happens for instance with `./config.status Makefile'. 13036if test -n "$CONFIG_HEADERS"; then 13037cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13038BEGIN { 13039_ACEOF 13040 13041# Transform confdefs.h into an awk script `defines.awk', embedded as 13042# here-document in config.status, that substitutes the proper values into 13043# config.h.in to produce config.h. 13044 13045# Create a delimiter string that does not exist in confdefs.h, to ease 13046# handling of long lines. 13047ac_delim='%!_!# ' 13048for ac_last_try in false false :; do 13049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13050 if test -z "$ac_tt"; then 13051 break 13052 elif $ac_last_try; then 13053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13054 else 13055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13056 fi 13057done 13058 13059# For the awk script, D is an array of macro values keyed by name, 13060# likewise P contains macro parameters if any. Preserve backslash 13061# newline sequences. 13062 13063ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13064sed -n ' 13065s/.\{148\}/&'"$ac_delim"'/g 13066t rset 13067:rset 13068s/^[ ]*#[ ]*define[ ][ ]*/ / 13069t def 13070d 13071:def 13072s/\\$// 13073t bsnl 13074s/["\\]/\\&/g 13075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13076D["\1"]=" \3"/p 13077s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13078d 13079:bsnl 13080s/["\\]/\\&/g 13081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13082D["\1"]=" \3\\\\\\n"\\/p 13083t cont 13084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13085t cont 13086d 13087:cont 13088n 13089s/.\{148\}/&'"$ac_delim"'/g 13090t clear 13091:clear 13092s/\\$// 13093t bsnlc 13094s/["\\]/\\&/g; s/^/"/; s/$/"/p 13095d 13096:bsnlc 13097s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13098b cont 13099' <confdefs.h | sed ' 13100s/'"$ac_delim"'/"\\\ 13101"/g' >>$CONFIG_STATUS || ac_write_fail=1 13102 13103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13104 for (key in D) D_is_set[key] = 1 13105 FS = "" 13106} 13107/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13108 line = \$ 0 13109 split(line, arg, " ") 13110 if (arg[1] == "#") { 13111 defundef = arg[2] 13112 mac1 = arg[3] 13113 } else { 13114 defundef = substr(arg[1], 2) 13115 mac1 = arg[2] 13116 } 13117 split(mac1, mac2, "(") #) 13118 macro = mac2[1] 13119 prefix = substr(line, 1, index(line, defundef) - 1) 13120 if (D_is_set[macro]) { 13121 # Preserve the white space surrounding the "#". 13122 print prefix "define", macro P[macro] D[macro] 13123 next 13124 } else { 13125 # Replace #undef with comments. This is necessary, for example, 13126 # in the case of _POSIX_SOURCE, which is predefined and required 13127 # on some systems where configure will not decide to define it. 13128 if (defundef == "undef") { 13129 print "/*", prefix defundef, macro, "*/" 13130 next 13131 } 13132 } 13133} 13134{ print } 13135_ACAWK 13136_ACEOF 13137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13139fi # test -n "$CONFIG_HEADERS" 13140 13141 13142eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13143shift 13144for ac_tag 13145do 13146 case $ac_tag in 13147 :[FHLC]) ac_mode=$ac_tag; continue;; 13148 esac 13149 case $ac_mode$ac_tag in 13150 :[FHL]*:*);; 13151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13152 :[FH]-) ac_tag=-:-;; 13153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13154 esac 13155 ac_save_IFS=$IFS 13156 IFS=: 13157 set x $ac_tag 13158 IFS=$ac_save_IFS 13159 shift 13160 ac_file=$1 13161 shift 13162 13163 case $ac_mode in 13164 :L) ac_source=$1;; 13165 :[FH]) 13166 ac_file_inputs= 13167 for ac_f 13168 do 13169 case $ac_f in 13170 -) ac_f="$ac_tmp/stdin";; 13171 *) # Look for the file first in the build tree, then in the source tree 13172 # (if the path is not absolute). The absolute path cannot be DOS-style, 13173 # because $ac_f cannot contain `:'. 13174 test -f "$ac_f" || 13175 case $ac_f in 13176 [\\/$]*) false;; 13177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13178 esac || 13179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13180 esac 13181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13182 as_fn_append ac_file_inputs " '$ac_f'" 13183 done 13184 13185 # Let's still pretend it is `configure' which instantiates (i.e., don't 13186 # use $as_me), people would be surprised to read: 13187 # /* config.h. Generated by config.status. */ 13188 configure_input='Generated from '` 13189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13190 `' by configure.' 13191 if test x"$ac_file" != x-; then 13192 configure_input="$ac_file. $configure_input" 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13194$as_echo "$as_me: creating $ac_file" >&6;} 13195 fi 13196 # Neutralize special characters interpreted by sed in replacement strings. 13197 case $configure_input in #( 13198 *\&* | *\|* | *\\* ) 13199 ac_sed_conf_input=`$as_echo "$configure_input" | 13200 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13201 *) ac_sed_conf_input=$configure_input;; 13202 esac 13203 13204 case $ac_tag in 13205 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13207 esac 13208 ;; 13209 esac 13210 13211 ac_dir=`$as_dirname -- "$ac_file" || 13212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13213 X"$ac_file" : 'X\(//\)[^/]' \| \ 13214 X"$ac_file" : 'X\(//\)$' \| \ 13215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13216$as_echo X"$ac_file" | 13217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13218 s//\1/ 13219 q 13220 } 13221 /^X\(\/\/\)[^/].*/{ 13222 s//\1/ 13223 q 13224 } 13225 /^X\(\/\/\)$/{ 13226 s//\1/ 13227 q 13228 } 13229 /^X\(\/\).*/{ 13230 s//\1/ 13231 q 13232 } 13233 s/.*/./; q'` 13234 as_dir="$ac_dir"; as_fn_mkdir_p 13235 ac_builddir=. 13236 13237case "$ac_dir" in 13238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13239*) 13240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13241 # A ".." for each directory in $ac_dir_suffix. 13242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13243 case $ac_top_builddir_sub in 13244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13246 esac ;; 13247esac 13248ac_abs_top_builddir=$ac_pwd 13249ac_abs_builddir=$ac_pwd$ac_dir_suffix 13250# for backward compatibility: 13251ac_top_builddir=$ac_top_build_prefix 13252 13253case $srcdir in 13254 .) # We are building in place. 13255 ac_srcdir=. 13256 ac_top_srcdir=$ac_top_builddir_sub 13257 ac_abs_top_srcdir=$ac_pwd ;; 13258 [\\/]* | ?:[\\/]* ) # Absolute name. 13259 ac_srcdir=$srcdir$ac_dir_suffix; 13260 ac_top_srcdir=$srcdir 13261 ac_abs_top_srcdir=$srcdir ;; 13262 *) # Relative name. 13263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13264 ac_top_srcdir=$ac_top_build_prefix$srcdir 13265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13266esac 13267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13268 13269 13270 case $ac_mode in 13271 :F) 13272 # 13273 # CONFIG_FILE 13274 # 13275 13276 case $INSTALL in 13277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13279 esac 13280_ACEOF 13281 13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13283# If the template does not know about datarootdir, expand it. 13284# FIXME: This hack should be removed a few years after 2.60. 13285ac_datarootdir_hack=; ac_datarootdir_seen= 13286ac_sed_dataroot=' 13287/datarootdir/ { 13288 p 13289 q 13290} 13291/@datadir@/p 13292/@docdir@/p 13293/@infodir@/p 13294/@localedir@/p 13295/@mandir@/p' 13296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13297*datarootdir*) ac_datarootdir_seen=yes;; 13298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13301_ACEOF 13302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13303 ac_datarootdir_hack=' 13304 s&@datadir@&$datadir&g 13305 s&@docdir@&$docdir&g 13306 s&@infodir@&$infodir&g 13307 s&@localedir@&$localedir&g 13308 s&@mandir@&$mandir&g 13309 s&\\\${datarootdir}&$datarootdir&g' ;; 13310esac 13311_ACEOF 13312 13313# Neutralize VPATH when `$srcdir' = `.'. 13314# Shell code in configure.ac might set extrasub. 13315# FIXME: do we really want to maintain this feature? 13316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13317ac_sed_extra="$ac_vpsub 13318$extrasub 13319_ACEOF 13320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13321:t 13322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13323s|@configure_input@|$ac_sed_conf_input|;t t 13324s&@top_builddir@&$ac_top_builddir_sub&;t t 13325s&@top_build_prefix@&$ac_top_build_prefix&;t t 13326s&@srcdir@&$ac_srcdir&;t t 13327s&@abs_srcdir@&$ac_abs_srcdir&;t t 13328s&@top_srcdir@&$ac_top_srcdir&;t t 13329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13330s&@builddir@&$ac_builddir&;t t 13331s&@abs_builddir@&$ac_abs_builddir&;t t 13332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13333s&@INSTALL@&$ac_INSTALL&;t t 13334$ac_datarootdir_hack 13335" 13336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13338 13339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13342 "$ac_tmp/out"`; test -z "$ac_out"; } && 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13344which seems to be undefined. Please make sure it is defined" >&5 13345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13346which seems to be undefined. Please make sure it is defined" >&2;} 13347 13348 rm -f "$ac_tmp/stdin" 13349 case $ac_file in 13350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13352 esac \ 13353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13354 ;; 13355 :H) 13356 # 13357 # CONFIG_HEADER 13358 # 13359 if test x"$ac_file" != x-; then 13360 { 13361 $as_echo "/* $configure_input */" \ 13362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13363 } >"$ac_tmp/config.h" \ 13364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13367$as_echo "$as_me: $ac_file is unchanged" >&6;} 13368 else 13369 rm -f "$ac_file" 13370 mv "$ac_tmp/config.h" "$ac_file" \ 13371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13372 fi 13373 else 13374 $as_echo "/* $configure_input */" \ 13375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13376 || as_fn_error $? "could not create -" "$LINENO" 5 13377 fi 13378 ;; 13379 13380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13381$as_echo "$as_me: executing $ac_file commands" >&6;} 13382 ;; 13383 esac 13384 13385 13386 case $ac_file$ac_mode in 13387 "libtool":C) 13388 13389 # See if we are running on zsh, and set the options which allow our 13390 # commands through without removal of \ escapes. 13391 if test -n "${ZSH_VERSION+set}" ; then 13392 setopt NO_GLOB_SUBST 13393 fi 13394 13395 cfgfile="${ofile}T" 13396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13397 $RM "$cfgfile" 13398 13399 cat <<_LT_EOF >> "$cfgfile" 13400#! $SHELL 13401 13402# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13403# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13404# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13405# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13406# 13407# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13408# 2006, 2007, 2008 Free Software Foundation, Inc. 13409# Written by Gordon Matzigkeit, 1996 13410# 13411# This file is part of GNU Libtool. 13412# 13413# GNU Libtool is free software; you can redistribute it and/or 13414# modify it under the terms of the GNU General Public License as 13415# published by the Free Software Foundation; either version 2 of 13416# the License, or (at your option) any later version. 13417# 13418# As a special exception to the GNU General Public License, 13419# if you distribute this file as part of a program or library that 13420# is built using GNU Libtool, you may include this file under the 13421# same distribution terms that you use for the rest of that program. 13422# 13423# GNU Libtool is distributed in the hope that it will be useful, 13424# but WITHOUT ANY WARRANTY; without even the implied warranty of 13425# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13426# GNU General Public License for more details. 13427# 13428# You should have received a copy of the GNU General Public License 13429# along with GNU Libtool; see the file COPYING. If not, a copy 13430# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13431# obtained by writing to the Free Software Foundation, Inc., 13432# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13433 13434 13435# The names of the tagged configurations supported by this script. 13436available_tags="" 13437 13438# ### BEGIN LIBTOOL CONFIG 13439 13440# Which release of libtool.m4 was used? 13441macro_version=$macro_version 13442macro_revision=$macro_revision 13443 13444# Whether or not to build shared libraries. 13445build_libtool_libs=$enable_shared 13446 13447# Whether or not to build static libraries. 13448build_old_libs=$enable_static 13449 13450# What type of objects to build. 13451pic_mode=$pic_mode 13452 13453# Whether or not to optimize for fast installation. 13454fast_install=$enable_fast_install 13455 13456# The host system. 13457host_alias=$host_alias 13458host=$host 13459host_os=$host_os 13460 13461# The build system. 13462build_alias=$build_alias 13463build=$build 13464build_os=$build_os 13465 13466# A sed program that does not truncate output. 13467SED=$lt_SED 13468 13469# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13470Xsed="\$SED -e 1s/^X//" 13471 13472# A grep program that handles long lines. 13473GREP=$lt_GREP 13474 13475# An ERE matcher. 13476EGREP=$lt_EGREP 13477 13478# A literal string matcher. 13479FGREP=$lt_FGREP 13480 13481# A BSD- or MS-compatible name lister. 13482NM=$lt_NM 13483 13484# Whether we need soft or hard links. 13485LN_S=$lt_LN_S 13486 13487# What is the maximum length of a command? 13488max_cmd_len=$max_cmd_len 13489 13490# Object file suffix (normally "o"). 13491objext=$ac_objext 13492 13493# Executable file suffix (normally ""). 13494exeext=$exeext 13495 13496# whether the shell understands "unset". 13497lt_unset=$lt_unset 13498 13499# turn spaces into newlines. 13500SP2NL=$lt_lt_SP2NL 13501 13502# turn newlines into spaces. 13503NL2SP=$lt_lt_NL2SP 13504 13505# How to create reloadable object files. 13506reload_flag=$lt_reload_flag 13507reload_cmds=$lt_reload_cmds 13508 13509# An object symbol dumper. 13510OBJDUMP=$lt_OBJDUMP 13511 13512# Method to check whether dependent libraries are shared objects. 13513deplibs_check_method=$lt_deplibs_check_method 13514 13515# Command to use when deplibs_check_method == "file_magic". 13516file_magic_cmd=$lt_file_magic_cmd 13517 13518# The archiver. 13519AR=$lt_AR 13520AR_FLAGS=$lt_AR_FLAGS 13521 13522# A symbol stripping program. 13523STRIP=$lt_STRIP 13524 13525# Commands used to install an old-style archive. 13526RANLIB=$lt_RANLIB 13527old_postinstall_cmds=$lt_old_postinstall_cmds 13528old_postuninstall_cmds=$lt_old_postuninstall_cmds 13529 13530# A C compiler. 13531LTCC=$lt_CC 13532 13533# LTCC compiler flags. 13534LTCFLAGS=$lt_CFLAGS 13535 13536# Take the output of nm and produce a listing of raw symbols and C names. 13537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13538 13539# Transform the output of nm in a proper C declaration. 13540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13541 13542# Transform the output of nm in a C name address pair. 13543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13544 13545# Transform the output of nm in a C name address pair when lib prefix is needed. 13546global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13547 13548# The name of the directory that contains temporary libtool files. 13549objdir=$objdir 13550 13551# Shell to use when invoking shell scripts. 13552SHELL=$lt_SHELL 13553 13554# An echo program that does not interpret backslashes. 13555ECHO=$lt_ECHO 13556 13557# Used to examine libraries when file_magic_cmd begins with "file". 13558MAGIC_CMD=$MAGIC_CMD 13559 13560# Must we lock files when doing compilation? 13561need_locks=$lt_need_locks 13562 13563# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13564DSYMUTIL=$lt_DSYMUTIL 13565 13566# Tool to change global to local symbols on Mac OS X. 13567NMEDIT=$lt_NMEDIT 13568 13569# Tool to manipulate fat objects and archives on Mac OS X. 13570LIPO=$lt_LIPO 13571 13572# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13573OTOOL=$lt_OTOOL 13574 13575# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13576OTOOL64=$lt_OTOOL64 13577 13578# Old archive suffix (normally "a"). 13579libext=$libext 13580 13581# Shared library suffix (normally ".so"). 13582shrext_cmds=$lt_shrext_cmds 13583 13584# The commands to extract the exported symbol list from a shared archive. 13585extract_expsyms_cmds=$lt_extract_expsyms_cmds 13586 13587# Variables whose values should be saved in libtool wrapper scripts and 13588# restored at link time. 13589variables_saved_for_relink=$lt_variables_saved_for_relink 13590 13591# Do we need the "lib" prefix for modules? 13592need_lib_prefix=$need_lib_prefix 13593 13594# Do we need a version for libraries? 13595need_version=$need_version 13596 13597# Library versioning type. 13598version_type=$version_type 13599 13600# Shared library runtime path variable. 13601runpath_var=$runpath_var 13602 13603# Shared library path variable. 13604shlibpath_var=$shlibpath_var 13605 13606# Is shlibpath searched before the hard-coded library search path? 13607shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13608 13609# Format of library name prefix. 13610libname_spec=$lt_libname_spec 13611 13612# List of archive names. First name is the real one, the rest are links. 13613# The last name is the one that the linker finds with -lNAME 13614library_names_spec=$lt_library_names_spec 13615 13616# The coded name of the library, if different from the real name. 13617soname_spec=$lt_soname_spec 13618 13619# Command to use after installation of a shared archive. 13620postinstall_cmds=$lt_postinstall_cmds 13621 13622# Command to use after uninstallation of a shared archive. 13623postuninstall_cmds=$lt_postuninstall_cmds 13624 13625# Commands used to finish a libtool library installation in a directory. 13626finish_cmds=$lt_finish_cmds 13627 13628# As "finish_cmds", except a single script fragment to be evaled but 13629# not shown. 13630finish_eval=$lt_finish_eval 13631 13632# Whether we should hardcode library paths into libraries. 13633hardcode_into_libs=$hardcode_into_libs 13634 13635# Compile-time system search path for libraries. 13636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13637 13638# Run-time system search path for libraries. 13639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13640 13641# Whether dlopen is supported. 13642dlopen_support=$enable_dlopen 13643 13644# Whether dlopen of programs is supported. 13645dlopen_self=$enable_dlopen_self 13646 13647# Whether dlopen of statically linked programs is supported. 13648dlopen_self_static=$enable_dlopen_self_static 13649 13650# Commands to strip libraries. 13651old_striplib=$lt_old_striplib 13652striplib=$lt_striplib 13653 13654 13655# The linker used to build libraries. 13656LD=$lt_LD 13657 13658# Commands used to build an old-style archive. 13659old_archive_cmds=$lt_old_archive_cmds 13660 13661# A language specific compiler. 13662CC=$lt_compiler 13663 13664# Is the compiler the GNU compiler? 13665with_gcc=$GCC 13666 13667# Compiler flag to turn off builtin functions. 13668no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13669 13670# How to pass a linker flag through the compiler. 13671wl=$lt_lt_prog_compiler_wl 13672 13673# Additional compiler flags for building library objects. 13674pic_flag=$lt_lt_prog_compiler_pic 13675 13676# Compiler flag to prevent dynamic linking. 13677link_static_flag=$lt_lt_prog_compiler_static 13678 13679# Does compiler simultaneously support -c and -o options? 13680compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13681 13682# Whether or not to add -lc for building shared libraries. 13683build_libtool_need_lc=$archive_cmds_need_lc 13684 13685# Whether or not to disallow shared libs when runtime libs are static. 13686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13687 13688# Compiler flag to allow reflexive dlopens. 13689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13690 13691# Compiler flag to generate shared objects directly from archives. 13692whole_archive_flag_spec=$lt_whole_archive_flag_spec 13693 13694# Whether the compiler copes with passing no objects directly. 13695compiler_needs_object=$lt_compiler_needs_object 13696 13697# Create an old-style archive from a shared archive. 13698old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13699 13700# Create a temporary old-style archive to link instead of a shared archive. 13701old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13702 13703# Commands used to build a shared archive. 13704archive_cmds=$lt_archive_cmds 13705archive_expsym_cmds=$lt_archive_expsym_cmds 13706 13707# Commands used to build a loadable module if different from building 13708# a shared archive. 13709module_cmds=$lt_module_cmds 13710module_expsym_cmds=$lt_module_expsym_cmds 13711 13712# Whether we are building with GNU ld or not. 13713with_gnu_ld=$lt_with_gnu_ld 13714 13715# Flag that allows shared libraries with undefined symbols to be built. 13716allow_undefined_flag=$lt_allow_undefined_flag 13717 13718# Flag that enforces no undefined symbols. 13719no_undefined_flag=$lt_no_undefined_flag 13720 13721# Flag to hardcode \$libdir into a binary during linking. 13722# This must work even if \$libdir does not exist 13723hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13724 13725# If ld is used when linking, flag to hardcode \$libdir into a binary 13726# during linking. This must work even if \$libdir does not exist. 13727hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13728 13729# Whether we need a single "-rpath" flag with a separated argument. 13730hardcode_libdir_separator=$lt_hardcode_libdir_separator 13731 13732# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13733# DIR into the resulting binary. 13734hardcode_direct=$hardcode_direct 13735 13736# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13737# DIR into the resulting binary and the resulting library dependency is 13738# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13739# library is relocated. 13740hardcode_direct_absolute=$hardcode_direct_absolute 13741 13742# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13743# into the resulting binary. 13744hardcode_minus_L=$hardcode_minus_L 13745 13746# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13747# into the resulting binary. 13748hardcode_shlibpath_var=$hardcode_shlibpath_var 13749 13750# Set to "yes" if building a shared library automatically hardcodes DIR 13751# into the library and all subsequent libraries and executables linked 13752# against it. 13753hardcode_automatic=$hardcode_automatic 13754 13755# Set to yes if linker adds runtime paths of dependent libraries 13756# to runtime path list. 13757inherit_rpath=$inherit_rpath 13758 13759# Whether libtool must link a program against all its dependency libraries. 13760link_all_deplibs=$link_all_deplibs 13761 13762# Fix the shell variable \$srcfile for the compiler. 13763fix_srcfile_path=$lt_fix_srcfile_path 13764 13765# Set to "yes" if exported symbols are required. 13766always_export_symbols=$always_export_symbols 13767 13768# The commands to list exported symbols. 13769export_symbols_cmds=$lt_export_symbols_cmds 13770 13771# Symbols that should not be listed in the preloaded symbols. 13772exclude_expsyms=$lt_exclude_expsyms 13773 13774# Symbols that must always be exported. 13775include_expsyms=$lt_include_expsyms 13776 13777# Commands necessary for linking programs (against libraries) with templates. 13778prelink_cmds=$lt_prelink_cmds 13779 13780# Specify filename containing input files. 13781file_list_spec=$lt_file_list_spec 13782 13783# How to hardcode a shared library path into an executable. 13784hardcode_action=$hardcode_action 13785 13786# ### END LIBTOOL CONFIG 13787 13788_LT_EOF 13789 13790 case $host_os in 13791 aix3*) 13792 cat <<\_LT_EOF >> "$cfgfile" 13793# AIX sometimes has problems with the GCC collect2 program. For some 13794# reason, if we set the COLLECT_NAMES environment variable, the problems 13795# vanish in a puff of smoke. 13796if test "X${COLLECT_NAMES+set}" != Xset; then 13797 COLLECT_NAMES= 13798 export COLLECT_NAMES 13799fi 13800_LT_EOF 13801 ;; 13802 esac 13803 13804 13805ltmain="$ac_aux_dir/ltmain.sh" 13806 13807 13808 # We use sed instead of cat because bash on DJGPP gets confused if 13809 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13810 # text mode, it properly converts lines to CR/LF. This bash problem 13811 # is reportedly fixed, but why not run on old versions too? 13812 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13813 || (rm -f "$cfgfile"; exit 1) 13814 13815 case $xsi_shell in 13816 yes) 13817 cat << \_LT_EOF >> "$cfgfile" 13818 13819# func_dirname file append nondir_replacement 13820# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13821# otherwise set result to NONDIR_REPLACEMENT. 13822func_dirname () 13823{ 13824 case ${1} in 13825 */*) func_dirname_result="${1%/*}${2}" ;; 13826 * ) func_dirname_result="${3}" ;; 13827 esac 13828} 13829 13830# func_basename file 13831func_basename () 13832{ 13833 func_basename_result="${1##*/}" 13834} 13835 13836# func_dirname_and_basename file append nondir_replacement 13837# perform func_basename and func_dirname in a single function 13838# call: 13839# dirname: Compute the dirname of FILE. If nonempty, 13840# add APPEND to the result, otherwise set result 13841# to NONDIR_REPLACEMENT. 13842# value returned in "$func_dirname_result" 13843# basename: Compute filename of FILE. 13844# value retuned in "$func_basename_result" 13845# Implementation must be kept synchronized with func_dirname 13846# and func_basename. For efficiency, we do not delegate to 13847# those functions but instead duplicate the functionality here. 13848func_dirname_and_basename () 13849{ 13850 case ${1} in 13851 */*) func_dirname_result="${1%/*}${2}" ;; 13852 * ) func_dirname_result="${3}" ;; 13853 esac 13854 func_basename_result="${1##*/}" 13855} 13856 13857# func_stripname prefix suffix name 13858# strip PREFIX and SUFFIX off of NAME. 13859# PREFIX and SUFFIX must not contain globbing or regex special 13860# characters, hashes, percent signs, but SUFFIX may contain a leading 13861# dot (in which case that matches only a dot). 13862func_stripname () 13863{ 13864 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13865 # positional parameters, so assign one to ordinary parameter first. 13866 func_stripname_result=${3} 13867 func_stripname_result=${func_stripname_result#"${1}"} 13868 func_stripname_result=${func_stripname_result%"${2}"} 13869} 13870 13871# func_opt_split 13872func_opt_split () 13873{ 13874 func_opt_split_opt=${1%%=*} 13875 func_opt_split_arg=${1#*=} 13876} 13877 13878# func_lo2o object 13879func_lo2o () 13880{ 13881 case ${1} in 13882 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13883 *) func_lo2o_result=${1} ;; 13884 esac 13885} 13886 13887# func_xform libobj-or-source 13888func_xform () 13889{ 13890 func_xform_result=${1%.*}.lo 13891} 13892 13893# func_arith arithmetic-term... 13894func_arith () 13895{ 13896 func_arith_result=$(( $* )) 13897} 13898 13899# func_len string 13900# STRING may not start with a hyphen. 13901func_len () 13902{ 13903 func_len_result=${#1} 13904} 13905 13906_LT_EOF 13907 ;; 13908 *) # Bourne compatible functions. 13909 cat << \_LT_EOF >> "$cfgfile" 13910 13911# func_dirname file append nondir_replacement 13912# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13913# otherwise set result to NONDIR_REPLACEMENT. 13914func_dirname () 13915{ 13916 # Extract subdirectory from the argument. 13917 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13918 if test "X$func_dirname_result" = "X${1}"; then 13919 func_dirname_result="${3}" 13920 else 13921 func_dirname_result="$func_dirname_result${2}" 13922 fi 13923} 13924 13925# func_basename file 13926func_basename () 13927{ 13928 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13929} 13930 13931 13932# func_stripname prefix suffix name 13933# strip PREFIX and SUFFIX off of NAME. 13934# PREFIX and SUFFIX must not contain globbing or regex special 13935# characters, hashes, percent signs, but SUFFIX may contain a leading 13936# dot (in which case that matches only a dot). 13937# func_strip_suffix prefix name 13938func_stripname () 13939{ 13940 case ${2} in 13941 .*) func_stripname_result=`$ECHO "X${3}" \ 13942 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13943 *) func_stripname_result=`$ECHO "X${3}" \ 13944 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13945 esac 13946} 13947 13948# sed scripts: 13949my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13950my_sed_long_arg='1s/^-[^=]*=//' 13951 13952# func_opt_split 13953func_opt_split () 13954{ 13955 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13956 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13957} 13958 13959# func_lo2o object 13960func_lo2o () 13961{ 13962 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13963} 13964 13965# func_xform libobj-or-source 13966func_xform () 13967{ 13968 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13969} 13970 13971# func_arith arithmetic-term... 13972func_arith () 13973{ 13974 func_arith_result=`expr "$@"` 13975} 13976 13977# func_len string 13978# STRING may not start with a hyphen. 13979func_len () 13980{ 13981 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13982} 13983 13984_LT_EOF 13985esac 13986 13987case $lt_shell_append in 13988 yes) 13989 cat << \_LT_EOF >> "$cfgfile" 13990 13991# func_append var value 13992# Append VALUE to the end of shell variable VAR. 13993func_append () 13994{ 13995 eval "$1+=\$2" 13996} 13997_LT_EOF 13998 ;; 13999 *) 14000 cat << \_LT_EOF >> "$cfgfile" 14001 14002# func_append var value 14003# Append VALUE to the end of shell variable VAR. 14004func_append () 14005{ 14006 eval "$1=\$$1\$2" 14007} 14008 14009_LT_EOF 14010 ;; 14011 esac 14012 14013 14014 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14015 || (rm -f "$cfgfile"; exit 1) 14016 14017 mv -f "$cfgfile" "$ofile" || 14018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14019 chmod +x "$ofile" 14020 14021 ;; 14022 14023 esac 14024done # for ac_tag 14025 14026 14027as_fn_exit 0 14028_ACEOF 14029ac_clean_files=$ac_clean_files_save 14030 14031test $ac_write_fail = 0 || 14032 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14033 14034 14035# configure is writing to config.log, and then calls config.status. 14036# config.status does its own redirection, appending to config.log. 14037# Unfortunately, on DOS this fails, as config.log is still kept open 14038# by configure, so config.status won't be able to write to it; its 14039# output is simply discarded. So we exec the FD to /dev/null, 14040# effectively closing config.log, so it can be properly (re)opened and 14041# appended to by config.status. When coming back to configure, we 14042# need to make the FD available again. 14043if test "$no_create" != yes; then 14044 ac_cs_success=: 14045 ac_config_status_args= 14046 test "$silent" = yes && 14047 ac_config_status_args="$ac_config_status_args --quiet" 14048 exec 5>/dev/null 14049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14050 exec 5>>config.log 14051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14052 # would make configure fail if this is the last instruction. 14053 $ac_cs_success || as_fn_exit 1 14054fi 14055if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14057$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14058fi 14059 14060