1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for Berkeley DB 4.8.30. 4# 5# Report bugs to <Oracle Technology Network Berkeley DB forum>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and Oracle Technology 234$0: Network Berkeley DB forum about your system, including 235$0: any error possibly output before this message. Then 236$0: install a modern shell, or manually run the script 237$0: under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562$* 563_LT_EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='Berkeley DB' 703PACKAGE_TARNAME='db-4.8.30' 704PACKAGE_VERSION='4.8.30' 705PACKAGE_STRING='Berkeley DB 4.8.30' 706PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum' 707PACKAGE_URL='' 708 709ac_unique_file="../db/db.c" 710ac_default_prefix=/usr/local/BerkeleyDB.4.8 711# Factoring default headers for most tests. 712ac_includes_default="\ 713#include <stdio.h> 714#ifdef HAVE_SYS_TYPES_H 715# include <sys/types.h> 716#endif 717#ifdef HAVE_SYS_STAT_H 718# include <sys/stat.h> 719#endif 720#ifdef STDC_HEADERS 721# include <stdlib.h> 722# include <stddef.h> 723#else 724# ifdef HAVE_STDLIB_H 725# include <stdlib.h> 726# endif 727#endif 728#ifdef HAVE_STRING_H 729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 730# include <memory.h> 731# endif 732# include <string.h> 733#endif 734#ifdef HAVE_STRINGS_H 735# include <strings.h> 736#endif 737#ifdef HAVE_INTTYPES_H 738# include <inttypes.h> 739#endif 740#ifdef HAVE_STDINT_H 741# include <stdint.h> 742#endif 743#ifdef HAVE_UNISTD_H 744# include <unistd.h> 745#endif" 746 747ac_subst_vars='LTLIBOBJS 748db_seq_decl 749UINT64_FMT 750INT64_FMT 751TCL_TCLSH 752TCL_SRC_DIR 753TCL_LIB_FILE 754TCL_INCLUDE_SPEC 755TCL_BIN_DIR 756LIBOBJS 757db_threadid_t_decl 758thread_h_decl 759uintptr_t_decl 760uintmax_t_decl 761ssize_t_decl 762time_t_decl 763size_t_decl 764pid_t_decl 765off_t_decl 766FILE_t_decl 767int64_decl 768u_int64_decl 769int32_decl 770u_int32_decl 771int16_decl 772u_int16_decl 773u_int8_decl 774u_long_decl 775u_int_decl 776u_short_decl 777u_char_decl 778unistd_h_decl 779stddef_h_decl 780stdint_h_decl 781inttypes_h_decl 782TLS_defn 783TLS_decl 784WSTRING_decl 785_ACJNI_JAVAC 786uudecode 787JAVA 788JAVAC 789JMODSUFFIX 790MODSUFFIX 791SOSUFFIX 792CPP 793OTOOL64 794OTOOL 795LIPO 796NMEDIT 797DSYMUTIL 798lt_ECHO 799RANLIB 800STRIP 801AR 802OBJDUMP 803LN_S 804NM 805ac_ct_DUMPBIN 806DUMPBIN 807LD 808FGREP 809EGREP 810GREP 811SED 812cxx_have_stdheaders 813CXXCPP 814ac_ct_CXX 815CCC 816OBJEXT 817EXEEXT 818ac_ct_CC 819CC 820INSTALL_DATA 821INSTALL_SCRIPT 822INSTALL_PROGRAM 823db_cv_path_sh 824RPCGEN 825RM 826MKDIR 827LN 828KILL 829CP 830CHMOD 831DB_VERSION_UNIQUE_NAME 832DB_VERSION_STRING 833DB_VERSION_PATCH 834DB_VERSION_MINOR 835DB_VERSION_MAJOR 836platform_footer 837platform_header 838o 839db_int_def 840TEST_LIBS 841SWIGCFLAGS 842SOFLAGS 843RPC_SERVER_H 844RPC_CLIENT_OBJS 845REPLACEMENT_OBJS 846POSTLINK 847OSDIR 848MAKEFILE_XSOLINK 849MAKEFILE_SOLINK 850MAKEFILE_CXXLINK 851MAKEFILE_CXX 852MAKEFILE_CCLINK 853MAKEFILE_CC 854LIBXSO_LIBS 855LIBTSO_MODULE 856LIBTSO_MODSUFFIX 857LIBTSO_LIBS 858LIBTOOL 859LIBSO_LIBS 860LIBJSO_LIBS 861LIBCSO_LIBS 862LDFLAGS 863JAVACFLAGS 864JAR 865INSTALL_TARGET 866INSTALL_LIBS 867INSTALLER 868DEFAULT_LIB_STL 869DEFAULT_LIB_CXX 870DEFAULT_LIB 871DB_PROTO2 872DB_PROTO1 873DB_CONST 874CXXFLAGS 875CXX 876CRYPTO_OBJS 877CPPFLAGS 878CONFIGURATION_PATH 879CONFIGURATION_ARGS 880CFLAGS 881BUILD_TARGET 882ADDITIONAL_PROGS 883ADDITIONAL_OBJS 884ADDITIONAL_LANG 885ADDITIONAL_INCS 886host_os 887host_vendor 888host_cpu 889host 890build_os 891build_vendor 892build_cpu 893build 894target_alias 895host_alias 896build_alias 897LIBS 898ECHO_T 899ECHO_N 900ECHO_C 901DEFS 902mandir 903localedir 904libdir 905psdir 906pdfdir 907dvidir 908htmldir 909infodir 910docdir 911oldincludedir 912includedir 913localstatedir 914sharedstatedir 915sysconfdir 916datadir 917datarootdir 918libexecdir 919sbindir 920bindir 921program_transform_name 922prefix 923exec_prefix 924PACKAGE_URL 925PACKAGE_BUGREPORT 926PACKAGE_STRING 927PACKAGE_VERSION 928PACKAGE_TARNAME 929PACKAGE_NAME 930PATH_SEPARATOR 931SHELL' 932ac_subst_files='' 933ac_user_opts=' 934enable_option_checking 935enable_bigfile 936enable_cryptography 937enable_hash 938enable_partition 939enable_compression 940enable_mutexsupport 941enable_atomicsupport 942enable_queue 943enable_replication 944enable_statistics 945enable_verify 946enable_compat185 947enable_cxx 948enable_debug 949enable_debug_rop 950enable_debug_wop 951enable_diagnostic 952enable_dump185 953enable_java 954enable_mingw 955enable_o_direct 956enable_posixmutexes 957enable_pthread_self 958enable_pthread_api 959enable_rpc 960enable_smallbuild 961enable_stl 962enable_tcl 963enable_test 964enable_uimutexes 965enable_umrw 966with_mutex 967with_mutexalign 968with_tcl 969with_uniquename 970enable_shared 971enable_static 972with_pic 973enable_fast_install 974with_gnu_ld 975enable_libtool_lock 976enable_largefile 977' 978 ac_precious_vars='build_alias 979host_alias 980target_alias 981CC 982CFLAGS 983LDFLAGS 984LIBS 985CPPFLAGS 986CXX 987CXXFLAGS 988CCC 989CXXCPP 990CPP' 991 992 993# Initialize some variables set by options. 994ac_init_help= 995ac_init_version=false 996ac_unrecognized_opts= 997ac_unrecognized_sep= 998# The variables have the same names as the options, with 999# dashes changed to underlines. 1000cache_file=/dev/null 1001exec_prefix=NONE 1002no_create= 1003no_recursion= 1004prefix=NONE 1005program_prefix=NONE 1006program_suffix=NONE 1007program_transform_name=s,x,x, 1008silent= 1009site= 1010srcdir= 1011verbose= 1012x_includes=NONE 1013x_libraries=NONE 1014 1015# Installation directory options. 1016# These are left unexpanded so users can "make install exec_prefix=/foo" 1017# and all the variables that are supposed to be based on exec_prefix 1018# by default will actually change. 1019# Use braces instead of parens because sh, perl, etc. also accept them. 1020# (The list follows the same order as the GNU Coding Standards.) 1021bindir='${exec_prefix}/bin' 1022sbindir='${exec_prefix}/sbin' 1023libexecdir='${exec_prefix}/libexec' 1024datarootdir='${prefix}/share' 1025datadir='${datarootdir}' 1026sysconfdir='${prefix}/etc' 1027sharedstatedir='${prefix}/com' 1028localstatedir='${prefix}/var' 1029includedir='${prefix}/include' 1030oldincludedir='/usr/include' 1031docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1032infodir='${datarootdir}/info' 1033htmldir='${docdir}' 1034dvidir='${docdir}' 1035pdfdir='${docdir}' 1036psdir='${docdir}' 1037libdir='${exec_prefix}/lib' 1038localedir='${datarootdir}/locale' 1039mandir='${datarootdir}/man' 1040 1041ac_prev= 1042ac_dashdash= 1043for ac_option 1044do 1045 # If the previous option needs an argument, assign it. 1046 if test -n "$ac_prev"; then 1047 eval $ac_prev=\$ac_option 1048 ac_prev= 1049 continue 1050 fi 1051 1052 case $ac_option in 1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1054 *) ac_optarg=yes ;; 1055 esac 1056 1057 # Accept the important Cygnus configure options, so we can diagnose typos. 1058 1059 case $ac_dashdash$ac_option in 1060 --) 1061 ac_dashdash=yes ;; 1062 1063 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1064 ac_prev=bindir ;; 1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1066 bindir=$ac_optarg ;; 1067 1068 -build | --build | --buil | --bui | --bu) 1069 ac_prev=build_alias ;; 1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1071 build_alias=$ac_optarg ;; 1072 1073 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1075 ac_prev=cache_file ;; 1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1078 cache_file=$ac_optarg ;; 1079 1080 --config-cache | -C) 1081 cache_file=config.cache ;; 1082 1083 -datadir | --datadir | --datadi | --datad) 1084 ac_prev=datadir ;; 1085 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1086 datadir=$ac_optarg ;; 1087 1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1089 | --dataroo | --dataro | --datar) 1090 ac_prev=datarootdir ;; 1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1093 datarootdir=$ac_optarg ;; 1094 1095 -disable-* | --disable-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error "invalid feature name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"enable_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval enable_$ac_useropt=no ;; 1110 1111 -docdir | --docdir | --docdi | --doc | --do) 1112 ac_prev=docdir ;; 1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1114 docdir=$ac_optarg ;; 1115 1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1117 ac_prev=dvidir ;; 1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1119 dvidir=$ac_optarg ;; 1120 1121 -enable-* | --enable-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error "invalid feature name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"enable_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval enable_$ac_useropt=\$ac_optarg ;; 1136 1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1139 | --exec | --exe | --ex) 1140 ac_prev=exec_prefix ;; 1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1143 | --exec=* | --exe=* | --ex=*) 1144 exec_prefix=$ac_optarg ;; 1145 1146 -gas | --gas | --ga | --g) 1147 # Obsolete; use --with-gas. 1148 with_gas=yes ;; 1149 1150 -help | --help | --hel | --he | -h) 1151 ac_init_help=long ;; 1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1153 ac_init_help=recursive ;; 1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1155 ac_init_help=short ;; 1156 1157 -host | --host | --hos | --ho) 1158 ac_prev=host_alias ;; 1159 -host=* | --host=* | --hos=* | --ho=*) 1160 host_alias=$ac_optarg ;; 1161 1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1163 ac_prev=htmldir ;; 1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1165 | --ht=*) 1166 htmldir=$ac_optarg ;; 1167 1168 -includedir | --includedir | --includedi | --included | --include \ 1169 | --includ | --inclu | --incl | --inc) 1170 ac_prev=includedir ;; 1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1172 | --includ=* | --inclu=* | --incl=* | --inc=*) 1173 includedir=$ac_optarg ;; 1174 1175 -infodir | --infodir | --infodi | --infod | --info | --inf) 1176 ac_prev=infodir ;; 1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1178 infodir=$ac_optarg ;; 1179 1180 -libdir | --libdir | --libdi | --libd) 1181 ac_prev=libdir ;; 1182 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1183 libdir=$ac_optarg ;; 1184 1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1186 | --libexe | --libex | --libe) 1187 ac_prev=libexecdir ;; 1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1189 | --libexe=* | --libex=* | --libe=*) 1190 libexecdir=$ac_optarg ;; 1191 1192 -localedir | --localedir | --localedi | --localed | --locale) 1193 ac_prev=localedir ;; 1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1195 localedir=$ac_optarg ;; 1196 1197 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1198 | --localstate | --localstat | --localsta | --localst | --locals) 1199 ac_prev=localstatedir ;; 1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1202 localstatedir=$ac_optarg ;; 1203 1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1205 ac_prev=mandir ;; 1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1207 mandir=$ac_optarg ;; 1208 1209 -nfp | --nfp | --nf) 1210 # Obsolete; use --without-fp. 1211 with_fp=no ;; 1212 1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1214 | --no-cr | --no-c | -n) 1215 no_create=yes ;; 1216 1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1219 no_recursion=yes ;; 1220 1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1223 | --oldin | --oldi | --old | --ol | --o) 1224 ac_prev=oldincludedir ;; 1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1228 oldincludedir=$ac_optarg ;; 1229 1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1231 ac_prev=prefix ;; 1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1233 prefix=$ac_optarg ;; 1234 1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1236 | --program-pre | --program-pr | --program-p) 1237 ac_prev=program_prefix ;; 1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1240 program_prefix=$ac_optarg ;; 1241 1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1243 | --program-suf | --program-su | --program-s) 1244 ac_prev=program_suffix ;; 1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1247 program_suffix=$ac_optarg ;; 1248 1249 -program-transform-name | --program-transform-name \ 1250 | --program-transform-nam | --program-transform-na \ 1251 | --program-transform-n | --program-transform- \ 1252 | --program-transform | --program-transfor \ 1253 | --program-transfo | --program-transf \ 1254 | --program-trans | --program-tran \ 1255 | --progr-tra | --program-tr | --program-t) 1256 ac_prev=program_transform_name ;; 1257 -program-transform-name=* | --program-transform-name=* \ 1258 | --program-transform-nam=* | --program-transform-na=* \ 1259 | --program-transform-n=* | --program-transform-=* \ 1260 | --program-transform=* | --program-transfor=* \ 1261 | --program-transfo=* | --program-transf=* \ 1262 | --program-trans=* | --program-tran=* \ 1263 | --progr-tra=* | --program-tr=* | --program-t=*) 1264 program_transform_name=$ac_optarg ;; 1265 1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1267 ac_prev=pdfdir ;; 1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1269 pdfdir=$ac_optarg ;; 1270 1271 -psdir | --psdir | --psdi | --psd | --ps) 1272 ac_prev=psdir ;; 1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1274 psdir=$ac_optarg ;; 1275 1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1277 | -silent | --silent | --silen | --sile | --sil) 1278 silent=yes ;; 1279 1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1281 ac_prev=sbindir ;; 1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1283 | --sbi=* | --sb=*) 1284 sbindir=$ac_optarg ;; 1285 1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1288 | --sharedst | --shareds | --shared | --share | --shar \ 1289 | --sha | --sh) 1290 ac_prev=sharedstatedir ;; 1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1294 | --sha=* | --sh=*) 1295 sharedstatedir=$ac_optarg ;; 1296 1297 -site | --site | --sit) 1298 ac_prev=site ;; 1299 -site=* | --site=* | --sit=*) 1300 site=$ac_optarg ;; 1301 1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1303 ac_prev=srcdir ;; 1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1305 srcdir=$ac_optarg ;; 1306 1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1308 | --syscon | --sysco | --sysc | --sys | --sy) 1309 ac_prev=sysconfdir ;; 1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1312 sysconfdir=$ac_optarg ;; 1313 1314 -target | --target | --targe | --targ | --tar | --ta | --t) 1315 ac_prev=target_alias ;; 1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1317 target_alias=$ac_optarg ;; 1318 1319 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1320 verbose=yes ;; 1321 1322 -version | --version | --versio | --versi | --vers | -V) 1323 ac_init_version=: ;; 1324 1325 -with-* | --with-*) 1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1329 as_fn_error "invalid package name: $ac_useropt" 1330 ac_useropt_orig=$ac_useropt 1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1332 case $ac_user_opts in 1333 *" 1334"with_$ac_useropt" 1335"*) ;; 1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1337 ac_unrecognized_sep=', ';; 1338 esac 1339 eval with_$ac_useropt=\$ac_optarg ;; 1340 1341 -without-* | --without-*) 1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1343 # Reject names that are not valid shell variable names. 1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1345 as_fn_error "invalid package name: $ac_useropt" 1346 ac_useropt_orig=$ac_useropt 1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1348 case $ac_user_opts in 1349 *" 1350"with_$ac_useropt" 1351"*) ;; 1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1353 ac_unrecognized_sep=', ';; 1354 esac 1355 eval with_$ac_useropt=no ;; 1356 1357 --x) 1358 # Obsolete; use --with-x. 1359 with_x=yes ;; 1360 1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1362 | --x-incl | --x-inc | --x-in | --x-i) 1363 ac_prev=x_includes ;; 1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1366 x_includes=$ac_optarg ;; 1367 1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1370 ac_prev=x_libraries ;; 1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1373 x_libraries=$ac_optarg ;; 1374 1375 -*) as_fn_error "unrecognized option: \`$ac_option' 1376Try \`$0 --help' for more information." 1377 ;; 1378 1379 *=*) 1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1381 # Reject names that are not valid shell variable names. 1382 case $ac_envvar in #( 1383 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1384 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1385 esac 1386 eval $ac_envvar=\$ac_optarg 1387 export $ac_envvar ;; 1388 1389 *) 1390 # FIXME: should be removed in autoconf 3.0. 1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1395 ;; 1396 1397 esac 1398done 1399 1400if test -n "$ac_prev"; then 1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1402 as_fn_error "missing argument to $ac_option" 1403fi 1404 1405if test -n "$ac_unrecognized_opts"; then 1406 case $enable_option_checking in 1407 no) ;; 1408 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1410 esac 1411fi 1412 1413# Check all directory arguments for consistency. 1414for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1415 datadir sysconfdir sharedstatedir localstatedir includedir \ 1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1417 libdir localedir mandir 1418do 1419 eval ac_val=\$$ac_var 1420 # Remove trailing slashes. 1421 case $ac_val in 1422 */ ) 1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1424 eval $ac_var=\$ac_val;; 1425 esac 1426 # Be sure to have absolute directory names. 1427 case $ac_val in 1428 [\\/$]* | ?:[\\/]* ) continue;; 1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1430 esac 1431 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1432done 1433 1434# There might be people who depend on the old broken behavior: `$host' 1435# used to hold the argument of --host etc. 1436# FIXME: To remove some day. 1437build=$build_alias 1438host=$host_alias 1439target=$target_alias 1440 1441# FIXME: To remove some day. 1442if test "x$host_alias" != x; then 1443 if test "x$build_alias" = x; then 1444 cross_compiling=maybe 1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1446 If a cross compiler is detected then cross compile mode will be used." >&2 1447 elif test "x$build_alias" != "x$host_alias"; then 1448 cross_compiling=yes 1449 fi 1450fi 1451 1452ac_tool_prefix= 1453test -n "$host_alias" && ac_tool_prefix=$host_alias- 1454 1455test "$silent" = yes && exec 6>/dev/null 1456 1457 1458ac_pwd=`pwd` && test -n "$ac_pwd" && 1459ac_ls_di=`ls -di .` && 1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1461 as_fn_error "working directory cannot be determined" 1462test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1463 as_fn_error "pwd does not report name of working directory" 1464 1465 1466# Find the source files, if location was not specified. 1467if test -z "$srcdir"; then 1468 ac_srcdir_defaulted=yes 1469 # Try the directory containing this script, then the parent directory. 1470 ac_confdir=`$as_dirname -- "$as_myself" || 1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1472 X"$as_myself" : 'X\(//\)[^/]' \| \ 1473 X"$as_myself" : 'X\(//\)$' \| \ 1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1475$as_echo X"$as_myself" | 1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)[^/].*/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\/\)$/{ 1485 s//\1/ 1486 q 1487 } 1488 /^X\(\/\).*/{ 1489 s//\1/ 1490 q 1491 } 1492 s/.*/./; q'` 1493 srcdir=$ac_confdir 1494 if test ! -r "$srcdir/$ac_unique_file"; then 1495 srcdir=.. 1496 fi 1497else 1498 ac_srcdir_defaulted=no 1499fi 1500if test ! -r "$srcdir/$ac_unique_file"; then 1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1502 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1503fi 1504ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1505ac_abs_confdir=`( 1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1507 pwd)` 1508# When building in place, set srcdir=. 1509if test "$ac_abs_confdir" = "$ac_pwd"; then 1510 srcdir=. 1511fi 1512# Remove unnecessary trailing slashes from srcdir. 1513# Double slashes in file names in object file debugging info 1514# mess up M-x gdb in Emacs. 1515case $srcdir in 1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1517esac 1518for ac_var in $ac_precious_vars; do 1519 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1520 eval ac_env_${ac_var}_value=\$${ac_var} 1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1522 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1523done 1524 1525# 1526# Report the --help message. 1527# 1528if test "$ac_init_help" = "long"; then 1529 # Omit some internal or obsolete options to make the list less imposing. 1530 # This message is too long to be a string in the A/UX 3.1 sh. 1531 cat <<_ACEOF 1532\`configure' configures Berkeley DB 4.8.30 to adapt to many kinds of systems. 1533 1534Usage: $0 [OPTION]... [VAR=VALUE]... 1535 1536To assign environment variables (e.g., CC, CFLAGS...), specify them as 1537VAR=VALUE. See below for descriptions of some of the useful variables. 1538 1539Defaults for the options are specified in brackets. 1540 1541Configuration: 1542 -h, --help display this help and exit 1543 --help=short display options specific to this package 1544 --help=recursive display the short help of all the included packages 1545 -V, --version display version information and exit 1546 -q, --quiet, --silent do not print \`checking...' messages 1547 --cache-file=FILE cache test results in FILE [disabled] 1548 -C, --config-cache alias for \`--cache-file=config.cache' 1549 -n, --no-create do not create output files 1550 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1551 1552Installation directories: 1553 --prefix=PREFIX install architecture-independent files in PREFIX 1554 [$ac_default_prefix] 1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1556 [PREFIX] 1557 1558By default, \`make install' will install all the files in 1559\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1560an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1561for instance \`--prefix=\$HOME'. 1562 1563For better control, use the options below. 1564 1565Fine tuning of the installation directories: 1566 --bindir=DIR user executables [EPREFIX/bin] 1567 --sbindir=DIR system admin executables [EPREFIX/sbin] 1568 --libexecdir=DIR program executables [EPREFIX/libexec] 1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1572 --libdir=DIR object code libraries [EPREFIX/lib] 1573 --includedir=DIR C header files [PREFIX/include] 1574 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1577 --infodir=DIR info documentation [DATAROOTDIR/info] 1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1579 --mandir=DIR man documentation [DATAROOTDIR/man] 1580 --docdir=DIR documentation root 1581 [DATAROOTDIR/doc/db-4.8.30] 1582 --htmldir=DIR html documentation [DOCDIR] 1583 --dvidir=DIR dvi documentation [DOCDIR] 1584 --pdfdir=DIR pdf documentation [DOCDIR] 1585 --psdir=DIR ps documentation [DOCDIR] 1586_ACEOF 1587 1588 cat <<\_ACEOF 1589 1590Program names: 1591 --program-prefix=PREFIX prepend PREFIX to installed program names 1592 --program-suffix=SUFFIX append SUFFIX to installed program names 1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1594 1595System types: 1596 --build=BUILD configure for building on BUILD [guessed] 1597 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1598_ACEOF 1599fi 1600 1601if test -n "$ac_init_help"; then 1602 case $ac_init_help in 1603 short | recursive ) echo "Configuration of Berkeley DB 4.8.30:";; 1604 esac 1605 cat <<\_ACEOF 1606 1607Optional Features: 1608 --disable-option-checking ignore unrecognized --enable/--with options 1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1611 --disable-bigfile Obsolete; use --disable-largefile instead. 1612 --disable-cryptography Do not build database cryptography support. 1613 --disable-hash Do not build Hash access method. 1614 --disable-partition Do not build partitioned database support. 1615 --disable-compression Do not build compression support. 1616 --disable-mutexsupport Do not build any mutex support. 1617 --disable-atomicsupport Do not build any native atomic operation support. 1618 --disable-queue Do not build Queue access method. 1619 --disable-replication Do not build database replication support. 1620 --disable-statistics Do not build statistics support. 1621 --disable-verify Do not build database verification support. 1622 --enable-compat185 Build DB 1.85 compatibility API. 1623 --enable-cxx Build C++ API. 1624 --enable-debug Build a debugging version. 1625 --enable-debug_rop Build a version that logs read operations. 1626 --enable-debug_wop Build a version that logs write operations. 1627 --enable-diagnostic Build a version with run-time diagnostics. 1628 --enable-dump185 Build db_dump185(1) to dump 1.85 databases. 1629 --enable-java Build Java API. 1630 --enable-mingw Build Berkeley DB for MinGW. 1631 --enable-o_direct Enable the O_DIRECT flag for direct I/O. 1632 --enable-posixmutexes Force use of POSIX standard mutexes. 1633 1634 --enable-smallbuild Build small footprint version of the library. 1635 --enable-stl Build STL API. 1636 --enable-tcl Build Tcl API. 1637 --enable-test Configure to run the test suite. 1638 --enable-uimutexes Force use of Unix International mutexes. 1639 --enable-umrw Mask harmless uninitialized memory read/writes. 1640 --enable-shared[=PKGS] build shared libraries [default=yes] 1641 --enable-static[=PKGS] build static libraries [default=yes] 1642 --enable-fast-install[=PKGS] 1643 optimize for fast installation [default=yes] 1644 --disable-libtool-lock avoid locking (might break parallel builds) 1645 --disable-largefile omit support for large files 1646 1647Optional Packages: 1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1650 --with-mutex=MUTEX Select non-default mutex implementation. 1651 --with-mutexalign=ALIGNMENT 1652 Obsolete; use DbEnv::mutex_set_align instead. 1653 --with-tcl=DIR Directory location of tclConfig.sh. 1654 --with-uniquename=NAME Build a uniquely named library. 1655 --with-pic try to use only PIC/non-PIC objects [default=use 1656 both] 1657 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1658 1659Some influential environment variables: 1660 CC C compiler command 1661 CFLAGS C compiler flags 1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1663 nonstandard directory <lib dir> 1664 LIBS libraries to pass to the linker, e.g. -l<library> 1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1666 you have headers in a nonstandard directory <include dir> 1667 CXX C++ compiler command 1668 CXXFLAGS C++ compiler flags 1669 CXXCPP C++ preprocessor 1670 CPP C preprocessor 1671 1672Use these variables to override the choices made by `configure' or to help 1673it to find libraries and programs with nonstandard names/locations. 1674 1675Report bugs to <Oracle Technology Network Berkeley DB forum>. 1676_ACEOF 1677ac_status=$? 1678fi 1679 1680if test "$ac_init_help" = "recursive"; then 1681 # If there are subdirs, report their specific --help. 1682 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1683 test -d "$ac_dir" || 1684 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1685 continue 1686 ac_builddir=. 1687 1688case "$ac_dir" in 1689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1690*) 1691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1692 # A ".." for each directory in $ac_dir_suffix. 1693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1694 case $ac_top_builddir_sub in 1695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1697 esac ;; 1698esac 1699ac_abs_top_builddir=$ac_pwd 1700ac_abs_builddir=$ac_pwd$ac_dir_suffix 1701# for backward compatibility: 1702ac_top_builddir=$ac_top_build_prefix 1703 1704case $srcdir in 1705 .) # We are building in place. 1706 ac_srcdir=. 1707 ac_top_srcdir=$ac_top_builddir_sub 1708 ac_abs_top_srcdir=$ac_pwd ;; 1709 [\\/]* | ?:[\\/]* ) # Absolute name. 1710 ac_srcdir=$srcdir$ac_dir_suffix; 1711 ac_top_srcdir=$srcdir 1712 ac_abs_top_srcdir=$srcdir ;; 1713 *) # Relative name. 1714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1715 ac_top_srcdir=$ac_top_build_prefix$srcdir 1716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1717esac 1718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1719 1720 cd "$ac_dir" || { ac_status=$?; continue; } 1721 # Check for guested configure. 1722 if test -f "$ac_srcdir/configure.gnu"; then 1723 echo && 1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1725 elif test -f "$ac_srcdir/configure"; then 1726 echo && 1727 $SHELL "$ac_srcdir/configure" --help=recursive 1728 else 1729 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1730 fi || ac_status=$? 1731 cd "$ac_pwd" || { ac_status=$?; break; } 1732 done 1733fi 1734 1735test -n "$ac_init_help" && exit $ac_status 1736if $ac_init_version; then 1737 cat <<\_ACEOF 1738Berkeley DB configure 4.8.30 1739generated by GNU Autoconf 2.65 1740 1741Copyright (C) 2009 Free Software Foundation, Inc. 1742This configure script is free software; the Free Software Foundation 1743gives unlimited permission to copy, distribute and modify it. 1744_ACEOF 1745 exit 1746fi 1747 1748## ------------------------ ## 1749## Autoconf initialization. ## 1750## ------------------------ ## 1751 1752# ac_fn_c_try_compile LINENO 1753# -------------------------- 1754# Try to compile conftest.$ac_ext, and return whether this succeeded. 1755ac_fn_c_try_compile () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 rm -f conftest.$ac_objext 1759 if { { ac_try="$ac_compile" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_compile") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } && { 1775 test -z "$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 } && test -s conftest.$ac_objext; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_compile 1789 1790# ac_fn_cxx_try_compile LINENO 1791# ---------------------------- 1792# Try to compile conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_cxx_try_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 rm -f conftest.$ac_objext 1797 if { { ac_try="$ac_compile" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_compile") 2>conftest.err 1805 ac_status=$? 1806 if test -s conftest.err; then 1807 grep -v '^ *+' conftest.err >conftest.er1 1808 cat conftest.er1 >&5 1809 mv -f conftest.er1 conftest.err 1810 fi 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { 1813 test -z "$ac_cxx_werror_flag" || 1814 test ! -s conftest.err 1815 } && test -s conftest.$ac_objext; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: failed program was:" >&5 1819sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822fi 1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_cxx_try_compile 1827 1828# ac_fn_cxx_try_cpp LINENO 1829# ------------------------ 1830# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1831ac_fn_cxx_try_cpp () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 if { { ac_try="$ac_cpp conftest.$ac_ext" 1835case "(($ac_try" in 1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1837 *) ac_try_echo=$ac_try;; 1838esac 1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1840$as_echo "$ac_try_echo"; } >&5 1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1842 ac_status=$? 1843 if test -s conftest.err; then 1844 grep -v '^ *+' conftest.err >conftest.er1 1845 cat conftest.er1 >&5 1846 mv -f conftest.er1 conftest.err 1847 fi 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; } >/dev/null && { 1850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1851 test ! -s conftest.err 1852 }; then : 1853 ac_retval=0 1854else 1855 $as_echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858 ac_retval=1 1859fi 1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1861 as_fn_set_status $ac_retval 1862 1863} # ac_fn_cxx_try_cpp 1864 1865# ac_fn_c_try_link LINENO 1866# ----------------------- 1867# Try to link conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_c_try_link () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 rm -f conftest.$ac_objext conftest$ac_exeext 1872 if { { ac_try="$ac_link" 1873case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_link") 2>conftest.err 1880 ac_status=$? 1881 if test -s conftest.err; then 1882 grep -v '^ *+' conftest.err >conftest.er1 1883 cat conftest.er1 >&5 1884 mv -f conftest.er1 conftest.err 1885 fi 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { 1888 test -z "$ac_c_werror_flag" || 1889 test ! -s conftest.err 1890 } && test -s conftest$ac_exeext && { 1891 test "$cross_compiling" = yes || 1892 $as_test_x conftest$ac_exeext 1893 }; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1903 # interfere with the next link command; also delete a directory that is 1904 # left behind by Apple's compiler. We do this before executing the actions. 1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_link 1910 1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1912# ------------------------------------------------------- 1913# Tests whether HEADER exists and can be compiled using the include files in 1914# INCLUDES, setting the cache variable VAR accordingly. 1915ac_fn_c_check_header_compile () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926#include <$2> 1927_ACEOF 1928if ac_fn_c_try_compile "$LINENO"; then : 1929 eval "$3=yes" 1930else 1931 eval "$3=no" 1932fi 1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1934fi 1935eval ac_res=\$$3 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937$as_echo "$ac_res" >&6; } 1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1939 1940} # ac_fn_c_check_header_compile 1941 1942# ac_fn_c_try_cpp LINENO 1943# ---------------------- 1944# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1945ac_fn_c_try_cpp () 1946{ 1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1948 if { { ac_try="$ac_cpp conftest.$ac_ext" 1949case "(($ac_try" in 1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1951 *) ac_try_echo=$ac_try;; 1952esac 1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1954$as_echo "$ac_try_echo"; } >&5 1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1956 ac_status=$? 1957 if test -s conftest.err; then 1958 grep -v '^ *+' conftest.err >conftest.er1 1959 cat conftest.er1 >&5 1960 mv -f conftest.er1 conftest.err 1961 fi 1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1963 test $ac_status = 0; } >/dev/null && { 1964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1965 test ! -s conftest.err 1966 }; then : 1967 ac_retval=0 1968else 1969 $as_echo "$as_me: failed program was:" >&5 1970sed 's/^/| /' conftest.$ac_ext >&5 1971 1972 ac_retval=1 1973fi 1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1975 as_fn_set_status $ac_retval 1976 1977} # ac_fn_c_try_cpp 1978 1979# ac_fn_c_try_run LINENO 1980# ---------------------- 1981# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1982# that executables *can* be run. 1983ac_fn_c_try_run () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 if { { ac_try="$ac_link" 1987case "(($ac_try" in 1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1989 *) ac_try_echo=$ac_try;; 1990esac 1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1992$as_echo "$ac_try_echo"; } >&5 1993 (eval "$ac_link") 2>&5 1994 ac_status=$? 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1997 { { case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000esac 2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2002$as_echo "$ac_try_echo"; } >&5 2003 (eval "$ac_try") 2>&5 2004 ac_status=$? 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; }; }; then : 2007 ac_retval=0 2008else 2009 $as_echo "$as_me: program exited with status $ac_status" >&5 2010 $as_echo "$as_me: failed program was:" >&5 2011sed 's/^/| /' conftest.$ac_ext >&5 2012 2013 ac_retval=$ac_status 2014fi 2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2017 as_fn_set_status $ac_retval 2018 2019} # ac_fn_c_try_run 2020 2021# ac_fn_c_check_func LINENO FUNC VAR 2022# ---------------------------------- 2023# Tests whether FUNC exists, setting the cache variable VAR accordingly 2024ac_fn_c_check_func () 2025{ 2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2028$as_echo_n "checking for $2... " >&6; } 2029if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2030 $as_echo_n "(cached) " >&6 2031else 2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033/* end confdefs.h. */ 2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2036#define $2 innocuous_$2 2037 2038/* System header to define __stub macros and hopefully few prototypes, 2039 which can conflict with char $2 (); below. 2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2041 <limits.h> exists even on freestanding compilers. */ 2042 2043#ifdef __STDC__ 2044# include <limits.h> 2045#else 2046# include <assert.h> 2047#endif 2048 2049#undef $2 2050 2051/* Override any GCC internal prototype to avoid an error. 2052 Use char because int might match the return type of a GCC 2053 builtin and then its argument prototype would still apply. */ 2054#ifdef __cplusplus 2055extern "C" 2056#endif 2057char $2 (); 2058/* The GNU C library defines this for functions which it implements 2059 to always fail with ENOSYS. Some functions are actually named 2060 something starting with __ and the normal name is an alias. */ 2061#if defined __stub_$2 || defined __stub___$2 2062choke me 2063#endif 2064 2065int 2066main () 2067{ 2068return $2 (); 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_link "$LINENO"; then : 2074 eval "$3=yes" 2075else 2076 eval "$3=no" 2077fi 2078rm -f core conftest.err conftest.$ac_objext \ 2079 conftest$ac_exeext conftest.$ac_ext 2080fi 2081eval ac_res=\$$3 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2083$as_echo "$ac_res" >&6; } 2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2085 2086} # ac_fn_c_check_func 2087 2088# ac_fn_cxx_try_link LINENO 2089# ------------------------- 2090# Try to link conftest.$ac_ext, and return whether this succeeded. 2091ac_fn_cxx_try_link () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 rm -f conftest.$ac_objext conftest$ac_exeext 2095 if { { ac_try="$ac_link" 2096case "(($ac_try" in 2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2098 *) ac_try_echo=$ac_try;; 2099esac 2100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2101$as_echo "$ac_try_echo"; } >&5 2102 (eval "$ac_link") 2>conftest.err 2103 ac_status=$? 2104 if test -s conftest.err; then 2105 grep -v '^ *+' conftest.err >conftest.er1 2106 cat conftest.er1 >&5 2107 mv -f conftest.er1 conftest.err 2108 fi 2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2110 test $ac_status = 0; } && { 2111 test -z "$ac_cxx_werror_flag" || 2112 test ! -s conftest.err 2113 } && test -s conftest$ac_exeext && { 2114 test "$cross_compiling" = yes || 2115 $as_test_x conftest$ac_exeext 2116 }; then : 2117 ac_retval=0 2118else 2119 $as_echo "$as_me: failed program was:" >&5 2120sed 's/^/| /' conftest.$ac_ext >&5 2121 2122 ac_retval=1 2123fi 2124 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2125 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2126 # interfere with the next link command; also delete a directory that is 2127 # left behind by Apple's compiler. We do this before executing the actions. 2128 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2130 as_fn_set_status $ac_retval 2131 2132} # ac_fn_cxx_try_link 2133 2134# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2135# ------------------------------------------------------- 2136# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2137# the include files in INCLUDES and setting the cache variable VAR 2138# accordingly. 2139ac_fn_c_check_header_mongrel () 2140{ 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2144$as_echo_n "checking for $2... " >&6; } 2145if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2146 $as_echo_n "(cached) " >&6 2147fi 2148eval ac_res=\$$3 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2150$as_echo "$ac_res" >&6; } 2151else 2152 # Is the header compilable? 2153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2154$as_echo_n "checking $2 usability... " >&6; } 2155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2156/* end confdefs.h. */ 2157$4 2158#include <$2> 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 ac_header_compiler=yes 2162else 2163 ac_header_compiler=no 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2167$as_echo "$ac_header_compiler" >&6; } 2168 2169# Is the header present? 2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2171$as_echo_n "checking $2 presence... " >&6; } 2172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2173/* end confdefs.h. */ 2174#include <$2> 2175_ACEOF 2176if ac_fn_c_try_cpp "$LINENO"; then : 2177 ac_header_preproc=yes 2178else 2179 ac_header_preproc=no 2180fi 2181rm -f conftest.err conftest.$ac_ext 2182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2183$as_echo "$ac_header_preproc" >&6; } 2184 2185# So? What about this header? 2186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2187 yes:no: ) 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2189$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2192 ;; 2193 no:yes:* ) 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2195$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2197$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2199$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2201$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2203$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2204( cat <<\_ASBOX 2205## ---------------------------------------------------------- ## 2206## Report this to Oracle Technology Network Berkeley DB forum ## 2207## ---------------------------------------------------------- ## 2208_ASBOX 2209 ) | sed "s/^/$as_me: WARNING: /" >&2 2210 ;; 2211esac 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2213$as_echo_n "checking for $2... " >&6; } 2214if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2215 $as_echo_n "(cached) " >&6 2216else 2217 eval "$3=\$ac_header_compiler" 2218fi 2219eval ac_res=\$$3 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2221$as_echo "$ac_res" >&6; } 2222fi 2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2224 2225} # ac_fn_c_check_header_mongrel 2226 2227# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2228# ---------------------------------------------------- 2229# Tries to find if the field MEMBER exists in type AGGR, after including 2230# INCLUDES, setting cache variable VAR accordingly. 2231ac_fn_c_check_member () 2232{ 2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2235$as_echo_n "checking for $2.$3... " >&6; } 2236if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2237 $as_echo_n "(cached) " >&6 2238else 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$5 2242int 2243main () 2244{ 2245static $2 ac_aggr; 2246if (ac_aggr.$3) 2247return 0; 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252if ac_fn_c_try_compile "$LINENO"; then : 2253 eval "$4=yes" 2254else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257$5 2258int 2259main () 2260{ 2261static $2 ac_aggr; 2262if (sizeof ac_aggr.$3) 2263return 0; 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_c_try_compile "$LINENO"; then : 2269 eval "$4=yes" 2270else 2271 eval "$4=no" 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2274fi 2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2276fi 2277eval ac_res=\$$4 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2279$as_echo "$ac_res" >&6; } 2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2281 2282} # ac_fn_c_check_member 2283 2284# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2285# -------------------------------------------- 2286# Tries to find the compile-time value of EXPR in a program that includes 2287# INCLUDES, setting VAR accordingly. Returns whether the value could be 2288# computed 2289ac_fn_c_compute_int () 2290{ 2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2292 if test "$cross_compiling" = yes; then 2293 # Depending upon the size, compute the lo and hi bounds. 2294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300static int test_array [1 - 2 * !(($2) >= 0)]; 2301test_array [0] = 0 2302 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307if ac_fn_c_try_compile "$LINENO"; then : 2308 ac_lo=0 ac_mid=0 2309 while :; do 2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2311/* end confdefs.h. */ 2312$4 2313int 2314main () 2315{ 2316static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2317test_array [0] = 0 2318 2319 ; 2320 return 0; 2321} 2322_ACEOF 2323if ac_fn_c_try_compile "$LINENO"; then : 2324 ac_hi=$ac_mid; break 2325else 2326 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2327 if test $ac_lo -le $ac_mid; then 2328 ac_lo= ac_hi= 2329 break 2330 fi 2331 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2332fi 2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2334 done 2335else 2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2337/* end confdefs.h. */ 2338$4 2339int 2340main () 2341{ 2342static int test_array [1 - 2 * !(($2) < 0)]; 2343test_array [0] = 0 2344 2345 ; 2346 return 0; 2347} 2348_ACEOF 2349if ac_fn_c_try_compile "$LINENO"; then : 2350 ac_hi=-1 ac_mid=-1 2351 while :; do 2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2353/* end confdefs.h. */ 2354$4 2355int 2356main () 2357{ 2358static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2359test_array [0] = 0 2360 2361 ; 2362 return 0; 2363} 2364_ACEOF 2365if ac_fn_c_try_compile "$LINENO"; then : 2366 ac_lo=$ac_mid; break 2367else 2368 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2369 if test $ac_mid -le $ac_hi; then 2370 ac_lo= ac_hi= 2371 break 2372 fi 2373 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2374fi 2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2376 done 2377else 2378 ac_lo= ac_hi= 2379fi 2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2381fi 2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2383# Binary search between lo and hi bounds. 2384while test "x$ac_lo" != "x$ac_hi"; do 2385 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2387/* end confdefs.h. */ 2388$4 2389int 2390main () 2391{ 2392static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2393test_array [0] = 0 2394 2395 ; 2396 return 0; 2397} 2398_ACEOF 2399if ac_fn_c_try_compile "$LINENO"; then : 2400 ac_hi=$ac_mid 2401else 2402 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2403fi 2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2405done 2406case $ac_lo in #(( 2407?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2408'') ac_retval=1 ;; 2409esac 2410 else 2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2412/* end confdefs.h. */ 2413$4 2414static long int longval () { return $2; } 2415static unsigned long int ulongval () { return $2; } 2416#include <stdio.h> 2417#include <stdlib.h> 2418int 2419main () 2420{ 2421 2422 FILE *f = fopen ("conftest.val", "w"); 2423 if (! f) 2424 return 1; 2425 if (($2) < 0) 2426 { 2427 long int i = longval (); 2428 if (i != ($2)) 2429 return 1; 2430 fprintf (f, "%ld", i); 2431 } 2432 else 2433 { 2434 unsigned long int i = ulongval (); 2435 if (i != ($2)) 2436 return 1; 2437 fprintf (f, "%lu", i); 2438 } 2439 /* Do not output a trailing newline, as this causes \r\n confusion 2440 on some platforms. */ 2441 return ferror (f) || fclose (f) != 0; 2442 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447if ac_fn_c_try_run "$LINENO"; then : 2448 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2449else 2450 ac_retval=1 2451fi 2452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2453 conftest.$ac_objext conftest.beam conftest.$ac_ext 2454rm -f conftest.val 2455 2456 fi 2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2458 as_fn_set_status $ac_retval 2459 2460} # ac_fn_c_compute_int 2461 2462# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2463# ------------------------------------------- 2464# Tests whether TYPE exists after having included INCLUDES, setting cache 2465# variable VAR accordingly. 2466ac_fn_c_check_type () 2467{ 2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2470$as_echo_n "checking for $2... " >&6; } 2471if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2472 $as_echo_n "(cached) " >&6 2473else 2474 eval "$3=no" 2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2476/* end confdefs.h. */ 2477$4 2478int 2479main () 2480{ 2481if (sizeof ($2)) 2482 return 0; 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487if ac_fn_c_try_compile "$LINENO"; then : 2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2489/* end confdefs.h. */ 2490$4 2491int 2492main () 2493{ 2494if (sizeof (($2))) 2495 return 0; 2496 ; 2497 return 0; 2498} 2499_ACEOF 2500if ac_fn_c_try_compile "$LINENO"; then : 2501 2502else 2503 eval "$3=yes" 2504fi 2505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2506fi 2507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2508fi 2509eval ac_res=\$$3 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2511$as_echo "$ac_res" >&6; } 2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2513 2514} # ac_fn_c_check_type 2515cat >config.log <<_ACEOF 2516This file contains any messages produced by compilers while 2517running configure, to aid debugging if configure makes a mistake. 2518 2519It was created by Berkeley DB $as_me 4.8.30, which was 2520generated by GNU Autoconf 2.65. Invocation command line was 2521 2522 $ $0 $@ 2523 2524_ACEOF 2525exec 5>>config.log 2526{ 2527cat <<_ASUNAME 2528## --------- ## 2529## Platform. ## 2530## --------- ## 2531 2532hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2533uname -m = `(uname -m) 2>/dev/null || echo unknown` 2534uname -r = `(uname -r) 2>/dev/null || echo unknown` 2535uname -s = `(uname -s) 2>/dev/null || echo unknown` 2536uname -v = `(uname -v) 2>/dev/null || echo unknown` 2537 2538/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2539/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2540 2541/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2542/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2543/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2544/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2545/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2546/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2547/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2548 2549_ASUNAME 2550 2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552for as_dir in $PATH 2553do 2554 IFS=$as_save_IFS 2555 test -z "$as_dir" && as_dir=. 2556 $as_echo "PATH: $as_dir" 2557 done 2558IFS=$as_save_IFS 2559 2560} >&5 2561 2562cat >&5 <<_ACEOF 2563 2564 2565## ----------- ## 2566## Core tests. ## 2567## ----------- ## 2568 2569_ACEOF 2570 2571 2572# Keep a trace of the command line. 2573# Strip out --no-create and --no-recursion so they do not pile up. 2574# Strip out --silent because we don't want to record it for future runs. 2575# Also quote any args containing shell meta-characters. 2576# Make two passes to allow for proper duplicate-argument suppression. 2577ac_configure_args= 2578ac_configure_args0= 2579ac_configure_args1= 2580ac_must_keep_next=false 2581for ac_pass in 1 2 2582do 2583 for ac_arg 2584 do 2585 case $ac_arg in 2586 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2588 | -silent | --silent | --silen | --sile | --sil) 2589 continue ;; 2590 *\'*) 2591 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2592 esac 2593 case $ac_pass in 2594 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2595 2) 2596 as_fn_append ac_configure_args1 " '$ac_arg'" 2597 if test $ac_must_keep_next = true; then 2598 ac_must_keep_next=false # Got value, back to normal. 2599 else 2600 case $ac_arg in 2601 *=* | --config-cache | -C | -disable-* | --disable-* \ 2602 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2603 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2604 | -with-* | --with-* | -without-* | --without-* | --x) 2605 case "$ac_configure_args0 " in 2606 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2607 esac 2608 ;; 2609 -* ) ac_must_keep_next=true ;; 2610 esac 2611 fi 2612 as_fn_append ac_configure_args " '$ac_arg'" 2613 ;; 2614 esac 2615 done 2616done 2617{ ac_configure_args0=; unset ac_configure_args0;} 2618{ ac_configure_args1=; unset ac_configure_args1;} 2619 2620# When interrupted or exit'd, cleanup temporary files, and complete 2621# config.log. We remove comments because anyway the quotes in there 2622# would cause problems or look ugly. 2623# WARNING: Use '\'' to represent an apostrophe within the trap. 2624# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2625trap 'exit_status=$? 2626 # Save into config.log some information that might help in debugging. 2627 { 2628 echo 2629 2630 cat <<\_ASBOX 2631## ---------------- ## 2632## Cache variables. ## 2633## ---------------- ## 2634_ASBOX 2635 echo 2636 # The following way of writing the cache mishandles newlines in values, 2637( 2638 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2639 eval ac_val=\$$ac_var 2640 case $ac_val in #( 2641 *${as_nl}*) 2642 case $ac_var in #( 2643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2644$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2645 esac 2646 case $ac_var in #( 2647 _ | IFS | as_nl) ;; #( 2648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2649 *) { eval $ac_var=; unset $ac_var;} ;; 2650 esac ;; 2651 esac 2652 done 2653 (set) 2>&1 | 2654 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2655 *${as_nl}ac_space=\ *) 2656 sed -n \ 2657 "s/'\''/'\''\\\\'\'''\''/g; 2658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2659 ;; #( 2660 *) 2661 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2662 ;; 2663 esac | 2664 sort 2665) 2666 echo 2667 2668 cat <<\_ASBOX 2669## ----------------- ## 2670## Output variables. ## 2671## ----------------- ## 2672_ASBOX 2673 echo 2674 for ac_var in $ac_subst_vars 2675 do 2676 eval ac_val=\$$ac_var 2677 case $ac_val in 2678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2679 esac 2680 $as_echo "$ac_var='\''$ac_val'\''" 2681 done | sort 2682 echo 2683 2684 if test -n "$ac_subst_files"; then 2685 cat <<\_ASBOX 2686## ------------------- ## 2687## File substitutions. ## 2688## ------------------- ## 2689_ASBOX 2690 echo 2691 for ac_var in $ac_subst_files 2692 do 2693 eval ac_val=\$$ac_var 2694 case $ac_val in 2695 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2696 esac 2697 $as_echo "$ac_var='\''$ac_val'\''" 2698 done | sort 2699 echo 2700 fi 2701 2702 if test -s confdefs.h; then 2703 cat <<\_ASBOX 2704## ----------- ## 2705## confdefs.h. ## 2706## ----------- ## 2707_ASBOX 2708 echo 2709 cat confdefs.h 2710 echo 2711 fi 2712 test "$ac_signal" != 0 && 2713 $as_echo "$as_me: caught signal $ac_signal" 2714 $as_echo "$as_me: exit $exit_status" 2715 } >&5 2716 rm -f core *.core core.conftest.* && 2717 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2718 exit $exit_status 2719' 0 2720for ac_signal in 1 2 13 15; do 2721 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2722done 2723ac_signal=0 2724 2725# confdefs.h avoids OS command line length limits that DEFS can exceed. 2726rm -f -r conftest* confdefs.h 2727 2728$as_echo "/* confdefs.h */" > confdefs.h 2729 2730# Predefined preprocessor variables. 2731 2732cat >>confdefs.h <<_ACEOF 2733#define PACKAGE_NAME "$PACKAGE_NAME" 2734_ACEOF 2735 2736cat >>confdefs.h <<_ACEOF 2737#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2738_ACEOF 2739 2740cat >>confdefs.h <<_ACEOF 2741#define PACKAGE_VERSION "$PACKAGE_VERSION" 2742_ACEOF 2743 2744cat >>confdefs.h <<_ACEOF 2745#define PACKAGE_STRING "$PACKAGE_STRING" 2746_ACEOF 2747 2748cat >>confdefs.h <<_ACEOF 2749#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2750_ACEOF 2751 2752cat >>confdefs.h <<_ACEOF 2753#define PACKAGE_URL "$PACKAGE_URL" 2754_ACEOF 2755 2756 2757# Let the site file select an alternate cache file if it wants to. 2758# Prefer an explicitly selected file to automatically selected ones. 2759ac_site_file1=NONE 2760ac_site_file2=NONE 2761if test -n "$CONFIG_SITE"; then 2762 ac_site_file1=$CONFIG_SITE 2763elif test "x$prefix" != xNONE; then 2764 ac_site_file1=$prefix/share/config.site 2765 ac_site_file2=$prefix/etc/config.site 2766else 2767 ac_site_file1=$ac_default_prefix/share/config.site 2768 ac_site_file2=$ac_default_prefix/etc/config.site 2769fi 2770for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2771do 2772 test "x$ac_site_file" = xNONE && continue 2773 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2775$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2776 sed 's/^/| /' "$ac_site_file" >&5 2777 . "$ac_site_file" 2778 fi 2779done 2780 2781if test -r "$cache_file"; then 2782 # Some versions of bash will fail to source /dev/null (special files 2783 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2784 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2786$as_echo "$as_me: loading cache $cache_file" >&6;} 2787 case $cache_file in 2788 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2789 *) . "./$cache_file";; 2790 esac 2791 fi 2792else 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2794$as_echo "$as_me: creating cache $cache_file" >&6;} 2795 >$cache_file 2796fi 2797 2798# Check that the precious variables saved in the cache have kept the same 2799# value. 2800ac_cache_corrupted=false 2801for ac_var in $ac_precious_vars; do 2802 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2803 eval ac_new_set=\$ac_env_${ac_var}_set 2804 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2805 eval ac_new_val=\$ac_env_${ac_var}_value 2806 case $ac_old_set,$ac_new_set in 2807 set,) 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2809$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2810 ac_cache_corrupted=: ;; 2811 ,set) 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2813$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2814 ac_cache_corrupted=: ;; 2815 ,);; 2816 *) 2817 if test "x$ac_old_val" != "x$ac_new_val"; then 2818 # differences in whitespace do not lead to failure. 2819 ac_old_val_w=`echo x $ac_old_val` 2820 ac_new_val_w=`echo x $ac_new_val` 2821 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2823$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2824 ac_cache_corrupted=: 2825 else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2827$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2828 eval $ac_var=\$ac_old_val 2829 fi 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2831$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2833$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2834 fi;; 2835 esac 2836 # Pass precious variables to config.status. 2837 if test "$ac_new_set" = set; then 2838 case $ac_new_val in 2839 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2840 *) ac_arg=$ac_var=$ac_new_val ;; 2841 esac 2842 case " $ac_configure_args " in 2843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2844 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2845 esac 2846 fi 2847done 2848if $ac_cache_corrupted; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2852$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2853 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2854fi 2855## -------------------- ## 2856## Main body of script. ## 2857## -------------------- ## 2858 2859ac_ext=c 2860ac_cpp='$CPP $CPPFLAGS' 2861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2863ac_compiler_gnu=$ac_cv_c_compiler_gnu 2864 2865 2866 2867ac_config_headers="$ac_config_headers db_config.h:config.hin" 2868 2869 2870 2871 2872# Configure setup. 2873ac_aux_dir= 2874for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2875 for ac_t in install-sh install.sh shtool; do 2876 if test -f "$ac_dir/$ac_t"; then 2877 ac_aux_dir=$ac_dir 2878 ac_install_sh="$ac_aux_dir/$ac_t -c" 2879 break 2 2880 fi 2881 done 2882done 2883if test -z "$ac_aux_dir"; then 2884 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2885fi 2886 2887# These three variables are undocumented and unsupported, 2888# and are intended to be withdrawn in a future Autoconf release. 2889# They can cause serious problems if a builder's source tree is in a directory 2890# whose full name contains unusual characters. 2891ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2892ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2893ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2894 2895 2896# Make sure we can run config.sub. 2897$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2898 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2899 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2901$as_echo_n "checking build system type... " >&6; } 2902if test "${ac_cv_build+set}" = set; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 ac_build_alias=$build_alias 2906test "x$ac_build_alias" = x && 2907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2908test "x$ac_build_alias" = x && 2909 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2910ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2911 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2912 2913fi 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2915$as_echo "$ac_cv_build" >&6; } 2916case $ac_cv_build in 2917*-*-*) ;; 2918*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2919esac 2920build=$ac_cv_build 2921ac_save_IFS=$IFS; IFS='-' 2922set x $ac_cv_build 2923shift 2924build_cpu=$1 2925build_vendor=$2 2926shift; shift 2927# Remember, the first character of IFS is used to create $*, 2928# except with old shells: 2929build_os=$* 2930IFS=$ac_save_IFS 2931case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2932 2933 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2935$as_echo_n "checking host system type... " >&6; } 2936if test "${ac_cv_host+set}" = set; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 if test "x$host_alias" = x; then 2940 ac_cv_host=$ac_cv_build 2941else 2942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2943 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2944fi 2945 2946fi 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2948$as_echo "$ac_cv_host" >&6; } 2949case $ac_cv_host in 2950*-*-*) ;; 2951*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2952esac 2953host=$ac_cv_host 2954ac_save_IFS=$IFS; IFS='-' 2955set x $ac_cv_host 2956shift 2957host_cpu=$1 2958host_vendor=$2 2959shift; shift 2960# Remember, the first character of IFS is used to create $*, 2961# except with old shells: 2962host_os=$* 2963IFS=$ac_save_IFS 2964case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2965 2966 2967test "$program_prefix" != NONE && 2968 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2969# Use a double $ so make ignores it. 2970test "$program_suffix" != NONE && 2971 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2972# Double any \ or $. 2973# By default was `s,x,x', remove it if useless. 2974ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2975program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2976 2977 2978# Don't build in the top-level or dist directories. 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building in the top-level or dist directories" >&5 2980$as_echo_n "checking if building in the top-level or dist directories... " >&6; } 2981if test -d db_archive -o -f configure.ac ; then 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2983$as_echo "yes" >&6; } 2984 as_fn_error "\ 2985Berkeley DB should not be built in the top-level or \"dist\" directories. \ 2986Change directory to the build_unix directory and run ../dist/configure \ 2987from there." "$LINENO" 5 2988 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992 2993# Substitution variables. 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045# The Windows public header has two extra symbols we need to remove. 3046 3047 3048 3049# Set the default installation location. 3050 3051 3052# Configure the version information. 3053 3054DB_VERSION_MAJOR="4" 3055 3056DB_VERSION_MINOR="8" 3057 3058DB_VERSION_PATCH="30" 3059 3060DB_VERSION_STRING='"Berkeley DB 4.8.30: (April 9, 2010)"' 3061 3062 3063# Process all options before using them. 3064 3065 3066# --enable-bigfile was the configuration option that Berkeley DB used before 3067# autoconf 2.50 was released (which had --enable-largefile integrated in). 3068# Check whether --enable-bigfile was given. 3069if test "${enable_bigfile+set}" = set; then : 3070 enableval=$enable_bigfile; as_fn_error "--enable-bigfile no longer supported, use --enable-largefile" "$LINENO" 5 3071fi 3072 3073 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-cryptography option specified" >&5 3075$as_echo_n "checking if --disable-cryptography option specified... " >&6; } 3076# Check whether --enable-cryptography was given. 3077if test "${enable_cryptography+set}" = set; then : 3078 enableval=$enable_cryptography; 3079else 3080 enableval="yes" 3081fi 3082 3083db_cv_build_cryptography="$enableval" 3084case "$enableval" in 3085 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3086$as_echo "yes" >&6; };; 3087yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3088$as_echo "no" >&6; };; 3089esac 3090 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-hash option specified" >&5 3092$as_echo_n "checking if --disable-hash option specified... " >&6; } 3093# Check whether --enable-hash was given. 3094if test "${enable_hash+set}" = set; then : 3095 enableval=$enable_hash; 3096else 3097 enableval="yes" 3098fi 3099 3100db_cv_build_hash="$enableval" 3101case "$enableval" in 3102 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3103$as_echo "yes" >&6; };; 3104yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105$as_echo "no" >&6; };; 3106esac 3107 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-partition option specified" >&5 3109$as_echo_n "checking if --disable-partition option specified... " >&6; } 3110# Check whether --enable-partition was given. 3111if test "${enable_partition+set}" = set; then : 3112 enableval=$enable_partition; 3113else 3114 enableval="yes" 3115fi 3116 3117db_cv_build_partition="$enableval" 3118case "$enableval" in 3119 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3120$as_echo "yes" >&6; };; 3121yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; };; 3123esac 3124 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-compression option specified" >&5 3126$as_echo_n "checking if --disable-compression option specified... " >&6; } 3127# Check whether --enable-compression was given. 3128if test "${enable_compression+set}" = set; then : 3129 enableval=$enable_compression; 3130else 3131 enableval="yes" 3132fi 3133 3134db_cv_build_compression="$enableval" 3135case "$enableval" in 3136 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3137$as_echo "yes" >&6; };; 3138yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139$as_echo "no" >&6; };; 3140esac 3141 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-mutexsupport option specified" >&5 3143$as_echo_n "checking if --disable-mutexsupport option specified... " >&6; } 3144# Check whether --enable-mutexsupport was given. 3145if test "${enable_mutexsupport+set}" = set; then : 3146 enableval=$enable_mutexsupport; 3147else 3148 enableval="yes" 3149fi 3150 3151db_cv_build_mutexsupport="$enableval" 3152case "$enableval" in 3153 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3154$as_echo "yes" >&6; };; 3155yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3156$as_echo "no" >&6; };; 3157esac 3158 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-atomicsupport option specified" >&5 3160$as_echo_n "checking if --disable-atomicsupport option specified... " >&6; } 3161# Check whether --enable-atomicsupport was given. 3162if test "${enable_atomicsupport+set}" = set; then : 3163 enableval=$enable_atomicsupport; 3164else 3165 enableval="yes" 3166fi 3167 3168db_cv_build_atomicsupport="$enableval" 3169case "$enableval" in 3170 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3171$as_echo "yes" >&6; };; 3172yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; };; 3174esac 3175 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-queue option specified" >&5 3177$as_echo_n "checking if --disable-queue option specified... " >&6; } 3178# Check whether --enable-queue was given. 3179if test "${enable_queue+set}" = set; then : 3180 enableval=$enable_queue; 3181else 3182 enableval="yes" 3183fi 3184 3185db_cv_build_queue="$enableval" 3186case "$enableval" in 3187 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3188$as_echo "yes" >&6; };; 3189yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; };; 3191esac 3192 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-replication option specified" >&5 3194$as_echo_n "checking if --disable-replication option specified... " >&6; } 3195# Check whether --enable-replication was given. 3196if test "${enable_replication+set}" = set; then : 3197 enableval=$enable_replication; 3198else 3199 enableval="yes" 3200fi 3201 3202db_cv_build_replication="$enableval" 3203case "$enableval" in 3204 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3205$as_echo "yes" >&6; };; 3206yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; };; 3208esac 3209 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-statistics option specified" >&5 3211$as_echo_n "checking if --disable-statistics option specified... " >&6; } 3212# Check whether --enable-statistics was given. 3213if test "${enable_statistics+set}" = set; then : 3214 enableval=$enable_statistics; 3215else 3216 enableval="yes" 3217fi 3218 3219db_cv_build_statistics="$enableval" 3220case "$enableval" in 3221 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3222$as_echo "yes" >&6; };; 3223yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3224$as_echo "no" >&6; };; 3225esac 3226 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-verify option specified" >&5 3228$as_echo_n "checking if --disable-verify option specified... " >&6; } 3229# Check whether --enable-verify was given. 3230if test "${enable_verify+set}" = set; then : 3231 enableval=$enable_verify; 3232else 3233 enableval="yes" 3234fi 3235 3236db_cv_build_verify="$enableval" 3237case "$enableval" in 3238 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3239$as_echo "yes" >&6; };; 3240yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241$as_echo "no" >&6; };; 3242esac 3243 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-compat185 option specified" >&5 3245$as_echo_n "checking if --enable-compat185 option specified... " >&6; } 3246# Check whether --enable-compat185 was given. 3247if test "${enable_compat185+set}" = set; then : 3248 enableval=$enable_compat185; db_cv_compat185="$enable_compat185" 3249else 3250 db_cv_compat185="no" 3251fi 3252 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_compat185" >&5 3254$as_echo "$db_cv_compat185" >&6; } 3255 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-cxx option specified" >&5 3257$as_echo_n "checking if --enable-cxx option specified... " >&6; } 3258# Check whether --enable-cxx was given. 3259if test "${enable_cxx+set}" = set; then : 3260 enableval=$enable_cxx; db_cv_cxx="$enable_cxx" 3261else 3262 db_cv_cxx="no" 3263fi 3264 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_cxx" >&5 3266$as_echo "$db_cv_cxx" >&6; } 3267 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug option specified" >&5 3269$as_echo_n "checking if --enable-debug option specified... " >&6; } 3270# Check whether --enable-debug was given. 3271if test "${enable_debug+set}" = set; then : 3272 enableval=$enable_debug; db_cv_debug="$enable_debug" 3273else 3274 db_cv_debug="no" 3275fi 3276 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug" >&5 3278$as_echo "$db_cv_debug" >&6; } 3279 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_rop option specified" >&5 3281$as_echo_n "checking if --enable-debug_rop option specified... " >&6; } 3282# Check whether --enable-debug_rop was given. 3283if test "${enable_debug_rop+set}" = set; then : 3284 enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop" 3285else 3286 db_cv_debug_rop="no" 3287fi 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_rop" >&5 3290$as_echo "$db_cv_debug_rop" >&6; } 3291 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_wop option specified" >&5 3293$as_echo_n "checking if --enable-debug_wop option specified... " >&6; } 3294# Check whether --enable-debug_wop was given. 3295if test "${enable_debug_wop+set}" = set; then : 3296 enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop" 3297else 3298 db_cv_debug_wop="no" 3299fi 3300 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_wop" >&5 3302$as_echo "$db_cv_debug_wop" >&6; } 3303 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-diagnostic option specified" >&5 3305$as_echo_n "checking if --enable-diagnostic option specified... " >&6; } 3306# Check whether --enable-diagnostic was given. 3307if test "${enable_diagnostic+set}" = set; then : 3308 enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic" 3309else 3310 db_cv_diagnostic="no" 3311fi 3312 3313if test "$db_cv_diagnostic" = "yes"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_diagnostic" >&5 3315$as_echo "$db_cv_diagnostic" >&6; } 3316fi 3317if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_rop" = "yes"; then 3318 db_cv_diagnostic="yes" 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: by --enable-debug_rop" >&5 3320$as_echo "by --enable-debug_rop" >&6; } 3321fi 3322if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_wop" = "yes"; then 3323 db_cv_diagnostic="yes" 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: by --enable-debug_wop" >&5 3325$as_echo "by --enable-debug_wop" >&6; } 3326fi 3327if test "$db_cv_diagnostic" = "no"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_diagnostic" >&5 3329$as_echo "$db_cv_diagnostic" >&6; } 3330fi 3331 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-dump185 option specified" >&5 3333$as_echo_n "checking if --enable-dump185 option specified... " >&6; } 3334# Check whether --enable-dump185 was given. 3335if test "${enable_dump185+set}" = set; then : 3336 enableval=$enable_dump185; db_cv_dump185="$enable_dump185" 3337else 3338 db_cv_dump185="no" 3339fi 3340 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_dump185" >&5 3342$as_echo "$db_cv_dump185" >&6; } 3343 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-java option specified" >&5 3345$as_echo_n "checking if --enable-java option specified... " >&6; } 3346# Check whether --enable-java was given. 3347if test "${enable_java+set}" = set; then : 3348 enableval=$enable_java; db_cv_java="$enable_java" 3349else 3350 db_cv_java="no" 3351fi 3352 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_java" >&5 3354$as_echo "$db_cv_java" >&6; } 3355 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-mingw option specified" >&5 3357$as_echo_n "checking if --enable-mingw option specified... " >&6; } 3358# Check whether --enable-mingw was given. 3359if test "${enable_mingw+set}" = set; then : 3360 enableval=$enable_mingw; db_cv_mingw="$enable_mingw" 3361else 3362 db_cv_mingw="no" 3363fi 3364 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mingw" >&5 3366$as_echo "$db_cv_mingw" >&6; } 3367 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-o_direct option specified" >&5 3369$as_echo_n "checking if --enable-o_direct option specified... " >&6; } 3370# Check whether --enable-o_direct was given. 3371if test "${enable_o_direct+set}" = set; then : 3372 enableval=$enable_o_direct; db_cv_o_direct="$enable_o_direct" 3373else 3374 db_cv_o_direct="no" 3375fi 3376 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_o_direct" >&5 3378$as_echo "$db_cv_o_direct" >&6; } 3379 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-posixmutexes option specified" >&5 3381$as_echo_n "checking if --enable-posixmutexes option specified... " >&6; } 3382# Check whether --enable-posixmutexes was given. 3383if test "${enable_posixmutexes+set}" = set; then : 3384 enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes" 3385else 3386 db_cv_posixmutexes="no" 3387fi 3388 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_posixmutexes" >&5 3390$as_echo "$db_cv_posixmutexes" >&6; } 3391 3392# Check whether --enable-pthread_self was given. 3393if test "${enable_pthread_self+set}" = set; then : 3394 enableval=$enable_pthread_self; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthread_self is now always enabled" >&5 3395$as_echo "$as_me: WARNING: --enable-pthread_self is now always enabled" >&2;} 3396fi 3397 3398 3399# Check whether --enable-pthread_api was given. 3400if test "${enable_pthread_api+set}" = set; then : 3401 enableval=$enable_pthread_api; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthread_api is now always enabled" >&5 3402$as_echo "$as_me: WARNING: --enable-pthread_api is now always enabled" >&2;} 3403fi 3404 3405 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-rpc option specified" >&5 3407$as_echo_n "checking if --enable-rpc option specified... " >&6; } 3408# Check whether --enable-rpc was given. 3409if test "${enable_rpc+set}" = set; then : 3410 enableval=$enable_rpc; if test "x$DB_FORCE_RPC" = x ; then 3411 as_fn_error "RPC support has been removed from Berkeley DB. Please check the release notes" "$LINENO" 5; 3412 else 3413 db_cv_rpc="$enable_rpc"; 3414 fi 3415else 3416 db_cv_rpc="no" 3417fi 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_rpc" >&5 3420$as_echo "$db_cv_rpc" >&6; } 3421 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-smallbuild option specified" >&5 3423$as_echo_n "checking if --enable-smallbuild option specified... " >&6; } 3424# Check whether --enable-smallbuild was given. 3425if test "${enable_smallbuild+set}" = set; then : 3426 enableval=$enable_smallbuild; db_cv_smallbuild="$enable_smallbuild" 3427else 3428 db_cv_smallbuild="no" 3429fi 3430 3431if test "$db_cv_smallbuild" = "yes"; then 3432 db_cv_build_cryptography="no" 3433 db_cv_build_hash="no" 3434 db_cv_build_queue="no" 3435 db_cv_build_replication="no" 3436 db_cv_build_statistics="no" 3437 db_cv_build_verify="no" 3438 db_cv_build_partition="no" 3439 db_cv_build_compression="no" 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_smallbuild" >&5 3442$as_echo "$db_cv_smallbuild" >&6; } 3443 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-stl option specified" >&5 3445$as_echo_n "checking if --enable-stl option specified... " >&6; } 3446# Check whether --enable-stl was given. 3447if test "${enable_stl+set}" = set; then : 3448 enableval=$enable_stl; db_cv_stl="$enable_stl" 3449else 3450 db_cv_stl="no" 3451fi 3452 3453if test "$db_cv_stl" = "yes" -a "$db_cv_cxx" = "no"; then 3454 db_cv_cxx="yes" 3455fi 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_stl" >&5 3457$as_echo "$db_cv_stl" >&6; } 3458 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-tcl option specified" >&5 3460$as_echo_n "checking if --enable-tcl option specified... " >&6; } 3461# Check whether --enable-tcl was given. 3462if test "${enable_tcl+set}" = set; then : 3463 enableval=$enable_tcl; db_cv_tcl="$enable_tcl" 3464else 3465 db_cv_tcl="no" 3466fi 3467 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_tcl" >&5 3469$as_echo "$db_cv_tcl" >&6; } 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-test option specified" >&5 3472$as_echo_n "checking if --enable-test option specified... " >&6; } 3473# Check whether --enable-test was given. 3474if test "${enable_test+set}" = set; then : 3475 enableval=$enable_test; db_cv_test="$enable_test" 3476else 3477 db_cv_test="no" 3478fi 3479 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_test" >&5 3481$as_echo "$db_cv_test" >&6; } 3482 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-uimutexes option specified" >&5 3484$as_echo_n "checking if --enable-uimutexes option specified... " >&6; } 3485# Check whether --enable-uimutexes was given. 3486if test "${enable_uimutexes+set}" = set; then : 3487 enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes" 3488else 3489 db_cv_uimutexes="no" 3490fi 3491 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uimutexes" >&5 3493$as_echo "$db_cv_uimutexes" >&6; } 3494 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-umrw option specified" >&5 3496$as_echo_n "checking if --enable-umrw option specified... " >&6; } 3497# Check whether --enable-umrw was given. 3498if test "${enable_umrw+set}" = set; then : 3499 enableval=$enable_umrw; db_cv_umrw="$enable_umrw" 3500else 3501 db_cv_umrw="no" 3502fi 3503 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_umrw" >&5 3505$as_echo "$db_cv_umrw" >&6; } 3506 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-mutex=MUTEX option specified" >&5 3508$as_echo_n "checking if --with-mutex=MUTEX option specified... " >&6; } 3509 3510# Check whether --with-mutex was given. 3511if test "${with_mutex+set}" = set; then : 3512 withval=$with_mutex; with_mutex="$withval" 3513else 3514 with_mutex="no" 3515fi 3516 3517if test "$with_mutex" = "yes"; then 3518 as_fn_error "--with-mutex requires a mutex name argument" "$LINENO" 5 3519fi 3520if test "$with_mutex" != "no"; then 3521 db_cv_mutex="$with_mutex" 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mutex" >&5 3524$as_echo "$with_mutex" >&6; } 3525 3526# --with-mutexalign=ALIGNMENT was the configuration option that Berkeley DB 3527# used before the DbEnv::mutex_set_align method was added. 3528 3529# Check whether --with-mutexalign was given. 3530if test "${with_mutexalign+set}" = set; then : 3531 withval=$with_mutexalign; as_fn_error "--with-mutexalign no longer supported, use DbEnv::mutex_set_align" "$LINENO" 5 3532fi 3533 3534 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-tcl=DIR option specified" >&5 3536$as_echo_n "checking if --with-tcl=DIR option specified... " >&6; } 3537 3538# Check whether --with-tcl was given. 3539if test "${with_tcl+set}" = set; then : 3540 withval=$with_tcl; with_tclconfig="$withval" 3541else 3542 with_tclconfig="no" 3543fi 3544 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tclconfig" >&5 3546$as_echo "$with_tclconfig" >&6; } 3547if test "$with_tclconfig" != "no"; then 3548 db_cv_tcl="yes" 3549fi 3550 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-uniquename=NAME option specified" >&5 3552$as_echo_n "checking if --with-uniquename=NAME option specified... " >&6; } 3553 3554# Check whether --with-uniquename was given. 3555if test "${with_uniquename+set}" = set; then : 3556 withval=$with_uniquename; with_uniquename="$withval" 3557else 3558 with_uniquename="no" 3559fi 3560 3561if test "$with_uniquename" = "no"; then 3562 db_cv_uniquename="no" 3563 DB_VERSION_UNIQUE_NAME="" 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_uniquename" >&5 3565$as_echo "$with_uniquename" >&6; } 3566else 3567 db_cv_uniquename="yes" 3568 if test "$with_uniquename" = "yes"; then 3569 DB_VERSION_UNIQUE_NAME="_4008" 3570 else 3571 DB_VERSION_UNIQUE_NAME="$with_uniquename" 3572 fi 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB_VERSION_UNIQUE_NAME" >&5 3574$as_echo "$DB_VERSION_UNIQUE_NAME" >&6; } 3575fi 3576 3577# Test requires Tcl 3578if test "$db_cv_test" = "yes"; then 3579 if test "$db_cv_tcl" = "no"; then 3580 as_fn_error "--enable-test requires --enable-tcl" "$LINENO" 5 3581 fi 3582fi 3583 3584# Set some #defines based on configuration options. 3585if test "$db_cv_diagnostic" = "yes"; then 3586 $as_echo "#define DIAGNOSTIC 1" >>confdefs.h 3587 3588 3589fi 3590if test "$db_cv_debug_rop" = "yes"; then 3591 $as_echo "#define DEBUG_ROP 1" >>confdefs.h 3592 3593 3594fi 3595if test "$db_cv_debug_wop" = "yes"; then 3596 $as_echo "#define DEBUG_WOP 1" >>confdefs.h 3597 3598 3599fi 3600if test "$db_cv_umrw" = "yes"; then 3601 $as_echo "#define UMRW 1" >>confdefs.h 3602 3603 3604 3605fi 3606if test "$db_cv_test" = "yes"; then 3607 $as_echo "#define CONFIG_TEST 1" >>confdefs.h 3608 3609 3610fi 3611 3612 3613$as_echo "#define HAVE_UPGRADE_SUPPORT 1" >>confdefs.h 3614 3615 3616# Check for programs used in building and installation. 3617 3618 3619if test -n "$ac_tool_prefix"; then 3620 # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args. 3621set dummy ${ac_tool_prefix}chmod; ac_word=$2 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3623$as_echo_n "checking for $ac_word... " >&6; } 3624if test "${ac_cv_prog_CHMOD+set}" = set; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 if test -n "$CHMOD"; then 3628 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test. 3629else 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3637 ac_cv_prog_CHMOD="${ac_tool_prefix}chmod" 3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3639 break 2 3640 fi 3641done 3642 done 3643IFS=$as_save_IFS 3644 3645fi 3646fi 3647CHMOD=$ac_cv_prog_CHMOD 3648if test -n "$CHMOD"; then 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 3650$as_echo "$CHMOD" >&6; } 3651else 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653$as_echo "no" >&6; } 3654fi 3655 3656 3657fi 3658if test -z "$ac_cv_prog_CHMOD"; then 3659 ac_ct_CHMOD=$CHMOD 3660 # Extract the first word of "chmod", so it can be a program name with args. 3661set dummy chmod; ac_word=$2 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663$as_echo_n "checking for $ac_word... " >&6; } 3664if test "${ac_cv_prog_ac_ct_CHMOD+set}" = set; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 if test -n "$ac_ct_CHMOD"; then 3668 ac_cv_prog_ac_ct_CHMOD="$ac_ct_CHMOD" # Let the user override the test. 3669else 3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3671for as_dir in $PATH 3672do 3673 IFS=$as_save_IFS 3674 test -z "$as_dir" && as_dir=. 3675 for ac_exec_ext in '' $ac_executable_extensions; do 3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3677 ac_cv_prog_ac_ct_CHMOD="chmod" 3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3679 break 2 3680 fi 3681done 3682 done 3683IFS=$as_save_IFS 3684 3685fi 3686fi 3687ac_ct_CHMOD=$ac_cv_prog_ac_ct_CHMOD 3688if test -n "$ac_ct_CHMOD"; then 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CHMOD" >&5 3690$as_echo "$ac_ct_CHMOD" >&6; } 3691else 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3693$as_echo "no" >&6; } 3694fi 3695 3696 if test "x$ac_ct_CHMOD" = x; then 3697 CHMOD="none" 3698 else 3699 case $cross_compiling:$ac_tool_warned in 3700yes:) 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3703ac_tool_warned=yes ;; 3704esac 3705 CHMOD=$ac_ct_CHMOD 3706 fi 3707else 3708 CHMOD="$ac_cv_prog_CHMOD" 3709fi 3710 3711test "$CHMOD" = "none" && as_fn_error "No chmod utility found." "$LINENO" 5 3712 3713if test -n "$ac_tool_prefix"; then 3714 # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args. 3715set dummy ${ac_tool_prefix}cp; ac_word=$2 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3717$as_echo_n "checking for $ac_word... " >&6; } 3718if test "${ac_cv_prog_CP+set}" = set; then : 3719 $as_echo_n "(cached) " >&6 3720else 3721 if test -n "$CP"; then 3722 ac_cv_prog_CP="$CP" # Let the user override the test. 3723else 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3731 ac_cv_prog_CP="${ac_tool_prefix}cp" 3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736 done 3737IFS=$as_save_IFS 3738 3739fi 3740fi 3741CP=$ac_cv_prog_CP 3742if test -n "$CP"; then 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 3744$as_echo "$CP" >&6; } 3745else 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748fi 3749 3750 3751fi 3752if test -z "$ac_cv_prog_CP"; then 3753 ac_ct_CP=$CP 3754 # Extract the first word of "cp", so it can be a program name with args. 3755set dummy cp; ac_word=$2 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757$as_echo_n "checking for $ac_word... " >&6; } 3758if test "${ac_cv_prog_ac_ct_CP+set}" = set; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 if test -n "$ac_ct_CP"; then 3762 ac_cv_prog_ac_ct_CP="$ac_ct_CP" # Let the user override the test. 3763else 3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765for as_dir in $PATH 3766do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 for ac_exec_ext in '' $ac_executable_extensions; do 3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3771 ac_cv_prog_ac_ct_CP="cp" 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3773 break 2 3774 fi 3775done 3776 done 3777IFS=$as_save_IFS 3778 3779fi 3780fi 3781ac_ct_CP=$ac_cv_prog_ac_ct_CP 3782if test -n "$ac_ct_CP"; then 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CP" >&5 3784$as_echo "$ac_ct_CP" >&6; } 3785else 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3787$as_echo "no" >&6; } 3788fi 3789 3790 if test "x$ac_ct_CP" = x; then 3791 CP="none" 3792 else 3793 case $cross_compiling:$ac_tool_warned in 3794yes:) 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3797ac_tool_warned=yes ;; 3798esac 3799 CP=$ac_ct_CP 3800 fi 3801else 3802 CP="$ac_cv_prog_CP" 3803fi 3804 3805test "$CP" = "none" && as_fn_error "No cp utility found." "$LINENO" 5 3806 3807# The Tcl test suite requires a kill utility. 3808if test "$db_cv_test" = "yes"; then 3809 if test -n "$ac_tool_prefix"; then 3810 # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args. 3811set dummy ${ac_tool_prefix}kill; ac_word=$2 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3813$as_echo_n "checking for $ac_word... " >&6; } 3814if test "${ac_cv_prog_KILL+set}" = set; then : 3815 $as_echo_n "(cached) " >&6 3816else 3817 if test -n "$KILL"; then 3818 ac_cv_prog_KILL="$KILL" # Let the user override the test. 3819else 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for ac_exec_ext in '' $ac_executable_extensions; do 3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3827 ac_cv_prog_KILL="${ac_tool_prefix}kill" 3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3829 break 2 3830 fi 3831done 3832 done 3833IFS=$as_save_IFS 3834 3835fi 3836fi 3837KILL=$ac_cv_prog_KILL 3838if test -n "$KILL"; then 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 3840$as_echo "$KILL" >&6; } 3841else 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3843$as_echo "no" >&6; } 3844fi 3845 3846 3847fi 3848if test -z "$ac_cv_prog_KILL"; then 3849 ac_ct_KILL=$KILL 3850 # Extract the first word of "kill", so it can be a program name with args. 3851set dummy kill; ac_word=$2 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853$as_echo_n "checking for $ac_word... " >&6; } 3854if test "${ac_cv_prog_ac_ct_KILL+set}" = set; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 if test -n "$ac_ct_KILL"; then 3858 ac_cv_prog_ac_ct_KILL="$ac_ct_KILL" # Let the user override the test. 3859else 3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3867 ac_cv_prog_ac_ct_KILL="kill" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875fi 3876fi 3877ac_ct_KILL=$ac_cv_prog_ac_ct_KILL 3878if test -n "$ac_ct_KILL"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_KILL" >&5 3880$as_echo "$ac_ct_KILL" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884fi 3885 3886 if test "x$ac_ct_KILL" = x; then 3887 KILL="none" 3888 else 3889 case $cross_compiling:$ac_tool_warned in 3890yes:) 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3893ac_tool_warned=yes ;; 3894esac 3895 KILL=$ac_ct_KILL 3896 fi 3897else 3898 KILL="$ac_cv_prog_KILL" 3899fi 3900 3901 test "$KILL" = "none" && as_fn_error "No kill utility found." "$LINENO" 5 3902fi 3903 3904if test -n "$ac_tool_prefix"; then 3905 # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args. 3906set dummy ${ac_tool_prefix}ln; ac_word=$2 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3908$as_echo_n "checking for $ac_word... " >&6; } 3909if test "${ac_cv_prog_LN+set}" = set; then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 if test -n "$LN"; then 3913 ac_cv_prog_LN="$LN" # Let the user override the test. 3914else 3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3922 ac_cv_prog_LN="${ac_tool_prefix}ln" 3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926done 3927 done 3928IFS=$as_save_IFS 3929 3930fi 3931fi 3932LN=$ac_cv_prog_LN 3933if test -n "$LN"; then 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 3935$as_echo "$LN" >&6; } 3936else 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938$as_echo "no" >&6; } 3939fi 3940 3941 3942fi 3943if test -z "$ac_cv_prog_LN"; then 3944 ac_ct_LN=$LN 3945 # Extract the first word of "ln", so it can be a program name with args. 3946set dummy ln; ac_word=$2 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3948$as_echo_n "checking for $ac_word... " >&6; } 3949if test "${ac_cv_prog_ac_ct_LN+set}" = set; then : 3950 $as_echo_n "(cached) " >&6 3951else 3952 if test -n "$ac_ct_LN"; then 3953 ac_cv_prog_ac_ct_LN="$ac_ct_LN" # Let the user override the test. 3954else 3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956for as_dir in $PATH 3957do 3958 IFS=$as_save_IFS 3959 test -z "$as_dir" && as_dir=. 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3962 ac_cv_prog_ac_ct_LN="ln" 3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3964 break 2 3965 fi 3966done 3967 done 3968IFS=$as_save_IFS 3969 3970fi 3971fi 3972ac_ct_LN=$ac_cv_prog_ac_ct_LN 3973if test -n "$ac_ct_LN"; then 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LN" >&5 3975$as_echo "$ac_ct_LN" >&6; } 3976else 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3978$as_echo "no" >&6; } 3979fi 3980 3981 if test "x$ac_ct_LN" = x; then 3982 LN="none" 3983 else 3984 case $cross_compiling:$ac_tool_warned in 3985yes:) 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3988ac_tool_warned=yes ;; 3989esac 3990 LN=$ac_ct_LN 3991 fi 3992else 3993 LN="$ac_cv_prog_LN" 3994fi 3995 3996test "$LN" = "none" && as_fn_error "No ln utility found." "$LINENO" 5 3997 3998if test -n "$ac_tool_prefix"; then 3999 # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args. 4000set dummy ${ac_tool_prefix}mkdir; ac_word=$2 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4002$as_echo_n "checking for $ac_word... " >&6; } 4003if test "${ac_cv_prog_MKDIR+set}" = set; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 if test -n "$MKDIR"; then 4007 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test. 4008else 4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH 4011do 4012 IFS=$as_save_IFS 4013 test -z "$as_dir" && as_dir=. 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4016 ac_cv_prog_MKDIR="${ac_tool_prefix}mkdir" 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4018 break 2 4019 fi 4020done 4021 done 4022IFS=$as_save_IFS 4023 4024fi 4025fi 4026MKDIR=$ac_cv_prog_MKDIR 4027if test -n "$MKDIR"; then 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 4029$as_echo "$MKDIR" >&6; } 4030else 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4032$as_echo "no" >&6; } 4033fi 4034 4035 4036fi 4037if test -z "$ac_cv_prog_MKDIR"; then 4038 ac_ct_MKDIR=$MKDIR 4039 # Extract the first word of "mkdir", so it can be a program name with args. 4040set dummy mkdir; ac_word=$2 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4042$as_echo_n "checking for $ac_word... " >&6; } 4043if test "${ac_cv_prog_ac_ct_MKDIR+set}" = set; then : 4044 $as_echo_n "(cached) " >&6 4045else 4046 if test -n "$ac_ct_MKDIR"; then 4047 ac_cv_prog_ac_ct_MKDIR="$ac_ct_MKDIR" # Let the user override the test. 4048else 4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050for as_dir in $PATH 4051do 4052 IFS=$as_save_IFS 4053 test -z "$as_dir" && as_dir=. 4054 for ac_exec_ext in '' $ac_executable_extensions; do 4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4056 ac_cv_prog_ac_ct_MKDIR="mkdir" 4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4058 break 2 4059 fi 4060done 4061 done 4062IFS=$as_save_IFS 4063 4064fi 4065fi 4066ac_ct_MKDIR=$ac_cv_prog_ac_ct_MKDIR 4067if test -n "$ac_ct_MKDIR"; then 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDIR" >&5 4069$as_echo "$ac_ct_MKDIR" >&6; } 4070else 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4072$as_echo "no" >&6; } 4073fi 4074 4075 if test "x$ac_ct_MKDIR" = x; then 4076 MKDIR="none" 4077 else 4078 case $cross_compiling:$ac_tool_warned in 4079yes:) 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4082ac_tool_warned=yes ;; 4083esac 4084 MKDIR=$ac_ct_MKDIR 4085 fi 4086else 4087 MKDIR="$ac_cv_prog_MKDIR" 4088fi 4089 4090test "$MKDIR" = "none" && as_fn_error "No mkdir utility found." "$LINENO" 5 4091 4092if test -n "$ac_tool_prefix"; then 4093 # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args. 4094set dummy ${ac_tool_prefix}rm; ac_word=$2 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096$as_echo_n "checking for $ac_word... " >&6; } 4097if test "${ac_cv_prog_RM+set}" = set; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if test -n "$RM"; then 4101 ac_cv_prog_RM="$RM" # Let the user override the test. 4102else 4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4110 ac_cv_prog_RM="${ac_tool_prefix}rm" 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114done 4115 done 4116IFS=$as_save_IFS 4117 4118fi 4119fi 4120RM=$ac_cv_prog_RM 4121if test -n "$RM"; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 4123$as_echo "$RM" >&6; } 4124else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127fi 4128 4129 4130fi 4131if test -z "$ac_cv_prog_RM"; then 4132 ac_ct_RM=$RM 4133 # Extract the first word of "rm", so it can be a program name with args. 4134set dummy rm; ac_word=$2 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4136$as_echo_n "checking for $ac_word... " >&6; } 4137if test "${ac_cv_prog_ac_ct_RM+set}" = set; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 if test -n "$ac_ct_RM"; then 4141 ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test. 4142else 4143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4144for as_dir in $PATH 4145do 4146 IFS=$as_save_IFS 4147 test -z "$as_dir" && as_dir=. 4148 for ac_exec_ext in '' $ac_executable_extensions; do 4149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4150 ac_cv_prog_ac_ct_RM="rm" 4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4152 break 2 4153 fi 4154done 4155 done 4156IFS=$as_save_IFS 4157 4158fi 4159fi 4160ac_ct_RM=$ac_cv_prog_ac_ct_RM 4161if test -n "$ac_ct_RM"; then 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RM" >&5 4163$as_echo "$ac_ct_RM" >&6; } 4164else 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4166$as_echo "no" >&6; } 4167fi 4168 4169 if test "x$ac_ct_RM" = x; then 4170 RM="none" 4171 else 4172 case $cross_compiling:$ac_tool_warned in 4173yes:) 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4176ac_tool_warned=yes ;; 4177esac 4178 RM=$ac_ct_RM 4179 fi 4180else 4181 RM="$ac_cv_prog_RM" 4182fi 4183 4184test "$RM" = "none" && as_fn_error "No rm utility found." "$LINENO" 5 4185 4186# We always want to force removes, and libtool assumes the same. 4187RM="$RM -f" 4188 4189if test "$db_cv_rpc" = "yes"; then 4190 if test -n "$ac_tool_prefix"; then 4191 # Extract the first word of "${ac_tool_prefix}rpcgen", so it can be a program name with args. 4192set dummy ${ac_tool_prefix}rpcgen; ac_word=$2 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4194$as_echo_n "checking for $ac_word... " >&6; } 4195if test "${ac_cv_prog_RPCGEN+set}" = set; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 if test -n "$RPCGEN"; then 4199 ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test. 4200else 4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4202for as_dir in $PATH 4203do 4204 IFS=$as_save_IFS 4205 test -z "$as_dir" && as_dir=. 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4208 ac_cv_prog_RPCGEN="${ac_tool_prefix}rpcgen" 4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4210 break 2 4211 fi 4212done 4213 done 4214IFS=$as_save_IFS 4215 4216fi 4217fi 4218RPCGEN=$ac_cv_prog_RPCGEN 4219if test -n "$RPCGEN"; then 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5 4221$as_echo "$RPCGEN" >&6; } 4222else 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4224$as_echo "no" >&6; } 4225fi 4226 4227 4228fi 4229if test -z "$ac_cv_prog_RPCGEN"; then 4230 ac_ct_RPCGEN=$RPCGEN 4231 # Extract the first word of "rpcgen", so it can be a program name with args. 4232set dummy rpcgen; ac_word=$2 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234$as_echo_n "checking for $ac_word... " >&6; } 4235if test "${ac_cv_prog_ac_ct_RPCGEN+set}" = set; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 if test -n "$ac_ct_RPCGEN"; then 4239 ac_cv_prog_ac_ct_RPCGEN="$ac_ct_RPCGEN" # Let the user override the test. 4240else 4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4248 ac_cv_prog_ac_ct_RPCGEN="rpcgen" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256fi 4257fi 4258ac_ct_RPCGEN=$ac_cv_prog_ac_ct_RPCGEN 4259if test -n "$ac_ct_RPCGEN"; then 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RPCGEN" >&5 4261$as_echo "$ac_ct_RPCGEN" >&6; } 4262else 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4264$as_echo "no" >&6; } 4265fi 4266 4267 if test "x$ac_ct_RPCGEN" = x; then 4268 RPCGEN="none" 4269 else 4270 case $cross_compiling:$ac_tool_warned in 4271yes:) 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4274ac_tool_warned=yes ;; 4275esac 4276 RPCGEN=$ac_ct_RPCGEN 4277 fi 4278else 4279 RPCGEN="$ac_cv_prog_RPCGEN" 4280fi 4281 4282 test "$RPCGEN" = "none" && as_fn_error "No rpcgen utility found." "$LINENO" 5 4283fi 4284 4285# We need a complete path for sh, because some make utility implementations get 4286# upset if SHELL is set to just the command name. Don't use the SHELL variable 4287# here because the user likely has the SHELL variable set to something other 4288# than the Bourne shell, which is what Make wants. 4289if test -n "$ac_tool_prefix"; then 4290 # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args. 4291set dummy ${ac_tool_prefix}sh; ac_word=$2 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4293$as_echo_n "checking for $ac_word... " >&6; } 4294if test "${ac_cv_path_db_cv_path_sh+set}" = set; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 case $db_cv_path_sh in 4298 [\\/]* | ?:[\\/]*) 4299 ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path. 4300 ;; 4301 *) 4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303for as_dir in $PATH 4304do 4305 IFS=$as_save_IFS 4306 test -z "$as_dir" && as_dir=. 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4309 ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext" 4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4311 break 2 4312 fi 4313done 4314 done 4315IFS=$as_save_IFS 4316 4317 ;; 4318esac 4319fi 4320db_cv_path_sh=$ac_cv_path_db_cv_path_sh 4321if test -n "$db_cv_path_sh"; then 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_path_sh" >&5 4323$as_echo "$db_cv_path_sh" >&6; } 4324else 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326$as_echo "no" >&6; } 4327fi 4328 4329 4330fi 4331if test -z "$ac_cv_path_db_cv_path_sh"; then 4332 ac_pt_db_cv_path_sh=$db_cv_path_sh 4333 # Extract the first word of "sh", so it can be a program name with args. 4334set dummy sh; ac_word=$2 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4336$as_echo_n "checking for $ac_word... " >&6; } 4337if test "${ac_cv_path_ac_pt_db_cv_path_sh+set}" = set; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 case $ac_pt_db_cv_path_sh in 4341 [\\/]* | ?:[\\/]*) 4342 ac_cv_path_ac_pt_db_cv_path_sh="$ac_pt_db_cv_path_sh" # Let the user override the test with a path. 4343 ;; 4344 *) 4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4346for as_dir in $PATH 4347do 4348 IFS=$as_save_IFS 4349 test -z "$as_dir" && as_dir=. 4350 for ac_exec_ext in '' $ac_executable_extensions; do 4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4352 ac_cv_path_ac_pt_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext" 4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4354 break 2 4355 fi 4356done 4357 done 4358IFS=$as_save_IFS 4359 4360 ;; 4361esac 4362fi 4363ac_pt_db_cv_path_sh=$ac_cv_path_ac_pt_db_cv_path_sh 4364if test -n "$ac_pt_db_cv_path_sh"; then 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_db_cv_path_sh" >&5 4366$as_echo "$ac_pt_db_cv_path_sh" >&6; } 4367else 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4369$as_echo "no" >&6; } 4370fi 4371 4372 if test "x$ac_pt_db_cv_path_sh" = x; then 4373 db_cv_path_sh="none" 4374 else 4375 case $cross_compiling:$ac_tool_warned in 4376yes:) 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4379ac_tool_warned=yes ;; 4380esac 4381 db_cv_path_sh=$ac_pt_db_cv_path_sh 4382 fi 4383else 4384 db_cv_path_sh="$ac_cv_path_db_cv_path_sh" 4385fi 4386 4387test "$db_cv_path_sh" = "none" && as_fn_error "No sh utility found." "$LINENO" 5 4388 4389# Don't strip the binaries if --enable-debug was specified. 4390if test "$db_cv_debug" = yes; then 4391 STRIP=":" 4392fi 4393# Find a good install program. We prefer a C program (faster), 4394# so one script is as good as another. But avoid the broken or 4395# incompatible versions: 4396# SysV /etc/install, /usr/sbin/install 4397# SunOS /usr/etc/install 4398# IRIX /sbin/install 4399# AIX /bin/install 4400# AmigaOS /C/install, which installs bootblocks on floppy discs 4401# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4402# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4403# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4404# OS/2's system install, which has a completely different semantic 4405# ./install, which can be erroneously created by make from ./install.sh. 4406# Reject install programs that cannot install multiple files. 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4408$as_echo_n "checking for a BSD-compatible install... " >&6; } 4409if test -z "$INSTALL"; then 4410if test "${ac_cv_path_install+set}" = set; then : 4411 $as_echo_n "(cached) " >&6 4412else 4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 # Account for people who put trailing slashes in PATH elements. 4419case $as_dir/ in #(( 4420 ./ | .// | /[cC]/* | \ 4421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4422 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4423 /usr/ucb/* ) ;; 4424 *) 4425 # OSF1 and SCO ODT 3.0 have their own names for install. 4426 # Don't use installbsd from OSF since it installs stuff as root 4427 # by default. 4428 for ac_prog in ginstall scoinst install; do 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4431 if test $ac_prog = install && 4432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4433 # AIX install. It has an incompatible calling convention. 4434 : 4435 elif test $ac_prog = install && 4436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4437 # program-specific install script used by HP pwplus--don't use. 4438 : 4439 else 4440 rm -rf conftest.one conftest.two conftest.dir 4441 echo one > conftest.one 4442 echo two > conftest.two 4443 mkdir conftest.dir 4444 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4445 test -s conftest.one && test -s conftest.two && 4446 test -s conftest.dir/conftest.one && 4447 test -s conftest.dir/conftest.two 4448 then 4449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4450 break 3 4451 fi 4452 fi 4453 fi 4454 done 4455 done 4456 ;; 4457esac 4458 4459 done 4460IFS=$as_save_IFS 4461 4462rm -rf conftest.one conftest.two conftest.dir 4463 4464fi 4465 if test "${ac_cv_path_install+set}" = set; then 4466 INSTALL=$ac_cv_path_install 4467 else 4468 # As a last resort, use the slow shell script. Don't cache a 4469 # value for INSTALL within a source directory, because that will 4470 # break other packages using the cache if that directory is 4471 # removed, or if the value is a relative name. 4472 INSTALL=$ac_install_sh 4473 fi 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4476$as_echo "$INSTALL" >&6; } 4477 4478# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4479# It thinks the first close brace ends the variable substitution. 4480test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4481 4482test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4483 4484test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4485 4486 4487BUILD_TARGET="library_build" 4488INSTALL_TARGET="library_install" 4489 4490# Respect the environment LIBS settings 4491LIBSO_LIBS="$LIBS" 4492 4493# This is where we handle stuff that autoconf can't handle: compiler, 4494# preprocessor and load flags, libraries that the standard tests don't 4495# look for. 4496# 4497# There are additional libraries we need for some compiler/architecture 4498# combinations. 4499# 4500# Some architectures require DB to be compiled with special flags and/or 4501# libraries for threaded applications 4502# 4503# The makefile CC may be different than the CC used in config testing, 4504# because the makefile CC may be set to use $(LIBTOOL). 4505# 4506# Don't override anything if it's already set from the environment. 4507optimize_debug="-O" 4508case "$host_os" in 4509aix4.3.*|aix[56]*) 4510 case "$host_os" in 4511 aix4.3.*) 4512 CPPFLAGS="$CPPFLAGS -D_LINUX_SOURCE_COMPAT";; 4513 esac 4514 # IBM's XLC compilers (at least versions 7/8/9) generate incorrect code 4515 # when ordinary optimization is enabled because they make strong 4516 # assumptions about the types held at each memory location, and some 4517 # Berkeley DB code violates those assumptions. [#16141] 4518 optimize_debug="-O2 -qalias=noansi" 4519 CC=${CC-"xlc_r"} 4520 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" 4521 LDFLAGS="$LDFLAGS -Wl,-brtl";; 4522bsdi3*) CC=${CC-"shlicc2"} 4523 LIBSO_LIBS="$LIBSO_LIBS -lipc";; 4524cygwin*) 4525 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";; 4526freebsd*) 4527 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" 4528 LDFLAGS="$LDFLAGS -pthread";; 4529gnu*|k*bsd*-gnu|linux*) 4530 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";; 4531hpux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT";; 4532irix*) optimize_debug="-O2" 4533 CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";; 4534mpeix*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE" 4535 LIBSO_LIBS="$LIBSO_LIBS -lsocket -lsvipc";; 4536osf*) CPPFLAGS="$CPPFLAGS -pthread";; 4537*qnx*) qnx_build="yes" 4538 $as_echo "#define HAVE_QNX 1" >>confdefs.h 4539 4540 ;; 4541solaris*) 4542 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ";; 4543esac 4544 4545# If the user wants a debugging environment, change any compiler optimization 4546# flags to -g. We used to add -g to the -O compiler flags, but compilers are 4547# good enough at code re-organization that debugging with -O no longer works. 4548# If you want to compile with a different set of flags, specify CFLAGS in the 4549# environment before configuring. 4550if test "$db_cv_debug" = "yes"; then 4551 $as_echo "#define DEBUG 1" >>confdefs.h 4552 4553 4554 4555 optimize_debug="-g" 4556fi 4557 4558# Set CFLAGS/CXXFLAGS. We MUST set the flags before we call autoconf 4559# compiler configuration macros, because if we don't, they set CFLAGS 4560# to no optimization and -g, which isn't what we want. 4561CFLAGS=${CFLAGS-$optimize_debug} 4562CXXFLAGS=${CXXFLAGS-"$CFLAGS"} 4563 4564# The default compiler is cc (NOT gcc), the default CFLAGS is as specified 4565# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags 4566# for any compiler other than gcc. 4567ac_ext=c 4568ac_cpp='$CPP $CPPFLAGS' 4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4571ac_compiler_gnu=$ac_cv_c_compiler_gnu 4572if test -n "$ac_tool_prefix"; then 4573 for ac_prog in cc gcc 4574 do 4575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4576set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4578$as_echo_n "checking for $ac_word... " >&6; } 4579if test "${ac_cv_prog_CC+set}" = set; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 if test -n "$CC"; then 4583 ac_cv_prog_CC="$CC" # Let the user override the test. 4584else 4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586for as_dir in $PATH 4587do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4594 break 2 4595 fi 4596done 4597 done 4598IFS=$as_save_IFS 4599 4600fi 4601fi 4602CC=$ac_cv_prog_CC 4603if test -n "$CC"; then 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4605$as_echo "$CC" >&6; } 4606else 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608$as_echo "no" >&6; } 4609fi 4610 4611 4612 test -n "$CC" && break 4613 done 4614fi 4615if test -z "$CC"; then 4616 ac_ct_CC=$CC 4617 for ac_prog in cc gcc 4618do 4619 # Extract the first word of "$ac_prog", so it can be a program name with args. 4620set dummy $ac_prog; ac_word=$2 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4622$as_echo_n "checking for $ac_word... " >&6; } 4623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 if test -n "$ac_ct_CC"; then 4627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4628else 4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH 4631do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_exec_ext in '' $ac_executable_extensions; do 4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4636 ac_cv_prog_ac_ct_CC="$ac_prog" 4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4638 break 2 4639 fi 4640done 4641 done 4642IFS=$as_save_IFS 4643 4644fi 4645fi 4646ac_ct_CC=$ac_cv_prog_ac_ct_CC 4647if test -n "$ac_ct_CC"; then 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4649$as_echo "$ac_ct_CC" >&6; } 4650else 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4652$as_echo "no" >&6; } 4653fi 4654 4655 4656 test -n "$ac_ct_CC" && break 4657done 4658 4659 if test "x$ac_ct_CC" = x; then 4660 CC="" 4661 else 4662 case $cross_compiling:$ac_tool_warned in 4663yes:) 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4666ac_tool_warned=yes ;; 4667esac 4668 CC=$ac_ct_CC 4669 fi 4670fi 4671 4672 4673test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4675as_fn_error "no acceptable C compiler found in \$PATH 4676See \`config.log' for more details." "$LINENO" 5; } 4677 4678# Provide some information about the compiler. 4679$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4680set X $ac_compile 4681ac_compiler=$2 4682for ac_option in --version -v -V -qversion; do 4683 { { ac_try="$ac_compiler $ac_option >&5" 4684case "(($ac_try" in 4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4686 *) ac_try_echo=$ac_try;; 4687esac 4688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4689$as_echo "$ac_try_echo"; } >&5 4690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4691 ac_status=$? 4692 if test -s conftest.err; then 4693 sed '10a\ 4694... rest of stderr output deleted ... 4695 10q' conftest.err >conftest.er1 4696 cat conftest.er1 >&5 4697 fi 4698 rm -f conftest.er1 conftest.err 4699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4700 test $ac_status = 0; } 4701done 4702 4703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4704/* end confdefs.h. */ 4705 4706int 4707main () 4708{ 4709 4710 ; 4711 return 0; 4712} 4713_ACEOF 4714ac_clean_files_save=$ac_clean_files 4715ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4716# Try to create an executable without -o first, disregard a.out. 4717# It will help us diagnose broken compilers, and finding out an intuition 4718# of exeext. 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4720$as_echo_n "checking whether the C compiler works... " >&6; } 4721ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4722 4723# The possible output files: 4724ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4725 4726ac_rmfiles= 4727for ac_file in $ac_files 4728do 4729 case $ac_file in 4730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4731 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4732 esac 4733done 4734rm -f $ac_rmfiles 4735 4736if { { ac_try="$ac_link_default" 4737case "(($ac_try" in 4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4739 *) ac_try_echo=$ac_try;; 4740esac 4741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4742$as_echo "$ac_try_echo"; } >&5 4743 (eval "$ac_link_default") 2>&5 4744 ac_status=$? 4745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4746 test $ac_status = 0; }; then : 4747 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4748# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4749# in a Makefile. We should not override ac_cv_exeext if it was cached, 4750# so that the user can short-circuit this test for compilers unknown to 4751# Autoconf. 4752for ac_file in $ac_files '' 4753do 4754 test -f "$ac_file" || continue 4755 case $ac_file in 4756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4757 ;; 4758 [ab].out ) 4759 # We found the default executable, but exeext='' is most 4760 # certainly right. 4761 break;; 4762 *.* ) 4763 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4764 then :; else 4765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4766 fi 4767 # We set ac_cv_exeext here because the later test for it is not 4768 # safe: cross compilers may not add the suffix if given an `-o' 4769 # argument, so we may need to know it at that point already. 4770 # Even if this section looks crufty: it has the advantage of 4771 # actually working. 4772 break;; 4773 * ) 4774 break;; 4775 esac 4776done 4777test "$ac_cv_exeext" = no && ac_cv_exeext= 4778 4779else 4780 ac_file='' 4781fi 4782if test -z "$ac_file"; then : 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4784$as_echo "no" >&6; } 4785$as_echo "$as_me: failed program was:" >&5 4786sed 's/^/| /' conftest.$ac_ext >&5 4787 4788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4790{ as_fn_set_status 77 4791as_fn_error "C compiler cannot create executables 4792See \`config.log' for more details." "$LINENO" 5; }; } 4793else 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4795$as_echo "yes" >&6; } 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4798$as_echo_n "checking for C compiler default output file name... " >&6; } 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4800$as_echo "$ac_file" >&6; } 4801ac_exeext=$ac_cv_exeext 4802 4803rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4804ac_clean_files=$ac_clean_files_save 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4806$as_echo_n "checking for suffix of executables... " >&6; } 4807if { { ac_try="$ac_link" 4808case "(($ac_try" in 4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4810 *) ac_try_echo=$ac_try;; 4811esac 4812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4813$as_echo "$ac_try_echo"; } >&5 4814 (eval "$ac_link") 2>&5 4815 ac_status=$? 4816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4817 test $ac_status = 0; }; then : 4818 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4819# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4820# work properly (i.e., refer to `conftest.exe'), while it won't with 4821# `rm'. 4822for ac_file in conftest.exe conftest conftest.*; do 4823 test -f "$ac_file" || continue 4824 case $ac_file in 4825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4827 break;; 4828 * ) break;; 4829 esac 4830done 4831else 4832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4834as_fn_error "cannot compute suffix of executables: cannot compile and link 4835See \`config.log' for more details." "$LINENO" 5; } 4836fi 4837rm -f conftest conftest$ac_cv_exeext 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4839$as_echo "$ac_cv_exeext" >&6; } 4840 4841rm -f conftest.$ac_ext 4842EXEEXT=$ac_cv_exeext 4843ac_exeext=$EXEEXT 4844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845/* end confdefs.h. */ 4846#include <stdio.h> 4847int 4848main () 4849{ 4850FILE *f = fopen ("conftest.out", "w"); 4851 return ferror (f) || fclose (f) != 0; 4852 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857ac_clean_files="$ac_clean_files conftest.out" 4858# Check that the compiler produces executables we can run. If not, either 4859# the compiler is broken, or we cross compile. 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4861$as_echo_n "checking whether we are cross compiling... " >&6; } 4862if test "$cross_compiling" != yes; then 4863 { { ac_try="$ac_link" 4864case "(($ac_try" in 4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4866 *) ac_try_echo=$ac_try;; 4867esac 4868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4869$as_echo "$ac_try_echo"; } >&5 4870 (eval "$ac_link") 2>&5 4871 ac_status=$? 4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4873 test $ac_status = 0; } 4874 if { ac_try='./conftest$ac_cv_exeext' 4875 { { case "(($ac_try" in 4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4877 *) ac_try_echo=$ac_try;; 4878esac 4879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4880$as_echo "$ac_try_echo"; } >&5 4881 (eval "$ac_try") 2>&5 4882 ac_status=$? 4883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4884 test $ac_status = 0; }; }; then 4885 cross_compiling=no 4886 else 4887 if test "$cross_compiling" = maybe; then 4888 cross_compiling=yes 4889 else 4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4892as_fn_error "cannot run C compiled programs. 4893If you meant to cross compile, use \`--host'. 4894See \`config.log' for more details." "$LINENO" 5; } 4895 fi 4896 fi 4897fi 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4899$as_echo "$cross_compiling" >&6; } 4900 4901rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4902ac_clean_files=$ac_clean_files_save 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4904$as_echo_n "checking for suffix of object files... " >&6; } 4905if test "${ac_cv_objext+set}" = set; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4909/* end confdefs.h. */ 4910 4911int 4912main () 4913{ 4914 4915 ; 4916 return 0; 4917} 4918_ACEOF 4919rm -f conftest.o conftest.obj 4920if { { ac_try="$ac_compile" 4921case "(($ac_try" in 4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4923 *) ac_try_echo=$ac_try;; 4924esac 4925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4926$as_echo "$ac_try_echo"; } >&5 4927 (eval "$ac_compile") 2>&5 4928 ac_status=$? 4929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4930 test $ac_status = 0; }; then : 4931 for ac_file in conftest.o conftest.obj conftest.*; do 4932 test -f "$ac_file" || continue; 4933 case $ac_file in 4934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4936 break;; 4937 esac 4938done 4939else 4940 $as_echo "$as_me: failed program was:" >&5 4941sed 's/^/| /' conftest.$ac_ext >&5 4942 4943{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4945as_fn_error "cannot compute suffix of object files: cannot compile 4946See \`config.log' for more details." "$LINENO" 5; } 4947fi 4948rm -f conftest.$ac_cv_objext conftest.$ac_ext 4949fi 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4951$as_echo "$ac_cv_objext" >&6; } 4952OBJEXT=$ac_cv_objext 4953ac_objext=$OBJEXT 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4955$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4956if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961 4962int 4963main () 4964{ 4965#ifndef __GNUC__ 4966 choke me 4967#endif 4968 4969 ; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_c_try_compile "$LINENO"; then : 4974 ac_compiler_gnu=yes 4975else 4976 ac_compiler_gnu=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979ac_cv_c_compiler_gnu=$ac_compiler_gnu 4980 4981fi 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4983$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4984if test $ac_compiler_gnu = yes; then 4985 GCC=yes 4986else 4987 GCC= 4988fi 4989ac_test_CFLAGS=${CFLAGS+set} 4990ac_save_CFLAGS=$CFLAGS 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4992$as_echo_n "checking whether $CC accepts -g... " >&6; } 4993if test "${ac_cv_prog_cc_g+set}" = set; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 ac_save_c_werror_flag=$ac_c_werror_flag 4997 ac_c_werror_flag=yes 4998 ac_cv_prog_cc_g=no 4999 CFLAGS="-g" 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_c_try_compile "$LINENO"; then : 5012 ac_cv_prog_cc_g=yes 5013else 5014 CFLAGS="" 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017 5018int 5019main () 5020{ 5021 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 5028else 5029 ac_c_werror_flag=$ac_save_c_werror_flag 5030 CFLAGS="-g" 5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033 5034int 5035main () 5036{ 5037 5038 ; 5039 return 0; 5040} 5041_ACEOF 5042if ac_fn_c_try_compile "$LINENO"; then : 5043 ac_cv_prog_cc_g=yes 5044fi 5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5046fi 5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050 ac_c_werror_flag=$ac_save_c_werror_flag 5051fi 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5053$as_echo "$ac_cv_prog_cc_g" >&6; } 5054if test "$ac_test_CFLAGS" = set; then 5055 CFLAGS=$ac_save_CFLAGS 5056elif test $ac_cv_prog_cc_g = yes; then 5057 if test "$GCC" = yes; then 5058 CFLAGS="-g -O2" 5059 else 5060 CFLAGS="-g" 5061 fi 5062else 5063 if test "$GCC" = yes; then 5064 CFLAGS="-O2" 5065 else 5066 CFLAGS= 5067 fi 5068fi 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5070$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5071if test "${ac_cv_prog_cc_c89+set}" = set; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 ac_cv_prog_cc_c89=no 5075ac_save_CC=$CC 5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078#include <stdarg.h> 5079#include <stdio.h> 5080#include <sys/types.h> 5081#include <sys/stat.h> 5082/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5083struct buf { int x; }; 5084FILE * (*rcsopen) (struct buf *, struct stat *, int); 5085static char *e (p, i) 5086 char **p; 5087 int i; 5088{ 5089 return p[i]; 5090} 5091static char *f (char * (*g) (char **, int), char **p, ...) 5092{ 5093 char *s; 5094 va_list v; 5095 va_start (v,p); 5096 s = g (p, va_arg (v,int)); 5097 va_end (v); 5098 return s; 5099} 5100 5101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5102 function prototypes and stuff, but not '\xHH' hex character constants. 5103 These don't provoke an error unfortunately, instead are silently treated 5104 as 'x'. The following induces an error, until -std is added to get 5105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5106 array size at least. It's necessary to write '\x00'==0 to get something 5107 that's true only with -std. */ 5108int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5109 5110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5111 inside strings and character constants. */ 5112#define FOO(x) 'x' 5113int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5114 5115int test (int i, double x); 5116struct s1 {int (*f) (int a);}; 5117struct s2 {int (*f) (double a);}; 5118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5119int argc; 5120char **argv; 5121int 5122main () 5123{ 5124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5131do 5132 CC="$ac_save_CC $ac_arg" 5133 if ac_fn_c_try_compile "$LINENO"; then : 5134 ac_cv_prog_cc_c89=$ac_arg 5135fi 5136rm -f core conftest.err conftest.$ac_objext 5137 test "x$ac_cv_prog_cc_c89" != "xno" && break 5138done 5139rm -f conftest.$ac_ext 5140CC=$ac_save_CC 5141 5142fi 5143# AC_CACHE_VAL 5144case "x$ac_cv_prog_cc_c89" in 5145 x) 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5147$as_echo "none needed" >&6; } ;; 5148 xno) 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5150$as_echo "unsupported" >&6; } ;; 5151 *) 5152 CC="$CC $ac_cv_prog_cc_c89" 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5154$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5155esac 5156if test "x$ac_cv_prog_cc_c89" != xno; then : 5157 5158fi 5159 5160ac_ext=c 5161ac_cpp='$CPP $CPPFLAGS' 5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5164ac_compiler_gnu=$ac_cv_c_compiler_gnu 5165 5166 5167# We know what compiler we're going to use, now. Set per-compiler flags. 5168if test "$GCC" = "yes"; then 5169 # Use -O3 if we're using gcc, unless we're doing a small build, in 5170 # which case we use -Os alone. The code size for -O3 is quite a 5171 # bit larger than -O2: a compromise is "-Os -finline-functions", 5172 # it's smaller and explicitly inlining the functions helps Berkeley 5173 # DB. 5174 CFLAGS="$CFLAGS " 5175 if test "$db_cv_smallbuild" = "yes"; then 5176 CFLAGS=`echo "$CFLAGS" | sed 's/-O /-Os /g'` 5177 else 5178 CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O3 /g'` 5179 fi 5180else 5181 case "$host_os" in 5182 hpux11.0*) ;; 5183 hpux11*) CPPFLAGS="$CPPFLAGS -mt";; 5184 esac 5185fi 5186 5187# Check for "const" and "inline" keywords. 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5190$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5191if test "${ac_cv_c_const+set}" = set; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196 5197int 5198main () 5199{ 5200/* FIXME: Include the comments suggested by Paul. */ 5201#ifndef __cplusplus 5202 /* Ultrix mips cc rejects this. */ 5203 typedef int charset[2]; 5204 const charset cs; 5205 /* SunOS 4.1.1 cc rejects this. */ 5206 char const *const *pcpcc; 5207 char **ppc; 5208 /* NEC SVR4.0.2 mips cc rejects this. */ 5209 struct point {int x, y;}; 5210 static struct point const zero = {0,0}; 5211 /* AIX XL C 1.02.0.0 rejects this. 5212 It does not let you subtract one const X* pointer from another in 5213 an arm of an if-expression whose if-part is not a constant 5214 expression */ 5215 const char *g = "string"; 5216 pcpcc = &g + (g ? g-g : 0); 5217 /* HPUX 7.0 cc rejects these. */ 5218 ++pcpcc; 5219 ppc = (char**) pcpcc; 5220 pcpcc = (char const *const *) ppc; 5221 { /* SCO 3.2v4 cc rejects this. */ 5222 char *t; 5223 char const *s = 0 ? (char *) 0 : (char const *) 0; 5224 5225 *t++ = 0; 5226 if (s) return 0; 5227 } 5228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5229 int x[] = {25, 17}; 5230 const int *foo = &x[0]; 5231 ++foo; 5232 } 5233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5234 typedef const int *iptr; 5235 iptr p = 0; 5236 ++p; 5237 } 5238 { /* AIX XL C 1.02.0.0 rejects this saying 5239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5240 struct s { int j; const int *ap[3]; }; 5241 struct s *b; b->j = 5; 5242 } 5243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5244 const int foo = 10; 5245 if (!foo) return 0; 5246 } 5247 return !cs[0] && !zero.x; 5248#endif 5249 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO"; then : 5255 ac_cv_c_const=yes 5256else 5257 ac_cv_c_const=no 5258fi 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5262$as_echo "$ac_cv_c_const" >&6; } 5263if test $ac_cv_c_const = no; then 5264 5265$as_echo "#define const /**/" >>confdefs.h 5266 5267fi 5268 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5270$as_echo_n "checking for inline... " >&6; } 5271if test "${ac_cv_c_inline+set}" = set; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 ac_cv_c_inline=no 5275for ac_kw in inline __inline__ __inline; do 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278#ifndef __cplusplus 5279typedef int foo_t; 5280static $ac_kw foo_t static_foo () {return 0; } 5281$ac_kw foo_t foo () {return 0; } 5282#endif 5283 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 ac_cv_c_inline=$ac_kw 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289 test "$ac_cv_c_inline" != no && break 5290done 5291 5292fi 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5294$as_echo "$ac_cv_c_inline" >&6; } 5295 5296case $ac_cv_c_inline in 5297 inline | yes) ;; 5298 *) 5299 case $ac_cv_c_inline in 5300 no) ac_val=;; 5301 *) ac_val=$ac_cv_c_inline;; 5302 esac 5303 cat >>confdefs.h <<_ACEOF 5304#ifndef __cplusplus 5305#define inline $ac_val 5306#endif 5307_ACEOF 5308 ;; 5309esac 5310 5311 5312# We use prototypes and the keyword "const" in db.h which doesn't include 5313# db_config.h, so we have to figure out what to do there. 5314# 5315# There is an autoconf AC_C_PROTOTYPES macro, but as all it does is define 5316# db_config.h variables, it doesn't help us. 5317# 5318# We don't have much choice, we look at internal autoconf variables. 5319if test "$ac_cv_c_const" != "yes"; then 5320 DB_CONST="#define const" 5321fi 5322 5323# Clear __P, some other systems use it too. 5324DB_PROTO1="#undef __P" 5325if test "$ac_cv_prog_cc_c89" = "no"; then 5326 DB_PROTO2="#define __P(protos) ()" 5327else 5328 DB_PROTO2="#define __P(protos) protos" 5329fi 5330 5331# Because of shared library building, the ${CC} used for config tests 5332# may be different than the ${CC} we want to put in the Makefile. 5333# The latter is known as ${MAKEFILE_CC} in this script. 5334MAKEFILE_CC="${CC}" 5335MAKEFILE_CCLINK="${CC}" 5336MAKEFILE_CXX="nocxx" 5337MAKEFILE_CXXLINK="nocxx" 5338 5339# See if we need the C++ compiler at all. If so, we'd like to find one that 5340# interoperates with the C compiler we chose. Since we prefered cc over gcc, 5341# we'll also prefer the vendor's compiler over g++/gcc. If we're wrong, the 5342# user can set CC and CXX in their environment before running configure. 5343# 5344# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its 5345# first choices. 5346if test "$db_cv_cxx" = "yes"; then 5347 if test "$GCC" != "yes"; then 5348 case "$host_os" in 5349 aix*) if test -n "$ac_tool_prefix"; then 5350 # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args. 5351set dummy ${ac_tool_prefix}xlC_r; ac_word=$2 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5353$as_echo_n "checking for $ac_word... " >&6; } 5354if test "${ac_cv_prog_CCC+set}" = set; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 if test -n "$CCC"; then 5358 ac_cv_prog_CCC="$CCC" # Let the user override the test. 5359else 5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH 5362do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5367 ac_cv_prog_CCC="${ac_tool_prefix}xlC_r" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371done 5372 done 5373IFS=$as_save_IFS 5374 5375fi 5376fi 5377CCC=$ac_cv_prog_CCC 5378if test -n "$CCC"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5 5380$as_echo "$CCC" >&6; } 5381else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383$as_echo "no" >&6; } 5384fi 5385 5386 5387fi 5388if test -z "$ac_cv_prog_CCC"; then 5389 ac_ct_CCC=$CCC 5390 # Extract the first word of "xlC_r", so it can be a program name with args. 5391set dummy xlC_r; ac_word=$2 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393$as_echo_n "checking for $ac_word... " >&6; } 5394if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 if test -n "$ac_ct_CCC"; then 5398 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test. 5399else 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5407 ac_cv_prog_ac_ct_CCC="xlC_r" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411done 5412 done 5413IFS=$as_save_IFS 5414 5415fi 5416fi 5417ac_ct_CCC=$ac_cv_prog_ac_ct_CCC 5418if test -n "$ac_ct_CCC"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5 5420$as_echo "$ac_ct_CCC" >&6; } 5421else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423$as_echo "no" >&6; } 5424fi 5425 5426 if test "x$ac_ct_CCC" = x; then 5427 CCC="" 5428 else 5429 case $cross_compiling:$ac_tool_warned in 5430yes:) 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5433ac_tool_warned=yes ;; 5434esac 5435 CCC=$ac_ct_CCC 5436 fi 5437else 5438 CCC="$ac_cv_prog_CCC" 5439fi 5440 5441 LIBXSO_LIBS="-lC_r $LIBXSO_LIBS" 5442 LIBSO_LIBS="-lC_r $LIBSO_LIBS";; 5443 hpux*) if test -n "$ac_tool_prefix"; then 5444 # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args. 5445set dummy ${ac_tool_prefix}aCC; ac_word=$2 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5447$as_echo_n "checking for $ac_word... " >&6; } 5448if test "${ac_cv_prog_CCC+set}" = set; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 if test -n "$CCC"; then 5452 ac_cv_prog_CCC="$CCC" # Let the user override the test. 5453else 5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455for as_dir in $PATH 5456do 5457 IFS=$as_save_IFS 5458 test -z "$as_dir" && as_dir=. 5459 for ac_exec_ext in '' $ac_executable_extensions; do 5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5461 ac_cv_prog_CCC="${ac_tool_prefix}aCC" 5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5463 break 2 5464 fi 5465done 5466 done 5467IFS=$as_save_IFS 5468 5469fi 5470fi 5471CCC=$ac_cv_prog_CCC 5472if test -n "$CCC"; then 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5 5474$as_echo "$CCC" >&6; } 5475else 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5477$as_echo "no" >&6; } 5478fi 5479 5480 5481fi 5482if test -z "$ac_cv_prog_CCC"; then 5483 ac_ct_CCC=$CCC 5484 # Extract the first word of "aCC", so it can be a program name with args. 5485set dummy aCC; ac_word=$2 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5487$as_echo_n "checking for $ac_word... " >&6; } 5488if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 if test -n "$ac_ct_CCC"; then 5492 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test. 5493else 5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 for ac_exec_ext in '' $ac_executable_extensions; do 5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5501 ac_cv_prog_ac_ct_CCC="aCC" 5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5503 break 2 5504 fi 5505done 5506 done 5507IFS=$as_save_IFS 5508 5509fi 5510fi 5511ac_ct_CCC=$ac_cv_prog_ac_ct_CCC 5512if test -n "$ac_ct_CCC"; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5 5514$as_echo "$ac_ct_CCC" >&6; } 5515else 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5517$as_echo "no" >&6; } 5518fi 5519 5520 if test "x$ac_ct_CCC" = x; then 5521 CCC="" 5522 else 5523 case $cross_compiling:$ac_tool_warned in 5524yes:) 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5527ac_tool_warned=yes ;; 5528esac 5529 CCC=$ac_ct_CCC 5530 fi 5531else 5532 CCC="$ac_cv_prog_CCC" 5533fi 5534;; 5535 irix*) if test -n "$ac_tool_prefix"; then 5536 # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args. 5537set dummy ${ac_tool_prefix}CC; ac_word=$2 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5539$as_echo_n "checking for $ac_word... " >&6; } 5540if test "${ac_cv_prog_CCC+set}" = set; then : 5541 $as_echo_n "(cached) " >&6 5542else 5543 if test -n "$CCC"; then 5544 ac_cv_prog_CCC="$CCC" # Let the user override the test. 5545else 5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547for as_dir in $PATH 5548do 5549 IFS=$as_save_IFS 5550 test -z "$as_dir" && as_dir=. 5551 for ac_exec_ext in '' $ac_executable_extensions; do 5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5553 ac_cv_prog_CCC="${ac_tool_prefix}CC" 5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5555 break 2 5556 fi 5557done 5558 done 5559IFS=$as_save_IFS 5560 5561fi 5562fi 5563CCC=$ac_cv_prog_CCC 5564if test -n "$CCC"; then 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5 5566$as_echo "$CCC" >&6; } 5567else 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5569$as_echo "no" >&6; } 5570fi 5571 5572 5573fi 5574if test -z "$ac_cv_prog_CCC"; then 5575 ac_ct_CCC=$CCC 5576 # Extract the first word of "CC", so it can be a program name with args. 5577set dummy CC; ac_word=$2 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579$as_echo_n "checking for $ac_word... " >&6; } 5580if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 if test -n "$ac_ct_CCC"; then 5584 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test. 5585else 5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587for as_dir in $PATH 5588do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5593 ac_cv_prog_ac_ct_CCC="CC" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597done 5598 done 5599IFS=$as_save_IFS 5600 5601fi 5602fi 5603ac_ct_CCC=$ac_cv_prog_ac_ct_CCC 5604if test -n "$ac_ct_CCC"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5 5606$as_echo "$ac_ct_CCC" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609$as_echo "no" >&6; } 5610fi 5611 5612 if test "x$ac_ct_CCC" = x; then 5613 CCC="" 5614 else 5615 case $cross_compiling:$ac_tool_warned in 5616yes:) 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5619ac_tool_warned=yes ;; 5620esac 5621 CCC=$ac_ct_CCC 5622 fi 5623else 5624 CCC="$ac_cv_prog_CCC" 5625fi 5626;; 5627 osf*) if test -n "$ac_tool_prefix"; then 5628 # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args. 5629set dummy ${ac_tool_prefix}cxx; ac_word=$2 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631$as_echo_n "checking for $ac_word... " >&6; } 5632if test "${ac_cv_prog_CCC+set}" = set; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 if test -n "$CCC"; then 5636 ac_cv_prog_CCC="$CCC" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_exec_ext in '' $ac_executable_extensions; do 5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5645 ac_cv_prog_CCC="${ac_tool_prefix}cxx" 5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5647 break 2 5648 fi 5649done 5650 done 5651IFS=$as_save_IFS 5652 5653fi 5654fi 5655CCC=$ac_cv_prog_CCC 5656if test -n "$CCC"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5 5658$as_echo "$CCC" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661$as_echo "no" >&6; } 5662fi 5663 5664 5665fi 5666if test -z "$ac_cv_prog_CCC"; then 5667 ac_ct_CCC=$CCC 5668 # Extract the first word of "cxx", so it can be a program name with args. 5669set dummy cxx; ac_word=$2 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5671$as_echo_n "checking for $ac_word... " >&6; } 5672if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then : 5673 $as_echo_n "(cached) " >&6 5674else 5675 if test -n "$ac_ct_CCC"; then 5676 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test. 5677else 5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5679for as_dir in $PATH 5680do 5681 IFS=$as_save_IFS 5682 test -z "$as_dir" && as_dir=. 5683 for ac_exec_ext in '' $ac_executable_extensions; do 5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5685 ac_cv_prog_ac_ct_CCC="cxx" 5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5687 break 2 5688 fi 5689done 5690 done 5691IFS=$as_save_IFS 5692 5693fi 5694fi 5695ac_ct_CCC=$ac_cv_prog_ac_ct_CCC 5696if test -n "$ac_ct_CCC"; then 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5 5698$as_echo "$ac_ct_CCC" >&6; } 5699else 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5701$as_echo "no" >&6; } 5702fi 5703 5704 if test "x$ac_ct_CCC" = x; then 5705 CCC="" 5706 else 5707 case $cross_compiling:$ac_tool_warned in 5708yes:) 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5711ac_tool_warned=yes ;; 5712esac 5713 CCC=$ac_ct_CCC 5714 fi 5715else 5716 CCC="$ac_cv_prog_CCC" 5717fi 5718 5719 CXXFLAGS="$CXXFLAGS -D__USE_STD_IOSTREAM" 5720 test -d /usr/include.dtk && 5721 CXXFLAGS="$CXXFLAGS -I/usr/include.dtk";; 5722 solaris*) if test -n "$ac_tool_prefix"; then 5723 # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args. 5724set dummy ${ac_tool_prefix}CC; ac_word=$2 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5726$as_echo_n "checking for $ac_word... " >&6; } 5727if test "${ac_cv_prog_CCC+set}" = set; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 if test -n "$CCC"; then 5731 ac_cv_prog_CCC="$CCC" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 test -z "$as_dir" && as_dir=. 5738 for ac_exec_ext in '' $ac_executable_extensions; do 5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5740 ac_cv_prog_CCC="${ac_tool_prefix}CC" 5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5742 break 2 5743 fi 5744done 5745 done 5746IFS=$as_save_IFS 5747 5748fi 5749fi 5750CCC=$ac_cv_prog_CCC 5751if test -n "$CCC"; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5 5753$as_echo "$CCC" >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5756$as_echo "no" >&6; } 5757fi 5758 5759 5760fi 5761if test -z "$ac_cv_prog_CCC"; then 5762 ac_ct_CCC=$CCC 5763 # Extract the first word of "CC", so it can be a program name with args. 5764set dummy CC; ac_word=$2 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5766$as_echo_n "checking for $ac_word... " >&6; } 5767if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 if test -n "$ac_ct_CCC"; then 5771 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test. 5772else 5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774for as_dir in $PATH 5775do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5780 ac_cv_prog_ac_ct_CCC="CC" 5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5782 break 2 5783 fi 5784done 5785 done 5786IFS=$as_save_IFS 5787 5788fi 5789fi 5790ac_ct_CCC=$ac_cv_prog_ac_ct_CCC 5791if test -n "$ac_ct_CCC"; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5 5793$as_echo "$ac_ct_CCC" >&6; } 5794else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796$as_echo "no" >&6; } 5797fi 5798 5799 if test "x$ac_ct_CCC" = x; then 5800 CCC="" 5801 else 5802 case $cross_compiling:$ac_tool_warned in 5803yes:) 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5806ac_tool_warned=yes ;; 5807esac 5808 CCC=$ac_ct_CCC 5809 fi 5810else 5811 CCC="$ac_cv_prog_CCC" 5812fi 5813;; 5814 esac 5815 fi 5816 ac_ext=cpp 5817ac_cpp='$CXXCPP $CPPFLAGS' 5818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5821if test -z "$CXX"; then 5822 if test -n "$CCC"; then 5823 CXX=$CCC 5824 else 5825 if test -n "$ac_tool_prefix"; then 5826 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5827 do 5828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5829set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5831$as_echo_n "checking for $ac_word... " >&6; } 5832if test "${ac_cv_prog_CXX+set}" = set; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 if test -n "$CXX"; then 5836 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5837else 5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5839for as_dir in $PATH 5840do 5841 IFS=$as_save_IFS 5842 test -z "$as_dir" && as_dir=. 5843 for ac_exec_ext in '' $ac_executable_extensions; do 5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5845 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5847 break 2 5848 fi 5849done 5850 done 5851IFS=$as_save_IFS 5852 5853fi 5854fi 5855CXX=$ac_cv_prog_CXX 5856if test -n "$CXX"; then 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5858$as_echo "$CXX" >&6; } 5859else 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862fi 5863 5864 5865 test -n "$CXX" && break 5866 done 5867fi 5868if test -z "$CXX"; then 5869 ac_ct_CXX=$CXX 5870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5871do 5872 # Extract the first word of "$ac_prog", so it can be a program name with args. 5873set dummy $ac_prog; ac_word=$2 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875$as_echo_n "checking for $ac_word... " >&6; } 5876if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 if test -n "$ac_ct_CXX"; then 5880 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5881else 5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883for as_dir in $PATH 5884do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5889 ac_cv_prog_ac_ct_CXX="$ac_prog" 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893done 5894 done 5895IFS=$as_save_IFS 5896 5897fi 5898fi 5899ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5900if test -n "$ac_ct_CXX"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5902$as_echo "$ac_ct_CXX" >&6; } 5903else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905$as_echo "no" >&6; } 5906fi 5907 5908 5909 test -n "$ac_ct_CXX" && break 5910done 5911 5912 if test "x$ac_ct_CXX" = x; then 5913 CXX="g++" 5914 else 5915 case $cross_compiling:$ac_tool_warned in 5916yes:) 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5919ac_tool_warned=yes ;; 5920esac 5921 CXX=$ac_ct_CXX 5922 fi 5923fi 5924 5925 fi 5926fi 5927# Provide some information about the compiler. 5928$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5929set X $ac_compile 5930ac_compiler=$2 5931for ac_option in --version -v -V -qversion; do 5932 { { ac_try="$ac_compiler $ac_option >&5" 5933case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5938$as_echo "$ac_try_echo"; } >&5 5939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5940 ac_status=$? 5941 if test -s conftest.err; then 5942 sed '10a\ 5943... rest of stderr output deleted ... 5944 10q' conftest.err >conftest.er1 5945 cat conftest.er1 >&5 5946 fi 5947 rm -f conftest.er1 conftest.err 5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5949 test $ac_status = 0; } 5950done 5951 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5953$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5954if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5958/* end confdefs.h. */ 5959 5960int 5961main () 5962{ 5963#ifndef __GNUC__ 5964 choke me 5965#endif 5966 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971if ac_fn_cxx_try_compile "$LINENO"; then : 5972 ac_compiler_gnu=yes 5973else 5974 ac_compiler_gnu=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5977ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5978 5979fi 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5981$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5982if test $ac_compiler_gnu = yes; then 5983 GXX=yes 5984else 5985 GXX= 5986fi 5987ac_test_CXXFLAGS=${CXXFLAGS+set} 5988ac_save_CXXFLAGS=$CXXFLAGS 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5990$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5991if test "${ac_cv_prog_cxx_g+set}" = set; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5995 ac_cxx_werror_flag=yes 5996 ac_cv_prog_cxx_g=no 5997 CXXFLAGS="-g" 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999/* end confdefs.h. */ 6000 6001int 6002main () 6003{ 6004 6005 ; 6006 return 0; 6007} 6008_ACEOF 6009if ac_fn_cxx_try_compile "$LINENO"; then : 6010 ac_cv_prog_cxx_g=yes 6011else 6012 CXXFLAGS="" 6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014/* end confdefs.h. */ 6015 6016int 6017main () 6018{ 6019 6020 ; 6021 return 0; 6022} 6023_ACEOF 6024if ac_fn_cxx_try_compile "$LINENO"; then : 6025 6026else 6027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6028 CXXFLAGS="-g" 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040if ac_fn_cxx_try_compile "$LINENO"; then : 6041 ac_cv_prog_cxx_g=yes 6042fi 6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6044fi 6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6046fi 6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6048 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6049fi 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6051$as_echo "$ac_cv_prog_cxx_g" >&6; } 6052if test "$ac_test_CXXFLAGS" = set; then 6053 CXXFLAGS=$ac_save_CXXFLAGS 6054elif test $ac_cv_prog_cxx_g = yes; then 6055 if test "$GXX" = yes; then 6056 CXXFLAGS="-g -O2" 6057 else 6058 CXXFLAGS="-g" 6059 fi 6060else 6061 if test "$GXX" = yes; then 6062 CXXFLAGS="-O2" 6063 else 6064 CXXFLAGS= 6065 fi 6066fi 6067ac_ext=c 6068ac_cpp='$CPP $CPPFLAGS' 6069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6071ac_compiler_gnu=$ac_cv_c_compiler_gnu 6072 6073 ###### WORKAROUND: SEE SR #7938 6074 ac_ext=cpp 6075ac_cpp='$CXXCPP $CPPFLAGS' 6076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6080$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6081if test -z "$CXXCPP"; then 6082 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 # Double quotes because CXXCPP needs to be expanded 6086 for CXXCPP in "$CXX -E" "/lib/cpp" 6087 do 6088 ac_preproc_ok=false 6089for ac_cxx_preproc_warn_flag in '' yes 6090do 6091 # Use a header file that comes with gcc, so configuring glibc 6092 # with a fresh cross-compiler works. 6093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6094 # <limits.h> exists even on freestanding compilers. 6095 # On the NeXT, cc -E runs the code through the compiler's parser, 6096 # not just through cpp. "Syntax error" is here to catch this case. 6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098/* end confdefs.h. */ 6099#ifdef __STDC__ 6100# include <limits.h> 6101#else 6102# include <assert.h> 6103#endif 6104 Syntax error 6105_ACEOF 6106if ac_fn_cxx_try_cpp "$LINENO"; then : 6107 6108else 6109 # Broken: fails on valid input. 6110continue 6111fi 6112rm -f conftest.err conftest.$ac_ext 6113 6114 # OK, works on sane cases. Now check whether nonexistent headers 6115 # can be detected and how. 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118#include <ac_nonexistent.h> 6119_ACEOF 6120if ac_fn_cxx_try_cpp "$LINENO"; then : 6121 # Broken: success on invalid input. 6122continue 6123else 6124 # Passes both tests. 6125ac_preproc_ok=: 6126break 6127fi 6128rm -f conftest.err conftest.$ac_ext 6129 6130done 6131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6132rm -f conftest.err conftest.$ac_ext 6133if $ac_preproc_ok; then : 6134 break 6135fi 6136 6137 done 6138 ac_cv_prog_CXXCPP=$CXXCPP 6139 6140fi 6141 CXXCPP=$ac_cv_prog_CXXCPP 6142else 6143 ac_cv_prog_CXXCPP=$CXXCPP 6144fi 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6146$as_echo "$CXXCPP" >&6; } 6147ac_preproc_ok=false 6148for ac_cxx_preproc_warn_flag in '' yes 6149do 6150 # Use a header file that comes with gcc, so configuring glibc 6151 # with a fresh cross-compiler works. 6152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6153 # <limits.h> exists even on freestanding compilers. 6154 # On the NeXT, cc -E runs the code through the compiler's parser, 6155 # not just through cpp. "Syntax error" is here to catch this case. 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158#ifdef __STDC__ 6159# include <limits.h> 6160#else 6161# include <assert.h> 6162#endif 6163 Syntax error 6164_ACEOF 6165if ac_fn_cxx_try_cpp "$LINENO"; then : 6166 6167else 6168 # Broken: fails on valid input. 6169continue 6170fi 6171rm -f conftest.err conftest.$ac_ext 6172 6173 # OK, works on sane cases. Now check whether nonexistent headers 6174 # can be detected and how. 6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6176/* end confdefs.h. */ 6177#include <ac_nonexistent.h> 6178_ACEOF 6179if ac_fn_cxx_try_cpp "$LINENO"; then : 6180 # Broken: success on invalid input. 6181continue 6182else 6183 # Passes both tests. 6184ac_preproc_ok=: 6185break 6186fi 6187rm -f conftest.err conftest.$ac_ext 6188 6189done 6190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6191rm -f conftest.err conftest.$ac_ext 6192if $ac_preproc_ok; then : 6193 6194else 6195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6197as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 6198See \`config.log' for more details." "$LINENO" 5; } 6199fi 6200 6201ac_ext=c 6202ac_cpp='$CPP $CPPFLAGS' 6203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6205ac_compiler_gnu=$ac_cv_c_compiler_gnu 6206 6207 ############################### 6208 6209 6210 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ supports the ISO C++ standard includes" >&5 6212$as_echo_n "checking whether C++ supports the ISO C++ standard includes... " >&6; } 6213 6214ac_ext=cpp 6215ac_cpp='$CXXCPP $CPPFLAGS' 6216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6219 6220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222#include <iostream> 6223int 6224main () 6225{ 6226std::ostream *o; return 0; 6227 ; 6228 return 0; 6229} 6230_ACEOF 6231if ac_fn_cxx_try_compile "$LINENO"; then : 6232 db_cv_cxx_have_stdheaders=yes 6233else 6234 db_cv_cxx_have_stdheaders=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237ac_ext=c 6238ac_cpp='$CPP $CPPFLAGS' 6239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6241ac_compiler_gnu=$ac_cv_c_compiler_gnu 6242 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_cxx_have_stdheaders" >&5 6244$as_echo "$db_cv_cxx_have_stdheaders" >&6; } 6245if test "$db_cv_cxx_have_stdheaders" = yes; then 6246 cxx_have_stdheaders="#define HAVE_CXX_STDHEADERS 1" 6247fi 6248 MAKEFILE_CXX="${CXX}" 6249 MAKEFILE_CXXLINK="${CXX}" 6250fi 6251 6252# Do some gcc specific configuration. 6253 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc version 2.96" >&5 6255$as_echo_n "checking whether we are using gcc version 2.96... " >&6; } 6256if test "${db_cv_gcc_2_96+set}" = set; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 6260db_cv_gcc_2_96=no 6261if test "$GCC" = "yes"; then 6262 GCC_VERSION=`${MAKEFILE_CC} --version` 6263 case ${GCC_VERSION} in 6264 2.96*) 6265 db_cv_gcc_2_96=yes;; 6266 esac 6267fi 6268fi 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_gcc_2_96" >&5 6270$as_echo "$db_cv_gcc_2_96" >&6; } 6271if test "$db_cv_gcc_2_96" = "yes"; then 6272 CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'` 6273 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'` 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5 6275$as_echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;} 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5 6277$as_echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;} 6278fi 6279 6280# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare 6281# and OpenUNIX releases. We can't make the test until we know which compiler 6282# we're using. 6283case "$host_os" in 6284sysv5UnixWare*|sysv5OpenUNIX8*) 6285 if test "$GCC" == "yes"; then 6286 CPPFLAGS="$CPPFLAGS -pthread" 6287 LDFLAGS="$LDFLAGS -pthread" 6288 else 6289 CPPFLAGS="$CPPFLAGS -Kthread" 6290 LDFLAGS="$LDFLAGS -Kthread" 6291 fi;; 6292esac 6293 6294# Export our compiler preferences for the libtool configuration. 6295export CC CCC 6296CCC=CXX 6297 6298# Libtool configuration. 6299case `pwd` in 6300 *\ * | *\ *) 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6302$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6303esac 6304 6305 6306 6307macro_version='2.2.6' 6308macro_revision='1.3012' 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322ltmain="$ac_aux_dir/ltmain.sh" 6323 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6325$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6326if test "${ac_cv_path_SED+set}" = set; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6330 for ac_i in 1 2 3 4 5 6 7; do 6331 ac_script="$ac_script$as_nl$ac_script" 6332 done 6333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6334 { ac_script=; unset ac_script;} 6335 if test -z "$SED"; then 6336 ac_path_SED_found=false 6337 # Loop through the user's path and test for each of PROGNAME-LIST 6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6339for as_dir in $PATH 6340do 6341 IFS=$as_save_IFS 6342 test -z "$as_dir" && as_dir=. 6343 for ac_prog in sed gsed; do 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6346 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6347# Check for GNU ac_path_SED and select it if it is found. 6348 # Check for GNU $ac_path_SED 6349case `"$ac_path_SED" --version 2>&1` in 6350*GNU*) 6351 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6352*) 6353 ac_count=0 6354 $as_echo_n 0123456789 >"conftest.in" 6355 while : 6356 do 6357 cat "conftest.in" "conftest.in" >"conftest.tmp" 6358 mv "conftest.tmp" "conftest.in" 6359 cp "conftest.in" "conftest.nl" 6360 $as_echo '' >> "conftest.nl" 6361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6363 as_fn_arith $ac_count + 1 && ac_count=$as_val 6364 if test $ac_count -gt ${ac_path_SED_max-0}; then 6365 # Best one so far, save it but keep looking for a better one 6366 ac_cv_path_SED="$ac_path_SED" 6367 ac_path_SED_max=$ac_count 6368 fi 6369 # 10*(2^10) chars as input seems more than enough 6370 test $ac_count -gt 10 && break 6371 done 6372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6373esac 6374 6375 $ac_path_SED_found && break 3 6376 done 6377 done 6378 done 6379IFS=$as_save_IFS 6380 if test -z "$ac_cv_path_SED"; then 6381 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 6382 fi 6383else 6384 ac_cv_path_SED=$SED 6385fi 6386 6387fi 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6389$as_echo "$ac_cv_path_SED" >&6; } 6390 SED="$ac_cv_path_SED" 6391 rm -f conftest.sed 6392 6393test -z "$SED" && SED=sed 6394Xsed="$SED -e 1s/^X//" 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6407$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6408if test "${ac_cv_path_GREP+set}" = set; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -z "$GREP"; then 6412 ac_path_GREP_found=false 6413 # Loop through the user's path and test for each of PROGNAME-LIST 6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_prog in grep ggrep; do 6420 for ac_exec_ext in '' $ac_executable_extensions; do 6421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6422 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6423# Check for GNU ac_path_GREP and select it if it is found. 6424 # Check for GNU $ac_path_GREP 6425case `"$ac_path_GREP" --version 2>&1` in 6426*GNU*) 6427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6428*) 6429 ac_count=0 6430 $as_echo_n 0123456789 >"conftest.in" 6431 while : 6432 do 6433 cat "conftest.in" "conftest.in" >"conftest.tmp" 6434 mv "conftest.tmp" "conftest.in" 6435 cp "conftest.in" "conftest.nl" 6436 $as_echo 'GREP' >> "conftest.nl" 6437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6439 as_fn_arith $ac_count + 1 && ac_count=$as_val 6440 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6441 # Best one so far, save it but keep looking for a better one 6442 ac_cv_path_GREP="$ac_path_GREP" 6443 ac_path_GREP_max=$ac_count 6444 fi 6445 # 10*(2^10) chars as input seems more than enough 6446 test $ac_count -gt 10 && break 6447 done 6448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6449esac 6450 6451 $ac_path_GREP_found && break 3 6452 done 6453 done 6454 done 6455IFS=$as_save_IFS 6456 if test -z "$ac_cv_path_GREP"; then 6457 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6458 fi 6459else 6460 ac_cv_path_GREP=$GREP 6461fi 6462 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6465$as_echo "$ac_cv_path_GREP" >&6; } 6466 GREP="$ac_cv_path_GREP" 6467 6468 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6470$as_echo_n "checking for egrep... " >&6; } 6471if test "${ac_cv_path_EGREP+set}" = set; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6475 then ac_cv_path_EGREP="$GREP -E" 6476 else 6477 if test -z "$EGREP"; then 6478 ac_path_EGREP_found=false 6479 # Loop through the user's path and test for each of PROGNAME-LIST 6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_prog in egrep; do 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6488 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6489# Check for GNU ac_path_EGREP and select it if it is found. 6490 # Check for GNU $ac_path_EGREP 6491case `"$ac_path_EGREP" --version 2>&1` in 6492*GNU*) 6493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6494*) 6495 ac_count=0 6496 $as_echo_n 0123456789 >"conftest.in" 6497 while : 6498 do 6499 cat "conftest.in" "conftest.in" >"conftest.tmp" 6500 mv "conftest.tmp" "conftest.in" 6501 cp "conftest.in" "conftest.nl" 6502 $as_echo 'EGREP' >> "conftest.nl" 6503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6505 as_fn_arith $ac_count + 1 && ac_count=$as_val 6506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6507 # Best one so far, save it but keep looking for a better one 6508 ac_cv_path_EGREP="$ac_path_EGREP" 6509 ac_path_EGREP_max=$ac_count 6510 fi 6511 # 10*(2^10) chars as input seems more than enough 6512 test $ac_count -gt 10 && break 6513 done 6514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6515esac 6516 6517 $ac_path_EGREP_found && break 3 6518 done 6519 done 6520 done 6521IFS=$as_save_IFS 6522 if test -z "$ac_cv_path_EGREP"; then 6523 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6524 fi 6525else 6526 ac_cv_path_EGREP=$EGREP 6527fi 6528 6529 fi 6530fi 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6532$as_echo "$ac_cv_path_EGREP" >&6; } 6533 EGREP="$ac_cv_path_EGREP" 6534 6535 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6537$as_echo_n "checking for fgrep... " >&6; } 6538if test "${ac_cv_path_FGREP+set}" = set; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6542 then ac_cv_path_FGREP="$GREP -F" 6543 else 6544 if test -z "$FGREP"; then 6545 ac_path_FGREP_found=false 6546 # Loop through the user's path and test for each of PROGNAME-LIST 6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6549do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_prog in fgrep; do 6553 for ac_exec_ext in '' $ac_executable_extensions; do 6554 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6555 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6556# Check for GNU ac_path_FGREP and select it if it is found. 6557 # Check for GNU $ac_path_FGREP 6558case `"$ac_path_FGREP" --version 2>&1` in 6559*GNU*) 6560 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6561*) 6562 ac_count=0 6563 $as_echo_n 0123456789 >"conftest.in" 6564 while : 6565 do 6566 cat "conftest.in" "conftest.in" >"conftest.tmp" 6567 mv "conftest.tmp" "conftest.in" 6568 cp "conftest.in" "conftest.nl" 6569 $as_echo 'FGREP' >> "conftest.nl" 6570 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6572 as_fn_arith $ac_count + 1 && ac_count=$as_val 6573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6574 # Best one so far, save it but keep looking for a better one 6575 ac_cv_path_FGREP="$ac_path_FGREP" 6576 ac_path_FGREP_max=$ac_count 6577 fi 6578 # 10*(2^10) chars as input seems more than enough 6579 test $ac_count -gt 10 && break 6580 done 6581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6582esac 6583 6584 $ac_path_FGREP_found && break 3 6585 done 6586 done 6587 done 6588IFS=$as_save_IFS 6589 if test -z "$ac_cv_path_FGREP"; then 6590 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6591 fi 6592else 6593 ac_cv_path_FGREP=$FGREP 6594fi 6595 6596 fi 6597fi 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6599$as_echo "$ac_cv_path_FGREP" >&6; } 6600 FGREP="$ac_cv_path_FGREP" 6601 6602 6603test -z "$GREP" && GREP=grep 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623# Check whether --with-gnu-ld was given. 6624if test "${with_gnu_ld+set}" = set; then : 6625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6626else 6627 with_gnu_ld=no 6628fi 6629 6630ac_prog=ld 6631if test "$GCC" = yes; then 6632 # Check if gcc -print-prog-name=ld gives a path. 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6634$as_echo_n "checking for ld used by $CC... " >&6; } 6635 case $host in 6636 *-*-mingw*) 6637 # gcc leaves a trailing carriage return which upsets mingw 6638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6639 *) 6640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6641 esac 6642 case $ac_prog in 6643 # Accept absolute paths. 6644 [\\/]* | ?:[\\/]*) 6645 re_direlt='/[^/][^/]*/\.\./' 6646 # Canonicalize the pathname of ld 6647 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6648 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6649 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6650 done 6651 test -z "$LD" && LD="$ac_prog" 6652 ;; 6653 "") 6654 # If it fails, then pretend we aren't using GCC. 6655 ac_prog=ld 6656 ;; 6657 *) 6658 # If it is relative, then search for the first ld in PATH. 6659 with_gnu_ld=unknown 6660 ;; 6661 esac 6662elif test "$with_gnu_ld" = yes; then 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6664$as_echo_n "checking for GNU ld... " >&6; } 6665else 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6667$as_echo_n "checking for non-GNU ld... " >&6; } 6668fi 6669if test "${lt_cv_path_LD+set}" = set; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 if test -z "$LD"; then 6673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6674 for ac_dir in $PATH; do 6675 IFS="$lt_save_ifs" 6676 test -z "$ac_dir" && ac_dir=. 6677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6678 lt_cv_path_LD="$ac_dir/$ac_prog" 6679 # Check to see if the program is GNU ld. I'd rather use --version, 6680 # but apparently some variants of GNU ld only accept -v. 6681 # Break only if it was the GNU/non-GNU ld that we prefer. 6682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6683 *GNU* | *'with BFD'*) 6684 test "$with_gnu_ld" != no && break 6685 ;; 6686 *) 6687 test "$with_gnu_ld" != yes && break 6688 ;; 6689 esac 6690 fi 6691 done 6692 IFS="$lt_save_ifs" 6693else 6694 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6695fi 6696fi 6697 6698LD="$lt_cv_path_LD" 6699if test -n "$LD"; then 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6701$as_echo "$LD" >&6; } 6702else 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6704$as_echo "no" >&6; } 6705fi 6706test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6708$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6709if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6713case `$LD -v 2>&1 </dev/null` in 6714*GNU* | *'with BFD'*) 6715 lt_cv_prog_gnu_ld=yes 6716 ;; 6717*) 6718 lt_cv_prog_gnu_ld=no 6719 ;; 6720esac 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6723$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6724with_gnu_ld=$lt_cv_prog_gnu_ld 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6735$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6736if test "${lt_cv_path_NM+set}" = set; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$NM"; then 6740 # Let the user override the test. 6741 lt_cv_path_NM="$NM" 6742else 6743 lt_nm_to_check="${ac_tool_prefix}nm" 6744 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6745 lt_nm_to_check="$lt_nm_to_check nm" 6746 fi 6747 for lt_tmp_nm in $lt_nm_to_check; do 6748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6749 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6750 IFS="$lt_save_ifs" 6751 test -z "$ac_dir" && ac_dir=. 6752 tmp_nm="$ac_dir/$lt_tmp_nm" 6753 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6754 # Check to see if the nm accepts a BSD-compat flag. 6755 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6756 # nm: unknown option "B" ignored 6757 # Tru64's nm complains that /dev/null is an invalid object file 6758 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6759 */dev/null* | *'Invalid file or object type'*) 6760 lt_cv_path_NM="$tmp_nm -B" 6761 break 6762 ;; 6763 *) 6764 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6765 */dev/null*) 6766 lt_cv_path_NM="$tmp_nm -p" 6767 break 6768 ;; 6769 *) 6770 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6771 continue # so that we can try to find one that supports BSD flags 6772 ;; 6773 esac 6774 ;; 6775 esac 6776 fi 6777 done 6778 IFS="$lt_save_ifs" 6779 done 6780 : ${lt_cv_path_NM=no} 6781fi 6782fi 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6784$as_echo "$lt_cv_path_NM" >&6; } 6785if test "$lt_cv_path_NM" != "no"; then 6786 NM="$lt_cv_path_NM" 6787else 6788 # Didn't find any BSD compatible name lister, look for dumpbin. 6789 if test -n "$ac_tool_prefix"; then 6790 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6791 do 6792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$DUMPBIN"; then 6800 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6809 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819DUMPBIN=$ac_cv_prog_DUMPBIN 6820if test -n "$DUMPBIN"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6822$as_echo "$DUMPBIN" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829 test -n "$DUMPBIN" && break 6830 done 6831fi 6832if test -z "$DUMPBIN"; then 6833 ac_ct_DUMPBIN=$DUMPBIN 6834 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6835do 6836 # Extract the first word of "$ac_prog", so it can be a program name with args. 6837set dummy $ac_prog; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$ac_ct_DUMPBIN"; then 6844 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6853 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6864if test -n "$ac_ct_DUMPBIN"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6866$as_echo "$ac_ct_DUMPBIN" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873 test -n "$ac_ct_DUMPBIN" && break 6874done 6875 6876 if test "x$ac_ct_DUMPBIN" = x; then 6877 DUMPBIN=":" 6878 else 6879 case $cross_compiling:$ac_tool_warned in 6880yes:) 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6883ac_tool_warned=yes ;; 6884esac 6885 DUMPBIN=$ac_ct_DUMPBIN 6886 fi 6887fi 6888 6889 6890 if test "$DUMPBIN" != ":"; then 6891 NM="$DUMPBIN" 6892 fi 6893fi 6894test -z "$NM" && NM=nm 6895 6896 6897 6898 6899 6900 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6902$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6903if test "${lt_cv_nm_interface+set}" = set; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 lt_cv_nm_interface="BSD nm" 6907 echo "int some_variable = 0;" > conftest.$ac_ext 6908 (eval echo "\"\$as_me:6908: $ac_compile\"" >&5) 6909 (eval "$ac_compile" 2>conftest.err) 6910 cat conftest.err >&5 6911 (eval echo "\"\$as_me:6911: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6912 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6913 cat conftest.err >&5 6914 (eval echo "\"\$as_me:6914: output\"" >&5) 6915 cat conftest.out >&5 6916 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6917 lt_cv_nm_interface="MS dumpbin" 6918 fi 6919 rm -f conftest* 6920fi 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6922$as_echo "$lt_cv_nm_interface" >&6; } 6923 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6925$as_echo_n "checking whether ln -s works... " >&6; } 6926LN_S=$as_ln_s 6927if test "$LN_S" = "ln -s"; then 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6929$as_echo "yes" >&6; } 6930else 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6932$as_echo "no, using $LN_S" >&6; } 6933fi 6934 6935# find the maximum length of command line arguments 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6937$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6938if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 i=0 6942 teststring="ABCD" 6943 6944 case $build_os in 6945 msdosdjgpp*) 6946 # On DJGPP, this test can blow up pretty badly due to problems in libc 6947 # (any single argument exceeding 2000 bytes causes a buffer overrun 6948 # during glob expansion). Even if it were fixed, the result of this 6949 # check would be larger than it should be. 6950 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6951 ;; 6952 6953 gnu*) 6954 # Under GNU Hurd, this test is not required because there is 6955 # no limit to the length of command line arguments. 6956 # Libtool will interpret -1 as no limit whatsoever 6957 lt_cv_sys_max_cmd_len=-1; 6958 ;; 6959 6960 cygwin* | mingw* | cegcc*) 6961 # On Win9x/ME, this test blows up -- it succeeds, but takes 6962 # about 5 minutes as the teststring grows exponentially. 6963 # Worse, since 9x/ME are not pre-emptively multitasking, 6964 # you end up with a "frozen" computer, even though with patience 6965 # the test eventually succeeds (with a max line length of 256k). 6966 # Instead, let's just punt: use the minimum linelength reported by 6967 # all of the supported platforms: 8192 (on NT/2K/XP). 6968 lt_cv_sys_max_cmd_len=8192; 6969 ;; 6970 6971 amigaos*) 6972 # On AmigaOS with pdksh, this test takes hours, literally. 6973 # So we just punt and use a minimum line length of 8192. 6974 lt_cv_sys_max_cmd_len=8192; 6975 ;; 6976 6977 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6978 # This has been around since 386BSD, at least. Likely further. 6979 if test -x /sbin/sysctl; then 6980 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6981 elif test -x /usr/sbin/sysctl; then 6982 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6983 else 6984 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6985 fi 6986 # And add a safety zone 6987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6989 ;; 6990 6991 interix*) 6992 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6993 lt_cv_sys_max_cmd_len=196608 6994 ;; 6995 6996 osf*) 6997 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6998 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6999 # nice to cause kernel panics so lets avoid the loop below. 7000 # First set a reasonable default. 7001 lt_cv_sys_max_cmd_len=16384 7002 # 7003 if test -x /sbin/sysconfig; then 7004 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7005 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7006 esac 7007 fi 7008 ;; 7009 sco3.2v5*) 7010 lt_cv_sys_max_cmd_len=102400 7011 ;; 7012 sysv5* | sco5v6* | sysv4.2uw2*) 7013 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7014 if test -n "$kargmax"; then 7015 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7016 else 7017 lt_cv_sys_max_cmd_len=32768 7018 fi 7019 ;; 7020 *) 7021 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7022 if test -n "$lt_cv_sys_max_cmd_len"; then 7023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7025 else 7026 # Make teststring a little bigger before we do anything with it. 7027 # a 1K string should be a reasonable start. 7028 for i in 1 2 3 4 5 6 7 8 ; do 7029 teststring=$teststring$teststring 7030 done 7031 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7032 # If test is not a shell built-in, we'll probably end up computing a 7033 # maximum length that is only half of the actual maximum length, but 7034 # we can't tell. 7035 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 7036 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 7037 test $i != 17 # 1/2 MB should be enough 7038 do 7039 i=`expr $i + 1` 7040 teststring=$teststring$teststring 7041 done 7042 # Only check the string length outside the loop. 7043 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7044 teststring= 7045 # Add a significant safety factor because C++ compilers can tack on 7046 # massive amounts of additional arguments before passing them to the 7047 # linker. It appears as though 1/2 is a usable value. 7048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7049 fi 7050 ;; 7051 esac 7052 7053fi 7054 7055if test -n $lt_cv_sys_max_cmd_len ; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7057$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7060$as_echo "none" >&6; } 7061fi 7062max_cmd_len=$lt_cv_sys_max_cmd_len 7063 7064 7065 7066 7067 7068 7069: ${CP="cp -f"} 7070: ${MV="mv -f"} 7071: ${RM="rm -f"} 7072 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7074$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7075# Try some XSI features 7076xsi_shell=no 7077( _lt_dummy="a/b/c" 7078 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7079 = c,a/b,, \ 7080 && eval 'test $(( 1 + 1 )) -eq 2 \ 7081 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7082 && xsi_shell=yes 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7084$as_echo "$xsi_shell" >&6; } 7085 7086 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7088$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7089lt_shell_append=no 7090( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7091 >/dev/null 2>&1 \ 7092 && lt_shell_append=yes 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7094$as_echo "$lt_shell_append" >&6; } 7095 7096 7097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7098 lt_unset=unset 7099else 7100 lt_unset=false 7101fi 7102 7103 7104 7105 7106 7107# test EBCDIC or ASCII 7108case `echo X|tr X '\101'` in 7109 A) # ASCII based system 7110 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7111 lt_SP2NL='tr \040 \012' 7112 lt_NL2SP='tr \015\012 \040\040' 7113 ;; 7114 *) # EBCDIC based system 7115 lt_SP2NL='tr \100 \n' 7116 lt_NL2SP='tr \r\n \100\100' 7117 ;; 7118esac 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7129$as_echo_n "checking for $LD option to reload object files... " >&6; } 7130if test "${lt_cv_ld_reload_flag+set}" = set; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 lt_cv_ld_reload_flag='-r' 7134fi 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7136$as_echo "$lt_cv_ld_reload_flag" >&6; } 7137reload_flag=$lt_cv_ld_reload_flag 7138case $reload_flag in 7139"" | " "*) ;; 7140*) reload_flag=" $reload_flag" ;; 7141esac 7142reload_cmds='$LD$reload_flag -o $output$reload_objs' 7143case $host_os in 7144 darwin*) 7145 if test "$GCC" = yes; then 7146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7147 else 7148 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7149 fi 7150 ;; 7151esac 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161if test -n "$ac_tool_prefix"; then 7162 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7163set dummy ${ac_tool_prefix}objdump; ac_word=$2 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165$as_echo_n "checking for $ac_word... " >&6; } 7166if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 if test -n "$OBJDUMP"; then 7170 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7171else 7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7179 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183done 7184 done 7185IFS=$as_save_IFS 7186 7187fi 7188fi 7189OBJDUMP=$ac_cv_prog_OBJDUMP 7190if test -n "$OBJDUMP"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7192$as_echo "$OBJDUMP" >&6; } 7193else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195$as_echo "no" >&6; } 7196fi 7197 7198 7199fi 7200if test -z "$ac_cv_prog_OBJDUMP"; then 7201 ac_ct_OBJDUMP=$OBJDUMP 7202 # Extract the first word of "objdump", so it can be a program name with args. 7203set dummy objdump; ac_word=$2 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205$as_echo_n "checking for $ac_word... " >&6; } 7206if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 if test -n "$ac_ct_OBJDUMP"; then 7210 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7211else 7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213for as_dir in $PATH 7214do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7219 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223done 7224 done 7225IFS=$as_save_IFS 7226 7227fi 7228fi 7229ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7230if test -n "$ac_ct_OBJDUMP"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7232$as_echo "$ac_ct_OBJDUMP" >&6; } 7233else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235$as_echo "no" >&6; } 7236fi 7237 7238 if test "x$ac_ct_OBJDUMP" = x; then 7239 OBJDUMP="false" 7240 else 7241 case $cross_compiling:$ac_tool_warned in 7242yes:) 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7245ac_tool_warned=yes ;; 7246esac 7247 OBJDUMP=$ac_ct_OBJDUMP 7248 fi 7249else 7250 OBJDUMP="$ac_cv_prog_OBJDUMP" 7251fi 7252 7253test -z "$OBJDUMP" && OBJDUMP=objdump 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7264$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7265if test "${lt_cv_deplibs_check_method+set}" = set; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 lt_cv_file_magic_cmd='$MAGIC_CMD' 7269lt_cv_file_magic_test_file= 7270lt_cv_deplibs_check_method='unknown' 7271# Need to set the preceding variable on all platforms that support 7272# interlibrary dependencies. 7273# 'none' -- dependencies not supported. 7274# `unknown' -- same as none, but documents that we really don't know. 7275# 'pass_all' -- all dependencies passed with no checks. 7276# 'test_compile' -- check by making test program. 7277# 'file_magic [[regex]]' -- check by looking for files in library path 7278# which responds to the $file_magic_cmd with a given extended regex. 7279# If you have `file' or equivalent on your system and you're not sure 7280# whether `pass_all' will *always* work, you probably want this one. 7281 7282case $host_os in 7283aix[4-9]*) 7284 lt_cv_deplibs_check_method=pass_all 7285 ;; 7286 7287beos*) 7288 lt_cv_deplibs_check_method=pass_all 7289 ;; 7290 7291bsdi[45]*) 7292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7293 lt_cv_file_magic_cmd='/usr/bin/file -L' 7294 lt_cv_file_magic_test_file=/shlib/libc.so 7295 ;; 7296 7297cygwin*) 7298 # func_win32_libid is a shell function defined in ltmain.sh 7299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7300 lt_cv_file_magic_cmd='func_win32_libid' 7301 ;; 7302 7303mingw* | pw32*) 7304 # Base MSYS/MinGW do not provide the 'file' command needed by 7305 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7306 # unless we find 'file', for example because we are cross-compiling. 7307 if ( file / ) >/dev/null 2>&1; then 7308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7309 lt_cv_file_magic_cmd='func_win32_libid' 7310 else 7311 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7312 lt_cv_file_magic_cmd='$OBJDUMP -f' 7313 fi 7314 ;; 7315 7316cegcc) 7317 # use the weaker test based on 'objdump'. See mingw*. 7318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7319 lt_cv_file_magic_cmd='$OBJDUMP -f' 7320 ;; 7321 7322darwin* | rhapsody*) 7323 lt_cv_deplibs_check_method=pass_all 7324 ;; 7325 7326freebsd* | dragonfly*) 7327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7328 case $host_cpu in 7329 i*86 ) 7330 # Not sure whether the presence of OpenBSD here was a mistake. 7331 # Let's accept both of them until this is cleared up. 7332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7333 lt_cv_file_magic_cmd=/usr/bin/file 7334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7335 ;; 7336 esac 7337 else 7338 lt_cv_deplibs_check_method=pass_all 7339 fi 7340 ;; 7341 7342gnu*) 7343 lt_cv_deplibs_check_method=pass_all 7344 ;; 7345 7346hpux10.20* | hpux11*) 7347 lt_cv_file_magic_cmd=/usr/bin/file 7348 case $host_cpu in 7349 ia64*) 7350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7351 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7352 ;; 7353 hppa*64*) 7354 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]' 7355 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7356 ;; 7357 *) 7358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7359 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7360 ;; 7361 esac 7362 ;; 7363 7364interix[3-9]*) 7365 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7367 ;; 7368 7369irix5* | irix6* | nonstopux*) 7370 case $LD in 7371 *-32|*"-32 ") libmagic=32-bit;; 7372 *-n32|*"-n32 ") libmagic=N32;; 7373 *-64|*"-64 ") libmagic=64-bit;; 7374 *) libmagic=never-match;; 7375 esac 7376 lt_cv_deplibs_check_method=pass_all 7377 ;; 7378 7379# This must be Linux ELF. 7380linux* | k*bsd*-gnu) 7381 lt_cv_deplibs_check_method=pass_all 7382 ;; 7383 7384netbsd*) 7385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7387 else 7388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7389 fi 7390 ;; 7391 7392newos6*) 7393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7394 lt_cv_file_magic_cmd=/usr/bin/file 7395 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7396 ;; 7397 7398*nto* | *qnx*) 7399 lt_cv_deplibs_check_method=pass_all 7400 ;; 7401 7402openbsd*) 7403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7405 else 7406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7407 fi 7408 ;; 7409 7410osf3* | osf4* | osf5*) 7411 lt_cv_deplibs_check_method=pass_all 7412 ;; 7413 7414rdos*) 7415 lt_cv_deplibs_check_method=pass_all 7416 ;; 7417 7418solaris*) 7419 lt_cv_deplibs_check_method=pass_all 7420 ;; 7421 7422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7423 lt_cv_deplibs_check_method=pass_all 7424 ;; 7425 7426sysv4 | sysv4.3*) 7427 case $host_vendor in 7428 motorola) 7429 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]' 7430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7431 ;; 7432 ncr) 7433 lt_cv_deplibs_check_method=pass_all 7434 ;; 7435 sequent) 7436 lt_cv_file_magic_cmd='/bin/file' 7437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7438 ;; 7439 sni) 7440 lt_cv_file_magic_cmd='/bin/file' 7441 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7442 lt_cv_file_magic_test_file=/lib/libc.so 7443 ;; 7444 siemens) 7445 lt_cv_deplibs_check_method=pass_all 7446 ;; 7447 pc) 7448 lt_cv_deplibs_check_method=pass_all 7449 ;; 7450 esac 7451 ;; 7452 7453tpf*) 7454 lt_cv_deplibs_check_method=pass_all 7455 ;; 7456esac 7457 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7460$as_echo "$lt_cv_deplibs_check_method" >&6; } 7461file_magic_cmd=$lt_cv_file_magic_cmd 7462deplibs_check_method=$lt_cv_deplibs_check_method 7463test -z "$deplibs_check_method" && deplibs_check_method=unknown 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476if test -n "$ac_tool_prefix"; then 7477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7478set dummy ${ac_tool_prefix}ar; ac_word=$2 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480$as_echo_n "checking for $ac_word... " >&6; } 7481if test "${ac_cv_prog_AR+set}" = set; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 if test -n "$AR"; then 7485 ac_cv_prog_AR="$AR" # Let the user override the test. 7486else 7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488for as_dir in $PATH 7489do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7494 ac_cv_prog_AR="${ac_tool_prefix}ar" 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498done 7499 done 7500IFS=$as_save_IFS 7501 7502fi 7503fi 7504AR=$ac_cv_prog_AR 7505if test -n "$AR"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7507$as_echo "$AR" >&6; } 7508else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7510$as_echo "no" >&6; } 7511fi 7512 7513 7514fi 7515if test -z "$ac_cv_prog_AR"; then 7516 ac_ct_AR=$AR 7517 # Extract the first word of "ar", so it can be a program name with args. 7518set dummy ar; ac_word=$2 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7520$as_echo_n "checking for $ac_word... " >&6; } 7521if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 if test -n "$ac_ct_AR"; then 7525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7526else 7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528for as_dir in $PATH 7529do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7534 ac_cv_prog_ac_ct_AR="ar" 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi 7543fi 7544ac_ct_AR=$ac_cv_prog_ac_ct_AR 7545if test -n "$ac_ct_AR"; then 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7547$as_echo "$ac_ct_AR" >&6; } 7548else 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550$as_echo "no" >&6; } 7551fi 7552 7553 if test "x$ac_ct_AR" = x; then 7554 AR="false" 7555 else 7556 case $cross_compiling:$ac_tool_warned in 7557yes:) 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7560ac_tool_warned=yes ;; 7561esac 7562 AR=$ac_ct_AR 7563 fi 7564else 7565 AR="$ac_cv_prog_AR" 7566fi 7567 7568test -z "$AR" && AR=ar 7569test -z "$AR_FLAGS" && AR_FLAGS=cru 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581if test -n "$ac_tool_prefix"; then 7582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7583set dummy ${ac_tool_prefix}strip; ac_word=$2 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7585$as_echo_n "checking for $ac_word... " >&6; } 7586if test "${ac_cv_prog_STRIP+set}" = set; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 if test -n "$STRIP"; then 7590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7591else 7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7593for as_dir in $PATH 7594do 7595 IFS=$as_save_IFS 7596 test -z "$as_dir" && as_dir=. 7597 for ac_exec_ext in '' $ac_executable_extensions; do 7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7599 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7601 break 2 7602 fi 7603done 7604 done 7605IFS=$as_save_IFS 7606 7607fi 7608fi 7609STRIP=$ac_cv_prog_STRIP 7610if test -n "$STRIP"; then 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7612$as_echo "$STRIP" >&6; } 7613else 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7615$as_echo "no" >&6; } 7616fi 7617 7618 7619fi 7620if test -z "$ac_cv_prog_STRIP"; then 7621 ac_ct_STRIP=$STRIP 7622 # Extract the first word of "strip", so it can be a program name with args. 7623set dummy strip; ac_word=$2 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7625$as_echo_n "checking for $ac_word... " >&6; } 7626if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 if test -n "$ac_ct_STRIP"; then 7630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7631else 7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7633for as_dir in $PATH 7634do 7635 IFS=$as_save_IFS 7636 test -z "$as_dir" && as_dir=. 7637 for ac_exec_ext in '' $ac_executable_extensions; do 7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7639 ac_cv_prog_ac_ct_STRIP="strip" 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7641 break 2 7642 fi 7643done 7644 done 7645IFS=$as_save_IFS 7646 7647fi 7648fi 7649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7650if test -n "$ac_ct_STRIP"; then 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7652$as_echo "$ac_ct_STRIP" >&6; } 7653else 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7655$as_echo "no" >&6; } 7656fi 7657 7658 if test "x$ac_ct_STRIP" = x; then 7659 STRIP=":" 7660 else 7661 case $cross_compiling:$ac_tool_warned in 7662yes:) 7663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7665ac_tool_warned=yes ;; 7666esac 7667 STRIP=$ac_ct_STRIP 7668 fi 7669else 7670 STRIP="$ac_cv_prog_STRIP" 7671fi 7672 7673test -z "$STRIP" && STRIP=: 7674 7675 7676 7677 7678 7679 7680if test -n "$ac_tool_prefix"; then 7681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7682set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7684$as_echo_n "checking for $ac_word... " >&6; } 7685if test "${ac_cv_prog_RANLIB+set}" = set; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 if test -n "$RANLIB"; then 7689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7690else 7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7692for as_dir in $PATH 7693do 7694 IFS=$as_save_IFS 7695 test -z "$as_dir" && as_dir=. 7696 for ac_exec_ext in '' $ac_executable_extensions; do 7697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7700 break 2 7701 fi 7702done 7703 done 7704IFS=$as_save_IFS 7705 7706fi 7707fi 7708RANLIB=$ac_cv_prog_RANLIB 7709if test -n "$RANLIB"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7711$as_echo "$RANLIB" >&6; } 7712else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714$as_echo "no" >&6; } 7715fi 7716 7717 7718fi 7719if test -z "$ac_cv_prog_RANLIB"; then 7720 ac_ct_RANLIB=$RANLIB 7721 # Extract the first word of "ranlib", so it can be a program name with args. 7722set dummy ranlib; ac_word=$2 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7724$as_echo_n "checking for $ac_word... " >&6; } 7725if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 if test -n "$ac_ct_RANLIB"; then 7729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7730else 7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7732for as_dir in $PATH 7733do 7734 IFS=$as_save_IFS 7735 test -z "$as_dir" && as_dir=. 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7738 ac_cv_prog_ac_ct_RANLIB="ranlib" 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7740 break 2 7741 fi 7742done 7743 done 7744IFS=$as_save_IFS 7745 7746fi 7747fi 7748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7749if test -n "$ac_ct_RANLIB"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7751$as_echo "$ac_ct_RANLIB" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 if test "x$ac_ct_RANLIB" = x; then 7758 RANLIB=":" 7759 else 7760 case $cross_compiling:$ac_tool_warned in 7761yes:) 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7764ac_tool_warned=yes ;; 7765esac 7766 RANLIB=$ac_ct_RANLIB 7767 fi 7768else 7769 RANLIB="$ac_cv_prog_RANLIB" 7770fi 7771 7772test -z "$RANLIB" && RANLIB=: 7773 7774 7775 7776 7777 7778 7779# Determine commands to create old-style static archives. 7780old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7781old_postinstall_cmds='chmod 644 $oldlib' 7782old_postuninstall_cmds= 7783 7784if test -n "$RANLIB"; then 7785 case $host_os in 7786 openbsd*) 7787 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7788 ;; 7789 *) 7790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7791 ;; 7792 esac 7793 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7794fi 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829# If no C compiler was specified, use CC. 7830LTCC=${LTCC-"$CC"} 7831 7832# If no C compiler flags were specified, use CFLAGS. 7833LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7834 7835# Allow CC to be a program name with arguments. 7836compiler=$CC 7837 7838 7839# Check for command to grab the raw symbol name followed by C symbol from nm. 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7841$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7842if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7843 $as_echo_n "(cached) " >&6 7844else 7845 7846# These are sane defaults that work on at least a few old systems. 7847# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7848 7849# Character class describing NM global symbol codes. 7850symcode='[BCDEGRST]' 7851 7852# Regexp to match symbols that can be accessed directly from C. 7853sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7854 7855# Define system-specific variables. 7856case $host_os in 7857aix*) 7858 symcode='[BCDT]' 7859 ;; 7860cygwin* | mingw* | pw32* | cegcc*) 7861 symcode='[ABCDGISTW]' 7862 ;; 7863hpux*) 7864 if test "$host_cpu" = ia64; then 7865 symcode='[ABCDEGRST]' 7866 fi 7867 ;; 7868irix* | nonstopux*) 7869 symcode='[BCDEGRST]' 7870 ;; 7871osf*) 7872 symcode='[BCDEGQRST]' 7873 ;; 7874solaris*) 7875 symcode='[BDRT]' 7876 ;; 7877sco3.2v5*) 7878 symcode='[DT]' 7879 ;; 7880sysv4.2uw2*) 7881 symcode='[DT]' 7882 ;; 7883sysv5* | sco5v6* | unixware* | OpenUNIX*) 7884 symcode='[ABDT]' 7885 ;; 7886sysv4) 7887 symcode='[DFNSTU]' 7888 ;; 7889esac 7890 7891# If we're using GNU nm, then use its standard symbol codes. 7892case `$NM -V 2>&1` in 7893*GNU* | *'with BFD'*) 7894 symcode='[ABCDGIRSTW]' ;; 7895esac 7896 7897# Transform an extracted symbol line into a proper C declaration. 7898# Some systems (esp. on ia64) link data and code symbols differently, 7899# so use this general approach. 7900lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7901 7902# Transform an extracted symbol line into symbol name and symbol address 7903lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7904lt_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'" 7905 7906# Handle CRLF in mingw tool chain 7907opt_cr= 7908case $build_os in 7909mingw*) 7910 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7911 ;; 7912esac 7913 7914# Try without a prefix underscore, then with it. 7915for ac_symprfx in "" "_"; do 7916 7917 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7918 symxfrm="\\1 $ac_symprfx\\2 \\2" 7919 7920 # Write the raw and C identifiers. 7921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7922 # Fake it for dumpbin and say T for any non-static function 7923 # and D for any global variable. 7924 # Also find C++ and __fastcall symbols from MSVC++, 7925 # which start with @ or ?. 7926 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7927" {last_section=section; section=\$ 3};"\ 7928" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7929" \$ 0!~/External *\|/{next};"\ 7930" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7931" {if(hide[section]) next};"\ 7932" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7933" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7934" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7935" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7936" ' prfx=^$ac_symprfx" 7937 else 7938 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7939 fi 7940 7941 # Check to see that the pipe works correctly. 7942 pipe_works=no 7943 7944 rm -f conftest* 7945 cat > conftest.$ac_ext <<_LT_EOF 7946#ifdef __cplusplus 7947extern "C" { 7948#endif 7949char nm_test_var; 7950void nm_test_func(void); 7951void nm_test_func(void){} 7952#ifdef __cplusplus 7953} 7954#endif 7955int main(){nm_test_var='a';nm_test_func();return(0);} 7956_LT_EOF 7957 7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7959 (eval $ac_compile) 2>&5 7960 ac_status=$? 7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7962 test $ac_status = 0; }; then 7963 # Now try to grab the symbols. 7964 nlist=conftest.nm 7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7966 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7967 ac_status=$? 7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7969 test $ac_status = 0; } && test -s "$nlist"; then 7970 # Try sorting and uniquifying the output. 7971 if sort "$nlist" | uniq > "$nlist"T; then 7972 mv -f "$nlist"T "$nlist" 7973 else 7974 rm -f "$nlist"T 7975 fi 7976 7977 # Make sure that we snagged all the symbols we need. 7978 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7979 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7980 cat <<_LT_EOF > conftest.$ac_ext 7981#ifdef __cplusplus 7982extern "C" { 7983#endif 7984 7985_LT_EOF 7986 # Now generate the symbol file. 7987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7988 7989 cat <<_LT_EOF >> conftest.$ac_ext 7990 7991/* The mapping between symbol names and symbols. */ 7992const struct { 7993 const char *name; 7994 void *address; 7995} 7996lt__PROGRAM__LTX_preloaded_symbols[] = 7997{ 7998 { "@PROGRAM@", (void *) 0 }, 7999_LT_EOF 8000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8001 cat <<\_LT_EOF >> conftest.$ac_ext 8002 {0, (void *) 0} 8003}; 8004 8005/* This works around a problem in FreeBSD linker */ 8006#ifdef FREEBSD_WORKAROUND 8007static const void *lt_preloaded_setup() { 8008 return lt__PROGRAM__LTX_preloaded_symbols; 8009} 8010#endif 8011 8012#ifdef __cplusplus 8013} 8014#endif 8015_LT_EOF 8016 # Now try linking the two files. 8017 mv conftest.$ac_objext conftstm.$ac_objext 8018 lt_save_LIBS="$LIBS" 8019 lt_save_CFLAGS="$CFLAGS" 8020 LIBS="conftstm.$ac_objext" 8021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8023 (eval $ac_link) 2>&5 8024 ac_status=$? 8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8026 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8027 pipe_works=yes 8028 fi 8029 LIBS="$lt_save_LIBS" 8030 CFLAGS="$lt_save_CFLAGS" 8031 else 8032 echo "cannot find nm_test_func in $nlist" >&5 8033 fi 8034 else 8035 echo "cannot find nm_test_var in $nlist" >&5 8036 fi 8037 else 8038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8039 fi 8040 else 8041 echo "$progname: failed program was:" >&5 8042 cat conftest.$ac_ext >&5 8043 fi 8044 rm -rf conftest* conftst* 8045 8046 # Do not use the global_symbol_pipe unless it works. 8047 if test "$pipe_works" = yes; then 8048 break 8049 else 8050 lt_cv_sys_global_symbol_pipe= 8051 fi 8052done 8053 8054fi 8055 8056if test -z "$lt_cv_sys_global_symbol_pipe"; then 8057 lt_cv_sys_global_symbol_to_cdecl= 8058fi 8059if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8061$as_echo "failed" >&6; } 8062else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8064$as_echo "ok" >&6; } 8065fi 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088# Check whether --enable-libtool-lock was given. 8089if test "${enable_libtool_lock+set}" = set; then : 8090 enableval=$enable_libtool_lock; 8091fi 8092 8093test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8094 8095# Some flags need to be propagated to the compiler or linker for good 8096# libtool support. 8097case $host in 8098ia64-*-hpux*) 8099 # Find out which ABI we are using. 8100 echo 'int i;' > conftest.$ac_ext 8101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8102 (eval $ac_compile) 2>&5 8103 ac_status=$? 8104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8105 test $ac_status = 0; }; then 8106 case `/usr/bin/file conftest.$ac_objext` in 8107 *ELF-32*) 8108 HPUX_IA64_MODE="32" 8109 ;; 8110 *ELF-64*) 8111 HPUX_IA64_MODE="64" 8112 ;; 8113 esac 8114 fi 8115 rm -rf conftest* 8116 ;; 8117*-*-irix6*) 8118 # Find out which ABI we are using. 8119 echo '#line 8119 "configure"' > conftest.$ac_ext 8120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8121 (eval $ac_compile) 2>&5 8122 ac_status=$? 8123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8124 test $ac_status = 0; }; then 8125 if test "$lt_cv_prog_gnu_ld" = yes; then 8126 case `/usr/bin/file conftest.$ac_objext` in 8127 *32-bit*) 8128 LD="${LD-ld} -melf32bsmip" 8129 ;; 8130 *N32*) 8131 LD="${LD-ld} -melf32bmipn32" 8132 ;; 8133 *64-bit*) 8134 LD="${LD-ld} -melf64bmip" 8135 ;; 8136 esac 8137 else 8138 case `/usr/bin/file conftest.$ac_objext` in 8139 *32-bit*) 8140 LD="${LD-ld} -32" 8141 ;; 8142 *N32*) 8143 LD="${LD-ld} -n32" 8144 ;; 8145 *64-bit*) 8146 LD="${LD-ld} -64" 8147 ;; 8148 esac 8149 fi 8150 fi 8151 rm -rf conftest* 8152 ;; 8153 8154x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8155s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8156 # Find out which ABI we are using. 8157 echo 'int i;' > conftest.$ac_ext 8158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8159 (eval $ac_compile) 2>&5 8160 ac_status=$? 8161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8162 test $ac_status = 0; }; then 8163 case `/usr/bin/file conftest.o` in 8164 *32-bit*) 8165 case $host in 8166 x86_64-*kfreebsd*-gnu) 8167 LD="${LD-ld} -m elf_i386_fbsd" 8168 ;; 8169 x86_64-*linux*) 8170 LD="${LD-ld} -m elf_i386" 8171 ;; 8172 ppc64-*linux*|powerpc64-*linux*) 8173 LD="${LD-ld} -m elf32ppclinux" 8174 ;; 8175 s390x-*linux*) 8176 LD="${LD-ld} -m elf_s390" 8177 ;; 8178 sparc64-*linux*) 8179 LD="${LD-ld} -m elf32_sparc" 8180 ;; 8181 esac 8182 ;; 8183 *64-bit*) 8184 case $host in 8185 x86_64-*kfreebsd*-gnu) 8186 LD="${LD-ld} -m elf_x86_64_fbsd" 8187 ;; 8188 x86_64-*linux*) 8189 LD="${LD-ld} -m elf_x86_64" 8190 ;; 8191 ppc*-*linux*|powerpc*-*linux*) 8192 LD="${LD-ld} -m elf64ppc" 8193 ;; 8194 s390*-*linux*|s390*-*tpf*) 8195 LD="${LD-ld} -m elf64_s390" 8196 ;; 8197 sparc*-*linux*) 8198 LD="${LD-ld} -m elf64_sparc" 8199 ;; 8200 esac 8201 ;; 8202 esac 8203 fi 8204 rm -rf conftest* 8205 ;; 8206 8207*-*-sco3.2v5*) 8208 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8209 SAVE_CFLAGS="$CFLAGS" 8210 CFLAGS="$CFLAGS -belf" 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8212$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8213if test "${lt_cv_cc_needs_belf+set}" = set; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 ac_ext=c 8217ac_cpp='$CPP $CPPFLAGS' 8218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8220ac_compiler_gnu=$ac_cv_c_compiler_gnu 8221 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224 8225int 8226main () 8227{ 8228 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO"; then : 8234 lt_cv_cc_needs_belf=yes 8235else 8236 lt_cv_cc_needs_belf=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext \ 8239 conftest$ac_exeext conftest.$ac_ext 8240 ac_ext=c 8241ac_cpp='$CPP $CPPFLAGS' 8242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8244ac_compiler_gnu=$ac_cv_c_compiler_gnu 8245 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8248$as_echo "$lt_cv_cc_needs_belf" >&6; } 8249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8251 CFLAGS="$SAVE_CFLAGS" 8252 fi 8253 ;; 8254sparc*-*solaris*) 8255 # Find out which ABI we are using. 8256 echo 'int i;' > conftest.$ac_ext 8257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8258 (eval $ac_compile) 2>&5 8259 ac_status=$? 8260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8261 test $ac_status = 0; }; then 8262 case `/usr/bin/file conftest.o` in 8263 *64-bit*) 8264 case $lt_cv_prog_gnu_ld in 8265 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8266 *) 8267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8268 LD="${LD-ld} -64" 8269 fi 8270 ;; 8271 esac 8272 ;; 8273 esac 8274 fi 8275 rm -rf conftest* 8276 ;; 8277esac 8278 8279need_locks="$enable_libtool_lock" 8280 8281 8282 case $host_os in 8283 rhapsody* | darwin*) 8284 if test -n "$ac_tool_prefix"; then 8285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8286set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8288$as_echo_n "checking for $ac_word... " >&6; } 8289if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 if test -n "$DSYMUTIL"; then 8293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8294else 8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8296for as_dir in $PATH 8297do 8298 IFS=$as_save_IFS 8299 test -z "$as_dir" && as_dir=. 8300 for ac_exec_ext in '' $ac_executable_extensions; do 8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8304 break 2 8305 fi 8306done 8307 done 8308IFS=$as_save_IFS 8309 8310fi 8311fi 8312DSYMUTIL=$ac_cv_prog_DSYMUTIL 8313if test -n "$DSYMUTIL"; then 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8315$as_echo "$DSYMUTIL" >&6; } 8316else 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8318$as_echo "no" >&6; } 8319fi 8320 8321 8322fi 8323if test -z "$ac_cv_prog_DSYMUTIL"; then 8324 ac_ct_DSYMUTIL=$DSYMUTIL 8325 # Extract the first word of "dsymutil", so it can be a program name with args. 8326set dummy dsymutil; ac_word=$2 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8328$as_echo_n "checking for $ac_word... " >&6; } 8329if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 if test -n "$ac_ct_DSYMUTIL"; then 8333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8334else 8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8336for as_dir in $PATH 8337do 8338 IFS=$as_save_IFS 8339 test -z "$as_dir" && as_dir=. 8340 for ac_exec_ext in '' $ac_executable_extensions; do 8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8344 break 2 8345 fi 8346done 8347 done 8348IFS=$as_save_IFS 8349 8350fi 8351fi 8352ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8353if test -n "$ac_ct_DSYMUTIL"; then 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8355$as_echo "$ac_ct_DSYMUTIL" >&6; } 8356else 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8358$as_echo "no" >&6; } 8359fi 8360 8361 if test "x$ac_ct_DSYMUTIL" = x; then 8362 DSYMUTIL=":" 8363 else 8364 case $cross_compiling:$ac_tool_warned in 8365yes:) 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8368ac_tool_warned=yes ;; 8369esac 8370 DSYMUTIL=$ac_ct_DSYMUTIL 8371 fi 8372else 8373 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8374fi 8375 8376 if test -n "$ac_tool_prefix"; then 8377 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8378set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8380$as_echo_n "checking for $ac_word... " >&6; } 8381if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 if test -n "$NMEDIT"; then 8385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8386else 8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8388for as_dir in $PATH 8389do 8390 IFS=$as_save_IFS 8391 test -z "$as_dir" && as_dir=. 8392 for ac_exec_ext in '' $ac_executable_extensions; do 8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8396 break 2 8397 fi 8398done 8399 done 8400IFS=$as_save_IFS 8401 8402fi 8403fi 8404NMEDIT=$ac_cv_prog_NMEDIT 8405if test -n "$NMEDIT"; then 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8407$as_echo "$NMEDIT" >&6; } 8408else 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8410$as_echo "no" >&6; } 8411fi 8412 8413 8414fi 8415if test -z "$ac_cv_prog_NMEDIT"; then 8416 ac_ct_NMEDIT=$NMEDIT 8417 # Extract the first word of "nmedit", so it can be a program name with args. 8418set dummy nmedit; ac_word=$2 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8420$as_echo_n "checking for $ac_word... " >&6; } 8421if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8422 $as_echo_n "(cached) " >&6 8423else 8424 if test -n "$ac_ct_NMEDIT"; then 8425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8426else 8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8428for as_dir in $PATH 8429do 8430 IFS=$as_save_IFS 8431 test -z "$as_dir" && as_dir=. 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8434 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8436 break 2 8437 fi 8438done 8439 done 8440IFS=$as_save_IFS 8441 8442fi 8443fi 8444ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8445if test -n "$ac_ct_NMEDIT"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8447$as_echo "$ac_ct_NMEDIT" >&6; } 8448else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450$as_echo "no" >&6; } 8451fi 8452 8453 if test "x$ac_ct_NMEDIT" = x; then 8454 NMEDIT=":" 8455 else 8456 case $cross_compiling:$ac_tool_warned in 8457yes:) 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8460ac_tool_warned=yes ;; 8461esac 8462 NMEDIT=$ac_ct_NMEDIT 8463 fi 8464else 8465 NMEDIT="$ac_cv_prog_NMEDIT" 8466fi 8467 8468 if test -n "$ac_tool_prefix"; then 8469 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8470set dummy ${ac_tool_prefix}lipo; ac_word=$2 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8472$as_echo_n "checking for $ac_word... " >&6; } 8473if test "${ac_cv_prog_LIPO+set}" = set; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 if test -n "$LIPO"; then 8477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8478else 8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8480for as_dir in $PATH 8481do 8482 IFS=$as_save_IFS 8483 test -z "$as_dir" && as_dir=. 8484 for ac_exec_ext in '' $ac_executable_extensions; do 8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8488 break 2 8489 fi 8490done 8491 done 8492IFS=$as_save_IFS 8493 8494fi 8495fi 8496LIPO=$ac_cv_prog_LIPO 8497if test -n "$LIPO"; then 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8499$as_echo "$LIPO" >&6; } 8500else 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8502$as_echo "no" >&6; } 8503fi 8504 8505 8506fi 8507if test -z "$ac_cv_prog_LIPO"; then 8508 ac_ct_LIPO=$LIPO 8509 # Extract the first word of "lipo", so it can be a program name with args. 8510set dummy lipo; ac_word=$2 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8512$as_echo_n "checking for $ac_word... " >&6; } 8513if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 8514 $as_echo_n "(cached) " >&6 8515else 8516 if test -n "$ac_ct_LIPO"; then 8517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8518else 8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8520for as_dir in $PATH 8521do 8522 IFS=$as_save_IFS 8523 test -z "$as_dir" && as_dir=. 8524 for ac_exec_ext in '' $ac_executable_extensions; do 8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8526 ac_cv_prog_ac_ct_LIPO="lipo" 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8528 break 2 8529 fi 8530done 8531 done 8532IFS=$as_save_IFS 8533 8534fi 8535fi 8536ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8537if test -n "$ac_ct_LIPO"; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8539$as_echo "$ac_ct_LIPO" >&6; } 8540else 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8542$as_echo "no" >&6; } 8543fi 8544 8545 if test "x$ac_ct_LIPO" = x; then 8546 LIPO=":" 8547 else 8548 case $cross_compiling:$ac_tool_warned in 8549yes:) 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8552ac_tool_warned=yes ;; 8553esac 8554 LIPO=$ac_ct_LIPO 8555 fi 8556else 8557 LIPO="$ac_cv_prog_LIPO" 8558fi 8559 8560 if test -n "$ac_tool_prefix"; then 8561 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8562set dummy ${ac_tool_prefix}otool; ac_word=$2 8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8564$as_echo_n "checking for $ac_word... " >&6; } 8565if test "${ac_cv_prog_OTOOL+set}" = set; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 if test -n "$OTOOL"; then 8569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8570else 8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8572for as_dir in $PATH 8573do 8574 IFS=$as_save_IFS 8575 test -z "$as_dir" && as_dir=. 8576 for ac_exec_ext in '' $ac_executable_extensions; do 8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8580 break 2 8581 fi 8582done 8583 done 8584IFS=$as_save_IFS 8585 8586fi 8587fi 8588OTOOL=$ac_cv_prog_OTOOL 8589if test -n "$OTOOL"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8591$as_echo "$OTOOL" >&6; } 8592else 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8594$as_echo "no" >&6; } 8595fi 8596 8597 8598fi 8599if test -z "$ac_cv_prog_OTOOL"; then 8600 ac_ct_OTOOL=$OTOOL 8601 # Extract the first word of "otool", so it can be a program name with args. 8602set dummy otool; ac_word=$2 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8604$as_echo_n "checking for $ac_word... " >&6; } 8605if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 if test -n "$ac_ct_OTOOL"; then 8609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8610else 8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8612for as_dir in $PATH 8613do 8614 IFS=$as_save_IFS 8615 test -z "$as_dir" && as_dir=. 8616 for ac_exec_ext in '' $ac_executable_extensions; do 8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8618 ac_cv_prog_ac_ct_OTOOL="otool" 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8620 break 2 8621 fi 8622done 8623 done 8624IFS=$as_save_IFS 8625 8626fi 8627fi 8628ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8629if test -n "$ac_ct_OTOOL"; then 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8631$as_echo "$ac_ct_OTOOL" >&6; } 8632else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8634$as_echo "no" >&6; } 8635fi 8636 8637 if test "x$ac_ct_OTOOL" = x; then 8638 OTOOL=":" 8639 else 8640 case $cross_compiling:$ac_tool_warned in 8641yes:) 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8644ac_tool_warned=yes ;; 8645esac 8646 OTOOL=$ac_ct_OTOOL 8647 fi 8648else 8649 OTOOL="$ac_cv_prog_OTOOL" 8650fi 8651 8652 if test -n "$ac_tool_prefix"; then 8653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8654set dummy ${ac_tool_prefix}otool64; ac_word=$2 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8656$as_echo_n "checking for $ac_word... " >&6; } 8657if test "${ac_cv_prog_OTOOL64+set}" = set; then : 8658 $as_echo_n "(cached) " >&6 8659else 8660 if test -n "$OTOOL64"; then 8661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8662else 8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8664for as_dir in $PATH 8665do 8666 IFS=$as_save_IFS 8667 test -z "$as_dir" && as_dir=. 8668 for ac_exec_ext in '' $ac_executable_extensions; do 8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8672 break 2 8673 fi 8674done 8675 done 8676IFS=$as_save_IFS 8677 8678fi 8679fi 8680OTOOL64=$ac_cv_prog_OTOOL64 8681if test -n "$OTOOL64"; then 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8683$as_echo "$OTOOL64" >&6; } 8684else 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8686$as_echo "no" >&6; } 8687fi 8688 8689 8690fi 8691if test -z "$ac_cv_prog_OTOOL64"; then 8692 ac_ct_OTOOL64=$OTOOL64 8693 # Extract the first word of "otool64", so it can be a program name with args. 8694set dummy otool64; ac_word=$2 8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8696$as_echo_n "checking for $ac_word... " >&6; } 8697if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 if test -n "$ac_ct_OTOOL64"; then 8701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8702else 8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8704for as_dir in $PATH 8705do 8706 IFS=$as_save_IFS 8707 test -z "$as_dir" && as_dir=. 8708 for ac_exec_ext in '' $ac_executable_extensions; do 8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8710 ac_cv_prog_ac_ct_OTOOL64="otool64" 8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8712 break 2 8713 fi 8714done 8715 done 8716IFS=$as_save_IFS 8717 8718fi 8719fi 8720ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8721if test -n "$ac_ct_OTOOL64"; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8723$as_echo "$ac_ct_OTOOL64" >&6; } 8724else 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726$as_echo "no" >&6; } 8727fi 8728 8729 if test "x$ac_ct_OTOOL64" = x; then 8730 OTOOL64=":" 8731 else 8732 case $cross_compiling:$ac_tool_warned in 8733yes:) 8734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8736ac_tool_warned=yes ;; 8737esac 8738 OTOOL64=$ac_ct_OTOOL64 8739 fi 8740else 8741 OTOOL64="$ac_cv_prog_OTOOL64" 8742fi 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8771$as_echo_n "checking for -single_module linker flag... " >&6; } 8772if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 lt_cv_apple_cc_single_mod=no 8776 if test -z "${LT_MULTI_MODULE}"; then 8777 # By default we will add the -single_module flag. You can override 8778 # by either setting the environment variable LT_MULTI_MODULE 8779 # non-empty at configure time, or by adding -multi_module to the 8780 # link flags. 8781 rm -rf libconftest.dylib* 8782 echo "int foo(void){return 1;}" > conftest.c 8783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8784-dynamiclib -Wl,-single_module conftest.c" >&5 8785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8787 _lt_result=$? 8788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8789 lt_cv_apple_cc_single_mod=yes 8790 else 8791 cat conftest.err >&5 8792 fi 8793 rm -rf libconftest.dylib* 8794 rm -f conftest.* 8795 fi 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8798$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8801if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8802 $as_echo_n "(cached) " >&6 8803else 8804 lt_cv_ld_exported_symbols_list=no 8805 save_LDFLAGS=$LDFLAGS 8806 echo "_main" > conftest.sym 8807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810 8811int 8812main () 8813{ 8814 8815 ; 8816 return 0; 8817} 8818_ACEOF 8819if ac_fn_c_try_link "$LINENO"; then : 8820 lt_cv_ld_exported_symbols_list=yes 8821else 8822 lt_cv_ld_exported_symbols_list=no 8823fi 8824rm -f core conftest.err conftest.$ac_objext \ 8825 conftest$ac_exeext conftest.$ac_ext 8826 LDFLAGS="$save_LDFLAGS" 8827 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8830$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8831 case $host_os in 8832 rhapsody* | darwin1.[012]) 8833 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8834 darwin1.*) 8835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8836 darwin*) # darwin 5.x on 8837 # if running on 10.5 or later, the deployment target defaults 8838 # to the OS version, if on x86, and 10.4, the deployment 8839 # target defaults to 10.4. Don't you love it? 8840 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8841 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8842 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8843 10.[012]*) 8844 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8845 10.*) 8846 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8847 esac 8848 ;; 8849 esac 8850 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8851 _lt_dar_single_mod='$single_module' 8852 fi 8853 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8854 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8855 else 8856 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8857 fi 8858 if test "$DSYMUTIL" != ":"; then 8859 _lt_dsymutil='~$DSYMUTIL $lib || :' 8860 else 8861 _lt_dsymutil= 8862 fi 8863 ;; 8864 esac 8865 8866ac_ext=c 8867ac_cpp='$CPP $CPPFLAGS' 8868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8870ac_compiler_gnu=$ac_cv_c_compiler_gnu 8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8872$as_echo_n "checking how to run the C preprocessor... " >&6; } 8873# On Suns, sometimes $CPP names a directory. 8874if test -n "$CPP" && test -d "$CPP"; then 8875 CPP= 8876fi 8877if test -z "$CPP"; then 8878 if test "${ac_cv_prog_CPP+set}" = set; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 # Double quotes because CPP needs to be expanded 8882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8883 do 8884 ac_preproc_ok=false 8885for ac_c_preproc_warn_flag in '' yes 8886do 8887 # Use a header file that comes with gcc, so configuring glibc 8888 # with a fresh cross-compiler works. 8889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8890 # <limits.h> exists even on freestanding compilers. 8891 # On the NeXT, cc -E runs the code through the compiler's parser, 8892 # not just through cpp. "Syntax error" is here to catch this case. 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895#ifdef __STDC__ 8896# include <limits.h> 8897#else 8898# include <assert.h> 8899#endif 8900 Syntax error 8901_ACEOF 8902if ac_fn_c_try_cpp "$LINENO"; then : 8903 8904else 8905 # Broken: fails on valid input. 8906continue 8907fi 8908rm -f conftest.err conftest.$ac_ext 8909 8910 # OK, works on sane cases. Now check whether nonexistent headers 8911 # can be detected and how. 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914#include <ac_nonexistent.h> 8915_ACEOF 8916if ac_fn_c_try_cpp "$LINENO"; then : 8917 # Broken: success on invalid input. 8918continue 8919else 8920 # Passes both tests. 8921ac_preproc_ok=: 8922break 8923fi 8924rm -f conftest.err conftest.$ac_ext 8925 8926done 8927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8928rm -f conftest.err conftest.$ac_ext 8929if $ac_preproc_ok; then : 8930 break 8931fi 8932 8933 done 8934 ac_cv_prog_CPP=$CPP 8935 8936fi 8937 CPP=$ac_cv_prog_CPP 8938else 8939 ac_cv_prog_CPP=$CPP 8940fi 8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8942$as_echo "$CPP" >&6; } 8943ac_preproc_ok=false 8944for ac_c_preproc_warn_flag in '' yes 8945do 8946 # Use a header file that comes with gcc, so configuring glibc 8947 # with a fresh cross-compiler works. 8948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8949 # <limits.h> exists even on freestanding compilers. 8950 # On the NeXT, cc -E runs the code through the compiler's parser, 8951 # not just through cpp. "Syntax error" is here to catch this case. 8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8953/* end confdefs.h. */ 8954#ifdef __STDC__ 8955# include <limits.h> 8956#else 8957# include <assert.h> 8958#endif 8959 Syntax error 8960_ACEOF 8961if ac_fn_c_try_cpp "$LINENO"; then : 8962 8963else 8964 # Broken: fails on valid input. 8965continue 8966fi 8967rm -f conftest.err conftest.$ac_ext 8968 8969 # OK, works on sane cases. Now check whether nonexistent headers 8970 # can be detected and how. 8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8972/* end confdefs.h. */ 8973#include <ac_nonexistent.h> 8974_ACEOF 8975if ac_fn_c_try_cpp "$LINENO"; then : 8976 # Broken: success on invalid input. 8977continue 8978else 8979 # Passes both tests. 8980ac_preproc_ok=: 8981break 8982fi 8983rm -f conftest.err conftest.$ac_ext 8984 8985done 8986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8987rm -f conftest.err conftest.$ac_ext 8988if $ac_preproc_ok; then : 8989 8990else 8991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8993as_fn_error "C preprocessor \"$CPP\" fails sanity check 8994See \`config.log' for more details." "$LINENO" 5; } 8995fi 8996 8997ac_ext=c 8998ac_cpp='$CPP $CPPFLAGS' 8999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9001ac_compiler_gnu=$ac_cv_c_compiler_gnu 9002 9003 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9005$as_echo_n "checking for ANSI C header files... " >&6; } 9006if test "${ac_cv_header_stdc+set}" = set; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011#include <stdlib.h> 9012#include <stdarg.h> 9013#include <string.h> 9014#include <float.h> 9015 9016int 9017main () 9018{ 9019 9020 ; 9021 return 0; 9022} 9023_ACEOF 9024if ac_fn_c_try_compile "$LINENO"; then : 9025 ac_cv_header_stdc=yes 9026else 9027 ac_cv_header_stdc=no 9028fi 9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9030 9031if test $ac_cv_header_stdc = yes; then 9032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034/* end confdefs.h. */ 9035#include <string.h> 9036 9037_ACEOF 9038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9039 $EGREP "memchr" >/dev/null 2>&1; then : 9040 9041else 9042 ac_cv_header_stdc=no 9043fi 9044rm -f conftest* 9045 9046fi 9047 9048if test $ac_cv_header_stdc = yes; then 9049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051/* end confdefs.h. */ 9052#include <stdlib.h> 9053 9054_ACEOF 9055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9056 $EGREP "free" >/dev/null 2>&1; then : 9057 9058else 9059 ac_cv_header_stdc=no 9060fi 9061rm -f conftest* 9062 9063fi 9064 9065if test $ac_cv_header_stdc = yes; then 9066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9067 if test "$cross_compiling" = yes; then : 9068 : 9069else 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072#include <ctype.h> 9073#include <stdlib.h> 9074#if ((' ' & 0x0FF) == 0x020) 9075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9077#else 9078# define ISLOWER(c) \ 9079 (('a' <= (c) && (c) <= 'i') \ 9080 || ('j' <= (c) && (c) <= 'r') \ 9081 || ('s' <= (c) && (c) <= 'z')) 9082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9083#endif 9084 9085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9086int 9087main () 9088{ 9089 int i; 9090 for (i = 0; i < 256; i++) 9091 if (XOR (islower (i), ISLOWER (i)) 9092 || toupper (i) != TOUPPER (i)) 9093 return 2; 9094 return 0; 9095} 9096_ACEOF 9097if ac_fn_c_try_run "$LINENO"; then : 9098 9099else 9100 ac_cv_header_stdc=no 9101fi 9102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9103 conftest.$ac_objext conftest.beam conftest.$ac_ext 9104fi 9105 9106fi 9107fi 9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9109$as_echo "$ac_cv_header_stdc" >&6; } 9110if test $ac_cv_header_stdc = yes; then 9111 9112$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9113 9114fi 9115 9116# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9118 inttypes.h stdint.h unistd.h 9119do : 9120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9121ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9122" 9123eval as_val=\$$as_ac_Header 9124 if test "x$as_val" = x""yes; then : 9125 cat >>confdefs.h <<_ACEOF 9126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9127_ACEOF 9128 9129fi 9130 9131done 9132 9133 9134for ac_header in dlfcn.h 9135do : 9136 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9137" 9138if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 9139 cat >>confdefs.h <<_ACEOF 9140#define HAVE_DLFCN_H 1 9141_ACEOF 9142 9143fi 9144 9145done 9146 9147 9148 9149ac_ext=cpp 9150ac_cpp='$CXXCPP $CPPFLAGS' 9151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9154if test -z "$CXX"; then 9155 if test -n "$CCC"; then 9156 CXX=$CCC 9157 else 9158 if test -n "$ac_tool_prefix"; then 9159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 9160 do 9161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9162set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9164$as_echo_n "checking for $ac_word... " >&6; } 9165if test "${ac_cv_prog_CXX+set}" = set; then : 9166 $as_echo_n "(cached) " >&6 9167else 9168 if test -n "$CXX"; then 9169 ac_cv_prog_CXX="$CXX" # Let the user override the test. 9170else 9171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9172for as_dir in $PATH 9173do 9174 IFS=$as_save_IFS 9175 test -z "$as_dir" && as_dir=. 9176 for ac_exec_ext in '' $ac_executable_extensions; do 9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9180 break 2 9181 fi 9182done 9183 done 9184IFS=$as_save_IFS 9185 9186fi 9187fi 9188CXX=$ac_cv_prog_CXX 9189if test -n "$CXX"; then 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 9191$as_echo "$CXX" >&6; } 9192else 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9194$as_echo "no" >&6; } 9195fi 9196 9197 9198 test -n "$CXX" && break 9199 done 9200fi 9201if test -z "$CXX"; then 9202 ac_ct_CXX=$CXX 9203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 9204do 9205 # Extract the first word of "$ac_prog", so it can be a program name with args. 9206set dummy $ac_prog; ac_word=$2 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9208$as_echo_n "checking for $ac_word... " >&6; } 9209if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 if test -n "$ac_ct_CXX"; then 9213 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 9214else 9215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9216for as_dir in $PATH 9217do 9218 IFS=$as_save_IFS 9219 test -z "$as_dir" && as_dir=. 9220 for ac_exec_ext in '' $ac_executable_extensions; do 9221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9222 ac_cv_prog_ac_ct_CXX="$ac_prog" 9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9224 break 2 9225 fi 9226done 9227 done 9228IFS=$as_save_IFS 9229 9230fi 9231fi 9232ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 9233if test -n "$ac_ct_CXX"; then 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 9235$as_echo "$ac_ct_CXX" >&6; } 9236else 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9238$as_echo "no" >&6; } 9239fi 9240 9241 9242 test -n "$ac_ct_CXX" && break 9243done 9244 9245 if test "x$ac_ct_CXX" = x; then 9246 CXX="g++" 9247 else 9248 case $cross_compiling:$ac_tool_warned in 9249yes:) 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9252ac_tool_warned=yes ;; 9253esac 9254 CXX=$ac_ct_CXX 9255 fi 9256fi 9257 9258 fi 9259fi 9260# Provide some information about the compiler. 9261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 9262set X $ac_compile 9263ac_compiler=$2 9264for ac_option in --version -v -V -qversion; do 9265 { { ac_try="$ac_compiler $ac_option >&5" 9266case "(($ac_try" in 9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9268 *) ac_try_echo=$ac_try;; 9269esac 9270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9271$as_echo "$ac_try_echo"; } >&5 9272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 9273 ac_status=$? 9274 if test -s conftest.err; then 9275 sed '10a\ 9276... rest of stderr output deleted ... 9277 10q' conftest.err >conftest.er1 9278 cat conftest.er1 >&5 9279 fi 9280 rm -f conftest.er1 conftest.err 9281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9282 test $ac_status = 0; } 9283done 9284 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 9286$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 9287if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 9288 $as_echo_n "(cached) " >&6 9289else 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292 9293int 9294main () 9295{ 9296#ifndef __GNUC__ 9297 choke me 9298#endif 9299 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304if ac_fn_cxx_try_compile "$LINENO"; then : 9305 ac_compiler_gnu=yes 9306else 9307 ac_compiler_gnu=no 9308fi 9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 9311 9312fi 9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 9314$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 9315if test $ac_compiler_gnu = yes; then 9316 GXX=yes 9317else 9318 GXX= 9319fi 9320ac_test_CXXFLAGS=${CXXFLAGS+set} 9321ac_save_CXXFLAGS=$CXXFLAGS 9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 9323$as_echo_n "checking whether $CXX accepts -g... " >&6; } 9324if test "${ac_cv_prog_cxx_g+set}" = set; then : 9325 $as_echo_n "(cached) " >&6 9326else 9327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 9328 ac_cxx_werror_flag=yes 9329 ac_cv_prog_cxx_g=no 9330 CXXFLAGS="-g" 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333 9334int 9335main () 9336{ 9337 9338 ; 9339 return 0; 9340} 9341_ACEOF 9342if ac_fn_cxx_try_compile "$LINENO"; then : 9343 ac_cv_prog_cxx_g=yes 9344else 9345 CXXFLAGS="" 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348 9349int 9350main () 9351{ 9352 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_cxx_try_compile "$LINENO"; then : 9358 9359else 9360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 9361 CXXFLAGS="-g" 9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363/* end confdefs.h. */ 9364 9365int 9366main () 9367{ 9368 9369 ; 9370 return 0; 9371} 9372_ACEOF 9373if ac_fn_cxx_try_compile "$LINENO"; then : 9374 ac_cv_prog_cxx_g=yes 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9377fi 9378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9379fi 9380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 9382fi 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 9384$as_echo "$ac_cv_prog_cxx_g" >&6; } 9385if test "$ac_test_CXXFLAGS" = set; then 9386 CXXFLAGS=$ac_save_CXXFLAGS 9387elif test $ac_cv_prog_cxx_g = yes; then 9388 if test "$GXX" = yes; then 9389 CXXFLAGS="-g -O2" 9390 else 9391 CXXFLAGS="-g" 9392 fi 9393else 9394 if test "$GXX" = yes; then 9395 CXXFLAGS="-O2" 9396 else 9397 CXXFLAGS= 9398 fi 9399fi 9400ac_ext=c 9401ac_cpp='$CPP $CPPFLAGS' 9402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9404ac_compiler_gnu=$ac_cv_c_compiler_gnu 9405 9406if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9407 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9408 (test "X$CXX" != "Xg++"))) ; then 9409 ac_ext=cpp 9410ac_cpp='$CXXCPP $CPPFLAGS' 9411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9415$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9416if test -z "$CXXCPP"; then 9417 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 # Double quotes because CXXCPP needs to be expanded 9421 for CXXCPP in "$CXX -E" "/lib/cpp" 9422 do 9423 ac_preproc_ok=false 9424for ac_cxx_preproc_warn_flag in '' yes 9425do 9426 # Use a header file that comes with gcc, so configuring glibc 9427 # with a fresh cross-compiler works. 9428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9429 # <limits.h> exists even on freestanding compilers. 9430 # On the NeXT, cc -E runs the code through the compiler's parser, 9431 # not just through cpp. "Syntax error" is here to catch this case. 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434#ifdef __STDC__ 9435# include <limits.h> 9436#else 9437# include <assert.h> 9438#endif 9439 Syntax error 9440_ACEOF 9441if ac_fn_cxx_try_cpp "$LINENO"; then : 9442 9443else 9444 # Broken: fails on valid input. 9445continue 9446fi 9447rm -f conftest.err conftest.$ac_ext 9448 9449 # OK, works on sane cases. Now check whether nonexistent headers 9450 # can be detected and how. 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453#include <ac_nonexistent.h> 9454_ACEOF 9455if ac_fn_cxx_try_cpp "$LINENO"; then : 9456 # Broken: success on invalid input. 9457continue 9458else 9459 # Passes both tests. 9460ac_preproc_ok=: 9461break 9462fi 9463rm -f conftest.err conftest.$ac_ext 9464 9465done 9466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9467rm -f conftest.err conftest.$ac_ext 9468if $ac_preproc_ok; then : 9469 break 9470fi 9471 9472 done 9473 ac_cv_prog_CXXCPP=$CXXCPP 9474 9475fi 9476 CXXCPP=$ac_cv_prog_CXXCPP 9477else 9478 ac_cv_prog_CXXCPP=$CXXCPP 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9481$as_echo "$CXXCPP" >&6; } 9482ac_preproc_ok=false 9483for ac_cxx_preproc_warn_flag in '' yes 9484do 9485 # Use a header file that comes with gcc, so configuring glibc 9486 # with a fresh cross-compiler works. 9487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9488 # <limits.h> exists even on freestanding compilers. 9489 # On the NeXT, cc -E runs the code through the compiler's parser, 9490 # not just through cpp. "Syntax error" is here to catch this case. 9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492/* end confdefs.h. */ 9493#ifdef __STDC__ 9494# include <limits.h> 9495#else 9496# include <assert.h> 9497#endif 9498 Syntax error 9499_ACEOF 9500if ac_fn_cxx_try_cpp "$LINENO"; then : 9501 9502else 9503 # Broken: fails on valid input. 9504continue 9505fi 9506rm -f conftest.err conftest.$ac_ext 9507 9508 # OK, works on sane cases. Now check whether nonexistent headers 9509 # can be detected and how. 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512#include <ac_nonexistent.h> 9513_ACEOF 9514if ac_fn_cxx_try_cpp "$LINENO"; then : 9515 # Broken: success on invalid input. 9516continue 9517else 9518 # Passes both tests. 9519ac_preproc_ok=: 9520break 9521fi 9522rm -f conftest.err conftest.$ac_ext 9523 9524done 9525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9526rm -f conftest.err conftest.$ac_ext 9527if $ac_preproc_ok; then : 9528 9529else 9530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9532_lt_caught_CXX_error=yes; } 9533fi 9534 9535ac_ext=c 9536ac_cpp='$CPP $CPPFLAGS' 9537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9539ac_compiler_gnu=$ac_cv_c_compiler_gnu 9540 9541else 9542 _lt_caught_CXX_error=yes 9543fi 9544 9545 9546 9547 9548# Set options 9549 9550 9551 9552 enable_dlopen=no 9553 9554 9555 enable_win32_dll=no 9556 9557 9558 # Check whether --enable-shared was given. 9559if test "${enable_shared+set}" = set; then : 9560 enableval=$enable_shared; p=${PACKAGE-default} 9561 case $enableval in 9562 yes) enable_shared=yes ;; 9563 no) enable_shared=no ;; 9564 *) 9565 enable_shared=no 9566 # Look at the argument we got. We use all the common list separators. 9567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9568 for pkg in $enableval; do 9569 IFS="$lt_save_ifs" 9570 if test "X$pkg" = "X$p"; then 9571 enable_shared=yes 9572 fi 9573 done 9574 IFS="$lt_save_ifs" 9575 ;; 9576 esac 9577else 9578 enable_shared=yes 9579fi 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 # Check whether --enable-static was given. 9590if test "${enable_static+set}" = set; then : 9591 enableval=$enable_static; p=${PACKAGE-default} 9592 case $enableval in 9593 yes) enable_static=yes ;; 9594 no) enable_static=no ;; 9595 *) 9596 enable_static=no 9597 # Look at the argument we got. We use all the common list separators. 9598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9599 for pkg in $enableval; do 9600 IFS="$lt_save_ifs" 9601 if test "X$pkg" = "X$p"; then 9602 enable_static=yes 9603 fi 9604 done 9605 IFS="$lt_save_ifs" 9606 ;; 9607 esac 9608else 9609 enable_static=yes 9610fi 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621# Check whether --with-pic was given. 9622if test "${with_pic+set}" = set; then : 9623 withval=$with_pic; pic_mode="$withval" 9624else 9625 pic_mode=default 9626fi 9627 9628 9629test -z "$pic_mode" && pic_mode=default 9630 9631 9632 9633 9634 9635 9636 9637 # Check whether --enable-fast-install was given. 9638if test "${enable_fast_install+set}" = set; then : 9639 enableval=$enable_fast_install; p=${PACKAGE-default} 9640 case $enableval in 9641 yes) enable_fast_install=yes ;; 9642 no) enable_fast_install=no ;; 9643 *) 9644 enable_fast_install=no 9645 # Look at the argument we got. We use all the common list separators. 9646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9647 for pkg in $enableval; do 9648 IFS="$lt_save_ifs" 9649 if test "X$pkg" = "X$p"; then 9650 enable_fast_install=yes 9651 fi 9652 done 9653 IFS="$lt_save_ifs" 9654 ;; 9655 esac 9656else 9657 enable_fast_install=yes 9658fi 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670# This can be used to rebuild libtool when needed 9671LIBTOOL_DEPS="$ltmain" 9672 9673# Always use our own libtool. 9674LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700test -z "$LN_S" && LN_S="ln -s" 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715if test -n "${ZSH_VERSION+set}" ; then 9716 setopt NO_GLOB_SUBST 9717fi 9718 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9720$as_echo_n "checking for objdir... " >&6; } 9721if test "${lt_cv_objdir+set}" = set; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 rm -f .libs 2>/dev/null 9725mkdir .libs 2>/dev/null 9726if test -d .libs; then 9727 lt_cv_objdir=.libs 9728else 9729 # MS-DOS does not allow filenames that begin with a dot. 9730 lt_cv_objdir=_libs 9731fi 9732rmdir .libs 2>/dev/null 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9735$as_echo "$lt_cv_objdir" >&6; } 9736objdir=$lt_cv_objdir 9737 9738 9739 9740 9741 9742cat >>confdefs.h <<_ACEOF 9743#define LT_OBJDIR "$lt_cv_objdir/" 9744_ACEOF 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762case $host_os in 9763aix3*) 9764 # AIX sometimes has problems with the GCC collect2 program. For some 9765 # reason, if we set the COLLECT_NAMES environment variable, the problems 9766 # vanish in a puff of smoke. 9767 if test "X${COLLECT_NAMES+set}" != Xset; then 9768 COLLECT_NAMES= 9769 export COLLECT_NAMES 9770 fi 9771 ;; 9772esac 9773 9774# Sed substitution that helps us do robust quoting. It backslashifies 9775# metacharacters that are still active within double-quoted strings. 9776sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9777 9778# Same as above, but do not quote variable references. 9779double_quote_subst='s/\(["`\\]\)/\\\1/g' 9780 9781# Sed substitution to delay expansion of an escaped shell variable in a 9782# double_quote_subst'ed string. 9783delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9784 9785# Sed substitution to delay expansion of an escaped single quote. 9786delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9787 9788# Sed substitution to avoid accidental globbing in evaled expressions 9789no_glob_subst='s/\*/\\\*/g' 9790 9791# Global variables: 9792ofile=libtool 9793can_build_shared=yes 9794 9795# All known linkers require a `.a' archive for static linking (except MSVC, 9796# which needs '.lib'). 9797libext=a 9798 9799with_gnu_ld="$lt_cv_prog_gnu_ld" 9800 9801old_CC="$CC" 9802old_CFLAGS="$CFLAGS" 9803 9804# Set sane defaults for various variables 9805test -z "$CC" && CC=cc 9806test -z "$LTCC" && LTCC=$CC 9807test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9808test -z "$LD" && LD=ld 9809test -z "$ac_objext" && ac_objext=o 9810 9811for cc_temp in $compiler""; do 9812 case $cc_temp in 9813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9815 \-*) ;; 9816 *) break;; 9817 esac 9818done 9819cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9820 9821 9822# Only perform the check for file, if the check method requires it 9823test -z "$MAGIC_CMD" && MAGIC_CMD=file 9824case $deplibs_check_method in 9825file_magic*) 9826 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9828$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9829if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9830 $as_echo_n "(cached) " >&6 9831else 9832 case $MAGIC_CMD in 9833[\\/*] | ?:[\\/]*) 9834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9835 ;; 9836*) 9837 lt_save_MAGIC_CMD="$MAGIC_CMD" 9838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9840 for ac_dir in $ac_dummy; do 9841 IFS="$lt_save_ifs" 9842 test -z "$ac_dir" && ac_dir=. 9843 if test -f $ac_dir/${ac_tool_prefix}file; then 9844 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9845 if test -n "$file_magic_test_file"; then 9846 case $deplibs_check_method in 9847 "file_magic "*) 9848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9851 $EGREP "$file_magic_regex" > /dev/null; then 9852 : 9853 else 9854 cat <<_LT_EOF 1>&2 9855 9856*** Warning: the command libtool uses to detect shared libraries, 9857*** $file_magic_cmd, produces output that libtool cannot recognize. 9858*** The result is that libtool may fail to recognize shared libraries 9859*** as such. This will affect the creation of libtool libraries that 9860*** depend on shared libraries, but programs linked with such libtool 9861*** libraries will work regardless of this problem. Nevertheless, you 9862*** may want to report the problem to your system manager and/or to 9863*** bug-libtool@gnu.org 9864 9865_LT_EOF 9866 fi ;; 9867 esac 9868 fi 9869 break 9870 fi 9871 done 9872 IFS="$lt_save_ifs" 9873 MAGIC_CMD="$lt_save_MAGIC_CMD" 9874 ;; 9875esac 9876fi 9877 9878MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9879if test -n "$MAGIC_CMD"; then 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9881$as_echo "$MAGIC_CMD" >&6; } 9882else 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9884$as_echo "no" >&6; } 9885fi 9886 9887 9888 9889 9890 9891if test -z "$lt_cv_path_MAGIC_CMD"; then 9892 if test -n "$ac_tool_prefix"; then 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9894$as_echo_n "checking for file... " >&6; } 9895if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 case $MAGIC_CMD in 9899[\\/*] | ?:[\\/]*) 9900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9901 ;; 9902*) 9903 lt_save_MAGIC_CMD="$MAGIC_CMD" 9904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9906 for ac_dir in $ac_dummy; do 9907 IFS="$lt_save_ifs" 9908 test -z "$ac_dir" && ac_dir=. 9909 if test -f $ac_dir/file; then 9910 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9911 if test -n "$file_magic_test_file"; then 9912 case $deplibs_check_method in 9913 "file_magic "*) 9914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9917 $EGREP "$file_magic_regex" > /dev/null; then 9918 : 9919 else 9920 cat <<_LT_EOF 1>&2 9921 9922*** Warning: the command libtool uses to detect shared libraries, 9923*** $file_magic_cmd, produces output that libtool cannot recognize. 9924*** The result is that libtool may fail to recognize shared libraries 9925*** as such. This will affect the creation of libtool libraries that 9926*** depend on shared libraries, but programs linked with such libtool 9927*** libraries will work regardless of this problem. Nevertheless, you 9928*** may want to report the problem to your system manager and/or to 9929*** bug-libtool@gnu.org 9930 9931_LT_EOF 9932 fi ;; 9933 esac 9934 fi 9935 break 9936 fi 9937 done 9938 IFS="$lt_save_ifs" 9939 MAGIC_CMD="$lt_save_MAGIC_CMD" 9940 ;; 9941esac 9942fi 9943 9944MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9945if test -n "$MAGIC_CMD"; then 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9947$as_echo "$MAGIC_CMD" >&6; } 9948else 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9950$as_echo "no" >&6; } 9951fi 9952 9953 9954 else 9955 MAGIC_CMD=: 9956 fi 9957fi 9958 9959 fi 9960 ;; 9961esac 9962 9963# Use C for the default configuration in the libtool script 9964 9965lt_save_CC="$CC" 9966ac_ext=c 9967ac_cpp='$CPP $CPPFLAGS' 9968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9970ac_compiler_gnu=$ac_cv_c_compiler_gnu 9971 9972 9973# Source file extension for C test sources. 9974ac_ext=c 9975 9976# Object file extension for compiled C test sources. 9977objext=o 9978objext=$objext 9979 9980# Code to be used in simple compile tests 9981lt_simple_compile_test_code="int some_variable = 0;" 9982 9983# Code to be used in simple link tests 9984lt_simple_link_test_code='int main(){return(0);}' 9985 9986 9987 9988 9989 9990 9991 9992# If no C compiler was specified, use CC. 9993LTCC=${LTCC-"$CC"} 9994 9995# If no C compiler flags were specified, use CFLAGS. 9996LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9997 9998# Allow CC to be a program name with arguments. 9999compiler=$CC 10000 10001# Save the default compiler, since it gets overwritten when the other 10002# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10003compiler_DEFAULT=$CC 10004 10005# save warnings/boilerplate of simple test code 10006ac_outfile=conftest.$ac_objext 10007echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10008eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10009_lt_compiler_boilerplate=`cat conftest.err` 10010$RM conftest* 10011 10012ac_outfile=conftest.$ac_objext 10013echo "$lt_simple_link_test_code" >conftest.$ac_ext 10014eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10015_lt_linker_boilerplate=`cat conftest.err` 10016$RM -r conftest* 10017 10018 10019## CAVEAT EMPTOR: 10020## There is no encapsulation within the following macros, do not change 10021## the running order or otherwise move them around unless you know exactly 10022## what you are doing... 10023if test -n "$compiler"; then 10024 10025lt_prog_compiler_no_builtin_flag= 10026 10027if test "$GCC" = yes; then 10028 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 10029 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10031$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10032if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 10033 $as_echo_n "(cached) " >&6 10034else 10035 lt_cv_prog_compiler_rtti_exceptions=no 10036 ac_outfile=conftest.$ac_objext 10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10038 lt_compiler_flag="-fno-rtti -fno-exceptions" 10039 # Insert the option either (1) after the last *FLAGS variable, or 10040 # (2) before a word containing "conftest.", or (3) at the end. 10041 # Note that $ac_compile itself does not contain backslashes and begins 10042 # with a dollar sign (not a hyphen), so the echo should work correctly. 10043 # The option is referenced via a variable to avoid confusing sed. 10044 lt_compile=`echo "$ac_compile" | $SED \ 10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10047 -e 's:$: $lt_compiler_flag:'` 10048 (eval echo "\"\$as_me:10048: $lt_compile\"" >&5) 10049 (eval "$lt_compile" 2>conftest.err) 10050 ac_status=$? 10051 cat conftest.err >&5 10052 echo "$as_me:10052: \$? = $ac_status" >&5 10053 if (exit $ac_status) && test -s "$ac_outfile"; then 10054 # The compiler can only warn and ignore the option if not recognized 10055 # So say no if there are warnings other than the usual output. 10056 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10059 lt_cv_prog_compiler_rtti_exceptions=yes 10060 fi 10061 fi 10062 $RM conftest* 10063 10064fi 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10066$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10067 10068if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10069 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10070else 10071 : 10072fi 10073 10074fi 10075 10076 10077 10078 10079 10080 10081 lt_prog_compiler_wl= 10082lt_prog_compiler_pic= 10083lt_prog_compiler_static= 10084 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10086$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10087 10088 if test "$GCC" = yes; then 10089 lt_prog_compiler_wl='-Wl,' 10090 lt_prog_compiler_static='-static' 10091 10092 case $host_os in 10093 aix*) 10094 # All AIX code is PIC. 10095 if test "$host_cpu" = ia64; then 10096 # AIX 5 now supports IA64 processor 10097 lt_prog_compiler_static='-Bstatic' 10098 fi 10099 ;; 10100 10101 amigaos*) 10102 case $host_cpu in 10103 powerpc) 10104 # see comment about AmigaOS4 .so support 10105 lt_prog_compiler_pic='-fPIC' 10106 ;; 10107 m68k) 10108 # FIXME: we need at least 68020 code to build shared libraries, but 10109 # adding the `-m68020' flag to GCC prevents building anything better, 10110 # like `-m68040'. 10111 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10112 ;; 10113 esac 10114 ;; 10115 10116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10117 # PIC is the default for these OSes. 10118 ;; 10119 10120 mingw* | cygwin* | pw32* | os2* | cegcc*) 10121 # This hack is so that the source file can tell whether it is being 10122 # built for inclusion in a dll (and should export symbols for example). 10123 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10124 # (--disable-auto-import) libraries 10125 lt_prog_compiler_pic='-DDLL_EXPORT' 10126 ;; 10127 10128 darwin* | rhapsody*) 10129 # PIC is the default on this platform 10130 # Common symbols not allowed in MH_DYLIB files 10131 lt_prog_compiler_pic='-fno-common' 10132 ;; 10133 10134 hpux*) 10135 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10136 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10137 # sets the default TLS model and affects inlining. 10138 case $host_cpu in 10139 hppa*64*) 10140 # +Z the default 10141 ;; 10142 *) 10143 lt_prog_compiler_pic='-fPIC' 10144 ;; 10145 esac 10146 ;; 10147 10148 interix[3-9]*) 10149 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10150 # Instead, we relocate shared libraries at runtime. 10151 ;; 10152 10153 msdosdjgpp*) 10154 # Just because we use GCC doesn't mean we suddenly get shared libraries 10155 # on systems that don't support them. 10156 lt_prog_compiler_can_build_shared=no 10157 enable_shared=no 10158 ;; 10159 10160 *nto* | *qnx*) 10161 # QNX uses GNU C++, but need to define -shared option too, otherwise 10162 # it will coredump. 10163 lt_prog_compiler_pic='-fPIC -shared' 10164 ;; 10165 10166 sysv4*MP*) 10167 if test -d /usr/nec; then 10168 lt_prog_compiler_pic=-Kconform_pic 10169 fi 10170 ;; 10171 10172 *) 10173 lt_prog_compiler_pic='-fPIC' 10174 ;; 10175 esac 10176 else 10177 # PORTME Check for flag to pass linker flags through the system compiler. 10178 case $host_os in 10179 aix*) 10180 lt_prog_compiler_wl='-Wl,' 10181 if test "$host_cpu" = ia64; then 10182 # AIX 5 now supports IA64 processor 10183 lt_prog_compiler_static='-Bstatic' 10184 else 10185 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10186 fi 10187 ;; 10188 10189 mingw* | cygwin* | pw32* | os2* | cegcc*) 10190 # This hack is so that the source file can tell whether it is being 10191 # built for inclusion in a dll (and should export symbols for example). 10192 lt_prog_compiler_pic='-DDLL_EXPORT' 10193 ;; 10194 10195 hpux9* | hpux10* | hpux11*) 10196 lt_prog_compiler_wl='-Wl,' 10197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10198 # not for PA HP-UX. 10199 case $host_cpu in 10200 hppa*64*|ia64*) 10201 # +Z the default 10202 ;; 10203 *) 10204 lt_prog_compiler_pic='+Z' 10205 ;; 10206 esac 10207 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10208 lt_prog_compiler_static='${wl}-a ${wl}archive' 10209 ;; 10210 10211 irix5* | irix6* | nonstopux*) 10212 lt_prog_compiler_wl='-Wl,' 10213 # PIC (with -KPIC) is the default. 10214 lt_prog_compiler_static='-non_shared' 10215 ;; 10216 10217 linux* | k*bsd*-gnu) 10218 case $cc_basename in 10219 # old Intel for x86_64 which still supported -KPIC. 10220 ecc*) 10221 lt_prog_compiler_wl='-Wl,' 10222 lt_prog_compiler_pic='-KPIC' 10223 lt_prog_compiler_static='-static' 10224 ;; 10225 # icc used to be incompatible with GCC. 10226 # ICC 10 doesn't accept -KPIC any more. 10227 icc* | ifort*) 10228 lt_prog_compiler_wl='-Wl,' 10229 lt_prog_compiler_pic='-fPIC' 10230 lt_prog_compiler_static='-static' 10231 ;; 10232 # Lahey Fortran 8.1. 10233 lf95*) 10234 lt_prog_compiler_wl='-Wl,' 10235 lt_prog_compiler_pic='--shared' 10236 lt_prog_compiler_static='--static' 10237 ;; 10238 pgcc* | pgf77* | pgf90* | pgf95*) 10239 # Portland Group compilers (*not* the Pentium gcc compiler, 10240 # which looks to be a dead project) 10241 lt_prog_compiler_wl='-Wl,' 10242 lt_prog_compiler_pic='-fpic' 10243 lt_prog_compiler_static='-Bstatic' 10244 ;; 10245 ccc*) 10246 lt_prog_compiler_wl='-Wl,' 10247 # All Alpha code is PIC. 10248 lt_prog_compiler_static='-non_shared' 10249 ;; 10250 xl*) 10251 # IBM XL C 8.0/Fortran 10.1 on PPC 10252 lt_prog_compiler_wl='-Wl,' 10253 lt_prog_compiler_pic='-qpic' 10254 lt_prog_compiler_static='-qstaticlink' 10255 ;; 10256 *) 10257 case `$CC -V 2>&1 | sed 5q` in 10258 *Sun\ C*) 10259 # Sun C 5.9 10260 lt_prog_compiler_pic='-KPIC' 10261 lt_prog_compiler_static='-Bstatic' 10262 lt_prog_compiler_wl='-Wl,' 10263 ;; 10264 *Sun\ F*) 10265 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10266 lt_prog_compiler_pic='-KPIC' 10267 lt_prog_compiler_static='-Bstatic' 10268 lt_prog_compiler_wl='' 10269 ;; 10270 esac 10271 ;; 10272 esac 10273 ;; 10274 10275 newsos6) 10276 lt_prog_compiler_pic='-KPIC' 10277 lt_prog_compiler_static='-Bstatic' 10278 ;; 10279 10280 *nto* | *qnx*) 10281 # QNX uses GNU C++, but need to define -shared option too, otherwise 10282 # it will coredump. 10283 lt_prog_compiler_pic='-fPIC -shared' 10284 ;; 10285 10286 osf3* | osf4* | osf5*) 10287 lt_prog_compiler_wl='-Wl,' 10288 # All OSF/1 code is PIC. 10289 lt_prog_compiler_static='-non_shared' 10290 ;; 10291 10292 rdos*) 10293 lt_prog_compiler_static='-non_shared' 10294 ;; 10295 10296 solaris*) 10297 lt_prog_compiler_pic='-KPIC' 10298 lt_prog_compiler_static='-Bstatic' 10299 case $cc_basename in 10300 f77* | f90* | f95*) 10301 lt_prog_compiler_wl='-Qoption ld ';; 10302 *) 10303 lt_prog_compiler_wl='-Wl,';; 10304 esac 10305 ;; 10306 10307 sunos4*) 10308 lt_prog_compiler_wl='-Qoption ld ' 10309 lt_prog_compiler_pic='-PIC' 10310 lt_prog_compiler_static='-Bstatic' 10311 ;; 10312 10313 sysv4 | sysv4.2uw2* | sysv4.3*) 10314 lt_prog_compiler_wl='-Wl,' 10315 lt_prog_compiler_pic='-KPIC' 10316 lt_prog_compiler_static='-Bstatic' 10317 ;; 10318 10319 sysv4*MP*) 10320 if test -d /usr/nec ;then 10321 lt_prog_compiler_pic='-Kconform_pic' 10322 lt_prog_compiler_static='-Bstatic' 10323 fi 10324 ;; 10325 10326 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10327 lt_prog_compiler_wl='-Wl,' 10328 lt_prog_compiler_pic='-KPIC' 10329 lt_prog_compiler_static='-Bstatic' 10330 ;; 10331 10332 unicos*) 10333 lt_prog_compiler_wl='-Wl,' 10334 lt_prog_compiler_can_build_shared=no 10335 ;; 10336 10337 uts4*) 10338 lt_prog_compiler_pic='-pic' 10339 lt_prog_compiler_static='-Bstatic' 10340 ;; 10341 10342 *) 10343 lt_prog_compiler_can_build_shared=no 10344 ;; 10345 esac 10346 fi 10347 10348case $host_os in 10349 # For platforms which do not support PIC, -DPIC is meaningless: 10350 *djgpp*) 10351 lt_prog_compiler_pic= 10352 ;; 10353 *) 10354 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10355 ;; 10356esac 10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10358$as_echo "$lt_prog_compiler_pic" >&6; } 10359 10360 10361 10362 10363 10364 10365# 10366# Check to make sure the PIC flag actually works. 10367# 10368if test -n "$lt_prog_compiler_pic"; then 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10370$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10371if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 10372 $as_echo_n "(cached) " >&6 10373else 10374 lt_cv_prog_compiler_pic_works=no 10375 ac_outfile=conftest.$ac_objext 10376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10377 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10378 # Insert the option either (1) after the last *FLAGS variable, or 10379 # (2) before a word containing "conftest.", or (3) at the end. 10380 # Note that $ac_compile itself does not contain backslashes and begins 10381 # with a dollar sign (not a hyphen), so the echo should work correctly. 10382 # The option is referenced via a variable to avoid confusing sed. 10383 lt_compile=`echo "$ac_compile" | $SED \ 10384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10386 -e 's:$: $lt_compiler_flag:'` 10387 (eval echo "\"\$as_me:10387: $lt_compile\"" >&5) 10388 (eval "$lt_compile" 2>conftest.err) 10389 ac_status=$? 10390 cat conftest.err >&5 10391 echo "$as_me:10391: \$? = $ac_status" >&5 10392 if (exit $ac_status) && test -s "$ac_outfile"; then 10393 # The compiler can only warn and ignore the option if not recognized 10394 # So say no if there are warnings other than the usual output. 10395 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10398 lt_cv_prog_compiler_pic_works=yes 10399 fi 10400 fi 10401 $RM conftest* 10402 10403fi 10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10405$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10406 10407if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10408 case $lt_prog_compiler_pic in 10409 "" | " "*) ;; 10410 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10411 esac 10412else 10413 lt_prog_compiler_pic= 10414 lt_prog_compiler_can_build_shared=no 10415fi 10416 10417fi 10418 10419 10420 10421 10422 10423 10424# 10425# Check to make sure the static flag actually works. 10426# 10427wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10429$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10430if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 lt_cv_prog_compiler_static_works=no 10434 save_LDFLAGS="$LDFLAGS" 10435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10436 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10438 # The linker can only warn and ignore the option if not recognized 10439 # So say no if there are warnings 10440 if test -s conftest.err; then 10441 # Append any errors to the config.log. 10442 cat conftest.err 1>&5 10443 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10445 if diff conftest.exp conftest.er2 >/dev/null; then 10446 lt_cv_prog_compiler_static_works=yes 10447 fi 10448 else 10449 lt_cv_prog_compiler_static_works=yes 10450 fi 10451 fi 10452 $RM -r conftest* 10453 LDFLAGS="$save_LDFLAGS" 10454 10455fi 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10457$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10458 10459if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10460 : 10461else 10462 lt_prog_compiler_static= 10463fi 10464 10465 10466 10467 10468 10469 10470 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10473if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 lt_cv_prog_compiler_c_o=no 10477 $RM -r conftest 2>/dev/null 10478 mkdir conftest 10479 cd conftest 10480 mkdir out 10481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10482 10483 lt_compiler_flag="-o out/conftest2.$ac_objext" 10484 # Insert the option either (1) after the last *FLAGS variable, or 10485 # (2) before a word containing "conftest.", or (3) at the end. 10486 # Note that $ac_compile itself does not contain backslashes and begins 10487 # with a dollar sign (not a hyphen), so the echo should work correctly. 10488 lt_compile=`echo "$ac_compile" | $SED \ 10489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10491 -e 's:$: $lt_compiler_flag:'` 10492 (eval echo "\"\$as_me:10492: $lt_compile\"" >&5) 10493 (eval "$lt_compile" 2>out/conftest.err) 10494 ac_status=$? 10495 cat out/conftest.err >&5 10496 echo "$as_me:10496: \$? = $ac_status" >&5 10497 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10498 then 10499 # The compiler can only warn and ignore the option if not recognized 10500 # So say no if there are warnings 10501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10504 lt_cv_prog_compiler_c_o=yes 10505 fi 10506 fi 10507 chmod u+w . 2>&5 10508 $RM conftest* 10509 # SGI C++ compiler will create directory out/ii_files/ for 10510 # template instantiation 10511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10512 $RM out/* && rmdir out 10513 cd .. 10514 $RM -r conftest 10515 $RM conftest* 10516 10517fi 10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10519$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10520 10521 10522 10523 10524 10525 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10527$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10528if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 10529 $as_echo_n "(cached) " >&6 10530else 10531 lt_cv_prog_compiler_c_o=no 10532 $RM -r conftest 2>/dev/null 10533 mkdir conftest 10534 cd conftest 10535 mkdir out 10536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10537 10538 lt_compiler_flag="-o out/conftest2.$ac_objext" 10539 # Insert the option either (1) after the last *FLAGS variable, or 10540 # (2) before a word containing "conftest.", or (3) at the end. 10541 # Note that $ac_compile itself does not contain backslashes and begins 10542 # with a dollar sign (not a hyphen), so the echo should work correctly. 10543 lt_compile=`echo "$ac_compile" | $SED \ 10544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10546 -e 's:$: $lt_compiler_flag:'` 10547 (eval echo "\"\$as_me:10547: $lt_compile\"" >&5) 10548 (eval "$lt_compile" 2>out/conftest.err) 10549 ac_status=$? 10550 cat out/conftest.err >&5 10551 echo "$as_me:10551: \$? = $ac_status" >&5 10552 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10553 then 10554 # The compiler can only warn and ignore the option if not recognized 10555 # So say no if there are warnings 10556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10559 lt_cv_prog_compiler_c_o=yes 10560 fi 10561 fi 10562 chmod u+w . 2>&5 10563 $RM conftest* 10564 # SGI C++ compiler will create directory out/ii_files/ for 10565 # template instantiation 10566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10567 $RM out/* && rmdir out 10568 cd .. 10569 $RM -r conftest 10570 $RM conftest* 10571 10572fi 10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10574$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10575 10576 10577 10578 10579hard_links="nottested" 10580if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10581 # do not overwrite the value of need_locks provided by the user 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10583$as_echo_n "checking if we can lock with hard links... " >&6; } 10584 hard_links=yes 10585 $RM conftest* 10586 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10587 touch conftest.a 10588 ln conftest.a conftest.b 2>&5 || hard_links=no 10589 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10591$as_echo "$hard_links" >&6; } 10592 if test "$hard_links" = no; then 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10594$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10595 need_locks=warn 10596 fi 10597else 10598 need_locks=no 10599fi 10600 10601 10602 10603 10604 10605 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10607$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10608 10609 runpath_var= 10610 allow_undefined_flag= 10611 always_export_symbols=no 10612 archive_cmds= 10613 archive_expsym_cmds= 10614 compiler_needs_object=no 10615 enable_shared_with_static_runtimes=no 10616 export_dynamic_flag_spec= 10617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10618 hardcode_automatic=no 10619 hardcode_direct=no 10620 hardcode_direct_absolute=no 10621 hardcode_libdir_flag_spec= 10622 hardcode_libdir_flag_spec_ld= 10623 hardcode_libdir_separator= 10624 hardcode_minus_L=no 10625 hardcode_shlibpath_var=unsupported 10626 inherit_rpath=no 10627 link_all_deplibs=unknown 10628 module_cmds= 10629 module_expsym_cmds= 10630 old_archive_from_new_cmds= 10631 old_archive_from_expsyms_cmds= 10632 thread_safe_flag_spec= 10633 whole_archive_flag_spec= 10634 # include_expsyms should be a list of space-separated symbols to be *always* 10635 # included in the symbol list 10636 include_expsyms= 10637 # exclude_expsyms can be an extended regexp of symbols to exclude 10638 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10640 # as well as any symbol that contains `d'. 10641 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10643 # platforms (ab)use it in PIC code, but their linkers get confused if 10644 # the symbol is explicitly referenced. Since portable code cannot 10645 # rely on this symbol name, it's probably fine to never include it in 10646 # preloaded symbol tables. 10647 # Exclude shared library initialization/finalization symbols. 10648 extract_expsyms_cmds= 10649 10650 case $host_os in 10651 cygwin* | mingw* | pw32* | cegcc*) 10652 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10653 # When not using gcc, we currently assume that we are using 10654 # Microsoft Visual C++. 10655 if test "$GCC" != yes; then 10656 with_gnu_ld=no 10657 fi 10658 ;; 10659 interix*) 10660 # we just hope/assume this is gcc and not c89 (= MSVC++) 10661 with_gnu_ld=yes 10662 ;; 10663 openbsd*) 10664 with_gnu_ld=no 10665 ;; 10666 esac 10667 10668 ld_shlibs=yes 10669 if test "$with_gnu_ld" = yes; then 10670 # If archive_cmds runs LD, not CC, wlarc should be empty 10671 wlarc='${wl}' 10672 10673 # Set some defaults for GNU ld with shared library support. These 10674 # are reset later if shared libraries are not supported. Putting them 10675 # here allows them to be overridden if necessary. 10676 runpath_var=LD_RUN_PATH 10677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10678 export_dynamic_flag_spec='${wl}--export-dynamic' 10679 # ancient GNU ld didn't support --whole-archive et. al. 10680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10682 else 10683 whole_archive_flag_spec= 10684 fi 10685 supports_anon_versioning=no 10686 case `$LD -v 2>&1` in 10687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10690 *\ 2.11.*) ;; # other 2.11 versions 10691 *) supports_anon_versioning=yes ;; 10692 esac 10693 10694 # See if GNU ld supports shared libraries. 10695 case $host_os in 10696 aix[3-9]*) 10697 # On AIX/PPC, the GNU linker is very broken 10698 if test "$host_cpu" != ia64; then 10699 ld_shlibs=no 10700 cat <<_LT_EOF 1>&2 10701 10702*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10703*** to be unable to reliably create shared libraries on AIX. 10704*** Therefore, libtool is disabling shared libraries support. If you 10705*** really care for shared libraries, you may want to modify your PATH 10706*** so that a non-GNU linker is found, and then restart. 10707 10708_LT_EOF 10709 fi 10710 ;; 10711 10712 amigaos*) 10713 case $host_cpu in 10714 powerpc) 10715 # see comment about AmigaOS4 .so support 10716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10717 archive_expsym_cmds='' 10718 ;; 10719 m68k) 10720 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)' 10721 hardcode_libdir_flag_spec='-L$libdir' 10722 hardcode_minus_L=yes 10723 ;; 10724 esac 10725 ;; 10726 10727 beos*) 10728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10729 allow_undefined_flag=unsupported 10730 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10731 # support --undefined. This deserves some investigation. FIXME 10732 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10733 else 10734 ld_shlibs=no 10735 fi 10736 ;; 10737 10738 cygwin* | mingw* | pw32* | cegcc*) 10739 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10740 # as there is no search path for DLLs. 10741 hardcode_libdir_flag_spec='-L$libdir' 10742 allow_undefined_flag=unsupported 10743 always_export_symbols=no 10744 enable_shared_with_static_runtimes=yes 10745 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10746 10747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10749 # If the export-symbols file already is a .def file (1st line 10750 # is EXPORTS), use it as is; otherwise, prepend... 10751 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10752 cp $export_symbols $output_objdir/$soname.def; 10753 else 10754 echo EXPORTS > $output_objdir/$soname.def; 10755 cat $export_symbols >> $output_objdir/$soname.def; 10756 fi~ 10757 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10758 else 10759 ld_shlibs=no 10760 fi 10761 ;; 10762 10763 interix[3-9]*) 10764 hardcode_direct=no 10765 hardcode_shlibpath_var=no 10766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10767 export_dynamic_flag_spec='${wl}-E' 10768 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10769 # Instead, shared libraries are loaded at an image base (0x10000000 by 10770 # default) and relocated if they conflict, which is a slow very memory 10771 # consuming and fragmenting process. To avoid this, we pick a random, 10772 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10773 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10775 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' 10776 ;; 10777 10778 gnu* | linux* | tpf* | k*bsd*-gnu) 10779 tmp_diet=no 10780 if test "$host_os" = linux-dietlibc; then 10781 case $cc_basename in 10782 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10783 esac 10784 fi 10785 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10786 && test "$tmp_diet" = no 10787 then 10788 tmp_addflag= 10789 tmp_sharedflag='-shared' 10790 case $cc_basename,$host_cpu in 10791 pgcc*) # Portland Group C compiler 10792 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' 10793 tmp_addflag=' $pic_flag' 10794 ;; 10795 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10796 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' 10797 tmp_addflag=' $pic_flag -Mnomain' ;; 10798 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10799 tmp_addflag=' -i_dynamic' ;; 10800 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10801 tmp_addflag=' -i_dynamic -nofor_main' ;; 10802 ifc* | ifort*) # Intel Fortran compiler 10803 tmp_addflag=' -nofor_main' ;; 10804 lf95*) # Lahey Fortran 8.1 10805 whole_archive_flag_spec= 10806 tmp_sharedflag='--shared' ;; 10807 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10808 tmp_sharedflag='-qmkshrobj' 10809 tmp_addflag= ;; 10810 esac 10811 case `$CC -V 2>&1 | sed 5q` in 10812 *Sun\ C*) # Sun C 5.9 10813 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' 10814 compiler_needs_object=yes 10815 tmp_sharedflag='-G' ;; 10816 *Sun\ F*) # Sun Fortran 8.3 10817 tmp_sharedflag='-G' ;; 10818 esac 10819 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10820 10821 if test "x$supports_anon_versioning" = xyes; then 10822 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10824 echo "local: *; };" >> $output_objdir/$libname.ver~ 10825 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10826 fi 10827 10828 case $cc_basename in 10829 xlf*) 10830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10832 hardcode_libdir_flag_spec= 10833 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10834 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10835 if test "x$supports_anon_versioning" = xyes; then 10836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10838 echo "local: *; };" >> $output_objdir/$libname.ver~ 10839 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10840 fi 10841 ;; 10842 esac 10843 else 10844 ld_shlibs=no 10845 fi 10846 ;; 10847 10848 netbsd*) 10849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10850 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10851 wlarc= 10852 else 10853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10855 fi 10856 ;; 10857 10858 solaris*) 10859 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10860 ld_shlibs=no 10861 cat <<_LT_EOF 1>&2 10862 10863*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10864*** create shared libraries on Solaris systems. Therefore, libtool 10865*** is disabling shared libraries support. We urge you to upgrade GNU 10866*** binutils to release 2.9.1 or newer. Another option is to modify 10867*** your PATH or compiler configuration so that the native linker is 10868*** used, and then restart. 10869 10870_LT_EOF 10871 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10874 else 10875 ld_shlibs=no 10876 fi 10877 ;; 10878 10879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10880 case `$LD -v 2>&1` in 10881 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10882 ld_shlibs=no 10883 cat <<_LT_EOF 1>&2 10884 10885*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10886*** reliably create shared libraries on SCO systems. Therefore, libtool 10887*** is disabling shared libraries support. We urge you to upgrade GNU 10888*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10889*** your PATH or compiler configuration so that the native linker is 10890*** used, and then restart. 10891 10892_LT_EOF 10893 ;; 10894 *) 10895 # For security reasons, it is highly recommended that you always 10896 # use absolute paths for naming shared libraries, and exclude the 10897 # DT_RUNPATH tag from executables and libraries. But doing so 10898 # requires that you compile everything twice, which is a pain. 10899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10903 else 10904 ld_shlibs=no 10905 fi 10906 ;; 10907 esac 10908 ;; 10909 10910 sunos4*) 10911 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10912 wlarc= 10913 hardcode_direct=yes 10914 hardcode_shlibpath_var=no 10915 ;; 10916 10917 *) 10918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10921 else 10922 ld_shlibs=no 10923 fi 10924 ;; 10925 esac 10926 10927 if test "$ld_shlibs" = no; then 10928 runpath_var= 10929 hardcode_libdir_flag_spec= 10930 export_dynamic_flag_spec= 10931 whole_archive_flag_spec= 10932 fi 10933 else 10934 # PORTME fill in a description of your system's linker (not GNU ld) 10935 case $host_os in 10936 aix3*) 10937 allow_undefined_flag=unsupported 10938 always_export_symbols=yes 10939 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' 10940 # Note: this linker hardcodes the directories in LIBPATH if there 10941 # are no directories specified by -L. 10942 hardcode_minus_L=yes 10943 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10944 # Neither direct hardcoding nor static linking is supported with a 10945 # broken collect2. 10946 hardcode_direct=unsupported 10947 fi 10948 ;; 10949 10950 aix[4-9]*) 10951 if test "$host_cpu" = ia64; then 10952 # On IA64, the linker does run time linking by default, so we don't 10953 # have to do anything special. 10954 aix_use_runtimelinking=no 10955 exp_sym_flag='-Bexport' 10956 no_entry_flag="" 10957 else 10958 # If we're using GNU nm, then we don't want the "-C" option. 10959 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10960 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10961 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' 10962 else 10963 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' 10964 fi 10965 aix_use_runtimelinking=no 10966 10967 # Test if we are trying to use run time linking or normal 10968 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10969 # need to do runtime linking. 10970 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10971 for ld_flag in $LDFLAGS; do 10972 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10973 aix_use_runtimelinking=yes 10974 break 10975 fi 10976 done 10977 ;; 10978 esac 10979 10980 exp_sym_flag='-bexport' 10981 no_entry_flag='-bnoentry' 10982 fi 10983 10984 # When large executables or shared objects are built, AIX ld can 10985 # have problems creating the table of contents. If linking a library 10986 # or program results in "error TOC overflow" add -mminimal-toc to 10987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10989 10990 archive_cmds='' 10991 hardcode_direct=yes 10992 hardcode_direct_absolute=yes 10993 hardcode_libdir_separator=':' 10994 link_all_deplibs=yes 10995 file_list_spec='${wl}-f,' 10996 10997 if test "$GCC" = yes; then 10998 case $host_os in aix4.[012]|aix4.[012].*) 10999 # We only want to do this on AIX 4.2 and lower, the check 11000 # below for broken collect2 doesn't work under 4.3+ 11001 collect2name=`${CC} -print-prog-name=collect2` 11002 if test -f "$collect2name" && 11003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11004 then 11005 # We have reworked collect2 11006 : 11007 else 11008 # We have old collect2 11009 hardcode_direct=unsupported 11010 # It fails to find uninstalled libraries when the uninstalled 11011 # path is not listed in the libpath. Setting hardcode_minus_L 11012 # to unsupported forces relinking 11013 hardcode_minus_L=yes 11014 hardcode_libdir_flag_spec='-L$libdir' 11015 hardcode_libdir_separator= 11016 fi 11017 ;; 11018 esac 11019 shared_flag='-shared' 11020 if test "$aix_use_runtimelinking" = yes; then 11021 shared_flag="$shared_flag "'${wl}-G' 11022 fi 11023 else 11024 # not using gcc 11025 if test "$host_cpu" = ia64; then 11026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11027 # chokes on -Wl,-G. The following line is correct: 11028 shared_flag='-G' 11029 else 11030 if test "$aix_use_runtimelinking" = yes; then 11031 shared_flag='${wl}-G' 11032 else 11033 shared_flag='${wl}-bM:SRE' 11034 fi 11035 fi 11036 fi 11037 11038 export_dynamic_flag_spec='${wl}-bexpall' 11039 # It seems that -bexpall does not export symbols beginning with 11040 # underscore (_), so it is better to generate a list of symbols to export. 11041 always_export_symbols=yes 11042 if test "$aix_use_runtimelinking" = yes; then 11043 # Warning - without using the other runtime loading flags (-brtl), 11044 # -berok will link without error, but may produce a broken library. 11045 allow_undefined_flag='-berok' 11046 # Determine the default libpath from the value encoded in an 11047 # empty executable. 11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11049/* end confdefs.h. */ 11050 11051int 11052main () 11053{ 11054 11055 ; 11056 return 0; 11057} 11058_ACEOF 11059if ac_fn_c_try_link "$LINENO"; then : 11060 11061lt_aix_libpath_sed=' 11062 /Import File Strings/,/^$/ { 11063 /^0/ { 11064 s/^0 *\(.*\)$/\1/ 11065 p 11066 } 11067 }' 11068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11069# Check for a 64-bit object if we didn't find anything. 11070if test -z "$aix_libpath"; then 11071 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11072fi 11073fi 11074rm -f core conftest.err conftest.$ac_objext \ 11075 conftest$ac_exeext conftest.$ac_ext 11076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11077 11078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11079 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" 11080 else 11081 if test "$host_cpu" = ia64; then 11082 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11083 allow_undefined_flag="-z nodefs" 11084 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" 11085 else 11086 # Determine the default libpath from the value encoded in an 11087 # empty executable. 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089/* end confdefs.h. */ 11090 11091int 11092main () 11093{ 11094 11095 ; 11096 return 0; 11097} 11098_ACEOF 11099if ac_fn_c_try_link "$LINENO"; then : 11100 11101lt_aix_libpath_sed=' 11102 /Import File Strings/,/^$/ { 11103 /^0/ { 11104 s/^0 *\(.*\)$/\1/ 11105 p 11106 } 11107 }' 11108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11109# Check for a 64-bit object if we didn't find anything. 11110if test -z "$aix_libpath"; then 11111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11112fi 11113fi 11114rm -f core conftest.err conftest.$ac_objext \ 11115 conftest$ac_exeext conftest.$ac_ext 11116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11117 11118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11119 # Warning - without using the other run time loading flags, 11120 # -berok will link without error, but may produce a broken library. 11121 no_undefined_flag=' ${wl}-bernotok' 11122 allow_undefined_flag=' ${wl}-berok' 11123 # Exported symbols can be pulled into shared objects from archives 11124 whole_archive_flag_spec='$convenience' 11125 archive_cmds_need_lc=yes 11126 # This is similar to how AIX traditionally builds its shared libraries. 11127 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' 11128 fi 11129 fi 11130 ;; 11131 11132 amigaos*) 11133 case $host_cpu in 11134 powerpc) 11135 # see comment about AmigaOS4 .so support 11136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11137 archive_expsym_cmds='' 11138 ;; 11139 m68k) 11140 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)' 11141 hardcode_libdir_flag_spec='-L$libdir' 11142 hardcode_minus_L=yes 11143 ;; 11144 esac 11145 ;; 11146 11147 bsdi[45]*) 11148 export_dynamic_flag_spec=-rdynamic 11149 ;; 11150 11151 cygwin* | mingw* | pw32* | cegcc*) 11152 # When not using gcc, we currently assume that we are using 11153 # Microsoft Visual C++. 11154 # hardcode_libdir_flag_spec is actually meaningless, as there is 11155 # no search path for DLLs. 11156 hardcode_libdir_flag_spec=' ' 11157 allow_undefined_flag=unsupported 11158 # Tell ltmain to make .lib files, not .a files. 11159 libext=lib 11160 # Tell ltmain to make .dll files, not .so files. 11161 shrext_cmds=".dll" 11162 # FIXME: Setting linknames here is a bad hack. 11163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11164 # The linker will automatically build a .lib file if we build a DLL. 11165 old_archive_from_new_cmds='true' 11166 # FIXME: Should let the user specify the lib program. 11167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11168 fix_srcfile_path='`cygpath -w "$srcfile"`' 11169 enable_shared_with_static_runtimes=yes 11170 ;; 11171 11172 darwin* | rhapsody*) 11173 11174 11175 archive_cmds_need_lc=no 11176 hardcode_direct=no 11177 hardcode_automatic=yes 11178 hardcode_shlibpath_var=unsupported 11179 whole_archive_flag_spec='' 11180 link_all_deplibs=yes 11181 allow_undefined_flag="$_lt_dar_allow_undefined" 11182 case $cc_basename in 11183 ifort*) _lt_dar_can_shared=yes ;; 11184 *) _lt_dar_can_shared=$GCC ;; 11185 esac 11186 if test "$_lt_dar_can_shared" = "yes"; then 11187 output_verbose_link_cmd=echo 11188 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11189 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11190 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}" 11191 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}" 11192 11193 else 11194 ld_shlibs=no 11195 fi 11196 11197 ;; 11198 11199 dgux*) 11200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11201 hardcode_libdir_flag_spec='-L$libdir' 11202 hardcode_shlibpath_var=no 11203 ;; 11204 11205 freebsd1*) 11206 ld_shlibs=no 11207 ;; 11208 11209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11210 # support. Future versions do this automatically, but an explicit c++rt0.o 11211 # does not break anything, and helps significantly (at the cost of a little 11212 # extra space). 11213 freebsd2.2*) 11214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11215 hardcode_libdir_flag_spec='-R$libdir' 11216 hardcode_direct=yes 11217 hardcode_shlibpath_var=no 11218 ;; 11219 11220 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11221 freebsd2*) 11222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11223 hardcode_direct=yes 11224 hardcode_minus_L=yes 11225 hardcode_shlibpath_var=no 11226 ;; 11227 11228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11229 freebsd* | dragonfly*) 11230 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11231 hardcode_libdir_flag_spec='-R$libdir' 11232 hardcode_direct=yes 11233 hardcode_shlibpath_var=no 11234 ;; 11235 11236 hpux9*) 11237 if test "$GCC" = yes; then 11238 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' 11239 else 11240 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' 11241 fi 11242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11243 hardcode_libdir_separator=: 11244 hardcode_direct=yes 11245 11246 # hardcode_minus_L: Not really in the search PATH, 11247 # but as the default location of the library. 11248 hardcode_minus_L=yes 11249 export_dynamic_flag_spec='${wl}-E' 11250 ;; 11251 11252 hpux10*) 11253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11255 else 11256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11257 fi 11258 if test "$with_gnu_ld" = no; then 11259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11260 hardcode_libdir_flag_spec_ld='+b $libdir' 11261 hardcode_libdir_separator=: 11262 hardcode_direct=yes 11263 hardcode_direct_absolute=yes 11264 export_dynamic_flag_spec='${wl}-E' 11265 # hardcode_minus_L: Not really in the search PATH, 11266 # but as the default location of the library. 11267 hardcode_minus_L=yes 11268 fi 11269 ;; 11270 11271 hpux11*) 11272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11273 case $host_cpu in 11274 hppa*64*) 11275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11276 ;; 11277 ia64*) 11278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11279 ;; 11280 *) 11281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11282 ;; 11283 esac 11284 else 11285 case $host_cpu in 11286 hppa*64*) 11287 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11288 ;; 11289 ia64*) 11290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11291 ;; 11292 *) 11293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11294 ;; 11295 esac 11296 fi 11297 if test "$with_gnu_ld" = no; then 11298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11299 hardcode_libdir_separator=: 11300 11301 case $host_cpu in 11302 hppa*64*|ia64*) 11303 hardcode_direct=no 11304 hardcode_shlibpath_var=no 11305 ;; 11306 *) 11307 hardcode_direct=yes 11308 hardcode_direct_absolute=yes 11309 export_dynamic_flag_spec='${wl}-E' 11310 11311 # hardcode_minus_L: Not really in the search PATH, 11312 # but as the default location of the library. 11313 hardcode_minus_L=yes 11314 ;; 11315 esac 11316 fi 11317 ;; 11318 11319 irix5* | irix6* | nonstopux*) 11320 if test "$GCC" = yes; then 11321 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' 11322 # Try to use the -exported_symbol ld option, if it does not 11323 # work, assume that -exports_file does not work either and 11324 # implicitly export all symbols. 11325 save_LDFLAGS="$LDFLAGS" 11326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329int foo(void) {} 11330_ACEOF 11331if ac_fn_c_try_link "$LINENO"; then : 11332 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' 11333 11334fi 11335rm -f core conftest.err conftest.$ac_objext \ 11336 conftest$ac_exeext conftest.$ac_ext 11337 LDFLAGS="$save_LDFLAGS" 11338 else 11339 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' 11340 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' 11341 fi 11342 archive_cmds_need_lc='no' 11343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11344 hardcode_libdir_separator=: 11345 inherit_rpath=yes 11346 link_all_deplibs=yes 11347 ;; 11348 11349 netbsd*) 11350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11352 else 11353 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11354 fi 11355 hardcode_libdir_flag_spec='-R$libdir' 11356 hardcode_direct=yes 11357 hardcode_shlibpath_var=no 11358 ;; 11359 11360 newsos6) 11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11362 hardcode_direct=yes 11363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11364 hardcode_libdir_separator=: 11365 hardcode_shlibpath_var=no 11366 ;; 11367 11368 *nto* | *qnx*) 11369 ;; 11370 11371 openbsd*) 11372 if test -f /usr/libexec/ld.so; then 11373 hardcode_direct=yes 11374 hardcode_shlibpath_var=no 11375 hardcode_direct_absolute=yes 11376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11378 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11380 export_dynamic_flag_spec='${wl}-E' 11381 else 11382 case $host_os in 11383 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11385 hardcode_libdir_flag_spec='-R$libdir' 11386 ;; 11387 *) 11388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11390 ;; 11391 esac 11392 fi 11393 else 11394 ld_shlibs=no 11395 fi 11396 ;; 11397 11398 os2*) 11399 hardcode_libdir_flag_spec='-L$libdir' 11400 hardcode_minus_L=yes 11401 allow_undefined_flag=unsupported 11402 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' 11403 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11404 ;; 11405 11406 osf3*) 11407 if test "$GCC" = yes; then 11408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11409 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' 11410 else 11411 allow_undefined_flag=' -expect_unresolved \*' 11412 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' 11413 fi 11414 archive_cmds_need_lc='no' 11415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11416 hardcode_libdir_separator=: 11417 ;; 11418 11419 osf4* | osf5*) # as osf3* with the addition of -msym flag 11420 if test "$GCC" = yes; then 11421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11422 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' 11423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11424 else 11425 allow_undefined_flag=' -expect_unresolved \*' 11426 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' 11427 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~ 11428 $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' 11429 11430 # Both c and cxx compiler support -rpath directly 11431 hardcode_libdir_flag_spec='-rpath $libdir' 11432 fi 11433 archive_cmds_need_lc='no' 11434 hardcode_libdir_separator=: 11435 ;; 11436 11437 solaris*) 11438 no_undefined_flag=' -z defs' 11439 if test "$GCC" = yes; then 11440 wlarc='${wl}' 11441 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11443 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11444 else 11445 case `$CC -V 2>&1` in 11446 *"Compilers 5.0"*) 11447 wlarc='' 11448 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11451 ;; 11452 *) 11453 wlarc='${wl}' 11454 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11456 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11457 ;; 11458 esac 11459 fi 11460 hardcode_libdir_flag_spec='-R$libdir' 11461 hardcode_shlibpath_var=no 11462 case $host_os in 11463 solaris2.[0-5] | solaris2.[0-5].*) ;; 11464 *) 11465 # The compiler driver will combine and reorder linker options, 11466 # but understands `-z linker_flag'. GCC discards it without `$wl', 11467 # but is careful enough not to reorder. 11468 # Supported since Solaris 2.6 (maybe 2.5.1?) 11469 if test "$GCC" = yes; then 11470 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11471 else 11472 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11473 fi 11474 ;; 11475 esac 11476 link_all_deplibs=yes 11477 ;; 11478 11479 sunos4*) 11480 if test "x$host_vendor" = xsequent; then 11481 # Use $CC to link under sequent, because it throws in some extra .o 11482 # files that make .init and .fini sections work. 11483 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11484 else 11485 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11486 fi 11487 hardcode_libdir_flag_spec='-L$libdir' 11488 hardcode_direct=yes 11489 hardcode_minus_L=yes 11490 hardcode_shlibpath_var=no 11491 ;; 11492 11493 sysv4) 11494 case $host_vendor in 11495 sni) 11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11497 hardcode_direct=yes # is this really true??? 11498 ;; 11499 siemens) 11500 ## LD is ld it makes a PLAMLIB 11501 ## CC just makes a GrossModule. 11502 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11503 reload_cmds='$CC -r -o $output$reload_objs' 11504 hardcode_direct=no 11505 ;; 11506 motorola) 11507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11508 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11509 ;; 11510 esac 11511 runpath_var='LD_RUN_PATH' 11512 hardcode_shlibpath_var=no 11513 ;; 11514 11515 sysv4.3*) 11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11517 hardcode_shlibpath_var=no 11518 export_dynamic_flag_spec='-Bexport' 11519 ;; 11520 11521 sysv4*MP*) 11522 if test -d /usr/nec; then 11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11524 hardcode_shlibpath_var=no 11525 runpath_var=LD_RUN_PATH 11526 hardcode_runpath_var=yes 11527 ld_shlibs=yes 11528 fi 11529 ;; 11530 11531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11532 no_undefined_flag='${wl}-z,text' 11533 archive_cmds_need_lc=no 11534 hardcode_shlibpath_var=no 11535 runpath_var='LD_RUN_PATH' 11536 11537 if test "$GCC" = yes; then 11538 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11539 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11540 else 11541 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11542 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11543 fi 11544 ;; 11545 11546 sysv5* | sco3.2v5* | sco5v6*) 11547 # Note: We can NOT use -z defs as we might desire, because we do not 11548 # link with -lc, and that would cause any symbols used from libc to 11549 # always be unresolved, which means just about no library would 11550 # ever link correctly. If we're not using GNU ld we use -z text 11551 # though, which does catch some bad symbols but isn't as heavy-handed 11552 # as -z defs. 11553 no_undefined_flag='${wl}-z,text' 11554 allow_undefined_flag='${wl}-z,nodefs' 11555 archive_cmds_need_lc=no 11556 hardcode_shlibpath_var=no 11557 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11558 hardcode_libdir_separator=':' 11559 link_all_deplibs=yes 11560 export_dynamic_flag_spec='${wl}-Bexport' 11561 runpath_var='LD_RUN_PATH' 11562 11563 if test "$GCC" = yes; then 11564 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11565 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11566 else 11567 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11568 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11569 fi 11570 ;; 11571 11572 uts4*) 11573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11574 hardcode_libdir_flag_spec='-L$libdir' 11575 hardcode_shlibpath_var=no 11576 ;; 11577 11578 *) 11579 ld_shlibs=no 11580 ;; 11581 esac 11582 11583 if test x$host_vendor = xsni; then 11584 case $host in 11585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11586 export_dynamic_flag_spec='${wl}-Blargedynsym' 11587 ;; 11588 esac 11589 fi 11590 fi 11591 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11593$as_echo "$ld_shlibs" >&6; } 11594test "$ld_shlibs" = no && can_build_shared=no 11595 11596with_gnu_ld=$with_gnu_ld 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612# 11613# Do we need to explicitly link libc? 11614# 11615case "x$archive_cmds_need_lc" in 11616x|xyes) 11617 # Assume -lc should be added 11618 archive_cmds_need_lc=yes 11619 11620 if test "$enable_shared" = yes && test "$GCC" = yes; then 11621 case $archive_cmds in 11622 *'~'*) 11623 # FIXME: we may have to deal with multi-command sequences. 11624 ;; 11625 '$CC '*) 11626 # Test whether the compiler implicitly links with -lc since on some 11627 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11628 # to ld, don't add -lc before -lgcc. 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11630$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11631 $RM conftest* 11632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11633 11634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11635 (eval $ac_compile) 2>&5 11636 ac_status=$? 11637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11638 test $ac_status = 0; } 2>conftest.err; then 11639 soname=conftest 11640 lib=conftest 11641 libobjs=conftest.$ac_objext 11642 deplibs= 11643 wl=$lt_prog_compiler_wl 11644 pic_flag=$lt_prog_compiler_pic 11645 compiler_flags=-v 11646 linker_flags=-v 11647 verstring= 11648 output_objdir=. 11649 libname=conftest 11650 lt_save_allow_undefined_flag=$allow_undefined_flag 11651 allow_undefined_flag= 11652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11653 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11654 ac_status=$? 11655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11656 test $ac_status = 0; } 11657 then 11658 archive_cmds_need_lc=no 11659 else 11660 archive_cmds_need_lc=yes 11661 fi 11662 allow_undefined_flag=$lt_save_allow_undefined_flag 11663 else 11664 cat conftest.err 1>&5 11665 fi 11666 $RM conftest* 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 11668$as_echo "$archive_cmds_need_lc" >&6; } 11669 ;; 11670 esac 11671 fi 11672 ;; 11673esac 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11832$as_echo_n "checking dynamic linker characteristics... " >&6; } 11833 11834if test "$GCC" = yes; then 11835 case $host_os in 11836 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11837 *) lt_awk_arg="/^libraries:/" ;; 11838 esac 11839 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11840 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 11841 # if the path contains ";" then we assume it to be the separator 11842 # otherwise default to the standard path separator (i.e. ":") - it is 11843 # assumed that no part of a normal pathname contains ";" but that should 11844 # okay in the real world where ";" in dirpaths is itself problematic. 11845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 11846 else 11847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11848 fi 11849 # Ok, now we have the path, separated by spaces, we can step through it 11850 # and add multilib dir if necessary. 11851 lt_tmp_lt_search_path_spec= 11852 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11853 for lt_sys_path in $lt_search_path_spec; do 11854 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11855 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11856 else 11857 test -d "$lt_sys_path" && \ 11858 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11859 fi 11860 done 11861 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 11862BEGIN {RS=" "; FS="/|\n";} { 11863 lt_foo=""; 11864 lt_count=0; 11865 for (lt_i = NF; lt_i > 0; lt_i--) { 11866 if ($lt_i != "" && $lt_i != ".") { 11867 if ($lt_i == "..") { 11868 lt_count++; 11869 } else { 11870 if (lt_count == 0) { 11871 lt_foo="/" $lt_i lt_foo; 11872 } else { 11873 lt_count--; 11874 } 11875 } 11876 } 11877 } 11878 if (lt_foo != "") { lt_freq[lt_foo]++; } 11879 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11880}'` 11881 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 11882else 11883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11884fi 11885library_names_spec= 11886libname_spec='lib$name' 11887soname_spec= 11888shrext_cmds=".so" 11889postinstall_cmds= 11890postuninstall_cmds= 11891finish_cmds= 11892finish_eval= 11893shlibpath_var= 11894shlibpath_overrides_runpath=unknown 11895version_type=none 11896dynamic_linker="$host_os ld.so" 11897sys_lib_dlsearch_path_spec="/lib /usr/lib" 11898need_lib_prefix=unknown 11899hardcode_into_libs=no 11900 11901# when you set need_version to no, make sure it does not cause -set_version 11902# flags to be left without arguments 11903need_version=unknown 11904 11905case $host_os in 11906aix3*) 11907 version_type=linux 11908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11909 shlibpath_var=LIBPATH 11910 11911 # AIX 3 has no versioning support, so we append a major version to the name. 11912 soname_spec='${libname}${release}${shared_ext}$major' 11913 ;; 11914 11915aix[4-9]*) 11916 version_type=linux 11917 need_lib_prefix=no 11918 need_version=no 11919 hardcode_into_libs=yes 11920 if test "$host_cpu" = ia64; then 11921 # AIX 5 supports IA64 11922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 else 11925 # With GCC up to 2.95.x, collect2 would create an import file 11926 # for dependence libraries. The import file would start with 11927 # the line `#! .'. This would cause the generated library to 11928 # depend on `.', always an invalid library. This was fixed in 11929 # development snapshots of GCC prior to 3.0. 11930 case $host_os in 11931 aix4 | aix4.[01] | aix4.[01].*) 11932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11933 echo ' yes ' 11934 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11935 : 11936 else 11937 can_build_shared=no 11938 fi 11939 ;; 11940 esac 11941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11942 # soname into executable. Probably we can add versioning support to 11943 # collect2, so additional links can be useful in future. 11944 if test "$aix_use_runtimelinking" = yes; then 11945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11946 # instead of lib<name>.a to let people know that these are not 11947 # typical AIX shared libraries. 11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11949 else 11950 # We preserve .a as extension for shared libraries through AIX4.2 11951 # and later when we are not doing run time linking. 11952 library_names_spec='${libname}${release}.a $libname.a' 11953 soname_spec='${libname}${release}${shared_ext}$major' 11954 fi 11955 shlibpath_var=LIBPATH 11956 fi 11957 ;; 11958 11959amigaos*) 11960 case $host_cpu in 11961 powerpc) 11962 # Since July 2007 AmigaOS4 officially supports .so libraries. 11963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11965 ;; 11966 m68k) 11967 library_names_spec='$libname.ixlibrary $libname.a' 11968 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11969 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' 11970 ;; 11971 esac 11972 ;; 11973 11974beos*) 11975 library_names_spec='${libname}${shared_ext}' 11976 dynamic_linker="$host_os ld.so" 11977 shlibpath_var=LIBRARY_PATH 11978 ;; 11979 11980bsdi[45]*) 11981 version_type=linux 11982 need_version=no 11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11984 soname_spec='${libname}${release}${shared_ext}$major' 11985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11986 shlibpath_var=LD_LIBRARY_PATH 11987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11989 # the default ld.so.conf also contains /usr/contrib/lib and 11990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11991 # libtool to hard-code these into programs 11992 ;; 11993 11994cygwin* | mingw* | pw32* | cegcc*) 11995 version_type=windows 11996 shrext_cmds=".dll" 11997 need_version=no 11998 need_lib_prefix=no 11999 12000 case $GCC,$host_os in 12001 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 12002 library_names_spec='$libname.dll.a' 12003 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12004 postinstall_cmds='base_file=`basename \${file}`~ 12005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12006 dldir=$destdir/`dirname \$dlpath`~ 12007 test -d \$dldir || mkdir -p \$dldir~ 12008 $install_prog $dir/$dlname \$dldir/$dlname~ 12009 chmod a+x \$dldir/$dlname~ 12010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12012 fi' 12013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12014 dlpath=$dir/\$dldll~ 12015 $RM \$dlpath' 12016 shlibpath_overrides_runpath=yes 12017 12018 case $host_os in 12019 cygwin*) 12020 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12023 ;; 12024 mingw* | cegcc*) 12025 # MinGW DLLs use traditional 'lib' prefix 12026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12027 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12029 # It is most probably a Windows format PATH printed by 12030 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12031 # path with ; separators, and with drive letters. We can handle the 12032 # drive letters (cygwin fileutils understands them), so leave them, 12033 # especially as we might pass files found there to a mingw objdump, 12034 # which wouldn't understand a cygwinified path. Ahh. 12035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12036 else 12037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12038 fi 12039 ;; 12040 pw32*) 12041 # pw32 DLLs use 'pw' prefix rather than 'lib' 12042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12043 ;; 12044 esac 12045 ;; 12046 12047 *) 12048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12049 ;; 12050 esac 12051 dynamic_linker='Win32 ld.exe' 12052 # FIXME: first we should search . and the directory the executable is in 12053 shlibpath_var=PATH 12054 ;; 12055 12056darwin* | rhapsody*) 12057 dynamic_linker="$host_os dyld" 12058 version_type=darwin 12059 need_lib_prefix=no 12060 need_version=no 12061 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12062 soname_spec='${libname}${release}${major}$shared_ext' 12063 shlibpath_overrides_runpath=yes 12064 shlibpath_var=DYLD_LIBRARY_PATH 12065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12066 12067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12069 ;; 12070 12071dgux*) 12072 version_type=linux 12073 need_lib_prefix=no 12074 need_version=no 12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12076 soname_spec='${libname}${release}${shared_ext}$major' 12077 shlibpath_var=LD_LIBRARY_PATH 12078 ;; 12079 12080freebsd1*) 12081 dynamic_linker=no 12082 ;; 12083 12084freebsd* | dragonfly*) 12085 # DragonFly does not have aout. When/if they implement a new 12086 # versioning mechanism, adjust this. 12087 if test -x /usr/bin/objformat; then 12088 objformat=`/usr/bin/objformat` 12089 else 12090 case $host_os in 12091 freebsd[123]*) objformat=aout ;; 12092 *) objformat=elf ;; 12093 esac 12094 fi 12095 version_type=freebsd-$objformat 12096 case $version_type in 12097 freebsd-elf*) 12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12099 need_version=no 12100 need_lib_prefix=no 12101 ;; 12102 freebsd-*) 12103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12104 need_version=yes 12105 ;; 12106 esac 12107 shlibpath_var=LD_LIBRARY_PATH 12108 case $host_os in 12109 freebsd2*) 12110 shlibpath_overrides_runpath=yes 12111 ;; 12112 freebsd3.[01]* | freebsdelf3.[01]*) 12113 shlibpath_overrides_runpath=yes 12114 hardcode_into_libs=yes 12115 ;; 12116 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12117 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12118 shlibpath_overrides_runpath=no 12119 hardcode_into_libs=yes 12120 ;; 12121 *) # from 4.6 on, and DragonFly 12122 shlibpath_overrides_runpath=yes 12123 hardcode_into_libs=yes 12124 ;; 12125 esac 12126 ;; 12127 12128gnu*) 12129 version_type=linux 12130 need_lib_prefix=no 12131 need_version=no 12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12133 soname_spec='${libname}${release}${shared_ext}$major' 12134 shlibpath_var=LD_LIBRARY_PATH 12135 hardcode_into_libs=yes 12136 ;; 12137 12138hpux9* | hpux10* | hpux11*) 12139 # Give a soname corresponding to the major version so that dld.sl refuses to 12140 # link against other versions. 12141 version_type=sunos 12142 need_lib_prefix=no 12143 need_version=no 12144 case $host_cpu in 12145 ia64*) 12146 shrext_cmds='.so' 12147 hardcode_into_libs=yes 12148 dynamic_linker="$host_os dld.so" 12149 shlibpath_var=LD_LIBRARY_PATH 12150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12152 soname_spec='${libname}${release}${shared_ext}$major' 12153 if test "X$HPUX_IA64_MODE" = X32; then 12154 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12155 else 12156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12157 fi 12158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12159 ;; 12160 hppa*64*) 12161 shrext_cmds='.sl' 12162 hardcode_into_libs=yes 12163 dynamic_linker="$host_os dld.sl" 12164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12167 soname_spec='${libname}${release}${shared_ext}$major' 12168 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12170 ;; 12171 *) 12172 shrext_cmds='.sl' 12173 dynamic_linker="$host_os dld.sl" 12174 shlibpath_var=SHLIB_PATH 12175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12177 soname_spec='${libname}${release}${shared_ext}$major' 12178 ;; 12179 esac 12180 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12181 postinstall_cmds='chmod 555 $lib' 12182 ;; 12183 12184interix[3-9]*) 12185 version_type=linux 12186 need_lib_prefix=no 12187 need_version=no 12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12189 soname_spec='${libname}${release}${shared_ext}$major' 12190 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12191 shlibpath_var=LD_LIBRARY_PATH 12192 shlibpath_overrides_runpath=no 12193 hardcode_into_libs=yes 12194 ;; 12195 12196irix5* | irix6* | nonstopux*) 12197 case $host_os in 12198 nonstopux*) version_type=nonstopux ;; 12199 *) 12200 if test "$lt_cv_prog_gnu_ld" = yes; then 12201 version_type=linux 12202 else 12203 version_type=irix 12204 fi ;; 12205 esac 12206 need_lib_prefix=no 12207 need_version=no 12208 soname_spec='${libname}${release}${shared_ext}$major' 12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12210 case $host_os in 12211 irix5* | nonstopux*) 12212 libsuff= shlibsuff= 12213 ;; 12214 *) 12215 case $LD in # libtool.m4 will add one of these switches to LD 12216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12217 libsuff= shlibsuff= libmagic=32-bit;; 12218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12219 libsuff=32 shlibsuff=N32 libmagic=N32;; 12220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12221 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12222 *) libsuff= shlibsuff= libmagic=never-match;; 12223 esac 12224 ;; 12225 esac 12226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12227 shlibpath_overrides_runpath=no 12228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12230 hardcode_into_libs=yes 12231 ;; 12232 12233# No shared lib support for Linux oldld, aout, or coff. 12234linux*oldld* | linux*aout* | linux*coff*) 12235 dynamic_linker=no 12236 ;; 12237 12238# This must be Linux ELF. 12239linux* | k*bsd*-gnu) 12240 version_type=linux 12241 need_lib_prefix=no 12242 need_version=no 12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12244 soname_spec='${libname}${release}${shared_ext}$major' 12245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 shlibpath_overrides_runpath=no 12248 # Some binutils ld are patched to set DT_RUNPATH 12249 save_LDFLAGS=$LDFLAGS 12250 save_libdir=$libdir 12251 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12252 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254/* end confdefs.h. */ 12255 12256int 12257main () 12258{ 12259 12260 ; 12261 return 0; 12262} 12263_ACEOF 12264if ac_fn_c_try_link "$LINENO"; then : 12265 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12266 shlibpath_overrides_runpath=yes 12267fi 12268fi 12269rm -f core conftest.err conftest.$ac_objext \ 12270 conftest$ac_exeext conftest.$ac_ext 12271 LDFLAGS=$save_LDFLAGS 12272 libdir=$save_libdir 12273 12274 # This implies no fast_install, which is unacceptable. 12275 # Some rework will be needed to allow for fast_install 12276 # before this can be enabled. 12277 hardcode_into_libs=yes 12278 12279 # Append ld.so.conf contents to the search path 12280 if test -f /etc/ld.so.conf; then 12281 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' ' '` 12282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12283 fi 12284 12285 # We used to test for /lib/ld.so.1 and disable shared libraries on 12286 # powerpc, because MkLinux only supported shared libraries with the 12287 # GNU dynamic linker. Since this was broken with cross compilers, 12288 # most powerpc-linux boxes support dynamic linking these days and 12289 # people can always --disable-shared, the test was removed, and we 12290 # assume the GNU/Linux dynamic linker is in use. 12291 dynamic_linker='GNU/Linux ld.so' 12292 ;; 12293 12294netbsd*) 12295 version_type=sunos 12296 need_lib_prefix=no 12297 need_version=no 12298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12301 dynamic_linker='NetBSD (a.out) ld.so' 12302 else 12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12304 soname_spec='${libname}${release}${shared_ext}$major' 12305 dynamic_linker='NetBSD ld.elf_so' 12306 fi 12307 shlibpath_var=LD_LIBRARY_PATH 12308 shlibpath_overrides_runpath=yes 12309 hardcode_into_libs=yes 12310 ;; 12311 12312newsos6) 12313 version_type=linux 12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12315 shlibpath_var=LD_LIBRARY_PATH 12316 shlibpath_overrides_runpath=yes 12317 ;; 12318 12319*nto* | *qnx*) 12320 version_type=qnx 12321 need_lib_prefix=no 12322 need_version=no 12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12324 soname_spec='${libname}${release}${shared_ext}$major' 12325 shlibpath_var=LD_LIBRARY_PATH 12326 shlibpath_overrides_runpath=no 12327 hardcode_into_libs=yes 12328 dynamic_linker='ldqnx.so' 12329 ;; 12330 12331openbsd*) 12332 version_type=sunos 12333 sys_lib_dlsearch_path_spec="/usr/lib" 12334 need_lib_prefix=no 12335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12336 case $host_os in 12337 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12338 *) need_version=no ;; 12339 esac 12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12342 shlibpath_var=LD_LIBRARY_PATH 12343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12344 case $host_os in 12345 openbsd2.[89] | openbsd2.[89].*) 12346 shlibpath_overrides_runpath=no 12347 ;; 12348 *) 12349 shlibpath_overrides_runpath=yes 12350 ;; 12351 esac 12352 else 12353 shlibpath_overrides_runpath=yes 12354 fi 12355 ;; 12356 12357os2*) 12358 libname_spec='$name' 12359 shrext_cmds=".dll" 12360 need_lib_prefix=no 12361 library_names_spec='$libname${shared_ext} $libname.a' 12362 dynamic_linker='OS/2 ld.exe' 12363 shlibpath_var=LIBPATH 12364 ;; 12365 12366osf3* | osf4* | osf5*) 12367 version_type=osf 12368 need_lib_prefix=no 12369 need_version=no 12370 soname_spec='${libname}${release}${shared_ext}$major' 12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12372 shlibpath_var=LD_LIBRARY_PATH 12373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12375 ;; 12376 12377rdos*) 12378 dynamic_linker=no 12379 ;; 12380 12381solaris*) 12382 version_type=linux 12383 need_lib_prefix=no 12384 need_version=no 12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12386 soname_spec='${libname}${release}${shared_ext}$major' 12387 shlibpath_var=LD_LIBRARY_PATH 12388 shlibpath_overrides_runpath=yes 12389 hardcode_into_libs=yes 12390 # ldd complains unless libraries are executable 12391 postinstall_cmds='chmod +x $lib' 12392 ;; 12393 12394sunos4*) 12395 version_type=sunos 12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12398 shlibpath_var=LD_LIBRARY_PATH 12399 shlibpath_overrides_runpath=yes 12400 if test "$with_gnu_ld" = yes; then 12401 need_lib_prefix=no 12402 fi 12403 need_version=yes 12404 ;; 12405 12406sysv4 | sysv4.3*) 12407 version_type=linux 12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12409 soname_spec='${libname}${release}${shared_ext}$major' 12410 shlibpath_var=LD_LIBRARY_PATH 12411 case $host_vendor in 12412 sni) 12413 shlibpath_overrides_runpath=no 12414 need_lib_prefix=no 12415 runpath_var=LD_RUN_PATH 12416 ;; 12417 siemens) 12418 need_lib_prefix=no 12419 ;; 12420 motorola) 12421 need_lib_prefix=no 12422 need_version=no 12423 shlibpath_overrides_runpath=no 12424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12425 ;; 12426 esac 12427 ;; 12428 12429sysv4*MP*) 12430 if test -d /usr/nec ;then 12431 version_type=linux 12432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12433 soname_spec='$libname${shared_ext}.$major' 12434 shlibpath_var=LD_LIBRARY_PATH 12435 fi 12436 ;; 12437 12438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12439 version_type=freebsd-elf 12440 need_lib_prefix=no 12441 need_version=no 12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12443 soname_spec='${libname}${release}${shared_ext}$major' 12444 shlibpath_var=LD_LIBRARY_PATH 12445 shlibpath_overrides_runpath=yes 12446 hardcode_into_libs=yes 12447 if test "$with_gnu_ld" = yes; then 12448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12449 else 12450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12451 case $host_os in 12452 sco3.2v5*) 12453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12454 ;; 12455 esac 12456 fi 12457 sys_lib_dlsearch_path_spec='/usr/lib' 12458 ;; 12459 12460tpf*) 12461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12462 version_type=linux 12463 need_lib_prefix=no 12464 need_version=no 12465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12466 shlibpath_var=LD_LIBRARY_PATH 12467 shlibpath_overrides_runpath=no 12468 hardcode_into_libs=yes 12469 ;; 12470 12471uts4*) 12472 version_type=linux 12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12474 soname_spec='${libname}${release}${shared_ext}$major' 12475 shlibpath_var=LD_LIBRARY_PATH 12476 ;; 12477 12478*) 12479 dynamic_linker=no 12480 ;; 12481esac 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12483$as_echo "$dynamic_linker" >&6; } 12484test "$dynamic_linker" = no && can_build_shared=no 12485 12486variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12487if test "$GCC" = yes; then 12488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12489fi 12490 12491if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12493fi 12494if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12496fi 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12585$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12586hardcode_action= 12587if test -n "$hardcode_libdir_flag_spec" || 12588 test -n "$runpath_var" || 12589 test "X$hardcode_automatic" = "Xyes" ; then 12590 12591 # We can hardcode non-existent directories. 12592 if test "$hardcode_direct" != no && 12593 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12594 # have to relink, otherwise we might link with an installed library 12595 # when we should be linking with a yet-to-be-installed one 12596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12597 test "$hardcode_minus_L" != no; then 12598 # Linking always hardcodes the temporary library directory. 12599 hardcode_action=relink 12600 else 12601 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12602 hardcode_action=immediate 12603 fi 12604else 12605 # We cannot hardcode anything, or else we can only hardcode existing 12606 # directories. 12607 hardcode_action=unsupported 12608fi 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12610$as_echo "$hardcode_action" >&6; } 12611 12612if test "$hardcode_action" = relink || 12613 test "$inherit_rpath" = yes; then 12614 # Fast installation is not supported 12615 enable_fast_install=no 12616elif test "$shlibpath_overrides_runpath" = yes || 12617 test "$enable_shared" = no; then 12618 # Fast installation is not necessary 12619 enable_fast_install=needless 12620fi 12621 12622 12623 12624 12625 12626 12627 if test "x$enable_dlopen" != xyes; then 12628 enable_dlopen=unknown 12629 enable_dlopen_self=unknown 12630 enable_dlopen_self_static=unknown 12631else 12632 lt_cv_dlopen=no 12633 lt_cv_dlopen_libs= 12634 12635 case $host_os in 12636 beos*) 12637 lt_cv_dlopen="load_add_on" 12638 lt_cv_dlopen_libs= 12639 lt_cv_dlopen_self=yes 12640 ;; 12641 12642 mingw* | pw32* | cegcc*) 12643 lt_cv_dlopen="LoadLibrary" 12644 lt_cv_dlopen_libs= 12645 ;; 12646 12647 cygwin*) 12648 lt_cv_dlopen="dlopen" 12649 lt_cv_dlopen_libs= 12650 ;; 12651 12652 darwin*) 12653 # if libdl is installed we need to link against it 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12655$as_echo_n "checking for dlopen in -ldl... " >&6; } 12656if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12657 $as_echo_n "(cached) " >&6 12658else 12659 ac_check_lib_save_LIBS=$LIBS 12660LIBS="-ldl $LIBS" 12661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12662/* end confdefs.h. */ 12663 12664/* Override any GCC internal prototype to avoid an error. 12665 Use char because int might match the return type of a GCC 12666 builtin and then its argument prototype would still apply. */ 12667#ifdef __cplusplus 12668extern "C" 12669#endif 12670char dlopen (); 12671int 12672main () 12673{ 12674return dlopen (); 12675 ; 12676 return 0; 12677} 12678_ACEOF 12679if ac_fn_c_try_link "$LINENO"; then : 12680 ac_cv_lib_dl_dlopen=yes 12681else 12682 ac_cv_lib_dl_dlopen=no 12683fi 12684rm -f core conftest.err conftest.$ac_objext \ 12685 conftest$ac_exeext conftest.$ac_ext 12686LIBS=$ac_check_lib_save_LIBS 12687fi 12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12689$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12690if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12692else 12693 12694 lt_cv_dlopen="dyld" 12695 lt_cv_dlopen_libs= 12696 lt_cv_dlopen_self=yes 12697 12698fi 12699 12700 ;; 12701 12702 *) 12703 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12704if test "x$ac_cv_func_shl_load" = x""yes; then : 12705 lt_cv_dlopen="shl_load" 12706else 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12708$as_echo_n "checking for shl_load in -ldld... " >&6; } 12709if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 ac_check_lib_save_LIBS=$LIBS 12713LIBS="-ldld $LIBS" 12714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715/* end confdefs.h. */ 12716 12717/* Override any GCC internal prototype to avoid an error. 12718 Use char because int might match the return type of a GCC 12719 builtin and then its argument prototype would still apply. */ 12720#ifdef __cplusplus 12721extern "C" 12722#endif 12723char shl_load (); 12724int 12725main () 12726{ 12727return shl_load (); 12728 ; 12729 return 0; 12730} 12731_ACEOF 12732if ac_fn_c_try_link "$LINENO"; then : 12733 ac_cv_lib_dld_shl_load=yes 12734else 12735 ac_cv_lib_dld_shl_load=no 12736fi 12737rm -f core conftest.err conftest.$ac_objext \ 12738 conftest$ac_exeext conftest.$ac_ext 12739LIBS=$ac_check_lib_save_LIBS 12740fi 12741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12742$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12743if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 12744 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12745else 12746 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12747if test "x$ac_cv_func_dlopen" = x""yes; then : 12748 lt_cv_dlopen="dlopen" 12749else 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12751$as_echo_n "checking for dlopen in -ldl... " >&6; } 12752if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12753 $as_echo_n "(cached) " >&6 12754else 12755 ac_check_lib_save_LIBS=$LIBS 12756LIBS="-ldl $LIBS" 12757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12758/* end confdefs.h. */ 12759 12760/* Override any GCC internal prototype to avoid an error. 12761 Use char because int might match the return type of a GCC 12762 builtin and then its argument prototype would still apply. */ 12763#ifdef __cplusplus 12764extern "C" 12765#endif 12766char dlopen (); 12767int 12768main () 12769{ 12770return dlopen (); 12771 ; 12772 return 0; 12773} 12774_ACEOF 12775if ac_fn_c_try_link "$LINENO"; then : 12776 ac_cv_lib_dl_dlopen=yes 12777else 12778 ac_cv_lib_dl_dlopen=no 12779fi 12780rm -f core conftest.err conftest.$ac_objext \ 12781 conftest$ac_exeext conftest.$ac_ext 12782LIBS=$ac_check_lib_save_LIBS 12783fi 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12785$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12786if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12788else 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12790$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12791if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12792 $as_echo_n "(cached) " >&6 12793else 12794 ac_check_lib_save_LIBS=$LIBS 12795LIBS="-lsvld $LIBS" 12796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799/* Override any GCC internal prototype to avoid an error. 12800 Use char because int might match the return type of a GCC 12801 builtin and then its argument prototype would still apply. */ 12802#ifdef __cplusplus 12803extern "C" 12804#endif 12805char dlopen (); 12806int 12807main () 12808{ 12809return dlopen (); 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814if ac_fn_c_try_link "$LINENO"; then : 12815 ac_cv_lib_svld_dlopen=yes 12816else 12817 ac_cv_lib_svld_dlopen=no 12818fi 12819rm -f core conftest.err conftest.$ac_objext \ 12820 conftest$ac_exeext conftest.$ac_ext 12821LIBS=$ac_check_lib_save_LIBS 12822fi 12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12824$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12825if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12827else 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12829$as_echo_n "checking for dld_link in -ldld... " >&6; } 12830if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12831 $as_echo_n "(cached) " >&6 12832else 12833 ac_check_lib_save_LIBS=$LIBS 12834LIBS="-ldld $LIBS" 12835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12836/* end confdefs.h. */ 12837 12838/* Override any GCC internal prototype to avoid an error. 12839 Use char because int might match the return type of a GCC 12840 builtin and then its argument prototype would still apply. */ 12841#ifdef __cplusplus 12842extern "C" 12843#endif 12844char dld_link (); 12845int 12846main () 12847{ 12848return dld_link (); 12849 ; 12850 return 0; 12851} 12852_ACEOF 12853if ac_fn_c_try_link "$LINENO"; then : 12854 ac_cv_lib_dld_dld_link=yes 12855else 12856 ac_cv_lib_dld_dld_link=no 12857fi 12858rm -f core conftest.err conftest.$ac_objext \ 12859 conftest$ac_exeext conftest.$ac_ext 12860LIBS=$ac_check_lib_save_LIBS 12861fi 12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12863$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12864if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12865 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12866fi 12867 12868 12869fi 12870 12871 12872fi 12873 12874 12875fi 12876 12877 12878fi 12879 12880 12881fi 12882 12883 ;; 12884 esac 12885 12886 if test "x$lt_cv_dlopen" != xno; then 12887 enable_dlopen=yes 12888 else 12889 enable_dlopen=no 12890 fi 12891 12892 case $lt_cv_dlopen in 12893 dlopen) 12894 save_CPPFLAGS="$CPPFLAGS" 12895 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12896 12897 save_LDFLAGS="$LDFLAGS" 12898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12899 12900 save_LIBS="$LIBS" 12901 LIBS="$lt_cv_dlopen_libs $LIBS" 12902 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12904$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12905if test "${lt_cv_dlopen_self+set}" = set; then : 12906 $as_echo_n "(cached) " >&6 12907else 12908 if test "$cross_compiling" = yes; then : 12909 lt_cv_dlopen_self=cross 12910else 12911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12912 lt_status=$lt_dlunknown 12913 cat > conftest.$ac_ext <<_LT_EOF 12914#line 12914 "configure" 12915#include "confdefs.h" 12916 12917#if HAVE_DLFCN_H 12918#include <dlfcn.h> 12919#endif 12920 12921#include <stdio.h> 12922 12923#ifdef RTLD_GLOBAL 12924# define LT_DLGLOBAL RTLD_GLOBAL 12925#else 12926# ifdef DL_GLOBAL 12927# define LT_DLGLOBAL DL_GLOBAL 12928# else 12929# define LT_DLGLOBAL 0 12930# endif 12931#endif 12932 12933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12934 find out it does not work in some platform. */ 12935#ifndef LT_DLLAZY_OR_NOW 12936# ifdef RTLD_LAZY 12937# define LT_DLLAZY_OR_NOW RTLD_LAZY 12938# else 12939# ifdef DL_LAZY 12940# define LT_DLLAZY_OR_NOW DL_LAZY 12941# else 12942# ifdef RTLD_NOW 12943# define LT_DLLAZY_OR_NOW RTLD_NOW 12944# else 12945# ifdef DL_NOW 12946# define LT_DLLAZY_OR_NOW DL_NOW 12947# else 12948# define LT_DLLAZY_OR_NOW 0 12949# endif 12950# endif 12951# endif 12952# endif 12953#endif 12954 12955void fnord() { int i=42;} 12956int main () 12957{ 12958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12959 int status = $lt_dlunknown; 12960 12961 if (self) 12962 { 12963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12965 /* dlclose (self); */ 12966 } 12967 else 12968 puts (dlerror ()); 12969 12970 return status; 12971} 12972_LT_EOF 12973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12974 (eval $ac_link) 2>&5 12975 ac_status=$? 12976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12977 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12978 (./conftest; exit; ) >&5 2>/dev/null 12979 lt_status=$? 12980 case x$lt_status in 12981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12984 esac 12985 else : 12986 # compilation failed 12987 lt_cv_dlopen_self=no 12988 fi 12989fi 12990rm -fr conftest* 12991 12992 12993fi 12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12995$as_echo "$lt_cv_dlopen_self" >&6; } 12996 12997 if test "x$lt_cv_dlopen_self" = xyes; then 12998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13000$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13001if test "${lt_cv_dlopen_self_static+set}" = set; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 if test "$cross_compiling" = yes; then : 13005 lt_cv_dlopen_self_static=cross 13006else 13007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13008 lt_status=$lt_dlunknown 13009 cat > conftest.$ac_ext <<_LT_EOF 13010#line 13010 "configure" 13011#include "confdefs.h" 13012 13013#if HAVE_DLFCN_H 13014#include <dlfcn.h> 13015#endif 13016 13017#include <stdio.h> 13018 13019#ifdef RTLD_GLOBAL 13020# define LT_DLGLOBAL RTLD_GLOBAL 13021#else 13022# ifdef DL_GLOBAL 13023# define LT_DLGLOBAL DL_GLOBAL 13024# else 13025# define LT_DLGLOBAL 0 13026# endif 13027#endif 13028 13029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13030 find out it does not work in some platform. */ 13031#ifndef LT_DLLAZY_OR_NOW 13032# ifdef RTLD_LAZY 13033# define LT_DLLAZY_OR_NOW RTLD_LAZY 13034# else 13035# ifdef DL_LAZY 13036# define LT_DLLAZY_OR_NOW DL_LAZY 13037# else 13038# ifdef RTLD_NOW 13039# define LT_DLLAZY_OR_NOW RTLD_NOW 13040# else 13041# ifdef DL_NOW 13042# define LT_DLLAZY_OR_NOW DL_NOW 13043# else 13044# define LT_DLLAZY_OR_NOW 0 13045# endif 13046# endif 13047# endif 13048# endif 13049#endif 13050 13051void fnord() { int i=42;} 13052int main () 13053{ 13054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13055 int status = $lt_dlunknown; 13056 13057 if (self) 13058 { 13059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13061 /* dlclose (self); */ 13062 } 13063 else 13064 puts (dlerror ()); 13065 13066 return status; 13067} 13068_LT_EOF 13069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13070 (eval $ac_link) 2>&5 13071 ac_status=$? 13072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13074 (./conftest; exit; ) >&5 2>/dev/null 13075 lt_status=$? 13076 case x$lt_status in 13077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13079 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13080 esac 13081 else : 13082 # compilation failed 13083 lt_cv_dlopen_self_static=no 13084 fi 13085fi 13086rm -fr conftest* 13087 13088 13089fi 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13091$as_echo "$lt_cv_dlopen_self_static" >&6; } 13092 fi 13093 13094 CPPFLAGS="$save_CPPFLAGS" 13095 LDFLAGS="$save_LDFLAGS" 13096 LIBS="$save_LIBS" 13097 ;; 13098 esac 13099 13100 case $lt_cv_dlopen_self in 13101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13102 *) enable_dlopen_self=unknown ;; 13103 esac 13104 13105 case $lt_cv_dlopen_self_static in 13106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13107 *) enable_dlopen_self_static=unknown ;; 13108 esac 13109fi 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127striplib= 13128old_striplib= 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13130$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13131if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13133 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13135$as_echo "yes" >&6; } 13136else 13137# FIXME - insert some real tests, host_os isn't really good enough 13138 case $host_os in 13139 darwin*) 13140 if test -n "$STRIP" ; then 13141 striplib="$STRIP -x" 13142 old_striplib="$STRIP -S" 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13144$as_echo "yes" >&6; } 13145 else 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13147$as_echo "no" >&6; } 13148 fi 13149 ;; 13150 *) 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13152$as_echo "no" >&6; } 13153 ;; 13154 esac 13155fi 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 # Report which library types will actually be built 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13170$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13172$as_echo "$can_build_shared" >&6; } 13173 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13175$as_echo_n "checking whether to build shared libraries... " >&6; } 13176 test "$can_build_shared" = "no" && enable_shared=no 13177 13178 # On AIX, shared libraries and static libraries use the same namespace, and 13179 # are all built from PIC. 13180 case $host_os in 13181 aix3*) 13182 test "$enable_shared" = yes && enable_static=no 13183 if test -n "$RANLIB"; then 13184 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13185 postinstall_cmds='$RANLIB $lib' 13186 fi 13187 ;; 13188 13189 aix[4-9]*) 13190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13191 test "$enable_shared" = yes && enable_static=no 13192 fi 13193 ;; 13194 esac 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13196$as_echo "$enable_shared" >&6; } 13197 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13199$as_echo_n "checking whether to build static libraries... " >&6; } 13200 # Make sure either enable_shared or enable_static is yes. 13201 test "$enable_shared" = yes || enable_static=yes 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13203$as_echo "$enable_static" >&6; } 13204 13205 13206 13207 13208fi 13209ac_ext=c 13210ac_cpp='$CPP $CPPFLAGS' 13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13213ac_compiler_gnu=$ac_cv_c_compiler_gnu 13214 13215CC="$lt_save_CC" 13216 13217 13218ac_ext=cpp 13219ac_cpp='$CXXCPP $CPPFLAGS' 13220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13223 13224archive_cmds_need_lc_CXX=no 13225allow_undefined_flag_CXX= 13226always_export_symbols_CXX=no 13227archive_expsym_cmds_CXX= 13228compiler_needs_object_CXX=no 13229export_dynamic_flag_spec_CXX= 13230hardcode_direct_CXX=no 13231hardcode_direct_absolute_CXX=no 13232hardcode_libdir_flag_spec_CXX= 13233hardcode_libdir_flag_spec_ld_CXX= 13234hardcode_libdir_separator_CXX= 13235hardcode_minus_L_CXX=no 13236hardcode_shlibpath_var_CXX=unsupported 13237hardcode_automatic_CXX=no 13238inherit_rpath_CXX=no 13239module_cmds_CXX= 13240module_expsym_cmds_CXX= 13241link_all_deplibs_CXX=unknown 13242old_archive_cmds_CXX=$old_archive_cmds 13243no_undefined_flag_CXX= 13244whole_archive_flag_spec_CXX= 13245enable_shared_with_static_runtimes_CXX=no 13246 13247# Source file extension for C++ test sources. 13248ac_ext=cpp 13249 13250# Object file extension for compiled C++ test sources. 13251objext=o 13252objext_CXX=$objext 13253 13254# No sense in running all these tests if we already determined that 13255# the CXX compiler isn't working. Some variables (like enable_shared) 13256# are currently assumed to apply to all compilers on this platform, 13257# and will be corrupted by setting them based on a non-working compiler. 13258if test "$_lt_caught_CXX_error" != yes; then 13259 # Code to be used in simple compile tests 13260 lt_simple_compile_test_code="int some_variable = 0;" 13261 13262 # Code to be used in simple link tests 13263 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13264 13265 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13266 13267 13268 13269 13270 13271 13272# If no C compiler was specified, use CC. 13273LTCC=${LTCC-"$CC"} 13274 13275# If no C compiler flags were specified, use CFLAGS. 13276LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13277 13278# Allow CC to be a program name with arguments. 13279compiler=$CC 13280 13281 13282 # save warnings/boilerplate of simple test code 13283 ac_outfile=conftest.$ac_objext 13284echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13285eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13286_lt_compiler_boilerplate=`cat conftest.err` 13287$RM conftest* 13288 13289 ac_outfile=conftest.$ac_objext 13290echo "$lt_simple_link_test_code" >conftest.$ac_ext 13291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13292_lt_linker_boilerplate=`cat conftest.err` 13293$RM -r conftest* 13294 13295 13296 # Allow CC to be a program name with arguments. 13297 lt_save_CC=$CC 13298 lt_save_LD=$LD 13299 lt_save_GCC=$GCC 13300 GCC=$GXX 13301 lt_save_with_gnu_ld=$with_gnu_ld 13302 lt_save_path_LD=$lt_cv_path_LD 13303 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13304 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13305 else 13306 $as_unset lt_cv_prog_gnu_ld 13307 fi 13308 if test -n "${lt_cv_path_LDCXX+set}"; then 13309 lt_cv_path_LD=$lt_cv_path_LDCXX 13310 else 13311 $as_unset lt_cv_path_LD 13312 fi 13313 test -z "${LDCXX+set}" || LD=$LDCXX 13314 CC=${CXX-"c++"} 13315 compiler=$CC 13316 compiler_CXX=$CC 13317 for cc_temp in $compiler""; do 13318 case $cc_temp in 13319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13321 \-*) ;; 13322 *) break;; 13323 esac 13324done 13325cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13326 13327 13328 if test -n "$compiler"; then 13329 # We don't want -fno-exception when compiling C++ code, so set the 13330 # no_builtin_flag separately 13331 if test "$GXX" = yes; then 13332 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13333 else 13334 lt_prog_compiler_no_builtin_flag_CXX= 13335 fi 13336 13337 if test "$GXX" = yes; then 13338 # Set up default GNU C++ configuration 13339 13340 13341 13342# Check whether --with-gnu-ld was given. 13343if test "${with_gnu_ld+set}" = set; then : 13344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13345else 13346 with_gnu_ld=no 13347fi 13348 13349ac_prog=ld 13350if test "$GCC" = yes; then 13351 # Check if gcc -print-prog-name=ld gives a path. 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13353$as_echo_n "checking for ld used by $CC... " >&6; } 13354 case $host in 13355 *-*-mingw*) 13356 # gcc leaves a trailing carriage return which upsets mingw 13357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13358 *) 13359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13360 esac 13361 case $ac_prog in 13362 # Accept absolute paths. 13363 [\\/]* | ?:[\\/]*) 13364 re_direlt='/[^/][^/]*/\.\./' 13365 # Canonicalize the pathname of ld 13366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13369 done 13370 test -z "$LD" && LD="$ac_prog" 13371 ;; 13372 "") 13373 # If it fails, then pretend we aren't using GCC. 13374 ac_prog=ld 13375 ;; 13376 *) 13377 # If it is relative, then search for the first ld in PATH. 13378 with_gnu_ld=unknown 13379 ;; 13380 esac 13381elif test "$with_gnu_ld" = yes; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13383$as_echo_n "checking for GNU ld... " >&6; } 13384else 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13386$as_echo_n "checking for non-GNU ld... " >&6; } 13387fi 13388if test "${lt_cv_path_LD+set}" = set; then : 13389 $as_echo_n "(cached) " >&6 13390else 13391 if test -z "$LD"; then 13392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13393 for ac_dir in $PATH; do 13394 IFS="$lt_save_ifs" 13395 test -z "$ac_dir" && ac_dir=. 13396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13397 lt_cv_path_LD="$ac_dir/$ac_prog" 13398 # Check to see if the program is GNU ld. I'd rather use --version, 13399 # but apparently some variants of GNU ld only accept -v. 13400 # Break only if it was the GNU/non-GNU ld that we prefer. 13401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13402 *GNU* | *'with BFD'*) 13403 test "$with_gnu_ld" != no && break 13404 ;; 13405 *) 13406 test "$with_gnu_ld" != yes && break 13407 ;; 13408 esac 13409 fi 13410 done 13411 IFS="$lt_save_ifs" 13412else 13413 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13414fi 13415fi 13416 13417LD="$lt_cv_path_LD" 13418if test -n "$LD"; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13420$as_echo "$LD" >&6; } 13421else 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13423$as_echo "no" >&6; } 13424fi 13425test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13427$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13428if test "${lt_cv_prog_gnu_ld+set}" = set; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13432case `$LD -v 2>&1 </dev/null` in 13433*GNU* | *'with BFD'*) 13434 lt_cv_prog_gnu_ld=yes 13435 ;; 13436*) 13437 lt_cv_prog_gnu_ld=no 13438 ;; 13439esac 13440fi 13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13442$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13443with_gnu_ld=$lt_cv_prog_gnu_ld 13444 13445 13446 13447 13448 13449 13450 13451 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13452 # archiving commands below assume that GNU ld is being used. 13453 if test "$with_gnu_ld" = yes; then 13454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13455 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13456 13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13459 13460 # If archive_cmds runs LD, not CC, wlarc should be empty 13461 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13462 # investigate it a little bit more. (MM) 13463 wlarc='${wl}' 13464 13465 # ancient GNU ld didn't support --whole-archive et. al. 13466 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13467 $GREP 'no-whole-archive' > /dev/null; then 13468 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13469 else 13470 whole_archive_flag_spec_CXX= 13471 fi 13472 else 13473 with_gnu_ld=no 13474 wlarc= 13475 13476 # A generic and very simple default shared library creation 13477 # command for GNU C++ for the case where it uses the native 13478 # linker, instead of GNU ld. If possible, this setting should 13479 # overridden to take advantage of the native linker features on 13480 # the platform it is being used on. 13481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13482 fi 13483 13484 # Commands to make compiler produce verbose output that lists 13485 # what "hidden" libraries, object files and flags are used when 13486 # linking a shared library. 13487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13488 13489 else 13490 GXX=no 13491 with_gnu_ld=no 13492 wlarc= 13493 fi 13494 13495 # PORTME: fill in a description of your system's C++ link characteristics 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13497$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13498 ld_shlibs_CXX=yes 13499 case $host_os in 13500 aix3*) 13501 # FIXME: insert proper C++ library support 13502 ld_shlibs_CXX=no 13503 ;; 13504 aix[4-9]*) 13505 if test "$host_cpu" = ia64; then 13506 # On IA64, the linker does run time linking by default, so we don't 13507 # have to do anything special. 13508 aix_use_runtimelinking=no 13509 exp_sym_flag='-Bexport' 13510 no_entry_flag="" 13511 else 13512 aix_use_runtimelinking=no 13513 13514 # Test if we are trying to use run time linking or normal 13515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13516 # need to do runtime linking. 13517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13518 for ld_flag in $LDFLAGS; do 13519 case $ld_flag in 13520 *-brtl*) 13521 aix_use_runtimelinking=yes 13522 break 13523 ;; 13524 esac 13525 done 13526 ;; 13527 esac 13528 13529 exp_sym_flag='-bexport' 13530 no_entry_flag='-bnoentry' 13531 fi 13532 13533 # When large executables or shared objects are built, AIX ld can 13534 # have problems creating the table of contents. If linking a library 13535 # or program results in "error TOC overflow" add -mminimal-toc to 13536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13538 13539 archive_cmds_CXX='' 13540 hardcode_direct_CXX=yes 13541 hardcode_direct_absolute_CXX=yes 13542 hardcode_libdir_separator_CXX=':' 13543 link_all_deplibs_CXX=yes 13544 file_list_spec_CXX='${wl}-f,' 13545 13546 if test "$GXX" = yes; then 13547 case $host_os in aix4.[012]|aix4.[012].*) 13548 # We only want to do this on AIX 4.2 and lower, the check 13549 # below for broken collect2 doesn't work under 4.3+ 13550 collect2name=`${CC} -print-prog-name=collect2` 13551 if test -f "$collect2name" && 13552 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13553 then 13554 # We have reworked collect2 13555 : 13556 else 13557 # We have old collect2 13558 hardcode_direct_CXX=unsupported 13559 # It fails to find uninstalled libraries when the uninstalled 13560 # path is not listed in the libpath. Setting hardcode_minus_L 13561 # to unsupported forces relinking 13562 hardcode_minus_L_CXX=yes 13563 hardcode_libdir_flag_spec_CXX='-L$libdir' 13564 hardcode_libdir_separator_CXX= 13565 fi 13566 esac 13567 shared_flag='-shared' 13568 if test "$aix_use_runtimelinking" = yes; then 13569 shared_flag="$shared_flag "'${wl}-G' 13570 fi 13571 else 13572 # not using gcc 13573 if test "$host_cpu" = ia64; then 13574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13575 # chokes on -Wl,-G. The following line is correct: 13576 shared_flag='-G' 13577 else 13578 if test "$aix_use_runtimelinking" = yes; then 13579 shared_flag='${wl}-G' 13580 else 13581 shared_flag='${wl}-bM:SRE' 13582 fi 13583 fi 13584 fi 13585 13586 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13587 # It seems that -bexpall does not export symbols beginning with 13588 # underscore (_), so it is better to generate a list of symbols to 13589 # export. 13590 always_export_symbols_CXX=yes 13591 if test "$aix_use_runtimelinking" = yes; then 13592 # Warning - without using the other runtime loading flags (-brtl), 13593 # -berok will link without error, but may produce a broken library. 13594 allow_undefined_flag_CXX='-berok' 13595 # Determine the default libpath from the value encoded in an empty 13596 # executable. 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599 13600int 13601main () 13602{ 13603 13604 ; 13605 return 0; 13606} 13607_ACEOF 13608if ac_fn_cxx_try_link "$LINENO"; then : 13609 13610lt_aix_libpath_sed=' 13611 /Import File Strings/,/^$/ { 13612 /^0/ { 13613 s/^0 *\(.*\)$/\1/ 13614 p 13615 } 13616 }' 13617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13618# Check for a 64-bit object if we didn't find anything. 13619if test -z "$aix_libpath"; then 13620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13621fi 13622fi 13623rm -f core conftest.err conftest.$ac_objext \ 13624 conftest$ac_exeext conftest.$ac_ext 13625if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13626 13627 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13628 13629 archive_expsym_cmds_CXX='$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" 13630 else 13631 if test "$host_cpu" = ia64; then 13632 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13633 allow_undefined_flag_CXX="-z nodefs" 13634 archive_expsym_cmds_CXX="\$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" 13635 else 13636 # Determine the default libpath from the value encoded in an 13637 # empty executable. 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640 13641int 13642main () 13643{ 13644 13645 ; 13646 return 0; 13647} 13648_ACEOF 13649if ac_fn_cxx_try_link "$LINENO"; then : 13650 13651lt_aix_libpath_sed=' 13652 /Import File Strings/,/^$/ { 13653 /^0/ { 13654 s/^0 *\(.*\)$/\1/ 13655 p 13656 } 13657 }' 13658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13659# Check for a 64-bit object if we didn't find anything. 13660if test -z "$aix_libpath"; then 13661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13662fi 13663fi 13664rm -f core conftest.err conftest.$ac_objext \ 13665 conftest$ac_exeext conftest.$ac_ext 13666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13667 13668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13669 # Warning - without using the other run time loading flags, 13670 # -berok will link without error, but may produce a broken library. 13671 no_undefined_flag_CXX=' ${wl}-bernotok' 13672 allow_undefined_flag_CXX=' ${wl}-berok' 13673 # Exported symbols can be pulled into shared objects from archives 13674 whole_archive_flag_spec_CXX='$convenience' 13675 archive_cmds_need_lc_CXX=yes 13676 # This is similar to how AIX traditionally builds its shared 13677 # libraries. 13678 archive_expsym_cmds_CXX="\$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' 13679 fi 13680 fi 13681 ;; 13682 13683 beos*) 13684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13685 allow_undefined_flag_CXX=unsupported 13686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13687 # support --undefined. This deserves some investigation. FIXME 13688 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13689 else 13690 ld_shlibs_CXX=no 13691 fi 13692 ;; 13693 13694 chorus*) 13695 case $cc_basename in 13696 *) 13697 # FIXME: insert proper C++ library support 13698 ld_shlibs_CXX=no 13699 ;; 13700 esac 13701 ;; 13702 13703 cygwin* | mingw* | pw32* | cegcc*) 13704 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13705 # as there is no search path for DLLs. 13706 hardcode_libdir_flag_spec_CXX='-L$libdir' 13707 allow_undefined_flag_CXX=unsupported 13708 always_export_symbols_CXX=no 13709 enable_shared_with_static_runtimes_CXX=yes 13710 13711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13713 # If the export-symbols file already is a .def file (1st line 13714 # is EXPORTS), use it as is; otherwise, prepend... 13715 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13716 cp $export_symbols $output_objdir/$soname.def; 13717 else 13718 echo EXPORTS > $output_objdir/$soname.def; 13719 cat $export_symbols >> $output_objdir/$soname.def; 13720 fi~ 13721 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13722 else 13723 ld_shlibs_CXX=no 13724 fi 13725 ;; 13726 darwin* | rhapsody*) 13727 13728 13729 archive_cmds_need_lc_CXX=no 13730 hardcode_direct_CXX=no 13731 hardcode_automatic_CXX=yes 13732 hardcode_shlibpath_var_CXX=unsupported 13733 whole_archive_flag_spec_CXX='' 13734 link_all_deplibs_CXX=yes 13735 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13736 case $cc_basename in 13737 ifort*) _lt_dar_can_shared=yes ;; 13738 *) _lt_dar_can_shared=$GCC ;; 13739 esac 13740 if test "$_lt_dar_can_shared" = "yes"; then 13741 output_verbose_link_cmd=echo 13742 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13743 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13744 archive_expsym_cmds_CXX="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}" 13745 module_expsym_cmds_CXX="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}" 13746 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13747 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13748 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13749 fi 13750 13751 else 13752 ld_shlibs_CXX=no 13753 fi 13754 13755 ;; 13756 13757 dgux*) 13758 case $cc_basename in 13759 ec++*) 13760 # FIXME: insert proper C++ library support 13761 ld_shlibs_CXX=no 13762 ;; 13763 ghcx*) 13764 # Green Hills C++ Compiler 13765 # FIXME: insert proper C++ library support 13766 ld_shlibs_CXX=no 13767 ;; 13768 *) 13769 # FIXME: insert proper C++ library support 13770 ld_shlibs_CXX=no 13771 ;; 13772 esac 13773 ;; 13774 13775 freebsd[12]*) 13776 # C++ shared libraries reported to be fairly broken before 13777 # switch to ELF 13778 ld_shlibs_CXX=no 13779 ;; 13780 13781 freebsd-elf*) 13782 archive_cmds_need_lc_CXX=no 13783 ;; 13784 13785 freebsd* | dragonfly*) 13786 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13787 # conventions 13788 ld_shlibs_CXX=yes 13789 ;; 13790 13791 gnu*) 13792 ;; 13793 13794 hpux9*) 13795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13796 hardcode_libdir_separator_CXX=: 13797 export_dynamic_flag_spec_CXX='${wl}-E' 13798 hardcode_direct_CXX=yes 13799 hardcode_minus_L_CXX=yes # Not in the search PATH, 13800 # but as the default 13801 # location of the library. 13802 13803 case $cc_basename in 13804 CC*) 13805 # FIXME: insert proper C++ library support 13806 ld_shlibs_CXX=no 13807 ;; 13808 aCC*) 13809 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13810 # Commands to make compiler produce verbose output that lists 13811 # what "hidden" libraries, object files and flags are used when 13812 # linking a shared library. 13813 # 13814 # There doesn't appear to be a way to prevent this compiler from 13815 # explicitly linking system object files so we need to strip them 13816 # from the output so that they don't get included in the library 13817 # dependencies. 13818 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13819 ;; 13820 *) 13821 if test "$GXX" = yes; then 13822 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13823 else 13824 # FIXME: insert proper C++ library support 13825 ld_shlibs_CXX=no 13826 fi 13827 ;; 13828 esac 13829 ;; 13830 13831 hpux10*|hpux11*) 13832 if test $with_gnu_ld = no; then 13833 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13834 hardcode_libdir_separator_CXX=: 13835 13836 case $host_cpu in 13837 hppa*64*|ia64*) 13838 ;; 13839 *) 13840 export_dynamic_flag_spec_CXX='${wl}-E' 13841 ;; 13842 esac 13843 fi 13844 case $host_cpu in 13845 hppa*64*|ia64*) 13846 hardcode_direct_CXX=no 13847 hardcode_shlibpath_var_CXX=no 13848 ;; 13849 *) 13850 hardcode_direct_CXX=yes 13851 hardcode_direct_absolute_CXX=yes 13852 hardcode_minus_L_CXX=yes # Not in the search PATH, 13853 # but as the default 13854 # location of the library. 13855 ;; 13856 esac 13857 13858 case $cc_basename in 13859 CC*) 13860 # FIXME: insert proper C++ library support 13861 ld_shlibs_CXX=no 13862 ;; 13863 aCC*) 13864 case $host_cpu in 13865 hppa*64*) 13866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13867 ;; 13868 ia64*) 13869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13870 ;; 13871 *) 13872 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13873 ;; 13874 esac 13875 # Commands to make compiler produce verbose output that lists 13876 # what "hidden" libraries, object files and flags are used when 13877 # linking a shared library. 13878 # 13879 # There doesn't appear to be a way to prevent this compiler from 13880 # explicitly linking system object files so we need to strip them 13881 # from the output so that they don't get included in the library 13882 # dependencies. 13883 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13884 ;; 13885 *) 13886 if test "$GXX" = yes; then 13887 if test $with_gnu_ld = no; then 13888 case $host_cpu in 13889 hppa*64*) 13890 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13891 ;; 13892 ia64*) 13893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13894 ;; 13895 *) 13896 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13897 ;; 13898 esac 13899 fi 13900 else 13901 # FIXME: insert proper C++ library support 13902 ld_shlibs_CXX=no 13903 fi 13904 ;; 13905 esac 13906 ;; 13907 13908 interix[3-9]*) 13909 hardcode_direct_CXX=no 13910 hardcode_shlibpath_var_CXX=no 13911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13912 export_dynamic_flag_spec_CXX='${wl}-E' 13913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13914 # Instead, shared libraries are loaded at an image base (0x10000000 by 13915 # default) and relocated if they conflict, which is a slow very memory 13916 # consuming and fragmenting process. To avoid this, we pick a random, 13917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13918 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13919 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13920 archive_expsym_cmds_CXX='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' 13921 ;; 13922 irix5* | irix6*) 13923 case $cc_basename in 13924 CC*) 13925 # SGI C++ 13926 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13927 13928 # Archives containing C++ object files must be created using 13929 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13930 # necessary to make sure instantiated templates are included 13931 # in the archive. 13932 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13933 ;; 13934 *) 13935 if test "$GXX" = yes; then 13936 if test "$with_gnu_ld" = no; then 13937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13938 else 13939 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 13940 fi 13941 fi 13942 link_all_deplibs_CXX=yes 13943 ;; 13944 esac 13945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13946 hardcode_libdir_separator_CXX=: 13947 inherit_rpath_CXX=yes 13948 ;; 13949 13950 linux* | k*bsd*-gnu) 13951 case $cc_basename in 13952 KCC*) 13953 # Kuck and Associates, Inc. (KAI) C++ Compiler 13954 13955 # KCC will only create a shared library if the output file 13956 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13957 # to its proper name (with version) after linking. 13958 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13959 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13960 # Commands to make compiler produce verbose output that lists 13961 # what "hidden" libraries, object files and flags are used when 13962 # linking a shared library. 13963 # 13964 # There doesn't appear to be a way to prevent this compiler from 13965 # explicitly linking system object files so we need to strip them 13966 # from the output so that they don't get included in the library 13967 # dependencies. 13968 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13969 13970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13972 13973 # Archives containing C++ object files must be created using 13974 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13975 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13976 ;; 13977 icpc* | ecpc* ) 13978 # Intel C++ 13979 with_gnu_ld=yes 13980 # version 8.0 and above of icpc choke on multiply defined symbols 13981 # if we add $predep_objects and $postdep_objects, however 7.1 and 13982 # earlier do not add the objects themselves. 13983 case `$CC -V 2>&1` in 13984 *"Version 7."*) 13985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13986 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13987 ;; 13988 *) # Version 8.0 or newer 13989 tmp_idyn= 13990 case $host_cpu in 13991 ia64*) tmp_idyn=' -i_dynamic';; 13992 esac 13993 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13994 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13995 ;; 13996 esac 13997 archive_cmds_need_lc_CXX=no 13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14000 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14001 ;; 14002 pgCC* | pgcpp*) 14003 # Portland Group C++ compiler 14004 case `$CC -V` in 14005 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 14006 prelink_cmds_CXX='tpldir=Template.dir~ 14007 rm -rf $tpldir~ 14008 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14009 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 14010 old_archive_cmds_CXX='tpldir=Template.dir~ 14011 rm -rf $tpldir~ 14012 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14013 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 14014 $RANLIB $oldlib' 14015 archive_cmds_CXX='tpldir=Template.dir~ 14016 rm -rf $tpldir~ 14017 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14018 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14019 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14020 rm -rf $tpldir~ 14021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14023 ;; 14024 *) # Version 6 will use weak symbols 14025 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14026 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14027 ;; 14028 esac 14029 14030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14032 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 14033 ;; 14034 cxx*) 14035 # Compaq C++ 14036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14037 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 14038 14039 runpath_var=LD_RUN_PATH 14040 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14041 hardcode_libdir_separator_CXX=: 14042 14043 # Commands to make compiler produce verbose output that lists 14044 # what "hidden" libraries, object files and flags are used when 14045 # linking a shared library. 14046 # 14047 # There doesn't appear to be a way to prevent this compiler from 14048 # explicitly linking system object files so we need to strip them 14049 # from the output so that they don't get included in the library 14050 # dependencies. 14051 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 14052 ;; 14053 xl*) 14054 # IBM XL 8.0 on PPC, with GNU ld 14055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14057 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14058 if test "x$supports_anon_versioning" = xyes; then 14059 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14061 echo "local: *; };" >> $output_objdir/$libname.ver~ 14062 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14063 fi 14064 ;; 14065 *) 14066 case `$CC -V 2>&1 | sed 5q` in 14067 *Sun\ C*) 14068 # Sun C++ 5.9 14069 no_undefined_flag_CXX=' -zdefs' 14070 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14071 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14072 hardcode_libdir_flag_spec_CXX='-R$libdir' 14073 whole_archive_flag_spec_CXX='${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' 14074 compiler_needs_object_CXX=yes 14075 14076 # Not sure whether something based on 14077 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14078 # would be better. 14079 output_verbose_link_cmd='echo' 14080 14081 # Archives containing C++ object files must be created using 14082 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14083 # necessary to make sure instantiated templates are included 14084 # in the archive. 14085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14086 ;; 14087 esac 14088 ;; 14089 esac 14090 ;; 14091 14092 lynxos*) 14093 # FIXME: insert proper C++ library support 14094 ld_shlibs_CXX=no 14095 ;; 14096 14097 m88k*) 14098 # FIXME: insert proper C++ library support 14099 ld_shlibs_CXX=no 14100 ;; 14101 14102 mvs*) 14103 case $cc_basename in 14104 cxx*) 14105 # FIXME: insert proper C++ library support 14106 ld_shlibs_CXX=no 14107 ;; 14108 *) 14109 # FIXME: insert proper C++ library support 14110 ld_shlibs_CXX=no 14111 ;; 14112 esac 14113 ;; 14114 14115 netbsd*) 14116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14117 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14118 wlarc= 14119 hardcode_libdir_flag_spec_CXX='-R$libdir' 14120 hardcode_direct_CXX=yes 14121 hardcode_shlibpath_var_CXX=no 14122 fi 14123 # Workaround some broken pre-1.5 toolchains 14124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14125 ;; 14126 14127 *nto* | *qnx*) 14128 ld_shlibs_CXX=yes 14129 ;; 14130 14131 openbsd2*) 14132 # C++ shared libraries are fairly broken 14133 ld_shlibs_CXX=no 14134 ;; 14135 14136 openbsd*) 14137 if test -f /usr/libexec/ld.so; then 14138 hardcode_direct_CXX=yes 14139 hardcode_shlibpath_var_CXX=no 14140 hardcode_direct_absolute_CXX=yes 14141 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14144 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14145 export_dynamic_flag_spec_CXX='${wl}-E' 14146 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14147 fi 14148 output_verbose_link_cmd=echo 14149 else 14150 ld_shlibs_CXX=no 14151 fi 14152 ;; 14153 14154 osf3* | osf4* | osf5*) 14155 case $cc_basename in 14156 KCC*) 14157 # Kuck and Associates, Inc. (KAI) C++ Compiler 14158 14159 # KCC will only create a shared library if the output file 14160 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14161 # to its proper name (with version) after linking. 14162 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14163 14164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14165 hardcode_libdir_separator_CXX=: 14166 14167 # Archives containing C++ object files must be created using 14168 # the KAI C++ compiler. 14169 case $host in 14170 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14171 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14172 esac 14173 ;; 14174 RCC*) 14175 # Rational C++ 2.4.1 14176 # FIXME: insert proper C++ library support 14177 ld_shlibs_CXX=no 14178 ;; 14179 cxx*) 14180 case $host in 14181 osf3*) 14182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14183 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 14184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14185 ;; 14186 *) 14187 allow_undefined_flag_CXX=' -expect_unresolved \*' 14188 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 14189 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14190 echo "-hidden">> $lib.exp~ 14191 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 14192 $RM $lib.exp' 14193 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14194 ;; 14195 esac 14196 14197 hardcode_libdir_separator_CXX=: 14198 14199 # Commands to make compiler produce verbose output that lists 14200 # what "hidden" libraries, object files and flags are used when 14201 # linking a shared library. 14202 # 14203 # There doesn't appear to be a way to prevent this compiler from 14204 # explicitly linking system object files so we need to strip them 14205 # from the output so that they don't get included in the library 14206 # dependencies. 14207 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 14208 ;; 14209 *) 14210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14212 case $host in 14213 osf3*) 14214 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 14215 ;; 14216 *) 14217 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14218 ;; 14219 esac 14220 14221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14222 hardcode_libdir_separator_CXX=: 14223 14224 # Commands to make compiler produce verbose output that lists 14225 # what "hidden" libraries, object files and flags are used when 14226 # linking a shared library. 14227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 14228 14229 else 14230 # FIXME: insert proper C++ library support 14231 ld_shlibs_CXX=no 14232 fi 14233 ;; 14234 esac 14235 ;; 14236 14237 psos*) 14238 # FIXME: insert proper C++ library support 14239 ld_shlibs_CXX=no 14240 ;; 14241 14242 sunos4*) 14243 case $cc_basename in 14244 CC*) 14245 # Sun C++ 4.x 14246 # FIXME: insert proper C++ library support 14247 ld_shlibs_CXX=no 14248 ;; 14249 lcc*) 14250 # Lucid 14251 # FIXME: insert proper C++ library support 14252 ld_shlibs_CXX=no 14253 ;; 14254 *) 14255 # FIXME: insert proper C++ library support 14256 ld_shlibs_CXX=no 14257 ;; 14258 esac 14259 ;; 14260 14261 solaris*) 14262 case $cc_basename in 14263 CC*) 14264 # Sun C++ 4.2, 5.x and Centerline C++ 14265 archive_cmds_need_lc_CXX=yes 14266 no_undefined_flag_CXX=' -zdefs' 14267 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14268 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14269 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14270 14271 hardcode_libdir_flag_spec_CXX='-R$libdir' 14272 hardcode_shlibpath_var_CXX=no 14273 case $host_os in 14274 solaris2.[0-5] | solaris2.[0-5].*) ;; 14275 *) 14276 # The compiler driver will combine and reorder linker options, 14277 # but understands `-z linker_flag'. 14278 # Supported since Solaris 2.6 (maybe 2.5.1?) 14279 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14280 ;; 14281 esac 14282 link_all_deplibs_CXX=yes 14283 14284 output_verbose_link_cmd='echo' 14285 14286 # Archives containing C++ object files must be created using 14287 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14288 # necessary to make sure instantiated templates are included 14289 # in the archive. 14290 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14291 ;; 14292 gcx*) 14293 # Green Hills C++ Compiler 14294 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14295 14296 # The C++ compiler must be used to create the archive. 14297 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14298 ;; 14299 *) 14300 # GNU C++ compiler with Solaris linker 14301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14302 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14303 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14304 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14305 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14306 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14307 14308 # Commands to make compiler produce verbose output that lists 14309 # what "hidden" libraries, object files and flags are used when 14310 # linking a shared library. 14311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 14312 else 14313 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14314 # platform. 14315 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14317 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14318 14319 # Commands to make compiler produce verbose output that lists 14320 # what "hidden" libraries, object files and flags are used when 14321 # linking a shared library. 14322 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 14323 fi 14324 14325 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14326 case $host_os in 14327 solaris2.[0-5] | solaris2.[0-5].*) ;; 14328 *) 14329 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14330 ;; 14331 esac 14332 fi 14333 ;; 14334 esac 14335 ;; 14336 14337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14338 no_undefined_flag_CXX='${wl}-z,text' 14339 archive_cmds_need_lc_CXX=no 14340 hardcode_shlibpath_var_CXX=no 14341 runpath_var='LD_RUN_PATH' 14342 14343 case $cc_basename in 14344 CC*) 14345 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14346 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14347 ;; 14348 *) 14349 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14350 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14351 ;; 14352 esac 14353 ;; 14354 14355 sysv5* | sco3.2v5* | sco5v6*) 14356 # Note: We can NOT use -z defs as we might desire, because we do not 14357 # link with -lc, and that would cause any symbols used from libc to 14358 # always be unresolved, which means just about no library would 14359 # ever link correctly. If we're not using GNU ld we use -z text 14360 # though, which does catch some bad symbols but isn't as heavy-handed 14361 # as -z defs. 14362 no_undefined_flag_CXX='${wl}-z,text' 14363 allow_undefined_flag_CXX='${wl}-z,nodefs' 14364 archive_cmds_need_lc_CXX=no 14365 hardcode_shlibpath_var_CXX=no 14366 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14367 hardcode_libdir_separator_CXX=':' 14368 link_all_deplibs_CXX=yes 14369 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14370 runpath_var='LD_RUN_PATH' 14371 14372 case $cc_basename in 14373 CC*) 14374 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14375 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14376 ;; 14377 *) 14378 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14379 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14380 ;; 14381 esac 14382 ;; 14383 14384 tandem*) 14385 case $cc_basename in 14386 NCC*) 14387 # NonStop-UX NCC 3.20 14388 # FIXME: insert proper C++ library support 14389 ld_shlibs_CXX=no 14390 ;; 14391 *) 14392 # FIXME: insert proper C++ library support 14393 ld_shlibs_CXX=no 14394 ;; 14395 esac 14396 ;; 14397 14398 vxworks*) 14399 # FIXME: insert proper C++ library support 14400 ld_shlibs_CXX=no 14401 ;; 14402 14403 *) 14404 # FIXME: insert proper C++ library support 14405 ld_shlibs_CXX=no 14406 ;; 14407 esac 14408 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14410$as_echo "$ld_shlibs_CXX" >&6; } 14411 test "$ld_shlibs_CXX" = no && can_build_shared=no 14412 14413 GCC_CXX="$GXX" 14414 LD_CXX="$LD" 14415 14416 ## CAVEAT EMPTOR: 14417 ## There is no encapsulation within the following macros, do not change 14418 ## the running order or otherwise move them around unless you know exactly 14419 ## what you are doing... 14420 # Dependencies to place before and after the object being linked: 14421predep_objects_CXX= 14422postdep_objects_CXX= 14423predeps_CXX= 14424postdeps_CXX= 14425compiler_lib_search_path_CXX= 14426 14427cat > conftest.$ac_ext <<_LT_EOF 14428class Foo 14429{ 14430public: 14431 Foo (void) { a = 0; } 14432private: 14433 int a; 14434}; 14435_LT_EOF 14436 14437if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14438 (eval $ac_compile) 2>&5 14439 ac_status=$? 14440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14441 test $ac_status = 0; }; then 14442 # Parse the compiler output and extract the necessary 14443 # objects, libraries and library flags. 14444 14445 # Sentinel used to keep track of whether or not we are before 14446 # the conftest object file. 14447 pre_test_object_deps_done=no 14448 14449 for p in `eval "$output_verbose_link_cmd"`; do 14450 case $p in 14451 14452 -L* | -R* | -l*) 14453 # Some compilers place space between "-{L,R}" and the path. 14454 # Remove the space. 14455 if test $p = "-L" || 14456 test $p = "-R"; then 14457 prev=$p 14458 continue 14459 else 14460 prev= 14461 fi 14462 14463 if test "$pre_test_object_deps_done" = no; then 14464 case $p in 14465 -L* | -R*) 14466 # Internal compiler library paths should come after those 14467 # provided the user. The postdeps already come after the 14468 # user supplied libs so there is no need to process them. 14469 if test -z "$compiler_lib_search_path_CXX"; then 14470 compiler_lib_search_path_CXX="${prev}${p}" 14471 else 14472 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14473 fi 14474 ;; 14475 # The "-l" case would never come before the object being 14476 # linked, so don't bother handling this case. 14477 esac 14478 else 14479 if test -z "$postdeps_CXX"; then 14480 postdeps_CXX="${prev}${p}" 14481 else 14482 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14483 fi 14484 fi 14485 ;; 14486 14487 *.$objext) 14488 # This assumes that the test object file only shows up 14489 # once in the compiler output. 14490 if test "$p" = "conftest.$objext"; then 14491 pre_test_object_deps_done=yes 14492 continue 14493 fi 14494 14495 if test "$pre_test_object_deps_done" = no; then 14496 if test -z "$predep_objects_CXX"; then 14497 predep_objects_CXX="$p" 14498 else 14499 predep_objects_CXX="$predep_objects_CXX $p" 14500 fi 14501 else 14502 if test -z "$postdep_objects_CXX"; then 14503 postdep_objects_CXX="$p" 14504 else 14505 postdep_objects_CXX="$postdep_objects_CXX $p" 14506 fi 14507 fi 14508 ;; 14509 14510 *) ;; # Ignore the rest. 14511 14512 esac 14513 done 14514 14515 # Clean up. 14516 rm -f a.out a.exe 14517else 14518 echo "libtool.m4: error: problem compiling CXX test program" 14519fi 14520 14521$RM -f confest.$objext 14522 14523# PORTME: override above test on systems where it is broken 14524case $host_os in 14525interix[3-9]*) 14526 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14527 # hack all around it, let's just trust "g++" to DTRT. 14528 predep_objects_CXX= 14529 postdep_objects_CXX= 14530 postdeps_CXX= 14531 ;; 14532 14533linux*) 14534 case `$CC -V 2>&1 | sed 5q` in 14535 *Sun\ C*) 14536 # Sun C++ 5.9 14537 14538 # The more standards-conforming stlport4 library is 14539 # incompatible with the Cstd library. Avoid specifying 14540 # it if it's in CXXFLAGS. Ignore libCrun as 14541 # -library=stlport4 depends on it. 14542 case " $CXX $CXXFLAGS " in 14543 *" -library=stlport4 "*) 14544 solaris_use_stlport4=yes 14545 ;; 14546 esac 14547 14548 if test "$solaris_use_stlport4" != yes; then 14549 postdeps_CXX='-library=Cstd -library=Crun' 14550 fi 14551 ;; 14552 esac 14553 ;; 14554 14555solaris*) 14556 case $cc_basename in 14557 CC*) 14558 # The more standards-conforming stlport4 library is 14559 # incompatible with the Cstd library. Avoid specifying 14560 # it if it's in CXXFLAGS. Ignore libCrun as 14561 # -library=stlport4 depends on it. 14562 case " $CXX $CXXFLAGS " in 14563 *" -library=stlport4 "*) 14564 solaris_use_stlport4=yes 14565 ;; 14566 esac 14567 14568 # Adding this requires a known-good setup of shared libraries for 14569 # Sun compiler versions before 5.6, else PIC objects from an old 14570 # archive will be linked into the output, leading to subtle bugs. 14571 if test "$solaris_use_stlport4" != yes; then 14572 postdeps_CXX='-library=Cstd -library=Crun' 14573 fi 14574 ;; 14575 esac 14576 ;; 14577esac 14578 14579 14580case " $postdeps_CXX " in 14581*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14582esac 14583 compiler_lib_search_dirs_CXX= 14584if test -n "${compiler_lib_search_path_CXX}"; then 14585 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14586fi 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 lt_prog_compiler_wl_CXX= 14619lt_prog_compiler_pic_CXX= 14620lt_prog_compiler_static_CXX= 14621 14622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14623$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14624 14625 # C++ specific cases for pic, static, wl, etc. 14626 if test "$GXX" = yes; then 14627 lt_prog_compiler_wl_CXX='-Wl,' 14628 lt_prog_compiler_static_CXX='-static' 14629 14630 case $host_os in 14631 aix*) 14632 # All AIX code is PIC. 14633 if test "$host_cpu" = ia64; then 14634 # AIX 5 now supports IA64 processor 14635 lt_prog_compiler_static_CXX='-Bstatic' 14636 fi 14637 ;; 14638 14639 amigaos*) 14640 case $host_cpu in 14641 powerpc) 14642 # see comment about AmigaOS4 .so support 14643 lt_prog_compiler_pic_CXX='-fPIC' 14644 ;; 14645 m68k) 14646 # FIXME: we need at least 68020 code to build shared libraries, but 14647 # adding the `-m68020' flag to GCC prevents building anything better, 14648 # like `-m68040'. 14649 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14650 ;; 14651 esac 14652 ;; 14653 14654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14655 # PIC is the default for these OSes. 14656 ;; 14657 mingw* | cygwin* | os2* | pw32* | cegcc*) 14658 # This hack is so that the source file can tell whether it is being 14659 # built for inclusion in a dll (and should export symbols for example). 14660 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14661 # (--disable-auto-import) libraries 14662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14663 ;; 14664 darwin* | rhapsody*) 14665 # PIC is the default on this platform 14666 # Common symbols not allowed in MH_DYLIB files 14667 lt_prog_compiler_pic_CXX='-fno-common' 14668 ;; 14669 *djgpp*) 14670 # DJGPP does not support shared libraries at all 14671 lt_prog_compiler_pic_CXX= 14672 ;; 14673 interix[3-9]*) 14674 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14675 # Instead, we relocate shared libraries at runtime. 14676 ;; 14677 sysv4*MP*) 14678 if test -d /usr/nec; then 14679 lt_prog_compiler_pic_CXX=-Kconform_pic 14680 fi 14681 ;; 14682 hpux*) 14683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14685 # sets the default TLS model and affects inlining. 14686 case $host_cpu in 14687 hppa*64*) 14688 ;; 14689 *) 14690 lt_prog_compiler_pic_CXX='-fPIC' 14691 ;; 14692 esac 14693 ;; 14694 *qnx* | *nto*) 14695 # QNX uses GNU C++, but need to define -shared option too, otherwise 14696 # it will coredump. 14697 lt_prog_compiler_pic_CXX='-fPIC -shared' 14698 ;; 14699 *) 14700 lt_prog_compiler_pic_CXX='-fPIC' 14701 ;; 14702 esac 14703 else 14704 case $host_os in 14705 aix[4-9]*) 14706 # All AIX code is PIC. 14707 if test "$host_cpu" = ia64; then 14708 # AIX 5 now supports IA64 processor 14709 lt_prog_compiler_static_CXX='-Bstatic' 14710 else 14711 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14712 fi 14713 ;; 14714 chorus*) 14715 case $cc_basename in 14716 cxch68*) 14717 # Green Hills C++ Compiler 14718 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14719 ;; 14720 esac 14721 ;; 14722 dgux*) 14723 case $cc_basename in 14724 ec++*) 14725 lt_prog_compiler_pic_CXX='-KPIC' 14726 ;; 14727 ghcx*) 14728 # Green Hills C++ Compiler 14729 lt_prog_compiler_pic_CXX='-pic' 14730 ;; 14731 *) 14732 ;; 14733 esac 14734 ;; 14735 freebsd* | dragonfly*) 14736 # FreeBSD uses GNU C++ 14737 ;; 14738 hpux9* | hpux10* | hpux11*) 14739 case $cc_basename in 14740 CC*) 14741 lt_prog_compiler_wl_CXX='-Wl,' 14742 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14743 if test "$host_cpu" != ia64; then 14744 lt_prog_compiler_pic_CXX='+Z' 14745 fi 14746 ;; 14747 aCC*) 14748 lt_prog_compiler_wl_CXX='-Wl,' 14749 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14750 case $host_cpu in 14751 hppa*64*|ia64*) 14752 # +Z the default 14753 ;; 14754 *) 14755 lt_prog_compiler_pic_CXX='+Z' 14756 ;; 14757 esac 14758 ;; 14759 *) 14760 ;; 14761 esac 14762 ;; 14763 interix*) 14764 # This is c89, which is MS Visual C++ (no shared libs) 14765 # Anyone wants to do a port? 14766 ;; 14767 irix5* | irix6* | nonstopux*) 14768 case $cc_basename in 14769 CC*) 14770 lt_prog_compiler_wl_CXX='-Wl,' 14771 lt_prog_compiler_static_CXX='-non_shared' 14772 # CC pic flag -KPIC is the default. 14773 ;; 14774 *) 14775 ;; 14776 esac 14777 ;; 14778 linux* | k*bsd*-gnu) 14779 case $cc_basename in 14780 KCC*) 14781 # KAI C++ Compiler 14782 lt_prog_compiler_wl_CXX='--backend -Wl,' 14783 lt_prog_compiler_pic_CXX='-fPIC' 14784 ;; 14785 ecpc* ) 14786 # old Intel C++ for x86_64 which still supported -KPIC. 14787 lt_prog_compiler_wl_CXX='-Wl,' 14788 lt_prog_compiler_pic_CXX='-KPIC' 14789 lt_prog_compiler_static_CXX='-static' 14790 ;; 14791 icpc* ) 14792 # Intel C++, used to be incompatible with GCC. 14793 # ICC 10 doesn't accept -KPIC any more. 14794 lt_prog_compiler_wl_CXX='-Wl,' 14795 lt_prog_compiler_pic_CXX='-fPIC' 14796 lt_prog_compiler_static_CXX='-static' 14797 ;; 14798 pgCC* | pgcpp*) 14799 # Portland Group C++ compiler 14800 lt_prog_compiler_wl_CXX='-Wl,' 14801 lt_prog_compiler_pic_CXX='-fpic' 14802 lt_prog_compiler_static_CXX='-Bstatic' 14803 ;; 14804 cxx*) 14805 # Compaq C++ 14806 # Make sure the PIC flag is empty. It appears that all Alpha 14807 # Linux and Compaq Tru64 Unix objects are PIC. 14808 lt_prog_compiler_pic_CXX= 14809 lt_prog_compiler_static_CXX='-non_shared' 14810 ;; 14811 xlc* | xlC*) 14812 # IBM XL 8.0 on PPC 14813 lt_prog_compiler_wl_CXX='-Wl,' 14814 lt_prog_compiler_pic_CXX='-qpic' 14815 lt_prog_compiler_static_CXX='-qstaticlink' 14816 ;; 14817 *) 14818 case `$CC -V 2>&1 | sed 5q` in 14819 *Sun\ C*) 14820 # Sun C++ 5.9 14821 lt_prog_compiler_pic_CXX='-KPIC' 14822 lt_prog_compiler_static_CXX='-Bstatic' 14823 lt_prog_compiler_wl_CXX='-Qoption ld ' 14824 ;; 14825 esac 14826 ;; 14827 esac 14828 ;; 14829 lynxos*) 14830 ;; 14831 m88k*) 14832 ;; 14833 mvs*) 14834 case $cc_basename in 14835 cxx*) 14836 lt_prog_compiler_pic_CXX='-W c,exportall' 14837 ;; 14838 *) 14839 ;; 14840 esac 14841 ;; 14842 netbsd*) 14843 ;; 14844 *qnx* | *nto*) 14845 # QNX uses GNU C++, but need to define -shared option too, otherwise 14846 # it will coredump. 14847 lt_prog_compiler_pic_CXX='-fPIC -shared' 14848 ;; 14849 osf3* | osf4* | osf5*) 14850 case $cc_basename in 14851 KCC*) 14852 lt_prog_compiler_wl_CXX='--backend -Wl,' 14853 ;; 14854 RCC*) 14855 # Rational C++ 2.4.1 14856 lt_prog_compiler_pic_CXX='-pic' 14857 ;; 14858 cxx*) 14859 # Digital/Compaq C++ 14860 lt_prog_compiler_wl_CXX='-Wl,' 14861 # Make sure the PIC flag is empty. It appears that all Alpha 14862 # Linux and Compaq Tru64 Unix objects are PIC. 14863 lt_prog_compiler_pic_CXX= 14864 lt_prog_compiler_static_CXX='-non_shared' 14865 ;; 14866 *) 14867 ;; 14868 esac 14869 ;; 14870 psos*) 14871 ;; 14872 solaris*) 14873 case $cc_basename in 14874 CC*) 14875 # Sun C++ 4.2, 5.x and Centerline C++ 14876 lt_prog_compiler_pic_CXX='-KPIC' 14877 lt_prog_compiler_static_CXX='-Bstatic' 14878 lt_prog_compiler_wl_CXX='-Qoption ld ' 14879 ;; 14880 gcx*) 14881 # Green Hills C++ Compiler 14882 lt_prog_compiler_pic_CXX='-PIC' 14883 ;; 14884 *) 14885 ;; 14886 esac 14887 ;; 14888 sunos4*) 14889 case $cc_basename in 14890 CC*) 14891 # Sun C++ 4.x 14892 lt_prog_compiler_pic_CXX='-pic' 14893 lt_prog_compiler_static_CXX='-Bstatic' 14894 ;; 14895 lcc*) 14896 # Lucid 14897 lt_prog_compiler_pic_CXX='-pic' 14898 ;; 14899 *) 14900 ;; 14901 esac 14902 ;; 14903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14904 case $cc_basename in 14905 CC*) 14906 lt_prog_compiler_wl_CXX='-Wl,' 14907 lt_prog_compiler_pic_CXX='-KPIC' 14908 lt_prog_compiler_static_CXX='-Bstatic' 14909 ;; 14910 esac 14911 ;; 14912 tandem*) 14913 case $cc_basename in 14914 NCC*) 14915 # NonStop-UX NCC 3.20 14916 lt_prog_compiler_pic_CXX='-KPIC' 14917 ;; 14918 *) 14919 ;; 14920 esac 14921 ;; 14922 vxworks*) 14923 ;; 14924 *) 14925 lt_prog_compiler_can_build_shared_CXX=no 14926 ;; 14927 esac 14928 fi 14929 14930case $host_os in 14931 # For platforms which do not support PIC, -DPIC is meaningless: 14932 *djgpp*) 14933 lt_prog_compiler_pic_CXX= 14934 ;; 14935 *) 14936 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14937 ;; 14938esac 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 14940$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14941 14942 14943 14944# 14945# Check to make sure the PIC flag actually works. 14946# 14947if test -n "$lt_prog_compiler_pic_CXX"; then 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14949$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14950if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 14951 $as_echo_n "(cached) " >&6 14952else 14953 lt_cv_prog_compiler_pic_works_CXX=no 14954 ac_outfile=conftest.$ac_objext 14955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14956 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14957 # Insert the option either (1) after the last *FLAGS variable, or 14958 # (2) before a word containing "conftest.", or (3) at the end. 14959 # Note that $ac_compile itself does not contain backslashes and begins 14960 # with a dollar sign (not a hyphen), so the echo should work correctly. 14961 # The option is referenced via a variable to avoid confusing sed. 14962 lt_compile=`echo "$ac_compile" | $SED \ 14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14965 -e 's:$: $lt_compiler_flag:'` 14966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5) 14967 (eval "$lt_compile" 2>conftest.err) 14968 ac_status=$? 14969 cat conftest.err >&5 14970 echo "$as_me:14970: \$? = $ac_status" >&5 14971 if (exit $ac_status) && test -s "$ac_outfile"; then 14972 # The compiler can only warn and ignore the option if not recognized 14973 # So say no if there are warnings other than the usual output. 14974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14977 lt_cv_prog_compiler_pic_works_CXX=yes 14978 fi 14979 fi 14980 $RM conftest* 14981 14982fi 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14984$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14985 14986if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14987 case $lt_prog_compiler_pic_CXX in 14988 "" | " "*) ;; 14989 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14990 esac 14991else 14992 lt_prog_compiler_pic_CXX= 14993 lt_prog_compiler_can_build_shared_CXX=no 14994fi 14995 14996fi 14997 14998 14999 15000# 15001# Check to make sure the static flag actually works. 15002# 15003wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15005$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15006if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 15007 $as_echo_n "(cached) " >&6 15008else 15009 lt_cv_prog_compiler_static_works_CXX=no 15010 save_LDFLAGS="$LDFLAGS" 15011 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15012 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15013 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15014 # The linker can only warn and ignore the option if not recognized 15015 # So say no if there are warnings 15016 if test -s conftest.err; then 15017 # Append any errors to the config.log. 15018 cat conftest.err 1>&5 15019 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15021 if diff conftest.exp conftest.er2 >/dev/null; then 15022 lt_cv_prog_compiler_static_works_CXX=yes 15023 fi 15024 else 15025 lt_cv_prog_compiler_static_works_CXX=yes 15026 fi 15027 fi 15028 $RM -r conftest* 15029 LDFLAGS="$save_LDFLAGS" 15030 15031fi 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15033$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15034 15035if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15036 : 15037else 15038 lt_prog_compiler_static_CXX= 15039fi 15040 15041 15042 15043 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15046if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 15047 $as_echo_n "(cached) " >&6 15048else 15049 lt_cv_prog_compiler_c_o_CXX=no 15050 $RM -r conftest 2>/dev/null 15051 mkdir conftest 15052 cd conftest 15053 mkdir out 15054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15055 15056 lt_compiler_flag="-o out/conftest2.$ac_objext" 15057 # Insert the option either (1) after the last *FLAGS variable, or 15058 # (2) before a word containing "conftest.", or (3) at the end. 15059 # Note that $ac_compile itself does not contain backslashes and begins 15060 # with a dollar sign (not a hyphen), so the echo should work correctly. 15061 lt_compile=`echo "$ac_compile" | $SED \ 15062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15064 -e 's:$: $lt_compiler_flag:'` 15065 (eval echo "\"\$as_me:15065: $lt_compile\"" >&5) 15066 (eval "$lt_compile" 2>out/conftest.err) 15067 ac_status=$? 15068 cat out/conftest.err >&5 15069 echo "$as_me:15069: \$? = $ac_status" >&5 15070 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15071 then 15072 # The compiler can only warn and ignore the option if not recognized 15073 # So say no if there are warnings 15074 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15077 lt_cv_prog_compiler_c_o_CXX=yes 15078 fi 15079 fi 15080 chmod u+w . 2>&5 15081 $RM conftest* 15082 # SGI C++ compiler will create directory out/ii_files/ for 15083 # template instantiation 15084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15085 $RM out/* && rmdir out 15086 cd .. 15087 $RM -r conftest 15088 $RM conftest* 15089 15090fi 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15092$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15093 15094 15095 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15097$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15098if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 15099 $as_echo_n "(cached) " >&6 15100else 15101 lt_cv_prog_compiler_c_o_CXX=no 15102 $RM -r conftest 2>/dev/null 15103 mkdir conftest 15104 cd conftest 15105 mkdir out 15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15107 15108 lt_compiler_flag="-o out/conftest2.$ac_objext" 15109 # Insert the option either (1) after the last *FLAGS variable, or 15110 # (2) before a word containing "conftest.", or (3) at the end. 15111 # Note that $ac_compile itself does not contain backslashes and begins 15112 # with a dollar sign (not a hyphen), so the echo should work correctly. 15113 lt_compile=`echo "$ac_compile" | $SED \ 15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15116 -e 's:$: $lt_compiler_flag:'` 15117 (eval echo "\"\$as_me:15117: $lt_compile\"" >&5) 15118 (eval "$lt_compile" 2>out/conftest.err) 15119 ac_status=$? 15120 cat out/conftest.err >&5 15121 echo "$as_me:15121: \$? = $ac_status" >&5 15122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15123 then 15124 # The compiler can only warn and ignore the option if not recognized 15125 # So say no if there are warnings 15126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15129 lt_cv_prog_compiler_c_o_CXX=yes 15130 fi 15131 fi 15132 chmod u+w . 2>&5 15133 $RM conftest* 15134 # SGI C++ compiler will create directory out/ii_files/ for 15135 # template instantiation 15136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15137 $RM out/* && rmdir out 15138 cd .. 15139 $RM -r conftest 15140 $RM conftest* 15141 15142fi 15143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15144$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15145 15146 15147 15148 15149hard_links="nottested" 15150if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15151 # do not overwrite the value of need_locks provided by the user 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15153$as_echo_n "checking if we can lock with hard links... " >&6; } 15154 hard_links=yes 15155 $RM conftest* 15156 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15157 touch conftest.a 15158 ln conftest.a conftest.b 2>&5 || hard_links=no 15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15161$as_echo "$hard_links" >&6; } 15162 if test "$hard_links" = no; then 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15164$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15165 need_locks=warn 15166 fi 15167else 15168 need_locks=no 15169fi 15170 15171 15172 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15174$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15175 15176 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15177 case $host_os in 15178 aix[4-9]*) 15179 # If we're using GNU nm, then we don't want the "-C" option. 15180 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15182 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15183 else 15184 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15185 fi 15186 ;; 15187 pw32*) 15188 export_symbols_cmds_CXX="$ltdll_cmds" 15189 ;; 15190 cygwin* | mingw* | cegcc*) 15191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15192 ;; 15193 *) 15194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15195 ;; 15196 esac 15197 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15198 15199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15200$as_echo "$ld_shlibs_CXX" >&6; } 15201test "$ld_shlibs_CXX" = no && can_build_shared=no 15202 15203with_gnu_ld_CXX=$with_gnu_ld 15204 15205 15206 15207 15208 15209 15210# 15211# Do we need to explicitly link libc? 15212# 15213case "x$archive_cmds_need_lc_CXX" in 15214x|xyes) 15215 # Assume -lc should be added 15216 archive_cmds_need_lc_CXX=yes 15217 15218 if test "$enable_shared" = yes && test "$GCC" = yes; then 15219 case $archive_cmds_CXX in 15220 *'~'*) 15221 # FIXME: we may have to deal with multi-command sequences. 15222 ;; 15223 '$CC '*) 15224 # Test whether the compiler implicitly links with -lc since on some 15225 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15226 # to ld, don't add -lc before -lgcc. 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15228$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15229 $RM conftest* 15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15231 15232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15233 (eval $ac_compile) 2>&5 15234 ac_status=$? 15235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15236 test $ac_status = 0; } 2>conftest.err; then 15237 soname=conftest 15238 lib=conftest 15239 libobjs=conftest.$ac_objext 15240 deplibs= 15241 wl=$lt_prog_compiler_wl_CXX 15242 pic_flag=$lt_prog_compiler_pic_CXX 15243 compiler_flags=-v 15244 linker_flags=-v 15245 verstring= 15246 output_objdir=. 15247 libname=conftest 15248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15249 allow_undefined_flag_CXX= 15250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15251 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15252 ac_status=$? 15253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15254 test $ac_status = 0; } 15255 then 15256 archive_cmds_need_lc_CXX=no 15257 else 15258 archive_cmds_need_lc_CXX=yes 15259 fi 15260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15261 else 15262 cat conftest.err 1>&5 15263 fi 15264 $RM conftest* 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 15266$as_echo "$archive_cmds_need_lc_CXX" >&6; } 15267 ;; 15268 esac 15269 fi 15270 ;; 15271esac 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15337$as_echo_n "checking dynamic linker characteristics... " >&6; } 15338 15339library_names_spec= 15340libname_spec='lib$name' 15341soname_spec= 15342shrext_cmds=".so" 15343postinstall_cmds= 15344postuninstall_cmds= 15345finish_cmds= 15346finish_eval= 15347shlibpath_var= 15348shlibpath_overrides_runpath=unknown 15349version_type=none 15350dynamic_linker="$host_os ld.so" 15351sys_lib_dlsearch_path_spec="/lib /usr/lib" 15352need_lib_prefix=unknown 15353hardcode_into_libs=no 15354 15355# when you set need_version to no, make sure it does not cause -set_version 15356# flags to be left without arguments 15357need_version=unknown 15358 15359case $host_os in 15360aix3*) 15361 version_type=linux 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15363 shlibpath_var=LIBPATH 15364 15365 # AIX 3 has no versioning support, so we append a major version to the name. 15366 soname_spec='${libname}${release}${shared_ext}$major' 15367 ;; 15368 15369aix[4-9]*) 15370 version_type=linux 15371 need_lib_prefix=no 15372 need_version=no 15373 hardcode_into_libs=yes 15374 if test "$host_cpu" = ia64; then 15375 # AIX 5 supports IA64 15376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15377 shlibpath_var=LD_LIBRARY_PATH 15378 else 15379 # With GCC up to 2.95.x, collect2 would create an import file 15380 # for dependence libraries. The import file would start with 15381 # the line `#! .'. This would cause the generated library to 15382 # depend on `.', always an invalid library. This was fixed in 15383 # development snapshots of GCC prior to 3.0. 15384 case $host_os in 15385 aix4 | aix4.[01] | aix4.[01].*) 15386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15387 echo ' yes ' 15388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15389 : 15390 else 15391 can_build_shared=no 15392 fi 15393 ;; 15394 esac 15395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15396 # soname into executable. Probably we can add versioning support to 15397 # collect2, so additional links can be useful in future. 15398 if test "$aix_use_runtimelinking" = yes; then 15399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15400 # instead of lib<name>.a to let people know that these are not 15401 # typical AIX shared libraries. 15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15403 else 15404 # We preserve .a as extension for shared libraries through AIX4.2 15405 # and later when we are not doing run time linking. 15406 library_names_spec='${libname}${release}.a $libname.a' 15407 soname_spec='${libname}${release}${shared_ext}$major' 15408 fi 15409 shlibpath_var=LIBPATH 15410 fi 15411 ;; 15412 15413amigaos*) 15414 case $host_cpu in 15415 powerpc) 15416 # Since July 2007 AmigaOS4 officially supports .so libraries. 15417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15419 ;; 15420 m68k) 15421 library_names_spec='$libname.ixlibrary $libname.a' 15422 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15423 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' 15424 ;; 15425 esac 15426 ;; 15427 15428beos*) 15429 library_names_spec='${libname}${shared_ext}' 15430 dynamic_linker="$host_os ld.so" 15431 shlibpath_var=LIBRARY_PATH 15432 ;; 15433 15434bsdi[45]*) 15435 version_type=linux 15436 need_version=no 15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15438 soname_spec='${libname}${release}${shared_ext}$major' 15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15440 shlibpath_var=LD_LIBRARY_PATH 15441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15443 # the default ld.so.conf also contains /usr/contrib/lib and 15444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15445 # libtool to hard-code these into programs 15446 ;; 15447 15448cygwin* | mingw* | pw32* | cegcc*) 15449 version_type=windows 15450 shrext_cmds=".dll" 15451 need_version=no 15452 need_lib_prefix=no 15453 15454 case $GCC,$host_os in 15455 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 15456 library_names_spec='$libname.dll.a' 15457 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15458 postinstall_cmds='base_file=`basename \${file}`~ 15459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15460 dldir=$destdir/`dirname \$dlpath`~ 15461 test -d \$dldir || mkdir -p \$dldir~ 15462 $install_prog $dir/$dlname \$dldir/$dlname~ 15463 chmod a+x \$dldir/$dlname~ 15464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15466 fi' 15467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15468 dlpath=$dir/\$dldll~ 15469 $RM \$dlpath' 15470 shlibpath_overrides_runpath=yes 15471 15472 case $host_os in 15473 cygwin*) 15474 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15477 ;; 15478 mingw* | cegcc*) 15479 # MinGW DLLs use traditional 'lib' prefix 15480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15481 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15482 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15483 # It is most probably a Windows format PATH printed by 15484 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15485 # path with ; separators, and with drive letters. We can handle the 15486 # drive letters (cygwin fileutils understands them), so leave them, 15487 # especially as we might pass files found there to a mingw objdump, 15488 # which wouldn't understand a cygwinified path. Ahh. 15489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15490 else 15491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15492 fi 15493 ;; 15494 pw32*) 15495 # pw32 DLLs use 'pw' prefix rather than 'lib' 15496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15497 ;; 15498 esac 15499 ;; 15500 15501 *) 15502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15503 ;; 15504 esac 15505 dynamic_linker='Win32 ld.exe' 15506 # FIXME: first we should search . and the directory the executable is in 15507 shlibpath_var=PATH 15508 ;; 15509 15510darwin* | rhapsody*) 15511 dynamic_linker="$host_os dyld" 15512 version_type=darwin 15513 need_lib_prefix=no 15514 need_version=no 15515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15516 soname_spec='${libname}${release}${major}$shared_ext' 15517 shlibpath_overrides_runpath=yes 15518 shlibpath_var=DYLD_LIBRARY_PATH 15519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15520 15521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15522 ;; 15523 15524dgux*) 15525 version_type=linux 15526 need_lib_prefix=no 15527 need_version=no 15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15529 soname_spec='${libname}${release}${shared_ext}$major' 15530 shlibpath_var=LD_LIBRARY_PATH 15531 ;; 15532 15533freebsd1*) 15534 dynamic_linker=no 15535 ;; 15536 15537freebsd* | dragonfly*) 15538 # DragonFly does not have aout. When/if they implement a new 15539 # versioning mechanism, adjust this. 15540 if test -x /usr/bin/objformat; then 15541 objformat=`/usr/bin/objformat` 15542 else 15543 case $host_os in 15544 freebsd[123]*) objformat=aout ;; 15545 *) objformat=elf ;; 15546 esac 15547 fi 15548 version_type=freebsd-$objformat 15549 case $version_type in 15550 freebsd-elf*) 15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15552 need_version=no 15553 need_lib_prefix=no 15554 ;; 15555 freebsd-*) 15556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15557 need_version=yes 15558 ;; 15559 esac 15560 shlibpath_var=LD_LIBRARY_PATH 15561 case $host_os in 15562 freebsd2*) 15563 shlibpath_overrides_runpath=yes 15564 ;; 15565 freebsd3.[01]* | freebsdelf3.[01]*) 15566 shlibpath_overrides_runpath=yes 15567 hardcode_into_libs=yes 15568 ;; 15569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15571 shlibpath_overrides_runpath=no 15572 hardcode_into_libs=yes 15573 ;; 15574 *) # from 4.6 on, and DragonFly 15575 shlibpath_overrides_runpath=yes 15576 hardcode_into_libs=yes 15577 ;; 15578 esac 15579 ;; 15580 15581gnu*) 15582 version_type=linux 15583 need_lib_prefix=no 15584 need_version=no 15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15586 soname_spec='${libname}${release}${shared_ext}$major' 15587 shlibpath_var=LD_LIBRARY_PATH 15588 hardcode_into_libs=yes 15589 ;; 15590 15591hpux9* | hpux10* | hpux11*) 15592 # Give a soname corresponding to the major version so that dld.sl refuses to 15593 # link against other versions. 15594 version_type=sunos 15595 need_lib_prefix=no 15596 need_version=no 15597 case $host_cpu in 15598 ia64*) 15599 shrext_cmds='.so' 15600 hardcode_into_libs=yes 15601 dynamic_linker="$host_os dld.so" 15602 shlibpath_var=LD_LIBRARY_PATH 15603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15605 soname_spec='${libname}${release}${shared_ext}$major' 15606 if test "X$HPUX_IA64_MODE" = X32; then 15607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15608 else 15609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15610 fi 15611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15612 ;; 15613 hppa*64*) 15614 shrext_cmds='.sl' 15615 hardcode_into_libs=yes 15616 dynamic_linker="$host_os dld.sl" 15617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15620 soname_spec='${libname}${release}${shared_ext}$major' 15621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15623 ;; 15624 *) 15625 shrext_cmds='.sl' 15626 dynamic_linker="$host_os dld.sl" 15627 shlibpath_var=SHLIB_PATH 15628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15630 soname_spec='${libname}${release}${shared_ext}$major' 15631 ;; 15632 esac 15633 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15634 postinstall_cmds='chmod 555 $lib' 15635 ;; 15636 15637interix[3-9]*) 15638 version_type=linux 15639 need_lib_prefix=no 15640 need_version=no 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15642 soname_spec='${libname}${release}${shared_ext}$major' 15643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15644 shlibpath_var=LD_LIBRARY_PATH 15645 shlibpath_overrides_runpath=no 15646 hardcode_into_libs=yes 15647 ;; 15648 15649irix5* | irix6* | nonstopux*) 15650 case $host_os in 15651 nonstopux*) version_type=nonstopux ;; 15652 *) 15653 if test "$lt_cv_prog_gnu_ld" = yes; then 15654 version_type=linux 15655 else 15656 version_type=irix 15657 fi ;; 15658 esac 15659 need_lib_prefix=no 15660 need_version=no 15661 soname_spec='${libname}${release}${shared_ext}$major' 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15663 case $host_os in 15664 irix5* | nonstopux*) 15665 libsuff= shlibsuff= 15666 ;; 15667 *) 15668 case $LD in # libtool.m4 will add one of these switches to LD 15669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15670 libsuff= shlibsuff= libmagic=32-bit;; 15671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15672 libsuff=32 shlibsuff=N32 libmagic=N32;; 15673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15674 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15675 *) libsuff= shlibsuff= libmagic=never-match;; 15676 esac 15677 ;; 15678 esac 15679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15680 shlibpath_overrides_runpath=no 15681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15683 hardcode_into_libs=yes 15684 ;; 15685 15686# No shared lib support for Linux oldld, aout, or coff. 15687linux*oldld* | linux*aout* | linux*coff*) 15688 dynamic_linker=no 15689 ;; 15690 15691# This must be Linux ELF. 15692linux* | k*bsd*-gnu) 15693 version_type=linux 15694 need_lib_prefix=no 15695 need_version=no 15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15697 soname_spec='${libname}${release}${shared_ext}$major' 15698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15699 shlibpath_var=LD_LIBRARY_PATH 15700 shlibpath_overrides_runpath=no 15701 # Some binutils ld are patched to set DT_RUNPATH 15702 save_LDFLAGS=$LDFLAGS 15703 save_libdir=$libdir 15704 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15705 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708 15709int 15710main () 15711{ 15712 15713 ; 15714 return 0; 15715} 15716_ACEOF 15717if ac_fn_cxx_try_link "$LINENO"; then : 15718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15719 shlibpath_overrides_runpath=yes 15720fi 15721fi 15722rm -f core conftest.err conftest.$ac_objext \ 15723 conftest$ac_exeext conftest.$ac_ext 15724 LDFLAGS=$save_LDFLAGS 15725 libdir=$save_libdir 15726 15727 # This implies no fast_install, which is unacceptable. 15728 # Some rework will be needed to allow for fast_install 15729 # before this can be enabled. 15730 hardcode_into_libs=yes 15731 15732 # Append ld.so.conf contents to the search path 15733 if test -f /etc/ld.so.conf; then 15734 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' ' '` 15735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15736 fi 15737 15738 # We used to test for /lib/ld.so.1 and disable shared libraries on 15739 # powerpc, because MkLinux only supported shared libraries with the 15740 # GNU dynamic linker. Since this was broken with cross compilers, 15741 # most powerpc-linux boxes support dynamic linking these days and 15742 # people can always --disable-shared, the test was removed, and we 15743 # assume the GNU/Linux dynamic linker is in use. 15744 dynamic_linker='GNU/Linux ld.so' 15745 ;; 15746 15747netbsd*) 15748 version_type=sunos 15749 need_lib_prefix=no 15750 need_version=no 15751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15754 dynamic_linker='NetBSD (a.out) ld.so' 15755 else 15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15757 soname_spec='${libname}${release}${shared_ext}$major' 15758 dynamic_linker='NetBSD ld.elf_so' 15759 fi 15760 shlibpath_var=LD_LIBRARY_PATH 15761 shlibpath_overrides_runpath=yes 15762 hardcode_into_libs=yes 15763 ;; 15764 15765newsos6) 15766 version_type=linux 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15768 shlibpath_var=LD_LIBRARY_PATH 15769 shlibpath_overrides_runpath=yes 15770 ;; 15771 15772*nto* | *qnx*) 15773 version_type=qnx 15774 need_lib_prefix=no 15775 need_version=no 15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15777 soname_spec='${libname}${release}${shared_ext}$major' 15778 shlibpath_var=LD_LIBRARY_PATH 15779 shlibpath_overrides_runpath=no 15780 hardcode_into_libs=yes 15781 dynamic_linker='ldqnx.so' 15782 ;; 15783 15784openbsd*) 15785 version_type=sunos 15786 sys_lib_dlsearch_path_spec="/usr/lib" 15787 need_lib_prefix=no 15788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15789 case $host_os in 15790 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15791 *) need_version=no ;; 15792 esac 15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15795 shlibpath_var=LD_LIBRARY_PATH 15796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15797 case $host_os in 15798 openbsd2.[89] | openbsd2.[89].*) 15799 shlibpath_overrides_runpath=no 15800 ;; 15801 *) 15802 shlibpath_overrides_runpath=yes 15803 ;; 15804 esac 15805 else 15806 shlibpath_overrides_runpath=yes 15807 fi 15808 ;; 15809 15810os2*) 15811 libname_spec='$name' 15812 shrext_cmds=".dll" 15813 need_lib_prefix=no 15814 library_names_spec='$libname${shared_ext} $libname.a' 15815 dynamic_linker='OS/2 ld.exe' 15816 shlibpath_var=LIBPATH 15817 ;; 15818 15819osf3* | osf4* | osf5*) 15820 version_type=osf 15821 need_lib_prefix=no 15822 need_version=no 15823 soname_spec='${libname}${release}${shared_ext}$major' 15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15825 shlibpath_var=LD_LIBRARY_PATH 15826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15827 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15828 ;; 15829 15830rdos*) 15831 dynamic_linker=no 15832 ;; 15833 15834solaris*) 15835 version_type=linux 15836 need_lib_prefix=no 15837 need_version=no 15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15839 soname_spec='${libname}${release}${shared_ext}$major' 15840 shlibpath_var=LD_LIBRARY_PATH 15841 shlibpath_overrides_runpath=yes 15842 hardcode_into_libs=yes 15843 # ldd complains unless libraries are executable 15844 postinstall_cmds='chmod +x $lib' 15845 ;; 15846 15847sunos4*) 15848 version_type=sunos 15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15851 shlibpath_var=LD_LIBRARY_PATH 15852 shlibpath_overrides_runpath=yes 15853 if test "$with_gnu_ld" = yes; then 15854 need_lib_prefix=no 15855 fi 15856 need_version=yes 15857 ;; 15858 15859sysv4 | sysv4.3*) 15860 version_type=linux 15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15862 soname_spec='${libname}${release}${shared_ext}$major' 15863 shlibpath_var=LD_LIBRARY_PATH 15864 case $host_vendor in 15865 sni) 15866 shlibpath_overrides_runpath=no 15867 need_lib_prefix=no 15868 runpath_var=LD_RUN_PATH 15869 ;; 15870 siemens) 15871 need_lib_prefix=no 15872 ;; 15873 motorola) 15874 need_lib_prefix=no 15875 need_version=no 15876 shlibpath_overrides_runpath=no 15877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15878 ;; 15879 esac 15880 ;; 15881 15882sysv4*MP*) 15883 if test -d /usr/nec ;then 15884 version_type=linux 15885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15886 soname_spec='$libname${shared_ext}.$major' 15887 shlibpath_var=LD_LIBRARY_PATH 15888 fi 15889 ;; 15890 15891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15892 version_type=freebsd-elf 15893 need_lib_prefix=no 15894 need_version=no 15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15896 soname_spec='${libname}${release}${shared_ext}$major' 15897 shlibpath_var=LD_LIBRARY_PATH 15898 shlibpath_overrides_runpath=yes 15899 hardcode_into_libs=yes 15900 if test "$with_gnu_ld" = yes; then 15901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15902 else 15903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15904 case $host_os in 15905 sco3.2v5*) 15906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15907 ;; 15908 esac 15909 fi 15910 sys_lib_dlsearch_path_spec='/usr/lib' 15911 ;; 15912 15913tpf*) 15914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15915 version_type=linux 15916 need_lib_prefix=no 15917 need_version=no 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15919 shlibpath_var=LD_LIBRARY_PATH 15920 shlibpath_overrides_runpath=no 15921 hardcode_into_libs=yes 15922 ;; 15923 15924uts4*) 15925 version_type=linux 15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15927 soname_spec='${libname}${release}${shared_ext}$major' 15928 shlibpath_var=LD_LIBRARY_PATH 15929 ;; 15930 15931*) 15932 dynamic_linker=no 15933 ;; 15934esac 15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15936$as_echo "$dynamic_linker" >&6; } 15937test "$dynamic_linker" = no && can_build_shared=no 15938 15939variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15940if test "$GCC" = yes; then 15941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15942fi 15943 15944if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15946fi 15947if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15948 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15949fi 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15987$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15988hardcode_action_CXX= 15989if test -n "$hardcode_libdir_flag_spec_CXX" || 15990 test -n "$runpath_var_CXX" || 15991 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15992 15993 # We can hardcode non-existent directories. 15994 if test "$hardcode_direct_CXX" != no && 15995 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15996 # have to relink, otherwise we might link with an installed library 15997 # when we should be linking with a yet-to-be-installed one 15998 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15999 test "$hardcode_minus_L_CXX" != no; then 16000 # Linking always hardcodes the temporary library directory. 16001 hardcode_action_CXX=relink 16002 else 16003 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16004 hardcode_action_CXX=immediate 16005 fi 16006else 16007 # We cannot hardcode anything, or else we can only hardcode existing 16008 # directories. 16009 hardcode_action_CXX=unsupported 16010fi 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16012$as_echo "$hardcode_action_CXX" >&6; } 16013 16014if test "$hardcode_action_CXX" = relink || 16015 test "$inherit_rpath_CXX" = yes; then 16016 # Fast installation is not supported 16017 enable_fast_install=no 16018elif test "$shlibpath_overrides_runpath" = yes || 16019 test "$enable_shared" = no; then 16020 # Fast installation is not necessary 16021 enable_fast_install=needless 16022fi 16023 16024 16025 16026 16027 16028 16029 16030 fi # test -n "$compiler" 16031 16032 CC=$lt_save_CC 16033 LDCXX=$LD 16034 LD=$lt_save_LD 16035 GCC=$lt_save_GCC 16036 with_gnu_ld=$lt_save_with_gnu_ld 16037 lt_cv_path_LDCXX=$lt_cv_path_LD 16038 lt_cv_path_LD=$lt_save_path_LD 16039 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16040 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16041fi # test "$_lt_caught_CXX_error" != yes 16042 16043ac_ext=c 16044ac_cpp='$CPP $CPPFLAGS' 16045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16047ac_compiler_gnu=$ac_cv_c_compiler_gnu 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 ac_config_commands="$ac_config_commands libtool" 16062 16063 16064 16065 16066# Only expand once: 16067 16068 16069 16070SOFLAGS="-rpath \$(libdir)" 16071 16072# Set SOSUFFIX and friends 16073 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOSUFFIX from libtool" >&5 16075$as_echo_n "checking SOSUFFIX from libtool... " >&6; } 16076 module=no 16077 16078 versuffix="" 16079 release="" 16080 libname=libfoo 16081 eval _SOSUFFIX=\"$shrext_cmds\" 16082 if test "$_SOSUFFIX" = "" ; then 16083 _SOSUFFIX=".so" 16084 if test "$enable_shared" != "yes"; then 16085 if test "$_SOSUFFIX_MESSAGE" = ""; then 16086 _SOSUFFIX_MESSAGE=yes 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5 16088$as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;} 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5 16090$as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;} 16091 fi 16092 fi 16093 fi 16094 16095 SOSUFFIX=$_SOSUFFIX 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOSUFFIX" >&5 16097$as_echo "$SOSUFFIX" >&6; } 16098 16099 16100 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MODSUFFIX from libtool" >&5 16102$as_echo_n "checking MODSUFFIX from libtool... " >&6; } 16103 module=yes 16104 16105 versuffix="" 16106 release="" 16107 libname=libfoo 16108 eval _SOSUFFIX=\"$shrext_cmds\" 16109 if test "$_SOSUFFIX" = "" ; then 16110 _SOSUFFIX=".so" 16111 if test "$enable_shared" != "yes"; then 16112 if test "$_SOSUFFIX_MESSAGE" = ""; then 16113 _SOSUFFIX_MESSAGE=yes 16114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5 16115$as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;} 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5 16117$as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;} 16118 fi 16119 fi 16120 fi 16121 16122 MODSUFFIX=$_SOSUFFIX 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODSUFFIX" >&5 16124$as_echo "$MODSUFFIX" >&6; } 16125 16126 16127 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JMODSUFFIX from libtool" >&5 16129$as_echo_n "checking JMODSUFFIX from libtool... " >&6; } 16130 module=yes 16131 16132 versuffix="" 16133 release="" 16134 libname=libfoo 16135 eval _SOSUFFIX=\"$shrext_cmds\" 16136 if test "$_SOSUFFIX" = "" ; then 16137 _SOSUFFIX=".so" 16138 if test "$enable_shared" != "yes"; then 16139 if test "$_SOSUFFIX_MESSAGE" = ""; then 16140 _SOSUFFIX_MESSAGE=yes 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5 16142$as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;} 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5 16144$as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;} 16145 fi 16146 fi 16147 fi 16148 16149 if test `uname` = "Darwin"; then 16150 JMODSUFFIX=".jnilib" 16151 else 16152 JMODSUFFIX=$_SOSUFFIX 16153 fi 16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JMODSUFFIX" >&5 16155$as_echo "$JMODSUFFIX" >&6; } 16156 16157 16158 16159LIBTOOL="./libtool" 16160 16161INSTALLER="\$(LIBTOOL) --mode=install cp -p" 16162 16163MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}" 16164MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version" 16165MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}" 16166MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}" 16167MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version" 16168MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}" 16169 16170 16171case "$host_os" in 16172cygwin* | mingw*) 16173 MAKEFILE_SOLINK="$MAKEFILE_SOLINK -no-undefined" 16174 MAKEFILE_XSOLINK="$MAKEFILE_XSOLINK -no-undefined";; 16175esac 16176 16177case "$host_os" in 16178 darwin*) 16179 LIBTSO_MODULE="" 16180 LIBTSO_MODSUFFIX=".dylib";; 16181 *qnx*) 16182 LIBTSO_MODULE="" 16183 LIBTSO_MODSUFFIX=$MODSUFFIX;; 16184 *) 16185 LIBTSO_MODULE="-module" 16186 LIBTSO_MODSUFFIX=$MODSUFFIX;; 16187esac 16188 16189# C API. 16190if test "$enable_shared" = "no"; then 16191 DEFAULT_LIB="\$(libdb_version)" 16192 POSTLINK=": " 16193 o=".o" 16194else 16195 DEFAULT_LIB="\$(libso_target)" 16196 POSTLINK="\$(LIBTOOL) --mode=execute true" 16197 o=".lo" 16198fi 16199INSTALL_LIBS="$DEFAULT_LIB" 16200if test "$enable_static" = "yes"; then 16201 INSTALL_LIBS="$INSTALL_LIBS \$(libdb)" 16202fi 16203 16204# Optional C++ API. 16205if test "$db_cv_cxx" = "yes"; then 16206 if test "$enable_shared" = "no"; then 16207 DEFAULT_LIB_CXX="\$(libcxx_version)" 16208 fi 16209 if test "$enable_shared" = "yes"; then 16210 DEFAULT_LIB_CXX="\$(libxso_target)" 16211 fi 16212 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX" 16213 if test "$enable_static" = "yes"; then 16214 INSTALL_LIBS="$INSTALL_LIBS \$(libcxx)" 16215 fi 16216fi 16217 16218# Optional Java API. 16219if test "$db_cv_java" = "yes"; then 16220 # Java requires shared libraries. 16221 if test "$enable_shared" = "no"; then 16222 as_fn_error "Java requires shared libraries" "$LINENO" 5 16223 fi 16224 16225 # A classpath that includes . is needed to check for Java 16226 # Since Cygwin uses Windows' javac, we need Windows path separators 16227 case "$host_os" in 16228 cygwin*) CLASSPATH=".;$CLASSPATH";; 16229 *) CLASSPATH=".:$CLASSPATH";; 16230 esac 16231 export CLASSPATH 16232 16233 16234if test "x$JAVAPREFIX" = x; then 16235 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT 16236do 16237 # Extract the first word of "$ac_prog", so it can be a program name with args. 16238set dummy $ac_prog; ac_word=$2 16239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16240$as_echo_n "checking for $ac_word... " >&6; } 16241if test "${ac_cv_prog_JAVAC+set}" = set; then : 16242 $as_echo_n "(cached) " >&6 16243else 16244 if test -n "$JAVAC"; then 16245 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 16246else 16247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16248for as_dir in $PATH 16249do 16250 IFS=$as_save_IFS 16251 test -z "$as_dir" && as_dir=. 16252 for ac_exec_ext in '' $ac_executable_extensions; do 16253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16254 ac_cv_prog_JAVAC="$ac_prog" 16255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16256 break 2 16257 fi 16258done 16259 done 16260IFS=$as_save_IFS 16261 16262fi 16263fi 16264JAVAC=$ac_cv_prog_JAVAC 16265if test -n "$JAVAC"; then 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 16267$as_echo "$JAVAC" >&6; } 16268else 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16270$as_echo "no" >&6; } 16271fi 16272 16273 16274 test -n "$JAVAC" && break 16275done 16276 16277else 16278 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT 16279do 16280 # Extract the first word of "$ac_prog", so it can be a program name with args. 16281set dummy $ac_prog; ac_word=$2 16282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16283$as_echo_n "checking for $ac_word... " >&6; } 16284if test "${ac_cv_prog_JAVAC+set}" = set; then : 16285 $as_echo_n "(cached) " >&6 16286else 16287 if test -n "$JAVAC"; then 16288 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 16289else 16290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16291for as_dir in $PATH 16292do 16293 IFS=$as_save_IFS 16294 test -z "$as_dir" && as_dir=. 16295 for ac_exec_ext in '' $ac_executable_extensions; do 16296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16297 ac_cv_prog_JAVAC="$ac_prog" 16298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16299 break 2 16300 fi 16301done 16302 done 16303IFS=$as_save_IFS 16304 16305fi 16306fi 16307JAVAC=$ac_cv_prog_JAVAC 16308if test -n "$JAVAC"; then 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 16310$as_echo "$JAVAC" >&6; } 16311else 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16313$as_echo "no" >&6; } 16314fi 16315 16316 16317 test -n "$JAVAC" && break 16318done 16319test -n "$JAVAC" || JAVAC="$JAVAPREFIX" 16320 16321fi 16322test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5 16323 16324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 16325$as_echo_n "checking if $JAVAC works... " >&6; } 16326if test "${ac_cv_prog_javac_works+set}" = set; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 16330JAVA_TEST=Test.java 16331CLASS_TEST=Test.class 16332cat << \EOF > $JAVA_TEST 16333/* #line 16333 "configure" */ 16334public class Test { 16335} 16336EOF 16337if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST' 16338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16339 (eval $ac_try) 2>&5 16340 ac_status=$? 16341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16342 test $ac_status = 0; }; } >/dev/null 2>&1; then 16343 ac_cv_prog_javac_works=yes 16344else 16345 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 16346 echo "configure: failed program was:" >&5 16347 cat $JAVA_TEST >&5 16348fi 16349rm -f $JAVA_TEST $CLASS_TEST 16350 16351fi 16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 16353$as_echo "$ac_cv_prog_javac_works" >&6; } 16354 16355 16356 16357if test "x$JAVAPREFIX" = x; then 16358 test "x$JAR" = x && for ac_prog in jar$EXEEXT 16359do 16360 # Extract the first word of "$ac_prog", so it can be a program name with args. 16361set dummy $ac_prog; ac_word=$2 16362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16363$as_echo_n "checking for $ac_word... " >&6; } 16364if test "${ac_cv_prog_JAR+set}" = set; then : 16365 $as_echo_n "(cached) " >&6 16366else 16367 if test -n "$JAR"; then 16368 ac_cv_prog_JAR="$JAR" # Let the user override the test. 16369else 16370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16371for as_dir in $PATH 16372do 16373 IFS=$as_save_IFS 16374 test -z "$as_dir" && as_dir=. 16375 for ac_exec_ext in '' $ac_executable_extensions; do 16376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16377 ac_cv_prog_JAR="$ac_prog" 16378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16379 break 2 16380 fi 16381done 16382 done 16383IFS=$as_save_IFS 16384 16385fi 16386fi 16387JAR=$ac_cv_prog_JAR 16388if test -n "$JAR"; then 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 16390$as_echo "$JAR" >&6; } 16391else 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16393$as_echo "no" >&6; } 16394fi 16395 16396 16397 test -n "$JAR" && break 16398done 16399 16400else 16401 test "x$JAR" = x && for ac_prog in jar 16402do 16403 # Extract the first word of "$ac_prog", so it can be a program name with args. 16404set dummy $ac_prog; ac_word=$2 16405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16406$as_echo_n "checking for $ac_word... " >&6; } 16407if test "${ac_cv_prog_JAR+set}" = set; then : 16408 $as_echo_n "(cached) " >&6 16409else 16410 if test -n "$JAR"; then 16411 ac_cv_prog_JAR="$JAR" # Let the user override the test. 16412else 16413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16414for as_dir in $PATH 16415do 16416 IFS=$as_save_IFS 16417 test -z "$as_dir" && as_dir=. 16418 for ac_exec_ext in '' $ac_executable_extensions; do 16419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16420 ac_cv_prog_JAR="$ac_prog" 16421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16422 break 2 16423 fi 16424done 16425 done 16426IFS=$as_save_IFS 16427 16428fi 16429fi 16430JAR=$ac_cv_prog_JAR 16431if test -n "$JAR"; then 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 16433$as_echo "$JAR" >&6; } 16434else 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16436$as_echo "no" >&6; } 16437fi 16438 16439 16440 test -n "$JAR" && break 16441done 16442test -n "$JAR" || JAR="$JAVAPREFIX" 16443 16444fi 16445test "x$JAR" = x && as_fn_error "no acceptable jar program found in \$PATH" "$LINENO" 5 16446 16447 16448if test x$JAVAPREFIX = x; then 16449 test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT 16450do 16451 # Extract the first word of "$ac_prog", so it can be a program name with args. 16452set dummy $ac_prog; ac_word=$2 16453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16454$as_echo_n "checking for $ac_word... " >&6; } 16455if test "${ac_cv_prog_JAVA+set}" = set; then : 16456 $as_echo_n "(cached) " >&6 16457else 16458 if test -n "$JAVA"; then 16459 ac_cv_prog_JAVA="$JAVA" # Let the user override the test. 16460else 16461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16462for as_dir in $PATH 16463do 16464 IFS=$as_save_IFS 16465 test -z "$as_dir" && as_dir=. 16466 for ac_exec_ext in '' $ac_executable_extensions; do 16467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16468 ac_cv_prog_JAVA="$ac_prog" 16469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16470 break 2 16471 fi 16472done 16473 done 16474IFS=$as_save_IFS 16475 16476fi 16477fi 16478JAVA=$ac_cv_prog_JAVA 16479if test -n "$JAVA"; then 16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 16481$as_echo "$JAVA" >&6; } 16482else 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16484$as_echo "no" >&6; } 16485fi 16486 16487 16488 test -n "$JAVA" && break 16489done 16490 16491else 16492 test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT 16493do 16494 # Extract the first word of "$ac_prog", so it can be a program name with args. 16495set dummy $ac_prog; ac_word=$2 16496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16497$as_echo_n "checking for $ac_word... " >&6; } 16498if test "${ac_cv_prog_JAVA+set}" = set; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 if test -n "$JAVA"; then 16502 ac_cv_prog_JAVA="$JAVA" # Let the user override the test. 16503else 16504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16505for as_dir in $PATH 16506do 16507 IFS=$as_save_IFS 16508 test -z "$as_dir" && as_dir=. 16509 for ac_exec_ext in '' $ac_executable_extensions; do 16510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16511 ac_cv_prog_JAVA="$ac_prog" 16512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16513 break 2 16514 fi 16515done 16516 done 16517IFS=$as_save_IFS 16518 16519fi 16520fi 16521JAVA=$ac_cv_prog_JAVA 16522if test -n "$JAVA"; then 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 16524$as_echo "$JAVA" >&6; } 16525else 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16527$as_echo "no" >&6; } 16528fi 16529 16530 16531 test -n "$JAVA" && break 16532done 16533test -n "$JAVA" || JAVA="$JAVAPREFIX" 16534 16535fi 16536test x$JAVA = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5 16537 16538# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args. 16539set dummy uudecode$EXEEXT; ac_word=$2 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16541$as_echo_n "checking for $ac_word... " >&6; } 16542if test "${ac_cv_prog_uudecode+set}" = set; then : 16543 $as_echo_n "(cached) " >&6 16544else 16545 if test -n "$uudecode"; then 16546 ac_cv_prog_uudecode="$uudecode" # Let the user override the test. 16547else 16548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16549for as_dir in $PATH 16550do 16551 IFS=$as_save_IFS 16552 test -z "$as_dir" && as_dir=. 16553 for ac_exec_ext in '' $ac_executable_extensions; do 16554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16555 ac_cv_prog_uudecode="yes" 16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16557 break 2 16558 fi 16559done 16560 done 16561IFS=$as_save_IFS 16562 16563fi 16564fi 16565uudecode=$ac_cv_prog_uudecode 16566if test -n "$uudecode"; then 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5 16568$as_echo "$uudecode" >&6; } 16569else 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16571$as_echo "no" >&6; } 16572fi 16573 16574 16575if test x$uudecode = xyes; then 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5 16577$as_echo_n "checking if uudecode can decode base 64 file... " >&6; } 16578if test "${ac_cv_prog_uudecode_base64+set}" = set; then : 16579 $as_echo_n "(cached) " >&6 16580else 16581 16582cat << \EOF > Test.uue 16583begin-base64 644 Test.class 16584yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE 16585bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51 16586bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s 16587YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG 16588aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB 16589AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB 16590AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ= 16591==== 16592EOF 16593if uudecode$EXEEXT Test.uue; then 16594 ac_cv_prog_uudecode_base64=yes 16595else 16596 echo "configure: 16596: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 16597 echo "configure: failed file was:" >&5 16598 cat Test.uue >&5 16599 ac_cv_prog_uudecode_base64=no 16600fi 16601rm -f Test.uue 16602fi 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5 16604$as_echo "$ac_cv_prog_uudecode_base64" >&6; } 16605fi 16606if test x$ac_cv_prog_uudecode_base64 != xyes; then 16607 rm -f Test.class 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5 16609$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;} 16610 if test x$ac_cv_prog_javac_works = xno; then 16611 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5 16612 fi 16613 if test x$ac_cv_prog_javac_works = x; then 16614 16615if test "x$JAVAPREFIX" = x; then 16616 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT 16617do 16618 # Extract the first word of "$ac_prog", so it can be a program name with args. 16619set dummy $ac_prog; ac_word=$2 16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16621$as_echo_n "checking for $ac_word... " >&6; } 16622if test "${ac_cv_prog_JAVAC+set}" = set; then : 16623 $as_echo_n "(cached) " >&6 16624else 16625 if test -n "$JAVAC"; then 16626 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 16627else 16628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16629for as_dir in $PATH 16630do 16631 IFS=$as_save_IFS 16632 test -z "$as_dir" && as_dir=. 16633 for ac_exec_ext in '' $ac_executable_extensions; do 16634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16635 ac_cv_prog_JAVAC="$ac_prog" 16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16637 break 2 16638 fi 16639done 16640 done 16641IFS=$as_save_IFS 16642 16643fi 16644fi 16645JAVAC=$ac_cv_prog_JAVAC 16646if test -n "$JAVAC"; then 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 16648$as_echo "$JAVAC" >&6; } 16649else 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16651$as_echo "no" >&6; } 16652fi 16653 16654 16655 test -n "$JAVAC" && break 16656done 16657 16658else 16659 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT 16660do 16661 # Extract the first word of "$ac_prog", so it can be a program name with args. 16662set dummy $ac_prog; ac_word=$2 16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16664$as_echo_n "checking for $ac_word... " >&6; } 16665if test "${ac_cv_prog_JAVAC+set}" = set; then : 16666 $as_echo_n "(cached) " >&6 16667else 16668 if test -n "$JAVAC"; then 16669 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 16670else 16671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16672for as_dir in $PATH 16673do 16674 IFS=$as_save_IFS 16675 test -z "$as_dir" && as_dir=. 16676 for ac_exec_ext in '' $ac_executable_extensions; do 16677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16678 ac_cv_prog_JAVAC="$ac_prog" 16679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16680 break 2 16681 fi 16682done 16683 done 16684IFS=$as_save_IFS 16685 16686fi 16687fi 16688JAVAC=$ac_cv_prog_JAVAC 16689if test -n "$JAVAC"; then 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 16691$as_echo "$JAVAC" >&6; } 16692else 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16694$as_echo "no" >&6; } 16695fi 16696 16697 16698 test -n "$JAVAC" && break 16699done 16700test -n "$JAVAC" || JAVAC="$JAVAPREFIX" 16701 16702fi 16703test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5 16704 16705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 16706$as_echo_n "checking if $JAVAC works... " >&6; } 16707if test "${ac_cv_prog_javac_works+set}" = set; then : 16708 $as_echo_n "(cached) " >&6 16709else 16710 16711JAVA_TEST=Test.java 16712CLASS_TEST=Test.class 16713cat << \EOF > $JAVA_TEST 16714/* #line 16714 "configure" */ 16715public class Test { 16716} 16717EOF 16718if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST' 16719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16720 (eval $ac_try) 2>&5 16721 ac_status=$? 16722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16723 test $ac_status = 0; }; } >/dev/null 2>&1; then 16724 ac_cv_prog_javac_works=yes 16725else 16726 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 16727 echo "configure: failed program was:" >&5 16728 cat $JAVA_TEST >&5 16729fi 16730rm -f $JAVA_TEST $CLASS_TEST 16731 16732fi 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 16734$as_echo "$ac_cv_prog_javac_works" >&6; } 16735 16736 16737 fi 16738fi 16739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5 16740$as_echo_n "checking if $JAVA works... " >&6; } 16741if test "${ac_cv_prog_java_works+set}" = set; then : 16742 $as_echo_n "(cached) " >&6 16743else 16744 16745JAVA_TEST=Test.java 16746CLASS_TEST=Test.class 16747TEST=Test 16748cat << \EOF > $JAVA_TEST 16749/* [#]line 16749 "configure" */ 16750public class Test { 16751public static void main (String args[]) { 16752 System.exit (0); 16753} } 16754EOF 16755if test x$ac_cv_prog_uudecode_base64 != xyes; then 16756 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST' 16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16758 (eval $ac_try) 2>&5 16759 ac_status=$? 16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16761 test $ac_status = 0; }; } && test -s $CLASS_TEST; then 16762 : 16763 else 16764 echo "configure: failed program was:" >&5 16765 cat $JAVA_TEST >&5 16766 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 16767 fi 16768fi 16769if { ac_try='$JAVA $JAVAFLAGS $TEST' 16770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16771 (eval $ac_try) 2>&5 16772 ac_status=$? 16773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16774 test $ac_status = 0; }; } >/dev/null 2>&1; then 16775 ac_cv_prog_java_works=yes 16776else 16777 echo "configure: failed program was:" >&5 16778 cat $JAVA_TEST >&5 16779 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 16780fi 16781rm -fr $JAVA_TEST $CLASS_TEST Test.uue 16782 16783fi 16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5 16785$as_echo "$ac_cv_prog_java_works" >&6; } 16786 16787 16788 16789 16790 16791JNI_INCLUDE_DIRS="" 16792 16793test "x$JAVAC" = x && as_fn_error "'$JAVAC' undefined" "$LINENO" 5 16794# Extract the first word of "$JAVAC", so it can be a program name with args. 16795set dummy $JAVAC; ac_word=$2 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16797$as_echo_n "checking for $ac_word... " >&6; } 16798if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 case $_ACJNI_JAVAC in 16802 [\\/]* | ?:[\\/]*) 16803 ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path. 16804 ;; 16805 *) 16806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16807for as_dir in $PATH 16808do 16809 IFS=$as_save_IFS 16810 test -z "$as_dir" && as_dir=. 16811 for ac_exec_ext in '' $ac_executable_extensions; do 16812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16813 ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" 16814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16815 break 2 16816 fi 16817done 16818 done 16819IFS=$as_save_IFS 16820 16821 test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC" 16822 ;; 16823esac 16824fi 16825_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC 16826if test -n "$_ACJNI_JAVAC"; then 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 16828$as_echo "$_ACJNI_JAVAC" >&6; } 16829else 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16831$as_echo "no" >&6; } 16832fi 16833 16834 16835test ! -x "$_ACJNI_JAVAC" && as_fn_error "$JAVAC could not be found in path" "$LINENO" 5 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute path of $JAVAC" >&5 16837$as_echo_n "checking absolute path of $JAVAC... " >&6; } 16838case "$_ACJNI_JAVAC" in 16839/*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 16840$as_echo "$_ACJNI_JAVAC" >&6; };; 16841*) as_fn_error "$_ACJNI_JAVAC is not an absolute path name" "$LINENO" 5;; 16842esac 16843 16844 16845# find the include directory relative to the javac executable 16846_cur=""$_ACJNI_JAVAC"" 16847while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5 16849$as_echo_n "checking symlink for $_cur... " >&6; } 16850 _slink=`ls -ld "$_cur" | sed 's/.* -> //'` 16851 case "$_slink" in 16852 /*) _cur="$_slink";; 16853 # 'X' avoids triggering unwanted echo options. 16854 *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";; 16855 esac 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5 16857$as_echo "$_cur" >&6; } 16858done 16859_ACJNI_FOLLOWED="$_cur" 16860 16861_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'` 16862case "$host_os" in 16863 darwin*) _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` 16864 _JINC="$_JTOPDIR/Headers";; 16865 *) _JINC="$_JTOPDIR/include";; 16866esac 16867 16868# If we find jni.h in /usr/include, then it's not a java-only tree, so 16869# don't add /usr/include or subdirectories to the list of includes. 16870# An extra -I/usr/include can foul things up with newer gcc's. 16871# 16872# If we don't find jni.h, just keep going. Hopefully javac knows where 16873# to find its include files, even if we can't. 16874if test -r "$_JINC/jni.h"; then 16875 if test "$_JINC" != "/usr/include"; then 16876 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC" 16877 fi 16878else 16879 _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` 16880 if test -r "$_JTOPDIR/include/jni.h"; then 16881 if test "$_JTOPDIR" != "/usr"; then 16882 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include" 16883 fi 16884 fi 16885fi 16886 16887# get the likely subdirectories for system specific java includes 16888if test "$_JTOPDIR" != "/usr"; then 16889 case "$host_os" in 16890 aix*) _JNI_INC_SUBDIRS="aix";; 16891 bsdi*) _JNI_INC_SUBDIRS="bsdos";; 16892 cygwin*) _JNI_INC_SUBDIRS="win32";; 16893 freebsd*) _JNI_INC_SUBDIRS="freebsd";; 16894 hp*) _JNI_INC_SUBDIRS="hp-ux";; 16895 linux*) _JNI_INC_SUBDIRS="linux genunix";; 16896 osf*) _JNI_INC_SUBDIRS="alpha";; 16897 solaris*) _JNI_INC_SUBDIRS="solaris";; 16898 *) _JNI_INC_SUBDIRS="genunix";; 16899 esac 16900fi 16901 16902# add any subdirectories that are present 16903for _JINCSUBDIR in $_JNI_INC_SUBDIRS 16904do 16905 if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then 16906 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR" 16907 fi 16908done 16909 16910 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking java version" >&5 16912$as_echo_n "checking java version... " >&6; } 16913 case "$JAVA" in 16914 *kaffe* ) 16915 JAVA_VERSION=`$JAVA -version 2>&1 | 16916 sed -e '/Java Version:/!d' -e 's/.*Java Version: \([^ ]*\)[ ]*/\1/'` ;; 16917 * ) JAVA_VERSION=`$JAVA -version 2>&1 | 16918 sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;; 16919 esac 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_VERSION" >&5 16921$as_echo "$JAVA_VERSION" >&6; } 16922 case "$JAVA_VERSION" in 16923 1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;; 16924 * ) 16925 as_fn_error "Java version 1.3 or higher required, got $JAVA_VERSION" "$LINENO" 5 ;; 16926 esac 16927 16928 # Because of the code that SWIG generates to cast between pointers and 16929 # integers, we need to add the flag "-fno-strict-aliasing" to the gcc 16930 # command line when compiling the JNI code. This is documented in 16931 # [#14953] and at http://www.swig.org/Doc1.3/Java.html 16932 if test "${GCC}" = "yes"; then 16933 SWIGCFLAGS="-fno-strict-aliasing" 16934 fi 16935 16936 for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS 16937 do 16938 CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR" 16939 done 16940 16941 ADDITIONAL_LANG="$ADDITIONAL_LANG java" 16942 INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)" 16943else 16944 JAVAC=nojavac 16945fi 16946 16947# MinGW support. 16948if test "$db_cv_mingw" = "yes"; then 16949 OSDIR=os_windows 16950 PATH_SEPARATOR="\\\\/:" 16951 16952 $as_echo "#define DB_WIN32 1" >>confdefs.h 16953 16954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 16955 16956else 16957 OSDIR=os 16958 PATH_SEPARATOR="/" 16959 $as_echo "#define HAVE_SYSTEM_INCLUDE_FILES 1" >>confdefs.h 16960 16961fi 16962 16963# Optional STL API. 16964if test "$db_cv_stl" = "yes"; then 16965 16966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports templates for STL" >&5 16967$as_echo_n "checking whether the C++ compiler supports templates for STL... " >&6; } 16968 16969ac_ext=cpp 16970ac_cpp='$CXXCPP $CPPFLAGS' 16971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16974 16975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976/* end confdefs.h. */ 16977#include <iostream> 16978#include <string> 16979#include <vector> 16980 16981using std::string; 16982using std::vector; 16983namespace dbstl_configure_test { 16984 16985template<typename T1, typename T2 = int> 16986class MyClass 16987{ 16988public: 16989 explicit MyClass(int i) { imem = i;} 16990 16991 MyClass(const T1& t1, const T2& t2, int i) 16992 { 16993 mem1 = t1; 16994 mem2 = t2; 16995 imem = i; 16996 } 16997 16998 template <typename T3> 16999 T2 templ_mem_func(T1 t1, T3 t3) 17000 { 17001 mem2 = t1; 17002 T3 t32 = t3; 17003 T2 t2; 17004 return t2; 17005 } 17006 17007 double templ_mem_func(T1 t1, double t3) 17008 { 17009 mem1 = t1; 17010 double t32 = t3; 17011 return t3; 17012 } 17013 17014 template <typename ReturnType, typename T7, typename T8> 17015 ReturnType templ_mem_func(T7, T8); 17016 17017 operator T1() const {return mem1;} 17018private: 17019 T1 mem1; 17020 T2 mem2; 17021 int imem; 17022}; 17023 17024template<typename T1, typename T2> 17025template <typename ReturnType, typename T7, typename T8> 17026ReturnType MyClass<T1, T2>::templ_mem_func(T7, T8) 17027{ 17028 ReturnType rt; 17029 return rt; 17030} 17031 17032template<> 17033class MyClass<double, float> 17034{ 17035public: 17036 explicit MyClass(int i) { imem = i;} 17037 17038 MyClass(const double& t1, const float& t2, int i) 17039 { 17040 mem1 = t1; 17041 mem2 = t2; 17042 imem = i; 17043 } 17044 17045 template <typename T3> 17046 float templ_mem_func(double t1, T3 t3) 17047 { 17048 mem2 = t1; 17049 T3 t32 = t3; 17050 float t2; 17051 return t2; 17052 } 17053 17054 double templ_mem_func(double t1, double t3) 17055 { 17056 mem1 = t1; 17057 double t32 = t3; 17058 return t3; 17059 } 17060 17061 template <typename ReturnType, typename T7, typename T8> 17062 ReturnType templ_mem_func(T7, T8); 17063 17064 operator double() const {return mem1;} 17065private: 17066 double mem1; 17067 float mem2; 17068 int imem; 17069}; 17070 17071template <typename ReturnType, typename T7, typename T8> 17072ReturnType MyClass<double, float>::templ_mem_func(T7, T8) 17073{ 17074 ReturnType rt; 17075 return rt; 17076} 17077 17078template <typename T1, typename T2> 17079class MyClass2 { 17080public: 17081 MyClass2(const T1& t1, const T2&t2){} 17082}; 17083 17084// partial specialization: both template parameters have same type 17085template <typename T> 17086class MyClass2<T,T> { 17087public: 17088 MyClass2(const T& t1, const T&t2){} 17089}; 17090 17091// partial specialization: second type is int 17092template <typename T> 17093class MyClass2<T,int> { 17094public: 17095 MyClass2(const T& t1, const int&t2){} 17096}; 17097 17098// partial specialization: both template parameters are pointer types 17099template <typename T1, typename T2> 17100class MyClass2<T1*,T2*> { 17101public: 17102 MyClass2(const T1* t1, const T2*t2){} 17103}; 17104 17105template <typename T> 17106class MyClass2<T*,T*> { 17107public: 17108 MyClass2(const T* t1, const T*t2){} 17109}; 17110 17111template <typename T4, typename T5> 17112int part_spec_func(T4 t4, T5 t5) 17113{ 17114 // Zero Initialization should work. 17115 T4 t44 = T4(); 17116 T5 t55 = T5(); 17117 17118 t44 = t4; 17119 t55 = t5; 17120} 17121 17122template <typename T4> 17123int part_spec_func(T4 t4, std::vector<T4> t55) 17124{ 17125 T4 t44 = t4; 17126 std::vector<T4> abc = t55; 17127} 17128 17129// maximum of two int values 17130inline int const& max (int const& a, int const& b) 17131{ 17132 return a<b?b:a; 17133} 17134 17135// maximum of two values of any type 17136template <typename T1, typename T2> 17137inline T2 const max (T1 const& a, T2 const& b) 17138{ 17139 return a<b?b:a; 17140} 17141// maximum of two values of any type 17142template <typename T> 17143inline T const& max (T const& a, T const& b) 17144{ 17145 return a<b?b:a; 17146} 17147 17148// maximum of three values of any type 17149template <typename T> 17150inline T const& max (T const& a, T const& b, T const& c) 17151{ 17152 return max (max(a,b), c); 17153} 17154 17155template <typename T> 17156class Base { 17157public: 17158 void exit2(){} 17159 Base(){} 17160}; 17161 17162template <typename T> 17163class Derived : public Base<T> { 17164public: 17165 // Call Base<T>() explicitly here, otherwise can't access it. 17166 // Kind of like this->. 17167 Derived() : Base<T>(){} 17168 17169 void foo() { 17170 this->exit2(); 17171 } 17172}; 17173 17174} // dbstl_configure_test 17175 17176using namespace dbstl_configure_test; 17177int 17178main () 17179{ 17180 17181 char cc = 'a'; 17182 int i = 4; 17183 double pi = 3.14; 17184 float gold = 0.618; 17185 17186 MyClass2<int,float> mif(i, gold); // uses MyClass2<T1,T2> 17187 MyClass2<float,float> mff(gold, gold); // uses MyClass2<T,T> 17188 MyClass2<float,int> mfi(gold, i); // uses MyClass2<T,int> 17189 MyClass2<int*,float*> mp(&i, &gold); // uses MyClass2<T1*,T2*> 17190 MyClass2<int*,int*> m(&i, &i); // uses MyClass2<T*, T*> 17191 17192 MyClass<char> obj1(i); 17193 obj1.templ_mem_func(cc, pi); 17194 obj1.templ_mem_func(cc, gold); 17195 obj1.templ_mem_func(i, pi); 17196 obj1.templ_mem_func(cc, cc); 17197 char ch = (char)obj1; 17198 17199 string str1("abc"), str2("def"); 17200 MyClass<const char*, std::string> obj2(str1.c_str(), str2, i); 17201 obj2.templ_mem_func("klm", str2); 17202 obj2.templ_mem_func("hij", pi); 17203 17204 // Use j to help distinguish, otherwise unable to use the one defined 17205 // outside of class body. 17206 int j = obj2.templ_mem_func<int, char, char>(cc, cc); 17207 // Call explicitly. 17208 obj2.templ_mem_func<int, float, double>(gold, pi); 17209 const char *pch = (const char*)obj2; 17210 17211 MyClass<double, float> obj3(pi, gold, i); 17212 obj3.templ_mem_func(pi, i); 17213 obj3.templ_mem_func(pi, str1); 17214 obj3.templ_mem_func(pi, pi); 17215 obj3.templ_mem_func(cc, pi); 17216 obj3.templ_mem_func(cc, cc); 17217 double tmpd = (double)obj3; 17218 17219 MyClass<double, float> obj4(i); 17220 obj4.templ_mem_func(pi, i); 17221 obj4.templ_mem_func(pi, str1); 17222 obj4.templ_mem_func(pi, pi); 17223 obj4.templ_mem_func(gold, pi); 17224 tmpd = (double)obj4; 17225 17226 // Function template partial specialization. 17227 part_spec_func(pi, gold); 17228 part_spec_func(gold, i); 17229 part_spec_func(str1, str2); 17230 std::vector<std::string> strv; 17231 part_spec_func(str1, strv); 17232 std::vector<double> dblv; 17233 part_spec_func(pi, dblv); 17234 17235 // Function template overloads and explicit call and deduction. 17236 dbstl_configure_test::max(7, 42, 68); // calls the template for three arguments 17237 dbstl_configure_test::max(7.0, 42.0); // calls max<double> (by argument deduction) 17238 dbstl_configure_test::max('a', 'b'); // calls max<char> (by argument deduction) 17239 dbstl_configure_test::max(7, 42.0); 17240 dbstl_configure_test::max<double>(4,4.2); // instantiate T as double 17241 dbstl_configure_test::max(7, 42); // calls the nontemplate for two ints 17242 dbstl_configure_test::max<>(7, 42); // calls max<int> (by argument deduction) 17243 dbstl_configure_test::max<double, double>(7, 42); // calls max<double> (no argument deduction) 17244 dbstl_configure_test::max('a', 42.7); // calls the nontemplate for two ints 17245 17246 Base<double> bobj; 17247 bobj.exit2(); 17248 // Using this-> to access base class members. 17249 Derived<double> dobj; 17250 dobj.foo(); 17251 dobj.exit2(); 17252 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257if ac_fn_cxx_try_compile "$LINENO"; then : 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17259$as_echo "yes" >&6; } 17260else 17261 as_fn_error "no" "$LINENO" 5 17262fi 17263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17264ac_ext=c 17265ac_cpp='$CPP $CPPFLAGS' 17266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17268ac_compiler_gnu=$ac_cv_c_compiler_gnu 17269 17270 17271 17272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ supports the wstring class" >&5 17273$as_echo_n "checking whether C++ supports the wstring class... " >&6; } 17274 17275 17276ac_ext=cpp 17277ac_cpp='$CXXCPP $CPPFLAGS' 17278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17281 17282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17283/* end confdefs.h. */ 17284#include <string> 17285 using std::wstring; 17286int 17287main () 17288{ 17289wstring ws; ws.find_first_of(ws); 17290 ; 17291 return 0; 17292} 17293_ACEOF 17294if ac_fn_cxx_try_link "$LINENO"; then : 17295 WSTRING_decl="#define HAVE_WSTRING 1" ; 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17297$as_echo "yes" >&6; } 17298else 17299 WSTRING_decl="#undef HAVE_WSTRING" ; 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17301$as_echo "no" >&6; } 17302fi 17303rm -f core conftest.err conftest.$ac_objext \ 17304 conftest$ac_exeext conftest.$ac_ext 17305ac_ext=c 17306ac_cpp='$CPP $CPPFLAGS' 17307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17309ac_compiler_gnu=$ac_cv_c_compiler_gnu 17310 17311 17312 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 17314$as_echo_n "checking for thread local storage (TLS) class... " >&6; } 17315 17316 17317 ac_cv_tls=none 17318 17319 ac_ext=cpp 17320ac_cpp='$CXXCPP $CPPFLAGS' 17321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17324 17325 ax_tls_keywords="__thread __declspec(thread) __declspec(__thread)" 17326 for ax_tls_decl_keyword in $ax_tls_keywords ""; do 17327 for ax_tls_defn_keyword in $ax_tls_keywords ""; do 17328 test -z "$ax_tls_decl_keyword" && 17329 test -z "$ax_tls_defn_keyword" && continue 17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332template <typename T>class TLSClass { 17333 public: static $ax_tls_decl_keyword T *tlsvar; 17334 }; 17335 class TLSClass2 { 17336 public: static $ax_tls_decl_keyword int tlsvar; 17337 }; 17338 template<typename T> $ax_tls_defn_keyword T* TLSClass<T>::tlsvar = NULL; 17339 $ax_tls_defn_keyword int TLSClass2::tlsvar = 1; 17340 static $ax_tls_decl_keyword int x = 0; 17341int 17342main () 17343{ 17344TLSClass<int>::tlsvar = NULL; TLSClass2::tlsvar = 1; 17345 ; 17346 return 0; 17347} 17348_ACEOF 17349if ac_fn_cxx_try_compile "$LINENO"; then : 17350 ac_cv_tls=modifier ; break 17351fi 17352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17353 done 17354 test "$ac_cv_tls" = none || break 17355 done 17356 ac_ext=c 17357ac_cpp='$CPP $CPPFLAGS' 17358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17360ac_compiler_gnu=$ac_cv_c_compiler_gnu 17361 17362 if test "$ac_cv_tls" = "none" ; then 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365#include <stdlib.h> 17366 #include <pthread.h> 17367 17368 static pthread_once_t once_control_ = PTHREAD_ONCE_INIT; 17369 static pthread_key_t key; 17370 17371 static void init_once(void) { 17372 pthread_key_create(&key, NULL); 17373 } 17374 static void *get_tls() { 17375 return (void *)pthread_getspecific(&key); 17376 } 17377 static void set_tls(void *p) { 17378 pthread_setspecific(&key, p); 17379 } 17380int 17381main () 17382{ 17383 17384 ; 17385 return 0; 17386} 17387_ACEOF 17388if ac_fn_c_try_compile "$LINENO"; then : 17389 ac_cv_tls=pthread 17390fi 17391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17392 fi 17393 17394 case "$ac_cv_tls" in 17395 none) break ;; 17396 pthread) 17397 TLS_decl="#define HAVE_PTHREAD_TLS" 17398 TLS_defn="" ;; 17399 modifier) 17400 TLS_decl="#define TLS_DECL_MODIFIER $ax_tls_decl_keyword" 17401 TLS_defn="#define TLS_DEFN_MODIFIER $ax_tls_defn_keyword" ;; 17402 esac 17403 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 17405$as_echo "$ac_cv_tls" >&6; } 17406 17407 if test "$enable_shared" = "no"; then 17408 DEFAULT_LIB_STL="\$(libstl_version)" 17409 fi 17410 if test "$enable_shared" = "yes"; then 17411 DEFAULT_LIB_STL="\$(libstlso_target)" 17412 fi 17413 ADDITIONAL_INCS="dbstl_common.h dbstl_set.h dbstl_vector.h dbstl_exception.h dbstl_map.h dbstl_utility.h dbstl_dbc.h dbstl_dbt.h dbstl_base_iterator.h dbstl_container.h dbstl_element_ref.h dbstl_inner_utility.h dbstl_resource_manager.h $ADDITIONAL_INCS" 17414 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_STL" 17415 if test "$enable_static" = "yes"; then 17416 INSTALL_LIBS="$INSTALL_LIBS \$(libstl)" 17417 fi 17418fi 17419 17420# Checks for include files, structures, C types. 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 17422$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 17423if test "${ac_cv_header_stat_broken+set}" = set; then : 17424 $as_echo_n "(cached) " >&6 17425else 17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17427/* end confdefs.h. */ 17428#include <sys/types.h> 17429#include <sys/stat.h> 17430 17431#if defined S_ISBLK && defined S_IFDIR 17432extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 17433#endif 17434 17435#if defined S_ISBLK && defined S_IFCHR 17436extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 17437#endif 17438 17439#if defined S_ISLNK && defined S_IFREG 17440extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 17441#endif 17442 17443#if defined S_ISSOCK && defined S_IFREG 17444extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 17445#endif 17446 17447_ACEOF 17448if ac_fn_c_try_compile "$LINENO"; then : 17449 ac_cv_header_stat_broken=no 17450else 17451 ac_cv_header_stat_broken=yes 17452fi 17453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17454fi 17455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 17456$as_echo "$ac_cv_header_stat_broken" >&6; } 17457if test $ac_cv_header_stat_broken = yes; then 17458 17459$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 17460 17461fi 17462 17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17464$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17465if test "${ac_cv_header_time+set}" = set; then : 17466 $as_echo_n "(cached) " >&6 17467else 17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17469/* end confdefs.h. */ 17470#include <sys/types.h> 17471#include <sys/time.h> 17472#include <time.h> 17473 17474int 17475main () 17476{ 17477if ((struct tm *) 0) 17478return 0; 17479 ; 17480 return 0; 17481} 17482_ACEOF 17483if ac_fn_c_try_compile "$LINENO"; then : 17484 ac_cv_header_time=yes 17485else 17486 ac_cv_header_time=no 17487fi 17488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17489fi 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17491$as_echo "$ac_cv_header_time" >&6; } 17492if test $ac_cv_header_time = yes; then 17493 17494$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17495 17496fi 17497 17498ac_header_dirent=no 17499for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17500 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17502$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508#include <sys/types.h> 17509#include <$ac_hdr> 17510 17511int 17512main () 17513{ 17514if ((DIR *) 0) 17515return 0; 17516 ; 17517 return 0; 17518} 17519_ACEOF 17520if ac_fn_c_try_compile "$LINENO"; then : 17521 eval "$as_ac_Header=yes" 17522else 17523 eval "$as_ac_Header=no" 17524fi 17525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17526fi 17527eval ac_res=\$$as_ac_Header 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17529$as_echo "$ac_res" >&6; } 17530eval as_val=\$$as_ac_Header 17531 if test "x$as_val" = x""yes; then : 17532 cat >>confdefs.h <<_ACEOF 17533#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17534_ACEOF 17535 17536ac_header_dirent=$ac_hdr; break 17537fi 17538 17539done 17540# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17541if test $ac_header_dirent = dirent.h; then 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17543$as_echo_n "checking for library containing opendir... " >&6; } 17544if test "${ac_cv_search_opendir+set}" = set; then : 17545 $as_echo_n "(cached) " >&6 17546else 17547 ac_func_search_save_LIBS=$LIBS 17548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17549/* end confdefs.h. */ 17550 17551/* Override any GCC internal prototype to avoid an error. 17552 Use char because int might match the return type of a GCC 17553 builtin and then its argument prototype would still apply. */ 17554#ifdef __cplusplus 17555extern "C" 17556#endif 17557char opendir (); 17558int 17559main () 17560{ 17561return opendir (); 17562 ; 17563 return 0; 17564} 17565_ACEOF 17566for ac_lib in '' dir; do 17567 if test -z "$ac_lib"; then 17568 ac_res="none required" 17569 else 17570 ac_res=-l$ac_lib 17571 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17572 fi 17573 if ac_fn_c_try_link "$LINENO"; then : 17574 ac_cv_search_opendir=$ac_res 17575fi 17576rm -f core conftest.err conftest.$ac_objext \ 17577 conftest$ac_exeext 17578 if test "${ac_cv_search_opendir+set}" = set; then : 17579 break 17580fi 17581done 17582if test "${ac_cv_search_opendir+set}" = set; then : 17583 17584else 17585 ac_cv_search_opendir=no 17586fi 17587rm conftest.$ac_ext 17588LIBS=$ac_func_search_save_LIBS 17589fi 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17591$as_echo "$ac_cv_search_opendir" >&6; } 17592ac_res=$ac_cv_search_opendir 17593if test "$ac_res" != no; then : 17594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17595 17596fi 17597 17598else 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17600$as_echo_n "checking for library containing opendir... " >&6; } 17601if test "${ac_cv_search_opendir+set}" = set; then : 17602 $as_echo_n "(cached) " >&6 17603else 17604 ac_func_search_save_LIBS=$LIBS 17605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17606/* end confdefs.h. */ 17607 17608/* Override any GCC internal prototype to avoid an error. 17609 Use char because int might match the return type of a GCC 17610 builtin and then its argument prototype would still apply. */ 17611#ifdef __cplusplus 17612extern "C" 17613#endif 17614char opendir (); 17615int 17616main () 17617{ 17618return opendir (); 17619 ; 17620 return 0; 17621} 17622_ACEOF 17623for ac_lib in '' x; do 17624 if test -z "$ac_lib"; then 17625 ac_res="none required" 17626 else 17627 ac_res=-l$ac_lib 17628 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17629 fi 17630 if ac_fn_c_try_link "$LINENO"; then : 17631 ac_cv_search_opendir=$ac_res 17632fi 17633rm -f core conftest.err conftest.$ac_objext \ 17634 conftest$ac_exeext 17635 if test "${ac_cv_search_opendir+set}" = set; then : 17636 break 17637fi 17638done 17639if test "${ac_cv_search_opendir+set}" = set; then : 17640 17641else 17642 ac_cv_search_opendir=no 17643fi 17644rm conftest.$ac_ext 17645LIBS=$ac_func_search_save_LIBS 17646fi 17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17648$as_echo "$ac_cv_search_opendir" >&6; } 17649ac_res=$ac_cv_search_opendir 17650if test "$ac_res" != no; then : 17651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17652 17653fi 17654 17655fi 17656 17657for ac_header in execinfo.h sys/select.h sys/socket.h sys/time.h 17658do : 17659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17661eval as_val=\$$as_ac_Header 17662 if test "x$as_val" = x""yes; then : 17663 cat >>confdefs.h <<_ACEOF 17664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17665_ACEOF 17666 17667fi 17668 17669done 17670 17671ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 17672if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : 17673 17674cat >>confdefs.h <<_ACEOF 17675#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 17676_ACEOF 17677 17678 17679fi 17680 17681 17682 17683# db.h includes <sys/types.h> and <stdio.h>, not the other default includes 17684# autoconf usually includes. For that reason, we specify a set of includes 17685# for all type checking tests. [#5060] 17686# 17687# C99 says types should be in <stdint.h>; include <stdint.h> if it exists. 17688# 17689# Some systems have types in <stddef.h>; include <stddef.h> if it exists. 17690# 17691# IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found 17692# in <sys/types.h>; include <inttypes.h> if it exists. 17693db_includes="#include <sys/types.h>" 17694 17695ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 17696if test "x$ac_cv_header_inttypes_h" = x""yes; then : 17697 17698 db_includes="$db_includes 17699#include <inttypes.h>" 17700 inttypes_h_decl="#include <inttypes.h>" 17701fi 17702 17703 17704 17705# IRIX has stdint.h that is only available when using c99 (i.e. __c99 17706# is defined). Problem with having it in a public header is that a c++ 17707# compiler cannot #include <db.h> if db.h #includes stdint.h, so we 17708# need to check that stdint.h is available for all cases. Also the 17709# IRIX compiler does not exit with a non-zero exit code when it sees 17710# #error, so we actually need to use the header for the compiler to fail. 17711 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 17713$as_echo_n "checking for stdint.h... " >&6; } 17714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716#include <stdint.h> 17717 int main() { 17718 uint_least8_t x=0; 17719 return x; 17720 } 17721_ACEOF 17722if ac_fn_c_try_compile "$LINENO"; then : 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17724$as_echo "yes" >&6; } 17725if test "$db_cv_cxx" = "yes"; then 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stdint.h can be used by C++" >&5 17727$as_echo_n "checking if stdint.h can be used by C++... " >&6; } 17728 ac_ext=cpp 17729ac_cpp='$CXXCPP $CPPFLAGS' 17730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17733 17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17735/* end confdefs.h. */ 17736#include <stdint.h> 17737 int main() { 17738 uint_least8_t x=0; 17739 return x; 17740 } 17741_ACEOF 17742if ac_fn_cxx_try_compile "$LINENO"; then : 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17744$as_echo "yes" >&6; } 17745 stdint_h_decl="#include <stdint.h>" 17746 db_includes="$db_includes 17747#include <stdint.h>" 17748 17749else 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17751$as_echo "no" >&6; } 17752 stdint_h_decl="#ifndef __cplusplus 17753#include <stdint.h> 17754#endif" 17755 db_includes="$db_includes 17756#ifndef __cplusplus 17757#include <stdint.h> 17758#endif" 17759 17760fi 17761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17762 ac_ext=c 17763ac_cpp='$CPP $CPPFLAGS' 17764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17766ac_compiler_gnu=$ac_cv_c_compiler_gnu 17767 17768else 17769 stdint_h_decl="#include <stdint.h>" 17770 db_includes="$db_includes 17771#include <stdint.h>" 17772fi 17773else 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17775$as_echo "no" >&6; } 17776fi 17777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17778 17779 17780ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 17781if test "x$ac_cv_header_stddef_h" = x""yes; then : 17782 17783 db_includes="$db_includes 17784#include <stddef.h>" 17785 stddef_h_decl="#include <stddef.h>" 17786fi 17787 17788 17789 17790ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 17791if test "x$ac_cv_header_unistd_h" = x""yes; then : 17792 17793 db_includes="$db_includes 17794#include <unistd.h>" 17795 unistd_h_decl="#include <unistd.h>" 17796fi 17797 17798 17799db_includes="$db_includes 17800#include <stdio.h>" 17801 17802# We need to know the sizes of various objects on this system. 17803# The cast to long int works around a bug in the HP C Compiler 17804# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17805# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17806# This bug is HP SR number 8606223364. 17807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 17808$as_echo_n "checking size of char... " >&6; } 17809if test "${ac_cv_sizeof_char+set}" = set; then : 17810 $as_echo_n "(cached) " >&6 17811else 17812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$db_includes 17813"; then : 17814 17815else 17816 if test "$ac_cv_type_char" = yes; then 17817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17819{ as_fn_set_status 77 17820as_fn_error "cannot compute sizeof (char) 17821See \`config.log' for more details." "$LINENO" 5; }; } 17822 else 17823 ac_cv_sizeof_char=0 17824 fi 17825fi 17826 17827fi 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 17829$as_echo "$ac_cv_sizeof_char" >&6; } 17830 17831 17832 17833cat >>confdefs.h <<_ACEOF 17834#define SIZEOF_CHAR $ac_cv_sizeof_char 17835_ACEOF 17836 17837 17838# The cast to long int works around a bug in the HP C Compiler 17839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17841# This bug is HP SR number 8606223364. 17842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5 17843$as_echo_n "checking size of unsigned char... " >&6; } 17844if test "${ac_cv_sizeof_unsigned_char+set}" = set; then : 17845 $as_echo_n "(cached) " >&6 17846else 17847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$db_includes 17848"; then : 17849 17850else 17851 if test "$ac_cv_type_unsigned_char" = yes; then 17852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17854{ as_fn_set_status 77 17855as_fn_error "cannot compute sizeof (unsigned char) 17856See \`config.log' for more details." "$LINENO" 5; }; } 17857 else 17858 ac_cv_sizeof_unsigned_char=0 17859 fi 17860fi 17861 17862fi 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5 17864$as_echo "$ac_cv_sizeof_unsigned_char" >&6; } 17865 17866 17867 17868cat >>confdefs.h <<_ACEOF 17869#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char 17870_ACEOF 17871 17872 17873# The cast to long int works around a bug in the HP C Compiler 17874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17876# This bug is HP SR number 8606223364. 17877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 17878$as_echo_n "checking size of short... " >&6; } 17879if test "${ac_cv_sizeof_short+set}" = set; then : 17880 $as_echo_n "(cached) " >&6 17881else 17882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$db_includes 17883"; then : 17884 17885else 17886 if test "$ac_cv_type_short" = yes; then 17887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17889{ as_fn_set_status 77 17890as_fn_error "cannot compute sizeof (short) 17891See \`config.log' for more details." "$LINENO" 5; }; } 17892 else 17893 ac_cv_sizeof_short=0 17894 fi 17895fi 17896 17897fi 17898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 17899$as_echo "$ac_cv_sizeof_short" >&6; } 17900 17901 17902 17903cat >>confdefs.h <<_ACEOF 17904#define SIZEOF_SHORT $ac_cv_sizeof_short 17905_ACEOF 17906 17907 17908# The cast to long int works around a bug in the HP C Compiler 17909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17911# This bug is HP SR number 8606223364. 17912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 17913$as_echo_n "checking size of unsigned short... " >&6; } 17914if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : 17915 $as_echo_n "(cached) " >&6 17916else 17917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$db_includes 17918"; then : 17919 17920else 17921 if test "$ac_cv_type_unsigned_short" = yes; then 17922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17924{ as_fn_set_status 77 17925as_fn_error "cannot compute sizeof (unsigned short) 17926See \`config.log' for more details." "$LINENO" 5; }; } 17927 else 17928 ac_cv_sizeof_unsigned_short=0 17929 fi 17930fi 17931 17932fi 17933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 17934$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 17935 17936 17937 17938cat >>confdefs.h <<_ACEOF 17939#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 17940_ACEOF 17941 17942 17943# The cast to long int works around a bug in the HP C Compiler 17944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17946# This bug is HP SR number 8606223364. 17947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 17948$as_echo_n "checking size of int... " >&6; } 17949if test "${ac_cv_sizeof_int+set}" = set; then : 17950 $as_echo_n "(cached) " >&6 17951else 17952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$db_includes 17953"; then : 17954 17955else 17956 if test "$ac_cv_type_int" = yes; then 17957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17959{ as_fn_set_status 77 17960as_fn_error "cannot compute sizeof (int) 17961See \`config.log' for more details." "$LINENO" 5; }; } 17962 else 17963 ac_cv_sizeof_int=0 17964 fi 17965fi 17966 17967fi 17968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 17969$as_echo "$ac_cv_sizeof_int" >&6; } 17970 17971 17972 17973cat >>confdefs.h <<_ACEOF 17974#define SIZEOF_INT $ac_cv_sizeof_int 17975_ACEOF 17976 17977 17978# The cast to long int works around a bug in the HP C Compiler 17979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17981# This bug is HP SR number 8606223364. 17982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 17983$as_echo_n "checking size of unsigned int... " >&6; } 17984if test "${ac_cv_sizeof_unsigned_int+set}" = set; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$db_includes 17988"; then : 17989 17990else 17991 if test "$ac_cv_type_unsigned_int" = yes; then 17992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17994{ as_fn_set_status 77 17995as_fn_error "cannot compute sizeof (unsigned int) 17996See \`config.log' for more details." "$LINENO" 5; }; } 17997 else 17998 ac_cv_sizeof_unsigned_int=0 17999 fi 18000fi 18001 18002fi 18003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 18004$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 18005 18006 18007 18008cat >>confdefs.h <<_ACEOF 18009#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 18010_ACEOF 18011 18012 18013# The cast to long int works around a bug in the HP C Compiler 18014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18016# This bug is HP SR number 8606223364. 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 18018$as_echo_n "checking size of long... " >&6; } 18019if test "${ac_cv_sizeof_long+set}" = set; then : 18020 $as_echo_n "(cached) " >&6 18021else 18022 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$db_includes 18023"; then : 18024 18025else 18026 if test "$ac_cv_type_long" = yes; then 18027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18029{ as_fn_set_status 77 18030as_fn_error "cannot compute sizeof (long) 18031See \`config.log' for more details." "$LINENO" 5; }; } 18032 else 18033 ac_cv_sizeof_long=0 18034 fi 18035fi 18036 18037fi 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 18039$as_echo "$ac_cv_sizeof_long" >&6; } 18040 18041 18042 18043cat >>confdefs.h <<_ACEOF 18044#define SIZEOF_LONG $ac_cv_sizeof_long 18045_ACEOF 18046 18047 18048# The cast to long int works around a bug in the HP C Compiler 18049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18051# This bug is HP SR number 8606223364. 18052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 18053$as_echo_n "checking size of unsigned long... " >&6; } 18054if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : 18055 $as_echo_n "(cached) " >&6 18056else 18057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$db_includes 18058"; then : 18059 18060else 18061 if test "$ac_cv_type_unsigned_long" = yes; then 18062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18064{ as_fn_set_status 77 18065as_fn_error "cannot compute sizeof (unsigned long) 18066See \`config.log' for more details." "$LINENO" 5; }; } 18067 else 18068 ac_cv_sizeof_unsigned_long=0 18069 fi 18070fi 18071 18072fi 18073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 18074$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 18075 18076 18077 18078cat >>confdefs.h <<_ACEOF 18079#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 18080_ACEOF 18081 18082 18083# The cast to long int works around a bug in the HP C Compiler 18084# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18085# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18086# This bug is HP SR number 8606223364. 18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 18088$as_echo_n "checking size of long long... " >&6; } 18089if test "${ac_cv_sizeof_long_long+set}" = set; then : 18090 $as_echo_n "(cached) " >&6 18091else 18092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$db_includes 18093"; then : 18094 18095else 18096 if test "$ac_cv_type_long_long" = yes; then 18097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18099{ as_fn_set_status 77 18100as_fn_error "cannot compute sizeof (long long) 18101See \`config.log' for more details." "$LINENO" 5; }; } 18102 else 18103 ac_cv_sizeof_long_long=0 18104 fi 18105fi 18106 18107fi 18108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 18109$as_echo "$ac_cv_sizeof_long_long" >&6; } 18110 18111 18112 18113cat >>confdefs.h <<_ACEOF 18114#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 18115_ACEOF 18116 18117 18118# The cast to long int works around a bug in the HP C Compiler 18119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18121# This bug is HP SR number 8606223364. 18122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 18123$as_echo_n "checking size of unsigned long long... " >&6; } 18124if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : 18125 $as_echo_n "(cached) " >&6 18126else 18127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$db_includes 18128"; then : 18129 18130else 18131 if test "$ac_cv_type_unsigned_long_long" = yes; then 18132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18134{ as_fn_set_status 77 18135as_fn_error "cannot compute sizeof (unsigned long long) 18136See \`config.log' for more details." "$LINENO" 5; }; } 18137 else 18138 ac_cv_sizeof_unsigned_long_long=0 18139 fi 18140fi 18141 18142fi 18143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 18144$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 18145 18146 18147 18148cat >>confdefs.h <<_ACEOF 18149#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 18150_ACEOF 18151 18152 18153# The cast to long int works around a bug in the HP C Compiler 18154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18156# This bug is HP SR number 8606223364. 18157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 18158$as_echo_n "checking size of char *... " >&6; } 18159if test "${ac_cv_sizeof_char_p+set}" = set; then : 18160 $as_echo_n "(cached) " >&6 18161else 18162 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$db_includes 18163"; then : 18164 18165else 18166 if test "$ac_cv_type_char_p" = yes; then 18167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18169{ as_fn_set_status 77 18170as_fn_error "cannot compute sizeof (char *) 18171See \`config.log' for more details." "$LINENO" 5; }; } 18172 else 18173 ac_cv_sizeof_char_p=0 18174 fi 18175fi 18176 18177fi 18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 18179$as_echo "$ac_cv_sizeof_char_p" >&6; } 18180 18181 18182 18183cat >>confdefs.h <<_ACEOF 18184#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 18185_ACEOF 18186 18187 18188 18189# We look for u_char, u_short, u_int, u_long -- if we can't find them, 18190# we create our own. 18191 18192ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$db_includes 18193" 18194if test "x$ac_cv_type_u_char" = x""yes; then : 18195 18196else 18197 u_char_decl="typedef unsigned char u_char;" 18198fi 18199 18200 18201 18202ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$db_includes 18203" 18204if test "x$ac_cv_type_u_short" = x""yes; then : 18205 18206else 18207 u_short_decl="typedef unsigned short u_short;" 18208fi 18209 18210 18211 18212ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$db_includes 18213" 18214if test "x$ac_cv_type_u_int" = x""yes; then : 18215 18216else 18217 u_int_decl="typedef unsigned int u_int;" 18218fi 18219 18220 18221 18222ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$db_includes 18223" 18224if test "x$ac_cv_type_u_long" = x""yes; then : 18225 18226else 18227 u_long_decl="typedef unsigned long u_long;" 18228fi 18229 18230 18231# We look for fixed-size variants of u_char, u_short, u_int, u_long as well. 18232 18233ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$db_includes 18234" 18235if test "x$ac_cv_type_u_int8_t" = x""yes; then : 18236 18237else 18238 18239 case "1" in 18240 "$ac_cv_sizeof_unsigned_int") 18241 u_int8_decl="typedef unsigned int u_int8_t;";; 18242 "$ac_cv_sizeof_unsigned_char") 18243 u_int8_decl="typedef unsigned char u_int8_t;";; 18244 "$ac_cv_sizeof_unsigned_short") 18245 u_int8_decl="typedef unsigned short u_int8_t;";; 18246 "$ac_cv_sizeof_unsigned_long") 18247 u_int8_decl="typedef unsigned long u_int8_t;";; 18248 "$ac_cv_sizeof_unsigned_long_long") 18249 u_int8_decl="typedef unsigned long long u_int8_t;";; 18250 *) 18251 if test "" != "notfatal"; then 18252 as_fn_error "No unsigned 1-byte integral type" "$LINENO" 5 18253 fi;; 18254 esac 18255fi 18256 18257 18258 18259ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$db_includes 18260" 18261if test "x$ac_cv_type_u_int16_t" = x""yes; then : 18262 18263else 18264 18265 case "2" in 18266 "$ac_cv_sizeof_unsigned_int") 18267 u_int16_decl="typedef unsigned int u_int16_t;";; 18268 "$ac_cv_sizeof_unsigned_char") 18269 u_int16_decl="typedef unsigned char u_int16_t;";; 18270 "$ac_cv_sizeof_unsigned_short") 18271 u_int16_decl="typedef unsigned short u_int16_t;";; 18272 "$ac_cv_sizeof_unsigned_long") 18273 u_int16_decl="typedef unsigned long u_int16_t;";; 18274 "$ac_cv_sizeof_unsigned_long_long") 18275 u_int16_decl="typedef unsigned long long u_int16_t;";; 18276 *) 18277 if test "" != "notfatal"; then 18278 as_fn_error "No unsigned 2-byte integral type" "$LINENO" 5 18279 fi;; 18280 esac 18281fi 18282 18283 18284 18285ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$db_includes 18286" 18287if test "x$ac_cv_type_int16_t" = x""yes; then : 18288 18289else 18290 18291 case "2" in 18292 "$ac_cv_sizeof_int") 18293 int16_decl="typedef int int16_t;";; 18294 "$ac_cv_sizeof_char") 18295 int16_decl="typedef char int16_t;";; 18296 "$ac_cv_sizeof_short") 18297 int16_decl="typedef short int16_t;";; 18298 "$ac_cv_sizeof_long") 18299 int16_decl="typedef long int16_t;";; 18300 "$ac_cv_sizeof_long_long") 18301 int16_decl="typedef long long int16_t;";; 18302 *) 18303 if test "" != "notfatal"; then 18304 as_fn_error "No signed 2-byte integral type" "$LINENO" 5 18305 fi;; 18306 esac 18307fi 18308 18309 18310 18311ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$db_includes 18312" 18313if test "x$ac_cv_type_u_int32_t" = x""yes; then : 18314 18315else 18316 18317 case "4" in 18318 "$ac_cv_sizeof_unsigned_int") 18319 u_int32_decl="typedef unsigned int u_int32_t;";; 18320 "$ac_cv_sizeof_unsigned_char") 18321 u_int32_decl="typedef unsigned char u_int32_t;";; 18322 "$ac_cv_sizeof_unsigned_short") 18323 u_int32_decl="typedef unsigned short u_int32_t;";; 18324 "$ac_cv_sizeof_unsigned_long") 18325 u_int32_decl="typedef unsigned long u_int32_t;";; 18326 "$ac_cv_sizeof_unsigned_long_long") 18327 u_int32_decl="typedef unsigned long long u_int32_t;";; 18328 *) 18329 if test "" != "notfatal"; then 18330 as_fn_error "No unsigned 4-byte integral type" "$LINENO" 5 18331 fi;; 18332 esac 18333fi 18334 18335 18336 18337ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$db_includes 18338" 18339if test "x$ac_cv_type_int32_t" = x""yes; then : 18340 18341else 18342 18343 case "4" in 18344 "$ac_cv_sizeof_int") 18345 int32_decl="typedef int int32_t;";; 18346 "$ac_cv_sizeof_char") 18347 int32_decl="typedef char int32_t;";; 18348 "$ac_cv_sizeof_short") 18349 int32_decl="typedef short int32_t;";; 18350 "$ac_cv_sizeof_long") 18351 int32_decl="typedef long int32_t;";; 18352 "$ac_cv_sizeof_long_long") 18353 int32_decl="typedef long long int32_t;";; 18354 *) 18355 if test "" != "notfatal"; then 18356 as_fn_error "No signed 4-byte integral type" "$LINENO" 5 18357 fi;; 18358 esac 18359fi 18360 18361 18362 18363ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$db_includes 18364" 18365if test "x$ac_cv_type_u_int64_t" = x""yes; then : 18366 18367else 18368 18369 case "8" in 18370 "$ac_cv_sizeof_unsigned_int") 18371 u_int64_decl="typedef unsigned int u_int64_t;";; 18372 "$ac_cv_sizeof_unsigned_char") 18373 u_int64_decl="typedef unsigned char u_int64_t;";; 18374 "$ac_cv_sizeof_unsigned_short") 18375 u_int64_decl="typedef unsigned short u_int64_t;";; 18376 "$ac_cv_sizeof_unsigned_long") 18377 u_int64_decl="typedef unsigned long u_int64_t;";; 18378 "$ac_cv_sizeof_unsigned_long_long") 18379 u_int64_decl="typedef unsigned long long u_int64_t;";; 18380 *) 18381 if test "notfatal" != "notfatal"; then 18382 as_fn_error "No unsigned 8-byte integral type" "$LINENO" 5 18383 fi;; 18384 esac 18385fi 18386 18387 18388 18389ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$db_includes 18390" 18391if test "x$ac_cv_type_int64_t" = x""yes; then : 18392 18393else 18394 18395 case "8" in 18396 "$ac_cv_sizeof_int") 18397 int64_decl="typedef int int64_t;";; 18398 "$ac_cv_sizeof_char") 18399 int64_decl="typedef char int64_t;";; 18400 "$ac_cv_sizeof_short") 18401 int64_decl="typedef short int64_t;";; 18402 "$ac_cv_sizeof_long") 18403 int64_decl="typedef long int64_t;";; 18404 "$ac_cv_sizeof_long_long") 18405 int64_decl="typedef long long int64_t;";; 18406 *) 18407 if test "notfatal" != "notfatal"; then 18408 as_fn_error "No signed 8-byte integral type" "$LINENO" 5 18409 fi;; 18410 esac 18411fi 18412 18413 18414# No currently autoconf'd systems lack FILE, off_t pid_t, size_t, time_t. 18415# 18416# We require them, we don't try to substitute our own if we can't find them. 18417 18418ac_fn_c_check_type "$LINENO" "FILE *" "ac_cv_type_FILE_p" "$db_includes 18419" 18420if test "x$ac_cv_type_FILE_p" = x""yes; then : 18421 18422else 18423 as_fn_error "No FILE type." "$LINENO" 5 18424fi 18425 18426 18427ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$db_includes 18428" 18429if test "x$ac_cv_type_off_t" = x""yes; then : 18430 18431else 18432 as_fn_error "No off_t type." "$LINENO" 5 18433fi 18434 18435 18436ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$db_includes 18437" 18438if test "x$ac_cv_type_pid_t" = x""yes; then : 18439 18440else 18441 as_fn_error "No pid_t type." "$LINENO" 5 18442fi 18443 18444 18445ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$db_includes 18446" 18447if test "x$ac_cv_type_size_t" = x""yes; then : 18448 18449else 18450 as_fn_error "No size_t type." "$LINENO" 5 18451fi 18452 18453 18454ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$db_includes 18455" 18456if test "x$ac_cv_type_time_t" = x""yes; then : 18457 18458else 18459 as_fn_error "No time_t type." "$LINENO" 5 18460fi 18461 18462 18463# Check for ssize_t -- if none exists, find a signed integral type that's 18464# the same size as a size_t. 18465# The cast to long int works around a bug in the HP C Compiler 18466# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18467# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18468# This bug is HP SR number 8606223364. 18469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 18470$as_echo_n "checking size of size_t... " >&6; } 18471if test "${ac_cv_sizeof_size_t+set}" = set; then : 18472 $as_echo_n "(cached) " >&6 18473else 18474 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$db_includes 18475"; then : 18476 18477else 18478 if test "$ac_cv_type_size_t" = yes; then 18479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18481{ as_fn_set_status 77 18482as_fn_error "cannot compute sizeof (size_t) 18483See \`config.log' for more details." "$LINENO" 5; }; } 18484 else 18485 ac_cv_sizeof_size_t=0 18486 fi 18487fi 18488 18489fi 18490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 18491$as_echo "$ac_cv_sizeof_size_t" >&6; } 18492 18493 18494 18495cat >>confdefs.h <<_ACEOF 18496#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 18497_ACEOF 18498 18499 18500 18501ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$db_includes 18502" 18503if test "x$ac_cv_type_ssize_t" = x""yes; then : 18504 18505else 18506 18507 case "$ac_cv_sizeof_size_t" in 18508 "$ac_cv_sizeof_int") 18509 ssize_t_decl="typedef int ssize_t;";; 18510 "$ac_cv_sizeof_char") 18511 ssize_t_decl="typedef char ssize_t;";; 18512 "$ac_cv_sizeof_short") 18513 ssize_t_decl="typedef short ssize_t;";; 18514 "$ac_cv_sizeof_long") 18515 ssize_t_decl="typedef long ssize_t;";; 18516 "$ac_cv_sizeof_long_long") 18517 ssize_t_decl="typedef long long ssize_t;";; 18518 *) 18519 if test "" != "notfatal"; then 18520 as_fn_error "No signed $ac_cv_sizeof_size_t-byte integral type" "$LINENO" 5 18521 fi;; 18522 esac 18523fi 18524 18525 18526# Check for uintmax_t -- if none exists, find the largest unsigned integral 18527# type available. 18528 18529ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 18530if test "x$ac_cv_type_uintmax_t" = x""yes; then : 18531 18532else 18533 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$db_includes 18534" 18535if test "x$ac_cv_type_unsigned_long_long" = x""yes; then : 18536 uintmax_t_decl="typedef unsigned long long uintmax_t;" 18537else 18538 uintmax_t_decl="typedef unsigned long uintmax_t;" 18539fi 18540 18541fi 18542 18543 18544# Check for uintptr_t -- if none exists, find an integral type which is 18545# the same size as a pointer. 18546 18547ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 18548if test "x$ac_cv_type_uintptr_t" = x""yes; then : 18549 18550else 18551 18552 case "$ac_cv_sizeof_char_p" in 18553 "$ac_cv_sizeof_unsigned_int") 18554 uintptr_t_decl="typedef unsigned int uintptr_t;";; 18555 "$ac_cv_sizeof_unsigned_char") 18556 uintptr_t_decl="typedef unsigned char uintptr_t;";; 18557 "$ac_cv_sizeof_unsigned_short") 18558 uintptr_t_decl="typedef unsigned short uintptr_t;";; 18559 "$ac_cv_sizeof_unsigned_long") 18560 uintptr_t_decl="typedef unsigned long uintptr_t;";; 18561 "$ac_cv_sizeof_unsigned_long_long") 18562 uintptr_t_decl="typedef unsigned long long uintptr_t;";; 18563 *) 18564 if test "" != "notfatal"; then 18565 as_fn_error "No unsigned $ac_cv_sizeof_char_p-byte integral type" "$LINENO" 5 18566 fi;; 18567 esac 18568fi 18569 18570 18571 18572 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$db_includes 18573#ifdef HAVE_SYS_SOCKET_H 18574#include <sys/socket.h> 18575#endif 18576" 18577if test "x$ac_cv_type_socklen_t" = x""yes; then : 18578 18579else 18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 18581$as_echo_n "checking for socklen_t equivalent... " >&6; } 18582 if test "${db_cv_socklen_t_equiv+set}" = set; then : 18583 $as_echo_n "(cached) " >&6 18584else 18585 # Systems have either "struct sockaddr *" or 18586 # "void *" as the second argument to getpeername 18587 db_cv_socklen_t_equiv= 18588 for arg2 in "struct sockaddr" void; do 18589 for t in int size_t "unsigned int" "long int" "unsigned long int"; do 18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18591/* end confdefs.h. */ 18592$db_includes 18593#ifdef HAVE_SYS_SOCKET_H 18594#include <sys/socket.h> 18595#endif 18596 int getpeername (int, $arg2 *, $t *); 18597int 18598main () 18599{ 18600$t len; 18601 getpeername (0, 0, &len); 18602 ; 18603 return 0; 18604} 18605_ACEOF 18606if ac_fn_c_try_compile "$LINENO"; then : 18607 db_cv_socklen_t_equiv="$t" 18608fi 18609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18610 test "$db_cv_socklen_t_equiv" != "" && break 18611 done 18612 test "$db_cv_socklen_t_equiv" != "" && break 18613 done 18614 18615fi 18616 18617 if test "$db_cv_socklen_t_equiv" = ""; then 18618 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5 18619 fi 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_socklen_t_equiv" >&5 18621$as_echo "$db_cv_socklen_t_equiv" >&6; } 18622 18623cat >>confdefs.h <<_ACEOF 18624#define socklen_t $db_cv_socklen_t_equiv 18625_ACEOF 18626 18627fi 18628 18629 18630 18631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C exit success/failure values" >&5 18632$as_echo_n "checking for ANSI C exit success/failure values... " >&6; } 18633if test "${db_cv_exit_defines+set}" = set; then : 18634 $as_echo_n "(cached) " >&6 18635else 18636 18637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18638/* end confdefs.h. */ 18639#include <stdlib.h> 18640int 18641main () 18642{ 18643return (EXIT_SUCCESS); 18644 ; 18645 return 0; 18646} 18647_ACEOF 18648if ac_fn_c_try_compile "$LINENO"; then : 18649 db_cv_exit_defines=yes 18650else 18651 db_cv_exit_defines=no 18652fi 18653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18654fi 18655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_exit_defines" >&5 18656$as_echo "$db_cv_exit_defines" >&6; } 18657if test "$db_cv_exit_defines" = "yes"; then 18658 $as_echo "#define HAVE_EXIT_SUCCESS 1" >>confdefs.h 18659 18660 18661fi 18662 18663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt optreset variable" >&5 18664$as_echo_n "checking for getopt optreset variable... " >&6; } 18665if test "${db_cv_optreset+set}" = set; then : 18666 $as_echo_n "(cached) " >&6 18667else 18668 18669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18670/* end confdefs.h. */ 18671#include <unistd.h> 18672int 18673main () 18674{ 18675extern int optreset; optreset = 1; 18676 ; 18677 return 0; 18678} 18679_ACEOF 18680if ac_fn_c_try_link "$LINENO"; then : 18681 db_cv_optreset=yes 18682else 18683 db_cv_optreset=no 18684fi 18685rm -f core conftest.err conftest.$ac_objext \ 18686 conftest$ac_exeext conftest.$ac_ext 18687fi 18688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_optreset" >&5 18689$as_echo "$db_cv_optreset" >&6; } 18690if test "$db_cv_optreset" = "yes"; then 18691 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h 18692 18693 18694fi 18695 18696# Check for mutexes. 18697# We do this first because it changes $LIBSO_LIBS. 18698 18699 18700# Mutexes we don't test for, but want the #defines to exist for other ports. 18701 18702 18703 18704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutexes" >&5 18705$as_echo_n "checking for mutexes... " >&6; } 18706if test "${db_cv_mutex+set}" = set; then : 18707 $as_echo_n "(cached) " >&6 18708else 18709 18710 18711orig_libs=$LIBS 18712 18713db_cv_mutex=no 18714 18715# Mutexes can be disabled. 18716if test "$db_cv_build_mutexsupport" = no; then 18717 db_cv_mutex=disabled; 18718fi 18719 18720# User-specified Win32 mutexes (MinGW build) 18721if test "$db_cv_mingw" = yes; then 18722 db_cv_mutex=win32/gcc 18723fi 18724 18725if test "$db_cv_mutex" = no; then 18726 # User-specified POSIX or UI mutexes. 18727 # 18728 # There are two different reasons to specify mutexes: First, the 18729 # application is already using one type of mutex and doesn't want 18730 # to mix-and-match (for example, on Solaris, which has POSIX, UI 18731 # and LWP mutexes). Second, the application's POSIX pthreads 18732 # mutexes don't support inter-process locking, but the application 18733 # wants to use them anyway (for example, some Linux and *BSD systems). 18734 # 18735 # Test for POSIX threads before testing for UI/LWP threads, they are 18736 # the Sun-recommended choice on Solaris. Also, there are Linux systems 18737 # that support a UI compatibility mode, and applications are more 18738 # likely to be written for POSIX threads than UI threads. 18739 if test "$db_cv_posixmutexes" = yes; then 18740 db_cv_mutex=posix_only; 18741 fi 18742 if test "$db_cv_uimutexes" = yes; then 18743 db_cv_mutex=ui_only; 18744 fi 18745 18746 # POSIX.1 pthreads: pthread_XXX 18747 # 18748 # If the user specified we use POSIX pthreads mutexes, and we fail to 18749 # find the full interface, try and configure for just intra-process 18750 # support. 18751 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then 18752 LIBS="$LIBS -lpthread" 18753 18754if test "$cross_compiling" = yes; then : 18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18756/* end confdefs.h. */ 18757 18758#include <pthread.h> 18759int 18760main () 18761{ 18762 18763 pthread_cond_t cond; 18764 pthread_mutex_t mutex; 18765 pthread_condattr_t condattr; 18766 pthread_mutexattr_t mutexattr; 18767 exit ( 18768 pthread_condattr_init(&condattr) || 18769 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18770 pthread_mutexattr_init(&mutexattr) || 18771 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18772 pthread_cond_init(&cond, &condattr) || 18773 pthread_mutex_init(&mutex, &mutexattr) || 18774 pthread_mutex_lock(&mutex) || 18775 pthread_mutex_unlock(&mutex) || 18776 pthread_mutex_destroy(&mutex) || 18777 pthread_cond_destroy(&cond) || 18778 pthread_condattr_destroy(&condattr) || 18779 pthread_mutexattr_destroy(&mutexattr)); 18780 18781 ; 18782 return 0; 18783} 18784_ACEOF 18785if ac_fn_c_try_link "$LINENO"; then : 18786 db_cv_mutex="POSIX/pthreads/library" 18787fi 18788rm -f core conftest.err conftest.$ac_objext \ 18789 conftest$ac_exeext conftest.$ac_ext 18790else 18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18792/* end confdefs.h. */ 18793 18794#include <pthread.h> 18795main() { 18796 pthread_cond_t cond; 18797 pthread_mutex_t mutex; 18798 pthread_condattr_t condattr; 18799 pthread_mutexattr_t mutexattr; 18800 exit ( 18801 pthread_condattr_init(&condattr) || 18802 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18803 pthread_mutexattr_init(&mutexattr) || 18804 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18805 pthread_cond_init(&cond, &condattr) || 18806 pthread_mutex_init(&mutex, &mutexattr) || 18807 pthread_mutex_lock(&mutex) || 18808 pthread_mutex_unlock(&mutex) || 18809 pthread_mutex_destroy(&mutex) || 18810 pthread_cond_destroy(&cond) || 18811 pthread_condattr_destroy(&condattr) || 18812 pthread_mutexattr_destroy(&mutexattr)); 18813} 18814_ACEOF 18815if ac_fn_c_try_run "$LINENO"; then : 18816 db_cv_mutex="POSIX/pthreads/library" 18817fi 18818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18819 conftest.$ac_objext conftest.beam conftest.$ac_ext 18820fi 18821 18822 LIBS="$orig_libs" 18823 fi 18824 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then 18825 18826if test "$cross_compiling" = yes; then : 18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828/* end confdefs.h. */ 18829 18830#include <pthread.h> 18831int 18832main () 18833{ 18834 18835 pthread_cond_t cond; 18836 pthread_mutex_t mutex; 18837 pthread_condattr_t condattr; 18838 pthread_mutexattr_t mutexattr; 18839 exit ( 18840 pthread_condattr_init(&condattr) || 18841 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18842 pthread_mutexattr_init(&mutexattr) || 18843 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18844 pthread_cond_init(&cond, &condattr) || 18845 pthread_mutex_init(&mutex, &mutexattr) || 18846 pthread_mutex_lock(&mutex) || 18847 pthread_mutex_unlock(&mutex) || 18848 pthread_mutex_destroy(&mutex) || 18849 pthread_cond_destroy(&cond) || 18850 pthread_condattr_destroy(&condattr) || 18851 pthread_mutexattr_destroy(&mutexattr)); 18852 18853 ; 18854 return 0; 18855} 18856_ACEOF 18857if ac_fn_c_try_link "$LINENO"; then : 18858 db_cv_mutex="POSIX/pthreads" 18859fi 18860rm -f core conftest.err conftest.$ac_objext \ 18861 conftest$ac_exeext conftest.$ac_ext 18862else 18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864/* end confdefs.h. */ 18865 18866#include <pthread.h> 18867main() { 18868 pthread_cond_t cond; 18869 pthread_mutex_t mutex; 18870 pthread_condattr_t condattr; 18871 pthread_mutexattr_t mutexattr; 18872 exit ( 18873 pthread_condattr_init(&condattr) || 18874 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18875 pthread_mutexattr_init(&mutexattr) || 18876 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18877 pthread_cond_init(&cond, &condattr) || 18878 pthread_mutex_init(&mutex, &mutexattr) || 18879 pthread_mutex_lock(&mutex) || 18880 pthread_mutex_unlock(&mutex) || 18881 pthread_mutex_destroy(&mutex) || 18882 pthread_cond_destroy(&cond) || 18883 pthread_condattr_destroy(&condattr) || 18884 pthread_mutexattr_destroy(&mutexattr)); 18885} 18886_ACEOF 18887if ac_fn_c_try_run "$LINENO"; then : 18888 db_cv_mutex="POSIX/pthreads" 18889fi 18890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18891 conftest.$ac_objext conftest.beam conftest.$ac_ext 18892fi 18893 18894 fi 18895 if test "$db_cv_mutex" = posix_only; then 18896 18897if test "$cross_compiling" = yes; then : 18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18899/* end confdefs.h. */ 18900 18901#include <pthread.h> 18902int 18903main () 18904{ 18905 18906 pthread_cond_t cond; 18907 pthread_mutex_t mutex; 18908 pthread_condattr_t condattr; 18909 pthread_mutexattr_t mutexattr; 18910 exit ( 18911 pthread_condattr_init(&condattr) || 18912 pthread_mutexattr_init(&mutexattr) || 18913 pthread_cond_init(&cond, &condattr) || 18914 pthread_mutex_init(&mutex, &mutexattr) || 18915 pthread_mutex_lock(&mutex) || 18916 pthread_mutex_unlock(&mutex) || 18917 pthread_mutex_destroy(&mutex) || 18918 pthread_cond_destroy(&cond) || 18919 pthread_condattr_destroy(&condattr) || 18920 pthread_mutexattr_destroy(&mutexattr)); 18921 18922 ; 18923 return 0; 18924} 18925_ACEOF 18926if ac_fn_c_try_link "$LINENO"; then : 18927 db_cv_mutex="POSIX/pthreads/private" 18928fi 18929rm -f core conftest.err conftest.$ac_objext \ 18930 conftest$ac_exeext conftest.$ac_ext 18931else 18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18933/* end confdefs.h. */ 18934 18935#include <pthread.h> 18936main() { 18937 pthread_cond_t cond; 18938 pthread_mutex_t mutex; 18939 pthread_condattr_t condattr; 18940 pthread_mutexattr_t mutexattr; 18941 exit ( 18942 pthread_condattr_init(&condattr) || 18943 pthread_mutexattr_init(&mutexattr) || 18944 pthread_cond_init(&cond, &condattr) || 18945 pthread_mutex_init(&mutex, &mutexattr) || 18946 pthread_mutex_lock(&mutex) || 18947 pthread_mutex_unlock(&mutex) || 18948 pthread_mutex_destroy(&mutex) || 18949 pthread_cond_destroy(&cond) || 18950 pthread_condattr_destroy(&condattr) || 18951 pthread_mutexattr_destroy(&mutexattr)); 18952} 18953_ACEOF 18954if ac_fn_c_try_run "$LINENO"; then : 18955 db_cv_mutex="POSIX/pthreads/private" 18956fi 18957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18958 conftest.$ac_objext conftest.beam conftest.$ac_ext 18959fi 18960 18961 fi 18962 if test "$db_cv_mutex" = posix_only; then 18963 LIBS="$LIBS -lpthread" 18964 18965if test "$cross_compiling" = yes; then : 18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968 18969#include <pthread.h> 18970int 18971main () 18972{ 18973 18974 pthread_cond_t cond; 18975 pthread_mutex_t mutex; 18976 pthread_condattr_t condattr; 18977 pthread_mutexattr_t mutexattr; 18978 exit ( 18979 pthread_condattr_init(&condattr) || 18980 pthread_mutexattr_init(&mutexattr) || 18981 pthread_cond_init(&cond, &condattr) || 18982 pthread_mutex_init(&mutex, &mutexattr) || 18983 pthread_mutex_lock(&mutex) || 18984 pthread_mutex_unlock(&mutex) || 18985 pthread_mutex_destroy(&mutex) || 18986 pthread_cond_destroy(&cond) || 18987 pthread_condattr_destroy(&condattr) || 18988 pthread_mutexattr_destroy(&mutexattr)); 18989 18990 ; 18991 return 0; 18992} 18993_ACEOF 18994if ac_fn_c_try_link "$LINENO"; then : 18995 db_cv_mutex="POSIX/pthreads/library/private" 18996fi 18997rm -f core conftest.err conftest.$ac_objext \ 18998 conftest$ac_exeext conftest.$ac_ext 18999else 19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19001/* end confdefs.h. */ 19002 19003#include <pthread.h> 19004main() { 19005 pthread_cond_t cond; 19006 pthread_mutex_t mutex; 19007 pthread_condattr_t condattr; 19008 pthread_mutexattr_t mutexattr; 19009 exit ( 19010 pthread_condattr_init(&condattr) || 19011 pthread_mutexattr_init(&mutexattr) || 19012 pthread_cond_init(&cond, &condattr) || 19013 pthread_mutex_init(&mutex, &mutexattr) || 19014 pthread_mutex_lock(&mutex) || 19015 pthread_mutex_unlock(&mutex) || 19016 pthread_mutex_destroy(&mutex) || 19017 pthread_cond_destroy(&cond) || 19018 pthread_condattr_destroy(&condattr) || 19019 pthread_mutexattr_destroy(&mutexattr)); 19020} 19021_ACEOF 19022if ac_fn_c_try_run "$LINENO"; then : 19023 db_cv_mutex="POSIX/pthreads/library/private" 19024fi 19025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19026 conftest.$ac_objext conftest.beam conftest.$ac_ext 19027fi 19028 19029 LIBS="$orig_libs" 19030 fi 19031 if test "$db_cv_mutex" = posix_only; then 19032 as_fn_error "unable to find POSIX 1003.1 mutex interfaces" "$LINENO" 5 19033 fi 19034 19035 # LWP threads: _lwp_XXX 19036 if test "$db_cv_mutex" = no; then 19037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19038/* end confdefs.h. */ 19039 19040 #include <synch.h> 19041int 19042main () 19043{ 19044 19045 static lwp_mutex_t mi = SHAREDMUTEX; 19046 static lwp_cond_t ci = SHAREDCV; 19047 lwp_mutex_t mutex = mi; 19048 lwp_cond_t cond = ci; 19049 exit ( 19050 _lwp_mutex_lock(&mutex) || 19051 _lwp_mutex_unlock(&mutex)); 19052 19053 ; 19054 return 0; 19055} 19056_ACEOF 19057if ac_fn_c_try_link "$LINENO"; then : 19058 db_cv_mutex=Solaris/lwp 19059fi 19060rm -f core conftest.err conftest.$ac_objext \ 19061 conftest$ac_exeext conftest.$ac_ext 19062 fi 19063 19064 # UI threads: thr_XXX 19065 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then 19066 LIBS="$LIBS -lthread" 19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19068/* end confdefs.h. */ 19069 19070 #include <thread.h> 19071 #include <synch.h> 19072int 19073main () 19074{ 19075 19076 mutex_t mutex; 19077 cond_t cond; 19078 int type = USYNC_PROCESS; 19079 exit ( 19080 mutex_init(&mutex, type, NULL) || 19081 cond_init(&cond, type, NULL) || 19082 mutex_lock(&mutex) || 19083 mutex_unlock(&mutex)); 19084 19085 ; 19086 return 0; 19087} 19088_ACEOF 19089if ac_fn_c_try_link "$LINENO"; then : 19090 db_cv_mutex=UI/threads/library 19091fi 19092rm -f core conftest.err conftest.$ac_objext \ 19093 conftest$ac_exeext conftest.$ac_ext 19094 LIBS="$orig_libs" 19095 fi 19096 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then 19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19098/* end confdefs.h. */ 19099 19100 #include <thread.h> 19101 #include <synch.h> 19102int 19103main () 19104{ 19105 19106 mutex_t mutex; 19107 cond_t cond; 19108 int type = USYNC_PROCESS; 19109 exit ( 19110 mutex_init(&mutex, type, NULL) || 19111 cond_init(&cond, type, NULL) || 19112 mutex_lock(&mutex) || 19113 mutex_unlock(&mutex)); 19114 19115 ; 19116 return 0; 19117} 19118_ACEOF 19119if ac_fn_c_try_link "$LINENO"; then : 19120 db_cv_mutex=UI/threads 19121fi 19122rm -f core conftest.err conftest.$ac_objext \ 19123 conftest$ac_exeext conftest.$ac_ext 19124 fi 19125 if test "$db_cv_mutex" = ui_only; then 19126 as_fn_error "unable to find UI mutex interfaces" "$LINENO" 5 19127 fi 19128 19129 # We're done testing for pthreads-style mutexes. Next, check for 19130 # test-and-set mutexes. Check first for hybrid implementations, 19131 # because we check for them even if we've already found a 19132 # pthreads-style mutex and they're the most common architectures 19133 # anyway. 19134 # 19135 # x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux 19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19137/* end confdefs.h. */ 19138 19139int 19140main () 19141{ 19142 19143 #if (defined(i386) || defined(__i386__)) && defined(__GNUC__) 19144 exit(0); 19145 #else 19146 FAIL TO COMPILE/LINK 19147 #endif 19148 19149 ; 19150 return 0; 19151} 19152_ACEOF 19153if ac_fn_c_try_compile "$LINENO"; then : 19154 db_cv_mutex="$db_cv_mutex/x86/gcc-assembly" 19155fi 19156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19157 19158 # x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux 19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19160/* end confdefs.h. */ 19161 19162int 19163main () 19164{ 19165 19166 #if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__) 19167 exit(0); 19168 #else 19169 FAIL TO COMPILE/LINK 19170 #endif 19171 19172 ; 19173 return 0; 19174} 19175_ACEOF 19176if ac_fn_c_try_compile "$LINENO"; then : 19177 db_cv_mutex="$db_cv_mutex/x86_64/gcc-assembly" 19178fi 19179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19180 19181 # Solaris is one of the systems where we can configure hybrid mutexes. 19182 # However, we require the membar_enter function for that, and only newer 19183 # Solaris releases have it. Check to see if we can configure hybrids. 19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19185/* end confdefs.h. */ 19186 19187 #include <sys/atomic.h> 19188 #include <sys/machlock.h> 19189int 19190main () 19191{ 19192 19193 typedef lock_t tsl_t; 19194 lock_t x; 19195 _lock_try(&x); 19196 _lock_clear(&x); 19197 membar_enter(); 19198 19199 ; 19200 return 0; 19201} 19202_ACEOF 19203if ac_fn_c_try_link "$LINENO"; then : 19204 db_cv_mutex="$db_cv_mutex/Solaris/_lock_try/membar" 19205fi 19206rm -f core conftest.err conftest.$ac_objext \ 19207 conftest$ac_exeext conftest.$ac_ext 19208 19209 # Sparc/gcc: SunOS, Solaris, ultrasparc assembler support 19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19211/* end confdefs.h. */ 19212 19213int 19214main () 19215{ 19216 19217 #if defined(__sparc__) && defined(__GNUC__) 19218 asm volatile ("membar #StoreStore|#StoreLoad|#LoadStore"); 19219 exit(0); 19220 #else 19221 FAIL TO COMPILE/LINK 19222 #endif 19223 19224 ; 19225 return 0; 19226} 19227_ACEOF 19228if ac_fn_c_try_compile "$LINENO"; then : 19229 db_cv_mutex="$db_cv_mutex/Sparc/gcc-assembly" 19230fi 19231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19232 19233 # We're done testing for any hybrid mutex implementations. If we did 19234 # not find a pthreads-style mutex, but did find a test-and-set mutex, 19235 # we set db_cv_mutex to "no/XXX" -- clean that up. 19236 db_cv_mutex=`echo $db_cv_mutex | sed 's/^no\///'` 19237fi 19238 19239# If we still don't have a mutex implementation yet, continue testing for a 19240# test-and-set mutex implementation. 19241 19242# _lock_try/_lock_clear: Solaris 19243# On Solaris systems without other mutex interfaces, DB uses the undocumented 19244# _lock_try _lock_clear function calls instead of either the sema_trywait(3T) 19245# or sema_wait(3T) function calls. This is because of problems in those 19246# interfaces in some releases of the Solaris C library. 19247if test "$db_cv_mutex" = no; then 19248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19249/* end confdefs.h. */ 19250 19251#include <sys/atomic.h> 19252#include <sys/machlock.h> 19253int 19254main () 19255{ 19256 19257 typedef lock_t tsl_t; 19258 lock_t x; 19259 _lock_try(&x); 19260 _lock_clear(&x); 19261 19262 ; 19263 return 0; 19264} 19265_ACEOF 19266if ac_fn_c_try_link "$LINENO"; then : 19267 db_cv_mutex=Solaris/_lock_try 19268fi 19269rm -f core conftest.err conftest.$ac_objext \ 19270 conftest$ac_exeext conftest.$ac_ext 19271fi 19272 19273# msemaphore: HPPA only 19274# Try HPPA before general msem test, it needs special alignment. 19275if test "$db_cv_mutex" = no; then 19276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19277/* end confdefs.h. */ 19278 19279#include <sys/mman.h> 19280int 19281main () 19282{ 19283 19284#if defined(__hppa) 19285 typedef msemaphore tsl_t; 19286 msemaphore x; 19287 msem_init(&x, 0); 19288 msem_lock(&x, 0); 19289 msem_unlock(&x, 0); 19290 exit(0); 19291#else 19292 FAIL TO COMPILE/LINK 19293#endif 19294 19295 ; 19296 return 0; 19297} 19298_ACEOF 19299if ac_fn_c_try_link "$LINENO"; then : 19300 db_cv_mutex=HP/msem_init 19301fi 19302rm -f core conftest.err conftest.$ac_objext \ 19303 conftest$ac_exeext conftest.$ac_ext 19304fi 19305 19306# msemaphore: AIX, OSF/1 19307if test "$db_cv_mutex" = no; then 19308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19309/* end confdefs.h. */ 19310 19311#include <sys/types.h> 19312#include <sys/mman.h> 19313int 19314main () 19315{ 19316 19317 typedef msemaphore tsl_t; 19318 msemaphore x; 19319 msem_init(&x, 0); 19320 msem_lock(&x, 0); 19321 msem_unlock(&x, 0); 19322 exit(0); 19323 19324 ; 19325 return 0; 19326} 19327_ACEOF 19328if ac_fn_c_try_link "$LINENO"; then : 19329 db_cv_mutex=UNIX/msem_init 19330fi 19331rm -f core conftest.err conftest.$ac_objext \ 19332 conftest$ac_exeext conftest.$ac_ext 19333fi 19334 19335# ReliantUNIX 19336if test "$db_cv_mutex" = no; then 19337LIBS="$LIBS -lmproc" 19338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19339/* end confdefs.h. */ 19340 19341#include <ulocks.h> 19342int 19343main () 19344{ 19345 19346 typedef spinlock_t tsl_t; 19347 spinlock_t x; 19348 initspin(&x, 1); 19349 cspinlock(&x); 19350 spinunlock(&x); 19351 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356if ac_fn_c_try_link "$LINENO"; then : 19357 db_cv_mutex=ReliantUNIX/initspin 19358fi 19359rm -f core conftest.err conftest.$ac_objext \ 19360 conftest$ac_exeext conftest.$ac_ext 19361LIBS="$orig_libs" 19362fi 19363 19364# SCO: UnixWare has threads in libthread, but OpenServer doesn't. 19365if test "$db_cv_mutex" = no; then 19366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19367/* end confdefs.h. */ 19368 19369int 19370main () 19371{ 19372 19373#if defined(__USLC__) 19374 exit(0); 19375#else 19376 FAIL TO COMPILE/LINK 19377#endif 19378 19379 ; 19380 return 0; 19381} 19382_ACEOF 19383if ac_fn_c_try_compile "$LINENO"; then : 19384 db_cv_mutex=SCO/x86/cc-assembly 19385fi 19386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19387fi 19388 19389# abilock_t: SGI 19390if test "$db_cv_mutex" = no; then 19391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19392/* end confdefs.h. */ 19393 19394#include <abi_mutex.h> 19395int 19396main () 19397{ 19398 19399 typedef abilock_t tsl_t; 19400 abilock_t x; 19401 init_lock(&x); 19402 acquire_lock(&x); 19403 release_lock(&x); 19404 19405 ; 19406 return 0; 19407} 19408_ACEOF 19409if ac_fn_c_try_link "$LINENO"; then : 19410 db_cv_mutex=SGI/init_lock 19411fi 19412rm -f core conftest.err conftest.$ac_objext \ 19413 conftest$ac_exeext conftest.$ac_ext 19414fi 19415 19416# sema_t: Solaris 19417# The sema_XXX calls do not work on Solaris 5.5. I see no reason to ever 19418# turn this test on, unless we find some other platform that uses the old 19419# POSIX.1 interfaces. 19420if test "$db_cv_mutex" = DOESNT_WORK; then 19421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19422/* end confdefs.h. */ 19423 19424#include <synch.h> 19425int 19426main () 19427{ 19428 19429 typedef sema_t tsl_t; 19430 sema_t x; 19431 sema_init(&x, 1, USYNC_PROCESS, NULL); 19432 sema_wait(&x); 19433 sema_post(&x); 19434 19435 ; 19436 return 0; 19437} 19438_ACEOF 19439if ac_fn_c_try_link "$LINENO"; then : 19440 db_cv_mutex=UNIX/sema_init 19441fi 19442rm -f core conftest.err conftest.$ac_objext \ 19443 conftest$ac_exeext conftest.$ac_ext 19444fi 19445 19446# _check_lock/_clear_lock: AIX 19447if test "$db_cv_mutex" = no; then 19448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19449/* end confdefs.h. */ 19450 19451#include <sys/atomic_op.h> 19452int 19453main () 19454{ 19455 19456 int x; 19457 _check_lock(&x,0,1); 19458 _clear_lock(&x,0); 19459 19460 ; 19461 return 0; 19462} 19463_ACEOF 19464if ac_fn_c_try_link "$LINENO"; then : 19465 db_cv_mutex=AIX/_check_lock 19466fi 19467rm -f core conftest.err conftest.$ac_objext \ 19468 conftest$ac_exeext conftest.$ac_ext 19469fi 19470 19471# _spin_lock_try/_spin_unlock: Apple/Darwin 19472if test "$db_cv_mutex" = no; then 19473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19474/* end confdefs.h. */ 19475 19476int 19477main () 19478{ 19479 19480 int x; 19481 _spin_lock_try(&x); 19482 _spin_unlock(&x); 19483 19484 ; 19485 return 0; 19486} 19487_ACEOF 19488if ac_fn_c_try_link "$LINENO"; then : 19489 db_cv_mutex=Darwin/_spin_lock_try 19490fi 19491rm -f core conftest.err conftest.$ac_objext \ 19492 conftest$ac_exeext conftest.$ac_ext 19493fi 19494 19495# Tru64/cc 19496if test "$db_cv_mutex" = no; then 19497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19498/* end confdefs.h. */ 19499 19500int 19501main () 19502{ 19503 19504#if defined(__alpha) && defined(__DECC) 19505 exit(0); 19506#else 19507 FAIL TO COMPILE/LINK 19508#endif 19509 19510 ; 19511 return 0; 19512} 19513_ACEOF 19514if ac_fn_c_try_compile "$LINENO"; then : 19515 db_cv_mutex=Tru64/cc-assembly 19516fi 19517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19518fi 19519 19520# Alpha/gcc 19521if test "$db_cv_mutex" = no; then 19522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19523/* end confdefs.h. */ 19524 19525int 19526main () 19527{ 19528 19529#if defined(__alpha) && defined(__GNUC__) 19530 exit(0); 19531#else 19532 FAIL TO COMPILE/LINK 19533#endif 19534 19535 ; 19536 return 0; 19537} 19538_ACEOF 19539if ac_fn_c_try_compile "$LINENO"; then : 19540 db_cv_mutex=ALPHA/gcc-assembly 19541fi 19542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19543fi 19544 19545# ARM/gcc: Linux 19546if test "$db_cv_mutex" = no; then 19547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19548/* end confdefs.h. */ 19549 19550int 19551main () 19552{ 19553 19554#if defined(__arm__) && defined(__GNUC__) 19555 exit(0); 19556#else 19557 FAIL TO COMPILE/LINK 19558#endif 19559 19560 ; 19561 return 0; 19562} 19563_ACEOF 19564if ac_fn_c_try_compile "$LINENO"; then : 19565 db_cv_mutex=ARM/gcc-assembly 19566fi 19567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19568fi 19569 19570# MIPS/gcc: Linux 19571if test "$db_cv_mutex" = no; then 19572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19573/* end confdefs.h. */ 19574 19575int 19576main () 19577{ 19578 19579#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__) 19580 exit(0); 19581#else 19582 FAIL TO COMPILE/LINK 19583#endif 19584 19585 ; 19586 return 0; 19587} 19588_ACEOF 19589if ac_fn_c_try_compile "$LINENO"; then : 19590 db_cv_mutex=MIPS/gcc-assembly 19591fi 19592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19593fi 19594 19595# PaRisc/gcc: HP/UX 19596if test "$db_cv_mutex" = no; then 19597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19598/* end confdefs.h. */ 19599 19600int 19601main () 19602{ 19603 19604#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__) 19605 exit(0); 19606#else 19607 FAIL TO COMPILE/LINK 19608#endif 19609 19610 ; 19611 return 0; 19612} 19613_ACEOF 19614if ac_fn_c_try_compile "$LINENO"; then : 19615 db_cv_mutex=HPPA/gcc-assembly 19616fi 19617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19618fi 19619 19620# PPC/gcc: 19621if test "$db_cv_mutex" = no; then 19622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19623/* end confdefs.h. */ 19624 19625int 19626main () 19627{ 19628 19629#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__) 19630 exit(0); 19631#else 19632 FAIL TO COMPILE/LINK 19633#endif 19634 19635 ; 19636 return 0; 19637} 19638_ACEOF 19639if ac_fn_c_try_compile "$LINENO"; then : 19640 db_cv_mutex=PPC/gcc-assembly 19641fi 19642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19643fi 19644 19645# 68K/gcc: SunOS 19646if test "$db_cv_mutex" = no; then 19647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19648/* end confdefs.h. */ 19649 19650int 19651main () 19652{ 19653 19654#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__) 19655 exit(0); 19656#else 19657 FAIL TO COMPILE/LINK 19658#endif 19659 19660 ; 19661 return 0; 19662} 19663_ACEOF 19664if ac_fn_c_try_compile "$LINENO"; then : 19665 db_cv_mutex=68K/gcc-assembly 19666fi 19667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19668fi 19669 19670# S390/cc: IBM OS/390 Unix 19671if test "$db_cv_mutex" = no; then 19672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19673/* end confdefs.h. */ 19674 19675int 19676main () 19677{ 19678 19679#if defined(__MVS__) && defined(__IBMC__) 19680 exit(0); 19681#else 19682 FAIL TO COMPILE/LINK 19683#endif 19684 19685 ; 19686 return 0; 19687} 19688_ACEOF 19689if ac_fn_c_try_compile "$LINENO"; then : 19690 db_cv_mutex=S390/cc-assembly 19691fi 19692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19693fi 19694 19695# S390/gcc: Linux 19696if test "$db_cv_mutex" = no; then 19697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19698/* end confdefs.h. */ 19699 19700int 19701main () 19702{ 19703 19704#if defined(__s390__) && defined(__GNUC__) 19705 exit(0); 19706#else 19707 FAIL TO COMPILE/LINK 19708#endif 19709 19710 ; 19711 return 0; 19712} 19713_ACEOF 19714if ac_fn_c_try_compile "$LINENO"; then : 19715 db_cv_mutex=S390/gcc-assembly 19716fi 19717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19718fi 19719 19720# ia64/gcc: Linux 19721if test "$db_cv_mutex" = no; then 19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19723/* end confdefs.h. */ 19724 19725int 19726main () 19727{ 19728 19729#if defined(__ia64) && defined(__GNUC__) 19730 exit(0); 19731#else 19732 FAIL TO COMPILE/LINK 19733#endif 19734 19735 ; 19736 return 0; 19737} 19738_ACEOF 19739if ac_fn_c_try_compile "$LINENO"; then : 19740 db_cv_mutex=ia64/gcc-assembly 19741fi 19742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19743fi 19744 19745# uts/cc: UTS 19746if test "$db_cv_mutex" = no; then 19747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19748/* end confdefs.h. */ 19749 19750int 19751main () 19752{ 19753 19754#if defined(_UTS) 19755 exit(0); 19756#else 19757 FAIL TO COMPILE/LINK 19758#endif 19759 19760 ; 19761 return 0; 19762} 19763_ACEOF 19764if ac_fn_c_try_compile "$LINENO"; then : 19765 db_cv_mutex=UTS/cc-assembly 19766fi 19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19768fi 19769 19770# UNIX fcntl system call mutexes. 19771# Note that fcntl mutexes are no longer supported in 4.8. This code has been 19772# left in place in case there is some system that we are not aware of that uses 19773# fcntl mutexes, in which case additional work will be required for DB 4.8 in 19774# order to support shared latches. 19775if test "$db_cv_mutex" = no; then 19776 db_cv_mutex=UNIX/fcntl 19777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19778/* end confdefs.h. */ 19779 19780#include <fcntl.h> 19781int 19782main () 19783{ 19784 19785 struct flock l; 19786 l.l_whence = SEEK_SET; 19787 l.l_start = 10; 19788 l.l_len = 1; 19789 l.l_type = F_WRLCK; 19790 fcntl(0, F_SETLK, &l); 19791 19792 ; 19793 return 0; 19794} 19795_ACEOF 19796if ac_fn_c_try_link "$LINENO"; then : 19797 db_cv_mutex=UNIX/fcntl 19798fi 19799rm -f core conftest.err conftest.$ac_objext \ 19800 conftest$ac_exeext conftest.$ac_ext 19801fi 19802 19803fi 19804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mutex" >&5 19805$as_echo "$db_cv_mutex" >&6; } 19806 19807# Configure a pthreads-style mutex implementation. 19808hybrid=pthread 19809case "$db_cv_mutex" in 19810POSIX/pthreads*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19811 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h 19812 19813 ;; 19814POSIX/pthreads/private*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19815 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h 19816 19817 $as_echo "#define HAVE_MUTEX_THREAD_ONLY 1" >>confdefs.h 19818 19819 ;; 19820POSIX/pthreads/library*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19821 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h 19822;; 19823POSIX/pthreads/library/private*) 19824 ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19825 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h 19826 19827 $as_echo "#define HAVE_MUTEX_THREAD_ONLY 1" >>confdefs.h 19828;; 19829Solaris/lwp*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19830 $as_echo "#define HAVE_MUTEX_SOLARIS_LWP 1" >>confdefs.h 19831 19832 ;; 19833UI/threads*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19834 $as_echo "#define HAVE_MUTEX_UI_THREADS 1" >>confdefs.h 19835 19836 ;; 19837UI/threads/library*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS" 19838 $as_echo "#define HAVE_MUTEX_UI_THREADS 1" >>confdefs.h 19839;; 19840*) hybrid=no;; 19841esac 19842 19843# Configure a test-and-set mutex implementation. 19844case "$db_cv_mutex" in 1984568K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19846 $as_echo "#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1" >>confdefs.h 19847 19848 ;; 19849AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19850 $as_echo "#define HAVE_MUTEX_AIX_CHECK_LOCK 1" >>confdefs.h 19851 19852 ;; 19853Darwin/_spin_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19854 $as_echo "#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1" >>confdefs.h 19855 19856 ;; 19857ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19858 $as_echo "#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1" >>confdefs.h 19859 19860 ;; 19861ARM/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19862 $as_echo "#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1" >>confdefs.h 19863 19864 ;; 19865HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19866 $as_echo "#define HAVE_MUTEX_HPPA_MSEM_INIT 1" >>confdefs.h 19867 19868 ;; 19869HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19870 $as_echo "#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1" >>confdefs.h 19871 19872 ;; 19873ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19874 $as_echo "#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1" >>confdefs.h 19875 19876 ;; 19877MIPS/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19878 $as_echo "#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1" >>confdefs.h 19879 19880 ;; 19881PPC/gcc-assembly) 19882 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19883 $as_echo "#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1" >>confdefs.h 19884 19885 ;; 19886ReliantUNIX/initspin) LIBSO_LIBS="$LIBSO_LIBS -lmproc" 19887 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19888 $as_echo "#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1" >>confdefs.h 19889 19890 ;; 19891S390/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19892 $as_echo "#define HAVE_MUTEX_S390_CC_ASSEMBLY 1" >>confdefs.h 19893 19894 ;; 19895S390/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19896 $as_echo "#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1" >>confdefs.h 19897 19898 ;; 19899SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19900 $as_echo "#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1" >>confdefs.h 19901 19902 ;; 19903SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19904 $as_echo "#define HAVE_MUTEX_SGI_INIT_LOCK 1" >>confdefs.h 19905 19906 ;; 19907Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19908 $as_echo "#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1" >>confdefs.h 19909 19910 ;; 19911*Solaris/_lock_try/membar) 19912 hybrid="$hybrid/tas" 19913 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19914 $as_echo "#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1" >>confdefs.h 19915 19916 ;; 19917*Sparc/gcc-assembly) hybrid="$hybrid/tas" 19918 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19919 $as_echo "#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1" >>confdefs.h 19920 19921 ;; 19922Tru64/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19923 $as_echo "#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1" >>confdefs.h 19924 19925 ;; 19926UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19927 $as_echo "#define HAVE_MUTEX_MSEM_INIT 1" >>confdefs.h 19928 19929 ;; 19930UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19931 $as_echo "#define HAVE_MUTEX_SEMA_INIT 1" >>confdefs.h 19932 19933 ;; 19934UTS/cc-assembly) ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS" 19935 $as_echo "#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1" >>confdefs.h 19936 19937 ;; 19938*x86/gcc-assembly) hybrid="$hybrid/tas" 19939 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19940 $as_echo "#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1" >>confdefs.h 19941 19942 ;; 19943*x86_64/gcc-assembly) hybrid="$hybrid/tas" 19944 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS" 19945 $as_echo "#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1" >>confdefs.h 19946 19947 ;; 19948esac 19949 19950# Configure the remaining special cases. 19951case "$db_cv_mutex" in 19952UNIX/fcntl) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM." >&5 19953$as_echo "$as_me: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM." >&2;} 19954 ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS" 19955 $as_echo "#define HAVE_MUTEX_FCNTL 1" >>confdefs.h 19956 19957 ;; 19958win32) ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS" 19959 $as_echo "#define HAVE_MUTEX_WIN32 1" >>confdefs.h 19960 19961 ;; 19962win32/gcc) ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS" 19963 $as_echo "#define HAVE_MUTEX_WIN32_GCC 1" >>confdefs.h 19964 19965 ;; 19966esac 19967 19968# Mutexes may not have been found, or may have been disabled. 19969case "$db_cv_mutex" in 19970disabled) 19971 ;; 19972*) 19973 # Test to see if mutexes have been found by checking the list of 19974 # additional objects for a mutex implementation. 19975 case "$ADDITIONAL_OBJS" in 19976 *mut_pthread*|*mut_tas*|*mut_win32*) 19977 $as_echo "#define HAVE_MUTEX_SUPPORT 1" >>confdefs.h 19978 19979 19980 19981 # Shared latches are required in 4.8, and are implemented using 19982 # mutexes if we don't have a native implementation. 19983 # This macro may be removed in a future release. 19984 19985 $as_echo "#define HAVE_SHARED_LATCHES 1" >>confdefs.h 19986;; 19987 *) 19988 as_fn_error "Unable to find a mutex implementation" "$LINENO" 5;; 19989 esac 19990esac 19991 19992# We may have found both a pthreads-style mutex implementation as well as a 19993# test-and-set, in which case configure for the hybrid. 19994if test "$hybrid" = pthread/tas; then 19995 $as_echo "#define HAVE_MUTEX_HYBRID 1" >>confdefs.h 19996 19997 19998fi 19999 20000# The mutex selection may require specific declarations -- we fill in most of 20001# them above, but here are the common ones. 20002# 20003# The mutex selection may tell us what kind of thread package we're using, 20004# which we use to figure out the thread type. 20005# 20006# If we're configured for the POSIX pthread API, then force the thread ID type 20007# and include function, regardless of the mutex selection. Ditto for the 20008# (default) Solaris lwp mutexes, because they don't have a way to return the 20009# thread ID. 20010# 20011# Try and link with a threads library if possible. The problem is the Solaris 20012# C library has UI/POSIX interface stubs, but they're broken, configuring them 20013# for inter-process mutexes doesn't return an error, but it doesn't work either. 20014# For that reason always add -lpthread if we're using pthread calls or mutexes 20015# and there's a pthread library. 20016# 20017# We can't depend on any specific call existing (pthread_create, for example), 20018# as it may be #defined in an include file -- OSF/1 (Tru64) has this problem. 20019 20020 20021 20022db_threadid_t_decl=notset 20023 20024case "$db_cv_mutex" in 20025UI/threads*) 20026 thread_h_decl="#include <thread.h>" 20027 db_threadid_t_decl="typedef thread_t db_threadid_t;" 20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lthread" >&5 20029$as_echo_n "checking for main in -lthread... " >&6; } 20030if test "${ac_cv_lib_thread_main+set}" = set; then : 20031 $as_echo_n "(cached) " >&6 20032else 20033 ac_check_lib_save_LIBS=$LIBS 20034LIBS="-lthread $LIBS" 20035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20036/* end confdefs.h. */ 20037 20038 20039int 20040main () 20041{ 20042return main (); 20043 ; 20044 return 0; 20045} 20046_ACEOF 20047if ac_fn_c_try_link "$LINENO"; then : 20048 ac_cv_lib_thread_main=yes 20049else 20050 ac_cv_lib_thread_main=no 20051fi 20052rm -f core conftest.err conftest.$ac_objext \ 20053 conftest$ac_exeext conftest.$ac_ext 20054LIBS=$ac_check_lib_save_LIBS 20055fi 20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_main" >&5 20057$as_echo "$ac_cv_lib_thread_main" >&6; } 20058if test "x$ac_cv_lib_thread_main" = x""yes; then : 20059 LIBSO_LIBS="$LIBSO_LIBS -lthread" 20060fi 20061ac_cv_lib_thread=ac_cv_lib_thread_main 20062;; 20063*) 20064 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 20065if test "x$ac_cv_header_pthread_h" = x""yes; then : 20066 ac_cv_header_pthread_h=yes 20067fi 20068 20069 20070 if test "$ac_cv_header_pthread_h" = "yes" ; then 20071 thread_h_decl="#include <pthread.h>" 20072 db_threadid_t_decl="typedef pthread_t db_threadid_t;" 20073 fi 20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 20075$as_echo_n "checking for main in -lpthread... " >&6; } 20076if test "${ac_cv_lib_pthread_main+set}" = set; then : 20077 $as_echo_n "(cached) " >&6 20078else 20079 ac_check_lib_save_LIBS=$LIBS 20080LIBS="-lpthread $LIBS" 20081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20082/* end confdefs.h. */ 20083 20084 20085int 20086main () 20087{ 20088return main (); 20089 ; 20090 return 0; 20091} 20092_ACEOF 20093if ac_fn_c_try_link "$LINENO"; then : 20094 ac_cv_lib_pthread_main=yes 20095else 20096 ac_cv_lib_pthread_main=no 20097fi 20098rm -f core conftest.err conftest.$ac_objext \ 20099 conftest$ac_exeext conftest.$ac_ext 20100LIBS=$ac_check_lib_save_LIBS 20101fi 20102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 20103$as_echo "$ac_cv_lib_pthread_main" >&6; } 20104if test "x$ac_cv_lib_pthread_main" = x""yes; then : 20105 LIBSO_LIBS="$LIBSO_LIBS -lpthread" 20106fi 20107ac_cv_lib_pthread=ac_cv_lib_pthread_main 20108;; 20109esac 20110 20111# We need to know if the thread ID type will fit into an integral type and we 20112# can compare it for equality and generally treat it like an int, or if it's a 20113# non-integral type and we have to treat it like a structure or other untyped 20114# block of bytes. For example, MVS typedef's pthread_t to a structure. 20115 20116if test "$db_threadid_t_decl" = notset; then 20117 db_threadid_t_decl="typedef uintmax_t db_threadid_t;" 20118 $as_echo "#define HAVE_SIMPLE_THREAD_TYPE 1" >>confdefs.h 20119 20120else 20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20122/* end confdefs.h. */ 20123#include <sys/types.h> 20124 $thread_h_decl 20125int 20126main () 20127{ 20128 20129 $db_threadid_t_decl 20130 db_threadid_t a; 20131 a = 0; 20132 20133 ; 20134 return 0; 20135} 20136_ACEOF 20137if ac_fn_c_try_compile "$LINENO"; then : 20138 $as_echo "#define HAVE_SIMPLE_THREAD_TYPE 1" >>confdefs.h 20139 20140fi 20141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20142fi 20143 20144# There are 3 classes of mutexes: 20145# 20146# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes. 20147# 2: Mutexes that must be destroyed, but which don't hold permanent system 20148# resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS. 20149# 3: Mutexes that must be destroyed, even after the process is gone, for 20150# example, pthread mutexes on QNX and binary semaphores on VxWorks. 20151# 20152# DB cannot currently distinguish between #2 and #3 because DB does not know 20153# if the application is running environment recovery as part of startup and 20154# does not need to do cleanup, or if the environment is being removed and/or 20155# recovered in a loop in the application, and so does need to clean up. If 20156# we get it wrong, we're going to call the mutex destroy routine on a random 20157# piece of memory, which usually works, but just might drop core. For now, 20158# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we 20159# have a better solution or reason to solve this in a general way -- so far, 20160# the places we've needed to handle this are few. 20161 20162 20163case "$host_os$db_cv_mutex" in 20164*qnx*POSIX/pthread*|openedition*POSIX/pthread*) 20165 $as_echo "#define HAVE_MUTEX_SYSTEM_RESOURCES 1" >>confdefs.h 20166;; 20167esac 20168 20169# Check for native (system call or instruction set) support for 20170# atomic increment, decrement, and compare & exchange. 20171 20172# Probe for native atomic operations 20173# gcc/x86{,_64} inline asm 20174# solaris atomic_* library calls 20175 20176 20177 20178 20179 20180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic operations" >&5 20181$as_echo_n "checking for atomic operations... " >&6; } 20182if test "${db_cv_atomic+set}" = set; then : 20183 $as_echo_n "(cached) " >&6 20184else 20185 20186db_cv_atomic=no 20187# atomic operations can be disabled via --disable-atomicsupport 20188if test "$db_cv_build_atomicsupport" = no; then 20189 db_cv_atomic=disabled 20190fi 20191 20192# The MinGW build uses the Windows API for atomic operations 20193if test "$db_cv_mingw" = yes; then 20194 db_cv_atomic=mingw 20195fi 20196 20197if test "$db_cv_atomic" = no; then 20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20199/* end confdefs.h. */ 20200 20201int 20202main () 20203{ 20204 20205 #if ((defined(i386) || defined(__i386__)) && defined(__GNUC__)) 20206 exit(0); 20207 #elif ((defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)) 20208 exit(0); 20209 #else 20210 FAIL TO COMPILE/LINK 20211 #endif 20212 20213 ; 20214 return 0; 20215} 20216_ACEOF 20217if ac_fn_c_try_compile "$LINENO"; then : 20218 db_cv_atomic="x86/gcc-assembly" 20219fi 20220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20221fi 20222 20223if test "$db_cv_atomic" = no; then 20224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20225/* end confdefs.h. */ 20226 20227#include <sys/atomic.h> 20228int 20229main () 20230{ 20231 20232 volatile unsigned val = 1; 20233 exit (atomic_inc_uint_nv(&val) != 2 || 20234 atomic_dec_uint_nv(&val) != 1 || 20235 atomic_cas_32(&val, 1, 3) != 3); 20236 20237 ; 20238 return 0; 20239} 20240_ACEOF 20241if ac_fn_c_try_link "$LINENO"; then : 20242 db_cv_atomic="solaris/atomic" 20243fi 20244rm -f core conftest.err conftest.$ac_objext \ 20245 conftest$ac_exeext conftest.$ac_ext 20246fi 20247 20248fi 20249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_atomic" >&5 20250$as_echo "$db_cv_atomic" >&6; } 20251 20252case "$db_cv_atomic" in 20253 x86/gcc-assembly) 20254 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h 20255 20256 $as_echo "#define HAVE_ATOMIC_X86_GCC_ASSEMBLY 1" >>confdefs.h 20257 20258 ;; 20259 20260 solaris/atomic) 20261 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h 20262 20263 $as_echo "#define HAVE_ATOMIC_SOLARIS 1" >>confdefs.h 20264 20265 ;; 20266 mingw) 20267 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h 20268 20269 ;; 20270esac 20271 20272 20273# Test for various functions/libraries -- do tests that change library values 20274# first. 20275# 20276# Update LIBS, so we're testing against the current list of libraries. 20277LIBS="$LIBSO_LIBS" 20278 20279# The yield function on Solaris is almost certainly pthread_yield (LWP threads 20280# or POSIX pthreads), or thr_yield (UI threads). There's an outside chance it 20281# is sched_yield() though, only available in -lrt on Solaris. 20282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 20283$as_echo_n "checking for library containing sched_yield... " >&6; } 20284if test "${ac_cv_search_sched_yield+set}" = set; then : 20285 $as_echo_n "(cached) " >&6 20286else 20287 ac_func_search_save_LIBS=$LIBS 20288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20289/* end confdefs.h. */ 20290 20291/* Override any GCC internal prototype to avoid an error. 20292 Use char because int might match the return type of a GCC 20293 builtin and then its argument prototype would still apply. */ 20294#ifdef __cplusplus 20295extern "C" 20296#endif 20297char sched_yield (); 20298int 20299main () 20300{ 20301return sched_yield (); 20302 ; 20303 return 0; 20304} 20305_ACEOF 20306for ac_lib in '' rt; do 20307 if test -z "$ac_lib"; then 20308 ac_res="none required" 20309 else 20310 ac_res=-l$ac_lib 20311 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20312 fi 20313 if ac_fn_c_try_link "$LINENO"; then : 20314 ac_cv_search_sched_yield=$ac_res 20315fi 20316rm -f core conftest.err conftest.$ac_objext \ 20317 conftest$ac_exeext 20318 if test "${ac_cv_search_sched_yield+set}" = set; then : 20319 break 20320fi 20321done 20322if test "${ac_cv_search_sched_yield+set}" = set; then : 20323 20324else 20325 ac_cv_search_sched_yield=no 20326fi 20327rm conftest.$ac_ext 20328LIBS=$ac_func_search_save_LIBS 20329fi 20330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 20331$as_echo "$ac_cv_search_sched_yield" >&6; } 20332ac_res=$ac_cv_search_sched_yield 20333if test "$ac_res" != no; then : 20334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20335 20336fi 20337 20338 20339# The Berkeley DB library calls fdatasync, only available in -lrt on Solaris. 20340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 20341$as_echo_n "checking for library containing fdatasync... " >&6; } 20342if test "${ac_cv_search_fdatasync+set}" = set; then : 20343 $as_echo_n "(cached) " >&6 20344else 20345 ac_func_search_save_LIBS=$LIBS 20346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20347/* end confdefs.h. */ 20348 20349/* Override any GCC internal prototype to avoid an error. 20350 Use char because int might match the return type of a GCC 20351 builtin and then its argument prototype would still apply. */ 20352#ifdef __cplusplus 20353extern "C" 20354#endif 20355char fdatasync (); 20356int 20357main () 20358{ 20359return fdatasync (); 20360 ; 20361 return 0; 20362} 20363_ACEOF 20364for ac_lib in '' rt; do 20365 if test -z "$ac_lib"; then 20366 ac_res="none required" 20367 else 20368 ac_res=-l$ac_lib 20369 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20370 fi 20371 if ac_fn_c_try_link "$LINENO"; then : 20372 ac_cv_search_fdatasync=$ac_res 20373fi 20374rm -f core conftest.err conftest.$ac_objext \ 20375 conftest$ac_exeext 20376 if test "${ac_cv_search_fdatasync+set}" = set; then : 20377 break 20378fi 20379done 20380if test "${ac_cv_search_fdatasync+set}" = set; then : 20381 20382else 20383 ac_cv_search_fdatasync=no 20384fi 20385rm conftest.$ac_ext 20386LIBS=$ac_func_search_save_LIBS 20387fi 20388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 20389$as_echo "$ac_cv_search_fdatasync" >&6; } 20390ac_res=$ac_cv_search_fdatasync 20391if test "$ac_res" != no; then : 20392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20393 20394fi 20395 20396 20397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 20398$as_echo_n "checking for library containing getaddrinfo... " >&6; } 20399if test "${ac_cv_search_getaddrinfo+set}" = set; then : 20400 $as_echo_n "(cached) " >&6 20401else 20402 ac_func_search_save_LIBS=$LIBS 20403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20404/* end confdefs.h. */ 20405 20406/* Override any GCC internal prototype to avoid an error. 20407 Use char because int might match the return type of a GCC 20408 builtin and then its argument prototype would still apply. */ 20409#ifdef __cplusplus 20410extern "C" 20411#endif 20412char getaddrinfo (); 20413int 20414main () 20415{ 20416return getaddrinfo (); 20417 ; 20418 return 0; 20419} 20420_ACEOF 20421for ac_lib in '' nsl socket; do 20422 if test -z "$ac_lib"; then 20423 ac_res="none required" 20424 else 20425 ac_res=-l$ac_lib 20426 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20427 fi 20428 if ac_fn_c_try_link "$LINENO"; then : 20429 ac_cv_search_getaddrinfo=$ac_res 20430fi 20431rm -f core conftest.err conftest.$ac_objext \ 20432 conftest$ac_exeext 20433 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 20434 break 20435fi 20436done 20437if test "${ac_cv_search_getaddrinfo+set}" = set; then : 20438 20439else 20440 ac_cv_search_getaddrinfo=no 20441fi 20442rm conftest.$ac_ext 20443LIBS=$ac_func_search_save_LIBS 20444fi 20445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 20446$as_echo "$ac_cv_search_getaddrinfo" >&6; } 20447ac_res=$ac_cv_search_getaddrinfo 20448if test "$ac_res" != no; then : 20449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20450 20451fi 20452 20453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 20454$as_echo_n "checking for library containing hstrerror... " >&6; } 20455if test "${ac_cv_search_hstrerror+set}" = set; then : 20456 $as_echo_n "(cached) " >&6 20457else 20458 ac_func_search_save_LIBS=$LIBS 20459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20460/* end confdefs.h. */ 20461 20462/* Override any GCC internal prototype to avoid an error. 20463 Use char because int might match the return type of a GCC 20464 builtin and then its argument prototype would still apply. */ 20465#ifdef __cplusplus 20466extern "C" 20467#endif 20468char hstrerror (); 20469int 20470main () 20471{ 20472return hstrerror (); 20473 ; 20474 return 0; 20475} 20476_ACEOF 20477for ac_lib in '' resolv; do 20478 if test -z "$ac_lib"; then 20479 ac_res="none required" 20480 else 20481 ac_res=-l$ac_lib 20482 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20483 fi 20484 if ac_fn_c_try_link "$LINENO"; then : 20485 ac_cv_search_hstrerror=$ac_res 20486fi 20487rm -f core conftest.err conftest.$ac_objext \ 20488 conftest$ac_exeext 20489 if test "${ac_cv_search_hstrerror+set}" = set; then : 20490 break 20491fi 20492done 20493if test "${ac_cv_search_hstrerror+set}" = set; then : 20494 20495else 20496 ac_cv_search_hstrerror=no 20497fi 20498rm conftest.$ac_ext 20499LIBS=$ac_func_search_save_LIBS 20500fi 20501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 20502$as_echo "$ac_cv_search_hstrerror" >&6; } 20503ac_res=$ac_cv_search_hstrerror 20504if test "$ac_res" != no; then : 20505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20506 20507fi 20508 20509 20510# Those tests updated LIBS, update our internal list. 20511LIBSO_LIBS="$LIBS" 20512 20513# !!! 20514# We could be more exact about whether these libraries are needed, but don't 20515# bother -- if they exist, we load them, it's only the test programs anyway. 20516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 20517$as_echo_n "checking for main in -lm... " >&6; } 20518if test "${ac_cv_lib_m_main+set}" = set; then : 20519 $as_echo_n "(cached) " >&6 20520else 20521 ac_check_lib_save_LIBS=$LIBS 20522LIBS="-lm $LIBS" 20523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20524/* end confdefs.h. */ 20525 20526 20527int 20528main () 20529{ 20530return main (); 20531 ; 20532 return 0; 20533} 20534_ACEOF 20535if ac_fn_c_try_link "$LINENO"; then : 20536 ac_cv_lib_m_main=yes 20537else 20538 ac_cv_lib_m_main=no 20539fi 20540rm -f core conftest.err conftest.$ac_objext \ 20541 conftest$ac_exeext conftest.$ac_ext 20542LIBS=$ac_check_lib_save_LIBS 20543fi 20544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 20545$as_echo "$ac_cv_lib_m_main" >&6; } 20546if test "x$ac_cv_lib_m_main" = x""yes; then : 20547 TEST_LIBS="$TEST_LIBS -lm" 20548fi 20549ac_cv_lib_m=ac_cv_lib_m_main 20550 20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 20552$as_echo_n "checking for main in -lnsl... " >&6; } 20553if test "${ac_cv_lib_nsl_main+set}" = set; then : 20554 $as_echo_n "(cached) " >&6 20555else 20556 ac_check_lib_save_LIBS=$LIBS 20557LIBS="-lnsl $LIBS" 20558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20559/* end confdefs.h. */ 20560 20561 20562int 20563main () 20564{ 20565return main (); 20566 ; 20567 return 0; 20568} 20569_ACEOF 20570if ac_fn_c_try_link "$LINENO"; then : 20571 ac_cv_lib_nsl_main=yes 20572else 20573 ac_cv_lib_nsl_main=no 20574fi 20575rm -f core conftest.err conftest.$ac_objext \ 20576 conftest$ac_exeext conftest.$ac_ext 20577LIBS=$ac_check_lib_save_LIBS 20578fi 20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 20580$as_echo "$ac_cv_lib_nsl_main" >&6; } 20581if test "x$ac_cv_lib_nsl_main" = x""yes; then : 20582 TEST_LIBS="$TEST_LIBS -lnsl" 20583fi 20584ac_cv_lib_nsl=ac_cv_lib_nsl_main 20585 20586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 20587$as_echo_n "checking for main in -lsocket... " >&6; } 20588if test "${ac_cv_lib_socket_main+set}" = set; then : 20589 $as_echo_n "(cached) " >&6 20590else 20591 ac_check_lib_save_LIBS=$LIBS 20592LIBS="-lsocket $LIBS" 20593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20594/* end confdefs.h. */ 20595 20596 20597int 20598main () 20599{ 20600return main (); 20601 ; 20602 return 0; 20603} 20604_ACEOF 20605if ac_fn_c_try_link "$LINENO"; then : 20606 ac_cv_lib_socket_main=yes 20607else 20608 ac_cv_lib_socket_main=no 20609fi 20610rm -f core conftest.err conftest.$ac_objext \ 20611 conftest$ac_exeext conftest.$ac_ext 20612LIBS=$ac_check_lib_save_LIBS 20613fi 20614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 20615$as_echo "$ac_cv_lib_socket_main" >&6; } 20616if test "x$ac_cv_lib_socket_main" = x""yes; then : 20617 TEST_LIBS="$TEST_LIBS -lsocket" 20618fi 20619ac_cv_lib_socket=ac_cv_lib_socket_main 20620 20621 20622# Checks for system functions for which we have replacements. 20623# 20624# The only portable getcwd call is getcwd(char *, size_t), where the 20625# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they 20626# deleted getwd(). 20627for ac_func in \ 20628 abort atoi atol getcwd getenv getopt isalpha isdigit isprint\ 20629 isspace memcmp memcpy memmove printf qsort raise rand strcasecmp\ 20630 strcat strchr strdup strerror strncat strncmp strrchr strsep\ 20631 strtol strtoul 20632do : 20633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20634ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20635eval as_val=\$$as_ac_var 20636 if test "x$as_val" = x""yes; then : 20637 cat >>confdefs.h <<_ACEOF 20638#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20639_ACEOF 20640 20641else 20642 case " $LIBOBJS " in 20643 *" $ac_func.$ac_objext "* ) ;; 20644 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 20645 ;; 20646esac 20647 20648fi 20649done 20650 20651 20652 20653# Check for system functions we optionally use. 20654for ac_func in \ 20655 _fstati64 backtrace backtrace_symbols directio fchmod fclose\ 20656 fcntl fdatasync fgetc fgets fopen fwrite getgid\ 20657 getrusage getuid hstrerror mprotect pstat_getdynamic\ 20658 pthread_self pthread_yield random sched_yield select setgid setuid\ 20659 sigaction snprintf stat sysconf vsnprintf yield 20660do : 20661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20663eval as_val=\$$as_ac_var 20664 if test "x$as_val" = x""yes; then : 20665 cat >>confdefs.h <<_ACEOF 20666#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20667_ACEOF 20668 20669fi 20670done 20671 20672 20673 20674 20675for ac_func in gettimeofday localtime time strftime 20676do : 20677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20679eval as_val=\$$as_ac_var 20680 if test "x$as_val" = x""yes; then : 20681 cat >>confdefs.h <<_ACEOF 20682#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20683_ACEOF 20684 20685fi 20686done 20687 20688 20689# AIX 4.3 will link applications with calls to clock_gettime, but the 20690# calls always fail. 20691case "$host_os" in 20692aix4.3.*) 20693 ;; 20694*) 20695 for ac_func in clock_gettime 20696do : 20697 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 20698if test "x$ac_cv_func_clock_gettime" = x""yes; then : 20699 cat >>confdefs.h <<_ACEOF 20700#define HAVE_CLOCK_GETTIME 1 20701_ACEOF 20702 20703fi 20704done 20705;; 20706esac 20707 20708# clock_gettime -- monotonic clocks. 20709# Check to see if we can get a monotonic clock. We actually try and 20710# run the program if possible, because we don't trust the #define's 20711# existence to mean the clock really exists. 20712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime monotonic clock" >&5 20713$as_echo_n "checking for clock_gettime monotonic clock... " >&6; } 20714if test "${db_cv_clock_monotonic+set}" = set; then : 20715 $as_echo_n "(cached) " >&6 20716else 20717 20718if test "$cross_compiling" = yes; then : 20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20720/* end confdefs.h. */ 20721 20722#include <sys/time.h> 20723int 20724main () 20725{ 20726 20727struct timespec t; 20728clock_gettime(CLOCK_MONOTONIC, &t); 20729 20730 ; 20731 return 0; 20732} 20733_ACEOF 20734if ac_fn_c_try_link "$LINENO"; then : 20735 db_cv_clock_monotonic=yes 20736else 20737 db_cv_clock_monotonic=no 20738fi 20739rm -f core conftest.err conftest.$ac_objext \ 20740 conftest$ac_exeext conftest.$ac_ext 20741else 20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20743/* end confdefs.h. */ 20744 20745#include <sys/time.h> 20746main() { 20747 struct timespec t; 20748 return (clock_gettime(CLOCK_MONOTONIC, &t) != 0); 20749} 20750_ACEOF 20751if ac_fn_c_try_run "$LINENO"; then : 20752 db_cv_clock_monotonic=yes 20753else 20754 db_cv_clock_monotonic=no 20755fi 20756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20757 conftest.$ac_objext conftest.beam conftest.$ac_ext 20758fi 20759 20760 20761fi 20762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_clock_monotonic" >&5 20763$as_echo "$db_cv_clock_monotonic" >&6; } 20764if test "$db_cv_clock_monotonic" = "yes"; then 20765 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h 20766 20767 20768fi 20769 20770# ctime_r -- 20771# 20772# There are two versions of ctime_r, one of which takes a buffer length as a 20773# third argument, and one which only takes two arguments. (There is also a 20774# difference in return values and the type of the 3rd argument, but we handle 20775# those problems in the code itself.) 20776for ac_func in ctime_r 20777do : 20778 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 20779if test "x$ac_cv_func_ctime_r" = x""yes; then : 20780 cat >>confdefs.h <<_ACEOF 20781#define HAVE_CTIME_R 1 20782_ACEOF 20783 20784fi 20785done 20786 20787if test "$ac_cv_func_ctime_r" = "yes"; then 20788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 or 3 argument version of ctime_r" >&5 20789$as_echo_n "checking for 2 or 3 argument version of ctime_r... " >&6; } 20790if test "${db_cv_ctime_r_3arg+set}" = set; then : 20791 $as_echo_n "(cached) " >&6 20792else 20793 20794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20795/* end confdefs.h. */ 20796 20797#include <time.h> 20798int 20799main () 20800{ 20801 20802 ctime_r(NULL, NULL, 100); 20803 20804 ; 20805 return 0; 20806} 20807_ACEOF 20808if ac_fn_c_try_link "$LINENO"; then : 20809 db_cv_ctime_r_3arg="3-argument" 20810else 20811 db_cv_ctime_r_3arg="2-argument" 20812fi 20813rm -f core conftest.err conftest.$ac_objext \ 20814 conftest$ac_exeext conftest.$ac_ext 20815fi 20816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_ctime_r_3arg" >&5 20817$as_echo "$db_cv_ctime_r_3arg" >&6; } 20818fi 20819if test "$db_cv_ctime_r_3arg" = "3-argument"; then 20820 $as_echo "#define HAVE_CTIME_R_3ARG 1" >>confdefs.h 20821 20822 20823fi 20824 20825 20826# Ftruncate. 20827# We've run into a problem with ftruncate on Alpha/Tru64, the issue is that 20828# after a truncate the last page of the file mmaps as all zeros. So just don't 20829# use ftruncate. 20830case "$host_os" in 20831osf*) 20832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ftruncate ignored on $host_os-$host_vendor." >&5 20833$as_echo "$as_me: WARNING: ftruncate ignored on $host_os-$host_vendor." >&2;};; 20834*) 20835 for ac_func in ftruncate 20836do : 20837 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 20838if test "x$ac_cv_func_ftruncate" = x""yes; then : 20839 cat >>confdefs.h <<_ACEOF 20840#define HAVE_FTRUNCATE 1 20841_ACEOF 20842 20843fi 20844done 20845;; 20846esac 20847 20848# Pread/pwrite. 20849# HP-UX has pread/pwrite, but it doesn't work with largefile support. 20850# NCR's version of System V R 4.3 has pread/pwrite symbols, but no support. 20851case "$host_os-$host_vendor" in 20852hpux*|sysv4.3*-ncr) 20853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&5 20854$as_echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&2;};; 20855*) 20856 for ac_func in pread pwrite 20857do : 20858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20860eval as_val=\$$as_ac_var 20861 if test "x$as_val" = x""yes; then : 20862 cat >>confdefs.h <<_ACEOF 20863#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20864_ACEOF 20865 20866fi 20867done 20868;; 20869esac 20870 20871# Check for getaddrinfo; do the test explicitly instead of using AC_CHECK_FUNCS 20872# because <netdb.h> isn't a standard include file. 20873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 20874$as_echo_n "checking for getaddrinfo... " >&6; } 20875if test "${db_cv_getaddrinfo+set}" = set; then : 20876 $as_echo_n "(cached) " >&6 20877else 20878 20879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20880/* end confdefs.h. */ 20881 20882#include <sys/types.h> 20883#include <netdb.h> 20884int 20885main () 20886{ 20887 20888 getaddrinfo(0, 0, 0, 0); 20889 20890 ; 20891 return 0; 20892} 20893_ACEOF 20894if ac_fn_c_try_link "$LINENO"; then : 20895 db_cv_getaddrinfo=yes 20896else 20897 db_cv_getaddrinfo=no 20898fi 20899rm -f core conftest.err conftest.$ac_objext \ 20900 conftest$ac_exeext conftest.$ac_ext 20901fi 20902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_getaddrinfo" >&5 20903$as_echo "$db_cv_getaddrinfo" >&6; } 20904if test "$db_cv_getaddrinfo" = "yes"; then 20905 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20906 20907 20908fi 20909 20910# Check for the fcntl F_SETFD flag to deny child process access to file 20911# descriptors. 20912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl/F_SETFD" >&5 20913$as_echo_n "checking for fcntl/F_SETFD... " >&6; } 20914if test "${db_cv_fcntl_f_setfd+set}" = set; then : 20915 $as_echo_n "(cached) " >&6 20916else 20917 20918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20919/* end confdefs.h. */ 20920 20921#include <sys/types.h> 20922#include <fcntl.h> 20923int 20924main () 20925{ 20926 20927 fcntl(1, F_SETFD, 1); 20928 20929 ; 20930 return 0; 20931} 20932_ACEOF 20933if ac_fn_c_try_link "$LINENO"; then : 20934 db_cv_fcntl_f_setfd=yes 20935else 20936 db_cv_fcntl_f_setfd=no 20937fi 20938rm -f core conftest.err conftest.$ac_objext \ 20939 conftest$ac_exeext conftest.$ac_ext 20940fi 20941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_fcntl_f_setfd" >&5 20942$as_echo "$db_cv_fcntl_f_setfd" >&6; } 20943if test "$db_cv_fcntl_f_setfd" = "yes"; then 20944 $as_echo "#define HAVE_FCNTL_F_SETFD 1" >>confdefs.h 20945 20946 20947fi 20948 20949# A/UX has a broken getopt(3). 20950case "$host_os" in 20951aux*) case " $LIBOBJS " in 20952 *" getopt.$ac_objext "* ) ;; 20953 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 20954 ;; 20955esac 20956;; 20957esac 20958 20959# Linux has a broken O_DIRECT flag, but you can't detect it at configure time. 20960# Linux and SGI require buffer alignment we may not match, otherwise writes 20961# will fail. Default to not using the O_DIRECT flag. 20962if test "$db_cv_o_direct" = "yes"; then 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open/O_DIRECT" >&5 20964$as_echo_n "checking for open/O_DIRECT... " >&6; } 20965if test "${db_cv_open_o_direct+set}" = set; then : 20966 $as_echo_n "(cached) " >&6 20967else 20968 20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20970/* end confdefs.h. */ 20971 20972 #include <sys/types.h> 20973 #include <fcntl.h> 20974int 20975main () 20976{ 20977 20978 open("a", O_RDONLY | O_DIRECT, 0); 20979 20980 ; 20981 return 0; 20982} 20983_ACEOF 20984if ac_fn_c_try_link "$LINENO"; then : 20985 db_cv_open_o_direct=yes 20986else 20987 db_cv_open_o_direct=no 20988fi 20989rm -f core conftest.err conftest.$ac_objext \ 20990 conftest$ac_exeext conftest.$ac_ext 20991fi 20992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_open_o_direct" >&5 20993$as_echo "$db_cv_open_o_direct" >&6; } 20994 if test \ 20995 "$db_cv_o_direct" = "yes" -a "$db_cv_open_o_direct" = "yes"; then 20996 $as_echo "#define HAVE_O_DIRECT 1" >>confdefs.h 20997 20998 20999 fi 21000fi 21001 21002# Check for largefile support. 21003# Check whether --enable-largefile was given. 21004if test "${enable_largefile+set}" = set; then : 21005 enableval=$enable_largefile; 21006fi 21007 21008if test "$enable_largefile" != no; then 21009 21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21011$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21012if test "${ac_cv_sys_largefile_CC+set}" = set; then : 21013 $as_echo_n "(cached) " >&6 21014else 21015 ac_cv_sys_largefile_CC=no 21016 if test "$GCC" != yes; then 21017 ac_save_CC=$CC 21018 while :; do 21019 # IRIX 6.2 and later do not support large files by default, 21020 # so use the C compiler's -n32 option if that helps. 21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21022/* end confdefs.h. */ 21023#include <sys/types.h> 21024 /* Check that off_t can represent 2**63 - 1 correctly. 21025 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21026 since some C++ compilers masquerading as C compilers 21027 incorrectly reject 9223372036854775807. */ 21028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21030 && LARGE_OFF_T % 2147483647 == 1) 21031 ? 1 : -1]; 21032int 21033main () 21034{ 21035 21036 ; 21037 return 0; 21038} 21039_ACEOF 21040 if ac_fn_c_try_compile "$LINENO"; then : 21041 break 21042fi 21043rm -f core conftest.err conftest.$ac_objext 21044 CC="$CC -n32" 21045 if ac_fn_c_try_compile "$LINENO"; then : 21046 ac_cv_sys_largefile_CC=' -n32'; break 21047fi 21048rm -f core conftest.err conftest.$ac_objext 21049 break 21050 done 21051 CC=$ac_save_CC 21052 rm -f conftest.$ac_ext 21053 fi 21054fi 21055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21056$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21057 if test "$ac_cv_sys_largefile_CC" != no; then 21058 CC=$CC$ac_cv_sys_largefile_CC 21059 fi 21060 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21062$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21063if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 21064 $as_echo_n "(cached) " >&6 21065else 21066 while :; do 21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21068/* end confdefs.h. */ 21069#include <sys/types.h> 21070 /* Check that off_t can represent 2**63 - 1 correctly. 21071 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21072 since some C++ compilers masquerading as C compilers 21073 incorrectly reject 9223372036854775807. */ 21074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21076 && LARGE_OFF_T % 2147483647 == 1) 21077 ? 1 : -1]; 21078int 21079main () 21080{ 21081 21082 ; 21083 return 0; 21084} 21085_ACEOF 21086if ac_fn_c_try_compile "$LINENO"; then : 21087 ac_cv_sys_file_offset_bits=no; break 21088fi 21089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21091/* end confdefs.h. */ 21092#define _FILE_OFFSET_BITS 64 21093#include <sys/types.h> 21094 /* Check that off_t can represent 2**63 - 1 correctly. 21095 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21096 since some C++ compilers masquerading as C compilers 21097 incorrectly reject 9223372036854775807. */ 21098#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21100 && LARGE_OFF_T % 2147483647 == 1) 21101 ? 1 : -1]; 21102int 21103main () 21104{ 21105 21106 ; 21107 return 0; 21108} 21109_ACEOF 21110if ac_fn_c_try_compile "$LINENO"; then : 21111 ac_cv_sys_file_offset_bits=64; break 21112fi 21113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21114 ac_cv_sys_file_offset_bits=unknown 21115 break 21116done 21117fi 21118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21119$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21120case $ac_cv_sys_file_offset_bits in #( 21121 no | unknown) ;; 21122 *) 21123cat >>confdefs.h <<_ACEOF 21124#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21125_ACEOF 21126;; 21127esac 21128rm -rf conftest* 21129 if test $ac_cv_sys_file_offset_bits = unknown; then 21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21131$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21132if test "${ac_cv_sys_large_files+set}" = set; then : 21133 $as_echo_n "(cached) " >&6 21134else 21135 while :; do 21136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21137/* end confdefs.h. */ 21138#include <sys/types.h> 21139 /* Check that off_t can represent 2**63 - 1 correctly. 21140 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21141 since some C++ compilers masquerading as C compilers 21142 incorrectly reject 9223372036854775807. */ 21143#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21145 && LARGE_OFF_T % 2147483647 == 1) 21146 ? 1 : -1]; 21147int 21148main () 21149{ 21150 21151 ; 21152 return 0; 21153} 21154_ACEOF 21155if ac_fn_c_try_compile "$LINENO"; then : 21156 ac_cv_sys_large_files=no; break 21157fi 21158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21160/* end confdefs.h. */ 21161#define _LARGE_FILES 1 21162#include <sys/types.h> 21163 /* Check that off_t can represent 2**63 - 1 correctly. 21164 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21165 since some C++ compilers masquerading as C compilers 21166 incorrectly reject 9223372036854775807. */ 21167#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21169 && LARGE_OFF_T % 2147483647 == 1) 21170 ? 1 : -1]; 21171int 21172main () 21173{ 21174 21175 ; 21176 return 0; 21177} 21178_ACEOF 21179if ac_fn_c_try_compile "$LINENO"; then : 21180 ac_cv_sys_large_files=1; break 21181fi 21182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21183 ac_cv_sys_large_files=unknown 21184 break 21185done 21186fi 21187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21188$as_echo "$ac_cv_sys_large_files" >&6; } 21189case $ac_cv_sys_large_files in #( 21190 no | unknown) ;; 21191 *) 21192cat >>confdefs.h <<_ACEOF 21193#define _LARGE_FILES $ac_cv_sys_large_files 21194_ACEOF 21195;; 21196esac 21197rm -rf conftest* 21198 fi 21199fi 21200 21201 21202# Figure out how to create shared regions. 21203# 21204# First, we look for mmap. 21205# 21206# BSD/OS has mlock(2), but it doesn't work until the 4.1 release. 21207# 21208# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol 21209# is defined in the C library) but does not support munmap(2). Don't 21210# try to use mmap if we can't find munmap. 21211# 21212# Ultrix has mmap(2), but it doesn't work. 21213mmap_ok=no 21214case "$host_os" in 21215bsdi3*|bsdi4.0) 21216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5 21217$as_echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;} 21218 mmap_ok=yes 21219 for ac_func in mmap munmap 21220do : 21221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21223eval as_val=\$$as_ac_var 21224 if test "x$as_val" = x""yes; then : 21225 cat >>confdefs.h <<_ACEOF 21226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21227_ACEOF 21228 21229else 21230 mmap_ok=no 21231fi 21232done 21233;; 21234ultrix*) 21235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5 21236$as_echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};; 21237*) 21238 mmap_ok=yes 21239 for ac_func in mlock munlock 21240do : 21241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21242ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21243eval as_val=\$$as_ac_var 21244 if test "x$as_val" = x""yes; then : 21245 cat >>confdefs.h <<_ACEOF 21246#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21247_ACEOF 21248 21249fi 21250done 21251 21252 for ac_func in mmap munmap 21253do : 21254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21256eval as_val=\$$as_ac_var 21257 if test "x$as_val" = x""yes; then : 21258 cat >>confdefs.h <<_ACEOF 21259#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21260_ACEOF 21261 21262else 21263 mmap_ok=no 21264fi 21265done 21266;; 21267esac 21268 21269# Second, we look for shmget. 21270# 21271# SunOS has the shmget(2) interfaces, but there appears to be a missing 21272# #include <debug/debug.h> file, so we ignore them. 21273shmget_ok=no 21274case "$host_os" in 21275sunos*) 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5 21277$as_echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};; 21278*) 21279 shmget_ok=yes 21280 for ac_func in shmget 21281do : 21282 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" 21283if test "x$ac_cv_func_shmget" = x""yes; then : 21284 cat >>confdefs.h <<_ACEOF 21285#define HAVE_SHMGET 1 21286_ACEOF 21287 21288else 21289 shmget_ok=no 21290fi 21291done 21292 21293 21294 # Check for shmctl to lock down shared memory segments. 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmctl" >&5 21296$as_echo_n "checking for shmctl... " >&6; } 21297if test "${db_cv_shmctl_shm_lock+set}" = set; then : 21298 $as_echo_n "(cached) " >&6 21299else 21300 21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21302/* end confdefs.h. */ 21303 21304#include <sys/types.h> 21305#include <sys/ipc.h> 21306#include <sys/shm.h> 21307#include <stdio.h> 21308int 21309main () 21310{ 21311 21312 shmctl(0, SHM_LOCK, NULL); 21313 21314 ; 21315 return 0; 21316} 21317_ACEOF 21318if ac_fn_c_try_link "$LINENO"; then : 21319 db_cv_shmctl_shm_lock=yes 21320else 21321 db_cv_shmctl_shm_lock=no 21322fi 21323rm -f core conftest.err conftest.$ac_objext \ 21324 conftest$ac_exeext conftest.$ac_ext 21325fi 21326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_shmctl_shm_lock" >&5 21327$as_echo "$db_cv_shmctl_shm_lock" >&6; } 21328 if test "$db_cv_shmctl_shm_lock" = "yes"; then 21329 $as_echo "#define HAVE_SHMCTL_SHM_LOCK 1" >>confdefs.h 21330 21331 21332 fi;; 21333esac 21334 21335# We require either mmap/munmap(2) or shmget(2). 21336if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then 21337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5 21338$as_echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;} 21339fi 21340 21341# Optional RPC client/server. 21342if test "$db_cv_rpc" = "yes"; then 21343 21344 $as_echo "#define HAVE_RPC 1" >>confdefs.h 21345 21346 21347 21348 # We use the target's rpcgen utility because it may be architecture 21349 # specific, for example, 32- or 64-bit specific. 21350 XDR_FILE=$srcdir/../rpc_server/db_server.x 21351 21352 # Prefer the -C option to rpcgen which generates ANSI C-conformant 21353 # code. 21354 RPCGEN="rpcgen -C" 21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"$RPCGEN\" build of db_server.h" >&5 21356$as_echo_n "checking \"$RPCGEN\" build of db_server.h... " >&6; } 21357 $RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null 21358 if test $? -ne 0; then 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21360$as_echo "no" >&6; } 21361 21362 # Try rpcgen without the -C option. 21363 RPCGEN="rpcgen" 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"$RPCGEN\" build of db_server.h" >&5 21365$as_echo_n "checking \"$RPCGEN\" build of db_server.h... " >&6; } 21366 $RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null 21367 if test $? -ne 0; then 21368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21369$as_echo "no" >&6; } 21370 as_fn_error "Unable to build RPC support: $RPCGEN failed." "$LINENO" 5 21371 fi 21372 fi 21373 21374 # Some rpcgen programs generate a set of client stubs called something 21375 # like __db_env_create_4003 and functions on the server to handle the 21376 # request called something like __db_env_create_4003_svc. Others 21377 # expect client and server stubs to both be called __db_env_create_4003. 21378 # 21379 # We have to generate code in whichever format rpcgen expects, and the 21380 # only reliable way to do that is to check what is in the db_server.h 21381 # file we just created. 21382 if grep "env_create_[0-9]*_svc" db_server.h >/dev/null 2>&1 ; then 21383 sed 's/__SVCSUFFIX__/_svc/' \ 21384 < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c 21385 else 21386 sed 's/__SVCSUFFIX__//' \ 21387 < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c 21388 fi 21389 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21391$as_echo "yes" >&6; } 21392 21393 $RPCGEN -l $XDR_FILE | 21394 sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \ 21395 -e '1,/^#include/s/^#include/#include "db_config.h"\ 21396&/' > db_server_clnt.c 21397 21398 $RPCGEN -s tcp $XDR_FILE | 21399 sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \ 21400 -e 's/^main *()/__dbsrv_main()/' \ 21401 -e 's/^main *(.*argc.*argv.*)/__dbsrv_main(int argc, char *argv)/' \ 21402 -e '/^db_rpc_serverprog/,/^}/{' \ 21403 -e 's/return;//' \ 21404 -e 's/^}/__dbsrv_timeout(0);}/' \ 21405 -e '}' \ 21406 -e '1,/^#include/s/^#include/#include "db_config.h"\ 21407&/' > db_server_svc.c 21408 21409 $RPCGEN -c $XDR_FILE | 21410 sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \ 21411 -e '1,/^#include/s/^#include/#include "db_config.h"\ 21412&/' > db_server_xdr.c 21413 21414 RPC_SERVER_H=db_server.h 21415 RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)" 21416 ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS" 21417 21418 # Solaris and HPUX need the nsl library to build RPC. 21419 ac_fn_c_check_func "$LINENO" "svc_run" "ac_cv_func_svc_run" 21420if test "x$ac_cv_func_svc_run" = x""yes; then : 21421 21422else 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 21424$as_echo_n "checking for main in -lnsl... " >&6; } 21425if test "${ac_cv_lib_nsl_main+set}" = set; then : 21426 $as_echo_n "(cached) " >&6 21427else 21428 ac_check_lib_save_LIBS=$LIBS 21429LIBS="-lnsl $LIBS" 21430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21431/* end confdefs.h. */ 21432 21433 21434int 21435main () 21436{ 21437return main (); 21438 ; 21439 return 0; 21440} 21441_ACEOF 21442if ac_fn_c_try_link "$LINENO"; then : 21443 ac_cv_lib_nsl_main=yes 21444else 21445 ac_cv_lib_nsl_main=no 21446fi 21447rm -f core conftest.err conftest.$ac_objext \ 21448 conftest$ac_exeext conftest.$ac_ext 21449LIBS=$ac_check_lib_save_LIBS 21450fi 21451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 21452$as_echo "$ac_cv_lib_nsl_main" >&6; } 21453if test "x$ac_cv_lib_nsl_main" = x""yes; then : 21454 LIBSO_LIBS="$LIBSO_LIBS -lnsl" 21455fi 21456ac_cv_lib_nsl=ac_cv_lib_nsl_main 21457 21458fi 21459 21460 21461fi 21462 21463# Optional Tcl support. 21464if test "$db_cv_tcl" = "yes"; then 21465 21466 if test "$enable_shared" != "yes"; then 21467 as_fn_error "Tcl requires shared libraries" "$LINENO" 5 21468 fi 21469 21470 21471 if test "${ac_cv_c_tclconfig+set}" = set; then : 21472 $as_echo_n "(cached) " >&6 21473else 21474 21475 21476 # First check to see if --with-tclconfig was specified. 21477 if test "${with_tclconfig}" != no; then 21478 if test -f "${with_tclconfig}/tclConfig.sh" ; then 21479 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 21480 else 21481 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 21482 fi 21483 fi 21484 21485 # check in a few common install locations 21486 if test x"${ac_cv_c_tclconfig}" = x ; then 21487 for i in `ls -d /usr/local/lib 2>/dev/null` ; do 21488 if test -f "$i/tclConfig.sh" ; then 21489 ac_cv_c_tclconfig=`(cd $i; pwd)` 21490 break 21491 fi 21492 done 21493 fi 21494 21495 21496fi 21497 21498 21499 if test x"${ac_cv_c_tclconfig}" = x ; then 21500 TCL_BIN_DIR="# no Tcl configs found" 21501 as_fn_error "can't find Tcl configuration definitions" "$LINENO" 5 21502 else 21503 TCL_BIN_DIR=${ac_cv_c_tclconfig} 21504 fi 21505 21506 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 21508$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 21509 21510 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 21512$as_echo "loading" >&6; } 21513 . $TCL_BIN_DIR/tclConfig.sh 21514 else 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 21516$as_echo "file not found" >&6; } 21517 fi 21518 21519 # DB requires at least version 8.4. 21520 if test ${TCL_MAJOR_VERSION} -lt 8 \ 21521 -o ${TCL_MAJOR_VERSION} -eq 8 -a ${TCL_MINOR_VERSION} -lt 4; then 21522 as_fn_error "Berkeley DB requires Tcl version 8.4 or better." "$LINENO" 5 21523 fi 21524 21525 # The eval is required to do substitution (for example, the TCL_DBGX 21526 # substitution in the TCL_LIB_FILE variable. 21527 eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\"" 21528 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 21529 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 21530 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 21531 21532 # 21533 # If the DB Tcl library isn't loaded with the Tcl spec and library 21534 # flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at 21535 # load time. [#4843] Furthermore, with Tcl 8.3, the link flags 21536 # given by the Tcl spec are insufficient for our use. [#5779],[#17109] 21537 # 21538 case "$host_os" in 21539 aix*) 21540 LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG" 21541 LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";; 21542 esac 21543 21544 21545 21546 21547 21548 21549 TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}" 21550 21551 21552 INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)" 21553 21554fi 21555 21556# Optional sequence code. 21557 21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integral type support for sequences" >&5 21559$as_echo_n "checking for 64-bit integral type support for sequences... " >&6; } 21560 21561 db_cv_build_sequence="yes" 21562 21563 # Have to have found 64-bit types to support sequences. If we don't 21564 # find the native types, we try and create our own. 21565 if test "$ac_cv_type_int64_t" = "no" -a -z "$int64_decl"; then 21566 db_cv_build_sequence="no" 21567 fi 21568 if test "$ac_cv_type_uint64_t" = "no" -a -z "$u_int64_decl"; then 21569 db_cv_build_sequence="no" 21570 fi 21571 21572 # Figure out what type is the right size, and set the format. 21573 21574 21575 db_cv_seq_type="no" 21576 if test "$db_cv_build_sequence" = "yes" -a\ 21577 "$ac_cv_sizeof_long" -eq "8"; then 21578 db_cv_seq_type="long" 21579 db_cv_seq_fmt='"%ld"' 21580 db_cv_seq_ufmt='"%lu"' 21581 INT64_FMT='#define INT64_FMT "%ld"' 21582 UINT64_FMT='#define UINT64_FMT "%lu"' 21583 else if test "$db_cv_build_sequence" = "yes" -a\ 21584 "$ac_cv_sizeof_long_long" -eq "8"; then 21585 db_cv_seq_type="long long" 21586 db_cv_seq_fmt='"%lld"' 21587 db_cv_seq_ufmt='"%llu"' 21588 INT64_FMT='#define INT64_FMT "%lld"' 21589 UINT64_FMT='#define UINT64_FMT "%llu"' 21590 else 21591 db_cv_build_sequence="no" 21592 fi 21593 fi 21594 21595 # Test to see if we can declare variables of the appropriate size 21596 # and format them. If we're cross-compiling, all we get is a link 21597 # test, which won't test for the appropriate printf format strings. 21598 if test "$db_cv_build_sequence" = "yes"; then 21599 if test "$cross_compiling" = yes; then : 21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21601/* end confdefs.h. */ 21602 21603int 21604main () 21605{ 21606 21607 $db_cv_seq_type l; 21608 unsigned $db_cv_seq_type u; 21609 char buf[100]; 21610 21611 buf[0] = 'a'; 21612 l = 9223372036854775807LL; 21613 (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l); 21614 if (strcmp(buf, "9223372036854775807")) 21615 return (1); 21616 u = 18446744073709551615ULL; 21617 (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u); 21618 if (strcmp(buf, "18446744073709551615")) 21619 return (1); 21620 return (0); 21621 21622 ; 21623 return 0; 21624} 21625_ACEOF 21626if ac_fn_c_try_link "$LINENO"; then : 21627 21628else 21629 db_cv_build_sequence="no" 21630fi 21631rm -f core conftest.err conftest.$ac_objext \ 21632 conftest$ac_exeext conftest.$ac_ext 21633else 21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21635/* end confdefs.h. */ 21636 21637 main() { 21638 $db_cv_seq_type l; 21639 unsigned $db_cv_seq_type u; 21640 char buf[100]; 21641 21642 buf[0] = 'a'; 21643 l = 9223372036854775807LL; 21644 (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l); 21645 if (strcmp(buf, "9223372036854775807")) 21646 return (1); 21647 u = 18446744073709551615ULL; 21648 (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u); 21649 if (strcmp(buf, "18446744073709551615")) 21650 return (1); 21651 return (0); 21652 } 21653_ACEOF 21654if ac_fn_c_try_run "$LINENO"; then : 21655 21656else 21657 db_cv_build_sequence="no" 21658fi 21659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21660 conftest.$ac_objext conftest.beam conftest.$ac_ext 21661fi 21662 21663 fi 21664 if test "$db_cv_build_sequence" = "yes"; then 21665 21666 db_seq_decl="typedef int64_t db_seq_t;"; 21667 21668 $as_echo "#define HAVE_64BIT_TYPES 1" >>confdefs.h 21669 21670 21671 else 21672 # It still has to compile, but it won't run. 21673 db_seq_decl="typedef int db_seq_t;"; 21674 fi 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_build_sequence" >&5 21676$as_echo "$db_cv_build_sequence" >&6; } 21677 21678 21679# Optional DB 1.85 compatibility API. 21680if test "$db_cv_compat185" = "yes"; then 21681 ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS" 21682 21683 ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS" 21684fi 21685 21686# Optional utilities. 21687if test "$db_cv_dump185" = "yes"; then 21688 ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS" 21689fi 21690 21691# You can disable pieces of functionality to save space. 21692# 21693# Btree is always configured: it is the standard method, and Hash off-page 21694# duplicates require it. 21695ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_OBJS)" 21696 21697# Compression can be disabled. 21698if test "$db_cv_build_compression" = "yes"; then 21699 $as_echo "#define HAVE_COMPRESSION 1" >>confdefs.h 21700 21701 21702fi 21703 21704# Partitioning can be disabled. 21705if test "$db_cv_build_partition" = "yes"; then 21706 $as_echo "#define HAVE_PARTITION 1" >>confdefs.h 21707 21708 21709fi 21710 21711# Hash can be disabled. 21712if test "$db_cv_build_hash" = "yes"; then 21713 $as_echo "#define HAVE_HASH 1" >>confdefs.h 21714 21715 21716 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_OBJS)" 21717 if test "$db_cv_build_verify" = "yes"; then 21718 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_VRFY_OBJS)" 21719 fi 21720else 21721 ADDITIONAL_OBJS="$ADDITIONAL_OBJS hash_stub${o}" 21722fi 21723 21724# Queue can be disabled. 21725if test "$db_cv_build_queue" = "yes"; then 21726 $as_echo "#define HAVE_QUEUE 1" >>confdefs.h 21727 21728 21729 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_OBJS)" 21730 if test "$db_cv_build_verify" = "yes"; then 21731 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_VRFY_OBJS)" 21732 fi 21733else 21734 ADDITIONAL_OBJS="$ADDITIONAL_OBJS qam_stub${o}" 21735fi 21736 21737# Replication can be disabled. 21738if test "$db_cv_build_replication" = "yes"; then 21739 $as_echo "#define HAVE_REPLICATION 1" >>confdefs.h 21740 21741 21742 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REP_OBJS)" 21743 21744 # If we're building replication and detected POSIX threads, build the 21745 # replication manager. 21746 21747 21748 if test "$ac_cv_header_pthread_h" = yes; then 21749 $as_echo "#define HAVE_REPLICATION_THREADS 1" >>confdefs.h 21750 21751 21752 # Solaris requires the socket and nsl libraries to build the 21753 # replication manager. Don't add nsl regardless of the OS, 21754 # it causes RPC to fail on AIX 4.3.3. 21755 case "$host_os" in 21756 solaris*) 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 21758$as_echo_n "checking for main in -lnsl... " >&6; } 21759if test "${ac_cv_lib_nsl_main+set}" = set; then : 21760 $as_echo_n "(cached) " >&6 21761else 21762 ac_check_lib_save_LIBS=$LIBS 21763LIBS="-lnsl $LIBS" 21764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21765/* end confdefs.h. */ 21766 21767 21768int 21769main () 21770{ 21771return main (); 21772 ; 21773 return 0; 21774} 21775_ACEOF 21776if ac_fn_c_try_link "$LINENO"; then : 21777 ac_cv_lib_nsl_main=yes 21778else 21779 ac_cv_lib_nsl_main=no 21780fi 21781rm -f core conftest.err conftest.$ac_objext \ 21782 conftest$ac_exeext conftest.$ac_ext 21783LIBS=$ac_check_lib_save_LIBS 21784fi 21785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 21786$as_echo "$ac_cv_lib_nsl_main" >&6; } 21787if test "x$ac_cv_lib_nsl_main" = x""yes; then : 21788 LIBSO_LIBS="$LIBSO_LIBS -lnsl" 21789fi 21790ac_cv_lib_nsl=ac_cv_lib_nsl_main 21791 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 21793$as_echo_n "checking for main in -lsocket... " >&6; } 21794if test "${ac_cv_lib_socket_main+set}" = set; then : 21795 $as_echo_n "(cached) " >&6 21796else 21797 ac_check_lib_save_LIBS=$LIBS 21798LIBS="-lsocket $LIBS" 21799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21800/* end confdefs.h. */ 21801 21802 21803int 21804main () 21805{ 21806return main (); 21807 ; 21808 return 0; 21809} 21810_ACEOF 21811if ac_fn_c_try_link "$LINENO"; then : 21812 ac_cv_lib_socket_main=yes 21813else 21814 ac_cv_lib_socket_main=no 21815fi 21816rm -f core conftest.err conftest.$ac_objext \ 21817 conftest$ac_exeext conftest.$ac_ext 21818LIBS=$ac_check_lib_save_LIBS 21819fi 21820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 21821$as_echo "$ac_cv_lib_socket_main" >&6; } 21822if test "x$ac_cv_lib_socket_main" = x""yes; then : 21823 LIBSO_LIBS="$LIBSO_LIBS -lsocket" 21824fi 21825ac_cv_lib_socket=ac_cv_lib_socket_main 21826;; 21827 esac 21828 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REPMGR_OBJS)" 21829 else 21830 ADDITIONAL_OBJS="$ADDITIONAL_OBJS repmgr_stub${o}" 21831 fi 21832else 21833 ADDITIONAL_OBJS="$ADDITIONAL_OBJS rep_stub${o} repmgr_stub${o}" 21834fi 21835 21836# The statistics code can be disabled. 21837if test "$db_cv_build_statistics" = "yes"; then 21838 $as_echo "#define HAVE_STATISTICS 1" >>confdefs.h 21839 21840 21841fi 21842 21843# The verification code can be disabled. 21844if test "$db_cv_build_verify" = "yes"; then 21845 $as_echo "#define HAVE_VERIFY 1" >>confdefs.h 21846 21847 21848 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_VRFY_OBJS)" 21849else 21850 ADDITIONAL_OBJS="$ADDITIONAL_OBJS db_vrfy_stub${o}" 21851fi 21852 21853# The crypto code can be disabled. 21854if test -d "$srcdir/../crypto" -a "$db_cv_build_cryptography" = "yes"; then 21855 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h 21856 21857 21858 21859 CRYPTO_OBJS="\$(CRYPTO_OBJS)" 21860else 21861 CRYPTO_OBJS="crypto_stub${o}" 21862fi 21863 21864# The mutex code can be disabled, and if there aren't any mutexes, then there's 21865# no reason to include the locking code. 21866if test "$db_cv_build_mutexsupport" = "yes"; then 21867 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(LOCK_OBJS) \$(MUTEX_OBJS)" 21868else 21869 ADDITIONAL_OBJS="$ADDITIONAL_OBJS lock_stub${o} mut_stub${o}" 21870fi 21871 21872# If DIAGNOSTIC is defined, include the log print routines in the library 21873# itself, various diagnostic modes use them. 21874if test "$db_cv_diagnostic" = "yes"; then 21875 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(PRINT_OBJS)" 21876fi 21877 21878# If building for QNX, we need additional OS files. 21879if test "$qnx_build" = "yes"; then 21880 ADDITIONAL_OBJS="$ADDITIONAL_OBJS os_qnx_fsync${o} os_qnx_open${o}" 21881fi 21882 21883# We need to add the additional object files into the Makefile with the correct 21884# suffix. We can't use $LTLIBOBJS itself, because that variable has $U encoded 21885# in it for automake, and that's not what we want. See SR #7227 for additional 21886# information. 21887# 21888# XXX: I'm not sure this is correct. 21889REPLACEMENT_OBJS=`echo "$LIBOBJS" | 21890 sed "s,\.[^.]* ,$o ,g;s,\.[^.]*$,$o,"` 21891 21892# This is necessary so that .o files in LIBOBJS are also built via 21893# the ANSI2KNR-filtering rules. 21894LIBOBJS=`echo "$LIBOBJS" | 21895 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'` 21896LTLIBOBJS=`echo "$LIBOBJS" | 21897 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 21898 21899 21900# Initial output file list. 21901CREATE_LIST="Makefile 21902 db_cxx.h:$srcdir/../dbinc/db_cxx.in 21903 db_int.h:$srcdir/../dbinc/db_int.in 21904 clib_port.h:$srcdir/../dist/clib_port.in 21905 include.tcl:$srcdir/../test/include.tcl" 21906 21907# Create the db.h file from a source file, a list of global function 21908# prototypes, and, if configured for unique names, a list of #defines 21909# to do DB_VERSION_UNIQUE_NAME substitution. 21910if test "$db_cv_uniquename" = "yes"; then 21911 CREATE_LIST="$CREATE_LIST 21912 db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/api_flags.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in" 21913else 21914 CREATE_LIST="$CREATE_LIST 21915 db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/api_flags.in:$srcdir/../dbinc_auto/ext_prot.in" 21916fi 21917 21918# If configured for unique names, create the db_int_uext.h file (which 21919# does the DB_VERSION_UNIQUE_NAME substitution), which is included by 21920# the db_int.h file. 21921if test "$db_cv_uniquename" = "yes"; then 21922 CREATE_LIST="$CREATE_LIST 21923 db_int_def.h:$srcdir/../dbinc_auto/int_def.in" 21924 db_int_def='#include "db_int_def.h"' 21925fi 21926 21927# Create the db_185.h and db185_int.h files from source files, a list of 21928# global function prototypes, and, if configured for unique names, a list 21929# of #defines to do DB_VERSION_UNIQUE_NAME substitution. 21930if test "$db_cv_compat185" = "yes"; then 21931 if test "$db_cv_uniquename" = "yes"; then 21932 CREATE_LIST="$CREATE_LIST 21933 db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in 21934 db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in" 21935 else 21936 CREATE_LIST="$CREATE_LIST 21937 db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in 21938 db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in" 21939 fi 21940fi 21941 21942if test "$db_cv_stl" = "yes"; then 21943 CREATE_LIST="$CREATE_LIST 21944 dbstl_common.h:$srcdir/../stl/dbstl_common.in" 21945fi 21946 21947ac_config_files="$ac_config_files $CREATE_LIST" 21948 21949cat >confcache <<\_ACEOF 21950# This file is a shell script that caches the results of configure 21951# tests run on this system so they can be shared between configure 21952# scripts and configure runs, see configure's option --config-cache. 21953# It is not useful on other systems. If it contains results you don't 21954# want to keep, you may remove or edit it. 21955# 21956# config.status only pays attention to the cache file if you give it 21957# the --recheck option to rerun configure. 21958# 21959# `ac_cv_env_foo' variables (set or unset) will be overridden when 21960# loading this file, other *unset* `ac_cv_foo' will be assigned the 21961# following values. 21962 21963_ACEOF 21964 21965# The following way of writing the cache mishandles newlines in values, 21966# but we know of no workaround that is simple, portable, and efficient. 21967# So, we kill variables containing newlines. 21968# Ultrix sh set writes to stderr and can't be redirected directly, 21969# and sets the high bit in the cache file unless we assign to the vars. 21970( 21971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21972 eval ac_val=\$$ac_var 21973 case $ac_val in #( 21974 *${as_nl}*) 21975 case $ac_var in #( 21976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21978 esac 21979 case $ac_var in #( 21980 _ | IFS | as_nl) ;; #( 21981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21982 *) { eval $ac_var=; unset $ac_var;} ;; 21983 esac ;; 21984 esac 21985 done 21986 21987 (set) 2>&1 | 21988 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21989 *${as_nl}ac_space=\ *) 21990 # `set' does not quote correctly, so add quotes: double-quote 21991 # substitution turns \\\\ into \\, and sed turns \\ into \. 21992 sed -n \ 21993 "s/'/'\\\\''/g; 21994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21995 ;; #( 21996 *) 21997 # `set' quotes correctly as required by POSIX, so do not add quotes. 21998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21999 ;; 22000 esac | 22001 sort 22002) | 22003 sed ' 22004 /^ac_cv_env_/b end 22005 t clear 22006 :clear 22007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22008 t end 22009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22010 :end' >>confcache 22011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22012 if test -w "$cache_file"; then 22013 test "x$cache_file" != "x/dev/null" && 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22015$as_echo "$as_me: updating cache $cache_file" >&6;} 22016 cat confcache >$cache_file 22017 else 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22020 fi 22021fi 22022rm -f confcache 22023 22024test "x$prefix" = xNONE && prefix=$ac_default_prefix 22025# Let make expand exec_prefix. 22026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22027 22028DEFS=-DHAVE_CONFIG_H 22029 22030ac_libobjs= 22031ac_ltlibobjs= 22032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22033 # 1. Remove the extension, and $U if already installed. 22034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22037 # will be set to the directory where LIBOBJS objects are built. 22038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22040done 22041LIBOBJS=$ac_libobjs 22042 22043LTLIBOBJS=$ac_ltlibobjs 22044 22045 22046 22047: ${CONFIG_STATUS=./config.status} 22048ac_write_fail=0 22049ac_clean_files_save=$ac_clean_files 22050ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22051{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22052$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22053as_write_fail=0 22054cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22055#! $SHELL 22056# Generated by $as_me. 22057# Run this file to recreate the current configuration. 22058# Compiler output produced by configure, useful for debugging 22059# configure, is in config.log if it exists. 22060 22061debug=false 22062ac_cs_recheck=false 22063ac_cs_silent=false 22064 22065SHELL=\${CONFIG_SHELL-$SHELL} 22066export SHELL 22067_ASEOF 22068cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22069## -------------------- ## 22070## M4sh Initialization. ## 22071## -------------------- ## 22072 22073# Be more Bourne compatible 22074DUALCASE=1; export DUALCASE # for MKS sh 22075if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22076 emulate sh 22077 NULLCMD=: 22078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22079 # is contrary to our usage. Disable this feature. 22080 alias -g '${1+"$@"}'='"$@"' 22081 setopt NO_GLOB_SUBST 22082else 22083 case `(set -o) 2>/dev/null` in #( 22084 *posix*) : 22085 set -o posix ;; #( 22086 *) : 22087 ;; 22088esac 22089fi 22090 22091 22092as_nl=' 22093' 22094export as_nl 22095# Printing a long string crashes Solaris 7 /usr/bin/printf. 22096as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22097as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22099# Prefer a ksh shell builtin over an external printf program on Solaris, 22100# but without wasting forks for bash or zsh. 22101if test -z "$BASH_VERSION$ZSH_VERSION" \ 22102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22103 as_echo='print -r --' 22104 as_echo_n='print -rn --' 22105elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22106 as_echo='printf %s\n' 22107 as_echo_n='printf %s' 22108else 22109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22111 as_echo_n='/usr/ucb/echo -n' 22112 else 22113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22114 as_echo_n_body='eval 22115 arg=$1; 22116 case $arg in #( 22117 *"$as_nl"*) 22118 expr "X$arg" : "X\\(.*\\)$as_nl"; 22119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22120 esac; 22121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22122 ' 22123 export as_echo_n_body 22124 as_echo_n='sh -c $as_echo_n_body as_echo' 22125 fi 22126 export as_echo_body 22127 as_echo='sh -c $as_echo_body as_echo' 22128fi 22129 22130# The user is always right. 22131if test "${PATH_SEPARATOR+set}" != set; then 22132 PATH_SEPARATOR=: 22133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22135 PATH_SEPARATOR=';' 22136 } 22137fi 22138 22139 22140# IFS 22141# We need space, tab and new line, in precisely that order. Quoting is 22142# there to prevent editors from complaining about space-tab. 22143# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22144# splitting by setting IFS to empty value.) 22145IFS=" "" $as_nl" 22146 22147# Find who we are. Look in the path if we contain no directory separator. 22148case $0 in #(( 22149 *[\\/]* ) as_myself=$0 ;; 22150 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22151for as_dir in $PATH 22152do 22153 IFS=$as_save_IFS 22154 test -z "$as_dir" && as_dir=. 22155 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22156 done 22157IFS=$as_save_IFS 22158 22159 ;; 22160esac 22161# We did not find ourselves, most probably we were run as `sh COMMAND' 22162# in which case we are not to be found in the path. 22163if test "x$as_myself" = x; then 22164 as_myself=$0 22165fi 22166if test ! -f "$as_myself"; then 22167 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22168 exit 1 22169fi 22170 22171# Unset variables that we do not need and which cause bugs (e.g. in 22172# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22173# suppresses any "Segmentation fault" message there. '((' could 22174# trigger a bug in pdksh 5.2.14. 22175for as_var in BASH_ENV ENV MAIL MAILPATH 22176do eval test x\${$as_var+set} = xset \ 22177 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22178done 22179PS1='$ ' 22180PS2='> ' 22181PS4='+ ' 22182 22183# NLS nuisances. 22184LC_ALL=C 22185export LC_ALL 22186LANGUAGE=C 22187export LANGUAGE 22188 22189# CDPATH. 22190(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22191 22192 22193# as_fn_error ERROR [LINENO LOG_FD] 22194# --------------------------------- 22195# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22196# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22197# script with status $?, using 1 if that was 0. 22198as_fn_error () 22199{ 22200 as_status=$?; test $as_status -eq 0 && as_status=1 22201 if test "$3"; then 22202 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22203 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 22204 fi 22205 $as_echo "$as_me: error: $1" >&2 22206 as_fn_exit $as_status 22207} # as_fn_error 22208 22209 22210# as_fn_set_status STATUS 22211# ----------------------- 22212# Set $? to STATUS, without forking. 22213as_fn_set_status () 22214{ 22215 return $1 22216} # as_fn_set_status 22217 22218# as_fn_exit STATUS 22219# ----------------- 22220# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22221as_fn_exit () 22222{ 22223 set +e 22224 as_fn_set_status $1 22225 exit $1 22226} # as_fn_exit 22227 22228# as_fn_unset VAR 22229# --------------- 22230# Portably unset VAR. 22231as_fn_unset () 22232{ 22233 { eval $1=; unset $1;} 22234} 22235as_unset=as_fn_unset 22236# as_fn_append VAR VALUE 22237# ---------------------- 22238# Append the text in VALUE to the end of the definition contained in VAR. Take 22239# advantage of any shell optimizations that allow amortized linear growth over 22240# repeated appends, instead of the typical quadratic growth present in naive 22241# implementations. 22242if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22243 eval 'as_fn_append () 22244 { 22245 eval $1+=\$2 22246 }' 22247else 22248 as_fn_append () 22249 { 22250 eval $1=\$$1\$2 22251 } 22252fi # as_fn_append 22253 22254# as_fn_arith ARG... 22255# ------------------ 22256# Perform arithmetic evaluation on the ARGs, and store the result in the 22257# global $as_val. Take advantage of shells that can avoid forks. The arguments 22258# must be portable across $(()) and expr. 22259if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22260 eval 'as_fn_arith () 22261 { 22262 as_val=$(( $* )) 22263 }' 22264else 22265 as_fn_arith () 22266 { 22267 as_val=`expr "$@" || test $? -eq 1` 22268 } 22269fi # as_fn_arith 22270 22271 22272if expr a : '\(a\)' >/dev/null 2>&1 && 22273 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22274 as_expr=expr 22275else 22276 as_expr=false 22277fi 22278 22279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22280 as_basename=basename 22281else 22282 as_basename=false 22283fi 22284 22285if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22286 as_dirname=dirname 22287else 22288 as_dirname=false 22289fi 22290 22291as_me=`$as_basename -- "$0" || 22292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22293 X"$0" : 'X\(//\)$' \| \ 22294 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22295$as_echo X/"$0" | 22296 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22297 s//\1/ 22298 q 22299 } 22300 /^X\/\(\/\/\)$/{ 22301 s//\1/ 22302 q 22303 } 22304 /^X\/\(\/\).*/{ 22305 s//\1/ 22306 q 22307 } 22308 s/.*/./; q'` 22309 22310# Avoid depending upon Character Ranges. 22311as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22313as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22314as_cr_digits='0123456789' 22315as_cr_alnum=$as_cr_Letters$as_cr_digits 22316 22317ECHO_C= ECHO_N= ECHO_T= 22318case `echo -n x` in #((((( 22319-n*) 22320 case `echo 'xy\c'` in 22321 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22322 xy) ECHO_C='\c';; 22323 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22324 ECHO_T=' ';; 22325 esac;; 22326*) 22327 ECHO_N='-n';; 22328esac 22329 22330rm -f conf$$ conf$$.exe conf$$.file 22331if test -d conf$$.dir; then 22332 rm -f conf$$.dir/conf$$.file 22333else 22334 rm -f conf$$.dir 22335 mkdir conf$$.dir 2>/dev/null 22336fi 22337if (echo >conf$$.file) 2>/dev/null; then 22338 if ln -s conf$$.file conf$$ 2>/dev/null; then 22339 as_ln_s='ln -s' 22340 # ... but there are two gotchas: 22341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22343 # In both cases, we have to default to `cp -p'. 22344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22345 as_ln_s='cp -p' 22346 elif ln conf$$.file conf$$ 2>/dev/null; then 22347 as_ln_s=ln 22348 else 22349 as_ln_s='cp -p' 22350 fi 22351else 22352 as_ln_s='cp -p' 22353fi 22354rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22355rmdir conf$$.dir 2>/dev/null 22356 22357 22358# as_fn_mkdir_p 22359# ------------- 22360# Create "$as_dir" as a directory, including parents if necessary. 22361as_fn_mkdir_p () 22362{ 22363 22364 case $as_dir in #( 22365 -*) as_dir=./$as_dir;; 22366 esac 22367 test -d "$as_dir" || eval $as_mkdir_p || { 22368 as_dirs= 22369 while :; do 22370 case $as_dir in #( 22371 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22372 *) as_qdir=$as_dir;; 22373 esac 22374 as_dirs="'$as_qdir' $as_dirs" 22375 as_dir=`$as_dirname -- "$as_dir" || 22376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22377 X"$as_dir" : 'X\(//\)[^/]' \| \ 22378 X"$as_dir" : 'X\(//\)$' \| \ 22379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22380$as_echo X"$as_dir" | 22381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22382 s//\1/ 22383 q 22384 } 22385 /^X\(\/\/\)[^/].*/{ 22386 s//\1/ 22387 q 22388 } 22389 /^X\(\/\/\)$/{ 22390 s//\1/ 22391 q 22392 } 22393 /^X\(\/\).*/{ 22394 s//\1/ 22395 q 22396 } 22397 s/.*/./; q'` 22398 test -d "$as_dir" && break 22399 done 22400 test -z "$as_dirs" || eval "mkdir $as_dirs" 22401 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 22402 22403 22404} # as_fn_mkdir_p 22405if mkdir -p . 2>/dev/null; then 22406 as_mkdir_p='mkdir -p "$as_dir"' 22407else 22408 test -d ./-p && rmdir ./-p 22409 as_mkdir_p=false 22410fi 22411 22412if test -x / >/dev/null 2>&1; then 22413 as_test_x='test -x' 22414else 22415 if ls -dL / >/dev/null 2>&1; then 22416 as_ls_L_option=L 22417 else 22418 as_ls_L_option= 22419 fi 22420 as_test_x=' 22421 eval sh -c '\'' 22422 if test -d "$1"; then 22423 test -d "$1/."; 22424 else 22425 case $1 in #( 22426 -*)set "./$1";; 22427 esac; 22428 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 22429 ???[sx]*):;;*)false;;esac;fi 22430 '\'' sh 22431 ' 22432fi 22433as_executable_p=$as_test_x 22434 22435# Sed expression to map a string onto a valid CPP name. 22436as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22437 22438# Sed expression to map a string onto a valid variable name. 22439as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22440 22441 22442exec 6>&1 22443## ----------------------------------- ## 22444## Main body of $CONFIG_STATUS script. ## 22445## ----------------------------------- ## 22446_ASEOF 22447test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22448 22449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22450# Save the log message, to keep $0 and so on meaningful, and to 22451# report actual input values of CONFIG_FILES etc. instead of their 22452# values after options handling. 22453ac_log=" 22454This file was extended by Berkeley DB $as_me 4.8.30, which was 22455generated by GNU Autoconf 2.65. Invocation command line was 22456 22457 CONFIG_FILES = $CONFIG_FILES 22458 CONFIG_HEADERS = $CONFIG_HEADERS 22459 CONFIG_LINKS = $CONFIG_LINKS 22460 CONFIG_COMMANDS = $CONFIG_COMMANDS 22461 $ $0 $@ 22462 22463on `(hostname || uname -n) 2>/dev/null | sed 1q` 22464" 22465 22466_ACEOF 22467 22468case $ac_config_files in *" 22469"*) set x $ac_config_files; shift; ac_config_files=$*;; 22470esac 22471 22472case $ac_config_headers in *" 22473"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22474esac 22475 22476 22477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22478# Files that config.status was made for. 22479config_files="$ac_config_files" 22480config_headers="$ac_config_headers" 22481config_commands="$ac_config_commands" 22482 22483_ACEOF 22484 22485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22486ac_cs_usage="\ 22487\`$as_me' instantiates files and other configuration actions 22488from templates according to the current configuration. Unless the files 22489and actions are specified as TAGs, all are instantiated by default. 22490 22491Usage: $0 [OPTION]... [TAG]... 22492 22493 -h, --help print this help, then exit 22494 -V, --version print version number and configuration settings, then exit 22495 --config print configuration, then exit 22496 -q, --quiet, --silent 22497 do not print progress messages 22498 -d, --debug don't remove temporary files 22499 --recheck update $as_me by reconfiguring in the same conditions 22500 --file=FILE[:TEMPLATE] 22501 instantiate the configuration file FILE 22502 --header=FILE[:TEMPLATE] 22503 instantiate the configuration header FILE 22504 22505Configuration files: 22506$config_files 22507 22508Configuration headers: 22509$config_headers 22510 22511Configuration commands: 22512$config_commands 22513 22514Report bugs to <Oracle Technology Network Berkeley DB forum>." 22515 22516_ACEOF 22517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22518ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22519ac_cs_version="\\ 22520Berkeley DB config.status 4.8.30 22521configured by $0, generated by GNU Autoconf 2.65, 22522 with options \\"\$ac_cs_config\\" 22523 22524Copyright (C) 2009 Free Software Foundation, Inc. 22525This config.status script is free software; the Free Software Foundation 22526gives unlimited permission to copy, distribute and modify it." 22527 22528ac_pwd='$ac_pwd' 22529srcdir='$srcdir' 22530INSTALL='$INSTALL' 22531test -n "\$AWK" || AWK=awk 22532_ACEOF 22533 22534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22535# The default lists apply if the user does not specify any file. 22536ac_need_defaults=: 22537while test $# != 0 22538do 22539 case $1 in 22540 --*=*) 22541 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22543 ac_shift=: 22544 ;; 22545 *) 22546 ac_option=$1 22547 ac_optarg=$2 22548 ac_shift=shift 22549 ;; 22550 esac 22551 22552 case $ac_option in 22553 # Handling of the options. 22554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22555 ac_cs_recheck=: ;; 22556 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22557 $as_echo "$ac_cs_version"; exit ;; 22558 --config | --confi | --conf | --con | --co | --c ) 22559 $as_echo "$ac_cs_config"; exit ;; 22560 --debug | --debu | --deb | --de | --d | -d ) 22561 debug=: ;; 22562 --file | --fil | --fi | --f ) 22563 $ac_shift 22564 case $ac_optarg in 22565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22566 esac 22567 as_fn_append CONFIG_FILES " '$ac_optarg'" 22568 ac_need_defaults=false;; 22569 --header | --heade | --head | --hea ) 22570 $ac_shift 22571 case $ac_optarg in 22572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22573 esac 22574 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22575 ac_need_defaults=false;; 22576 --he | --h) 22577 # Conflict between --help and --header 22578 as_fn_error "ambiguous option: \`$1' 22579Try \`$0 --help' for more information.";; 22580 --help | --hel | -h ) 22581 $as_echo "$ac_cs_usage"; exit ;; 22582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22583 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22584 ac_cs_silent=: ;; 22585 22586 # This is an error. 22587 -*) as_fn_error "unrecognized option: \`$1' 22588Try \`$0 --help' for more information." ;; 22589 22590 *) as_fn_append ac_config_targets " $1" 22591 ac_need_defaults=false ;; 22592 22593 esac 22594 shift 22595done 22596 22597ac_configure_extra_args= 22598 22599if $ac_cs_silent; then 22600 exec 6>/dev/null 22601 ac_configure_extra_args="$ac_configure_extra_args --silent" 22602fi 22603 22604_ACEOF 22605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22606if \$ac_cs_recheck; then 22607 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22608 shift 22609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22610 CONFIG_SHELL='$SHELL' 22611 export CONFIG_SHELL 22612 exec "\$@" 22613fi 22614 22615_ACEOF 22616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22617exec 5>>config.log 22618{ 22619 echo 22620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22621## Running $as_me. ## 22622_ASBOX 22623 $as_echo "$ac_log" 22624} >&5 22625 22626_ACEOF 22627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22628# 22629# INIT-COMMANDS 22630# 22631 22632 22633# The HP-UX ksh and POSIX shell print the target directory to stdout 22634# if CDPATH is set. 22635(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22636 22637sed_quote_subst='$sed_quote_subst' 22638double_quote_subst='$double_quote_subst' 22639delay_variable_subst='$delay_variable_subst' 22640macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 22641macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 22642enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 22643enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 22644pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 22645enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 22646host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 22647host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 22648host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 22649build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 22650build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 22651build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 22652SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 22653Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 22654GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 22655EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 22656FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 22657LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 22658NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 22659LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 22660max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 22661ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 22662exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 22663lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 22664lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 22665lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 22666reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 22667reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22668OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 22669deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 22670file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 22671AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 22672AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22673STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 22674RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 22675old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22676old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22677old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22678CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 22679CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22680compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 22681GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 22682lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 22683lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 22684lt_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"`' 22685lt_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"`' 22686objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 22687SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 22688ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 22689MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 22690lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 22691lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 22692lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 22693lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 22694lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 22695need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 22696DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 22697NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 22698LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 22699OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22700OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 22701libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 22702shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22703extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22704archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 22705enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 22706export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22707whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22708compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 22709old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22710old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22711archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22712archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22713module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22714module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22715with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 22716allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22717no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22718hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22719hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 22720hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 22721hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 22722hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 22723hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 22724hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22725hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 22726inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 22727link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 22728fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 22729always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 22730export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22731exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22732include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22733prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22734file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 22735variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 22736need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 22737need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 22738version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 22739runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22740shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22741shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 22742libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22743library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 22744soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22745postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22746postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22747finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22748finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 22749hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 22750sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22751sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22752hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 22753enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 22754enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 22755enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 22756old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 22757striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 22758compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 22759predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22760postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22761predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 22762postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 22763compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 22764LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22765old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22766compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22767GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22768lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22769lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22770lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22771lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22772lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22773archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22774enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22775export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22776whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22777compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22778old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22779old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22780archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22781archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22782module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22783module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22784with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22785allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22786no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22787hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22788hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22789hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22790hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22791hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22792hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22793hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22794hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22795inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22796link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22797fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22798always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22799export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22800exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22801include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22802prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22803file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22804hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22805compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22806predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22807postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22808predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22809postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22810compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22811 22812LTCC='$LTCC' 22813LTCFLAGS='$LTCFLAGS' 22814compiler='$compiler_DEFAULT' 22815 22816# Quote evaled strings. 22817for var in SED \ 22818GREP \ 22819EGREP \ 22820FGREP \ 22821LD \ 22822NM \ 22823LN_S \ 22824lt_SP2NL \ 22825lt_NL2SP \ 22826reload_flag \ 22827OBJDUMP \ 22828deplibs_check_method \ 22829file_magic_cmd \ 22830AR \ 22831AR_FLAGS \ 22832STRIP \ 22833RANLIB \ 22834CC \ 22835CFLAGS \ 22836compiler \ 22837lt_cv_sys_global_symbol_pipe \ 22838lt_cv_sys_global_symbol_to_cdecl \ 22839lt_cv_sys_global_symbol_to_c_name_address \ 22840lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22841SHELL \ 22842ECHO \ 22843lt_prog_compiler_no_builtin_flag \ 22844lt_prog_compiler_wl \ 22845lt_prog_compiler_pic \ 22846lt_prog_compiler_static \ 22847lt_cv_prog_compiler_c_o \ 22848need_locks \ 22849DSYMUTIL \ 22850NMEDIT \ 22851LIPO \ 22852OTOOL \ 22853OTOOL64 \ 22854shrext_cmds \ 22855export_dynamic_flag_spec \ 22856whole_archive_flag_spec \ 22857compiler_needs_object \ 22858with_gnu_ld \ 22859allow_undefined_flag \ 22860no_undefined_flag \ 22861hardcode_libdir_flag_spec \ 22862hardcode_libdir_flag_spec_ld \ 22863hardcode_libdir_separator \ 22864fix_srcfile_path \ 22865exclude_expsyms \ 22866include_expsyms \ 22867file_list_spec \ 22868variables_saved_for_relink \ 22869libname_spec \ 22870library_names_spec \ 22871soname_spec \ 22872finish_eval \ 22873old_striplib \ 22874striplib \ 22875compiler_lib_search_dirs \ 22876predep_objects \ 22877postdep_objects \ 22878predeps \ 22879postdeps \ 22880compiler_lib_search_path \ 22881LD_CXX \ 22882compiler_CXX \ 22883lt_prog_compiler_no_builtin_flag_CXX \ 22884lt_prog_compiler_wl_CXX \ 22885lt_prog_compiler_pic_CXX \ 22886lt_prog_compiler_static_CXX \ 22887lt_cv_prog_compiler_c_o_CXX \ 22888export_dynamic_flag_spec_CXX \ 22889whole_archive_flag_spec_CXX \ 22890compiler_needs_object_CXX \ 22891with_gnu_ld_CXX \ 22892allow_undefined_flag_CXX \ 22893no_undefined_flag_CXX \ 22894hardcode_libdir_flag_spec_CXX \ 22895hardcode_libdir_flag_spec_ld_CXX \ 22896hardcode_libdir_separator_CXX \ 22897fix_srcfile_path_CXX \ 22898exclude_expsyms_CXX \ 22899include_expsyms_CXX \ 22900file_list_spec_CXX \ 22901compiler_lib_search_dirs_CXX \ 22902predep_objects_CXX \ 22903postdep_objects_CXX \ 22904predeps_CXX \ 22905postdeps_CXX \ 22906compiler_lib_search_path_CXX; do 22907 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22908 *[\\\\\\\`\\"\\\$]*) 22909 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22910 ;; 22911 *) 22912 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22913 ;; 22914 esac 22915done 22916 22917# Double-quote double-evaled strings. 22918for var in reload_cmds \ 22919old_postinstall_cmds \ 22920old_postuninstall_cmds \ 22921old_archive_cmds \ 22922extract_expsyms_cmds \ 22923old_archive_from_new_cmds \ 22924old_archive_from_expsyms_cmds \ 22925archive_cmds \ 22926archive_expsym_cmds \ 22927module_cmds \ 22928module_expsym_cmds \ 22929export_symbols_cmds \ 22930prelink_cmds \ 22931postinstall_cmds \ 22932postuninstall_cmds \ 22933finish_cmds \ 22934sys_lib_search_path_spec \ 22935sys_lib_dlsearch_path_spec \ 22936old_archive_cmds_CXX \ 22937old_archive_from_new_cmds_CXX \ 22938old_archive_from_expsyms_cmds_CXX \ 22939archive_cmds_CXX \ 22940archive_expsym_cmds_CXX \ 22941module_cmds_CXX \ 22942module_expsym_cmds_CXX \ 22943export_symbols_cmds_CXX \ 22944prelink_cmds_CXX; do 22945 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22946 *[\\\\\\\`\\"\\\$]*) 22947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22948 ;; 22949 *) 22950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22951 ;; 22952 esac 22953done 22954 22955# Fix-up fallback echo if it was mangled by the above quoting rules. 22956case \$lt_ECHO in 22957*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 22958 ;; 22959esac 22960 22961ac_aux_dir='$ac_aux_dir' 22962xsi_shell='$xsi_shell' 22963lt_shell_append='$lt_shell_append' 22964 22965# See if we are running on zsh, and set the options which allow our 22966# commands through without removal of \ escapes INIT. 22967if test -n "\${ZSH_VERSION+set}" ; then 22968 setopt NO_GLOB_SUBST 22969fi 22970 22971 22972 PACKAGE='$PACKAGE' 22973 VERSION='$VERSION' 22974 TIMESTAMP='$TIMESTAMP' 22975 RM='$RM' 22976 ofile='$ofile' 22977 22978 22979 22980 22981 22982 22983_ACEOF 22984 22985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22986 22987# Handling of arguments. 22988for ac_config_target in $ac_config_targets 22989do 22990 case $ac_config_target in 22991 "db_config.h") CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;; 22992 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22993 "$CREATE_LIST") CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;; 22994 22995 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22996 esac 22997done 22998 22999 23000# If the user did not use the arguments to specify the items to instantiate, 23001# then the envvar interface is used. Set only those that are not. 23002# We use the long form for the default assignment because of an extremely 23003# bizarre bug on SunOS 4.1.3. 23004if $ac_need_defaults; then 23005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23008fi 23009 23010# Have a temporary directory for convenience. Make it in the build tree 23011# simply because there is no reason against having it here, and in addition, 23012# creating and moving files from /tmp can sometimes cause problems. 23013# Hook for its removal unless debugging. 23014# Note that there is a small window in which the directory will not be cleaned: 23015# after its creation but before its name has been assigned to `$tmp'. 23016$debug || 23017{ 23018 tmp= 23019 trap 'exit_status=$? 23020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23021' 0 23022 trap 'as_fn_exit 1' 1 2 13 15 23023} 23024# Create a (secure) tmp directory for tmp files. 23025 23026{ 23027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23028 test -n "$tmp" && test -d "$tmp" 23029} || 23030{ 23031 tmp=./conf$$-$RANDOM 23032 (umask 077 && mkdir "$tmp") 23033} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 23034 23035# Set up the scripts for CONFIG_FILES section. 23036# No need to generate them if there are no CONFIG_FILES. 23037# This happens for instance with `./config.status config.h'. 23038if test -n "$CONFIG_FILES"; then 23039 23040 23041ac_cr=`echo X | tr X '\015'` 23042# On cygwin, bash can eat \r inside `` if the user requested igncr. 23043# But we know of no other shell where ac_cr would be empty at this 23044# point, so we can use a bashism as a fallback. 23045if test "x$ac_cr" = x; then 23046 eval ac_cr=\$\'\\r\' 23047fi 23048ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23049if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23050 ac_cs_awk_cr='\r' 23051else 23052 ac_cs_awk_cr=$ac_cr 23053fi 23054 23055echo 'BEGIN {' >"$tmp/subs1.awk" && 23056_ACEOF 23057 23058 23059{ 23060 echo "cat >conf$$subs.awk <<_ACEOF" && 23061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23062 echo "_ACEOF" 23063} >conf$$subs.sh || 23064 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 23065ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23066ac_delim='%!_!# ' 23067for ac_last_try in false false false false false :; do 23068 . ./conf$$subs.sh || 23069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 23070 23071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23072 if test $ac_delim_n = $ac_delim_num; then 23073 break 23074 elif $ac_last_try; then 23075 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 23076 else 23077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23078 fi 23079done 23080rm -f conf$$subs.sh 23081 23082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23083cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23084_ACEOF 23085sed -n ' 23086h 23087s/^/S["/; s/!.*/"]=/ 23088p 23089g 23090s/^[^!]*!// 23091:repl 23092t repl 23093s/'"$ac_delim"'$// 23094t delim 23095:nl 23096h 23097s/\(.\{148\}\)..*/\1/ 23098t more1 23099s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23100p 23101n 23102b repl 23103:more1 23104s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23105p 23106g 23107s/.\{148\}// 23108t nl 23109:delim 23110h 23111s/\(.\{148\}\)..*/\1/ 23112t more2 23113s/["\\]/\\&/g; s/^/"/; s/$/"/ 23114p 23115b 23116:more2 23117s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23118p 23119g 23120s/.\{148\}// 23121t delim 23122' <conf$$subs.awk | sed ' 23123/^[^""]/{ 23124 N 23125 s/\n// 23126} 23127' >>$CONFIG_STATUS || ac_write_fail=1 23128rm -f conf$$subs.awk 23129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23130_ACAWK 23131cat >>"\$tmp/subs1.awk" <<_ACAWK && 23132 for (key in S) S_is_set[key] = 1 23133 FS = "" 23134 23135} 23136{ 23137 line = $ 0 23138 nfields = split(line, field, "@") 23139 substed = 0 23140 len = length(field[1]) 23141 for (i = 2; i < nfields; i++) { 23142 key = field[i] 23143 keylen = length(key) 23144 if (S_is_set[key]) { 23145 value = S[key] 23146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23147 len += length(value) + length(field[++i]) 23148 substed = 1 23149 } else 23150 len += 1 + keylen 23151 } 23152 23153 print line 23154} 23155 23156_ACAWK 23157_ACEOF 23158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23159if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23161else 23162 cat 23163fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23164 || as_fn_error "could not setup config files machinery" "$LINENO" 5 23165_ACEOF 23166 23167# VPATH may cause trouble with some makes, so we remove $(srcdir), 23168# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23169# trailing colons and then remove the whole line if VPATH becomes empty 23170# (actually we leave an empty line to preserve line numbers). 23171if test "x$srcdir" = x.; then 23172 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23173s/:*\$(srcdir):*/:/ 23174s/:*\${srcdir}:*/:/ 23175s/:*@srcdir@:*/:/ 23176s/^\([^=]*=[ ]*\):*/\1/ 23177s/:*$// 23178s/^[^=]*=[ ]*$// 23179}' 23180fi 23181 23182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23183fi # test -n "$CONFIG_FILES" 23184 23185# Set up the scripts for CONFIG_HEADERS section. 23186# No need to generate them if there are no CONFIG_HEADERS. 23187# This happens for instance with `./config.status Makefile'. 23188if test -n "$CONFIG_HEADERS"; then 23189cat >"$tmp/defines.awk" <<\_ACAWK || 23190BEGIN { 23191_ACEOF 23192 23193# Transform confdefs.h into an awk script `defines.awk', embedded as 23194# here-document in config.status, that substitutes the proper values into 23195# config.h.in to produce config.h. 23196 23197# Create a delimiter string that does not exist in confdefs.h, to ease 23198# handling of long lines. 23199ac_delim='%!_!# ' 23200for ac_last_try in false false :; do 23201 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23202 if test -z "$ac_t"; then 23203 break 23204 elif $ac_last_try; then 23205 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 23206 else 23207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23208 fi 23209done 23210 23211# For the awk script, D is an array of macro values keyed by name, 23212# likewise P contains macro parameters if any. Preserve backslash 23213# newline sequences. 23214 23215ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23216sed -n ' 23217s/.\{148\}/&'"$ac_delim"'/g 23218t rset 23219:rset 23220s/^[ ]*#[ ]*define[ ][ ]*/ / 23221t def 23222d 23223:def 23224s/\\$// 23225t bsnl 23226s/["\\]/\\&/g 23227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23228D["\1"]=" \3"/p 23229s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23230d 23231:bsnl 23232s/["\\]/\\&/g 23233s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23234D["\1"]=" \3\\\\\\n"\\/p 23235t cont 23236s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23237t cont 23238d 23239:cont 23240n 23241s/.\{148\}/&'"$ac_delim"'/g 23242t clear 23243:clear 23244s/\\$// 23245t bsnlc 23246s/["\\]/\\&/g; s/^/"/; s/$/"/p 23247d 23248:bsnlc 23249s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23250b cont 23251' <confdefs.h | sed ' 23252s/'"$ac_delim"'/"\\\ 23253"/g' >>$CONFIG_STATUS || ac_write_fail=1 23254 23255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23256 for (key in D) D_is_set[key] = 1 23257 FS = "" 23258} 23259/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23260 line = \$ 0 23261 split(line, arg, " ") 23262 if (arg[1] == "#") { 23263 defundef = arg[2] 23264 mac1 = arg[3] 23265 } else { 23266 defundef = substr(arg[1], 2) 23267 mac1 = arg[2] 23268 } 23269 split(mac1, mac2, "(") #) 23270 macro = mac2[1] 23271 prefix = substr(line, 1, index(line, defundef) - 1) 23272 if (D_is_set[macro]) { 23273 # Preserve the white space surrounding the "#". 23274 print prefix "define", macro P[macro] D[macro] 23275 next 23276 } else { 23277 # Replace #undef with comments. This is necessary, for example, 23278 # in the case of _POSIX_SOURCE, which is predefined and required 23279 # on some systems where configure will not decide to define it. 23280 if (defundef == "undef") { 23281 print "/*", prefix defundef, macro, "*/" 23282 next 23283 } 23284 } 23285} 23286{ print } 23287_ACAWK 23288_ACEOF 23289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23290 as_fn_error "could not setup config headers machinery" "$LINENO" 5 23291fi # test -n "$CONFIG_HEADERS" 23292 23293 23294eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23295shift 23296for ac_tag 23297do 23298 case $ac_tag in 23299 :[FHLC]) ac_mode=$ac_tag; continue;; 23300 esac 23301 case $ac_mode$ac_tag in 23302 :[FHL]*:*);; 23303 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 23304 :[FH]-) ac_tag=-:-;; 23305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23306 esac 23307 ac_save_IFS=$IFS 23308 IFS=: 23309 set x $ac_tag 23310 IFS=$ac_save_IFS 23311 shift 23312 ac_file=$1 23313 shift 23314 23315 case $ac_mode in 23316 :L) ac_source=$1;; 23317 :[FH]) 23318 ac_file_inputs= 23319 for ac_f 23320 do 23321 case $ac_f in 23322 -) ac_f="$tmp/stdin";; 23323 *) # Look for the file first in the build tree, then in the source tree 23324 # (if the path is not absolute). The absolute path cannot be DOS-style, 23325 # because $ac_f cannot contain `:'. 23326 test -f "$ac_f" || 23327 case $ac_f in 23328 [\\/$]*) false;; 23329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23330 esac || 23331 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23332 esac 23333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23334 as_fn_append ac_file_inputs " '$ac_f'" 23335 done 23336 23337 # Let's still pretend it is `configure' which instantiates (i.e., don't 23338 # use $as_me), people would be surprised to read: 23339 # /* config.h. Generated by config.status. */ 23340 configure_input='Generated from '` 23341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23342 `' by configure.' 23343 if test x"$ac_file" != x-; then 23344 configure_input="$ac_file. $configure_input" 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23346$as_echo "$as_me: creating $ac_file" >&6;} 23347 fi 23348 # Neutralize special characters interpreted by sed in replacement strings. 23349 case $configure_input in #( 23350 *\&* | *\|* | *\\* ) 23351 ac_sed_conf_input=`$as_echo "$configure_input" | 23352 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23353 *) ac_sed_conf_input=$configure_input;; 23354 esac 23355 23356 case $ac_tag in 23357 *:-:* | *:-) cat >"$tmp/stdin" \ 23358 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 23359 esac 23360 ;; 23361 esac 23362 23363 ac_dir=`$as_dirname -- "$ac_file" || 23364$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23365 X"$ac_file" : 'X\(//\)[^/]' \| \ 23366 X"$ac_file" : 'X\(//\)$' \| \ 23367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23368$as_echo X"$ac_file" | 23369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23370 s//\1/ 23371 q 23372 } 23373 /^X\(\/\/\)[^/].*/{ 23374 s//\1/ 23375 q 23376 } 23377 /^X\(\/\/\)$/{ 23378 s//\1/ 23379 q 23380 } 23381 /^X\(\/\).*/{ 23382 s//\1/ 23383 q 23384 } 23385 s/.*/./; q'` 23386 as_dir="$ac_dir"; as_fn_mkdir_p 23387 ac_builddir=. 23388 23389case "$ac_dir" in 23390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23391*) 23392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23393 # A ".." for each directory in $ac_dir_suffix. 23394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23395 case $ac_top_builddir_sub in 23396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23398 esac ;; 23399esac 23400ac_abs_top_builddir=$ac_pwd 23401ac_abs_builddir=$ac_pwd$ac_dir_suffix 23402# for backward compatibility: 23403ac_top_builddir=$ac_top_build_prefix 23404 23405case $srcdir in 23406 .) # We are building in place. 23407 ac_srcdir=. 23408 ac_top_srcdir=$ac_top_builddir_sub 23409 ac_abs_top_srcdir=$ac_pwd ;; 23410 [\\/]* | ?:[\\/]* ) # Absolute name. 23411 ac_srcdir=$srcdir$ac_dir_suffix; 23412 ac_top_srcdir=$srcdir 23413 ac_abs_top_srcdir=$srcdir ;; 23414 *) # Relative name. 23415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23416 ac_top_srcdir=$ac_top_build_prefix$srcdir 23417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23418esac 23419ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23420 23421 23422 case $ac_mode in 23423 :F) 23424 # 23425 # CONFIG_FILE 23426 # 23427 23428 case $INSTALL in 23429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23431 esac 23432_ACEOF 23433 23434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23435# If the template does not know about datarootdir, expand it. 23436# FIXME: This hack should be removed a few years after 2.60. 23437ac_datarootdir_hack=; ac_datarootdir_seen= 23438ac_sed_dataroot=' 23439/datarootdir/ { 23440 p 23441 q 23442} 23443/@datadir@/p 23444/@docdir@/p 23445/@infodir@/p 23446/@localedir@/p 23447/@mandir@/p' 23448case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23449*datarootdir*) ac_datarootdir_seen=yes;; 23450*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23452$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23453_ACEOF 23454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23455 ac_datarootdir_hack=' 23456 s&@datadir@&$datadir&g 23457 s&@docdir@&$docdir&g 23458 s&@infodir@&$infodir&g 23459 s&@localedir@&$localedir&g 23460 s&@mandir@&$mandir&g 23461 s&\\\${datarootdir}&$datarootdir&g' ;; 23462esac 23463_ACEOF 23464 23465# Neutralize VPATH when `$srcdir' = `.'. 23466# Shell code in configure.ac might set extrasub. 23467# FIXME: do we really want to maintain this feature? 23468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23469ac_sed_extra="$ac_vpsub 23470$extrasub 23471_ACEOF 23472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23473:t 23474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23475s|@configure_input@|$ac_sed_conf_input|;t t 23476s&@top_builddir@&$ac_top_builddir_sub&;t t 23477s&@top_build_prefix@&$ac_top_build_prefix&;t t 23478s&@srcdir@&$ac_srcdir&;t t 23479s&@abs_srcdir@&$ac_abs_srcdir&;t t 23480s&@top_srcdir@&$ac_top_srcdir&;t t 23481s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23482s&@builddir@&$ac_builddir&;t t 23483s&@abs_builddir@&$ac_abs_builddir&;t t 23484s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23485s&@INSTALL@&$ac_INSTALL&;t t 23486$ac_datarootdir_hack 23487" 23488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23489 || as_fn_error "could not create $ac_file" "$LINENO" 5 23490 23491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23495which seems to be undefined. Please make sure it is defined." >&5 23496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23497which seems to be undefined. Please make sure it is defined." >&2;} 23498 23499 rm -f "$tmp/stdin" 23500 case $ac_file in 23501 -) cat "$tmp/out" && rm -f "$tmp/out";; 23502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23503 esac \ 23504 || as_fn_error "could not create $ac_file" "$LINENO" 5 23505 ;; 23506 :H) 23507 # 23508 # CONFIG_HEADER 23509 # 23510 if test x"$ac_file" != x-; then 23511 { 23512 $as_echo "/* $configure_input */" \ 23513 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23514 } >"$tmp/config.h" \ 23515 || as_fn_error "could not create $ac_file" "$LINENO" 5 23516 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23518$as_echo "$as_me: $ac_file is unchanged" >&6;} 23519 else 23520 rm -f "$ac_file" 23521 mv "$tmp/config.h" "$ac_file" \ 23522 || as_fn_error "could not create $ac_file" "$LINENO" 5 23523 fi 23524 else 23525 $as_echo "/* $configure_input */" \ 23526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23527 || as_fn_error "could not create -" "$LINENO" 5 23528 fi 23529 ;; 23530 23531 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23532$as_echo "$as_me: executing $ac_file commands" >&6;} 23533 ;; 23534 esac 23535 23536 23537 case $ac_file$ac_mode in 23538 "libtool":C) 23539 23540 # See if we are running on zsh, and set the options which allow our 23541 # commands through without removal of \ escapes. 23542 if test -n "${ZSH_VERSION+set}" ; then 23543 setopt NO_GLOB_SUBST 23544 fi 23545 23546 cfgfile="${ofile}T" 23547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23548 $RM "$cfgfile" 23549 23550 cat <<_LT_EOF >> "$cfgfile" 23551#! $SHELL 23552 23553# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23554# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23556# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23557# 23558# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23559# 2006, 2007, 2008 Free Software Foundation, Inc. 23560# Written by Gordon Matzigkeit, 1996 23561# 23562# This file is part of GNU Libtool. 23563# 23564# GNU Libtool is free software; you can redistribute it and/or 23565# modify it under the terms of the GNU General Public License as 23566# published by the Free Software Foundation; either version 2 of 23567# the License, or (at your option) any later version. 23568# 23569# As a special exception to the GNU General Public License, 23570# if you distribute this file as part of a program or library that 23571# is built using GNU Libtool, you may include this file under the 23572# same distribution terms that you use for the rest of that program. 23573# 23574# GNU Libtool is distributed in the hope that it will be useful, 23575# but WITHOUT ANY WARRANTY; without even the implied warranty of 23576# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23577# GNU General Public License for more details. 23578# 23579# You should have received a copy of the GNU General Public License 23580# along with GNU Libtool; see the file COPYING. If not, a copy 23581# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23582# obtained by writing to the Free Software Foundation, Inc., 23583# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23584 23585 23586# The names of the tagged configurations supported by this script. 23587available_tags="CXX " 23588 23589# ### BEGIN LIBTOOL CONFIG 23590 23591# Which release of libtool.m4 was used? 23592macro_version=$macro_version 23593macro_revision=$macro_revision 23594 23595# Whether or not to build shared libraries. 23596build_libtool_libs=$enable_shared 23597 23598# Whether or not to build static libraries. 23599build_old_libs=$enable_static 23600 23601# What type of objects to build. 23602pic_mode=$pic_mode 23603 23604# Whether or not to optimize for fast installation. 23605fast_install=$enable_fast_install 23606 23607# The host system. 23608host_alias=$host_alias 23609host=$host 23610host_os=$host_os 23611 23612# The build system. 23613build_alias=$build_alias 23614build=$build 23615build_os=$build_os 23616 23617# A sed program that does not truncate output. 23618SED=$lt_SED 23619 23620# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23621Xsed="\$SED -e 1s/^X//" 23622 23623# A grep program that handles long lines. 23624GREP=$lt_GREP 23625 23626# An ERE matcher. 23627EGREP=$lt_EGREP 23628 23629# A literal string matcher. 23630FGREP=$lt_FGREP 23631 23632# A BSD- or MS-compatible name lister. 23633NM=$lt_NM 23634 23635# Whether we need soft or hard links. 23636LN_S=$lt_LN_S 23637 23638# What is the maximum length of a command? 23639max_cmd_len=$max_cmd_len 23640 23641# Object file suffix (normally "o"). 23642objext=$ac_objext 23643 23644# Executable file suffix (normally ""). 23645exeext=$exeext 23646 23647# whether the shell understands "unset". 23648lt_unset=$lt_unset 23649 23650# turn spaces into newlines. 23651SP2NL=$lt_lt_SP2NL 23652 23653# turn newlines into spaces. 23654NL2SP=$lt_lt_NL2SP 23655 23656# How to create reloadable object files. 23657reload_flag=$lt_reload_flag 23658reload_cmds=$lt_reload_cmds 23659 23660# An object symbol dumper. 23661OBJDUMP=$lt_OBJDUMP 23662 23663# Method to check whether dependent libraries are shared objects. 23664deplibs_check_method=$lt_deplibs_check_method 23665 23666# Command to use when deplibs_check_method == "file_magic". 23667file_magic_cmd=$lt_file_magic_cmd 23668 23669# The archiver. 23670AR=$lt_AR 23671AR_FLAGS=$lt_AR_FLAGS 23672 23673# A symbol stripping program. 23674STRIP=$lt_STRIP 23675 23676# Commands used to install an old-style archive. 23677RANLIB=$lt_RANLIB 23678old_postinstall_cmds=$lt_old_postinstall_cmds 23679old_postuninstall_cmds=$lt_old_postuninstall_cmds 23680 23681# A C compiler. 23682LTCC=$lt_CC 23683 23684# LTCC compiler flags. 23685LTCFLAGS=$lt_CFLAGS 23686 23687# Take the output of nm and produce a listing of raw symbols and C names. 23688global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23689 23690# Transform the output of nm in a proper C declaration. 23691global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23692 23693# Transform the output of nm in a C name address pair. 23694global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23695 23696# Transform the output of nm in a C name address pair when lib prefix is needed. 23697global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23698 23699# The name of the directory that contains temporary libtool files. 23700objdir=$objdir 23701 23702# Shell to use when invoking shell scripts. 23703SHELL=$lt_SHELL 23704 23705# An echo program that does not interpret backslashes. 23706ECHO=$lt_ECHO 23707 23708# Used to examine libraries when file_magic_cmd begins with "file". 23709MAGIC_CMD=$MAGIC_CMD 23710 23711# Must we lock files when doing compilation? 23712need_locks=$lt_need_locks 23713 23714# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23715DSYMUTIL=$lt_DSYMUTIL 23716 23717# Tool to change global to local symbols on Mac OS X. 23718NMEDIT=$lt_NMEDIT 23719 23720# Tool to manipulate fat objects and archives on Mac OS X. 23721LIPO=$lt_LIPO 23722 23723# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23724OTOOL=$lt_OTOOL 23725 23726# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23727OTOOL64=$lt_OTOOL64 23728 23729# Old archive suffix (normally "a"). 23730libext=$libext 23731 23732# Shared library suffix (normally ".so"). 23733shrext_cmds=$lt_shrext_cmds 23734 23735# The commands to extract the exported symbol list from a shared archive. 23736extract_expsyms_cmds=$lt_extract_expsyms_cmds 23737 23738# Variables whose values should be saved in libtool wrapper scripts and 23739# restored at link time. 23740variables_saved_for_relink=$lt_variables_saved_for_relink 23741 23742# Do we need the "lib" prefix for modules? 23743need_lib_prefix=$need_lib_prefix 23744 23745# Do we need a version for libraries? 23746need_version=$need_version 23747 23748# Library versioning type. 23749version_type=$version_type 23750 23751# Shared library runtime path variable. 23752runpath_var=$runpath_var 23753 23754# Shared library path variable. 23755shlibpath_var=$shlibpath_var 23756 23757# Is shlibpath searched before the hard-coded library search path? 23758shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23759 23760# Format of library name prefix. 23761libname_spec=$lt_libname_spec 23762 23763# List of archive names. First name is the real one, the rest are links. 23764# The last name is the one that the linker finds with -lNAME 23765library_names_spec=$lt_library_names_spec 23766 23767# The coded name of the library, if different from the real name. 23768soname_spec=$lt_soname_spec 23769 23770# Command to use after installation of a shared archive. 23771postinstall_cmds=$lt_postinstall_cmds 23772 23773# Command to use after uninstallation of a shared archive. 23774postuninstall_cmds=$lt_postuninstall_cmds 23775 23776# Commands used to finish a libtool library installation in a directory. 23777finish_cmds=$lt_finish_cmds 23778 23779# As "finish_cmds", except a single script fragment to be evaled but 23780# not shown. 23781finish_eval=$lt_finish_eval 23782 23783# Whether we should hardcode library paths into libraries. 23784hardcode_into_libs=$hardcode_into_libs 23785 23786# Compile-time system search path for libraries. 23787sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23788 23789# Run-time system search path for libraries. 23790sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23791 23792# Whether dlopen is supported. 23793dlopen_support=$enable_dlopen 23794 23795# Whether dlopen of programs is supported. 23796dlopen_self=$enable_dlopen_self 23797 23798# Whether dlopen of statically linked programs is supported. 23799dlopen_self_static=$enable_dlopen_self_static 23800 23801# Commands to strip libraries. 23802old_striplib=$lt_old_striplib 23803striplib=$lt_striplib 23804 23805 23806# The linker used to build libraries. 23807LD=$lt_LD 23808 23809# Commands used to build an old-style archive. 23810old_archive_cmds=$lt_old_archive_cmds 23811 23812# A language specific compiler. 23813CC=$lt_compiler 23814 23815# Is the compiler the GNU compiler? 23816with_gcc=$GCC 23817 23818# Compiler flag to turn off builtin functions. 23819no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23820 23821# How to pass a linker flag through the compiler. 23822wl=$lt_lt_prog_compiler_wl 23823 23824# Additional compiler flags for building library objects. 23825pic_flag=$lt_lt_prog_compiler_pic 23826 23827# Compiler flag to prevent dynamic linking. 23828link_static_flag=$lt_lt_prog_compiler_static 23829 23830# Does compiler simultaneously support -c and -o options? 23831compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23832 23833# Whether or not to add -lc for building shared libraries. 23834build_libtool_need_lc=$archive_cmds_need_lc 23835 23836# Whether or not to disallow shared libs when runtime libs are static. 23837allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23838 23839# Compiler flag to allow reflexive dlopens. 23840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23841 23842# Compiler flag to generate shared objects directly from archives. 23843whole_archive_flag_spec=$lt_whole_archive_flag_spec 23844 23845# Whether the compiler copes with passing no objects directly. 23846compiler_needs_object=$lt_compiler_needs_object 23847 23848# Create an old-style archive from a shared archive. 23849old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23850 23851# Create a temporary old-style archive to link instead of a shared archive. 23852old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23853 23854# Commands used to build a shared archive. 23855archive_cmds=$lt_archive_cmds 23856archive_expsym_cmds=$lt_archive_expsym_cmds 23857 23858# Commands used to build a loadable module if different from building 23859# a shared archive. 23860module_cmds=$lt_module_cmds 23861module_expsym_cmds=$lt_module_expsym_cmds 23862 23863# Whether we are building with GNU ld or not. 23864with_gnu_ld=$lt_with_gnu_ld 23865 23866# Flag that allows shared libraries with undefined symbols to be built. 23867allow_undefined_flag=$lt_allow_undefined_flag 23868 23869# Flag that enforces no undefined symbols. 23870no_undefined_flag=$lt_no_undefined_flag 23871 23872# Flag to hardcode \$libdir into a binary during linking. 23873# This must work even if \$libdir does not exist 23874hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23875 23876# If ld is used when linking, flag to hardcode \$libdir into a binary 23877# during linking. This must work even if \$libdir does not exist. 23878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 23879 23880# Whether we need a single "-rpath" flag with a separated argument. 23881hardcode_libdir_separator=$lt_hardcode_libdir_separator 23882 23883# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23884# DIR into the resulting binary. 23885hardcode_direct=$hardcode_direct 23886 23887# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23888# DIR into the resulting binary and the resulting library dependency is 23889# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23890# library is relocated. 23891hardcode_direct_absolute=$hardcode_direct_absolute 23892 23893# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23894# into the resulting binary. 23895hardcode_minus_L=$hardcode_minus_L 23896 23897# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23898# into the resulting binary. 23899hardcode_shlibpath_var=$hardcode_shlibpath_var 23900 23901# Set to "yes" if building a shared library automatically hardcodes DIR 23902# into the library and all subsequent libraries and executables linked 23903# against it. 23904hardcode_automatic=$hardcode_automatic 23905 23906# Set to yes if linker adds runtime paths of dependent libraries 23907# to runtime path list. 23908inherit_rpath=$inherit_rpath 23909 23910# Whether libtool must link a program against all its dependency libraries. 23911link_all_deplibs=$link_all_deplibs 23912 23913# Fix the shell variable \$srcfile for the compiler. 23914fix_srcfile_path=$lt_fix_srcfile_path 23915 23916# Set to "yes" if exported symbols are required. 23917always_export_symbols=$always_export_symbols 23918 23919# The commands to list exported symbols. 23920export_symbols_cmds=$lt_export_symbols_cmds 23921 23922# Symbols that should not be listed in the preloaded symbols. 23923exclude_expsyms=$lt_exclude_expsyms 23924 23925# Symbols that must always be exported. 23926include_expsyms=$lt_include_expsyms 23927 23928# Commands necessary for linking programs (against libraries) with templates. 23929prelink_cmds=$lt_prelink_cmds 23930 23931# Specify filename containing input files. 23932file_list_spec=$lt_file_list_spec 23933 23934# How to hardcode a shared library path into an executable. 23935hardcode_action=$hardcode_action 23936 23937# The directories searched by this compiler when creating a shared library. 23938compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23939 23940# Dependencies to place before and after the objects being linked to 23941# create a shared library. 23942predep_objects=$lt_predep_objects 23943postdep_objects=$lt_postdep_objects 23944predeps=$lt_predeps 23945postdeps=$lt_postdeps 23946 23947# The library search path used internally by the compiler when linking 23948# a shared library. 23949compiler_lib_search_path=$lt_compiler_lib_search_path 23950 23951# ### END LIBTOOL CONFIG 23952 23953_LT_EOF 23954 23955 case $host_os in 23956 aix3*) 23957 cat <<\_LT_EOF >> "$cfgfile" 23958# AIX sometimes has problems with the GCC collect2 program. For some 23959# reason, if we set the COLLECT_NAMES environment variable, the problems 23960# vanish in a puff of smoke. 23961if test "X${COLLECT_NAMES+set}" != Xset; then 23962 COLLECT_NAMES= 23963 export COLLECT_NAMES 23964fi 23965_LT_EOF 23966 ;; 23967 esac 23968 23969 23970ltmain="$ac_aux_dir/ltmain.sh" 23971 23972 23973 # We use sed instead of cat because bash on DJGPP gets confused if 23974 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23975 # text mode, it properly converts lines to CR/LF. This bash problem 23976 # is reportedly fixed, but why not run on old versions too? 23977 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 23978 || (rm -f "$cfgfile"; exit 1) 23979 23980 case $xsi_shell in 23981 yes) 23982 cat << \_LT_EOF >> "$cfgfile" 23983 23984# func_dirname file append nondir_replacement 23985# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23986# otherwise set result to NONDIR_REPLACEMENT. 23987func_dirname () 23988{ 23989 case ${1} in 23990 */*) func_dirname_result="${1%/*}${2}" ;; 23991 * ) func_dirname_result="${3}" ;; 23992 esac 23993} 23994 23995# func_basename file 23996func_basename () 23997{ 23998 func_basename_result="${1##*/}" 23999} 24000 24001# func_dirname_and_basename file append nondir_replacement 24002# perform func_basename and func_dirname in a single function 24003# call: 24004# dirname: Compute the dirname of FILE. If nonempty, 24005# add APPEND to the result, otherwise set result 24006# to NONDIR_REPLACEMENT. 24007# value returned in "$func_dirname_result" 24008# basename: Compute filename of FILE. 24009# value retuned in "$func_basename_result" 24010# Implementation must be kept synchronized with func_dirname 24011# and func_basename. For efficiency, we do not delegate to 24012# those functions but instead duplicate the functionality here. 24013func_dirname_and_basename () 24014{ 24015 case ${1} in 24016 */*) func_dirname_result="${1%/*}${2}" ;; 24017 * ) func_dirname_result="${3}" ;; 24018 esac 24019 func_basename_result="${1##*/}" 24020} 24021 24022# func_stripname prefix suffix name 24023# strip PREFIX and SUFFIX off of NAME. 24024# PREFIX and SUFFIX must not contain globbing or regex special 24025# characters, hashes, percent signs, but SUFFIX may contain a leading 24026# dot (in which case that matches only a dot). 24027func_stripname () 24028{ 24029 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 24030 # positional parameters, so assign one to ordinary parameter first. 24031 func_stripname_result=${3} 24032 func_stripname_result=${func_stripname_result#"${1}"} 24033 func_stripname_result=${func_stripname_result%"${2}"} 24034} 24035 24036# func_opt_split 24037func_opt_split () 24038{ 24039 func_opt_split_opt=${1%%=*} 24040 func_opt_split_arg=${1#*=} 24041} 24042 24043# func_lo2o object 24044func_lo2o () 24045{ 24046 case ${1} in 24047 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 24048 *) func_lo2o_result=${1} ;; 24049 esac 24050} 24051 24052# func_xform libobj-or-source 24053func_xform () 24054{ 24055 func_xform_result=${1%.*}.lo 24056} 24057 24058# func_arith arithmetic-term... 24059func_arith () 24060{ 24061 func_arith_result=$(( $* )) 24062} 24063 24064# func_len string 24065# STRING may not start with a hyphen. 24066func_len () 24067{ 24068 func_len_result=${#1} 24069} 24070 24071_LT_EOF 24072 ;; 24073 *) # Bourne compatible functions. 24074 cat << \_LT_EOF >> "$cfgfile" 24075 24076# func_dirname file append nondir_replacement 24077# Compute the dirname of FILE. If nonempty, add APPEND to the result, 24078# otherwise set result to NONDIR_REPLACEMENT. 24079func_dirname () 24080{ 24081 # Extract subdirectory from the argument. 24082 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 24083 if test "X$func_dirname_result" = "X${1}"; then 24084 func_dirname_result="${3}" 24085 else 24086 func_dirname_result="$func_dirname_result${2}" 24087 fi 24088} 24089 24090# func_basename file 24091func_basename () 24092{ 24093 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 24094} 24095 24096 24097# func_stripname prefix suffix name 24098# strip PREFIX and SUFFIX off of NAME. 24099# PREFIX and SUFFIX must not contain globbing or regex special 24100# characters, hashes, percent signs, but SUFFIX may contain a leading 24101# dot (in which case that matches only a dot). 24102# func_strip_suffix prefix name 24103func_stripname () 24104{ 24105 case ${2} in 24106 .*) func_stripname_result=`$ECHO "X${3}" \ 24107 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 24108 *) func_stripname_result=`$ECHO "X${3}" \ 24109 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 24110 esac 24111} 24112 24113# sed scripts: 24114my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 24115my_sed_long_arg='1s/^-[^=]*=//' 24116 24117# func_opt_split 24118func_opt_split () 24119{ 24120 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 24121 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 24122} 24123 24124# func_lo2o object 24125func_lo2o () 24126{ 24127 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 24128} 24129 24130# func_xform libobj-or-source 24131func_xform () 24132{ 24133 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 24134} 24135 24136# func_arith arithmetic-term... 24137func_arith () 24138{ 24139 func_arith_result=`expr "$@"` 24140} 24141 24142# func_len string 24143# STRING may not start with a hyphen. 24144func_len () 24145{ 24146 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 24147} 24148 24149_LT_EOF 24150esac 24151 24152case $lt_shell_append in 24153 yes) 24154 cat << \_LT_EOF >> "$cfgfile" 24155 24156# func_append var value 24157# Append VALUE to the end of shell variable VAR. 24158func_append () 24159{ 24160 eval "$1+=\$2" 24161} 24162_LT_EOF 24163 ;; 24164 *) 24165 cat << \_LT_EOF >> "$cfgfile" 24166 24167# func_append var value 24168# Append VALUE to the end of shell variable VAR. 24169func_append () 24170{ 24171 eval "$1=\$$1\$2" 24172} 24173 24174_LT_EOF 24175 ;; 24176 esac 24177 24178 24179 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 24180 || (rm -f "$cfgfile"; exit 1) 24181 24182 mv -f "$cfgfile" "$ofile" || 24183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24184 chmod +x "$ofile" 24185 24186 24187 cat <<_LT_EOF >> "$ofile" 24188 24189# ### BEGIN LIBTOOL TAG CONFIG: CXX 24190 24191# The linker used to build libraries. 24192LD=$lt_LD_CXX 24193 24194# Commands used to build an old-style archive. 24195old_archive_cmds=$lt_old_archive_cmds_CXX 24196 24197# A language specific compiler. 24198CC=$lt_compiler_CXX 24199 24200# Is the compiler the GNU compiler? 24201with_gcc=$GCC_CXX 24202 24203# Compiler flag to turn off builtin functions. 24204no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24205 24206# How to pass a linker flag through the compiler. 24207wl=$lt_lt_prog_compiler_wl_CXX 24208 24209# Additional compiler flags for building library objects. 24210pic_flag=$lt_lt_prog_compiler_pic_CXX 24211 24212# Compiler flag to prevent dynamic linking. 24213link_static_flag=$lt_lt_prog_compiler_static_CXX 24214 24215# Does compiler simultaneously support -c and -o options? 24216compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24217 24218# Whether or not to add -lc for building shared libraries. 24219build_libtool_need_lc=$archive_cmds_need_lc_CXX 24220 24221# Whether or not to disallow shared libs when runtime libs are static. 24222allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24223 24224# Compiler flag to allow reflexive dlopens. 24225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24226 24227# Compiler flag to generate shared objects directly from archives. 24228whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24229 24230# Whether the compiler copes with passing no objects directly. 24231compiler_needs_object=$lt_compiler_needs_object_CXX 24232 24233# Create an old-style archive from a shared archive. 24234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24235 24236# Create a temporary old-style archive to link instead of a shared archive. 24237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24238 24239# Commands used to build a shared archive. 24240archive_cmds=$lt_archive_cmds_CXX 24241archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24242 24243# Commands used to build a loadable module if different from building 24244# a shared archive. 24245module_cmds=$lt_module_cmds_CXX 24246module_expsym_cmds=$lt_module_expsym_cmds_CXX 24247 24248# Whether we are building with GNU ld or not. 24249with_gnu_ld=$lt_with_gnu_ld_CXX 24250 24251# Flag that allows shared libraries with undefined symbols to be built. 24252allow_undefined_flag=$lt_allow_undefined_flag_CXX 24253 24254# Flag that enforces no undefined symbols. 24255no_undefined_flag=$lt_no_undefined_flag_CXX 24256 24257# Flag to hardcode \$libdir into a binary during linking. 24258# This must work even if \$libdir does not exist 24259hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24260 24261# If ld is used when linking, flag to hardcode \$libdir into a binary 24262# during linking. This must work even if \$libdir does not exist. 24263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 24264 24265# Whether we need a single "-rpath" flag with a separated argument. 24266hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24267 24268# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24269# DIR into the resulting binary. 24270hardcode_direct=$hardcode_direct_CXX 24271 24272# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24273# DIR into the resulting binary and the resulting library dependency is 24274# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 24275# library is relocated. 24276hardcode_direct_absolute=$hardcode_direct_absolute_CXX 24277 24278# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24279# into the resulting binary. 24280hardcode_minus_L=$hardcode_minus_L_CXX 24281 24282# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24283# into the resulting binary. 24284hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24285 24286# Set to "yes" if building a shared library automatically hardcodes DIR 24287# into the library and all subsequent libraries and executables linked 24288# against it. 24289hardcode_automatic=$hardcode_automatic_CXX 24290 24291# Set to yes if linker adds runtime paths of dependent libraries 24292# to runtime path list. 24293inherit_rpath=$inherit_rpath_CXX 24294 24295# Whether libtool must link a program against all its dependency libraries. 24296link_all_deplibs=$link_all_deplibs_CXX 24297 24298# Fix the shell variable \$srcfile for the compiler. 24299fix_srcfile_path=$lt_fix_srcfile_path_CXX 24300 24301# Set to "yes" if exported symbols are required. 24302always_export_symbols=$always_export_symbols_CXX 24303 24304# The commands to list exported symbols. 24305export_symbols_cmds=$lt_export_symbols_cmds_CXX 24306 24307# Symbols that should not be listed in the preloaded symbols. 24308exclude_expsyms=$lt_exclude_expsyms_CXX 24309 24310# Symbols that must always be exported. 24311include_expsyms=$lt_include_expsyms_CXX 24312 24313# Commands necessary for linking programs (against libraries) with templates. 24314prelink_cmds=$lt_prelink_cmds_CXX 24315 24316# Specify filename containing input files. 24317file_list_spec=$lt_file_list_spec_CXX 24318 24319# How to hardcode a shared library path into an executable. 24320hardcode_action=$hardcode_action_CXX 24321 24322# The directories searched by this compiler when creating a shared library. 24323compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 24324 24325# Dependencies to place before and after the objects being linked to 24326# create a shared library. 24327predep_objects=$lt_predep_objects_CXX 24328postdep_objects=$lt_postdep_objects_CXX 24329predeps=$lt_predeps_CXX 24330postdeps=$lt_postdeps_CXX 24331 24332# The library search path used internally by the compiler when linking 24333# a shared library. 24334compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24335 24336# ### END LIBTOOL TAG CONFIG: CXX 24337_LT_EOF 24338 24339 ;; 24340 24341 esac 24342done # for ac_tag 24343 24344 24345as_fn_exit 0 24346_ACEOF 24347ac_clean_files=$ac_clean_files_save 24348 24349test $ac_write_fail = 0 || 24350 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 24351 24352 24353# configure is writing to config.log, and then calls config.status. 24354# config.status does its own redirection, appending to config.log. 24355# Unfortunately, on DOS this fails, as config.log is still kept open 24356# by configure, so config.status won't be able to write to it; its 24357# output is simply discarded. So we exec the FD to /dev/null, 24358# effectively closing config.log, so it can be properly (re)opened and 24359# appended to by config.status. When coming back to configure, we 24360# need to make the FD available again. 24361if test "$no_create" != yes; then 24362 ac_cs_success=: 24363 ac_config_status_args= 24364 test "$silent" = yes && 24365 ac_config_status_args="$ac_config_status_args --quiet" 24366 exec 5>/dev/null 24367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24368 exec 5>>config.log 24369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24370 # would make configure fail if this is the last instruction. 24371 $ac_cs_success || as_fn_exit $? 24372fi 24373if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24375$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24376fi 24377 24378