1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sqlite 3.25.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.25.0' 730PACKAGE_STRING='sqlite 3.25.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 802VERSION_NUMBER 803RELEASE 804VERSION 805program_prefix 806TCLLIBDIR 807TCLSH_CMD 808INSTALL_DATA 809INSTALL_SCRIPT 810INSTALL_PROGRAM 811CPP 812OTOOL64 813OTOOL 814LIPO 815NMEDIT 816DSYMUTIL 817lt_ECHO 818RANLIB 819STRIP 820AR 821OBJDUMP 822LN_S 823NM 824ac_ct_DUMPBIN 825DUMPBIN 826LD 827FGREP 828EGREP 829GREP 830SED 831OBJEXT 832EXEEXT 833ac_ct_CC 834CPPFLAGS 835LDFLAGS 836CFLAGS 837CC 838host_os 839host_vendor 840host_cpu 841host 842build_os 843build_vendor 844build_cpu 845build 846LIBTOOL 847target_alias 848host_alias 849build_alias 850LIBS 851ECHO_T 852ECHO_N 853ECHO_C 854DEFS 855mandir 856localedir 857libdir 858psdir 859pdfdir 860dvidir 861htmldir 862infodir 863docdir 864oldincludedir 865includedir 866localstatedir 867sharedstatedir 868sysconfdir 869datadir 870datarootdir 871libexecdir 872sbindir 873bindir 874program_transform_name 875prefix 876exec_prefix 877PACKAGE_URL 878PACKAGE_BUGREPORT 879PACKAGE_STRING 880PACKAGE_VERSION 881PACKAGE_TARNAME 882PACKAGE_NAME 883PATH_SEPARATOR 884SHELL' 885ac_subst_files='' 886ac_user_opts=' 887enable_option_checking 888enable_shared 889enable_static 890with_pic 891enable_fast_install 892with_gnu_ld 893enable_libtool_lock 894enable_largefile 895enable_threadsafe 896enable_releasemode 897enable_tempstore 898enable_tcl 899with_tcl 900enable_editline 901enable_readline 902with_readline_lib 903with_readline_inc 904enable_debug 905enable_amalgamation 906enable_load_extension 907enable_memsys5 908enable_memsys3 909enable_fts3 910enable_fts4 911enable_fts5 912enable_json1 913enable_update_limit 914enable_rtree 915enable_session 916enable_gcov 917' 918 ac_precious_vars='build_alias 919host_alias 920target_alias 921CC 922CFLAGS 923LDFLAGS 924LIBS 925CPPFLAGS 926CPP 927TCLLIBDIR' 928 929 930# Initialize some variables set by options. 931ac_init_help= 932ac_init_version=false 933ac_unrecognized_opts= 934ac_unrecognized_sep= 935# The variables have the same names as the options, with 936# dashes changed to underlines. 937cache_file=/dev/null 938exec_prefix=NONE 939no_create= 940no_recursion= 941prefix=NONE 942program_prefix=NONE 943program_suffix=NONE 944program_transform_name=s,x,x, 945silent= 946site= 947srcdir= 948verbose= 949x_includes=NONE 950x_libraries=NONE 951 952# Installation directory options. 953# These are left unexpanded so users can "make install exec_prefix=/foo" 954# and all the variables that are supposed to be based on exec_prefix 955# by default will actually change. 956# Use braces instead of parens because sh, perl, etc. also accept them. 957# (The list follows the same order as the GNU Coding Standards.) 958bindir='${exec_prefix}/bin' 959sbindir='${exec_prefix}/sbin' 960libexecdir='${exec_prefix}/libexec' 961datarootdir='${prefix}/share' 962datadir='${datarootdir}' 963sysconfdir='${prefix}/etc' 964sharedstatedir='${prefix}/com' 965localstatedir='${prefix}/var' 966includedir='${prefix}/include' 967oldincludedir='/usr/include' 968docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 969infodir='${datarootdir}/info' 970htmldir='${docdir}' 971dvidir='${docdir}' 972pdfdir='${docdir}' 973psdir='${docdir}' 974libdir='${exec_prefix}/lib' 975localedir='${datarootdir}/locale' 976mandir='${datarootdir}/man' 977 978ac_prev= 979ac_dashdash= 980for ac_option 981do 982 # If the previous option needs an argument, assign it. 983 if test -n "$ac_prev"; then 984 eval $ac_prev=\$ac_option 985 ac_prev= 986 continue 987 fi 988 989 case $ac_option in 990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 991 *=) ac_optarg= ;; 992 *) ac_optarg=yes ;; 993 esac 994 995 # Accept the important Cygnus configure options, so we can diagnose typos. 996 997 case $ac_dashdash$ac_option in 998 --) 999 ac_dashdash=yes ;; 1000 1001 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1002 ac_prev=bindir ;; 1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1004 bindir=$ac_optarg ;; 1005 1006 -build | --build | --buil | --bui | --bu) 1007 ac_prev=build_alias ;; 1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1009 build_alias=$ac_optarg ;; 1010 1011 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1013 ac_prev=cache_file ;; 1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1016 cache_file=$ac_optarg ;; 1017 1018 --config-cache | -C) 1019 cache_file=config.cache ;; 1020 1021 -datadir | --datadir | --datadi | --datad) 1022 ac_prev=datadir ;; 1023 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1024 datadir=$ac_optarg ;; 1025 1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1027 | --dataroo | --dataro | --datar) 1028 ac_prev=datarootdir ;; 1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1031 datarootdir=$ac_optarg ;; 1032 1033 -disable-* | --disable-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 as_fn_error $? "invalid feature name: $ac_useropt" 1038 ac_useropt_orig=$ac_useropt 1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1040 case $ac_user_opts in 1041 *" 1042"enable_$ac_useropt" 1043"*) ;; 1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1045 ac_unrecognized_sep=', ';; 1046 esac 1047 eval enable_$ac_useropt=no ;; 1048 1049 -docdir | --docdir | --docdi | --doc | --do) 1050 ac_prev=docdir ;; 1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1052 docdir=$ac_optarg ;; 1053 1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1055 ac_prev=dvidir ;; 1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1057 dvidir=$ac_optarg ;; 1058 1059 -enable-* | --enable-*) 1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1063 as_fn_error $? "invalid feature name: $ac_useropt" 1064 ac_useropt_orig=$ac_useropt 1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1066 case $ac_user_opts in 1067 *" 1068"enable_$ac_useropt" 1069"*) ;; 1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1071 ac_unrecognized_sep=', ';; 1072 esac 1073 eval enable_$ac_useropt=\$ac_optarg ;; 1074 1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1077 | --exec | --exe | --ex) 1078 ac_prev=exec_prefix ;; 1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1081 | --exec=* | --exe=* | --ex=*) 1082 exec_prefix=$ac_optarg ;; 1083 1084 -gas | --gas | --ga | --g) 1085 # Obsolete; use --with-gas. 1086 with_gas=yes ;; 1087 1088 -help | --help | --hel | --he | -h) 1089 ac_init_help=long ;; 1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1091 ac_init_help=recursive ;; 1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1093 ac_init_help=short ;; 1094 1095 -host | --host | --hos | --ho) 1096 ac_prev=host_alias ;; 1097 -host=* | --host=* | --hos=* | --ho=*) 1098 host_alias=$ac_optarg ;; 1099 1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1101 ac_prev=htmldir ;; 1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1103 | --ht=*) 1104 htmldir=$ac_optarg ;; 1105 1106 -includedir | --includedir | --includedi | --included | --include \ 1107 | --includ | --inclu | --incl | --inc) 1108 ac_prev=includedir ;; 1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1110 | --includ=* | --inclu=* | --incl=* | --inc=*) 1111 includedir=$ac_optarg ;; 1112 1113 -infodir | --infodir | --infodi | --infod | --info | --inf) 1114 ac_prev=infodir ;; 1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1116 infodir=$ac_optarg ;; 1117 1118 -libdir | --libdir | --libdi | --libd) 1119 ac_prev=libdir ;; 1120 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1121 libdir=$ac_optarg ;; 1122 1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1124 | --libexe | --libex | --libe) 1125 ac_prev=libexecdir ;; 1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1127 | --libexe=* | --libex=* | --libe=*) 1128 libexecdir=$ac_optarg ;; 1129 1130 -localedir | --localedir | --localedi | --localed | --locale) 1131 ac_prev=localedir ;; 1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1133 localedir=$ac_optarg ;; 1134 1135 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1136 | --localstate | --localstat | --localsta | --localst | --locals) 1137 ac_prev=localstatedir ;; 1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1140 localstatedir=$ac_optarg ;; 1141 1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1143 ac_prev=mandir ;; 1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1145 mandir=$ac_optarg ;; 1146 1147 -nfp | --nfp | --nf) 1148 # Obsolete; use --without-fp. 1149 with_fp=no ;; 1150 1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1152 | --no-cr | --no-c | -n) 1153 no_create=yes ;; 1154 1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1157 no_recursion=yes ;; 1158 1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1161 | --oldin | --oldi | --old | --ol | --o) 1162 ac_prev=oldincludedir ;; 1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1166 oldincludedir=$ac_optarg ;; 1167 1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1169 ac_prev=prefix ;; 1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1171 prefix=$ac_optarg ;; 1172 1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1174 | --program-pre | --program-pr | --program-p) 1175 ac_prev=program_prefix ;; 1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1178 program_prefix=$ac_optarg ;; 1179 1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1181 | --program-suf | --program-su | --program-s) 1182 ac_prev=program_suffix ;; 1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1185 program_suffix=$ac_optarg ;; 1186 1187 -program-transform-name | --program-transform-name \ 1188 | --program-transform-nam | --program-transform-na \ 1189 | --program-transform-n | --program-transform- \ 1190 | --program-transform | --program-transfor \ 1191 | --program-transfo | --program-transf \ 1192 | --program-trans | --program-tran \ 1193 | --progr-tra | --program-tr | --program-t) 1194 ac_prev=program_transform_name ;; 1195 -program-transform-name=* | --program-transform-name=* \ 1196 | --program-transform-nam=* | --program-transform-na=* \ 1197 | --program-transform-n=* | --program-transform-=* \ 1198 | --program-transform=* | --program-transfor=* \ 1199 | --program-transfo=* | --program-transf=* \ 1200 | --program-trans=* | --program-tran=* \ 1201 | --progr-tra=* | --program-tr=* | --program-t=*) 1202 program_transform_name=$ac_optarg ;; 1203 1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1205 ac_prev=pdfdir ;; 1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1207 pdfdir=$ac_optarg ;; 1208 1209 -psdir | --psdir | --psdi | --psd | --ps) 1210 ac_prev=psdir ;; 1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1212 psdir=$ac_optarg ;; 1213 1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1215 | -silent | --silent | --silen | --sile | --sil) 1216 silent=yes ;; 1217 1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1219 ac_prev=sbindir ;; 1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1221 | --sbi=* | --sb=*) 1222 sbindir=$ac_optarg ;; 1223 1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1226 | --sharedst | --shareds | --shared | --share | --shar \ 1227 | --sha | --sh) 1228 ac_prev=sharedstatedir ;; 1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1232 | --sha=* | --sh=*) 1233 sharedstatedir=$ac_optarg ;; 1234 1235 -site | --site | --sit) 1236 ac_prev=site ;; 1237 -site=* | --site=* | --sit=*) 1238 site=$ac_optarg ;; 1239 1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1241 ac_prev=srcdir ;; 1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1243 srcdir=$ac_optarg ;; 1244 1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1246 | --syscon | --sysco | --sysc | --sys | --sy) 1247 ac_prev=sysconfdir ;; 1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1250 sysconfdir=$ac_optarg ;; 1251 1252 -target | --target | --targe | --targ | --tar | --ta | --t) 1253 ac_prev=target_alias ;; 1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1255 target_alias=$ac_optarg ;; 1256 1257 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1258 verbose=yes ;; 1259 1260 -version | --version | --versio | --versi | --vers | -V) 1261 ac_init_version=: ;; 1262 1263 -with-* | --with-*) 1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1265 # Reject names that are not valid shell variable names. 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1267 as_fn_error $? "invalid package name: $ac_useropt" 1268 ac_useropt_orig=$ac_useropt 1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1270 case $ac_user_opts in 1271 *" 1272"with_$ac_useropt" 1273"*) ;; 1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1275 ac_unrecognized_sep=', ';; 1276 esac 1277 eval with_$ac_useropt=\$ac_optarg ;; 1278 1279 -without-* | --without-*) 1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1281 # Reject names that are not valid shell variable names. 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1283 as_fn_error $? "invalid package name: $ac_useropt" 1284 ac_useropt_orig=$ac_useropt 1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1286 case $ac_user_opts in 1287 *" 1288"with_$ac_useropt" 1289"*) ;; 1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1291 ac_unrecognized_sep=', ';; 1292 esac 1293 eval with_$ac_useropt=no ;; 1294 1295 --x) 1296 # Obsolete; use --with-x. 1297 with_x=yes ;; 1298 1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1300 | --x-incl | --x-inc | --x-in | --x-i) 1301 ac_prev=x_includes ;; 1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1304 x_includes=$ac_optarg ;; 1305 1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1308 ac_prev=x_libraries ;; 1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1311 x_libraries=$ac_optarg ;; 1312 1313 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1314Try \`$0 --help' for more information" 1315 ;; 1316 1317 *=*) 1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1319 # Reject names that are not valid shell variable names. 1320 case $ac_envvar in #( 1321 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1323 esac 1324 eval $ac_envvar=\$ac_optarg 1325 export $ac_envvar ;; 1326 1327 *) 1328 # FIXME: should be removed in autoconf 3.0. 1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1333 ;; 1334 1335 esac 1336done 1337 1338if test -n "$ac_prev"; then 1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1340 as_fn_error $? "missing argument to $ac_option" 1341fi 1342 1343if test -n "$ac_unrecognized_opts"; then 1344 case $enable_option_checking in 1345 no) ;; 1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1348 esac 1349fi 1350 1351# Check all directory arguments for consistency. 1352for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1353 datadir sysconfdir sharedstatedir localstatedir includedir \ 1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1355 libdir localedir mandir 1356do 1357 eval ac_val=\$$ac_var 1358 # Remove trailing slashes. 1359 case $ac_val in 1360 */ ) 1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1362 eval $ac_var=\$ac_val;; 1363 esac 1364 # Be sure to have absolute directory names. 1365 case $ac_val in 1366 [\\/$]* | ?:[\\/]* ) continue;; 1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1368 esac 1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1370done 1371 1372# There might be people who depend on the old broken behavior: `$host' 1373# used to hold the argument of --host etc. 1374# FIXME: To remove some day. 1375build=$build_alias 1376host=$host_alias 1377target=$target_alias 1378 1379# FIXME: To remove some day. 1380if test "x$host_alias" != x; then 1381 if test "x$build_alias" = x; then 1382 cross_compiling=maybe 1383 elif test "x$build_alias" != "x$host_alias"; then 1384 cross_compiling=yes 1385 fi 1386fi 1387 1388ac_tool_prefix= 1389test -n "$host_alias" && ac_tool_prefix=$host_alias- 1390 1391test "$silent" = yes && exec 6>/dev/null 1392 1393 1394ac_pwd=`pwd` && test -n "$ac_pwd" && 1395ac_ls_di=`ls -di .` && 1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1397 as_fn_error $? "working directory cannot be determined" 1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1399 as_fn_error $? "pwd does not report name of working directory" 1400 1401 1402# Find the source files, if location was not specified. 1403if test -z "$srcdir"; then 1404 ac_srcdir_defaulted=yes 1405 # Try the directory containing this script, then the parent directory. 1406 ac_confdir=`$as_dirname -- "$as_myself" || 1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1408 X"$as_myself" : 'X\(//\)[^/]' \| \ 1409 X"$as_myself" : 'X\(//\)$' \| \ 1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1411$as_echo X"$as_myself" | 1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\/\)[^/].*/{ 1417 s//\1/ 1418 q 1419 } 1420 /^X\(\/\/\)$/{ 1421 s//\1/ 1422 q 1423 } 1424 /^X\(\/\).*/{ 1425 s//\1/ 1426 q 1427 } 1428 s/.*/./; q'` 1429 srcdir=$ac_confdir 1430 if test ! -r "$srcdir/$ac_unique_file"; then 1431 srcdir=.. 1432 fi 1433else 1434 ac_srcdir_defaulted=no 1435fi 1436if test ! -r "$srcdir/$ac_unique_file"; then 1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1439fi 1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1441ac_abs_confdir=`( 1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1443 pwd)` 1444# When building in place, set srcdir=. 1445if test "$ac_abs_confdir" = "$ac_pwd"; then 1446 srcdir=. 1447fi 1448# Remove unnecessary trailing slashes from srcdir. 1449# Double slashes in file names in object file debugging info 1450# mess up M-x gdb in Emacs. 1451case $srcdir in 1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1453esac 1454for ac_var in $ac_precious_vars; do 1455 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1456 eval ac_env_${ac_var}_value=\$${ac_var} 1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1459done 1460 1461# 1462# Report the --help message. 1463# 1464if test "$ac_init_help" = "long"; then 1465 # Omit some internal or obsolete options to make the list less imposing. 1466 # This message is too long to be a string in the A/UX 3.1 sh. 1467 cat <<_ACEOF 1468\`configure' configures sqlite 3.25.0 to adapt to many kinds of systems. 1469 1470Usage: $0 [OPTION]... [VAR=VALUE]... 1471 1472To assign environment variables (e.g., CC, CFLAGS...), specify them as 1473VAR=VALUE. See below for descriptions of some of the useful variables. 1474 1475Defaults for the options are specified in brackets. 1476 1477Configuration: 1478 -h, --help display this help and exit 1479 --help=short display options specific to this package 1480 --help=recursive display the short help of all the included packages 1481 -V, --version display version information and exit 1482 -q, --quiet, --silent do not print \`checking ...' messages 1483 --cache-file=FILE cache test results in FILE [disabled] 1484 -C, --config-cache alias for \`--cache-file=config.cache' 1485 -n, --no-create do not create output files 1486 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1487 1488Installation directories: 1489 --prefix=PREFIX install architecture-independent files in PREFIX 1490 [$ac_default_prefix] 1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1492 [PREFIX] 1493 1494By default, \`make install' will install all the files in 1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1496an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1497for instance \`--prefix=\$HOME'. 1498 1499For better control, use the options below. 1500 1501Fine tuning of the installation directories: 1502 --bindir=DIR user executables [EPREFIX/bin] 1503 --sbindir=DIR system admin executables [EPREFIX/sbin] 1504 --libexecdir=DIR program executables [EPREFIX/libexec] 1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1508 --libdir=DIR object code libraries [EPREFIX/lib] 1509 --includedir=DIR C header files [PREFIX/include] 1510 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1513 --infodir=DIR info documentation [DATAROOTDIR/info] 1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1515 --mandir=DIR man documentation [DATAROOTDIR/man] 1516 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1517 --htmldir=DIR html documentation [DOCDIR] 1518 --dvidir=DIR dvi documentation [DOCDIR] 1519 --pdfdir=DIR pdf documentation [DOCDIR] 1520 --psdir=DIR ps documentation [DOCDIR] 1521_ACEOF 1522 1523 cat <<\_ACEOF 1524 1525System types: 1526 --build=BUILD configure for building on BUILD [guessed] 1527 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1528_ACEOF 1529fi 1530 1531if test -n "$ac_init_help"; then 1532 case $ac_init_help in 1533 short | recursive ) echo "Configuration of sqlite 3.25.0:";; 1534 esac 1535 cat <<\_ACEOF 1536 1537Optional Features: 1538 --disable-option-checking ignore unrecognized --enable/--with options 1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1541 --enable-shared[=PKGS] build shared libraries [default=yes] 1542 --enable-static[=PKGS] build static libraries [default=yes] 1543 --enable-fast-install[=PKGS] 1544 optimize for fast installation [default=yes] 1545 --disable-libtool-lock avoid locking (might break parallel builds) 1546 --disable-largefile omit support for large files 1547 --disable-threadsafe Disable mutexing 1548 --enable-releasemode Support libtool link to release mode 1549 --enable-tempstore Use an in-ram database for temporary tables 1550 (never,no,yes,always) 1551 --disable-tcl do not build TCL extension 1552 --enable-editline enable BSD editline support 1553 --disable-readline disable readline support 1554 --enable-debug enable debugging & verbose explain 1555 --disable-amalgamation Disable the amalgamation and instead build all files 1556 separately 1557 --disable-load-extension 1558 Disable loading of external extensions 1559 --enable-memsys5 Enable MEMSYS5 1560 --enable-memsys3 Enable MEMSYS3 1561 --enable-fts3 Enable the FTS3 extension 1562 --enable-fts4 Enable the FTS4 extension 1563 --enable-fts5 Enable the FTS5 extension 1564 --enable-json1 Enable the JSON1 extension 1565 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause 1566 --enable-rtree Enable the RTREE extension 1567 --enable-session Enable the SESSION extension 1568 --enable-gcov Enable coverage testing using gcov 1569 1570Optional Packages: 1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1573 --with-pic try to use only PIC/non-PIC objects [default=use 1574 both] 1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1576 --with-tcl=DIR directory containing tcl configuration 1577 (tclConfig.sh) 1578 --with-readline-lib specify readline library 1579 --with-readline-inc specify readline include paths 1580 1581Some influential environment variables: 1582 CC C compiler command 1583 CFLAGS C compiler flags 1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1585 nonstandard directory <lib dir> 1586 LIBS libraries to pass to the linker, e.g. -l<library> 1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1588 you have headers in a nonstandard directory <include dir> 1589 CPP C preprocessor 1590 TCLLIBDIR Where to install tcl plugin 1591 1592Use these variables to override the choices made by `configure' or to help 1593it to find libraries and programs with nonstandard names/locations. 1594 1595Report bugs to the package provider. 1596_ACEOF 1597ac_status=$? 1598fi 1599 1600if test "$ac_init_help" = "recursive"; then 1601 # If there are subdirs, report their specific --help. 1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1603 test -d "$ac_dir" || 1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1605 continue 1606 ac_builddir=. 1607 1608case "$ac_dir" in 1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1610*) 1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1612 # A ".." for each directory in $ac_dir_suffix. 1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1614 case $ac_top_builddir_sub in 1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1617 esac ;; 1618esac 1619ac_abs_top_builddir=$ac_pwd 1620ac_abs_builddir=$ac_pwd$ac_dir_suffix 1621# for backward compatibility: 1622ac_top_builddir=$ac_top_build_prefix 1623 1624case $srcdir in 1625 .) # We are building in place. 1626 ac_srcdir=. 1627 ac_top_srcdir=$ac_top_builddir_sub 1628 ac_abs_top_srcdir=$ac_pwd ;; 1629 [\\/]* | ?:[\\/]* ) # Absolute name. 1630 ac_srcdir=$srcdir$ac_dir_suffix; 1631 ac_top_srcdir=$srcdir 1632 ac_abs_top_srcdir=$srcdir ;; 1633 *) # Relative name. 1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1635 ac_top_srcdir=$ac_top_build_prefix$srcdir 1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1637esac 1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1639 1640 cd "$ac_dir" || { ac_status=$?; continue; } 1641 # Check for guested configure. 1642 if test -f "$ac_srcdir/configure.gnu"; then 1643 echo && 1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1645 elif test -f "$ac_srcdir/configure"; then 1646 echo && 1647 $SHELL "$ac_srcdir/configure" --help=recursive 1648 else 1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1650 fi || ac_status=$? 1651 cd "$ac_pwd" || { ac_status=$?; break; } 1652 done 1653fi 1654 1655test -n "$ac_init_help" && exit $ac_status 1656if $ac_init_version; then 1657 cat <<\_ACEOF 1658sqlite configure 3.25.0 1659generated by GNU Autoconf 2.69 1660 1661Copyright (C) 2012 Free Software Foundation, Inc. 1662This configure script is free software; the Free Software Foundation 1663gives unlimited permission to copy, distribute and modify it. 1664_ACEOF 1665 exit 1666fi 1667 1668## ------------------------ ## 1669## Autoconf initialization. ## 1670## ------------------------ ## 1671 1672# ac_fn_c_try_compile LINENO 1673# -------------------------- 1674# Try to compile conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_compile () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 rm -f conftest.$ac_objext 1679 if { { ac_try="$ac_compile" 1680case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683esac 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685$as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_compile") 2>conftest.err 1687 ac_status=$? 1688 if test -s conftest.err; then 1689 grep -v '^ *+' conftest.err >conftest.er1 1690 cat conftest.er1 >&5 1691 mv -f conftest.er1 conftest.err 1692 fi 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } && { 1695 test -z "$ac_c_werror_flag" || 1696 test ! -s conftest.err 1697 } && test -s conftest.$ac_objext; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_compile 1709 1710# ac_fn_c_try_link LINENO 1711# ----------------------- 1712# Try to link conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_link () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 rm -f conftest.$ac_objext conftest$ac_exeext 1717 if { { ac_try="$ac_link" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_link") 2>conftest.err 1725 ac_status=$? 1726 if test -s conftest.err; then 1727 grep -v '^ *+' conftest.err >conftest.er1 1728 cat conftest.er1 >&5 1729 mv -f conftest.er1 conftest.err 1730 fi 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { 1733 test -z "$ac_c_werror_flag" || 1734 test ! -s conftest.err 1735 } && test -s conftest$ac_exeext && { 1736 test "$cross_compiling" = yes || 1737 test -x conftest$ac_exeext 1738 }; then : 1739 ac_retval=0 1740else 1741 $as_echo "$as_me: failed program was:" >&5 1742sed 's/^/| /' conftest.$ac_ext >&5 1743 1744 ac_retval=1 1745fi 1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1748 # interfere with the next link command; also delete a directory that is 1749 # left behind by Apple's compiler. We do this before executing the actions. 1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_link 1755 1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1757# ------------------------------------------------------- 1758# Tests whether HEADER exists and can be compiled using the include files in 1759# INCLUDES, setting the cache variable VAR accordingly. 1760ac_fn_c_check_header_compile () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770$4 1771#include <$2> 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO"; then : 1774 eval "$3=yes" 1775else 1776 eval "$3=no" 1777fi 1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1779fi 1780eval ac_res=\$$3 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782$as_echo "$ac_res" >&6; } 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 1785} # ac_fn_c_check_header_compile 1786 1787# ac_fn_c_try_cpp LINENO 1788# ---------------------- 1789# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1790ac_fn_c_try_cpp () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if { { ac_try="$ac_cpp conftest.$ac_ext" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } > conftest.i && { 1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1810 test ! -s conftest.err 1811 }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_cpp 1823 1824# ac_fn_c_try_run LINENO 1825# ---------------------- 1826# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1827# that executables *can* be run. 1828ac_fn_c_try_run () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 if { { ac_try="$ac_link" 1832case "(($ac_try" in 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1834 *) ac_try_echo=$ac_try;; 1835esac 1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1837$as_echo "$ac_try_echo"; } >&5 1838 (eval "$ac_link") 2>&5 1839 ac_status=$? 1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1842 { { case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845esac 1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847$as_echo "$ac_try_echo"; } >&5 1848 (eval "$ac_try") 2>&5 1849 ac_status=$? 1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1851 test $ac_status = 0; }; }; then : 1852 ac_retval=0 1853else 1854 $as_echo "$as_me: program exited with status $ac_status" >&5 1855 $as_echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858 ac_retval=$ac_status 1859fi 1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_run 1865 1866# ac_fn_c_check_func LINENO FUNC VAR 1867# ---------------------------------- 1868# Tests whether FUNC exists, setting the cache variable VAR accordingly 1869ac_fn_c_check_func () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876else 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1881#define $2 innocuous_$2 1882 1883/* System header to define __stub macros and hopefully few prototypes, 1884 which can conflict with char $2 (); below. 1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1886 <limits.h> exists even on freestanding compilers. */ 1887 1888#ifdef __STDC__ 1889# include <limits.h> 1890#else 1891# include <assert.h> 1892#endif 1893 1894#undef $2 1895 1896/* Override any GCC internal prototype to avoid an error. 1897 Use char because int might match the return type of a GCC 1898 builtin and then its argument prototype would still apply. */ 1899#ifdef __cplusplus 1900extern "C" 1901#endif 1902char $2 (); 1903/* The GNU C library defines this for functions which it implements 1904 to always fail with ENOSYS. Some functions are actually named 1905 something starting with __ and the normal name is an alias. */ 1906#if defined __stub_$2 || defined __stub___$2 1907choke me 1908#endif 1909 1910int 1911main () 1912{ 1913return $2 (); 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918if ac_fn_c_try_link "$LINENO"; then : 1919 eval "$3=yes" 1920else 1921 eval "$3=no" 1922fi 1923rm -f core conftest.err conftest.$ac_objext \ 1924 conftest$ac_exeext conftest.$ac_ext 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_func 1932 1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1934# ------------------------------------------- 1935# Tests whether TYPE exists after having included INCLUDES, setting cache 1936# variable VAR accordingly. 1937ac_fn_c_check_type () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 eval "$3=no" 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948$4 1949int 1950main () 1951{ 1952if (sizeof ($2)) 1953 return 0; 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO"; then : 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962int 1963main () 1964{ 1965if (sizeof (($2))) 1966 return 0; 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 1973else 1974 eval "$3=yes" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_type 1986 1987# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1988# ------------------------------------------------------- 1989# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1990# the include files in INCLUDES and setting the cache variable VAR 1991# accordingly. 1992ac_fn_c_check_header_mongrel () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if eval \${$3+:} false; then : 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000fi 2001eval ac_res=\$$3 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2003$as_echo "$ac_res" >&6; } 2004else 2005 # Is the header compilable? 2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2007$as_echo_n "checking $2 usability... " >&6; } 2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011#include <$2> 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 ac_header_compiler=yes 2015else 2016 ac_header_compiler=no 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2020$as_echo "$ac_header_compiler" >&6; } 2021 2022# Is the header present? 2023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2024$as_echo_n "checking $2 presence... " >&6; } 2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027#include <$2> 2028_ACEOF 2029if ac_fn_c_try_cpp "$LINENO"; then : 2030 ac_header_preproc=yes 2031else 2032 ac_header_preproc=no 2033fi 2034rm -f conftest.err conftest.i conftest.$ac_ext 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2036$as_echo "$ac_header_preproc" >&6; } 2037 2038# So? What about this header? 2039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2040 yes:no: ) 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2042$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2045 ;; 2046 no:yes:* ) 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2048$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2050$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2052$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2054$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2056$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2057 ;; 2058esac 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2060$as_echo_n "checking for $2... " >&6; } 2061if eval \${$3+:} false; then : 2062 $as_echo_n "(cached) " >&6 2063else 2064 eval "$3=\$ac_header_compiler" 2065fi 2066eval ac_res=\$$3 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2068$as_echo "$ac_res" >&6; } 2069fi 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2071 2072} # ac_fn_c_check_header_mongrel 2073cat >config.log <<_ACEOF 2074This file contains any messages produced by compilers while 2075running configure, to aid debugging if configure makes a mistake. 2076 2077It was created by sqlite $as_me 3.25.0, which was 2078generated by GNU Autoconf 2.69. Invocation command line was 2079 2080 $ $0 $@ 2081 2082_ACEOF 2083exec 5>>config.log 2084{ 2085cat <<_ASUNAME 2086## --------- ## 2087## Platform. ## 2088## --------- ## 2089 2090hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2091uname -m = `(uname -m) 2>/dev/null || echo unknown` 2092uname -r = `(uname -r) 2>/dev/null || echo unknown` 2093uname -s = `(uname -s) 2>/dev/null || echo unknown` 2094uname -v = `(uname -v) 2>/dev/null || echo unknown` 2095 2096/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2097/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2098 2099/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2100/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2101/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2102/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2103/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2104/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2105/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2106 2107_ASUNAME 2108 2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2110for as_dir in $PATH 2111do 2112 IFS=$as_save_IFS 2113 test -z "$as_dir" && as_dir=. 2114 $as_echo "PATH: $as_dir" 2115 done 2116IFS=$as_save_IFS 2117 2118} >&5 2119 2120cat >&5 <<_ACEOF 2121 2122 2123## ----------- ## 2124## Core tests. ## 2125## ----------- ## 2126 2127_ACEOF 2128 2129 2130# Keep a trace of the command line. 2131# Strip out --no-create and --no-recursion so they do not pile up. 2132# Strip out --silent because we don't want to record it for future runs. 2133# Also quote any args containing shell meta-characters. 2134# Make two passes to allow for proper duplicate-argument suppression. 2135ac_configure_args= 2136ac_configure_args0= 2137ac_configure_args1= 2138ac_must_keep_next=false 2139for ac_pass in 1 2 2140do 2141 for ac_arg 2142 do 2143 case $ac_arg in 2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2146 | -silent | --silent | --silen | --sile | --sil) 2147 continue ;; 2148 *\'*) 2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2150 esac 2151 case $ac_pass in 2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2153 2) 2154 as_fn_append ac_configure_args1 " '$ac_arg'" 2155 if test $ac_must_keep_next = true; then 2156 ac_must_keep_next=false # Got value, back to normal. 2157 else 2158 case $ac_arg in 2159 *=* | --config-cache | -C | -disable-* | --disable-* \ 2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2162 | -with-* | --with-* | -without-* | --without-* | --x) 2163 case "$ac_configure_args0 " in 2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2165 esac 2166 ;; 2167 -* ) ac_must_keep_next=true ;; 2168 esac 2169 fi 2170 as_fn_append ac_configure_args " '$ac_arg'" 2171 ;; 2172 esac 2173 done 2174done 2175{ ac_configure_args0=; unset ac_configure_args0;} 2176{ ac_configure_args1=; unset ac_configure_args1;} 2177 2178# When interrupted or exit'd, cleanup temporary files, and complete 2179# config.log. We remove comments because anyway the quotes in there 2180# would cause problems or look ugly. 2181# WARNING: Use '\'' to represent an apostrophe within the trap. 2182# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2183trap 'exit_status=$? 2184 # Save into config.log some information that might help in debugging. 2185 { 2186 echo 2187 2188 $as_echo "## ---------------- ## 2189## Cache variables. ## 2190## ---------------- ##" 2191 echo 2192 # The following way of writing the cache mishandles newlines in values, 2193( 2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2195 eval ac_val=\$$ac_var 2196 case $ac_val in #( 2197 *${as_nl}*) 2198 case $ac_var in #( 2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2200$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2201 esac 2202 case $ac_var in #( 2203 _ | IFS | as_nl) ;; #( 2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2205 *) { eval $ac_var=; unset $ac_var;} ;; 2206 esac ;; 2207 esac 2208 done 2209 (set) 2>&1 | 2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2211 *${as_nl}ac_space=\ *) 2212 sed -n \ 2213 "s/'\''/'\''\\\\'\'''\''/g; 2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2215 ;; #( 2216 *) 2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2218 ;; 2219 esac | 2220 sort 2221) 2222 echo 2223 2224 $as_echo "## ----------------- ## 2225## Output variables. ## 2226## ----------------- ##" 2227 echo 2228 for ac_var in $ac_subst_vars 2229 do 2230 eval ac_val=\$$ac_var 2231 case $ac_val in 2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2233 esac 2234 $as_echo "$ac_var='\''$ac_val'\''" 2235 done | sort 2236 echo 2237 2238 if test -n "$ac_subst_files"; then 2239 $as_echo "## ------------------- ## 2240## File substitutions. ## 2241## ------------------- ##" 2242 echo 2243 for ac_var in $ac_subst_files 2244 do 2245 eval ac_val=\$$ac_var 2246 case $ac_val in 2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2248 esac 2249 $as_echo "$ac_var='\''$ac_val'\''" 2250 done | sort 2251 echo 2252 fi 2253 2254 if test -s confdefs.h; then 2255 $as_echo "## ----------- ## 2256## confdefs.h. ## 2257## ----------- ##" 2258 echo 2259 cat confdefs.h 2260 echo 2261 fi 2262 test "$ac_signal" != 0 && 2263 $as_echo "$as_me: caught signal $ac_signal" 2264 $as_echo "$as_me: exit $exit_status" 2265 } >&5 2266 rm -f core *.core core.conftest.* && 2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2268 exit $exit_status 2269' 0 2270for ac_signal in 1 2 13 15; do 2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2272done 2273ac_signal=0 2274 2275# confdefs.h avoids OS command line length limits that DEFS can exceed. 2276rm -f -r conftest* confdefs.h 2277 2278$as_echo "/* confdefs.h */" > confdefs.h 2279 2280# Predefined preprocessor variables. 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_NAME "$PACKAGE_NAME" 2284_ACEOF 2285 2286cat >>confdefs.h <<_ACEOF 2287#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2288_ACEOF 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_VERSION "$PACKAGE_VERSION" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_STRING "$PACKAGE_STRING" 2296_ACEOF 2297 2298cat >>confdefs.h <<_ACEOF 2299#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2300_ACEOF 2301 2302cat >>confdefs.h <<_ACEOF 2303#define PACKAGE_URL "$PACKAGE_URL" 2304_ACEOF 2305 2306 2307# Let the site file select an alternate cache file if it wants to. 2308# Prefer an explicitly selected file to automatically selected ones. 2309ac_site_file1=NONE 2310ac_site_file2=NONE 2311if test -n "$CONFIG_SITE"; then 2312 # We do not want a PATH search for config.site. 2313 case $CONFIG_SITE in #(( 2314 -*) ac_site_file1=./$CONFIG_SITE;; 2315 */*) ac_site_file1=$CONFIG_SITE;; 2316 *) ac_site_file1=./$CONFIG_SITE;; 2317 esac 2318elif test "x$prefix" != xNONE; then 2319 ac_site_file1=$prefix/share/config.site 2320 ac_site_file2=$prefix/etc/config.site 2321else 2322 ac_site_file1=$ac_default_prefix/share/config.site 2323 ac_site_file2=$ac_default_prefix/etc/config.site 2324fi 2325for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2326do 2327 test "x$ac_site_file" = xNONE && continue 2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2330$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2331 sed 's/^/| /' "$ac_site_file" >&5 2332 . "$ac_site_file" \ 2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2335as_fn_error $? "failed to load site script $ac_site_file 2336See \`config.log' for more details" "$LINENO" 5; } 2337 fi 2338done 2339 2340if test -r "$cache_file"; then 2341 # Some versions of bash will fail to source /dev/null (special files 2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2345$as_echo "$as_me: loading cache $cache_file" >&6;} 2346 case $cache_file in 2347 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2348 *) . "./$cache_file";; 2349 esac 2350 fi 2351else 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2353$as_echo "$as_me: creating cache $cache_file" >&6;} 2354 >$cache_file 2355fi 2356 2357# Check that the precious variables saved in the cache have kept the same 2358# value. 2359ac_cache_corrupted=false 2360for ac_var in $ac_precious_vars; do 2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2362 eval ac_new_set=\$ac_env_${ac_var}_set 2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2364 eval ac_new_val=\$ac_env_${ac_var}_value 2365 case $ac_old_set,$ac_new_set in 2366 set,) 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2369 ac_cache_corrupted=: ;; 2370 ,set) 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2373 ac_cache_corrupted=: ;; 2374 ,);; 2375 *) 2376 if test "x$ac_old_val" != "x$ac_new_val"; then 2377 # differences in whitespace do not lead to failure. 2378 ac_old_val_w=`echo x $ac_old_val` 2379 ac_new_val_w=`echo x $ac_new_val` 2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2383 ac_cache_corrupted=: 2384 else 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2387 eval $ac_var=\$ac_old_val 2388 fi 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2393 fi;; 2394 esac 2395 # Pass precious variables to config.status. 2396 if test "$ac_new_set" = set; then 2397 case $ac_new_val in 2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2399 *) ac_arg=$ac_var=$ac_new_val ;; 2400 esac 2401 case " $ac_configure_args " in 2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2404 esac 2405 fi 2406done 2407if $ac_cache_corrupted; then 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2413fi 2414## -------------------- ## 2415## Main body of script. ## 2416## -------------------- ## 2417 2418ac_ext=c 2419ac_cpp='$CPP $CPPFLAGS' 2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2422ac_compiler_gnu=$ac_cv_c_compiler_gnu 2423 2424 2425 2426sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2427if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2428as_fn_error $? "configure script is out of date: 2429 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2430 top level VERSION file = $sqlite_version_sanity_check 2431please regen with autoconf" "$LINENO" 5 2432fi 2433 2434######### 2435# Programs needed 2436# 2437case `pwd` in 2438 *\ * | *\ *) 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2441esac 2442 2443 2444 2445macro_version='2.2.6' 2446macro_revision='1.3012' 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460ltmain="$ac_aux_dir/ltmain.sh" 2461 2462ac_aux_dir= 2463for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2464 if test -f "$ac_dir/install-sh"; then 2465 ac_aux_dir=$ac_dir 2466 ac_install_sh="$ac_aux_dir/install-sh -c" 2467 break 2468 elif test -f "$ac_dir/install.sh"; then 2469 ac_aux_dir=$ac_dir 2470 ac_install_sh="$ac_aux_dir/install.sh -c" 2471 break 2472 elif test -f "$ac_dir/shtool"; then 2473 ac_aux_dir=$ac_dir 2474 ac_install_sh="$ac_aux_dir/shtool install -c" 2475 break 2476 fi 2477done 2478if test -z "$ac_aux_dir"; then 2479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2480fi 2481 2482# These three variables are undocumented and unsupported, 2483# and are intended to be withdrawn in a future Autoconf release. 2484# They can cause serious problems if a builder's source tree is in a directory 2485# whose full name contains unusual characters. 2486ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2487ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2488ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2489 2490 2491# Make sure we can run config.sub. 2492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2494 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2496$as_echo_n "checking build system type... " >&6; } 2497if ${ac_cv_build+:} false; then : 2498 $as_echo_n "(cached) " >&6 2499else 2500 ac_build_alias=$build_alias 2501test "x$ac_build_alias" = x && 2502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2503test "x$ac_build_alias" = x && 2504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2507 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2510$as_echo "$ac_cv_build" >&6; } 2511case $ac_cv_build in 2512*-*-*) ;; 2513*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2514esac 2515build=$ac_cv_build 2516ac_save_IFS=$IFS; IFS='-' 2517set x $ac_cv_build 2518shift 2519build_cpu=$1 2520build_vendor=$2 2521shift; shift 2522# Remember, the first character of IFS is used to create $*, 2523# except with old shells: 2524build_os=$* 2525IFS=$ac_save_IFS 2526case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2527 2528 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2530$as_echo_n "checking host system type... " >&6; } 2531if ${ac_cv_host+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533else 2534 if test "x$host_alias" = x; then 2535 ac_cv_host=$ac_cv_build 2536else 2537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2539fi 2540 2541fi 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2543$as_echo "$ac_cv_host" >&6; } 2544case $ac_cv_host in 2545*-*-*) ;; 2546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2547esac 2548host=$ac_cv_host 2549ac_save_IFS=$IFS; IFS='-' 2550set x $ac_cv_host 2551shift 2552host_cpu=$1 2553host_vendor=$2 2554shift; shift 2555# Remember, the first character of IFS is used to create $*, 2556# except with old shells: 2557host_os=$* 2558IFS=$ac_save_IFS 2559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2560 2561 2562ac_ext=c 2563ac_cpp='$CPP $CPPFLAGS' 2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2566ac_compiler_gnu=$ac_cv_c_compiler_gnu 2567if test -n "$ac_tool_prefix"; then 2568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2569set dummy ${ac_tool_prefix}gcc; ac_word=$2 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2571$as_echo_n "checking for $ac_word... " >&6; } 2572if ${ac_cv_prog_CC+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test -n "$CC"; then 2576 ac_cv_prog_CC="$CC" # Let the user override the test. 2577else 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2585 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2587 break 2 2588 fi 2589done 2590 done 2591IFS=$as_save_IFS 2592 2593fi 2594fi 2595CC=$ac_cv_prog_CC 2596if test -n "$CC"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2598$as_echo "$CC" >&6; } 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 2605fi 2606if test -z "$ac_cv_prog_CC"; then 2607 ac_ct_CC=$CC 2608 # Extract the first word of "gcc", so it can be a program name with args. 2609set dummy gcc; ac_word=$2 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2611$as_echo_n "checking for $ac_word... " >&6; } 2612if ${ac_cv_prog_ac_ct_CC+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 if test -n "$ac_ct_CC"; then 2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_ac_ct_CC="gcc" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635ac_ct_CC=$ac_cv_prog_ac_ct_CC 2636if test -n "$ac_ct_CC"; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2638$as_echo "$ac_ct_CC" >&6; } 2639else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641$as_echo "no" >&6; } 2642fi 2643 2644 if test "x$ac_ct_CC" = x; then 2645 CC="" 2646 else 2647 case $cross_compiling:$ac_tool_warned in 2648yes:) 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2651ac_tool_warned=yes ;; 2652esac 2653 CC=$ac_ct_CC 2654 fi 2655else 2656 CC="$ac_cv_prog_CC" 2657fi 2658 2659if test -z "$CC"; then 2660 if test -n "$ac_tool_prefix"; then 2661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2662set dummy ${ac_tool_prefix}cc; ac_word=$2 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664$as_echo_n "checking for $ac_word... " >&6; } 2665if ${ac_cv_prog_CC+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$CC"; then 2669 ac_cv_prog_CC="$CC" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_CC="${ac_tool_prefix}cc" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688CC=$ac_cv_prog_CC 2689if test -n "$CC"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2691$as_echo "$CC" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 2698 fi 2699fi 2700if test -z "$CC"; then 2701 # Extract the first word of "cc", so it can be a program name with args. 2702set dummy cc; ac_word=$2 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704$as_echo_n "checking for $ac_word... " >&6; } 2705if ${ac_cv_prog_CC+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 if test -n "$CC"; then 2709 ac_cv_prog_CC="$CC" # Let the user override the test. 2710else 2711 ac_prog_rejected=no 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2720 ac_prog_rejected=yes 2721 continue 2722 fi 2723 ac_cv_prog_CC="cc" 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731if test $ac_prog_rejected = yes; then 2732 # We found a bogon in the path, so make sure we never use it. 2733 set dummy $ac_cv_prog_CC 2734 shift 2735 if test $# != 0; then 2736 # We chose a different compiler from the bogus one. 2737 # However, it has the same basename, so the bogon will be chosen 2738 # first if we set CC to just the basename; use the full file name. 2739 shift 2740 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2741 fi 2742fi 2743fi 2744fi 2745CC=$ac_cv_prog_CC 2746if test -n "$CC"; then 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2748$as_echo "$CC" >&6; } 2749else 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2751$as_echo "no" >&6; } 2752fi 2753 2754 2755fi 2756if test -z "$CC"; then 2757 if test -n "$ac_tool_prefix"; then 2758 for ac_prog in cl.exe 2759 do 2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2761set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763$as_echo_n "checking for $ac_word... " >&6; } 2764if ${ac_cv_prog_CC+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 if test -n "$CC"; then 2768 ac_cv_prog_CC="$CC" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2777 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787CC=$ac_cv_prog_CC 2788if test -n "$CC"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2790$as_echo "$CC" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797 test -n "$CC" && break 2798 done 2799fi 2800if test -z "$CC"; then 2801 ac_ct_CC=$CC 2802 for ac_prog in cl.exe 2803do 2804 # Extract the first word of "$ac_prog", so it can be a program name with args. 2805set dummy $ac_prog; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_ac_ct_CC+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$ac_ct_CC"; then 2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_ac_ct_CC="$ac_prog" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831ac_ct_CC=$ac_cv_prog_ac_ct_CC 2832if test -n "$ac_ct_CC"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2834$as_echo "$ac_ct_CC" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841 test -n "$ac_ct_CC" && break 2842done 2843 2844 if test "x$ac_ct_CC" = x; then 2845 CC="" 2846 else 2847 case $cross_compiling:$ac_tool_warned in 2848yes:) 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2851ac_tool_warned=yes ;; 2852esac 2853 CC=$ac_ct_CC 2854 fi 2855fi 2856 2857fi 2858 2859 2860test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2862as_fn_error $? "no acceptable C compiler found in \$PATH 2863See \`config.log' for more details" "$LINENO" 5; } 2864 2865# Provide some information about the compiler. 2866$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2867set X $ac_compile 2868ac_compiler=$2 2869for ac_option in --version -v -V -qversion; do 2870 { { ac_try="$ac_compiler $ac_option >&5" 2871case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874esac 2875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2876$as_echo "$ac_try_echo"; } >&5 2877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2878 ac_status=$? 2879 if test -s conftest.err; then 2880 sed '10a\ 2881... rest of stderr output deleted ... 2882 10q' conftest.err >conftest.er1 2883 cat conftest.er1 >&5 2884 fi 2885 rm -f conftest.er1 conftest.err 2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2887 test $ac_status = 0; } 2888done 2889 2890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896 2897 ; 2898 return 0; 2899} 2900_ACEOF 2901ac_clean_files_save=$ac_clean_files 2902ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2903# Try to create an executable without -o first, disregard a.out. 2904# It will help us diagnose broken compilers, and finding out an intuition 2905# of exeext. 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2907$as_echo_n "checking whether the C compiler works... " >&6; } 2908ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2909 2910# The possible output files: 2911ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2912 2913ac_rmfiles= 2914for ac_file in $ac_files 2915do 2916 case $ac_file in 2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2919 esac 2920done 2921rm -f $ac_rmfiles 2922 2923if { { ac_try="$ac_link_default" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2929$as_echo "$ac_try_echo"; } >&5 2930 (eval "$ac_link_default") 2>&5 2931 ac_status=$? 2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2933 test $ac_status = 0; }; then : 2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2935# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2936# in a Makefile. We should not override ac_cv_exeext if it was cached, 2937# so that the user can short-circuit this test for compilers unknown to 2938# Autoconf. 2939for ac_file in $ac_files '' 2940do 2941 test -f "$ac_file" || continue 2942 case $ac_file in 2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2944 ;; 2945 [ab].out ) 2946 # We found the default executable, but exeext='' is most 2947 # certainly right. 2948 break;; 2949 *.* ) 2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2951 then :; else 2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2953 fi 2954 # We set ac_cv_exeext here because the later test for it is not 2955 # safe: cross compilers may not add the suffix if given an `-o' 2956 # argument, so we may need to know it at that point already. 2957 # Even if this section looks crufty: it has the advantage of 2958 # actually working. 2959 break;; 2960 * ) 2961 break;; 2962 esac 2963done 2964test "$ac_cv_exeext" = no && ac_cv_exeext= 2965 2966else 2967 ac_file='' 2968fi 2969if test -z "$ac_file"; then : 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972$as_echo "$as_me: failed program was:" >&5 2973sed 's/^/| /' conftest.$ac_ext >&5 2974 2975{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2977as_fn_error 77 "C compiler cannot create executables 2978See \`config.log' for more details" "$LINENO" 5; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2981$as_echo "yes" >&6; } 2982fi 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2984$as_echo_n "checking for C compiler default output file name... " >&6; } 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2986$as_echo "$ac_file" >&6; } 2987ac_exeext=$ac_cv_exeext 2988 2989rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2990ac_clean_files=$ac_clean_files_save 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2992$as_echo_n "checking for suffix of executables... " >&6; } 2993if { { ac_try="$ac_link" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2999$as_echo "$ac_try_echo"; } >&5 3000 (eval "$ac_link") 2>&5 3001 ac_status=$? 3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3003 test $ac_status = 0; }; then : 3004 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3005# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3006# work properly (i.e., refer to `conftest.exe'), while it won't with 3007# `rm'. 3008for ac_file in conftest.exe conftest conftest.*; do 3009 test -f "$ac_file" || continue 3010 case $ac_file in 3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3013 break;; 3014 * ) break;; 3015 esac 3016done 3017else 3018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3020as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3021See \`config.log' for more details" "$LINENO" 5; } 3022fi 3023rm -f conftest conftest$ac_cv_exeext 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3025$as_echo "$ac_cv_exeext" >&6; } 3026 3027rm -f conftest.$ac_ext 3028EXEEXT=$ac_cv_exeext 3029ac_exeext=$EXEEXT 3030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3031/* end confdefs.h. */ 3032#include <stdio.h> 3033int 3034main () 3035{ 3036FILE *f = fopen ("conftest.out", "w"); 3037 return ferror (f) || fclose (f) != 0; 3038 3039 ; 3040 return 0; 3041} 3042_ACEOF 3043ac_clean_files="$ac_clean_files conftest.out" 3044# Check that the compiler produces executables we can run. If not, either 3045# the compiler is broken, or we cross compile. 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3047$as_echo_n "checking whether we are cross compiling... " >&6; } 3048if test "$cross_compiling" != yes; then 3049 { { ac_try="$ac_link" 3050case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053esac 3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3055$as_echo "$ac_try_echo"; } >&5 3056 (eval "$ac_link") 2>&5 3057 ac_status=$? 3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3059 test $ac_status = 0; } 3060 if { ac_try='./conftest$ac_cv_exeext' 3061 { { case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3066$as_echo "$ac_try_echo"; } >&5 3067 (eval "$ac_try") 2>&5 3068 ac_status=$? 3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3070 test $ac_status = 0; }; }; then 3071 cross_compiling=no 3072 else 3073 if test "$cross_compiling" = maybe; then 3074 cross_compiling=yes 3075 else 3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3078as_fn_error $? "cannot run C compiled programs. 3079If you meant to cross compile, use \`--host'. 3080See \`config.log' for more details" "$LINENO" 5; } 3081 fi 3082 fi 3083fi 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3085$as_echo "$cross_compiling" >&6; } 3086 3087rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3088ac_clean_files=$ac_clean_files_save 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3090$as_echo_n "checking for suffix of object files... " >&6; } 3091if ${ac_cv_objext+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3095/* end confdefs.h. */ 3096 3097int 3098main () 3099{ 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105rm -f conftest.o conftest.obj 3106if { { ac_try="$ac_compile" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3112$as_echo "$ac_try_echo"; } >&5 3113 (eval "$ac_compile") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3116 test $ac_status = 0; }; then : 3117 for ac_file in conftest.o conftest.obj conftest.*; do 3118 test -f "$ac_file" || continue; 3119 case $ac_file in 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3122 break;; 3123 esac 3124done 3125else 3126 $as_echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3131as_fn_error $? "cannot compute suffix of object files: cannot compile 3132See \`config.log' for more details" "$LINENO" 5; } 3133fi 3134rm -f conftest.$ac_cv_objext conftest.$ac_ext 3135fi 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3137$as_echo "$ac_cv_objext" >&6; } 3138OBJEXT=$ac_cv_objext 3139ac_objext=$OBJEXT 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3141$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3142if ${ac_cv_c_compiler_gnu+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3146/* end confdefs.h. */ 3147 3148int 3149main () 3150{ 3151#ifndef __GNUC__ 3152 choke me 3153#endif 3154 3155 ; 3156 return 0; 3157} 3158_ACEOF 3159if ac_fn_c_try_compile "$LINENO"; then : 3160 ac_compiler_gnu=yes 3161else 3162 ac_compiler_gnu=no 3163fi 3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3165ac_cv_c_compiler_gnu=$ac_compiler_gnu 3166 3167fi 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3169$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3170if test $ac_compiler_gnu = yes; then 3171 GCC=yes 3172else 3173 GCC= 3174fi 3175ac_test_CFLAGS=${CFLAGS+set} 3176ac_save_CFLAGS=$CFLAGS 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3178$as_echo_n "checking whether $CC accepts -g... " >&6; } 3179if ${ac_cv_prog_cc_g+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 ac_save_c_werror_flag=$ac_c_werror_flag 3183 ac_c_werror_flag=yes 3184 ac_cv_prog_cc_g=no 3185 CFLAGS="-g" 3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3187/* end confdefs.h. */ 3188 3189int 3190main () 3191{ 3192 3193 ; 3194 return 0; 3195} 3196_ACEOF 3197if ac_fn_c_try_compile "$LINENO"; then : 3198 ac_cv_prog_cc_g=yes 3199else 3200 CFLAGS="" 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202/* end confdefs.h. */ 3203 3204int 3205main () 3206{ 3207 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212if ac_fn_c_try_compile "$LINENO"; then : 3213 3214else 3215 ac_c_werror_flag=$ac_save_c_werror_flag 3216 CFLAGS="-g" 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219 3220int 3221main () 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228if ac_fn_c_try_compile "$LINENO"; then : 3229 ac_cv_prog_cc_g=yes 3230fi 3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3232fi 3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3234fi 3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3236 ac_c_werror_flag=$ac_save_c_werror_flag 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3239$as_echo "$ac_cv_prog_cc_g" >&6; } 3240if test "$ac_test_CFLAGS" = set; then 3241 CFLAGS=$ac_save_CFLAGS 3242elif test $ac_cv_prog_cc_g = yes; then 3243 if test "$GCC" = yes; then 3244 CFLAGS="-g -O2" 3245 else 3246 CFLAGS="-g" 3247 fi 3248else 3249 if test "$GCC" = yes; then 3250 CFLAGS="-O2" 3251 else 3252 CFLAGS= 3253 fi 3254fi 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3256$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3257if ${ac_cv_prog_cc_c89+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 ac_cv_prog_cc_c89=no 3261ac_save_CC=$CC 3262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3263/* end confdefs.h. */ 3264#include <stdarg.h> 3265#include <stdio.h> 3266struct stat; 3267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3268struct buf { int x; }; 3269FILE * (*rcsopen) (struct buf *, struct stat *, int); 3270static char *e (p, i) 3271 char **p; 3272 int i; 3273{ 3274 return p[i]; 3275} 3276static char *f (char * (*g) (char **, int), char **p, ...) 3277{ 3278 char *s; 3279 va_list v; 3280 va_start (v,p); 3281 s = g (p, va_arg (v,int)); 3282 va_end (v); 3283 return s; 3284} 3285 3286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3287 function prototypes and stuff, but not '\xHH' hex character constants. 3288 These don't provoke an error unfortunately, instead are silently treated 3289 as 'x'. The following induces an error, until -std is added to get 3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3291 array size at least. It's necessary to write '\x00'==0 to get something 3292 that's true only with -std. */ 3293int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3294 3295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3296 inside strings and character constants. */ 3297#define FOO(x) 'x' 3298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3299 3300int test (int i, double x); 3301struct s1 {int (*f) (int a);}; 3302struct s2 {int (*f) (double a);}; 3303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3304int argc; 3305char **argv; 3306int 3307main () 3308{ 3309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3310 ; 3311 return 0; 3312} 3313_ACEOF 3314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3316do 3317 CC="$ac_save_CC $ac_arg" 3318 if ac_fn_c_try_compile "$LINENO"; then : 3319 ac_cv_prog_cc_c89=$ac_arg 3320fi 3321rm -f core conftest.err conftest.$ac_objext 3322 test "x$ac_cv_prog_cc_c89" != "xno" && break 3323done 3324rm -f conftest.$ac_ext 3325CC=$ac_save_CC 3326 3327fi 3328# AC_CACHE_VAL 3329case "x$ac_cv_prog_cc_c89" in 3330 x) 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3332$as_echo "none needed" >&6; } ;; 3333 xno) 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3335$as_echo "unsupported" >&6; } ;; 3336 *) 3337 CC="$CC $ac_cv_prog_cc_c89" 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3340esac 3341if test "x$ac_cv_prog_cc_c89" != xno; then : 3342 3343fi 3344 3345ac_ext=c 3346ac_cpp='$CPP $CPPFLAGS' 3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3349ac_compiler_gnu=$ac_cv_c_compiler_gnu 3350 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3352$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3353if ${ac_cv_path_SED+:} false; then : 3354 $as_echo_n "(cached) " >&6 3355else 3356 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3357 for ac_i in 1 2 3 4 5 6 7; do 3358 ac_script="$ac_script$as_nl$ac_script" 3359 done 3360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3361 { ac_script=; unset ac_script;} 3362 if test -z "$SED"; then 3363 ac_path_SED_found=false 3364 # Loop through the user's path and test for each of PROGNAME-LIST 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_prog in sed gsed; do 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3373 as_fn_executable_p "$ac_path_SED" || continue 3374# Check for GNU ac_path_SED and select it if it is found. 3375 # Check for GNU $ac_path_SED 3376case `"$ac_path_SED" --version 2>&1` in 3377*GNU*) 3378 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3379*) 3380 ac_count=0 3381 $as_echo_n 0123456789 >"conftest.in" 3382 while : 3383 do 3384 cat "conftest.in" "conftest.in" >"conftest.tmp" 3385 mv "conftest.tmp" "conftest.in" 3386 cp "conftest.in" "conftest.nl" 3387 $as_echo '' >> "conftest.nl" 3388 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3390 as_fn_arith $ac_count + 1 && ac_count=$as_val 3391 if test $ac_count -gt ${ac_path_SED_max-0}; then 3392 # Best one so far, save it but keep looking for a better one 3393 ac_cv_path_SED="$ac_path_SED" 3394 ac_path_SED_max=$ac_count 3395 fi 3396 # 10*(2^10) chars as input seems more than enough 3397 test $ac_count -gt 10 && break 3398 done 3399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3400esac 3401 3402 $ac_path_SED_found && break 3 3403 done 3404 done 3405 done 3406IFS=$as_save_IFS 3407 if test -z "$ac_cv_path_SED"; then 3408 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3409 fi 3410else 3411 ac_cv_path_SED=$SED 3412fi 3413 3414fi 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3416$as_echo "$ac_cv_path_SED" >&6; } 3417 SED="$ac_cv_path_SED" 3418 rm -f conftest.sed 3419 3420test -z "$SED" && SED=sed 3421Xsed="$SED -e 1s/^X//" 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3434$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3435if ${ac_cv_path_GREP+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 if test -z "$GREP"; then 3439 ac_path_GREP_found=false 3440 # Loop through the user's path and test for each of PROGNAME-LIST 3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_prog in grep ggrep; do 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3449 as_fn_executable_p "$ac_path_GREP" || continue 3450# Check for GNU ac_path_GREP and select it if it is found. 3451 # Check for GNU $ac_path_GREP 3452case `"$ac_path_GREP" --version 2>&1` in 3453*GNU*) 3454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3455*) 3456 ac_count=0 3457 $as_echo_n 0123456789 >"conftest.in" 3458 while : 3459 do 3460 cat "conftest.in" "conftest.in" >"conftest.tmp" 3461 mv "conftest.tmp" "conftest.in" 3462 cp "conftest.in" "conftest.nl" 3463 $as_echo 'GREP' >> "conftest.nl" 3464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3466 as_fn_arith $ac_count + 1 && ac_count=$as_val 3467 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3468 # Best one so far, save it but keep looking for a better one 3469 ac_cv_path_GREP="$ac_path_GREP" 3470 ac_path_GREP_max=$ac_count 3471 fi 3472 # 10*(2^10) chars as input seems more than enough 3473 test $ac_count -gt 10 && break 3474 done 3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3476esac 3477 3478 $ac_path_GREP_found && break 3 3479 done 3480 done 3481 done 3482IFS=$as_save_IFS 3483 if test -z "$ac_cv_path_GREP"; then 3484 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3485 fi 3486else 3487 ac_cv_path_GREP=$GREP 3488fi 3489 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3492$as_echo "$ac_cv_path_GREP" >&6; } 3493 GREP="$ac_cv_path_GREP" 3494 3495 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3497$as_echo_n "checking for egrep... " >&6; } 3498if ${ac_cv_path_EGREP+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3502 then ac_cv_path_EGREP="$GREP -E" 3503 else 3504 if test -z "$EGREP"; then 3505 ac_path_EGREP_found=false 3506 # Loop through the user's path and test for each of PROGNAME-LIST 3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3509do 3510 IFS=$as_save_IFS 3511 test -z "$as_dir" && as_dir=. 3512 for ac_prog in egrep; do 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3515 as_fn_executable_p "$ac_path_EGREP" || continue 3516# Check for GNU ac_path_EGREP and select it if it is found. 3517 # Check for GNU $ac_path_EGREP 3518case `"$ac_path_EGREP" --version 2>&1` in 3519*GNU*) 3520 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3521*) 3522 ac_count=0 3523 $as_echo_n 0123456789 >"conftest.in" 3524 while : 3525 do 3526 cat "conftest.in" "conftest.in" >"conftest.tmp" 3527 mv "conftest.tmp" "conftest.in" 3528 cp "conftest.in" "conftest.nl" 3529 $as_echo 'EGREP' >> "conftest.nl" 3530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3532 as_fn_arith $ac_count + 1 && ac_count=$as_val 3533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3534 # Best one so far, save it but keep looking for a better one 3535 ac_cv_path_EGREP="$ac_path_EGREP" 3536 ac_path_EGREP_max=$ac_count 3537 fi 3538 # 10*(2^10) chars as input seems more than enough 3539 test $ac_count -gt 10 && break 3540 done 3541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3542esac 3543 3544 $ac_path_EGREP_found && break 3 3545 done 3546 done 3547 done 3548IFS=$as_save_IFS 3549 if test -z "$ac_cv_path_EGREP"; then 3550 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3551 fi 3552else 3553 ac_cv_path_EGREP=$EGREP 3554fi 3555 3556 fi 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3559$as_echo "$ac_cv_path_EGREP" >&6; } 3560 EGREP="$ac_cv_path_EGREP" 3561 3562 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3564$as_echo_n "checking for fgrep... " >&6; } 3565if ${ac_cv_path_FGREP+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3569 then ac_cv_path_FGREP="$GREP -F" 3570 else 3571 if test -z "$FGREP"; then 3572 ac_path_FGREP_found=false 3573 # Loop through the user's path and test for each of PROGNAME-LIST 3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3576do 3577 IFS=$as_save_IFS 3578 test -z "$as_dir" && as_dir=. 3579 for ac_prog in fgrep; do 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3582 as_fn_executable_p "$ac_path_FGREP" || continue 3583# Check for GNU ac_path_FGREP and select it if it is found. 3584 # Check for GNU $ac_path_FGREP 3585case `"$ac_path_FGREP" --version 2>&1` in 3586*GNU*) 3587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3588*) 3589 ac_count=0 3590 $as_echo_n 0123456789 >"conftest.in" 3591 while : 3592 do 3593 cat "conftest.in" "conftest.in" >"conftest.tmp" 3594 mv "conftest.tmp" "conftest.in" 3595 cp "conftest.in" "conftest.nl" 3596 $as_echo 'FGREP' >> "conftest.nl" 3597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3599 as_fn_arith $ac_count + 1 && ac_count=$as_val 3600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3601 # Best one so far, save it but keep looking for a better one 3602 ac_cv_path_FGREP="$ac_path_FGREP" 3603 ac_path_FGREP_max=$ac_count 3604 fi 3605 # 10*(2^10) chars as input seems more than enough 3606 test $ac_count -gt 10 && break 3607 done 3608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3609esac 3610 3611 $ac_path_FGREP_found && break 3 3612 done 3613 done 3614 done 3615IFS=$as_save_IFS 3616 if test -z "$ac_cv_path_FGREP"; then 3617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3618 fi 3619else 3620 ac_cv_path_FGREP=$FGREP 3621fi 3622 3623 fi 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3626$as_echo "$ac_cv_path_FGREP" >&6; } 3627 FGREP="$ac_cv_path_FGREP" 3628 3629 3630test -z "$GREP" && GREP=grep 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650# Check whether --with-gnu-ld was given. 3651if test "${with_gnu_ld+set}" = set; then : 3652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3653else 3654 with_gnu_ld=no 3655fi 3656 3657ac_prog=ld 3658if test "$GCC" = yes; then 3659 # Check if gcc -print-prog-name=ld gives a path. 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3661$as_echo_n "checking for ld used by $CC... " >&6; } 3662 case $host in 3663 *-*-mingw*) 3664 # gcc leaves a trailing carriage return which upsets mingw 3665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3666 *) 3667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3668 esac 3669 case $ac_prog in 3670 # Accept absolute paths. 3671 [\\/]* | ?:[\\/]*) 3672 re_direlt='/[^/][^/]*/\.\./' 3673 # Canonicalize the pathname of ld 3674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3677 done 3678 test -z "$LD" && LD="$ac_prog" 3679 ;; 3680 "") 3681 # If it fails, then pretend we aren't using GCC. 3682 ac_prog=ld 3683 ;; 3684 *) 3685 # If it is relative, then search for the first ld in PATH. 3686 with_gnu_ld=unknown 3687 ;; 3688 esac 3689elif test "$with_gnu_ld" = yes; then 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3691$as_echo_n "checking for GNU ld... " >&6; } 3692else 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3694$as_echo_n "checking for non-GNU ld... " >&6; } 3695fi 3696if ${lt_cv_path_LD+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -z "$LD"; then 3700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3701 for ac_dir in $PATH; do 3702 IFS="$lt_save_ifs" 3703 test -z "$ac_dir" && ac_dir=. 3704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3705 lt_cv_path_LD="$ac_dir/$ac_prog" 3706 # Check to see if the program is GNU ld. I'd rather use --version, 3707 # but apparently some variants of GNU ld only accept -v. 3708 # Break only if it was the GNU/non-GNU ld that we prefer. 3709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3710 *GNU* | *'with BFD'*) 3711 test "$with_gnu_ld" != no && break 3712 ;; 3713 *) 3714 test "$with_gnu_ld" != yes && break 3715 ;; 3716 esac 3717 fi 3718 done 3719 IFS="$lt_save_ifs" 3720else 3721 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3722fi 3723fi 3724 3725LD="$lt_cv_path_LD" 3726if test -n "$LD"; then 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3728$as_echo "$LD" >&6; } 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731$as_echo "no" >&6; } 3732fi 3733test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3735$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3736if ${lt_cv_prog_gnu_ld+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3740case `$LD -v 2>&1 </dev/null` in 3741*GNU* | *'with BFD'*) 3742 lt_cv_prog_gnu_ld=yes 3743 ;; 3744*) 3745 lt_cv_prog_gnu_ld=no 3746 ;; 3747esac 3748fi 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3750$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3751with_gnu_ld=$lt_cv_prog_gnu_ld 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3762$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3763if ${lt_cv_path_NM+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 if test -n "$NM"; then 3767 # Let the user override the test. 3768 lt_cv_path_NM="$NM" 3769else 3770 lt_nm_to_check="${ac_tool_prefix}nm" 3771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3772 lt_nm_to_check="$lt_nm_to_check nm" 3773 fi 3774 for lt_tmp_nm in $lt_nm_to_check; do 3775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3777 IFS="$lt_save_ifs" 3778 test -z "$ac_dir" && ac_dir=. 3779 tmp_nm="$ac_dir/$lt_tmp_nm" 3780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3781 # Check to see if the nm accepts a BSD-compat flag. 3782 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3783 # nm: unknown option "B" ignored 3784 # Tru64's nm complains that /dev/null is an invalid object file 3785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3786 */dev/null* | *'Invalid file or object type'*) 3787 lt_cv_path_NM="$tmp_nm -B" 3788 break 3789 ;; 3790 *) 3791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3792 */dev/null*) 3793 lt_cv_path_NM="$tmp_nm -p" 3794 break 3795 ;; 3796 *) 3797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3798 continue # so that we can try to find one that supports BSD flags 3799 ;; 3800 esac 3801 ;; 3802 esac 3803 fi 3804 done 3805 IFS="$lt_save_ifs" 3806 done 3807 : ${lt_cv_path_NM=no} 3808fi 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3811$as_echo "$lt_cv_path_NM" >&6; } 3812if test "$lt_cv_path_NM" != "no"; then 3813 NM="$lt_cv_path_NM" 3814else 3815 # Didn't find any BSD compatible name lister, look for dumpbin. 3816 if test -n "$ac_tool_prefix"; then 3817 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3818 do 3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3822$as_echo_n "checking for $ac_word... " >&6; } 3823if ${ac_cv_prog_DUMPBIN+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 if test -n "$DUMPBIN"; then 3827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3828else 3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 test -z "$as_dir" && as_dir=. 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3838 break 2 3839 fi 3840done 3841 done 3842IFS=$as_save_IFS 3843 3844fi 3845fi 3846DUMPBIN=$ac_cv_prog_DUMPBIN 3847if test -n "$DUMPBIN"; then 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3849$as_echo "$DUMPBIN" >&6; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3852$as_echo "no" >&6; } 3853fi 3854 3855 3856 test -n "$DUMPBIN" && break 3857 done 3858fi 3859if test -z "$DUMPBIN"; then 3860 ac_ct_DUMPBIN=$DUMPBIN 3861 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3862do 3863 # Extract the first word of "$ac_prog", so it can be a program name with args. 3864set dummy $ac_prog; ac_word=$2 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3866$as_echo_n "checking for $ac_word... " >&6; } 3867if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -n "$ac_ct_DUMPBIN"; then 3871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3872else 3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3874for as_dir in $PATH 3875do 3876 IFS=$as_save_IFS 3877 test -z "$as_dir" && as_dir=. 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884done 3885 done 3886IFS=$as_save_IFS 3887 3888fi 3889fi 3890ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3891if test -n "$ac_ct_DUMPBIN"; then 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3893$as_echo "$ac_ct_DUMPBIN" >&6; } 3894else 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3896$as_echo "no" >&6; } 3897fi 3898 3899 3900 test -n "$ac_ct_DUMPBIN" && break 3901done 3902 3903 if test "x$ac_ct_DUMPBIN" = x; then 3904 DUMPBIN=":" 3905 else 3906 case $cross_compiling:$ac_tool_warned in 3907yes:) 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3910ac_tool_warned=yes ;; 3911esac 3912 DUMPBIN=$ac_ct_DUMPBIN 3913 fi 3914fi 3915 3916 3917 if test "$DUMPBIN" != ":"; then 3918 NM="$DUMPBIN" 3919 fi 3920fi 3921test -z "$NM" && NM=nm 3922 3923 3924 3925 3926 3927 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3929$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3930if ${lt_cv_nm_interface+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 lt_cv_nm_interface="BSD nm" 3934 echo "int some_variable = 0;" > conftest.$ac_ext 3935 (eval echo "\"\$as_me:3935: $ac_compile\"" >&5) 3936 (eval "$ac_compile" 2>conftest.err) 3937 cat conftest.err >&5 3938 (eval echo "\"\$as_me:3938: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3939 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3940 cat conftest.err >&5 3941 (eval echo "\"\$as_me:3941: output\"" >&5) 3942 cat conftest.out >&5 3943 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3944 lt_cv_nm_interface="MS dumpbin" 3945 fi 3946 rm -f conftest* 3947fi 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3949$as_echo "$lt_cv_nm_interface" >&6; } 3950 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3952$as_echo_n "checking whether ln -s works... " >&6; } 3953LN_S=$as_ln_s 3954if test "$LN_S" = "ln -s"; then 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3956$as_echo "yes" >&6; } 3957else 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3959$as_echo "no, using $LN_S" >&6; } 3960fi 3961 3962# find the maximum length of command line arguments 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3964$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3965if ${lt_cv_sys_max_cmd_len+:} false; then : 3966 $as_echo_n "(cached) " >&6 3967else 3968 i=0 3969 teststring="ABCD" 3970 3971 case $build_os in 3972 msdosdjgpp*) 3973 # On DJGPP, this test can blow up pretty badly due to problems in libc 3974 # (any single argument exceeding 2000 bytes causes a buffer overrun 3975 # during glob expansion). Even if it were fixed, the result of this 3976 # check would be larger than it should be. 3977 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3978 ;; 3979 3980 gnu*) 3981 # Under GNU Hurd, this test is not required because there is 3982 # no limit to the length of command line arguments. 3983 # Libtool will interpret -1 as no limit whatsoever 3984 lt_cv_sys_max_cmd_len=-1; 3985 ;; 3986 3987 cygwin* | mingw* | cegcc*) 3988 # On Win9x/ME, this test blows up -- it succeeds, but takes 3989 # about 5 minutes as the teststring grows exponentially. 3990 # Worse, since 9x/ME are not pre-emptively multitasking, 3991 # you end up with a "frozen" computer, even though with patience 3992 # the test eventually succeeds (with a max line length of 256k). 3993 # Instead, let's just punt: use the minimum linelength reported by 3994 # all of the supported platforms: 8192 (on NT/2K/XP). 3995 lt_cv_sys_max_cmd_len=8192; 3996 ;; 3997 3998 amigaos*) 3999 # On AmigaOS with pdksh, this test takes hours, literally. 4000 # So we just punt and use a minimum line length of 8192. 4001 lt_cv_sys_max_cmd_len=8192; 4002 ;; 4003 4004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4005 # This has been around since 386BSD, at least. Likely further. 4006 if test -x /sbin/sysctl; then 4007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4008 elif test -x /usr/sbin/sysctl; then 4009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4010 else 4011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4012 fi 4013 # And add a safety zone 4014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4016 ;; 4017 4018 interix*) 4019 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4020 lt_cv_sys_max_cmd_len=196608 4021 ;; 4022 4023 osf*) 4024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4026 # nice to cause kernel panics so lets avoid the loop below. 4027 # First set a reasonable default. 4028 lt_cv_sys_max_cmd_len=16384 4029 # 4030 if test -x /sbin/sysconfig; then 4031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4032 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4033 esac 4034 fi 4035 ;; 4036 sco3.2v5*) 4037 lt_cv_sys_max_cmd_len=102400 4038 ;; 4039 sysv5* | sco5v6* | sysv4.2uw2*) 4040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4041 if test -n "$kargmax"; then 4042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4043 else 4044 lt_cv_sys_max_cmd_len=32768 4045 fi 4046 ;; 4047 *) 4048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4049 if test -n "$lt_cv_sys_max_cmd_len"; then 4050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4052 else 4053 # Make teststring a little bigger before we do anything with it. 4054 # a 1K string should be a reasonable start. 4055 for i in 1 2 3 4 5 6 7 8 ; do 4056 teststring=$teststring$teststring 4057 done 4058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4059 # If test is not a shell built-in, we'll probably end up computing a 4060 # maximum length that is only half of the actual maximum length, but 4061 # we can't tell. 4062 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4063 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4064 test $i != 17 # 1/2 MB should be enough 4065 do 4066 i=`expr $i + 1` 4067 teststring=$teststring$teststring 4068 done 4069 # Only check the string length outside the loop. 4070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4071 teststring= 4072 # Add a significant safety factor because C++ compilers can tack on 4073 # massive amounts of additional arguments before passing them to the 4074 # linker. It appears as though 1/2 is a usable value. 4075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4076 fi 4077 ;; 4078 esac 4079 4080fi 4081 4082if test -n $lt_cv_sys_max_cmd_len ; then 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4084$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4085else 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4087$as_echo "none" >&6; } 4088fi 4089max_cmd_len=$lt_cv_sys_max_cmd_len 4090 4091 4092 4093 4094 4095 4096: ${CP="cp -f"} 4097: ${MV="mv -f"} 4098: ${RM="rm -f"} 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4101$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4102# Try some XSI features 4103xsi_shell=no 4104( _lt_dummy="a/b/c" 4105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4106 = c,a/b,, \ 4107 && eval 'test $(( 1 + 1 )) -eq 2 \ 4108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4109 && xsi_shell=yes 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4111$as_echo "$xsi_shell" >&6; } 4112 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4115$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4116lt_shell_append=no 4117( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4118 >/dev/null 2>&1 \ 4119 && lt_shell_append=yes 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4121$as_echo "$lt_shell_append" >&6; } 4122 4123 4124if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4125 lt_unset=unset 4126else 4127 lt_unset=false 4128fi 4129 4130 4131 4132 4133 4134# test EBCDIC or ASCII 4135case `echo X|tr X '\101'` in 4136 A) # ASCII based system 4137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4138 lt_SP2NL='tr \040 \012' 4139 lt_NL2SP='tr \015\012 \040\040' 4140 ;; 4141 *) # EBCDIC based system 4142 lt_SP2NL='tr \100 \n' 4143 lt_NL2SP='tr \r\n \100\100' 4144 ;; 4145esac 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4156$as_echo_n "checking for $LD option to reload object files... " >&6; } 4157if ${lt_cv_ld_reload_flag+:} false; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 lt_cv_ld_reload_flag='-r' 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4163$as_echo "$lt_cv_ld_reload_flag" >&6; } 4164reload_flag=$lt_cv_ld_reload_flag 4165case $reload_flag in 4166"" | " "*) ;; 4167*) reload_flag=" $reload_flag" ;; 4168esac 4169reload_cmds='$LD$reload_flag -o $output$reload_objs' 4170case $host_os in 4171 darwin*) 4172 if test "$GCC" = yes; then 4173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4174 else 4175 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4176 fi 4177 ;; 4178esac 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188if test -n "$ac_tool_prefix"; then 4189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4190set dummy ${ac_tool_prefix}objdump; ac_word=$2 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4192$as_echo_n "checking for $ac_word... " >&6; } 4193if ${ac_cv_prog_OBJDUMP+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 if test -n "$OBJDUMP"; then 4197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4198else 4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4200for as_dir in $PATH 4201do 4202 IFS=$as_save_IFS 4203 test -z "$as_dir" && as_dir=. 4204 for ac_exec_ext in '' $ac_executable_extensions; do 4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4208 break 2 4209 fi 4210done 4211 done 4212IFS=$as_save_IFS 4213 4214fi 4215fi 4216OBJDUMP=$ac_cv_prog_OBJDUMP 4217if test -n "$OBJDUMP"; then 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4219$as_echo "$OBJDUMP" >&6; } 4220else 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222$as_echo "no" >&6; } 4223fi 4224 4225 4226fi 4227if test -z "$ac_cv_prog_OBJDUMP"; then 4228 ac_ct_OBJDUMP=$OBJDUMP 4229 # Extract the first word of "objdump", so it can be a program name with args. 4230set dummy objdump; ac_word=$2 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4232$as_echo_n "checking for $ac_word... " >&6; } 4233if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 if test -n "$ac_ct_OBJDUMP"; then 4237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4238else 4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240for as_dir in $PATH 4241do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_exec_ext in '' $ac_executable_extensions; do 4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4246 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4248 break 2 4249 fi 4250done 4251 done 4252IFS=$as_save_IFS 4253 4254fi 4255fi 4256ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4257if test -n "$ac_ct_OBJDUMP"; then 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4259$as_echo "$ac_ct_OBJDUMP" >&6; } 4260else 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262$as_echo "no" >&6; } 4263fi 4264 4265 if test "x$ac_ct_OBJDUMP" = x; then 4266 OBJDUMP="false" 4267 else 4268 case $cross_compiling:$ac_tool_warned in 4269yes:) 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4272ac_tool_warned=yes ;; 4273esac 4274 OBJDUMP=$ac_ct_OBJDUMP 4275 fi 4276else 4277 OBJDUMP="$ac_cv_prog_OBJDUMP" 4278fi 4279 4280test -z "$OBJDUMP" && OBJDUMP=objdump 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4291$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4292if ${lt_cv_deplibs_check_method+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 lt_cv_file_magic_cmd='$MAGIC_CMD' 4296lt_cv_file_magic_test_file= 4297lt_cv_deplibs_check_method='unknown' 4298# Need to set the preceding variable on all platforms that support 4299# interlibrary dependencies. 4300# 'none' -- dependencies not supported. 4301# `unknown' -- same as none, but documents that we really don't know. 4302# 'pass_all' -- all dependencies passed with no checks. 4303# 'test_compile' -- check by making test program. 4304# 'file_magic [[regex]]' -- check by looking for files in library path 4305# which responds to the $file_magic_cmd with a given extended regex. 4306# If you have `file' or equivalent on your system and you're not sure 4307# whether `pass_all' will *always* work, you probably want this one. 4308 4309case $host_os in 4310aix[4-9]*) 4311 lt_cv_deplibs_check_method=pass_all 4312 ;; 4313 4314beos*) 4315 lt_cv_deplibs_check_method=pass_all 4316 ;; 4317 4318bsdi[45]*) 4319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4320 lt_cv_file_magic_cmd='/usr/bin/file -L' 4321 lt_cv_file_magic_test_file=/shlib/libc.so 4322 ;; 4323 4324cygwin*) 4325 # func_win32_libid is a shell function defined in ltmain.sh 4326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4327 lt_cv_file_magic_cmd='func_win32_libid' 4328 ;; 4329 4330mingw* | pw32*) 4331 # Base MSYS/MinGW do not provide the 'file' command needed by 4332 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4333 # unless we find 'file', for example because we are cross-compiling. 4334 if ( file / ) >/dev/null 2>&1; then 4335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4336 lt_cv_file_magic_cmd='func_win32_libid' 4337 else 4338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4339 lt_cv_file_magic_cmd='$OBJDUMP -f' 4340 fi 4341 ;; 4342 4343cegcc) 4344 # use the weaker test based on 'objdump'. See mingw*. 4345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4346 lt_cv_file_magic_cmd='$OBJDUMP -f' 4347 ;; 4348 4349darwin* | rhapsody*) 4350 lt_cv_deplibs_check_method=pass_all 4351 ;; 4352 4353freebsd* | dragonfly*) 4354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4355 case $host_cpu in 4356 i*86 ) 4357 # Not sure whether the presence of OpenBSD here was a mistake. 4358 # Let's accept both of them until this is cleared up. 4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4360 lt_cv_file_magic_cmd=/usr/bin/file 4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4362 ;; 4363 esac 4364 else 4365 lt_cv_deplibs_check_method=pass_all 4366 fi 4367 ;; 4368 4369gnu*) 4370 lt_cv_deplibs_check_method=pass_all 4371 ;; 4372 4373hpux10.20* | hpux11*) 4374 lt_cv_file_magic_cmd=/usr/bin/file 4375 case $host_cpu in 4376 ia64*) 4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4379 ;; 4380 hppa*64*) 4381 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]' 4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4383 ;; 4384 *) 4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4387 ;; 4388 esac 4389 ;; 4390 4391interix[3-9]*) 4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4394 ;; 4395 4396irix5* | irix6* | nonstopux*) 4397 case $LD in 4398 *-32|*"-32 ") libmagic=32-bit;; 4399 *-n32|*"-n32 ") libmagic=N32;; 4400 *-64|*"-64 ") libmagic=64-bit;; 4401 *) libmagic=never-match;; 4402 esac 4403 lt_cv_deplibs_check_method=pass_all 4404 ;; 4405 4406# This must be Linux ELF. 4407linux* | k*bsd*-gnu) 4408 lt_cv_deplibs_check_method=pass_all 4409 ;; 4410 4411netbsd*) 4412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4414 else 4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4416 fi 4417 ;; 4418 4419newos6*) 4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4421 lt_cv_file_magic_cmd=/usr/bin/file 4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4423 ;; 4424 4425*nto* | *qnx*) 4426 lt_cv_deplibs_check_method=pass_all 4427 ;; 4428 4429openbsd*) 4430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4432 else 4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4434 fi 4435 ;; 4436 4437osf3* | osf4* | osf5*) 4438 lt_cv_deplibs_check_method=pass_all 4439 ;; 4440 4441rdos*) 4442 lt_cv_deplibs_check_method=pass_all 4443 ;; 4444 4445solaris*) 4446 lt_cv_deplibs_check_method=pass_all 4447 ;; 4448 4449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4450 lt_cv_deplibs_check_method=pass_all 4451 ;; 4452 4453sysv4 | sysv4.3*) 4454 case $host_vendor in 4455 motorola) 4456 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]' 4457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4458 ;; 4459 ncr) 4460 lt_cv_deplibs_check_method=pass_all 4461 ;; 4462 sequent) 4463 lt_cv_file_magic_cmd='/bin/file' 4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4465 ;; 4466 sni) 4467 lt_cv_file_magic_cmd='/bin/file' 4468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4469 lt_cv_file_magic_test_file=/lib/libc.so 4470 ;; 4471 siemens) 4472 lt_cv_deplibs_check_method=pass_all 4473 ;; 4474 pc) 4475 lt_cv_deplibs_check_method=pass_all 4476 ;; 4477 esac 4478 ;; 4479 4480tpf*) 4481 lt_cv_deplibs_check_method=pass_all 4482 ;; 4483esac 4484 4485fi 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4487$as_echo "$lt_cv_deplibs_check_method" >&6; } 4488file_magic_cmd=$lt_cv_file_magic_cmd 4489deplibs_check_method=$lt_cv_deplibs_check_method 4490test -z "$deplibs_check_method" && deplibs_check_method=unknown 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503if test -n "$ac_tool_prefix"; then 4504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4505set dummy ${ac_tool_prefix}ar; ac_word=$2 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4507$as_echo_n "checking for $ac_word... " >&6; } 4508if ${ac_cv_prog_AR+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 if test -n "$AR"; then 4512 ac_cv_prog_AR="$AR" # Let the user override the test. 4513else 4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4515for as_dir in $PATH 4516do 4517 IFS=$as_save_IFS 4518 test -z "$as_dir" && as_dir=. 4519 for ac_exec_ext in '' $ac_executable_extensions; do 4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4521 ac_cv_prog_AR="${ac_tool_prefix}ar" 4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4523 break 2 4524 fi 4525done 4526 done 4527IFS=$as_save_IFS 4528 4529fi 4530fi 4531AR=$ac_cv_prog_AR 4532if test -n "$AR"; then 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4534$as_echo "$AR" >&6; } 4535else 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4537$as_echo "no" >&6; } 4538fi 4539 4540 4541fi 4542if test -z "$ac_cv_prog_AR"; then 4543 ac_ct_AR=$AR 4544 # Extract the first word of "ar", so it can be a program name with args. 4545set dummy ar; ac_word=$2 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4547$as_echo_n "checking for $ac_word... " >&6; } 4548if ${ac_cv_prog_ac_ct_AR+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -n "$ac_ct_AR"; then 4552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4553else 4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4561 ac_cv_prog_ac_ct_AR="ar" 4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4563 break 2 4564 fi 4565done 4566 done 4567IFS=$as_save_IFS 4568 4569fi 4570fi 4571ac_ct_AR=$ac_cv_prog_ac_ct_AR 4572if test -n "$ac_ct_AR"; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4574$as_echo "$ac_ct_AR" >&6; } 4575else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578fi 4579 4580 if test "x$ac_ct_AR" = x; then 4581 AR="false" 4582 else 4583 case $cross_compiling:$ac_tool_warned in 4584yes:) 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4587ac_tool_warned=yes ;; 4588esac 4589 AR=$ac_ct_AR 4590 fi 4591else 4592 AR="$ac_cv_prog_AR" 4593fi 4594 4595test -z "$AR" && AR=ar 4596test -z "$AR_FLAGS" && AR_FLAGS=cru 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608if test -n "$ac_tool_prefix"; then 4609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4610set dummy ${ac_tool_prefix}strip; ac_word=$2 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612$as_echo_n "checking for $ac_word... " >&6; } 4613if ${ac_cv_prog_STRIP+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 if test -n "$STRIP"; then 4617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4618else 4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4626 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631 done 4632IFS=$as_save_IFS 4633 4634fi 4635fi 4636STRIP=$ac_cv_prog_STRIP 4637if test -n "$STRIP"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4639$as_echo "$STRIP" >&6; } 4640else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642$as_echo "no" >&6; } 4643fi 4644 4645 4646fi 4647if test -z "$ac_cv_prog_STRIP"; then 4648 ac_ct_STRIP=$STRIP 4649 # Extract the first word of "strip", so it can be a program name with args. 4650set dummy strip; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$ac_ct_STRIP"; then 4657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4658else 4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_ac_ct_STRIP="strip" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670done 4671 done 4672IFS=$as_save_IFS 4673 4674fi 4675fi 4676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4677if test -n "$ac_ct_STRIP"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4679$as_echo "$ac_ct_STRIP" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 if test "x$ac_ct_STRIP" = x; then 4686 STRIP=":" 4687 else 4688 case $cross_compiling:$ac_tool_warned in 4689yes:) 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4692ac_tool_warned=yes ;; 4693esac 4694 STRIP=$ac_ct_STRIP 4695 fi 4696else 4697 STRIP="$ac_cv_prog_STRIP" 4698fi 4699 4700test -z "$STRIP" && STRIP=: 4701 4702 4703 4704 4705 4706 4707if test -n "$ac_tool_prefix"; then 4708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4709set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711$as_echo_n "checking for $ac_word... " >&6; } 4712if ${ac_cv_prog_RANLIB+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -n "$RANLIB"; then 4716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4717else 4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733fi 4734fi 4735RANLIB=$ac_cv_prog_RANLIB 4736if test -n "$RANLIB"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4738$as_echo "$RANLIB" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745fi 4746if test -z "$ac_cv_prog_RANLIB"; then 4747 ac_ct_RANLIB=$RANLIB 4748 # Extract the first word of "ranlib", so it can be a program name with args. 4749set dummy ranlib; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$ac_ct_RANLIB"; then 4756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_ac_ct_RANLIB="ranlib" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4776if test -n "$ac_ct_RANLIB"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4778$as_echo "$ac_ct_RANLIB" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 if test "x$ac_ct_RANLIB" = x; then 4785 RANLIB=":" 4786 else 4787 case $cross_compiling:$ac_tool_warned in 4788yes:) 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4791ac_tool_warned=yes ;; 4792esac 4793 RANLIB=$ac_ct_RANLIB 4794 fi 4795else 4796 RANLIB="$ac_cv_prog_RANLIB" 4797fi 4798 4799test -z "$RANLIB" && RANLIB=: 4800 4801 4802 4803 4804 4805 4806# Determine commands to create old-style static archives. 4807old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4808old_postinstall_cmds='chmod 644 $oldlib' 4809old_postuninstall_cmds= 4810 4811if test -n "$RANLIB"; then 4812 case $host_os in 4813 openbsd*) 4814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4815 ;; 4816 *) 4817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4818 ;; 4819 esac 4820 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4821fi 4822 4823 4824 4825 4826 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# If no C compiler was specified, use CC. 4857LTCC=${LTCC-"$CC"} 4858 4859# If no C compiler flags were specified, use CFLAGS. 4860LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4861 4862# Allow CC to be a program name with arguments. 4863compiler=$CC 4864 4865 4866# Check for command to grab the raw symbol name followed by C symbol from nm. 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4868$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4869if ${lt_cv_sys_global_symbol_pipe+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 4873# These are sane defaults that work on at least a few old systems. 4874# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4875 4876# Character class describing NM global symbol codes. 4877symcode='[BCDEGRST]' 4878 4879# Regexp to match symbols that can be accessed directly from C. 4880sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4881 4882# Define system-specific variables. 4883case $host_os in 4884aix*) 4885 symcode='[BCDT]' 4886 ;; 4887cygwin* | mingw* | pw32* | cegcc*) 4888 symcode='[ABCDGISTW]' 4889 ;; 4890hpux*) 4891 if test "$host_cpu" = ia64; then 4892 symcode='[ABCDEGRST]' 4893 fi 4894 ;; 4895irix* | nonstopux*) 4896 symcode='[BCDEGRST]' 4897 ;; 4898osf*) 4899 symcode='[BCDEGQRST]' 4900 ;; 4901solaris*) 4902 symcode='[BDRT]' 4903 ;; 4904sco3.2v5*) 4905 symcode='[DT]' 4906 ;; 4907sysv4.2uw2*) 4908 symcode='[DT]' 4909 ;; 4910sysv5* | sco5v6* | unixware* | OpenUNIX*) 4911 symcode='[ABDT]' 4912 ;; 4913sysv4) 4914 symcode='[DFNSTU]' 4915 ;; 4916esac 4917 4918# If we're using GNU nm, then use its standard symbol codes. 4919case `$NM -V 2>&1` in 4920*GNU* | *'with BFD'*) 4921 symcode='[ABCDGIRSTW]' ;; 4922esac 4923 4924# Transform an extracted symbol line into a proper C declaration. 4925# Some systems (esp. on ia64) link data and code symbols differently, 4926# so use this general approach. 4927lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4928 4929# Transform an extracted symbol line into symbol name and symbol address 4930lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4931lt_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'" 4932 4933# Handle CRLF in mingw tool chain 4934opt_cr= 4935case $build_os in 4936mingw*) 4937 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4938 ;; 4939esac 4940 4941# Try without a prefix underscore, then with it. 4942for ac_symprfx in "" "_"; do 4943 4944 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4945 symxfrm="\\1 $ac_symprfx\\2 \\2" 4946 4947 # Write the raw and C identifiers. 4948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4949 # Fake it for dumpbin and say T for any non-static function 4950 # and D for any global variable. 4951 # Also find C++ and __fastcall symbols from MSVC++, 4952 # which start with @ or ?. 4953 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4954" {last_section=section; section=\$ 3};"\ 4955" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4956" \$ 0!~/External *\|/{next};"\ 4957" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4958" {if(hide[section]) next};"\ 4959" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4960" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4961" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4962" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4963" ' prfx=^$ac_symprfx" 4964 else 4965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4966 fi 4967 4968 # Check to see that the pipe works correctly. 4969 pipe_works=no 4970 4971 rm -f conftest* 4972 cat > conftest.$ac_ext <<_LT_EOF 4973#ifdef __cplusplus 4974extern "C" { 4975#endif 4976char nm_test_var; 4977void nm_test_func(void); 4978void nm_test_func(void){} 4979#ifdef __cplusplus 4980} 4981#endif 4982int main(){nm_test_var='a';nm_test_func();return(0);} 4983_LT_EOF 4984 4985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4986 (eval $ac_compile) 2>&5 4987 ac_status=$? 4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4989 test $ac_status = 0; }; then 4990 # Now try to grab the symbols. 4991 nlist=conftest.nm 4992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 4993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4994 ac_status=$? 4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4996 test $ac_status = 0; } && test -s "$nlist"; then 4997 # Try sorting and uniquifying the output. 4998 if sort "$nlist" | uniq > "$nlist"T; then 4999 mv -f "$nlist"T "$nlist" 5000 else 5001 rm -f "$nlist"T 5002 fi 5003 5004 # Make sure that we snagged all the symbols we need. 5005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5007 cat <<_LT_EOF > conftest.$ac_ext 5008#ifdef __cplusplus 5009extern "C" { 5010#endif 5011 5012_LT_EOF 5013 # Now generate the symbol file. 5014 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5015 5016 cat <<_LT_EOF >> conftest.$ac_ext 5017 5018/* The mapping between symbol names and symbols. */ 5019const struct { 5020 const char *name; 5021 void *address; 5022} 5023lt__PROGRAM__LTX_preloaded_symbols[] = 5024{ 5025 { "@PROGRAM@", (void *) 0 }, 5026_LT_EOF 5027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5028 cat <<\_LT_EOF >> conftest.$ac_ext 5029 {0, (void *) 0} 5030}; 5031 5032/* This works around a problem in FreeBSD linker */ 5033#ifdef FREEBSD_WORKAROUND 5034static const void *lt_preloaded_setup() { 5035 return lt__PROGRAM__LTX_preloaded_symbols; 5036} 5037#endif 5038 5039#ifdef __cplusplus 5040} 5041#endif 5042_LT_EOF 5043 # Now try linking the two files. 5044 mv conftest.$ac_objext conftstm.$ac_objext 5045 lt_save_LIBS="$LIBS" 5046 lt_save_CFLAGS="$CFLAGS" 5047 LIBS="conftstm.$ac_objext" 5048 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5050 (eval $ac_link) 2>&5 5051 ac_status=$? 5052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5053 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5054 pipe_works=yes 5055 fi 5056 LIBS="$lt_save_LIBS" 5057 CFLAGS="$lt_save_CFLAGS" 5058 else 5059 echo "cannot find nm_test_func in $nlist" >&5 5060 fi 5061 else 5062 echo "cannot find nm_test_var in $nlist" >&5 5063 fi 5064 else 5065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5066 fi 5067 else 5068 echo "$progname: failed program was:" >&5 5069 cat conftest.$ac_ext >&5 5070 fi 5071 rm -rf conftest* conftst* 5072 5073 # Do not use the global_symbol_pipe unless it works. 5074 if test "$pipe_works" = yes; then 5075 break 5076 else 5077 lt_cv_sys_global_symbol_pipe= 5078 fi 5079done 5080 5081fi 5082 5083if test -z "$lt_cv_sys_global_symbol_pipe"; then 5084 lt_cv_sys_global_symbol_to_cdecl= 5085fi 5086if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5088$as_echo "failed" >&6; } 5089else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5091$as_echo "ok" >&6; } 5092fi 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116# Check whether --enable-libtool-lock was given. 5117if test "${enable_libtool_lock+set}" = set; then : 5118 enableval=$enable_libtool_lock; 5119fi 5120 5121test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5122 5123# Some flags need to be propagated to the compiler or linker for good 5124# libtool support. 5125case $host in 5126ia64-*-hpux*) 5127 # Find out which ABI we are using. 5128 echo 'int i;' > conftest.$ac_ext 5129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5130 (eval $ac_compile) 2>&5 5131 ac_status=$? 5132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5133 test $ac_status = 0; }; then 5134 case `/usr/bin/file conftest.$ac_objext` in 5135 *ELF-32*) 5136 HPUX_IA64_MODE="32" 5137 ;; 5138 *ELF-64*) 5139 HPUX_IA64_MODE="64" 5140 ;; 5141 esac 5142 fi 5143 rm -rf conftest* 5144 ;; 5145*-*-irix6*) 5146 # Find out which ABI we are using. 5147 echo '#line 5147 "configure"' > conftest.$ac_ext 5148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5149 (eval $ac_compile) 2>&5 5150 ac_status=$? 5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5152 test $ac_status = 0; }; then 5153 if test "$lt_cv_prog_gnu_ld" = yes; then 5154 case `/usr/bin/file conftest.$ac_objext` in 5155 *32-bit*) 5156 LD="${LD-ld} -melf32bsmip" 5157 ;; 5158 *N32*) 5159 LD="${LD-ld} -melf32bmipn32" 5160 ;; 5161 *64-bit*) 5162 LD="${LD-ld} -melf64bmip" 5163 ;; 5164 esac 5165 else 5166 case `/usr/bin/file conftest.$ac_objext` in 5167 *32-bit*) 5168 LD="${LD-ld} -32" 5169 ;; 5170 *N32*) 5171 LD="${LD-ld} -n32" 5172 ;; 5173 *64-bit*) 5174 LD="${LD-ld} -64" 5175 ;; 5176 esac 5177 fi 5178 fi 5179 rm -rf conftest* 5180 ;; 5181 5182x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5183s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5184 # Find out which ABI we are using. 5185 echo 'int i;' > conftest.$ac_ext 5186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5187 (eval $ac_compile) 2>&5 5188 ac_status=$? 5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5190 test $ac_status = 0; }; then 5191 case `/usr/bin/file conftest.o` in 5192 *32-bit*) 5193 case $host in 5194 x86_64-*kfreebsd*-gnu) 5195 LD="${LD-ld} -m elf_i386_fbsd" 5196 ;; 5197 x86_64-*linux*) 5198 LD="${LD-ld} -m elf_i386" 5199 ;; 5200 ppc64-*linux*|powerpc64-*linux*) 5201 LD="${LD-ld} -m elf32ppclinux" 5202 ;; 5203 s390x-*linux*) 5204 LD="${LD-ld} -m elf_s390" 5205 ;; 5206 sparc64-*linux*) 5207 LD="${LD-ld} -m elf32_sparc" 5208 ;; 5209 esac 5210 ;; 5211 *64-bit*) 5212 case $host in 5213 x86_64-*kfreebsd*-gnu) 5214 LD="${LD-ld} -m elf_x86_64_fbsd" 5215 ;; 5216 x86_64-*linux*) 5217 LD="${LD-ld} -m elf_x86_64" 5218 ;; 5219 ppc*-*linux*|powerpc*-*linux*) 5220 LD="${LD-ld} -m elf64ppc" 5221 ;; 5222 s390*-*linux*|s390*-*tpf*) 5223 LD="${LD-ld} -m elf64_s390" 5224 ;; 5225 sparc*-*linux*) 5226 LD="${LD-ld} -m elf64_sparc" 5227 ;; 5228 esac 5229 ;; 5230 esac 5231 fi 5232 rm -rf conftest* 5233 ;; 5234 5235*-*-sco3.2v5*) 5236 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5237 SAVE_CFLAGS="$CFLAGS" 5238 CFLAGS="$CFLAGS -belf" 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5240$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5241if ${lt_cv_cc_needs_belf+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 ac_ext=c 5245ac_cpp='$CPP $CPPFLAGS' 5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248ac_compiler_gnu=$ac_cv_c_compiler_gnu 5249 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251/* end confdefs.h. */ 5252 5253int 5254main () 5255{ 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261if ac_fn_c_try_link "$LINENO"; then : 5262 lt_cv_cc_needs_belf=yes 5263else 5264 lt_cv_cc_needs_belf=no 5265fi 5266rm -f core conftest.err conftest.$ac_objext \ 5267 conftest$ac_exeext conftest.$ac_ext 5268 ac_ext=c 5269ac_cpp='$CPP $CPPFLAGS' 5270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5272ac_compiler_gnu=$ac_cv_c_compiler_gnu 5273 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5276$as_echo "$lt_cv_cc_needs_belf" >&6; } 5277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5279 CFLAGS="$SAVE_CFLAGS" 5280 fi 5281 ;; 5282sparc*-*solaris*) 5283 # Find out which ABI we are using. 5284 echo 'int i;' > conftest.$ac_ext 5285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5286 (eval $ac_compile) 2>&5 5287 ac_status=$? 5288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5289 test $ac_status = 0; }; then 5290 case `/usr/bin/file conftest.o` in 5291 *64-bit*) 5292 case $lt_cv_prog_gnu_ld in 5293 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5294 *) 5295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5296 LD="${LD-ld} -64" 5297 fi 5298 ;; 5299 esac 5300 ;; 5301 esac 5302 fi 5303 rm -rf conftest* 5304 ;; 5305esac 5306 5307need_locks="$enable_libtool_lock" 5308 5309 5310 case $host_os in 5311 rhapsody* | darwin*) 5312 if test -n "$ac_tool_prefix"; then 5313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5314set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5316$as_echo_n "checking for $ac_word... " >&6; } 5317if ${ac_cv_prog_DSYMUTIL+:} false; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 if test -n "$DSYMUTIL"; then 5321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5322else 5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5324for as_dir in $PATH 5325do 5326 IFS=$as_save_IFS 5327 test -z "$as_dir" && as_dir=. 5328 for ac_exec_ext in '' $ac_executable_extensions; do 5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5332 break 2 5333 fi 5334done 5335 done 5336IFS=$as_save_IFS 5337 5338fi 5339fi 5340DSYMUTIL=$ac_cv_prog_DSYMUTIL 5341if test -n "$DSYMUTIL"; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5343$as_echo "$DSYMUTIL" >&6; } 5344else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5346$as_echo "no" >&6; } 5347fi 5348 5349 5350fi 5351if test -z "$ac_cv_prog_DSYMUTIL"; then 5352 ac_ct_DSYMUTIL=$DSYMUTIL 5353 # Extract the first word of "dsymutil", so it can be a program name with args. 5354set dummy dsymutil; ac_word=$2 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5356$as_echo_n "checking for $ac_word... " >&6; } 5357if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if test -n "$ac_ct_DSYMUTIL"; then 5361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5362else 5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH 5365do 5366 IFS=$as_save_IFS 5367 test -z "$as_dir" && as_dir=. 5368 for ac_exec_ext in '' $ac_executable_extensions; do 5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5372 break 2 5373 fi 5374done 5375 done 5376IFS=$as_save_IFS 5377 5378fi 5379fi 5380ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5381if test -n "$ac_ct_DSYMUTIL"; then 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5383$as_echo "$ac_ct_DSYMUTIL" >&6; } 5384else 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386$as_echo "no" >&6; } 5387fi 5388 5389 if test "x$ac_ct_DSYMUTIL" = x; then 5390 DSYMUTIL=":" 5391 else 5392 case $cross_compiling:$ac_tool_warned in 5393yes:) 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5396ac_tool_warned=yes ;; 5397esac 5398 DSYMUTIL=$ac_ct_DSYMUTIL 5399 fi 5400else 5401 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5402fi 5403 5404 if test -n "$ac_tool_prefix"; then 5405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5406set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5408$as_echo_n "checking for $ac_word... " >&6; } 5409if ${ac_cv_prog_NMEDIT+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -n "$NMEDIT"; then 5413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5414else 5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430fi 5431fi 5432NMEDIT=$ac_cv_prog_NMEDIT 5433if test -n "$NMEDIT"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5435$as_echo "$NMEDIT" >&6; } 5436else 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5438$as_echo "no" >&6; } 5439fi 5440 5441 5442fi 5443if test -z "$ac_cv_prog_NMEDIT"; then 5444 ac_ct_NMEDIT=$NMEDIT 5445 # Extract the first word of "nmedit", so it can be a program name with args. 5446set dummy nmedit; ac_word=$2 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5448$as_echo_n "checking for $ac_word... " >&6; } 5449if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 if test -n "$ac_ct_NMEDIT"; then 5453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5454else 5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456for as_dir in $PATH 5457do 5458 IFS=$as_save_IFS 5459 test -z "$as_dir" && as_dir=. 5460 for ac_exec_ext in '' $ac_executable_extensions; do 5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5462 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5464 break 2 5465 fi 5466done 5467 done 5468IFS=$as_save_IFS 5469 5470fi 5471fi 5472ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5473if test -n "$ac_ct_NMEDIT"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5475$as_echo "$ac_ct_NMEDIT" >&6; } 5476else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478$as_echo "no" >&6; } 5479fi 5480 5481 if test "x$ac_ct_NMEDIT" = x; then 5482 NMEDIT=":" 5483 else 5484 case $cross_compiling:$ac_tool_warned in 5485yes:) 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5488ac_tool_warned=yes ;; 5489esac 5490 NMEDIT=$ac_ct_NMEDIT 5491 fi 5492else 5493 NMEDIT="$ac_cv_prog_NMEDIT" 5494fi 5495 5496 if test -n "$ac_tool_prefix"; then 5497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5498set dummy ${ac_tool_prefix}lipo; ac_word=$2 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500$as_echo_n "checking for $ac_word... " >&6; } 5501if ${ac_cv_prog_LIPO+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 if test -n "$LIPO"; then 5505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5506else 5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508for as_dir in $PATH 5509do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518done 5519 done 5520IFS=$as_save_IFS 5521 5522fi 5523fi 5524LIPO=$ac_cv_prog_LIPO 5525if test -n "$LIPO"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5527$as_echo "$LIPO" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534fi 5535if test -z "$ac_cv_prog_LIPO"; then 5536 ac_ct_LIPO=$LIPO 5537 # Extract the first word of "lipo", so it can be a program name with args. 5538set dummy lipo; ac_word=$2 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5540$as_echo_n "checking for $ac_word... " >&6; } 5541if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 if test -n "$ac_ct_LIPO"; then 5545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5546else 5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5548for as_dir in $PATH 5549do 5550 IFS=$as_save_IFS 5551 test -z "$as_dir" && as_dir=. 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_ac_ct_LIPO="lipo" 5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558done 5559 done 5560IFS=$as_save_IFS 5561 5562fi 5563fi 5564ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5565if test -n "$ac_ct_LIPO"; then 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5567$as_echo "$ac_ct_LIPO" >&6; } 5568else 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5570$as_echo "no" >&6; } 5571fi 5572 5573 if test "x$ac_ct_LIPO" = x; then 5574 LIPO=":" 5575 else 5576 case $cross_compiling:$ac_tool_warned in 5577yes:) 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5580ac_tool_warned=yes ;; 5581esac 5582 LIPO=$ac_ct_LIPO 5583 fi 5584else 5585 LIPO="$ac_cv_prog_LIPO" 5586fi 5587 5588 if test -n "$ac_tool_prefix"; then 5589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5590set dummy ${ac_tool_prefix}otool; ac_word=$2 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5592$as_echo_n "checking for $ac_word... " >&6; } 5593if ${ac_cv_prog_OTOOL+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 if test -n "$OTOOL"; then 5597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5598else 5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5600for as_dir in $PATH 5601do 5602 IFS=$as_save_IFS 5603 test -z "$as_dir" && as_dir=. 5604 for ac_exec_ext in '' $ac_executable_extensions; do 5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5608 break 2 5609 fi 5610done 5611 done 5612IFS=$as_save_IFS 5613 5614fi 5615fi 5616OTOOL=$ac_cv_prog_OTOOL 5617if test -n "$OTOOL"; then 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5619$as_echo "$OTOOL" >&6; } 5620else 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5622$as_echo "no" >&6; } 5623fi 5624 5625 5626fi 5627if test -z "$ac_cv_prog_OTOOL"; then 5628 ac_ct_OTOOL=$OTOOL 5629 # Extract the first word of "otool", so it can be a program name with args. 5630set dummy otool; ac_word=$2 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5632$as_echo_n "checking for $ac_word... " >&6; } 5633if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635else 5636 if test -n "$ac_ct_OTOOL"; then 5637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5638else 5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5646 ac_cv_prog_ac_ct_OTOOL="otool" 5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650done 5651 done 5652IFS=$as_save_IFS 5653 5654fi 5655fi 5656ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5657if test -n "$ac_ct_OTOOL"; then 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5659$as_echo "$ac_ct_OTOOL" >&6; } 5660else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662$as_echo "no" >&6; } 5663fi 5664 5665 if test "x$ac_ct_OTOOL" = x; then 5666 OTOOL=":" 5667 else 5668 case $cross_compiling:$ac_tool_warned in 5669yes:) 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5672ac_tool_warned=yes ;; 5673esac 5674 OTOOL=$ac_ct_OTOOL 5675 fi 5676else 5677 OTOOL="$ac_cv_prog_OTOOL" 5678fi 5679 5680 if test -n "$ac_tool_prefix"; then 5681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5682set dummy ${ac_tool_prefix}otool64; ac_word=$2 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684$as_echo_n "checking for $ac_word... " >&6; } 5685if ${ac_cv_prog_OTOOL64+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 if test -n "$OTOOL64"; then 5689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5690else 5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5692for as_dir in $PATH 5693do 5694 IFS=$as_save_IFS 5695 test -z "$as_dir" && as_dir=. 5696 for ac_exec_ext in '' $ac_executable_extensions; do 5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5700 break 2 5701 fi 5702done 5703 done 5704IFS=$as_save_IFS 5705 5706fi 5707fi 5708OTOOL64=$ac_cv_prog_OTOOL64 5709if test -n "$OTOOL64"; then 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5711$as_echo "$OTOOL64" >&6; } 5712else 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5714$as_echo "no" >&6; } 5715fi 5716 5717 5718fi 5719if test -z "$ac_cv_prog_OTOOL64"; then 5720 ac_ct_OTOOL64=$OTOOL64 5721 # Extract the first word of "otool64", so it can be a program name with args. 5722set dummy otool64; ac_word=$2 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5724$as_echo_n "checking for $ac_word... " >&6; } 5725if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 if test -n "$ac_ct_OTOOL64"; then 5729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5730else 5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5732for as_dir in $PATH 5733do 5734 IFS=$as_save_IFS 5735 test -z "$as_dir" && as_dir=. 5736 for ac_exec_ext in '' $ac_executable_extensions; do 5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5738 ac_cv_prog_ac_ct_OTOOL64="otool64" 5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5740 break 2 5741 fi 5742done 5743 done 5744IFS=$as_save_IFS 5745 5746fi 5747fi 5748ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5749if test -n "$ac_ct_OTOOL64"; then 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5751$as_echo "$ac_ct_OTOOL64" >&6; } 5752else 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5754$as_echo "no" >&6; } 5755fi 5756 5757 if test "x$ac_ct_OTOOL64" = x; then 5758 OTOOL64=":" 5759 else 5760 case $cross_compiling:$ac_tool_warned in 5761yes:) 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5764ac_tool_warned=yes ;; 5765esac 5766 OTOOL64=$ac_ct_OTOOL64 5767 fi 5768else 5769 OTOOL64="$ac_cv_prog_OTOOL64" 5770fi 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5799$as_echo_n "checking for -single_module linker flag... " >&6; } 5800if ${lt_cv_apple_cc_single_mod+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 lt_cv_apple_cc_single_mod=no 5804 if test -z "${LT_MULTI_MODULE}"; then 5805 # By default we will add the -single_module flag. You can override 5806 # by either setting the environment variable LT_MULTI_MODULE 5807 # non-empty at configure time, or by adding -multi_module to the 5808 # link flags. 5809 rm -rf libconftest.dylib* 5810 echo "int foo(void){return 1;}" > conftest.c 5811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5812-dynamiclib -Wl,-single_module conftest.c" >&5 5813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5815 _lt_result=$? 5816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5817 lt_cv_apple_cc_single_mod=yes 5818 else 5819 cat conftest.err >&5 5820 fi 5821 rm -rf libconftest.dylib* 5822 rm -f conftest.* 5823 fi 5824fi 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5826$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5828$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5829if ${lt_cv_ld_exported_symbols_list+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 lt_cv_ld_exported_symbols_list=no 5833 save_LDFLAGS=$LDFLAGS 5834 echo "_main" > conftest.sym 5835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847if ac_fn_c_try_link "$LINENO"; then : 5848 lt_cv_ld_exported_symbols_list=yes 5849else 5850 lt_cv_ld_exported_symbols_list=no 5851fi 5852rm -f core conftest.err conftest.$ac_objext \ 5853 conftest$ac_exeext conftest.$ac_ext 5854 LDFLAGS="$save_LDFLAGS" 5855 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5858$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5859 case $host_os in 5860 rhapsody* | darwin1.[012]) 5861 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5862 darwin1.*) 5863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5864 darwin*) # darwin 5.x on 5865 # if running on 10.5 or later, the deployment target defaults 5866 # to the OS version, if on x86, and 10.4, the deployment 5867 # target defaults to 10.4. Don't you love it? 5868 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5869 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5870 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5871 10.[012]*) 5872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5873 10.*) 5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5875 esac 5876 ;; 5877 esac 5878 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5879 _lt_dar_single_mod='$single_module' 5880 fi 5881 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5882 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5883 else 5884 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5885 fi 5886 if test "$DSYMUTIL" != ":"; then 5887 _lt_dsymutil='~$DSYMUTIL $lib || :' 5888 else 5889 _lt_dsymutil= 5890 fi 5891 ;; 5892 esac 5893 5894ac_ext=c 5895ac_cpp='$CPP $CPPFLAGS' 5896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5898ac_compiler_gnu=$ac_cv_c_compiler_gnu 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5900$as_echo_n "checking how to run the C preprocessor... " >&6; } 5901# On Suns, sometimes $CPP names a directory. 5902if test -n "$CPP" && test -d "$CPP"; then 5903 CPP= 5904fi 5905if test -z "$CPP"; then 5906 if ${ac_cv_prog_CPP+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 # Double quotes because CPP needs to be expanded 5910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5911 do 5912 ac_preproc_ok=false 5913for ac_c_preproc_warn_flag in '' yes 5914do 5915 # Use a header file that comes with gcc, so configuring glibc 5916 # with a fresh cross-compiler works. 5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5918 # <limits.h> exists even on freestanding compilers. 5919 # On the NeXT, cc -E runs the code through the compiler's parser, 5920 # not just through cpp. "Syntax error" is here to catch this case. 5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922/* end confdefs.h. */ 5923#ifdef __STDC__ 5924# include <limits.h> 5925#else 5926# include <assert.h> 5927#endif 5928 Syntax error 5929_ACEOF 5930if ac_fn_c_try_cpp "$LINENO"; then : 5931 5932else 5933 # Broken: fails on valid input. 5934continue 5935fi 5936rm -f conftest.err conftest.i conftest.$ac_ext 5937 5938 # OK, works on sane cases. Now check whether nonexistent headers 5939 # can be detected and how. 5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5941/* end confdefs.h. */ 5942#include <ac_nonexistent.h> 5943_ACEOF 5944if ac_fn_c_try_cpp "$LINENO"; then : 5945 # Broken: success on invalid input. 5946continue 5947else 5948 # Passes both tests. 5949ac_preproc_ok=: 5950break 5951fi 5952rm -f conftest.err conftest.i conftest.$ac_ext 5953 5954done 5955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5956rm -f conftest.i conftest.err conftest.$ac_ext 5957if $ac_preproc_ok; then : 5958 break 5959fi 5960 5961 done 5962 ac_cv_prog_CPP=$CPP 5963 5964fi 5965 CPP=$ac_cv_prog_CPP 5966else 5967 ac_cv_prog_CPP=$CPP 5968fi 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5970$as_echo "$CPP" >&6; } 5971ac_preproc_ok=false 5972for ac_c_preproc_warn_flag in '' yes 5973do 5974 # Use a header file that comes with gcc, so configuring glibc 5975 # with a fresh cross-compiler works. 5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5977 # <limits.h> exists even on freestanding compilers. 5978 # On the NeXT, cc -E runs the code through the compiler's parser, 5979 # not just through cpp. "Syntax error" is here to catch this case. 5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982#ifdef __STDC__ 5983# include <limits.h> 5984#else 5985# include <assert.h> 5986#endif 5987 Syntax error 5988_ACEOF 5989if ac_fn_c_try_cpp "$LINENO"; then : 5990 5991else 5992 # Broken: fails on valid input. 5993continue 5994fi 5995rm -f conftest.err conftest.i conftest.$ac_ext 5996 5997 # OK, works on sane cases. Now check whether nonexistent headers 5998 # can be detected and how. 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001#include <ac_nonexistent.h> 6002_ACEOF 6003if ac_fn_c_try_cpp "$LINENO"; then : 6004 # Broken: success on invalid input. 6005continue 6006else 6007 # Passes both tests. 6008ac_preproc_ok=: 6009break 6010fi 6011rm -f conftest.err conftest.i conftest.$ac_ext 6012 6013done 6014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6015rm -f conftest.i conftest.err conftest.$ac_ext 6016if $ac_preproc_ok; then : 6017 6018else 6019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6021as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6022See \`config.log' for more details" "$LINENO" 5; } 6023fi 6024 6025ac_ext=c 6026ac_cpp='$CPP $CPPFLAGS' 6027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6029ac_compiler_gnu=$ac_cv_c_compiler_gnu 6030 6031 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6033$as_echo_n "checking for ANSI C header files... " >&6; } 6034if ${ac_cv_header_stdc+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036else 6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038/* end confdefs.h. */ 6039#include <stdlib.h> 6040#include <stdarg.h> 6041#include <string.h> 6042#include <float.h> 6043 6044int 6045main () 6046{ 6047 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052if ac_fn_c_try_compile "$LINENO"; then : 6053 ac_cv_header_stdc=yes 6054else 6055 ac_cv_header_stdc=no 6056fi 6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6058 6059if test $ac_cv_header_stdc = yes; then 6060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6062/* end confdefs.h. */ 6063#include <string.h> 6064 6065_ACEOF 6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6067 $EGREP "memchr" >/dev/null 2>&1; then : 6068 6069else 6070 ac_cv_header_stdc=no 6071fi 6072rm -f conftest* 6073 6074fi 6075 6076if test $ac_cv_header_stdc = yes; then 6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6079/* end confdefs.h. */ 6080#include <stdlib.h> 6081 6082_ACEOF 6083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6084 $EGREP "free" >/dev/null 2>&1; then : 6085 6086else 6087 ac_cv_header_stdc=no 6088fi 6089rm -f conftest* 6090 6091fi 6092 6093if test $ac_cv_header_stdc = yes; then 6094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6095 if test "$cross_compiling" = yes; then : 6096 : 6097else 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099/* end confdefs.h. */ 6100#include <ctype.h> 6101#include <stdlib.h> 6102#if ((' ' & 0x0FF) == 0x020) 6103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6105#else 6106# define ISLOWER(c) \ 6107 (('a' <= (c) && (c) <= 'i') \ 6108 || ('j' <= (c) && (c) <= 'r') \ 6109 || ('s' <= (c) && (c) <= 'z')) 6110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6111#endif 6112 6113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6114int 6115main () 6116{ 6117 int i; 6118 for (i = 0; i < 256; i++) 6119 if (XOR (islower (i), ISLOWER (i)) 6120 || toupper (i) != TOUPPER (i)) 6121 return 2; 6122 return 0; 6123} 6124_ACEOF 6125if ac_fn_c_try_run "$LINENO"; then : 6126 6127else 6128 ac_cv_header_stdc=no 6129fi 6130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6131 conftest.$ac_objext conftest.beam conftest.$ac_ext 6132fi 6133 6134fi 6135fi 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6137$as_echo "$ac_cv_header_stdc" >&6; } 6138if test $ac_cv_header_stdc = yes; then 6139 6140$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6141 6142fi 6143 6144# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6145for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6146 inttypes.h stdint.h unistd.h 6147do : 6148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6149ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6150" 6151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6152 cat >>confdefs.h <<_ACEOF 6153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6154_ACEOF 6155 6156fi 6157 6158done 6159 6160 6161for ac_header in dlfcn.h 6162do : 6163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6164" 6165if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6166 cat >>confdefs.h <<_ACEOF 6167#define HAVE_DLFCN_H 1 6168_ACEOF 6169 6170fi 6171 6172done 6173 6174 6175 6176# Set options 6177 6178 6179 6180 enable_dlopen=no 6181 6182 6183 enable_win32_dll=no 6184 6185 6186 # Check whether --enable-shared was given. 6187if test "${enable_shared+set}" = set; then : 6188 enableval=$enable_shared; p=${PACKAGE-default} 6189 case $enableval in 6190 yes) enable_shared=yes ;; 6191 no) enable_shared=no ;; 6192 *) 6193 enable_shared=no 6194 # Look at the argument we got. We use all the common list separators. 6195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6196 for pkg in $enableval; do 6197 IFS="$lt_save_ifs" 6198 if test "X$pkg" = "X$p"; then 6199 enable_shared=yes 6200 fi 6201 done 6202 IFS="$lt_save_ifs" 6203 ;; 6204 esac 6205else 6206 enable_shared=yes 6207fi 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 # Check whether --enable-static was given. 6218if test "${enable_static+set}" = set; then : 6219 enableval=$enable_static; p=${PACKAGE-default} 6220 case $enableval in 6221 yes) enable_static=yes ;; 6222 no) enable_static=no ;; 6223 *) 6224 enable_static=no 6225 # Look at the argument we got. We use all the common list separators. 6226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6227 for pkg in $enableval; do 6228 IFS="$lt_save_ifs" 6229 if test "X$pkg" = "X$p"; then 6230 enable_static=yes 6231 fi 6232 done 6233 IFS="$lt_save_ifs" 6234 ;; 6235 esac 6236else 6237 enable_static=yes 6238fi 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249# Check whether --with-pic was given. 6250if test "${with_pic+set}" = set; then : 6251 withval=$with_pic; pic_mode="$withval" 6252else 6253 pic_mode=default 6254fi 6255 6256 6257test -z "$pic_mode" && pic_mode=default 6258 6259 6260 6261 6262 6263 6264 6265 # Check whether --enable-fast-install was given. 6266if test "${enable_fast_install+set}" = set; then : 6267 enableval=$enable_fast_install; p=${PACKAGE-default} 6268 case $enableval in 6269 yes) enable_fast_install=yes ;; 6270 no) enable_fast_install=no ;; 6271 *) 6272 enable_fast_install=no 6273 # Look at the argument we got. We use all the common list separators. 6274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6275 for pkg in $enableval; do 6276 IFS="$lt_save_ifs" 6277 if test "X$pkg" = "X$p"; then 6278 enable_fast_install=yes 6279 fi 6280 done 6281 IFS="$lt_save_ifs" 6282 ;; 6283 esac 6284else 6285 enable_fast_install=yes 6286fi 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298# This can be used to rebuild libtool when needed 6299LIBTOOL_DEPS="$ltmain" 6300 6301# Always use our own libtool. 6302LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328test -z "$LN_S" && LN_S="ln -s" 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343if test -n "${ZSH_VERSION+set}" ; then 6344 setopt NO_GLOB_SUBST 6345fi 6346 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6348$as_echo_n "checking for objdir... " >&6; } 6349if ${lt_cv_objdir+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 rm -f .libs 2>/dev/null 6353mkdir .libs 2>/dev/null 6354if test -d .libs; then 6355 lt_cv_objdir=.libs 6356else 6357 # MS-DOS does not allow filenames that begin with a dot. 6358 lt_cv_objdir=_libs 6359fi 6360rmdir .libs 2>/dev/null 6361fi 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6363$as_echo "$lt_cv_objdir" >&6; } 6364objdir=$lt_cv_objdir 6365 6366 6367 6368 6369 6370cat >>confdefs.h <<_ACEOF 6371#define LT_OBJDIR "$lt_cv_objdir/" 6372_ACEOF 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390case $host_os in 6391aix3*) 6392 # AIX sometimes has problems with the GCC collect2 program. For some 6393 # reason, if we set the COLLECT_NAMES environment variable, the problems 6394 # vanish in a puff of smoke. 6395 if test "X${COLLECT_NAMES+set}" != Xset; then 6396 COLLECT_NAMES= 6397 export COLLECT_NAMES 6398 fi 6399 ;; 6400esac 6401 6402# Sed substitution that helps us do robust quoting. It backslashifies 6403# metacharacters that are still active within double-quoted strings. 6404sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6405 6406# Same as above, but do not quote variable references. 6407double_quote_subst='s/\(["`\\]\)/\\\1/g' 6408 6409# Sed substitution to delay expansion of an escaped shell variable in a 6410# double_quote_subst'ed string. 6411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6412 6413# Sed substitution to delay expansion of an escaped single quote. 6414delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6415 6416# Sed substitution to avoid accidental globbing in evaled expressions 6417no_glob_subst='s/\*/\\\*/g' 6418 6419# Global variables: 6420ofile=libtool 6421can_build_shared=yes 6422 6423# All known linkers require a `.a' archive for static linking (except MSVC, 6424# which needs '.lib'). 6425libext=a 6426 6427with_gnu_ld="$lt_cv_prog_gnu_ld" 6428 6429old_CC="$CC" 6430old_CFLAGS="$CFLAGS" 6431 6432# Set sane defaults for various variables 6433test -z "$CC" && CC=cc 6434test -z "$LTCC" && LTCC=$CC 6435test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6436test -z "$LD" && LD=ld 6437test -z "$ac_objext" && ac_objext=o 6438 6439for cc_temp in $compiler""; do 6440 case $cc_temp in 6441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6443 \-*) ;; 6444 *) break;; 6445 esac 6446done 6447cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6448 6449 6450# Only perform the check for file, if the check method requires it 6451test -z "$MAGIC_CMD" && MAGIC_CMD=file 6452case $deplibs_check_method in 6453file_magic*) 6454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6456$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6457if ${lt_cv_path_MAGIC_CMD+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 case $MAGIC_CMD in 6461[\\/*] | ?:[\\/]*) 6462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6463 ;; 6464*) 6465 lt_save_MAGIC_CMD="$MAGIC_CMD" 6466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6468 for ac_dir in $ac_dummy; do 6469 IFS="$lt_save_ifs" 6470 test -z "$ac_dir" && ac_dir=. 6471 if test -f $ac_dir/${ac_tool_prefix}file; then 6472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6473 if test -n "$file_magic_test_file"; then 6474 case $deplibs_check_method in 6475 "file_magic "*) 6476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6479 $EGREP "$file_magic_regex" > /dev/null; then 6480 : 6481 else 6482 cat <<_LT_EOF 1>&2 6483 6484*** Warning: the command libtool uses to detect shared libraries, 6485*** $file_magic_cmd, produces output that libtool cannot recognize. 6486*** The result is that libtool may fail to recognize shared libraries 6487*** as such. This will affect the creation of libtool libraries that 6488*** depend on shared libraries, but programs linked with such libtool 6489*** libraries will work regardless of this problem. Nevertheless, you 6490*** may want to report the problem to your system manager and/or to 6491*** [email protected] 6492 6493_LT_EOF 6494 fi ;; 6495 esac 6496 fi 6497 break 6498 fi 6499 done 6500 IFS="$lt_save_ifs" 6501 MAGIC_CMD="$lt_save_MAGIC_CMD" 6502 ;; 6503esac 6504fi 6505 6506MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6507if test -n "$MAGIC_CMD"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6509$as_echo "$MAGIC_CMD" >&6; } 6510else 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512$as_echo "no" >&6; } 6513fi 6514 6515 6516 6517 6518 6519if test -z "$lt_cv_path_MAGIC_CMD"; then 6520 if test -n "$ac_tool_prefix"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6522$as_echo_n "checking for file... " >&6; } 6523if ${lt_cv_path_MAGIC_CMD+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 case $MAGIC_CMD in 6527[\\/*] | ?:[\\/]*) 6528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6529 ;; 6530*) 6531 lt_save_MAGIC_CMD="$MAGIC_CMD" 6532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6534 for ac_dir in $ac_dummy; do 6535 IFS="$lt_save_ifs" 6536 test -z "$ac_dir" && ac_dir=. 6537 if test -f $ac_dir/file; then 6538 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6539 if test -n "$file_magic_test_file"; then 6540 case $deplibs_check_method in 6541 "file_magic "*) 6542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6545 $EGREP "$file_magic_regex" > /dev/null; then 6546 : 6547 else 6548 cat <<_LT_EOF 1>&2 6549 6550*** Warning: the command libtool uses to detect shared libraries, 6551*** $file_magic_cmd, produces output that libtool cannot recognize. 6552*** The result is that libtool may fail to recognize shared libraries 6553*** as such. This will affect the creation of libtool libraries that 6554*** depend on shared libraries, but programs linked with such libtool 6555*** libraries will work regardless of this problem. Nevertheless, you 6556*** may want to report the problem to your system manager and/or to 6557*** [email protected] 6558 6559_LT_EOF 6560 fi ;; 6561 esac 6562 fi 6563 break 6564 fi 6565 done 6566 IFS="$lt_save_ifs" 6567 MAGIC_CMD="$lt_save_MAGIC_CMD" 6568 ;; 6569esac 6570fi 6571 6572MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6573if test -n "$MAGIC_CMD"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6575$as_echo "$MAGIC_CMD" >&6; } 6576else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578$as_echo "no" >&6; } 6579fi 6580 6581 6582 else 6583 MAGIC_CMD=: 6584 fi 6585fi 6586 6587 fi 6588 ;; 6589esac 6590 6591# Use C for the default configuration in the libtool script 6592 6593lt_save_CC="$CC" 6594ac_ext=c 6595ac_cpp='$CPP $CPPFLAGS' 6596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6598ac_compiler_gnu=$ac_cv_c_compiler_gnu 6599 6600 6601# Source file extension for C test sources. 6602ac_ext=c 6603 6604# Object file extension for compiled C test sources. 6605objext=o 6606objext=$objext 6607 6608# Code to be used in simple compile tests 6609lt_simple_compile_test_code="int some_variable = 0;" 6610 6611# Code to be used in simple link tests 6612lt_simple_link_test_code='int main(){return(0);}' 6613 6614 6615 6616 6617 6618 6619 6620# If no C compiler was specified, use CC. 6621LTCC=${LTCC-"$CC"} 6622 6623# If no C compiler flags were specified, use CFLAGS. 6624LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6625 6626# Allow CC to be a program name with arguments. 6627compiler=$CC 6628 6629# Save the default compiler, since it gets overwritten when the other 6630# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6631compiler_DEFAULT=$CC 6632 6633# save warnings/boilerplate of simple test code 6634ac_outfile=conftest.$ac_objext 6635echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6637_lt_compiler_boilerplate=`cat conftest.err` 6638$RM conftest* 6639 6640ac_outfile=conftest.$ac_objext 6641echo "$lt_simple_link_test_code" >conftest.$ac_ext 6642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6643_lt_linker_boilerplate=`cat conftest.err` 6644$RM -r conftest* 6645 6646 6647if test -n "$compiler"; then 6648 6649lt_prog_compiler_no_builtin_flag= 6650 6651if test "$GCC" = yes; then 6652 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6653 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6656if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 lt_cv_prog_compiler_rtti_exceptions=no 6660 ac_outfile=conftest.$ac_objext 6661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6662 lt_compiler_flag="-fno-rtti -fno-exceptions" 6663 # Insert the option either (1) after the last *FLAGS variable, or 6664 # (2) before a word containing "conftest.", or (3) at the end. 6665 # Note that $ac_compile itself does not contain backslashes and begins 6666 # with a dollar sign (not a hyphen), so the echo should work correctly. 6667 # The option is referenced via a variable to avoid confusing sed. 6668 lt_compile=`echo "$ac_compile" | $SED \ 6669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6671 -e 's:$: $lt_compiler_flag:'` 6672 (eval echo "\"\$as_me:6672: $lt_compile\"" >&5) 6673 (eval "$lt_compile" 2>conftest.err) 6674 ac_status=$? 6675 cat conftest.err >&5 6676 echo "$as_me:6676: \$? = $ac_status" >&5 6677 if (exit $ac_status) && test -s "$ac_outfile"; then 6678 # The compiler can only warn and ignore the option if not recognized 6679 # So say no if there are warnings other than the usual output. 6680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6683 lt_cv_prog_compiler_rtti_exceptions=yes 6684 fi 6685 fi 6686 $RM conftest* 6687 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6691 6692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6694else 6695 : 6696fi 6697 6698fi 6699 6700 6701 6702 6703 6704 6705 lt_prog_compiler_wl= 6706lt_prog_compiler_pic= 6707lt_prog_compiler_static= 6708 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6710$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6711 6712 if test "$GCC" = yes; then 6713 lt_prog_compiler_wl='-Wl,' 6714 lt_prog_compiler_static='-static' 6715 6716 case $host_os in 6717 aix*) 6718 # All AIX code is PIC. 6719 if test "$host_cpu" = ia64; then 6720 # AIX 5 now supports IA64 processor 6721 lt_prog_compiler_static='-Bstatic' 6722 fi 6723 ;; 6724 6725 amigaos*) 6726 case $host_cpu in 6727 powerpc) 6728 # see comment about AmigaOS4 .so support 6729 lt_prog_compiler_pic='-fPIC' 6730 ;; 6731 m68k) 6732 # FIXME: we need at least 68020 code to build shared libraries, but 6733 # adding the `-m68020' flag to GCC prevents building anything better, 6734 # like `-m68040'. 6735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6736 ;; 6737 esac 6738 ;; 6739 6740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6741 # PIC is the default for these OSes. 6742 ;; 6743 6744 mingw* | cygwin* | pw32* | os2* | cegcc*) 6745 # This hack is so that the source file can tell whether it is being 6746 # built for inclusion in a dll (and should export symbols for example). 6747 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6748 # (--disable-auto-import) libraries 6749 lt_prog_compiler_pic='-DDLL_EXPORT' 6750 ;; 6751 6752 darwin* | rhapsody*) 6753 # PIC is the default on this platform 6754 # Common symbols not allowed in MH_DYLIB files 6755 lt_prog_compiler_pic='-fno-common' 6756 ;; 6757 6758 hpux*) 6759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6761 # sets the default TLS model and affects inlining. 6762 case $host_cpu in 6763 hppa*64*) 6764 # +Z the default 6765 ;; 6766 *) 6767 lt_prog_compiler_pic='-fPIC' 6768 ;; 6769 esac 6770 ;; 6771 6772 interix[3-9]*) 6773 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6774 # Instead, we relocate shared libraries at runtime. 6775 ;; 6776 6777 msdosdjgpp*) 6778 # Just because we use GCC doesn't mean we suddenly get shared libraries 6779 # on systems that don't support them. 6780 lt_prog_compiler_can_build_shared=no 6781 enable_shared=no 6782 ;; 6783 6784 *nto* | *qnx*) 6785 # QNX uses GNU C++, but need to define -shared option too, otherwise 6786 # it will coredump. 6787 lt_prog_compiler_pic='-fPIC -shared' 6788 ;; 6789 6790 sysv4*MP*) 6791 if test -d /usr/nec; then 6792 lt_prog_compiler_pic=-Kconform_pic 6793 fi 6794 ;; 6795 6796 *) 6797 lt_prog_compiler_pic='-fPIC' 6798 ;; 6799 esac 6800 else 6801 # PORTME Check for flag to pass linker flags through the system compiler. 6802 case $host_os in 6803 aix*) 6804 lt_prog_compiler_wl='-Wl,' 6805 if test "$host_cpu" = ia64; then 6806 # AIX 5 now supports IA64 processor 6807 lt_prog_compiler_static='-Bstatic' 6808 else 6809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6810 fi 6811 ;; 6812 6813 mingw* | cygwin* | pw32* | os2* | cegcc*) 6814 # This hack is so that the source file can tell whether it is being 6815 # built for inclusion in a dll (and should export symbols for example). 6816 lt_prog_compiler_pic='-DDLL_EXPORT' 6817 ;; 6818 6819 hpux9* | hpux10* | hpux11*) 6820 lt_prog_compiler_wl='-Wl,' 6821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6822 # not for PA HP-UX. 6823 case $host_cpu in 6824 hppa*64*|ia64*) 6825 # +Z the default 6826 ;; 6827 *) 6828 lt_prog_compiler_pic='+Z' 6829 ;; 6830 esac 6831 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6832 lt_prog_compiler_static='${wl}-a ${wl}archive' 6833 ;; 6834 6835 irix5* | irix6* | nonstopux*) 6836 lt_prog_compiler_wl='-Wl,' 6837 # PIC (with -KPIC) is the default. 6838 lt_prog_compiler_static='-non_shared' 6839 ;; 6840 6841 linux* | k*bsd*-gnu) 6842 case $cc_basename in 6843 # old Intel for x86_64 which still supported -KPIC. 6844 ecc*) 6845 lt_prog_compiler_wl='-Wl,' 6846 lt_prog_compiler_pic='-KPIC' 6847 lt_prog_compiler_static='-static' 6848 ;; 6849 # icc used to be incompatible with GCC. 6850 # ICC 10 doesn't accept -KPIC any more. 6851 icc* | ifort*) 6852 lt_prog_compiler_wl='-Wl,' 6853 lt_prog_compiler_pic='-fPIC' 6854 lt_prog_compiler_static='-static' 6855 ;; 6856 # Lahey Fortran 8.1. 6857 lf95*) 6858 lt_prog_compiler_wl='-Wl,' 6859 lt_prog_compiler_pic='--shared' 6860 lt_prog_compiler_static='--static' 6861 ;; 6862 pgcc* | pgf77* | pgf90* | pgf95*) 6863 # Portland Group compilers (*not* the Pentium gcc compiler, 6864 # which looks to be a dead project) 6865 lt_prog_compiler_wl='-Wl,' 6866 lt_prog_compiler_pic='-fpic' 6867 lt_prog_compiler_static='-Bstatic' 6868 ;; 6869 ccc*) 6870 lt_prog_compiler_wl='-Wl,' 6871 # All Alpha code is PIC. 6872 lt_prog_compiler_static='-non_shared' 6873 ;; 6874 xl*) 6875 # IBM XL C 8.0/Fortran 10.1 on PPC 6876 lt_prog_compiler_wl='-Wl,' 6877 lt_prog_compiler_pic='-qpic' 6878 lt_prog_compiler_static='-qstaticlink' 6879 ;; 6880 *) 6881 case `$CC -V 2>&1 | sed 5q` in 6882 *Sun\ C*) 6883 # Sun C 5.9 6884 lt_prog_compiler_pic='-KPIC' 6885 lt_prog_compiler_static='-Bstatic' 6886 lt_prog_compiler_wl='-Wl,' 6887 ;; 6888 *Sun\ F*) 6889 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6890 lt_prog_compiler_pic='-KPIC' 6891 lt_prog_compiler_static='-Bstatic' 6892 lt_prog_compiler_wl='' 6893 ;; 6894 esac 6895 ;; 6896 esac 6897 ;; 6898 6899 newsos6) 6900 lt_prog_compiler_pic='-KPIC' 6901 lt_prog_compiler_static='-Bstatic' 6902 ;; 6903 6904 *nto* | *qnx*) 6905 # QNX uses GNU C++, but need to define -shared option too, otherwise 6906 # it will coredump. 6907 lt_prog_compiler_pic='-fPIC -shared' 6908 ;; 6909 6910 osf3* | osf4* | osf5*) 6911 lt_prog_compiler_wl='-Wl,' 6912 # All OSF/1 code is PIC. 6913 lt_prog_compiler_static='-non_shared' 6914 ;; 6915 6916 rdos*) 6917 lt_prog_compiler_static='-non_shared' 6918 ;; 6919 6920 solaris*) 6921 lt_prog_compiler_pic='-KPIC' 6922 lt_prog_compiler_static='-Bstatic' 6923 case $cc_basename in 6924 f77* | f90* | f95*) 6925 lt_prog_compiler_wl='-Qoption ld ';; 6926 *) 6927 lt_prog_compiler_wl='-Wl,';; 6928 esac 6929 ;; 6930 6931 sunos4*) 6932 lt_prog_compiler_wl='-Qoption ld ' 6933 lt_prog_compiler_pic='-PIC' 6934 lt_prog_compiler_static='-Bstatic' 6935 ;; 6936 6937 sysv4 | sysv4.2uw2* | sysv4.3*) 6938 lt_prog_compiler_wl='-Wl,' 6939 lt_prog_compiler_pic='-KPIC' 6940 lt_prog_compiler_static='-Bstatic' 6941 ;; 6942 6943 sysv4*MP*) 6944 if test -d /usr/nec ;then 6945 lt_prog_compiler_pic='-Kconform_pic' 6946 lt_prog_compiler_static='-Bstatic' 6947 fi 6948 ;; 6949 6950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6951 lt_prog_compiler_wl='-Wl,' 6952 lt_prog_compiler_pic='-KPIC' 6953 lt_prog_compiler_static='-Bstatic' 6954 ;; 6955 6956 unicos*) 6957 lt_prog_compiler_wl='-Wl,' 6958 lt_prog_compiler_can_build_shared=no 6959 ;; 6960 6961 uts4*) 6962 lt_prog_compiler_pic='-pic' 6963 lt_prog_compiler_static='-Bstatic' 6964 ;; 6965 6966 *) 6967 lt_prog_compiler_can_build_shared=no 6968 ;; 6969 esac 6970 fi 6971 6972case $host_os in 6973 # For platforms which do not support PIC, -DPIC is meaningless: 6974 *djgpp*) 6975 lt_prog_compiler_pic= 6976 ;; 6977 *) 6978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6979 ;; 6980esac 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 6982$as_echo "$lt_prog_compiler_pic" >&6; } 6983 6984 6985 6986 6987 6988 6989# 6990# Check to make sure the PIC flag actually works. 6991# 6992if test -n "$lt_prog_compiler_pic"; then 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6994$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 6995if ${lt_cv_prog_compiler_pic_works+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 lt_cv_prog_compiler_pic_works=no 6999 ac_outfile=conftest.$ac_objext 7000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7002 # Insert the option either (1) after the last *FLAGS variable, or 7003 # (2) before a word containing "conftest.", or (3) at the end. 7004 # Note that $ac_compile itself does not contain backslashes and begins 7005 # with a dollar sign (not a hyphen), so the echo should work correctly. 7006 # The option is referenced via a variable to avoid confusing sed. 7007 lt_compile=`echo "$ac_compile" | $SED \ 7008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7010 -e 's:$: $lt_compiler_flag:'` 7011 (eval echo "\"\$as_me:7011: $lt_compile\"" >&5) 7012 (eval "$lt_compile" 2>conftest.err) 7013 ac_status=$? 7014 cat conftest.err >&5 7015 echo "$as_me:7015: \$? = $ac_status" >&5 7016 if (exit $ac_status) && test -s "$ac_outfile"; then 7017 # The compiler can only warn and ignore the option if not recognized 7018 # So say no if there are warnings other than the usual output. 7019 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7022 lt_cv_prog_compiler_pic_works=yes 7023 fi 7024 fi 7025 $RM conftest* 7026 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7029$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7030 7031if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7032 case $lt_prog_compiler_pic in 7033 "" | " "*) ;; 7034 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7035 esac 7036else 7037 lt_prog_compiler_pic= 7038 lt_prog_compiler_can_build_shared=no 7039fi 7040 7041fi 7042 7043 7044 7045 7046 7047 7048# 7049# Check to make sure the static flag actually works. 7050# 7051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7054if ${lt_cv_prog_compiler_static_works+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 lt_cv_prog_compiler_static_works=no 7058 save_LDFLAGS="$LDFLAGS" 7059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7060 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7062 # The linker can only warn and ignore the option if not recognized 7063 # So say no if there are warnings 7064 if test -s conftest.err; then 7065 # Append any errors to the config.log. 7066 cat conftest.err 1>&5 7067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7069 if diff conftest.exp conftest.er2 >/dev/null; then 7070 lt_cv_prog_compiler_static_works=yes 7071 fi 7072 else 7073 lt_cv_prog_compiler_static_works=yes 7074 fi 7075 fi 7076 $RM -r conftest* 7077 LDFLAGS="$save_LDFLAGS" 7078 7079fi 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7081$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7082 7083if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7084 : 7085else 7086 lt_prog_compiler_static= 7087fi 7088 7089 7090 7091 7092 7093 7094 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7097if ${lt_cv_prog_compiler_c_o+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 lt_cv_prog_compiler_c_o=no 7101 $RM -r conftest 2>/dev/null 7102 mkdir conftest 7103 cd conftest 7104 mkdir out 7105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7106 7107 lt_compiler_flag="-o out/conftest2.$ac_objext" 7108 # Insert the option either (1) after the last *FLAGS variable, or 7109 # (2) before a word containing "conftest.", or (3) at the end. 7110 # Note that $ac_compile itself does not contain backslashes and begins 7111 # with a dollar sign (not a hyphen), so the echo should work correctly. 7112 lt_compile=`echo "$ac_compile" | $SED \ 7113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7115 -e 's:$: $lt_compiler_flag:'` 7116 (eval echo "\"\$as_me:7116: $lt_compile\"" >&5) 7117 (eval "$lt_compile" 2>out/conftest.err) 7118 ac_status=$? 7119 cat out/conftest.err >&5 7120 echo "$as_me:7120: \$? = $ac_status" >&5 7121 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7122 then 7123 # The compiler can only warn and ignore the option if not recognized 7124 # So say no if there are warnings 7125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7128 lt_cv_prog_compiler_c_o=yes 7129 fi 7130 fi 7131 chmod u+w . 2>&5 7132 $RM conftest* 7133 # SGI C++ compiler will create directory out/ii_files/ for 7134 # template instantiation 7135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7136 $RM out/* && rmdir out 7137 cd .. 7138 $RM -r conftest 7139 $RM conftest* 7140 7141fi 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7143$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7144 7145 7146 7147 7148 7149 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7152if ${lt_cv_prog_compiler_c_o+:} false; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 lt_cv_prog_compiler_c_o=no 7156 $RM -r conftest 2>/dev/null 7157 mkdir conftest 7158 cd conftest 7159 mkdir out 7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7161 7162 lt_compiler_flag="-o out/conftest2.$ac_objext" 7163 # Insert the option either (1) after the last *FLAGS variable, or 7164 # (2) before a word containing "conftest.", or (3) at the end. 7165 # Note that $ac_compile itself does not contain backslashes and begins 7166 # with a dollar sign (not a hyphen), so the echo should work correctly. 7167 lt_compile=`echo "$ac_compile" | $SED \ 7168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7170 -e 's:$: $lt_compiler_flag:'` 7171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5) 7172 (eval "$lt_compile" 2>out/conftest.err) 7173 ac_status=$? 7174 cat out/conftest.err >&5 7175 echo "$as_me:7175: \$? = $ac_status" >&5 7176 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7177 then 7178 # The compiler can only warn and ignore the option if not recognized 7179 # So say no if there are warnings 7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7183 lt_cv_prog_compiler_c_o=yes 7184 fi 7185 fi 7186 chmod u+w . 2>&5 7187 $RM conftest* 7188 # SGI C++ compiler will create directory out/ii_files/ for 7189 # template instantiation 7190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7191 $RM out/* && rmdir out 7192 cd .. 7193 $RM -r conftest 7194 $RM conftest* 7195 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7198$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7199 7200 7201 7202 7203hard_links="nottested" 7204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7205 # do not overwrite the value of need_locks provided by the user 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7207$as_echo_n "checking if we can lock with hard links... " >&6; } 7208 hard_links=yes 7209 $RM conftest* 7210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7211 touch conftest.a 7212 ln conftest.a conftest.b 2>&5 || hard_links=no 7213 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7215$as_echo "$hard_links" >&6; } 7216 if test "$hard_links" = no; then 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7218$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7219 need_locks=warn 7220 fi 7221else 7222 need_locks=no 7223fi 7224 7225 7226 7227 7228 7229 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7232 7233 runpath_var= 7234 allow_undefined_flag= 7235 always_export_symbols=no 7236 archive_cmds= 7237 archive_expsym_cmds= 7238 compiler_needs_object=no 7239 enable_shared_with_static_runtimes=no 7240 export_dynamic_flag_spec= 7241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7242 hardcode_automatic=no 7243 hardcode_direct=no 7244 hardcode_direct_absolute=no 7245 hardcode_libdir_flag_spec= 7246 hardcode_libdir_flag_spec_ld= 7247 hardcode_libdir_separator= 7248 hardcode_minus_L=no 7249 hardcode_shlibpath_var=unsupported 7250 inherit_rpath=no 7251 link_all_deplibs=unknown 7252 module_cmds= 7253 module_expsym_cmds= 7254 old_archive_from_new_cmds= 7255 old_archive_from_expsyms_cmds= 7256 thread_safe_flag_spec= 7257 whole_archive_flag_spec= 7258 # include_expsyms should be a list of space-separated symbols to be *always* 7259 # included in the symbol list 7260 include_expsyms= 7261 # exclude_expsyms can be an extended regexp of symbols to exclude 7262 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7264 # as well as any symbol that contains `d'. 7265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7267 # platforms (ab)use it in PIC code, but their linkers get confused if 7268 # the symbol is explicitly referenced. Since portable code cannot 7269 # rely on this symbol name, it's probably fine to never include it in 7270 # preloaded symbol tables. 7271 # Exclude shared library initialization/finalization symbols. 7272 extract_expsyms_cmds= 7273 7274 case $host_os in 7275 cygwin* | mingw* | pw32* | cegcc*) 7276 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7277 # When not using gcc, we currently assume that we are using 7278 # Microsoft Visual C++. 7279 if test "$GCC" != yes; then 7280 with_gnu_ld=no 7281 fi 7282 ;; 7283 interix*) 7284 # we just hope/assume this is gcc and not c89 (= MSVC++) 7285 with_gnu_ld=yes 7286 ;; 7287 openbsd*) 7288 with_gnu_ld=no 7289 ;; 7290 esac 7291 7292 ld_shlibs=yes 7293 if test "$with_gnu_ld" = yes; then 7294 # If archive_cmds runs LD, not CC, wlarc should be empty 7295 wlarc='${wl}' 7296 7297 # Set some defaults for GNU ld with shared library support. These 7298 # are reset later if shared libraries are not supported. Putting them 7299 # here allows them to be overridden if necessary. 7300 runpath_var=LD_RUN_PATH 7301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7302 export_dynamic_flag_spec='${wl}--export-dynamic' 7303 # ancient GNU ld didn't support --whole-archive et. al. 7304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7306 else 7307 whole_archive_flag_spec= 7308 fi 7309 supports_anon_versioning=no 7310 case `$LD -v 2>&1` in 7311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7314 *\ 2.11.*) ;; # other 2.11 versions 7315 *) supports_anon_versioning=yes ;; 7316 esac 7317 7318 # See if GNU ld supports shared libraries. 7319 case $host_os in 7320 aix[3-9]*) 7321 # On AIX/PPC, the GNU linker is very broken 7322 if test "$host_cpu" != ia64; then 7323 ld_shlibs=no 7324 cat <<_LT_EOF 1>&2 7325 7326*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7327*** to be unable to reliably create shared libraries on AIX. 7328*** Therefore, libtool is disabling shared libraries support. If you 7329*** really care for shared libraries, you may want to modify your PATH 7330*** so that a non-GNU linker is found, and then restart. 7331 7332_LT_EOF 7333 fi 7334 ;; 7335 7336 amigaos*) 7337 case $host_cpu in 7338 powerpc) 7339 # see comment about AmigaOS4 .so support 7340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7341 archive_expsym_cmds='' 7342 ;; 7343 m68k) 7344 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)' 7345 hardcode_libdir_flag_spec='-L$libdir' 7346 hardcode_minus_L=yes 7347 ;; 7348 esac 7349 ;; 7350 7351 beos*) 7352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7353 allow_undefined_flag=unsupported 7354 # Joseph Beckenbach <[email protected]> says some releases of gcc 7355 # support --undefined. This deserves some investigation. FIXME 7356 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7357 else 7358 ld_shlibs=no 7359 fi 7360 ;; 7361 7362 cygwin* | mingw* | pw32* | cegcc*) 7363 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7364 # as there is no search path for DLLs. 7365 hardcode_libdir_flag_spec='-L$libdir' 7366 allow_undefined_flag=unsupported 7367 always_export_symbols=no 7368 enable_shared_with_static_runtimes=yes 7369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7370 7371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7373 # If the export-symbols file already is a .def file (1st line 7374 # is EXPORTS), use it as is; otherwise, prepend... 7375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7376 cp $export_symbols $output_objdir/$soname.def; 7377 else 7378 echo EXPORTS > $output_objdir/$soname.def; 7379 cat $export_symbols >> $output_objdir/$soname.def; 7380 fi~ 7381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7382 else 7383 ld_shlibs=no 7384 fi 7385 ;; 7386 7387 interix[3-9]*) 7388 hardcode_direct=no 7389 hardcode_shlibpath_var=no 7390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7391 export_dynamic_flag_spec='${wl}-E' 7392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7393 # Instead, shared libraries are loaded at an image base (0x10000000 by 7394 # default) and relocated if they conflict, which is a slow very memory 7395 # consuming and fragmenting process. To avoid this, we pick a random, 7396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7397 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7399 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' 7400 ;; 7401 7402 gnu* | linux* | tpf* | k*bsd*-gnu) 7403 tmp_diet=no 7404 if test "$host_os" = linux-dietlibc; then 7405 case $cc_basename in 7406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7407 esac 7408 fi 7409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7410 && test "$tmp_diet" = no 7411 then 7412 tmp_addflag= 7413 tmp_sharedflag='-shared' 7414 case $cc_basename,$host_cpu in 7415 pgcc*) # Portland Group C compiler 7416 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' 7417 tmp_addflag=' $pic_flag' 7418 ;; 7419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7420 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' 7421 tmp_addflag=' $pic_flag -Mnomain' ;; 7422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7423 tmp_addflag=' -i_dynamic' ;; 7424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7425 tmp_addflag=' -i_dynamic -nofor_main' ;; 7426 ifc* | ifort*) # Intel Fortran compiler 7427 tmp_addflag=' -nofor_main' ;; 7428 lf95*) # Lahey Fortran 8.1 7429 whole_archive_flag_spec= 7430 tmp_sharedflag='--shared' ;; 7431 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7432 tmp_sharedflag='-qmkshrobj' 7433 tmp_addflag= ;; 7434 esac 7435 case `$CC -V 2>&1 | sed 5q` in 7436 *Sun\ C*) # Sun C 5.9 7437 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' 7438 compiler_needs_object=yes 7439 tmp_sharedflag='-G' ;; 7440 *Sun\ F*) # Sun Fortran 8.3 7441 tmp_sharedflag='-G' ;; 7442 esac 7443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7444 7445 if test "x$supports_anon_versioning" = xyes; then 7446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7448 echo "local: *; };" >> $output_objdir/$libname.ver~ 7449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7450 fi 7451 7452 case $cc_basename in 7453 xlf*) 7454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7456 hardcode_libdir_flag_spec= 7457 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7458 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7459 if test "x$supports_anon_versioning" = xyes; then 7460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7462 echo "local: *; };" >> $output_objdir/$libname.ver~ 7463 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7464 fi 7465 ;; 7466 esac 7467 else 7468 ld_shlibs=no 7469 fi 7470 ;; 7471 7472 netbsd*) 7473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7475 wlarc= 7476 else 7477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7479 fi 7480 ;; 7481 7482 solaris*) 7483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7484 ld_shlibs=no 7485 cat <<_LT_EOF 1>&2 7486 7487*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7488*** create shared libraries on Solaris systems. Therefore, libtool 7489*** is disabling shared libraries support. We urge you to upgrade GNU 7490*** binutils to release 2.9.1 or newer. Another option is to modify 7491*** your PATH or compiler configuration so that the native linker is 7492*** used, and then restart. 7493 7494_LT_EOF 7495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7498 else 7499 ld_shlibs=no 7500 fi 7501 ;; 7502 7503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7504 case `$LD -v 2>&1` in 7505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7506 ld_shlibs=no 7507 cat <<_LT_EOF 1>&2 7508 7509*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7510*** reliably create shared libraries on SCO systems. Therefore, libtool 7511*** is disabling shared libraries support. We urge you to upgrade GNU 7512*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7513*** your PATH or compiler configuration so that the native linker is 7514*** used, and then restart. 7515 7516_LT_EOF 7517 ;; 7518 *) 7519 # For security reasons, it is highly recommended that you always 7520 # use absolute paths for naming shared libraries, and exclude the 7521 # DT_RUNPATH tag from executables and libraries. But doing so 7522 # requires that you compile everything twice, which is a pain. 7523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7527 else 7528 ld_shlibs=no 7529 fi 7530 ;; 7531 esac 7532 ;; 7533 7534 sunos4*) 7535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7536 wlarc= 7537 hardcode_direct=yes 7538 hardcode_shlibpath_var=no 7539 ;; 7540 7541 *) 7542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7545 else 7546 ld_shlibs=no 7547 fi 7548 ;; 7549 esac 7550 7551 if test "$ld_shlibs" = no; then 7552 runpath_var= 7553 hardcode_libdir_flag_spec= 7554 export_dynamic_flag_spec= 7555 whole_archive_flag_spec= 7556 fi 7557 else 7558 # PORTME fill in a description of your system's linker (not GNU ld) 7559 case $host_os in 7560 aix3*) 7561 allow_undefined_flag=unsupported 7562 always_export_symbols=yes 7563 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' 7564 # Note: this linker hardcodes the directories in LIBPATH if there 7565 # are no directories specified by -L. 7566 hardcode_minus_L=yes 7567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7568 # Neither direct hardcoding nor static linking is supported with a 7569 # broken collect2. 7570 hardcode_direct=unsupported 7571 fi 7572 ;; 7573 7574 aix[4-9]*) 7575 if test "$host_cpu" = ia64; then 7576 # On IA64, the linker does run time linking by default, so we don't 7577 # have to do anything special. 7578 aix_use_runtimelinking=no 7579 exp_sym_flag='-Bexport' 7580 no_entry_flag="" 7581 else 7582 # If we're using GNU nm, then we don't want the "-C" option. 7583 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7585 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' 7586 else 7587 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' 7588 fi 7589 aix_use_runtimelinking=no 7590 7591 # Test if we are trying to use run time linking or normal 7592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7593 # need to do runtime linking. 7594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7595 for ld_flag in $LDFLAGS; do 7596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7597 aix_use_runtimelinking=yes 7598 break 7599 fi 7600 done 7601 ;; 7602 esac 7603 7604 exp_sym_flag='-bexport' 7605 no_entry_flag='-bnoentry' 7606 fi 7607 7608 # When large executables or shared objects are built, AIX ld can 7609 # have problems creating the table of contents. If linking a library 7610 # or program results in "error TOC overflow" add -mminimal-toc to 7611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7613 7614 archive_cmds='' 7615 hardcode_direct=yes 7616 hardcode_direct_absolute=yes 7617 hardcode_libdir_separator=':' 7618 link_all_deplibs=yes 7619 file_list_spec='${wl}-f,' 7620 7621 if test "$GCC" = yes; then 7622 case $host_os in aix4.[012]|aix4.[012].*) 7623 # We only want to do this on AIX 4.2 and lower, the check 7624 # below for broken collect2 doesn't work under 4.3+ 7625 collect2name=`${CC} -print-prog-name=collect2` 7626 if test -f "$collect2name" && 7627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7628 then 7629 # We have reworked collect2 7630 : 7631 else 7632 # We have old collect2 7633 hardcode_direct=unsupported 7634 # It fails to find uninstalled libraries when the uninstalled 7635 # path is not listed in the libpath. Setting hardcode_minus_L 7636 # to unsupported forces relinking 7637 hardcode_minus_L=yes 7638 hardcode_libdir_flag_spec='-L$libdir' 7639 hardcode_libdir_separator= 7640 fi 7641 ;; 7642 esac 7643 shared_flag='-shared' 7644 if test "$aix_use_runtimelinking" = yes; then 7645 shared_flag="$shared_flag "'${wl}-G' 7646 fi 7647 else 7648 # not using gcc 7649 if test "$host_cpu" = ia64; then 7650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7651 # chokes on -Wl,-G. The following line is correct: 7652 shared_flag='-G' 7653 else 7654 if test "$aix_use_runtimelinking" = yes; then 7655 shared_flag='${wl}-G' 7656 else 7657 shared_flag='${wl}-bM:SRE' 7658 fi 7659 fi 7660 fi 7661 7662 export_dynamic_flag_spec='${wl}-bexpall' 7663 # It seems that -bexpall does not export symbols beginning with 7664 # underscore (_), so it is better to generate a list of symbols to export. 7665 always_export_symbols=yes 7666 if test "$aix_use_runtimelinking" = yes; then 7667 # Warning - without using the other runtime loading flags (-brtl), 7668 # -berok will link without error, but may produce a broken library. 7669 allow_undefined_flag='-berok' 7670 # Determine the default libpath from the value encoded in an 7671 # empty executable. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674 7675int 7676main () 7677{ 7678 7679 ; 7680 return 0; 7681} 7682_ACEOF 7683if ac_fn_c_try_link "$LINENO"; then : 7684 7685lt_aix_libpath_sed=' 7686 /Import File Strings/,/^$/ { 7687 /^0/ { 7688 s/^0 *\(.*\)$/\1/ 7689 p 7690 } 7691 }' 7692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7693# Check for a 64-bit object if we didn't find anything. 7694if test -z "$aix_libpath"; then 7695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7696fi 7697fi 7698rm -f core conftest.err conftest.$ac_objext \ 7699 conftest$ac_exeext conftest.$ac_ext 7700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7701 7702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7703 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" 7704 else 7705 if test "$host_cpu" = ia64; then 7706 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7707 allow_undefined_flag="-z nodefs" 7708 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" 7709 else 7710 # Determine the default libpath from the value encoded in an 7711 # empty executable. 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714 7715int 7716main () 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO"; then : 7724 7725lt_aix_libpath_sed=' 7726 /Import File Strings/,/^$/ { 7727 /^0/ { 7728 s/^0 *\(.*\)$/\1/ 7729 p 7730 } 7731 }' 7732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7733# Check for a 64-bit object if we didn't find anything. 7734if test -z "$aix_libpath"; then 7735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7736fi 7737fi 7738rm -f core conftest.err conftest.$ac_objext \ 7739 conftest$ac_exeext conftest.$ac_ext 7740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7741 7742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7743 # Warning - without using the other run time loading flags, 7744 # -berok will link without error, but may produce a broken library. 7745 no_undefined_flag=' ${wl}-bernotok' 7746 allow_undefined_flag=' ${wl}-berok' 7747 # Exported symbols can be pulled into shared objects from archives 7748 whole_archive_flag_spec='$convenience' 7749 archive_cmds_need_lc=yes 7750 # This is similar to how AIX traditionally builds its shared libraries. 7751 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' 7752 fi 7753 fi 7754 ;; 7755 7756 amigaos*) 7757 case $host_cpu in 7758 powerpc) 7759 # see comment about AmigaOS4 .so support 7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7761 archive_expsym_cmds='' 7762 ;; 7763 m68k) 7764 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)' 7765 hardcode_libdir_flag_spec='-L$libdir' 7766 hardcode_minus_L=yes 7767 ;; 7768 esac 7769 ;; 7770 7771 bsdi[45]*) 7772 export_dynamic_flag_spec=-rdynamic 7773 ;; 7774 7775 cygwin* | mingw* | pw32* | cegcc*) 7776 # When not using gcc, we currently assume that we are using 7777 # Microsoft Visual C++. 7778 # hardcode_libdir_flag_spec is actually meaningless, as there is 7779 # no search path for DLLs. 7780 hardcode_libdir_flag_spec=' ' 7781 allow_undefined_flag=unsupported 7782 # Tell ltmain to make .lib files, not .a files. 7783 libext=lib 7784 # Tell ltmain to make .dll files, not .so files. 7785 shrext_cmds=".dll" 7786 # FIXME: Setting linknames here is a bad hack. 7787 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7788 # The linker will automatically build a .lib file if we build a DLL. 7789 old_archive_from_new_cmds='true' 7790 # FIXME: Should let the user specify the lib program. 7791 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7792 fix_srcfile_path='`cygpath -w "$srcfile"`' 7793 enable_shared_with_static_runtimes=yes 7794 ;; 7795 7796 darwin* | rhapsody*) 7797 7798 7799 archive_cmds_need_lc=no 7800 hardcode_direct=no 7801 hardcode_automatic=yes 7802 hardcode_shlibpath_var=unsupported 7803 whole_archive_flag_spec='' 7804 link_all_deplibs=yes 7805 allow_undefined_flag="$_lt_dar_allow_undefined" 7806 case $cc_basename in 7807 ifort*) _lt_dar_can_shared=yes ;; 7808 *) _lt_dar_can_shared=$GCC ;; 7809 esac 7810 if test "$_lt_dar_can_shared" = "yes"; then 7811 output_verbose_link_cmd=echo 7812 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7813 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7814 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}" 7815 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}" 7816 7817 else 7818 ld_shlibs=no 7819 fi 7820 7821 ;; 7822 7823 dgux*) 7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7825 hardcode_libdir_flag_spec='-L$libdir' 7826 hardcode_shlibpath_var=no 7827 ;; 7828 7829 freebsd1*) 7830 ld_shlibs=no 7831 ;; 7832 7833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7834 # support. Future versions do this automatically, but an explicit c++rt0.o 7835 # does not break anything, and helps significantly (at the cost of a little 7836 # extra space). 7837 freebsd2.2*) 7838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7839 hardcode_libdir_flag_spec='-R$libdir' 7840 hardcode_direct=yes 7841 hardcode_shlibpath_var=no 7842 ;; 7843 7844 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7845 freebsd2*) 7846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7847 hardcode_direct=yes 7848 hardcode_minus_L=yes 7849 hardcode_shlibpath_var=no 7850 ;; 7851 7852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7853 freebsd* | dragonfly*) 7854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7855 hardcode_libdir_flag_spec='-R$libdir' 7856 hardcode_direct=yes 7857 hardcode_shlibpath_var=no 7858 ;; 7859 7860 hpux9*) 7861 if test "$GCC" = yes; then 7862 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' 7863 else 7864 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' 7865 fi 7866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7867 hardcode_libdir_separator=: 7868 hardcode_direct=yes 7869 7870 # hardcode_minus_L: Not really in the search PATH, 7871 # but as the default location of the library. 7872 hardcode_minus_L=yes 7873 export_dynamic_flag_spec='${wl}-E' 7874 ;; 7875 7876 hpux10*) 7877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7879 else 7880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7881 fi 7882 if test "$with_gnu_ld" = no; then 7883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7884 hardcode_libdir_flag_spec_ld='+b $libdir' 7885 hardcode_libdir_separator=: 7886 hardcode_direct=yes 7887 hardcode_direct_absolute=yes 7888 export_dynamic_flag_spec='${wl}-E' 7889 # hardcode_minus_L: Not really in the search PATH, 7890 # but as the default location of the library. 7891 hardcode_minus_L=yes 7892 fi 7893 ;; 7894 7895 hpux11*) 7896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7897 case $host_cpu in 7898 hppa*64*) 7899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7900 ;; 7901 ia64*) 7902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7903 ;; 7904 *) 7905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7906 ;; 7907 esac 7908 else 7909 case $host_cpu in 7910 hppa*64*) 7911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7912 ;; 7913 ia64*) 7914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7915 ;; 7916 *) 7917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7918 ;; 7919 esac 7920 fi 7921 if test "$with_gnu_ld" = no; then 7922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7923 hardcode_libdir_separator=: 7924 7925 case $host_cpu in 7926 hppa*64*|ia64*) 7927 hardcode_direct=no 7928 hardcode_shlibpath_var=no 7929 ;; 7930 *) 7931 hardcode_direct=yes 7932 hardcode_direct_absolute=yes 7933 export_dynamic_flag_spec='${wl}-E' 7934 7935 # hardcode_minus_L: Not really in the search PATH, 7936 # but as the default location of the library. 7937 hardcode_minus_L=yes 7938 ;; 7939 esac 7940 fi 7941 ;; 7942 7943 irix5* | irix6* | nonstopux*) 7944 if test "$GCC" = yes; then 7945 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' 7946 # Try to use the -exported_symbol ld option, if it does not 7947 # work, assume that -exports_file does not work either and 7948 # implicitly export all symbols. 7949 save_LDFLAGS="$LDFLAGS" 7950 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int foo(void) {} 7954_ACEOF 7955if ac_fn_c_try_link "$LINENO"; then : 7956 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' 7957 7958fi 7959rm -f core conftest.err conftest.$ac_objext \ 7960 conftest$ac_exeext conftest.$ac_ext 7961 LDFLAGS="$save_LDFLAGS" 7962 else 7963 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' 7964 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' 7965 fi 7966 archive_cmds_need_lc='no' 7967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7968 hardcode_libdir_separator=: 7969 inherit_rpath=yes 7970 link_all_deplibs=yes 7971 ;; 7972 7973 netbsd*) 7974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7976 else 7977 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7978 fi 7979 hardcode_libdir_flag_spec='-R$libdir' 7980 hardcode_direct=yes 7981 hardcode_shlibpath_var=no 7982 ;; 7983 7984 newsos6) 7985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7986 hardcode_direct=yes 7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7988 hardcode_libdir_separator=: 7989 hardcode_shlibpath_var=no 7990 ;; 7991 7992 *nto* | *qnx*) 7993 ;; 7994 7995 openbsd*) 7996 if test -f /usr/libexec/ld.so; then 7997 hardcode_direct=yes 7998 hardcode_shlibpath_var=no 7999 hardcode_direct_absolute=yes 8000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8004 export_dynamic_flag_spec='${wl}-E' 8005 else 8006 case $host_os in 8007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8009 hardcode_libdir_flag_spec='-R$libdir' 8010 ;; 8011 *) 8012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8014 ;; 8015 esac 8016 fi 8017 else 8018 ld_shlibs=no 8019 fi 8020 ;; 8021 8022 os2*) 8023 hardcode_libdir_flag_spec='-L$libdir' 8024 hardcode_minus_L=yes 8025 allow_undefined_flag=unsupported 8026 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' 8027 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8028 ;; 8029 8030 osf3*) 8031 if test "$GCC" = yes; then 8032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8033 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' 8034 else 8035 allow_undefined_flag=' -expect_unresolved \*' 8036 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' 8037 fi 8038 archive_cmds_need_lc='no' 8039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8040 hardcode_libdir_separator=: 8041 ;; 8042 8043 osf4* | osf5*) # as osf3* with the addition of -msym flag 8044 if test "$GCC" = yes; then 8045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8046 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' 8047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8048 else 8049 allow_undefined_flag=' -expect_unresolved \*' 8050 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' 8051 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~ 8052 $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' 8053 8054 # Both c and cxx compiler support -rpath directly 8055 hardcode_libdir_flag_spec='-rpath $libdir' 8056 fi 8057 archive_cmds_need_lc='no' 8058 hardcode_libdir_separator=: 8059 ;; 8060 8061 solaris*) 8062 no_undefined_flag=' -z defs' 8063 if test "$GCC" = yes; then 8064 wlarc='${wl}' 8065 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8067 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8068 else 8069 case `$CC -V 2>&1` in 8070 *"Compilers 5.0"*) 8071 wlarc='' 8072 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8075 ;; 8076 *) 8077 wlarc='${wl}' 8078 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8080 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8081 ;; 8082 esac 8083 fi 8084 hardcode_libdir_flag_spec='-R$libdir' 8085 hardcode_shlibpath_var=no 8086 case $host_os in 8087 solaris2.[0-5] | solaris2.[0-5].*) ;; 8088 *) 8089 # The compiler driver will combine and reorder linker options, 8090 # but understands `-z linker_flag'. GCC discards it without `$wl', 8091 # but is careful enough not to reorder. 8092 # Supported since Solaris 2.6 (maybe 2.5.1?) 8093 if test "$GCC" = yes; then 8094 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8095 else 8096 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8097 fi 8098 ;; 8099 esac 8100 link_all_deplibs=yes 8101 ;; 8102 8103 sunos4*) 8104 if test "x$host_vendor" = xsequent; then 8105 # Use $CC to link under sequent, because it throws in some extra .o 8106 # files that make .init and .fini sections work. 8107 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8108 else 8109 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8110 fi 8111 hardcode_libdir_flag_spec='-L$libdir' 8112 hardcode_direct=yes 8113 hardcode_minus_L=yes 8114 hardcode_shlibpath_var=no 8115 ;; 8116 8117 sysv4) 8118 case $host_vendor in 8119 sni) 8120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8121 hardcode_direct=yes # is this really true??? 8122 ;; 8123 siemens) 8124 ## LD is ld it makes a PLAMLIB 8125 ## CC just makes a GrossModule. 8126 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8127 reload_cmds='$CC -r -o $output$reload_objs' 8128 hardcode_direct=no 8129 ;; 8130 motorola) 8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8132 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8133 ;; 8134 esac 8135 runpath_var='LD_RUN_PATH' 8136 hardcode_shlibpath_var=no 8137 ;; 8138 8139 sysv4.3*) 8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8141 hardcode_shlibpath_var=no 8142 export_dynamic_flag_spec='-Bexport' 8143 ;; 8144 8145 sysv4*MP*) 8146 if test -d /usr/nec; then 8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8148 hardcode_shlibpath_var=no 8149 runpath_var=LD_RUN_PATH 8150 hardcode_runpath_var=yes 8151 ld_shlibs=yes 8152 fi 8153 ;; 8154 8155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8156 no_undefined_flag='${wl}-z,text' 8157 archive_cmds_need_lc=no 8158 hardcode_shlibpath_var=no 8159 runpath_var='LD_RUN_PATH' 8160 8161 if test "$GCC" = yes; then 8162 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8163 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8164 else 8165 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8166 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8167 fi 8168 ;; 8169 8170 sysv5* | sco3.2v5* | sco5v6*) 8171 # Note: We can NOT use -z defs as we might desire, because we do not 8172 # link with -lc, and that would cause any symbols used from libc to 8173 # always be unresolved, which means just about no library would 8174 # ever link correctly. If we're not using GNU ld we use -z text 8175 # though, which does catch some bad symbols but isn't as heavy-handed 8176 # as -z defs. 8177 no_undefined_flag='${wl}-z,text' 8178 allow_undefined_flag='${wl}-z,nodefs' 8179 archive_cmds_need_lc=no 8180 hardcode_shlibpath_var=no 8181 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8182 hardcode_libdir_separator=':' 8183 link_all_deplibs=yes 8184 export_dynamic_flag_spec='${wl}-Bexport' 8185 runpath_var='LD_RUN_PATH' 8186 8187 if test "$GCC" = yes; then 8188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8190 else 8191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8193 fi 8194 ;; 8195 8196 uts4*) 8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8198 hardcode_libdir_flag_spec='-L$libdir' 8199 hardcode_shlibpath_var=no 8200 ;; 8201 8202 *) 8203 ld_shlibs=no 8204 ;; 8205 esac 8206 8207 if test x$host_vendor = xsni; then 8208 case $host in 8209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8210 export_dynamic_flag_spec='${wl}-Blargedynsym' 8211 ;; 8212 esac 8213 fi 8214 fi 8215 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8217$as_echo "$ld_shlibs" >&6; } 8218test "$ld_shlibs" = no && can_build_shared=no 8219 8220with_gnu_ld=$with_gnu_ld 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236# 8237# Do we need to explicitly link libc? 8238# 8239case "x$archive_cmds_need_lc" in 8240x|xyes) 8241 # Assume -lc should be added 8242 archive_cmds_need_lc=yes 8243 8244 if test "$enable_shared" = yes && test "$GCC" = yes; then 8245 case $archive_cmds in 8246 *'~'*) 8247 # FIXME: we may have to deal with multi-command sequences. 8248 ;; 8249 '$CC '*) 8250 # Test whether the compiler implicitly links with -lc since on some 8251 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8252 # to ld, don't add -lc before -lgcc. 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8254$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8255 $RM conftest* 8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8257 8258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8259 (eval $ac_compile) 2>&5 8260 ac_status=$? 8261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8262 test $ac_status = 0; } 2>conftest.err; then 8263 soname=conftest 8264 lib=conftest 8265 libobjs=conftest.$ac_objext 8266 deplibs= 8267 wl=$lt_prog_compiler_wl 8268 pic_flag=$lt_prog_compiler_pic 8269 compiler_flags=-v 8270 linker_flags=-v 8271 verstring= 8272 output_objdir=. 8273 libname=conftest 8274 lt_save_allow_undefined_flag=$allow_undefined_flag 8275 allow_undefined_flag= 8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8278 ac_status=$? 8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8280 test $ac_status = 0; } 8281 then 8282 archive_cmds_need_lc=no 8283 else 8284 archive_cmds_need_lc=yes 8285 fi 8286 allow_undefined_flag=$lt_save_allow_undefined_flag 8287 else 8288 cat conftest.err 1>&5 8289 fi 8290 $RM conftest* 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8292$as_echo "$archive_cmds_need_lc" >&6; } 8293 ;; 8294 esac 8295 fi 8296 ;; 8297esac 8298 8299 8300 8301 8302 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8456$as_echo_n "checking dynamic linker characteristics... " >&6; } 8457 8458if test "$GCC" = yes; then 8459 case $host_os in 8460 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8461 *) lt_awk_arg="/^libraries:/" ;; 8462 esac 8463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8464 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8465 # if the path contains ";" then we assume it to be the separator 8466 # otherwise default to the standard path separator (i.e. ":") - it is 8467 # assumed that no part of a normal pathname contains ";" but that should 8468 # okay in the real world where ";" in dirpaths is itself problematic. 8469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8470 else 8471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8472 fi 8473 # Ok, now we have the path, separated by spaces, we can step through it 8474 # and add multilib dir if necessary. 8475 lt_tmp_lt_search_path_spec= 8476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8477 for lt_sys_path in $lt_search_path_spec; do 8478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8480 else 8481 test -d "$lt_sys_path" && \ 8482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8483 fi 8484 done 8485 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8486BEGIN {RS=" "; FS="/|\n";} { 8487 lt_foo=""; 8488 lt_count=0; 8489 for (lt_i = NF; lt_i > 0; lt_i--) { 8490 if ($lt_i != "" && $lt_i != ".") { 8491 if ($lt_i == "..") { 8492 lt_count++; 8493 } else { 8494 if (lt_count == 0) { 8495 lt_foo="/" $lt_i lt_foo; 8496 } else { 8497 lt_count--; 8498 } 8499 } 8500 } 8501 } 8502 if (lt_foo != "") { lt_freq[lt_foo]++; } 8503 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8504}'` 8505 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8506else 8507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8508fi 8509library_names_spec= 8510libname_spec='lib$name' 8511soname_spec= 8512shrext_cmds=".so" 8513postinstall_cmds= 8514postuninstall_cmds= 8515finish_cmds= 8516finish_eval= 8517shlibpath_var= 8518shlibpath_overrides_runpath=unknown 8519version_type=none 8520dynamic_linker="$host_os ld.so" 8521sys_lib_dlsearch_path_spec="/lib /usr/lib" 8522need_lib_prefix=unknown 8523hardcode_into_libs=no 8524 8525# when you set need_version to no, make sure it does not cause -set_version 8526# flags to be left without arguments 8527need_version=unknown 8528 8529case $host_os in 8530aix3*) 8531 version_type=linux 8532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8533 shlibpath_var=LIBPATH 8534 8535 # AIX 3 has no versioning support, so we append a major version to the name. 8536 soname_spec='${libname}${release}${shared_ext}$major' 8537 ;; 8538 8539aix[4-9]*) 8540 version_type=linux 8541 need_lib_prefix=no 8542 need_version=no 8543 hardcode_into_libs=yes 8544 if test "$host_cpu" = ia64; then 8545 # AIX 5 supports IA64 8546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8547 shlibpath_var=LD_LIBRARY_PATH 8548 else 8549 # With GCC up to 2.95.x, collect2 would create an import file 8550 # for dependence libraries. The import file would start with 8551 # the line `#! .'. This would cause the generated library to 8552 # depend on `.', always an invalid library. This was fixed in 8553 # development snapshots of GCC prior to 3.0. 8554 case $host_os in 8555 aix4 | aix4.[01] | aix4.[01].*) 8556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8557 echo ' yes ' 8558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8559 : 8560 else 8561 can_build_shared=no 8562 fi 8563 ;; 8564 esac 8565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8566 # soname into executable. Probably we can add versioning support to 8567 # collect2, so additional links can be useful in future. 8568 if test "$aix_use_runtimelinking" = yes; then 8569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8570 # instead of lib<name>.a to let people know that these are not 8571 # typical AIX shared libraries. 8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8573 else 8574 # We preserve .a as extension for shared libraries through AIX4.2 8575 # and later when we are not doing run time linking. 8576 library_names_spec='${libname}${release}.a $libname.a' 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 fi 8579 shlibpath_var=LIBPATH 8580 fi 8581 ;; 8582 8583amigaos*) 8584 case $host_cpu in 8585 powerpc) 8586 # Since July 2007 AmigaOS4 officially supports .so libraries. 8587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8589 ;; 8590 m68k) 8591 library_names_spec='$libname.ixlibrary $libname.a' 8592 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8593 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' 8594 ;; 8595 esac 8596 ;; 8597 8598beos*) 8599 library_names_spec='${libname}${shared_ext}' 8600 dynamic_linker="$host_os ld.so" 8601 shlibpath_var=LIBRARY_PATH 8602 ;; 8603 8604bsdi[45]*) 8605 version_type=linux 8606 need_version=no 8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8608 soname_spec='${libname}${release}${shared_ext}$major' 8609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8610 shlibpath_var=LD_LIBRARY_PATH 8611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8613 # the default ld.so.conf also contains /usr/contrib/lib and 8614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8615 # libtool to hard-code these into programs 8616 ;; 8617 8618cygwin* | mingw* | pw32* | cegcc*) 8619 version_type=windows 8620 shrext_cmds=".dll" 8621 need_version=no 8622 need_lib_prefix=no 8623 8624 case $GCC,$host_os in 8625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8626 library_names_spec='$libname.dll.a' 8627 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8628 postinstall_cmds='base_file=`basename \${file}`~ 8629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8630 dldir=$destdir/`dirname \$dlpath`~ 8631 test -d \$dldir || mkdir -p \$dldir~ 8632 $install_prog $dir/$dlname \$dldir/$dlname~ 8633 chmod a+x \$dldir/$dlname~ 8634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8636 fi' 8637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8638 dlpath=$dir/\$dldll~ 8639 $RM \$dlpath' 8640 shlibpath_overrides_runpath=yes 8641 8642 case $host_os in 8643 cygwin*) 8644 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8647 ;; 8648 mingw* | cegcc*) 8649 # MinGW DLLs use traditional 'lib' prefix 8650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8651 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8652 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8653 # It is most probably a Windows format PATH printed by 8654 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8655 # path with ; separators, and with drive letters. We can handle the 8656 # drive letters (cygwin fileutils understands them), so leave them, 8657 # especially as we might pass files found there to a mingw objdump, 8658 # which wouldn't understand a cygwinified path. Ahh. 8659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8660 else 8661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8662 fi 8663 ;; 8664 pw32*) 8665 # pw32 DLLs use 'pw' prefix rather than 'lib' 8666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8667 ;; 8668 esac 8669 ;; 8670 8671 *) 8672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8673 ;; 8674 esac 8675 dynamic_linker='Win32 ld.exe' 8676 # FIXME: first we should search . and the directory the executable is in 8677 shlibpath_var=PATH 8678 ;; 8679 8680darwin* | rhapsody*) 8681 dynamic_linker="$host_os dyld" 8682 version_type=darwin 8683 need_lib_prefix=no 8684 need_version=no 8685 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8686 soname_spec='${libname}${release}${major}$shared_ext' 8687 shlibpath_overrides_runpath=yes 8688 shlibpath_var=DYLD_LIBRARY_PATH 8689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8690 8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8693 ;; 8694 8695dgux*) 8696 version_type=linux 8697 need_lib_prefix=no 8698 need_version=no 8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8700 soname_spec='${libname}${release}${shared_ext}$major' 8701 shlibpath_var=LD_LIBRARY_PATH 8702 ;; 8703 8704freebsd1*) 8705 dynamic_linker=no 8706 ;; 8707 8708freebsd* | dragonfly*) 8709 # DragonFly does not have aout. When/if they implement a new 8710 # versioning mechanism, adjust this. 8711 if test -x /usr/bin/objformat; then 8712 objformat=`/usr/bin/objformat` 8713 else 8714 case $host_os in 8715 freebsd[123]*) objformat=aout ;; 8716 *) objformat=elf ;; 8717 esac 8718 fi 8719 # Handle Gentoo/FreeBSD as it was Linux 8720 case $host_vendor in 8721 gentoo) 8722 version_type=linux ;; 8723 *) 8724 version_type=freebsd-$objformat ;; 8725 esac 8726 8727 case $version_type in 8728 freebsd-elf*) 8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8730 need_version=no 8731 need_lib_prefix=no 8732 ;; 8733 freebsd-*) 8734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8735 need_version=yes 8736 ;; 8737 linux) 8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8739 soname_spec='${libname}${release}${shared_ext}$major' 8740 need_lib_prefix=no 8741 need_version=no 8742 ;; 8743 esac 8744 shlibpath_var=LD_LIBRARY_PATH 8745 case $host_os in 8746 freebsd2*) 8747 shlibpath_overrides_runpath=yes 8748 ;; 8749 freebsd3.[01]* | freebsdelf3.[01]*) 8750 shlibpath_overrides_runpath=yes 8751 hardcode_into_libs=yes 8752 ;; 8753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8755 shlibpath_overrides_runpath=no 8756 hardcode_into_libs=yes 8757 ;; 8758 *) # from 4.6 on, and DragonFly 8759 shlibpath_overrides_runpath=yes 8760 hardcode_into_libs=yes 8761 ;; 8762 esac 8763 ;; 8764 8765gnu*) 8766 version_type=linux 8767 need_lib_prefix=no 8768 need_version=no 8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8770 soname_spec='${libname}${release}${shared_ext}$major' 8771 shlibpath_var=LD_LIBRARY_PATH 8772 hardcode_into_libs=yes 8773 ;; 8774 8775hpux9* | hpux10* | hpux11*) 8776 # Give a soname corresponding to the major version so that dld.sl refuses to 8777 # link against other versions. 8778 version_type=sunos 8779 need_lib_prefix=no 8780 need_version=no 8781 case $host_cpu in 8782 ia64*) 8783 shrext_cmds='.so' 8784 hardcode_into_libs=yes 8785 dynamic_linker="$host_os dld.so" 8786 shlibpath_var=LD_LIBRARY_PATH 8787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8789 soname_spec='${libname}${release}${shared_ext}$major' 8790 if test "X$HPUX_IA64_MODE" = X32; then 8791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8792 else 8793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8794 fi 8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8796 ;; 8797 hppa*64*) 8798 shrext_cmds='.sl' 8799 hardcode_into_libs=yes 8800 dynamic_linker="$host_os dld.sl" 8801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8804 soname_spec='${libname}${release}${shared_ext}$major' 8805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8807 ;; 8808 *) 8809 shrext_cmds='.sl' 8810 dynamic_linker="$host_os dld.sl" 8811 shlibpath_var=SHLIB_PATH 8812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8814 soname_spec='${libname}${release}${shared_ext}$major' 8815 ;; 8816 esac 8817 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8818 postinstall_cmds='chmod 555 $lib' 8819 ;; 8820 8821interix[3-9]*) 8822 version_type=linux 8823 need_lib_prefix=no 8824 need_version=no 8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8826 soname_spec='${libname}${release}${shared_ext}$major' 8827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8828 shlibpath_var=LD_LIBRARY_PATH 8829 shlibpath_overrides_runpath=no 8830 hardcode_into_libs=yes 8831 ;; 8832 8833irix5* | irix6* | nonstopux*) 8834 case $host_os in 8835 nonstopux*) version_type=nonstopux ;; 8836 *) 8837 if test "$lt_cv_prog_gnu_ld" = yes; then 8838 version_type=linux 8839 else 8840 version_type=irix 8841 fi ;; 8842 esac 8843 need_lib_prefix=no 8844 need_version=no 8845 soname_spec='${libname}${release}${shared_ext}$major' 8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8847 case $host_os in 8848 irix5* | nonstopux*) 8849 libsuff= shlibsuff= 8850 ;; 8851 *) 8852 case $LD in # libtool.m4 will add one of these switches to LD 8853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8854 libsuff= shlibsuff= libmagic=32-bit;; 8855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8856 libsuff=32 shlibsuff=N32 libmagic=N32;; 8857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8858 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8859 *) libsuff= shlibsuff= libmagic=never-match;; 8860 esac 8861 ;; 8862 esac 8863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8864 shlibpath_overrides_runpath=no 8865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8867 hardcode_into_libs=yes 8868 ;; 8869 8870# No shared lib support for Linux oldld, aout, or coff. 8871linux*oldld* | linux*aout* | linux*coff*) 8872 dynamic_linker=no 8873 ;; 8874 8875# This must be Linux ELF. 8876linux* | k*bsd*-gnu) 8877 version_type=linux 8878 need_lib_prefix=no 8879 need_version=no 8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8881 soname_spec='${libname}${release}${shared_ext}$major' 8882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8883 shlibpath_var=LD_LIBRARY_PATH 8884 shlibpath_overrides_runpath=no 8885 # Some binutils ld are patched to set DT_RUNPATH 8886 save_LDFLAGS=$LDFLAGS 8887 save_libdir=$libdir 8888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8891/* end confdefs.h. */ 8892 8893int 8894main () 8895{ 8896 8897 ; 8898 return 0; 8899} 8900_ACEOF 8901if ac_fn_c_try_link "$LINENO"; then : 8902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 8903 shlibpath_overrides_runpath=yes 8904fi 8905fi 8906rm -f core conftest.err conftest.$ac_objext \ 8907 conftest$ac_exeext conftest.$ac_ext 8908 LDFLAGS=$save_LDFLAGS 8909 libdir=$save_libdir 8910 8911 # This implies no fast_install, which is unacceptable. 8912 # Some rework will be needed to allow for fast_install 8913 # before this can be enabled. 8914 hardcode_into_libs=yes 8915 8916 # Append ld.so.conf contents to the search path 8917 if test -f /etc/ld.so.conf; then 8918 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' ' '` 8919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8920 fi 8921 8922 # We used to test for /lib/ld.so.1 and disable shared libraries on 8923 # powerpc, because MkLinux only supported shared libraries with the 8924 # GNU dynamic linker. Since this was broken with cross compilers, 8925 # most powerpc-linux boxes support dynamic linking these days and 8926 # people can always --disable-shared, the test was removed, and we 8927 # assume the GNU/Linux dynamic linker is in use. 8928 dynamic_linker='GNU/Linux ld.so' 8929 ;; 8930 8931netbsd*) 8932 version_type=sunos 8933 need_lib_prefix=no 8934 need_version=no 8935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8938 dynamic_linker='NetBSD (a.out) ld.so' 8939 else 8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8941 soname_spec='${libname}${release}${shared_ext}$major' 8942 dynamic_linker='NetBSD ld.elf_so' 8943 fi 8944 shlibpath_var=LD_LIBRARY_PATH 8945 shlibpath_overrides_runpath=yes 8946 hardcode_into_libs=yes 8947 ;; 8948 8949newsos6) 8950 version_type=linux 8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8952 shlibpath_var=LD_LIBRARY_PATH 8953 shlibpath_overrides_runpath=yes 8954 ;; 8955 8956*nto* | *qnx*) 8957 version_type=qnx 8958 need_lib_prefix=no 8959 need_version=no 8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8961 soname_spec='${libname}${release}${shared_ext}$major' 8962 shlibpath_var=LD_LIBRARY_PATH 8963 shlibpath_overrides_runpath=no 8964 hardcode_into_libs=yes 8965 dynamic_linker='ldqnx.so' 8966 ;; 8967 8968openbsd*) 8969 version_type=sunos 8970 sys_lib_dlsearch_path_spec="/usr/lib" 8971 need_lib_prefix=no 8972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8973 case $host_os in 8974 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8975 *) need_version=no ;; 8976 esac 8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8979 shlibpath_var=LD_LIBRARY_PATH 8980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8981 case $host_os in 8982 openbsd2.[89] | openbsd2.[89].*) 8983 shlibpath_overrides_runpath=no 8984 ;; 8985 *) 8986 shlibpath_overrides_runpath=yes 8987 ;; 8988 esac 8989 else 8990 shlibpath_overrides_runpath=yes 8991 fi 8992 ;; 8993 8994os2*) 8995 libname_spec='$name' 8996 shrext_cmds=".dll" 8997 need_lib_prefix=no 8998 library_names_spec='$libname${shared_ext} $libname.a' 8999 dynamic_linker='OS/2 ld.exe' 9000 shlibpath_var=LIBPATH 9001 ;; 9002 9003osf3* | osf4* | osf5*) 9004 version_type=osf 9005 need_lib_prefix=no 9006 need_version=no 9007 soname_spec='${libname}${release}${shared_ext}$major' 9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9009 shlibpath_var=LD_LIBRARY_PATH 9010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9012 ;; 9013 9014rdos*) 9015 dynamic_linker=no 9016 ;; 9017 9018solaris*) 9019 version_type=linux 9020 need_lib_prefix=no 9021 need_version=no 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9023 soname_spec='${libname}${release}${shared_ext}$major' 9024 shlibpath_var=LD_LIBRARY_PATH 9025 shlibpath_overrides_runpath=yes 9026 hardcode_into_libs=yes 9027 # ldd complains unless libraries are executable 9028 postinstall_cmds='chmod +x $lib' 9029 ;; 9030 9031sunos4*) 9032 version_type=sunos 9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9035 shlibpath_var=LD_LIBRARY_PATH 9036 shlibpath_overrides_runpath=yes 9037 if test "$with_gnu_ld" = yes; then 9038 need_lib_prefix=no 9039 fi 9040 need_version=yes 9041 ;; 9042 9043sysv4 | sysv4.3*) 9044 version_type=linux 9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9046 soname_spec='${libname}${release}${shared_ext}$major' 9047 shlibpath_var=LD_LIBRARY_PATH 9048 case $host_vendor in 9049 sni) 9050 shlibpath_overrides_runpath=no 9051 need_lib_prefix=no 9052 runpath_var=LD_RUN_PATH 9053 ;; 9054 siemens) 9055 need_lib_prefix=no 9056 ;; 9057 motorola) 9058 need_lib_prefix=no 9059 need_version=no 9060 shlibpath_overrides_runpath=no 9061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9062 ;; 9063 esac 9064 ;; 9065 9066sysv4*MP*) 9067 if test -d /usr/nec ;then 9068 version_type=linux 9069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9070 soname_spec='$libname${shared_ext}.$major' 9071 shlibpath_var=LD_LIBRARY_PATH 9072 fi 9073 ;; 9074 9075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9076 version_type=freebsd-elf 9077 need_lib_prefix=no 9078 need_version=no 9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9080 soname_spec='${libname}${release}${shared_ext}$major' 9081 shlibpath_var=LD_LIBRARY_PATH 9082 shlibpath_overrides_runpath=yes 9083 hardcode_into_libs=yes 9084 if test "$with_gnu_ld" = yes; then 9085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9086 else 9087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9088 case $host_os in 9089 sco3.2v5*) 9090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9091 ;; 9092 esac 9093 fi 9094 sys_lib_dlsearch_path_spec='/usr/lib' 9095 ;; 9096 9097tpf*) 9098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9099 version_type=linux 9100 need_lib_prefix=no 9101 need_version=no 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9103 shlibpath_var=LD_LIBRARY_PATH 9104 shlibpath_overrides_runpath=no 9105 hardcode_into_libs=yes 9106 ;; 9107 9108uts4*) 9109 version_type=linux 9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9111 soname_spec='${libname}${release}${shared_ext}$major' 9112 shlibpath_var=LD_LIBRARY_PATH 9113 ;; 9114 9115*) 9116 dynamic_linker=no 9117 ;; 9118esac 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9120$as_echo "$dynamic_linker" >&6; } 9121test "$dynamic_linker" = no && can_build_shared=no 9122 9123variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9124if test "$GCC" = yes; then 9125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9126fi 9127 9128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9130fi 9131if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9133fi 9134 9135 9136 9137 9138 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9222$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9223hardcode_action= 9224if test -n "$hardcode_libdir_flag_spec" || 9225 test -n "$runpath_var" || 9226 test "X$hardcode_automatic" = "Xyes" ; then 9227 9228 # We can hardcode non-existent directories. 9229 if test "$hardcode_direct" != no && 9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9231 # have to relink, otherwise we might link with an installed library 9232 # when we should be linking with a yet-to-be-installed one 9233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9234 test "$hardcode_minus_L" != no; then 9235 # Linking always hardcodes the temporary library directory. 9236 hardcode_action=relink 9237 else 9238 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9239 hardcode_action=immediate 9240 fi 9241else 9242 # We cannot hardcode anything, or else we can only hardcode existing 9243 # directories. 9244 hardcode_action=unsupported 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9247$as_echo "$hardcode_action" >&6; } 9248 9249if test "$hardcode_action" = relink || 9250 test "$inherit_rpath" = yes; then 9251 # Fast installation is not supported 9252 enable_fast_install=no 9253elif test "$shlibpath_overrides_runpath" = yes || 9254 test "$enable_shared" = no; then 9255 # Fast installation is not necessary 9256 enable_fast_install=needless 9257fi 9258 9259 9260 9261 9262 9263 9264 if test "x$enable_dlopen" != xyes; then 9265 enable_dlopen=unknown 9266 enable_dlopen_self=unknown 9267 enable_dlopen_self_static=unknown 9268else 9269 lt_cv_dlopen=no 9270 lt_cv_dlopen_libs= 9271 9272 case $host_os in 9273 beos*) 9274 lt_cv_dlopen="load_add_on" 9275 lt_cv_dlopen_libs= 9276 lt_cv_dlopen_self=yes 9277 ;; 9278 9279 mingw* | pw32* | cegcc*) 9280 lt_cv_dlopen="LoadLibrary" 9281 lt_cv_dlopen_libs= 9282 ;; 9283 9284 cygwin*) 9285 lt_cv_dlopen="dlopen" 9286 lt_cv_dlopen_libs= 9287 ;; 9288 9289 darwin*) 9290 # if libdl is installed we need to link against it 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9292$as_echo_n "checking for dlopen in -ldl... " >&6; } 9293if ${ac_cv_lib_dl_dlopen+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 ac_check_lib_save_LIBS=$LIBS 9297LIBS="-ldl $LIBS" 9298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300 9301/* Override any GCC internal prototype to avoid an error. 9302 Use char because int might match the return type of a GCC 9303 builtin and then its argument prototype would still apply. */ 9304#ifdef __cplusplus 9305extern "C" 9306#endif 9307char dlopen (); 9308int 9309main () 9310{ 9311return dlopen (); 9312 ; 9313 return 0; 9314} 9315_ACEOF 9316if ac_fn_c_try_link "$LINENO"; then : 9317 ac_cv_lib_dl_dlopen=yes 9318else 9319 ac_cv_lib_dl_dlopen=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext \ 9322 conftest$ac_exeext conftest.$ac_ext 9323LIBS=$ac_check_lib_save_LIBS 9324fi 9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9326$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9327if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9329else 9330 9331 lt_cv_dlopen="dyld" 9332 lt_cv_dlopen_libs= 9333 lt_cv_dlopen_self=yes 9334 9335fi 9336 9337 ;; 9338 9339 *) 9340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9341if test "x$ac_cv_func_shl_load" = xyes; then : 9342 lt_cv_dlopen="shl_load" 9343else 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9345$as_echo_n "checking for shl_load in -ldld... " >&6; } 9346if ${ac_cv_lib_dld_shl_load+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348else 9349 ac_check_lib_save_LIBS=$LIBS 9350LIBS="-ldld $LIBS" 9351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353 9354/* Override any GCC internal prototype to avoid an error. 9355 Use char because int might match the return type of a GCC 9356 builtin and then its argument prototype would still apply. */ 9357#ifdef __cplusplus 9358extern "C" 9359#endif 9360char shl_load (); 9361int 9362main () 9363{ 9364return shl_load (); 9365 ; 9366 return 0; 9367} 9368_ACEOF 9369if ac_fn_c_try_link "$LINENO"; then : 9370 ac_cv_lib_dld_shl_load=yes 9371else 9372 ac_cv_lib_dld_shl_load=no 9373fi 9374rm -f core conftest.err conftest.$ac_objext \ 9375 conftest$ac_exeext conftest.$ac_ext 9376LIBS=$ac_check_lib_save_LIBS 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9379$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9380if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9381 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9382else 9383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9384if test "x$ac_cv_func_dlopen" = xyes; then : 9385 lt_cv_dlopen="dlopen" 9386else 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9388$as_echo_n "checking for dlopen in -ldl... " >&6; } 9389if ${ac_cv_lib_dl_dlopen+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 ac_check_lib_save_LIBS=$LIBS 9393LIBS="-ldl $LIBS" 9394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395/* end confdefs.h. */ 9396 9397/* Override any GCC internal prototype to avoid an error. 9398 Use char because int might match the return type of a GCC 9399 builtin and then its argument prototype would still apply. */ 9400#ifdef __cplusplus 9401extern "C" 9402#endif 9403char dlopen (); 9404int 9405main () 9406{ 9407return dlopen (); 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412if ac_fn_c_try_link "$LINENO"; then : 9413 ac_cv_lib_dl_dlopen=yes 9414else 9415 ac_cv_lib_dl_dlopen=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext \ 9418 conftest$ac_exeext conftest.$ac_ext 9419LIBS=$ac_check_lib_save_LIBS 9420fi 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9422$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9423if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9425else 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9427$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9428if ${ac_cv_lib_svld_dlopen+:} false; then : 9429 $as_echo_n "(cached) " >&6 9430else 9431 ac_check_lib_save_LIBS=$LIBS 9432LIBS="-lsvld $LIBS" 9433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435 9436/* Override any GCC internal prototype to avoid an error. 9437 Use char because int might match the return type of a GCC 9438 builtin and then its argument prototype would still apply. */ 9439#ifdef __cplusplus 9440extern "C" 9441#endif 9442char dlopen (); 9443int 9444main () 9445{ 9446return dlopen (); 9447 ; 9448 return 0; 9449} 9450_ACEOF 9451if ac_fn_c_try_link "$LINENO"; then : 9452 ac_cv_lib_svld_dlopen=yes 9453else 9454 ac_cv_lib_svld_dlopen=no 9455fi 9456rm -f core conftest.err conftest.$ac_objext \ 9457 conftest$ac_exeext conftest.$ac_ext 9458LIBS=$ac_check_lib_save_LIBS 9459fi 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9461$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9462if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 9463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9464else 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9466$as_echo_n "checking for dld_link in -ldld... " >&6; } 9467if ${ac_cv_lib_dld_dld_link+:} false; then : 9468 $as_echo_n "(cached) " >&6 9469else 9470 ac_check_lib_save_LIBS=$LIBS 9471LIBS="-ldld $LIBS" 9472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474 9475/* Override any GCC internal prototype to avoid an error. 9476 Use char because int might match the return type of a GCC 9477 builtin and then its argument prototype would still apply. */ 9478#ifdef __cplusplus 9479extern "C" 9480#endif 9481char dld_link (); 9482int 9483main () 9484{ 9485return dld_link (); 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO"; then : 9491 ac_cv_lib_dld_dld_link=yes 9492else 9493 ac_cv_lib_dld_dld_link=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext \ 9496 conftest$ac_exeext conftest.$ac_ext 9497LIBS=$ac_check_lib_save_LIBS 9498fi 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9500$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9501if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 9502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9503fi 9504 9505 9506fi 9507 9508 9509fi 9510 9511 9512fi 9513 9514 9515fi 9516 9517 9518fi 9519 9520 ;; 9521 esac 9522 9523 if test "x$lt_cv_dlopen" != xno; then 9524 enable_dlopen=yes 9525 else 9526 enable_dlopen=no 9527 fi 9528 9529 case $lt_cv_dlopen in 9530 dlopen) 9531 save_CPPFLAGS="$CPPFLAGS" 9532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9533 9534 save_LDFLAGS="$LDFLAGS" 9535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9536 9537 save_LIBS="$LIBS" 9538 LIBS="$lt_cv_dlopen_libs $LIBS" 9539 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9541$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9542if ${lt_cv_dlopen_self+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 if test "$cross_compiling" = yes; then : 9546 lt_cv_dlopen_self=cross 9547else 9548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9549 lt_status=$lt_dlunknown 9550 cat > conftest.$ac_ext <<_LT_EOF 9551#line 9551 "configure" 9552#include "confdefs.h" 9553 9554#if HAVE_DLFCN_H 9555#include <dlfcn.h> 9556#endif 9557 9558#include <stdio.h> 9559 9560#ifdef RTLD_GLOBAL 9561# define LT_DLGLOBAL RTLD_GLOBAL 9562#else 9563# ifdef DL_GLOBAL 9564# define LT_DLGLOBAL DL_GLOBAL 9565# else 9566# define LT_DLGLOBAL 0 9567# endif 9568#endif 9569 9570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9571 find out it does not work in some platform. */ 9572#ifndef LT_DLLAZY_OR_NOW 9573# ifdef RTLD_LAZY 9574# define LT_DLLAZY_OR_NOW RTLD_LAZY 9575# else 9576# ifdef DL_LAZY 9577# define LT_DLLAZY_OR_NOW DL_LAZY 9578# else 9579# ifdef RTLD_NOW 9580# define LT_DLLAZY_OR_NOW RTLD_NOW 9581# else 9582# ifdef DL_NOW 9583# define LT_DLLAZY_OR_NOW DL_NOW 9584# else 9585# define LT_DLLAZY_OR_NOW 0 9586# endif 9587# endif 9588# endif 9589# endif 9590#endif 9591 9592void fnord() { int i=42;} 9593int main () 9594{ 9595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9596 int status = $lt_dlunknown; 9597 9598 if (self) 9599 { 9600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9602 /* dlclose (self); */ 9603 } 9604 else 9605 puts (dlerror ()); 9606 9607 return status; 9608} 9609_LT_EOF 9610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9611 (eval $ac_link) 2>&5 9612 ac_status=$? 9613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9615 (./conftest; exit; ) >&5 2>/dev/null 9616 lt_status=$? 9617 case x$lt_status in 9618 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9619 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9620 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9621 esac 9622 else : 9623 # compilation failed 9624 lt_cv_dlopen_self=no 9625 fi 9626fi 9627rm -fr conftest* 9628 9629 9630fi 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9632$as_echo "$lt_cv_dlopen_self" >&6; } 9633 9634 if test "x$lt_cv_dlopen_self" = xyes; then 9635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9637$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9638if ${lt_cv_dlopen_self_static+:} false; then : 9639 $as_echo_n "(cached) " >&6 9640else 9641 if test "$cross_compiling" = yes; then : 9642 lt_cv_dlopen_self_static=cross 9643else 9644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9645 lt_status=$lt_dlunknown 9646 cat > conftest.$ac_ext <<_LT_EOF 9647#line 9647 "configure" 9648#include "confdefs.h" 9649 9650#if HAVE_DLFCN_H 9651#include <dlfcn.h> 9652#endif 9653 9654#include <stdio.h> 9655 9656#ifdef RTLD_GLOBAL 9657# define LT_DLGLOBAL RTLD_GLOBAL 9658#else 9659# ifdef DL_GLOBAL 9660# define LT_DLGLOBAL DL_GLOBAL 9661# else 9662# define LT_DLGLOBAL 0 9663# endif 9664#endif 9665 9666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9667 find out it does not work in some platform. */ 9668#ifndef LT_DLLAZY_OR_NOW 9669# ifdef RTLD_LAZY 9670# define LT_DLLAZY_OR_NOW RTLD_LAZY 9671# else 9672# ifdef DL_LAZY 9673# define LT_DLLAZY_OR_NOW DL_LAZY 9674# else 9675# ifdef RTLD_NOW 9676# define LT_DLLAZY_OR_NOW RTLD_NOW 9677# else 9678# ifdef DL_NOW 9679# define LT_DLLAZY_OR_NOW DL_NOW 9680# else 9681# define LT_DLLAZY_OR_NOW 0 9682# endif 9683# endif 9684# endif 9685# endif 9686#endif 9687 9688void fnord() { int i=42;} 9689int main () 9690{ 9691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9692 int status = $lt_dlunknown; 9693 9694 if (self) 9695 { 9696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9698 /* dlclose (self); */ 9699 } 9700 else 9701 puts (dlerror ()); 9702 9703 return status; 9704} 9705_LT_EOF 9706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9707 (eval $ac_link) 2>&5 9708 ac_status=$? 9709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9711 (./conftest; exit; ) >&5 2>/dev/null 9712 lt_status=$? 9713 case x$lt_status in 9714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9717 esac 9718 else : 9719 # compilation failed 9720 lt_cv_dlopen_self_static=no 9721 fi 9722fi 9723rm -fr conftest* 9724 9725 9726fi 9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 9728$as_echo "$lt_cv_dlopen_self_static" >&6; } 9729 fi 9730 9731 CPPFLAGS="$save_CPPFLAGS" 9732 LDFLAGS="$save_LDFLAGS" 9733 LIBS="$save_LIBS" 9734 ;; 9735 esac 9736 9737 case $lt_cv_dlopen_self in 9738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9739 *) enable_dlopen_self=unknown ;; 9740 esac 9741 9742 case $lt_cv_dlopen_self_static in 9743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9744 *) enable_dlopen_self_static=unknown ;; 9745 esac 9746fi 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764striplib= 9765old_striplib= 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9767$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9768if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9770 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9772$as_echo "yes" >&6; } 9773else 9774# FIXME - insert some real tests, host_os isn't really good enough 9775 case $host_os in 9776 darwin*) 9777 if test -n "$STRIP" ; then 9778 striplib="$STRIP -x" 9779 old_striplib="$STRIP -S" 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9781$as_echo "yes" >&6; } 9782 else 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9784$as_echo "no" >&6; } 9785 fi 9786 ;; 9787 *) 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9789$as_echo "no" >&6; } 9790 ;; 9791 esac 9792fi 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 # Report which library types will actually be built 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 9807$as_echo_n "checking if libtool supports shared libraries... " >&6; } 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 9809$as_echo "$can_build_shared" >&6; } 9810 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 9812$as_echo_n "checking whether to build shared libraries... " >&6; } 9813 test "$can_build_shared" = "no" && enable_shared=no 9814 9815 # On AIX, shared libraries and static libraries use the same namespace, and 9816 # are all built from PIC. 9817 case $host_os in 9818 aix3*) 9819 test "$enable_shared" = yes && enable_static=no 9820 if test -n "$RANLIB"; then 9821 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9822 postinstall_cmds='$RANLIB $lib' 9823 fi 9824 ;; 9825 9826 aix[4-9]*) 9827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9828 test "$enable_shared" = yes && enable_static=no 9829 fi 9830 ;; 9831 esac 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 9833$as_echo "$enable_shared" >&6; } 9834 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 9836$as_echo_n "checking whether to build static libraries... " >&6; } 9837 # Make sure either enable_shared or enable_static is yes. 9838 test "$enable_shared" = yes || enable_static=yes 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 9840$as_echo "$enable_static" >&6; } 9841 9842 9843 9844 9845fi 9846ac_ext=c 9847ac_cpp='$CPP $CPPFLAGS' 9848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9850ac_compiler_gnu=$ac_cv_c_compiler_gnu 9851 9852CC="$lt_save_CC" 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 ac_config_commands="$ac_config_commands libtool" 9867 9868 9869 9870 9871# Only expand once: 9872 9873 9874# Find a good install program. We prefer a C program (faster), 9875# so one script is as good as another. But avoid the broken or 9876# incompatible versions: 9877# SysV /etc/install, /usr/sbin/install 9878# SunOS /usr/etc/install 9879# IRIX /sbin/install 9880# AIX /bin/install 9881# AmigaOS /C/install, which installs bootblocks on floppy discs 9882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9883# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9885# OS/2's system install, which has a completely different semantic 9886# ./install, which can be erroneously created by make from ./install.sh. 9887# Reject install programs that cannot install multiple files. 9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9889$as_echo_n "checking for a BSD-compatible install... " >&6; } 9890if test -z "$INSTALL"; then 9891if ${ac_cv_path_install+:} false; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9895for as_dir in $PATH 9896do 9897 IFS=$as_save_IFS 9898 test -z "$as_dir" && as_dir=. 9899 # Account for people who put trailing slashes in PATH elements. 9900case $as_dir/ in #(( 9901 ./ | .// | /[cC]/* | \ 9902 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9903 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9904 /usr/ucb/* ) ;; 9905 *) 9906 # OSF1 and SCO ODT 3.0 have their own names for install. 9907 # Don't use installbsd from OSF since it installs stuff as root 9908 # by default. 9909 for ac_prog in ginstall scoinst install; do 9910 for ac_exec_ext in '' $ac_executable_extensions; do 9911 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9912 if test $ac_prog = install && 9913 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9914 # AIX install. It has an incompatible calling convention. 9915 : 9916 elif test $ac_prog = install && 9917 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9918 # program-specific install script used by HP pwplus--don't use. 9919 : 9920 else 9921 rm -rf conftest.one conftest.two conftest.dir 9922 echo one > conftest.one 9923 echo two > conftest.two 9924 mkdir conftest.dir 9925 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9926 test -s conftest.one && test -s conftest.two && 9927 test -s conftest.dir/conftest.one && 9928 test -s conftest.dir/conftest.two 9929 then 9930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9931 break 3 9932 fi 9933 fi 9934 fi 9935 done 9936 done 9937 ;; 9938esac 9939 9940 done 9941IFS=$as_save_IFS 9942 9943rm -rf conftest.one conftest.two conftest.dir 9944 9945fi 9946 if test "${ac_cv_path_install+set}" = set; then 9947 INSTALL=$ac_cv_path_install 9948 else 9949 # As a last resort, use the slow shell script. Don't cache a 9950 # value for INSTALL within a source directory, because that will 9951 # break other packages using the cache if that directory is 9952 # removed, or if the value is a relative name. 9953 INSTALL=$ac_install_sh 9954 fi 9955fi 9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9957$as_echo "$INSTALL" >&6; } 9958 9959# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9960# It thinks the first close brace ends the variable substitution. 9961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9962 9963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9964 9965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9966 9967 9968######### 9969# Enable large file support (if special flags are necessary) 9970# 9971# Check whether --enable-largefile was given. 9972if test "${enable_largefile+set}" = set; then : 9973 enableval=$enable_largefile; 9974fi 9975 9976if test "$enable_largefile" != no; then 9977 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9979$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 9980if ${ac_cv_sys_largefile_CC+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 ac_cv_sys_largefile_CC=no 9984 if test "$GCC" != yes; then 9985 ac_save_CC=$CC 9986 while :; do 9987 # IRIX 6.2 and later do not support large files by default, 9988 # so use the C compiler's -n32 option if that helps. 9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991#include <sys/types.h> 9992 /* Check that off_t can represent 2**63 - 1 correctly. 9993 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9994 since some C++ compilers masquerading as C compilers 9995 incorrectly reject 9223372036854775807. */ 9996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9998 && LARGE_OFF_T % 2147483647 == 1) 9999 ? 1 : -1]; 10000int 10001main () 10002{ 10003 10004 ; 10005 return 0; 10006} 10007_ACEOF 10008 if ac_fn_c_try_compile "$LINENO"; then : 10009 break 10010fi 10011rm -f core conftest.err conftest.$ac_objext 10012 CC="$CC -n32" 10013 if ac_fn_c_try_compile "$LINENO"; then : 10014 ac_cv_sys_largefile_CC=' -n32'; break 10015fi 10016rm -f core conftest.err conftest.$ac_objext 10017 break 10018 done 10019 CC=$ac_save_CC 10020 rm -f conftest.$ac_ext 10021 fi 10022fi 10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10024$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10025 if test "$ac_cv_sys_largefile_CC" != no; then 10026 CC=$CC$ac_cv_sys_largefile_CC 10027 fi 10028 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10030$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10031if ${ac_cv_sys_file_offset_bits+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 while :; do 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037#include <sys/types.h> 10038 /* Check that off_t can represent 2**63 - 1 correctly. 10039 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10040 since some C++ compilers masquerading as C compilers 10041 incorrectly reject 9223372036854775807. */ 10042#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10044 && LARGE_OFF_T % 2147483647 == 1) 10045 ? 1 : -1]; 10046int 10047main () 10048{ 10049 10050 ; 10051 return 0; 10052} 10053_ACEOF 10054if ac_fn_c_try_compile "$LINENO"; then : 10055 ac_cv_sys_file_offset_bits=no; break 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059/* end confdefs.h. */ 10060#define _FILE_OFFSET_BITS 64 10061#include <sys/types.h> 10062 /* Check that off_t can represent 2**63 - 1 correctly. 10063 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10064 since some C++ compilers masquerading as C compilers 10065 incorrectly reject 9223372036854775807. */ 10066#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10068 && LARGE_OFF_T % 2147483647 == 1) 10069 ? 1 : -1]; 10070int 10071main () 10072{ 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO"; then : 10079 ac_cv_sys_file_offset_bits=64; break 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10082 ac_cv_sys_file_offset_bits=unknown 10083 break 10084done 10085fi 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10087$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10088case $ac_cv_sys_file_offset_bits in #( 10089 no | unknown) ;; 10090 *) 10091cat >>confdefs.h <<_ACEOF 10092#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10093_ACEOF 10094;; 10095esac 10096rm -rf conftest* 10097 if test $ac_cv_sys_file_offset_bits = unknown; then 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10099$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10100if ${ac_cv_sys_large_files+:} false; then : 10101 $as_echo_n "(cached) " >&6 10102else 10103 while :; do 10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10105/* end confdefs.h. */ 10106#include <sys/types.h> 10107 /* Check that off_t can represent 2**63 - 1 correctly. 10108 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10109 since some C++ compilers masquerading as C compilers 10110 incorrectly reject 9223372036854775807. */ 10111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10113 && LARGE_OFF_T % 2147483647 == 1) 10114 ? 1 : -1]; 10115int 10116main () 10117{ 10118 10119 ; 10120 return 0; 10121} 10122_ACEOF 10123if ac_fn_c_try_compile "$LINENO"; then : 10124 ac_cv_sys_large_files=no; break 10125fi 10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129#define _LARGE_FILES 1 10130#include <sys/types.h> 10131 /* Check that off_t can represent 2**63 - 1 correctly. 10132 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10133 since some C++ compilers masquerading as C compilers 10134 incorrectly reject 9223372036854775807. */ 10135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10137 && LARGE_OFF_T % 2147483647 == 1) 10138 ? 1 : -1]; 10139int 10140main () 10141{ 10142 10143 ; 10144 return 0; 10145} 10146_ACEOF 10147if ac_fn_c_try_compile "$LINENO"; then : 10148 ac_cv_sys_large_files=1; break 10149fi 10150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10151 ac_cv_sys_large_files=unknown 10152 break 10153done 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10156$as_echo "$ac_cv_sys_large_files" >&6; } 10157case $ac_cv_sys_large_files in #( 10158 no | unknown) ;; 10159 *) 10160cat >>confdefs.h <<_ACEOF 10161#define _LARGE_FILES $ac_cv_sys_large_files 10162_ACEOF 10163;; 10164esac 10165rm -rf conftest* 10166 fi 10167 10168 10169fi 10170 10171 10172######### 10173# Check for needed/wanted data types 10174ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 10175if test "x$ac_cv_type_int8_t" = xyes; then : 10176 10177cat >>confdefs.h <<_ACEOF 10178#define HAVE_INT8_T 1 10179_ACEOF 10180 10181 10182fi 10183ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 10184if test "x$ac_cv_type_int16_t" = xyes; then : 10185 10186cat >>confdefs.h <<_ACEOF 10187#define HAVE_INT16_T 1 10188_ACEOF 10189 10190 10191fi 10192ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 10193if test "x$ac_cv_type_int32_t" = xyes; then : 10194 10195cat >>confdefs.h <<_ACEOF 10196#define HAVE_INT32_T 1 10197_ACEOF 10198 10199 10200fi 10201ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 10202if test "x$ac_cv_type_int64_t" = xyes; then : 10203 10204cat >>confdefs.h <<_ACEOF 10205#define HAVE_INT64_T 1 10206_ACEOF 10207 10208 10209fi 10210ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 10211if test "x$ac_cv_type_intptr_t" = xyes; then : 10212 10213cat >>confdefs.h <<_ACEOF 10214#define HAVE_INTPTR_T 1 10215_ACEOF 10216 10217 10218fi 10219ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 10220if test "x$ac_cv_type_uint8_t" = xyes; then : 10221 10222cat >>confdefs.h <<_ACEOF 10223#define HAVE_UINT8_T 1 10224_ACEOF 10225 10226 10227fi 10228ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 10229if test "x$ac_cv_type_uint16_t" = xyes; then : 10230 10231cat >>confdefs.h <<_ACEOF 10232#define HAVE_UINT16_T 1 10233_ACEOF 10234 10235 10236fi 10237ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 10238if test "x$ac_cv_type_uint32_t" = xyes; then : 10239 10240cat >>confdefs.h <<_ACEOF 10241#define HAVE_UINT32_T 1 10242_ACEOF 10243 10244 10245fi 10246ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 10247if test "x$ac_cv_type_uint64_t" = xyes; then : 10248 10249cat >>confdefs.h <<_ACEOF 10250#define HAVE_UINT64_T 1 10251_ACEOF 10252 10253 10254fi 10255ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 10256if test "x$ac_cv_type_uintptr_t" = xyes; then : 10257 10258cat >>confdefs.h <<_ACEOF 10259#define HAVE_UINTPTR_T 1 10260_ACEOF 10261 10262 10263fi 10264 10265 10266######### 10267# Check for needed/wanted headers 10268for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 10269do : 10270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10271ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10273 cat >>confdefs.h <<_ACEOF 10274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10275_ACEOF 10276 10277fi 10278 10279done 10280 10281 10282######### 10283# Figure out whether or not we have these functions 10284# 10285for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64 10286do : 10287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10288ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10289if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10290 cat >>confdefs.h <<_ACEOF 10291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10292_ACEOF 10293 10294fi 10295done 10296 10297 10298######### 10299# By default, we use the amalgamation (this may be changed below...) 10300# 10301USE_AMALGAMATION=1 10302 10303######### 10304# See whether we can run specific tclsh versions known to work well; 10305# if not, then we fall back to plain tclsh. 10306# TODO: try other versions before falling back? 10307# 10308for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh 10309do 10310 # Extract the first word of "$ac_prog", so it can be a program name with args. 10311set dummy $ac_prog; ac_word=$2 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10313$as_echo_n "checking for $ac_word... " >&6; } 10314if ${ac_cv_prog_TCLSH_CMD+:} false; then : 10315 $as_echo_n "(cached) " >&6 10316else 10317 if test -n "$TCLSH_CMD"; then 10318 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 10319else 10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10321for as_dir in $PATH 10322do 10323 IFS=$as_save_IFS 10324 test -z "$as_dir" && as_dir=. 10325 for ac_exec_ext in '' $ac_executable_extensions; do 10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10327 ac_cv_prog_TCLSH_CMD="$ac_prog" 10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10329 break 2 10330 fi 10331done 10332 done 10333IFS=$as_save_IFS 10334 10335fi 10336fi 10337TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 10338if test -n "$TCLSH_CMD"; then 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 10340$as_echo "$TCLSH_CMD" >&6; } 10341else 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10343$as_echo "no" >&6; } 10344fi 10345 10346 10347 test -n "$TCLSH_CMD" && break 10348done 10349test -n "$TCLSH_CMD" || TCLSH_CMD="none" 10350 10351if test "$TCLSH_CMD" = "none"; then 10352 # If we can't find a local tclsh, then building the amalgamation will fail. 10353 # We act as though --disable-amalgamation has been used. 10354 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 10355 USE_AMALGAMATION=0 10356 TCLSH_CMD="tclsh" 10357fi 10358 10359 10360 10361if test "x${TCLLIBDIR+set}" != "xset" ; then 10362 TCLLIBDIR='$(libdir)' 10363 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 10364 TCLLIBDIR=$i 10365 break 10366 done 10367 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 10368fi 10369 10370 10371######### 10372# Set up an appropriate program prefix 10373# 10374if test "$program_prefix" = "NONE"; then 10375 program_prefix="" 10376fi 10377 10378 10379VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 10380{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5 10381$as_echo "$as_me: Version set to $VERSION" >&6;} 10382 10383RELEASE=`cat $srcdir/VERSION` 10384{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5 10385$as_echo "$as_me: Release set to $RELEASE" >&6;} 10386 10387VERSION_NUMBER=`cat $srcdir/VERSION \ 10388 | sed 's/[^0-9]/ /g' \ 10389 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 10390{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5 10391$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} 10392 10393 10394######### 10395# Locate a compiler for the build machine. This compiler should 10396# generate command-line programs that run on the build machine. 10397# 10398if test x"$cross_compiling" = xno; then 10399 BUILD_CC=$CC 10400 BUILD_CFLAGS=$CFLAGS 10401else 10402 if test "${BUILD_CC+set}" != set; then 10403 for ac_prog in gcc cc cl 10404do 10405 # Extract the first word of "$ac_prog", so it can be a program name with args. 10406set dummy $ac_prog; ac_word=$2 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10408$as_echo_n "checking for $ac_word... " >&6; } 10409if ${ac_cv_prog_BUILD_CC+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411else 10412 if test -n "$BUILD_CC"; then 10413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10414else 10415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10416for as_dir in $PATH 10417do 10418 IFS=$as_save_IFS 10419 test -z "$as_dir" && as_dir=. 10420 for ac_exec_ext in '' $ac_executable_extensions; do 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10422 ac_cv_prog_BUILD_CC="$ac_prog" 10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10424 break 2 10425 fi 10426done 10427 done 10428IFS=$as_save_IFS 10429 10430fi 10431fi 10432BUILD_CC=$ac_cv_prog_BUILD_CC 10433if test -n "$BUILD_CC"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 10435$as_echo "$BUILD_CC" >&6; } 10436else 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10438$as_echo "no" >&6; } 10439fi 10440 10441 10442 test -n "$BUILD_CC" && break 10443done 10444 10445 fi 10446 if test "${BUILD_CFLAGS+set}" != set; then 10447 BUILD_CFLAGS="-g" 10448 fi 10449fi 10450 10451 10452########## 10453# Do we want to support multithreaded use of sqlite 10454# 10455# Check whether --enable-threadsafe was given. 10456if test "${enable_threadsafe+set}" = set; then : 10457 enableval=$enable_threadsafe; 10458fi 10459 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5 10461$as_echo_n "checking whether to support threadsafe operation... " >&6; } 10462if test "$enable_threadsafe" = "no"; then 10463 SQLITE_THREADSAFE=0 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10465$as_echo "no" >&6; } 10466else 10467 SQLITE_THREADSAFE=1 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10469$as_echo "yes" >&6; } 10470fi 10471 10472 10473if test "$SQLITE_THREADSAFE" = "1"; then 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 10475$as_echo_n "checking for library containing pthread_create... " >&6; } 10476if ${ac_cv_search_pthread_create+:} false; then : 10477 $as_echo_n "(cached) " >&6 10478else 10479 ac_func_search_save_LIBS=$LIBS 10480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482 10483/* Override any GCC internal prototype to avoid an error. 10484 Use char because int might match the return type of a GCC 10485 builtin and then its argument prototype would still apply. */ 10486#ifdef __cplusplus 10487extern "C" 10488#endif 10489char pthread_create (); 10490int 10491main () 10492{ 10493return pthread_create (); 10494 ; 10495 return 0; 10496} 10497_ACEOF 10498for ac_lib in '' pthread; do 10499 if test -z "$ac_lib"; then 10500 ac_res="none required" 10501 else 10502 ac_res=-l$ac_lib 10503 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10504 fi 10505 if ac_fn_c_try_link "$LINENO"; then : 10506 ac_cv_search_pthread_create=$ac_res 10507fi 10508rm -f core conftest.err conftest.$ac_objext \ 10509 conftest$ac_exeext 10510 if ${ac_cv_search_pthread_create+:} false; then : 10511 break 10512fi 10513done 10514if ${ac_cv_search_pthread_create+:} false; then : 10515 10516else 10517 ac_cv_search_pthread_create=no 10518fi 10519rm conftest.$ac_ext 10520LIBS=$ac_func_search_save_LIBS 10521fi 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 10523$as_echo "$ac_cv_search_pthread_create" >&6; } 10524ac_res=$ac_cv_search_pthread_create 10525if test "$ac_res" != no; then : 10526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10527 10528fi 10529 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5 10531$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; } 10532if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534else 10535 ac_func_search_save_LIBS=$LIBS 10536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10537/* end confdefs.h. */ 10538 10539/* Override any GCC internal prototype to avoid an error. 10540 Use char because int might match the return type of a GCC 10541 builtin and then its argument prototype would still apply. */ 10542#ifdef __cplusplus 10543extern "C" 10544#endif 10545char pthread_mutexattr_init (); 10546int 10547main () 10548{ 10549return pthread_mutexattr_init (); 10550 ; 10551 return 0; 10552} 10553_ACEOF 10554for ac_lib in '' pthread; do 10555 if test -z "$ac_lib"; then 10556 ac_res="none required" 10557 else 10558 ac_res=-l$ac_lib 10559 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10560 fi 10561 if ac_fn_c_try_link "$LINENO"; then : 10562 ac_cv_search_pthread_mutexattr_init=$ac_res 10563fi 10564rm -f core conftest.err conftest.$ac_objext \ 10565 conftest$ac_exeext 10566 if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10567 break 10568fi 10569done 10570if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10571 10572else 10573 ac_cv_search_pthread_mutexattr_init=no 10574fi 10575rm conftest.$ac_ext 10576LIBS=$ac_func_search_save_LIBS 10577fi 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5 10579$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; } 10580ac_res=$ac_cv_search_pthread_mutexattr_init 10581if test "$ac_res" != no; then : 10582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10583 10584fi 10585 10586fi 10587 10588########## 10589# Do we want to support release 10590# 10591# Check whether --enable-releasemode was given. 10592if test "${enable_releasemode+set}" = set; then : 10593 enableval=$enable_releasemode; 10594else 10595 enable_releasemode=no 10596fi 10597 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5 10599$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 10600if test "$enable_releasemode" = "no"; then 10601 ALLOWRELEASE="" 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10603$as_echo "no" >&6; } 10604else 10605 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10607$as_echo "yes" >&6; } 10608fi 10609 10610 10611########## 10612# Do we want temporary databases in memory 10613# 10614# Check whether --enable-tempstore was given. 10615if test "${enable_tempstore+set}" = set; then : 10616 enableval=$enable_tempstore; 10617else 10618 enable_tempstore=no 10619fi 10620 10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5 10622$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 10623case "$enable_tempstore" in 10624 never ) 10625 TEMP_STORE=0 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5 10627$as_echo "never" >&6; } 10628 ;; 10629 no ) 10630 TEMP_STORE=1 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10632$as_echo "no" >&6; } 10633 ;; 10634 yes ) 10635 TEMP_STORE=2 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10637$as_echo "yes" >&6; } 10638 ;; 10639 always ) 10640 TEMP_STORE=3 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5 10642$as_echo "always" >&6; } 10643 ;; 10644 * ) 10645 TEMP_STORE=1 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10647$as_echo "no" >&6; } 10648 ;; 10649esac 10650 10651 10652 10653########### 10654# Lots of things are different if we are compiling for Windows using 10655# the CYGWIN environment. So check for that special case and handle 10656# things accordingly. 10657# 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5 10659$as_echo_n "checking if executables have the .exe suffix... " >&6; } 10660if test "$config_BUILD_EXEEXT" = ".exe"; then 10661 CYGWIN=yes 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10663$as_echo "yes" >&6; } 10664else 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 10666$as_echo "unknown" >&6; } 10667fi 10668if test "$CYGWIN" != "yes"; then 10669 10670case $host_os in 10671 *cygwin* ) CYGWIN=yes;; 10672 * ) CYGWIN=no;; 10673esac 10674 10675fi 10676if test "$CYGWIN" = "yes"; then 10677 BUILD_EXEEXT=.exe 10678else 10679 BUILD_EXEEXT=$EXEEXT 10680fi 10681if test x"$cross_compiling" = xno; then 10682 TARGET_EXEEXT=$BUILD_EXEEXT 10683else 10684 TARGET_EXEEXT=$config_TARGET_EXEEXT 10685fi 10686if test "$TARGET_EXEEXT" = ".exe"; then 10687 SQLITE_OS_UNIX=0 10688 SQLITE_OS_WIN=1 10689 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 10690else 10691 SQLITE_OS_UNIX=1 10692 SQLITE_OS_WIN=0 10693 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 10694fi 10695 10696 10697 10698 10699 10700 10701########## 10702# Figure out all the parameters needed to compile against Tcl. 10703# 10704# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 10705# macros in the in the tcl.m4 file of the standard TCL distribution. 10706# Those macros could not be used directly since we have to make some 10707# minor changes to accomodate systems that do not have TCL installed. 10708# 10709# Check whether --enable-tcl was given. 10710if test "${enable_tcl+set}" = set; then : 10711 enableval=$enable_tcl; use_tcl=$enableval 10712else 10713 use_tcl=yes 10714fi 10715 10716if test "${use_tcl}" = "yes" ; then 10717 10718# Check whether --with-tcl was given. 10719if test "${with_tcl+set}" = set; then : 10720 withval=$with_tcl; with_tclconfig=${withval} 10721fi 10722 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 10724$as_echo_n "checking for Tcl configuration... " >&6; } 10725 if ${ac_cv_c_tclconfig+:} false; then : 10726 $as_echo_n "(cached) " >&6 10727else 10728 10729 # First check to see if --with-tcl was specified. 10730 if test x"${with_tclconfig}" != x ; then 10731 if test -f "${with_tclconfig}/tclConfig.sh" ; then 10732 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 10733 else 10734 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 10735 fi 10736 fi 10737 10738 # Start autosearch by asking tclsh 10739 if test x"${ac_cv_c_tclconfig}" = x ; then 10740 if test x"$cross_compiling" = xno; then 10741 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 10742 do 10743 if test -f "$i/tclConfig.sh" ; then 10744 ac_cv_c_tclconfig="$i" 10745 break 10746 fi 10747 done 10748 fi 10749 fi 10750 10751 # On ubuntu 14.10, $auto_path on tclsh is not quite correct. 10752 # So try again after applying corrections. 10753 if test x"${ac_cv_c_tclconfig}" = x ; then 10754 if test x"$cross_compiling" = xno; then 10755 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'` 10756 do 10757 if test -f "$i/tclConfig.sh" ; then 10758 ac_cv_c_tclconfig="$i" 10759 break 10760 fi 10761 done 10762 fi 10763 fi 10764 10765 # Recent versions of Xcode on Macs hid the tclConfig.sh file 10766 # in a strange place. 10767 if test x"${ac_cv_c_tclconfig}" = x ; then 10768 if test x"$cross_compiling" = xno; then 10769 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib 10770 do 10771 if test -f "$i/tclConfig.sh" ; then 10772 ac_cv_c_tclconfig="$i" 10773 break 10774 fi 10775 done 10776 fi 10777 fi 10778 10779 # then check for a private Tcl installation 10780 if test x"${ac_cv_c_tclconfig}" = x ; then 10781 for i in \ 10782 ../tcl \ 10783 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10784 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 10785 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 10786 ../../tcl \ 10787 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10788 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 10789 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 10790 ../../../tcl \ 10791 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10792 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 10793 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 10794 do 10795 if test -f "$i/unix/tclConfig.sh" ; then 10796 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10797 break 10798 fi 10799 done 10800 fi 10801 10802 # check in a few common install locations 10803 if test x"${ac_cv_c_tclconfig}" = x ; then 10804 for i in \ 10805 `ls -d ${libdir} 2>/dev/null` \ 10806 `ls -d /usr/local/lib 2>/dev/null` \ 10807 `ls -d /usr/contrib/lib 2>/dev/null` \ 10808 `ls -d /usr/lib 2>/dev/null` 10809 do 10810 if test -f "$i/tclConfig.sh" ; then 10811 ac_cv_c_tclconfig=`(cd $i; pwd)` 10812 break 10813 fi 10814 done 10815 fi 10816 10817 # check in a few other private locations 10818 if test x"${ac_cv_c_tclconfig}" = x ; then 10819 for i in \ 10820 ${srcdir}/../tcl \ 10821 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 10824 do 10825 if test -f "$i/unix/tclConfig.sh" ; then 10826 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10827 break 10828 fi 10829 done 10830 fi 10831 10832fi 10833 10834 10835 if test x"${ac_cv_c_tclconfig}" = x ; then 10836 use_tcl=no 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 10838$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 10840$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 10842$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 10843 else 10844 TCL_BIN_DIR=${ac_cv_c_tclconfig} 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 10846$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 10847 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 10849$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 10850 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 10852$as_echo "loading" >&6; } 10853 . $TCL_BIN_DIR/tclConfig.sh 10854 else 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 10856$as_echo "file not found" >&6; } 10857 fi 10858 10859 # 10860 # If the TCL_BIN_DIR is the build directory (not the install directory), 10861 # then set the common variable name to the value of the build variables. 10862 # For example, the variable TCL_LIB_SPEC will be set to the value 10863 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 10864 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 10865 # installed and uninstalled version of Tcl. 10866 # 10867 10868 if test -f $TCL_BIN_DIR/Makefile ; then 10869 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 10870 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 10871 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 10872 fi 10873 10874 # 10875 # eval is required to do the TCL_DBGX substitution 10876 # 10877 10878 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 10879 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 10880 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 10881 10882 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 10883 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 10884 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 fi 10900fi 10901if test "${use_tcl}" = "no" ; then 10902 HAVE_TCL="" 10903else 10904 HAVE_TCL=1 10905fi 10906 10907 10908########## 10909# Figure out what C libraries are required to compile programs 10910# that use "readline()" library. 10911# 10912TARGET_READLINE_LIBS="" 10913TARGET_READLINE_INC="" 10914TARGET_HAVE_READLINE=0 10915TARGET_HAVE_EDITLINE=0 10916# Check whether --enable-editline was given. 10917if test "${enable_editline+set}" = set; then : 10918 enableval=$enable_editline; with_editline=$enableval 10919else 10920 with_editline=auto 10921fi 10922 10923# Check whether --enable-readline was given. 10924if test "${enable_readline+set}" = set; then : 10925 enableval=$enable_readline; with_readline=$enableval 10926else 10927 with_readline=auto 10928fi 10929 10930 10931if test x"$with_editline" != xno; then 10932 sLIBS=$LIBS 10933 LIBS="" 10934 TARGET_HAVE_EDITLINE=1 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 10936$as_echo_n "checking for library containing readline... " >&6; } 10937if ${ac_cv_search_readline+:} false; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 ac_func_search_save_LIBS=$LIBS 10941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944/* Override any GCC internal prototype to avoid an error. 10945 Use char because int might match the return type of a GCC 10946 builtin and then its argument prototype would still apply. */ 10947#ifdef __cplusplus 10948extern "C" 10949#endif 10950char readline (); 10951int 10952main () 10953{ 10954return readline (); 10955 ; 10956 return 0; 10957} 10958_ACEOF 10959for ac_lib in '' edit; do 10960 if test -z "$ac_lib"; then 10961 ac_res="none required" 10962 else 10963 ac_res=-l$ac_lib 10964 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10965 fi 10966 if ac_fn_c_try_link "$LINENO"; then : 10967 ac_cv_search_readline=$ac_res 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext 10971 if ${ac_cv_search_readline+:} false; then : 10972 break 10973fi 10974done 10975if ${ac_cv_search_readline+:} false; then : 10976 10977else 10978 ac_cv_search_readline=no 10979fi 10980rm conftest.$ac_ext 10981LIBS=$ac_func_search_save_LIBS 10982fi 10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 10984$as_echo "$ac_cv_search_readline" >&6; } 10985ac_res=$ac_cv_search_readline 10986if test "$ac_res" != no; then : 10987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10988 with_readline=no 10989else 10990 TARGET_HAVE_EDITLINE=0 10991fi 10992 10993 TARGET_READLINE_LIBS=$LIBS 10994 LIBS=$sLIBS 10995fi 10996if test x"$with_readline" != xno; then 10997 found="yes" 10998 10999 11000# Check whether --with-readline-lib was given. 11001if test "${with_readline_lib+set}" = set; then : 11002 withval=$with_readline_lib; with_readline_lib=$withval 11003else 11004 with_readline_lib="auto" 11005fi 11006 11007 if test "x$with_readline_lib" = xauto; then 11008 save_LIBS="$LIBS" 11009 LIBS="" 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 11011$as_echo_n "checking for library containing tgetent... " >&6; } 11012if ${ac_cv_search_tgetent+:} false; then : 11013 $as_echo_n "(cached) " >&6 11014else 11015 ac_func_search_save_LIBS=$LIBS 11016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018 11019/* Override any GCC internal prototype to avoid an error. 11020 Use char because int might match the return type of a GCC 11021 builtin and then its argument prototype would still apply. */ 11022#ifdef __cplusplus 11023extern "C" 11024#endif 11025char tgetent (); 11026int 11027main () 11028{ 11029return tgetent (); 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034for ac_lib in '' readline ncurses curses termcap; do 11035 if test -z "$ac_lib"; then 11036 ac_res="none required" 11037 else 11038 ac_res=-l$ac_lib 11039 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11040 fi 11041 if ac_fn_c_try_link "$LINENO"; then : 11042 ac_cv_search_tgetent=$ac_res 11043fi 11044rm -f core conftest.err conftest.$ac_objext \ 11045 conftest$ac_exeext 11046 if ${ac_cv_search_tgetent+:} false; then : 11047 break 11048fi 11049done 11050if ${ac_cv_search_tgetent+:} false; then : 11051 11052else 11053 ac_cv_search_tgetent=no 11054fi 11055rm conftest.$ac_ext 11056LIBS=$ac_func_search_save_LIBS 11057fi 11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 11059$as_echo "$ac_cv_search_tgetent" >&6; } 11060ac_res=$ac_cv_search_tgetent 11061if test "$ac_res" != no; then : 11062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11063 term_LIBS="$LIBS" 11064else 11065 term_LIBS="" 11066fi 11067 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 11069$as_echo_n "checking for readline in -lreadline... " >&6; } 11070if ${ac_cv_lib_readline_readline+:} false; then : 11071 $as_echo_n "(cached) " >&6 11072else 11073 ac_check_lib_save_LIBS=$LIBS 11074LIBS="-lreadline $LIBS" 11075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11076/* end confdefs.h. */ 11077 11078/* Override any GCC internal prototype to avoid an error. 11079 Use char because int might match the return type of a GCC 11080 builtin and then its argument prototype would still apply. */ 11081#ifdef __cplusplus 11082extern "C" 11083#endif 11084char readline (); 11085int 11086main () 11087{ 11088return readline (); 11089 ; 11090 return 0; 11091} 11092_ACEOF 11093if ac_fn_c_try_link "$LINENO"; then : 11094 ac_cv_lib_readline_readline=yes 11095else 11096 ac_cv_lib_readline_readline=no 11097fi 11098rm -f core conftest.err conftest.$ac_objext \ 11099 conftest$ac_exeext conftest.$ac_ext 11100LIBS=$ac_check_lib_save_LIBS 11101fi 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 11103$as_echo "$ac_cv_lib_readline_readline" >&6; } 11104if test "x$ac_cv_lib_readline_readline" = xyes; then : 11105 TARGET_READLINE_LIBS="-lreadline" 11106else 11107 found="no" 11108fi 11109 11110 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 11111 LIBS="$save_LIBS" 11112 else 11113 TARGET_READLINE_LIBS="$with_readline_lib" 11114 fi 11115 11116 11117# Check whether --with-readline-inc was given. 11118if test "${with_readline_inc+set}" = set; then : 11119 withval=$with_readline_inc; with_readline_inc=$withval 11120else 11121 with_readline_inc="auto" 11122fi 11123 11124 if test "x$with_readline_inc" = xauto; then 11125 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 11126if test "x$ac_cv_header_readline_h" = xyes; then : 11127 found="yes" 11128else 11129 11130 found="no" 11131 if test "$cross_compiling" != yes; then 11132 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 11133 for subdir in include include/readline; do 11134 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5 11136$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 11137if eval \${$as_ac_File+:} false; then : 11138 $as_echo_n "(cached) " >&6 11139else 11140 test "$cross_compiling" = yes && 11141 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11142if test -r "$dir/$subdir/readline.h"; then 11143 eval "$as_ac_File=yes" 11144else 11145 eval "$as_ac_File=no" 11146fi 11147fi 11148eval ac_res=\$$as_ac_File 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11150$as_echo "$ac_res" >&6; } 11151if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 11152 found=yes 11153fi 11154 11155 if test "$found" = "yes"; then 11156 TARGET_READLINE_INC="-I$dir/$subdir" 11157 break 11158 fi 11159 done 11160 test "$found" = "yes" && break 11161 done 11162 fi 11163 11164fi 11165 11166 11167 else 11168 TARGET_READLINE_INC="$with_readline_inc" 11169 fi 11170 11171 if test x"$found" = xno; then 11172 TARGET_READLINE_LIBS="" 11173 TARGET_READLINE_INC="" 11174 TARGET_HAVE_READLINE=0 11175 else 11176 TARGET_HAVE_READLINE=1 11177 fi 11178fi 11179 11180 11181 11182 11183 11184 11185########## 11186# Figure out what C libraries are required to compile programs 11187# that use "fdatasync()" function. 11188# 11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 11190$as_echo_n "checking for library containing fdatasync... " >&6; } 11191if ${ac_cv_search_fdatasync+:} false; then : 11192 $as_echo_n "(cached) " >&6 11193else 11194 ac_func_search_save_LIBS=$LIBS 11195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11196/* end confdefs.h. */ 11197 11198/* Override any GCC internal prototype to avoid an error. 11199 Use char because int might match the return type of a GCC 11200 builtin and then its argument prototype would still apply. */ 11201#ifdef __cplusplus 11202extern "C" 11203#endif 11204char fdatasync (); 11205int 11206main () 11207{ 11208return fdatasync (); 11209 ; 11210 return 0; 11211} 11212_ACEOF 11213for ac_lib in '' rt; do 11214 if test -z "$ac_lib"; then 11215 ac_res="none required" 11216 else 11217 ac_res=-l$ac_lib 11218 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11219 fi 11220 if ac_fn_c_try_link "$LINENO"; then : 11221 ac_cv_search_fdatasync=$ac_res 11222fi 11223rm -f core conftest.err conftest.$ac_objext \ 11224 conftest$ac_exeext 11225 if ${ac_cv_search_fdatasync+:} false; then : 11226 break 11227fi 11228done 11229if ${ac_cv_search_fdatasync+:} false; then : 11230 11231else 11232 ac_cv_search_fdatasync=no 11233fi 11234rm conftest.$ac_ext 11235LIBS=$ac_func_search_save_LIBS 11236fi 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 11238$as_echo "$ac_cv_search_fdatasync" >&6; } 11239ac_res=$ac_cv_search_fdatasync 11240if test "$ac_res" != no; then : 11241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11242 11243fi 11244 11245 11246######### 11247# check for debug enabled 11248# Check whether --enable-debug was given. 11249if test "${enable_debug+set}" = set; then : 11250 enableval=$enable_debug; 11251fi 11252 11253if test "${enable_debug}" = "yes" ; then 11254 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0" 11255else 11256 TARGET_DEBUG="-DNDEBUG" 11257fi 11258 11259 11260######### 11261# See whether we should use the amalgamation to build 11262# Check whether --enable-amalgamation was given. 11263if test "${enable_amalgamation+set}" = set; then : 11264 enableval=$enable_amalgamation; 11265fi 11266 11267if test "${enable_amalgamation}" == "no" ; then 11268 USE_AMALGAMATION=0 11269fi 11270 11271 11272######### 11273# Look for zlib. Only needed by extensions and by the sqlite3.exe shell 11274for ac_header in zlib.h 11275do : 11276 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11277if test "x$ac_cv_header_zlib_h" = xyes; then : 11278 cat >>confdefs.h <<_ACEOF 11279#define HAVE_ZLIB_H 1 11280_ACEOF 11281 11282fi 11283 11284done 11285 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 11287$as_echo_n "checking for library containing deflate... " >&6; } 11288if ${ac_cv_search_deflate+:} false; then : 11289 $as_echo_n "(cached) " >&6 11290else 11291 ac_func_search_save_LIBS=$LIBS 11292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294 11295/* Override any GCC internal prototype to avoid an error. 11296 Use char because int might match the return type of a GCC 11297 builtin and then its argument prototype would still apply. */ 11298#ifdef __cplusplus 11299extern "C" 11300#endif 11301char deflate (); 11302int 11303main () 11304{ 11305return deflate (); 11306 ; 11307 return 0; 11308} 11309_ACEOF 11310for ac_lib in '' z; do 11311 if test -z "$ac_lib"; then 11312 ac_res="none required" 11313 else 11314 ac_res=-l$ac_lib 11315 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11316 fi 11317 if ac_fn_c_try_link "$LINENO"; then : 11318 ac_cv_search_deflate=$ac_res 11319fi 11320rm -f core conftest.err conftest.$ac_objext \ 11321 conftest$ac_exeext 11322 if ${ac_cv_search_deflate+:} false; then : 11323 break 11324fi 11325done 11326if ${ac_cv_search_deflate+:} false; then : 11327 11328else 11329 ac_cv_search_deflate=no 11330fi 11331rm conftest.$ac_ext 11332LIBS=$ac_func_search_save_LIBS 11333fi 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 11335$as_echo "$ac_cv_search_deflate" >&6; } 11336ac_res=$ac_cv_search_deflate 11337if test "$ac_res" != no; then : 11338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11339 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1" 11340else 11341 HAVE_ZLIB="" 11342fi 11343 11344 11345 11346######### 11347# See whether we should allow loadable extensions 11348# Check whether --enable-load-extension was given. 11349if test "${enable_load_extension+set}" = set; then : 11350 enableval=$enable_load_extension; 11351else 11352 enable_load_extension=yes 11353fi 11354 11355if test "${enable_load_extension}" = "yes" ; then 11356 OPT_FEATURE_FLAGS="" 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11358$as_echo_n "checking for library containing dlopen... " >&6; } 11359if ${ac_cv_search_dlopen+:} false; then : 11360 $as_echo_n "(cached) " >&6 11361else 11362 ac_func_search_save_LIBS=$LIBS 11363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11364/* end confdefs.h. */ 11365 11366/* Override any GCC internal prototype to avoid an error. 11367 Use char because int might match the return type of a GCC 11368 builtin and then its argument prototype would still apply. */ 11369#ifdef __cplusplus 11370extern "C" 11371#endif 11372char dlopen (); 11373int 11374main () 11375{ 11376return dlopen (); 11377 ; 11378 return 0; 11379} 11380_ACEOF 11381for ac_lib in '' dl; do 11382 if test -z "$ac_lib"; then 11383 ac_res="none required" 11384 else 11385 ac_res=-l$ac_lib 11386 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11387 fi 11388 if ac_fn_c_try_link "$LINENO"; then : 11389 ac_cv_search_dlopen=$ac_res 11390fi 11391rm -f core conftest.err conftest.$ac_objext \ 11392 conftest$ac_exeext 11393 if ${ac_cv_search_dlopen+:} false; then : 11394 break 11395fi 11396done 11397if ${ac_cv_search_dlopen+:} false; then : 11398 11399else 11400 ac_cv_search_dlopen=no 11401fi 11402rm conftest.$ac_ext 11403LIBS=$ac_func_search_save_LIBS 11404fi 11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11406$as_echo "$ac_cv_search_dlopen" >&6; } 11407ac_res=$ac_cv_search_dlopen 11408if test "$ac_res" != no; then : 11409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11410 11411fi 11412 11413else 11414 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 11415fi 11416 11417########## 11418# Do we want to support memsys3 and/or memsys5 11419# 11420# Check whether --enable-memsys5 was given. 11421if test "${enable_memsys5+set}" = set; then : 11422 enableval=$enable_memsys5; 11423fi 11424 11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5 11426$as_echo_n "checking whether to support MEMSYS5... " >&6; } 11427if test "${enable_memsys5}" = "yes"; then 11428 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5" 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11430$as_echo "yes" >&6; } 11431else 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11433$as_echo "no" >&6; } 11434fi 11435# Check whether --enable-memsys3 was given. 11436if test "${enable_memsys3+set}" = set; then : 11437 enableval=$enable_memsys3; 11438fi 11439 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5 11441$as_echo_n "checking whether to support MEMSYS3... " >&6; } 11442if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then 11443 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3" 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11445$as_echo "yes" >&6; } 11446else 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11448$as_echo "no" >&6; } 11449fi 11450 11451######### 11452# See whether we should enable Full Text Search extensions 11453# Check whether --enable-fts3 was given. 11454if test "${enable_fts3+set}" = set; then : 11455 enableval=$enable_fts3; 11456fi 11457 11458if test "${enable_fts3}" = "yes" ; then 11459 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3" 11460fi 11461# Check whether --enable-fts4 was given. 11462if test "${enable_fts4+set}" = set; then : 11463 enableval=$enable_fts4; 11464fi 11465 11466if test "${enable_fts4}" = "yes" ; then 11467 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4" 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11469$as_echo_n "checking for library containing log... " >&6; } 11470if ${ac_cv_search_log+:} false; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 ac_func_search_save_LIBS=$LIBS 11474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11475/* end confdefs.h. */ 11476 11477/* Override any GCC internal prototype to avoid an error. 11478 Use char because int might match the return type of a GCC 11479 builtin and then its argument prototype would still apply. */ 11480#ifdef __cplusplus 11481extern "C" 11482#endif 11483char log (); 11484int 11485main () 11486{ 11487return log (); 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492for ac_lib in '' m; do 11493 if test -z "$ac_lib"; then 11494 ac_res="none required" 11495 else 11496 ac_res=-l$ac_lib 11497 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11498 fi 11499 if ac_fn_c_try_link "$LINENO"; then : 11500 ac_cv_search_log=$ac_res 11501fi 11502rm -f core conftest.err conftest.$ac_objext \ 11503 conftest$ac_exeext 11504 if ${ac_cv_search_log+:} false; then : 11505 break 11506fi 11507done 11508if ${ac_cv_search_log+:} false; then : 11509 11510else 11511 ac_cv_search_log=no 11512fi 11513rm conftest.$ac_ext 11514LIBS=$ac_func_search_save_LIBS 11515fi 11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11517$as_echo "$ac_cv_search_log" >&6; } 11518ac_res=$ac_cv_search_log 11519if test "$ac_res" != no; then : 11520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11521 11522fi 11523 11524fi 11525# Check whether --enable-fts5 was given. 11526if test "${enable_fts5+set}" = set; then : 11527 enableval=$enable_fts5; 11528fi 11529 11530if test "${enable_fts5}" = "yes" ; then 11531 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5" 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11533$as_echo_n "checking for library containing log... " >&6; } 11534if ${ac_cv_search_log+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 ac_func_search_save_LIBS=$LIBS 11538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11539/* end confdefs.h. */ 11540 11541/* Override any GCC internal prototype to avoid an error. 11542 Use char because int might match the return type of a GCC 11543 builtin and then its argument prototype would still apply. */ 11544#ifdef __cplusplus 11545extern "C" 11546#endif 11547char log (); 11548int 11549main () 11550{ 11551return log (); 11552 ; 11553 return 0; 11554} 11555_ACEOF 11556for ac_lib in '' m; do 11557 if test -z "$ac_lib"; then 11558 ac_res="none required" 11559 else 11560 ac_res=-l$ac_lib 11561 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11562 fi 11563 if ac_fn_c_try_link "$LINENO"; then : 11564 ac_cv_search_log=$ac_res 11565fi 11566rm -f core conftest.err conftest.$ac_objext \ 11567 conftest$ac_exeext 11568 if ${ac_cv_search_log+:} false; then : 11569 break 11570fi 11571done 11572if ${ac_cv_search_log+:} false; then : 11573 11574else 11575 ac_cv_search_log=no 11576fi 11577rm conftest.$ac_ext 11578LIBS=$ac_func_search_save_LIBS 11579fi 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11581$as_echo "$ac_cv_search_log" >&6; } 11582ac_res=$ac_cv_search_log 11583if test "$ac_res" != no; then : 11584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11585 11586fi 11587 11588fi 11589 11590######### 11591# See whether we should enable JSON1 11592# Check whether --enable-json1 was given. 11593if test "${enable_json1+set}" = set; then : 11594 enableval=$enable_json1; 11595fi 11596 11597if test "${enable_json1}" = "yes" ; then 11598 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1" 11599fi 11600 11601######### 11602# See whether we should enable the LIMIT clause on UPDATE and DELETE 11603# statements. 11604# Check whether --enable-update-limit was given. 11605if test "${enable_update_limit+set}" = set; then : 11606 enableval=$enable_update_limit; 11607fi 11608 11609if test "${enable_udlimit}" = "yes" ; then 11610 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT" 11611fi 11612 11613######### 11614# See whether we should enable RTREE 11615# Check whether --enable-rtree was given. 11616if test "${enable_rtree+set}" = set; then : 11617 enableval=$enable_rtree; 11618fi 11619 11620if test "${enable_rtree}" = "yes" ; then 11621 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE" 11622fi 11623 11624######### 11625# See whether we should enable the SESSION extension 11626# Check whether --enable-session was given. 11627if test "${enable_session+set}" = set; then : 11628 enableval=$enable_session; 11629fi 11630 11631if test "${enable_session}" = "yes" ; then 11632 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION" 11633 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK" 11634fi 11635 11636######### 11637# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter 11638for option in $CFLAGS $CPPFLAGS 11639do 11640 case $option in 11641 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11642 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11643 esac 11644done 11645 11646 11647 11648# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 11649ac_temp_CFLAGS="" 11650for option in $CFLAGS 11651do 11652 case $option in 11653 -DSQLITE_OMIT*) ;; 11654 -DSQLITE_ENABLE*) ;; 11655 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 11656 esac 11657done 11658CFLAGS=$ac_temp_CFLAGS 11659 11660 11661# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 11662ac_temp_CPPFLAGS="" 11663for option in $CPPFLAGS 11664do 11665 case $option in 11666 -DSQLITE_OMIT*) ;; 11667 -DSQLITE_ENABLE*) ;; 11668 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 11669 esac 11670done 11671CPPFLAGS=$ac_temp_CPPFLAGS 11672 11673 11674# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 11675ac_temp_BUILD_CFLAGS="" 11676for option in $BUILD_CFLAGS 11677do 11678 case $option in 11679 -DSQLITE_OMIT*) ;; 11680 -DSQLITE_ENABLE*) ;; 11681 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 11682 esac 11683done 11684BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 11685 11686 11687######### 11688# See whether we should use GCOV 11689# Check whether --enable-gcov was given. 11690if test "${enable_gcov+set}" = set; then : 11691 enableval=$enable_gcov; 11692fi 11693 11694if test "${use_gcov}" = "yes" ; then 11695 USE_GCOV=1 11696else 11697 USE_GCOV=0 11698fi 11699 11700 11701 11702######### 11703# Output the config header 11704ac_config_headers="$ac_config_headers config.h" 11705 11706 11707######### 11708# Generate the output files. 11709# 11710 11711ac_config_files="$ac_config_files Makefile sqlite3.pc" 11712 11713cat >confcache <<\_ACEOF 11714# This file is a shell script that caches the results of configure 11715# tests run on this system so they can be shared between configure 11716# scripts and configure runs, see configure's option --config-cache. 11717# It is not useful on other systems. If it contains results you don't 11718# want to keep, you may remove or edit it. 11719# 11720# config.status only pays attention to the cache file if you give it 11721# the --recheck option to rerun configure. 11722# 11723# `ac_cv_env_foo' variables (set or unset) will be overridden when 11724# loading this file, other *unset* `ac_cv_foo' will be assigned the 11725# following values. 11726 11727_ACEOF 11728 11729# The following way of writing the cache mishandles newlines in values, 11730# but we know of no workaround that is simple, portable, and efficient. 11731# So, we kill variables containing newlines. 11732# Ultrix sh set writes to stderr and can't be redirected directly, 11733# and sets the high bit in the cache file unless we assign to the vars. 11734( 11735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11736 eval ac_val=\$$ac_var 11737 case $ac_val in #( 11738 *${as_nl}*) 11739 case $ac_var in #( 11740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11742 esac 11743 case $ac_var in #( 11744 _ | IFS | as_nl) ;; #( 11745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11746 *) { eval $ac_var=; unset $ac_var;} ;; 11747 esac ;; 11748 esac 11749 done 11750 11751 (set) 2>&1 | 11752 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11753 *${as_nl}ac_space=\ *) 11754 # `set' does not quote correctly, so add quotes: double-quote 11755 # substitution turns \\\\ into \\, and sed turns \\ into \. 11756 sed -n \ 11757 "s/'/'\\\\''/g; 11758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11759 ;; #( 11760 *) 11761 # `set' quotes correctly as required by POSIX, so do not add quotes. 11762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11763 ;; 11764 esac | 11765 sort 11766) | 11767 sed ' 11768 /^ac_cv_env_/b end 11769 t clear 11770 :clear 11771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11772 t end 11773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11774 :end' >>confcache 11775if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11776 if test -w "$cache_file"; then 11777 if test "x$cache_file" != "x/dev/null"; then 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11779$as_echo "$as_me: updating cache $cache_file" >&6;} 11780 if test ! -f "$cache_file" || test -h "$cache_file"; then 11781 cat confcache >"$cache_file" 11782 else 11783 case $cache_file in #( 11784 */* | ?:*) 11785 mv -f confcache "$cache_file"$$ && 11786 mv -f "$cache_file"$$ "$cache_file" ;; #( 11787 *) 11788 mv -f confcache "$cache_file" ;; 11789 esac 11790 fi 11791 fi 11792 else 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11794$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11795 fi 11796fi 11797rm -f confcache 11798 11799test "x$prefix" = xNONE && prefix=$ac_default_prefix 11800# Let make expand exec_prefix. 11801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11802 11803DEFS=-DHAVE_CONFIG_H 11804 11805ac_libobjs= 11806ac_ltlibobjs= 11807U= 11808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11809 # 1. Remove the extension, and $U if already installed. 11810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11811 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11813 # will be set to the directory where LIBOBJS objects are built. 11814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11816done 11817LIBOBJS=$ac_libobjs 11818 11819LTLIBOBJS=$ac_ltlibobjs 11820 11821 11822 11823: "${CONFIG_STATUS=./config.status}" 11824ac_write_fail=0 11825ac_clean_files_save=$ac_clean_files 11826ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11828$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11829as_write_fail=0 11830cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11831#! $SHELL 11832# Generated by $as_me. 11833# Run this file to recreate the current configuration. 11834# Compiler output produced by configure, useful for debugging 11835# configure, is in config.log if it exists. 11836 11837debug=false 11838ac_cs_recheck=false 11839ac_cs_silent=false 11840 11841SHELL=\${CONFIG_SHELL-$SHELL} 11842export SHELL 11843_ASEOF 11844cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11845## -------------------- ## 11846## M4sh Initialization. ## 11847## -------------------- ## 11848 11849# Be more Bourne compatible 11850DUALCASE=1; export DUALCASE # for MKS sh 11851if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11852 emulate sh 11853 NULLCMD=: 11854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11855 # is contrary to our usage. Disable this feature. 11856 alias -g '${1+"$@"}'='"$@"' 11857 setopt NO_GLOB_SUBST 11858else 11859 case `(set -o) 2>/dev/null` in #( 11860 *posix*) : 11861 set -o posix ;; #( 11862 *) : 11863 ;; 11864esac 11865fi 11866 11867 11868as_nl=' 11869' 11870export as_nl 11871# Printing a long string crashes Solaris 7 /usr/bin/printf. 11872as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11875# Prefer a ksh shell builtin over an external printf program on Solaris, 11876# but without wasting forks for bash or zsh. 11877if test -z "$BASH_VERSION$ZSH_VERSION" \ 11878 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11879 as_echo='print -r --' 11880 as_echo_n='print -rn --' 11881elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11882 as_echo='printf %s\n' 11883 as_echo_n='printf %s' 11884else 11885 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11886 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11887 as_echo_n='/usr/ucb/echo -n' 11888 else 11889 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11890 as_echo_n_body='eval 11891 arg=$1; 11892 case $arg in #( 11893 *"$as_nl"*) 11894 expr "X$arg" : "X\\(.*\\)$as_nl"; 11895 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11896 esac; 11897 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11898 ' 11899 export as_echo_n_body 11900 as_echo_n='sh -c $as_echo_n_body as_echo' 11901 fi 11902 export as_echo_body 11903 as_echo='sh -c $as_echo_body as_echo' 11904fi 11905 11906# The user is always right. 11907if test "${PATH_SEPARATOR+set}" != set; then 11908 PATH_SEPARATOR=: 11909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11911 PATH_SEPARATOR=';' 11912 } 11913fi 11914 11915 11916# IFS 11917# We need space, tab and new line, in precisely that order. Quoting is 11918# there to prevent editors from complaining about space-tab. 11919# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11920# splitting by setting IFS to empty value.) 11921IFS=" "" $as_nl" 11922 11923# Find who we are. Look in the path if we contain no directory separator. 11924as_myself= 11925case $0 in #(( 11926 *[\\/]* ) as_myself=$0 ;; 11927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11928for as_dir in $PATH 11929do 11930 IFS=$as_save_IFS 11931 test -z "$as_dir" && as_dir=. 11932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11933 done 11934IFS=$as_save_IFS 11935 11936 ;; 11937esac 11938# We did not find ourselves, most probably we were run as `sh COMMAND' 11939# in which case we are not to be found in the path. 11940if test "x$as_myself" = x; then 11941 as_myself=$0 11942fi 11943if test ! -f "$as_myself"; then 11944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11945 exit 1 11946fi 11947 11948# Unset variables that we do not need and which cause bugs (e.g. in 11949# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11950# suppresses any "Segmentation fault" message there. '((' could 11951# trigger a bug in pdksh 5.2.14. 11952for as_var in BASH_ENV ENV MAIL MAILPATH 11953do eval test x\${$as_var+set} = xset \ 11954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11955done 11956PS1='$ ' 11957PS2='> ' 11958PS4='+ ' 11959 11960# NLS nuisances. 11961LC_ALL=C 11962export LC_ALL 11963LANGUAGE=C 11964export LANGUAGE 11965 11966# CDPATH. 11967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11968 11969 11970# as_fn_error STATUS ERROR [LINENO LOG_FD] 11971# ---------------------------------------- 11972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11974# script with STATUS, using 1 if that was 0. 11975as_fn_error () 11976{ 11977 as_status=$1; test $as_status -eq 0 && as_status=1 11978 if test "$4"; then 11979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11981 fi 11982 $as_echo "$as_me: error: $2" >&2 11983 as_fn_exit $as_status 11984} # as_fn_error 11985 11986 11987# as_fn_set_status STATUS 11988# ----------------------- 11989# Set $? to STATUS, without forking. 11990as_fn_set_status () 11991{ 11992 return $1 11993} # as_fn_set_status 11994 11995# as_fn_exit STATUS 11996# ----------------- 11997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11998as_fn_exit () 11999{ 12000 set +e 12001 as_fn_set_status $1 12002 exit $1 12003} # as_fn_exit 12004 12005# as_fn_unset VAR 12006# --------------- 12007# Portably unset VAR. 12008as_fn_unset () 12009{ 12010 { eval $1=; unset $1;} 12011} 12012as_unset=as_fn_unset 12013# as_fn_append VAR VALUE 12014# ---------------------- 12015# Append the text in VALUE to the end of the definition contained in VAR. Take 12016# advantage of any shell optimizations that allow amortized linear growth over 12017# repeated appends, instead of the typical quadratic growth present in naive 12018# implementations. 12019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12020 eval 'as_fn_append () 12021 { 12022 eval $1+=\$2 12023 }' 12024else 12025 as_fn_append () 12026 { 12027 eval $1=\$$1\$2 12028 } 12029fi # as_fn_append 12030 12031# as_fn_arith ARG... 12032# ------------------ 12033# Perform arithmetic evaluation on the ARGs, and store the result in the 12034# global $as_val. Take advantage of shells that can avoid forks. The arguments 12035# must be portable across $(()) and expr. 12036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12037 eval 'as_fn_arith () 12038 { 12039 as_val=$(( $* )) 12040 }' 12041else 12042 as_fn_arith () 12043 { 12044 as_val=`expr "$@" || test $? -eq 1` 12045 } 12046fi # as_fn_arith 12047 12048 12049if expr a : '\(a\)' >/dev/null 2>&1 && 12050 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12051 as_expr=expr 12052else 12053 as_expr=false 12054fi 12055 12056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12057 as_basename=basename 12058else 12059 as_basename=false 12060fi 12061 12062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12063 as_dirname=dirname 12064else 12065 as_dirname=false 12066fi 12067 12068as_me=`$as_basename -- "$0" || 12069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12070 X"$0" : 'X\(//\)$' \| \ 12071 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12072$as_echo X/"$0" | 12073 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12074 s//\1/ 12075 q 12076 } 12077 /^X\/\(\/\/\)$/{ 12078 s//\1/ 12079 q 12080 } 12081 /^X\/\(\/\).*/{ 12082 s//\1/ 12083 q 12084 } 12085 s/.*/./; q'` 12086 12087# Avoid depending upon Character Ranges. 12088as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12090as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12091as_cr_digits='0123456789' 12092as_cr_alnum=$as_cr_Letters$as_cr_digits 12093 12094ECHO_C= ECHO_N= ECHO_T= 12095case `echo -n x` in #((((( 12096-n*) 12097 case `echo 'xy\c'` in 12098 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12099 xy) ECHO_C='\c';; 12100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12101 ECHO_T=' ';; 12102 esac;; 12103*) 12104 ECHO_N='-n';; 12105esac 12106 12107rm -f conf$$ conf$$.exe conf$$.file 12108if test -d conf$$.dir; then 12109 rm -f conf$$.dir/conf$$.file 12110else 12111 rm -f conf$$.dir 12112 mkdir conf$$.dir 2>/dev/null 12113fi 12114if (echo >conf$$.file) 2>/dev/null; then 12115 if ln -s conf$$.file conf$$ 2>/dev/null; then 12116 as_ln_s='ln -s' 12117 # ... but there are two gotchas: 12118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12120 # In both cases, we have to default to `cp -pR'. 12121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12122 as_ln_s='cp -pR' 12123 elif ln conf$$.file conf$$ 2>/dev/null; then 12124 as_ln_s=ln 12125 else 12126 as_ln_s='cp -pR' 12127 fi 12128else 12129 as_ln_s='cp -pR' 12130fi 12131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12132rmdir conf$$.dir 2>/dev/null 12133 12134 12135# as_fn_mkdir_p 12136# ------------- 12137# Create "$as_dir" as a directory, including parents if necessary. 12138as_fn_mkdir_p () 12139{ 12140 12141 case $as_dir in #( 12142 -*) as_dir=./$as_dir;; 12143 esac 12144 test -d "$as_dir" || eval $as_mkdir_p || { 12145 as_dirs= 12146 while :; do 12147 case $as_dir in #( 12148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12149 *) as_qdir=$as_dir;; 12150 esac 12151 as_dirs="'$as_qdir' $as_dirs" 12152 as_dir=`$as_dirname -- "$as_dir" || 12153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12154 X"$as_dir" : 'X\(//\)[^/]' \| \ 12155 X"$as_dir" : 'X\(//\)$' \| \ 12156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12157$as_echo X"$as_dir" | 12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12159 s//\1/ 12160 q 12161 } 12162 /^X\(\/\/\)[^/].*/{ 12163 s//\1/ 12164 q 12165 } 12166 /^X\(\/\/\)$/{ 12167 s//\1/ 12168 q 12169 } 12170 /^X\(\/\).*/{ 12171 s//\1/ 12172 q 12173 } 12174 s/.*/./; q'` 12175 test -d "$as_dir" && break 12176 done 12177 test -z "$as_dirs" || eval "mkdir $as_dirs" 12178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12179 12180 12181} # as_fn_mkdir_p 12182if mkdir -p . 2>/dev/null; then 12183 as_mkdir_p='mkdir -p "$as_dir"' 12184else 12185 test -d ./-p && rmdir ./-p 12186 as_mkdir_p=false 12187fi 12188 12189 12190# as_fn_executable_p FILE 12191# ----------------------- 12192# Test if FILE is an executable regular file. 12193as_fn_executable_p () 12194{ 12195 test -f "$1" && test -x "$1" 12196} # as_fn_executable_p 12197as_test_x='test -x' 12198as_executable_p=as_fn_executable_p 12199 12200# Sed expression to map a string onto a valid CPP name. 12201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12202 12203# Sed expression to map a string onto a valid variable name. 12204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12205 12206 12207exec 6>&1 12208## ----------------------------------- ## 12209## Main body of $CONFIG_STATUS script. ## 12210## ----------------------------------- ## 12211_ASEOF 12212test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12213 12214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12215# Save the log message, to keep $0 and so on meaningful, and to 12216# report actual input values of CONFIG_FILES etc. instead of their 12217# values after options handling. 12218ac_log=" 12219This file was extended by sqlite $as_me 3.25.0, which was 12220generated by GNU Autoconf 2.69. Invocation command line was 12221 12222 CONFIG_FILES = $CONFIG_FILES 12223 CONFIG_HEADERS = $CONFIG_HEADERS 12224 CONFIG_LINKS = $CONFIG_LINKS 12225 CONFIG_COMMANDS = $CONFIG_COMMANDS 12226 $ $0 $@ 12227 12228on `(hostname || uname -n) 2>/dev/null | sed 1q` 12229" 12230 12231_ACEOF 12232 12233case $ac_config_files in *" 12234"*) set x $ac_config_files; shift; ac_config_files=$*;; 12235esac 12236 12237case $ac_config_headers in *" 12238"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12239esac 12240 12241 12242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12243# Files that config.status was made for. 12244config_files="$ac_config_files" 12245config_headers="$ac_config_headers" 12246config_commands="$ac_config_commands" 12247 12248_ACEOF 12249 12250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12251ac_cs_usage="\ 12252\`$as_me' instantiates files and other configuration actions 12253from templates according to the current configuration. Unless the files 12254and actions are specified as TAGs, all are instantiated by default. 12255 12256Usage: $0 [OPTION]... [TAG]... 12257 12258 -h, --help print this help, then exit 12259 -V, --version print version number and configuration settings, then exit 12260 --config print configuration, then exit 12261 -q, --quiet, --silent 12262 do not print progress messages 12263 -d, --debug don't remove temporary files 12264 --recheck update $as_me by reconfiguring in the same conditions 12265 --file=FILE[:TEMPLATE] 12266 instantiate the configuration file FILE 12267 --header=FILE[:TEMPLATE] 12268 instantiate the configuration header FILE 12269 12270Configuration files: 12271$config_files 12272 12273Configuration headers: 12274$config_headers 12275 12276Configuration commands: 12277$config_commands 12278 12279Report bugs to the package provider." 12280 12281_ACEOF 12282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12283ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12284ac_cs_version="\\ 12285sqlite config.status 3.25.0 12286configured by $0, generated by GNU Autoconf 2.69, 12287 with options \\"\$ac_cs_config\\" 12288 12289Copyright (C) 2012 Free Software Foundation, Inc. 12290This config.status script is free software; the Free Software Foundation 12291gives unlimited permission to copy, distribute and modify it." 12292 12293ac_pwd='$ac_pwd' 12294srcdir='$srcdir' 12295INSTALL='$INSTALL' 12296test -n "\$AWK" || AWK=awk 12297_ACEOF 12298 12299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12300# The default lists apply if the user does not specify any file. 12301ac_need_defaults=: 12302while test $# != 0 12303do 12304 case $1 in 12305 --*=?*) 12306 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12307 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12308 ac_shift=: 12309 ;; 12310 --*=) 12311 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12312 ac_optarg= 12313 ac_shift=: 12314 ;; 12315 *) 12316 ac_option=$1 12317 ac_optarg=$2 12318 ac_shift=shift 12319 ;; 12320 esac 12321 12322 case $ac_option in 12323 # Handling of the options. 12324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12325 ac_cs_recheck=: ;; 12326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12327 $as_echo "$ac_cs_version"; exit ;; 12328 --config | --confi | --conf | --con | --co | --c ) 12329 $as_echo "$ac_cs_config"; exit ;; 12330 --debug | --debu | --deb | --de | --d | -d ) 12331 debug=: ;; 12332 --file | --fil | --fi | --f ) 12333 $ac_shift 12334 case $ac_optarg in 12335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12336 '') as_fn_error $? "missing file argument" ;; 12337 esac 12338 as_fn_append CONFIG_FILES " '$ac_optarg'" 12339 ac_need_defaults=false;; 12340 --header | --heade | --head | --hea ) 12341 $ac_shift 12342 case $ac_optarg in 12343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12344 esac 12345 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12346 ac_need_defaults=false;; 12347 --he | --h) 12348 # Conflict between --help and --header 12349 as_fn_error $? "ambiguous option: \`$1' 12350Try \`$0 --help' for more information.";; 12351 --help | --hel | -h ) 12352 $as_echo "$ac_cs_usage"; exit ;; 12353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12354 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12355 ac_cs_silent=: ;; 12356 12357 # This is an error. 12358 -*) as_fn_error $? "unrecognized option: \`$1' 12359Try \`$0 --help' for more information." ;; 12360 12361 *) as_fn_append ac_config_targets " $1" 12362 ac_need_defaults=false ;; 12363 12364 esac 12365 shift 12366done 12367 12368ac_configure_extra_args= 12369 12370if $ac_cs_silent; then 12371 exec 6>/dev/null 12372 ac_configure_extra_args="$ac_configure_extra_args --silent" 12373fi 12374 12375_ACEOF 12376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12377if \$ac_cs_recheck; then 12378 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12379 shift 12380 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12381 CONFIG_SHELL='$SHELL' 12382 export CONFIG_SHELL 12383 exec "\$@" 12384fi 12385 12386_ACEOF 12387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12388exec 5>>config.log 12389{ 12390 echo 12391 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12392## Running $as_me. ## 12393_ASBOX 12394 $as_echo "$ac_log" 12395} >&5 12396 12397_ACEOF 12398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12399# 12400# INIT-COMMANDS 12401# 12402 12403 12404# The HP-UX ksh and POSIX shell print the target directory to stdout 12405# if CDPATH is set. 12406(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12407 12408sed_quote_subst='$sed_quote_subst' 12409double_quote_subst='$double_quote_subst' 12410delay_variable_subst='$delay_variable_subst' 12411macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12412macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12413enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12414enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12415pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12416enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12417host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12418host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12419host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12420build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12421build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12422build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12423SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12424Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12425GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12426EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12427FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12428LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12429NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12430LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12431max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12432ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12433exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12434lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12435lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12436lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12437reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12438reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12439OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12440deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12441file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12442AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12443AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12444STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12445RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12446old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12447old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12448old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12449CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12450CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12451compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12452GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12453lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12454lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12455lt_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"`' 12456lt_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"`' 12457objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12458SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12459ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12460MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12461lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12462lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12463lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12464lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12465lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12466need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12467DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12468NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12469LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12470OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12471OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12472libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12473shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12474extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12475archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12476enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12477export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12478whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12479compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12480old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12481old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12482archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12483archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12484module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12485module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12486with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12487allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12488no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12489hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12490hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12491hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12492hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12493hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12494hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12495hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12496hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12497inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12498link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12499fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12500always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12501export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12502exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12503include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12504prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12505file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12506variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12507need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12508need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12509version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12510runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12511shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12512shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12513libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12514library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12515soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12516postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12517postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12518finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12519finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12520hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12521sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12522sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12523hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12524enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12525enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12526enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12527old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12528striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12529 12530LTCC='$LTCC' 12531LTCFLAGS='$LTCFLAGS' 12532compiler='$compiler_DEFAULT' 12533 12534# Quote evaled strings. 12535for var in SED \ 12536GREP \ 12537EGREP \ 12538FGREP \ 12539LD \ 12540NM \ 12541LN_S \ 12542lt_SP2NL \ 12543lt_NL2SP \ 12544reload_flag \ 12545OBJDUMP \ 12546deplibs_check_method \ 12547file_magic_cmd \ 12548AR \ 12549AR_FLAGS \ 12550STRIP \ 12551RANLIB \ 12552CC \ 12553CFLAGS \ 12554compiler \ 12555lt_cv_sys_global_symbol_pipe \ 12556lt_cv_sys_global_symbol_to_cdecl \ 12557lt_cv_sys_global_symbol_to_c_name_address \ 12558lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12559SHELL \ 12560ECHO \ 12561lt_prog_compiler_no_builtin_flag \ 12562lt_prog_compiler_wl \ 12563lt_prog_compiler_pic \ 12564lt_prog_compiler_static \ 12565lt_cv_prog_compiler_c_o \ 12566need_locks \ 12567DSYMUTIL \ 12568NMEDIT \ 12569LIPO \ 12570OTOOL \ 12571OTOOL64 \ 12572shrext_cmds \ 12573export_dynamic_flag_spec \ 12574whole_archive_flag_spec \ 12575compiler_needs_object \ 12576with_gnu_ld \ 12577allow_undefined_flag \ 12578no_undefined_flag \ 12579hardcode_libdir_flag_spec \ 12580hardcode_libdir_flag_spec_ld \ 12581hardcode_libdir_separator \ 12582fix_srcfile_path \ 12583exclude_expsyms \ 12584include_expsyms \ 12585file_list_spec \ 12586variables_saved_for_relink \ 12587libname_spec \ 12588library_names_spec \ 12589soname_spec \ 12590finish_eval \ 12591old_striplib \ 12592striplib; do 12593 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12594 *[\\\\\\\`\\"\\\$]*) 12595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12596 ;; 12597 *) 12598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12599 ;; 12600 esac 12601done 12602 12603# Double-quote double-evaled strings. 12604for var in reload_cmds \ 12605old_postinstall_cmds \ 12606old_postuninstall_cmds \ 12607old_archive_cmds \ 12608extract_expsyms_cmds \ 12609old_archive_from_new_cmds \ 12610old_archive_from_expsyms_cmds \ 12611archive_cmds \ 12612archive_expsym_cmds \ 12613module_cmds \ 12614module_expsym_cmds \ 12615export_symbols_cmds \ 12616prelink_cmds \ 12617postinstall_cmds \ 12618postuninstall_cmds \ 12619finish_cmds \ 12620sys_lib_search_path_spec \ 12621sys_lib_dlsearch_path_spec; do 12622 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12623 *[\\\\\\\`\\"\\\$]*) 12624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12625 ;; 12626 *) 12627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12628 ;; 12629 esac 12630done 12631 12632# Fix-up fallback echo if it was mangled by the above quoting rules. 12633case \$lt_ECHO in 12634*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12635 ;; 12636esac 12637 12638ac_aux_dir='$ac_aux_dir' 12639xsi_shell='$xsi_shell' 12640lt_shell_append='$lt_shell_append' 12641 12642# See if we are running on zsh, and set the options which allow our 12643# commands through without removal of \ escapes INIT. 12644if test -n "\${ZSH_VERSION+set}" ; then 12645 setopt NO_GLOB_SUBST 12646fi 12647 12648 12649 PACKAGE='$PACKAGE' 12650 VERSION='$VERSION' 12651 TIMESTAMP='$TIMESTAMP' 12652 RM='$RM' 12653 ofile='$ofile' 12654 12655 12656 12657 12658_ACEOF 12659 12660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12661 12662# Handling of arguments. 12663for ac_config_target in $ac_config_targets 12664do 12665 case $ac_config_target in 12666 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12669 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 12670 12671 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12672 esac 12673done 12674 12675 12676# If the user did not use the arguments to specify the items to instantiate, 12677# then the envvar interface is used. Set only those that are not. 12678# We use the long form for the default assignment because of an extremely 12679# bizarre bug on SunOS 4.1.3. 12680if $ac_need_defaults; then 12681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12684fi 12685 12686# Have a temporary directory for convenience. Make it in the build tree 12687# simply because there is no reason against having it here, and in addition, 12688# creating and moving files from /tmp can sometimes cause problems. 12689# Hook for its removal unless debugging. 12690# Note that there is a small window in which the directory will not be cleaned: 12691# after its creation but before its name has been assigned to `$tmp'. 12692$debug || 12693{ 12694 tmp= ac_tmp= 12695 trap 'exit_status=$? 12696 : "${ac_tmp:=$tmp}" 12697 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12698' 0 12699 trap 'as_fn_exit 1' 1 2 13 15 12700} 12701# Create a (secure) tmp directory for tmp files. 12702 12703{ 12704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12705 test -d "$tmp" 12706} || 12707{ 12708 tmp=./conf$$-$RANDOM 12709 (umask 077 && mkdir "$tmp") 12710} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12711ac_tmp=$tmp 12712 12713# Set up the scripts for CONFIG_FILES section. 12714# No need to generate them if there are no CONFIG_FILES. 12715# This happens for instance with `./config.status config.h'. 12716if test -n "$CONFIG_FILES"; then 12717 12718 12719ac_cr=`echo X | tr X '\015'` 12720# On cygwin, bash can eat \r inside `` if the user requested igncr. 12721# But we know of no other shell where ac_cr would be empty at this 12722# point, so we can use a bashism as a fallback. 12723if test "x$ac_cr" = x; then 12724 eval ac_cr=\$\'\\r\' 12725fi 12726ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12727if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12728 ac_cs_awk_cr='\\r' 12729else 12730 ac_cs_awk_cr=$ac_cr 12731fi 12732 12733echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12734_ACEOF 12735 12736 12737{ 12738 echo "cat >conf$$subs.awk <<_ACEOF" && 12739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12740 echo "_ACEOF" 12741} >conf$$subs.sh || 12742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12743ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12744ac_delim='%!_!# ' 12745for ac_last_try in false false false false false :; do 12746 . ./conf$$subs.sh || 12747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12748 12749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12750 if test $ac_delim_n = $ac_delim_num; then 12751 break 12752 elif $ac_last_try; then 12753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12754 else 12755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12756 fi 12757done 12758rm -f conf$$subs.sh 12759 12760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12761cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12762_ACEOF 12763sed -n ' 12764h 12765s/^/S["/; s/!.*/"]=/ 12766p 12767g 12768s/^[^!]*!// 12769:repl 12770t repl 12771s/'"$ac_delim"'$// 12772t delim 12773:nl 12774h 12775s/\(.\{148\}\)..*/\1/ 12776t more1 12777s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12778p 12779n 12780b repl 12781:more1 12782s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12783p 12784g 12785s/.\{148\}// 12786t nl 12787:delim 12788h 12789s/\(.\{148\}\)..*/\1/ 12790t more2 12791s/["\\]/\\&/g; s/^/"/; s/$/"/ 12792p 12793b 12794:more2 12795s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12796p 12797g 12798s/.\{148\}// 12799t delim 12800' <conf$$subs.awk | sed ' 12801/^[^""]/{ 12802 N 12803 s/\n// 12804} 12805' >>$CONFIG_STATUS || ac_write_fail=1 12806rm -f conf$$subs.awk 12807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12808_ACAWK 12809cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12810 for (key in S) S_is_set[key] = 1 12811 FS = "" 12812 12813} 12814{ 12815 line = $ 0 12816 nfields = split(line, field, "@") 12817 substed = 0 12818 len = length(field[1]) 12819 for (i = 2; i < nfields; i++) { 12820 key = field[i] 12821 keylen = length(key) 12822 if (S_is_set[key]) { 12823 value = S[key] 12824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12825 len += length(value) + length(field[++i]) 12826 substed = 1 12827 } else 12828 len += 1 + keylen 12829 } 12830 12831 print line 12832} 12833 12834_ACAWK 12835_ACEOF 12836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12837if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12839else 12840 cat 12841fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12842 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12843_ACEOF 12844 12845# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12846# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12847# trailing colons and then remove the whole line if VPATH becomes empty 12848# (actually we leave an empty line to preserve line numbers). 12849if test "x$srcdir" = x.; then 12850 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12851h 12852s/// 12853s/^/:/ 12854s/[ ]*$/:/ 12855s/:\$(srcdir):/:/g 12856s/:\${srcdir}:/:/g 12857s/:@srcdir@:/:/g 12858s/^:*// 12859s/:*$// 12860x 12861s/\(=[ ]*\).*/\1/ 12862G 12863s/\n// 12864s/^[^=]*=[ ]*$// 12865}' 12866fi 12867 12868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12869fi # test -n "$CONFIG_FILES" 12870 12871# Set up the scripts for CONFIG_HEADERS section. 12872# No need to generate them if there are no CONFIG_HEADERS. 12873# This happens for instance with `./config.status Makefile'. 12874if test -n "$CONFIG_HEADERS"; then 12875cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12876BEGIN { 12877_ACEOF 12878 12879# Transform confdefs.h into an awk script `defines.awk', embedded as 12880# here-document in config.status, that substitutes the proper values into 12881# config.h.in to produce config.h. 12882 12883# Create a delimiter string that does not exist in confdefs.h, to ease 12884# handling of long lines. 12885ac_delim='%!_!# ' 12886for ac_last_try in false false :; do 12887 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12888 if test -z "$ac_tt"; then 12889 break 12890 elif $ac_last_try; then 12891 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12892 else 12893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12894 fi 12895done 12896 12897# For the awk script, D is an array of macro values keyed by name, 12898# likewise P contains macro parameters if any. Preserve backslash 12899# newline sequences. 12900 12901ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12902sed -n ' 12903s/.\{148\}/&'"$ac_delim"'/g 12904t rset 12905:rset 12906s/^[ ]*#[ ]*define[ ][ ]*/ / 12907t def 12908d 12909:def 12910s/\\$// 12911t bsnl 12912s/["\\]/\\&/g 12913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12914D["\1"]=" \3"/p 12915s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12916d 12917:bsnl 12918s/["\\]/\\&/g 12919s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12920D["\1"]=" \3\\\\\\n"\\/p 12921t cont 12922s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12923t cont 12924d 12925:cont 12926n 12927s/.\{148\}/&'"$ac_delim"'/g 12928t clear 12929:clear 12930s/\\$// 12931t bsnlc 12932s/["\\]/\\&/g; s/^/"/; s/$/"/p 12933d 12934:bsnlc 12935s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12936b cont 12937' <confdefs.h | sed ' 12938s/'"$ac_delim"'/"\\\ 12939"/g' >>$CONFIG_STATUS || ac_write_fail=1 12940 12941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12942 for (key in D) D_is_set[key] = 1 12943 FS = "" 12944} 12945/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12946 line = \$ 0 12947 split(line, arg, " ") 12948 if (arg[1] == "#") { 12949 defundef = arg[2] 12950 mac1 = arg[3] 12951 } else { 12952 defundef = substr(arg[1], 2) 12953 mac1 = arg[2] 12954 } 12955 split(mac1, mac2, "(") #) 12956 macro = mac2[1] 12957 prefix = substr(line, 1, index(line, defundef) - 1) 12958 if (D_is_set[macro]) { 12959 # Preserve the white space surrounding the "#". 12960 print prefix "define", macro P[macro] D[macro] 12961 next 12962 } else { 12963 # Replace #undef with comments. This is necessary, for example, 12964 # in the case of _POSIX_SOURCE, which is predefined and required 12965 # on some systems where configure will not decide to define it. 12966 if (defundef == "undef") { 12967 print "/*", prefix defundef, macro, "*/" 12968 next 12969 } 12970 } 12971} 12972{ print } 12973_ACAWK 12974_ACEOF 12975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12976 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12977fi # test -n "$CONFIG_HEADERS" 12978 12979 12980eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12981shift 12982for ac_tag 12983do 12984 case $ac_tag in 12985 :[FHLC]) ac_mode=$ac_tag; continue;; 12986 esac 12987 case $ac_mode$ac_tag in 12988 :[FHL]*:*);; 12989 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12990 :[FH]-) ac_tag=-:-;; 12991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12992 esac 12993 ac_save_IFS=$IFS 12994 IFS=: 12995 set x $ac_tag 12996 IFS=$ac_save_IFS 12997 shift 12998 ac_file=$1 12999 shift 13000 13001 case $ac_mode in 13002 :L) ac_source=$1;; 13003 :[FH]) 13004 ac_file_inputs= 13005 for ac_f 13006 do 13007 case $ac_f in 13008 -) ac_f="$ac_tmp/stdin";; 13009 *) # Look for the file first in the build tree, then in the source tree 13010 # (if the path is not absolute). The absolute path cannot be DOS-style, 13011 # because $ac_f cannot contain `:'. 13012 test -f "$ac_f" || 13013 case $ac_f in 13014 [\\/$]*) false;; 13015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13016 esac || 13017 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13018 esac 13019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13020 as_fn_append ac_file_inputs " '$ac_f'" 13021 done 13022 13023 # Let's still pretend it is `configure' which instantiates (i.e., don't 13024 # use $as_me), people would be surprised to read: 13025 # /* config.h. Generated by config.status. */ 13026 configure_input='Generated from '` 13027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13028 `' by configure.' 13029 if test x"$ac_file" != x-; then 13030 configure_input="$ac_file. $configure_input" 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13032$as_echo "$as_me: creating $ac_file" >&6;} 13033 fi 13034 # Neutralize special characters interpreted by sed in replacement strings. 13035 case $configure_input in #( 13036 *\&* | *\|* | *\\* ) 13037 ac_sed_conf_input=`$as_echo "$configure_input" | 13038 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13039 *) ac_sed_conf_input=$configure_input;; 13040 esac 13041 13042 case $ac_tag in 13043 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13045 esac 13046 ;; 13047 esac 13048 13049 ac_dir=`$as_dirname -- "$ac_file" || 13050$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13051 X"$ac_file" : 'X\(//\)[^/]' \| \ 13052 X"$ac_file" : 'X\(//\)$' \| \ 13053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13054$as_echo X"$ac_file" | 13055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13056 s//\1/ 13057 q 13058 } 13059 /^X\(\/\/\)[^/].*/{ 13060 s//\1/ 13061 q 13062 } 13063 /^X\(\/\/\)$/{ 13064 s//\1/ 13065 q 13066 } 13067 /^X\(\/\).*/{ 13068 s//\1/ 13069 q 13070 } 13071 s/.*/./; q'` 13072 as_dir="$ac_dir"; as_fn_mkdir_p 13073 ac_builddir=. 13074 13075case "$ac_dir" in 13076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13077*) 13078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13079 # A ".." for each directory in $ac_dir_suffix. 13080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13081 case $ac_top_builddir_sub in 13082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13084 esac ;; 13085esac 13086ac_abs_top_builddir=$ac_pwd 13087ac_abs_builddir=$ac_pwd$ac_dir_suffix 13088# for backward compatibility: 13089ac_top_builddir=$ac_top_build_prefix 13090 13091case $srcdir in 13092 .) # We are building in place. 13093 ac_srcdir=. 13094 ac_top_srcdir=$ac_top_builddir_sub 13095 ac_abs_top_srcdir=$ac_pwd ;; 13096 [\\/]* | ?:[\\/]* ) # Absolute name. 13097 ac_srcdir=$srcdir$ac_dir_suffix; 13098 ac_top_srcdir=$srcdir 13099 ac_abs_top_srcdir=$srcdir ;; 13100 *) # Relative name. 13101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13102 ac_top_srcdir=$ac_top_build_prefix$srcdir 13103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13104esac 13105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13106 13107 13108 case $ac_mode in 13109 :F) 13110 # 13111 # CONFIG_FILE 13112 # 13113 13114 case $INSTALL in 13115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13117 esac 13118_ACEOF 13119 13120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13121# If the template does not know about datarootdir, expand it. 13122# FIXME: This hack should be removed a few years after 2.60. 13123ac_datarootdir_hack=; ac_datarootdir_seen= 13124ac_sed_dataroot=' 13125/datarootdir/ { 13126 p 13127 q 13128} 13129/@datadir@/p 13130/@docdir@/p 13131/@infodir@/p 13132/@localedir@/p 13133/@mandir@/p' 13134case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13135*datarootdir*) ac_datarootdir_seen=yes;; 13136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13138$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13139_ACEOF 13140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13141 ac_datarootdir_hack=' 13142 s&@datadir@&$datadir&g 13143 s&@docdir@&$docdir&g 13144 s&@infodir@&$infodir&g 13145 s&@localedir@&$localedir&g 13146 s&@mandir@&$mandir&g 13147 s&\\\${datarootdir}&$datarootdir&g' ;; 13148esac 13149_ACEOF 13150 13151# Neutralize VPATH when `$srcdir' = `.'. 13152# Shell code in configure.ac might set extrasub. 13153# FIXME: do we really want to maintain this feature? 13154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13155ac_sed_extra="$ac_vpsub 13156$extrasub 13157_ACEOF 13158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13159:t 13160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13161s|@configure_input@|$ac_sed_conf_input|;t t 13162s&@top_builddir@&$ac_top_builddir_sub&;t t 13163s&@top_build_prefix@&$ac_top_build_prefix&;t t 13164s&@srcdir@&$ac_srcdir&;t t 13165s&@abs_srcdir@&$ac_abs_srcdir&;t t 13166s&@top_srcdir@&$ac_top_srcdir&;t t 13167s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13168s&@builddir@&$ac_builddir&;t t 13169s&@abs_builddir@&$ac_abs_builddir&;t t 13170s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13171s&@INSTALL@&$ac_INSTALL&;t t 13172$ac_datarootdir_hack 13173" 13174eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13176 13177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13180 "$ac_tmp/out"`; test -z "$ac_out"; } && 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13182which seems to be undefined. Please make sure it is defined" >&5 13183$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13184which seems to be undefined. Please make sure it is defined" >&2;} 13185 13186 rm -f "$ac_tmp/stdin" 13187 case $ac_file in 13188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13190 esac \ 13191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13192 ;; 13193 :H) 13194 # 13195 # CONFIG_HEADER 13196 # 13197 if test x"$ac_file" != x-; then 13198 { 13199 $as_echo "/* $configure_input */" \ 13200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13201 } >"$ac_tmp/config.h" \ 13202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13205$as_echo "$as_me: $ac_file is unchanged" >&6;} 13206 else 13207 rm -f "$ac_file" 13208 mv "$ac_tmp/config.h" "$ac_file" \ 13209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13210 fi 13211 else 13212 $as_echo "/* $configure_input */" \ 13213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13214 || as_fn_error $? "could not create -" "$LINENO" 5 13215 fi 13216 ;; 13217 13218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13219$as_echo "$as_me: executing $ac_file commands" >&6;} 13220 ;; 13221 esac 13222 13223 13224 case $ac_file$ac_mode in 13225 "libtool":C) 13226 13227 # See if we are running on zsh, and set the options which allow our 13228 # commands through without removal of \ escapes. 13229 if test -n "${ZSH_VERSION+set}" ; then 13230 setopt NO_GLOB_SUBST 13231 fi 13232 13233 cfgfile="${ofile}T" 13234 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13235 $RM "$cfgfile" 13236 13237 cat <<_LT_EOF >> "$cfgfile" 13238#! $SHELL 13239 13240# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13241# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13243# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13244# 13245# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13246# 2006, 2007, 2008 Free Software Foundation, Inc. 13247# Written by Gordon Matzigkeit, 1996 13248# 13249# This file is part of GNU Libtool. 13250# 13251# GNU Libtool is free software; you can redistribute it and/or 13252# modify it under the terms of the GNU General Public License as 13253# published by the Free Software Foundation; either version 2 of 13254# the License, or (at your option) any later version. 13255# 13256# As a special exception to the GNU General Public License, 13257# if you distribute this file as part of a program or library that 13258# is built using GNU Libtool, you may include this file under the 13259# same distribution terms that you use for the rest of that program. 13260# 13261# GNU Libtool is distributed in the hope that it will be useful, 13262# but WITHOUT ANY WARRANTY; without even the implied warranty of 13263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13264# GNU General Public License for more details. 13265# 13266# You should have received a copy of the GNU General Public License 13267# along with GNU Libtool; see the file COPYING. If not, a copy 13268# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13269# obtained by writing to the Free Software Foundation, Inc., 13270# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13271 13272 13273# The names of the tagged configurations supported by this script. 13274available_tags="" 13275 13276# ### BEGIN LIBTOOL CONFIG 13277 13278# Which release of libtool.m4 was used? 13279macro_version=$macro_version 13280macro_revision=$macro_revision 13281 13282# Whether or not to build shared libraries. 13283build_libtool_libs=$enable_shared 13284 13285# Whether or not to build static libraries. 13286build_old_libs=$enable_static 13287 13288# What type of objects to build. 13289pic_mode=$pic_mode 13290 13291# Whether or not to optimize for fast installation. 13292fast_install=$enable_fast_install 13293 13294# The host system. 13295host_alias=$host_alias 13296host=$host 13297host_os=$host_os 13298 13299# The build system. 13300build_alias=$build_alias 13301build=$build 13302build_os=$build_os 13303 13304# A sed program that does not truncate output. 13305SED=$lt_SED 13306 13307# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13308Xsed="\$SED -e 1s/^X//" 13309 13310# A grep program that handles long lines. 13311GREP=$lt_GREP 13312 13313# An ERE matcher. 13314EGREP=$lt_EGREP 13315 13316# A literal string matcher. 13317FGREP=$lt_FGREP 13318 13319# A BSD- or MS-compatible name lister. 13320NM=$lt_NM 13321 13322# Whether we need soft or hard links. 13323LN_S=$lt_LN_S 13324 13325# What is the maximum length of a command? 13326max_cmd_len=$max_cmd_len 13327 13328# Object file suffix (normally "o"). 13329objext=$ac_objext 13330 13331# Executable file suffix (normally ""). 13332exeext=$exeext 13333 13334# whether the shell understands "unset". 13335lt_unset=$lt_unset 13336 13337# turn spaces into newlines. 13338SP2NL=$lt_lt_SP2NL 13339 13340# turn newlines into spaces. 13341NL2SP=$lt_lt_NL2SP 13342 13343# How to create reloadable object files. 13344reload_flag=$lt_reload_flag 13345reload_cmds=$lt_reload_cmds 13346 13347# An object symbol dumper. 13348OBJDUMP=$lt_OBJDUMP 13349 13350# Method to check whether dependent libraries are shared objects. 13351deplibs_check_method=$lt_deplibs_check_method 13352 13353# Command to use when deplibs_check_method == "file_magic". 13354file_magic_cmd=$lt_file_magic_cmd 13355 13356# The archiver. 13357AR=$lt_AR 13358AR_FLAGS=$lt_AR_FLAGS 13359 13360# A symbol stripping program. 13361STRIP=$lt_STRIP 13362 13363# Commands used to install an old-style archive. 13364RANLIB=$lt_RANLIB 13365old_postinstall_cmds=$lt_old_postinstall_cmds 13366old_postuninstall_cmds=$lt_old_postuninstall_cmds 13367 13368# A C compiler. 13369LTCC=$lt_CC 13370 13371# LTCC compiler flags. 13372LTCFLAGS=$lt_CFLAGS 13373 13374# Take the output of nm and produce a listing of raw symbols and C names. 13375global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13376 13377# Transform the output of nm in a proper C declaration. 13378global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13379 13380# Transform the output of nm in a C name address pair. 13381global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13382 13383# Transform the output of nm in a C name address pair when lib prefix is needed. 13384global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13385 13386# The name of the directory that contains temporary libtool files. 13387objdir=$objdir 13388 13389# Shell to use when invoking shell scripts. 13390SHELL=$lt_SHELL 13391 13392# An echo program that does not interpret backslashes. 13393ECHO=$lt_ECHO 13394 13395# Used to examine libraries when file_magic_cmd begins with "file". 13396MAGIC_CMD=$MAGIC_CMD 13397 13398# Must we lock files when doing compilation? 13399need_locks=$lt_need_locks 13400 13401# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13402DSYMUTIL=$lt_DSYMUTIL 13403 13404# Tool to change global to local symbols on Mac OS X. 13405NMEDIT=$lt_NMEDIT 13406 13407# Tool to manipulate fat objects and archives on Mac OS X. 13408LIPO=$lt_LIPO 13409 13410# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13411OTOOL=$lt_OTOOL 13412 13413# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13414OTOOL64=$lt_OTOOL64 13415 13416# Old archive suffix (normally "a"). 13417libext=$libext 13418 13419# Shared library suffix (normally ".so"). 13420shrext_cmds=$lt_shrext_cmds 13421 13422# The commands to extract the exported symbol list from a shared archive. 13423extract_expsyms_cmds=$lt_extract_expsyms_cmds 13424 13425# Variables whose values should be saved in libtool wrapper scripts and 13426# restored at link time. 13427variables_saved_for_relink=$lt_variables_saved_for_relink 13428 13429# Do we need the "lib" prefix for modules? 13430need_lib_prefix=$need_lib_prefix 13431 13432# Do we need a version for libraries? 13433need_version=$need_version 13434 13435# Library versioning type. 13436version_type=$version_type 13437 13438# Shared library runtime path variable. 13439runpath_var=$runpath_var 13440 13441# Shared library path variable. 13442shlibpath_var=$shlibpath_var 13443 13444# Is shlibpath searched before the hard-coded library search path? 13445shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13446 13447# Format of library name prefix. 13448libname_spec=$lt_libname_spec 13449 13450# List of archive names. First name is the real one, the rest are links. 13451# The last name is the one that the linker finds with -lNAME 13452library_names_spec=$lt_library_names_spec 13453 13454# The coded name of the library, if different from the real name. 13455soname_spec=$lt_soname_spec 13456 13457# Command to use after installation of a shared archive. 13458postinstall_cmds=$lt_postinstall_cmds 13459 13460# Command to use after uninstallation of a shared archive. 13461postuninstall_cmds=$lt_postuninstall_cmds 13462 13463# Commands used to finish a libtool library installation in a directory. 13464finish_cmds=$lt_finish_cmds 13465 13466# As "finish_cmds", except a single script fragment to be evaled but 13467# not shown. 13468finish_eval=$lt_finish_eval 13469 13470# Whether we should hardcode library paths into libraries. 13471hardcode_into_libs=$hardcode_into_libs 13472 13473# Compile-time system search path for libraries. 13474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13475 13476# Run-time system search path for libraries. 13477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13478 13479# Whether dlopen is supported. 13480dlopen_support=$enable_dlopen 13481 13482# Whether dlopen of programs is supported. 13483dlopen_self=$enable_dlopen_self 13484 13485# Whether dlopen of statically linked programs is supported. 13486dlopen_self_static=$enable_dlopen_self_static 13487 13488# Commands to strip libraries. 13489old_striplib=$lt_old_striplib 13490striplib=$lt_striplib 13491 13492 13493# The linker used to build libraries. 13494LD=$lt_LD 13495 13496# Commands used to build an old-style archive. 13497old_archive_cmds=$lt_old_archive_cmds 13498 13499# A language specific compiler. 13500CC=$lt_compiler 13501 13502# Is the compiler the GNU compiler? 13503with_gcc=$GCC 13504 13505# Compiler flag to turn off builtin functions. 13506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13507 13508# How to pass a linker flag through the compiler. 13509wl=$lt_lt_prog_compiler_wl 13510 13511# Additional compiler flags for building library objects. 13512pic_flag=$lt_lt_prog_compiler_pic 13513 13514# Compiler flag to prevent dynamic linking. 13515link_static_flag=$lt_lt_prog_compiler_static 13516 13517# Does compiler simultaneously support -c and -o options? 13518compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13519 13520# Whether or not to add -lc for building shared libraries. 13521build_libtool_need_lc=$archive_cmds_need_lc 13522 13523# Whether or not to disallow shared libs when runtime libs are static. 13524allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13525 13526# Compiler flag to allow reflexive dlopens. 13527export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13528 13529# Compiler flag to generate shared objects directly from archives. 13530whole_archive_flag_spec=$lt_whole_archive_flag_spec 13531 13532# Whether the compiler copes with passing no objects directly. 13533compiler_needs_object=$lt_compiler_needs_object 13534 13535# Create an old-style archive from a shared archive. 13536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13537 13538# Create a temporary old-style archive to link instead of a shared archive. 13539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13540 13541# Commands used to build a shared archive. 13542archive_cmds=$lt_archive_cmds 13543archive_expsym_cmds=$lt_archive_expsym_cmds 13544 13545# Commands used to build a loadable module if different from building 13546# a shared archive. 13547module_cmds=$lt_module_cmds 13548module_expsym_cmds=$lt_module_expsym_cmds 13549 13550# Whether we are building with GNU ld or not. 13551with_gnu_ld=$lt_with_gnu_ld 13552 13553# Flag that allows shared libraries with undefined symbols to be built. 13554allow_undefined_flag=$lt_allow_undefined_flag 13555 13556# Flag that enforces no undefined symbols. 13557no_undefined_flag=$lt_no_undefined_flag 13558 13559# Flag to hardcode \$libdir into a binary during linking. 13560# This must work even if \$libdir does not exist 13561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13562 13563# If ld is used when linking, flag to hardcode \$libdir into a binary 13564# during linking. This must work even if \$libdir does not exist. 13565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13566 13567# Whether we need a single "-rpath" flag with a separated argument. 13568hardcode_libdir_separator=$lt_hardcode_libdir_separator 13569 13570# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13571# DIR into the resulting binary. 13572hardcode_direct=$hardcode_direct 13573 13574# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13575# DIR into the resulting binary and the resulting library dependency is 13576# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13577# library is relocated. 13578hardcode_direct_absolute=$hardcode_direct_absolute 13579 13580# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13581# into the resulting binary. 13582hardcode_minus_L=$hardcode_minus_L 13583 13584# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13585# into the resulting binary. 13586hardcode_shlibpath_var=$hardcode_shlibpath_var 13587 13588# Set to "yes" if building a shared library automatically hardcodes DIR 13589# into the library and all subsequent libraries and executables linked 13590# against it. 13591hardcode_automatic=$hardcode_automatic 13592 13593# Set to yes if linker adds runtime paths of dependent libraries 13594# to runtime path list. 13595inherit_rpath=$inherit_rpath 13596 13597# Whether libtool must link a program against all its dependency libraries. 13598link_all_deplibs=$link_all_deplibs 13599 13600# Fix the shell variable \$srcfile for the compiler. 13601fix_srcfile_path=$lt_fix_srcfile_path 13602 13603# Set to "yes" if exported symbols are required. 13604always_export_symbols=$always_export_symbols 13605 13606# The commands to list exported symbols. 13607export_symbols_cmds=$lt_export_symbols_cmds 13608 13609# Symbols that should not be listed in the preloaded symbols. 13610exclude_expsyms=$lt_exclude_expsyms 13611 13612# Symbols that must always be exported. 13613include_expsyms=$lt_include_expsyms 13614 13615# Commands necessary for linking programs (against libraries) with templates. 13616prelink_cmds=$lt_prelink_cmds 13617 13618# Specify filename containing input files. 13619file_list_spec=$lt_file_list_spec 13620 13621# How to hardcode a shared library path into an executable. 13622hardcode_action=$hardcode_action 13623 13624# ### END LIBTOOL CONFIG 13625 13626_LT_EOF 13627 13628 case $host_os in 13629 aix3*) 13630 cat <<\_LT_EOF >> "$cfgfile" 13631# AIX sometimes has problems with the GCC collect2 program. For some 13632# reason, if we set the COLLECT_NAMES environment variable, the problems 13633# vanish in a puff of smoke. 13634if test "X${COLLECT_NAMES+set}" != Xset; then 13635 COLLECT_NAMES= 13636 export COLLECT_NAMES 13637fi 13638_LT_EOF 13639 ;; 13640 esac 13641 13642 13643ltmain="$ac_aux_dir/ltmain.sh" 13644 13645 13646 # We use sed instead of cat because bash on DJGPP gets confused if 13647 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13648 # text mode, it properly converts lines to CR/LF. This bash problem 13649 # is reportedly fixed, but why not run on old versions too? 13650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13651 || (rm -f "$cfgfile"; exit 1) 13652 13653 case $xsi_shell in 13654 yes) 13655 cat << \_LT_EOF >> "$cfgfile" 13656 13657# func_dirname file append nondir_replacement 13658# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13659# otherwise set result to NONDIR_REPLACEMENT. 13660func_dirname () 13661{ 13662 case ${1} in 13663 */*) func_dirname_result="${1%/*}${2}" ;; 13664 * ) func_dirname_result="${3}" ;; 13665 esac 13666} 13667 13668# func_basename file 13669func_basename () 13670{ 13671 func_basename_result="${1##*/}" 13672} 13673 13674# func_dirname_and_basename file append nondir_replacement 13675# perform func_basename and func_dirname in a single function 13676# call: 13677# dirname: Compute the dirname of FILE. If nonempty, 13678# add APPEND to the result, otherwise set result 13679# to NONDIR_REPLACEMENT. 13680# value returned in "$func_dirname_result" 13681# basename: Compute filename of FILE. 13682# value retuned in "$func_basename_result" 13683# Implementation must be kept synchronized with func_dirname 13684# and func_basename. For efficiency, we do not delegate to 13685# those functions but instead duplicate the functionality here. 13686func_dirname_and_basename () 13687{ 13688 case ${1} in 13689 */*) func_dirname_result="${1%/*}${2}" ;; 13690 * ) func_dirname_result="${3}" ;; 13691 esac 13692 func_basename_result="${1##*/}" 13693} 13694 13695# func_stripname prefix suffix name 13696# strip PREFIX and SUFFIX off of NAME. 13697# PREFIX and SUFFIX must not contain globbing or regex special 13698# characters, hashes, percent signs, but SUFFIX may contain a leading 13699# dot (in which case that matches only a dot). 13700func_stripname () 13701{ 13702 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13703 # positional parameters, so assign one to ordinary parameter first. 13704 func_stripname_result=${3} 13705 func_stripname_result=${func_stripname_result#"${1}"} 13706 func_stripname_result=${func_stripname_result%"${2}"} 13707} 13708 13709# func_opt_split 13710func_opt_split () 13711{ 13712 func_opt_split_opt=${1%%=*} 13713 func_opt_split_arg=${1#*=} 13714} 13715 13716# func_lo2o object 13717func_lo2o () 13718{ 13719 case ${1} in 13720 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13721 *) func_lo2o_result=${1} ;; 13722 esac 13723} 13724 13725# func_xform libobj-or-source 13726func_xform () 13727{ 13728 func_xform_result=${1%.*}.lo 13729} 13730 13731# func_arith arithmetic-term... 13732func_arith () 13733{ 13734 func_arith_result=$(( $* )) 13735} 13736 13737# func_len string 13738# STRING may not start with a hyphen. 13739func_len () 13740{ 13741 func_len_result=${#1} 13742} 13743 13744_LT_EOF 13745 ;; 13746 *) # Bourne compatible functions. 13747 cat << \_LT_EOF >> "$cfgfile" 13748 13749# func_dirname file append nondir_replacement 13750# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13751# otherwise set result to NONDIR_REPLACEMENT. 13752func_dirname () 13753{ 13754 # Extract subdirectory from the argument. 13755 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13756 if test "X$func_dirname_result" = "X${1}"; then 13757 func_dirname_result="${3}" 13758 else 13759 func_dirname_result="$func_dirname_result${2}" 13760 fi 13761} 13762 13763# func_basename file 13764func_basename () 13765{ 13766 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13767} 13768 13769 13770# func_stripname prefix suffix name 13771# strip PREFIX and SUFFIX off of NAME. 13772# PREFIX and SUFFIX must not contain globbing or regex special 13773# characters, hashes, percent signs, but SUFFIX may contain a leading 13774# dot (in which case that matches only a dot). 13775# func_strip_suffix prefix name 13776func_stripname () 13777{ 13778 case ${2} in 13779 .*) func_stripname_result=`$ECHO "X${3}" \ 13780 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13781 *) func_stripname_result=`$ECHO "X${3}" \ 13782 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13783 esac 13784} 13785 13786# sed scripts: 13787my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13788my_sed_long_arg='1s/^-[^=]*=//' 13789 13790# func_opt_split 13791func_opt_split () 13792{ 13793 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13794 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13795} 13796 13797# func_lo2o object 13798func_lo2o () 13799{ 13800 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13801} 13802 13803# func_xform libobj-or-source 13804func_xform () 13805{ 13806 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13807} 13808 13809# func_arith arithmetic-term... 13810func_arith () 13811{ 13812 func_arith_result=`expr "$@"` 13813} 13814 13815# func_len string 13816# STRING may not start with a hyphen. 13817func_len () 13818{ 13819 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13820} 13821 13822_LT_EOF 13823esac 13824 13825case $lt_shell_append in 13826 yes) 13827 cat << \_LT_EOF >> "$cfgfile" 13828 13829# func_append var value 13830# Append VALUE to the end of shell variable VAR. 13831func_append () 13832{ 13833 eval "$1+=\$2" 13834} 13835_LT_EOF 13836 ;; 13837 *) 13838 cat << \_LT_EOF >> "$cfgfile" 13839 13840# func_append var value 13841# Append VALUE to the end of shell variable VAR. 13842func_append () 13843{ 13844 eval "$1=\$$1\$2" 13845} 13846 13847_LT_EOF 13848 ;; 13849 esac 13850 13851 13852 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13853 || (rm -f "$cfgfile"; exit 1) 13854 13855 mv -f "$cfgfile" "$ofile" || 13856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13857 chmod +x "$ofile" 13858 13859 ;; 13860 13861 esac 13862done # for ac_tag 13863 13864 13865as_fn_exit 0 13866_ACEOF 13867ac_clean_files=$ac_clean_files_save 13868 13869test $ac_write_fail = 0 || 13870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13871 13872 13873# configure is writing to config.log, and then calls config.status. 13874# config.status does its own redirection, appending to config.log. 13875# Unfortunately, on DOS this fails, as config.log is still kept open 13876# by configure, so config.status won't be able to write to it; its 13877# output is simply discarded. So we exec the FD to /dev/null, 13878# effectively closing config.log, so it can be properly (re)opened and 13879# appended to by config.status. When coming back to configure, we 13880# need to make the FD available again. 13881if test "$no_create" != yes; then 13882 ac_cs_success=: 13883 ac_config_status_args= 13884 test "$silent" = yes && 13885 ac_config_status_args="$ac_config_status_args --quiet" 13886 exec 5>/dev/null 13887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13888 exec 5>>config.log 13889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13890 # would make configure fail if this is the last instruction. 13891 $ac_cs_success || as_fn_exit 1 13892fi 13893if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13895$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13896fi 13897 13898