1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error STATUS ERROR [LINENO LOG_FD] 360# ---------------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with STATUS, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$1; test $as_status -eq 0 && as_status=1 367 if test "$4"; then 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 fi 371 $as_echo "$as_me: error: $2" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$lt_ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540ECHO=${lt_ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $ECHO works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<_LT_EOF 559$* 560_LT_EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$lt_ECHO"; then 569 if test "X${echo_test_string+set}" != Xset; then 570 # find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 575 then 576 break 577 fi 578 done 579 fi 580 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 583 test "X$echo_testing_string" = "X$echo_test_string"; then 584 : 585 else 586 # The Solaris, AIX, and Digital Unix default echo programs unquote 587 # backslashes. This makes it impossible to quote backslashes using 588 # echo "$something" | sed 's/\\/\\\\/g' 589 # 590 # So, first we look for a working echo in the user's PATH. 591 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 593 for dir in $PATH /usr/ucb; do 594 IFS="$lt_save_ifs" 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 598 test "X$echo_testing_string" = "X$echo_test_string"; then 599 ECHO="$dir/echo" 600 break 601 fi 602 done 603 IFS="$lt_save_ifs" 604 605 if test "X$ECHO" = Xecho; then 606 # We didn't find a better echo, so look for alternatives. 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 # This shell has a builtin print -r that does the trick. 611 ECHO='print -r' 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 613 test "X$CONFIG_SHELL" != X/bin/ksh; then 614 # If we have ksh, try running configure again with it. 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 616 export ORIGINAL_CONFIG_SHELL 617 CONFIG_SHELL=/bin/ksh 618 export CONFIG_SHELL 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 620 else 621 # Try using printf. 622 ECHO='printf %s\n' 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 # Cool, printf works 627 : 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 629 test "X$echo_testing_string" = 'X\t' && 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 633 export CONFIG_SHELL 634 SHELL="$CONFIG_SHELL" 635 export SHELL 636 ECHO="$CONFIG_SHELL $0 --fallback-echo" 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 ECHO="$CONFIG_SHELL $0 --fallback-echo" 642 else 643 # maybe with a smaller string... 644 prev=: 645 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 648 then 649 break 650 fi 651 prev="$cmd" 652 done 653 654 if test "$prev" != 'sed 50q "$0"'; then 655 echo_test_string=`eval $prev` 656 export echo_test_string 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 658 else 659 # Oops. We lost completely, so just stick with echo. 660 ECHO=echo 661 fi 662 fi 663 fi 664 fi 665 fi 666fi 667 668# Copy echo and quote the copy suitably for passing to libtool from 669# the Makefile, instead of quoting the original, which is used later. 670lt_ECHO=$ECHO 671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 673fi 674 675 676 677 678test -n "$DJDIR" || exec 7<&0 </dev/null 679exec 6>&1 680 681# Name of the host. 682# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 683# so uname gets run too. 684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685 686# 687# Initializations. 688# 689ac_default_prefix=/usr/local 690ac_clean_files= 691ac_config_libobj_dir=. 692LIBOBJS= 693cross_compiling=no 694subdirs= 695MFLAGS= 696MAKEFLAGS= 697 698# Identity of this package. 699PACKAGE_NAME= 700PACKAGE_TARNAME= 701PACKAGE_VERSION= 702PACKAGE_STRING= 703PACKAGE_BUGREPORT= 704PACKAGE_URL= 705 706ac_unique_file="native/sqlite_jni.c" 707# Factoring default headers for most tests. 708ac_includes_default="\ 709#include <stdio.h> 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef STDC_HEADERS 717# include <stdlib.h> 718# include <stddef.h> 719#else 720# ifdef HAVE_STDLIB_H 721# include <stdlib.h> 722# endif 723#endif 724#ifdef HAVE_STRING_H 725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726# include <memory.h> 727# endif 728# include <string.h> 729#endif 730#ifdef HAVE_STRINGS_H 731# include <strings.h> 732#endif 733#ifdef HAVE_INTTYPES_H 734# include <inttypes.h> 735#endif 736#ifdef HAVE_STDINT_H 737# include <stdint.h> 738#endif 739#ifdef HAVE_UNISTD_H 740# include <unistd.h> 741#endif" 742 743ac_subst_vars='LTLIBOBJS 744LIBOBJS 745NATIVE_LIB_DIR 746JDBCVER 747JAR_DIR 748JNIINCLUDE 749JAVADOC 750JAR 751JAVAC_FLAGS 752JAVAC 753JAVA_FLAGS 754JAVA_RUN 755JAVAH 756READLINK 757VALIST_FLAGS 758SQLITE3_A10N_FLAGS 759SQLITE3_A10N_O 760SQLITE3_A10N_C 761HAVE_SQLITE3_STMT_STATUS 762HAVE_SQLITE3_DB_STATUS 763HAVE_SQLITE3_STATUS 764HAVE_SQLITE3_PROFILE 765HAVE_SQLITE3_BACKUPAPI 766HAVE_SQLITE3_LOAD_EXTENSION 767HAVE_SQLITE3_OPEN_V2 768HAVE_SQLITE3_SHARED_CACHE 769HAVE_SQLITE3_KEY 770HAVE_SQLITE3_INCRBLOBIO 771HAVE_SQLITE3_RESULT_ZEROBLOB 772HAVE_SQLITE3_BIND_PARAMETER_INDEX 773HAVE_SQLITE3_BIND_PARAMETER_NAME 774HAVE_SQLITE3_BIND_PARAMETER_COUNT 775HAVE_SQLITE3_COLUMN_ORIGIN_NAME16 776HAVE_SQLITE3_COLUMN_DATABASE_NAME16 777HAVE_SQLITE3_COLUMN_TABLE_NAME16 778HAVE_SQLITE3_CLEAR_BINDINGS 779HAVE_SQLITE3_BIND_ZEROBLOB 780HAVE_SQLITE3_PREPARE16_V2 781HAVE_SQLITE3_PREPARE_V2 782HAVE_SQLITE3_MALLOC 783HAVE_SQLITE3 784SQLITE3_LIB 785SQLITE3_INC 786HAVE_SQLITE_PROGRESS_HANDLER 787HAVE_SQLITE_COMPILE 788HAVE_SQLITE_TRACE 789HAVE_SQLITE_SET_AUTHORIZER 790HAVE_SQLITE_OPEN_AUX_FILE 791HAVE_SQLITE_FUNCTION_TYPE 792HAVE_SQLITE2 793SQLITE_LIB 794SQLITE_INC 795target_os 796target_vendor 797target_cpu 798target 799HOST_CFLAGS 800HOSTCC 801INSTALL_DATA 802INSTALL_SCRIPT 803INSTALL_PROGRAM 804CPP 805OTOOL64 806OTOOL 807LIPO 808NMEDIT 809DSYMUTIL 810lt_ECHO 811RANLIB 812STRIP 813AR 814OBJDUMP 815LN_S 816NM 817ac_ct_DUMPBIN 818DUMPBIN 819LD 820FGREP 821EGREP 822GREP 823SED 824OBJEXT 825EXEEXT 826ac_ct_CC 827CPPFLAGS 828LDFLAGS 829CFLAGS 830CC 831host_os 832host_vendor 833host_cpu 834host 835build_os 836build_vendor 837build_cpu 838build 839LIBTOOL 840target_alias 841host_alias 842build_alias 843LIBS 844ECHO_T 845ECHO_N 846ECHO_C 847DEFS 848mandir 849localedir 850libdir 851psdir 852pdfdir 853dvidir 854htmldir 855infodir 856docdir 857oldincludedir 858includedir 859localstatedir 860sharedstatedir 861sysconfdir 862datadir 863datarootdir 864libexecdir 865sbindir 866bindir 867program_transform_name 868prefix 869exec_prefix 870PACKAGE_URL 871PACKAGE_BUGREPORT 872PACKAGE_STRING 873PACKAGE_VERSION 874PACKAGE_TARNAME 875PACKAGE_NAME 876PATH_SEPARATOR 877SHELL' 878ac_subst_files='' 879ac_user_opts=' 880enable_option_checking 881enable_static 882enable_shared 883with_pic 884enable_fast_install 885with_gnu_ld 886enable_libtool_lock 887with_jardir 888with_sqlite 889with_sqlite3 890enable_load_extension 891with_jdk 892' 893 ac_precious_vars='build_alias 894host_alias 895target_alias 896CC 897CFLAGS 898LDFLAGS 899LIBS 900CPPFLAGS 901CPP' 902 903 904# Initialize some variables set by options. 905ac_init_help= 906ac_init_version=false 907ac_unrecognized_opts= 908ac_unrecognized_sep= 909# The variables have the same names as the options, with 910# dashes changed to underlines. 911cache_file=/dev/null 912exec_prefix=NONE 913no_create= 914no_recursion= 915prefix=NONE 916program_prefix=NONE 917program_suffix=NONE 918program_transform_name=s,x,x, 919silent= 920site= 921srcdir= 922verbose= 923x_includes=NONE 924x_libraries=NONE 925 926# Installation directory options. 927# These are left unexpanded so users can "make install exec_prefix=/foo" 928# and all the variables that are supposed to be based on exec_prefix 929# by default will actually change. 930# Use braces instead of parens because sh, perl, etc. also accept them. 931# (The list follows the same order as the GNU Coding Standards.) 932bindir='${exec_prefix}/bin' 933sbindir='${exec_prefix}/sbin' 934libexecdir='${exec_prefix}/libexec' 935datarootdir='${prefix}/share' 936datadir='${datarootdir}' 937sysconfdir='${prefix}/etc' 938sharedstatedir='${prefix}/com' 939localstatedir='${prefix}/var' 940includedir='${prefix}/include' 941oldincludedir='/usr/include' 942docdir='${datarootdir}/doc/${PACKAGE}' 943infodir='${datarootdir}/info' 944htmldir='${docdir}' 945dvidir='${docdir}' 946pdfdir='${docdir}' 947psdir='${docdir}' 948libdir='${exec_prefix}/lib' 949localedir='${datarootdir}/locale' 950mandir='${datarootdir}/man' 951 952ac_prev= 953ac_dashdash= 954for ac_option 955do 956 # If the previous option needs an argument, assign it. 957 if test -n "$ac_prev"; then 958 eval $ac_prev=\$ac_option 959 ac_prev= 960 continue 961 fi 962 963 case $ac_option in 964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 965 *=) ac_optarg= ;; 966 *) ac_optarg=yes ;; 967 esac 968 969 # Accept the important Cygnus configure options, so we can diagnose typos. 970 971 case $ac_dashdash$ac_option in 972 --) 973 ac_dashdash=yes ;; 974 975 -bindir | --bindir | --bindi | --bind | --bin | --bi) 976 ac_prev=bindir ;; 977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 978 bindir=$ac_optarg ;; 979 980 -build | --build | --buil | --bui | --bu) 981 ac_prev=build_alias ;; 982 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 983 build_alias=$ac_optarg ;; 984 985 -cache-file | --cache-file | --cache-fil | --cache-fi \ 986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 987 ac_prev=cache_file ;; 988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 990 cache_file=$ac_optarg ;; 991 992 --config-cache | -C) 993 cache_file=config.cache ;; 994 995 -datadir | --datadir | --datadi | --datad) 996 ac_prev=datadir ;; 997 -datadir=* | --datadir=* | --datadi=* | --datad=*) 998 datadir=$ac_optarg ;; 999 1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1001 | --dataroo | --dataro | --datar) 1002 ac_prev=datarootdir ;; 1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1005 datarootdir=$ac_optarg ;; 1006 1007 -disable-* | --disable-*) 1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1009 # Reject names that are not valid shell variable names. 1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1011 as_fn_error $? "invalid feature name: $ac_useropt" 1012 ac_useropt_orig=$ac_useropt 1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1014 case $ac_user_opts in 1015 *" 1016"enable_$ac_useropt" 1017"*) ;; 1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1019 ac_unrecognized_sep=', ';; 1020 esac 1021 eval enable_$ac_useropt=no ;; 1022 1023 -docdir | --docdir | --docdi | --doc | --do) 1024 ac_prev=docdir ;; 1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1026 docdir=$ac_optarg ;; 1027 1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1029 ac_prev=dvidir ;; 1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1031 dvidir=$ac_optarg ;; 1032 1033 -enable-* | --enable-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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--enable-$ac_useropt_orig" 1045 ac_unrecognized_sep=', ';; 1046 esac 1047 eval enable_$ac_useropt=\$ac_optarg ;; 1048 1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1051 | --exec | --exe | --ex) 1052 ac_prev=exec_prefix ;; 1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1055 | --exec=* | --exe=* | --ex=*) 1056 exec_prefix=$ac_optarg ;; 1057 1058 -gas | --gas | --ga | --g) 1059 # Obsolete; use --with-gas. 1060 with_gas=yes ;; 1061 1062 -help | --help | --hel | --he | -h) 1063 ac_init_help=long ;; 1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1065 ac_init_help=recursive ;; 1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1067 ac_init_help=short ;; 1068 1069 -host | --host | --hos | --ho) 1070 ac_prev=host_alias ;; 1071 -host=* | --host=* | --hos=* | --ho=*) 1072 host_alias=$ac_optarg ;; 1073 1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1075 ac_prev=htmldir ;; 1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1077 | --ht=*) 1078 htmldir=$ac_optarg ;; 1079 1080 -includedir | --includedir | --includedi | --included | --include \ 1081 | --includ | --inclu | --incl | --inc) 1082 ac_prev=includedir ;; 1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1084 | --includ=* | --inclu=* | --incl=* | --inc=*) 1085 includedir=$ac_optarg ;; 1086 1087 -infodir | --infodir | --infodi | --infod | --info | --inf) 1088 ac_prev=infodir ;; 1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1090 infodir=$ac_optarg ;; 1091 1092 -libdir | --libdir | --libdi | --libd) 1093 ac_prev=libdir ;; 1094 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1095 libdir=$ac_optarg ;; 1096 1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1098 | --libexe | --libex | --libe) 1099 ac_prev=libexecdir ;; 1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1101 | --libexe=* | --libex=* | --libe=*) 1102 libexecdir=$ac_optarg ;; 1103 1104 -localedir | --localedir | --localedi | --localed | --locale) 1105 ac_prev=localedir ;; 1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1107 localedir=$ac_optarg ;; 1108 1109 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1110 | --localstate | --localstat | --localsta | --localst | --locals) 1111 ac_prev=localstatedir ;; 1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1114 localstatedir=$ac_optarg ;; 1115 1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1117 ac_prev=mandir ;; 1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1119 mandir=$ac_optarg ;; 1120 1121 -nfp | --nfp | --nf) 1122 # Obsolete; use --without-fp. 1123 with_fp=no ;; 1124 1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1126 | --no-cr | --no-c | -n) 1127 no_create=yes ;; 1128 1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1131 no_recursion=yes ;; 1132 1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1135 | --oldin | --oldi | --old | --ol | --o) 1136 ac_prev=oldincludedir ;; 1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1140 oldincludedir=$ac_optarg ;; 1141 1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1143 ac_prev=prefix ;; 1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1145 prefix=$ac_optarg ;; 1146 1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1148 | --program-pre | --program-pr | --program-p) 1149 ac_prev=program_prefix ;; 1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1152 program_prefix=$ac_optarg ;; 1153 1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1155 | --program-suf | --program-su | --program-s) 1156 ac_prev=program_suffix ;; 1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1159 program_suffix=$ac_optarg ;; 1160 1161 -program-transform-name | --program-transform-name \ 1162 | --program-transform-nam | --program-transform-na \ 1163 | --program-transform-n | --program-transform- \ 1164 | --program-transform | --program-transfor \ 1165 | --program-transfo | --program-transf \ 1166 | --program-trans | --program-tran \ 1167 | --progr-tra | --program-tr | --program-t) 1168 ac_prev=program_transform_name ;; 1169 -program-transform-name=* | --program-transform-name=* \ 1170 | --program-transform-nam=* | --program-transform-na=* \ 1171 | --program-transform-n=* | --program-transform-=* \ 1172 | --program-transform=* | --program-transfor=* \ 1173 | --program-transfo=* | --program-transf=* \ 1174 | --program-trans=* | --program-tran=* \ 1175 | --progr-tra=* | --program-tr=* | --program-t=*) 1176 program_transform_name=$ac_optarg ;; 1177 1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1179 ac_prev=pdfdir ;; 1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1181 pdfdir=$ac_optarg ;; 1182 1183 -psdir | --psdir | --psdi | --psd | --ps) 1184 ac_prev=psdir ;; 1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1186 psdir=$ac_optarg ;; 1187 1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1189 | -silent | --silent | --silen | --sile | --sil) 1190 silent=yes ;; 1191 1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1193 ac_prev=sbindir ;; 1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1195 | --sbi=* | --sb=*) 1196 sbindir=$ac_optarg ;; 1197 1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1200 | --sharedst | --shareds | --shared | --share | --shar \ 1201 | --sha | --sh) 1202 ac_prev=sharedstatedir ;; 1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1206 | --sha=* | --sh=*) 1207 sharedstatedir=$ac_optarg ;; 1208 1209 -site | --site | --sit) 1210 ac_prev=site ;; 1211 -site=* | --site=* | --sit=*) 1212 site=$ac_optarg ;; 1213 1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1215 ac_prev=srcdir ;; 1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1217 srcdir=$ac_optarg ;; 1218 1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1220 | --syscon | --sysco | --sysc | --sys | --sy) 1221 ac_prev=sysconfdir ;; 1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1224 sysconfdir=$ac_optarg ;; 1225 1226 -target | --target | --targe | --targ | --tar | --ta | --t) 1227 ac_prev=target_alias ;; 1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1229 target_alias=$ac_optarg ;; 1230 1231 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1232 verbose=yes ;; 1233 1234 -version | --version | --versio | --versi | --vers | -V) 1235 ac_init_version=: ;; 1236 1237 -with-* | --with-*) 1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1241 as_fn_error $? "invalid package name: $ac_useropt" 1242 ac_useropt_orig=$ac_useropt 1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1244 case $ac_user_opts in 1245 *" 1246"with_$ac_useropt" 1247"*) ;; 1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1249 ac_unrecognized_sep=', ';; 1250 esac 1251 eval with_$ac_useropt=\$ac_optarg ;; 1252 1253 -without-* | --without-*) 1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1255 # Reject names that are not valid shell variable names. 1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1257 as_fn_error $? "invalid package name: $ac_useropt" 1258 ac_useropt_orig=$ac_useropt 1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1260 case $ac_user_opts in 1261 *" 1262"with_$ac_useropt" 1263"*) ;; 1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1265 ac_unrecognized_sep=', ';; 1266 esac 1267 eval with_$ac_useropt=no ;; 1268 1269 --x) 1270 # Obsolete; use --with-x. 1271 with_x=yes ;; 1272 1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1274 | --x-incl | --x-inc | --x-in | --x-i) 1275 ac_prev=x_includes ;; 1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1278 x_includes=$ac_optarg ;; 1279 1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1282 ac_prev=x_libraries ;; 1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1285 x_libraries=$ac_optarg ;; 1286 1287 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1288Try \`$0 --help' for more information" 1289 ;; 1290 1291 *=*) 1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1293 # Reject names that are not valid shell variable names. 1294 case $ac_envvar in #( 1295 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1297 esac 1298 eval $ac_envvar=\$ac_optarg 1299 export $ac_envvar ;; 1300 1301 *) 1302 # FIXME: should be removed in autoconf 3.0. 1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1307 ;; 1308 1309 esac 1310done 1311 1312if test -n "$ac_prev"; then 1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1314 as_fn_error $? "missing argument to $ac_option" 1315fi 1316 1317if test -n "$ac_unrecognized_opts"; then 1318 case $enable_option_checking in 1319 no) ;; 1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1322 esac 1323fi 1324 1325# Check all directory arguments for consistency. 1326for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1327 datadir sysconfdir sharedstatedir localstatedir includedir \ 1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1329 libdir localedir mandir 1330do 1331 eval ac_val=\$$ac_var 1332 # Remove trailing slashes. 1333 case $ac_val in 1334 */ ) 1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1336 eval $ac_var=\$ac_val;; 1337 esac 1338 # Be sure to have absolute directory names. 1339 case $ac_val in 1340 [\\/$]* | ?:[\\/]* ) continue;; 1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1342 esac 1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1344done 1345 1346# There might be people who depend on the old broken behavior: `$host' 1347# used to hold the argument of --host etc. 1348# FIXME: To remove some day. 1349build=$build_alias 1350host=$host_alias 1351target=$target_alias 1352 1353# FIXME: To remove some day. 1354if test "x$host_alias" != x; then 1355 if test "x$build_alias" = x; then 1356 cross_compiling=maybe 1357 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1358 If a cross compiler is detected then cross compile mode will be used" >&2 1359 elif test "x$build_alias" != "x$host_alias"; then 1360 cross_compiling=yes 1361 fi 1362fi 1363 1364ac_tool_prefix= 1365test -n "$host_alias" && ac_tool_prefix=$host_alias- 1366 1367test "$silent" = yes && exec 6>/dev/null 1368 1369 1370ac_pwd=`pwd` && test -n "$ac_pwd" && 1371ac_ls_di=`ls -di .` && 1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1373 as_fn_error $? "working directory cannot be determined" 1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1375 as_fn_error $? "pwd does not report name of working directory" 1376 1377 1378# Find the source files, if location was not specified. 1379if test -z "$srcdir"; then 1380 ac_srcdir_defaulted=yes 1381 # Try the directory containing this script, then the parent directory. 1382 ac_confdir=`$as_dirname -- "$as_myself" || 1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1384 X"$as_myself" : 'X\(//\)[^/]' \| \ 1385 X"$as_myself" : 'X\(//\)$' \| \ 1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1387$as_echo X"$as_myself" | 1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1389 s//\1/ 1390 q 1391 } 1392 /^X\(\/\/\)[^/].*/{ 1393 s//\1/ 1394 q 1395 } 1396 /^X\(\/\/\)$/{ 1397 s//\1/ 1398 q 1399 } 1400 /^X\(\/\).*/{ 1401 s//\1/ 1402 q 1403 } 1404 s/.*/./; q'` 1405 srcdir=$ac_confdir 1406 if test ! -r "$srcdir/$ac_unique_file"; then 1407 srcdir=.. 1408 fi 1409else 1410 ac_srcdir_defaulted=no 1411fi 1412if test ! -r "$srcdir/$ac_unique_file"; then 1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1415fi 1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1417ac_abs_confdir=`( 1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1419 pwd)` 1420# When building in place, set srcdir=. 1421if test "$ac_abs_confdir" = "$ac_pwd"; then 1422 srcdir=. 1423fi 1424# Remove unnecessary trailing slashes from srcdir. 1425# Double slashes in file names in object file debugging info 1426# mess up M-x gdb in Emacs. 1427case $srcdir in 1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1429esac 1430for ac_var in $ac_precious_vars; do 1431 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1432 eval ac_env_${ac_var}_value=\$${ac_var} 1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1434 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1435done 1436 1437# 1438# Report the --help message. 1439# 1440if test "$ac_init_help" = "long"; then 1441 # Omit some internal or obsolete options to make the list less imposing. 1442 # This message is too long to be a string in the A/UX 3.1 sh. 1443 cat <<_ACEOF 1444\`configure' configures this package to adapt to many kinds of systems. 1445 1446Usage: $0 [OPTION]... [VAR=VALUE]... 1447 1448To assign environment variables (e.g., CC, CFLAGS...), specify them as 1449VAR=VALUE. See below for descriptions of some of the useful variables. 1450 1451Defaults for the options are specified in brackets. 1452 1453Configuration: 1454 -h, --help display this help and exit 1455 --help=short display options specific to this package 1456 --help=recursive display the short help of all the included packages 1457 -V, --version display version information and exit 1458 -q, --quiet, --silent do not print \`checking ...' messages 1459 --cache-file=FILE cache test results in FILE [disabled] 1460 -C, --config-cache alias for \`--cache-file=config.cache' 1461 -n, --no-create do not create output files 1462 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1463 1464Installation directories: 1465 --prefix=PREFIX install architecture-independent files in PREFIX 1466 [$ac_default_prefix] 1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1468 [PREFIX] 1469 1470By default, \`make install' will install all the files in 1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1472an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1473for instance \`--prefix=\$HOME'. 1474 1475For better control, use the options below. 1476 1477Fine tuning of the installation directories: 1478 --bindir=DIR user executables [EPREFIX/bin] 1479 --sbindir=DIR system admin executables [EPREFIX/sbin] 1480 --libexecdir=DIR program executables [EPREFIX/libexec] 1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1484 --libdir=DIR object code libraries [EPREFIX/lib] 1485 --includedir=DIR C header files [PREFIX/include] 1486 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1489 --infodir=DIR info documentation [DATAROOTDIR/info] 1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1491 --mandir=DIR man documentation [DATAROOTDIR/man] 1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1493 --htmldir=DIR html documentation [DOCDIR] 1494 --dvidir=DIR dvi documentation [DOCDIR] 1495 --pdfdir=DIR pdf documentation [DOCDIR] 1496 --psdir=DIR ps documentation [DOCDIR] 1497_ACEOF 1498 1499 cat <<\_ACEOF 1500 1501System types: 1502 --build=BUILD configure for building on BUILD [guessed] 1503 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1504 --target=TARGET configure for building compilers for TARGET [HOST] 1505_ACEOF 1506fi 1507 1508if test -n "$ac_init_help"; then 1509 1510 cat <<\_ACEOF 1511 1512Optional Features: 1513 --disable-option-checking ignore unrecognized --enable/--with options 1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1516 --enable-static[=PKGS] build static libraries [default=no] 1517 --enable-shared[=PKGS] build shared libraries [default=yes] 1518 --enable-fast-install[=PKGS] 1519 optimize for fast installation [default=yes] 1520 --disable-libtool-lock avoid locking (might break parallel builds) 1521 --enable-load-extension support for loading SQLite 3.x extensions. 1522 ***** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***** 1523 *** Note that the --enable-load-extension option makes it *** 1524 *** possible for library users to load arbitrary native code *** 1525 *** into the JVM bypassing its security manager checks, and *** 1526 *** thus should be enabled only if you know what you're doing. *** 1527 ******************************************************************* 1528 1529Optional Packages: 1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1532 --with-pic try to use only PIC/non-PIC objects [default=use 1533 both] 1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1535 --with-jardir=DIR where to place .jar files 1536 --with-sqlite=DIR use SQLite header/lib from DIR 1537 --with-sqlite3=DIR use SQLite3 header/lib from DIR 1538 --with-jdk=DIR use Java top directory DIR 1539 1540Some influential environment variables: 1541 CC C compiler command 1542 CFLAGS C compiler flags 1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1544 nonstandard directory <lib dir> 1545 LIBS libraries to pass to the linker, e.g. -l<library> 1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1547 you have headers in a nonstandard directory <include dir> 1548 CPP C preprocessor 1549 1550Use these variables to override the choices made by `configure' or to help 1551it to find libraries and programs with nonstandard names/locations. 1552 1553Report bugs to the package provider. 1554_ACEOF 1555ac_status=$? 1556fi 1557 1558if test "$ac_init_help" = "recursive"; then 1559 # If there are subdirs, report their specific --help. 1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1561 test -d "$ac_dir" || 1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1563 continue 1564 ac_builddir=. 1565 1566case "$ac_dir" in 1567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568*) 1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1570 # A ".." for each directory in $ac_dir_suffix. 1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1572 case $ac_top_builddir_sub in 1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1575 esac ;; 1576esac 1577ac_abs_top_builddir=$ac_pwd 1578ac_abs_builddir=$ac_pwd$ac_dir_suffix 1579# for backward compatibility: 1580ac_top_builddir=$ac_top_build_prefix 1581 1582case $srcdir in 1583 .) # We are building in place. 1584 ac_srcdir=. 1585 ac_top_srcdir=$ac_top_builddir_sub 1586 ac_abs_top_srcdir=$ac_pwd ;; 1587 [\\/]* | ?:[\\/]* ) # Absolute name. 1588 ac_srcdir=$srcdir$ac_dir_suffix; 1589 ac_top_srcdir=$srcdir 1590 ac_abs_top_srcdir=$srcdir ;; 1591 *) # Relative name. 1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1593 ac_top_srcdir=$ac_top_build_prefix$srcdir 1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1595esac 1596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1597 1598 cd "$ac_dir" || { ac_status=$?; continue; } 1599 # Check for guested configure. 1600 if test -f "$ac_srcdir/configure.gnu"; then 1601 echo && 1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1603 elif test -f "$ac_srcdir/configure"; then 1604 echo && 1605 $SHELL "$ac_srcdir/configure" --help=recursive 1606 else 1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1608 fi || ac_status=$? 1609 cd "$ac_pwd" || { ac_status=$?; break; } 1610 done 1611fi 1612 1613test -n "$ac_init_help" && exit $ac_status 1614if $ac_init_version; then 1615 cat <<\_ACEOF 1616configure 1617generated by GNU Autoconf 2.67 1618 1619Copyright (C) 2010 Free Software Foundation, Inc. 1620This configure script is free software; the Free Software Foundation 1621gives unlimited permission to copy, distribute and modify it. 1622_ACEOF 1623 exit 1624fi 1625 1626## ------------------------ ## 1627## Autoconf initialization. ## 1628## ------------------------ ## 1629 1630# ac_fn_c_try_compile LINENO 1631# -------------------------- 1632# Try to compile conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 rm -f conftest.$ac_objext 1637 if { { ac_try="$ac_compile" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_compile") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { 1653 test -z "$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 } && test -s conftest.$ac_objext; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_compile 1667 1668# ac_fn_c_try_link LINENO 1669# ----------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. 1671ac_fn_c_try_link () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 rm -f conftest.$ac_objext conftest$ac_exeext 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } && { 1691 test -z "$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 } && test -s conftest$ac_exeext && { 1694 test "$cross_compiling" = yes || 1695 $as_test_x conftest$ac_exeext 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1706 # interfere with the next link command; also delete a directory that is 1707 # left behind by Apple's compiler. We do this before executing the actions. 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_link 1713 1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists and can be compiled using the include files in 1717# INCLUDES, setting the cache variable VAR accordingly. 1718ac_fn_c_check_header_compile () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval "test \"\${$3+set}\"" = set; then : 1724 $as_echo_n "(cached) " >&6 1725else 1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727/* end confdefs.h. */ 1728$4 1729#include <$2> 1730_ACEOF 1731if ac_fn_c_try_compile "$LINENO"; then : 1732 eval "$3=yes" 1733else 1734 eval "$3=no" 1735fi 1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1737fi 1738eval ac_res=\$$3 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740$as_echo "$ac_res" >&6; } 1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1742 1743} # ac_fn_c_check_header_compile 1744 1745# ac_fn_c_try_cpp LINENO 1746# ---------------------- 1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_cpp () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { { ac_try="$ac_cpp conftest.$ac_ext" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1759 ac_status=$? 1760 if test -s conftest.err; then 1761 grep -v '^ *+' conftest.err >conftest.er1 1762 cat conftest.er1 >&5 1763 mv -f conftest.er1 conftest.err 1764 fi 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; } > conftest.i && { 1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1768 test ! -s conftest.err 1769 }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_cpp 1781 1782# ac_fn_c_try_run LINENO 1783# ---------------------- 1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1785# that executables *can* be run. 1786ac_fn_c_try_run () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1800 { { case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_try") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; }; }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: program exited with status $ac_status" >&5 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=$ac_status 1817fi 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_run 1823 1824# ac_fn_c_check_func LINENO FUNC VAR 1825# ---------------------------------- 1826# Tests whether FUNC exists, setting the cache variable VAR accordingly 1827ac_fn_c_check_func () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval "test \"\${$3+set}\"" = set; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839#define $2 innocuous_$2 1840 1841/* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846#ifdef __STDC__ 1847# include <limits.h> 1848#else 1849# include <assert.h> 1850#endif 1851 1852#undef $2 1853 1854/* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857#ifdef __cplusplus 1858extern "C" 1859#endif 1860char $2 (); 1861/* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864#if defined __stub_$2 || defined __stub___$2 1865choke me 1866#endif 1867 1868int 1869main () 1870{ 1871return $2 (); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878else 1879 eval "$3=no" 1880fi 1881rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1888 1889} # ac_fn_c_check_func 1890cat >config.log <<_ACEOF 1891This file contains any messages produced by compilers while 1892running configure, to aid debugging if configure makes a mistake. 1893 1894It was created by $as_me, which was 1895generated by GNU Autoconf 2.67. Invocation command line was 1896 1897 $ $0 $@ 1898 1899_ACEOF 1900exec 5>>config.log 1901{ 1902cat <<_ASUNAME 1903## --------- ## 1904## Platform. ## 1905## --------- ## 1906 1907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1908uname -m = `(uname -m) 2>/dev/null || echo unknown` 1909uname -r = `(uname -r) 2>/dev/null || echo unknown` 1910uname -s = `(uname -s) 2>/dev/null || echo unknown` 1911uname -v = `(uname -v) 2>/dev/null || echo unknown` 1912 1913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1914/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1915 1916/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1917/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1919/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1920/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1921/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1922/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1923 1924_ASUNAME 1925 1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1927for as_dir in $PATH 1928do 1929 IFS=$as_save_IFS 1930 test -z "$as_dir" && as_dir=. 1931 $as_echo "PATH: $as_dir" 1932 done 1933IFS=$as_save_IFS 1934 1935} >&5 1936 1937cat >&5 <<_ACEOF 1938 1939 1940## ----------- ## 1941## Core tests. ## 1942## ----------- ## 1943 1944_ACEOF 1945 1946 1947# Keep a trace of the command line. 1948# Strip out --no-create and --no-recursion so they do not pile up. 1949# Strip out --silent because we don't want to record it for future runs. 1950# Also quote any args containing shell meta-characters. 1951# Make two passes to allow for proper duplicate-argument suppression. 1952ac_configure_args= 1953ac_configure_args0= 1954ac_configure_args1= 1955ac_must_keep_next=false 1956for ac_pass in 1 2 1957do 1958 for ac_arg 1959 do 1960 case $ac_arg in 1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1963 | -silent | --silent | --silen | --sile | --sil) 1964 continue ;; 1965 *\'*) 1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1967 esac 1968 case $ac_pass in 1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1970 2) 1971 as_fn_append ac_configure_args1 " '$ac_arg'" 1972 if test $ac_must_keep_next = true; then 1973 ac_must_keep_next=false # Got value, back to normal. 1974 else 1975 case $ac_arg in 1976 *=* | --config-cache | -C | -disable-* | --disable-* \ 1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1979 | -with-* | --with-* | -without-* | --without-* | --x) 1980 case "$ac_configure_args0 " in 1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1982 esac 1983 ;; 1984 -* ) ac_must_keep_next=true ;; 1985 esac 1986 fi 1987 as_fn_append ac_configure_args " '$ac_arg'" 1988 ;; 1989 esac 1990 done 1991done 1992{ ac_configure_args0=; unset ac_configure_args0;} 1993{ ac_configure_args1=; unset ac_configure_args1;} 1994 1995# When interrupted or exit'd, cleanup temporary files, and complete 1996# config.log. We remove comments because anyway the quotes in there 1997# would cause problems or look ugly. 1998# WARNING: Use '\'' to represent an apostrophe within the trap. 1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2000trap 'exit_status=$? 2001 # Save into config.log some information that might help in debugging. 2002 { 2003 echo 2004 2005 $as_echo "## ---------------- ## 2006## Cache variables. ## 2007## ---------------- ##" 2008 echo 2009 # The following way of writing the cache mishandles newlines in values, 2010( 2011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in #( 2014 *${as_nl}*) 2015 case $ac_var in #( 2016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2018 esac 2019 case $ac_var in #( 2020 _ | IFS | as_nl) ;; #( 2021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2022 *) { eval $ac_var=; unset $ac_var;} ;; 2023 esac ;; 2024 esac 2025 done 2026 (set) 2>&1 | 2027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2028 *${as_nl}ac_space=\ *) 2029 sed -n \ 2030 "s/'\''/'\''\\\\'\'''\''/g; 2031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2032 ;; #( 2033 *) 2034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2035 ;; 2036 esac | 2037 sort 2038) 2039 echo 2040 2041 $as_echo "## ----------------- ## 2042## Output variables. ## 2043## ----------------- ##" 2044 echo 2045 for ac_var in $ac_subst_vars 2046 do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in 2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2050 esac 2051 $as_echo "$ac_var='\''$ac_val'\''" 2052 done | sort 2053 echo 2054 2055 if test -n "$ac_subst_files"; then 2056 $as_echo "## ------------------- ## 2057## File substitutions. ## 2058## ------------------- ##" 2059 echo 2060 for ac_var in $ac_subst_files 2061 do 2062 eval ac_val=\$$ac_var 2063 case $ac_val in 2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2065 esac 2066 $as_echo "$ac_var='\''$ac_val'\''" 2067 done | sort 2068 echo 2069 fi 2070 2071 if test -s confdefs.h; then 2072 $as_echo "## ----------- ## 2073## confdefs.h. ## 2074## ----------- ##" 2075 echo 2076 cat confdefs.h 2077 echo 2078 fi 2079 test "$ac_signal" != 0 && 2080 $as_echo "$as_me: caught signal $ac_signal" 2081 $as_echo "$as_me: exit $exit_status" 2082 } >&5 2083 rm -f core *.core core.conftest.* && 2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2085 exit $exit_status 2086' 0 2087for ac_signal in 1 2 13 15; do 2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2089done 2090ac_signal=0 2091 2092# confdefs.h avoids OS command line length limits that DEFS can exceed. 2093rm -f -r conftest* confdefs.h 2094 2095$as_echo "/* confdefs.h */" > confdefs.h 2096 2097# Predefined preprocessor variables. 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_NAME "$PACKAGE_NAME" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_VERSION "$PACKAGE_VERSION" 2109_ACEOF 2110 2111cat >>confdefs.h <<_ACEOF 2112#define PACKAGE_STRING "$PACKAGE_STRING" 2113_ACEOF 2114 2115cat >>confdefs.h <<_ACEOF 2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2117_ACEOF 2118 2119cat >>confdefs.h <<_ACEOF 2120#define PACKAGE_URL "$PACKAGE_URL" 2121_ACEOF 2122 2123 2124# Let the site file select an alternate cache file if it wants to. 2125# Prefer an explicitly selected file to automatically selected ones. 2126ac_site_file1=NONE 2127ac_site_file2=NONE 2128if test -n "$CONFIG_SITE"; then 2129 # We do not want a PATH search for config.site. 2130 case $CONFIG_SITE in #(( 2131 -*) ac_site_file1=./$CONFIG_SITE;; 2132 */*) ac_site_file1=$CONFIG_SITE;; 2133 *) ac_site_file1=./$CONFIG_SITE;; 2134 esac 2135elif test "x$prefix" != xNONE; then 2136 ac_site_file1=$prefix/share/config.site 2137 ac_site_file2=$prefix/etc/config.site 2138else 2139 ac_site_file1=$ac_default_prefix/share/config.site 2140 ac_site_file2=$ac_default_prefix/etc/config.site 2141fi 2142for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2143do 2144 test "x$ac_site_file" = xNONE && continue 2145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2147$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2148 sed 's/^/| /' "$ac_site_file" >&5 2149 . "$ac_site_file" \ 2150 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2152as_fn_error $? "failed to load site script $ac_site_file 2153See \`config.log' for more details" "$LINENO" 5 ; } 2154 fi 2155done 2156 2157if test -r "$cache_file"; then 2158 # Some versions of bash will fail to source /dev/null (special files 2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2162$as_echo "$as_me: loading cache $cache_file" >&6;} 2163 case $cache_file in 2164 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2165 *) . "./$cache_file";; 2166 esac 2167 fi 2168else 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2170$as_echo "$as_me: creating cache $cache_file" >&6;} 2171 >$cache_file 2172fi 2173 2174# Check that the precious variables saved in the cache have kept the same 2175# value. 2176ac_cache_corrupted=false 2177for ac_var in $ac_precious_vars; do 2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2179 eval ac_new_set=\$ac_env_${ac_var}_set 2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2181 eval ac_new_val=\$ac_env_${ac_var}_value 2182 case $ac_old_set,$ac_new_set in 2183 set,) 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2186 ac_cache_corrupted=: ;; 2187 ,set) 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2190 ac_cache_corrupted=: ;; 2191 ,);; 2192 *) 2193 if test "x$ac_old_val" != "x$ac_new_val"; then 2194 # differences in whitespace do not lead to failure. 2195 ac_old_val_w=`echo x $ac_old_val` 2196 ac_new_val_w=`echo x $ac_new_val` 2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2200 ac_cache_corrupted=: 2201 else 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2204 eval $ac_var=\$ac_old_val 2205 fi 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2207$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2209$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2210 fi;; 2211 esac 2212 # Pass precious variables to config.status. 2213 if test "$ac_new_set" = set; then 2214 case $ac_new_val in 2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2216 *) ac_arg=$ac_var=$ac_new_val ;; 2217 esac 2218 case " $ac_configure_args " in 2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2221 esac 2222 fi 2223done 2224if $ac_cache_corrupted; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2229 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2230fi 2231## -------------------- ## 2232## Main body of script. ## 2233## -------------------- ## 2234 2235ac_ext=c 2236ac_cpp='$CPP $CPPFLAGS' 2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2239ac_compiler_gnu=$ac_cv_c_compiler_gnu 2240 2241 2242# Check whether --enable-static was given. 2243if test "${enable_static+set}" = set; then : 2244 enableval=$enable_static; p=${PACKAGE-default} 2245 case $enableval in 2246 yes) enable_static=yes ;; 2247 no) enable_static=no ;; 2248 *) 2249 enable_static=no 2250 # Look at the argument we got. We use all the common list separators. 2251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2252 for pkg in $enableval; do 2253 IFS="$lt_save_ifs" 2254 if test "X$pkg" = "X$p"; then 2255 enable_static=yes 2256 fi 2257 done 2258 IFS="$lt_save_ifs" 2259 ;; 2260 esac 2261else 2262 enable_static=no 2263fi 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273case `pwd` in 2274 *\ * | *\ *) 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2276$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2277esac 2278 2279 2280 2281macro_version='2.2.6b' 2282macro_revision='1.3017' 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296ltmain="$ac_aux_dir/ltmain.sh" 2297 2298ac_aux_dir= 2299for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2300 if test -f "$ac_dir/install-sh"; then 2301 ac_aux_dir=$ac_dir 2302 ac_install_sh="$ac_aux_dir/install-sh -c" 2303 break 2304 elif test -f "$ac_dir/install.sh"; then 2305 ac_aux_dir=$ac_dir 2306 ac_install_sh="$ac_aux_dir/install.sh -c" 2307 break 2308 elif test -f "$ac_dir/shtool"; then 2309 ac_aux_dir=$ac_dir 2310 ac_install_sh="$ac_aux_dir/shtool install -c" 2311 break 2312 fi 2313done 2314if test -z "$ac_aux_dir"; then 2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2316fi 2317 2318# These three variables are undocumented and unsupported, 2319# and are intended to be withdrawn in a future Autoconf release. 2320# They can cause serious problems if a builder's source tree is in a directory 2321# whose full name contains unusual characters. 2322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2325 2326 2327# Make sure we can run config.sub. 2328$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2329 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2330 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2332$as_echo_n "checking build system type... " >&6; } 2333if test "${ac_cv_build+set}" = set; then : 2334 $as_echo_n "(cached) " >&6 2335else 2336 ac_build_alias=$build_alias 2337test "x$ac_build_alias" = x && 2338 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2339test "x$ac_build_alias" = x && 2340 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2341ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2343 2344fi 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2346$as_echo "$ac_cv_build" >&6; } 2347case $ac_cv_build in 2348*-*-*) ;; 2349*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2350esac 2351build=$ac_cv_build 2352ac_save_IFS=$IFS; IFS='-' 2353set x $ac_cv_build 2354shift 2355build_cpu=$1 2356build_vendor=$2 2357shift; shift 2358# Remember, the first character of IFS is used to create $*, 2359# except with old shells: 2360build_os=$* 2361IFS=$ac_save_IFS 2362case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2363 2364 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2366$as_echo_n "checking host system type... " >&6; } 2367if test "${ac_cv_host+set}" = set; then : 2368 $as_echo_n "(cached) " >&6 2369else 2370 if test "x$host_alias" = x; then 2371 ac_cv_host=$ac_cv_build 2372else 2373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2374 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2375fi 2376 2377fi 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2379$as_echo "$ac_cv_host" >&6; } 2380case $ac_cv_host in 2381*-*-*) ;; 2382*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2383esac 2384host=$ac_cv_host 2385ac_save_IFS=$IFS; IFS='-' 2386set x $ac_cv_host 2387shift 2388host_cpu=$1 2389host_vendor=$2 2390shift; shift 2391# Remember, the first character of IFS is used to create $*, 2392# except with old shells: 2393host_os=$* 2394IFS=$ac_save_IFS 2395case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2396 2397 2398ac_ext=c 2399ac_cpp='$CPP $CPPFLAGS' 2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2402ac_compiler_gnu=$ac_cv_c_compiler_gnu 2403if test -n "$ac_tool_prefix"; then 2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2405set dummy ${ac_tool_prefix}gcc; ac_word=$2 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2407$as_echo_n "checking for $ac_word... " >&6; } 2408if test "${ac_cv_prog_CC+set}" = set; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 if test -n "$CC"; then 2412 ac_cv_prog_CC="$CC" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2421 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426 done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431CC=$ac_cv_prog_CC 2432if test -n "$CC"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2434$as_echo "$CC" >&6; } 2435else 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2437$as_echo "no" >&6; } 2438fi 2439 2440 2441fi 2442if test -z "$ac_cv_prog_CC"; then 2443 ac_ct_CC=$CC 2444 # Extract the first word of "gcc", so it can be a program name with args. 2445set dummy gcc; ac_word=$2 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2447$as_echo_n "checking for $ac_word... " >&6; } 2448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test -n "$ac_ct_CC"; then 2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2453else 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2461 ac_cv_prog_ac_ct_CC="gcc" 2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2463 break 2 2464 fi 2465done 2466 done 2467IFS=$as_save_IFS 2468 2469fi 2470fi 2471ac_ct_CC=$ac_cv_prog_ac_ct_CC 2472if test -n "$ac_ct_CC"; then 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2474$as_echo "$ac_ct_CC" >&6; } 2475else 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2477$as_echo "no" >&6; } 2478fi 2479 2480 if test "x$ac_ct_CC" = x; then 2481 CC="" 2482 else 2483 case $cross_compiling:$ac_tool_warned in 2484yes:) 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2487ac_tool_warned=yes ;; 2488esac 2489 CC=$ac_ct_CC 2490 fi 2491else 2492 CC="$ac_cv_prog_CC" 2493fi 2494 2495if test -z "$CC"; then 2496 if test -n "$ac_tool_prefix"; then 2497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2498set dummy ${ac_tool_prefix}cc; ac_word=$2 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2500$as_echo_n "checking for $ac_word... " >&6; } 2501if test "${ac_cv_prog_CC+set}" = set; then : 2502 $as_echo_n "(cached) " >&6 2503else 2504 if test -n "$CC"; then 2505 ac_cv_prog_CC="$CC" # Let the user override the test. 2506else 2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 for ac_exec_ext in '' $ac_executable_extensions; do 2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2514 ac_cv_prog_CC="${ac_tool_prefix}cc" 2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2516 break 2 2517 fi 2518done 2519 done 2520IFS=$as_save_IFS 2521 2522fi 2523fi 2524CC=$ac_cv_prog_CC 2525if test -n "$CC"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2527$as_echo "$CC" >&6; } 2528else 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2530$as_echo "no" >&6; } 2531fi 2532 2533 2534 fi 2535fi 2536if test -z "$CC"; then 2537 # Extract the first word of "cc", so it can be a program name with args. 2538set dummy cc; ac_word=$2 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2540$as_echo_n "checking for $ac_word... " >&6; } 2541if test "${ac_cv_prog_CC+set}" = set; then : 2542 $as_echo_n "(cached) " >&6 2543else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546else 2547 ac_prog_rejected=no 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2556 ac_prog_rejected=yes 2557 continue 2558 fi 2559 ac_cv_prog_CC="cc" 2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2561 break 2 2562 fi 2563done 2564 done 2565IFS=$as_save_IFS 2566 2567if test $ac_prog_rejected = yes; then 2568 # We found a bogon in the path, so make sure we never use it. 2569 set dummy $ac_cv_prog_CC 2570 shift 2571 if test $# != 0; then 2572 # We chose a different compiler from the bogus one. 2573 # However, it has the same basename, so the bogon will be chosen 2574 # first if we set CC to just the basename; use the full file name. 2575 shift 2576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2577 fi 2578fi 2579fi 2580fi 2581CC=$ac_cv_prog_CC 2582if test -n "$CC"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2584$as_echo "$CC" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 2591fi 2592if test -z "$CC"; then 2593 if test -n "$ac_tool_prefix"; then 2594 for ac_prog in cl.exe 2595 do 2596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2597set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if test "${ac_cv_prog_CC+set}" = set; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$CC"; then 2604 ac_cv_prog_CC="$CC" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623CC=$ac_cv_prog_CC 2624if test -n "$CC"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2626$as_echo "$CC" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633 test -n "$CC" && break 2634 done 2635fi 2636if test -z "$CC"; then 2637 ac_ct_CC=$CC 2638 for ac_prog in cl.exe 2639do 2640 # Extract the first word of "$ac_prog", so it can be a program name with args. 2641set dummy $ac_prog; ac_word=$2 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2643$as_echo_n "checking for $ac_word... " >&6; } 2644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 if test -n "$ac_ct_CC"; then 2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2649else 2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 test -z "$as_dir" && as_dir=. 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2657 ac_cv_prog_ac_ct_CC="$ac_prog" 2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2659 break 2 2660 fi 2661done 2662 done 2663IFS=$as_save_IFS 2664 2665fi 2666fi 2667ac_ct_CC=$ac_cv_prog_ac_ct_CC 2668if test -n "$ac_ct_CC"; then 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2670$as_echo "$ac_ct_CC" >&6; } 2671else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674fi 2675 2676 2677 test -n "$ac_ct_CC" && break 2678done 2679 2680 if test "x$ac_ct_CC" = x; then 2681 CC="" 2682 else 2683 case $cross_compiling:$ac_tool_warned in 2684yes:) 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2687ac_tool_warned=yes ;; 2688esac 2689 CC=$ac_ct_CC 2690 fi 2691fi 2692 2693fi 2694 2695 2696test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2698as_fn_error $? "no acceptable C compiler found in \$PATH 2699See \`config.log' for more details" "$LINENO" 5 ; } 2700 2701# Provide some information about the compiler. 2702$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2703set X $ac_compile 2704ac_compiler=$2 2705for ac_option in --version -v -V -qversion; do 2706 { { ac_try="$ac_compiler $ac_option >&5" 2707case "(($ac_try" in 2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2709 *) ac_try_echo=$ac_try;; 2710esac 2711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2712$as_echo "$ac_try_echo"; } >&5 2713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2714 ac_status=$? 2715 if test -s conftest.err; then 2716 sed '10a\ 2717... rest of stderr output deleted ... 2718 10q' conftest.err >conftest.er1 2719 cat conftest.er1 >&5 2720 fi 2721 rm -f conftest.er1 conftest.err 2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2723 test $ac_status = 0; } 2724done 2725 2726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2727/* end confdefs.h. */ 2728 2729int 2730main () 2731{ 2732 2733 ; 2734 return 0; 2735} 2736_ACEOF 2737ac_clean_files_save=$ac_clean_files 2738ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2739# Try to create an executable without -o first, disregard a.out. 2740# It will help us diagnose broken compilers, and finding out an intuition 2741# of exeext. 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2743$as_echo_n "checking whether the C compiler works... " >&6; } 2744ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2745 2746# The possible output files: 2747ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2748 2749ac_rmfiles= 2750for ac_file in $ac_files 2751do 2752 case $ac_file in 2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2755 esac 2756done 2757rm -f $ac_rmfiles 2758 2759if { { ac_try="$ac_link_default" 2760case "(($ac_try" in 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2762 *) ac_try_echo=$ac_try;; 2763esac 2764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2765$as_echo "$ac_try_echo"; } >&5 2766 (eval "$ac_link_default") 2>&5 2767 ac_status=$? 2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2769 test $ac_status = 0; }; then : 2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2771# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2772# in a Makefile. We should not override ac_cv_exeext if it was cached, 2773# so that the user can short-circuit this test for compilers unknown to 2774# Autoconf. 2775for ac_file in $ac_files '' 2776do 2777 test -f "$ac_file" || continue 2778 case $ac_file in 2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2780 ;; 2781 [ab].out ) 2782 # We found the default executable, but exeext='' is most 2783 # certainly right. 2784 break;; 2785 *.* ) 2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2787 then :; else 2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2789 fi 2790 # We set ac_cv_exeext here because the later test for it is not 2791 # safe: cross compilers may not add the suffix if given an `-o' 2792 # argument, so we may need to know it at that point already. 2793 # Even if this section looks crufty: it has the advantage of 2794 # actually working. 2795 break;; 2796 * ) 2797 break;; 2798 esac 2799done 2800test "$ac_cv_exeext" = no && ac_cv_exeext= 2801 2802else 2803 ac_file='' 2804fi 2805if test -z "$ac_file"; then : 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807$as_echo "no" >&6; } 2808$as_echo "$as_me: failed program was:" >&5 2809sed 's/^/| /' conftest.$ac_ext >&5 2810 2811{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2813as_fn_error 77 "C compiler cannot create executables 2814See \`config.log' for more details" "$LINENO" 5 ; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817$as_echo "yes" >&6; } 2818fi 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2820$as_echo_n "checking for C compiler default output file name... " >&6; } 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2822$as_echo "$ac_file" >&6; } 2823ac_exeext=$ac_cv_exeext 2824 2825rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2826ac_clean_files=$ac_clean_files_save 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2828$as_echo_n "checking for suffix of executables... " >&6; } 2829if { { ac_try="$ac_link" 2830case "(($ac_try" in 2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2832 *) ac_try_echo=$ac_try;; 2833esac 2834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2835$as_echo "$ac_try_echo"; } >&5 2836 (eval "$ac_link") 2>&5 2837 ac_status=$? 2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2839 test $ac_status = 0; }; then : 2840 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2841# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2842# work properly (i.e., refer to `conftest.exe'), while it won't with 2843# `rm'. 2844for ac_file in conftest.exe conftest conftest.*; do 2845 test -f "$ac_file" || continue 2846 case $ac_file in 2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2849 break;; 2850 * ) break;; 2851 esac 2852done 2853else 2854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2856as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2857See \`config.log' for more details" "$LINENO" 5 ; } 2858fi 2859rm -f conftest conftest$ac_cv_exeext 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2861$as_echo "$ac_cv_exeext" >&6; } 2862 2863rm -f conftest.$ac_ext 2864EXEEXT=$ac_cv_exeext 2865ac_exeext=$EXEEXT 2866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2867/* end confdefs.h. */ 2868#include <stdio.h> 2869int 2870main () 2871{ 2872FILE *f = fopen ("conftest.out", "w"); 2873 return ferror (f) || fclose (f) != 0; 2874 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879ac_clean_files="$ac_clean_files conftest.out" 2880# Check that the compiler produces executables we can run. If not, either 2881# the compiler is broken, or we cross compile. 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2883$as_echo_n "checking whether we are cross compiling... " >&6; } 2884if test "$cross_compiling" != yes; then 2885 { { ac_try="$ac_link" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2891$as_echo "$ac_try_echo"; } >&5 2892 (eval "$ac_link") 2>&5 2893 ac_status=$? 2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2895 test $ac_status = 0; } 2896 if { ac_try='./conftest$ac_cv_exeext' 2897 { { case "(($ac_try" in 2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2899 *) ac_try_echo=$ac_try;; 2900esac 2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2902$as_echo "$ac_try_echo"; } >&5 2903 (eval "$ac_try") 2>&5 2904 ac_status=$? 2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2906 test $ac_status = 0; }; }; then 2907 cross_compiling=no 2908 else 2909 if test "$cross_compiling" = maybe; then 2910 cross_compiling=yes 2911 else 2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2914as_fn_error $? "cannot run C compiled programs. 2915If you meant to cross compile, use \`--host'. 2916See \`config.log' for more details" "$LINENO" 5 ; } 2917 fi 2918 fi 2919fi 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2921$as_echo "$cross_compiling" >&6; } 2922 2923rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2924ac_clean_files=$ac_clean_files_save 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2926$as_echo_n "checking for suffix of object files... " >&6; } 2927if test "${ac_cv_objext+set}" = set; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2931/* end confdefs.h. */ 2932 2933int 2934main () 2935{ 2936 2937 ; 2938 return 0; 2939} 2940_ACEOF 2941rm -f conftest.o conftest.obj 2942if { { ac_try="$ac_compile" 2943case "(($ac_try" in 2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2945 *) ac_try_echo=$ac_try;; 2946esac 2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2948$as_echo "$ac_try_echo"; } >&5 2949 (eval "$ac_compile") 2>&5 2950 ac_status=$? 2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2952 test $ac_status = 0; }; then : 2953 for ac_file in conftest.o conftest.obj conftest.*; do 2954 test -f "$ac_file" || continue; 2955 case $ac_file in 2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2958 break;; 2959 esac 2960done 2961else 2962 $as_echo "$as_me: failed program was:" >&5 2963sed 's/^/| /' conftest.$ac_ext >&5 2964 2965{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2967as_fn_error $? "cannot compute suffix of object files: cannot compile 2968See \`config.log' for more details" "$LINENO" 5 ; } 2969fi 2970rm -f conftest.$ac_cv_objext conftest.$ac_ext 2971fi 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2973$as_echo "$ac_cv_objext" >&6; } 2974OBJEXT=$ac_cv_objext 2975ac_objext=$OBJEXT 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2977$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2978if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2982/* end confdefs.h. */ 2983 2984int 2985main () 2986{ 2987#ifndef __GNUC__ 2988 choke me 2989#endif 2990 2991 ; 2992 return 0; 2993} 2994_ACEOF 2995if ac_fn_c_try_compile "$LINENO"; then : 2996 ac_compiler_gnu=yes 2997else 2998 ac_compiler_gnu=no 2999fi 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3001ac_cv_c_compiler_gnu=$ac_compiler_gnu 3002 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3005$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3006if test $ac_compiler_gnu = yes; then 3007 GCC=yes 3008else 3009 GCC= 3010fi 3011ac_test_CFLAGS=${CFLAGS+set} 3012ac_save_CFLAGS=$CFLAGS 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3014$as_echo_n "checking whether $CC accepts -g... " >&6; } 3015if test "${ac_cv_prog_cc_g+set}" = set; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 ac_save_c_werror_flag=$ac_c_werror_flag 3019 ac_c_werror_flag=yes 3020 ac_cv_prog_cc_g=no 3021 CFLAGS="-g" 3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023/* end confdefs.h. */ 3024 3025int 3026main () 3027{ 3028 3029 ; 3030 return 0; 3031} 3032_ACEOF 3033if ac_fn_c_try_compile "$LINENO"; then : 3034 ac_cv_prog_cc_g=yes 3035else 3036 CFLAGS="" 3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3038/* end confdefs.h. */ 3039 3040int 3041main () 3042{ 3043 3044 ; 3045 return 0; 3046} 3047_ACEOF 3048if ac_fn_c_try_compile "$LINENO"; then : 3049 3050else 3051 ac_c_werror_flag=$ac_save_c_werror_flag 3052 CFLAGS="-g" 3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3054/* end confdefs.h. */ 3055 3056int 3057main () 3058{ 3059 3060 ; 3061 return 0; 3062} 3063_ACEOF 3064if ac_fn_c_try_compile "$LINENO"; then : 3065 ac_cv_prog_cc_g=yes 3066fi 3067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3068fi 3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3070fi 3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3072 ac_c_werror_flag=$ac_save_c_werror_flag 3073fi 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3075$as_echo "$ac_cv_prog_cc_g" >&6; } 3076if test "$ac_test_CFLAGS" = set; then 3077 CFLAGS=$ac_save_CFLAGS 3078elif test $ac_cv_prog_cc_g = yes; then 3079 if test "$GCC" = yes; then 3080 CFLAGS="-g -O2" 3081 else 3082 CFLAGS="-g" 3083 fi 3084else 3085 if test "$GCC" = yes; then 3086 CFLAGS="-O2" 3087 else 3088 CFLAGS= 3089 fi 3090fi 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3092$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3093if test "${ac_cv_prog_cc_c89+set}" = set; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 ac_cv_prog_cc_c89=no 3097ac_save_CC=$CC 3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3099/* end confdefs.h. */ 3100#include <stdarg.h> 3101#include <stdio.h> 3102#include <sys/types.h> 3103#include <sys/stat.h> 3104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3105struct buf { int x; }; 3106FILE * (*rcsopen) (struct buf *, struct stat *, int); 3107static char *e (p, i) 3108 char **p; 3109 int i; 3110{ 3111 return p[i]; 3112} 3113static char *f (char * (*g) (char **, int), char **p, ...) 3114{ 3115 char *s; 3116 va_list v; 3117 va_start (v,p); 3118 s = g (p, va_arg (v,int)); 3119 va_end (v); 3120 return s; 3121} 3122 3123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3124 function prototypes and stuff, but not '\xHH' hex character constants. 3125 These don't provoke an error unfortunately, instead are silently treated 3126 as 'x'. The following induces an error, until -std is added to get 3127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3128 array size at least. It's necessary to write '\x00'==0 to get something 3129 that's true only with -std. */ 3130int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3131 3132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3133 inside strings and character constants. */ 3134#define FOO(x) 'x' 3135int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3136 3137int test (int i, double x); 3138struct s1 {int (*f) (int a);}; 3139struct s2 {int (*f) (double a);}; 3140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3141int argc; 3142char **argv; 3143int 3144main () 3145{ 3146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3153do 3154 CC="$ac_save_CC $ac_arg" 3155 if ac_fn_c_try_compile "$LINENO"; then : 3156 ac_cv_prog_cc_c89=$ac_arg 3157fi 3158rm -f core conftest.err conftest.$ac_objext 3159 test "x$ac_cv_prog_cc_c89" != "xno" && break 3160done 3161rm -f conftest.$ac_ext 3162CC=$ac_save_CC 3163 3164fi 3165# AC_CACHE_VAL 3166case "x$ac_cv_prog_cc_c89" in 3167 x) 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3169$as_echo "none needed" >&6; } ;; 3170 xno) 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3172$as_echo "unsupported" >&6; } ;; 3173 *) 3174 CC="$CC $ac_cv_prog_cc_c89" 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3176$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3177esac 3178if test "x$ac_cv_prog_cc_c89" != xno; then : 3179 3180fi 3181 3182ac_ext=c 3183ac_cpp='$CPP $CPPFLAGS' 3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3186ac_compiler_gnu=$ac_cv_c_compiler_gnu 3187 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3189$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3190if test "${ac_cv_path_SED+set}" = set; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3194 for ac_i in 1 2 3 4 5 6 7; do 3195 ac_script="$ac_script$as_nl$ac_script" 3196 done 3197 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3198 { ac_script=; unset ac_script;} 3199 if test -z "$SED"; then 3200 ac_path_SED_found=false 3201 # Loop through the user's path and test for each of PROGNAME-LIST 3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3203for as_dir in $PATH 3204do 3205 IFS=$as_save_IFS 3206 test -z "$as_dir" && as_dir=. 3207 for ac_prog in sed gsed; do 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3210 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3211# Check for GNU ac_path_SED and select it if it is found. 3212 # Check for GNU $ac_path_SED 3213case `"$ac_path_SED" --version 2>&1` in 3214*GNU*) 3215 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3216*) 3217 ac_count=0 3218 $as_echo_n 0123456789 >"conftest.in" 3219 while : 3220 do 3221 cat "conftest.in" "conftest.in" >"conftest.tmp" 3222 mv "conftest.tmp" "conftest.in" 3223 cp "conftest.in" "conftest.nl" 3224 $as_echo '' >> "conftest.nl" 3225 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3227 as_fn_arith $ac_count + 1 && ac_count=$as_val 3228 if test $ac_count -gt ${ac_path_SED_max-0}; then 3229 # Best one so far, save it but keep looking for a better one 3230 ac_cv_path_SED="$ac_path_SED" 3231 ac_path_SED_max=$ac_count 3232 fi 3233 # 10*(2^10) chars as input seems more than enough 3234 test $ac_count -gt 10 && break 3235 done 3236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3237esac 3238 3239 $ac_path_SED_found && break 3 3240 done 3241 done 3242 done 3243IFS=$as_save_IFS 3244 if test -z "$ac_cv_path_SED"; then 3245 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3246 fi 3247else 3248 ac_cv_path_SED=$SED 3249fi 3250 3251fi 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3253$as_echo "$ac_cv_path_SED" >&6; } 3254 SED="$ac_cv_path_SED" 3255 rm -f conftest.sed 3256 3257test -z "$SED" && SED=sed 3258Xsed="$SED -e 1s/^X//" 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3271$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3272if test "${ac_cv_path_GREP+set}" = set; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -z "$GREP"; then 3276 ac_path_GREP_found=false 3277 # Loop through the user's path and test for each of PROGNAME-LIST 3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_prog in grep ggrep; do 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3287# Check for GNU ac_path_GREP and select it if it is found. 3288 # Check for GNU $ac_path_GREP 3289case `"$ac_path_GREP" --version 2>&1` in 3290*GNU*) 3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3292*) 3293 ac_count=0 3294 $as_echo_n 0123456789 >"conftest.in" 3295 while : 3296 do 3297 cat "conftest.in" "conftest.in" >"conftest.tmp" 3298 mv "conftest.tmp" "conftest.in" 3299 cp "conftest.in" "conftest.nl" 3300 $as_echo 'GREP' >> "conftest.nl" 3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3303 as_fn_arith $ac_count + 1 && ac_count=$as_val 3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3305 # Best one so far, save it but keep looking for a better one 3306 ac_cv_path_GREP="$ac_path_GREP" 3307 ac_path_GREP_max=$ac_count 3308 fi 3309 # 10*(2^10) chars as input seems more than enough 3310 test $ac_count -gt 10 && break 3311 done 3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3313esac 3314 3315 $ac_path_GREP_found && break 3 3316 done 3317 done 3318 done 3319IFS=$as_save_IFS 3320 if test -z "$ac_cv_path_GREP"; then 3321 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3322 fi 3323else 3324 ac_cv_path_GREP=$GREP 3325fi 3326 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3329$as_echo "$ac_cv_path_GREP" >&6; } 3330 GREP="$ac_cv_path_GREP" 3331 3332 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3334$as_echo_n "checking for egrep... " >&6; } 3335if test "${ac_cv_path_EGREP+set}" = set; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3339 then ac_cv_path_EGREP="$GREP -E" 3340 else 3341 if test -z "$EGREP"; then 3342 ac_path_EGREP_found=false 3343 # Loop through the user's path and test for each of PROGNAME-LIST 3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_prog in egrep; do 3350 for ac_exec_ext in '' $ac_executable_extensions; do 3351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3353# Check for GNU ac_path_EGREP and select it if it is found. 3354 # Check for GNU $ac_path_EGREP 3355case `"$ac_path_EGREP" --version 2>&1` in 3356*GNU*) 3357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3358*) 3359 ac_count=0 3360 $as_echo_n 0123456789 >"conftest.in" 3361 while : 3362 do 3363 cat "conftest.in" "conftest.in" >"conftest.tmp" 3364 mv "conftest.tmp" "conftest.in" 3365 cp "conftest.in" "conftest.nl" 3366 $as_echo 'EGREP' >> "conftest.nl" 3367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3369 as_fn_arith $ac_count + 1 && ac_count=$as_val 3370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3371 # Best one so far, save it but keep looking for a better one 3372 ac_cv_path_EGREP="$ac_path_EGREP" 3373 ac_path_EGREP_max=$ac_count 3374 fi 3375 # 10*(2^10) chars as input seems more than enough 3376 test $ac_count -gt 10 && break 3377 done 3378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3379esac 3380 3381 $ac_path_EGREP_found && break 3 3382 done 3383 done 3384 done 3385IFS=$as_save_IFS 3386 if test -z "$ac_cv_path_EGREP"; then 3387 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3388 fi 3389else 3390 ac_cv_path_EGREP=$EGREP 3391fi 3392 3393 fi 3394fi 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3396$as_echo "$ac_cv_path_EGREP" >&6; } 3397 EGREP="$ac_cv_path_EGREP" 3398 3399 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3401$as_echo_n "checking for fgrep... " >&6; } 3402if test "${ac_cv_path_FGREP+set}" = set; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3406 then ac_cv_path_FGREP="$GREP -F" 3407 else 3408 if test -z "$FGREP"; then 3409 ac_path_FGREP_found=false 3410 # Loop through the user's path and test for each of PROGNAME-LIST 3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3413do 3414 IFS=$as_save_IFS 3415 test -z "$as_dir" && as_dir=. 3416 for ac_prog in fgrep; do 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3419 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3420# Check for GNU ac_path_FGREP and select it if it is found. 3421 # Check for GNU $ac_path_FGREP 3422case `"$ac_path_FGREP" --version 2>&1` in 3423*GNU*) 3424 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3425*) 3426 ac_count=0 3427 $as_echo_n 0123456789 >"conftest.in" 3428 while : 3429 do 3430 cat "conftest.in" "conftest.in" >"conftest.tmp" 3431 mv "conftest.tmp" "conftest.in" 3432 cp "conftest.in" "conftest.nl" 3433 $as_echo 'FGREP' >> "conftest.nl" 3434 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3436 as_fn_arith $ac_count + 1 && ac_count=$as_val 3437 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3438 # Best one so far, save it but keep looking for a better one 3439 ac_cv_path_FGREP="$ac_path_FGREP" 3440 ac_path_FGREP_max=$ac_count 3441 fi 3442 # 10*(2^10) chars as input seems more than enough 3443 test $ac_count -gt 10 && break 3444 done 3445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3446esac 3447 3448 $ac_path_FGREP_found && break 3 3449 done 3450 done 3451 done 3452IFS=$as_save_IFS 3453 if test -z "$ac_cv_path_FGREP"; then 3454 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3455 fi 3456else 3457 ac_cv_path_FGREP=$FGREP 3458fi 3459 3460 fi 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3463$as_echo "$ac_cv_path_FGREP" >&6; } 3464 FGREP="$ac_cv_path_FGREP" 3465 3466 3467test -z "$GREP" && GREP=grep 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487# Check whether --with-gnu-ld was given. 3488if test "${with_gnu_ld+set}" = set; then : 3489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3490else 3491 with_gnu_ld=no 3492fi 3493 3494ac_prog=ld 3495if test "$GCC" = yes; then 3496 # Check if gcc -print-prog-name=ld gives a path. 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3498$as_echo_n "checking for ld used by $CC... " >&6; } 3499 case $host in 3500 *-*-mingw*) 3501 # gcc leaves a trailing carriage return which upsets mingw 3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3503 *) 3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3505 esac 3506 case $ac_prog in 3507 # Accept absolute paths. 3508 [\\/]* | ?:[\\/]*) 3509 re_direlt='/[^/][^/]*/\.\./' 3510 # Canonicalize the pathname of ld 3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3514 done 3515 test -z "$LD" && LD="$ac_prog" 3516 ;; 3517 "") 3518 # If it fails, then pretend we aren't using GCC. 3519 ac_prog=ld 3520 ;; 3521 *) 3522 # If it is relative, then search for the first ld in PATH. 3523 with_gnu_ld=unknown 3524 ;; 3525 esac 3526elif test "$with_gnu_ld" = yes; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3528$as_echo_n "checking for GNU ld... " >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3531$as_echo_n "checking for non-GNU ld... " >&6; } 3532fi 3533if test "${lt_cv_path_LD+set}" = set; then : 3534 $as_echo_n "(cached) " >&6 3535else 3536 if test -z "$LD"; then 3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3538 for ac_dir in $PATH; do 3539 IFS="$lt_save_ifs" 3540 test -z "$ac_dir" && ac_dir=. 3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3542 lt_cv_path_LD="$ac_dir/$ac_prog" 3543 # Check to see if the program is GNU ld. I'd rather use --version, 3544 # but apparently some variants of GNU ld only accept -v. 3545 # Break only if it was the GNU/non-GNU ld that we prefer. 3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3547 *GNU* | *'with BFD'*) 3548 test "$with_gnu_ld" != no && break 3549 ;; 3550 *) 3551 test "$with_gnu_ld" != yes && break 3552 ;; 3553 esac 3554 fi 3555 done 3556 IFS="$lt_save_ifs" 3557else 3558 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3559fi 3560fi 3561 3562LD="$lt_cv_path_LD" 3563if test -n "$LD"; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3565$as_echo "$LD" >&6; } 3566else 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568$as_echo "no" >&6; } 3569fi 3570test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3572$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3573if test "${lt_cv_prog_gnu_ld+set}" = set; then : 3574 $as_echo_n "(cached) " >&6 3575else 3576 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3577case `$LD -v 2>&1 </dev/null` in 3578*GNU* | *'with BFD'*) 3579 lt_cv_prog_gnu_ld=yes 3580 ;; 3581*) 3582 lt_cv_prog_gnu_ld=no 3583 ;; 3584esac 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3587$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3588with_gnu_ld=$lt_cv_prog_gnu_ld 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3599$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3600if test "${lt_cv_path_NM+set}" = set; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 if test -n "$NM"; then 3604 # Let the user override the test. 3605 lt_cv_path_NM="$NM" 3606else 3607 lt_nm_to_check="${ac_tool_prefix}nm" 3608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3609 lt_nm_to_check="$lt_nm_to_check nm" 3610 fi 3611 for lt_tmp_nm in $lt_nm_to_check; do 3612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3614 IFS="$lt_save_ifs" 3615 test -z "$ac_dir" && ac_dir=. 3616 tmp_nm="$ac_dir/$lt_tmp_nm" 3617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3618 # Check to see if the nm accepts a BSD-compat flag. 3619 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3620 # nm: unknown option "B" ignored 3621 # Tru64's nm complains that /dev/null is an invalid object file 3622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3623 */dev/null* | *'Invalid file or object type'*) 3624 lt_cv_path_NM="$tmp_nm -B" 3625 break 3626 ;; 3627 *) 3628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3629 */dev/null*) 3630 lt_cv_path_NM="$tmp_nm -p" 3631 break 3632 ;; 3633 *) 3634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3635 continue # so that we can try to find one that supports BSD flags 3636 ;; 3637 esac 3638 ;; 3639 esac 3640 fi 3641 done 3642 IFS="$lt_save_ifs" 3643 done 3644 : ${lt_cv_path_NM=no} 3645fi 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3648$as_echo "$lt_cv_path_NM" >&6; } 3649if test "$lt_cv_path_NM" != "no"; then 3650 NM="$lt_cv_path_NM" 3651else 3652 # Didn't find any BSD compatible name lister, look for dumpbin. 3653 if test -n "$ac_tool_prefix"; then 3654 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3655 do 3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3657set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3659$as_echo_n "checking for $ac_word... " >&6; } 3660if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 if test -n "$DUMPBIN"; then 3664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3665else 3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3667for as_dir in $PATH 3668do 3669 IFS=$as_save_IFS 3670 test -z "$as_dir" && as_dir=. 3671 for ac_exec_ext in '' $ac_executable_extensions; do 3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677done 3678 done 3679IFS=$as_save_IFS 3680 3681fi 3682fi 3683DUMPBIN=$ac_cv_prog_DUMPBIN 3684if test -n "$DUMPBIN"; then 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3686$as_echo "$DUMPBIN" >&6; } 3687else 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3689$as_echo "no" >&6; } 3690fi 3691 3692 3693 test -n "$DUMPBIN" && break 3694 done 3695fi 3696if test -z "$DUMPBIN"; then 3697 ac_ct_DUMPBIN=$DUMPBIN 3698 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3699do 3700 # Extract the first word of "$ac_prog", so it can be a program name with args. 3701set dummy $ac_prog; ac_word=$2 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3703$as_echo_n "checking for $ac_word... " >&6; } 3704if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 3705 $as_echo_n "(cached) " >&6 3706else 3707 if test -n "$ac_ct_DUMPBIN"; then 3708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3709else 3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3711for as_dir in $PATH 3712do 3713 IFS=$as_save_IFS 3714 test -z "$as_dir" && as_dir=. 3715 for ac_exec_ext in '' $ac_executable_extensions; do 3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3719 break 2 3720 fi 3721done 3722 done 3723IFS=$as_save_IFS 3724 3725fi 3726fi 3727ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3728if test -n "$ac_ct_DUMPBIN"; then 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3730$as_echo "$ac_ct_DUMPBIN" >&6; } 3731else 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3733$as_echo "no" >&6; } 3734fi 3735 3736 3737 test -n "$ac_ct_DUMPBIN" && break 3738done 3739 3740 if test "x$ac_ct_DUMPBIN" = x; then 3741 DUMPBIN=":" 3742 else 3743 case $cross_compiling:$ac_tool_warned in 3744yes:) 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3747ac_tool_warned=yes ;; 3748esac 3749 DUMPBIN=$ac_ct_DUMPBIN 3750 fi 3751fi 3752 3753 3754 if test "$DUMPBIN" != ":"; then 3755 NM="$DUMPBIN" 3756 fi 3757fi 3758test -z "$NM" && NM=nm 3759 3760 3761 3762 3763 3764 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3766$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3767if test "${lt_cv_nm_interface+set}" = set; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 lt_cv_nm_interface="BSD nm" 3771 echo "int some_variable = 0;" > conftest.$ac_ext 3772 (eval echo "\"\$as_me:3772: $ac_compile\"" >&5) 3773 (eval "$ac_compile" 2>conftest.err) 3774 cat conftest.err >&5 3775 (eval echo "\"\$as_me:3775: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3776 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3777 cat conftest.err >&5 3778 (eval echo "\"\$as_me:3778: output\"" >&5) 3779 cat conftest.out >&5 3780 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3781 lt_cv_nm_interface="MS dumpbin" 3782 fi 3783 rm -f conftest* 3784fi 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3786$as_echo "$lt_cv_nm_interface" >&6; } 3787 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3789$as_echo_n "checking whether ln -s works... " >&6; } 3790LN_S=$as_ln_s 3791if test "$LN_S" = "ln -s"; then 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3793$as_echo "yes" >&6; } 3794else 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3796$as_echo "no, using $LN_S" >&6; } 3797fi 3798 3799# find the maximum length of command line arguments 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3801$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3802if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 i=0 3806 teststring="ABCD" 3807 3808 case $build_os in 3809 msdosdjgpp*) 3810 # On DJGPP, this test can blow up pretty badly due to problems in libc 3811 # (any single argument exceeding 2000 bytes causes a buffer overrun 3812 # during glob expansion). Even if it were fixed, the result of this 3813 # check would be larger than it should be. 3814 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3815 ;; 3816 3817 gnu*) 3818 # Under GNU Hurd, this test is not required because there is 3819 # no limit to the length of command line arguments. 3820 # Libtool will interpret -1 as no limit whatsoever 3821 lt_cv_sys_max_cmd_len=-1; 3822 ;; 3823 3824 cygwin* | mingw* | cegcc*) 3825 # On Win9x/ME, this test blows up -- it succeeds, but takes 3826 # about 5 minutes as the teststring grows exponentially. 3827 # Worse, since 9x/ME are not pre-emptively multitasking, 3828 # you end up with a "frozen" computer, even though with patience 3829 # the test eventually succeeds (with a max line length of 256k). 3830 # Instead, let's just punt: use the minimum linelength reported by 3831 # all of the supported platforms: 8192 (on NT/2K/XP). 3832 lt_cv_sys_max_cmd_len=8192; 3833 ;; 3834 3835 amigaos*) 3836 # On AmigaOS with pdksh, this test takes hours, literally. 3837 # So we just punt and use a minimum line length of 8192. 3838 lt_cv_sys_max_cmd_len=8192; 3839 ;; 3840 3841 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3842 # This has been around since 386BSD, at least. Likely further. 3843 if test -x /sbin/sysctl; then 3844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3845 elif test -x /usr/sbin/sysctl; then 3846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3847 else 3848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3849 fi 3850 # And add a safety zone 3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3853 ;; 3854 3855 interix*) 3856 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3857 lt_cv_sys_max_cmd_len=196608 3858 ;; 3859 3860 osf*) 3861 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3862 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3863 # nice to cause kernel panics so lets avoid the loop below. 3864 # First set a reasonable default. 3865 lt_cv_sys_max_cmd_len=16384 3866 # 3867 if test -x /sbin/sysconfig; then 3868 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3869 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3870 esac 3871 fi 3872 ;; 3873 sco3.2v5*) 3874 lt_cv_sys_max_cmd_len=102400 3875 ;; 3876 sysv5* | sco5v6* | sysv4.2uw2*) 3877 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3878 if test -n "$kargmax"; then 3879 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3880 else 3881 lt_cv_sys_max_cmd_len=32768 3882 fi 3883 ;; 3884 *) 3885 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3886 if test -n "$lt_cv_sys_max_cmd_len"; then 3887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3889 else 3890 # Make teststring a little bigger before we do anything with it. 3891 # a 1K string should be a reasonable start. 3892 for i in 1 2 3 4 5 6 7 8 ; do 3893 teststring=$teststring$teststring 3894 done 3895 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3896 # If test is not a shell built-in, we'll probably end up computing a 3897 # maximum length that is only half of the actual maximum length, but 3898 # we can't tell. 3899 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3900 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3901 test $i != 17 # 1/2 MB should be enough 3902 do 3903 i=`expr $i + 1` 3904 teststring=$teststring$teststring 3905 done 3906 # Only check the string length outside the loop. 3907 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3908 teststring= 3909 # Add a significant safety factor because C++ compilers can tack on 3910 # massive amounts of additional arguments before passing them to the 3911 # linker. It appears as though 1/2 is a usable value. 3912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3913 fi 3914 ;; 3915 esac 3916 3917fi 3918 3919if test -n $lt_cv_sys_max_cmd_len ; then 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 3921$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 3922else 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 3924$as_echo "none" >&6; } 3925fi 3926max_cmd_len=$lt_cv_sys_max_cmd_len 3927 3928 3929 3930 3931 3932 3933: ${CP="cp -f"} 3934: ${MV="mv -f"} 3935: ${RM="rm -f"} 3936 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 3938$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 3939# Try some XSI features 3940xsi_shell=no 3941( _lt_dummy="a/b/c" 3942 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3943 = c,a/b,, \ 3944 && eval 'test $(( 1 + 1 )) -eq 2 \ 3945 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3946 && xsi_shell=yes 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 3948$as_echo "$xsi_shell" >&6; } 3949 3950 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 3952$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 3953lt_shell_append=no 3954( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3955 >/dev/null 2>&1 \ 3956 && lt_shell_append=yes 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 3958$as_echo "$lt_shell_append" >&6; } 3959 3960 3961if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3962 lt_unset=unset 3963else 3964 lt_unset=false 3965fi 3966 3967 3968 3969 3970 3971# test EBCDIC or ASCII 3972case `echo X|tr X '\101'` in 3973 A) # ASCII based system 3974 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3975 lt_SP2NL='tr \040 \012' 3976 lt_NL2SP='tr \015\012 \040\040' 3977 ;; 3978 *) # EBCDIC based system 3979 lt_SP2NL='tr \100 \n' 3980 lt_NL2SP='tr \r\n \100\100' 3981 ;; 3982esac 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 3993$as_echo_n "checking for $LD option to reload object files... " >&6; } 3994if test "${lt_cv_ld_reload_flag+set}" = set; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 lt_cv_ld_reload_flag='-r' 3998fi 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4000$as_echo "$lt_cv_ld_reload_flag" >&6; } 4001reload_flag=$lt_cv_ld_reload_flag 4002case $reload_flag in 4003"" | " "*) ;; 4004*) reload_flag=" $reload_flag" ;; 4005esac 4006reload_cmds='$LD$reload_flag -o $output$reload_objs' 4007case $host_os in 4008 darwin*) 4009 if test "$GCC" = yes; then 4010 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4011 else 4012 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4013 fi 4014 ;; 4015esac 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025if test -n "$ac_tool_prefix"; then 4026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4027set dummy ${ac_tool_prefix}objdump; ac_word=$2 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4029$as_echo_n "checking for $ac_word... " >&6; } 4030if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 if test -n "$OBJDUMP"; then 4034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4035else 4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH 4038do 4039 IFS=$as_save_IFS 4040 test -z "$as_dir" && as_dir=. 4041 for ac_exec_ext in '' $ac_executable_extensions; do 4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4045 break 2 4046 fi 4047done 4048 done 4049IFS=$as_save_IFS 4050 4051fi 4052fi 4053OBJDUMP=$ac_cv_prog_OBJDUMP 4054if test -n "$OBJDUMP"; then 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4056$as_echo "$OBJDUMP" >&6; } 4057else 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4059$as_echo "no" >&6; } 4060fi 4061 4062 4063fi 4064if test -z "$ac_cv_prog_OBJDUMP"; then 4065 ac_ct_OBJDUMP=$OBJDUMP 4066 # Extract the first word of "objdump", so it can be a program name with args. 4067set dummy objdump; ac_word=$2 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4069$as_echo_n "checking for $ac_word... " >&6; } 4070if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 if test -n "$ac_ct_OBJDUMP"; then 4074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4075else 4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4083 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087done 4088 done 4089IFS=$as_save_IFS 4090 4091fi 4092fi 4093ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4094if test -n "$ac_ct_OBJDUMP"; then 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4096$as_echo "$ac_ct_OBJDUMP" >&6; } 4097else 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099$as_echo "no" >&6; } 4100fi 4101 4102 if test "x$ac_ct_OBJDUMP" = x; then 4103 OBJDUMP="false" 4104 else 4105 case $cross_compiling:$ac_tool_warned in 4106yes:) 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4109ac_tool_warned=yes ;; 4110esac 4111 OBJDUMP=$ac_ct_OBJDUMP 4112 fi 4113else 4114 OBJDUMP="$ac_cv_prog_OBJDUMP" 4115fi 4116 4117test -z "$OBJDUMP" && OBJDUMP=objdump 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4128$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4129if test "${lt_cv_deplibs_check_method+set}" = set; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 lt_cv_file_magic_cmd='$MAGIC_CMD' 4133lt_cv_file_magic_test_file= 4134lt_cv_deplibs_check_method='unknown' 4135# Need to set the preceding variable on all platforms that support 4136# interlibrary dependencies. 4137# 'none' -- dependencies not supported. 4138# `unknown' -- same as none, but documents that we really don't know. 4139# 'pass_all' -- all dependencies passed with no checks. 4140# 'test_compile' -- check by making test program. 4141# 'file_magic [[regex]]' -- check by looking for files in library path 4142# which responds to the $file_magic_cmd with a given extended regex. 4143# If you have `file' or equivalent on your system and you're not sure 4144# whether `pass_all' will *always* work, you probably want this one. 4145 4146case $host_os in 4147aix[4-9]*) 4148 lt_cv_deplibs_check_method=pass_all 4149 ;; 4150 4151beos*) 4152 lt_cv_deplibs_check_method=pass_all 4153 ;; 4154 4155bsdi[45]*) 4156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4157 lt_cv_file_magic_cmd='/usr/bin/file -L' 4158 lt_cv_file_magic_test_file=/shlib/libc.so 4159 ;; 4160 4161cygwin*) 4162 # func_win32_libid is a shell function defined in ltmain.sh 4163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4164 lt_cv_file_magic_cmd='func_win32_libid' 4165 ;; 4166 4167mingw* | pw32*) 4168 # Base MSYS/MinGW do not provide the 'file' command needed by 4169 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4170 # unless we find 'file', for example because we are cross-compiling. 4171 if ( file / ) >/dev/null 2>&1; then 4172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4173 lt_cv_file_magic_cmd='func_win32_libid' 4174 else 4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4176 lt_cv_file_magic_cmd='$OBJDUMP -f' 4177 fi 4178 ;; 4179 4180cegcc) 4181 # use the weaker test based on 'objdump'. See mingw*. 4182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4183 lt_cv_file_magic_cmd='$OBJDUMP -f' 4184 ;; 4185 4186darwin* | rhapsody*) 4187 lt_cv_deplibs_check_method=pass_all 4188 ;; 4189 4190freebsd* | dragonfly*) 4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4192 case $host_cpu in 4193 i*86 ) 4194 # Not sure whether the presence of OpenBSD here was a mistake. 4195 # Let's accept both of them until this is cleared up. 4196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4197 lt_cv_file_magic_cmd=/usr/bin/file 4198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4199 ;; 4200 esac 4201 else 4202 lt_cv_deplibs_check_method=pass_all 4203 fi 4204 ;; 4205 4206gnu*) 4207 lt_cv_deplibs_check_method=pass_all 4208 ;; 4209 4210hpux10.20* | hpux11*) 4211 lt_cv_file_magic_cmd=/usr/bin/file 4212 case $host_cpu in 4213 ia64*) 4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4216 ;; 4217 hppa*64*) 4218 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]' 4219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4220 ;; 4221 *) 4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4223 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4224 ;; 4225 esac 4226 ;; 4227 4228interix[3-9]*) 4229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4231 ;; 4232 4233irix5* | irix6* | nonstopux*) 4234 case $LD in 4235 *-32|*"-32 ") libmagic=32-bit;; 4236 *-n32|*"-n32 ") libmagic=N32;; 4237 *-64|*"-64 ") libmagic=64-bit;; 4238 *) libmagic=never-match;; 4239 esac 4240 lt_cv_deplibs_check_method=pass_all 4241 ;; 4242 4243# This must be Linux ELF. 4244linux* | k*bsd*-gnu) 4245 lt_cv_deplibs_check_method=pass_all 4246 ;; 4247 4248netbsd*) 4249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4251 else 4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4253 fi 4254 ;; 4255 4256newos6*) 4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4258 lt_cv_file_magic_cmd=/usr/bin/file 4259 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4260 ;; 4261 4262*nto* | *qnx*) 4263 lt_cv_deplibs_check_method=pass_all 4264 ;; 4265 4266openbsd*) 4267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4269 else 4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4271 fi 4272 ;; 4273 4274osf3* | osf4* | osf5*) 4275 lt_cv_deplibs_check_method=pass_all 4276 ;; 4277 4278rdos*) 4279 lt_cv_deplibs_check_method=pass_all 4280 ;; 4281 4282solaris*) 4283 lt_cv_deplibs_check_method=pass_all 4284 ;; 4285 4286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4287 lt_cv_deplibs_check_method=pass_all 4288 ;; 4289 4290sysv4 | sysv4.3*) 4291 case $host_vendor in 4292 motorola) 4293 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]' 4294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4295 ;; 4296 ncr) 4297 lt_cv_deplibs_check_method=pass_all 4298 ;; 4299 sequent) 4300 lt_cv_file_magic_cmd='/bin/file' 4301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4302 ;; 4303 sni) 4304 lt_cv_file_magic_cmd='/bin/file' 4305 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4306 lt_cv_file_magic_test_file=/lib/libc.so 4307 ;; 4308 siemens) 4309 lt_cv_deplibs_check_method=pass_all 4310 ;; 4311 pc) 4312 lt_cv_deplibs_check_method=pass_all 4313 ;; 4314 esac 4315 ;; 4316 4317tpf*) 4318 lt_cv_deplibs_check_method=pass_all 4319 ;; 4320esac 4321 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4324$as_echo "$lt_cv_deplibs_check_method" >&6; } 4325file_magic_cmd=$lt_cv_file_magic_cmd 4326deplibs_check_method=$lt_cv_deplibs_check_method 4327test -z "$deplibs_check_method" && deplibs_check_method=unknown 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340if test -n "$ac_tool_prefix"; then 4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4342set dummy ${ac_tool_prefix}ar; ac_word=$2 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4344$as_echo_n "checking for $ac_word... " >&6; } 4345if test "${ac_cv_prog_AR+set}" = set; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test -n "$AR"; then 4349 ac_cv_prog_AR="$AR" # Let the user override the test. 4350else 4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4358 ac_cv_prog_AR="${ac_tool_prefix}ar" 4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4360 break 2 4361 fi 4362done 4363 done 4364IFS=$as_save_IFS 4365 4366fi 4367fi 4368AR=$ac_cv_prog_AR 4369if test -n "$AR"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4371$as_echo "$AR" >&6; } 4372else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376 4377 4378fi 4379if test -z "$ac_cv_prog_AR"; then 4380 ac_ct_AR=$AR 4381 # Extract the first word of "ar", so it can be a program name with args. 4382set dummy ar; ac_word=$2 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4384$as_echo_n "checking for $ac_word... " >&6; } 4385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 if test -n "$ac_ct_AR"; then 4389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4390else 4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4392for as_dir in $PATH 4393do 4394 IFS=$as_save_IFS 4395 test -z "$as_dir" && as_dir=. 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4398 ac_cv_prog_ac_ct_AR="ar" 4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4400 break 2 4401 fi 4402done 4403 done 4404IFS=$as_save_IFS 4405 4406fi 4407fi 4408ac_ct_AR=$ac_cv_prog_ac_ct_AR 4409if test -n "$ac_ct_AR"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4411$as_echo "$ac_ct_AR" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4414$as_echo "no" >&6; } 4415fi 4416 4417 if test "x$ac_ct_AR" = x; then 4418 AR="false" 4419 else 4420 case $cross_compiling:$ac_tool_warned in 4421yes:) 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4424ac_tool_warned=yes ;; 4425esac 4426 AR=$ac_ct_AR 4427 fi 4428else 4429 AR="$ac_cv_prog_AR" 4430fi 4431 4432test -z "$AR" && AR=ar 4433test -z "$AR_FLAGS" && AR_FLAGS=cru 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445if test -n "$ac_tool_prefix"; then 4446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4447set dummy ${ac_tool_prefix}strip; ac_word=$2 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4449$as_echo_n "checking for $ac_word... " >&6; } 4450if test "${ac_cv_prog_STRIP+set}" = set; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 if test -n "$STRIP"; then 4454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4455else 4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4457for as_dir in $PATH 4458do 4459 IFS=$as_save_IFS 4460 test -z "$as_dir" && as_dir=. 4461 for ac_exec_ext in '' $ac_executable_extensions; do 4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4463 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4465 break 2 4466 fi 4467done 4468 done 4469IFS=$as_save_IFS 4470 4471fi 4472fi 4473STRIP=$ac_cv_prog_STRIP 4474if test -n "$STRIP"; then 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4476$as_echo "$STRIP" >&6; } 4477else 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4479$as_echo "no" >&6; } 4480fi 4481 4482 4483fi 4484if test -z "$ac_cv_prog_STRIP"; then 4485 ac_ct_STRIP=$STRIP 4486 # Extract the first word of "strip", so it can be a program name with args. 4487set dummy strip; ac_word=$2 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4489$as_echo_n "checking for $ac_word... " >&6; } 4490if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -n "$ac_ct_STRIP"; then 4494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4495else 4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4503 ac_cv_prog_ac_ct_STRIP="strip" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511fi 4512fi 4513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4514if test -n "$ac_ct_STRIP"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4516$as_echo "$ac_ct_STRIP" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 if test "x$ac_ct_STRIP" = x; then 4523 STRIP=":" 4524 else 4525 case $cross_compiling:$ac_tool_warned in 4526yes:) 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4529ac_tool_warned=yes ;; 4530esac 4531 STRIP=$ac_ct_STRIP 4532 fi 4533else 4534 STRIP="$ac_cv_prog_STRIP" 4535fi 4536 4537test -z "$STRIP" && STRIP=: 4538 4539 4540 4541 4542 4543 4544if test -n "$ac_tool_prefix"; then 4545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4546set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548$as_echo_n "checking for $ac_word... " >&6; } 4549if test "${ac_cv_prog_RANLIB+set}" = set; then : 4550 $as_echo_n "(cached) " >&6 4551else 4552 if test -n "$RANLIB"; then 4553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4554else 4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566done 4567 done 4568IFS=$as_save_IFS 4569 4570fi 4571fi 4572RANLIB=$ac_cv_prog_RANLIB 4573if test -n "$RANLIB"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4575$as_echo "$RANLIB" >&6; } 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578$as_echo "no" >&6; } 4579fi 4580 4581 4582fi 4583if test -z "$ac_cv_prog_RANLIB"; then 4584 ac_ct_RANLIB=$RANLIB 4585 # Extract the first word of "ranlib", so it can be a program name with args. 4586set dummy ranlib; ac_word=$2 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4588$as_echo_n "checking for $ac_word... " >&6; } 4589if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4590 $as_echo_n "(cached) " >&6 4591else 4592 if test -n "$ac_ct_RANLIB"; then 4593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4594else 4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4602 ac_cv_prog_ac_ct_RANLIB="ranlib" 4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610fi 4611fi 4612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4613if test -n "$ac_ct_RANLIB"; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4615$as_echo "$ac_ct_RANLIB" >&6; } 4616else 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4618$as_echo "no" >&6; } 4619fi 4620 4621 if test "x$ac_ct_RANLIB" = x; then 4622 RANLIB=":" 4623 else 4624 case $cross_compiling:$ac_tool_warned in 4625yes:) 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4628ac_tool_warned=yes ;; 4629esac 4630 RANLIB=$ac_ct_RANLIB 4631 fi 4632else 4633 RANLIB="$ac_cv_prog_RANLIB" 4634fi 4635 4636test -z "$RANLIB" && RANLIB=: 4637 4638 4639 4640 4641 4642 4643# Determine commands to create old-style static archives. 4644old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4645old_postinstall_cmds='chmod 644 $oldlib' 4646old_postuninstall_cmds= 4647 4648if test -n "$RANLIB"; then 4649 case $host_os in 4650 openbsd*) 4651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4652 ;; 4653 *) 4654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4655 ;; 4656 esac 4657 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4658fi 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693# If no C compiler was specified, use CC. 4694LTCC=${LTCC-"$CC"} 4695 4696# If no C compiler flags were specified, use CFLAGS. 4697LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4698 4699# Allow CC to be a program name with arguments. 4700compiler=$CC 4701 4702 4703# Check for command to grab the raw symbol name followed by C symbol from nm. 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4705$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4706if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 4710# These are sane defaults that work on at least a few old systems. 4711# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4712 4713# Character class describing NM global symbol codes. 4714symcode='[BCDEGRST]' 4715 4716# Regexp to match symbols that can be accessed directly from C. 4717sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4718 4719# Define system-specific variables. 4720case $host_os in 4721aix*) 4722 symcode='[BCDT]' 4723 ;; 4724cygwin* | mingw* | pw32* | cegcc*) 4725 symcode='[ABCDGISTW]' 4726 ;; 4727hpux*) 4728 if test "$host_cpu" = ia64; then 4729 symcode='[ABCDEGRST]' 4730 fi 4731 ;; 4732irix* | nonstopux*) 4733 symcode='[BCDEGRST]' 4734 ;; 4735osf*) 4736 symcode='[BCDEGQRST]' 4737 ;; 4738solaris*) 4739 symcode='[BDRT]' 4740 ;; 4741sco3.2v5*) 4742 symcode='[DT]' 4743 ;; 4744sysv4.2uw2*) 4745 symcode='[DT]' 4746 ;; 4747sysv5* | sco5v6* | unixware* | OpenUNIX*) 4748 symcode='[ABDT]' 4749 ;; 4750sysv4) 4751 symcode='[DFNSTU]' 4752 ;; 4753esac 4754 4755# If we're using GNU nm, then use its standard symbol codes. 4756case `$NM -V 2>&1` in 4757*GNU* | *'with BFD'*) 4758 symcode='[ABCDGIRSTW]' ;; 4759esac 4760 4761# Transform an extracted symbol line into a proper C declaration. 4762# Some systems (esp. on ia64) link data and code symbols differently, 4763# so use this general approach. 4764lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4765 4766# Transform an extracted symbol line into symbol name and symbol address 4767lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4768lt_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'" 4769 4770# Handle CRLF in mingw tool chain 4771opt_cr= 4772case $build_os in 4773mingw*) 4774 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4775 ;; 4776esac 4777 4778# Try without a prefix underscore, then with it. 4779for ac_symprfx in "" "_"; do 4780 4781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4782 symxfrm="\\1 $ac_symprfx\\2 \\2" 4783 4784 # Write the raw and C identifiers. 4785 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4786 # Fake it for dumpbin and say T for any non-static function 4787 # and D for any global variable. 4788 # Also find C++ and __fastcall symbols from MSVC++, 4789 # which start with @ or ?. 4790 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4791" {last_section=section; section=\$ 3};"\ 4792" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4793" \$ 0!~/External *\|/{next};"\ 4794" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4795" {if(hide[section]) next};"\ 4796" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4797" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4798" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4799" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4800" ' prfx=^$ac_symprfx" 4801 else 4802 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4803 fi 4804 4805 # Check to see that the pipe works correctly. 4806 pipe_works=no 4807 4808 rm -f conftest* 4809 cat > conftest.$ac_ext <<_LT_EOF 4810#ifdef __cplusplus 4811extern "C" { 4812#endif 4813char nm_test_var; 4814void nm_test_func(void); 4815void nm_test_func(void){} 4816#ifdef __cplusplus 4817} 4818#endif 4819int main(){nm_test_var='a';nm_test_func();return(0);} 4820_LT_EOF 4821 4822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4823 (eval $ac_compile) 2>&5 4824 ac_status=$? 4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4826 test $ac_status = 0; }; then 4827 # Now try to grab the symbols. 4828 nlist=conftest.nm 4829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 4830 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4831 ac_status=$? 4832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4833 test $ac_status = 0; } && test -s "$nlist"; then 4834 # Try sorting and uniquifying the output. 4835 if sort "$nlist" | uniq > "$nlist"T; then 4836 mv -f "$nlist"T "$nlist" 4837 else 4838 rm -f "$nlist"T 4839 fi 4840 4841 # Make sure that we snagged all the symbols we need. 4842 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4843 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4844 cat <<_LT_EOF > conftest.$ac_ext 4845#ifdef __cplusplus 4846extern "C" { 4847#endif 4848 4849_LT_EOF 4850 # Now generate the symbol file. 4851 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4852 4853 cat <<_LT_EOF >> conftest.$ac_ext 4854 4855/* The mapping between symbol names and symbols. */ 4856const struct { 4857 const char *name; 4858 void *address; 4859} 4860lt__PROGRAM__LTX_preloaded_symbols[] = 4861{ 4862 { "@PROGRAM@", (void *) 0 }, 4863_LT_EOF 4864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4865 cat <<\_LT_EOF >> conftest.$ac_ext 4866 {0, (void *) 0} 4867}; 4868 4869/* This works around a problem in FreeBSD linker */ 4870#ifdef FREEBSD_WORKAROUND 4871static const void *lt_preloaded_setup() { 4872 return lt__PROGRAM__LTX_preloaded_symbols; 4873} 4874#endif 4875 4876#ifdef __cplusplus 4877} 4878#endif 4879_LT_EOF 4880 # Now try linking the two files. 4881 mv conftest.$ac_objext conftstm.$ac_objext 4882 lt_save_LIBS="$LIBS" 4883 lt_save_CFLAGS="$CFLAGS" 4884 LIBS="conftstm.$ac_objext" 4885 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 4887 (eval $ac_link) 2>&5 4888 ac_status=$? 4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4890 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 4891 pipe_works=yes 4892 fi 4893 LIBS="$lt_save_LIBS" 4894 CFLAGS="$lt_save_CFLAGS" 4895 else 4896 echo "cannot find nm_test_func in $nlist" >&5 4897 fi 4898 else 4899 echo "cannot find nm_test_var in $nlist" >&5 4900 fi 4901 else 4902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4903 fi 4904 else 4905 echo "$progname: failed program was:" >&5 4906 cat conftest.$ac_ext >&5 4907 fi 4908 rm -rf conftest* conftst* 4909 4910 # Do not use the global_symbol_pipe unless it works. 4911 if test "$pipe_works" = yes; then 4912 break 4913 else 4914 lt_cv_sys_global_symbol_pipe= 4915 fi 4916done 4917 4918fi 4919 4920if test -z "$lt_cv_sys_global_symbol_pipe"; then 4921 lt_cv_sys_global_symbol_to_cdecl= 4922fi 4923if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 4925$as_echo "failed" >&6; } 4926else 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4928$as_echo "ok" >&6; } 4929fi 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953# Check whether --enable-libtool-lock was given. 4954if test "${enable_libtool_lock+set}" = set; then : 4955 enableval=$enable_libtool_lock; 4956fi 4957 4958test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4959 4960# Some flags need to be propagated to the compiler or linker for good 4961# libtool support. 4962case $host in 4963ia64-*-hpux*) 4964 # Find out which ABI we are using. 4965 echo 'int i;' > conftest.$ac_ext 4966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4967 (eval $ac_compile) 2>&5 4968 ac_status=$? 4969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4970 test $ac_status = 0; }; then 4971 case `/usr/bin/file conftest.$ac_objext` in 4972 *ELF-32*) 4973 HPUX_IA64_MODE="32" 4974 ;; 4975 *ELF-64*) 4976 HPUX_IA64_MODE="64" 4977 ;; 4978 esac 4979 fi 4980 rm -rf conftest* 4981 ;; 4982*-*-irix6*) 4983 # Find out which ABI we are using. 4984 echo '#line 4984 "configure"' > conftest.$ac_ext 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 if test "$lt_cv_prog_gnu_ld" = yes; then 4991 case `/usr/bin/file conftest.$ac_objext` in 4992 *32-bit*) 4993 LD="${LD-ld} -melf32bsmip" 4994 ;; 4995 *N32*) 4996 LD="${LD-ld} -melf32bmipn32" 4997 ;; 4998 *64-bit*) 4999 LD="${LD-ld} -melf64bmip" 5000 ;; 5001 esac 5002 else 5003 case `/usr/bin/file conftest.$ac_objext` in 5004 *32-bit*) 5005 LD="${LD-ld} -32" 5006 ;; 5007 *N32*) 5008 LD="${LD-ld} -n32" 5009 ;; 5010 *64-bit*) 5011 LD="${LD-ld} -64" 5012 ;; 5013 esac 5014 fi 5015 fi 5016 rm -rf conftest* 5017 ;; 5018 5019x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5020s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5021 # Find out which ABI we are using. 5022 echo 'int i;' > conftest.$ac_ext 5023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5024 (eval $ac_compile) 2>&5 5025 ac_status=$? 5026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5027 test $ac_status = 0; }; then 5028 case `/usr/bin/file conftest.o` in 5029 *32-bit*) 5030 case $host in 5031 x86_64-*kfreebsd*-gnu) 5032 LD="${LD-ld} -m elf_i386_fbsd" 5033 ;; 5034 x86_64-*linux*) 5035 LD="${LD-ld} -m elf_i386" 5036 ;; 5037 ppc64-*linux*|powerpc64-*linux*) 5038 LD="${LD-ld} -m elf32ppclinux" 5039 ;; 5040 s390x-*linux*) 5041 LD="${LD-ld} -m elf_s390" 5042 ;; 5043 sparc64-*linux*) 5044 LD="${LD-ld} -m elf32_sparc" 5045 ;; 5046 esac 5047 ;; 5048 *64-bit*) 5049 case $host in 5050 x86_64-*kfreebsd*-gnu) 5051 LD="${LD-ld} -m elf_x86_64_fbsd" 5052 ;; 5053 x86_64-*linux*) 5054 LD="${LD-ld} -m elf_x86_64" 5055 ;; 5056 ppc*-*linux*|powerpc*-*linux*) 5057 LD="${LD-ld} -m elf64ppc" 5058 ;; 5059 s390*-*linux*|s390*-*tpf*) 5060 LD="${LD-ld} -m elf64_s390" 5061 ;; 5062 sparc*-*linux*) 5063 LD="${LD-ld} -m elf64_sparc" 5064 ;; 5065 esac 5066 ;; 5067 esac 5068 fi 5069 rm -rf conftest* 5070 ;; 5071 5072*-*-sco3.2v5*) 5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5074 SAVE_CFLAGS="$CFLAGS" 5075 CFLAGS="$CFLAGS -belf" 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5077$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5078if test "${lt_cv_cc_needs_belf+set}" = set; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 ac_ext=c 5082ac_cpp='$CPP $CPPFLAGS' 5083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5085ac_compiler_gnu=$ac_cv_c_compiler_gnu 5086 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089 5090int 5091main () 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098if ac_fn_c_try_link "$LINENO"; then : 5099 lt_cv_cc_needs_belf=yes 5100else 5101 lt_cv_cc_needs_belf=no 5102fi 5103rm -f core conftest.err conftest.$ac_objext \ 5104 conftest$ac_exeext conftest.$ac_ext 5105 ac_ext=c 5106ac_cpp='$CPP $CPPFLAGS' 5107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5109ac_compiler_gnu=$ac_cv_c_compiler_gnu 5110 5111fi 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5113$as_echo "$lt_cv_cc_needs_belf" >&6; } 5114 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5115 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5116 CFLAGS="$SAVE_CFLAGS" 5117 fi 5118 ;; 5119sparc*-*solaris*) 5120 # Find out which ABI we are using. 5121 echo 'int i;' > conftest.$ac_ext 5122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5123 (eval $ac_compile) 2>&5 5124 ac_status=$? 5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5126 test $ac_status = 0; }; then 5127 case `/usr/bin/file conftest.o` in 5128 *64-bit*) 5129 case $lt_cv_prog_gnu_ld in 5130 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5131 *) 5132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5133 LD="${LD-ld} -64" 5134 fi 5135 ;; 5136 esac 5137 ;; 5138 esac 5139 fi 5140 rm -rf conftest* 5141 ;; 5142esac 5143 5144need_locks="$enable_libtool_lock" 5145 5146 5147 case $host_os in 5148 rhapsody* | darwin*) 5149 if test -n "$ac_tool_prefix"; then 5150 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5151set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5153$as_echo_n "checking for $ac_word... " >&6; } 5154if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -n "$DSYMUTIL"; then 5158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5159else 5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5169 break 2 5170 fi 5171done 5172 done 5173IFS=$as_save_IFS 5174 5175fi 5176fi 5177DSYMUTIL=$ac_cv_prog_DSYMUTIL 5178if test -n "$DSYMUTIL"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5180$as_echo "$DSYMUTIL" >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5183$as_echo "no" >&6; } 5184fi 5185 5186 5187fi 5188if test -z "$ac_cv_prog_DSYMUTIL"; then 5189 ac_ct_DSYMUTIL=$DSYMUTIL 5190 # Extract the first word of "dsymutil", so it can be a program name with args. 5191set dummy dsymutil; ac_word=$2 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5193$as_echo_n "checking for $ac_word... " >&6; } 5194if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 if test -n "$ac_ct_DSYMUTIL"; then 5198 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5199else 5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201for as_dir in $PATH 5202do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5207 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5209 break 2 5210 fi 5211done 5212 done 5213IFS=$as_save_IFS 5214 5215fi 5216fi 5217ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5218if test -n "$ac_ct_DSYMUTIL"; then 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5220$as_echo "$ac_ct_DSYMUTIL" >&6; } 5221else 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5223$as_echo "no" >&6; } 5224fi 5225 5226 if test "x$ac_ct_DSYMUTIL" = x; then 5227 DSYMUTIL=":" 5228 else 5229 case $cross_compiling:$ac_tool_warned in 5230yes:) 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5233ac_tool_warned=yes ;; 5234esac 5235 DSYMUTIL=$ac_ct_DSYMUTIL 5236 fi 5237else 5238 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5239fi 5240 5241 if test -n "$ac_tool_prefix"; then 5242 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5243set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245$as_echo_n "checking for $ac_word... " >&6; } 5246if test "${ac_cv_prog_NMEDIT+set}" = set; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 if test -n "$NMEDIT"; then 5250 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5259 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264 done 5265IFS=$as_save_IFS 5266 5267fi 5268fi 5269NMEDIT=$ac_cv_prog_NMEDIT 5270if test -n "$NMEDIT"; then 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5272$as_echo "$NMEDIT" >&6; } 5273else 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5275$as_echo "no" >&6; } 5276fi 5277 5278 5279fi 5280if test -z "$ac_cv_prog_NMEDIT"; then 5281 ac_ct_NMEDIT=$NMEDIT 5282 # Extract the first word of "nmedit", so it can be a program name with args. 5283set dummy nmedit; ac_word=$2 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285$as_echo_n "checking for $ac_word... " >&6; } 5286if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 if test -n "$ac_ct_NMEDIT"; then 5290 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5291else 5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5299 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303done 5304 done 5305IFS=$as_save_IFS 5306 5307fi 5308fi 5309ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5310if test -n "$ac_ct_NMEDIT"; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5312$as_echo "$ac_ct_NMEDIT" >&6; } 5313else 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315$as_echo "no" >&6; } 5316fi 5317 5318 if test "x$ac_ct_NMEDIT" = x; then 5319 NMEDIT=":" 5320 else 5321 case $cross_compiling:$ac_tool_warned in 5322yes:) 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5325ac_tool_warned=yes ;; 5326esac 5327 NMEDIT=$ac_ct_NMEDIT 5328 fi 5329else 5330 NMEDIT="$ac_cv_prog_NMEDIT" 5331fi 5332 5333 if test -n "$ac_tool_prefix"; then 5334 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5335set dummy ${ac_tool_prefix}lipo; ac_word=$2 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5337$as_echo_n "checking for $ac_word... " >&6; } 5338if test "${ac_cv_prog_LIPO+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 if test -n "$LIPO"; then 5342 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5343else 5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5345for as_dir in $PATH 5346do 5347 IFS=$as_save_IFS 5348 test -z "$as_dir" && as_dir=. 5349 for ac_exec_ext in '' $ac_executable_extensions; do 5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5351 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5353 break 2 5354 fi 5355done 5356 done 5357IFS=$as_save_IFS 5358 5359fi 5360fi 5361LIPO=$ac_cv_prog_LIPO 5362if test -n "$LIPO"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5364$as_echo "$LIPO" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369 5370 5371fi 5372if test -z "$ac_cv_prog_LIPO"; then 5373 ac_ct_LIPO=$LIPO 5374 # Extract the first word of "lipo", so it can be a program name with args. 5375set dummy lipo; ac_word=$2 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377$as_echo_n "checking for $ac_word... " >&6; } 5378if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 if test -n "$ac_ct_LIPO"; then 5382 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5383else 5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5385for as_dir in $PATH 5386do 5387 IFS=$as_save_IFS 5388 test -z "$as_dir" && as_dir=. 5389 for ac_exec_ext in '' $ac_executable_extensions; do 5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5391 ac_cv_prog_ac_ct_LIPO="lipo" 5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5393 break 2 5394 fi 5395done 5396 done 5397IFS=$as_save_IFS 5398 5399fi 5400fi 5401ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5402if test -n "$ac_ct_LIPO"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5404$as_echo "$ac_ct_LIPO" >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5407$as_echo "no" >&6; } 5408fi 5409 5410 if test "x$ac_ct_LIPO" = x; then 5411 LIPO=":" 5412 else 5413 case $cross_compiling:$ac_tool_warned in 5414yes:) 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5417ac_tool_warned=yes ;; 5418esac 5419 LIPO=$ac_ct_LIPO 5420 fi 5421else 5422 LIPO="$ac_cv_prog_LIPO" 5423fi 5424 5425 if test -n "$ac_tool_prefix"; then 5426 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5427set dummy ${ac_tool_prefix}otool; ac_word=$2 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5429$as_echo_n "checking for $ac_word... " >&6; } 5430if test "${ac_cv_prog_OTOOL+set}" = set; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 if test -n "$OTOOL"; then 5434 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5435else 5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5437for as_dir in $PATH 5438do 5439 IFS=$as_save_IFS 5440 test -z "$as_dir" && as_dir=. 5441 for ac_exec_ext in '' $ac_executable_extensions; do 5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5443 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5445 break 2 5446 fi 5447done 5448 done 5449IFS=$as_save_IFS 5450 5451fi 5452fi 5453OTOOL=$ac_cv_prog_OTOOL 5454if test -n "$OTOOL"; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5456$as_echo "$OTOOL" >&6; } 5457else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5459$as_echo "no" >&6; } 5460fi 5461 5462 5463fi 5464if test -z "$ac_cv_prog_OTOOL"; then 5465 ac_ct_OTOOL=$OTOOL 5466 # Extract the first word of "otool", so it can be a program name with args. 5467set dummy otool; ac_word=$2 5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469$as_echo_n "checking for $ac_word... " >&6; } 5470if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 if test -n "$ac_ct_OTOOL"; then 5474 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5475else 5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477for as_dir in $PATH 5478do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5483 ac_cv_prog_ac_ct_OTOOL="otool" 5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487done 5488 done 5489IFS=$as_save_IFS 5490 5491fi 5492fi 5493ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5494if test -n "$ac_ct_OTOOL"; then 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5496$as_echo "$ac_ct_OTOOL" >&6; } 5497else 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499$as_echo "no" >&6; } 5500fi 5501 5502 if test "x$ac_ct_OTOOL" = x; then 5503 OTOOL=":" 5504 else 5505 case $cross_compiling:$ac_tool_warned in 5506yes:) 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5509ac_tool_warned=yes ;; 5510esac 5511 OTOOL=$ac_ct_OTOOL 5512 fi 5513else 5514 OTOOL="$ac_cv_prog_OTOOL" 5515fi 5516 5517 if test -n "$ac_tool_prefix"; then 5518 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5519set dummy ${ac_tool_prefix}otool64; ac_word=$2 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5521$as_echo_n "checking for $ac_word... " >&6; } 5522if test "${ac_cv_prog_OTOOL64+set}" = set; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 if test -n "$OTOOL64"; then 5526 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5527else 5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5529for as_dir in $PATH 5530do 5531 IFS=$as_save_IFS 5532 test -z "$as_dir" && as_dir=. 5533 for ac_exec_ext in '' $ac_executable_extensions; do 5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5535 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5537 break 2 5538 fi 5539done 5540 done 5541IFS=$as_save_IFS 5542 5543fi 5544fi 5545OTOOL64=$ac_cv_prog_OTOOL64 5546if test -n "$OTOOL64"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5548$as_echo "$OTOOL64" >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5551$as_echo "no" >&6; } 5552fi 5553 5554 5555fi 5556if test -z "$ac_cv_prog_OTOOL64"; then 5557 ac_ct_OTOOL64=$OTOOL64 5558 # Extract the first word of "otool64", so it can be a program name with args. 5559set dummy otool64; ac_word=$2 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5561$as_echo_n "checking for $ac_word... " >&6; } 5562if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 if test -n "$ac_ct_OTOOL64"; then 5566 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5567else 5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_exec_ext in '' $ac_executable_extensions; do 5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5575 ac_cv_prog_ac_ct_OTOOL64="otool64" 5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5577 break 2 5578 fi 5579done 5580 done 5581IFS=$as_save_IFS 5582 5583fi 5584fi 5585ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5586if test -n "$ac_ct_OTOOL64"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5588$as_echo "$ac_ct_OTOOL64" >&6; } 5589else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591$as_echo "no" >&6; } 5592fi 5593 5594 if test "x$ac_ct_OTOOL64" = x; then 5595 OTOOL64=":" 5596 else 5597 case $cross_compiling:$ac_tool_warned in 5598yes:) 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5601ac_tool_warned=yes ;; 5602esac 5603 OTOOL64=$ac_ct_OTOOL64 5604 fi 5605else 5606 OTOOL64="$ac_cv_prog_OTOOL64" 5607fi 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5636$as_echo_n "checking for -single_module linker flag... " >&6; } 5637if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 lt_cv_apple_cc_single_mod=no 5641 if test -z "${LT_MULTI_MODULE}"; then 5642 # By default we will add the -single_module flag. You can override 5643 # by either setting the environment variable LT_MULTI_MODULE 5644 # non-empty at configure time, or by adding -multi_module to the 5645 # link flags. 5646 rm -rf libconftest.dylib* 5647 echo "int foo(void){return 1;}" > conftest.c 5648 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5649-dynamiclib -Wl,-single_module conftest.c" >&5 5650 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5651 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5652 _lt_result=$? 5653 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5654 lt_cv_apple_cc_single_mod=yes 5655 else 5656 cat conftest.err >&5 5657 fi 5658 rm -rf libconftest.dylib* 5659 rm -f conftest.* 5660 fi 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5663$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5665$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5666if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 lt_cv_ld_exported_symbols_list=no 5670 save_LDFLAGS=$LDFLAGS 5671 echo "_main" > conftest.sym 5672 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674/* end confdefs.h. */ 5675 5676int 5677main () 5678{ 5679 5680 ; 5681 return 0; 5682} 5683_ACEOF 5684if ac_fn_c_try_link "$LINENO"; then : 5685 lt_cv_ld_exported_symbols_list=yes 5686else 5687 lt_cv_ld_exported_symbols_list=no 5688fi 5689rm -f core conftest.err conftest.$ac_objext \ 5690 conftest$ac_exeext conftest.$ac_ext 5691 LDFLAGS="$save_LDFLAGS" 5692 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5695$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5696 case $host_os in 5697 rhapsody* | darwin1.[012]) 5698 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5699 darwin1.*) 5700 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5701 darwin*) # darwin 5.x on 5702 # if running on 10.5 or later, the deployment target defaults 5703 # to the OS version, if on x86, and 10.4, the deployment 5704 # target defaults to 10.4. Don't you love it? 5705 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5706 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5708 10.[012]*) 5709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5710 10.*) 5711 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5712 esac 5713 ;; 5714 esac 5715 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5716 _lt_dar_single_mod='$single_module' 5717 fi 5718 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5719 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5720 else 5721 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5722 fi 5723 if test "$DSYMUTIL" != ":"; then 5724 _lt_dsymutil='~$DSYMUTIL $lib || :' 5725 else 5726 _lt_dsymutil= 5727 fi 5728 ;; 5729 esac 5730 5731ac_ext=c 5732ac_cpp='$CPP $CPPFLAGS' 5733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5735ac_compiler_gnu=$ac_cv_c_compiler_gnu 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5737$as_echo_n "checking how to run the C preprocessor... " >&6; } 5738# On Suns, sometimes $CPP names a directory. 5739if test -n "$CPP" && test -d "$CPP"; then 5740 CPP= 5741fi 5742if test -z "$CPP"; then 5743 if test "${ac_cv_prog_CPP+set}" = set; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 # Double quotes because CPP needs to be expanded 5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5748 do 5749 ac_preproc_ok=false 5750for ac_c_preproc_warn_flag in '' yes 5751do 5752 # Use a header file that comes with gcc, so configuring glibc 5753 # with a fresh cross-compiler works. 5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5755 # <limits.h> exists even on freestanding compilers. 5756 # On the NeXT, cc -E runs the code through the compiler's parser, 5757 # not just through cpp. "Syntax error" is here to catch this case. 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759/* end confdefs.h. */ 5760#ifdef __STDC__ 5761# include <limits.h> 5762#else 5763# include <assert.h> 5764#endif 5765 Syntax error 5766_ACEOF 5767if ac_fn_c_try_cpp "$LINENO"; then : 5768 5769else 5770 # Broken: fails on valid input. 5771continue 5772fi 5773rm -f conftest.err conftest.i conftest.$ac_ext 5774 5775 # OK, works on sane cases. Now check whether nonexistent headers 5776 # can be detected and how. 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779#include <ac_nonexistent.h> 5780_ACEOF 5781if ac_fn_c_try_cpp "$LINENO"; then : 5782 # Broken: success on invalid input. 5783continue 5784else 5785 # Passes both tests. 5786ac_preproc_ok=: 5787break 5788fi 5789rm -f conftest.err conftest.i conftest.$ac_ext 5790 5791done 5792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5793rm -f conftest.i conftest.err conftest.$ac_ext 5794if $ac_preproc_ok; then : 5795 break 5796fi 5797 5798 done 5799 ac_cv_prog_CPP=$CPP 5800 5801fi 5802 CPP=$ac_cv_prog_CPP 5803else 5804 ac_cv_prog_CPP=$CPP 5805fi 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5807$as_echo "$CPP" >&6; } 5808ac_preproc_ok=false 5809for ac_c_preproc_warn_flag in '' yes 5810do 5811 # Use a header file that comes with gcc, so configuring glibc 5812 # with a fresh cross-compiler works. 5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5814 # <limits.h> exists even on freestanding compilers. 5815 # On the NeXT, cc -E runs the code through the compiler's parser, 5816 # not just through cpp. "Syntax error" is here to catch this case. 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819#ifdef __STDC__ 5820# include <limits.h> 5821#else 5822# include <assert.h> 5823#endif 5824 Syntax error 5825_ACEOF 5826if ac_fn_c_try_cpp "$LINENO"; then : 5827 5828else 5829 # Broken: fails on valid input. 5830continue 5831fi 5832rm -f conftest.err conftest.i conftest.$ac_ext 5833 5834 # OK, works on sane cases. Now check whether nonexistent headers 5835 # can be detected and how. 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838#include <ac_nonexistent.h> 5839_ACEOF 5840if ac_fn_c_try_cpp "$LINENO"; then : 5841 # Broken: success on invalid input. 5842continue 5843else 5844 # Passes both tests. 5845ac_preproc_ok=: 5846break 5847fi 5848rm -f conftest.err conftest.i conftest.$ac_ext 5849 5850done 5851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5852rm -f conftest.i conftest.err conftest.$ac_ext 5853if $ac_preproc_ok; then : 5854 5855else 5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5858as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5859See \`config.log' for more details" "$LINENO" 5 ; } 5860fi 5861 5862ac_ext=c 5863ac_cpp='$CPP $CPPFLAGS' 5864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5866ac_compiler_gnu=$ac_cv_c_compiler_gnu 5867 5868 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5870$as_echo_n "checking for ANSI C header files... " >&6; } 5871if test "${ac_cv_header_stdc+set}" = set; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876#include <stdlib.h> 5877#include <stdarg.h> 5878#include <string.h> 5879#include <float.h> 5880 5881int 5882main () 5883{ 5884 5885 ; 5886 return 0; 5887} 5888_ACEOF 5889if ac_fn_c_try_compile "$LINENO"; then : 5890 ac_cv_header_stdc=yes 5891else 5892 ac_cv_header_stdc=no 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5895 5896if test $ac_cv_header_stdc = yes; then 5897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900#include <string.h> 5901 5902_ACEOF 5903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5904 $EGREP "memchr" >/dev/null 2>&1; then : 5905 5906else 5907 ac_cv_header_stdc=no 5908fi 5909rm -f conftest* 5910 5911fi 5912 5913if test $ac_cv_header_stdc = yes; then 5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916/* end confdefs.h. */ 5917#include <stdlib.h> 5918 5919_ACEOF 5920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5921 $EGREP "free" >/dev/null 2>&1; then : 5922 5923else 5924 ac_cv_header_stdc=no 5925fi 5926rm -f conftest* 5927 5928fi 5929 5930if test $ac_cv_header_stdc = yes; then 5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5932 if test "$cross_compiling" = yes; then : 5933 : 5934else 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937#include <ctype.h> 5938#include <stdlib.h> 5939#if ((' ' & 0x0FF) == 0x020) 5940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5942#else 5943# define ISLOWER(c) \ 5944 (('a' <= (c) && (c) <= 'i') \ 5945 || ('j' <= (c) && (c) <= 'r') \ 5946 || ('s' <= (c) && (c) <= 'z')) 5947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5948#endif 5949 5950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5951int 5952main () 5953{ 5954 int i; 5955 for (i = 0; i < 256; i++) 5956 if (XOR (islower (i), ISLOWER (i)) 5957 || toupper (i) != TOUPPER (i)) 5958 return 2; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_c_try_run "$LINENO"; then : 5963 5964else 5965 ac_cv_header_stdc=no 5966fi 5967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5968 conftest.$ac_objext conftest.beam conftest.$ac_ext 5969fi 5970 5971fi 5972fi 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5974$as_echo "$ac_cv_header_stdc" >&6; } 5975if test $ac_cv_header_stdc = yes; then 5976 5977$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5978 5979fi 5980 5981# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5983 inttypes.h stdint.h unistd.h 5984do : 5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5986ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5987" 5988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5989 cat >>confdefs.h <<_ACEOF 5990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5991_ACEOF 5992 5993fi 5994 5995done 5996 5997 5998for ac_header in dlfcn.h 5999do : 6000 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6001" 6002if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6003 cat >>confdefs.h <<_ACEOF 6004#define HAVE_DLFCN_H 1 6005_ACEOF 6006 6007fi 6008 6009done 6010 6011 6012 6013# Set options 6014 6015 6016 6017 enable_dlopen=no 6018 6019 6020 enable_win32_dll=no 6021 6022 6023 # Check whether --enable-shared was given. 6024if test "${enable_shared+set}" = set; then : 6025 enableval=$enable_shared; p=${PACKAGE-default} 6026 case $enableval in 6027 yes) enable_shared=yes ;; 6028 no) enable_shared=no ;; 6029 *) 6030 enable_shared=no 6031 # Look at the argument we got. We use all the common list separators. 6032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6033 for pkg in $enableval; do 6034 IFS="$lt_save_ifs" 6035 if test "X$pkg" = "X$p"; then 6036 enable_shared=yes 6037 fi 6038 done 6039 IFS="$lt_save_ifs" 6040 ;; 6041 esac 6042else 6043 enable_shared=yes 6044fi 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056# Check whether --with-pic was given. 6057if test "${with_pic+set}" = set; then : 6058 withval=$with_pic; pic_mode="$withval" 6059else 6060 pic_mode=default 6061fi 6062 6063 6064test -z "$pic_mode" && pic_mode=default 6065 6066 6067 6068 6069 6070 6071 6072 # Check whether --enable-fast-install was given. 6073if test "${enable_fast_install+set}" = set; then : 6074 enableval=$enable_fast_install; p=${PACKAGE-default} 6075 case $enableval in 6076 yes) enable_fast_install=yes ;; 6077 no) enable_fast_install=no ;; 6078 *) 6079 enable_fast_install=no 6080 # Look at the argument we got. We use all the common list separators. 6081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6082 for pkg in $enableval; do 6083 IFS="$lt_save_ifs" 6084 if test "X$pkg" = "X$p"; then 6085 enable_fast_install=yes 6086 fi 6087 done 6088 IFS="$lt_save_ifs" 6089 ;; 6090 esac 6091else 6092 enable_fast_install=yes 6093fi 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105# This can be used to rebuild libtool when needed 6106LIBTOOL_DEPS="$ltmain" 6107 6108# Always use our own libtool. 6109LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135test -z "$LN_S" && LN_S="ln -s" 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150if test -n "${ZSH_VERSION+set}" ; then 6151 setopt NO_GLOB_SUBST 6152fi 6153 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6155$as_echo_n "checking for objdir... " >&6; } 6156if test "${lt_cv_objdir+set}" = set; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 rm -f .libs 2>/dev/null 6160mkdir .libs 2>/dev/null 6161if test -d .libs; then 6162 lt_cv_objdir=.libs 6163else 6164 # MS-DOS does not allow filenames that begin with a dot. 6165 lt_cv_objdir=_libs 6166fi 6167rmdir .libs 2>/dev/null 6168fi 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6170$as_echo "$lt_cv_objdir" >&6; } 6171objdir=$lt_cv_objdir 6172 6173 6174 6175 6176 6177cat >>confdefs.h <<_ACEOF 6178#define LT_OBJDIR "$lt_cv_objdir/" 6179_ACEOF 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197case $host_os in 6198aix3*) 6199 # AIX sometimes has problems with the GCC collect2 program. For some 6200 # reason, if we set the COLLECT_NAMES environment variable, the problems 6201 # vanish in a puff of smoke. 6202 if test "X${COLLECT_NAMES+set}" != Xset; then 6203 COLLECT_NAMES= 6204 export COLLECT_NAMES 6205 fi 6206 ;; 6207esac 6208 6209# Sed substitution that helps us do robust quoting. It backslashifies 6210# metacharacters that are still active within double-quoted strings. 6211sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6212 6213# Same as above, but do not quote variable references. 6214double_quote_subst='s/\(["`\\]\)/\\\1/g' 6215 6216# Sed substitution to delay expansion of an escaped shell variable in a 6217# double_quote_subst'ed string. 6218delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6219 6220# Sed substitution to delay expansion of an escaped single quote. 6221delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6222 6223# Sed substitution to avoid accidental globbing in evaled expressions 6224no_glob_subst='s/\*/\\\*/g' 6225 6226# Global variables: 6227ofile=libtool 6228can_build_shared=yes 6229 6230# All known linkers require a `.a' archive for static linking (except MSVC, 6231# which needs '.lib'). 6232libext=a 6233 6234with_gnu_ld="$lt_cv_prog_gnu_ld" 6235 6236old_CC="$CC" 6237old_CFLAGS="$CFLAGS" 6238 6239# Set sane defaults for various variables 6240test -z "$CC" && CC=cc 6241test -z "$LTCC" && LTCC=$CC 6242test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6243test -z "$LD" && LD=ld 6244test -z "$ac_objext" && ac_objext=o 6245 6246for cc_temp in $compiler""; do 6247 case $cc_temp in 6248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6250 \-*) ;; 6251 *) break;; 6252 esac 6253done 6254cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6255 6256 6257# Only perform the check for file, if the check method requires it 6258test -z "$MAGIC_CMD" && MAGIC_CMD=file 6259case $deplibs_check_method in 6260file_magic*) 6261 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6263$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6264if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 6265 $as_echo_n "(cached) " >&6 6266else 6267 case $MAGIC_CMD in 6268[\\/*] | ?:[\\/]*) 6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6270 ;; 6271*) 6272 lt_save_MAGIC_CMD="$MAGIC_CMD" 6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6275 for ac_dir in $ac_dummy; do 6276 IFS="$lt_save_ifs" 6277 test -z "$ac_dir" && ac_dir=. 6278 if test -f $ac_dir/${ac_tool_prefix}file; then 6279 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6280 if test -n "$file_magic_test_file"; then 6281 case $deplibs_check_method in 6282 "file_magic "*) 6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6286 $EGREP "$file_magic_regex" > /dev/null; then 6287 : 6288 else 6289 cat <<_LT_EOF 1>&2 6290 6291*** Warning: the command libtool uses to detect shared libraries, 6292*** $file_magic_cmd, produces output that libtool cannot recognize. 6293*** The result is that libtool may fail to recognize shared libraries 6294*** as such. This will affect the creation of libtool libraries that 6295*** depend on shared libraries, but programs linked with such libtool 6296*** libraries will work regardless of this problem. Nevertheless, you 6297*** may want to report the problem to your system manager and/or to 6298*** bug-libtool@gnu.org 6299 6300_LT_EOF 6301 fi ;; 6302 esac 6303 fi 6304 break 6305 fi 6306 done 6307 IFS="$lt_save_ifs" 6308 MAGIC_CMD="$lt_save_MAGIC_CMD" 6309 ;; 6310esac 6311fi 6312 6313MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6314if test -n "$MAGIC_CMD"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6316$as_echo "$MAGIC_CMD" >&6; } 6317else 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319$as_echo "no" >&6; } 6320fi 6321 6322 6323 6324 6325 6326if test -z "$lt_cv_path_MAGIC_CMD"; then 6327 if test -n "$ac_tool_prefix"; then 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6329$as_echo_n "checking for file... " >&6; } 6330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 case $MAGIC_CMD in 6334[\\/*] | ?:[\\/]*) 6335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6336 ;; 6337*) 6338 lt_save_MAGIC_CMD="$MAGIC_CMD" 6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6341 for ac_dir in $ac_dummy; do 6342 IFS="$lt_save_ifs" 6343 test -z "$ac_dir" && ac_dir=. 6344 if test -f $ac_dir/file; then 6345 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6346 if test -n "$file_magic_test_file"; then 6347 case $deplibs_check_method in 6348 "file_magic "*) 6349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6352 $EGREP "$file_magic_regex" > /dev/null; then 6353 : 6354 else 6355 cat <<_LT_EOF 1>&2 6356 6357*** Warning: the command libtool uses to detect shared libraries, 6358*** $file_magic_cmd, produces output that libtool cannot recognize. 6359*** The result is that libtool may fail to recognize shared libraries 6360*** as such. This will affect the creation of libtool libraries that 6361*** depend on shared libraries, but programs linked with such libtool 6362*** libraries will work regardless of this problem. Nevertheless, you 6363*** may want to report the problem to your system manager and/or to 6364*** bug-libtool@gnu.org 6365 6366_LT_EOF 6367 fi ;; 6368 esac 6369 fi 6370 break 6371 fi 6372 done 6373 IFS="$lt_save_ifs" 6374 MAGIC_CMD="$lt_save_MAGIC_CMD" 6375 ;; 6376esac 6377fi 6378 6379MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6380if test -n "$MAGIC_CMD"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6382$as_echo "$MAGIC_CMD" >&6; } 6383else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385$as_echo "no" >&6; } 6386fi 6387 6388 6389 else 6390 MAGIC_CMD=: 6391 fi 6392fi 6393 6394 fi 6395 ;; 6396esac 6397 6398# Use C for the default configuration in the libtool script 6399 6400lt_save_CC="$CC" 6401ac_ext=c 6402ac_cpp='$CPP $CPPFLAGS' 6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6405ac_compiler_gnu=$ac_cv_c_compiler_gnu 6406 6407 6408# Source file extension for C test sources. 6409ac_ext=c 6410 6411# Object file extension for compiled C test sources. 6412objext=o 6413objext=$objext 6414 6415# Code to be used in simple compile tests 6416lt_simple_compile_test_code="int some_variable = 0;" 6417 6418# Code to be used in simple link tests 6419lt_simple_link_test_code='int main(){return(0);}' 6420 6421 6422 6423 6424 6425 6426 6427# If no C compiler was specified, use CC. 6428LTCC=${LTCC-"$CC"} 6429 6430# If no C compiler flags were specified, use CFLAGS. 6431LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6432 6433# Allow CC to be a program name with arguments. 6434compiler=$CC 6435 6436# Save the default compiler, since it gets overwritten when the other 6437# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6438compiler_DEFAULT=$CC 6439 6440# save warnings/boilerplate of simple test code 6441ac_outfile=conftest.$ac_objext 6442echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6443eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6444_lt_compiler_boilerplate=`cat conftest.err` 6445$RM conftest* 6446 6447ac_outfile=conftest.$ac_objext 6448echo "$lt_simple_link_test_code" >conftest.$ac_ext 6449eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6450_lt_linker_boilerplate=`cat conftest.err` 6451$RM -r conftest* 6452 6453 6454if test -n "$compiler"; then 6455 6456lt_prog_compiler_no_builtin_flag= 6457 6458if test "$GCC" = yes; then 6459 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6460 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6462$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6463if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 lt_cv_prog_compiler_rtti_exceptions=no 6467 ac_outfile=conftest.$ac_objext 6468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6469 lt_compiler_flag="-fno-rtti -fno-exceptions" 6470 # Insert the option either (1) after the last *FLAGS variable, or 6471 # (2) before a word containing "conftest.", or (3) at the end. 6472 # Note that $ac_compile itself does not contain backslashes and begins 6473 # with a dollar sign (not a hyphen), so the echo should work correctly. 6474 # The option is referenced via a variable to avoid confusing sed. 6475 lt_compile=`echo "$ac_compile" | $SED \ 6476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6478 -e 's:$: $lt_compiler_flag:'` 6479 (eval echo "\"\$as_me:6479: $lt_compile\"" >&5) 6480 (eval "$lt_compile" 2>conftest.err) 6481 ac_status=$? 6482 cat conftest.err >&5 6483 echo "$as_me:6483: \$? = $ac_status" >&5 6484 if (exit $ac_status) && test -s "$ac_outfile"; then 6485 # The compiler can only warn and ignore the option if not recognized 6486 # So say no if there are warnings other than the usual output. 6487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6490 lt_cv_prog_compiler_rtti_exceptions=yes 6491 fi 6492 fi 6493 $RM conftest* 6494 6495fi 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6497$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6498 6499if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6501else 6502 : 6503fi 6504 6505fi 6506 6507 6508 6509 6510 6511 6512 lt_prog_compiler_wl= 6513lt_prog_compiler_pic= 6514lt_prog_compiler_static= 6515 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6517$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6518 6519 if test "$GCC" = yes; then 6520 lt_prog_compiler_wl='-Wl,' 6521 lt_prog_compiler_static='-static' 6522 6523 case $host_os in 6524 aix*) 6525 # All AIX code is PIC. 6526 if test "$host_cpu" = ia64; then 6527 # AIX 5 now supports IA64 processor 6528 lt_prog_compiler_static='-Bstatic' 6529 fi 6530 ;; 6531 6532 amigaos*) 6533 case $host_cpu in 6534 powerpc) 6535 # see comment about AmigaOS4 .so support 6536 lt_prog_compiler_pic='-fPIC' 6537 ;; 6538 m68k) 6539 # FIXME: we need at least 68020 code to build shared libraries, but 6540 # adding the `-m68020' flag to GCC prevents building anything better, 6541 # like `-m68040'. 6542 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6543 ;; 6544 esac 6545 ;; 6546 6547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6548 # PIC is the default for these OSes. 6549 ;; 6550 6551 mingw* | cygwin* | pw32* | os2* | cegcc*) 6552 # This hack is so that the source file can tell whether it is being 6553 # built for inclusion in a dll (and should export symbols for example). 6554 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6555 # (--disable-auto-import) libraries 6556 lt_prog_compiler_pic='-DDLL_EXPORT' 6557 ;; 6558 6559 darwin* | rhapsody*) 6560 # PIC is the default on this platform 6561 # Common symbols not allowed in MH_DYLIB files 6562 lt_prog_compiler_pic='-fno-common' 6563 ;; 6564 6565 hpux*) 6566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6568 # sets the default TLS model and affects inlining. 6569 case $host_cpu in 6570 hppa*64*) 6571 # +Z the default 6572 ;; 6573 *) 6574 lt_prog_compiler_pic='-fPIC' 6575 ;; 6576 esac 6577 ;; 6578 6579 interix[3-9]*) 6580 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6581 # Instead, we relocate shared libraries at runtime. 6582 ;; 6583 6584 msdosdjgpp*) 6585 # Just because we use GCC doesn't mean we suddenly get shared libraries 6586 # on systems that don't support them. 6587 lt_prog_compiler_can_build_shared=no 6588 enable_shared=no 6589 ;; 6590 6591 *nto* | *qnx*) 6592 # QNX uses GNU C++, but need to define -shared option too, otherwise 6593 # it will coredump. 6594 lt_prog_compiler_pic='-fPIC -shared' 6595 ;; 6596 6597 sysv4*MP*) 6598 if test -d /usr/nec; then 6599 lt_prog_compiler_pic=-Kconform_pic 6600 fi 6601 ;; 6602 6603 *) 6604 lt_prog_compiler_pic='-fPIC' 6605 ;; 6606 esac 6607 else 6608 # PORTME Check for flag to pass linker flags through the system compiler. 6609 case $host_os in 6610 aix*) 6611 lt_prog_compiler_wl='-Wl,' 6612 if test "$host_cpu" = ia64; then 6613 # AIX 5 now supports IA64 processor 6614 lt_prog_compiler_static='-Bstatic' 6615 else 6616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6617 fi 6618 ;; 6619 6620 mingw* | cygwin* | pw32* | os2* | cegcc*) 6621 # This hack is so that the source file can tell whether it is being 6622 # built for inclusion in a dll (and should export symbols for example). 6623 lt_prog_compiler_pic='-DDLL_EXPORT' 6624 ;; 6625 6626 hpux9* | hpux10* | hpux11*) 6627 lt_prog_compiler_wl='-Wl,' 6628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6629 # not for PA HP-UX. 6630 case $host_cpu in 6631 hppa*64*|ia64*) 6632 # +Z the default 6633 ;; 6634 *) 6635 lt_prog_compiler_pic='+Z' 6636 ;; 6637 esac 6638 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6639 lt_prog_compiler_static='${wl}-a ${wl}archive' 6640 ;; 6641 6642 irix5* | irix6* | nonstopux*) 6643 lt_prog_compiler_wl='-Wl,' 6644 # PIC (with -KPIC) is the default. 6645 lt_prog_compiler_static='-non_shared' 6646 ;; 6647 6648 linux* | k*bsd*-gnu) 6649 case $cc_basename in 6650 # old Intel for x86_64 which still supported -KPIC. 6651 ecc*) 6652 lt_prog_compiler_wl='-Wl,' 6653 lt_prog_compiler_pic='-KPIC' 6654 lt_prog_compiler_static='-static' 6655 ;; 6656 # icc used to be incompatible with GCC. 6657 # ICC 10 doesn't accept -KPIC any more. 6658 icc* | ifort*) 6659 lt_prog_compiler_wl='-Wl,' 6660 lt_prog_compiler_pic='-fPIC' 6661 lt_prog_compiler_static='-static' 6662 ;; 6663 # Lahey Fortran 8.1. 6664 lf95*) 6665 lt_prog_compiler_wl='-Wl,' 6666 lt_prog_compiler_pic='--shared' 6667 lt_prog_compiler_static='--static' 6668 ;; 6669 pgcc* | pgf77* | pgf90* | pgf95*) 6670 # Portland Group compilers (*not* the Pentium gcc compiler, 6671 # which looks to be a dead project) 6672 lt_prog_compiler_wl='-Wl,' 6673 lt_prog_compiler_pic='-fpic' 6674 lt_prog_compiler_static='-Bstatic' 6675 ;; 6676 ccc*) 6677 lt_prog_compiler_wl='-Wl,' 6678 # All Alpha code is PIC. 6679 lt_prog_compiler_static='-non_shared' 6680 ;; 6681 xl*) 6682 # IBM XL C 8.0/Fortran 10.1 on PPC 6683 lt_prog_compiler_wl='-Wl,' 6684 lt_prog_compiler_pic='-qpic' 6685 lt_prog_compiler_static='-qstaticlink' 6686 ;; 6687 *) 6688 case `$CC -V 2>&1 | sed 5q` in 6689 *Sun\ C*) 6690 # Sun C 5.9 6691 lt_prog_compiler_pic='-KPIC' 6692 lt_prog_compiler_static='-Bstatic' 6693 lt_prog_compiler_wl='-Wl,' 6694 ;; 6695 *Sun\ F*) 6696 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6697 lt_prog_compiler_pic='-KPIC' 6698 lt_prog_compiler_static='-Bstatic' 6699 lt_prog_compiler_wl='' 6700 ;; 6701 esac 6702 ;; 6703 esac 6704 ;; 6705 6706 newsos6) 6707 lt_prog_compiler_pic='-KPIC' 6708 lt_prog_compiler_static='-Bstatic' 6709 ;; 6710 6711 *nto* | *qnx*) 6712 # QNX uses GNU C++, but need to define -shared option too, otherwise 6713 # it will coredump. 6714 lt_prog_compiler_pic='-fPIC -shared' 6715 ;; 6716 6717 osf3* | osf4* | osf5*) 6718 lt_prog_compiler_wl='-Wl,' 6719 # All OSF/1 code is PIC. 6720 lt_prog_compiler_static='-non_shared' 6721 ;; 6722 6723 rdos*) 6724 lt_prog_compiler_static='-non_shared' 6725 ;; 6726 6727 solaris*) 6728 lt_prog_compiler_pic='-KPIC' 6729 lt_prog_compiler_static='-Bstatic' 6730 case $cc_basename in 6731 f77* | f90* | f95*) 6732 lt_prog_compiler_wl='-Qoption ld ';; 6733 *) 6734 lt_prog_compiler_wl='-Wl,';; 6735 esac 6736 ;; 6737 6738 sunos4*) 6739 lt_prog_compiler_wl='-Qoption ld ' 6740 lt_prog_compiler_pic='-PIC' 6741 lt_prog_compiler_static='-Bstatic' 6742 ;; 6743 6744 sysv4 | sysv4.2uw2* | sysv4.3*) 6745 lt_prog_compiler_wl='-Wl,' 6746 lt_prog_compiler_pic='-KPIC' 6747 lt_prog_compiler_static='-Bstatic' 6748 ;; 6749 6750 sysv4*MP*) 6751 if test -d /usr/nec ;then 6752 lt_prog_compiler_pic='-Kconform_pic' 6753 lt_prog_compiler_static='-Bstatic' 6754 fi 6755 ;; 6756 6757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6758 lt_prog_compiler_wl='-Wl,' 6759 lt_prog_compiler_pic='-KPIC' 6760 lt_prog_compiler_static='-Bstatic' 6761 ;; 6762 6763 unicos*) 6764 lt_prog_compiler_wl='-Wl,' 6765 lt_prog_compiler_can_build_shared=no 6766 ;; 6767 6768 uts4*) 6769 lt_prog_compiler_pic='-pic' 6770 lt_prog_compiler_static='-Bstatic' 6771 ;; 6772 6773 *) 6774 lt_prog_compiler_can_build_shared=no 6775 ;; 6776 esac 6777 fi 6778 6779case $host_os in 6780 # For platforms which do not support PIC, -DPIC is meaningless: 6781 *djgpp*) 6782 lt_prog_compiler_pic= 6783 ;; 6784 *) 6785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6786 ;; 6787esac 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 6789$as_echo "$lt_prog_compiler_pic" >&6; } 6790 6791 6792 6793 6794 6795 6796# 6797# Check to make sure the PIC flag actually works. 6798# 6799if test -n "$lt_prog_compiler_pic"; then 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6801$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 6802if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 lt_cv_prog_compiler_pic_works=no 6806 ac_outfile=conftest.$ac_objext 6807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6809 # Insert the option either (1) after the last *FLAGS variable, or 6810 # (2) before a word containing "conftest.", or (3) at the end. 6811 # Note that $ac_compile itself does not contain backslashes and begins 6812 # with a dollar sign (not a hyphen), so the echo should work correctly. 6813 # The option is referenced via a variable to avoid confusing sed. 6814 lt_compile=`echo "$ac_compile" | $SED \ 6815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6817 -e 's:$: $lt_compiler_flag:'` 6818 (eval echo "\"\$as_me:6818: $lt_compile\"" >&5) 6819 (eval "$lt_compile" 2>conftest.err) 6820 ac_status=$? 6821 cat conftest.err >&5 6822 echo "$as_me:6822: \$? = $ac_status" >&5 6823 if (exit $ac_status) && test -s "$ac_outfile"; then 6824 # The compiler can only warn and ignore the option if not recognized 6825 # So say no if there are warnings other than the usual output. 6826 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6829 lt_cv_prog_compiler_pic_works=yes 6830 fi 6831 fi 6832 $RM conftest* 6833 6834fi 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 6836$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 6837 6838if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 6839 case $lt_prog_compiler_pic in 6840 "" | " "*) ;; 6841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6842 esac 6843else 6844 lt_prog_compiler_pic= 6845 lt_prog_compiler_can_build_shared=no 6846fi 6847 6848fi 6849 6850 6851 6852 6853 6854 6855# 6856# Check to make sure the static flag actually works. 6857# 6858wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6860$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 6861if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 lt_cv_prog_compiler_static_works=no 6865 save_LDFLAGS="$LDFLAGS" 6866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6867 echo "$lt_simple_link_test_code" > conftest.$ac_ext 6868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6869 # The linker can only warn and ignore the option if not recognized 6870 # So say no if there are warnings 6871 if test -s conftest.err; then 6872 # Append any errors to the config.log. 6873 cat conftest.err 1>&5 6874 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6876 if diff conftest.exp conftest.er2 >/dev/null; then 6877 lt_cv_prog_compiler_static_works=yes 6878 fi 6879 else 6880 lt_cv_prog_compiler_static_works=yes 6881 fi 6882 fi 6883 $RM -r conftest* 6884 LDFLAGS="$save_LDFLAGS" 6885 6886fi 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 6888$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 6889 6890if test x"$lt_cv_prog_compiler_static_works" = xyes; then 6891 : 6892else 6893 lt_prog_compiler_static= 6894fi 6895 6896 6897 6898 6899 6900 6901 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 6903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 6904if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 lt_cv_prog_compiler_c_o=no 6908 $RM -r conftest 2>/dev/null 6909 mkdir conftest 6910 cd conftest 6911 mkdir out 6912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6913 6914 lt_compiler_flag="-o out/conftest2.$ac_objext" 6915 # Insert the option either (1) after the last *FLAGS variable, or 6916 # (2) before a word containing "conftest.", or (3) at the end. 6917 # Note that $ac_compile itself does not contain backslashes and begins 6918 # with a dollar sign (not a hyphen), so the echo should work correctly. 6919 lt_compile=`echo "$ac_compile" | $SED \ 6920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6922 -e 's:$: $lt_compiler_flag:'` 6923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5) 6924 (eval "$lt_compile" 2>out/conftest.err) 6925 ac_status=$? 6926 cat out/conftest.err >&5 6927 echo "$as_me:6927: \$? = $ac_status" >&5 6928 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6929 then 6930 # The compiler can only warn and ignore the option if not recognized 6931 # So say no if there are warnings 6932 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6935 lt_cv_prog_compiler_c_o=yes 6936 fi 6937 fi 6938 chmod u+w . 2>&5 6939 $RM conftest* 6940 # SGI C++ compiler will create directory out/ii_files/ for 6941 # template instantiation 6942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6943 $RM out/* && rmdir out 6944 cd .. 6945 $RM -r conftest 6946 $RM conftest* 6947 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 6950$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 6951 6952 6953 6954 6955 6956 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 6958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 6959if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 lt_cv_prog_compiler_c_o=no 6963 $RM -r conftest 2>/dev/null 6964 mkdir conftest 6965 cd conftest 6966 mkdir out 6967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6968 6969 lt_compiler_flag="-o out/conftest2.$ac_objext" 6970 # Insert the option either (1) after the last *FLAGS variable, or 6971 # (2) before a word containing "conftest.", or (3) at the end. 6972 # Note that $ac_compile itself does not contain backslashes and begins 6973 # with a dollar sign (not a hyphen), so the echo should work correctly. 6974 lt_compile=`echo "$ac_compile" | $SED \ 6975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6977 -e 's:$: $lt_compiler_flag:'` 6978 (eval echo "\"\$as_me:6978: $lt_compile\"" >&5) 6979 (eval "$lt_compile" 2>out/conftest.err) 6980 ac_status=$? 6981 cat out/conftest.err >&5 6982 echo "$as_me:6982: \$? = $ac_status" >&5 6983 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6984 then 6985 # The compiler can only warn and ignore the option if not recognized 6986 # So say no if there are warnings 6987 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6990 lt_cv_prog_compiler_c_o=yes 6991 fi 6992 fi 6993 chmod u+w . 2>&5 6994 $RM conftest* 6995 # SGI C++ compiler will create directory out/ii_files/ for 6996 # template instantiation 6997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6998 $RM out/* && rmdir out 6999 cd .. 7000 $RM -r conftest 7001 $RM conftest* 7002 7003fi 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7005$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7006 7007 7008 7009 7010hard_links="nottested" 7011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7012 # do not overwrite the value of need_locks provided by the user 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7014$as_echo_n "checking if we can lock with hard links... " >&6; } 7015 hard_links=yes 7016 $RM conftest* 7017 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7018 touch conftest.a 7019 ln conftest.a conftest.b 2>&5 || hard_links=no 7020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7022$as_echo "$hard_links" >&6; } 7023 if test "$hard_links" = no; then 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7025$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7026 need_locks=warn 7027 fi 7028else 7029 need_locks=no 7030fi 7031 7032 7033 7034 7035 7036 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7038$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7039 7040 runpath_var= 7041 allow_undefined_flag= 7042 always_export_symbols=no 7043 archive_cmds= 7044 archive_expsym_cmds= 7045 compiler_needs_object=no 7046 enable_shared_with_static_runtimes=no 7047 export_dynamic_flag_spec= 7048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7049 hardcode_automatic=no 7050 hardcode_direct=no 7051 hardcode_direct_absolute=no 7052 hardcode_libdir_flag_spec= 7053 hardcode_libdir_flag_spec_ld= 7054 hardcode_libdir_separator= 7055 hardcode_minus_L=no 7056 hardcode_shlibpath_var=unsupported 7057 inherit_rpath=no 7058 link_all_deplibs=unknown 7059 module_cmds= 7060 module_expsym_cmds= 7061 old_archive_from_new_cmds= 7062 old_archive_from_expsyms_cmds= 7063 thread_safe_flag_spec= 7064 whole_archive_flag_spec= 7065 # include_expsyms should be a list of space-separated symbols to be *always* 7066 # included in the symbol list 7067 include_expsyms= 7068 # exclude_expsyms can be an extended regexp of symbols to exclude 7069 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7071 # as well as any symbol that contains `d'. 7072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7074 # platforms (ab)use it in PIC code, but their linkers get confused if 7075 # the symbol is explicitly referenced. Since portable code cannot 7076 # rely on this symbol name, it's probably fine to never include it in 7077 # preloaded symbol tables. 7078 # Exclude shared library initialization/finalization symbols. 7079 extract_expsyms_cmds= 7080 7081 case $host_os in 7082 cygwin* | mingw* | pw32* | cegcc*) 7083 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7084 # When not using gcc, we currently assume that we are using 7085 # Microsoft Visual C++. 7086 if test "$GCC" != yes; then 7087 with_gnu_ld=no 7088 fi 7089 ;; 7090 interix*) 7091 # we just hope/assume this is gcc and not c89 (= MSVC++) 7092 with_gnu_ld=yes 7093 ;; 7094 openbsd*) 7095 with_gnu_ld=no 7096 ;; 7097 esac 7098 7099 ld_shlibs=yes 7100 if test "$with_gnu_ld" = yes; then 7101 # If archive_cmds runs LD, not CC, wlarc should be empty 7102 wlarc='${wl}' 7103 7104 # Set some defaults for GNU ld with shared library support. These 7105 # are reset later if shared libraries are not supported. Putting them 7106 # here allows them to be overridden if necessary. 7107 runpath_var=LD_RUN_PATH 7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7109 export_dynamic_flag_spec='${wl}--export-dynamic' 7110 # ancient GNU ld didn't support --whole-archive et. al. 7111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7113 else 7114 whole_archive_flag_spec= 7115 fi 7116 supports_anon_versioning=no 7117 case `$LD -v 2>&1` in 7118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7121 *\ 2.11.*) ;; # other 2.11 versions 7122 *) supports_anon_versioning=yes ;; 7123 esac 7124 7125 # See if GNU ld supports shared libraries. 7126 case $host_os in 7127 aix[3-9]*) 7128 # On AIX/PPC, the GNU linker is very broken 7129 if test "$host_cpu" != ia64; then 7130 ld_shlibs=no 7131 cat <<_LT_EOF 1>&2 7132 7133*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7134*** to be unable to reliably create shared libraries on AIX. 7135*** Therefore, libtool is disabling shared libraries support. If you 7136*** really care for shared libraries, you may want to modify your PATH 7137*** so that a non-GNU linker is found, and then restart. 7138 7139_LT_EOF 7140 fi 7141 ;; 7142 7143 amigaos*) 7144 case $host_cpu in 7145 powerpc) 7146 # see comment about AmigaOS4 .so support 7147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7148 archive_expsym_cmds='' 7149 ;; 7150 m68k) 7151 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)' 7152 hardcode_libdir_flag_spec='-L$libdir' 7153 hardcode_minus_L=yes 7154 ;; 7155 esac 7156 ;; 7157 7158 beos*) 7159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7160 allow_undefined_flag=unsupported 7161 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7162 # support --undefined. This deserves some investigation. FIXME 7163 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7164 else 7165 ld_shlibs=no 7166 fi 7167 ;; 7168 7169 cygwin* | mingw* | pw32* | cegcc*) 7170 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7171 # as there is no search path for DLLs. 7172 hardcode_libdir_flag_spec='-L$libdir' 7173 allow_undefined_flag=unsupported 7174 always_export_symbols=no 7175 enable_shared_with_static_runtimes=yes 7176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7177 7178 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7180 # If the export-symbols file already is a .def file (1st line 7181 # is EXPORTS), use it as is; otherwise, prepend... 7182 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7183 cp $export_symbols $output_objdir/$soname.def; 7184 else 7185 echo EXPORTS > $output_objdir/$soname.def; 7186 cat $export_symbols >> $output_objdir/$soname.def; 7187 fi~ 7188 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7189 else 7190 ld_shlibs=no 7191 fi 7192 ;; 7193 7194 interix[3-9]*) 7195 hardcode_direct=no 7196 hardcode_shlibpath_var=no 7197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7198 export_dynamic_flag_spec='${wl}-E' 7199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7200 # Instead, shared libraries are loaded at an image base (0x10000000 by 7201 # default) and relocated if they conflict, which is a slow very memory 7202 # consuming and fragmenting process. To avoid this, we pick a random, 7203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7204 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7206 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' 7207 ;; 7208 7209 gnu* | linux* | tpf* | k*bsd*-gnu) 7210 tmp_diet=no 7211 if test "$host_os" = linux-dietlibc; then 7212 case $cc_basename in 7213 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7214 esac 7215 fi 7216 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7217 && test "$tmp_diet" = no 7218 then 7219 tmp_addflag= 7220 tmp_sharedflag='-shared' 7221 case $cc_basename,$host_cpu in 7222 pgcc*) # Portland Group C compiler 7223 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' 7224 tmp_addflag=' $pic_flag' 7225 ;; 7226 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7227 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' 7228 tmp_addflag=' $pic_flag -Mnomain' ;; 7229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7230 tmp_addflag=' -i_dynamic' ;; 7231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7232 tmp_addflag=' -i_dynamic -nofor_main' ;; 7233 ifc* | ifort*) # Intel Fortran compiler 7234 tmp_addflag=' -nofor_main' ;; 7235 lf95*) # Lahey Fortran 8.1 7236 whole_archive_flag_spec= 7237 tmp_sharedflag='--shared' ;; 7238 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7239 tmp_sharedflag='-qmkshrobj' 7240 tmp_addflag= ;; 7241 esac 7242 case `$CC -V 2>&1 | sed 5q` in 7243 *Sun\ C*) # Sun C 5.9 7244 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' 7245 compiler_needs_object=yes 7246 tmp_sharedflag='-G' ;; 7247 *Sun\ F*) # Sun Fortran 8.3 7248 tmp_sharedflag='-G' ;; 7249 esac 7250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7251 7252 if test "x$supports_anon_versioning" = xyes; then 7253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7255 echo "local: *; };" >> $output_objdir/$libname.ver~ 7256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7257 fi 7258 7259 case $cc_basename in 7260 xlf*) 7261 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7262 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7263 hardcode_libdir_flag_spec= 7264 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7265 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7266 if test "x$supports_anon_versioning" = xyes; then 7267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7269 echo "local: *; };" >> $output_objdir/$libname.ver~ 7270 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7271 fi 7272 ;; 7273 esac 7274 else 7275 ld_shlibs=no 7276 fi 7277 ;; 7278 7279 netbsd*) 7280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7281 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7282 wlarc= 7283 else 7284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7286 fi 7287 ;; 7288 7289 solaris*) 7290 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7291 ld_shlibs=no 7292 cat <<_LT_EOF 1>&2 7293 7294*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7295*** create shared libraries on Solaris systems. Therefore, libtool 7296*** is disabling shared libraries support. We urge you to upgrade GNU 7297*** binutils to release 2.9.1 or newer. Another option is to modify 7298*** your PATH or compiler configuration so that the native linker is 7299*** used, and then restart. 7300 7301_LT_EOF 7302 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7305 else 7306 ld_shlibs=no 7307 fi 7308 ;; 7309 7310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7311 case `$LD -v 2>&1` in 7312 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7313 ld_shlibs=no 7314 cat <<_LT_EOF 1>&2 7315 7316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7317*** reliably create shared libraries on SCO systems. Therefore, libtool 7318*** is disabling shared libraries support. We urge you to upgrade GNU 7319*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7320*** your PATH or compiler configuration so that the native linker is 7321*** used, and then restart. 7322 7323_LT_EOF 7324 ;; 7325 *) 7326 # For security reasons, it is highly recommended that you always 7327 # use absolute paths for naming shared libraries, and exclude the 7328 # DT_RUNPATH tag from executables and libraries. But doing so 7329 # requires that you compile everything twice, which is a pain. 7330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7334 else 7335 ld_shlibs=no 7336 fi 7337 ;; 7338 esac 7339 ;; 7340 7341 sunos4*) 7342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7343 wlarc= 7344 hardcode_direct=yes 7345 hardcode_shlibpath_var=no 7346 ;; 7347 7348 *) 7349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7352 else 7353 ld_shlibs=no 7354 fi 7355 ;; 7356 esac 7357 7358 if test "$ld_shlibs" = no; then 7359 runpath_var= 7360 hardcode_libdir_flag_spec= 7361 export_dynamic_flag_spec= 7362 whole_archive_flag_spec= 7363 fi 7364 else 7365 # PORTME fill in a description of your system's linker (not GNU ld) 7366 case $host_os in 7367 aix3*) 7368 allow_undefined_flag=unsupported 7369 always_export_symbols=yes 7370 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' 7371 # Note: this linker hardcodes the directories in LIBPATH if there 7372 # are no directories specified by -L. 7373 hardcode_minus_L=yes 7374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7375 # Neither direct hardcoding nor static linking is supported with a 7376 # broken collect2. 7377 hardcode_direct=unsupported 7378 fi 7379 ;; 7380 7381 aix[4-9]*) 7382 if test "$host_cpu" = ia64; then 7383 # On IA64, the linker does run time linking by default, so we don't 7384 # have to do anything special. 7385 aix_use_runtimelinking=no 7386 exp_sym_flag='-Bexport' 7387 no_entry_flag="" 7388 else 7389 # If we're using GNU nm, then we don't want the "-C" option. 7390 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7392 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' 7393 else 7394 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' 7395 fi 7396 aix_use_runtimelinking=no 7397 7398 # Test if we are trying to use run time linking or normal 7399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7400 # need to do runtime linking. 7401 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7402 for ld_flag in $LDFLAGS; do 7403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7404 aix_use_runtimelinking=yes 7405 break 7406 fi 7407 done 7408 ;; 7409 esac 7410 7411 exp_sym_flag='-bexport' 7412 no_entry_flag='-bnoentry' 7413 fi 7414 7415 # When large executables or shared objects are built, AIX ld can 7416 # have problems creating the table of contents. If linking a library 7417 # or program results in "error TOC overflow" add -mminimal-toc to 7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7420 7421 archive_cmds='' 7422 hardcode_direct=yes 7423 hardcode_direct_absolute=yes 7424 hardcode_libdir_separator=':' 7425 link_all_deplibs=yes 7426 file_list_spec='${wl}-f,' 7427 7428 if test "$GCC" = yes; then 7429 case $host_os in aix4.[012]|aix4.[012].*) 7430 # We only want to do this on AIX 4.2 and lower, the check 7431 # below for broken collect2 doesn't work under 4.3+ 7432 collect2name=`${CC} -print-prog-name=collect2` 7433 if test -f "$collect2name" && 7434 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7435 then 7436 # We have reworked collect2 7437 : 7438 else 7439 # We have old collect2 7440 hardcode_direct=unsupported 7441 # It fails to find uninstalled libraries when the uninstalled 7442 # path is not listed in the libpath. Setting hardcode_minus_L 7443 # to unsupported forces relinking 7444 hardcode_minus_L=yes 7445 hardcode_libdir_flag_spec='-L$libdir' 7446 hardcode_libdir_separator= 7447 fi 7448 ;; 7449 esac 7450 shared_flag='-shared' 7451 if test "$aix_use_runtimelinking" = yes; then 7452 shared_flag="$shared_flag "'${wl}-G' 7453 fi 7454 else 7455 # not using gcc 7456 if test "$host_cpu" = ia64; then 7457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7458 # chokes on -Wl,-G. The following line is correct: 7459 shared_flag='-G' 7460 else 7461 if test "$aix_use_runtimelinking" = yes; then 7462 shared_flag='${wl}-G' 7463 else 7464 shared_flag='${wl}-bM:SRE' 7465 fi 7466 fi 7467 fi 7468 7469 export_dynamic_flag_spec='${wl}-bexpall' 7470 # It seems that -bexpall does not export symbols beginning with 7471 # underscore (_), so it is better to generate a list of symbols to export. 7472 always_export_symbols=yes 7473 if test "$aix_use_runtimelinking" = yes; then 7474 # Warning - without using the other runtime loading flags (-brtl), 7475 # -berok will link without error, but may produce a broken library. 7476 allow_undefined_flag='-berok' 7477 # Determine the default libpath from the value encoded in an 7478 # empty executable. 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481 7482int 7483main () 7484{ 7485 7486 ; 7487 return 0; 7488} 7489_ACEOF 7490if ac_fn_c_try_link "$LINENO"; then : 7491 7492lt_aix_libpath_sed=' 7493 /Import File Strings/,/^$/ { 7494 /^0/ { 7495 s/^0 *\(.*\)$/\1/ 7496 p 7497 } 7498 }' 7499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7500# Check for a 64-bit object if we didn't find anything. 7501if test -z "$aix_libpath"; then 7502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7503fi 7504fi 7505rm -f core conftest.err conftest.$ac_objext \ 7506 conftest$ac_exeext conftest.$ac_ext 7507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7508 7509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7510 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" 7511 else 7512 if test "$host_cpu" = ia64; then 7513 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7514 allow_undefined_flag="-z nodefs" 7515 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" 7516 else 7517 # Determine the default libpath from the value encoded in an 7518 # empty executable. 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521 7522int 7523main () 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_link "$LINENO"; then : 7531 7532lt_aix_libpath_sed=' 7533 /Import File Strings/,/^$/ { 7534 /^0/ { 7535 s/^0 *\(.*\)$/\1/ 7536 p 7537 } 7538 }' 7539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7540# Check for a 64-bit object if we didn't find anything. 7541if test -z "$aix_libpath"; then 7542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7543fi 7544fi 7545rm -f core conftest.err conftest.$ac_objext \ 7546 conftest$ac_exeext conftest.$ac_ext 7547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7548 7549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7550 # Warning - without using the other run time loading flags, 7551 # -berok will link without error, but may produce a broken library. 7552 no_undefined_flag=' ${wl}-bernotok' 7553 allow_undefined_flag=' ${wl}-berok' 7554 # Exported symbols can be pulled into shared objects from archives 7555 whole_archive_flag_spec='$convenience' 7556 archive_cmds_need_lc=yes 7557 # This is similar to how AIX traditionally builds its shared libraries. 7558 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' 7559 fi 7560 fi 7561 ;; 7562 7563 amigaos*) 7564 case $host_cpu in 7565 powerpc) 7566 # see comment about AmigaOS4 .so support 7567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7568 archive_expsym_cmds='' 7569 ;; 7570 m68k) 7571 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)' 7572 hardcode_libdir_flag_spec='-L$libdir' 7573 hardcode_minus_L=yes 7574 ;; 7575 esac 7576 ;; 7577 7578 bsdi[45]*) 7579 export_dynamic_flag_spec=-rdynamic 7580 ;; 7581 7582 cygwin* | mingw* | pw32* | cegcc*) 7583 # When not using gcc, we currently assume that we are using 7584 # Microsoft Visual C++. 7585 # hardcode_libdir_flag_spec is actually meaningless, as there is 7586 # no search path for DLLs. 7587 hardcode_libdir_flag_spec=' ' 7588 allow_undefined_flag=unsupported 7589 # Tell ltmain to make .lib files, not .a files. 7590 libext=lib 7591 # Tell ltmain to make .dll files, not .so files. 7592 shrext_cmds=".dll" 7593 # FIXME: Setting linknames here is a bad hack. 7594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7595 # The linker will automatically build a .lib file if we build a DLL. 7596 old_archive_from_new_cmds='true' 7597 # FIXME: Should let the user specify the lib program. 7598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7599 fix_srcfile_path='`cygpath -w "$srcfile"`' 7600 enable_shared_with_static_runtimes=yes 7601 ;; 7602 7603 darwin* | rhapsody*) 7604 7605 7606 archive_cmds_need_lc=no 7607 hardcode_direct=no 7608 hardcode_automatic=yes 7609 hardcode_shlibpath_var=unsupported 7610 whole_archive_flag_spec='' 7611 link_all_deplibs=yes 7612 allow_undefined_flag="$_lt_dar_allow_undefined" 7613 case $cc_basename in 7614 ifort*) _lt_dar_can_shared=yes ;; 7615 *) _lt_dar_can_shared=$GCC ;; 7616 esac 7617 if test "$_lt_dar_can_shared" = "yes"; then 7618 output_verbose_link_cmd=echo 7619 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7620 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7621 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}" 7622 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}" 7623 7624 else 7625 ld_shlibs=no 7626 fi 7627 7628 ;; 7629 7630 dgux*) 7631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7632 hardcode_libdir_flag_spec='-L$libdir' 7633 hardcode_shlibpath_var=no 7634 ;; 7635 7636 freebsd1*) 7637 ld_shlibs=no 7638 ;; 7639 7640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7641 # support. Future versions do this automatically, but an explicit c++rt0.o 7642 # does not break anything, and helps significantly (at the cost of a little 7643 # extra space). 7644 freebsd2.2*) 7645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7646 hardcode_libdir_flag_spec='-R$libdir' 7647 hardcode_direct=yes 7648 hardcode_shlibpath_var=no 7649 ;; 7650 7651 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7652 freebsd2*) 7653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7654 hardcode_direct=yes 7655 hardcode_minus_L=yes 7656 hardcode_shlibpath_var=no 7657 ;; 7658 7659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7660 freebsd* | dragonfly*) 7661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7662 hardcode_libdir_flag_spec='-R$libdir' 7663 hardcode_direct=yes 7664 hardcode_shlibpath_var=no 7665 ;; 7666 7667 hpux9*) 7668 if test "$GCC" = yes; then 7669 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' 7670 else 7671 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' 7672 fi 7673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7674 hardcode_libdir_separator=: 7675 hardcode_direct=yes 7676 7677 # hardcode_minus_L: Not really in the search PATH, 7678 # but as the default location of the library. 7679 hardcode_minus_L=yes 7680 export_dynamic_flag_spec='${wl}-E' 7681 ;; 7682 7683 hpux10*) 7684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7686 else 7687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7688 fi 7689 if test "$with_gnu_ld" = no; then 7690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7691 hardcode_libdir_flag_spec_ld='+b $libdir' 7692 hardcode_libdir_separator=: 7693 hardcode_direct=yes 7694 hardcode_direct_absolute=yes 7695 export_dynamic_flag_spec='${wl}-E' 7696 # hardcode_minus_L: Not really in the search PATH, 7697 # but as the default location of the library. 7698 hardcode_minus_L=yes 7699 fi 7700 ;; 7701 7702 hpux11*) 7703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7704 case $host_cpu in 7705 hppa*64*) 7706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7707 ;; 7708 ia64*) 7709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7710 ;; 7711 *) 7712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7713 ;; 7714 esac 7715 else 7716 case $host_cpu in 7717 hppa*64*) 7718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7719 ;; 7720 ia64*) 7721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7722 ;; 7723 *) 7724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7725 ;; 7726 esac 7727 fi 7728 if test "$with_gnu_ld" = no; then 7729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7730 hardcode_libdir_separator=: 7731 7732 case $host_cpu in 7733 hppa*64*|ia64*) 7734 hardcode_direct=no 7735 hardcode_shlibpath_var=no 7736 ;; 7737 *) 7738 hardcode_direct=yes 7739 hardcode_direct_absolute=yes 7740 export_dynamic_flag_spec='${wl}-E' 7741 7742 # hardcode_minus_L: Not really in the search PATH, 7743 # but as the default location of the library. 7744 hardcode_minus_L=yes 7745 ;; 7746 esac 7747 fi 7748 ;; 7749 7750 irix5* | irix6* | nonstopux*) 7751 if test "$GCC" = yes; then 7752 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' 7753 # Try to use the -exported_symbol ld option, if it does not 7754 # work, assume that -exports_file does not work either and 7755 # implicitly export all symbols. 7756 save_LDFLAGS="$LDFLAGS" 7757 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int foo(void) {} 7761_ACEOF 7762if ac_fn_c_try_link "$LINENO"; then : 7763 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' 7764 7765fi 7766rm -f core conftest.err conftest.$ac_objext \ 7767 conftest$ac_exeext conftest.$ac_ext 7768 LDFLAGS="$save_LDFLAGS" 7769 else 7770 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' 7771 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' 7772 fi 7773 archive_cmds_need_lc='no' 7774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7775 hardcode_libdir_separator=: 7776 inherit_rpath=yes 7777 link_all_deplibs=yes 7778 ;; 7779 7780 netbsd*) 7781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7783 else 7784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7785 fi 7786 hardcode_libdir_flag_spec='-R$libdir' 7787 hardcode_direct=yes 7788 hardcode_shlibpath_var=no 7789 ;; 7790 7791 newsos6) 7792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7793 hardcode_direct=yes 7794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7795 hardcode_libdir_separator=: 7796 hardcode_shlibpath_var=no 7797 ;; 7798 7799 *nto* | *qnx*) 7800 ;; 7801 7802 openbsd*) 7803 if test -f /usr/libexec/ld.so; then 7804 hardcode_direct=yes 7805 hardcode_shlibpath_var=no 7806 hardcode_direct_absolute=yes 7807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7811 export_dynamic_flag_spec='${wl}-E' 7812 else 7813 case $host_os in 7814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7816 hardcode_libdir_flag_spec='-R$libdir' 7817 ;; 7818 *) 7819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7821 ;; 7822 esac 7823 fi 7824 else 7825 ld_shlibs=no 7826 fi 7827 ;; 7828 7829 os2*) 7830 hardcode_libdir_flag_spec='-L$libdir' 7831 hardcode_minus_L=yes 7832 allow_undefined_flag=unsupported 7833 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' 7834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7835 ;; 7836 7837 osf3*) 7838 if test "$GCC" = yes; then 7839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7840 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' 7841 else 7842 allow_undefined_flag=' -expect_unresolved \*' 7843 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' 7844 fi 7845 archive_cmds_need_lc='no' 7846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7847 hardcode_libdir_separator=: 7848 ;; 7849 7850 osf4* | osf5*) # as osf3* with the addition of -msym flag 7851 if test "$GCC" = yes; then 7852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7853 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' 7854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7855 else 7856 allow_undefined_flag=' -expect_unresolved \*' 7857 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' 7858 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~ 7859 $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' 7860 7861 # Both c and cxx compiler support -rpath directly 7862 hardcode_libdir_flag_spec='-rpath $libdir' 7863 fi 7864 archive_cmds_need_lc='no' 7865 hardcode_libdir_separator=: 7866 ;; 7867 7868 solaris*) 7869 no_undefined_flag=' -z defs' 7870 if test "$GCC" = yes; then 7871 wlarc='${wl}' 7872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7875 else 7876 case `$CC -V 2>&1` in 7877 *"Compilers 5.0"*) 7878 wlarc='' 7879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7882 ;; 7883 *) 7884 wlarc='${wl}' 7885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7888 ;; 7889 esac 7890 fi 7891 hardcode_libdir_flag_spec='-R$libdir' 7892 hardcode_shlibpath_var=no 7893 case $host_os in 7894 solaris2.[0-5] | solaris2.[0-5].*) ;; 7895 *) 7896 # The compiler driver will combine and reorder linker options, 7897 # but understands `-z linker_flag'. GCC discards it without `$wl', 7898 # but is careful enough not to reorder. 7899 # Supported since Solaris 2.6 (maybe 2.5.1?) 7900 if test "$GCC" = yes; then 7901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7902 else 7903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 7904 fi 7905 ;; 7906 esac 7907 link_all_deplibs=yes 7908 ;; 7909 7910 sunos4*) 7911 if test "x$host_vendor" = xsequent; then 7912 # Use $CC to link under sequent, because it throws in some extra .o 7913 # files that make .init and .fini sections work. 7914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7915 else 7916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7917 fi 7918 hardcode_libdir_flag_spec='-L$libdir' 7919 hardcode_direct=yes 7920 hardcode_minus_L=yes 7921 hardcode_shlibpath_var=no 7922 ;; 7923 7924 sysv4) 7925 case $host_vendor in 7926 sni) 7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7928 hardcode_direct=yes # is this really true??? 7929 ;; 7930 siemens) 7931 ## LD is ld it makes a PLAMLIB 7932 ## CC just makes a GrossModule. 7933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7934 reload_cmds='$CC -r -o $output$reload_objs' 7935 hardcode_direct=no 7936 ;; 7937 motorola) 7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7940 ;; 7941 esac 7942 runpath_var='LD_RUN_PATH' 7943 hardcode_shlibpath_var=no 7944 ;; 7945 7946 sysv4.3*) 7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7948 hardcode_shlibpath_var=no 7949 export_dynamic_flag_spec='-Bexport' 7950 ;; 7951 7952 sysv4*MP*) 7953 if test -d /usr/nec; then 7954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7955 hardcode_shlibpath_var=no 7956 runpath_var=LD_RUN_PATH 7957 hardcode_runpath_var=yes 7958 ld_shlibs=yes 7959 fi 7960 ;; 7961 7962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 7963 no_undefined_flag='${wl}-z,text' 7964 archive_cmds_need_lc=no 7965 hardcode_shlibpath_var=no 7966 runpath_var='LD_RUN_PATH' 7967 7968 if test "$GCC" = yes; then 7969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7971 else 7972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7974 fi 7975 ;; 7976 7977 sysv5* | sco3.2v5* | sco5v6*) 7978 # Note: We can NOT use -z defs as we might desire, because we do not 7979 # link with -lc, and that would cause any symbols used from libc to 7980 # always be unresolved, which means just about no library would 7981 # ever link correctly. If we're not using GNU ld we use -z text 7982 # though, which does catch some bad symbols but isn't as heavy-handed 7983 # as -z defs. 7984 no_undefined_flag='${wl}-z,text' 7985 allow_undefined_flag='${wl}-z,nodefs' 7986 archive_cmds_need_lc=no 7987 hardcode_shlibpath_var=no 7988 hardcode_libdir_flag_spec='${wl}-R,$libdir' 7989 hardcode_libdir_separator=':' 7990 link_all_deplibs=yes 7991 export_dynamic_flag_spec='${wl}-Bexport' 7992 runpath_var='LD_RUN_PATH' 7993 7994 if test "$GCC" = yes; then 7995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7997 else 7998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8000 fi 8001 ;; 8002 8003 uts4*) 8004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8005 hardcode_libdir_flag_spec='-L$libdir' 8006 hardcode_shlibpath_var=no 8007 ;; 8008 8009 *) 8010 ld_shlibs=no 8011 ;; 8012 esac 8013 8014 if test x$host_vendor = xsni; then 8015 case $host in 8016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8017 export_dynamic_flag_spec='${wl}-Blargedynsym' 8018 ;; 8019 esac 8020 fi 8021 fi 8022 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8024$as_echo "$ld_shlibs" >&6; } 8025test "$ld_shlibs" = no && can_build_shared=no 8026 8027with_gnu_ld=$with_gnu_ld 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043# 8044# Do we need to explicitly link libc? 8045# 8046case "x$archive_cmds_need_lc" in 8047x|xyes) 8048 # Assume -lc should be added 8049 archive_cmds_need_lc=yes 8050 8051 if test "$enable_shared" = yes && test "$GCC" = yes; then 8052 case $archive_cmds in 8053 *'~'*) 8054 # FIXME: we may have to deal with multi-command sequences. 8055 ;; 8056 '$CC '*) 8057 # Test whether the compiler implicitly links with -lc since on some 8058 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8059 # to ld, don't add -lc before -lgcc. 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8061$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8062 $RM conftest* 8063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8064 8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8066 (eval $ac_compile) 2>&5 8067 ac_status=$? 8068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8069 test $ac_status = 0; } 2>conftest.err; then 8070 soname=conftest 8071 lib=conftest 8072 libobjs=conftest.$ac_objext 8073 deplibs= 8074 wl=$lt_prog_compiler_wl 8075 pic_flag=$lt_prog_compiler_pic 8076 compiler_flags=-v 8077 linker_flags=-v 8078 verstring= 8079 output_objdir=. 8080 libname=conftest 8081 lt_save_allow_undefined_flag=$allow_undefined_flag 8082 allow_undefined_flag= 8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8085 ac_status=$? 8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8087 test $ac_status = 0; } 8088 then 8089 archive_cmds_need_lc=no 8090 else 8091 archive_cmds_need_lc=yes 8092 fi 8093 allow_undefined_flag=$lt_save_allow_undefined_flag 8094 else 8095 cat conftest.err 1>&5 8096 fi 8097 $RM conftest* 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8099$as_echo "$archive_cmds_need_lc" >&6; } 8100 ;; 8101 esac 8102 fi 8103 ;; 8104esac 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8263$as_echo_n "checking dynamic linker characteristics... " >&6; } 8264 8265if test "$GCC" = yes; then 8266 case $host_os in 8267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8268 *) lt_awk_arg="/^libraries:/" ;; 8269 esac 8270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8271 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8272 # if the path contains ";" then we assume it to be the separator 8273 # otherwise default to the standard path separator (i.e. ":") - it is 8274 # assumed that no part of a normal pathname contains ";" but that should 8275 # okay in the real world where ";" in dirpaths is itself problematic. 8276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8277 else 8278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8279 fi 8280 # Ok, now we have the path, separated by spaces, we can step through it 8281 # and add multilib dir if necessary. 8282 lt_tmp_lt_search_path_spec= 8283 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8284 for lt_sys_path in $lt_search_path_spec; do 8285 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8287 else 8288 test -d "$lt_sys_path" && \ 8289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8290 fi 8291 done 8292 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8293BEGIN {RS=" "; FS="/|\n";} { 8294 lt_foo=""; 8295 lt_count=0; 8296 for (lt_i = NF; lt_i > 0; lt_i--) { 8297 if ($lt_i != "" && $lt_i != ".") { 8298 if ($lt_i == "..") { 8299 lt_count++; 8300 } else { 8301 if (lt_count == 0) { 8302 lt_foo="/" $lt_i lt_foo; 8303 } else { 8304 lt_count--; 8305 } 8306 } 8307 } 8308 } 8309 if (lt_foo != "") { lt_freq[lt_foo]++; } 8310 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8311}'` 8312 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8313else 8314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8315fi 8316library_names_spec= 8317libname_spec='lib$name' 8318soname_spec= 8319shrext_cmds=".so" 8320postinstall_cmds= 8321postuninstall_cmds= 8322finish_cmds= 8323finish_eval= 8324shlibpath_var= 8325shlibpath_overrides_runpath=unknown 8326version_type=none 8327dynamic_linker="$host_os ld.so" 8328sys_lib_dlsearch_path_spec="/lib /usr/lib" 8329need_lib_prefix=unknown 8330hardcode_into_libs=no 8331 8332# when you set need_version to no, make sure it does not cause -set_version 8333# flags to be left without arguments 8334need_version=unknown 8335 8336case $host_os in 8337aix3*) 8338 version_type=linux 8339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8340 shlibpath_var=LIBPATH 8341 8342 # AIX 3 has no versioning support, so we append a major version to the name. 8343 soname_spec='${libname}${release}${shared_ext}$major' 8344 ;; 8345 8346aix[4-9]*) 8347 version_type=linux 8348 need_lib_prefix=no 8349 need_version=no 8350 hardcode_into_libs=yes 8351 if test "$host_cpu" = ia64; then 8352 # AIX 5 supports IA64 8353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8354 shlibpath_var=LD_LIBRARY_PATH 8355 else 8356 # With GCC up to 2.95.x, collect2 would create an import file 8357 # for dependence libraries. The import file would start with 8358 # the line `#! .'. This would cause the generated library to 8359 # depend on `.', always an invalid library. This was fixed in 8360 # development snapshots of GCC prior to 3.0. 8361 case $host_os in 8362 aix4 | aix4.[01] | aix4.[01].*) 8363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8364 echo ' yes ' 8365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8366 : 8367 else 8368 can_build_shared=no 8369 fi 8370 ;; 8371 esac 8372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8373 # soname into executable. Probably we can add versioning support to 8374 # collect2, so additional links can be useful in future. 8375 if test "$aix_use_runtimelinking" = yes; then 8376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8377 # instead of lib<name>.a to let people know that these are not 8378 # typical AIX shared libraries. 8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8380 else 8381 # We preserve .a as extension for shared libraries through AIX4.2 8382 # and later when we are not doing run time linking. 8383 library_names_spec='${libname}${release}.a $libname.a' 8384 soname_spec='${libname}${release}${shared_ext}$major' 8385 fi 8386 shlibpath_var=LIBPATH 8387 fi 8388 ;; 8389 8390amigaos*) 8391 case $host_cpu in 8392 powerpc) 8393 # Since July 2007 AmigaOS4 officially supports .so libraries. 8394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8396 ;; 8397 m68k) 8398 library_names_spec='$libname.ixlibrary $libname.a' 8399 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8400 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' 8401 ;; 8402 esac 8403 ;; 8404 8405beos*) 8406 library_names_spec='${libname}${shared_ext}' 8407 dynamic_linker="$host_os ld.so" 8408 shlibpath_var=LIBRARY_PATH 8409 ;; 8410 8411bsdi[45]*) 8412 version_type=linux 8413 need_version=no 8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8415 soname_spec='${libname}${release}${shared_ext}$major' 8416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8417 shlibpath_var=LD_LIBRARY_PATH 8418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8420 # the default ld.so.conf also contains /usr/contrib/lib and 8421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8422 # libtool to hard-code these into programs 8423 ;; 8424 8425cygwin* | mingw* | pw32* | cegcc*) 8426 version_type=windows 8427 shrext_cmds=".dll" 8428 need_version=no 8429 need_lib_prefix=no 8430 8431 case $GCC,$host_os in 8432 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8433 library_names_spec='$libname.dll.a' 8434 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8435 postinstall_cmds='base_file=`basename \${file}`~ 8436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8437 dldir=$destdir/`dirname \$dlpath`~ 8438 test -d \$dldir || mkdir -p \$dldir~ 8439 $install_prog $dir/$dlname \$dldir/$dlname~ 8440 chmod a+x \$dldir/$dlname~ 8441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8443 fi' 8444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8445 dlpath=$dir/\$dldll~ 8446 $RM \$dlpath' 8447 shlibpath_overrides_runpath=yes 8448 8449 case $host_os in 8450 cygwin*) 8451 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8454 ;; 8455 mingw* | cegcc*) 8456 # MinGW DLLs use traditional 'lib' prefix 8457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8458 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8460 # It is most probably a Windows format PATH printed by 8461 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8462 # path with ; separators, and with drive letters. We can handle the 8463 # drive letters (cygwin fileutils understands them), so leave them, 8464 # especially as we might pass files found there to a mingw objdump, 8465 # which wouldn't understand a cygwinified path. Ahh. 8466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8467 else 8468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8469 fi 8470 ;; 8471 pw32*) 8472 # pw32 DLLs use 'pw' prefix rather than 'lib' 8473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8474 ;; 8475 esac 8476 ;; 8477 8478 *) 8479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8480 ;; 8481 esac 8482 dynamic_linker='Win32 ld.exe' 8483 # FIXME: first we should search . and the directory the executable is in 8484 shlibpath_var=PATH 8485 ;; 8486 8487darwin* | rhapsody*) 8488 dynamic_linker="$host_os dyld" 8489 version_type=darwin 8490 need_lib_prefix=no 8491 need_version=no 8492 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8493 soname_spec='${libname}${release}${major}$shared_ext' 8494 shlibpath_overrides_runpath=yes 8495 shlibpath_var=DYLD_LIBRARY_PATH 8496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8497 8498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8500 ;; 8501 8502dgux*) 8503 version_type=linux 8504 need_lib_prefix=no 8505 need_version=no 8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8507 soname_spec='${libname}${release}${shared_ext}$major' 8508 shlibpath_var=LD_LIBRARY_PATH 8509 ;; 8510 8511freebsd1*) 8512 dynamic_linker=no 8513 ;; 8514 8515freebsd* | dragonfly*) 8516 # DragonFly does not have aout. When/if they implement a new 8517 # versioning mechanism, adjust this. 8518 if test -x /usr/bin/objformat; then 8519 objformat=`/usr/bin/objformat` 8520 else 8521 case $host_os in 8522 freebsd[123]*) objformat=aout ;; 8523 *) objformat=elf ;; 8524 esac 8525 fi 8526 version_type=freebsd-$objformat 8527 case $version_type in 8528 freebsd-elf*) 8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8530 need_version=no 8531 need_lib_prefix=no 8532 ;; 8533 freebsd-*) 8534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8535 need_version=yes 8536 ;; 8537 esac 8538 shlibpath_var=LD_LIBRARY_PATH 8539 case $host_os in 8540 freebsd2*) 8541 shlibpath_overrides_runpath=yes 8542 ;; 8543 freebsd3.[01]* | freebsdelf3.[01]*) 8544 shlibpath_overrides_runpath=yes 8545 hardcode_into_libs=yes 8546 ;; 8547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8549 shlibpath_overrides_runpath=no 8550 hardcode_into_libs=yes 8551 ;; 8552 *) # from 4.6 on, and DragonFly 8553 shlibpath_overrides_runpath=yes 8554 hardcode_into_libs=yes 8555 ;; 8556 esac 8557 ;; 8558 8559gnu*) 8560 version_type=linux 8561 need_lib_prefix=no 8562 need_version=no 8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8564 soname_spec='${libname}${release}${shared_ext}$major' 8565 shlibpath_var=LD_LIBRARY_PATH 8566 hardcode_into_libs=yes 8567 ;; 8568 8569hpux9* | hpux10* | hpux11*) 8570 # Give a soname corresponding to the major version so that dld.sl refuses to 8571 # link against other versions. 8572 version_type=sunos 8573 need_lib_prefix=no 8574 need_version=no 8575 case $host_cpu in 8576 ia64*) 8577 shrext_cmds='.so' 8578 hardcode_into_libs=yes 8579 dynamic_linker="$host_os dld.so" 8580 shlibpath_var=LD_LIBRARY_PATH 8581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8583 soname_spec='${libname}${release}${shared_ext}$major' 8584 if test "X$HPUX_IA64_MODE" = X32; then 8585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8586 else 8587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8588 fi 8589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8590 ;; 8591 hppa*64*) 8592 shrext_cmds='.sl' 8593 hardcode_into_libs=yes 8594 dynamic_linker="$host_os dld.sl" 8595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8598 soname_spec='${libname}${release}${shared_ext}$major' 8599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8601 ;; 8602 *) 8603 shrext_cmds='.sl' 8604 dynamic_linker="$host_os dld.sl" 8605 shlibpath_var=SHLIB_PATH 8606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 8610 esac 8611 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8612 postinstall_cmds='chmod 555 $lib' 8613 ;; 8614 8615interix[3-9]*) 8616 version_type=linux 8617 need_lib_prefix=no 8618 need_version=no 8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8620 soname_spec='${libname}${release}${shared_ext}$major' 8621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8622 shlibpath_var=LD_LIBRARY_PATH 8623 shlibpath_overrides_runpath=no 8624 hardcode_into_libs=yes 8625 ;; 8626 8627irix5* | irix6* | nonstopux*) 8628 case $host_os in 8629 nonstopux*) version_type=nonstopux ;; 8630 *) 8631 if test "$lt_cv_prog_gnu_ld" = yes; then 8632 version_type=linux 8633 else 8634 version_type=irix 8635 fi ;; 8636 esac 8637 need_lib_prefix=no 8638 need_version=no 8639 soname_spec='${libname}${release}${shared_ext}$major' 8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8641 case $host_os in 8642 irix5* | nonstopux*) 8643 libsuff= shlibsuff= 8644 ;; 8645 *) 8646 case $LD in # libtool.m4 will add one of these switches to LD 8647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8648 libsuff= shlibsuff= libmagic=32-bit;; 8649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8650 libsuff=32 shlibsuff=N32 libmagic=N32;; 8651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8652 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8653 *) libsuff= shlibsuff= libmagic=never-match;; 8654 esac 8655 ;; 8656 esac 8657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8658 shlibpath_overrides_runpath=no 8659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8661 hardcode_into_libs=yes 8662 ;; 8663 8664# No shared lib support for Linux oldld, aout, or coff. 8665linux*oldld* | linux*aout* | linux*coff*) 8666 dynamic_linker=no 8667 ;; 8668 8669# This must be Linux ELF. 8670linux* | k*bsd*-gnu) 8671 version_type=linux 8672 need_lib_prefix=no 8673 need_version=no 8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8675 soname_spec='${libname}${release}${shared_ext}$major' 8676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8677 shlibpath_var=LD_LIBRARY_PATH 8678 shlibpath_overrides_runpath=no 8679 # Some binutils ld are patched to set DT_RUNPATH 8680 save_LDFLAGS=$LDFLAGS 8681 save_libdir=$libdir 8682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686 8687int 8688main () 8689{ 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695if ac_fn_c_try_link "$LINENO"; then : 8696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 8697 shlibpath_overrides_runpath=yes 8698fi 8699fi 8700rm -f core conftest.err conftest.$ac_objext \ 8701 conftest$ac_exeext conftest.$ac_ext 8702 LDFLAGS=$save_LDFLAGS 8703 libdir=$save_libdir 8704 8705 # This implies no fast_install, which is unacceptable. 8706 # Some rework will be needed to allow for fast_install 8707 # before this can be enabled. 8708 hardcode_into_libs=yes 8709 8710 # Add ABI-specific directories to the system library path. 8711 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 8712 8713 # Append ld.so.conf contents to the search path 8714 if test -f /etc/ld.so.conf; then 8715 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' ' '` 8716 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 8717 fi 8718 8719 # We used to test for /lib/ld.so.1 and disable shared libraries on 8720 # powerpc, because MkLinux only supported shared libraries with the 8721 # GNU dynamic linker. Since this was broken with cross compilers, 8722 # most powerpc-linux boxes support dynamic linking these days and 8723 # people can always --disable-shared, the test was removed, and we 8724 # assume the GNU/Linux dynamic linker is in use. 8725 dynamic_linker='GNU/Linux ld.so' 8726 ;; 8727 8728netbsd*) 8729 version_type=sunos 8730 need_lib_prefix=no 8731 need_version=no 8732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8735 dynamic_linker='NetBSD (a.out) ld.so' 8736 else 8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8738 soname_spec='${libname}${release}${shared_ext}$major' 8739 dynamic_linker='NetBSD ld.elf_so' 8740 fi 8741 shlibpath_var=LD_LIBRARY_PATH 8742 shlibpath_overrides_runpath=yes 8743 hardcode_into_libs=yes 8744 ;; 8745 8746newsos6) 8747 version_type=linux 8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8749 shlibpath_var=LD_LIBRARY_PATH 8750 shlibpath_overrides_runpath=yes 8751 ;; 8752 8753*nto* | *qnx*) 8754 version_type=qnx 8755 need_lib_prefix=no 8756 need_version=no 8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8758 soname_spec='${libname}${release}${shared_ext}$major' 8759 shlibpath_var=LD_LIBRARY_PATH 8760 shlibpath_overrides_runpath=no 8761 hardcode_into_libs=yes 8762 dynamic_linker='ldqnx.so' 8763 ;; 8764 8765openbsd*) 8766 version_type=sunos 8767 sys_lib_dlsearch_path_spec="/usr/lib" 8768 need_lib_prefix=no 8769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8770 case $host_os in 8771 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8772 *) need_version=no ;; 8773 esac 8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8776 shlibpath_var=LD_LIBRARY_PATH 8777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8778 case $host_os in 8779 openbsd2.[89] | openbsd2.[89].*) 8780 shlibpath_overrides_runpath=no 8781 ;; 8782 *) 8783 shlibpath_overrides_runpath=yes 8784 ;; 8785 esac 8786 else 8787 shlibpath_overrides_runpath=yes 8788 fi 8789 ;; 8790 8791os2*) 8792 libname_spec='$name' 8793 shrext_cmds=".dll" 8794 need_lib_prefix=no 8795 library_names_spec='$libname${shared_ext} $libname.a' 8796 dynamic_linker='OS/2 ld.exe' 8797 shlibpath_var=LIBPATH 8798 ;; 8799 8800osf3* | osf4* | osf5*) 8801 version_type=osf 8802 need_lib_prefix=no 8803 need_version=no 8804 soname_spec='${libname}${release}${shared_ext}$major' 8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8806 shlibpath_var=LD_LIBRARY_PATH 8807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8809 ;; 8810 8811rdos*) 8812 dynamic_linker=no 8813 ;; 8814 8815solaris*) 8816 version_type=linux 8817 need_lib_prefix=no 8818 need_version=no 8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8820 soname_spec='${libname}${release}${shared_ext}$major' 8821 shlibpath_var=LD_LIBRARY_PATH 8822 shlibpath_overrides_runpath=yes 8823 hardcode_into_libs=yes 8824 # ldd complains unless libraries are executable 8825 postinstall_cmds='chmod +x $lib' 8826 ;; 8827 8828sunos4*) 8829 version_type=sunos 8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8832 shlibpath_var=LD_LIBRARY_PATH 8833 shlibpath_overrides_runpath=yes 8834 if test "$with_gnu_ld" = yes; then 8835 need_lib_prefix=no 8836 fi 8837 need_version=yes 8838 ;; 8839 8840sysv4 | sysv4.3*) 8841 version_type=linux 8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8843 soname_spec='${libname}${release}${shared_ext}$major' 8844 shlibpath_var=LD_LIBRARY_PATH 8845 case $host_vendor in 8846 sni) 8847 shlibpath_overrides_runpath=no 8848 need_lib_prefix=no 8849 runpath_var=LD_RUN_PATH 8850 ;; 8851 siemens) 8852 need_lib_prefix=no 8853 ;; 8854 motorola) 8855 need_lib_prefix=no 8856 need_version=no 8857 shlibpath_overrides_runpath=no 8858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8859 ;; 8860 esac 8861 ;; 8862 8863sysv4*MP*) 8864 if test -d /usr/nec ;then 8865 version_type=linux 8866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8867 soname_spec='$libname${shared_ext}.$major' 8868 shlibpath_var=LD_LIBRARY_PATH 8869 fi 8870 ;; 8871 8872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8873 version_type=freebsd-elf 8874 need_lib_prefix=no 8875 need_version=no 8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 shlibpath_var=LD_LIBRARY_PATH 8879 shlibpath_overrides_runpath=yes 8880 hardcode_into_libs=yes 8881 if test "$with_gnu_ld" = yes; then 8882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8883 else 8884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8885 case $host_os in 8886 sco3.2v5*) 8887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8888 ;; 8889 esac 8890 fi 8891 sys_lib_dlsearch_path_spec='/usr/lib' 8892 ;; 8893 8894tpf*) 8895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 8896 version_type=linux 8897 need_lib_prefix=no 8898 need_version=no 8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8900 shlibpath_var=LD_LIBRARY_PATH 8901 shlibpath_overrides_runpath=no 8902 hardcode_into_libs=yes 8903 ;; 8904 8905uts4*) 8906 version_type=linux 8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8908 soname_spec='${libname}${release}${shared_ext}$major' 8909 shlibpath_var=LD_LIBRARY_PATH 8910 ;; 8911 8912*) 8913 dynamic_linker=no 8914 ;; 8915esac 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 8917$as_echo "$dynamic_linker" >&6; } 8918test "$dynamic_linker" = no && can_build_shared=no 8919 8920variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8921if test "$GCC" = yes; then 8922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8923fi 8924 8925if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 8926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 8927fi 8928if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 8929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 8930fi 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9019$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9020hardcode_action= 9021if test -n "$hardcode_libdir_flag_spec" || 9022 test -n "$runpath_var" || 9023 test "X$hardcode_automatic" = "Xyes" ; then 9024 9025 # We can hardcode non-existent directories. 9026 if test "$hardcode_direct" != no && 9027 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9028 # have to relink, otherwise we might link with an installed library 9029 # when we should be linking with a yet-to-be-installed one 9030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9031 test "$hardcode_minus_L" != no; then 9032 # Linking always hardcodes the temporary library directory. 9033 hardcode_action=relink 9034 else 9035 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9036 hardcode_action=immediate 9037 fi 9038else 9039 # We cannot hardcode anything, or else we can only hardcode existing 9040 # directories. 9041 hardcode_action=unsupported 9042fi 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9044$as_echo "$hardcode_action" >&6; } 9045 9046if test "$hardcode_action" = relink || 9047 test "$inherit_rpath" = yes; then 9048 # Fast installation is not supported 9049 enable_fast_install=no 9050elif test "$shlibpath_overrides_runpath" = yes || 9051 test "$enable_shared" = no; then 9052 # Fast installation is not necessary 9053 enable_fast_install=needless 9054fi 9055 9056 9057 9058 9059 9060 9061 if test "x$enable_dlopen" != xyes; then 9062 enable_dlopen=unknown 9063 enable_dlopen_self=unknown 9064 enable_dlopen_self_static=unknown 9065else 9066 lt_cv_dlopen=no 9067 lt_cv_dlopen_libs= 9068 9069 case $host_os in 9070 beos*) 9071 lt_cv_dlopen="load_add_on" 9072 lt_cv_dlopen_libs= 9073 lt_cv_dlopen_self=yes 9074 ;; 9075 9076 mingw* | pw32* | cegcc*) 9077 lt_cv_dlopen="LoadLibrary" 9078 lt_cv_dlopen_libs= 9079 ;; 9080 9081 cygwin*) 9082 lt_cv_dlopen="dlopen" 9083 lt_cv_dlopen_libs= 9084 ;; 9085 9086 darwin*) 9087 # if libdl is installed we need to link against it 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9089$as_echo_n "checking for dlopen in -ldl... " >&6; } 9090if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 ac_check_lib_save_LIBS=$LIBS 9094LIBS="-ldl $LIBS" 9095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9096/* end confdefs.h. */ 9097 9098/* Override any GCC internal prototype to avoid an error. 9099 Use char because int might match the return type of a GCC 9100 builtin and then its argument prototype would still apply. */ 9101#ifdef __cplusplus 9102extern "C" 9103#endif 9104char dlopen (); 9105int 9106main () 9107{ 9108return dlopen (); 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113if ac_fn_c_try_link "$LINENO"; then : 9114 ac_cv_lib_dl_dlopen=yes 9115else 9116 ac_cv_lib_dl_dlopen=no 9117fi 9118rm -f core conftest.err conftest.$ac_objext \ 9119 conftest$ac_exeext conftest.$ac_ext 9120LIBS=$ac_check_lib_save_LIBS 9121fi 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9123$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9124if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9126else 9127 9128 lt_cv_dlopen="dyld" 9129 lt_cv_dlopen_libs= 9130 lt_cv_dlopen_self=yes 9131 9132fi 9133 9134 ;; 9135 9136 *) 9137 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9138if test "x$ac_cv_func_shl_load" = x""yes; then : 9139 lt_cv_dlopen="shl_load" 9140else 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9142$as_echo_n "checking for shl_load in -ldld... " >&6; } 9143if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9144 $as_echo_n "(cached) " >&6 9145else 9146 ac_check_lib_save_LIBS=$LIBS 9147LIBS="-ldld $LIBS" 9148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149/* end confdefs.h. */ 9150 9151/* Override any GCC internal prototype to avoid an error. 9152 Use char because int might match the return type of a GCC 9153 builtin and then its argument prototype would still apply. */ 9154#ifdef __cplusplus 9155extern "C" 9156#endif 9157char shl_load (); 9158int 9159main () 9160{ 9161return shl_load (); 9162 ; 9163 return 0; 9164} 9165_ACEOF 9166if ac_fn_c_try_link "$LINENO"; then : 9167 ac_cv_lib_dld_shl_load=yes 9168else 9169 ac_cv_lib_dld_shl_load=no 9170fi 9171rm -f core conftest.err conftest.$ac_objext \ 9172 conftest$ac_exeext conftest.$ac_ext 9173LIBS=$ac_check_lib_save_LIBS 9174fi 9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9176$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9177if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9179else 9180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9181if test "x$ac_cv_func_dlopen" = x""yes; then : 9182 lt_cv_dlopen="dlopen" 9183else 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9185$as_echo_n "checking for dlopen in -ldl... " >&6; } 9186if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9187 $as_echo_n "(cached) " >&6 9188else 9189 ac_check_lib_save_LIBS=$LIBS 9190LIBS="-ldl $LIBS" 9191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193 9194/* Override any GCC internal prototype to avoid an error. 9195 Use char because int might match the return type of a GCC 9196 builtin and then its argument prototype would still apply. */ 9197#ifdef __cplusplus 9198extern "C" 9199#endif 9200char dlopen (); 9201int 9202main () 9203{ 9204return dlopen (); 9205 ; 9206 return 0; 9207} 9208_ACEOF 9209if ac_fn_c_try_link "$LINENO"; then : 9210 ac_cv_lib_dl_dlopen=yes 9211else 9212 ac_cv_lib_dl_dlopen=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext \ 9215 conftest$ac_exeext conftest.$ac_ext 9216LIBS=$ac_check_lib_save_LIBS 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9219$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9220if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9222else 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9224$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9225if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 ac_check_lib_save_LIBS=$LIBS 9229LIBS="-lsvld $LIBS" 9230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232 9233/* Override any GCC internal prototype to avoid an error. 9234 Use char because int might match the return type of a GCC 9235 builtin and then its argument prototype would still apply. */ 9236#ifdef __cplusplus 9237extern "C" 9238#endif 9239char dlopen (); 9240int 9241main () 9242{ 9243return dlopen (); 9244 ; 9245 return 0; 9246} 9247_ACEOF 9248if ac_fn_c_try_link "$LINENO"; then : 9249 ac_cv_lib_svld_dlopen=yes 9250else 9251 ac_cv_lib_svld_dlopen=no 9252fi 9253rm -f core conftest.err conftest.$ac_objext \ 9254 conftest$ac_exeext conftest.$ac_ext 9255LIBS=$ac_check_lib_save_LIBS 9256fi 9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9258$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9259if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 9260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9261else 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9263$as_echo_n "checking for dld_link in -ldld... " >&6; } 9264if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 ac_check_lib_save_LIBS=$LIBS 9268LIBS="-ldld $LIBS" 9269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271 9272/* Override any GCC internal prototype to avoid an error. 9273 Use char because int might match the return type of a GCC 9274 builtin and then its argument prototype would still apply. */ 9275#ifdef __cplusplus 9276extern "C" 9277#endif 9278char dld_link (); 9279int 9280main () 9281{ 9282return dld_link (); 9283 ; 9284 return 0; 9285} 9286_ACEOF 9287if ac_fn_c_try_link "$LINENO"; then : 9288 ac_cv_lib_dld_dld_link=yes 9289else 9290 ac_cv_lib_dld_dld_link=no 9291fi 9292rm -f core conftest.err conftest.$ac_objext \ 9293 conftest$ac_exeext conftest.$ac_ext 9294LIBS=$ac_check_lib_save_LIBS 9295fi 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9297$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9298if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 9299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9300fi 9301 9302 9303fi 9304 9305 9306fi 9307 9308 9309fi 9310 9311 9312fi 9313 9314 9315fi 9316 9317 ;; 9318 esac 9319 9320 if test "x$lt_cv_dlopen" != xno; then 9321 enable_dlopen=yes 9322 else 9323 enable_dlopen=no 9324 fi 9325 9326 case $lt_cv_dlopen in 9327 dlopen) 9328 save_CPPFLAGS="$CPPFLAGS" 9329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9330 9331 save_LDFLAGS="$LDFLAGS" 9332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9333 9334 save_LIBS="$LIBS" 9335 LIBS="$lt_cv_dlopen_libs $LIBS" 9336 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9338$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9339if test "${lt_cv_dlopen_self+set}" = set; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 if test "$cross_compiling" = yes; then : 9343 lt_cv_dlopen_self=cross 9344else 9345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9346 lt_status=$lt_dlunknown 9347 cat > conftest.$ac_ext <<_LT_EOF 9348#line 9348 "configure" 9349#include "confdefs.h" 9350 9351#if HAVE_DLFCN_H 9352#include <dlfcn.h> 9353#endif 9354 9355#include <stdio.h> 9356 9357#ifdef RTLD_GLOBAL 9358# define LT_DLGLOBAL RTLD_GLOBAL 9359#else 9360# ifdef DL_GLOBAL 9361# define LT_DLGLOBAL DL_GLOBAL 9362# else 9363# define LT_DLGLOBAL 0 9364# endif 9365#endif 9366 9367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9368 find out it does not work in some platform. */ 9369#ifndef LT_DLLAZY_OR_NOW 9370# ifdef RTLD_LAZY 9371# define LT_DLLAZY_OR_NOW RTLD_LAZY 9372# else 9373# ifdef DL_LAZY 9374# define LT_DLLAZY_OR_NOW DL_LAZY 9375# else 9376# ifdef RTLD_NOW 9377# define LT_DLLAZY_OR_NOW RTLD_NOW 9378# else 9379# ifdef DL_NOW 9380# define LT_DLLAZY_OR_NOW DL_NOW 9381# else 9382# define LT_DLLAZY_OR_NOW 0 9383# endif 9384# endif 9385# endif 9386# endif 9387#endif 9388 9389void fnord() { int i=42;} 9390int main () 9391{ 9392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9393 int status = $lt_dlunknown; 9394 9395 if (self) 9396 { 9397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9398 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9399 /* dlclose (self); */ 9400 } 9401 else 9402 puts (dlerror ()); 9403 9404 return status; 9405} 9406_LT_EOF 9407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9408 (eval $ac_link) 2>&5 9409 ac_status=$? 9410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9411 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9412 (./conftest; exit; ) >&5 2>/dev/null 9413 lt_status=$? 9414 case x$lt_status in 9415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9417 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9418 esac 9419 else : 9420 # compilation failed 9421 lt_cv_dlopen_self=no 9422 fi 9423fi 9424rm -fr conftest* 9425 9426 9427fi 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9429$as_echo "$lt_cv_dlopen_self" >&6; } 9430 9431 if test "x$lt_cv_dlopen_self" = xyes; then 9432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9434$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9435if test "${lt_cv_dlopen_self_static+set}" = set; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 if test "$cross_compiling" = yes; then : 9439 lt_cv_dlopen_self_static=cross 9440else 9441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9442 lt_status=$lt_dlunknown 9443 cat > conftest.$ac_ext <<_LT_EOF 9444#line 9444 "configure" 9445#include "confdefs.h" 9446 9447#if HAVE_DLFCN_H 9448#include <dlfcn.h> 9449#endif 9450 9451#include <stdio.h> 9452 9453#ifdef RTLD_GLOBAL 9454# define LT_DLGLOBAL RTLD_GLOBAL 9455#else 9456# ifdef DL_GLOBAL 9457# define LT_DLGLOBAL DL_GLOBAL 9458# else 9459# define LT_DLGLOBAL 0 9460# endif 9461#endif 9462 9463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9464 find out it does not work in some platform. */ 9465#ifndef LT_DLLAZY_OR_NOW 9466# ifdef RTLD_LAZY 9467# define LT_DLLAZY_OR_NOW RTLD_LAZY 9468# else 9469# ifdef DL_LAZY 9470# define LT_DLLAZY_OR_NOW DL_LAZY 9471# else 9472# ifdef RTLD_NOW 9473# define LT_DLLAZY_OR_NOW RTLD_NOW 9474# else 9475# ifdef DL_NOW 9476# define LT_DLLAZY_OR_NOW DL_NOW 9477# else 9478# define LT_DLLAZY_OR_NOW 0 9479# endif 9480# endif 9481# endif 9482# endif 9483#endif 9484 9485void fnord() { int i=42;} 9486int main () 9487{ 9488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9489 int status = $lt_dlunknown; 9490 9491 if (self) 9492 { 9493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9495 /* dlclose (self); */ 9496 } 9497 else 9498 puts (dlerror ()); 9499 9500 return status; 9501} 9502_LT_EOF 9503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9504 (eval $ac_link) 2>&5 9505 ac_status=$? 9506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9508 (./conftest; exit; ) >&5 2>/dev/null 9509 lt_status=$? 9510 case x$lt_status in 9511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9513 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9514 esac 9515 else : 9516 # compilation failed 9517 lt_cv_dlopen_self_static=no 9518 fi 9519fi 9520rm -fr conftest* 9521 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 9525$as_echo "$lt_cv_dlopen_self_static" >&6; } 9526 fi 9527 9528 CPPFLAGS="$save_CPPFLAGS" 9529 LDFLAGS="$save_LDFLAGS" 9530 LIBS="$save_LIBS" 9531 ;; 9532 esac 9533 9534 case $lt_cv_dlopen_self in 9535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9536 *) enable_dlopen_self=unknown ;; 9537 esac 9538 9539 case $lt_cv_dlopen_self_static in 9540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9541 *) enable_dlopen_self_static=unknown ;; 9542 esac 9543fi 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561striplib= 9562old_striplib= 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9564$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9565if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9566 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9567 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9569$as_echo "yes" >&6; } 9570else 9571# FIXME - insert some real tests, host_os isn't really good enough 9572 case $host_os in 9573 darwin*) 9574 if test -n "$STRIP" ; then 9575 striplib="$STRIP -x" 9576 old_striplib="$STRIP -S" 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9578$as_echo "yes" >&6; } 9579 else 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9581$as_echo "no" >&6; } 9582 fi 9583 ;; 9584 *) 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9586$as_echo "no" >&6; } 9587 ;; 9588 esac 9589fi 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 # Report which library types will actually be built 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 9604$as_echo_n "checking if libtool supports shared libraries... " >&6; } 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 9606$as_echo "$can_build_shared" >&6; } 9607 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 9609$as_echo_n "checking whether to build shared libraries... " >&6; } 9610 test "$can_build_shared" = "no" && enable_shared=no 9611 9612 # On AIX, shared libraries and static libraries use the same namespace, and 9613 # are all built from PIC. 9614 case $host_os in 9615 aix3*) 9616 test "$enable_shared" = yes && enable_static=no 9617 if test -n "$RANLIB"; then 9618 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9619 postinstall_cmds='$RANLIB $lib' 9620 fi 9621 ;; 9622 9623 aix[4-9]*) 9624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9625 test "$enable_shared" = yes && enable_static=no 9626 fi 9627 ;; 9628 esac 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 9630$as_echo "$enable_shared" >&6; } 9631 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 9633$as_echo_n "checking whether to build static libraries... " >&6; } 9634 # Make sure either enable_shared or enable_static is yes. 9635 test "$enable_shared" = yes || enable_static=yes 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 9637$as_echo "$enable_static" >&6; } 9638 9639 9640 9641 9642fi 9643ac_ext=c 9644ac_cpp='$CPP $CPPFLAGS' 9645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9647ac_compiler_gnu=$ac_cv_c_compiler_gnu 9648 9649CC="$lt_save_CC" 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 ac_config_commands="$ac_config_commands libtool" 9664 9665 9666 9667 9668# Only expand once: 9669 9670 9671# Find a good install program. We prefer a C program (faster), 9672# so one script is as good as another. But avoid the broken or 9673# incompatible versions: 9674# SysV /etc/install, /usr/sbin/install 9675# SunOS /usr/etc/install 9676# IRIX /sbin/install 9677# AIX /bin/install 9678# AmigaOS /C/install, which installs bootblocks on floppy discs 9679# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9680# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9681# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9682# OS/2's system install, which has a completely different semantic 9683# ./install, which can be erroneously created by make from ./install.sh. 9684# Reject install programs that cannot install multiple files. 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9686$as_echo_n "checking for a BSD-compatible install... " >&6; } 9687if test -z "$INSTALL"; then 9688if test "${ac_cv_path_install+set}" = set; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9692for as_dir in $PATH 9693do 9694 IFS=$as_save_IFS 9695 test -z "$as_dir" && as_dir=. 9696 # Account for people who put trailing slashes in PATH elements. 9697case $as_dir/ in #(( 9698 ./ | .// | /[cC]/* | \ 9699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9701 /usr/ucb/* ) ;; 9702 *) 9703 # OSF1 and SCO ODT 3.0 have their own names for install. 9704 # Don't use installbsd from OSF since it installs stuff as root 9705 # by default. 9706 for ac_prog in ginstall scoinst install; do 9707 for ac_exec_ext in '' $ac_executable_extensions; do 9708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 9709 if test $ac_prog = install && 9710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9711 # AIX install. It has an incompatible calling convention. 9712 : 9713 elif test $ac_prog = install && 9714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9715 # program-specific install script used by HP pwplus--don't use. 9716 : 9717 else 9718 rm -rf conftest.one conftest.two conftest.dir 9719 echo one > conftest.one 9720 echo two > conftest.two 9721 mkdir conftest.dir 9722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9723 test -s conftest.one && test -s conftest.two && 9724 test -s conftest.dir/conftest.one && 9725 test -s conftest.dir/conftest.two 9726 then 9727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9728 break 3 9729 fi 9730 fi 9731 fi 9732 done 9733 done 9734 ;; 9735esac 9736 9737 done 9738IFS=$as_save_IFS 9739 9740rm -rf conftest.one conftest.two conftest.dir 9741 9742fi 9743 if test "${ac_cv_path_install+set}" = set; then 9744 INSTALL=$ac_cv_path_install 9745 else 9746 # As a last resort, use the slow shell script. Don't cache a 9747 # value for INSTALL within a source directory, because that will 9748 # break other packages using the cache if that directory is 9749 # removed, or if the value is a relative name. 9750 INSTALL=$ac_install_sh 9751 fi 9752fi 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9754$as_echo "$INSTALL" >&6; } 9755 9756# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9757# It thinks the first close brace ends the variable substitution. 9758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9759 9760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9761 9762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9763 9764CC=${CC:-cc} 9765 9766HOSTCC=${HOSTCC:-cc} 9767 9768 9769 9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 9771$as_echo_n "checking target system type... " >&6; } 9772if test "${ac_cv_target+set}" = set; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 if test "x$target_alias" = x; then 9776 ac_cv_target=$ac_cv_host 9777else 9778 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 9779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 9780fi 9781 9782fi 9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 9784$as_echo "$ac_cv_target" >&6; } 9785case $ac_cv_target in 9786*-*-*) ;; 9787*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 9788esac 9789target=$ac_cv_target 9790ac_save_IFS=$IFS; IFS='-' 9791set x $ac_cv_target 9792shift 9793target_cpu=$1 9794target_vendor=$2 9795shift; shift 9796# Remember, the first character of IFS is used to create $*, 9797# except with old shells: 9798target_os=$* 9799IFS=$ac_save_IFS 9800case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 9801 9802 9803# The aliases save the names the user supplied, while $host etc. 9804# will get canonicalized. 9805test -n "$target_alias" && 9806 test "$program_prefix$program_suffix$program_transform_name" = \ 9807 NONENONEs,x,x, && 9808 program_prefix=${target_alias}- 9809 9810########## 9811# Handle the --prefix option 9812# 9813if test "${prefix}" = "NONE" ; then 9814 prefix=/usr/local 9815fi 9816if test "${exec_prefix}" = "NONE" ; then 9817 exec_prefix=$prefix 9818fi 9819eval libdir="$libdir" 9820 9821########## 9822# Where to place the .jar file(s) 9823# 9824 9825# Check whether --with-jardir was given. 9826if test "${with_jardir+set}" = set; then : 9827 withval=$with_jardir; JAR_DIR=$withval 9828fi 9829 9830if test "x$JAR_DIR" = "x" ; then 9831 JAR_DIR_UNSPEC=yes 9832 JAR_DIR=$prefix/share/java 9833fi 9834 9835########## 9836# Find SQLite header file and library 9837# 9838 9839# Check whether --with-sqlite was given. 9840if test "${with_sqlite+set}" = set; then : 9841 withval=$with_sqlite; SQLITE_DIR=$withval 9842fi 9843 9844if test ! -n "$SQLITE_DIR" -a -d "$SQLITE_DIR" ; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite2 directory $SQLITE_DIR does not exist" >&5 9846$as_echo "$as_me: WARNING: SQLite2 directory $SQLITE_DIR does not exist" >&2;} 9847fi 9848 9849SQLITE_INC="" 9850SQLITE_LIB="" 9851HAVE_SQLITE2=0 9852 9853if test "$with_sqlite" != "no" ; then 9854 if test -z "$SQLITE_DIR" ; then 9855 SQLITE_DIR="../sqlite /usr /usr/local /opt" 9856 fi 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite header and library" >&5 9858$as_echo_n "checking for SQLite header and library... " >&6; } 9859 SQLITE_INC=UNKNOWN 9860 SQLITE_LIB=UNKNOWN 9861 for i in $SQLITE_DIR ; do 9862 if test -r $i/sqlite.h ; then 9863 if test -r $i/libsqlite.la ; then 9864 SQLITE_INC="-I$i" 9865 SQLITE_LIB="$i/libsqlite.la" 9866 SQLITE_LIBDIR="-L$i" 9867 break 9868 elif test -r $i/libsqlite.a ; then 9869 SQLITE_INC="-I$i" 9870 SQLITE_LIB="$i/libsqlite.a" 9871 SQLITE_LIBDIR="-L$i" 9872 break 9873 fi 9874 elif test -r $i/include/sqlite.h ; then 9875 for lib in lib64 lib ; do 9876 if test -r $i/$lib/libsqlite.la ; then 9877 SQLITE_INC="-I$i/include" 9878 SQLITE_LIB="$i/$lib/libsqlite.la" 9879 SQLITE_LIBDIR="-L$i/$lib" 9880 break 9881 elif test -r $i/$lib/libsqlite.a ; then 9882 SQLITE_INC="-I$i/include" 9883 SQLITE_LIB="$i/$lib/libsqlite.a" 9884 SQLITE_LIBDIR="-L$i/$lib" 9885 break 9886 elif test -r $i/$lib/libsqlite.so ; then 9887 SQLITE_INC="-I$i/include" 9888 SQLITE_LIB="-lsqlite" 9889 SQLITE_LIBDIR="-L$i/$lib" 9890 break 9891 fi 9892 done 9893 if test "$SQLITE_LIB" != "UNKNOWN" ; then 9894 break 9895 fi 9896 fi 9897 done 9898 if test "$SQLITE_LIB" = "UNKNOWN" ; then 9899 lib=`pkg-config sqlite --libs 2>/dev/null` 9900 if test -n "$lib" ; then 9901 SQLITE_INC=`pkg-config sqlite --cflags-only-I` 9902 SQLITE_LIB="$lib" 9903 SQLITE_LIBDIR=`pkg-config sqlite --libs-only-L` 9904 fi 9905 fi 9906 if test "$SQLITE_INC" = "UNKNOWN" -o "$SQLITE_LIB" = "UNKNOWN" ; then 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9908$as_echo "no" >&6; } 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite2 header files and/or library not found" >&5 9910$as_echo "$as_me: WARNING: SQLite2 header files and/or library not found" >&2;} 9911 SQLITE_INC="" 9912 SQLITE_LIB="" 9913 HAVE_SQLITE2=0 9914 else 9915 HAVE_SQLITE2=1 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9917$as_echo "yes" >&6; } 9918 fi 9919fi 9920 9921 9922 9923 9924########## 9925# Check SQLite features 9926# 9927HAVE_SQLITE_FUNCTION_TYPE=0 9928HAVE_SQLITE_OPEN_AUX_FILE=0 9929HAVE_SQLITE_SET_AUTHORIZER=0 9930HAVE_SQLITE_TRACE=0 9931HAVE_SQLITE_COMPILE=0 9932HAVE_SQLITE_PROGRESS_HANDLER=0 9933if test "$HAVE_SQLITE2" = 1 ; then 9934 saved_CFLAGS=$CFLAGS 9935 CFLAGS="$CFLAGS $SQLITE_INC" 9936 saved_LIBS=$LIBS 9937 LIBS="$LIBS $SQLITE_LIBDIR" 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_function_type in -lsqlite" >&5 9939$as_echo_n "checking for sqlite_function_type in -lsqlite... " >&6; } 9940if test "${ac_cv_lib_sqlite_sqlite_function_type+set}" = set; then : 9941 $as_echo_n "(cached) " >&6 9942else 9943 ac_check_lib_save_LIBS=$LIBS 9944LIBS="-lsqlite $LIBS" 9945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9946/* end confdefs.h. */ 9947 9948/* Override any GCC internal prototype to avoid an error. 9949 Use char because int might match the return type of a GCC 9950 builtin and then its argument prototype would still apply. */ 9951#ifdef __cplusplus 9952extern "C" 9953#endif 9954char sqlite_function_type (); 9955int 9956main () 9957{ 9958return sqlite_function_type (); 9959 ; 9960 return 0; 9961} 9962_ACEOF 9963if ac_fn_c_try_link "$LINENO"; then : 9964 ac_cv_lib_sqlite_sqlite_function_type=yes 9965else 9966 ac_cv_lib_sqlite_sqlite_function_type=no 9967fi 9968rm -f core conftest.err conftest.$ac_objext \ 9969 conftest$ac_exeext conftest.$ac_ext 9970LIBS=$ac_check_lib_save_LIBS 9971fi 9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_function_type" >&5 9973$as_echo "$ac_cv_lib_sqlite_sqlite_function_type" >&6; } 9974if test "x$ac_cv_lib_sqlite_sqlite_function_type" = x""yes; then : 9975 HAVE_SQLITE_FUNCTION_TYPE=1 9976else 9977 HAVE_SQLITE_FUNCTION_TYPE=0 9978fi 9979 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open_aux_file in -lsqlite" >&5 9981$as_echo_n "checking for sqlite_open_aux_file in -lsqlite... " >&6; } 9982if test "${ac_cv_lib_sqlite_sqlite_open_aux_file+set}" = set; then : 9983 $as_echo_n "(cached) " >&6 9984else 9985 ac_check_lib_save_LIBS=$LIBS 9986LIBS="-lsqlite $LIBS" 9987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989 9990/* Override any GCC internal prototype to avoid an error. 9991 Use char because int might match the return type of a GCC 9992 builtin and then its argument prototype would still apply. */ 9993#ifdef __cplusplus 9994extern "C" 9995#endif 9996char sqlite_open_aux_file (); 9997int 9998main () 9999{ 10000return sqlite_open_aux_file (); 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005if ac_fn_c_try_link "$LINENO"; then : 10006 ac_cv_lib_sqlite_sqlite_open_aux_file=yes 10007else 10008 ac_cv_lib_sqlite_sqlite_open_aux_file=no 10009fi 10010rm -f core conftest.err conftest.$ac_objext \ 10011 conftest$ac_exeext conftest.$ac_ext 10012LIBS=$ac_check_lib_save_LIBS 10013fi 10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open_aux_file" >&5 10015$as_echo "$ac_cv_lib_sqlite_sqlite_open_aux_file" >&6; } 10016if test "x$ac_cv_lib_sqlite_sqlite_open_aux_file" = x""yes; then : 10017 HAVE_SQLITE_OPEN_AUX_FILE=1 10018else 10019 HAVE_SQLITE_OPEN_AUX_FILE=0 10020fi 10021 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_set_authorizer in -lsqlite" >&5 10023$as_echo_n "checking for sqlite_set_authorizer in -lsqlite... " >&6; } 10024if test "${ac_cv_lib_sqlite_sqlite_set_authorizer+set}" = set; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 ac_check_lib_save_LIBS=$LIBS 10028LIBS="-lsqlite $LIBS" 10029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031 10032/* Override any GCC internal prototype to avoid an error. 10033 Use char because int might match the return type of a GCC 10034 builtin and then its argument prototype would still apply. */ 10035#ifdef __cplusplus 10036extern "C" 10037#endif 10038char sqlite_set_authorizer (); 10039int 10040main () 10041{ 10042return sqlite_set_authorizer (); 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047if ac_fn_c_try_link "$LINENO"; then : 10048 ac_cv_lib_sqlite_sqlite_set_authorizer=yes 10049else 10050 ac_cv_lib_sqlite_sqlite_set_authorizer=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext \ 10053 conftest$ac_exeext conftest.$ac_ext 10054LIBS=$ac_check_lib_save_LIBS 10055fi 10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_set_authorizer" >&5 10057$as_echo "$ac_cv_lib_sqlite_sqlite_set_authorizer" >&6; } 10058if test "x$ac_cv_lib_sqlite_sqlite_set_authorizer" = x""yes; then : 10059 HAVE_SQLITE_SET_AUTHORIZER=1 10060else 10061 HAVE_SQLITE_SET_AUTHORIZER=0 10062fi 10063 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_trace in -lsqlite" >&5 10065$as_echo_n "checking for sqlite_trace in -lsqlite... " >&6; } 10066if test "${ac_cv_lib_sqlite_sqlite_trace+set}" = set; then : 10067 $as_echo_n "(cached) " >&6 10068else 10069 ac_check_lib_save_LIBS=$LIBS 10070LIBS="-lsqlite $LIBS" 10071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10072/* end confdefs.h. */ 10073 10074/* Override any GCC internal prototype to avoid an error. 10075 Use char because int might match the return type of a GCC 10076 builtin and then its argument prototype would still apply. */ 10077#ifdef __cplusplus 10078extern "C" 10079#endif 10080char sqlite_trace (); 10081int 10082main () 10083{ 10084return sqlite_trace (); 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089if ac_fn_c_try_link "$LINENO"; then : 10090 ac_cv_lib_sqlite_sqlite_trace=yes 10091else 10092 ac_cv_lib_sqlite_sqlite_trace=no 10093fi 10094rm -f core conftest.err conftest.$ac_objext \ 10095 conftest$ac_exeext conftest.$ac_ext 10096LIBS=$ac_check_lib_save_LIBS 10097fi 10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_trace" >&5 10099$as_echo "$ac_cv_lib_sqlite_sqlite_trace" >&6; } 10100if test "x$ac_cv_lib_sqlite_sqlite_trace" = x""yes; then : 10101 HAVE_SQLITE_TRACE=1 10102else 10103 HAVE_SQLITE_TRACE=0 10104fi 10105 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_compile in -lsqlite" >&5 10107$as_echo_n "checking for sqlite_compile in -lsqlite... " >&6; } 10108if test "${ac_cv_lib_sqlite_sqlite_compile+set}" = set; then : 10109 $as_echo_n "(cached) " >&6 10110else 10111 ac_check_lib_save_LIBS=$LIBS 10112LIBS="-lsqlite $LIBS" 10113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115 10116/* Override any GCC internal prototype to avoid an error. 10117 Use char because int might match the return type of a GCC 10118 builtin and then its argument prototype would still apply. */ 10119#ifdef __cplusplus 10120extern "C" 10121#endif 10122char sqlite_compile (); 10123int 10124main () 10125{ 10126return sqlite_compile (); 10127 ; 10128 return 0; 10129} 10130_ACEOF 10131if ac_fn_c_try_link "$LINENO"; then : 10132 ac_cv_lib_sqlite_sqlite_compile=yes 10133else 10134 ac_cv_lib_sqlite_sqlite_compile=no 10135fi 10136rm -f core conftest.err conftest.$ac_objext \ 10137 conftest$ac_exeext conftest.$ac_ext 10138LIBS=$ac_check_lib_save_LIBS 10139fi 10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_compile" >&5 10141$as_echo "$ac_cv_lib_sqlite_sqlite_compile" >&6; } 10142if test "x$ac_cv_lib_sqlite_sqlite_compile" = x""yes; then : 10143 HAVE_SQLITE_COMPILE=1 10144else 10145 HAVE_SQLITE_COMPILE=0 10146fi 10147 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_progress_handler in -lsqlite" >&5 10149$as_echo_n "checking for sqlite_progress_handler in -lsqlite... " >&6; } 10150if test "${ac_cv_lib_sqlite_sqlite_progress_handler+set}" = set; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 ac_check_lib_save_LIBS=$LIBS 10154LIBS="-lsqlite $LIBS" 10155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157 10158/* Override any GCC internal prototype to avoid an error. 10159 Use char because int might match the return type of a GCC 10160 builtin and then its argument prototype would still apply. */ 10161#ifdef __cplusplus 10162extern "C" 10163#endif 10164char sqlite_progress_handler (); 10165int 10166main () 10167{ 10168return sqlite_progress_handler (); 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173if ac_fn_c_try_link "$LINENO"; then : 10174 ac_cv_lib_sqlite_sqlite_progress_handler=yes 10175else 10176 ac_cv_lib_sqlite_sqlite_progress_handler=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext \ 10179 conftest$ac_exeext conftest.$ac_ext 10180LIBS=$ac_check_lib_save_LIBS 10181fi 10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_progress_handler" >&5 10183$as_echo "$ac_cv_lib_sqlite_sqlite_progress_handler" >&6; } 10184if test "x$ac_cv_lib_sqlite_sqlite_progress_handler" = x""yes; then : 10185 HAVE_SQLITE_PROGRESS_HANDLER=1 10186else 10187 HAVE_SQLITE_PROGRESS_HANDLER=0 10188fi 10189 10190 LIBS=$saved_LIBS 10191 CFLAGS=$saved_CFLAGS 10192fi 10193 10194 10195 10196 10197 10198 10199 10200########## 10201# Find SQLite3 header file and library 10202# 10203 10204# Check whether --with-sqlite3 was given. 10205if test "${with_sqlite3+set}" = set; then : 10206 withval=$with_sqlite3; SQLITE3_DIR=$withval 10207fi 10208 10209if test ! -n "$SQLITE3_DIR" -a -d "$SQLITE3_DIR" ; then 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&5 10211$as_echo "$as_me: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&2;} 10212fi 10213 10214if test -z "$SQLITE3_DIR" ; then 10215 SQLITE3_DIR="../sqlite /usr /usr/local /opt" 10216fi 10217 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 header and library" >&5 10219$as_echo_n "checking for SQLite3 header and library... " >&6; } 10220SQLITE3_INC=UNKNOWN 10221SQLITE3_LIB=UNKNOWN 10222for i in $SQLITE3_DIR ; do 10223 if test -r $i/sqlite3.h ; then 10224 if test -r $i/sqlite3.c ; then 10225 SQLITE3_INC="-I$i" 10226 SQLITE3_LIB="unknown" 10227 SQLITE3_LIBDIR="" 10228 SQLITE3_A10N_C="$i/sqlite3.c" 10229 SQLITE3_A10N_O="sqlite3.lo" 10230 break 10231 elif test -r $i/libsqlite3.la ; then 10232 SQLITE3_INC="-I$i" 10233 SQLITE3_LIB="$i/libsqlite3.la" 10234 SQLITE3_LIBDIR="-L$i" 10235 break 10236 elif test -r $i/libsqlite3.a ; then 10237 SQLITE3_INC="-I$i" 10238 SQLITE3_LIB="$i/libsqlite3.a" 10239 SQLITE3_LIBDIR="-L$i" 10240 break 10241 elif test -r $i/see-sqlite3.c ; then 10242 SQLITE3_INC="-I$i" 10243 SQLITE3_LIB="unknown" 10244 SQLITE3_LIBDIR="" 10245 SQLITE3_A10N_C="$i/see-sqlite3.c" 10246 SQLITE3_A10N_O="see-sqlite3.lo" 10247 SQLITE3_IS_BUILD_WITH_SEE="yes" 10248 HAVE_SQLITE3_KEY=1 10249 break 10250 fi 10251 elif test -r $i/include/sqlite3.h ; then 10252 for lib in lib64 lib ; do 10253 if test -r $i/$lib/libsqlite3.la ; then 10254 SQLITE3_INC="-I$i/include" 10255 SQLITE3_LIB="$i/$lib/libsqlite3.la" 10256 SQLITE3_LIBDIR="-L$i/$lib" 10257 break 10258 elif test -r $i/$lib/libsqlite3.a ; then 10259 SQLITE3_INC="-I$i/include" 10260 SQLITE3_LIB="$i/$lib/libsqlite3.a" 10261 SQLITE3_LIBDIR="-L$i/$lib" 10262 break 10263 elif test -r $i/$lib/libsqlite3.so ; then 10264 SQLITE3_INC="-I$i/include" 10265 SQLITE3_LIB="-lsqlite3" 10266 SQLITE3_LIBDIR="-L$i/$lib" 10267 break 10268 fi 10269 done 10270 if test "$SQLITE3_LIB" != "UNKNOWN" ; then 10271 break 10272 fi 10273 fi 10274done 10275if test "$SQLITE3_LIB" = "UNKNOWN" ; then 10276 lib=`pkg-config sqlite3 --libs 2>/dev/null` 10277 if test -n "$lib" ; then 10278 SQLITE3_INC=`pkg-config sqlite3 --cflags-only-I` 10279 SQLITE3_LIB="$lib" 10280 SQLITE3_LIBDIR=`pkg-config sqlite3 --libs-only-L` 10281 fi 10282fi 10283if test "$SQLITE3_INC" = "UNKNOWN" -o "$SQLITE3_LIB" = "UNKNOWN" ; then 10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10285$as_echo "no" >&6; } 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 header files and/or library not found" >&5 10287$as_echo "$as_me: WARNING: SQLite3 header files and/or library not found" >&2;} 10288 SQLITE3_INC="" 10289 SQLITE3_LIB="" 10290 HAVE_SQLITE3=0 10291elif test -n "$SQLITE3_A10N_C" ; then 10292 SQLITE3_LIB="" 10293 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1" 10294 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_DLL=1" 10295 HAVE_SQLITE3=1 10296 if test "$SQLITE3_IS_BUILT_WITH_SEE" = "yes" ; then 10297 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_HAS_CODEC=1" 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using SEE" >&5 10299$as_echo "yes, using SEE" >&6; } 10300 else 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10302$as_echo "yes" >&6; } 10303 fi 10304else 10305 HAVE_SQLITE3=1 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10307$as_echo "yes" >&6; } 10308fi 10309 10310 10311 10312 10313########## 10314# Check SQLite3 features 10315# 10316# Check whether --enable-load-extension was given. 10317if test "${enable_load_extension+set}" = set; then : 10318 enableval=$enable_load_extension; 10319fi 10320 10321test "x$enable_load_extension" = "xyes" || enable_load_extension=no 10322HAVE_SQLITE3_MALLOC=0 10323HAVE_SQLITE3_PREPARE_V2=0 10324HAVE_SQLITE3_PREPARE16_V2=0 10325HAVE_SQLITE3_BIND_ZEROBLOB=0 10326HAVE_SQLITE3_CLEAR_BINDINGS=0 10327HAVE_SQLITE3_COLUMN_TABLE_NAME16=0 10328HAVE_SQLITE3_COLUMN_DATABASE_NAME16=0 10329HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=0 10330HAVE_SQLITE3_BIND_PARAMETER_COUNT=0 10331HAVE_SQLITE3_BIND_PARAMETER_NAME=0 10332HAVE_SQLITE3_BIND_PARAMETER_INDEX=0 10333HAVE_SQLITE3_RESULT_ZEROBLOB=0 10334HAVE_SQLITE3_INCRBLOBIO=0 10335HAVE_SQLITE3_KEY=0 10336HAVE_SQLITE3_SHARED_CACHE=0 10337HAVE_SQLITE3_OPEN_V2=0 10338HAVE_SQLITE3_LOAD_EXTENSION=0 10339HAVE_SQLITE3_BACKUPAPI=0 10340HAVE_SQLITE3_PROFILE=0 10341HAVE_SQLITE3_STATUS=0 10342HAVE_SQLITE3_DB_STATUS=0 10343HAVE_SQLITE3_STMT_STATUS=0 10344if test "$HAVE_SQLITE3" = 1 -a -n "$SQLITE3_A10N_C" ; then 10345 HAVE_SQLITE3_MALLOC=1 10346 HAVE_SQLITE3_PREPARE_V2=1 10347 HAVE_SQLITE3_PREPARE16_V2=1 10348 HAVE_SQLITE3_BIND_ZEROBLOB=1 10349 HAVE_SQLITE3_CLEAR_BINDINGS=1 10350 HAVE_SQLITE3_COLUMN_TABLE_NAME16=1 10351 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=1 10352 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=1 10353 HAVE_SQLITE3_BIND_PARAMETER_COUNT=1 10354 HAVE_SQLITE3_BIND_PARAMETER_NAME=1 10355 HAVE_SQLITE3_BIND_PARAMETER_INDEX=1 10356 HAVE_SQLITE3_RESULT_ZEROBLOB=1 10357 HAVE_SQLITE3_INCRBLOBIO=1 10358 HAVE_SQLITE3_SHARED_CACHE=1 10359 HAVE_SQLITE3_OPEN_V2=1 10360 if test "$enable_load_extension" = "yes" ; then 10361 HAVE_SQLITE3_LOAD_EXTENSION=1 10362 fi 10363 HAVE_SQLITE3_BACKUPAPI=1 10364 HAVE_SQLITE3_PROFILE=1 10365 HAVE_SQLITE3_STATUS=1 10366 HAVE_SQLITE3_DB_STATUS=1 10367 HAVE_SQLITE3_STMT_STATUS=1 10368fi 10369if test "$HAVE_SQLITE3" = 1 -a -z "$SQLITE3_A10N_C" ; then 10370 saved_CFLAGS=$CFLAGS 10371 CFLAGS="$CFLAGS $SQLITE3_INC" 10372 saved_LIBS=$LIBS 10373 LIBS="$LIBS $SQLITE3_LIBDIR" 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_malloc in -lsqlite3" >&5 10375$as_echo_n "checking for sqlite3_malloc in -lsqlite3... " >&6; } 10376if test "${ac_cv_lib_sqlite3_sqlite3_malloc+set}" = set; then : 10377 $as_echo_n "(cached) " >&6 10378else 10379 ac_check_lib_save_LIBS=$LIBS 10380LIBS="-lsqlite3 $LIBS" 10381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383 10384/* Override any GCC internal prototype to avoid an error. 10385 Use char because int might match the return type of a GCC 10386 builtin and then its argument prototype would still apply. */ 10387#ifdef __cplusplus 10388extern "C" 10389#endif 10390char sqlite3_malloc (); 10391int 10392main () 10393{ 10394return sqlite3_malloc (); 10395 ; 10396 return 0; 10397} 10398_ACEOF 10399if ac_fn_c_try_link "$LINENO"; then : 10400 ac_cv_lib_sqlite3_sqlite3_malloc=yes 10401else 10402 ac_cv_lib_sqlite3_sqlite3_malloc=no 10403fi 10404rm -f core conftest.err conftest.$ac_objext \ 10405 conftest$ac_exeext conftest.$ac_ext 10406LIBS=$ac_check_lib_save_LIBS 10407fi 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_malloc" >&5 10409$as_echo "$ac_cv_lib_sqlite3_sqlite3_malloc" >&6; } 10410if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = x""yes; then : 10411 HAVE_SQLITE3_MALLOC=1 10412else 10413 HAVE_SQLITE3_MALLOC=0 10414fi 10415 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 10417$as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; } 10418if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then : 10419 $as_echo_n "(cached) " >&6 10420else 10421 ac_check_lib_save_LIBS=$LIBS 10422LIBS="-lsqlite3 $LIBS" 10423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425 10426/* Override any GCC internal prototype to avoid an error. 10427 Use char because int might match the return type of a GCC 10428 builtin and then its argument prototype would still apply. */ 10429#ifdef __cplusplus 10430extern "C" 10431#endif 10432char sqlite3_prepare_v2 (); 10433int 10434main () 10435{ 10436return sqlite3_prepare_v2 (); 10437 ; 10438 return 0; 10439} 10440_ACEOF 10441if ac_fn_c_try_link "$LINENO"; then : 10442 ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes 10443else 10444 ac_cv_lib_sqlite3_sqlite3_prepare_v2=no 10445fi 10446rm -f core conftest.err conftest.$ac_objext \ 10447 conftest$ac_exeext conftest.$ac_ext 10448LIBS=$ac_check_lib_save_LIBS 10449fi 10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 10451$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; } 10452if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = x""yes; then : 10453 HAVE_SQLITE3_PREPARE_V2=1 10454else 10455 HAVE_SQLITE3_PREPARE_V2=0 10456fi 10457 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare16_v2 in -lsqlite3" >&5 10459$as_echo_n "checking for sqlite3_prepare16_v2 in -lsqlite3... " >&6; } 10460if test "${ac_cv_lib_sqlite3_sqlite3_prepare16_v2+set}" = set; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 ac_check_lib_save_LIBS=$LIBS 10464LIBS="-lsqlite3 $LIBS" 10465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467 10468/* Override any GCC internal prototype to avoid an error. 10469 Use char because int might match the return type of a GCC 10470 builtin and then its argument prototype would still apply. */ 10471#ifdef __cplusplus 10472extern "C" 10473#endif 10474char sqlite3_prepare16_v2 (); 10475int 10476main () 10477{ 10478return sqlite3_prepare16_v2 (); 10479 ; 10480 return 0; 10481} 10482_ACEOF 10483if ac_fn_c_try_link "$LINENO"; then : 10484 ac_cv_lib_sqlite3_sqlite3_prepare16_v2=yes 10485else 10486 ac_cv_lib_sqlite3_sqlite3_prepare16_v2=no 10487fi 10488rm -f core conftest.err conftest.$ac_objext \ 10489 conftest$ac_exeext conftest.$ac_ext 10490LIBS=$ac_check_lib_save_LIBS 10491fi 10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare16_v2" >&5 10493$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare16_v2" >&6; } 10494if test "x$ac_cv_lib_sqlite3_sqlite3_prepare16_v2" = x""yes; then : 10495 HAVE_SQLITE3_PREPARE16_V2=1 10496else 10497 HAVE_SQLITE3_PREPARE16_V2=0 10498fi 10499 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_zeroblob in -lsqlite3" >&5 10501$as_echo_n "checking for sqlite3_bind_zeroblob in -lsqlite3... " >&6; } 10502if test "${ac_cv_lib_sqlite3_sqlite3_bind_zeroblob+set}" = set; then : 10503 $as_echo_n "(cached) " >&6 10504else 10505 ac_check_lib_save_LIBS=$LIBS 10506LIBS="-lsqlite3 $LIBS" 10507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509 10510/* Override any GCC internal prototype to avoid an error. 10511 Use char because int might match the return type of a GCC 10512 builtin and then its argument prototype would still apply. */ 10513#ifdef __cplusplus 10514extern "C" 10515#endif 10516char sqlite3_bind_zeroblob (); 10517int 10518main () 10519{ 10520return sqlite3_bind_zeroblob (); 10521 ; 10522 return 0; 10523} 10524_ACEOF 10525if ac_fn_c_try_link "$LINENO"; then : 10526 ac_cv_lib_sqlite3_sqlite3_bind_zeroblob=yes 10527else 10528 ac_cv_lib_sqlite3_sqlite3_bind_zeroblob=no 10529fi 10530rm -f core conftest.err conftest.$ac_objext \ 10531 conftest$ac_exeext conftest.$ac_ext 10532LIBS=$ac_check_lib_save_LIBS 10533fi 10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" >&5 10535$as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" >&6; } 10536if test "x$ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" = x""yes; then : 10537 HAVE_SQLITE3_BIND_ZEROBLOB=1 10538else 10539 HAVE_SQLITE3_BIND_ZEROBLOB=0 10540fi 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_clear_bindings in -lsqlite3" >&5 10543$as_echo_n "checking for sqlite3_clear_bindings in -lsqlite3... " >&6; } 10544if test "${ac_cv_lib_sqlite3_sqlite3_clear_bindings+set}" = set; then : 10545 $as_echo_n "(cached) " >&6 10546else 10547 ac_check_lib_save_LIBS=$LIBS 10548LIBS="-lsqlite3 $LIBS" 10549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551 10552/* Override any GCC internal prototype to avoid an error. 10553 Use char because int might match the return type of a GCC 10554 builtin and then its argument prototype would still apply. */ 10555#ifdef __cplusplus 10556extern "C" 10557#endif 10558char sqlite3_clear_bindings (); 10559int 10560main () 10561{ 10562return sqlite3_clear_bindings (); 10563 ; 10564 return 0; 10565} 10566_ACEOF 10567if ac_fn_c_try_link "$LINENO"; then : 10568 ac_cv_lib_sqlite3_sqlite3_clear_bindings=yes 10569else 10570 ac_cv_lib_sqlite3_sqlite3_clear_bindings=no 10571fi 10572rm -f core conftest.err conftest.$ac_objext \ 10573 conftest$ac_exeext conftest.$ac_ext 10574LIBS=$ac_check_lib_save_LIBS 10575fi 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&5 10577$as_echo "$ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&6; } 10578if test "x$ac_cv_lib_sqlite3_sqlite3_clear_bindings" = x""yes; then : 10579 HAVE_SQLITE3_CLEAR_BINDINGS=1 10580else 10581 HAVE_SQLITE3_CLEAR_BINDINGS=0 10582fi 10583 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name16 in -lsqlite3" >&5 10585$as_echo_n "checking for sqlite3_column_table_name16 in -lsqlite3... " >&6; } 10586if test "${ac_cv_lib_sqlite3_sqlite3_column_table_name16+set}" = set; then : 10587 $as_echo_n "(cached) " >&6 10588else 10589 ac_check_lib_save_LIBS=$LIBS 10590LIBS="-lsqlite3 $LIBS" 10591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593 10594/* Override any GCC internal prototype to avoid an error. 10595 Use char because int might match the return type of a GCC 10596 builtin and then its argument prototype would still apply. */ 10597#ifdef __cplusplus 10598extern "C" 10599#endif 10600char sqlite3_column_table_name16 (); 10601int 10602main () 10603{ 10604return sqlite3_column_table_name16 (); 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO"; then : 10610 ac_cv_lib_sqlite3_sqlite3_column_table_name16=yes 10611else 10612 ac_cv_lib_sqlite3_sqlite3_column_table_name16=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext \ 10615 conftest$ac_exeext conftest.$ac_ext 10616LIBS=$ac_check_lib_save_LIBS 10617fi 10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name16" >&5 10619$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name16" >&6; } 10620if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name16" = x""yes; then : 10621 HAVE_SQLITE3_COLUMN_TABLE_NAME16=1 10622else 10623 HAVE_SQLITE3_COLUMN_TABLE_NAME16=0 10624fi 10625 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_database_name16 in -lsqlite3" >&5 10627$as_echo_n "checking for sqlite3_column_database_name16 in -lsqlite3... " >&6; } 10628if test "${ac_cv_lib_sqlite3_sqlite3_column_database_name16+set}" = set; then : 10629 $as_echo_n "(cached) " >&6 10630else 10631 ac_check_lib_save_LIBS=$LIBS 10632LIBS="-lsqlite3 $LIBS" 10633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635 10636/* Override any GCC internal prototype to avoid an error. 10637 Use char because int might match the return type of a GCC 10638 builtin and then its argument prototype would still apply. */ 10639#ifdef __cplusplus 10640extern "C" 10641#endif 10642char sqlite3_column_database_name16 (); 10643int 10644main () 10645{ 10646return sqlite3_column_database_name16 (); 10647 ; 10648 return 0; 10649} 10650_ACEOF 10651if ac_fn_c_try_link "$LINENO"; then : 10652 ac_cv_lib_sqlite3_sqlite3_column_database_name16=yes 10653else 10654 ac_cv_lib_sqlite3_sqlite3_column_database_name16=no 10655fi 10656rm -f core conftest.err conftest.$ac_objext \ 10657 conftest$ac_exeext conftest.$ac_ext 10658LIBS=$ac_check_lib_save_LIBS 10659fi 10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_database_name16" >&5 10661$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_database_name16" >&6; } 10662if test "x$ac_cv_lib_sqlite3_sqlite3_column_database_name16" = x""yes; then : 10663 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=1 10664else 10665 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=0 10666fi 10667 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_origin_name16 in -lsqlite3" >&5 10669$as_echo_n "checking for sqlite3_column_origin_name16 in -lsqlite3... " >&6; } 10670if test "${ac_cv_lib_sqlite3_sqlite3_column_origin_name16+set}" = set; then : 10671 $as_echo_n "(cached) " >&6 10672else 10673 ac_check_lib_save_LIBS=$LIBS 10674LIBS="-lsqlite3 $LIBS" 10675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10676/* end confdefs.h. */ 10677 10678/* Override any GCC internal prototype to avoid an error. 10679 Use char because int might match the return type of a GCC 10680 builtin and then its argument prototype would still apply. */ 10681#ifdef __cplusplus 10682extern "C" 10683#endif 10684char sqlite3_column_origin_name16 (); 10685int 10686main () 10687{ 10688return sqlite3_column_origin_name16 (); 10689 ; 10690 return 0; 10691} 10692_ACEOF 10693if ac_fn_c_try_link "$LINENO"; then : 10694 ac_cv_lib_sqlite3_sqlite3_column_origin_name16=yes 10695else 10696 ac_cv_lib_sqlite3_sqlite3_column_origin_name16=no 10697fi 10698rm -f core conftest.err conftest.$ac_objext \ 10699 conftest$ac_exeext conftest.$ac_ext 10700LIBS=$ac_check_lib_save_LIBS 10701fi 10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_origin_name16" >&5 10703$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_origin_name16" >&6; } 10704if test "x$ac_cv_lib_sqlite3_sqlite3_column_origin_name16" = x""yes; then : 10705 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=1 10706else 10707 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=0 10708fi 10709 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_count in -lsqlite3" >&5 10711$as_echo_n "checking for sqlite3_bind_parameter_count in -lsqlite3... " >&6; } 10712if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_count+set}" = set; then : 10713 $as_echo_n "(cached) " >&6 10714else 10715 ac_check_lib_save_LIBS=$LIBS 10716LIBS="-lsqlite3 $LIBS" 10717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718/* end confdefs.h. */ 10719 10720/* Override any GCC internal prototype to avoid an error. 10721 Use char because int might match the return type of a GCC 10722 builtin and then its argument prototype would still apply. */ 10723#ifdef __cplusplus 10724extern "C" 10725#endif 10726char sqlite3_bind_parameter_count (); 10727int 10728main () 10729{ 10730return sqlite3_bind_parameter_count (); 10731 ; 10732 return 0; 10733} 10734_ACEOF 10735if ac_fn_c_try_link "$LINENO"; then : 10736 ac_cv_lib_sqlite3_sqlite3_bind_parameter_count=yes 10737else 10738 ac_cv_lib_sqlite3_sqlite3_bind_parameter_count=no 10739fi 10740rm -f core conftest.err conftest.$ac_objext \ 10741 conftest$ac_exeext conftest.$ac_ext 10742LIBS=$ac_check_lib_save_LIBS 10743fi 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" >&5 10745$as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" >&6; } 10746if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" = x""yes; then : 10747 HAVE_SQLITE3_BIND_PARAMETER_COUNT=1 10748else 10749 HAVE_SQLITE3_BIND_PARAMETER_COUNT=0 10750fi 10751 10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_name in -lsqlite3" >&5 10753$as_echo_n "checking for sqlite3_bind_parameter_name in -lsqlite3... " >&6; } 10754if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_name+set}" = set; then : 10755 $as_echo_n "(cached) " >&6 10756else 10757 ac_check_lib_save_LIBS=$LIBS 10758LIBS="-lsqlite3 $LIBS" 10759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761 10762/* Override any GCC internal prototype to avoid an error. 10763 Use char because int might match the return type of a GCC 10764 builtin and then its argument prototype would still apply. */ 10765#ifdef __cplusplus 10766extern "C" 10767#endif 10768char sqlite3_bind_parameter_name (); 10769int 10770main () 10771{ 10772return sqlite3_bind_parameter_name (); 10773 ; 10774 return 0; 10775} 10776_ACEOF 10777if ac_fn_c_try_link "$LINENO"; then : 10778 ac_cv_lib_sqlite3_sqlite3_bind_parameter_name=yes 10779else 10780 ac_cv_lib_sqlite3_sqlite3_bind_parameter_name=no 10781fi 10782rm -f core conftest.err conftest.$ac_objext \ 10783 conftest$ac_exeext conftest.$ac_ext 10784LIBS=$ac_check_lib_save_LIBS 10785fi 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" >&5 10787$as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" >&6; } 10788if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" = x""yes; then : 10789 HAVE_SQLITE3_BIND_PARAMETER_NAME=1 10790else 10791 HAVE_SQLITE3_BIND_PARAMETER_NAME=0 10792fi 10793 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_index in -lsqlite3" >&5 10795$as_echo_n "checking for sqlite3_bind_parameter_index in -lsqlite3... " >&6; } 10796if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_index+set}" = set; then : 10797 $as_echo_n "(cached) " >&6 10798else 10799 ac_check_lib_save_LIBS=$LIBS 10800LIBS="-lsqlite3 $LIBS" 10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803 10804/* Override any GCC internal prototype to avoid an error. 10805 Use char because int might match the return type of a GCC 10806 builtin and then its argument prototype would still apply. */ 10807#ifdef __cplusplus 10808extern "C" 10809#endif 10810char sqlite3_bind_parameter_index (); 10811int 10812main () 10813{ 10814return sqlite3_bind_parameter_index (); 10815 ; 10816 return 0; 10817} 10818_ACEOF 10819if ac_fn_c_try_link "$LINENO"; then : 10820 ac_cv_lib_sqlite3_sqlite3_bind_parameter_index=yes 10821else 10822 ac_cv_lib_sqlite3_sqlite3_bind_parameter_index=no 10823fi 10824rm -f core conftest.err conftest.$ac_objext \ 10825 conftest$ac_exeext conftest.$ac_ext 10826LIBS=$ac_check_lib_save_LIBS 10827fi 10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" >&5 10829$as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" >&6; } 10830if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" = x""yes; then : 10831 HAVE_SQLITE3_BIND_PARAMETER_INDEX=1 10832else 10833 HAVE_SQLITE3_BIND_PARAMETER_INDEX=0 10834fi 10835 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_zeroblob in -lsqlite3" >&5 10837$as_echo_n "checking for sqlite3_result_zeroblob in -lsqlite3... " >&6; } 10838if test "${ac_cv_lib_sqlite3_sqlite3_result_zeroblob+set}" = set; then : 10839 $as_echo_n "(cached) " >&6 10840else 10841 ac_check_lib_save_LIBS=$LIBS 10842LIBS="-lsqlite3 $LIBS" 10843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844/* end confdefs.h. */ 10845 10846/* Override any GCC internal prototype to avoid an error. 10847 Use char because int might match the return type of a GCC 10848 builtin and then its argument prototype would still apply. */ 10849#ifdef __cplusplus 10850extern "C" 10851#endif 10852char sqlite3_result_zeroblob (); 10853int 10854main () 10855{ 10856return sqlite3_result_zeroblob (); 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861if ac_fn_c_try_link "$LINENO"; then : 10862 ac_cv_lib_sqlite3_sqlite3_result_zeroblob=yes 10863else 10864 ac_cv_lib_sqlite3_sqlite3_result_zeroblob=no 10865fi 10866rm -f core conftest.err conftest.$ac_objext \ 10867 conftest$ac_exeext conftest.$ac_ext 10868LIBS=$ac_check_lib_save_LIBS 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_zeroblob" >&5 10871$as_echo "$ac_cv_lib_sqlite3_sqlite3_result_zeroblob" >&6; } 10872if test "x$ac_cv_lib_sqlite3_sqlite3_result_zeroblob" = x""yes; then : 10873 HAVE_SQLITE3_RESULT_ZEROBLOB=1 10874else 10875 HAVE_SQLITE3_RESULT_ZEROBLOB=0 10876fi 10877 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_blob_open in -lsqlite3" >&5 10879$as_echo_n "checking for sqlite3_blob_open in -lsqlite3... " >&6; } 10880if test "${ac_cv_lib_sqlite3_sqlite3_blob_open+set}" = set; then : 10881 $as_echo_n "(cached) " >&6 10882else 10883 ac_check_lib_save_LIBS=$LIBS 10884LIBS="-lsqlite3 $LIBS" 10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886/* end confdefs.h. */ 10887 10888/* Override any GCC internal prototype to avoid an error. 10889 Use char because int might match the return type of a GCC 10890 builtin and then its argument prototype would still apply. */ 10891#ifdef __cplusplus 10892extern "C" 10893#endif 10894char sqlite3_blob_open (); 10895int 10896main () 10897{ 10898return sqlite3_blob_open (); 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903if ac_fn_c_try_link "$LINENO"; then : 10904 ac_cv_lib_sqlite3_sqlite3_blob_open=yes 10905else 10906 ac_cv_lib_sqlite3_sqlite3_blob_open=no 10907fi 10908rm -f core conftest.err conftest.$ac_objext \ 10909 conftest$ac_exeext conftest.$ac_ext 10910LIBS=$ac_check_lib_save_LIBS 10911fi 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_blob_open" >&5 10913$as_echo "$ac_cv_lib_sqlite3_sqlite3_blob_open" >&6; } 10914if test "x$ac_cv_lib_sqlite3_sqlite3_blob_open" = x""yes; then : 10915 HAVE_SQLITE3_INCRBLOBIO=1 10916else 10917 HAVE_SQLITE3_INCRBLOBIO=0 10918fi 10919 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 10921$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } 10922if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 ac_check_lib_save_LIBS=$LIBS 10926LIBS="-lsqlite3 $LIBS" 10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928/* end confdefs.h. */ 10929 10930/* Override any GCC internal prototype to avoid an error. 10931 Use char because int might match the return type of a GCC 10932 builtin and then its argument prototype would still apply. */ 10933#ifdef __cplusplus 10934extern "C" 10935#endif 10936char sqlite3_key (); 10937int 10938main () 10939{ 10940return sqlite3_key (); 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_link "$LINENO"; then : 10946 ac_cv_lib_sqlite3_sqlite3_key=yes 10947else 10948 ac_cv_lib_sqlite3_sqlite3_key=no 10949fi 10950rm -f core conftest.err conftest.$ac_objext \ 10951 conftest$ac_exeext conftest.$ac_ext 10952LIBS=$ac_check_lib_save_LIBS 10953fi 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 10955$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } 10956if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then : 10957 HAVE_SQLITE3_KEY=1 10958else 10959 HAVE_SQLITE3_KEY=0 10960fi 10961 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_rekey in -lsqlite3" >&5 10963$as_echo_n "checking for sqlite3_rekey in -lsqlite3... " >&6; } 10964if test "${ac_cv_lib_sqlite3_sqlite3_rekey+set}" = set; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 ac_check_lib_save_LIBS=$LIBS 10968LIBS="-lsqlite3 $LIBS" 10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 10972/* Override any GCC internal prototype to avoid an error. 10973 Use char because int might match the return type of a GCC 10974 builtin and then its argument prototype would still apply. */ 10975#ifdef __cplusplus 10976extern "C" 10977#endif 10978char sqlite3_rekey (); 10979int 10980main () 10981{ 10982return sqlite3_rekey (); 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987if ac_fn_c_try_link "$LINENO"; then : 10988 ac_cv_lib_sqlite3_sqlite3_rekey=yes 10989else 10990 ac_cv_lib_sqlite3_sqlite3_rekey=no 10991fi 10992rm -f core conftest.err conftest.$ac_objext \ 10993 conftest$ac_exeext conftest.$ac_ext 10994LIBS=$ac_check_lib_save_LIBS 10995fi 10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_rekey" >&5 10997$as_echo "$ac_cv_lib_sqlite3_sqlite3_rekey" >&6; } 10998if test "x$ac_cv_lib_sqlite3_sqlite3_rekey" = x""yes; then : 10999 cat >>confdefs.h <<_ACEOF 11000#define HAVE_LIBSQLITE3 1 11001_ACEOF 11002 11003 LIBS="-lsqlite3 $LIBS" 11004 11005else 11006 HAVE_SQLITE3_KEY=0 11007fi 11008 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_enable_shared_cache in -lsqlite3" >&5 11010$as_echo_n "checking for sqlite3_enable_shared_cache in -lsqlite3... " >&6; } 11011if test "${ac_cv_lib_sqlite3_sqlite3_enable_shared_cache+set}" = set; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 ac_check_lib_save_LIBS=$LIBS 11015LIBS="-lsqlite3 $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 sqlite3_enable_shared_cache (); 11026int 11027main () 11028{ 11029return sqlite3_enable_shared_cache (); 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034if ac_fn_c_try_link "$LINENO"; then : 11035 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=yes 11036else 11037 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext \ 11040 conftest$ac_exeext conftest.$ac_ext 11041LIBS=$ac_check_lib_save_LIBS 11042fi 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&5 11044$as_echo "$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&6; } 11045if test "x$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" = x""yes; then : 11046 HAVE_SQLITE3_SHARED_CACHE=1 11047else 11048 HAVE_SQLITE3_SHARED_CACHE=0 11049fi 11050 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open_v2 in -lsqlite3" >&5 11052$as_echo_n "checking for sqlite3_open_v2 in -lsqlite3... " >&6; } 11053if test "${ac_cv_lib_sqlite3_sqlite3_open_v2+set}" = set; then : 11054 $as_echo_n "(cached) " >&6 11055else 11056 ac_check_lib_save_LIBS=$LIBS 11057LIBS="-lsqlite3 $LIBS" 11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060 11061/* Override any GCC internal prototype to avoid an error. 11062 Use char because int might match the return type of a GCC 11063 builtin and then its argument prototype would still apply. */ 11064#ifdef __cplusplus 11065extern "C" 11066#endif 11067char sqlite3_open_v2 (); 11068int 11069main () 11070{ 11071return sqlite3_open_v2 (); 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076if ac_fn_c_try_link "$LINENO"; then : 11077 ac_cv_lib_sqlite3_sqlite3_open_v2=yes 11078else 11079 ac_cv_lib_sqlite3_sqlite3_open_v2=no 11080fi 11081rm -f core conftest.err conftest.$ac_objext \ 11082 conftest$ac_exeext conftest.$ac_ext 11083LIBS=$ac_check_lib_save_LIBS 11084fi 11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open_v2" >&5 11086$as_echo "$ac_cv_lib_sqlite3_sqlite3_open_v2" >&6; } 11087if test "x$ac_cv_lib_sqlite3_sqlite3_open_v2" = x""yes; then : 11088 HAVE_SQLITE3_OPEN_V2=1 11089else 11090 HAVE_SQLITE3_OPEN_V2=0 11091fi 11092 11093 if test "$enable_load_extension" = "yes" ; then 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 11095$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } 11096if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then : 11097 $as_echo_n "(cached) " >&6 11098else 11099 ac_check_lib_save_LIBS=$LIBS 11100LIBS="-lsqlite3 $LIBS" 11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11102/* end confdefs.h. */ 11103 11104/* Override any GCC internal prototype to avoid an error. 11105 Use char because int might match the return type of a GCC 11106 builtin and then its argument prototype would still apply. */ 11107#ifdef __cplusplus 11108extern "C" 11109#endif 11110char sqlite3_load_extension (); 11111int 11112main () 11113{ 11114return sqlite3_load_extension (); 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_link "$LINENO"; then : 11120 ac_cv_lib_sqlite3_sqlite3_load_extension=yes 11121else 11122 ac_cv_lib_sqlite3_sqlite3_load_extension=no 11123fi 11124rm -f core conftest.err conftest.$ac_objext \ 11125 conftest$ac_exeext conftest.$ac_ext 11126LIBS=$ac_check_lib_save_LIBS 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 11129$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } 11130if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = x""yes; then : 11131 HAVE_SQLITE3_LOAD_EXTENSION=1 11132else 11133 HAVE_SQLITE3_LOAD_EXTENSION=0 11134fi 11135 11136 fi 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_backup_init in -lsqlite3" >&5 11138$as_echo_n "checking for sqlite3_backup_init in -lsqlite3... " >&6; } 11139if test "${ac_cv_lib_sqlite3_sqlite3_backup_init+set}" = set; then : 11140 $as_echo_n "(cached) " >&6 11141else 11142 ac_check_lib_save_LIBS=$LIBS 11143LIBS="-lsqlite3 $LIBS" 11144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11145/* end confdefs.h. */ 11146 11147/* Override any GCC internal prototype to avoid an error. 11148 Use char because int might match the return type of a GCC 11149 builtin and then its argument prototype would still apply. */ 11150#ifdef __cplusplus 11151extern "C" 11152#endif 11153char sqlite3_backup_init (); 11154int 11155main () 11156{ 11157return sqlite3_backup_init (); 11158 ; 11159 return 0; 11160} 11161_ACEOF 11162if ac_fn_c_try_link "$LINENO"; then : 11163 ac_cv_lib_sqlite3_sqlite3_backup_init=yes 11164else 11165 ac_cv_lib_sqlite3_sqlite3_backup_init=no 11166fi 11167rm -f core conftest.err conftest.$ac_objext \ 11168 conftest$ac_exeext conftest.$ac_ext 11169LIBS=$ac_check_lib_save_LIBS 11170fi 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_backup_init" >&5 11172$as_echo "$ac_cv_lib_sqlite3_sqlite3_backup_init" >&6; } 11173if test "x$ac_cv_lib_sqlite3_sqlite3_backup_init" = x""yes; then : 11174 HAVE_SQLITE3_BACKUPAPI=1 11175else 11176 HAVE_SQLITE3_BACKUPAPI=0 11177fi 11178 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_profile in -lsqlite3" >&5 11180$as_echo_n "checking for sqlite3_profile in -lsqlite3... " >&6; } 11181if test "${ac_cv_lib_sqlite3_sqlite3_profile+set}" = set; then : 11182 $as_echo_n "(cached) " >&6 11183else 11184 ac_check_lib_save_LIBS=$LIBS 11185LIBS="-lsqlite3 $LIBS" 11186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187/* end confdefs.h. */ 11188 11189/* Override any GCC internal prototype to avoid an error. 11190 Use char because int might match the return type of a GCC 11191 builtin and then its argument prototype would still apply. */ 11192#ifdef __cplusplus 11193extern "C" 11194#endif 11195char sqlite3_profile (); 11196int 11197main () 11198{ 11199return sqlite3_profile (); 11200 ; 11201 return 0; 11202} 11203_ACEOF 11204if ac_fn_c_try_link "$LINENO"; then : 11205 ac_cv_lib_sqlite3_sqlite3_profile=yes 11206else 11207 ac_cv_lib_sqlite3_sqlite3_profile=no 11208fi 11209rm -f core conftest.err conftest.$ac_objext \ 11210 conftest$ac_exeext conftest.$ac_ext 11211LIBS=$ac_check_lib_save_LIBS 11212fi 11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_profile" >&5 11214$as_echo "$ac_cv_lib_sqlite3_sqlite3_profile" >&6; } 11215if test "x$ac_cv_lib_sqlite3_sqlite3_profile" = x""yes; then : 11216 HAVE_SQLITE3_PROFILE=1 11217else 11218 HAVE_SQLITE3_PROFILE=0 11219fi 11220 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_status in -lsqlite3" >&5 11222$as_echo_n "checking for sqlite3_status in -lsqlite3... " >&6; } 11223if test "${ac_cv_lib_sqlite3_sqlite3_status+set}" = set; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 ac_check_lib_save_LIBS=$LIBS 11227LIBS="-lsqlite3 $LIBS" 11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230 11231/* Override any GCC internal prototype to avoid an error. 11232 Use char because int might match the return type of a GCC 11233 builtin and then its argument prototype would still apply. */ 11234#ifdef __cplusplus 11235extern "C" 11236#endif 11237char sqlite3_status (); 11238int 11239main () 11240{ 11241return sqlite3_status (); 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_link "$LINENO"; then : 11247 ac_cv_lib_sqlite3_sqlite3_status=yes 11248else 11249 ac_cv_lib_sqlite3_sqlite3_status=no 11250fi 11251rm -f core conftest.err conftest.$ac_objext \ 11252 conftest$ac_exeext conftest.$ac_ext 11253LIBS=$ac_check_lib_save_LIBS 11254fi 11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_status" >&5 11256$as_echo "$ac_cv_lib_sqlite3_sqlite3_status" >&6; } 11257if test "x$ac_cv_lib_sqlite3_sqlite3_status" = x""yes; then : 11258 HAVE_SQLITE3_STATUS=1 11259else 11260 HAVE_SQLITE3_STATUS=0 11261fi 11262 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_db_status in -lsqlite3" >&5 11264$as_echo_n "checking for sqlite3_db_status in -lsqlite3... " >&6; } 11265if test "${ac_cv_lib_sqlite3_sqlite3_db_status+set}" = set; then : 11266 $as_echo_n "(cached) " >&6 11267else 11268 ac_check_lib_save_LIBS=$LIBS 11269LIBS="-lsqlite3 $LIBS" 11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271/* end confdefs.h. */ 11272 11273/* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276#ifdef __cplusplus 11277extern "C" 11278#endif 11279char sqlite3_db_status (); 11280int 11281main () 11282{ 11283return sqlite3_db_status (); 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288if ac_fn_c_try_link "$LINENO"; then : 11289 ac_cv_lib_sqlite3_sqlite3_db_status=yes 11290else 11291 ac_cv_lib_sqlite3_sqlite3_db_status=no 11292fi 11293rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295LIBS=$ac_check_lib_save_LIBS 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_db_status" >&5 11298$as_echo "$ac_cv_lib_sqlite3_sqlite3_db_status" >&6; } 11299if test "x$ac_cv_lib_sqlite3_sqlite3_db_status" = x""yes; then : 11300 HAVE_SQLITE3_DB_STATUS=1 11301else 11302 HAVE_SQLITE3_DB_STATUS=0 11303fi 11304 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_stmt_status in -lsqlite3" >&5 11306$as_echo_n "checking for sqlite3_stmt_status in -lsqlite3... " >&6; } 11307if test "${ac_cv_lib_sqlite3_sqlite3_stmt_status+set}" = set; then : 11308 $as_echo_n "(cached) " >&6 11309else 11310 ac_check_lib_save_LIBS=$LIBS 11311LIBS="-lsqlite3 $LIBS" 11312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314 11315/* Override any GCC internal prototype to avoid an error. 11316 Use char because int might match the return type of a GCC 11317 builtin and then its argument prototype would still apply. */ 11318#ifdef __cplusplus 11319extern "C" 11320#endif 11321char sqlite3_stmt_status (); 11322int 11323main () 11324{ 11325return sqlite3_stmt_status (); 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_c_try_link "$LINENO"; then : 11331 ac_cv_lib_sqlite3_sqlite3_stmt_status=yes 11332else 11333 ac_cv_lib_sqlite3_sqlite3_stmt_status=no 11334fi 11335rm -f core conftest.err conftest.$ac_objext \ 11336 conftest$ac_exeext conftest.$ac_ext 11337LIBS=$ac_check_lib_save_LIBS 11338fi 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_stmt_status" >&5 11340$as_echo "$ac_cv_lib_sqlite3_sqlite3_stmt_status" >&6; } 11341if test "x$ac_cv_lib_sqlite3_sqlite3_stmt_status" = x""yes; then : 11342 HAVE_SQLITE3_STMT_STATUS=1 11343else 11344 HAVE_SQLITE3_STMT_STATUS=0 11345fi 11346 11347 LIBS=$saved_LIBS 11348 CFLAGS=$saved_CFLAGS 11349fi 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373if test -z "$SQLITE3_A10N_C" ; then 11374 SQLITE3_A10N_C="native/dummy.c" 11375 SQLITE3_A10N_O="dummy.lo" 11376fi 11377 11378 11379 11380 11381########## 11382# Any usable SQLite found ? 11383# 11384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SQLite" >&5 11385$as_echo_n "checking for usable SQLite... " >&6; } 11386if test "$HAVE_SQLITE2" != "1" -a "$HAVE_SQLITE3" != "1" ; then 11387 as_fn_error $? "No SQLite found, please try --with-sqlite/--with-sqlite3" "$LINENO" 5 11388fi 11389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11390$as_echo "yes" >&6; } 11391 11392########## 11393# Find out if char ptr array can be passed in place of 11394# a va_list (needed for sqlite_exec_vprintf() and 11395# sqlite_vmprintf()) 11396# 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking va_list usage" >&5 11398$as_echo_n "checking va_list usage... " >&6; } 11399if test "$cross_compiling" = yes; then : 11400 USE_VFUNCS=0 11401else 11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11403/* end confdefs.h. */ 11404 11405#include <stdarg.h> 11406#include <stdio.h> 11407 11408static int 11409vatest(char **x, ...) 11410{ 11411 va_list ap; 11412 char *y; 11413 int ret; 11414 11415 va_start(ap, x); 11416 y = va_arg(ap, char *); 11417 x = (char **) &x + 1; 11418 ret = (y != *x); 11419 va_end(ap); 11420 return ret; 11421} 11422 11423int 11424main(int argc, char **argv) 11425{ 11426 exit(vatest(NULL, vatest, 0.0, 0, NULL)); 11427} 11428 11429_ACEOF 11430if ac_fn_c_try_run "$LINENO"; then : 11431 USE_VFUNCS=1 11432else 11433 USE_VFUNCS=0 11434fi 11435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11436 conftest.$ac_objext conftest.beam conftest.$ac_ext 11437fi 11438 11439 11440if test "$USE_VFUNCS" = "1" ; then 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using sqlite_exec_vprintf/sqlite_vmprintf" >&5 11442$as_echo "using sqlite_exec_vprintf/sqlite_vmprintf" >&6; } 11443 VALIST_FLAGS="" 11444else 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&5 11446$as_echo "NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&6; } 11447 VALIST_FLAGS="-DCANT_PASS_VALIST_AS_CHARPTR=1" 11448fi 11449 11450 11451########## 11452# Find JRE/JDK things 11453# 11454# Extract the first word of "readlink", so it can be a program name with args. 11455set dummy readlink; ac_word=$2 11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11457$as_echo_n "checking for $ac_word... " >&6; } 11458if test "${ac_cv_prog_READLINK+set}" = set; then : 11459 $as_echo_n "(cached) " >&6 11460else 11461 if test -n "$READLINK"; then 11462 ac_cv_prog_READLINK="$READLINK" # Let the user override the test. 11463else 11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11465for as_dir in $PATH 11466do 11467 IFS=$as_save_IFS 11468 test -z "$as_dir" && as_dir=. 11469 for ac_exec_ext in '' $ac_executable_extensions; do 11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11471 ac_cv_prog_READLINK="readlink" 11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11473 break 2 11474 fi 11475done 11476 done 11477IFS=$as_save_IFS 11478 11479fi 11480fi 11481READLINK=$ac_cv_prog_READLINK 11482if test -n "$READLINK"; then 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 11484$as_echo "$READLINK" >&6; } 11485else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11487$as_echo "no" >&6; } 11488fi 11489 11490 11491 11492# Check whether --with-jdk was given. 11493if test "${with_jdk+set}" = set; then : 11494 withval=$with_jdk; JAVA_HOME=$withval 11495fi 11496 11497if test -z "$JAVA_HOME" ; then 11498 JAVA_HOME=`which javac` 11499 if test -z "$JAVA_HOME" ; then 11500 as_fn_error $? "JAVA_HOME directory not found, please use --with-jdk=DIR" "$LINENO" 5 11501 fi 11502 if test -n "$READLINK" ; then 11503 while test -L $JAVA_HOME ; do 11504 JAVA_HOME=`$READLINK $JAVA_HOME` 11505 done 11506 fi 11507 JAVA_HOME=`dirname $JAVA_HOME` 11508 JAVA_HOME=`dirname $JAVA_HOME` 11509 if test "x$JAR_DIR_UNSPEC" = "xyes" ; then 11510 JAR_DIR=$JAVA_HOME/jre/lib/ext 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install sqlite.jar into $JAR_DIR" >&5 11512$as_echo "will install sqlite.jar into $JAR_DIR" >&6; } 11513 fi 11514 if test "x$NATIVE_LIB_DIR" = "x" ; then 11515 if test "$prefix" = "/usr/local" ; then 11516 case "$target_cpu" in 11517 i[3-6]86*) 11518 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/i386 11519 ;; 11520 x86_64) 11521 if test -d $JAVA_HOME/jre/lib/amd64 ; then 11522 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/amd64 11523 else 11524 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/$target_cpu 11525 fi 11526 ;; 11527 *) 11528 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/$target_cpu 11529 ;; 11530 esac 11531 fi 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install libsqlite_jni into $NATIVE_LIB_DIR" >&5 11533$as_echo "will install libsqlite_jni into $NATIVE_LIB_DIR" >&6; } 11534 fi 11535fi 11536if test ! -d "$JAVA_HOME" ; then 11537 as_fn_error $? "JAVA_HOME directory not found, please use --with-jdk=DIR" "$LINENO" 5 11538fi 11539 11540if test -n "$JAVA_HOME" ; then 11541 if test "x$JAVA_RUN" = "x"; then 11542 JAVA_RUN=$JAVA_HOME/bin/java 11543 else 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding JAVA command with: $JAVA_RUN" >&5 11545$as_echo "$as_me: WARNING: Overriding JAVA command with: $JAVA_RUN" >&2;} 11546 fi 11547 JAVAC=$JAVA_HOME/bin/javac 11548 JAVAH="$JAVA_HOME/bin/javah -jni" 11549 JAR=$JAVA_HOME/bin/jar 11550 JAVADOC=$JAVA_HOME/bin/javadoc 11551else 11552 if test "x$JAVA_RUN" = "x"; then 11553 JAVA_RUN=`which java` 11554 else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding JAVA command with: $JAVA_RUN" >&5 11556$as_echo "$as_me: WARNING: Overriding JAVA command with: $JAVA_RUN" >&2;} 11557 fi 11558 JAVAC=`which javac` 11559 JAVAH="`which javah` -jni" 11560 JAR=`which jar` 11561 JAVADOC=`which javadoc` 11562 JAVA_HOME=`dirname $JAVAC` 11563 JAVA_HOME=`dirname $JAVA_HOME` 11564fi 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574# Set up the JNI include directory specification 11575case $build_os in 11576 solaris*) 11577 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/solaris" 11578 ;; 11579 linux*) 11580 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" 11581 ;; 11582 freebsd*) 11583 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/freebsd" 11584 ;; 11585 *) 11586 JNIINCLUDE="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${build_os}" 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: setting generic JNI include file directives!" >&5 11588$as_echo "$as_me: WARNING: setting generic JNI include file directives!" >&2;} 11589 ;; 11590esac 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: setting JNI include file directives: $JNIINCLUDE" >&5 11592$as_echo "setting JNI include file directives: $JNIINCLUDE" >&6; } 11593 11594# Figure out JDK version 11595if test "x$JDBCVER" = "x" ; then 11596 JDBCVER=JDBC2 11597 $JAVA_RUN -version 2>&1 | grep 'version "1.1' >/dev/null && JDBCVER=JDBC1 11598 $JAVA_RUN -version 2>&1 | grep 'version "1.4' >/dev/null && JDBCVER=JDBC2x 11599 $JAVA_RUN -version 2>&1 | grep 'version "1.5' >/dev/null && JDBCVER=JDBC2y 11600 $JAVA_RUN -version 2>&1 | grep 'version "1.6' >/dev/null && JDBCVER=JDBC2z 11601 $JAVA_RUN -version 2>&1 | grep 'version "1.7' >/dev/null && JDBCVER=JDBC2z1 11602 $JAVA_RUN -version 2>&1 | grep 'JSR169' >/dev/null && JDBCVER=JDBC0 11603else 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding JDBC driver: $JDBCVER" >&5 11605$as_echo "$as_me: WARNING: overriding JDBC driver: $JDBCVER" >&2;} 11606fi 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using JDBC driver from $JDBCVER directory" >&5 11608$as_echo "using JDBC driver from $JDBCVER directory" >&6; } 11609 11610# default to pre 1.7 source 11611cp SQLite/JDBCDriver.java16 SQLite/JDBCDriver.java 11612cp SQLite/JDBCDataSource.javajsr169 SQLite/JDBCDataSource.java 11613 11614if test "$JDBCVER" = "JDBC2y" ; then 11615 # 1.5 gives one unchecked warning on SQLite/TableResult.java 11616 JAVAC="$JAVAC -nowarn" 11617fi 11618if test "$JDBCVER" = "JDBC2z" ; then 11619 # 1.6 gives some unchecked warnings, e.g. on SQLite/TableResult.java 11620 JAVAC="$JAVAC -nowarn" 11621fi 11622if test "$JDBCVER" = "JDBC2z1" ; then 11623 # 1.7 gives some unchecked warnings, e.g. on SQLite/TableResult.java 11624 JAVAC="$JAVAC -nowarn" 11625 cp SQLite/JDBCDriver.java17 SQLite/JDBCDriver.java 11626 cp SQLite/JDBCDataSource.java17 SQLite/JDBCDataSource.java 11627fi 11628 11629if test "x$NATIVE_LIB_DIR" = "x" ; then 11630 NATIVE_LIB_DIR=$libdir 11631fi 11632 11633 11634 11635 11636 11637 11638ac_config_files="$ac_config_files Makefile" 11639 11640cat >confcache <<\_ACEOF 11641# This file is a shell script that caches the results of configure 11642# tests run on this system so they can be shared between configure 11643# scripts and configure runs, see configure's option --config-cache. 11644# It is not useful on other systems. If it contains results you don't 11645# want to keep, you may remove or edit it. 11646# 11647# config.status only pays attention to the cache file if you give it 11648# the --recheck option to rerun configure. 11649# 11650# `ac_cv_env_foo' variables (set or unset) will be overridden when 11651# loading this file, other *unset* `ac_cv_foo' will be assigned the 11652# following values. 11653 11654_ACEOF 11655 11656# The following way of writing the cache mishandles newlines in values, 11657# but we know of no workaround that is simple, portable, and efficient. 11658# So, we kill variables containing newlines. 11659# Ultrix sh set writes to stderr and can't be redirected directly, 11660# and sets the high bit in the cache file unless we assign to the vars. 11661( 11662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11663 eval ac_val=\$$ac_var 11664 case $ac_val in #( 11665 *${as_nl}*) 11666 case $ac_var in #( 11667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11668$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11669 esac 11670 case $ac_var in #( 11671 _ | IFS | as_nl) ;; #( 11672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11673 *) { eval $ac_var=; unset $ac_var;} ;; 11674 esac ;; 11675 esac 11676 done 11677 11678 (set) 2>&1 | 11679 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11680 *${as_nl}ac_space=\ *) 11681 # `set' does not quote correctly, so add quotes: double-quote 11682 # substitution turns \\\\ into \\, and sed turns \\ into \. 11683 sed -n \ 11684 "s/'/'\\\\''/g; 11685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11686 ;; #( 11687 *) 11688 # `set' quotes correctly as required by POSIX, so do not add quotes. 11689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11690 ;; 11691 esac | 11692 sort 11693) | 11694 sed ' 11695 /^ac_cv_env_/b end 11696 t clear 11697 :clear 11698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11699 t end 11700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11701 :end' >>confcache 11702if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11703 if test -w "$cache_file"; then 11704 test "x$cache_file" != "x/dev/null" && 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11706$as_echo "$as_me: updating cache $cache_file" >&6;} 11707 cat confcache >$cache_file 11708 else 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11710$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11711 fi 11712fi 11713rm -f confcache 11714 11715test "x$prefix" = xNONE && prefix=$ac_default_prefix 11716# Let make expand exec_prefix. 11717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11718 11719# Transform confdefs.h into DEFS. 11720# Protect against shell expansion while executing Makefile rules. 11721# Protect against Makefile macro expansion. 11722# 11723# If the first sed substitution is executed (which looks for macros that 11724# take arguments), then branch to the quote section. Otherwise, 11725# look for a macro that doesn't take arguments. 11726ac_script=' 11727:mline 11728/\\$/{ 11729 N 11730 s,\\\n,, 11731 b mline 11732} 11733t clear 11734:clear 11735s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11736t quote 11737s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11738t quote 11739b any 11740:quote 11741s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11742s/\[/\\&/g 11743s/\]/\\&/g 11744s/\$/$$/g 11745H 11746:any 11747${ 11748 g 11749 s/^\n// 11750 s/\n/ /g 11751 p 11752} 11753' 11754DEFS=`sed -n "$ac_script" confdefs.h` 11755 11756 11757ac_libobjs= 11758ac_ltlibobjs= 11759U= 11760for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11761 # 1. Remove the extension, and $U if already installed. 11762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11765 # will be set to the directory where LIBOBJS objects are built. 11766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11768done 11769LIBOBJS=$ac_libobjs 11770 11771LTLIBOBJS=$ac_ltlibobjs 11772 11773 11774 11775: ${CONFIG_STATUS=./config.status} 11776ac_write_fail=0 11777ac_clean_files_save=$ac_clean_files 11778ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11780$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11781as_write_fail=0 11782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11783#! $SHELL 11784# Generated by $as_me. 11785# Run this file to recreate the current configuration. 11786# Compiler output produced by configure, useful for debugging 11787# configure, is in config.log if it exists. 11788 11789debug=false 11790ac_cs_recheck=false 11791ac_cs_silent=false 11792 11793SHELL=\${CONFIG_SHELL-$SHELL} 11794export SHELL 11795_ASEOF 11796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11797## -------------------- ## 11798## M4sh Initialization. ## 11799## -------------------- ## 11800 11801# Be more Bourne compatible 11802DUALCASE=1; export DUALCASE # for MKS sh 11803if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11804 emulate sh 11805 NULLCMD=: 11806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11807 # is contrary to our usage. Disable this feature. 11808 alias -g '${1+"$@"}'='"$@"' 11809 setopt NO_GLOB_SUBST 11810else 11811 case `(set -o) 2>/dev/null` in #( 11812 *posix*) : 11813 set -o posix ;; #( 11814 *) : 11815 ;; 11816esac 11817fi 11818 11819 11820as_nl=' 11821' 11822export as_nl 11823# Printing a long string crashes Solaris 7 /usr/bin/printf. 11824as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11827# Prefer a ksh shell builtin over an external printf program on Solaris, 11828# but without wasting forks for bash or zsh. 11829if test -z "$BASH_VERSION$ZSH_VERSION" \ 11830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11831 as_echo='print -r --' 11832 as_echo_n='print -rn --' 11833elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11834 as_echo='printf %s\n' 11835 as_echo_n='printf %s' 11836else 11837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11839 as_echo_n='/usr/ucb/echo -n' 11840 else 11841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11842 as_echo_n_body='eval 11843 arg=$1; 11844 case $arg in #( 11845 *"$as_nl"*) 11846 expr "X$arg" : "X\\(.*\\)$as_nl"; 11847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11848 esac; 11849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11850 ' 11851 export as_echo_n_body 11852 as_echo_n='sh -c $as_echo_n_body as_echo' 11853 fi 11854 export as_echo_body 11855 as_echo='sh -c $as_echo_body as_echo' 11856fi 11857 11858# The user is always right. 11859if test "${PATH_SEPARATOR+set}" != set; then 11860 PATH_SEPARATOR=: 11861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11863 PATH_SEPARATOR=';' 11864 } 11865fi 11866 11867 11868# IFS 11869# We need space, tab and new line, in precisely that order. Quoting is 11870# there to prevent editors from complaining about space-tab. 11871# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11872# splitting by setting IFS to empty value.) 11873IFS=" "" $as_nl" 11874 11875# Find who we are. Look in the path if we contain no directory separator. 11876case $0 in #(( 11877 *[\\/]* ) as_myself=$0 ;; 11878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11879for as_dir in $PATH 11880do 11881 IFS=$as_save_IFS 11882 test -z "$as_dir" && as_dir=. 11883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11884 done 11885IFS=$as_save_IFS 11886 11887 ;; 11888esac 11889# We did not find ourselves, most probably we were run as `sh COMMAND' 11890# in which case we are not to be found in the path. 11891if test "x$as_myself" = x; then 11892 as_myself=$0 11893fi 11894if test ! -f "$as_myself"; then 11895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11896 exit 1 11897fi 11898 11899# Unset variables that we do not need and which cause bugs (e.g. in 11900# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11901# suppresses any "Segmentation fault" message there. '((' could 11902# trigger a bug in pdksh 5.2.14. 11903for as_var in BASH_ENV ENV MAIL MAILPATH 11904do eval test x\${$as_var+set} = xset \ 11905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11906done 11907PS1='$ ' 11908PS2='> ' 11909PS4='+ ' 11910 11911# NLS nuisances. 11912LC_ALL=C 11913export LC_ALL 11914LANGUAGE=C 11915export LANGUAGE 11916 11917# CDPATH. 11918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11919 11920 11921# as_fn_error STATUS ERROR [LINENO LOG_FD] 11922# ---------------------------------------- 11923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11925# script with STATUS, using 1 if that was 0. 11926as_fn_error () 11927{ 11928 as_status=$1; test $as_status -eq 0 && as_status=1 11929 if test "$4"; then 11930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11932 fi 11933 $as_echo "$as_me: error: $2" >&2 11934 as_fn_exit $as_status 11935} # as_fn_error 11936 11937 11938# as_fn_set_status STATUS 11939# ----------------------- 11940# Set $? to STATUS, without forking. 11941as_fn_set_status () 11942{ 11943 return $1 11944} # as_fn_set_status 11945 11946# as_fn_exit STATUS 11947# ----------------- 11948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11949as_fn_exit () 11950{ 11951 set +e 11952 as_fn_set_status $1 11953 exit $1 11954} # as_fn_exit 11955 11956# as_fn_unset VAR 11957# --------------- 11958# Portably unset VAR. 11959as_fn_unset () 11960{ 11961 { eval $1=; unset $1;} 11962} 11963as_unset=as_fn_unset 11964# as_fn_append VAR VALUE 11965# ---------------------- 11966# Append the text in VALUE to the end of the definition contained in VAR. Take 11967# advantage of any shell optimizations that allow amortized linear growth over 11968# repeated appends, instead of the typical quadratic growth present in naive 11969# implementations. 11970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11971 eval 'as_fn_append () 11972 { 11973 eval $1+=\$2 11974 }' 11975else 11976 as_fn_append () 11977 { 11978 eval $1=\$$1\$2 11979 } 11980fi # as_fn_append 11981 11982# as_fn_arith ARG... 11983# ------------------ 11984# Perform arithmetic evaluation on the ARGs, and store the result in the 11985# global $as_val. Take advantage of shells that can avoid forks. The arguments 11986# must be portable across $(()) and expr. 11987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11988 eval 'as_fn_arith () 11989 { 11990 as_val=$(( $* )) 11991 }' 11992else 11993 as_fn_arith () 11994 { 11995 as_val=`expr "$@" || test $? -eq 1` 11996 } 11997fi # as_fn_arith 11998 11999 12000if expr a : '\(a\)' >/dev/null 2>&1 && 12001 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12002 as_expr=expr 12003else 12004 as_expr=false 12005fi 12006 12007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12008 as_basename=basename 12009else 12010 as_basename=false 12011fi 12012 12013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12014 as_dirname=dirname 12015else 12016 as_dirname=false 12017fi 12018 12019as_me=`$as_basename -- "$0" || 12020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12021 X"$0" : 'X\(//\)$' \| \ 12022 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12023$as_echo X/"$0" | 12024 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12025 s//\1/ 12026 q 12027 } 12028 /^X\/\(\/\/\)$/{ 12029 s//\1/ 12030 q 12031 } 12032 /^X\/\(\/\).*/{ 12033 s//\1/ 12034 q 12035 } 12036 s/.*/./; q'` 12037 12038# Avoid depending upon Character Ranges. 12039as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12041as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12042as_cr_digits='0123456789' 12043as_cr_alnum=$as_cr_Letters$as_cr_digits 12044 12045ECHO_C= ECHO_N= ECHO_T= 12046case `echo -n x` in #((((( 12047-n*) 12048 case `echo 'xy\c'` in 12049 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12050 xy) ECHO_C='\c';; 12051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12052 ECHO_T=' ';; 12053 esac;; 12054*) 12055 ECHO_N='-n';; 12056esac 12057 12058rm -f conf$$ conf$$.exe conf$$.file 12059if test -d conf$$.dir; then 12060 rm -f conf$$.dir/conf$$.file 12061else 12062 rm -f conf$$.dir 12063 mkdir conf$$.dir 2>/dev/null 12064fi 12065if (echo >conf$$.file) 2>/dev/null; then 12066 if ln -s conf$$.file conf$$ 2>/dev/null; then 12067 as_ln_s='ln -s' 12068 # ... but there are two gotchas: 12069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12071 # In both cases, we have to default to `cp -p'. 12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12073 as_ln_s='cp -p' 12074 elif ln conf$$.file conf$$ 2>/dev/null; then 12075 as_ln_s=ln 12076 else 12077 as_ln_s='cp -p' 12078 fi 12079else 12080 as_ln_s='cp -p' 12081fi 12082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12083rmdir conf$$.dir 2>/dev/null 12084 12085 12086# as_fn_mkdir_p 12087# ------------- 12088# Create "$as_dir" as a directory, including parents if necessary. 12089as_fn_mkdir_p () 12090{ 12091 12092 case $as_dir in #( 12093 -*) as_dir=./$as_dir;; 12094 esac 12095 test -d "$as_dir" || eval $as_mkdir_p || { 12096 as_dirs= 12097 while :; do 12098 case $as_dir in #( 12099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12100 *) as_qdir=$as_dir;; 12101 esac 12102 as_dirs="'$as_qdir' $as_dirs" 12103 as_dir=`$as_dirname -- "$as_dir" || 12104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$as_dir" : 'X\(//\)[^/]' \| \ 12106 X"$as_dir" : 'X\(//\)$' \| \ 12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12108$as_echo X"$as_dir" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 test -d "$as_dir" && break 12127 done 12128 test -z "$as_dirs" || eval "mkdir $as_dirs" 12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12130 12131 12132} # as_fn_mkdir_p 12133if mkdir -p . 2>/dev/null; then 12134 as_mkdir_p='mkdir -p "$as_dir"' 12135else 12136 test -d ./-p && rmdir ./-p 12137 as_mkdir_p=false 12138fi 12139 12140if test -x / >/dev/null 2>&1; then 12141 as_test_x='test -x' 12142else 12143 if ls -dL / >/dev/null 2>&1; then 12144 as_ls_L_option=L 12145 else 12146 as_ls_L_option= 12147 fi 12148 as_test_x=' 12149 eval sh -c '\'' 12150 if test -d "$1"; then 12151 test -d "$1/."; 12152 else 12153 case $1 in #( 12154 -*)set "./$1";; 12155 esac; 12156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12157 ???[sx]*):;;*)false;;esac;fi 12158 '\'' sh 12159 ' 12160fi 12161as_executable_p=$as_test_x 12162 12163# Sed expression to map a string onto a valid CPP name. 12164as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12165 12166# Sed expression to map a string onto a valid variable name. 12167as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12168 12169 12170exec 6>&1 12171## ----------------------------------- ## 12172## Main body of $CONFIG_STATUS script. ## 12173## ----------------------------------- ## 12174_ASEOF 12175test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12176 12177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12178# Save the log message, to keep $0 and so on meaningful, and to 12179# report actual input values of CONFIG_FILES etc. instead of their 12180# values after options handling. 12181ac_log=" 12182This file was extended by $as_me, which was 12183generated by GNU Autoconf 2.67. Invocation command line was 12184 12185 CONFIG_FILES = $CONFIG_FILES 12186 CONFIG_HEADERS = $CONFIG_HEADERS 12187 CONFIG_LINKS = $CONFIG_LINKS 12188 CONFIG_COMMANDS = $CONFIG_COMMANDS 12189 $ $0 $@ 12190 12191on `(hostname || uname -n) 2>/dev/null | sed 1q` 12192" 12193 12194_ACEOF 12195 12196case $ac_config_files in *" 12197"*) set x $ac_config_files; shift; ac_config_files=$*;; 12198esac 12199 12200 12201 12202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12203# Files that config.status was made for. 12204config_files="$ac_config_files" 12205config_commands="$ac_config_commands" 12206 12207_ACEOF 12208 12209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12210ac_cs_usage="\ 12211\`$as_me' instantiates files and other configuration actions 12212from templates according to the current configuration. Unless the files 12213and actions are specified as TAGs, all are instantiated by default. 12214 12215Usage: $0 [OPTION]... [TAG]... 12216 12217 -h, --help print this help, then exit 12218 -V, --version print version number and configuration settings, then exit 12219 --config print configuration, then exit 12220 -q, --quiet, --silent 12221 do not print progress messages 12222 -d, --debug don't remove temporary files 12223 --recheck update $as_me by reconfiguring in the same conditions 12224 --file=FILE[:TEMPLATE] 12225 instantiate the configuration file FILE 12226 12227Configuration files: 12228$config_files 12229 12230Configuration commands: 12231$config_commands 12232 12233Report bugs to the package provider." 12234 12235_ACEOF 12236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12237ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12238ac_cs_version="\\ 12239config.status 12240configured by $0, generated by GNU Autoconf 2.67, 12241 with options \\"\$ac_cs_config\\" 12242 12243Copyright (C) 2010 Free Software Foundation, Inc. 12244This config.status script is free software; the Free Software Foundation 12245gives unlimited permission to copy, distribute and modify it." 12246 12247ac_pwd='$ac_pwd' 12248srcdir='$srcdir' 12249INSTALL='$INSTALL' 12250test -n "\$AWK" || AWK=awk 12251_ACEOF 12252 12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12254# The default lists apply if the user does not specify any file. 12255ac_need_defaults=: 12256while test $# != 0 12257do 12258 case $1 in 12259 --*=?*) 12260 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12262 ac_shift=: 12263 ;; 12264 --*=) 12265 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12266 ac_optarg= 12267 ac_shift=: 12268 ;; 12269 *) 12270 ac_option=$1 12271 ac_optarg=$2 12272 ac_shift=shift 12273 ;; 12274 esac 12275 12276 case $ac_option in 12277 # Handling of the options. 12278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12279 ac_cs_recheck=: ;; 12280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12281 $as_echo "$ac_cs_version"; exit ;; 12282 --config | --confi | --conf | --con | --co | --c ) 12283 $as_echo "$ac_cs_config"; exit ;; 12284 --debug | --debu | --deb | --de | --d | -d ) 12285 debug=: ;; 12286 --file | --fil | --fi | --f ) 12287 $ac_shift 12288 case $ac_optarg in 12289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12290 '') as_fn_error $? "missing file argument" ;; 12291 esac 12292 as_fn_append CONFIG_FILES " '$ac_optarg'" 12293 ac_need_defaults=false;; 12294 --he | --h | --help | --hel | -h ) 12295 $as_echo "$ac_cs_usage"; exit ;; 12296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12297 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12298 ac_cs_silent=: ;; 12299 12300 # This is an error. 12301 -*) as_fn_error $? "unrecognized option: \`$1' 12302Try \`$0 --help' for more information." ;; 12303 12304 *) as_fn_append ac_config_targets " $1" 12305 ac_need_defaults=false ;; 12306 12307 esac 12308 shift 12309done 12310 12311ac_configure_extra_args= 12312 12313if $ac_cs_silent; then 12314 exec 6>/dev/null 12315 ac_configure_extra_args="$ac_configure_extra_args --silent" 12316fi 12317 12318_ACEOF 12319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12320if \$ac_cs_recheck; then 12321 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12322 shift 12323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12324 CONFIG_SHELL='$SHELL' 12325 export CONFIG_SHELL 12326 exec "\$@" 12327fi 12328 12329_ACEOF 12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12331exec 5>>config.log 12332{ 12333 echo 12334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12335## Running $as_me. ## 12336_ASBOX 12337 $as_echo "$ac_log" 12338} >&5 12339 12340_ACEOF 12341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12342# 12343# INIT-COMMANDS 12344# 12345 12346 12347# The HP-UX ksh and POSIX shell print the target directory to stdout 12348# if CDPATH is set. 12349(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12350 12351sed_quote_subst='$sed_quote_subst' 12352double_quote_subst='$double_quote_subst' 12353delay_variable_subst='$delay_variable_subst' 12354enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12355macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12356macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12357enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12358pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12359enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12360host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12361host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12362host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12363build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12364build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12365build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12366SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12367Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12368GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12369EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12370FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12371LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12372NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12373LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12374max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12375ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12376exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12377lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12378lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12379lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12380reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12381reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12382OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12383deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12384file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12385AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12386AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12387STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12388RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12389old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12390old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12391old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12392CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12393CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12394compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12395GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12396lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12397lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12398lt_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"`' 12399lt_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"`' 12400objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12401SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12402ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12403MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12404lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12405lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12406lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12407lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12408lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12409need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12410DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12411NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12412LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12413OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12414OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12415libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12416shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12417extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12418archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12419enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12420export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12421whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12422compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12423old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12424old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12425archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12426archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12427module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12428module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12429with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12430allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12431no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12432hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12433hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12434hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12435hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12436hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12437hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12438hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12439hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12440inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12441link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12442fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12443always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12444export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12445exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12446include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12447prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12448file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12449variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12450need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12451need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12452version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12453runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12454shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12455shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12456libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12457library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12458soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12459postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12460postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12461finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12462finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12463hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12464sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12465sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12466hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12467enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12468enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12469enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12470old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12471striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12472 12473LTCC='$LTCC' 12474LTCFLAGS='$LTCFLAGS' 12475compiler='$compiler_DEFAULT' 12476 12477# Quote evaled strings. 12478for var in SED \ 12479GREP \ 12480EGREP \ 12481FGREP \ 12482LD \ 12483NM \ 12484LN_S \ 12485lt_SP2NL \ 12486lt_NL2SP \ 12487reload_flag \ 12488OBJDUMP \ 12489deplibs_check_method \ 12490file_magic_cmd \ 12491AR \ 12492AR_FLAGS \ 12493STRIP \ 12494RANLIB \ 12495CC \ 12496CFLAGS \ 12497compiler \ 12498lt_cv_sys_global_symbol_pipe \ 12499lt_cv_sys_global_symbol_to_cdecl \ 12500lt_cv_sys_global_symbol_to_c_name_address \ 12501lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12502SHELL \ 12503ECHO \ 12504lt_prog_compiler_no_builtin_flag \ 12505lt_prog_compiler_wl \ 12506lt_prog_compiler_pic \ 12507lt_prog_compiler_static \ 12508lt_cv_prog_compiler_c_o \ 12509need_locks \ 12510DSYMUTIL \ 12511NMEDIT \ 12512LIPO \ 12513OTOOL \ 12514OTOOL64 \ 12515shrext_cmds \ 12516export_dynamic_flag_spec \ 12517whole_archive_flag_spec \ 12518compiler_needs_object \ 12519with_gnu_ld \ 12520allow_undefined_flag \ 12521no_undefined_flag \ 12522hardcode_libdir_flag_spec \ 12523hardcode_libdir_flag_spec_ld \ 12524hardcode_libdir_separator \ 12525fix_srcfile_path \ 12526exclude_expsyms \ 12527include_expsyms \ 12528file_list_spec \ 12529variables_saved_for_relink \ 12530libname_spec \ 12531library_names_spec \ 12532soname_spec \ 12533finish_eval \ 12534old_striplib \ 12535striplib; do 12536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12537 *[\\\\\\\`\\"\\\$]*) 12538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12539 ;; 12540 *) 12541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12542 ;; 12543 esac 12544done 12545 12546# Double-quote double-evaled strings. 12547for var in reload_cmds \ 12548old_postinstall_cmds \ 12549old_postuninstall_cmds \ 12550old_archive_cmds \ 12551extract_expsyms_cmds \ 12552old_archive_from_new_cmds \ 12553old_archive_from_expsyms_cmds \ 12554archive_cmds \ 12555archive_expsym_cmds \ 12556module_cmds \ 12557module_expsym_cmds \ 12558export_symbols_cmds \ 12559prelink_cmds \ 12560postinstall_cmds \ 12561postuninstall_cmds \ 12562finish_cmds \ 12563sys_lib_search_path_spec \ 12564sys_lib_dlsearch_path_spec; do 12565 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12566 *[\\\\\\\`\\"\\\$]*) 12567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12568 ;; 12569 *) 12570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12571 ;; 12572 esac 12573done 12574 12575# Fix-up fallback echo if it was mangled by the above quoting rules. 12576case \$lt_ECHO in 12577*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12578 ;; 12579esac 12580 12581ac_aux_dir='$ac_aux_dir' 12582xsi_shell='$xsi_shell' 12583lt_shell_append='$lt_shell_append' 12584 12585# See if we are running on zsh, and set the options which allow our 12586# commands through without removal of \ escapes INIT. 12587if test -n "\${ZSH_VERSION+set}" ; then 12588 setopt NO_GLOB_SUBST 12589fi 12590 12591 12592 PACKAGE='$PACKAGE' 12593 VERSION='$VERSION' 12594 TIMESTAMP='$TIMESTAMP' 12595 RM='$RM' 12596 ofile='$ofile' 12597 12598 12599 12600 12601_ACEOF 12602 12603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12604 12605# Handling of arguments. 12606for ac_config_target in $ac_config_targets 12607do 12608 case $ac_config_target in 12609 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12611 12612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 12613 esac 12614done 12615 12616 12617# If the user did not use the arguments to specify the items to instantiate, 12618# then the envvar interface is used. Set only those that are not. 12619# We use the long form for the default assignment because of an extremely 12620# bizarre bug on SunOS 4.1.3. 12621if $ac_need_defaults; then 12622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12624fi 12625 12626# Have a temporary directory for convenience. Make it in the build tree 12627# simply because there is no reason against having it here, and in addition, 12628# creating and moving files from /tmp can sometimes cause problems. 12629# Hook for its removal unless debugging. 12630# Note that there is a small window in which the directory will not be cleaned: 12631# after its creation but before its name has been assigned to `$tmp'. 12632$debug || 12633{ 12634 tmp= 12635 trap 'exit_status=$? 12636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12637' 0 12638 trap 'as_fn_exit 1' 1 2 13 15 12639} 12640# Create a (secure) tmp directory for tmp files. 12641 12642{ 12643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12644 test -n "$tmp" && test -d "$tmp" 12645} || 12646{ 12647 tmp=./conf$$-$RANDOM 12648 (umask 077 && mkdir "$tmp") 12649} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12650 12651# Set up the scripts for CONFIG_FILES section. 12652# No need to generate them if there are no CONFIG_FILES. 12653# This happens for instance with `./config.status config.h'. 12654if test -n "$CONFIG_FILES"; then 12655 12656 12657ac_cr=`echo X | tr X '\015'` 12658# On cygwin, bash can eat \r inside `` if the user requested igncr. 12659# But we know of no other shell where ac_cr would be empty at this 12660# point, so we can use a bashism as a fallback. 12661if test "x$ac_cr" = x; then 12662 eval ac_cr=\$\'\\r\' 12663fi 12664ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12665if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12666 ac_cs_awk_cr='\\r' 12667else 12668 ac_cs_awk_cr=$ac_cr 12669fi 12670 12671echo 'BEGIN {' >"$tmp/subs1.awk" && 12672_ACEOF 12673 12674 12675{ 12676 echo "cat >conf$$subs.awk <<_ACEOF" && 12677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12678 echo "_ACEOF" 12679} >conf$$subs.sh || 12680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12681ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12682ac_delim='%!_!# ' 12683for ac_last_try in false false false false false :; do 12684 . ./conf$$subs.sh || 12685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12686 12687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12688 if test $ac_delim_n = $ac_delim_num; then 12689 break 12690 elif $ac_last_try; then 12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12692 else 12693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12694 fi 12695done 12696rm -f conf$$subs.sh 12697 12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12699cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12700_ACEOF 12701sed -n ' 12702h 12703s/^/S["/; s/!.*/"]=/ 12704p 12705g 12706s/^[^!]*!// 12707:repl 12708t repl 12709s/'"$ac_delim"'$// 12710t delim 12711:nl 12712h 12713s/\(.\{148\}\)..*/\1/ 12714t more1 12715s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12716p 12717n 12718b repl 12719:more1 12720s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12721p 12722g 12723s/.\{148\}// 12724t nl 12725:delim 12726h 12727s/\(.\{148\}\)..*/\1/ 12728t more2 12729s/["\\]/\\&/g; s/^/"/; s/$/"/ 12730p 12731b 12732:more2 12733s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12734p 12735g 12736s/.\{148\}// 12737t delim 12738' <conf$$subs.awk | sed ' 12739/^[^""]/{ 12740 N 12741 s/\n// 12742} 12743' >>$CONFIG_STATUS || ac_write_fail=1 12744rm -f conf$$subs.awk 12745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12746_ACAWK 12747cat >>"\$tmp/subs1.awk" <<_ACAWK && 12748 for (key in S) S_is_set[key] = 1 12749 FS = "" 12750 12751} 12752{ 12753 line = $ 0 12754 nfields = split(line, field, "@") 12755 substed = 0 12756 len = length(field[1]) 12757 for (i = 2; i < nfields; i++) { 12758 key = field[i] 12759 keylen = length(key) 12760 if (S_is_set[key]) { 12761 value = S[key] 12762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12763 len += length(value) + length(field[++i]) 12764 substed = 1 12765 } else 12766 len += 1 + keylen 12767 } 12768 12769 print line 12770} 12771 12772_ACAWK 12773_ACEOF 12774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12775if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12776 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12777else 12778 cat 12779fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12780 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12781_ACEOF 12782 12783# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12784# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12785# trailing colons and then remove the whole line if VPATH becomes empty 12786# (actually we leave an empty line to preserve line numbers). 12787if test "x$srcdir" = x.; then 12788 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12789h 12790s/// 12791s/^/:/ 12792s/[ ]*$/:/ 12793s/:\$(srcdir):/:/g 12794s/:\${srcdir}:/:/g 12795s/:@srcdir@:/:/g 12796s/^:*// 12797s/:*$// 12798x 12799s/\(=[ ]*\).*/\1/ 12800G 12801s/\n// 12802s/^[^=]*=[ ]*$// 12803}' 12804fi 12805 12806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12807fi # test -n "$CONFIG_FILES" 12808 12809 12810eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12811shift 12812for ac_tag 12813do 12814 case $ac_tag in 12815 :[FHLC]) ac_mode=$ac_tag; continue;; 12816 esac 12817 case $ac_mode$ac_tag in 12818 :[FHL]*:*);; 12819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 12820 :[FH]-) ac_tag=-:-;; 12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12822 esac 12823 ac_save_IFS=$IFS 12824 IFS=: 12825 set x $ac_tag 12826 IFS=$ac_save_IFS 12827 shift 12828 ac_file=$1 12829 shift 12830 12831 case $ac_mode in 12832 :L) ac_source=$1;; 12833 :[FH]) 12834 ac_file_inputs= 12835 for ac_f 12836 do 12837 case $ac_f in 12838 -) ac_f="$tmp/stdin";; 12839 *) # Look for the file first in the build tree, then in the source tree 12840 # (if the path is not absolute). The absolute path cannot be DOS-style, 12841 # because $ac_f cannot contain `:'. 12842 test -f "$ac_f" || 12843 case $ac_f in 12844 [\\/$]*) false;; 12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12846 esac || 12847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 12848 esac 12849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12850 as_fn_append ac_file_inputs " '$ac_f'" 12851 done 12852 12853 # Let's still pretend it is `configure' which instantiates (i.e., don't 12854 # use $as_me), people would be surprised to read: 12855 # /* config.h. Generated by config.status. */ 12856 configure_input='Generated from '` 12857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12858 `' by configure.' 12859 if test x"$ac_file" != x-; then 12860 configure_input="$ac_file. $configure_input" 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12862$as_echo "$as_me: creating $ac_file" >&6;} 12863 fi 12864 # Neutralize special characters interpreted by sed in replacement strings. 12865 case $configure_input in #( 12866 *\&* | *\|* | *\\* ) 12867 ac_sed_conf_input=`$as_echo "$configure_input" | 12868 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12869 *) ac_sed_conf_input=$configure_input;; 12870 esac 12871 12872 case $ac_tag in 12873 *:-:* | *:-) cat >"$tmp/stdin" \ 12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12875 esac 12876 ;; 12877 esac 12878 12879 ac_dir=`$as_dirname -- "$ac_file" || 12880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12881 X"$ac_file" : 'X\(//\)[^/]' \| \ 12882 X"$ac_file" : 'X\(//\)$' \| \ 12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12884$as_echo X"$ac_file" | 12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12886 s//\1/ 12887 q 12888 } 12889 /^X\(\/\/\)[^/].*/{ 12890 s//\1/ 12891 q 12892 } 12893 /^X\(\/\/\)$/{ 12894 s//\1/ 12895 q 12896 } 12897 /^X\(\/\).*/{ 12898 s//\1/ 12899 q 12900 } 12901 s/.*/./; q'` 12902 as_dir="$ac_dir"; as_fn_mkdir_p 12903 ac_builddir=. 12904 12905case "$ac_dir" in 12906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12907*) 12908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12909 # A ".." for each directory in $ac_dir_suffix. 12910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12911 case $ac_top_builddir_sub in 12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12914 esac ;; 12915esac 12916ac_abs_top_builddir=$ac_pwd 12917ac_abs_builddir=$ac_pwd$ac_dir_suffix 12918# for backward compatibility: 12919ac_top_builddir=$ac_top_build_prefix 12920 12921case $srcdir in 12922 .) # We are building in place. 12923 ac_srcdir=. 12924 ac_top_srcdir=$ac_top_builddir_sub 12925 ac_abs_top_srcdir=$ac_pwd ;; 12926 [\\/]* | ?:[\\/]* ) # Absolute name. 12927 ac_srcdir=$srcdir$ac_dir_suffix; 12928 ac_top_srcdir=$srcdir 12929 ac_abs_top_srcdir=$srcdir ;; 12930 *) # Relative name. 12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12932 ac_top_srcdir=$ac_top_build_prefix$srcdir 12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12934esac 12935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12936 12937 12938 case $ac_mode in 12939 :F) 12940 # 12941 # CONFIG_FILE 12942 # 12943 12944 case $INSTALL in 12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12947 esac 12948_ACEOF 12949 12950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12951# If the template does not know about datarootdir, expand it. 12952# FIXME: This hack should be removed a few years after 2.60. 12953ac_datarootdir_hack=; ac_datarootdir_seen= 12954ac_sed_dataroot=' 12955/datarootdir/ { 12956 p 12957 q 12958} 12959/@datadir@/p 12960/@docdir@/p 12961/@infodir@/p 12962/@localedir@/p 12963/@mandir@/p' 12964case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12965*datarootdir*) ac_datarootdir_seen=yes;; 12966*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12968$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12969_ACEOF 12970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12971 ac_datarootdir_hack=' 12972 s&@datadir@&$datadir&g 12973 s&@docdir@&$docdir&g 12974 s&@infodir@&$infodir&g 12975 s&@localedir@&$localedir&g 12976 s&@mandir@&$mandir&g 12977 s&\\\${datarootdir}&$datarootdir&g' ;; 12978esac 12979_ACEOF 12980 12981# Neutralize VPATH when `$srcdir' = `.'. 12982# Shell code in configure.ac might set extrasub. 12983# FIXME: do we really want to maintain this feature? 12984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12985ac_sed_extra="$ac_vpsub 12986$extrasub 12987_ACEOF 12988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12989:t 12990/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12991s|@configure_input@|$ac_sed_conf_input|;t t 12992s&@top_builddir@&$ac_top_builddir_sub&;t t 12993s&@top_build_prefix@&$ac_top_build_prefix&;t t 12994s&@srcdir@&$ac_srcdir&;t t 12995s&@abs_srcdir@&$ac_abs_srcdir&;t t 12996s&@top_srcdir@&$ac_top_srcdir&;t t 12997s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12998s&@builddir@&$ac_builddir&;t t 12999s&@abs_builddir@&$ac_abs_builddir&;t t 13000s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13001s&@INSTALL@&$ac_INSTALL&;t t 13002$ac_datarootdir_hack 13003" 13004eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13006 13007test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13011which seems to be undefined. Please make sure it is defined" >&5 13012$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13013which seems to be undefined. Please make sure it is defined" >&2;} 13014 13015 rm -f "$tmp/stdin" 13016 case $ac_file in 13017 -) cat "$tmp/out" && rm -f "$tmp/out";; 13018 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13019 esac \ 13020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13021 ;; 13022 13023 13024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13025$as_echo "$as_me: executing $ac_file commands" >&6;} 13026 ;; 13027 esac 13028 13029 13030 case $ac_file$ac_mode in 13031 "libtool":C) 13032 13033 # See if we are running on zsh, and set the options which allow our 13034 # commands through without removal of \ escapes. 13035 if test -n "${ZSH_VERSION+set}" ; then 13036 setopt NO_GLOB_SUBST 13037 fi 13038 13039 cfgfile="${ofile}T" 13040 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13041 $RM "$cfgfile" 13042 13043 cat <<_LT_EOF >> "$cfgfile" 13044#! $SHELL 13045 13046# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13047# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13048# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13049# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13050# 13051# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13052# 2006, 2007, 2008 Free Software Foundation, Inc. 13053# Written by Gordon Matzigkeit, 1996 13054# 13055# This file is part of GNU Libtool. 13056# 13057# GNU Libtool is free software; you can redistribute it and/or 13058# modify it under the terms of the GNU General Public License as 13059# published by the Free Software Foundation; either version 2 of 13060# the License, or (at your option) any later version. 13061# 13062# As a special exception to the GNU General Public License, 13063# if you distribute this file as part of a program or library that 13064# is built using GNU Libtool, you may include this file under the 13065# same distribution terms that you use for the rest of that program. 13066# 13067# GNU Libtool is distributed in the hope that it will be useful, 13068# but WITHOUT ANY WARRANTY; without even the implied warranty of 13069# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13070# GNU General Public License for more details. 13071# 13072# You should have received a copy of the GNU General Public License 13073# along with GNU Libtool; see the file COPYING. If not, a copy 13074# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13075# obtained by writing to the Free Software Foundation, Inc., 13076# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13077 13078 13079# The names of the tagged configurations supported by this script. 13080available_tags="" 13081 13082# ### BEGIN LIBTOOL CONFIG 13083 13084# Whether or not to build static libraries. 13085build_old_libs=$enable_static 13086 13087# Which release of libtool.m4 was used? 13088macro_version=$macro_version 13089macro_revision=$macro_revision 13090 13091# Whether or not to build shared libraries. 13092build_libtool_libs=$enable_shared 13093 13094# What type of objects to build. 13095pic_mode=$pic_mode 13096 13097# Whether or not to optimize for fast installation. 13098fast_install=$enable_fast_install 13099 13100# The host system. 13101host_alias=$host_alias 13102host=$host 13103host_os=$host_os 13104 13105# The build system. 13106build_alias=$build_alias 13107build=$build 13108build_os=$build_os 13109 13110# A sed program that does not truncate output. 13111SED=$lt_SED 13112 13113# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13114Xsed="\$SED -e 1s/^X//" 13115 13116# A grep program that handles long lines. 13117GREP=$lt_GREP 13118 13119# An ERE matcher. 13120EGREP=$lt_EGREP 13121 13122# A literal string matcher. 13123FGREP=$lt_FGREP 13124 13125# A BSD- or MS-compatible name lister. 13126NM=$lt_NM 13127 13128# Whether we need soft or hard links. 13129LN_S=$lt_LN_S 13130 13131# What is the maximum length of a command? 13132max_cmd_len=$max_cmd_len 13133 13134# Object file suffix (normally "o"). 13135objext=$ac_objext 13136 13137# Executable file suffix (normally ""). 13138exeext=$exeext 13139 13140# whether the shell understands "unset". 13141lt_unset=$lt_unset 13142 13143# turn spaces into newlines. 13144SP2NL=$lt_lt_SP2NL 13145 13146# turn newlines into spaces. 13147NL2SP=$lt_lt_NL2SP 13148 13149# How to create reloadable object files. 13150reload_flag=$lt_reload_flag 13151reload_cmds=$lt_reload_cmds 13152 13153# An object symbol dumper. 13154OBJDUMP=$lt_OBJDUMP 13155 13156# Method to check whether dependent libraries are shared objects. 13157deplibs_check_method=$lt_deplibs_check_method 13158 13159# Command to use when deplibs_check_method == "file_magic". 13160file_magic_cmd=$lt_file_magic_cmd 13161 13162# The archiver. 13163AR=$lt_AR 13164AR_FLAGS=$lt_AR_FLAGS 13165 13166# A symbol stripping program. 13167STRIP=$lt_STRIP 13168 13169# Commands used to install an old-style archive. 13170RANLIB=$lt_RANLIB 13171old_postinstall_cmds=$lt_old_postinstall_cmds 13172old_postuninstall_cmds=$lt_old_postuninstall_cmds 13173 13174# A C compiler. 13175LTCC=$lt_CC 13176 13177# LTCC compiler flags. 13178LTCFLAGS=$lt_CFLAGS 13179 13180# Take the output of nm and produce a listing of raw symbols and C names. 13181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13182 13183# Transform the output of nm in a proper C declaration. 13184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13185 13186# Transform the output of nm in a C name address pair. 13187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13188 13189# Transform the output of nm in a C name address pair when lib prefix is needed. 13190global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13191 13192# The name of the directory that contains temporary libtool files. 13193objdir=$objdir 13194 13195# Shell to use when invoking shell scripts. 13196SHELL=$lt_SHELL 13197 13198# An echo program that does not interpret backslashes. 13199ECHO=$lt_ECHO 13200 13201# Used to examine libraries when file_magic_cmd begins with "file". 13202MAGIC_CMD=$MAGIC_CMD 13203 13204# Must we lock files when doing compilation? 13205need_locks=$lt_need_locks 13206 13207# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13208DSYMUTIL=$lt_DSYMUTIL 13209 13210# Tool to change global to local symbols on Mac OS X. 13211NMEDIT=$lt_NMEDIT 13212 13213# Tool to manipulate fat objects and archives on Mac OS X. 13214LIPO=$lt_LIPO 13215 13216# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13217OTOOL=$lt_OTOOL 13218 13219# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13220OTOOL64=$lt_OTOOL64 13221 13222# Old archive suffix (normally "a"). 13223libext=$libext 13224 13225# Shared library suffix (normally ".so"). 13226shrext_cmds=$lt_shrext_cmds 13227 13228# The commands to extract the exported symbol list from a shared archive. 13229extract_expsyms_cmds=$lt_extract_expsyms_cmds 13230 13231# Variables whose values should be saved in libtool wrapper scripts and 13232# restored at link time. 13233variables_saved_for_relink=$lt_variables_saved_for_relink 13234 13235# Do we need the "lib" prefix for modules? 13236need_lib_prefix=$need_lib_prefix 13237 13238# Do we need a version for libraries? 13239need_version=$need_version 13240 13241# Library versioning type. 13242version_type=$version_type 13243 13244# Shared library runtime path variable. 13245runpath_var=$runpath_var 13246 13247# Shared library path variable. 13248shlibpath_var=$shlibpath_var 13249 13250# Is shlibpath searched before the hard-coded library search path? 13251shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13252 13253# Format of library name prefix. 13254libname_spec=$lt_libname_spec 13255 13256# List of archive names. First name is the real one, the rest are links. 13257# The last name is the one that the linker finds with -lNAME 13258library_names_spec=$lt_library_names_spec 13259 13260# The coded name of the library, if different from the real name. 13261soname_spec=$lt_soname_spec 13262 13263# Command to use after installation of a shared archive. 13264postinstall_cmds=$lt_postinstall_cmds 13265 13266# Command to use after uninstallation of a shared archive. 13267postuninstall_cmds=$lt_postuninstall_cmds 13268 13269# Commands used to finish a libtool library installation in a directory. 13270finish_cmds=$lt_finish_cmds 13271 13272# As "finish_cmds", except a single script fragment to be evaled but 13273# not shown. 13274finish_eval=$lt_finish_eval 13275 13276# Whether we should hardcode library paths into libraries. 13277hardcode_into_libs=$hardcode_into_libs 13278 13279# Compile-time system search path for libraries. 13280sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13281 13282# Run-time system search path for libraries. 13283sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13284 13285# Whether dlopen is supported. 13286dlopen_support=$enable_dlopen 13287 13288# Whether dlopen of programs is supported. 13289dlopen_self=$enable_dlopen_self 13290 13291# Whether dlopen of statically linked programs is supported. 13292dlopen_self_static=$enable_dlopen_self_static 13293 13294# Commands to strip libraries. 13295old_striplib=$lt_old_striplib 13296striplib=$lt_striplib 13297 13298 13299# The linker used to build libraries. 13300LD=$lt_LD 13301 13302# Commands used to build an old-style archive. 13303old_archive_cmds=$lt_old_archive_cmds 13304 13305# A language specific compiler. 13306CC=$lt_compiler 13307 13308# Is the compiler the GNU compiler? 13309with_gcc=$GCC 13310 13311# Compiler flag to turn off builtin functions. 13312no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13313 13314# How to pass a linker flag through the compiler. 13315wl=$lt_lt_prog_compiler_wl 13316 13317# Additional compiler flags for building library objects. 13318pic_flag=$lt_lt_prog_compiler_pic 13319 13320# Compiler flag to prevent dynamic linking. 13321link_static_flag=$lt_lt_prog_compiler_static 13322 13323# Does compiler simultaneously support -c and -o options? 13324compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13325 13326# Whether or not to add -lc for building shared libraries. 13327build_libtool_need_lc=$archive_cmds_need_lc 13328 13329# Whether or not to disallow shared libs when runtime libs are static. 13330allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13331 13332# Compiler flag to allow reflexive dlopens. 13333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13334 13335# Compiler flag to generate shared objects directly from archives. 13336whole_archive_flag_spec=$lt_whole_archive_flag_spec 13337 13338# Whether the compiler copes with passing no objects directly. 13339compiler_needs_object=$lt_compiler_needs_object 13340 13341# Create an old-style archive from a shared archive. 13342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13343 13344# Create a temporary old-style archive to link instead of a shared archive. 13345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13346 13347# Commands used to build a shared archive. 13348archive_cmds=$lt_archive_cmds 13349archive_expsym_cmds=$lt_archive_expsym_cmds 13350 13351# Commands used to build a loadable module if different from building 13352# a shared archive. 13353module_cmds=$lt_module_cmds 13354module_expsym_cmds=$lt_module_expsym_cmds 13355 13356# Whether we are building with GNU ld or not. 13357with_gnu_ld=$lt_with_gnu_ld 13358 13359# Flag that allows shared libraries with undefined symbols to be built. 13360allow_undefined_flag=$lt_allow_undefined_flag 13361 13362# Flag that enforces no undefined symbols. 13363no_undefined_flag=$lt_no_undefined_flag 13364 13365# Flag to hardcode \$libdir into a binary during linking. 13366# This must work even if \$libdir does not exist 13367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13368 13369# If ld is used when linking, flag to hardcode \$libdir into a binary 13370# during linking. This must work even if \$libdir does not exist. 13371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13372 13373# Whether we need a single "-rpath" flag with a separated argument. 13374hardcode_libdir_separator=$lt_hardcode_libdir_separator 13375 13376# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13377# DIR into the resulting binary. 13378hardcode_direct=$hardcode_direct 13379 13380# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13381# DIR into the resulting binary and the resulting library dependency is 13382# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13383# library is relocated. 13384hardcode_direct_absolute=$hardcode_direct_absolute 13385 13386# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13387# into the resulting binary. 13388hardcode_minus_L=$hardcode_minus_L 13389 13390# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13391# into the resulting binary. 13392hardcode_shlibpath_var=$hardcode_shlibpath_var 13393 13394# Set to "yes" if building a shared library automatically hardcodes DIR 13395# into the library and all subsequent libraries and executables linked 13396# against it. 13397hardcode_automatic=$hardcode_automatic 13398 13399# Set to yes if linker adds runtime paths of dependent libraries 13400# to runtime path list. 13401inherit_rpath=$inherit_rpath 13402 13403# Whether libtool must link a program against all its dependency libraries. 13404link_all_deplibs=$link_all_deplibs 13405 13406# Fix the shell variable \$srcfile for the compiler. 13407fix_srcfile_path=$lt_fix_srcfile_path 13408 13409# Set to "yes" if exported symbols are required. 13410always_export_symbols=$always_export_symbols 13411 13412# The commands to list exported symbols. 13413export_symbols_cmds=$lt_export_symbols_cmds 13414 13415# Symbols that should not be listed in the preloaded symbols. 13416exclude_expsyms=$lt_exclude_expsyms 13417 13418# Symbols that must always be exported. 13419include_expsyms=$lt_include_expsyms 13420 13421# Commands necessary for linking programs (against libraries) with templates. 13422prelink_cmds=$lt_prelink_cmds 13423 13424# Specify filename containing input files. 13425file_list_spec=$lt_file_list_spec 13426 13427# How to hardcode a shared library path into an executable. 13428hardcode_action=$hardcode_action 13429 13430# ### END LIBTOOL CONFIG 13431 13432_LT_EOF 13433 13434 case $host_os in 13435 aix3*) 13436 cat <<\_LT_EOF >> "$cfgfile" 13437# AIX sometimes has problems with the GCC collect2 program. For some 13438# reason, if we set the COLLECT_NAMES environment variable, the problems 13439# vanish in a puff of smoke. 13440if test "X${COLLECT_NAMES+set}" != Xset; then 13441 COLLECT_NAMES= 13442 export COLLECT_NAMES 13443fi 13444_LT_EOF 13445 ;; 13446 esac 13447 13448 13449ltmain="$ac_aux_dir/ltmain.sh" 13450 13451 13452 # We use sed instead of cat because bash on DJGPP gets confused if 13453 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13454 # text mode, it properly converts lines to CR/LF. This bash problem 13455 # is reportedly fixed, but why not run on old versions too? 13456 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13457 || (rm -f "$cfgfile"; exit 1) 13458 13459 case $xsi_shell in 13460 yes) 13461 cat << \_LT_EOF >> "$cfgfile" 13462 13463# func_dirname file append nondir_replacement 13464# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13465# otherwise set result to NONDIR_REPLACEMENT. 13466func_dirname () 13467{ 13468 case ${1} in 13469 */*) func_dirname_result="${1%/*}${2}" ;; 13470 * ) func_dirname_result="${3}" ;; 13471 esac 13472} 13473 13474# func_basename file 13475func_basename () 13476{ 13477 func_basename_result="${1##*/}" 13478} 13479 13480# func_dirname_and_basename file append nondir_replacement 13481# perform func_basename and func_dirname in a single function 13482# call: 13483# dirname: Compute the dirname of FILE. If nonempty, 13484# add APPEND to the result, otherwise set result 13485# to NONDIR_REPLACEMENT. 13486# value returned in "$func_dirname_result" 13487# basename: Compute filename of FILE. 13488# value retuned in "$func_basename_result" 13489# Implementation must be kept synchronized with func_dirname 13490# and func_basename. For efficiency, we do not delegate to 13491# those functions but instead duplicate the functionality here. 13492func_dirname_and_basename () 13493{ 13494 case ${1} in 13495 */*) func_dirname_result="${1%/*}${2}" ;; 13496 * ) func_dirname_result="${3}" ;; 13497 esac 13498 func_basename_result="${1##*/}" 13499} 13500 13501# func_stripname prefix suffix name 13502# strip PREFIX and SUFFIX off of NAME. 13503# PREFIX and SUFFIX must not contain globbing or regex special 13504# characters, hashes, percent signs, but SUFFIX may contain a leading 13505# dot (in which case that matches only a dot). 13506func_stripname () 13507{ 13508 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13509 # positional parameters, so assign one to ordinary parameter first. 13510 func_stripname_result=${3} 13511 func_stripname_result=${func_stripname_result#"${1}"} 13512 func_stripname_result=${func_stripname_result%"${2}"} 13513} 13514 13515# func_opt_split 13516func_opt_split () 13517{ 13518 func_opt_split_opt=${1%%=*} 13519 func_opt_split_arg=${1#*=} 13520} 13521 13522# func_lo2o object 13523func_lo2o () 13524{ 13525 case ${1} in 13526 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13527 *) func_lo2o_result=${1} ;; 13528 esac 13529} 13530 13531# func_xform libobj-or-source 13532func_xform () 13533{ 13534 func_xform_result=${1%.*}.lo 13535} 13536 13537# func_arith arithmetic-term... 13538func_arith () 13539{ 13540 func_arith_result=$(( $* )) 13541} 13542 13543# func_len string 13544# STRING may not start with a hyphen. 13545func_len () 13546{ 13547 func_len_result=${#1} 13548} 13549 13550_LT_EOF 13551 ;; 13552 *) # Bourne compatible functions. 13553 cat << \_LT_EOF >> "$cfgfile" 13554 13555# func_dirname file append nondir_replacement 13556# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13557# otherwise set result to NONDIR_REPLACEMENT. 13558func_dirname () 13559{ 13560 # Extract subdirectory from the argument. 13561 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13562 if test "X$func_dirname_result" = "X${1}"; then 13563 func_dirname_result="${3}" 13564 else 13565 func_dirname_result="$func_dirname_result${2}" 13566 fi 13567} 13568 13569# func_basename file 13570func_basename () 13571{ 13572 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13573} 13574 13575 13576# func_stripname prefix suffix name 13577# strip PREFIX and SUFFIX off of NAME. 13578# PREFIX and SUFFIX must not contain globbing or regex special 13579# characters, hashes, percent signs, but SUFFIX may contain a leading 13580# dot (in which case that matches only a dot). 13581# func_strip_suffix prefix name 13582func_stripname () 13583{ 13584 case ${2} in 13585 .*) func_stripname_result=`$ECHO "X${3}" \ 13586 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13587 *) func_stripname_result=`$ECHO "X${3}" \ 13588 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13589 esac 13590} 13591 13592# sed scripts: 13593my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13594my_sed_long_arg='1s/^-[^=]*=//' 13595 13596# func_opt_split 13597func_opt_split () 13598{ 13599 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13600 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13601} 13602 13603# func_lo2o object 13604func_lo2o () 13605{ 13606 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13607} 13608 13609# func_xform libobj-or-source 13610func_xform () 13611{ 13612 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13613} 13614 13615# func_arith arithmetic-term... 13616func_arith () 13617{ 13618 func_arith_result=`expr "$@"` 13619} 13620 13621# func_len string 13622# STRING may not start with a hyphen. 13623func_len () 13624{ 13625 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13626} 13627 13628_LT_EOF 13629esac 13630 13631case $lt_shell_append in 13632 yes) 13633 cat << \_LT_EOF >> "$cfgfile" 13634 13635# func_append var value 13636# Append VALUE to the end of shell variable VAR. 13637func_append () 13638{ 13639 eval "$1+=\$2" 13640} 13641_LT_EOF 13642 ;; 13643 *) 13644 cat << \_LT_EOF >> "$cfgfile" 13645 13646# func_append var value 13647# Append VALUE to the end of shell variable VAR. 13648func_append () 13649{ 13650 eval "$1=\$$1\$2" 13651} 13652 13653_LT_EOF 13654 ;; 13655 esac 13656 13657 13658 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13659 || (rm -f "$cfgfile"; exit 1) 13660 13661 mv -f "$cfgfile" "$ofile" || 13662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13663 chmod +x "$ofile" 13664 13665 ;; 13666 13667 esac 13668done # for ac_tag 13669 13670 13671as_fn_exit 0 13672_ACEOF 13673ac_clean_files=$ac_clean_files_save 13674 13675test $ac_write_fail = 0 || 13676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13677 13678 13679# configure is writing to config.log, and then calls config.status. 13680# config.status does its own redirection, appending to config.log. 13681# Unfortunately, on DOS this fails, as config.log is still kept open 13682# by configure, so config.status won't be able to write to it; its 13683# output is simply discarded. So we exec the FD to /dev/null, 13684# effectively closing config.log, so it can be properly (re)opened and 13685# appended to by config.status. When coming back to configure, we 13686# need to make the FD available again. 13687if test "$no_create" != yes; then 13688 ac_cs_success=: 13689 ac_config_status_args= 13690 test "$silent" = yes && 13691 ac_config_status_args="$ac_config_status_args --quiet" 13692 exec 5>/dev/null 13693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13694 exec 5>>config.log 13695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13696 # would make configure fail if this is the last instruction. 13697 $ac_cs_success || as_fn_exit 1 13698fi 13699if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13701$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13702fi 13703 13704 13705