1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for sqlite 3.6.1. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$lt_ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255ECHO=${lt_ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $ECHO works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<_LT_EOF 274$* 275_LT_EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$lt_ECHO"; then 284 if test "X${echo_test_string+set}" != Xset; then 285 # find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 290 then 291 break 292 fi 293 done 294 fi 295 296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 298 test "X$echo_testing_string" = "X$echo_test_string"; then 299 : 300 else 301 # The Solaris, AIX, and Digital Unix default echo programs unquote 302 # backslashes. This makes it impossible to quote backslashes using 303 # echo "$something" | sed 's/\\/\\\\/g' 304 # 305 # So, first we look for a working echo in the user's PATH. 306 307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 308 for dir in $PATH /usr/ucb; do 309 IFS="$lt_save_ifs" 310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 313 test "X$echo_testing_string" = "X$echo_test_string"; then 314 ECHO="$dir/echo" 315 break 316 fi 317 done 318 IFS="$lt_save_ifs" 319 320 if test "X$ECHO" = Xecho; then 321 # We didn't find a better echo, so look for alternatives. 322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 324 test "X$echo_testing_string" = "X$echo_test_string"; then 325 # This shell has a builtin print -r that does the trick. 326 ECHO='print -r' 327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 328 test "X$CONFIG_SHELL" != X/bin/ksh; then 329 # If we have ksh, try running configure again with it. 330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 331 export ORIGINAL_CONFIG_SHELL 332 CONFIG_SHELL=/bin/ksh 333 export CONFIG_SHELL 334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 335 else 336 # Try using printf. 337 ECHO='printf %s\n' 338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 340 test "X$echo_testing_string" = "X$echo_test_string"; then 341 # Cool, printf works 342 : 343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 344 test "X$echo_testing_string" = 'X\t' && 345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 346 test "X$echo_testing_string" = "X$echo_test_string"; then 347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 348 export CONFIG_SHELL 349 SHELL="$CONFIG_SHELL" 350 export SHELL 351 ECHO="$CONFIG_SHELL $0 --fallback-echo" 352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 ECHO="$CONFIG_SHELL $0 --fallback-echo" 357 else 358 # maybe with a smaller string... 359 prev=: 360 361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 363 then 364 break 365 fi 366 prev="$cmd" 367 done 368 369 if test "$prev" != 'sed 50q "$0"'; then 370 echo_test_string=`eval $prev` 371 export echo_test_string 372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 373 else 374 # Oops. We lost completely, so just stick with echo. 375 ECHO=echo 376 fi 377 fi 378 fi 379 fi 380 fi 381fi 382 383# Copy echo and quote the copy suitably for passing to libtool from 384# the Makefile, instead of quoting the original, which is used later. 385lt_ECHO=$ECHO 386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 388fi 389 390 391 392 393# Name of the host. 394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 395# so uname gets run too. 396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 397 398exec 6>&1 399 400# 401# Initializations. 402# 403ac_default_prefix=/usr/local 404ac_config_libobj_dir=. 405cross_compiling=no 406subdirs= 407MFLAGS= 408MAKEFLAGS= 409SHELL=${CONFIG_SHELL-/bin/sh} 410 411# Maximum number of lines to put in a shell here document. 412# This variable seems obsolete. It should probably be removed, and 413# only ac_max_sed_lines should be used. 414: ${ac_max_here_lines=38} 415 416# Identity of this package. 417PACKAGE_NAME='sqlite' 418PACKAGE_TARNAME='sqlite' 419PACKAGE_VERSION='3.6.1' 420PACKAGE_STRING='sqlite 3.6.1' 421PACKAGE_BUGREPORT='' 422 423# Factoring default headers for most tests. 424ac_includes_default="\ 425#include <stdio.h> 426#if HAVE_SYS_TYPES_H 427# include <sys/types.h> 428#endif 429#if HAVE_SYS_STAT_H 430# include <sys/stat.h> 431#endif 432#if STDC_HEADERS 433# include <stdlib.h> 434# include <stddef.h> 435#else 436# if HAVE_STDLIB_H 437# include <stdlib.h> 438# endif 439#endif 440#if HAVE_STRING_H 441# if !STDC_HEADERS && HAVE_MEMORY_H 442# include <memory.h> 443# endif 444# include <string.h> 445#endif 446#if HAVE_STRINGS_H 447# include <strings.h> 448#endif 449#if HAVE_INTTYPES_H 450# include <inttypes.h> 451#else 452# if HAVE_STDINT_H 453# include <stdint.h> 454# endif 455#endif 456#if HAVE_UNISTD_H 457# include <unistd.h> 458#endif" 459 460ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK TCLSH_CMD program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC SQLITE_THREADSAFE XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT SQLITE_OS_UNIX SQLITE_OS_WIN SQLITE_OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG USE_AMALGAMATION OPT_FEATURE_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS' 461ac_subst_files='' 462 463# Initialize some variables set by options. 464ac_init_help= 465ac_init_version=false 466# The variables have the same names as the options, with 467# dashes changed to underlines. 468cache_file=/dev/null 469exec_prefix=NONE 470no_create= 471no_recursion= 472prefix=NONE 473program_prefix=NONE 474program_suffix=NONE 475program_transform_name=s,x,x, 476silent= 477site= 478srcdir= 479verbose= 480x_includes=NONE 481x_libraries=NONE 482 483# Installation directory options. 484# These are left unexpanded so users can "make install exec_prefix=/foo" 485# and all the variables that are supposed to be based on exec_prefix 486# by default will actually change. 487# Use braces instead of parens because sh, perl, etc. also accept them. 488bindir='${exec_prefix}/bin' 489sbindir='${exec_prefix}/sbin' 490libexecdir='${exec_prefix}/libexec' 491datadir='${prefix}/share' 492sysconfdir='${prefix}/etc' 493sharedstatedir='${prefix}/com' 494localstatedir='${prefix}/var' 495libdir='${exec_prefix}/lib' 496includedir='${prefix}/include' 497oldincludedir='/usr/include' 498infodir='${prefix}/info' 499mandir='${prefix}/man' 500 501ac_prev= 502for ac_option 503do 504 # If the previous option needs an argument, assign it. 505 if test -n "$ac_prev"; then 506 eval "$ac_prev=\$ac_option" 507 ac_prev= 508 continue 509 fi 510 511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 512 513 # Accept the important Cygnus configure options, so we can diagnose typos. 514 515 case $ac_option in 516 517 -bindir | --bindir | --bindi | --bind | --bin | --bi) 518 ac_prev=bindir ;; 519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 520 bindir=$ac_optarg ;; 521 522 -build | --build | --buil | --bui | --bu) 523 ac_prev=build_alias ;; 524 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 525 build_alias=$ac_optarg ;; 526 527 -cache-file | --cache-file | --cache-fil | --cache-fi \ 528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 529 ac_prev=cache_file ;; 530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 532 cache_file=$ac_optarg ;; 533 534 --config-cache | -C) 535 cache_file=config.cache ;; 536 537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 538 ac_prev=datadir ;; 539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 540 | --da=*) 541 datadir=$ac_optarg ;; 542 543 -disable-* | --disable-*) 544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 545 # Reject names that are not valid shell variable names. 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 548 { (exit 1); exit 1; }; } 549 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 550 eval "enable_$ac_feature=no" ;; 551 552 -enable-* | --enable-*) 553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 554 # Reject names that are not valid shell variable names. 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 557 { (exit 1); exit 1; }; } 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 559 case $ac_option in 560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 561 *) ac_optarg=yes ;; 562 esac 563 eval "enable_$ac_feature='$ac_optarg'" ;; 564 565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 567 | --exec | --exe | --ex) 568 ac_prev=exec_prefix ;; 569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 571 | --exec=* | --exe=* | --ex=*) 572 exec_prefix=$ac_optarg ;; 573 574 -gas | --gas | --ga | --g) 575 # Obsolete; use --with-gas. 576 with_gas=yes ;; 577 578 -help | --help | --hel | --he | -h) 579 ac_init_help=long ;; 580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 581 ac_init_help=recursive ;; 582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 583 ac_init_help=short ;; 584 585 -host | --host | --hos | --ho) 586 ac_prev=host_alias ;; 587 -host=* | --host=* | --hos=* | --ho=*) 588 host_alias=$ac_optarg ;; 589 590 -includedir | --includedir | --includedi | --included | --include \ 591 | --includ | --inclu | --incl | --inc) 592 ac_prev=includedir ;; 593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 594 | --includ=* | --inclu=* | --incl=* | --inc=*) 595 includedir=$ac_optarg ;; 596 597 -infodir | --infodir | --infodi | --infod | --info | --inf) 598 ac_prev=infodir ;; 599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 600 infodir=$ac_optarg ;; 601 602 -libdir | --libdir | --libdi | --libd) 603 ac_prev=libdir ;; 604 -libdir=* | --libdir=* | --libdi=* | --libd=*) 605 libdir=$ac_optarg ;; 606 607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 608 | --libexe | --libex | --libe) 609 ac_prev=libexecdir ;; 610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 611 | --libexe=* | --libex=* | --libe=*) 612 libexecdir=$ac_optarg ;; 613 614 -localstatedir | --localstatedir | --localstatedi | --localstated \ 615 | --localstate | --localstat | --localsta | --localst \ 616 | --locals | --local | --loca | --loc | --lo) 617 ac_prev=localstatedir ;; 618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 621 localstatedir=$ac_optarg ;; 622 623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 624 ac_prev=mandir ;; 625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 626 mandir=$ac_optarg ;; 627 628 -nfp | --nfp | --nf) 629 # Obsolete; use --without-fp. 630 with_fp=no ;; 631 632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 633 | --no-cr | --no-c | -n) 634 no_create=yes ;; 635 636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 638 no_recursion=yes ;; 639 640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 642 | --oldin | --oldi | --old | --ol | --o) 643 ac_prev=oldincludedir ;; 644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 647 oldincludedir=$ac_optarg ;; 648 649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 650 ac_prev=prefix ;; 651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 652 prefix=$ac_optarg ;; 653 654 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 655 | --program-pre | --program-pr | --program-p) 656 ac_prev=program_prefix ;; 657 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 659 program_prefix=$ac_optarg ;; 660 661 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 662 | --program-suf | --program-su | --program-s) 663 ac_prev=program_suffix ;; 664 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 666 program_suffix=$ac_optarg ;; 667 668 -program-transform-name | --program-transform-name \ 669 | --program-transform-nam | --program-transform-na \ 670 | --program-transform-n | --program-transform- \ 671 | --program-transform | --program-transfor \ 672 | --program-transfo | --program-transf \ 673 | --program-trans | --program-tran \ 674 | --progr-tra | --program-tr | --program-t) 675 ac_prev=program_transform_name ;; 676 -program-transform-name=* | --program-transform-name=* \ 677 | --program-transform-nam=* | --program-transform-na=* \ 678 | --program-transform-n=* | --program-transform-=* \ 679 | --program-transform=* | --program-transfor=* \ 680 | --program-transfo=* | --program-transf=* \ 681 | --program-trans=* | --program-tran=* \ 682 | --progr-tra=* | --program-tr=* | --program-t=*) 683 program_transform_name=$ac_optarg ;; 684 685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 686 | -silent | --silent | --silen | --sile | --sil) 687 silent=yes ;; 688 689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 690 ac_prev=sbindir ;; 691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 692 | --sbi=* | --sb=*) 693 sbindir=$ac_optarg ;; 694 695 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 697 | --sharedst | --shareds | --shared | --share | --shar \ 698 | --sha | --sh) 699 ac_prev=sharedstatedir ;; 700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 703 | --sha=* | --sh=*) 704 sharedstatedir=$ac_optarg ;; 705 706 -site | --site | --sit) 707 ac_prev=site ;; 708 -site=* | --site=* | --sit=*) 709 site=$ac_optarg ;; 710 711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 712 ac_prev=srcdir ;; 713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 714 srcdir=$ac_optarg ;; 715 716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 717 | --syscon | --sysco | --sysc | --sys | --sy) 718 ac_prev=sysconfdir ;; 719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 721 sysconfdir=$ac_optarg ;; 722 723 -target | --target | --targe | --targ | --tar | --ta | --t) 724 ac_prev=target_alias ;; 725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 726 target_alias=$ac_optarg ;; 727 728 -v | -verbose | --verbose | --verbos | --verbo | --verb) 729 verbose=yes ;; 730 731 -version | --version | --versio | --versi | --vers | -V) 732 ac_init_version=: ;; 733 734 -with-* | --with-*) 735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 736 # Reject names that are not valid shell variable names. 737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 738 { echo "$as_me: error: invalid package name: $ac_package" >&2 739 { (exit 1); exit 1; }; } 740 ac_package=`echo $ac_package| sed 's/-/_/g'` 741 case $ac_option in 742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 743 *) ac_optarg=yes ;; 744 esac 745 eval "with_$ac_package='$ac_optarg'" ;; 746 747 -without-* | --without-*) 748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 749 # Reject names that are not valid shell variable names. 750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 751 { echo "$as_me: error: invalid package name: $ac_package" >&2 752 { (exit 1); exit 1; }; } 753 ac_package=`echo $ac_package | sed 's/-/_/g'` 754 eval "with_$ac_package=no" ;; 755 756 --x) 757 # Obsolete; use --with-x. 758 with_x=yes ;; 759 760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 761 | --x-incl | --x-inc | --x-in | --x-i) 762 ac_prev=x_includes ;; 763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 765 x_includes=$ac_optarg ;; 766 767 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 769 ac_prev=x_libraries ;; 770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 772 x_libraries=$ac_optarg ;; 773 774 -*) { echo "$as_me: error: unrecognized option: $ac_option 775Try \`$0 --help' for more information." >&2 776 { (exit 1); exit 1; }; } 777 ;; 778 779 *=*) 780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 784 { (exit 1); exit 1; }; } 785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 786 eval "$ac_envvar='$ac_optarg'" 787 export $ac_envvar ;; 788 789 *) 790 # FIXME: should be removed in autoconf 3.0. 791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 795 ;; 796 797 esac 798done 799 800if test -n "$ac_prev"; then 801 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 802 { echo "$as_me: error: missing argument to $ac_option" >&2 803 { (exit 1); exit 1; }; } 804fi 805 806# Be sure to have absolute paths. 807for ac_var in exec_prefix prefix 808do 809 eval ac_val=$`echo $ac_var` 810 case $ac_val in 811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 813 { (exit 1); exit 1; }; };; 814 esac 815done 816 817# Be sure to have absolute paths. 818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 819 localstatedir libdir includedir oldincludedir infodir mandir 820do 821 eval ac_val=$`echo $ac_var` 822 case $ac_val in 823 [\\/$]* | ?:[\\/]* ) ;; 824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 825 { (exit 1); exit 1; }; };; 826 esac 827done 828 829# There might be people who depend on the old broken behavior: `$host' 830# used to hold the argument of --host etc. 831# FIXME: To remove some day. 832build=$build_alias 833host=$host_alias 834target=$target_alias 835 836# FIXME: To remove some day. 837if test "x$host_alias" != x; then 838 if test "x$build_alias" = x; then 839 cross_compiling=maybe 840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 841 If a cross compiler is detected then cross compile mode will be used." >&2 842 elif test "x$build_alias" != "x$host_alias"; then 843 cross_compiling=yes 844 fi 845fi 846 847ac_tool_prefix= 848test -n "$host_alias" && ac_tool_prefix=$host_alias- 849 850test "$silent" = yes && exec 6>/dev/null 851 852 853# Find the source files, if location was not specified. 854if test -z "$srcdir"; then 855 ac_srcdir_defaulted=yes 856 # Try the directory containing this script, then its parent. 857 ac_confdir=`(dirname "$0") 2>/dev/null || 858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 859 X"$0" : 'X\(//\)[^/]' \| \ 860 X"$0" : 'X\(//\)$' \| \ 861 X"$0" : 'X\(/\)' \| \ 862 . : '\(.\)' 2>/dev/null || 863echo X"$0" | 864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 865 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 866 /^X\(\/\/\)$/{ s//\1/; q; } 867 /^X\(\/\).*/{ s//\1/; q; } 868 s/.*/./; q'` 869 srcdir=$ac_confdir 870 if test ! -r $srcdir/$ac_unique_file; then 871 srcdir=.. 872 fi 873else 874 ac_srcdir_defaulted=no 875fi 876if test ! -r $srcdir/$ac_unique_file; then 877 if test "$ac_srcdir_defaulted" = yes; then 878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 879 { (exit 1); exit 1; }; } 880 else 881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 882 { (exit 1); exit 1; }; } 883 fi 884fi 885(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 887 { (exit 1); exit 1; }; } 888srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 889ac_env_build_alias_set=${build_alias+set} 890ac_env_build_alias_value=$build_alias 891ac_cv_env_build_alias_set=${build_alias+set} 892ac_cv_env_build_alias_value=$build_alias 893ac_env_host_alias_set=${host_alias+set} 894ac_env_host_alias_value=$host_alias 895ac_cv_env_host_alias_set=${host_alias+set} 896ac_cv_env_host_alias_value=$host_alias 897ac_env_target_alias_set=${target_alias+set} 898ac_env_target_alias_value=$target_alias 899ac_cv_env_target_alias_set=${target_alias+set} 900ac_cv_env_target_alias_value=$target_alias 901ac_env_CC_set=${CC+set} 902ac_env_CC_value=$CC 903ac_cv_env_CC_set=${CC+set} 904ac_cv_env_CC_value=$CC 905ac_env_CFLAGS_set=${CFLAGS+set} 906ac_env_CFLAGS_value=$CFLAGS 907ac_cv_env_CFLAGS_set=${CFLAGS+set} 908ac_cv_env_CFLAGS_value=$CFLAGS 909ac_env_LDFLAGS_set=${LDFLAGS+set} 910ac_env_LDFLAGS_value=$LDFLAGS 911ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 912ac_cv_env_LDFLAGS_value=$LDFLAGS 913ac_env_CPPFLAGS_set=${CPPFLAGS+set} 914ac_env_CPPFLAGS_value=$CPPFLAGS 915ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 916ac_cv_env_CPPFLAGS_value=$CPPFLAGS 917ac_env_CPP_set=${CPP+set} 918ac_env_CPP_value=$CPP 919ac_cv_env_CPP_set=${CPP+set} 920ac_cv_env_CPP_value=$CPP 921 922# 923# Report the --help message. 924# 925if test "$ac_init_help" = "long"; then 926 # Omit some internal or obsolete options to make the list less imposing. 927 # This message is too long to be a string in the A/UX 3.1 sh. 928 cat <<_ACEOF 929\`configure' configures sqlite 3.6.1 to adapt to many kinds of systems. 930 931Usage: $0 [OPTION]... [VAR=VALUE]... 932 933To assign environment variables (e.g., CC, CFLAGS...), specify them as 934VAR=VALUE. See below for descriptions of some of the useful variables. 935 936Defaults for the options are specified in brackets. 937 938Configuration: 939 -h, --help display this help and exit 940 --help=short display options specific to this package 941 --help=recursive display the short help of all the included packages 942 -V, --version display version information and exit 943 -q, --quiet, --silent do not print \`checking...' messages 944 --cache-file=FILE cache test results in FILE [disabled] 945 -C, --config-cache alias for \`--cache-file=config.cache' 946 -n, --no-create do not create output files 947 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 948 949_ACEOF 950 951 cat <<_ACEOF 952Installation directories: 953 --prefix=PREFIX install architecture-independent files in PREFIX 954 [$ac_default_prefix] 955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 956 [PREFIX] 957 958By default, \`make install' will install all the files in 959\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 960an installation prefix other than \`$ac_default_prefix' using \`--prefix', 961for instance \`--prefix=\$HOME'. 962 963For better control, use the options below. 964 965Fine tuning of the installation directories: 966 --bindir=DIR user executables [EPREFIX/bin] 967 --sbindir=DIR system admin executables [EPREFIX/sbin] 968 --libexecdir=DIR program executables [EPREFIX/libexec] 969 --datadir=DIR read-only architecture-independent data [PREFIX/share] 970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 972 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 973 --libdir=DIR object code libraries [EPREFIX/lib] 974 --includedir=DIR C header files [PREFIX/include] 975 --oldincludedir=DIR C header files for non-gcc [/usr/include] 976 --infodir=DIR info documentation [PREFIX/info] 977 --mandir=DIR man documentation [PREFIX/man] 978_ACEOF 979 980 cat <<\_ACEOF 981 982System types: 983 --build=BUILD configure for building on BUILD [guessed] 984 --host=HOST cross-compile to build programs to run on HOST [BUILD] 985_ACEOF 986fi 987 988if test -n "$ac_init_help"; then 989 case $ac_init_help in 990 short | recursive ) echo "Configuration of sqlite 3.6.1:";; 991 esac 992 cat <<\_ACEOF 993 994Optional Features: 995 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 996 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 997 --enable-shared[=PKGS] 998 build shared libraries [default=yes] 999 --enable-static[=PKGS] 1000 build static libraries [default=yes] 1001 --enable-fast-install[=PKGS] 1002 optimize for fast installation [default=yes] 1003 --disable-libtool-lock avoid locking (might break parallel builds) 1004 --disable-largefile omit support for large files 1005 --enable-threadsafe Support threadsafe operation 1006 --enable-cross-thread-connections 1007 Allow connection sharing across threads 1008 --enable-threads-override-locks 1009 Threads can override each others locks 1010 --enable-releasemode Support libtool link to release mode 1011 --enable-tempstore Use an in-ram database for temporary tables 1012 (never,no,yes,always) 1013 --disable-tcl do not build TCL extension 1014 --disable-readline disable readline support [default=detect] 1015 --enable-debug enable debugging & verbose explain 1016 --disable-amalgamation Disable the amalgamation and instead build all files 1017 separately 1018 --enable-load-extension Enable loading of external extensions 1019 --enable-gcov Enable coverage testing using gcov 1020 1021Optional Packages: 1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1024 --with-pic try to use only PIC/non-PIC objects [default=use 1025 both] 1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1027 --with-hints=FILE Read configuration options from FILE 1028 --with-tcl=DIR directory containing tcl configuration 1029 (tclConfig.sh) 1030 --with-readline-lib specify readline library 1031 --with-readline-inc specify readline include paths 1032 1033Some influential environment variables: 1034 CC C compiler command 1035 CFLAGS C compiler flags 1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1037 nonstandard directory <lib dir> 1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1039 headers in a nonstandard directory <include dir> 1040 CPP C preprocessor 1041 1042Use these variables to override the choices made by `configure' or to help 1043it to find libraries and programs with nonstandard names/locations. 1044 1045_ACEOF 1046fi 1047 1048if test "$ac_init_help" = "recursive"; then 1049 # If there are subdirs, report their specific --help. 1050 ac_popdir=`pwd` 1051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1052 test -d $ac_dir || continue 1053 ac_builddir=. 1054 1055if test "$ac_dir" != .; then 1056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1057 # A "../" for each directory in $ac_dir_suffix. 1058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1059else 1060 ac_dir_suffix= ac_top_builddir= 1061fi 1062 1063case $srcdir in 1064 .) # No --srcdir option. We are building in place. 1065 ac_srcdir=. 1066 if test -z "$ac_top_builddir"; then 1067 ac_top_srcdir=. 1068 else 1069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1070 fi ;; 1071 [\\/]* | ?:[\\/]* ) # Absolute path. 1072 ac_srcdir=$srcdir$ac_dir_suffix; 1073 ac_top_srcdir=$srcdir ;; 1074 *) # Relative path. 1075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1076 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1077esac 1078 1079# Do not use `cd foo && pwd` to compute absolute paths, because 1080# the directories may not exist. 1081case `pwd` in 1082.) ac_abs_builddir="$ac_dir";; 1083*) 1084 case "$ac_dir" in 1085 .) ac_abs_builddir=`pwd`;; 1086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1087 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1088 esac;; 1089esac 1090case $ac_abs_builddir in 1091.) ac_abs_top_builddir=${ac_top_builddir}.;; 1092*) 1093 case ${ac_top_builddir}. in 1094 .) ac_abs_top_builddir=$ac_abs_builddir;; 1095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1097 esac;; 1098esac 1099case $ac_abs_builddir in 1100.) ac_abs_srcdir=$ac_srcdir;; 1101*) 1102 case $ac_srcdir in 1103 .) ac_abs_srcdir=$ac_abs_builddir;; 1104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1106 esac;; 1107esac 1108case $ac_abs_builddir in 1109.) ac_abs_top_srcdir=$ac_top_srcdir;; 1110*) 1111 case $ac_top_srcdir in 1112 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1115 esac;; 1116esac 1117 1118 cd $ac_dir 1119 # Check for guested configure; otherwise get Cygnus style configure. 1120 if test -f $ac_srcdir/configure.gnu; then 1121 echo 1122 $SHELL $ac_srcdir/configure.gnu --help=recursive 1123 elif test -f $ac_srcdir/configure; then 1124 echo 1125 $SHELL $ac_srcdir/configure --help=recursive 1126 elif test -f $ac_srcdir/configure.ac || 1127 test -f $ac_srcdir/configure.in; then 1128 echo 1129 $ac_configure --help 1130 else 1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1132 fi 1133 cd $ac_popdir 1134 done 1135fi 1136 1137test -n "$ac_init_help" && exit 0 1138if $ac_init_version; then 1139 cat <<\_ACEOF 1140sqlite configure 3.6.1 1141generated by GNU Autoconf 2.59 1142 1143Copyright (C) 2003 Free Software Foundation, Inc. 1144This configure script is free software; the Free Software Foundation 1145gives unlimited permission to copy, distribute and modify it. 1146_ACEOF 1147 exit 0 1148fi 1149exec 5>config.log 1150cat >&5 <<_ACEOF 1151This file contains any messages produced by compilers while 1152running configure, to aid debugging if configure makes a mistake. 1153 1154It was created by sqlite $as_me 3.6.1, which was 1155generated by GNU Autoconf 2.59. Invocation command line was 1156 1157 $ $0 $@ 1158 1159_ACEOF 1160{ 1161cat <<_ASUNAME 1162## --------- ## 1163## Platform. ## 1164## --------- ## 1165 1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1167uname -m = `(uname -m) 2>/dev/null || echo unknown` 1168uname -r = `(uname -r) 2>/dev/null || echo unknown` 1169uname -s = `(uname -s) 2>/dev/null || echo unknown` 1170uname -v = `(uname -v) 2>/dev/null || echo unknown` 1171 1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1174 1175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1178hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1182 1183_ASUNAME 1184 1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1186for as_dir in $PATH 1187do 1188 IFS=$as_save_IFS 1189 test -z "$as_dir" && as_dir=. 1190 echo "PATH: $as_dir" 1191done 1192 1193} >&5 1194 1195cat >&5 <<_ACEOF 1196 1197 1198## ----------- ## 1199## Core tests. ## 1200## ----------- ## 1201 1202_ACEOF 1203 1204 1205# Keep a trace of the command line. 1206# Strip out --no-create and --no-recursion so they do not pile up. 1207# Strip out --silent because we don't want to record it for future runs. 1208# Also quote any args containing shell meta-characters. 1209# Make two passes to allow for proper duplicate-argument suppression. 1210ac_configure_args= 1211ac_configure_args0= 1212ac_configure_args1= 1213ac_sep= 1214ac_must_keep_next=false 1215for ac_pass in 1 2 1216do 1217 for ac_arg 1218 do 1219 case $ac_arg in 1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 continue ;; 1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1226 esac 1227 case $ac_pass in 1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1229 2) 1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1231 if test $ac_must_keep_next = true; then 1232 ac_must_keep_next=false # Got value, back to normal. 1233 else 1234 case $ac_arg in 1235 *=* | --config-cache | -C | -disable-* | --disable-* \ 1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1238 | -with-* | --with-* | -without-* | --without-* | --x) 1239 case "$ac_configure_args0 " in 1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1241 esac 1242 ;; 1243 -* ) ac_must_keep_next=true ;; 1244 esac 1245 fi 1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1247 # Get rid of the leading space. 1248 ac_sep=" " 1249 ;; 1250 esac 1251 done 1252done 1253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1255 1256# When interrupted or exit'd, cleanup temporary files, and complete 1257# config.log. We remove comments because anyway the quotes in there 1258# would cause problems or look ugly. 1259# WARNING: Be sure not to use single quotes in there, as some shells, 1260# such as our DU 5.0 friend, will then `close' the trap. 1261trap 'exit_status=$? 1262 # Save into config.log some information that might help in debugging. 1263 { 1264 echo 1265 1266 cat <<\_ASBOX 1267## ---------------- ## 1268## Cache variables. ## 1269## ---------------- ## 1270_ASBOX 1271 echo 1272 # The following way of writing the cache mishandles newlines in values, 1273{ 1274 (set) 2>&1 | 1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1276 *ac_space=\ *) 1277 sed -n \ 1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1280 ;; 1281 *) 1282 sed -n \ 1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1284 ;; 1285 esac; 1286} 1287 echo 1288 1289 cat <<\_ASBOX 1290## ----------------- ## 1291## Output variables. ## 1292## ----------------- ## 1293_ASBOX 1294 echo 1295 for ac_var in $ac_subst_vars 1296 do 1297 eval ac_val=$`echo $ac_var` 1298 echo "$ac_var='"'"'$ac_val'"'"'" 1299 done | sort 1300 echo 1301 1302 if test -n "$ac_subst_files"; then 1303 cat <<\_ASBOX 1304## ------------- ## 1305## Output files. ## 1306## ------------- ## 1307_ASBOX 1308 echo 1309 for ac_var in $ac_subst_files 1310 do 1311 eval ac_val=$`echo $ac_var` 1312 echo "$ac_var='"'"'$ac_val'"'"'" 1313 done | sort 1314 echo 1315 fi 1316 1317 if test -s confdefs.h; then 1318 cat <<\_ASBOX 1319## ----------- ## 1320## confdefs.h. ## 1321## ----------- ## 1322_ASBOX 1323 echo 1324 sed "/^$/d" confdefs.h | sort 1325 echo 1326 fi 1327 test "$ac_signal" != 0 && 1328 echo "$as_me: caught signal $ac_signal" 1329 echo "$as_me: exit $exit_status" 1330 } >&5 1331 rm -f core *.core && 1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1333 exit $exit_status 1334 ' 0 1335for ac_signal in 1 2 13 15; do 1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1337done 1338ac_signal=0 1339 1340# confdefs.h avoids OS command line length limits that DEFS can exceed. 1341rm -rf conftest* confdefs.h 1342# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1343echo >confdefs.h 1344 1345# Predefined preprocessor variables. 1346 1347cat >>confdefs.h <<_ACEOF 1348#define PACKAGE_NAME "$PACKAGE_NAME" 1349_ACEOF 1350 1351 1352cat >>confdefs.h <<_ACEOF 1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1354_ACEOF 1355 1356 1357cat >>confdefs.h <<_ACEOF 1358#define PACKAGE_VERSION "$PACKAGE_VERSION" 1359_ACEOF 1360 1361 1362cat >>confdefs.h <<_ACEOF 1363#define PACKAGE_STRING "$PACKAGE_STRING" 1364_ACEOF 1365 1366 1367cat >>confdefs.h <<_ACEOF 1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1369_ACEOF 1370 1371 1372# Let the site file select an alternate cache file if it wants to. 1373# Prefer explicitly selected file to automatically selected ones. 1374if test -z "$CONFIG_SITE"; then 1375 if test "x$prefix" != xNONE; then 1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1377 else 1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1379 fi 1380fi 1381for ac_site_file in $CONFIG_SITE; do 1382 if test -r "$ac_site_file"; then 1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1384echo "$as_me: loading site script $ac_site_file" >&6;} 1385 sed 's/^/| /' "$ac_site_file" >&5 1386 . "$ac_site_file" 1387 fi 1388done 1389 1390if test -r "$cache_file"; then 1391 # Some versions of bash will fail to source /dev/null (special 1392 # files actually), so we avoid doing that. 1393 if test -f "$cache_file"; then 1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1395echo "$as_me: loading cache $cache_file" >&6;} 1396 case $cache_file in 1397 [\\/]* | ?:[\\/]* ) . $cache_file;; 1398 *) . ./$cache_file;; 1399 esac 1400 fi 1401else 1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1403echo "$as_me: creating cache $cache_file" >&6;} 1404 >$cache_file 1405fi 1406 1407# Check that the precious variables saved in the cache have kept the same 1408# value. 1409ac_cache_corrupted=false 1410for ac_var in `(set) 2>&1 | 1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1413 eval ac_new_set=\$ac_env_${ac_var}_set 1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1415 eval ac_new_val="\$ac_env_${ac_var}_value" 1416 case $ac_old_set,$ac_new_set in 1417 set,) 1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1420 ac_cache_corrupted=: ;; 1421 ,set) 1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1424 ac_cache_corrupted=: ;; 1425 ,);; 1426 *) 1427 if test "x$ac_old_val" != "x$ac_new_val"; then 1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1431echo "$as_me: former value: $ac_old_val" >&2;} 1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1433echo "$as_me: current value: $ac_new_val" >&2;} 1434 ac_cache_corrupted=: 1435 fi;; 1436 esac 1437 # Pass precious variables to config.status. 1438 if test "$ac_new_set" = set; then 1439 case $ac_new_val in 1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1442 *) ac_arg=$ac_var=$ac_new_val ;; 1443 esac 1444 case " $ac_configure_args " in 1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1447 esac 1448 fi 1449done 1450if $ac_cache_corrupted; then 1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1452echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1455 { (exit 1); exit 1; }; } 1456fi 1457 1458ac_ext=c 1459ac_cpp='$CPP $CPPFLAGS' 1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1462ac_compiler_gnu=$ac_cv_c_compiler_gnu 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491# The following RCS revision string applies to configure.in 1492# $Revision: 1.65 $ 1493 1494######### 1495# Programs needed 1496# 1497case `pwd` in 1498 *\ * | *\ *) 1499 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 1500echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 1501esac 1502 1503 1504 1505macro_version='2.2.4' 1506macro_revision='1.2976' 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520ltmain="$ac_aux_dir/ltmain.sh" 1521 1522ac_aux_dir= 1523for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1524 if test -f $ac_dir/install-sh; then 1525 ac_aux_dir=$ac_dir 1526 ac_install_sh="$ac_aux_dir/install-sh -c" 1527 break 1528 elif test -f $ac_dir/install.sh; then 1529 ac_aux_dir=$ac_dir 1530 ac_install_sh="$ac_aux_dir/install.sh -c" 1531 break 1532 elif test -f $ac_dir/shtool; then 1533 ac_aux_dir=$ac_dir 1534 ac_install_sh="$ac_aux_dir/shtool install -c" 1535 break 1536 fi 1537done 1538if test -z "$ac_aux_dir"; then 1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1540echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1541 { (exit 1); exit 1; }; } 1542fi 1543ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1544ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1546 1547# Make sure we can run config.sub. 1548$ac_config_sub sun4 >/dev/null 2>&1 || 1549 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1550echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1551 { (exit 1); exit 1; }; } 1552 1553echo "$as_me:$LINENO: checking build system type" >&5 1554echo $ECHO_N "checking build system type... $ECHO_C" >&6 1555if test "${ac_cv_build+set}" = set; then 1556 echo $ECHO_N "(cached) $ECHO_C" >&6 1557else 1558 ac_cv_build_alias=$build_alias 1559test -z "$ac_cv_build_alias" && 1560 ac_cv_build_alias=`$ac_config_guess` 1561test -z "$ac_cv_build_alias" && 1562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1563echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1564 { (exit 1); exit 1; }; } 1565ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1567echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1568 { (exit 1); exit 1; }; } 1569 1570fi 1571echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1572echo "${ECHO_T}$ac_cv_build" >&6 1573build=$ac_cv_build 1574build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1575build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1576build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1577 1578 1579echo "$as_me:$LINENO: checking host system type" >&5 1580echo $ECHO_N "checking host system type... $ECHO_C" >&6 1581if test "${ac_cv_host+set}" = set; then 1582 echo $ECHO_N "(cached) $ECHO_C" >&6 1583else 1584 ac_cv_host_alias=$host_alias 1585test -z "$ac_cv_host_alias" && 1586 ac_cv_host_alias=$ac_cv_build_alias 1587ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1589echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1590 { (exit 1); exit 1; }; } 1591 1592fi 1593echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1594echo "${ECHO_T}$ac_cv_host" >&6 1595host=$ac_cv_host 1596host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1597host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1598host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1599 1600 1601ac_ext=c 1602ac_cpp='$CPP $CPPFLAGS' 1603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1605ac_compiler_gnu=$ac_cv_c_compiler_gnu 1606if test -n "$ac_tool_prefix"; then 1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1608set dummy ${ac_tool_prefix}gcc; ac_word=$2 1609echo "$as_me:$LINENO: checking for $ac_word" >&5 1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1611if test "${ac_cv_prog_CC+set}" = set; then 1612 echo $ECHO_N "(cached) $ECHO_C" >&6 1613else 1614 if test -n "$CC"; then 1615 ac_cv_prog_CC="$CC" # Let the user override the test. 1616else 1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1618for as_dir in $PATH 1619do 1620 IFS=$as_save_IFS 1621 test -z "$as_dir" && as_dir=. 1622 for ac_exec_ext in '' $ac_executable_extensions; do 1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1624 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1626 break 2 1627 fi 1628done 1629done 1630 1631fi 1632fi 1633CC=$ac_cv_prog_CC 1634if test -n "$CC"; then 1635 echo "$as_me:$LINENO: result: $CC" >&5 1636echo "${ECHO_T}$CC" >&6 1637else 1638 echo "$as_me:$LINENO: result: no" >&5 1639echo "${ECHO_T}no" >&6 1640fi 1641 1642fi 1643if test -z "$ac_cv_prog_CC"; then 1644 ac_ct_CC=$CC 1645 # Extract the first word of "gcc", so it can be a program name with args. 1646set dummy gcc; ac_word=$2 1647echo "$as_me:$LINENO: checking for $ac_word" >&5 1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1650 echo $ECHO_N "(cached) $ECHO_C" >&6 1651else 1652 if test -n "$ac_ct_CC"; then 1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1654else 1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1656for as_dir in $PATH 1657do 1658 IFS=$as_save_IFS 1659 test -z "$as_dir" && as_dir=. 1660 for ac_exec_ext in '' $ac_executable_extensions; do 1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1662 ac_cv_prog_ac_ct_CC="gcc" 1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1664 break 2 1665 fi 1666done 1667done 1668 1669fi 1670fi 1671ac_ct_CC=$ac_cv_prog_ac_ct_CC 1672if test -n "$ac_ct_CC"; then 1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1674echo "${ECHO_T}$ac_ct_CC" >&6 1675else 1676 echo "$as_me:$LINENO: result: no" >&5 1677echo "${ECHO_T}no" >&6 1678fi 1679 1680 CC=$ac_ct_CC 1681else 1682 CC="$ac_cv_prog_CC" 1683fi 1684 1685if test -z "$CC"; then 1686 if test -n "$ac_tool_prefix"; then 1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1688set dummy ${ac_tool_prefix}cc; ac_word=$2 1689echo "$as_me:$LINENO: checking for $ac_word" >&5 1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1691if test "${ac_cv_prog_CC+set}" = set; then 1692 echo $ECHO_N "(cached) $ECHO_C" >&6 1693else 1694 if test -n "$CC"; then 1695 ac_cv_prog_CC="$CC" # Let the user override the test. 1696else 1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1698for as_dir in $PATH 1699do 1700 IFS=$as_save_IFS 1701 test -z "$as_dir" && as_dir=. 1702 for ac_exec_ext in '' $ac_executable_extensions; do 1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1704 ac_cv_prog_CC="${ac_tool_prefix}cc" 1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1706 break 2 1707 fi 1708done 1709done 1710 1711fi 1712fi 1713CC=$ac_cv_prog_CC 1714if test -n "$CC"; then 1715 echo "$as_me:$LINENO: result: $CC" >&5 1716echo "${ECHO_T}$CC" >&6 1717else 1718 echo "$as_me:$LINENO: result: no" >&5 1719echo "${ECHO_T}no" >&6 1720fi 1721 1722fi 1723if test -z "$ac_cv_prog_CC"; then 1724 ac_ct_CC=$CC 1725 # Extract the first word of "cc", so it can be a program name with args. 1726set dummy cc; ac_word=$2 1727echo "$as_me:$LINENO: checking for $ac_word" >&5 1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1730 echo $ECHO_N "(cached) $ECHO_C" >&6 1731else 1732 if test -n "$ac_ct_CC"; then 1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1734else 1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1736for as_dir in $PATH 1737do 1738 IFS=$as_save_IFS 1739 test -z "$as_dir" && as_dir=. 1740 for ac_exec_ext in '' $ac_executable_extensions; do 1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1742 ac_cv_prog_ac_ct_CC="cc" 1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1744 break 2 1745 fi 1746done 1747done 1748 1749fi 1750fi 1751ac_ct_CC=$ac_cv_prog_ac_ct_CC 1752if test -n "$ac_ct_CC"; then 1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1754echo "${ECHO_T}$ac_ct_CC" >&6 1755else 1756 echo "$as_me:$LINENO: result: no" >&5 1757echo "${ECHO_T}no" >&6 1758fi 1759 1760 CC=$ac_ct_CC 1761else 1762 CC="$ac_cv_prog_CC" 1763fi 1764 1765fi 1766if test -z "$CC"; then 1767 # Extract the first word of "cc", so it can be a program name with args. 1768set dummy cc; ac_word=$2 1769echo "$as_me:$LINENO: checking for $ac_word" >&5 1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1771if test "${ac_cv_prog_CC+set}" = set; then 1772 echo $ECHO_N "(cached) $ECHO_C" >&6 1773else 1774 if test -n "$CC"; then 1775 ac_cv_prog_CC="$CC" # Let the user override the test. 1776else 1777 ac_prog_rejected=no 1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1779for as_dir in $PATH 1780do 1781 IFS=$as_save_IFS 1782 test -z "$as_dir" && as_dir=. 1783 for ac_exec_ext in '' $ac_executable_extensions; do 1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1786 ac_prog_rejected=yes 1787 continue 1788 fi 1789 ac_cv_prog_CC="cc" 1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1791 break 2 1792 fi 1793done 1794done 1795 1796if test $ac_prog_rejected = yes; then 1797 # We found a bogon in the path, so make sure we never use it. 1798 set dummy $ac_cv_prog_CC 1799 shift 1800 if test $# != 0; then 1801 # We chose a different compiler from the bogus one. 1802 # However, it has the same basename, so the bogon will be chosen 1803 # first if we set CC to just the basename; use the full file name. 1804 shift 1805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1806 fi 1807fi 1808fi 1809fi 1810CC=$ac_cv_prog_CC 1811if test -n "$CC"; then 1812 echo "$as_me:$LINENO: result: $CC" >&5 1813echo "${ECHO_T}$CC" >&6 1814else 1815 echo "$as_me:$LINENO: result: no" >&5 1816echo "${ECHO_T}no" >&6 1817fi 1818 1819fi 1820if test -z "$CC"; then 1821 if test -n "$ac_tool_prefix"; then 1822 for ac_prog in cl 1823 do 1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1825set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1826echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1828if test "${ac_cv_prog_CC+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$CC"; then 1832 ac_cv_prog_CC="$CC" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847 1848fi 1849fi 1850CC=$ac_cv_prog_CC 1851if test -n "$CC"; then 1852 echo "$as_me:$LINENO: result: $CC" >&5 1853echo "${ECHO_T}$CC" >&6 1854else 1855 echo "$as_me:$LINENO: result: no" >&5 1856echo "${ECHO_T}no" >&6 1857fi 1858 1859 test -n "$CC" && break 1860 done 1861fi 1862if test -z "$CC"; then 1863 ac_ct_CC=$CC 1864 for ac_prog in cl 1865do 1866 # Extract the first word of "$ac_prog", so it can be a program name with args. 1867set dummy $ac_prog; ac_word=$2 1868echo "$as_me:$LINENO: checking for $ac_word" >&5 1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1871 echo $ECHO_N "(cached) $ECHO_C" >&6 1872else 1873 if test -n "$ac_ct_CC"; then 1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1875else 1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1877for as_dir in $PATH 1878do 1879 IFS=$as_save_IFS 1880 test -z "$as_dir" && as_dir=. 1881 for ac_exec_ext in '' $ac_executable_extensions; do 1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1883 ac_cv_prog_ac_ct_CC="$ac_prog" 1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1885 break 2 1886 fi 1887done 1888done 1889 1890fi 1891fi 1892ac_ct_CC=$ac_cv_prog_ac_ct_CC 1893if test -n "$ac_ct_CC"; then 1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1895echo "${ECHO_T}$ac_ct_CC" >&6 1896else 1897 echo "$as_me:$LINENO: result: no" >&5 1898echo "${ECHO_T}no" >&6 1899fi 1900 1901 test -n "$ac_ct_CC" && break 1902done 1903 1904 CC=$ac_ct_CC 1905fi 1906 1907fi 1908 1909 1910test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1911See \`config.log' for more details." >&5 1912echo "$as_me: error: no acceptable C compiler found in \$PATH 1913See \`config.log' for more details." >&2;} 1914 { (exit 1); exit 1; }; } 1915 1916# Provide some information about the compiler. 1917echo "$as_me:$LINENO:" \ 1918 "checking for C compiler version" >&5 1919ac_compiler=`set X $ac_compile; echo $2` 1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1921 (eval $ac_compiler --version </dev/null >&5) 2>&5 1922 ac_status=$? 1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1924 (exit $ac_status); } 1925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1926 (eval $ac_compiler -v </dev/null >&5) 2>&5 1927 ac_status=$? 1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1929 (exit $ac_status); } 1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1931 (eval $ac_compiler -V </dev/null >&5) 2>&5 1932 ac_status=$? 1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1934 (exit $ac_status); } 1935 1936cat >conftest.$ac_ext <<_ACEOF 1937/* confdefs.h. */ 1938_ACEOF 1939cat confdefs.h >>conftest.$ac_ext 1940cat >>conftest.$ac_ext <<_ACEOF 1941/* end confdefs.h. */ 1942 1943int 1944main () 1945{ 1946 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951ac_clean_files_save=$ac_clean_files 1952ac_clean_files="$ac_clean_files a.out a.exe b.out" 1953# Try to create an executable without -o first, disregard a.out. 1954# It will help us diagnose broken compilers, and finding out an intuition 1955# of exeext. 1956echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1957echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1958ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1959if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1960 (eval $ac_link_default) 2>&5 1961 ac_status=$? 1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1963 (exit $ac_status); }; then 1964 # Find the output, starting from the most likely. This scheme is 1965# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1966# resort. 1967 1968# Be careful to initialize this variable, since it used to be cached. 1969# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1970ac_cv_exeext= 1971# b.out is created by i960 compilers. 1972for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1973do 1974 test -f "$ac_file" || continue 1975 case $ac_file in 1976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1977 ;; 1978 conftest.$ac_ext ) 1979 # This is the source file. 1980 ;; 1981 [ab].out ) 1982 # We found the default executable, but exeext='' is most 1983 # certainly right. 1984 break;; 1985 *.* ) 1986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1987 # FIXME: I believe we export ac_cv_exeext for Libtool, 1988 # but it would be cool to find out if it's true. Does anybody 1989 # maintain Libtool? --akim. 1990 export ac_cv_exeext 1991 break;; 1992 * ) 1993 break;; 1994 esac 1995done 1996else 1997 echo "$as_me: failed program was:" >&5 1998sed 's/^/| /' conftest.$ac_ext >&5 1999 2000{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2001See \`config.log' for more details." >&5 2002echo "$as_me: error: C compiler cannot create executables 2003See \`config.log' for more details." >&2;} 2004 { (exit 77); exit 77; }; } 2005fi 2006 2007ac_exeext=$ac_cv_exeext 2008echo "$as_me:$LINENO: result: $ac_file" >&5 2009echo "${ECHO_T}$ac_file" >&6 2010 2011# Check the compiler produces executables we can run. If not, either 2012# the compiler is broken, or we cross compile. 2013echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2014echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2015# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2016# If not cross compiling, check that we can run a simple program. 2017if test "$cross_compiling" != yes; then 2018 if { ac_try='./$ac_file' 2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2020 (eval $ac_try) 2>&5 2021 ac_status=$? 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); }; }; then 2024 cross_compiling=no 2025 else 2026 if test "$cross_compiling" = maybe; then 2027 cross_compiling=yes 2028 else 2029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2030If you meant to cross compile, use \`--host'. 2031See \`config.log' for more details." >&5 2032echo "$as_me: error: cannot run C compiled programs. 2033If you meant to cross compile, use \`--host'. 2034See \`config.log' for more details." >&2;} 2035 { (exit 1); exit 1; }; } 2036 fi 2037 fi 2038fi 2039echo "$as_me:$LINENO: result: yes" >&5 2040echo "${ECHO_T}yes" >&6 2041 2042rm -f a.out a.exe conftest$ac_cv_exeext b.out 2043ac_clean_files=$ac_clean_files_save 2044# Check the compiler produces executables we can run. If not, either 2045# the compiler is broken, or we cross compile. 2046echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2047echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2048echo "$as_me:$LINENO: result: $cross_compiling" >&5 2049echo "${ECHO_T}$cross_compiling" >&6 2050 2051echo "$as_me:$LINENO: checking for suffix of executables" >&5 2052echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2054 (eval $ac_link) 2>&5 2055 ac_status=$? 2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2057 (exit $ac_status); }; then 2058 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2060# work properly (i.e., refer to `conftest.exe'), while it won't with 2061# `rm'. 2062for ac_file in conftest.exe conftest conftest.*; do 2063 test -f "$ac_file" || continue 2064 case $ac_file in 2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2067 export ac_cv_exeext 2068 break;; 2069 * ) break;; 2070 esac 2071done 2072else 2073 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2074See \`config.log' for more details." >&5 2075echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2076See \`config.log' for more details." >&2;} 2077 { (exit 1); exit 1; }; } 2078fi 2079 2080rm -f conftest$ac_cv_exeext 2081echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2082echo "${ECHO_T}$ac_cv_exeext" >&6 2083 2084rm -f conftest.$ac_ext 2085EXEEXT=$ac_cv_exeext 2086ac_exeext=$EXEEXT 2087echo "$as_me:$LINENO: checking for suffix of object files" >&5 2088echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2089if test "${ac_cv_objext+set}" = set; then 2090 echo $ECHO_N "(cached) $ECHO_C" >&6 2091else 2092 cat >conftest.$ac_ext <<_ACEOF 2093/* confdefs.h. */ 2094_ACEOF 2095cat confdefs.h >>conftest.$ac_ext 2096cat >>conftest.$ac_ext <<_ACEOF 2097/* end confdefs.h. */ 2098 2099int 2100main () 2101{ 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107rm -f conftest.o conftest.obj 2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2109 (eval $ac_compile) 2>&5 2110 ac_status=$? 2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2112 (exit $ac_status); }; then 2113 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2114 case $ac_file in 2115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2117 break;; 2118 esac 2119done 2120else 2121 echo "$as_me: failed program was:" >&5 2122sed 's/^/| /' conftest.$ac_ext >&5 2123 2124{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2125See \`config.log' for more details." >&5 2126echo "$as_me: error: cannot compute suffix of object files: cannot compile 2127See \`config.log' for more details." >&2;} 2128 { (exit 1); exit 1; }; } 2129fi 2130 2131rm -f conftest.$ac_cv_objext conftest.$ac_ext 2132fi 2133echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2134echo "${ECHO_T}$ac_cv_objext" >&6 2135OBJEXT=$ac_cv_objext 2136ac_objext=$OBJEXT 2137echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2138echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2139if test "${ac_cv_c_compiler_gnu+set}" = set; then 2140 echo $ECHO_N "(cached) $ECHO_C" >&6 2141else 2142 cat >conftest.$ac_ext <<_ACEOF 2143/* confdefs.h. */ 2144_ACEOF 2145cat confdefs.h >>conftest.$ac_ext 2146cat >>conftest.$ac_ext <<_ACEOF 2147/* end confdefs.h. */ 2148 2149int 2150main () 2151{ 2152#ifndef __GNUC__ 2153 choke me 2154#endif 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160rm -f conftest.$ac_objext 2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2162 (eval $ac_compile) 2>conftest.er1 2163 ac_status=$? 2164 grep -v '^ *+' conftest.er1 >conftest.err 2165 rm -f conftest.er1 2166 cat conftest.err >&5 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); } && 2169 { ac_try='test -z "$ac_c_werror_flag" 2170 || test ! -s conftest.err' 2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2172 (eval $ac_try) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; } && 2176 { ac_try='test -s conftest.$ac_objext' 2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2178 (eval $ac_try) 2>&5 2179 ac_status=$? 2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); }; }; then 2182 ac_compiler_gnu=yes 2183else 2184 echo "$as_me: failed program was:" >&5 2185sed 's/^/| /' conftest.$ac_ext >&5 2186 2187ac_compiler_gnu=no 2188fi 2189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2190ac_cv_c_compiler_gnu=$ac_compiler_gnu 2191 2192fi 2193echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2194echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2195GCC=`test $ac_compiler_gnu = yes && echo yes` 2196ac_test_CFLAGS=${CFLAGS+set} 2197ac_save_CFLAGS=$CFLAGS 2198CFLAGS="-g" 2199echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2200echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2201if test "${ac_cv_prog_cc_g+set}" = set; then 2202 echo $ECHO_N "(cached) $ECHO_C" >&6 2203else 2204 cat >conftest.$ac_ext <<_ACEOF 2205/* confdefs.h. */ 2206_ACEOF 2207cat confdefs.h >>conftest.$ac_ext 2208cat >>conftest.$ac_ext <<_ACEOF 2209/* end confdefs.h. */ 2210 2211int 2212main () 2213{ 2214 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219rm -f conftest.$ac_objext 2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2221 (eval $ac_compile) 2>conftest.er1 2222 ac_status=$? 2223 grep -v '^ *+' conftest.er1 >conftest.err 2224 rm -f conftest.er1 2225 cat conftest.err >&5 2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2227 (exit $ac_status); } && 2228 { ac_try='test -z "$ac_c_werror_flag" 2229 || test ! -s conftest.err' 2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2231 (eval $ac_try) 2>&5 2232 ac_status=$? 2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2234 (exit $ac_status); }; } && 2235 { ac_try='test -s conftest.$ac_objext' 2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2237 (eval $ac_try) 2>&5 2238 ac_status=$? 2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2240 (exit $ac_status); }; }; then 2241 ac_cv_prog_cc_g=yes 2242else 2243 echo "$as_me: failed program was:" >&5 2244sed 's/^/| /' conftest.$ac_ext >&5 2245 2246ac_cv_prog_cc_g=no 2247fi 2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2249fi 2250echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2251echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2252if test "$ac_test_CFLAGS" = set; then 2253 CFLAGS=$ac_save_CFLAGS 2254elif test $ac_cv_prog_cc_g = yes; then 2255 if test "$GCC" = yes; then 2256 CFLAGS="-g -O2" 2257 else 2258 CFLAGS="-g" 2259 fi 2260else 2261 if test "$GCC" = yes; then 2262 CFLAGS="-O2" 2263 else 2264 CFLAGS= 2265 fi 2266fi 2267echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2268echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2269if test "${ac_cv_prog_cc_stdc+set}" = set; then 2270 echo $ECHO_N "(cached) $ECHO_C" >&6 2271else 2272 ac_cv_prog_cc_stdc=no 2273ac_save_CC=$CC 2274cat >conftest.$ac_ext <<_ACEOF 2275/* confdefs.h. */ 2276_ACEOF 2277cat confdefs.h >>conftest.$ac_ext 2278cat >>conftest.$ac_ext <<_ACEOF 2279/* end confdefs.h. */ 2280#include <stdarg.h> 2281#include <stdio.h> 2282#include <sys/types.h> 2283#include <sys/stat.h> 2284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2285struct buf { int x; }; 2286FILE * (*rcsopen) (struct buf *, struct stat *, int); 2287static char *e (p, i) 2288 char **p; 2289 int i; 2290{ 2291 return p[i]; 2292} 2293static char *f (char * (*g) (char **, int), char **p, ...) 2294{ 2295 char *s; 2296 va_list v; 2297 va_start (v,p); 2298 s = g (p, va_arg (v,int)); 2299 va_end (v); 2300 return s; 2301} 2302 2303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2304 function prototypes and stuff, but not '\xHH' hex character constants. 2305 These don't provoke an error unfortunately, instead are silently treated 2306 as 'x'. The following induces an error, until -std1 is added to get 2307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2308 array size at least. It's necessary to write '\x00'==0 to get something 2309 that's true only with -std1. */ 2310int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2311 2312int test (int i, double x); 2313struct s1 {int (*f) (int a);}; 2314struct s2 {int (*f) (double a);}; 2315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2316int argc; 2317char **argv; 2318int 2319main () 2320{ 2321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2322 ; 2323 return 0; 2324} 2325_ACEOF 2326# Don't try gcc -ansi; that turns off useful extensions and 2327# breaks some systems' header files. 2328# AIX -qlanglvl=ansi 2329# Ultrix and OSF/1 -std1 2330# HP-UX 10.20 and later -Ae 2331# HP-UX older versions -Aa -D_HPUX_SOURCE 2332# SVR4 -Xc -D__EXTENSIONS__ 2333for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2334do 2335 CC="$ac_save_CC $ac_arg" 2336 rm -f conftest.$ac_objext 2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>conftest.er1 2339 ac_status=$? 2340 grep -v '^ *+' conftest.er1 >conftest.err 2341 rm -f conftest.er1 2342 cat conftest.err >&5 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); } && 2345 { ac_try='test -z "$ac_c_werror_flag" 2346 || test ! -s conftest.err' 2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2348 (eval $ac_try) 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); }; } && 2352 { ac_try='test -s conftest.$ac_objext' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); }; }; then 2358 ac_cv_prog_cc_stdc=$ac_arg 2359break 2360else 2361 echo "$as_me: failed program was:" >&5 2362sed 's/^/| /' conftest.$ac_ext >&5 2363 2364fi 2365rm -f conftest.err conftest.$ac_objext 2366done 2367rm -f conftest.$ac_ext conftest.$ac_objext 2368CC=$ac_save_CC 2369 2370fi 2371 2372case "x$ac_cv_prog_cc_stdc" in 2373 x|xno) 2374 echo "$as_me:$LINENO: result: none needed" >&5 2375echo "${ECHO_T}none needed" >&6 ;; 2376 *) 2377 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2378echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2379 CC="$CC $ac_cv_prog_cc_stdc" ;; 2380esac 2381 2382# Some people use a C++ compiler to compile C. Since we use `exit', 2383# in C++ we need to declare it. In case someone uses the same compiler 2384# for both compiling C and C++ we need to have the C++ compiler decide 2385# the declaration of exit, since it's the most demanding environment. 2386cat >conftest.$ac_ext <<_ACEOF 2387#ifndef __cplusplus 2388 choke me 2389#endif 2390_ACEOF 2391rm -f conftest.$ac_objext 2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2393 (eval $ac_compile) 2>conftest.er1 2394 ac_status=$? 2395 grep -v '^ *+' conftest.er1 >conftest.err 2396 rm -f conftest.er1 2397 cat conftest.err >&5 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); } && 2400 { ac_try='test -z "$ac_c_werror_flag" 2401 || test ! -s conftest.err' 2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2403 (eval $ac_try) 2>&5 2404 ac_status=$? 2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2406 (exit $ac_status); }; } && 2407 { ac_try='test -s conftest.$ac_objext' 2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2409 (eval $ac_try) 2>&5 2410 ac_status=$? 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); }; }; then 2413 for ac_declaration in \ 2414 '' \ 2415 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2416 'extern "C" void std::exit (int); using std::exit;' \ 2417 'extern "C" void exit (int) throw ();' \ 2418 'extern "C" void exit (int);' \ 2419 'void exit (int);' 2420do 2421 cat >conftest.$ac_ext <<_ACEOF 2422/* confdefs.h. */ 2423_ACEOF 2424cat confdefs.h >>conftest.$ac_ext 2425cat >>conftest.$ac_ext <<_ACEOF 2426/* end confdefs.h. */ 2427$ac_declaration 2428#include <stdlib.h> 2429int 2430main () 2431{ 2432exit (42); 2433 ; 2434 return 0; 2435} 2436_ACEOF 2437rm -f conftest.$ac_objext 2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2439 (eval $ac_compile) 2>conftest.er1 2440 ac_status=$? 2441 grep -v '^ *+' conftest.er1 >conftest.err 2442 rm -f conftest.er1 2443 cat conftest.err >&5 2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 (exit $ac_status); } && 2446 { ac_try='test -z "$ac_c_werror_flag" 2447 || test ! -s conftest.err' 2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2449 (eval $ac_try) 2>&5 2450 ac_status=$? 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); }; } && 2453 { ac_try='test -s conftest.$ac_objext' 2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2455 (eval $ac_try) 2>&5 2456 ac_status=$? 2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2458 (exit $ac_status); }; }; then 2459 : 2460else 2461 echo "$as_me: failed program was:" >&5 2462sed 's/^/| /' conftest.$ac_ext >&5 2463 2464continue 2465fi 2466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2467 cat >conftest.$ac_ext <<_ACEOF 2468/* confdefs.h. */ 2469_ACEOF 2470cat confdefs.h >>conftest.$ac_ext 2471cat >>conftest.$ac_ext <<_ACEOF 2472/* end confdefs.h. */ 2473$ac_declaration 2474int 2475main () 2476{ 2477exit (42); 2478 ; 2479 return 0; 2480} 2481_ACEOF 2482rm -f conftest.$ac_objext 2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2484 (eval $ac_compile) 2>conftest.er1 2485 ac_status=$? 2486 grep -v '^ *+' conftest.er1 >conftest.err 2487 rm -f conftest.er1 2488 cat conftest.err >&5 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); } && 2491 { ac_try='test -z "$ac_c_werror_flag" 2492 || test ! -s conftest.err' 2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2494 (eval $ac_try) 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); }; } && 2498 { ac_try='test -s conftest.$ac_objext' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; }; then 2504 break 2505else 2506 echo "$as_me: failed program was:" >&5 2507sed 's/^/| /' conftest.$ac_ext >&5 2508 2509fi 2510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2511done 2512rm -f conftest* 2513if test -n "$ac_declaration"; then 2514 echo '#ifdef __cplusplus' >>confdefs.h 2515 echo $ac_declaration >>confdefs.h 2516 echo '#endif' >>confdefs.h 2517fi 2518 2519else 2520 echo "$as_me: failed program was:" >&5 2521sed 's/^/| /' conftest.$ac_ext >&5 2522 2523fi 2524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2525ac_ext=c 2526ac_cpp='$CPP $CPPFLAGS' 2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2529ac_compiler_gnu=$ac_cv_c_compiler_gnu 2530 2531echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2532echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2533if test "${lt_cv_path_SED+set}" = set; then 2534 echo $ECHO_N "(cached) $ECHO_C" >&6 2535else 2536 # Loop through the user's path and test for sed and gsed. 2537# Then use that list of sed's as ones to test for truncation. 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for lt_ac_prog in sed gsed; do 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 2546 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 2547 fi 2548 done 2549 done 2550done 2551IFS=$as_save_IFS 2552lt_ac_max=0 2553lt_ac_count=0 2554# Add /usr/xpg4/bin/sed as it is typically found on Solaris 2555# along with /bin/sed that truncates output. 2556for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 2557 test ! -f $lt_ac_sed && continue 2558 cat /dev/null > conftest.in 2559 lt_ac_count=0 2560 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 2561 # Check for GNU sed and select it if it is found. 2562 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 2563 lt_cv_path_SED=$lt_ac_sed 2564 break 2565 fi 2566 while true; do 2567 cat conftest.in conftest.in >conftest.tmp 2568 mv conftest.tmp conftest.in 2569 cp conftest.in conftest.nl 2570 echo >>conftest.nl 2571 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 2572 cmp -s conftest.out conftest.nl || break 2573 # 10000 chars as input seems more than enough 2574 test $lt_ac_count -gt 10 && break 2575 lt_ac_count=`expr $lt_ac_count + 1` 2576 if test $lt_ac_count -gt $lt_ac_max; then 2577 lt_ac_max=$lt_ac_count 2578 lt_cv_path_SED=$lt_ac_sed 2579 fi 2580 done 2581done 2582 2583fi 2584 2585SED=$lt_cv_path_SED 2586 2587echo "$as_me:$LINENO: result: $SED" >&5 2588echo "${ECHO_T}$SED" >&6 2589 2590test -z "$SED" && SED=sed 2591Xsed="$SED -e 1s/^X//" 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603echo "$as_me:$LINENO: checking for egrep" >&5 2604echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2605if test "${ac_cv_prog_egrep+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607else 2608 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2609 then ac_cv_prog_egrep='grep -E' 2610 else ac_cv_prog_egrep='egrep' 2611 fi 2612fi 2613echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2614echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2615 EGREP=$ac_cv_prog_egrep 2616 2617 2618echo "$as_me:$LINENO: checking for fgrep" >&5 2619echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 2620if test "${ac_cv_prog_fgrep+set}" = set; then 2621 echo $ECHO_N "(cached) $ECHO_C" >&6 2622else 2623 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 2624 then ac_cv_prog_fgrep='grep -F' 2625 else ac_cv_prog_fgrep='fgrep' 2626 fi 2627fi 2628echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 2629echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 2630 FGREP=$ac_cv_prog_fgrep 2631 2632 2633test -z "$GREP" && GREP=grep 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653# Check whether --with-gnu-ld or --without-gnu-ld was given. 2654if test "${with_gnu_ld+set}" = set; then 2655 withval="$with_gnu_ld" 2656 test "$withval" = no || with_gnu_ld=yes 2657else 2658 with_gnu_ld=no 2659fi; 2660ac_prog=ld 2661if test "$GCC" = yes; then 2662 # Check if gcc -print-prog-name=ld gives a path. 2663 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 2664echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 2665 case $host in 2666 *-*-mingw*) 2667 # gcc leaves a trailing carriage return which upsets mingw 2668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2669 *) 2670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2671 esac 2672 case $ac_prog in 2673 # Accept absolute paths. 2674 [\\/]* | ?:[\\/]*) 2675 re_direlt='/[^/][^/]*/\.\./' 2676 # Canonicalize the pathname of ld 2677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 2678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 2679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 2680 done 2681 test -z "$LD" && LD="$ac_prog" 2682 ;; 2683 "") 2684 # If it fails, then pretend we aren't using GCC. 2685 ac_prog=ld 2686 ;; 2687 *) 2688 # If it is relative, then search for the first ld in PATH. 2689 with_gnu_ld=unknown 2690 ;; 2691 esac 2692elif test "$with_gnu_ld" = yes; then 2693 echo "$as_me:$LINENO: checking for GNU ld" >&5 2694echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2695else 2696 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 2697echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2698fi 2699if test "${lt_cv_path_LD+set}" = set; then 2700 echo $ECHO_N "(cached) $ECHO_C" >&6 2701else 2702 if test -z "$LD"; then 2703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2704 for ac_dir in $PATH; do 2705 IFS="$lt_save_ifs" 2706 test -z "$ac_dir" && ac_dir=. 2707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2708 lt_cv_path_LD="$ac_dir/$ac_prog" 2709 # Check to see if the program is GNU ld. I'd rather use --version, 2710 # but apparently some variants of GNU ld only accept -v. 2711 # Break only if it was the GNU/non-GNU ld that we prefer. 2712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2713 *GNU* | *'with BFD'*) 2714 test "$with_gnu_ld" != no && break 2715 ;; 2716 *) 2717 test "$with_gnu_ld" != yes && break 2718 ;; 2719 esac 2720 fi 2721 done 2722 IFS="$lt_save_ifs" 2723else 2724 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2725fi 2726fi 2727 2728LD="$lt_cv_path_LD" 2729if test -n "$LD"; then 2730 echo "$as_me:$LINENO: result: $LD" >&5 2731echo "${ECHO_T}$LD" >&6 2732else 2733 echo "$as_me:$LINENO: result: no" >&5 2734echo "${ECHO_T}no" >&6 2735fi 2736test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 2737echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 2738 { (exit 1); exit 1; }; } 2739echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 2740echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 2741if test "${lt_cv_prog_gnu_ld+set}" = set; then 2742 echo $ECHO_N "(cached) $ECHO_C" >&6 2743else 2744 # I'd rather use --version here, but apparently some GNU lds only accept -v. 2745case `$LD -v 2>&1 </dev/null` in 2746*GNU* | *'with BFD'*) 2747 lt_cv_prog_gnu_ld=yes 2748 ;; 2749*) 2750 lt_cv_prog_gnu_ld=no 2751 ;; 2752esac 2753fi 2754echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 2755echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 2756with_gnu_ld=$lt_cv_prog_gnu_ld 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 2767echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 2768if test "${lt_cv_path_NM+set}" = set; then 2769 echo $ECHO_N "(cached) $ECHO_C" >&6 2770else 2771 if test -n "$NM"; then 2772 # Let the user override the test. 2773 lt_cv_path_NM="$NM" 2774else 2775 lt_nm_to_check="${ac_tool_prefix}nm" 2776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2777 lt_nm_to_check="$lt_nm_to_check nm" 2778 fi 2779 for lt_tmp_nm in $lt_nm_to_check; do 2780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2782 IFS="$lt_save_ifs" 2783 test -z "$ac_dir" && ac_dir=. 2784 tmp_nm="$ac_dir/$lt_tmp_nm" 2785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2786 # Check to see if the nm accepts a BSD-compat flag. 2787 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2788 # nm: unknown option "B" ignored 2789 # Tru64's nm complains that /dev/null is an invalid object file 2790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2791 */dev/null* | *'Invalid file or object type'*) 2792 lt_cv_path_NM="$tmp_nm -B" 2793 break 2794 ;; 2795 *) 2796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2797 */dev/null*) 2798 lt_cv_path_NM="$tmp_nm -p" 2799 break 2800 ;; 2801 *) 2802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2803 continue # so that we can try to find one that supports BSD flags 2804 ;; 2805 esac 2806 ;; 2807 esac 2808 fi 2809 done 2810 IFS="$lt_save_ifs" 2811 done 2812 : ${lt_cv_path_NM=no} 2813fi 2814fi 2815echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 2816echo "${ECHO_T}$lt_cv_path_NM" >&6 2817if test "$lt_cv_path_NM" != "no"; then 2818 NM="$lt_cv_path_NM" 2819else 2820 # Didn't find any BSD compatible name lister, look for dumpbin. 2821 if test -n "$ac_tool_prefix"; then 2822 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 2823 do 2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2825set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2826echo "$as_me:$LINENO: checking for $ac_word" >&5 2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2828if test "${ac_cv_prog_DUMPBIN+set}" = set; then 2829 echo $ECHO_N "(cached) $ECHO_C" >&6 2830else 2831 if test -n "$DUMPBIN"; then 2832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846done 2847 2848fi 2849fi 2850DUMPBIN=$ac_cv_prog_DUMPBIN 2851if test -n "$DUMPBIN"; then 2852 echo "$as_me:$LINENO: result: $DUMPBIN" >&5 2853echo "${ECHO_T}$DUMPBIN" >&6 2854else 2855 echo "$as_me:$LINENO: result: no" >&5 2856echo "${ECHO_T}no" >&6 2857fi 2858 2859 test -n "$DUMPBIN" && break 2860 done 2861fi 2862if test -z "$DUMPBIN"; then 2863 ac_ct_DUMPBIN=$DUMPBIN 2864 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 2865do 2866 # Extract the first word of "$ac_prog", so it can be a program name with args. 2867set dummy $ac_prog; ac_word=$2 2868echo "$as_me:$LINENO: checking for $ac_word" >&5 2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2870if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 2871 echo $ECHO_N "(cached) $ECHO_C" >&6 2872else 2873 if test -n "$ac_ct_DUMPBIN"; then 2874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888done 2889 2890fi 2891fi 2892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 2893if test -n "$ac_ct_DUMPBIN"; then 2894 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 2895echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 2896else 2897 echo "$as_me:$LINENO: result: no" >&5 2898echo "${ECHO_T}no" >&6 2899fi 2900 2901 test -n "$ac_ct_DUMPBIN" && break 2902done 2903test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" 2904 2905 DUMPBIN=$ac_ct_DUMPBIN 2906fi 2907 2908 2909 if test "$DUMPBIN" != ":"; then 2910 NM="$DUMPBIN" 2911 fi 2912fi 2913test -z "$NM" && NM=nm 2914 2915 2916 2917 2918 2919 2920echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 2921echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 2922if test "${lt_cv_nm_interface+set}" = set; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924else 2925 lt_cv_nm_interface="BSD nm" 2926 echo "int some_variable = 0;" > conftest.$ac_ext 2927 (eval echo "\"\$as_me:2927: $ac_compile\"" >&5) 2928 (eval "$ac_compile" 2>conftest.err) 2929 cat conftest.err >&5 2930 (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 2931 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 2932 cat conftest.err >&5 2933 (eval echo "\"\$as_me:2933: output\"" >&5) 2934 cat conftest.out >&5 2935 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 2936 lt_cv_nm_interface="MS dumpbin" 2937 fi 2938 rm -f conftest* 2939fi 2940echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 2941echo "${ECHO_T}$lt_cv_nm_interface" >&6 2942 2943echo "$as_me:$LINENO: checking whether ln -s works" >&5 2944echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2945LN_S=$as_ln_s 2946if test "$LN_S" = "ln -s"; then 2947 echo "$as_me:$LINENO: result: yes" >&5 2948echo "${ECHO_T}yes" >&6 2949else 2950 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2951echo "${ECHO_T}no, using $LN_S" >&6 2952fi 2953 2954# find the maximum length of command line arguments 2955echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 2956echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 2957if test "${lt_cv_sys_max_cmd_len+set}" = set; then 2958 echo $ECHO_N "(cached) $ECHO_C" >&6 2959else 2960 i=0 2961 teststring="ABCD" 2962 2963 case $build_os in 2964 msdosdjgpp*) 2965 # On DJGPP, this test can blow up pretty badly due to problems in libc 2966 # (any single argument exceeding 2000 bytes causes a buffer overrun 2967 # during glob expansion). Even if it were fixed, the result of this 2968 # check would be larger than it should be. 2969 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2970 ;; 2971 2972 gnu*) 2973 # Under GNU Hurd, this test is not required because there is 2974 # no limit to the length of command line arguments. 2975 # Libtool will interpret -1 as no limit whatsoever 2976 lt_cv_sys_max_cmd_len=-1; 2977 ;; 2978 2979 cygwin* | mingw*) 2980 # On Win9x/ME, this test blows up -- it succeeds, but takes 2981 # about 5 minutes as the teststring grows exponentially. 2982 # Worse, since 9x/ME are not pre-emptively multitasking, 2983 # you end up with a "frozen" computer, even though with patience 2984 # the test eventually succeeds (with a max line length of 256k). 2985 # Instead, let's just punt: use the minimum linelength reported by 2986 # all of the supported platforms: 8192 (on NT/2K/XP). 2987 lt_cv_sys_max_cmd_len=8192; 2988 ;; 2989 2990 amigaos*) 2991 # On AmigaOS with pdksh, this test takes hours, literally. 2992 # So we just punt and use a minimum line length of 8192. 2993 lt_cv_sys_max_cmd_len=8192; 2994 ;; 2995 2996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2997 # This has been around since 386BSD, at least. Likely further. 2998 if test -x /sbin/sysctl; then 2999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3000 elif test -x /usr/sbin/sysctl; then 3001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3002 else 3003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3004 fi 3005 # And add a safety zone 3006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3008 ;; 3009 3010 interix*) 3011 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3012 lt_cv_sys_max_cmd_len=196608 3013 ;; 3014 3015 osf*) 3016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3018 # nice to cause kernel panics so lets avoid the loop below. 3019 # First set a reasonable default. 3020 lt_cv_sys_max_cmd_len=16384 3021 # 3022 if test -x /sbin/sysconfig; then 3023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3024 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3025 esac 3026 fi 3027 ;; 3028 sco3.2v5*) 3029 lt_cv_sys_max_cmd_len=102400 3030 ;; 3031 sysv5* | sco5v6* | sysv4.2uw2*) 3032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3033 if test -n "$kargmax"; then 3034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3035 else 3036 lt_cv_sys_max_cmd_len=32768 3037 fi 3038 ;; 3039 *) 3040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3041 if test -n "$lt_cv_sys_max_cmd_len"; then 3042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3044 else 3045 # Make teststring a little bigger before we do anything with it. 3046 # a 1K string should be a reasonable start. 3047 for i in 1 2 3 4 5 6 7 8 ; do 3048 teststring=$teststring$teststring 3049 done 3050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3051 # If test is not a shell built-in, we'll probably end up computing a 3052 # maximum length that is only half of the actual maximum length, but 3053 # we can't tell. 3054 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3055 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3056 test $i != 17 # 1/2 MB should be enough 3057 do 3058 i=`expr $i + 1` 3059 teststring=$teststring$teststring 3060 done 3061 # Only check the string length outside the loop. 3062 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3063 teststring= 3064 # Add a significant safety factor because C++ compilers can tack on 3065 # massive amounts of additional arguments before passing them to the 3066 # linker. It appears as though 1/2 is a usable value. 3067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3068 fi 3069 ;; 3070 esac 3071 3072fi 3073 3074if test -n $lt_cv_sys_max_cmd_len ; then 3075 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3076echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 3077else 3078 echo "$as_me:$LINENO: result: none" >&5 3079echo "${ECHO_T}none" >&6 3080fi 3081max_cmd_len=$lt_cv_sys_max_cmd_len 3082 3083 3084 3085 3086 3087 3088: ${CP="cp -f"} 3089: ${MV="mv -f"} 3090: ${RM="rm -f"} 3091 3092echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3093echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 3094# Try some XSI features 3095xsi_shell=no 3096( _lt_dummy="a/b/c" 3097 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3098 = c,a/b,, \ 3099 && eval 'test $(( 1 + 1 )) -eq 2 \ 3100 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3101 && xsi_shell=yes 3102echo "$as_me:$LINENO: result: $xsi_shell" >&5 3103echo "${ECHO_T}$xsi_shell" >&6 3104 3105 3106echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3107echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 3108lt_shell_append=no 3109( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3110 >/dev/null 2>&1 \ 3111 && lt_shell_append=yes 3112echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3113echo "${ECHO_T}$lt_shell_append" >&6 3114 3115 3116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3117 lt_unset=unset 3118else 3119 lt_unset=false 3120fi 3121 3122 3123 3124 3125 3126# test EBCDIC or ASCII 3127case `echo X|tr X '\101'` in 3128 A) # ASCII based system 3129 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3130 lt_SP2NL='tr \040 \012' 3131 lt_NL2SP='tr \015\012 \040\040' 3132 ;; 3133 *) # EBCDIC based system 3134 lt_SP2NL='tr \100 \n' 3135 lt_NL2SP='tr \r\n \100\100' 3136 ;; 3137esac 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3148echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3149if test "${lt_cv_ld_reload_flag+set}" = set; then 3150 echo $ECHO_N "(cached) $ECHO_C" >&6 3151else 3152 lt_cv_ld_reload_flag='-r' 3153fi 3154echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3155echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3156reload_flag=$lt_cv_ld_reload_flag 3157case $reload_flag in 3158"" | " "*) ;; 3159*) reload_flag=" $reload_flag" ;; 3160esac 3161reload_cmds='$LD$reload_flag -o $output$reload_objs' 3162case $host_os in 3163 darwin*) 3164 if test "$GCC" = yes; then 3165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3166 else 3167 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3168 fi 3169 ;; 3170esac 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 3182echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 3183if test "${lt_cv_deplibs_check_method+set}" = set; then 3184 echo $ECHO_N "(cached) $ECHO_C" >&6 3185else 3186 lt_cv_file_magic_cmd='$MAGIC_CMD' 3187lt_cv_file_magic_test_file= 3188lt_cv_deplibs_check_method='unknown' 3189# Need to set the preceding variable on all platforms that support 3190# interlibrary dependencies. 3191# 'none' -- dependencies not supported. 3192# `unknown' -- same as none, but documents that we really don't know. 3193# 'pass_all' -- all dependencies passed with no checks. 3194# 'test_compile' -- check by making test program. 3195# 'file_magic [[regex]]' -- check by looking for files in library path 3196# which responds to the $file_magic_cmd with a given extended regex. 3197# If you have `file' or equivalent on your system and you're not sure 3198# whether `pass_all' will *always* work, you probably want this one. 3199 3200case $host_os in 3201aix[4-9]*) 3202 lt_cv_deplibs_check_method=pass_all 3203 ;; 3204 3205beos*) 3206 lt_cv_deplibs_check_method=pass_all 3207 ;; 3208 3209bsdi[45]*) 3210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3211 lt_cv_file_magic_cmd='/usr/bin/file -L' 3212 lt_cv_file_magic_test_file=/shlib/libc.so 3213 ;; 3214 3215cygwin*) 3216 # func_win32_libid is a shell function defined in ltmain.sh 3217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3218 lt_cv_file_magic_cmd='func_win32_libid' 3219 ;; 3220 3221mingw* | pw32*) 3222 # Base MSYS/MinGW do not provide the 'file' command needed by 3223 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3224 # unless we find 'file', for example because we are cross-compiling. 3225 if ( file / ) >/dev/null 2>&1; then 3226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3227 lt_cv_file_magic_cmd='func_win32_libid' 3228 else 3229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3230 lt_cv_file_magic_cmd='$OBJDUMP -f' 3231 fi 3232 ;; 3233 3234darwin* | rhapsody*) 3235 lt_cv_deplibs_check_method=pass_all 3236 ;; 3237 3238freebsd* | dragonfly*) 3239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3240 case $host_cpu in 3241 i*86 ) 3242 # Not sure whether the presence of OpenBSD here was a mistake. 3243 # Let's accept both of them until this is cleared up. 3244 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3245 lt_cv_file_magic_cmd=/usr/bin/file 3246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3247 ;; 3248 esac 3249 else 3250 lt_cv_deplibs_check_method=pass_all 3251 fi 3252 ;; 3253 3254gnu*) 3255 lt_cv_deplibs_check_method=pass_all 3256 ;; 3257 3258hpux10.20* | hpux11*) 3259 lt_cv_file_magic_cmd=/usr/bin/file 3260 case $host_cpu in 3261 ia64*) 3262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3264 ;; 3265 hppa*64*) 3266 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]' 3267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3268 ;; 3269 *) 3270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3271 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3272 ;; 3273 esac 3274 ;; 3275 3276interix[3-9]*) 3277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3279 ;; 3280 3281irix5* | irix6* | nonstopux*) 3282 case $LD in 3283 *-32|*"-32 ") libmagic=32-bit;; 3284 *-n32|*"-n32 ") libmagic=N32;; 3285 *-64|*"-64 ") libmagic=64-bit;; 3286 *) libmagic=never-match;; 3287 esac 3288 lt_cv_deplibs_check_method=pass_all 3289 ;; 3290 3291# This must be Linux ELF. 3292linux* | k*bsd*-gnu) 3293 lt_cv_deplibs_check_method=pass_all 3294 ;; 3295 3296netbsd*) 3297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3299 else 3300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3301 fi 3302 ;; 3303 3304newos6*) 3305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3306 lt_cv_file_magic_cmd=/usr/bin/file 3307 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3308 ;; 3309 3310*nto* | *qnx*) 3311 lt_cv_deplibs_check_method=pass_all 3312 ;; 3313 3314openbsd*) 3315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3317 else 3318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3319 fi 3320 ;; 3321 3322osf3* | osf4* | osf5*) 3323 lt_cv_deplibs_check_method=pass_all 3324 ;; 3325 3326rdos*) 3327 lt_cv_deplibs_check_method=pass_all 3328 ;; 3329 3330solaris*) 3331 lt_cv_deplibs_check_method=pass_all 3332 ;; 3333 3334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3335 lt_cv_deplibs_check_method=pass_all 3336 ;; 3337 3338sysv4 | sysv4.3*) 3339 case $host_vendor in 3340 motorola) 3341 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]' 3342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3343 ;; 3344 ncr) 3345 lt_cv_deplibs_check_method=pass_all 3346 ;; 3347 sequent) 3348 lt_cv_file_magic_cmd='/bin/file' 3349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3350 ;; 3351 sni) 3352 lt_cv_file_magic_cmd='/bin/file' 3353 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3354 lt_cv_file_magic_test_file=/lib/libc.so 3355 ;; 3356 siemens) 3357 lt_cv_deplibs_check_method=pass_all 3358 ;; 3359 pc) 3360 lt_cv_deplibs_check_method=pass_all 3361 ;; 3362 esac 3363 ;; 3364 3365tpf*) 3366 lt_cv_deplibs_check_method=pass_all 3367 ;; 3368esac 3369 3370fi 3371echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3372echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3373file_magic_cmd=$lt_cv_file_magic_cmd 3374deplibs_check_method=$lt_cv_deplibs_check_method 3375test -z "$deplibs_check_method" && deplibs_check_method=unknown 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388if test -n "$ac_tool_prefix"; then 3389 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3390set dummy ${ac_tool_prefix}ar; ac_word=$2 3391echo "$as_me:$LINENO: checking for $ac_word" >&5 3392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3393if test "${ac_cv_prog_AR+set}" = set; then 3394 echo $ECHO_N "(cached) $ECHO_C" >&6 3395else 3396 if test -n "$AR"; then 3397 ac_cv_prog_AR="$AR" # Let the user override the test. 3398else 3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3400for as_dir in $PATH 3401do 3402 IFS=$as_save_IFS 3403 test -z "$as_dir" && as_dir=. 3404 for ac_exec_ext in '' $ac_executable_extensions; do 3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3406 ac_cv_prog_AR="${ac_tool_prefix}ar" 3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3408 break 2 3409 fi 3410done 3411done 3412 3413fi 3414fi 3415AR=$ac_cv_prog_AR 3416if test -n "$AR"; then 3417 echo "$as_me:$LINENO: result: $AR" >&5 3418echo "${ECHO_T}$AR" >&6 3419else 3420 echo "$as_me:$LINENO: result: no" >&5 3421echo "${ECHO_T}no" >&6 3422fi 3423 3424fi 3425if test -z "$ac_cv_prog_AR"; then 3426 ac_ct_AR=$AR 3427 # Extract the first word of "ar", so it can be a program name with args. 3428set dummy ar; ac_word=$2 3429echo "$as_me:$LINENO: checking for $ac_word" >&5 3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3431if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 3432 echo $ECHO_N "(cached) $ECHO_C" >&6 3433else 3434 if test -n "$ac_ct_AR"; then 3435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_ac_ct_AR="ar" 3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449done 3450 3451 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 3452fi 3453fi 3454ac_ct_AR=$ac_cv_prog_ac_ct_AR 3455if test -n "$ac_ct_AR"; then 3456 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3457echo "${ECHO_T}$ac_ct_AR" >&6 3458else 3459 echo "$as_me:$LINENO: result: no" >&5 3460echo "${ECHO_T}no" >&6 3461fi 3462 3463 AR=$ac_ct_AR 3464else 3465 AR="$ac_cv_prog_AR" 3466fi 3467 3468test -z "$AR" && AR=ar 3469test -z "$AR_FLAGS" && AR_FLAGS=cru 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481if test -n "$ac_tool_prefix"; then 3482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3483set dummy ${ac_tool_prefix}strip; ac_word=$2 3484echo "$as_me:$LINENO: checking for $ac_word" >&5 3485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3486if test "${ac_cv_prog_STRIP+set}" = set; then 3487 echo $ECHO_N "(cached) $ECHO_C" >&6 3488else 3489 if test -n "$STRIP"; then 3490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3491else 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 test -z "$as_dir" && as_dir=. 3497 for ac_exec_ext in '' $ac_executable_extensions; do 3498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3499 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504done 3505 3506fi 3507fi 3508STRIP=$ac_cv_prog_STRIP 3509if test -n "$STRIP"; then 3510 echo "$as_me:$LINENO: result: $STRIP" >&5 3511echo "${ECHO_T}$STRIP" >&6 3512else 3513 echo "$as_me:$LINENO: result: no" >&5 3514echo "${ECHO_T}no" >&6 3515fi 3516 3517fi 3518if test -z "$ac_cv_prog_STRIP"; then 3519 ac_ct_STRIP=$STRIP 3520 # Extract the first word of "strip", so it can be a program name with args. 3521set dummy strip; ac_word=$2 3522echo "$as_me:$LINENO: checking for $ac_word" >&5 3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3525 echo $ECHO_N "(cached) $ECHO_C" >&6 3526else 3527 if test -n "$ac_ct_STRIP"; then 3528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3529else 3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531for as_dir in $PATH 3532do 3533 IFS=$as_save_IFS 3534 test -z "$as_dir" && as_dir=. 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3537 ac_cv_prog_ac_ct_STRIP="strip" 3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3539 break 2 3540 fi 3541done 3542done 3543 3544 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3545fi 3546fi 3547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3548if test -n "$ac_ct_STRIP"; then 3549 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3550echo "${ECHO_T}$ac_ct_STRIP" >&6 3551else 3552 echo "$as_me:$LINENO: result: no" >&5 3553echo "${ECHO_T}no" >&6 3554fi 3555 3556 STRIP=$ac_ct_STRIP 3557else 3558 STRIP="$ac_cv_prog_STRIP" 3559fi 3560 3561test -z "$STRIP" && STRIP=: 3562 3563 3564 3565 3566 3567 3568if test -n "$ac_tool_prefix"; then 3569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3570set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3571echo "$as_me:$LINENO: checking for $ac_word" >&5 3572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3573if test "${ac_cv_prog_RANLIB+set}" = set; then 3574 echo $ECHO_N "(cached) $ECHO_C" >&6 3575else 3576 if test -n "$RANLIB"; then 3577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3578else 3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3580for as_dir in $PATH 3581do 3582 IFS=$as_save_IFS 3583 test -z "$as_dir" && as_dir=. 3584 for ac_exec_ext in '' $ac_executable_extensions; do 3585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3588 break 2 3589 fi 3590done 3591done 3592 3593fi 3594fi 3595RANLIB=$ac_cv_prog_RANLIB 3596if test -n "$RANLIB"; then 3597 echo "$as_me:$LINENO: result: $RANLIB" >&5 3598echo "${ECHO_T}$RANLIB" >&6 3599else 3600 echo "$as_me:$LINENO: result: no" >&5 3601echo "${ECHO_T}no" >&6 3602fi 3603 3604fi 3605if test -z "$ac_cv_prog_RANLIB"; then 3606 ac_ct_RANLIB=$RANLIB 3607 # Extract the first word of "ranlib", so it can be a program name with args. 3608set dummy ranlib; ac_word=$2 3609echo "$as_me:$LINENO: checking for $ac_word" >&5 3610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3611if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 3613else 3614 if test -n "$ac_ct_RANLIB"; then 3615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_exec_ext in '' $ac_executable_extensions; do 3623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3624 ac_cv_prog_ac_ct_RANLIB="ranlib" 3625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 break 2 3627 fi 3628done 3629done 3630 3631 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3632fi 3633fi 3634ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3635if test -n "$ac_ct_RANLIB"; then 3636 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3637echo "${ECHO_T}$ac_ct_RANLIB" >&6 3638else 3639 echo "$as_me:$LINENO: result: no" >&5 3640echo "${ECHO_T}no" >&6 3641fi 3642 3643 RANLIB=$ac_ct_RANLIB 3644else 3645 RANLIB="$ac_cv_prog_RANLIB" 3646fi 3647 3648test -z "$RANLIB" && RANLIB=: 3649 3650 3651 3652 3653 3654 3655# Determine commands to create old-style static archives. 3656old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3657old_postinstall_cmds='chmod 644 $oldlib' 3658old_postuninstall_cmds= 3659 3660if test -n "$RANLIB"; then 3661 case $host_os in 3662 openbsd*) 3663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3664 ;; 3665 *) 3666 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3667 ;; 3668 esac 3669 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3670fi 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705# If no C compiler was specified, use CC. 3706LTCC=${LTCC-"$CC"} 3707 3708# If no C compiler flags were specified, use CFLAGS. 3709LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3710 3711# Allow CC to be a program name with arguments. 3712compiler=$CC 3713 3714 3715# Check for command to grab the raw symbol name followed by C symbol from nm. 3716echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 3717echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 3718if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3719 echo $ECHO_N "(cached) $ECHO_C" >&6 3720else 3721 3722# These are sane defaults that work on at least a few old systems. 3723# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3724 3725# Character class describing NM global symbol codes. 3726symcode='[BCDEGRST]' 3727 3728# Regexp to match symbols that can be accessed directly from C. 3729sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 3730 3731# Define system-specific variables. 3732case $host_os in 3733aix*) 3734 symcode='[BCDT]' 3735 ;; 3736cygwin* | mingw* | pw32*) 3737 symcode='[ABCDGISTW]' 3738 ;; 3739hpux*) 3740 if test "$host_cpu" = ia64; then 3741 symcode='[ABCDEGRST]' 3742 fi 3743 ;; 3744irix* | nonstopux*) 3745 symcode='[BCDEGRST]' 3746 ;; 3747osf*) 3748 symcode='[BCDEGQRST]' 3749 ;; 3750solaris*) 3751 symcode='[BDRT]' 3752 ;; 3753sco3.2v5*) 3754 symcode='[DT]' 3755 ;; 3756sysv4.2uw2*) 3757 symcode='[DT]' 3758 ;; 3759sysv5* | sco5v6* | unixware* | OpenUNIX*) 3760 symcode='[ABDT]' 3761 ;; 3762sysv4) 3763 symcode='[DFNSTU]' 3764 ;; 3765esac 3766 3767# If we're using GNU nm, then use its standard symbol codes. 3768case `$NM -V 2>&1` in 3769*GNU* | *'with BFD'*) 3770 symcode='[ABCDGIRSTW]' ;; 3771esac 3772 3773# Transform an extracted symbol line into a proper C declaration. 3774# Some systems (esp. on ia64) link data and code symbols differently, 3775# so use this general approach. 3776lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3777 3778# Transform an extracted symbol line into symbol name and symbol address 3779lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 3780lt_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'" 3781 3782# Handle CRLF in mingw tool chain 3783opt_cr= 3784case $build_os in 3785mingw*) 3786 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3787 ;; 3788esac 3789 3790# Try without a prefix underscore, then with it. 3791for ac_symprfx in "" "_"; do 3792 3793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3794 symxfrm="\\1 $ac_symprfx\\2 \\2" 3795 3796 # Write the raw and C identifiers. 3797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3798 # Fake it for dumpbin and say T for any non-static function 3799 # and D for any global variable. 3800 # Also find C++ and __fastcall symbols from MSVC++, 3801 # which start with @ or ?. 3802 lt_cv_sys_global_symbol_pipe="$AWK '"\ 3803" {last_section=section; section=\$ 3};"\ 3804" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3805" \$ 0!~/External *\|/{next};"\ 3806" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3807" {if(hide[section]) next};"\ 3808" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3809" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3810" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3811" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 3812" ' prfx=^$ac_symprfx" 3813 else 3814 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3815 fi 3816 3817 # Check to see that the pipe works correctly. 3818 pipe_works=no 3819 3820 rm -f conftest* 3821 cat > conftest.$ac_ext <<_LT_EOF 3822#ifdef __cplusplus 3823extern "C" { 3824#endif 3825char nm_test_var; 3826void nm_test_func(void); 3827void nm_test_func(void){} 3828#ifdef __cplusplus 3829} 3830#endif 3831int main(){nm_test_var='a';nm_test_func();return(0);} 3832_LT_EOF 3833 3834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3835 (eval $ac_compile) 2>&5 3836 ac_status=$? 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); }; then 3839 # Now try to grab the symbols. 3840 nlist=conftest.nm 3841 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 3842 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 3843 ac_status=$? 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); } && test -s "$nlist"; then 3846 # Try sorting and uniquifying the output. 3847 if sort "$nlist" | uniq > "$nlist"T; then 3848 mv -f "$nlist"T "$nlist" 3849 else 3850 rm -f "$nlist"T 3851 fi 3852 3853 # Make sure that we snagged all the symbols we need. 3854 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3855 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3856 cat <<_LT_EOF > conftest.$ac_ext 3857#ifdef __cplusplus 3858extern "C" { 3859#endif 3860 3861_LT_EOF 3862 # Now generate the symbol file. 3863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3864 3865 cat <<_LT_EOF >> conftest.$ac_ext 3866 3867/* The mapping between symbol names and symbols. */ 3868const struct { 3869 const char *name; 3870 void *address; 3871} 3872lt__PROGRAM__LTX_preloaded_symbols[] = 3873{ 3874 { "@PROGRAM@", (void *) 0 }, 3875_LT_EOF 3876 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3877 cat <<\_LT_EOF >> conftest.$ac_ext 3878 {0, (void *) 0} 3879}; 3880 3881/* This works around a problem in FreeBSD linker */ 3882#ifdef FREEBSD_WORKAROUND 3883static const void *lt_preloaded_setup() { 3884 return lt__PROGRAM__LTX_preloaded_symbols; 3885} 3886#endif 3887 3888#ifdef __cplusplus 3889} 3890#endif 3891_LT_EOF 3892 # Now try linking the two files. 3893 mv conftest.$ac_objext conftstm.$ac_objext 3894 lt_save_LIBS="$LIBS" 3895 lt_save_CFLAGS="$CFLAGS" 3896 LIBS="conftstm.$ac_objext" 3897 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3899 (eval $ac_link) 2>&5 3900 ac_status=$? 3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); } && test -s conftest${ac_exeext}; then 3903 pipe_works=yes 3904 fi 3905 LIBS="$lt_save_LIBS" 3906 CFLAGS="$lt_save_CFLAGS" 3907 else 3908 echo "cannot find nm_test_func in $nlist" >&5 3909 fi 3910 else 3911 echo "cannot find nm_test_var in $nlist" >&5 3912 fi 3913 else 3914 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 3915 fi 3916 else 3917 echo "$progname: failed program was:" >&5 3918 cat conftest.$ac_ext >&5 3919 fi 3920 rm -rf conftest* conftst* 3921 3922 # Do not use the global_symbol_pipe unless it works. 3923 if test "$pipe_works" = yes; then 3924 break 3925 else 3926 lt_cv_sys_global_symbol_pipe= 3927 fi 3928done 3929 3930fi 3931 3932if test -z "$lt_cv_sys_global_symbol_pipe"; then 3933 lt_cv_sys_global_symbol_to_cdecl= 3934fi 3935if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3936 echo "$as_me:$LINENO: result: failed" >&5 3937echo "${ECHO_T}failed" >&6 3938else 3939 echo "$as_me:$LINENO: result: ok" >&5 3940echo "${ECHO_T}ok" >&6 3941fi 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3966if test "${enable_libtool_lock+set}" = set; then 3967 enableval="$enable_libtool_lock" 3968 3969fi; 3970test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3971 3972# Some flags need to be propagated to the compiler or linker for good 3973# libtool support. 3974case $host in 3975ia64-*-hpux*) 3976 # Find out which ABI we are using. 3977 echo 'int i;' > conftest.$ac_ext 3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3979 (eval $ac_compile) 2>&5 3980 ac_status=$? 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); }; then 3983 case `/usr/bin/file conftest.$ac_objext` in 3984 *ELF-32*) 3985 HPUX_IA64_MODE="32" 3986 ;; 3987 *ELF-64*) 3988 HPUX_IA64_MODE="64" 3989 ;; 3990 esac 3991 fi 3992 rm -rf conftest* 3993 ;; 3994*-*-irix6*) 3995 # Find out which ABI we are using. 3996 echo '#line 3996 "configure"' > conftest.$ac_ext 3997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3998 (eval $ac_compile) 2>&5 3999 ac_status=$? 4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4001 (exit $ac_status); }; then 4002 if test "$lt_cv_prog_gnu_ld" = yes; then 4003 case `/usr/bin/file conftest.$ac_objext` in 4004 *32-bit*) 4005 LD="${LD-ld} -melf32bsmip" 4006 ;; 4007 *N32*) 4008 LD="${LD-ld} -melf32bmipn32" 4009 ;; 4010 *64-bit*) 4011 LD="${LD-ld} -melf64bmip" 4012 ;; 4013 esac 4014 else 4015 case `/usr/bin/file conftest.$ac_objext` in 4016 *32-bit*) 4017 LD="${LD-ld} -32" 4018 ;; 4019 *N32*) 4020 LD="${LD-ld} -n32" 4021 ;; 4022 *64-bit*) 4023 LD="${LD-ld} -64" 4024 ;; 4025 esac 4026 fi 4027 fi 4028 rm -rf conftest* 4029 ;; 4030 4031x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4032s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4033 # Find out which ABI we are using. 4034 echo 'int i;' > conftest.$ac_ext 4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4036 (eval $ac_compile) 2>&5 4037 ac_status=$? 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4039 (exit $ac_status); }; then 4040 case `/usr/bin/file conftest.o` in 4041 *32-bit*) 4042 case $host in 4043 x86_64-*kfreebsd*-gnu) 4044 LD="${LD-ld} -m elf_i386_fbsd" 4045 ;; 4046 x86_64-*linux*) 4047 LD="${LD-ld} -m elf_i386" 4048 ;; 4049 ppc64-*linux*|powerpc64-*linux*) 4050 LD="${LD-ld} -m elf32ppclinux" 4051 ;; 4052 s390x-*linux*) 4053 LD="${LD-ld} -m elf_s390" 4054 ;; 4055 sparc64-*linux*) 4056 LD="${LD-ld} -m elf32_sparc" 4057 ;; 4058 esac 4059 ;; 4060 *64-bit*) 4061 case $host in 4062 x86_64-*kfreebsd*-gnu) 4063 LD="${LD-ld} -m elf_x86_64_fbsd" 4064 ;; 4065 x86_64-*linux*) 4066 LD="${LD-ld} -m elf_x86_64" 4067 ;; 4068 ppc*-*linux*|powerpc*-*linux*) 4069 LD="${LD-ld} -m elf64ppc" 4070 ;; 4071 s390*-*linux*|s390*-*tpf*) 4072 LD="${LD-ld} -m elf64_s390" 4073 ;; 4074 sparc*-*linux*) 4075 LD="${LD-ld} -m elf64_sparc" 4076 ;; 4077 esac 4078 ;; 4079 esac 4080 fi 4081 rm -rf conftest* 4082 ;; 4083 4084*-*-sco3.2v5*) 4085 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4086 SAVE_CFLAGS="$CFLAGS" 4087 CFLAGS="$CFLAGS -belf" 4088 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4089echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4090if test "${lt_cv_cc_needs_belf+set}" = set; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 ac_ext=c 4094ac_cpp='$CPP $CPPFLAGS' 4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4097ac_compiler_gnu=$ac_cv_c_compiler_gnu 4098 4099 cat >conftest.$ac_ext <<_ACEOF 4100/* confdefs.h. */ 4101_ACEOF 4102cat confdefs.h >>conftest.$ac_ext 4103cat >>conftest.$ac_ext <<_ACEOF 4104/* end confdefs.h. */ 4105 4106int 4107main () 4108{ 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114rm -f conftest.$ac_objext conftest$ac_exeext 4115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4116 (eval $ac_link) 2>conftest.er1 4117 ac_status=$? 4118 grep -v '^ *+' conftest.er1 >conftest.err 4119 rm -f conftest.er1 4120 cat conftest.err >&5 4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4122 (exit $ac_status); } && 4123 { ac_try='test -z "$ac_c_werror_flag" 4124 || test ! -s conftest.err' 4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4126 (eval $ac_try) 2>&5 4127 ac_status=$? 4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4129 (exit $ac_status); }; } && 4130 { ac_try='test -s conftest$ac_exeext' 4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4132 (eval $ac_try) 2>&5 4133 ac_status=$? 4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4135 (exit $ac_status); }; }; then 4136 lt_cv_cc_needs_belf=yes 4137else 4138 echo "$as_me: failed program was:" >&5 4139sed 's/^/| /' conftest.$ac_ext >&5 4140 4141lt_cv_cc_needs_belf=no 4142fi 4143rm -f conftest.err conftest.$ac_objext \ 4144 conftest$ac_exeext conftest.$ac_ext 4145 ac_ext=c 4146ac_cpp='$CPP $CPPFLAGS' 4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4149ac_compiler_gnu=$ac_cv_c_compiler_gnu 4150 4151fi 4152echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4153echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4154 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4155 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4156 CFLAGS="$SAVE_CFLAGS" 4157 fi 4158 ;; 4159sparc*-*solaris*) 4160 # Find out which ABI we are using. 4161 echo 'int i;' > conftest.$ac_ext 4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4163 (eval $ac_compile) 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); }; then 4167 case `/usr/bin/file conftest.o` in 4168 *64-bit*) 4169 case $lt_cv_prog_gnu_ld in 4170 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4171 *) 4172 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4173 LD="${LD-ld} -64" 4174 fi 4175 ;; 4176 esac 4177 ;; 4178 esac 4179 fi 4180 rm -rf conftest* 4181 ;; 4182esac 4183 4184need_locks="$enable_libtool_lock" 4185 4186 4187 case $host_os in 4188 rhapsody* | darwin*) 4189 if test -n "$ac_tool_prefix"; then 4190 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 4191set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 4192echo "$as_me:$LINENO: checking for $ac_word" >&5 4193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4194if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196else 4197 if test -n "$DSYMUTIL"; then 4198 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 4199else 4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4201for as_dir in $PATH 4202do 4203 IFS=$as_save_IFS 4204 test -z "$as_dir" && as_dir=. 4205 for ac_exec_ext in '' $ac_executable_extensions; do 4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4207 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4209 break 2 4210 fi 4211done 4212done 4213 4214fi 4215fi 4216DSYMUTIL=$ac_cv_prog_DSYMUTIL 4217if test -n "$DSYMUTIL"; then 4218 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 4219echo "${ECHO_T}$DSYMUTIL" >&6 4220else 4221 echo "$as_me:$LINENO: result: no" >&5 4222echo "${ECHO_T}no" >&6 4223fi 4224 4225fi 4226if test -z "$ac_cv_prog_DSYMUTIL"; then 4227 ac_ct_DSYMUTIL=$DSYMUTIL 4228 # Extract the first word of "dsymutil", so it can be a program name with args. 4229set dummy dsymutil; ac_word=$2 4230echo "$as_me:$LINENO: checking for $ac_word" >&5 4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4232if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 if test -n "$ac_ct_DSYMUTIL"; then 4236 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 4237else 4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4239for as_dir in $PATH 4240do 4241 IFS=$as_save_IFS 4242 test -z "$as_dir" && as_dir=. 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4245 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4247 break 2 4248 fi 4249done 4250done 4251 4252 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" 4253fi 4254fi 4255ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 4256if test -n "$ac_ct_DSYMUTIL"; then 4257 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 4258echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 4259else 4260 echo "$as_me:$LINENO: result: no" >&5 4261echo "${ECHO_T}no" >&6 4262fi 4263 4264 DSYMUTIL=$ac_ct_DSYMUTIL 4265else 4266 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 4267fi 4268 4269 if test -n "$ac_tool_prefix"; then 4270 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 4271set dummy ${ac_tool_prefix}nmedit; ac_word=$2 4272echo "$as_me:$LINENO: checking for $ac_word" >&5 4273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4274if test "${ac_cv_prog_NMEDIT+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 if test -n "$NMEDIT"; then 4278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 4279else 4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4281for as_dir in $PATH 4282do 4283 IFS=$as_save_IFS 4284 test -z "$as_dir" && as_dir=. 4285 for ac_exec_ext in '' $ac_executable_extensions; do 4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4289 break 2 4290 fi 4291done 4292done 4293 4294fi 4295fi 4296NMEDIT=$ac_cv_prog_NMEDIT 4297if test -n "$NMEDIT"; then 4298 echo "$as_me:$LINENO: result: $NMEDIT" >&5 4299echo "${ECHO_T}$NMEDIT" >&6 4300else 4301 echo "$as_me:$LINENO: result: no" >&5 4302echo "${ECHO_T}no" >&6 4303fi 4304 4305fi 4306if test -z "$ac_cv_prog_NMEDIT"; then 4307 ac_ct_NMEDIT=$NMEDIT 4308 # Extract the first word of "nmedit", so it can be a program name with args. 4309set dummy nmedit; ac_word=$2 4310echo "$as_me:$LINENO: checking for $ac_word" >&5 4311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4312if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 4313 echo $ECHO_N "(cached) $ECHO_C" >&6 4314else 4315 if test -n "$ac_ct_NMEDIT"; then 4316 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4325 ac_cv_prog_ac_ct_NMEDIT="nmedit" 4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330done 4331 4332 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" 4333fi 4334fi 4335ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 4336if test -n "$ac_ct_NMEDIT"; then 4337 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 4338echo "${ECHO_T}$ac_ct_NMEDIT" >&6 4339else 4340 echo "$as_me:$LINENO: result: no" >&5 4341echo "${ECHO_T}no" >&6 4342fi 4343 4344 NMEDIT=$ac_ct_NMEDIT 4345else 4346 NMEDIT="$ac_cv_prog_NMEDIT" 4347fi 4348 4349 if test -n "$ac_tool_prefix"; then 4350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 4351set dummy ${ac_tool_prefix}lipo; ac_word=$2 4352echo "$as_me:$LINENO: checking for $ac_word" >&5 4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4354if test "${ac_cv_prog_LIPO+set}" = set; then 4355 echo $ECHO_N "(cached) $ECHO_C" >&6 4356else 4357 if test -n "$LIPO"; then 4358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 4359else 4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4361for as_dir in $PATH 4362do 4363 IFS=$as_save_IFS 4364 test -z "$as_dir" && as_dir=. 4365 for ac_exec_ext in '' $ac_executable_extensions; do 4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4369 break 2 4370 fi 4371done 4372done 4373 4374fi 4375fi 4376LIPO=$ac_cv_prog_LIPO 4377if test -n "$LIPO"; then 4378 echo "$as_me:$LINENO: result: $LIPO" >&5 4379echo "${ECHO_T}$LIPO" >&6 4380else 4381 echo "$as_me:$LINENO: result: no" >&5 4382echo "${ECHO_T}no" >&6 4383fi 4384 4385fi 4386if test -z "$ac_cv_prog_LIPO"; then 4387 ac_ct_LIPO=$LIPO 4388 # Extract the first word of "lipo", so it can be a program name with args. 4389set dummy lipo; ac_word=$2 4390echo "$as_me:$LINENO: checking for $ac_word" >&5 4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4392if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394else 4395 if test -n "$ac_ct_LIPO"; then 4396 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 4397else 4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4405 ac_cv_prog_ac_ct_LIPO="lipo" 4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410done 4411 4412 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" 4413fi 4414fi 4415ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 4416if test -n "$ac_ct_LIPO"; then 4417 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 4418echo "${ECHO_T}$ac_ct_LIPO" >&6 4419else 4420 echo "$as_me:$LINENO: result: no" >&5 4421echo "${ECHO_T}no" >&6 4422fi 4423 4424 LIPO=$ac_ct_LIPO 4425else 4426 LIPO="$ac_cv_prog_LIPO" 4427fi 4428 4429 if test -n "$ac_tool_prefix"; then 4430 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 4431set dummy ${ac_tool_prefix}otool; ac_word=$2 4432echo "$as_me:$LINENO: checking for $ac_word" >&5 4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4434if test "${ac_cv_prog_OTOOL+set}" = set; then 4435 echo $ECHO_N "(cached) $ECHO_C" >&6 4436else 4437 if test -n "$OTOOL"; then 4438 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 4439else 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4447 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4449 break 2 4450 fi 4451done 4452done 4453 4454fi 4455fi 4456OTOOL=$ac_cv_prog_OTOOL 4457if test -n "$OTOOL"; then 4458 echo "$as_me:$LINENO: result: $OTOOL" >&5 4459echo "${ECHO_T}$OTOOL" >&6 4460else 4461 echo "$as_me:$LINENO: result: no" >&5 4462echo "${ECHO_T}no" >&6 4463fi 4464 4465fi 4466if test -z "$ac_cv_prog_OTOOL"; then 4467 ac_ct_OTOOL=$OTOOL 4468 # Extract the first word of "otool", so it can be a program name with args. 4469set dummy otool; ac_word=$2 4470echo "$as_me:$LINENO: checking for $ac_word" >&5 4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4472if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474else 4475 if test -n "$ac_ct_OTOOL"; then 4476 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 4477else 4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_exec_ext in '' $ac_executable_extensions; do 4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4485 ac_cv_prog_ac_ct_OTOOL="otool" 4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4487 break 2 4488 fi 4489done 4490done 4491 4492 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" 4493fi 4494fi 4495ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 4496if test -n "$ac_ct_OTOOL"; then 4497 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 4498echo "${ECHO_T}$ac_ct_OTOOL" >&6 4499else 4500 echo "$as_me:$LINENO: result: no" >&5 4501echo "${ECHO_T}no" >&6 4502fi 4503 4504 OTOOL=$ac_ct_OTOOL 4505else 4506 OTOOL="$ac_cv_prog_OTOOL" 4507fi 4508 4509 if test -n "$ac_tool_prefix"; then 4510 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 4511set dummy ${ac_tool_prefix}otool64; ac_word=$2 4512echo "$as_me:$LINENO: checking for $ac_word" >&5 4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4514if test "${ac_cv_prog_OTOOL64+set}" = set; then 4515 echo $ECHO_N "(cached) $ECHO_C" >&6 4516else 4517 if test -n "$OTOOL64"; then 4518 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 4519else 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4527 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531done 4532done 4533 4534fi 4535fi 4536OTOOL64=$ac_cv_prog_OTOOL64 4537if test -n "$OTOOL64"; then 4538 echo "$as_me:$LINENO: result: $OTOOL64" >&5 4539echo "${ECHO_T}$OTOOL64" >&6 4540else 4541 echo "$as_me:$LINENO: result: no" >&5 4542echo "${ECHO_T}no" >&6 4543fi 4544 4545fi 4546if test -z "$ac_cv_prog_OTOOL64"; then 4547 ac_ct_OTOOL64=$OTOOL64 4548 # Extract the first word of "otool64", so it can be a program name with args. 4549set dummy otool64; ac_word=$2 4550echo "$as_me:$LINENO: checking for $ac_word" >&5 4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4552if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 if test -n "$ac_ct_OTOOL64"; then 4556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 4557else 4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559for as_dir in $PATH 4560do 4561 IFS=$as_save_IFS 4562 test -z "$as_dir" && as_dir=. 4563 for ac_exec_ext in '' $ac_executable_extensions; do 4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4565 ac_cv_prog_ac_ct_OTOOL64="otool64" 4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4567 break 2 4568 fi 4569done 4570done 4571 4572 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" 4573fi 4574fi 4575ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 4576if test -n "$ac_ct_OTOOL64"; then 4577 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 4578echo "${ECHO_T}$ac_ct_OTOOL64" >&6 4579else 4580 echo "$as_me:$LINENO: result: no" >&5 4581echo "${ECHO_T}no" >&6 4582fi 4583 4584 OTOOL64=$ac_ct_OTOOL64 4585else 4586 OTOOL64="$ac_cv_prog_OTOOL64" 4587fi 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 4616echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 4617if test "${lt_cv_apple_cc_single_mod+set}" = set; then 4618 echo $ECHO_N "(cached) $ECHO_C" >&6 4619else 4620 lt_cv_apple_cc_single_mod=no 4621 if test -z "${LT_MULTI_MODULE}"; then 4622 # By default we will add the -single_module flag. You can override 4623 # by either setting the environment variable LT_MULTI_MODULE 4624 # non-empty at configure time, or by adding -multi_module to the 4625 # link flags. 4626 rm -rf libconftest.dylib* 4627 echo "int foo(void){return 1;}" > conftest.c 4628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4629-dynamiclib -Wl,-single_module conftest.c" >&5 4630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 4632 _lt_result=$? 4633 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 4634 lt_cv_apple_cc_single_mod=yes 4635 else 4636 cat conftest.err >&5 4637 fi 4638 rm -rf libconftest.dylib* 4639 rm -f conftest.* 4640 fi 4641fi 4642echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 4643echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 4644 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 4645echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 4646if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648else 4649 lt_cv_ld_exported_symbols_list=no 4650 save_LDFLAGS=$LDFLAGS 4651 echo "_main" > conftest.sym 4652 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659 4660int 4661main () 4662{ 4663 4664 ; 4665 return 0; 4666} 4667_ACEOF 4668rm -f conftest.$ac_objext conftest$ac_exeext 4669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4670 (eval $ac_link) 2>conftest.er1 4671 ac_status=$? 4672 grep -v '^ *+' conftest.er1 >conftest.err 4673 rm -f conftest.er1 4674 cat conftest.err >&5 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4676 (exit $ac_status); } && 4677 { ac_try='test -z "$ac_c_werror_flag" 4678 || test ! -s conftest.err' 4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4680 (eval $ac_try) 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); }; } && 4684 { ac_try='test -s conftest$ac_exeext' 4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4686 (eval $ac_try) 2>&5 4687 ac_status=$? 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4689 (exit $ac_status); }; }; then 4690 lt_cv_ld_exported_symbols_list=yes 4691else 4692 echo "$as_me: failed program was:" >&5 4693sed 's/^/| /' conftest.$ac_ext >&5 4694 4695lt_cv_ld_exported_symbols_list=no 4696fi 4697rm -f conftest.err conftest.$ac_objext \ 4698 conftest$ac_exeext conftest.$ac_ext 4699 LDFLAGS="$save_LDFLAGS" 4700 4701fi 4702echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 4703echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 4704 case $host_os in 4705 rhapsody* | darwin1.[012]) 4706 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 4707 darwin1.*) 4708 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 4709 darwin*) # darwin 5.x on 4710 # if running on 10.5 or later, the deployment target defaults 4711 # to the OS version, if on x86, and 10.4, the deployment 4712 # target defaults to 10.4. Don't you love it? 4713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 4714 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 4715 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 4716 10.[012]*) 4717 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 4718 10.*) 4719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 4720 esac 4721 ;; 4722 esac 4723 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 4724 _lt_dar_single_mod='$single_module' 4725 fi 4726 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 4727 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 4728 else 4729 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 4730 fi 4731 if test "$DSYMUTIL" != ":"; then 4732 _lt_dsymutil='~$DSYMUTIL $lib || :' 4733 else 4734 _lt_dsymutil= 4735 fi 4736 ;; 4737 esac 4738 4739ac_ext=c 4740ac_cpp='$CPP $CPPFLAGS' 4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4743ac_compiler_gnu=$ac_cv_c_compiler_gnu 4744echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4745echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4746# On Suns, sometimes $CPP names a directory. 4747if test -n "$CPP" && test -d "$CPP"; then 4748 CPP= 4749fi 4750if test -z "$CPP"; then 4751 if test "${ac_cv_prog_CPP+set}" = set; then 4752 echo $ECHO_N "(cached) $ECHO_C" >&6 4753else 4754 # Double quotes because CPP needs to be expanded 4755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4756 do 4757 ac_preproc_ok=false 4758for ac_c_preproc_warn_flag in '' yes 4759do 4760 # Use a header file that comes with gcc, so configuring glibc 4761 # with a fresh cross-compiler works. 4762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4763 # <limits.h> exists even on freestanding compilers. 4764 # On the NeXT, cc -E runs the code through the compiler's parser, 4765 # not just through cpp. "Syntax error" is here to catch this case. 4766 cat >conftest.$ac_ext <<_ACEOF 4767/* confdefs.h. */ 4768_ACEOF 4769cat confdefs.h >>conftest.$ac_ext 4770cat >>conftest.$ac_ext <<_ACEOF 4771/* end confdefs.h. */ 4772#ifdef __STDC__ 4773# include <limits.h> 4774#else 4775# include <assert.h> 4776#endif 4777 Syntax error 4778_ACEOF 4779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4781 ac_status=$? 4782 grep -v '^ *+' conftest.er1 >conftest.err 4783 rm -f conftest.er1 4784 cat conftest.err >&5 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); } >/dev/null; then 4787 if test -s conftest.err; then 4788 ac_cpp_err=$ac_c_preproc_warn_flag 4789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4790 else 4791 ac_cpp_err= 4792 fi 4793else 4794 ac_cpp_err=yes 4795fi 4796if test -z "$ac_cpp_err"; then 4797 : 4798else 4799 echo "$as_me: failed program was:" >&5 4800sed 's/^/| /' conftest.$ac_ext >&5 4801 4802 # Broken: fails on valid input. 4803continue 4804fi 4805rm -f conftest.err conftest.$ac_ext 4806 4807 # OK, works on sane cases. Now check whether non-existent headers 4808 # can be detected and how. 4809 cat >conftest.$ac_ext <<_ACEOF 4810/* confdefs.h. */ 4811_ACEOF 4812cat confdefs.h >>conftest.$ac_ext 4813cat >>conftest.$ac_ext <<_ACEOF 4814/* end confdefs.h. */ 4815#include <ac_nonexistent.h> 4816_ACEOF 4817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4819 ac_status=$? 4820 grep -v '^ *+' conftest.er1 >conftest.err 4821 rm -f conftest.er1 4822 cat conftest.err >&5 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); } >/dev/null; then 4825 if test -s conftest.err; then 4826 ac_cpp_err=$ac_c_preproc_warn_flag 4827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4828 else 4829 ac_cpp_err= 4830 fi 4831else 4832 ac_cpp_err=yes 4833fi 4834if test -z "$ac_cpp_err"; then 4835 # Broken: success on invalid input. 4836continue 4837else 4838 echo "$as_me: failed program was:" >&5 4839sed 's/^/| /' conftest.$ac_ext >&5 4840 4841 # Passes both tests. 4842ac_preproc_ok=: 4843break 4844fi 4845rm -f conftest.err conftest.$ac_ext 4846 4847done 4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4849rm -f conftest.err conftest.$ac_ext 4850if $ac_preproc_ok; then 4851 break 4852fi 4853 4854 done 4855 ac_cv_prog_CPP=$CPP 4856 4857fi 4858 CPP=$ac_cv_prog_CPP 4859else 4860 ac_cv_prog_CPP=$CPP 4861fi 4862echo "$as_me:$LINENO: result: $CPP" >&5 4863echo "${ECHO_T}$CPP" >&6 4864ac_preproc_ok=false 4865for ac_c_preproc_warn_flag in '' yes 4866do 4867 # Use a header file that comes with gcc, so configuring glibc 4868 # with a fresh cross-compiler works. 4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4870 # <limits.h> exists even on freestanding compilers. 4871 # On the NeXT, cc -E runs the code through the compiler's parser, 4872 # not just through cpp. "Syntax error" is here to catch this case. 4873 cat >conftest.$ac_ext <<_ACEOF 4874/* confdefs.h. */ 4875_ACEOF 4876cat confdefs.h >>conftest.$ac_ext 4877cat >>conftest.$ac_ext <<_ACEOF 4878/* end confdefs.h. */ 4879#ifdef __STDC__ 4880# include <limits.h> 4881#else 4882# include <assert.h> 4883#endif 4884 Syntax error 4885_ACEOF 4886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4888 ac_status=$? 4889 grep -v '^ *+' conftest.er1 >conftest.err 4890 rm -f conftest.er1 4891 cat conftest.err >&5 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } >/dev/null; then 4894 if test -s conftest.err; then 4895 ac_cpp_err=$ac_c_preproc_warn_flag 4896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4897 else 4898 ac_cpp_err= 4899 fi 4900else 4901 ac_cpp_err=yes 4902fi 4903if test -z "$ac_cpp_err"; then 4904 : 4905else 4906 echo "$as_me: failed program was:" >&5 4907sed 's/^/| /' conftest.$ac_ext >&5 4908 4909 # Broken: fails on valid input. 4910continue 4911fi 4912rm -f conftest.err conftest.$ac_ext 4913 4914 # OK, works on sane cases. Now check whether non-existent headers 4915 # can be detected and how. 4916 cat >conftest.$ac_ext <<_ACEOF 4917/* confdefs.h. */ 4918_ACEOF 4919cat confdefs.h >>conftest.$ac_ext 4920cat >>conftest.$ac_ext <<_ACEOF 4921/* end confdefs.h. */ 4922#include <ac_nonexistent.h> 4923_ACEOF 4924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4926 ac_status=$? 4927 grep -v '^ *+' conftest.er1 >conftest.err 4928 rm -f conftest.er1 4929 cat conftest.err >&5 4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); } >/dev/null; then 4932 if test -s conftest.err; then 4933 ac_cpp_err=$ac_c_preproc_warn_flag 4934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4935 else 4936 ac_cpp_err= 4937 fi 4938else 4939 ac_cpp_err=yes 4940fi 4941if test -z "$ac_cpp_err"; then 4942 # Broken: success on invalid input. 4943continue 4944else 4945 echo "$as_me: failed program was:" >&5 4946sed 's/^/| /' conftest.$ac_ext >&5 4947 4948 # Passes both tests. 4949ac_preproc_ok=: 4950break 4951fi 4952rm -f conftest.err conftest.$ac_ext 4953 4954done 4955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4956rm -f conftest.err conftest.$ac_ext 4957if $ac_preproc_ok; then 4958 : 4959else 4960 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4961See \`config.log' for more details." >&5 4962echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4963See \`config.log' for more details." >&2;} 4964 { (exit 1); exit 1; }; } 4965fi 4966 4967ac_ext=c 4968ac_cpp='$CPP $CPPFLAGS' 4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4971ac_compiler_gnu=$ac_cv_c_compiler_gnu 4972 4973 4974echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4975echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4976if test "${ac_cv_header_stdc+set}" = set; then 4977 echo $ECHO_N "(cached) $ECHO_C" >&6 4978else 4979 cat >conftest.$ac_ext <<_ACEOF 4980/* confdefs.h. */ 4981_ACEOF 4982cat confdefs.h >>conftest.$ac_ext 4983cat >>conftest.$ac_ext <<_ACEOF 4984/* end confdefs.h. */ 4985#include <stdlib.h> 4986#include <stdarg.h> 4987#include <string.h> 4988#include <float.h> 4989 4990int 4991main () 4992{ 4993 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998rm -f conftest.$ac_objext 4999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5000 (eval $ac_compile) 2>conftest.er1 5001 ac_status=$? 5002 grep -v '^ *+' conftest.er1 >conftest.err 5003 rm -f conftest.er1 5004 cat conftest.err >&5 5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); } && 5007 { ac_try='test -z "$ac_c_werror_flag" 5008 || test ! -s conftest.err' 5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5010 (eval $ac_try) 2>&5 5011 ac_status=$? 5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5013 (exit $ac_status); }; } && 5014 { ac_try='test -s conftest.$ac_objext' 5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5016 (eval $ac_try) 2>&5 5017 ac_status=$? 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); }; }; then 5020 ac_cv_header_stdc=yes 5021else 5022 echo "$as_me: failed program was:" >&5 5023sed 's/^/| /' conftest.$ac_ext >&5 5024 5025ac_cv_header_stdc=no 5026fi 5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5028 5029if test $ac_cv_header_stdc = yes; then 5030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5031 cat >conftest.$ac_ext <<_ACEOF 5032/* confdefs.h. */ 5033_ACEOF 5034cat confdefs.h >>conftest.$ac_ext 5035cat >>conftest.$ac_ext <<_ACEOF 5036/* end confdefs.h. */ 5037#include <string.h> 5038 5039_ACEOF 5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5041 $EGREP "memchr" >/dev/null 2>&1; then 5042 : 5043else 5044 ac_cv_header_stdc=no 5045fi 5046rm -f conftest* 5047 5048fi 5049 5050if test $ac_cv_header_stdc = yes; then 5051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5052 cat >conftest.$ac_ext <<_ACEOF 5053/* confdefs.h. */ 5054_ACEOF 5055cat confdefs.h >>conftest.$ac_ext 5056cat >>conftest.$ac_ext <<_ACEOF 5057/* end confdefs.h. */ 5058#include <stdlib.h> 5059 5060_ACEOF 5061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5062 $EGREP "free" >/dev/null 2>&1; then 5063 : 5064else 5065 ac_cv_header_stdc=no 5066fi 5067rm -f conftest* 5068 5069fi 5070 5071if test $ac_cv_header_stdc = yes; then 5072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5073 if test "$cross_compiling" = yes; then 5074 : 5075else 5076 cat >conftest.$ac_ext <<_ACEOF 5077/* confdefs.h. */ 5078_ACEOF 5079cat confdefs.h >>conftest.$ac_ext 5080cat >>conftest.$ac_ext <<_ACEOF 5081/* end confdefs.h. */ 5082#include <ctype.h> 5083#if ((' ' & 0x0FF) == 0x020) 5084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5086#else 5087# define ISLOWER(c) \ 5088 (('a' <= (c) && (c) <= 'i') \ 5089 || ('j' <= (c) && (c) <= 'r') \ 5090 || ('s' <= (c) && (c) <= 'z')) 5091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5092#endif 5093 5094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5095int 5096main () 5097{ 5098 int i; 5099 for (i = 0; i < 256; i++) 5100 if (XOR (islower (i), ISLOWER (i)) 5101 || toupper (i) != TOUPPER (i)) 5102 exit(2); 5103 exit (0); 5104} 5105_ACEOF 5106rm -f conftest$ac_exeext 5107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5108 (eval $ac_link) 2>&5 5109 ac_status=$? 5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5113 (eval $ac_try) 2>&5 5114 ac_status=$? 5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5116 (exit $ac_status); }; }; then 5117 : 5118else 5119 echo "$as_me: program exited with status $ac_status" >&5 5120echo "$as_me: failed program was:" >&5 5121sed 's/^/| /' conftest.$ac_ext >&5 5122 5123( exit $ac_status ) 5124ac_cv_header_stdc=no 5125fi 5126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5127fi 5128fi 5129fi 5130echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5131echo "${ECHO_T}$ac_cv_header_stdc" >&6 5132if test $ac_cv_header_stdc = yes; then 5133 5134cat >>confdefs.h <<\_ACEOF 5135#define STDC_HEADERS 1 5136_ACEOF 5137 5138fi 5139 5140# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5151 inttypes.h stdint.h unistd.h 5152do 5153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5154echo "$as_me:$LINENO: checking for $ac_header" >&5 5155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5156if eval "test \"\${$as_ac_Header+set}\" = set"; then 5157 echo $ECHO_N "(cached) $ECHO_C" >&6 5158else 5159 cat >conftest.$ac_ext <<_ACEOF 5160/* confdefs.h. */ 5161_ACEOF 5162cat confdefs.h >>conftest.$ac_ext 5163cat >>conftest.$ac_ext <<_ACEOF 5164/* end confdefs.h. */ 5165$ac_includes_default 5166 5167#include <$ac_header> 5168_ACEOF 5169rm -f conftest.$ac_objext 5170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5171 (eval $ac_compile) 2>conftest.er1 5172 ac_status=$? 5173 grep -v '^ *+' conftest.er1 >conftest.err 5174 rm -f conftest.er1 5175 cat conftest.err >&5 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } && 5178 { ac_try='test -z "$ac_c_werror_flag" 5179 || test ! -s conftest.err' 5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5181 (eval $ac_try) 2>&5 5182 ac_status=$? 5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5184 (exit $ac_status); }; } && 5185 { ac_try='test -s conftest.$ac_objext' 5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5187 (eval $ac_try) 2>&5 5188 ac_status=$? 5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5190 (exit $ac_status); }; }; then 5191 eval "$as_ac_Header=yes" 5192else 5193 echo "$as_me: failed program was:" >&5 5194sed 's/^/| /' conftest.$ac_ext >&5 5195 5196eval "$as_ac_Header=no" 5197fi 5198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5199fi 5200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5202if test `eval echo '${'$as_ac_Header'}'` = yes; then 5203 cat >>confdefs.h <<_ACEOF 5204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5205_ACEOF 5206 5207fi 5208 5209done 5210 5211 5212 5213for ac_header in dlfcn.h 5214do 5215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5216echo "$as_me:$LINENO: checking for $ac_header" >&5 5217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5218if eval "test \"\${$as_ac_Header+set}\" = set"; then 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 5220else 5221 cat >conftest.$ac_ext <<_ACEOF 5222/* confdefs.h. */ 5223_ACEOF 5224cat confdefs.h >>conftest.$ac_ext 5225cat >>conftest.$ac_ext <<_ACEOF 5226/* end confdefs.h. */ 5227$ac_includes_default 5228 5229#include <$ac_header> 5230_ACEOF 5231rm -f conftest.$ac_objext 5232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5233 (eval $ac_compile) 2>conftest.er1 5234 ac_status=$? 5235 grep -v '^ *+' conftest.er1 >conftest.err 5236 rm -f conftest.er1 5237 cat conftest.err >&5 5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239 (exit $ac_status); } && 5240 { ac_try='test -z "$ac_c_werror_flag" 5241 || test ! -s conftest.err' 5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5243 (eval $ac_try) 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); }; } && 5247 { ac_try='test -s conftest.$ac_objext' 5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5249 (eval $ac_try) 2>&5 5250 ac_status=$? 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 (exit $ac_status); }; }; then 5253 eval "$as_ac_Header=yes" 5254else 5255 echo "$as_me: failed program was:" >&5 5256sed 's/^/| /' conftest.$ac_ext >&5 5257 5258eval "$as_ac_Header=no" 5259fi 5260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5261fi 5262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5264if test `eval echo '${'$as_ac_Header'}'` = yes; then 5265 cat >>confdefs.h <<_ACEOF 5266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5267_ACEOF 5268 5269fi 5270 5271done 5272 5273 5274 5275# Set options 5276 5277 5278 5279 enable_dlopen=no 5280 5281 5282 enable_win32_dll=no 5283 5284 5285 # Check whether --enable-shared or --disable-shared was given. 5286if test "${enable_shared+set}" = set; then 5287 enableval="$enable_shared" 5288 p=${PACKAGE-default} 5289 case $enableval in 5290 yes) enable_shared=yes ;; 5291 no) enable_shared=no ;; 5292 *) 5293 enable_shared=no 5294 # Look at the argument we got. We use all the common list separators. 5295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5296 for pkg in $enableval; do 5297 IFS="$lt_save_ifs" 5298 if test "X$pkg" = "X$p"; then 5299 enable_shared=yes 5300 fi 5301 done 5302 IFS="$lt_save_ifs" 5303 ;; 5304 esac 5305else 5306 enable_shared=yes 5307fi; 5308 5309 5310 5311 5312 5313 5314 5315 5316 # Check whether --enable-static or --disable-static was given. 5317if test "${enable_static+set}" = set; then 5318 enableval="$enable_static" 5319 p=${PACKAGE-default} 5320 case $enableval in 5321 yes) enable_static=yes ;; 5322 no) enable_static=no ;; 5323 *) 5324 enable_static=no 5325 # Look at the argument we got. We use all the common list separators. 5326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5327 for pkg in $enableval; do 5328 IFS="$lt_save_ifs" 5329 if test "X$pkg" = "X$p"; then 5330 enable_static=yes 5331 fi 5332 done 5333 IFS="$lt_save_ifs" 5334 ;; 5335 esac 5336else 5337 enable_static=yes 5338fi; 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348# Check whether --with-pic or --without-pic was given. 5349if test "${with_pic+set}" = set; then 5350 withval="$with_pic" 5351 pic_mode="$withval" 5352else 5353 pic_mode=default 5354fi; 5355 5356test -z "$pic_mode" && pic_mode=default 5357 5358 5359 5360 5361 5362 5363 5364 # Check whether --enable-fast-install or --disable-fast-install was given. 5365if test "${enable_fast_install+set}" = set; then 5366 enableval="$enable_fast_install" 5367 p=${PACKAGE-default} 5368 case $enableval in 5369 yes) enable_fast_install=yes ;; 5370 no) enable_fast_install=no ;; 5371 *) 5372 enable_fast_install=no 5373 # Look at the argument we got. We use all the common list separators. 5374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5375 for pkg in $enableval; do 5376 IFS="$lt_save_ifs" 5377 if test "X$pkg" = "X$p"; then 5378 enable_fast_install=yes 5379 fi 5380 done 5381 IFS="$lt_save_ifs" 5382 ;; 5383 esac 5384else 5385 enable_fast_install=yes 5386fi; 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397# This can be used to rebuild libtool when needed 5398LIBTOOL_DEPS="$ltmain" 5399 5400# Always use our own libtool. 5401LIBTOOL='$(SHELL) $(top_builddir)/libtool' 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427test -z "$LN_S" && LN_S="ln -s" 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442if test -n "${ZSH_VERSION+set}" ; then 5443 setopt NO_GLOB_SUBST 5444fi 5445 5446echo "$as_me:$LINENO: checking for objdir" >&5 5447echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5448if test "${lt_cv_objdir+set}" = set; then 5449 echo $ECHO_N "(cached) $ECHO_C" >&6 5450else 5451 rm -f .libs 2>/dev/null 5452mkdir .libs 2>/dev/null 5453if test -d .libs; then 5454 lt_cv_objdir=.libs 5455else 5456 # MS-DOS does not allow filenames that begin with a dot. 5457 lt_cv_objdir=_libs 5458fi 5459rmdir .libs 2>/dev/null 5460fi 5461echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5462echo "${ECHO_T}$lt_cv_objdir" >&6 5463objdir=$lt_cv_objdir 5464 5465 5466 5467 5468 5469cat >>confdefs.h <<_ACEOF 5470#define LT_OBJDIR "$lt_cv_objdir/" 5471_ACEOF 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489case $host_os in 5490aix3*) 5491 # AIX sometimes has problems with the GCC collect2 program. For some 5492 # reason, if we set the COLLECT_NAMES environment variable, the problems 5493 # vanish in a puff of smoke. 5494 if test "X${COLLECT_NAMES+set}" != Xset; then 5495 COLLECT_NAMES= 5496 export COLLECT_NAMES 5497 fi 5498 ;; 5499esac 5500 5501# Sed substitution that helps us do robust quoting. It backslashifies 5502# metacharacters that are still active within double-quoted strings. 5503sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5504 5505# Same as above, but do not quote variable references. 5506double_quote_subst='s/\(["`\\]\)/\\\1/g' 5507 5508# Sed substitution to delay expansion of an escaped shell variable in a 5509# double_quote_subst'ed string. 5510delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5511 5512# Sed substitution to delay expansion of an escaped single quote. 5513delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5514 5515# Sed substitution to avoid accidental globbing in evaled expressions 5516no_glob_subst='s/\*/\\\*/g' 5517 5518# Global variables: 5519ofile=libtool 5520can_build_shared=yes 5521 5522# All known linkers require a `.a' archive for static linking (except MSVC, 5523# which needs '.lib'). 5524libext=a 5525 5526with_gnu_ld="$lt_cv_prog_gnu_ld" 5527 5528old_CC="$CC" 5529old_CFLAGS="$CFLAGS" 5530 5531# Set sane defaults for various variables 5532test -z "$CC" && CC=cc 5533test -z "$LTCC" && LTCC=$CC 5534test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5535test -z "$LD" && LD=ld 5536test -z "$ac_objext" && ac_objext=o 5537 5538for cc_temp in $compiler""; do 5539 case $cc_temp in 5540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5542 \-*) ;; 5543 *) break;; 5544 esac 5545done 5546cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5547 5548 5549# Only perform the check for file, if the check method requires it 5550test -z "$MAGIC_CMD" && MAGIC_CMD=file 5551case $deplibs_check_method in 5552file_magic*) 5553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5554 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5555echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5557 echo $ECHO_N "(cached) $ECHO_C" >&6 5558else 5559 case $MAGIC_CMD in 5560[\\/*] | ?:[\\/]*) 5561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5562 ;; 5563*) 5564 lt_save_MAGIC_CMD="$MAGIC_CMD" 5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5567 for ac_dir in $ac_dummy; do 5568 IFS="$lt_save_ifs" 5569 test -z "$ac_dir" && ac_dir=. 5570 if test -f $ac_dir/${ac_tool_prefix}file; then 5571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5572 if test -n "$file_magic_test_file"; then 5573 case $deplibs_check_method in 5574 "file_magic "*) 5575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5578 $EGREP "$file_magic_regex" > /dev/null; then 5579 : 5580 else 5581 cat <<_LT_EOF 1>&2 5582 5583*** Warning: the command libtool uses to detect shared libraries, 5584*** $file_magic_cmd, produces output that libtool cannot recognize. 5585*** The result is that libtool may fail to recognize shared libraries 5586*** as such. This will affect the creation of libtool libraries that 5587*** depend on shared libraries, but programs linked with such libtool 5588*** libraries will work regardless of this problem. Nevertheless, you 5589*** may want to report the problem to your system manager and/or to 5590*** [email protected] 5591 5592_LT_EOF 5593 fi ;; 5594 esac 5595 fi 5596 break 5597 fi 5598 done 5599 IFS="$lt_save_ifs" 5600 MAGIC_CMD="$lt_save_MAGIC_CMD" 5601 ;; 5602esac 5603fi 5604 5605MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5606if test -n "$MAGIC_CMD"; then 5607 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5608echo "${ECHO_T}$MAGIC_CMD" >&6 5609else 5610 echo "$as_me:$LINENO: result: no" >&5 5611echo "${ECHO_T}no" >&6 5612fi 5613 5614 5615 5616 5617 5618if test -z "$lt_cv_path_MAGIC_CMD"; then 5619 if test -n "$ac_tool_prefix"; then 5620 echo "$as_me:$LINENO: checking for file" >&5 5621echo $ECHO_N "checking for file... $ECHO_C" >&6 5622if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5623 echo $ECHO_N "(cached) $ECHO_C" >&6 5624else 5625 case $MAGIC_CMD in 5626[\\/*] | ?:[\\/]*) 5627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5628 ;; 5629*) 5630 lt_save_MAGIC_CMD="$MAGIC_CMD" 5631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5633 for ac_dir in $ac_dummy; do 5634 IFS="$lt_save_ifs" 5635 test -z "$ac_dir" && ac_dir=. 5636 if test -f $ac_dir/file; then 5637 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5638 if test -n "$file_magic_test_file"; then 5639 case $deplibs_check_method in 5640 "file_magic "*) 5641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5644 $EGREP "$file_magic_regex" > /dev/null; then 5645 : 5646 else 5647 cat <<_LT_EOF 1>&2 5648 5649*** Warning: the command libtool uses to detect shared libraries, 5650*** $file_magic_cmd, produces output that libtool cannot recognize. 5651*** The result is that libtool may fail to recognize shared libraries 5652*** as such. This will affect the creation of libtool libraries that 5653*** depend on shared libraries, but programs linked with such libtool 5654*** libraries will work regardless of this problem. Nevertheless, you 5655*** may want to report the problem to your system manager and/or to 5656*** [email protected] 5657 5658_LT_EOF 5659 fi ;; 5660 esac 5661 fi 5662 break 5663 fi 5664 done 5665 IFS="$lt_save_ifs" 5666 MAGIC_CMD="$lt_save_MAGIC_CMD" 5667 ;; 5668esac 5669fi 5670 5671MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5672if test -n "$MAGIC_CMD"; then 5673 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5674echo "${ECHO_T}$MAGIC_CMD" >&6 5675else 5676 echo "$as_me:$LINENO: result: no" >&5 5677echo "${ECHO_T}no" >&6 5678fi 5679 5680 5681 else 5682 MAGIC_CMD=: 5683 fi 5684fi 5685 5686 fi 5687 ;; 5688esac 5689 5690# Use C for the default configuration in the libtool script 5691 5692lt_save_CC="$CC" 5693ac_ext=c 5694ac_cpp='$CPP $CPPFLAGS' 5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5697ac_compiler_gnu=$ac_cv_c_compiler_gnu 5698 5699 5700# Source file extension for C test sources. 5701ac_ext=c 5702 5703# Object file extension for compiled C test sources. 5704objext=o 5705objext=$objext 5706 5707# Code to be used in simple compile tests 5708lt_simple_compile_test_code="int some_variable = 0;" 5709 5710# Code to be used in simple link tests 5711lt_simple_link_test_code='int main(){return(0);}' 5712 5713 5714 5715 5716 5717 5718 5719# If no C compiler was specified, use CC. 5720LTCC=${LTCC-"$CC"} 5721 5722# If no C compiler flags were specified, use CFLAGS. 5723LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5724 5725# Allow CC to be a program name with arguments. 5726compiler=$CC 5727 5728# Save the default compiler, since it gets overwritten when the other 5729# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5730compiler_DEFAULT=$CC 5731 5732# save warnings/boilerplate of simple test code 5733ac_outfile=conftest.$ac_objext 5734echo "$lt_simple_compile_test_code" >conftest.$ac_ext 5735eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5736_lt_compiler_boilerplate=`cat conftest.err` 5737$RM conftest* 5738 5739ac_outfile=conftest.$ac_objext 5740echo "$lt_simple_link_test_code" >conftest.$ac_ext 5741eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5742_lt_linker_boilerplate=`cat conftest.err` 5743$RM -r conftest* 5744 5745 5746if test -n "$compiler"; then 5747 5748lt_prog_compiler_no_builtin_flag= 5749 5750if test "$GCC" = yes; then 5751 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5752 5753 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5754echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5755if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5756 echo $ECHO_N "(cached) $ECHO_C" >&6 5757else 5758 lt_cv_prog_compiler_rtti_exceptions=no 5759 ac_outfile=conftest.$ac_objext 5760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5761 lt_compiler_flag="-fno-rtti -fno-exceptions" 5762 # Insert the option either (1) after the last *FLAGS variable, or 5763 # (2) before a word containing "conftest.", or (3) at the end. 5764 # Note that $ac_compile itself does not contain backslashes and begins 5765 # with a dollar sign (not a hyphen), so the echo should work correctly. 5766 # The option is referenced via a variable to avoid confusing sed. 5767 lt_compile=`echo "$ac_compile" | $SED \ 5768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5770 -e 's:$: $lt_compiler_flag:'` 5771 (eval echo "\"\$as_me:5771: $lt_compile\"" >&5) 5772 (eval "$lt_compile" 2>conftest.err) 5773 ac_status=$? 5774 cat conftest.err >&5 5775 echo "$as_me:5775: \$? = $ac_status" >&5 5776 if (exit $ac_status) && test -s "$ac_outfile"; then 5777 # The compiler can only warn and ignore the option if not recognized 5778 # So say no if there are warnings other than the usual output. 5779 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5782 lt_cv_prog_compiler_rtti_exceptions=yes 5783 fi 5784 fi 5785 $RM conftest* 5786 5787fi 5788echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5789echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5790 5791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5793else 5794 : 5795fi 5796 5797fi 5798 5799 5800 5801 5802 5803 5804 lt_prog_compiler_wl= 5805lt_prog_compiler_pic= 5806lt_prog_compiler_static= 5807 5808echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5810 5811 if test "$GCC" = yes; then 5812 lt_prog_compiler_wl='-Wl,' 5813 lt_prog_compiler_static='-static' 5814 5815 case $host_os in 5816 aix*) 5817 # All AIX code is PIC. 5818 if test "$host_cpu" = ia64; then 5819 # AIX 5 now supports IA64 processor 5820 lt_prog_compiler_static='-Bstatic' 5821 fi 5822 ;; 5823 5824 amigaos*) 5825 case $host_cpu in 5826 powerpc) 5827 # see comment about AmigaOS4 .so support 5828 lt_prog_compiler_pic='-fPIC' 5829 ;; 5830 m68k) 5831 # FIXME: we need at least 68020 code to build shared libraries, but 5832 # adding the `-m68020' flag to GCC prevents building anything better, 5833 # like `-m68040'. 5834 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5835 ;; 5836 esac 5837 ;; 5838 5839 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5840 # PIC is the default for these OSes. 5841 ;; 5842 5843 mingw* | cygwin* | pw32* | os2*) 5844 # This hack is so that the source file can tell whether it is being 5845 # built for inclusion in a dll (and should export symbols for example). 5846 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5847 # (--disable-auto-import) libraries 5848 lt_prog_compiler_pic='-DDLL_EXPORT' 5849 ;; 5850 5851 darwin* | rhapsody*) 5852 # PIC is the default on this platform 5853 # Common symbols not allowed in MH_DYLIB files 5854 lt_prog_compiler_pic='-fno-common' 5855 ;; 5856 5857 hpux*) 5858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5859 # not for PA HP-UX. 5860 case $host_cpu in 5861 hppa*64*|ia64*) 5862 # +Z the default 5863 ;; 5864 *) 5865 lt_prog_compiler_pic='-fPIC' 5866 ;; 5867 esac 5868 ;; 5869 5870 interix[3-9]*) 5871 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5872 # Instead, we relocate shared libraries at runtime. 5873 ;; 5874 5875 msdosdjgpp*) 5876 # Just because we use GCC doesn't mean we suddenly get shared libraries 5877 # on systems that don't support them. 5878 lt_prog_compiler_can_build_shared=no 5879 enable_shared=no 5880 ;; 5881 5882 *nto* | *qnx*) 5883 # QNX uses GNU C++, but need to define -shared option too, otherwise 5884 # it will coredump. 5885 lt_prog_compiler_pic='-fPIC -shared' 5886 ;; 5887 5888 sysv4*MP*) 5889 if test -d /usr/nec; then 5890 lt_prog_compiler_pic=-Kconform_pic 5891 fi 5892 ;; 5893 5894 *) 5895 lt_prog_compiler_pic='-fPIC' 5896 ;; 5897 esac 5898 else 5899 # PORTME Check for flag to pass linker flags through the system compiler. 5900 case $host_os in 5901 aix*) 5902 lt_prog_compiler_wl='-Wl,' 5903 if test "$host_cpu" = ia64; then 5904 # AIX 5 now supports IA64 processor 5905 lt_prog_compiler_static='-Bstatic' 5906 else 5907 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5908 fi 5909 ;; 5910 5911 mingw* | cygwin* | pw32* | os2*) 5912 # This hack is so that the source file can tell whether it is being 5913 # built for inclusion in a dll (and should export symbols for example). 5914 lt_prog_compiler_pic='-DDLL_EXPORT' 5915 ;; 5916 5917 hpux9* | hpux10* | hpux11*) 5918 lt_prog_compiler_wl='-Wl,' 5919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5920 # not for PA HP-UX. 5921 case $host_cpu in 5922 hppa*64*|ia64*) 5923 # +Z the default 5924 ;; 5925 *) 5926 lt_prog_compiler_pic='+Z' 5927 ;; 5928 esac 5929 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5930 lt_prog_compiler_static='${wl}-a ${wl}archive' 5931 ;; 5932 5933 irix5* | irix6* | nonstopux*) 5934 lt_prog_compiler_wl='-Wl,' 5935 # PIC (with -KPIC) is the default. 5936 lt_prog_compiler_static='-non_shared' 5937 ;; 5938 5939 linux* | k*bsd*-gnu) 5940 case $cc_basename in 5941 icc* | ecc* | ifort*) 5942 lt_prog_compiler_wl='-Wl,' 5943 lt_prog_compiler_pic='-KPIC' 5944 lt_prog_compiler_static='-static' 5945 ;; 5946 pgcc* | pgf77* | pgf90* | pgf95*) 5947 # Portland Group compilers (*not* the Pentium gcc compiler, 5948 # which looks to be a dead project) 5949 lt_prog_compiler_wl='-Wl,' 5950 lt_prog_compiler_pic='-fpic' 5951 lt_prog_compiler_static='-Bstatic' 5952 ;; 5953 ccc*) 5954 lt_prog_compiler_wl='-Wl,' 5955 # All Alpha code is PIC. 5956 lt_prog_compiler_static='-non_shared' 5957 ;; 5958 xl*) 5959 # IBM XL C 8.0/Fortran 10.1 on PPC 5960 lt_prog_compiler_wl='-Wl,' 5961 lt_prog_compiler_pic='-qpic' 5962 lt_prog_compiler_static='-qstaticlink' 5963 ;; 5964 *) 5965 case `$CC -V 2>&1 | sed 5q` in 5966 *Sun\ C*) 5967 # Sun C 5.9 5968 lt_prog_compiler_pic='-KPIC' 5969 lt_prog_compiler_static='-Bstatic' 5970 lt_prog_compiler_wl='-Wl,' 5971 ;; 5972 *Sun\ F*) 5973 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5974 lt_prog_compiler_pic='-KPIC' 5975 lt_prog_compiler_static='-Bstatic' 5976 lt_prog_compiler_wl='' 5977 ;; 5978 esac 5979 ;; 5980 esac 5981 ;; 5982 5983 newsos6) 5984 lt_prog_compiler_pic='-KPIC' 5985 lt_prog_compiler_static='-Bstatic' 5986 ;; 5987 5988 *nto* | *qnx*) 5989 # QNX uses GNU C++, but need to define -shared option too, otherwise 5990 # it will coredump. 5991 lt_prog_compiler_pic='-fPIC -shared' 5992 ;; 5993 5994 osf3* | osf4* | osf5*) 5995 lt_prog_compiler_wl='-Wl,' 5996 # All OSF/1 code is PIC. 5997 lt_prog_compiler_static='-non_shared' 5998 ;; 5999 6000 rdos*) 6001 lt_prog_compiler_static='-non_shared' 6002 ;; 6003 6004 solaris*) 6005 lt_prog_compiler_pic='-KPIC' 6006 lt_prog_compiler_static='-Bstatic' 6007 case $cc_basename in 6008 f77* | f90* | f95*) 6009 lt_prog_compiler_wl='-Qoption ld ';; 6010 *) 6011 lt_prog_compiler_wl='-Wl,';; 6012 esac 6013 ;; 6014 6015 sunos4*) 6016 lt_prog_compiler_wl='-Qoption ld ' 6017 lt_prog_compiler_pic='-PIC' 6018 lt_prog_compiler_static='-Bstatic' 6019 ;; 6020 6021 sysv4 | sysv4.2uw2* | sysv4.3*) 6022 lt_prog_compiler_wl='-Wl,' 6023 lt_prog_compiler_pic='-KPIC' 6024 lt_prog_compiler_static='-Bstatic' 6025 ;; 6026 6027 sysv4*MP*) 6028 if test -d /usr/nec ;then 6029 lt_prog_compiler_pic='-Kconform_pic' 6030 lt_prog_compiler_static='-Bstatic' 6031 fi 6032 ;; 6033 6034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6035 lt_prog_compiler_wl='-Wl,' 6036 lt_prog_compiler_pic='-KPIC' 6037 lt_prog_compiler_static='-Bstatic' 6038 ;; 6039 6040 unicos*) 6041 lt_prog_compiler_wl='-Wl,' 6042 lt_prog_compiler_can_build_shared=no 6043 ;; 6044 6045 uts4*) 6046 lt_prog_compiler_pic='-pic' 6047 lt_prog_compiler_static='-Bstatic' 6048 ;; 6049 6050 *) 6051 lt_prog_compiler_can_build_shared=no 6052 ;; 6053 esac 6054 fi 6055 6056case $host_os in 6057 # For platforms which do not support PIC, -DPIC is meaningless: 6058 *djgpp*) 6059 lt_prog_compiler_pic= 6060 ;; 6061 *) 6062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6063 ;; 6064esac 6065echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6066echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6067 6068 6069 6070 6071 6072 6073# 6074# Check to make sure the PIC flag actually works. 6075# 6076if test -n "$lt_prog_compiler_pic"; then 6077 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6079if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 6080 echo $ECHO_N "(cached) $ECHO_C" >&6 6081else 6082 lt_cv_prog_compiler_pic_works=no 6083 ac_outfile=conftest.$ac_objext 6084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6085 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6086 # Insert the option either (1) after the last *FLAGS variable, or 6087 # (2) before a word containing "conftest.", or (3) at the end. 6088 # Note that $ac_compile itself does not contain backslashes and begins 6089 # with a dollar sign (not a hyphen), so the echo should work correctly. 6090 # The option is referenced via a variable to avoid confusing sed. 6091 lt_compile=`echo "$ac_compile" | $SED \ 6092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6094 -e 's:$: $lt_compiler_flag:'` 6095 (eval echo "\"\$as_me:6095: $lt_compile\"" >&5) 6096 (eval "$lt_compile" 2>conftest.err) 6097 ac_status=$? 6098 cat conftest.err >&5 6099 echo "$as_me:6099: \$? = $ac_status" >&5 6100 if (exit $ac_status) && test -s "$ac_outfile"; then 6101 # The compiler can only warn and ignore the option if not recognized 6102 # So say no if there are warnings other than the usual output. 6103 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6106 lt_cv_prog_compiler_pic_works=yes 6107 fi 6108 fi 6109 $RM conftest* 6110 6111fi 6112echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 6113echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 6114 6115if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 6116 case $lt_prog_compiler_pic in 6117 "" | " "*) ;; 6118 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6119 esac 6120else 6121 lt_prog_compiler_pic= 6122 lt_prog_compiler_can_build_shared=no 6123fi 6124 6125fi 6126 6127 6128 6129 6130 6131 6132# 6133# Check to make sure the static flag actually works. 6134# 6135wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6136echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6137echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6138if test "${lt_cv_prog_compiler_static_works+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 lt_cv_prog_compiler_static_works=no 6142 save_LDFLAGS="$LDFLAGS" 6143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6144 echo "$lt_simple_link_test_code" > conftest.$ac_ext 6145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6146 # The linker can only warn and ignore the option if not recognized 6147 # So say no if there are warnings 6148 if test -s conftest.err; then 6149 # Append any errors to the config.log. 6150 cat conftest.err 1>&5 6151 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6153 if diff conftest.exp conftest.er2 >/dev/null; then 6154 lt_cv_prog_compiler_static_works=yes 6155 fi 6156 else 6157 lt_cv_prog_compiler_static_works=yes 6158 fi 6159 fi 6160 $RM -r conftest* 6161 LDFLAGS="$save_LDFLAGS" 6162 6163fi 6164echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 6165echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 6166 6167if test x"$lt_cv_prog_compiler_static_works" = xyes; then 6168 : 6169else 6170 lt_prog_compiler_static= 6171fi 6172 6173 6174 6175 6176 6177 6178 6179 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6180echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6181if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183else 6184 lt_cv_prog_compiler_c_o=no 6185 $RM -r conftest 2>/dev/null 6186 mkdir conftest 6187 cd conftest 6188 mkdir out 6189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6190 6191 lt_compiler_flag="-o out/conftest2.$ac_objext" 6192 # Insert the option either (1) after the last *FLAGS variable, or 6193 # (2) before a word containing "conftest.", or (3) at the end. 6194 # Note that $ac_compile itself does not contain backslashes and begins 6195 # with a dollar sign (not a hyphen), so the echo should work correctly. 6196 lt_compile=`echo "$ac_compile" | $SED \ 6197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6199 -e 's:$: $lt_compiler_flag:'` 6200 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5) 6201 (eval "$lt_compile" 2>out/conftest.err) 6202 ac_status=$? 6203 cat out/conftest.err >&5 6204 echo "$as_me:6204: \$? = $ac_status" >&5 6205 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6206 then 6207 # The compiler can only warn and ignore the option if not recognized 6208 # So say no if there are warnings 6209 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6212 lt_cv_prog_compiler_c_o=yes 6213 fi 6214 fi 6215 chmod u+w . 2>&5 6216 $RM conftest* 6217 # SGI C++ compiler will create directory out/ii_files/ for 6218 # template instantiation 6219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6220 $RM out/* && rmdir out 6221 cd .. 6222 $RM -r conftest 6223 $RM conftest* 6224 6225fi 6226echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6227echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6228 6229 6230 6231 6232 6233 6234 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6235echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6236if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6237 echo $ECHO_N "(cached) $ECHO_C" >&6 6238else 6239 lt_cv_prog_compiler_c_o=no 6240 $RM -r conftest 2>/dev/null 6241 mkdir conftest 6242 cd conftest 6243 mkdir out 6244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6245 6246 lt_compiler_flag="-o out/conftest2.$ac_objext" 6247 # Insert the option either (1) after the last *FLAGS variable, or 6248 # (2) before a word containing "conftest.", or (3) at the end. 6249 # Note that $ac_compile itself does not contain backslashes and begins 6250 # with a dollar sign (not a hyphen), so the echo should work correctly. 6251 lt_compile=`echo "$ac_compile" | $SED \ 6252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6254 -e 's:$: $lt_compiler_flag:'` 6255 (eval echo "\"\$as_me:6255: $lt_compile\"" >&5) 6256 (eval "$lt_compile" 2>out/conftest.err) 6257 ac_status=$? 6258 cat out/conftest.err >&5 6259 echo "$as_me:6259: \$? = $ac_status" >&5 6260 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6261 then 6262 # The compiler can only warn and ignore the option if not recognized 6263 # So say no if there are warnings 6264 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6267 lt_cv_prog_compiler_c_o=yes 6268 fi 6269 fi 6270 chmod u+w . 2>&5 6271 $RM conftest* 6272 # SGI C++ compiler will create directory out/ii_files/ for 6273 # template instantiation 6274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6275 $RM out/* && rmdir out 6276 cd .. 6277 $RM -r conftest 6278 $RM conftest* 6279 6280fi 6281echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6282echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6283 6284 6285 6286 6287hard_links="nottested" 6288if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6289 # do not overwrite the value of need_locks provided by the user 6290 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6292 hard_links=yes 6293 $RM conftest* 6294 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6295 touch conftest.a 6296 ln conftest.a conftest.b 2>&5 || hard_links=no 6297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6298 echo "$as_me:$LINENO: result: $hard_links" >&5 6299echo "${ECHO_T}$hard_links" >&6 6300 if test "$hard_links" = no; then 6301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6303 need_locks=warn 6304 fi 6305else 6306 need_locks=no 6307fi 6308 6309 6310 6311 6312 6313 6314 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6316 6317 runpath_var= 6318 allow_undefined_flag= 6319 always_export_symbols=no 6320 archive_cmds= 6321 archive_expsym_cmds= 6322 compiler_needs_object=no 6323 enable_shared_with_static_runtimes=no 6324 export_dynamic_flag_spec= 6325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6326 hardcode_automatic=no 6327 hardcode_direct=no 6328 hardcode_direct_absolute=no 6329 hardcode_libdir_flag_spec= 6330 hardcode_libdir_flag_spec_ld= 6331 hardcode_libdir_separator= 6332 hardcode_minus_L=no 6333 hardcode_shlibpath_var=unsupported 6334 inherit_rpath=no 6335 link_all_deplibs=unknown 6336 module_cmds= 6337 module_expsym_cmds= 6338 old_archive_from_new_cmds= 6339 old_archive_from_expsyms_cmds= 6340 thread_safe_flag_spec= 6341 whole_archive_flag_spec= 6342 # include_expsyms should be a list of space-separated symbols to be *always* 6343 # included in the symbol list 6344 include_expsyms= 6345 # exclude_expsyms can be an extended regexp of symbols to exclude 6346 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6347 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6348 # as well as any symbol that contains `d'. 6349 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 6350 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6351 # platforms (ab)use it in PIC code, but their linkers get confused if 6352 # the symbol is explicitly referenced. Since portable code cannot 6353 # rely on this symbol name, it's probably fine to never include it in 6354 # preloaded symbol tables. 6355 # Exclude shared library initialization/finalization symbols. 6356 extract_expsyms_cmds= 6357 6358 case $host_os in 6359 cygwin* | mingw* | pw32*) 6360 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6361 # When not using gcc, we currently assume that we are using 6362 # Microsoft Visual C++. 6363 if test "$GCC" != yes; then 6364 with_gnu_ld=no 6365 fi 6366 ;; 6367 interix*) 6368 # we just hope/assume this is gcc and not c89 (= MSVC++) 6369 with_gnu_ld=yes 6370 ;; 6371 openbsd*) 6372 with_gnu_ld=no 6373 ;; 6374 esac 6375 6376 ld_shlibs=yes 6377 if test "$with_gnu_ld" = yes; then 6378 # If archive_cmds runs LD, not CC, wlarc should be empty 6379 wlarc='${wl}' 6380 6381 # Set some defaults for GNU ld with shared library support. These 6382 # are reset later if shared libraries are not supported. Putting them 6383 # here allows them to be overridden if necessary. 6384 runpath_var=LD_RUN_PATH 6385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6386 export_dynamic_flag_spec='${wl}--export-dynamic' 6387 # ancient GNU ld didn't support --whole-archive et. al. 6388 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6389 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6390 else 6391 whole_archive_flag_spec= 6392 fi 6393 supports_anon_versioning=no 6394 case `$LD -v 2>&1` in 6395 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6398 *\ 2.11.*) ;; # other 2.11 versions 6399 *) supports_anon_versioning=yes ;; 6400 esac 6401 6402 # See if GNU ld supports shared libraries. 6403 case $host_os in 6404 aix[3-9]*) 6405 # On AIX/PPC, the GNU linker is very broken 6406 if test "$host_cpu" != ia64; then 6407 ld_shlibs=no 6408 cat <<_LT_EOF 1>&2 6409 6410*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6411*** to be unable to reliably create shared libraries on AIX. 6412*** Therefore, libtool is disabling shared libraries support. If you 6413*** really care for shared libraries, you may want to modify your PATH 6414*** so that a non-GNU linker is found, and then restart. 6415 6416_LT_EOF 6417 fi 6418 ;; 6419 6420 amigaos*) 6421 case $host_cpu in 6422 powerpc) 6423 # see comment about AmigaOS4 .so support 6424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6425 archive_expsym_cmds='' 6426 ;; 6427 m68k) 6428 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)' 6429 hardcode_libdir_flag_spec='-L$libdir' 6430 hardcode_minus_L=yes 6431 ;; 6432 esac 6433 ;; 6434 6435 beos*) 6436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6437 allow_undefined_flag=unsupported 6438 # Joseph Beckenbach <[email protected]> says some releases of gcc 6439 # support --undefined. This deserves some investigation. FIXME 6440 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6441 else 6442 ld_shlibs=no 6443 fi 6444 ;; 6445 6446 cygwin* | mingw* | pw32*) 6447 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6448 # as there is no search path for DLLs. 6449 hardcode_libdir_flag_spec='-L$libdir' 6450 allow_undefined_flag=unsupported 6451 always_export_symbols=no 6452 enable_shared_with_static_runtimes=yes 6453 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 6454 6455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6457 # If the export-symbols file already is a .def file (1st line 6458 # is EXPORTS), use it as is; otherwise, prepend... 6459 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6460 cp $export_symbols $output_objdir/$soname.def; 6461 else 6462 echo EXPORTS > $output_objdir/$soname.def; 6463 cat $export_symbols >> $output_objdir/$soname.def; 6464 fi~ 6465 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6466 else 6467 ld_shlibs=no 6468 fi 6469 ;; 6470 6471 interix[3-9]*) 6472 hardcode_direct=no 6473 hardcode_shlibpath_var=no 6474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6475 export_dynamic_flag_spec='${wl}-E' 6476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6477 # Instead, shared libraries are loaded at an image base (0x10000000 by 6478 # default) and relocated if they conflict, which is a slow very memory 6479 # consuming and fragmenting process. To avoid this, we pick a random, 6480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6481 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6483 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' 6484 ;; 6485 6486 gnu* | linux* | tpf* | k*bsd*-gnu) 6487 tmp_diet=no 6488 if test "$host_os" = linux-dietlibc; then 6489 case $cc_basename in 6490 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6491 esac 6492 fi 6493 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6494 && test "$tmp_diet" = no 6495 then 6496 tmp_addflag= 6497 tmp_sharedflag='-shared' 6498 case $cc_basename,$host_cpu in 6499 pgcc*) # Portland Group C compiler 6500 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' 6501 tmp_addflag=' $pic_flag' 6502 ;; 6503 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6504 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' 6505 tmp_addflag=' $pic_flag -Mnomain' ;; 6506 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6507 tmp_addflag=' -i_dynamic' ;; 6508 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6509 tmp_addflag=' -i_dynamic -nofor_main' ;; 6510 ifc* | ifort*) # Intel Fortran compiler 6511 tmp_addflag=' -nofor_main' ;; 6512 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6513 tmp_sharedflag='-qmkshrobj' 6514 tmp_addflag= ;; 6515 esac 6516 case `$CC -V 2>&1 | sed 5q` in 6517 *Sun\ C*) # Sun C 5.9 6518 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' 6519 compiler_needs_object=yes 6520 tmp_sharedflag='-G' ;; 6521 *Sun\ F*) # Sun Fortran 8.3 6522 tmp_sharedflag='-G' ;; 6523 esac 6524 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6525 6526 if test "x$supports_anon_versioning" = xyes; then 6527 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 6528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6529 echo "local: *; };" >> $output_objdir/$libname.ver~ 6530 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6531 fi 6532 6533 case $cc_basename in 6534 xlf*) 6535 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6536 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 6537 hardcode_libdir_flag_spec= 6538 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6539 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 6540 if test "x$supports_anon_versioning" = xyes; then 6541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 6542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6543 echo "local: *; };" >> $output_objdir/$libname.ver~ 6544 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6545 fi 6546 ;; 6547 esac 6548 else 6549 ld_shlibs=no 6550 fi 6551 ;; 6552 6553 netbsd*) 6554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6555 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6556 wlarc= 6557 else 6558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6560 fi 6561 ;; 6562 6563 solaris*) 6564 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6565 ld_shlibs=no 6566 cat <<_LT_EOF 1>&2 6567 6568*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6569*** create shared libraries on Solaris systems. Therefore, libtool 6570*** is disabling shared libraries support. We urge you to upgrade GNU 6571*** binutils to release 2.9.1 or newer. Another option is to modify 6572*** your PATH or compiler configuration so that the native linker is 6573*** used, and then restart. 6574 6575_LT_EOF 6576 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6579 else 6580 ld_shlibs=no 6581 fi 6582 ;; 6583 6584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6585 case `$LD -v 2>&1` in 6586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6587 ld_shlibs=no 6588 cat <<_LT_EOF 1>&2 6589 6590*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6591*** reliably create shared libraries on SCO systems. Therefore, libtool 6592*** is disabling shared libraries support. We urge you to upgrade GNU 6593*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6594*** your PATH or compiler configuration so that the native linker is 6595*** used, and then restart. 6596 6597_LT_EOF 6598 ;; 6599 *) 6600 # For security reasons, it is highly recommended that you always 6601 # use absolute paths for naming shared libraries, and exclude the 6602 # DT_RUNPATH tag from executables and libraries. But doing so 6603 # requires that you compile everything twice, which is a pain. 6604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6608 else 6609 ld_shlibs=no 6610 fi 6611 ;; 6612 esac 6613 ;; 6614 6615 sunos4*) 6616 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6617 wlarc= 6618 hardcode_direct=yes 6619 hardcode_shlibpath_var=no 6620 ;; 6621 6622 *) 6623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6626 else 6627 ld_shlibs=no 6628 fi 6629 ;; 6630 esac 6631 6632 if test "$ld_shlibs" = no; then 6633 runpath_var= 6634 hardcode_libdir_flag_spec= 6635 export_dynamic_flag_spec= 6636 whole_archive_flag_spec= 6637 fi 6638 else 6639 # PORTME fill in a description of your system's linker (not GNU ld) 6640 case $host_os in 6641 aix3*) 6642 allow_undefined_flag=unsupported 6643 always_export_symbols=yes 6644 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' 6645 # Note: this linker hardcodes the directories in LIBPATH if there 6646 # are no directories specified by -L. 6647 hardcode_minus_L=yes 6648 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6649 # Neither direct hardcoding nor static linking is supported with a 6650 # broken collect2. 6651 hardcode_direct=unsupported 6652 fi 6653 ;; 6654 6655 aix[4-9]*) 6656 if test "$host_cpu" = ia64; then 6657 # On IA64, the linker does run time linking by default, so we don't 6658 # have to do anything special. 6659 aix_use_runtimelinking=no 6660 exp_sym_flag='-Bexport' 6661 no_entry_flag="" 6662 else 6663 # If we're using GNU nm, then we don't want the "-C" option. 6664 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6666 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' 6667 else 6668 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' 6669 fi 6670 aix_use_runtimelinking=no 6671 6672 # Test if we are trying to use run time linking or normal 6673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6674 # need to do runtime linking. 6675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 6676 for ld_flag in $LDFLAGS; do 6677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6678 aix_use_runtimelinking=yes 6679 break 6680 fi 6681 done 6682 ;; 6683 esac 6684 6685 exp_sym_flag='-bexport' 6686 no_entry_flag='-bnoentry' 6687 fi 6688 6689 # When large executables or shared objects are built, AIX ld can 6690 # have problems creating the table of contents. If linking a library 6691 # or program results in "error TOC overflow" add -mminimal-toc to 6692 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6693 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6694 6695 archive_cmds='' 6696 hardcode_direct=yes 6697 hardcode_direct_absolute=yes 6698 hardcode_libdir_separator=':' 6699 link_all_deplibs=yes 6700 file_list_spec='${wl}-f,' 6701 6702 if test "$GCC" = yes; then 6703 case $host_os in aix4.[012]|aix4.[012].*) 6704 # We only want to do this on AIX 4.2 and lower, the check 6705 # below for broken collect2 doesn't work under 4.3+ 6706 collect2name=`${CC} -print-prog-name=collect2` 6707 if test -f "$collect2name" && 6708 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6709 then 6710 # We have reworked collect2 6711 : 6712 else 6713 # We have old collect2 6714 hardcode_direct=unsupported 6715 # It fails to find uninstalled libraries when the uninstalled 6716 # path is not listed in the libpath. Setting hardcode_minus_L 6717 # to unsupported forces relinking 6718 hardcode_minus_L=yes 6719 hardcode_libdir_flag_spec='-L$libdir' 6720 hardcode_libdir_separator= 6721 fi 6722 ;; 6723 esac 6724 shared_flag='-shared' 6725 if test "$aix_use_runtimelinking" = yes; then 6726 shared_flag="$shared_flag "'${wl}-G' 6727 fi 6728 else 6729 # not using gcc 6730 if test "$host_cpu" = ia64; then 6731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6732 # chokes on -Wl,-G. The following line is correct: 6733 shared_flag='-G' 6734 else 6735 if test "$aix_use_runtimelinking" = yes; then 6736 shared_flag='${wl}-G' 6737 else 6738 shared_flag='${wl}-bM:SRE' 6739 fi 6740 fi 6741 fi 6742 6743 # It seems that -bexpall does not export symbols beginning with 6744 # underscore (_), so it is better to generate a list of symbols to export. 6745 always_export_symbols=yes 6746 if test "$aix_use_runtimelinking" = yes; then 6747 # Warning - without using the other runtime loading flags (-brtl), 6748 # -berok will link without error, but may produce a broken library. 6749 allow_undefined_flag='-berok' 6750 # Determine the default libpath from the value encoded in an 6751 # empty executable. 6752 cat >conftest.$ac_ext <<_ACEOF 6753/* confdefs.h. */ 6754_ACEOF 6755cat confdefs.h >>conftest.$ac_ext 6756cat >>conftest.$ac_ext <<_ACEOF 6757/* end confdefs.h. */ 6758 6759int 6760main () 6761{ 6762 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767rm -f conftest.$ac_objext conftest$ac_exeext 6768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6769 (eval $ac_link) 2>conftest.er1 6770 ac_status=$? 6771 grep -v '^ *+' conftest.er1 >conftest.err 6772 rm -f conftest.er1 6773 cat conftest.err >&5 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); } && 6776 { ac_try='test -z "$ac_c_werror_flag" 6777 || test ! -s conftest.err' 6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6779 (eval $ac_try) 2>&5 6780 ac_status=$? 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); }; } && 6783 { ac_try='test -s conftest$ac_exeext' 6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6785 (eval $ac_try) 2>&5 6786 ac_status=$? 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 (exit $ac_status); }; }; then 6789 6790lt_aix_libpath_sed=' 6791 /Import File Strings/,/^$/ { 6792 /^0/ { 6793 s/^0 *\(.*\)$/\1/ 6794 p 6795 } 6796 }' 6797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 6798# Check for a 64-bit object if we didn't find anything. 6799if test -z "$aix_libpath"; then 6800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 6801fi 6802else 6803 echo "$as_me: failed program was:" >&5 6804sed 's/^/| /' conftest.$ac_ext >&5 6805 6806fi 6807rm -f conftest.err conftest.$ac_objext \ 6808 conftest$ac_exeext conftest.$ac_ext 6809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6810 6811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6812 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" 6813 else 6814 if test "$host_cpu" = ia64; then 6815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6816 allow_undefined_flag="-z nodefs" 6817 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" 6818 else 6819 # Determine the default libpath from the value encoded in an 6820 # empty executable. 6821 cat >conftest.$ac_ext <<_ACEOF 6822/* confdefs.h. */ 6823_ACEOF 6824cat confdefs.h >>conftest.$ac_ext 6825cat >>conftest.$ac_ext <<_ACEOF 6826/* end confdefs.h. */ 6827 6828int 6829main () 6830{ 6831 6832 ; 6833 return 0; 6834} 6835_ACEOF 6836rm -f conftest.$ac_objext conftest$ac_exeext 6837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6838 (eval $ac_link) 2>conftest.er1 6839 ac_status=$? 6840 grep -v '^ *+' conftest.er1 >conftest.err 6841 rm -f conftest.er1 6842 cat conftest.err >&5 6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6844 (exit $ac_status); } && 6845 { ac_try='test -z "$ac_c_werror_flag" 6846 || test ! -s conftest.err' 6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6848 (eval $ac_try) 2>&5 6849 ac_status=$? 6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6851 (exit $ac_status); }; } && 6852 { ac_try='test -s conftest$ac_exeext' 6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6854 (eval $ac_try) 2>&5 6855 ac_status=$? 6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6857 (exit $ac_status); }; }; then 6858 6859lt_aix_libpath_sed=' 6860 /Import File Strings/,/^$/ { 6861 /^0/ { 6862 s/^0 *\(.*\)$/\1/ 6863 p 6864 } 6865 }' 6866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 6867# Check for a 64-bit object if we didn't find anything. 6868if test -z "$aix_libpath"; then 6869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 6870fi 6871else 6872 echo "$as_me: failed program was:" >&5 6873sed 's/^/| /' conftest.$ac_ext >&5 6874 6875fi 6876rm -f conftest.err conftest.$ac_objext \ 6877 conftest$ac_exeext conftest.$ac_ext 6878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6879 6880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6881 # Warning - without using the other run time loading flags, 6882 # -berok will link without error, but may produce a broken library. 6883 no_undefined_flag=' ${wl}-bernotok' 6884 allow_undefined_flag=' ${wl}-berok' 6885 # Exported symbols can be pulled into shared objects from archives 6886 whole_archive_flag_spec='$convenience' 6887 archive_cmds_need_lc=yes 6888 # This is similar to how AIX traditionally builds its shared libraries. 6889 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' 6890 fi 6891 fi 6892 ;; 6893 6894 amigaos*) 6895 case $host_cpu in 6896 powerpc) 6897 # see comment about AmigaOS4 .so support 6898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6899 archive_expsym_cmds='' 6900 ;; 6901 m68k) 6902 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)' 6903 hardcode_libdir_flag_spec='-L$libdir' 6904 hardcode_minus_L=yes 6905 ;; 6906 esac 6907 ;; 6908 6909 bsdi[45]*) 6910 export_dynamic_flag_spec=-rdynamic 6911 ;; 6912 6913 cygwin* | mingw* | pw32*) 6914 # When not using gcc, we currently assume that we are using 6915 # Microsoft Visual C++. 6916 # hardcode_libdir_flag_spec is actually meaningless, as there is 6917 # no search path for DLLs. 6918 hardcode_libdir_flag_spec=' ' 6919 allow_undefined_flag=unsupported 6920 # Tell ltmain to make .lib files, not .a files. 6921 libext=lib 6922 # Tell ltmain to make .dll files, not .so files. 6923 shrext_cmds=".dll" 6924 # FIXME: Setting linknames here is a bad hack. 6925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6926 # The linker will automatically build a .lib file if we build a DLL. 6927 old_archive_from_new_cmds='true' 6928 # FIXME: Should let the user specify the lib program. 6929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 6930 fix_srcfile_path='`cygpath -w "$srcfile"`' 6931 enable_shared_with_static_runtimes=yes 6932 ;; 6933 6934 darwin* | rhapsody*) 6935 6936 6937 archive_cmds_need_lc=no 6938 hardcode_direct=no 6939 hardcode_automatic=yes 6940 hardcode_shlibpath_var=unsupported 6941 whole_archive_flag_spec='' 6942 link_all_deplibs=yes 6943 allow_undefined_flag="$_lt_dar_allow_undefined" 6944 if test "$GCC" = "yes"; then 6945 output_verbose_link_cmd=echo 6946 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 6947 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 6948 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}" 6949 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}" 6950 6951 else 6952 ld_shlibs=no 6953 fi 6954 6955 ;; 6956 6957 dgux*) 6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6959 hardcode_libdir_flag_spec='-L$libdir' 6960 hardcode_shlibpath_var=no 6961 ;; 6962 6963 freebsd1*) 6964 ld_shlibs=no 6965 ;; 6966 6967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6968 # support. Future versions do this automatically, but an explicit c++rt0.o 6969 # does not break anything, and helps significantly (at the cost of a little 6970 # extra space). 6971 freebsd2.2*) 6972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6973 hardcode_libdir_flag_spec='-R$libdir' 6974 hardcode_direct=yes 6975 hardcode_shlibpath_var=no 6976 ;; 6977 6978 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6979 freebsd2*) 6980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6981 hardcode_direct=yes 6982 hardcode_minus_L=yes 6983 hardcode_shlibpath_var=no 6984 ;; 6985 6986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6987 freebsd* | dragonfly*) 6988 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6989 hardcode_libdir_flag_spec='-R$libdir' 6990 hardcode_direct=yes 6991 hardcode_shlibpath_var=no 6992 ;; 6993 6994 hpux9*) 6995 if test "$GCC" = yes; then 6996 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' 6997 else 6998 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' 6999 fi 7000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7001 hardcode_libdir_separator=: 7002 hardcode_direct=yes 7003 7004 # hardcode_minus_L: Not really in the search PATH, 7005 # but as the default location of the library. 7006 hardcode_minus_L=yes 7007 export_dynamic_flag_spec='${wl}-E' 7008 ;; 7009 7010 hpux10*) 7011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7013 else 7014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7015 fi 7016 if test "$with_gnu_ld" = no; then 7017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7018 hardcode_libdir_flag_spec_ld='+b $libdir' 7019 hardcode_libdir_separator=: 7020 hardcode_direct=yes 7021 hardcode_direct_absolute=yes 7022 export_dynamic_flag_spec='${wl}-E' 7023 # hardcode_minus_L: Not really in the search PATH, 7024 # but as the default location of the library. 7025 hardcode_minus_L=yes 7026 fi 7027 ;; 7028 7029 hpux11*) 7030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7031 case $host_cpu in 7032 hppa*64*) 7033 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7034 ;; 7035 ia64*) 7036 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7037 ;; 7038 *) 7039 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7040 ;; 7041 esac 7042 else 7043 case $host_cpu in 7044 hppa*64*) 7045 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7046 ;; 7047 ia64*) 7048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7049 ;; 7050 *) 7051 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7052 ;; 7053 esac 7054 fi 7055 if test "$with_gnu_ld" = no; then 7056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7057 hardcode_libdir_separator=: 7058 7059 case $host_cpu in 7060 hppa*64*|ia64*) 7061 hardcode_direct=no 7062 hardcode_shlibpath_var=no 7063 ;; 7064 *) 7065 hardcode_direct=yes 7066 hardcode_direct_absolute=yes 7067 export_dynamic_flag_spec='${wl}-E' 7068 7069 # hardcode_minus_L: Not really in the search PATH, 7070 # but as the default location of the library. 7071 hardcode_minus_L=yes 7072 ;; 7073 esac 7074 fi 7075 ;; 7076 7077 irix5* | irix6* | nonstopux*) 7078 if test "$GCC" = yes; then 7079 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' 7080 # Try to use the -exported_symbol ld option, if it does not 7081 # work, assume that -exports_file does not work either and 7082 # implicitly export all symbols. 7083 save_LDFLAGS="$LDFLAGS" 7084 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7085 cat >conftest.$ac_ext <<_ACEOF 7086int foo(void) {} 7087_ACEOF 7088rm -f conftest.$ac_objext conftest$ac_exeext 7089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7090 (eval $ac_link) 2>conftest.er1 7091 ac_status=$? 7092 grep -v '^ *+' conftest.er1 >conftest.err 7093 rm -f conftest.er1 7094 cat conftest.err >&5 7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7096 (exit $ac_status); } && 7097 { ac_try='test -z "$ac_c_werror_flag" 7098 || test ! -s conftest.err' 7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7100 (eval $ac_try) 2>&5 7101 ac_status=$? 7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7103 (exit $ac_status); }; } && 7104 { ac_try='test -s conftest$ac_exeext' 7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7106 (eval $ac_try) 2>&5 7107 ac_status=$? 7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7109 (exit $ac_status); }; }; then 7110 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' 7111 7112else 7113 echo "$as_me: failed program was:" >&5 7114sed 's/^/| /' conftest.$ac_ext >&5 7115 7116fi 7117rm -f conftest.err conftest.$ac_objext \ 7118 conftest$ac_exeext conftest.$ac_ext 7119 LDFLAGS="$save_LDFLAGS" 7120 else 7121 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' 7122 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' 7123 fi 7124 archive_cmds_need_lc='no' 7125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7126 hardcode_libdir_separator=: 7127 inherit_rpath=yes 7128 link_all_deplibs=yes 7129 ;; 7130 7131 netbsd*) 7132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7134 else 7135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7136 fi 7137 hardcode_libdir_flag_spec='-R$libdir' 7138 hardcode_direct=yes 7139 hardcode_shlibpath_var=no 7140 ;; 7141 7142 newsos6) 7143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7144 hardcode_direct=yes 7145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7146 hardcode_libdir_separator=: 7147 hardcode_shlibpath_var=no 7148 ;; 7149 7150 *nto* | *qnx*) 7151 ;; 7152 7153 openbsd*) 7154 if test -f /usr/libexec/ld.so; then 7155 hardcode_direct=yes 7156 hardcode_shlibpath_var=no 7157 hardcode_direct_absolute=yes 7158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7160 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7162 export_dynamic_flag_spec='${wl}-E' 7163 else 7164 case $host_os in 7165 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7167 hardcode_libdir_flag_spec='-R$libdir' 7168 ;; 7169 *) 7170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7172 ;; 7173 esac 7174 fi 7175 else 7176 ld_shlibs=no 7177 fi 7178 ;; 7179 7180 os2*) 7181 hardcode_libdir_flag_spec='-L$libdir' 7182 hardcode_minus_L=yes 7183 allow_undefined_flag=unsupported 7184 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' 7185 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7186 ;; 7187 7188 osf3*) 7189 if test "$GCC" = yes; then 7190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7191 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' 7192 else 7193 allow_undefined_flag=' -expect_unresolved \*' 7194 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' 7195 fi 7196 archive_cmds_need_lc='no' 7197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7198 hardcode_libdir_separator=: 7199 ;; 7200 7201 osf4* | osf5*) # as osf3* with the addition of -msym flag 7202 if test "$GCC" = yes; then 7203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7204 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' 7205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7206 else 7207 allow_undefined_flag=' -expect_unresolved \*' 7208 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' 7209 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~ 7210 $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' 7211 7212 # Both c and cxx compiler support -rpath directly 7213 hardcode_libdir_flag_spec='-rpath $libdir' 7214 fi 7215 archive_cmds_need_lc='no' 7216 hardcode_libdir_separator=: 7217 ;; 7218 7219 solaris*) 7220 no_undefined_flag=' -z defs' 7221 if test "$GCC" = yes; then 7222 wlarc='${wl}' 7223 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7225 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7226 else 7227 case `$CC -V 2>&1` in 7228 *"Compilers 5.0"*) 7229 wlarc='' 7230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7233 ;; 7234 *) 7235 wlarc='${wl}' 7236 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7238 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7239 ;; 7240 esac 7241 fi 7242 hardcode_libdir_flag_spec='-R$libdir' 7243 hardcode_shlibpath_var=no 7244 case $host_os in 7245 solaris2.[0-5] | solaris2.[0-5].*) ;; 7246 *) 7247 # The compiler driver will combine and reorder linker options, 7248 # but understands `-z linker_flag'. GCC discards it without `$wl', 7249 # but is careful enough not to reorder. 7250 # Supported since Solaris 2.6 (maybe 2.5.1?) 7251 if test "$GCC" = yes; then 7252 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7253 else 7254 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 7255 fi 7256 ;; 7257 esac 7258 link_all_deplibs=yes 7259 ;; 7260 7261 sunos4*) 7262 if test "x$host_vendor" = xsequent; then 7263 # Use $CC to link under sequent, because it throws in some extra .o 7264 # files that make .init and .fini sections work. 7265 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7266 else 7267 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7268 fi 7269 hardcode_libdir_flag_spec='-L$libdir' 7270 hardcode_direct=yes 7271 hardcode_minus_L=yes 7272 hardcode_shlibpath_var=no 7273 ;; 7274 7275 sysv4) 7276 case $host_vendor in 7277 sni) 7278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7279 hardcode_direct=yes # is this really true??? 7280 ;; 7281 siemens) 7282 ## LD is ld it makes a PLAMLIB 7283 ## CC just makes a GrossModule. 7284 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7285 reload_cmds='$CC -r -o $output$reload_objs' 7286 hardcode_direct=no 7287 ;; 7288 motorola) 7289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7290 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7291 ;; 7292 esac 7293 runpath_var='LD_RUN_PATH' 7294 hardcode_shlibpath_var=no 7295 ;; 7296 7297 sysv4.3*) 7298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7299 hardcode_shlibpath_var=no 7300 export_dynamic_flag_spec='-Bexport' 7301 ;; 7302 7303 sysv4*MP*) 7304 if test -d /usr/nec; then 7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7306 hardcode_shlibpath_var=no 7307 runpath_var=LD_RUN_PATH 7308 hardcode_runpath_var=yes 7309 ld_shlibs=yes 7310 fi 7311 ;; 7312 7313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 7314 no_undefined_flag='${wl}-z,text' 7315 archive_cmds_need_lc=no 7316 hardcode_shlibpath_var=no 7317 runpath_var='LD_RUN_PATH' 7318 7319 if test "$GCC" = yes; then 7320 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7322 else 7323 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7325 fi 7326 ;; 7327 7328 sysv5* | sco3.2v5* | sco5v6*) 7329 # Note: We can NOT use -z defs as we might desire, because we do not 7330 # link with -lc, and that would cause any symbols used from libc to 7331 # always be unresolved, which means just about no library would 7332 # ever link correctly. If we're not using GNU ld we use -z text 7333 # though, which does catch some bad symbols but isn't as heavy-handed 7334 # as -z defs. 7335 no_undefined_flag='${wl}-z,text' 7336 allow_undefined_flag='${wl}-z,nodefs' 7337 archive_cmds_need_lc=no 7338 hardcode_shlibpath_var=no 7339 hardcode_libdir_flag_spec='${wl}-R,$libdir' 7340 hardcode_libdir_separator=':' 7341 link_all_deplibs=yes 7342 export_dynamic_flag_spec='${wl}-Bexport' 7343 runpath_var='LD_RUN_PATH' 7344 7345 if test "$GCC" = yes; then 7346 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7347 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7348 else 7349 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7350 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7351 fi 7352 ;; 7353 7354 uts4*) 7355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7356 hardcode_libdir_flag_spec='-L$libdir' 7357 hardcode_shlibpath_var=no 7358 ;; 7359 7360 *) 7361 ld_shlibs=no 7362 ;; 7363 esac 7364 7365 if test x$host_vendor = xsni; then 7366 case $host in 7367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7368 export_dynamic_flag_spec='${wl}-Blargedynsym' 7369 ;; 7370 esac 7371 fi 7372 fi 7373 7374echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7375echo "${ECHO_T}$ld_shlibs" >&6 7376test "$ld_shlibs" = no && can_build_shared=no 7377 7378with_gnu_ld=$with_gnu_ld 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394# 7395# Do we need to explicitly link libc? 7396# 7397case "x$archive_cmds_need_lc" in 7398x|xyes) 7399 # Assume -lc should be added 7400 archive_cmds_need_lc=yes 7401 7402 if test "$enable_shared" = yes && test "$GCC" = yes; then 7403 case $archive_cmds in 7404 *'~'*) 7405 # FIXME: we may have to deal with multi-command sequences. 7406 ;; 7407 '$CC '*) 7408 # Test whether the compiler implicitly links with -lc since on some 7409 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7410 # to ld, don't add -lc before -lgcc. 7411 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7413 $RM conftest* 7414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7415 7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7417 (eval $ac_compile) 2>&5 7418 ac_status=$? 7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7420 (exit $ac_status); } 2>conftest.err; then 7421 soname=conftest 7422 lib=conftest 7423 libobjs=conftest.$ac_objext 7424 deplibs= 7425 wl=$lt_prog_compiler_wl 7426 pic_flag=$lt_prog_compiler_pic 7427 compiler_flags=-v 7428 linker_flags=-v 7429 verstring= 7430 output_objdir=. 7431 libname=conftest 7432 lt_save_allow_undefined_flag=$allow_undefined_flag 7433 allow_undefined_flag= 7434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 7435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 7436 ac_status=$? 7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7438 (exit $ac_status); } 7439 then 7440 archive_cmds_need_lc=no 7441 else 7442 archive_cmds_need_lc=yes 7443 fi 7444 allow_undefined_flag=$lt_save_allow_undefined_flag 7445 else 7446 cat conftest.err 1>&5 7447 fi 7448 $RM conftest* 7449 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7450echo "${ECHO_T}$archive_cmds_need_lc" >&6 7451 ;; 7452 esac 7453 fi 7454 ;; 7455esac 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7614echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7615 7616if test "$GCC" = yes; then 7617 case $host_os in 7618 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 7619 *) lt_awk_arg="/^libraries:/" ;; 7620 esac 7621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7622 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 7623 # if the path contains ";" then we assume it to be the separator 7624 # otherwise default to the standard path separator (i.e. ":") - it is 7625 # assumed that no part of a normal pathname contains ";" but that should 7626 # okay in the real world where ";" in dirpaths is itself problematic. 7627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 7628 else 7629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7630 fi 7631 # Ok, now we have the path, separated by spaces, we can step through it 7632 # and add multilib dir if necessary. 7633 lt_tmp_lt_search_path_spec= 7634 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 7635 for lt_sys_path in $lt_search_path_spec; do 7636 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 7637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 7638 else 7639 test -d "$lt_sys_path" && \ 7640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 7641 fi 7642 done 7643 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 7644BEGIN {RS=" "; FS="/|\n";} { 7645 lt_foo=""; 7646 lt_count=0; 7647 for (lt_i = NF; lt_i > 0; lt_i--) { 7648 if ($lt_i != "" && $lt_i != ".") { 7649 if ($lt_i == "..") { 7650 lt_count++; 7651 } else { 7652 if (lt_count == 0) { 7653 lt_foo="/" $lt_i lt_foo; 7654 } else { 7655 lt_count--; 7656 } 7657 } 7658 } 7659 } 7660 if (lt_foo != "") { lt_freq[lt_foo]++; } 7661 if (lt_freq[lt_foo] == 1) { print lt_foo; } 7662}'` 7663 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 7664else 7665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7666fi 7667library_names_spec= 7668libname_spec='lib$name' 7669soname_spec= 7670shrext_cmds=".so" 7671postinstall_cmds= 7672postuninstall_cmds= 7673finish_cmds= 7674finish_eval= 7675shlibpath_var= 7676shlibpath_overrides_runpath=unknown 7677version_type=none 7678dynamic_linker="$host_os ld.so" 7679sys_lib_dlsearch_path_spec="/lib /usr/lib" 7680need_lib_prefix=unknown 7681hardcode_into_libs=no 7682 7683# when you set need_version to no, make sure it does not cause -set_version 7684# flags to be left without arguments 7685need_version=unknown 7686 7687case $host_os in 7688aix3*) 7689 version_type=linux 7690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7691 shlibpath_var=LIBPATH 7692 7693 # AIX 3 has no versioning support, so we append a major version to the name. 7694 soname_spec='${libname}${release}${shared_ext}$major' 7695 ;; 7696 7697aix[4-9]*) 7698 version_type=linux 7699 need_lib_prefix=no 7700 need_version=no 7701 hardcode_into_libs=yes 7702 if test "$host_cpu" = ia64; then 7703 # AIX 5 supports IA64 7704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7705 shlibpath_var=LD_LIBRARY_PATH 7706 else 7707 # With GCC up to 2.95.x, collect2 would create an import file 7708 # for dependence libraries. The import file would start with 7709 # the line `#! .'. This would cause the generated library to 7710 # depend on `.', always an invalid library. This was fixed in 7711 # development snapshots of GCC prior to 3.0. 7712 case $host_os in 7713 aix4 | aix4.[01] | aix4.[01].*) 7714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7715 echo ' yes ' 7716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 7717 : 7718 else 7719 can_build_shared=no 7720 fi 7721 ;; 7722 esac 7723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7724 # soname into executable. Probably we can add versioning support to 7725 # collect2, so additional links can be useful in future. 7726 if test "$aix_use_runtimelinking" = yes; then 7727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7728 # instead of lib<name>.a to let people know that these are not 7729 # typical AIX shared libraries. 7730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7731 else 7732 # We preserve .a as extension for shared libraries through AIX4.2 7733 # and later when we are not doing run time linking. 7734 library_names_spec='${libname}${release}.a $libname.a' 7735 soname_spec='${libname}${release}${shared_ext}$major' 7736 fi 7737 shlibpath_var=LIBPATH 7738 fi 7739 ;; 7740 7741amigaos*) 7742 case $host_cpu in 7743 powerpc) 7744 # Since July 2007 AmigaOS4 officially supports .so libraries. 7745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7747 ;; 7748 m68k) 7749 library_names_spec='$libname.ixlibrary $libname.a' 7750 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7751 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' 7752 ;; 7753 esac 7754 ;; 7755 7756beos*) 7757 library_names_spec='${libname}${shared_ext}' 7758 dynamic_linker="$host_os ld.so" 7759 shlibpath_var=LIBRARY_PATH 7760 ;; 7761 7762bsdi[45]*) 7763 version_type=linux 7764 need_version=no 7765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7766 soname_spec='${libname}${release}${shared_ext}$major' 7767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7768 shlibpath_var=LD_LIBRARY_PATH 7769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7771 # the default ld.so.conf also contains /usr/contrib/lib and 7772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7773 # libtool to hard-code these into programs 7774 ;; 7775 7776cygwin* | mingw* | pw32*) 7777 version_type=windows 7778 shrext_cmds=".dll" 7779 need_version=no 7780 need_lib_prefix=no 7781 7782 case $GCC,$host_os in 7783 yes,cygwin* | yes,mingw* | yes,pw32*) 7784 library_names_spec='$libname.dll.a' 7785 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7786 postinstall_cmds='base_file=`basename \${file}`~ 7787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 7788 dldir=$destdir/`dirname \$dlpath`~ 7789 test -d \$dldir || mkdir -p \$dldir~ 7790 $install_prog $dir/$dlname \$dldir/$dlname~ 7791 chmod a+x \$dldir/$dlname~ 7792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 7793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 7794 fi' 7795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7796 dlpath=$dir/\$dldll~ 7797 $RM \$dlpath' 7798 shlibpath_overrides_runpath=yes 7799 7800 case $host_os in 7801 cygwin*) 7802 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7805 ;; 7806 mingw*) 7807 # MinGW DLLs use traditional 'lib' prefix 7808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7809 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 7811 # It is most probably a Windows format PATH printed by 7812 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7813 # path with ; separators, and with drive letters. We can handle the 7814 # drive letters (cygwin fileutils understands them), so leave them, 7815 # especially as we might pass files found there to a mingw objdump, 7816 # which wouldn't understand a cygwinified path. Ahh. 7817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7818 else 7819 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7820 fi 7821 ;; 7822 pw32*) 7823 # pw32 DLLs use 'pw' prefix rather than 'lib' 7824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7825 ;; 7826 esac 7827 ;; 7828 7829 *) 7830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7831 ;; 7832 esac 7833 dynamic_linker='Win32 ld.exe' 7834 # FIXME: first we should search . and the directory the executable is in 7835 shlibpath_var=PATH 7836 ;; 7837 7838darwin* | rhapsody*) 7839 dynamic_linker="$host_os dyld" 7840 version_type=darwin 7841 need_lib_prefix=no 7842 need_version=no 7843 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7844 soname_spec='${libname}${release}${major}$shared_ext' 7845 shlibpath_overrides_runpath=yes 7846 shlibpath_var=DYLD_LIBRARY_PATH 7847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7848 7849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 7850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7851 ;; 7852 7853dgux*) 7854 version_type=linux 7855 need_lib_prefix=no 7856 need_version=no 7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7858 soname_spec='${libname}${release}${shared_ext}$major' 7859 shlibpath_var=LD_LIBRARY_PATH 7860 ;; 7861 7862freebsd1*) 7863 dynamic_linker=no 7864 ;; 7865 7866freebsd* | dragonfly*) 7867 # DragonFly does not have aout. When/if they implement a new 7868 # versioning mechanism, adjust this. 7869 if test -x /usr/bin/objformat; then 7870 objformat=`/usr/bin/objformat` 7871 else 7872 case $host_os in 7873 freebsd[123]*) objformat=aout ;; 7874 *) objformat=elf ;; 7875 esac 7876 fi 7877 # Handle Gentoo/FreeBSD as it was Linux 7878 case $host_vendor in 7879 gentoo) 7880 version_type=linux ;; 7881 *) 7882 version_type=freebsd-$objformat ;; 7883 esac 7884 7885 case $version_type in 7886 freebsd-elf*) 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7888 need_version=no 7889 need_lib_prefix=no 7890 ;; 7891 freebsd-*) 7892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7893 need_version=yes 7894 ;; 7895 linux) 7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7897 soname_spec='${libname}${release}${shared_ext}$major' 7898 need_lib_prefix=no 7899 need_version=no 7900 ;; 7901 esac 7902 shlibpath_var=LD_LIBRARY_PATH 7903 case $host_os in 7904 freebsd2*) 7905 shlibpath_overrides_runpath=yes 7906 ;; 7907 freebsd3.[01]* | freebsdelf3.[01]*) 7908 shlibpath_overrides_runpath=yes 7909 hardcode_into_libs=yes 7910 ;; 7911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7913 shlibpath_overrides_runpath=no 7914 hardcode_into_libs=yes 7915 ;; 7916 *) # from 4.6 on, and DragonFly 7917 shlibpath_overrides_runpath=yes 7918 hardcode_into_libs=yes 7919 ;; 7920 esac 7921 ;; 7922 7923gnu*) 7924 version_type=linux 7925 need_lib_prefix=no 7926 need_version=no 7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7928 soname_spec='${libname}${release}${shared_ext}$major' 7929 shlibpath_var=LD_LIBRARY_PATH 7930 hardcode_into_libs=yes 7931 ;; 7932 7933hpux9* | hpux10* | hpux11*) 7934 # Give a soname corresponding to the major version so that dld.sl refuses to 7935 # link against other versions. 7936 version_type=sunos 7937 need_lib_prefix=no 7938 need_version=no 7939 case $host_cpu in 7940 ia64*) 7941 shrext_cmds='.so' 7942 hardcode_into_libs=yes 7943 dynamic_linker="$host_os dld.so" 7944 shlibpath_var=LD_LIBRARY_PATH 7945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7947 soname_spec='${libname}${release}${shared_ext}$major' 7948 if test "X$HPUX_IA64_MODE" = X32; then 7949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7950 else 7951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7952 fi 7953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7954 ;; 7955 hppa*64*) 7956 shrext_cmds='.sl' 7957 hardcode_into_libs=yes 7958 dynamic_linker="$host_os dld.sl" 7959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7962 soname_spec='${libname}${release}${shared_ext}$major' 7963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7965 ;; 7966 *) 7967 shrext_cmds='.sl' 7968 dynamic_linker="$host_os dld.sl" 7969 shlibpath_var=SHLIB_PATH 7970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7972 soname_spec='${libname}${release}${shared_ext}$major' 7973 ;; 7974 esac 7975 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7976 postinstall_cmds='chmod 555 $lib' 7977 ;; 7978 7979interix[3-9]*) 7980 version_type=linux 7981 need_lib_prefix=no 7982 need_version=no 7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7984 soname_spec='${libname}${release}${shared_ext}$major' 7985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7986 shlibpath_var=LD_LIBRARY_PATH 7987 shlibpath_overrides_runpath=no 7988 hardcode_into_libs=yes 7989 ;; 7990 7991irix5* | irix6* | nonstopux*) 7992 case $host_os in 7993 nonstopux*) version_type=nonstopux ;; 7994 *) 7995 if test "$lt_cv_prog_gnu_ld" = yes; then 7996 version_type=linux 7997 else 7998 version_type=irix 7999 fi ;; 8000 esac 8001 need_lib_prefix=no 8002 need_version=no 8003 soname_spec='${libname}${release}${shared_ext}$major' 8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8005 case $host_os in 8006 irix5* | nonstopux*) 8007 libsuff= shlibsuff= 8008 ;; 8009 *) 8010 case $LD in # libtool.m4 will add one of these switches to LD 8011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8012 libsuff= shlibsuff= libmagic=32-bit;; 8013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8014 libsuff=32 shlibsuff=N32 libmagic=N32;; 8015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8016 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8017 *) libsuff= shlibsuff= libmagic=never-match;; 8018 esac 8019 ;; 8020 esac 8021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8022 shlibpath_overrides_runpath=no 8023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8025 hardcode_into_libs=yes 8026 ;; 8027 8028# No shared lib support for Linux oldld, aout, or coff. 8029linux*oldld* | linux*aout* | linux*coff*) 8030 dynamic_linker=no 8031 ;; 8032 8033# This must be Linux ELF. 8034linux* | k*bsd*-gnu) 8035 version_type=linux 8036 need_lib_prefix=no 8037 need_version=no 8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8039 soname_spec='${libname}${release}${shared_ext}$major' 8040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8041 shlibpath_var=LD_LIBRARY_PATH 8042 shlibpath_overrides_runpath=no 8043 # Some binutils ld are patched to set DT_RUNPATH 8044 save_LDFLAGS=$LDFLAGS 8045 save_libdir=$libdir 8046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8048 cat >conftest.$ac_ext <<_ACEOF 8049/* confdefs.h. */ 8050_ACEOF 8051cat confdefs.h >>conftest.$ac_ext 8052cat >>conftest.$ac_ext <<_ACEOF 8053/* end confdefs.h. */ 8054 8055int 8056main () 8057{ 8058 8059 ; 8060 return 0; 8061} 8062_ACEOF 8063rm -f conftest.$ac_objext conftest$ac_exeext 8064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8065 (eval $ac_link) 2>conftest.er1 8066 ac_status=$? 8067 grep -v '^ *+' conftest.er1 >conftest.err 8068 rm -f conftest.er1 8069 cat conftest.err >&5 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 (exit $ac_status); } && 8072 { ac_try='test -z "$ac_c_werror_flag" 8073 || test ! -s conftest.err' 8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8075 (eval $ac_try) 2>&5 8076 ac_status=$? 8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8078 (exit $ac_status); }; } && 8079 { ac_try='test -s conftest$ac_exeext' 8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8081 (eval $ac_try) 2>&5 8082 ac_status=$? 8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 (exit $ac_status); }; }; then 8085 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 8086 shlibpath_overrides_runpath=yes 8087fi 8088 8089else 8090 echo "$as_me: failed program was:" >&5 8091sed 's/^/| /' conftest.$ac_ext >&5 8092 8093fi 8094rm -f conftest.err conftest.$ac_objext \ 8095 conftest$ac_exeext conftest.$ac_ext 8096 LDFLAGS=$save_LDFLAGS 8097 libdir=$save_libdir 8098 8099 # This implies no fast_install, which is unacceptable. 8100 # Some rework will be needed to allow for fast_install 8101 # before this can be enabled. 8102 hardcode_into_libs=yes 8103 8104 # Append ld.so.conf contents to the search path 8105 if test -f /etc/ld.so.conf; then 8106 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' ' '` 8107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8108 fi 8109 8110 # We used to test for /lib/ld.so.1 and disable shared libraries on 8111 # powerpc, because MkLinux only supported shared libraries with the 8112 # GNU dynamic linker. Since this was broken with cross compilers, 8113 # most powerpc-linux boxes support dynamic linking these days and 8114 # people can always --disable-shared, the test was removed, and we 8115 # assume the GNU/Linux dynamic linker is in use. 8116 dynamic_linker='GNU/Linux ld.so' 8117 ;; 8118 8119netbsd*) 8120 version_type=sunos 8121 need_lib_prefix=no 8122 need_version=no 8123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8126 dynamic_linker='NetBSD (a.out) ld.so' 8127 else 8128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8129 soname_spec='${libname}${release}${shared_ext}$major' 8130 dynamic_linker='NetBSD ld.elf_so' 8131 fi 8132 shlibpath_var=LD_LIBRARY_PATH 8133 shlibpath_overrides_runpath=yes 8134 hardcode_into_libs=yes 8135 ;; 8136 8137newsos6) 8138 version_type=linux 8139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8140 shlibpath_var=LD_LIBRARY_PATH 8141 shlibpath_overrides_runpath=yes 8142 ;; 8143 8144*nto* | *qnx*) 8145 version_type=qnx 8146 need_lib_prefix=no 8147 need_version=no 8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8149 soname_spec='${libname}${release}${shared_ext}$major' 8150 shlibpath_var=LD_LIBRARY_PATH 8151 shlibpath_overrides_runpath=no 8152 hardcode_into_libs=yes 8153 dynamic_linker='ldqnx.so' 8154 ;; 8155 8156openbsd*) 8157 version_type=sunos 8158 sys_lib_dlsearch_path_spec="/usr/lib" 8159 need_lib_prefix=no 8160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8161 case $host_os in 8162 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8163 *) need_version=no ;; 8164 esac 8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8167 shlibpath_var=LD_LIBRARY_PATH 8168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8169 case $host_os in 8170 openbsd2.[89] | openbsd2.[89].*) 8171 shlibpath_overrides_runpath=no 8172 ;; 8173 *) 8174 shlibpath_overrides_runpath=yes 8175 ;; 8176 esac 8177 else 8178 shlibpath_overrides_runpath=yes 8179 fi 8180 ;; 8181 8182os2*) 8183 libname_spec='$name' 8184 shrext_cmds=".dll" 8185 need_lib_prefix=no 8186 library_names_spec='$libname${shared_ext} $libname.a' 8187 dynamic_linker='OS/2 ld.exe' 8188 shlibpath_var=LIBPATH 8189 ;; 8190 8191osf3* | osf4* | osf5*) 8192 version_type=osf 8193 need_lib_prefix=no 8194 need_version=no 8195 soname_spec='${libname}${release}${shared_ext}$major' 8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8197 shlibpath_var=LD_LIBRARY_PATH 8198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8200 ;; 8201 8202rdos*) 8203 dynamic_linker=no 8204 ;; 8205 8206solaris*) 8207 version_type=linux 8208 need_lib_prefix=no 8209 need_version=no 8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8211 soname_spec='${libname}${release}${shared_ext}$major' 8212 shlibpath_var=LD_LIBRARY_PATH 8213 shlibpath_overrides_runpath=yes 8214 hardcode_into_libs=yes 8215 # ldd complains unless libraries are executable 8216 postinstall_cmds='chmod +x $lib' 8217 ;; 8218 8219sunos4*) 8220 version_type=sunos 8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8223 shlibpath_var=LD_LIBRARY_PATH 8224 shlibpath_overrides_runpath=yes 8225 if test "$with_gnu_ld" = yes; then 8226 need_lib_prefix=no 8227 fi 8228 need_version=yes 8229 ;; 8230 8231sysv4 | sysv4.3*) 8232 version_type=linux 8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8234 soname_spec='${libname}${release}${shared_ext}$major' 8235 shlibpath_var=LD_LIBRARY_PATH 8236 case $host_vendor in 8237 sni) 8238 shlibpath_overrides_runpath=no 8239 need_lib_prefix=no 8240 runpath_var=LD_RUN_PATH 8241 ;; 8242 siemens) 8243 need_lib_prefix=no 8244 ;; 8245 motorola) 8246 need_lib_prefix=no 8247 need_version=no 8248 shlibpath_overrides_runpath=no 8249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8250 ;; 8251 esac 8252 ;; 8253 8254sysv4*MP*) 8255 if test -d /usr/nec ;then 8256 version_type=linux 8257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8258 soname_spec='$libname${shared_ext}.$major' 8259 shlibpath_var=LD_LIBRARY_PATH 8260 fi 8261 ;; 8262 8263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8264 version_type=freebsd-elf 8265 need_lib_prefix=no 8266 need_version=no 8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8268 soname_spec='${libname}${release}${shared_ext}$major' 8269 shlibpath_var=LD_LIBRARY_PATH 8270 shlibpath_overrides_runpath=yes 8271 hardcode_into_libs=yes 8272 if test "$with_gnu_ld" = yes; then 8273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8274 else 8275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8276 case $host_os in 8277 sco3.2v5*) 8278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8279 ;; 8280 esac 8281 fi 8282 sys_lib_dlsearch_path_spec='/usr/lib' 8283 ;; 8284 8285tpf*) 8286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 8287 version_type=linux 8288 need_lib_prefix=no 8289 need_version=no 8290 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8291 shlibpath_var=LD_LIBRARY_PATH 8292 shlibpath_overrides_runpath=no 8293 hardcode_into_libs=yes 8294 ;; 8295 8296uts4*) 8297 version_type=linux 8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8299 soname_spec='${libname}${release}${shared_ext}$major' 8300 shlibpath_var=LD_LIBRARY_PATH 8301 ;; 8302 8303*) 8304 dynamic_linker=no 8305 ;; 8306esac 8307echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8308echo "${ECHO_T}$dynamic_linker" >&6 8309test "$dynamic_linker" = no && can_build_shared=no 8310 8311variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8312if test "$GCC" = yes; then 8313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8314fi 8315 8316if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 8317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 8318fi 8319if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 8320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 8321fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8410echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8411hardcode_action= 8412if test -n "$hardcode_libdir_flag_spec" || 8413 test -n "$runpath_var" || 8414 test "X$hardcode_automatic" = "Xyes" ; then 8415 8416 # We can hardcode non-existent directories. 8417 if test "$hardcode_direct" != no && 8418 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8419 # have to relink, otherwise we might link with an installed library 8420 # when we should be linking with a yet-to-be-installed one 8421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 8422 test "$hardcode_minus_L" != no; then 8423 # Linking always hardcodes the temporary library directory. 8424 hardcode_action=relink 8425 else 8426 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8427 hardcode_action=immediate 8428 fi 8429else 8430 # We cannot hardcode anything, or else we can only hardcode existing 8431 # directories. 8432 hardcode_action=unsupported 8433fi 8434echo "$as_me:$LINENO: result: $hardcode_action" >&5 8435echo "${ECHO_T}$hardcode_action" >&6 8436 8437if test "$hardcode_action" = relink || 8438 test "$inherit_rpath" = yes; then 8439 # Fast installation is not supported 8440 enable_fast_install=no 8441elif test "$shlibpath_overrides_runpath" = yes || 8442 test "$enable_shared" = no; then 8443 # Fast installation is not necessary 8444 enable_fast_install=needless 8445fi 8446 8447 8448 8449 8450 8451 8452 if test "x$enable_dlopen" != xyes; then 8453 enable_dlopen=unknown 8454 enable_dlopen_self=unknown 8455 enable_dlopen_self_static=unknown 8456else 8457 lt_cv_dlopen=no 8458 lt_cv_dlopen_libs= 8459 8460 case $host_os in 8461 beos*) 8462 lt_cv_dlopen="load_add_on" 8463 lt_cv_dlopen_libs= 8464 lt_cv_dlopen_self=yes 8465 ;; 8466 8467 mingw* | pw32*) 8468 lt_cv_dlopen="LoadLibrary" 8469 lt_cv_dlopen_libs= 8470 ;; 8471 8472 cygwin*) 8473 lt_cv_dlopen="dlopen" 8474 lt_cv_dlopen_libs= 8475 ;; 8476 8477 darwin*) 8478 # if libdl is installed we need to link against it 8479 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8481if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8482 echo $ECHO_N "(cached) $ECHO_C" >&6 8483else 8484 ac_check_lib_save_LIBS=$LIBS 8485LIBS="-ldl $LIBS" 8486cat >conftest.$ac_ext <<_ACEOF 8487/* confdefs.h. */ 8488_ACEOF 8489cat confdefs.h >>conftest.$ac_ext 8490cat >>conftest.$ac_ext <<_ACEOF 8491/* end confdefs.h. */ 8492 8493/* Override any gcc2 internal prototype to avoid an error. */ 8494#ifdef __cplusplus 8495extern "C" 8496#endif 8497/* We use char because int might match the return type of a gcc2 8498 builtin and then its argument prototype would still apply. */ 8499char dlopen (); 8500int 8501main () 8502{ 8503dlopen (); 8504 ; 8505 return 0; 8506} 8507_ACEOF 8508rm -f conftest.$ac_objext conftest$ac_exeext 8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8510 (eval $ac_link) 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } && 8517 { ac_try='test -z "$ac_c_werror_flag" 8518 || test ! -s conftest.err' 8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8520 (eval $ac_try) 2>&5 8521 ac_status=$? 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); }; } && 8524 { ac_try='test -s conftest$ac_exeext' 8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8526 (eval $ac_try) 2>&5 8527 ac_status=$? 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); }; }; then 8530 ac_cv_lib_dl_dlopen=yes 8531else 8532 echo "$as_me: failed program was:" >&5 8533sed 's/^/| /' conftest.$ac_ext >&5 8534 8535ac_cv_lib_dl_dlopen=no 8536fi 8537rm -f conftest.err conftest.$ac_objext \ 8538 conftest$ac_exeext conftest.$ac_ext 8539LIBS=$ac_check_lib_save_LIBS 8540fi 8541echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8542echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8543if test $ac_cv_lib_dl_dlopen = yes; then 8544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8545else 8546 8547 lt_cv_dlopen="dyld" 8548 lt_cv_dlopen_libs= 8549 lt_cv_dlopen_self=yes 8550 8551fi 8552 8553 ;; 8554 8555 *) 8556 echo "$as_me:$LINENO: checking for shl_load" >&5 8557echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8558if test "${ac_cv_func_shl_load+set}" = set; then 8559 echo $ECHO_N "(cached) $ECHO_C" >&6 8560else 8561 cat >conftest.$ac_ext <<_ACEOF 8562/* confdefs.h. */ 8563_ACEOF 8564cat confdefs.h >>conftest.$ac_ext 8565cat >>conftest.$ac_ext <<_ACEOF 8566/* end confdefs.h. */ 8567/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8568 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8569#define shl_load innocuous_shl_load 8570 8571/* System header to define __stub macros and hopefully few prototypes, 8572 which can conflict with char shl_load (); below. 8573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8574 <limits.h> exists even on freestanding compilers. */ 8575 8576#ifdef __STDC__ 8577# include <limits.h> 8578#else 8579# include <assert.h> 8580#endif 8581 8582#undef shl_load 8583 8584/* Override any gcc2 internal prototype to avoid an error. */ 8585#ifdef __cplusplus 8586extern "C" 8587{ 8588#endif 8589/* We use char because int might match the return type of a gcc2 8590 builtin and then its argument prototype would still apply. */ 8591char shl_load (); 8592/* The GNU C library defines this for functions which it implements 8593 to always fail with ENOSYS. Some functions are actually named 8594 something starting with __ and the normal name is an alias. */ 8595#if defined (__stub_shl_load) || defined (__stub___shl_load) 8596choke me 8597#else 8598char (*f) () = shl_load; 8599#endif 8600#ifdef __cplusplus 8601} 8602#endif 8603 8604int 8605main () 8606{ 8607return f != shl_load; 8608 ; 8609 return 0; 8610} 8611_ACEOF 8612rm -f conftest.$ac_objext conftest$ac_exeext 8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8614 (eval $ac_link) 2>conftest.er1 8615 ac_status=$? 8616 grep -v '^ *+' conftest.er1 >conftest.err 8617 rm -f conftest.er1 8618 cat conftest.err >&5 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); } && 8621 { ac_try='test -z "$ac_c_werror_flag" 8622 || test ! -s conftest.err' 8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8624 (eval $ac_try) 2>&5 8625 ac_status=$? 8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8627 (exit $ac_status); }; } && 8628 { ac_try='test -s conftest$ac_exeext' 8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8630 (eval $ac_try) 2>&5 8631 ac_status=$? 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); }; }; then 8634 ac_cv_func_shl_load=yes 8635else 8636 echo "$as_me: failed program was:" >&5 8637sed 's/^/| /' conftest.$ac_ext >&5 8638 8639ac_cv_func_shl_load=no 8640fi 8641rm -f conftest.err conftest.$ac_objext \ 8642 conftest$ac_exeext conftest.$ac_ext 8643fi 8644echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8645echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8646if test $ac_cv_func_shl_load = yes; then 8647 lt_cv_dlopen="shl_load" 8648else 8649 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8650echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8651if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8652 echo $ECHO_N "(cached) $ECHO_C" >&6 8653else 8654 ac_check_lib_save_LIBS=$LIBS 8655LIBS="-ldld $LIBS" 8656cat >conftest.$ac_ext <<_ACEOF 8657/* confdefs.h. */ 8658_ACEOF 8659cat confdefs.h >>conftest.$ac_ext 8660cat >>conftest.$ac_ext <<_ACEOF 8661/* end confdefs.h. */ 8662 8663/* Override any gcc2 internal prototype to avoid an error. */ 8664#ifdef __cplusplus 8665extern "C" 8666#endif 8667/* We use char because int might match the return type of a gcc2 8668 builtin and then its argument prototype would still apply. */ 8669char shl_load (); 8670int 8671main () 8672{ 8673shl_load (); 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678rm -f conftest.$ac_objext conftest$ac_exeext 8679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8680 (eval $ac_link) 2>conftest.er1 8681 ac_status=$? 8682 grep -v '^ *+' conftest.er1 >conftest.err 8683 rm -f conftest.er1 8684 cat conftest.err >&5 8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8686 (exit $ac_status); } && 8687 { ac_try='test -z "$ac_c_werror_flag" 8688 || test ! -s conftest.err' 8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8690 (eval $ac_try) 2>&5 8691 ac_status=$? 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); }; } && 8694 { ac_try='test -s conftest$ac_exeext' 8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8696 (eval $ac_try) 2>&5 8697 ac_status=$? 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); }; }; then 8700 ac_cv_lib_dld_shl_load=yes 8701else 8702 echo "$as_me: failed program was:" >&5 8703sed 's/^/| /' conftest.$ac_ext >&5 8704 8705ac_cv_lib_dld_shl_load=no 8706fi 8707rm -f conftest.err conftest.$ac_objext \ 8708 conftest$ac_exeext conftest.$ac_ext 8709LIBS=$ac_check_lib_save_LIBS 8710fi 8711echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8712echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8713if test $ac_cv_lib_dld_shl_load = yes; then 8714 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 8715else 8716 echo "$as_me:$LINENO: checking for dlopen" >&5 8717echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8718if test "${ac_cv_func_dlopen+set}" = set; then 8719 echo $ECHO_N "(cached) $ECHO_C" >&6 8720else 8721 cat >conftest.$ac_ext <<_ACEOF 8722/* confdefs.h. */ 8723_ACEOF 8724cat confdefs.h >>conftest.$ac_ext 8725cat >>conftest.$ac_ext <<_ACEOF 8726/* end confdefs.h. */ 8727/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8729#define dlopen innocuous_dlopen 8730 8731/* System header to define __stub macros and hopefully few prototypes, 8732 which can conflict with char dlopen (); below. 8733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8734 <limits.h> exists even on freestanding compilers. */ 8735 8736#ifdef __STDC__ 8737# include <limits.h> 8738#else 8739# include <assert.h> 8740#endif 8741 8742#undef dlopen 8743 8744/* Override any gcc2 internal prototype to avoid an error. */ 8745#ifdef __cplusplus 8746extern "C" 8747{ 8748#endif 8749/* We use char because int might match the return type of a gcc2 8750 builtin and then its argument prototype would still apply. */ 8751char dlopen (); 8752/* The GNU C library defines this for functions which it implements 8753 to always fail with ENOSYS. Some functions are actually named 8754 something starting with __ and the normal name is an alias. */ 8755#if defined (__stub_dlopen) || defined (__stub___dlopen) 8756choke me 8757#else 8758char (*f) () = dlopen; 8759#endif 8760#ifdef __cplusplus 8761} 8762#endif 8763 8764int 8765main () 8766{ 8767return f != dlopen; 8768 ; 8769 return 0; 8770} 8771_ACEOF 8772rm -f conftest.$ac_objext conftest$ac_exeext 8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8774 (eval $ac_link) 2>conftest.er1 8775 ac_status=$? 8776 grep -v '^ *+' conftest.er1 >conftest.err 8777 rm -f conftest.er1 8778 cat conftest.err >&5 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 (exit $ac_status); } && 8781 { ac_try='test -z "$ac_c_werror_flag" 8782 || test ! -s conftest.err' 8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8784 (eval $ac_try) 2>&5 8785 ac_status=$? 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 (exit $ac_status); }; } && 8788 { ac_try='test -s conftest$ac_exeext' 8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 (eval $ac_try) 2>&5 8791 ac_status=$? 8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 (exit $ac_status); }; }; then 8794 ac_cv_func_dlopen=yes 8795else 8796 echo "$as_me: failed program was:" >&5 8797sed 's/^/| /' conftest.$ac_ext >&5 8798 8799ac_cv_func_dlopen=no 8800fi 8801rm -f conftest.err conftest.$ac_objext \ 8802 conftest$ac_exeext conftest.$ac_ext 8803fi 8804echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8805echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8806if test $ac_cv_func_dlopen = yes; then 8807 lt_cv_dlopen="dlopen" 8808else 8809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8811if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8812 echo $ECHO_N "(cached) $ECHO_C" >&6 8813else 8814 ac_check_lib_save_LIBS=$LIBS 8815LIBS="-ldl $LIBS" 8816cat >conftest.$ac_ext <<_ACEOF 8817/* confdefs.h. */ 8818_ACEOF 8819cat confdefs.h >>conftest.$ac_ext 8820cat >>conftest.$ac_ext <<_ACEOF 8821/* end confdefs.h. */ 8822 8823/* Override any gcc2 internal prototype to avoid an error. */ 8824#ifdef __cplusplus 8825extern "C" 8826#endif 8827/* We use char because int might match the return type of a gcc2 8828 builtin and then its argument prototype would still apply. */ 8829char dlopen (); 8830int 8831main () 8832{ 8833dlopen (); 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838rm -f conftest.$ac_objext conftest$ac_exeext 8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8840 (eval $ac_link) 2>conftest.er1 8841 ac_status=$? 8842 grep -v '^ *+' conftest.er1 >conftest.err 8843 rm -f conftest.er1 8844 cat conftest.err >&5 8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8846 (exit $ac_status); } && 8847 { ac_try='test -z "$ac_c_werror_flag" 8848 || test ! -s conftest.err' 8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8850 (eval $ac_try) 2>&5 8851 ac_status=$? 8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8853 (exit $ac_status); }; } && 8854 { ac_try='test -s conftest$ac_exeext' 8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8856 (eval $ac_try) 2>&5 8857 ac_status=$? 8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8859 (exit $ac_status); }; }; then 8860 ac_cv_lib_dl_dlopen=yes 8861else 8862 echo "$as_me: failed program was:" >&5 8863sed 's/^/| /' conftest.$ac_ext >&5 8864 8865ac_cv_lib_dl_dlopen=no 8866fi 8867rm -f conftest.err conftest.$ac_objext \ 8868 conftest$ac_exeext conftest.$ac_ext 8869LIBS=$ac_check_lib_save_LIBS 8870fi 8871echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8872echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8873if test $ac_cv_lib_dl_dlopen = yes; then 8874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8875else 8876 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8877echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8878if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8879 echo $ECHO_N "(cached) $ECHO_C" >&6 8880else 8881 ac_check_lib_save_LIBS=$LIBS 8882LIBS="-lsvld $LIBS" 8883cat >conftest.$ac_ext <<_ACEOF 8884/* confdefs.h. */ 8885_ACEOF 8886cat confdefs.h >>conftest.$ac_ext 8887cat >>conftest.$ac_ext <<_ACEOF 8888/* end confdefs.h. */ 8889 8890/* Override any gcc2 internal prototype to avoid an error. */ 8891#ifdef __cplusplus 8892extern "C" 8893#endif 8894/* We use char because int might match the return type of a gcc2 8895 builtin and then its argument prototype would still apply. */ 8896char dlopen (); 8897int 8898main () 8899{ 8900dlopen (); 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905rm -f conftest.$ac_objext conftest$ac_exeext 8906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8907 (eval $ac_link) 2>conftest.er1 8908 ac_status=$? 8909 grep -v '^ *+' conftest.er1 >conftest.err 8910 rm -f conftest.er1 8911 cat conftest.err >&5 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); } && 8914 { ac_try='test -z "$ac_c_werror_flag" 8915 || test ! -s conftest.err' 8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8917 (eval $ac_try) 2>&5 8918 ac_status=$? 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8920 (exit $ac_status); }; } && 8921 { ac_try='test -s conftest$ac_exeext' 8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8923 (eval $ac_try) 2>&5 8924 ac_status=$? 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8926 (exit $ac_status); }; }; then 8927 ac_cv_lib_svld_dlopen=yes 8928else 8929 echo "$as_me: failed program was:" >&5 8930sed 's/^/| /' conftest.$ac_ext >&5 8931 8932ac_cv_lib_svld_dlopen=no 8933fi 8934rm -f conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936LIBS=$ac_check_lib_save_LIBS 8937fi 8938echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8939echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8940if test $ac_cv_lib_svld_dlopen = yes; then 8941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8942else 8943 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8944echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8945if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8946 echo $ECHO_N "(cached) $ECHO_C" >&6 8947else 8948 ac_check_lib_save_LIBS=$LIBS 8949LIBS="-ldld $LIBS" 8950cat >conftest.$ac_ext <<_ACEOF 8951/* confdefs.h. */ 8952_ACEOF 8953cat confdefs.h >>conftest.$ac_ext 8954cat >>conftest.$ac_ext <<_ACEOF 8955/* end confdefs.h. */ 8956 8957/* Override any gcc2 internal prototype to avoid an error. */ 8958#ifdef __cplusplus 8959extern "C" 8960#endif 8961/* We use char because int might match the return type of a gcc2 8962 builtin and then its argument prototype would still apply. */ 8963char dld_link (); 8964int 8965main () 8966{ 8967dld_link (); 8968 ; 8969 return 0; 8970} 8971_ACEOF 8972rm -f conftest.$ac_objext conftest$ac_exeext 8973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8974 (eval $ac_link) 2>conftest.er1 8975 ac_status=$? 8976 grep -v '^ *+' conftest.er1 >conftest.err 8977 rm -f conftest.er1 8978 cat conftest.err >&5 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 (exit $ac_status); } && 8981 { ac_try='test -z "$ac_c_werror_flag" 8982 || test ! -s conftest.err' 8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8984 (eval $ac_try) 2>&5 8985 ac_status=$? 8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8987 (exit $ac_status); }; } && 8988 { ac_try='test -s conftest$ac_exeext' 8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8990 (eval $ac_try) 2>&5 8991 ac_status=$? 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8993 (exit $ac_status); }; }; then 8994 ac_cv_lib_dld_dld_link=yes 8995else 8996 echo "$as_me: failed program was:" >&5 8997sed 's/^/| /' conftest.$ac_ext >&5 8998 8999ac_cv_lib_dld_dld_link=no 9000fi 9001rm -f conftest.err conftest.$ac_objext \ 9002 conftest$ac_exeext conftest.$ac_ext 9003LIBS=$ac_check_lib_save_LIBS 9004fi 9005echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9006echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9007if test $ac_cv_lib_dld_dld_link = yes; then 9008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9009fi 9010 9011 9012fi 9013 9014 9015fi 9016 9017 9018fi 9019 9020 9021fi 9022 9023 9024fi 9025 9026 ;; 9027 esac 9028 9029 if test "x$lt_cv_dlopen" != xno; then 9030 enable_dlopen=yes 9031 else 9032 enable_dlopen=no 9033 fi 9034 9035 case $lt_cv_dlopen in 9036 dlopen) 9037 save_CPPFLAGS="$CPPFLAGS" 9038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9039 9040 save_LDFLAGS="$LDFLAGS" 9041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9042 9043 save_LIBS="$LIBS" 9044 LIBS="$lt_cv_dlopen_libs $LIBS" 9045 9046 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9047echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9048if test "${lt_cv_dlopen_self+set}" = set; then 9049 echo $ECHO_N "(cached) $ECHO_C" >&6 9050else 9051 if test "$cross_compiling" = yes; then : 9052 lt_cv_dlopen_self=cross 9053else 9054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9055 lt_status=$lt_dlunknown 9056 cat > conftest.$ac_ext <<_LT_EOF 9057#line 9057 "configure" 9058#include "confdefs.h" 9059 9060#if HAVE_DLFCN_H 9061#include <dlfcn.h> 9062#endif 9063 9064#include <stdio.h> 9065 9066#ifdef RTLD_GLOBAL 9067# define LT_DLGLOBAL RTLD_GLOBAL 9068#else 9069# ifdef DL_GLOBAL 9070# define LT_DLGLOBAL DL_GLOBAL 9071# else 9072# define LT_DLGLOBAL 0 9073# endif 9074#endif 9075 9076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9077 find out it does not work in some platform. */ 9078#ifndef LT_DLLAZY_OR_NOW 9079# ifdef RTLD_LAZY 9080# define LT_DLLAZY_OR_NOW RTLD_LAZY 9081# else 9082# ifdef DL_LAZY 9083# define LT_DLLAZY_OR_NOW DL_LAZY 9084# else 9085# ifdef RTLD_NOW 9086# define LT_DLLAZY_OR_NOW RTLD_NOW 9087# else 9088# ifdef DL_NOW 9089# define LT_DLLAZY_OR_NOW DL_NOW 9090# else 9091# define LT_DLLAZY_OR_NOW 0 9092# endif 9093# endif 9094# endif 9095# endif 9096#endif 9097 9098#ifdef __cplusplus 9099extern "C" void exit (int); 9100#endif 9101 9102void fnord() { int i=42;} 9103int main () 9104{ 9105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9106 int status = $lt_dlunknown; 9107 9108 if (self) 9109 { 9110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9112 /* dlclose (self); */ 9113 } 9114 else 9115 puts (dlerror ()); 9116 9117 exit (status); 9118} 9119_LT_EOF 9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9121 (eval $ac_link) 2>&5 9122 ac_status=$? 9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9125 (./conftest; exit; ) >&5 2>/dev/null 9126 lt_status=$? 9127 case x$lt_status in 9128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9131 esac 9132 else : 9133 # compilation failed 9134 lt_cv_dlopen_self=no 9135 fi 9136fi 9137rm -fr conftest* 9138 9139 9140fi 9141echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9142echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9143 9144 if test "x$lt_cv_dlopen_self" = xyes; then 9145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9146 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9147echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9148if test "${lt_cv_dlopen_self_static+set}" = set; then 9149 echo $ECHO_N "(cached) $ECHO_C" >&6 9150else 9151 if test "$cross_compiling" = yes; then : 9152 lt_cv_dlopen_self_static=cross 9153else 9154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9155 lt_status=$lt_dlunknown 9156 cat > conftest.$ac_ext <<_LT_EOF 9157#line 9157 "configure" 9158#include "confdefs.h" 9159 9160#if HAVE_DLFCN_H 9161#include <dlfcn.h> 9162#endif 9163 9164#include <stdio.h> 9165 9166#ifdef RTLD_GLOBAL 9167# define LT_DLGLOBAL RTLD_GLOBAL 9168#else 9169# ifdef DL_GLOBAL 9170# define LT_DLGLOBAL DL_GLOBAL 9171# else 9172# define LT_DLGLOBAL 0 9173# endif 9174#endif 9175 9176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9177 find out it does not work in some platform. */ 9178#ifndef LT_DLLAZY_OR_NOW 9179# ifdef RTLD_LAZY 9180# define LT_DLLAZY_OR_NOW RTLD_LAZY 9181# else 9182# ifdef DL_LAZY 9183# define LT_DLLAZY_OR_NOW DL_LAZY 9184# else 9185# ifdef RTLD_NOW 9186# define LT_DLLAZY_OR_NOW RTLD_NOW 9187# else 9188# ifdef DL_NOW 9189# define LT_DLLAZY_OR_NOW DL_NOW 9190# else 9191# define LT_DLLAZY_OR_NOW 0 9192# endif 9193# endif 9194# endif 9195# endif 9196#endif 9197 9198#ifdef __cplusplus 9199extern "C" void exit (int); 9200#endif 9201 9202void fnord() { int i=42;} 9203int main () 9204{ 9205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9206 int status = $lt_dlunknown; 9207 9208 if (self) 9209 { 9210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9212 /* dlclose (self); */ 9213 } 9214 else 9215 puts (dlerror ()); 9216 9217 exit (status); 9218} 9219_LT_EOF 9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9221 (eval $ac_link) 2>&5 9222 ac_status=$? 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9225 (./conftest; exit; ) >&5 2>/dev/null 9226 lt_status=$? 9227 case x$lt_status in 9228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9231 esac 9232 else : 9233 # compilation failed 9234 lt_cv_dlopen_self_static=no 9235 fi 9236fi 9237rm -fr conftest* 9238 9239 9240fi 9241echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9242echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9243 fi 9244 9245 CPPFLAGS="$save_CPPFLAGS" 9246 LDFLAGS="$save_LDFLAGS" 9247 LIBS="$save_LIBS" 9248 ;; 9249 esac 9250 9251 case $lt_cv_dlopen_self in 9252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9253 *) enable_dlopen_self=unknown ;; 9254 esac 9255 9256 case $lt_cv_dlopen_self_static in 9257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9258 *) enable_dlopen_self_static=unknown ;; 9259 esac 9260fi 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278striplib= 9279old_striplib= 9280echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9282if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9284 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9285 echo "$as_me:$LINENO: result: yes" >&5 9286echo "${ECHO_T}yes" >&6 9287else 9288# FIXME - insert some real tests, host_os isn't really good enough 9289 case $host_os in 9290 darwin*) 9291 if test -n "$STRIP" ; then 9292 striplib="$STRIP -x" 9293 old_striplib="$STRIP -S" 9294 echo "$as_me:$LINENO: result: yes" >&5 9295echo "${ECHO_T}yes" >&6 9296 else 9297 echo "$as_me:$LINENO: result: no" >&5 9298echo "${ECHO_T}no" >&6 9299 fi 9300 ;; 9301 *) 9302 echo "$as_me:$LINENO: result: no" >&5 9303echo "${ECHO_T}no" >&6 9304 ;; 9305 esac 9306fi 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 # Report which library types will actually be built 9320 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9321echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9322 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9323echo "${ECHO_T}$can_build_shared" >&6 9324 9325 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9326echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9327 test "$can_build_shared" = "no" && enable_shared=no 9328 9329 # On AIX, shared libraries and static libraries use the same namespace, and 9330 # are all built from PIC. 9331 case $host_os in 9332 aix3*) 9333 test "$enable_shared" = yes && enable_static=no 9334 if test -n "$RANLIB"; then 9335 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9336 postinstall_cmds='$RANLIB $lib' 9337 fi 9338 ;; 9339 9340 aix[4-9]*) 9341 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9342 test "$enable_shared" = yes && enable_static=no 9343 fi 9344 ;; 9345 esac 9346 echo "$as_me:$LINENO: result: $enable_shared" >&5 9347echo "${ECHO_T}$enable_shared" >&6 9348 9349 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9350echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9351 # Make sure either enable_shared or enable_static is yes. 9352 test "$enable_shared" = yes || enable_static=yes 9353 echo "$as_me:$LINENO: result: $enable_static" >&5 9354echo "${ECHO_T}$enable_static" >&6 9355 9356 9357 9358 9359fi 9360ac_ext=c 9361ac_cpp='$CPP $CPPFLAGS' 9362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9364ac_compiler_gnu=$ac_cv_c_compiler_gnu 9365 9366CC="$lt_save_CC" 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 ac_config_commands="$ac_config_commands libtool" 9381 9382 9383 9384 9385# Only expand once: 9386 9387 9388# Find a good install program. We prefer a C program (faster), 9389# so one script is as good as another. But avoid the broken or 9390# incompatible versions: 9391# SysV /etc/install, /usr/sbin/install 9392# SunOS /usr/etc/install 9393# IRIX /sbin/install 9394# AIX /bin/install 9395# AmigaOS /C/install, which installs bootblocks on floppy discs 9396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9397# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9399# OS/2's system install, which has a completely different semantic 9400# ./install, which can be erroneously created by make from ./install.sh. 9401echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 9402echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 9403if test -z "$INSTALL"; then 9404if test "${ac_cv_path_install+set}" = set; then 9405 echo $ECHO_N "(cached) $ECHO_C" >&6 9406else 9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9408for as_dir in $PATH 9409do 9410 IFS=$as_save_IFS 9411 test -z "$as_dir" && as_dir=. 9412 # Account for people who put trailing slashes in PATH elements. 9413case $as_dir/ in 9414 ./ | .// | /cC/* | \ 9415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 9417 /usr/ucb/* ) ;; 9418 *) 9419 # OSF1 and SCO ODT 3.0 have their own names for install. 9420 # Don't use installbsd from OSF since it installs stuff as root 9421 # by default. 9422 for ac_prog in ginstall scoinst install; do 9423 for ac_exec_ext in '' $ac_executable_extensions; do 9424 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9425 if test $ac_prog = install && 9426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9427 # AIX install. It has an incompatible calling convention. 9428 : 9429 elif test $ac_prog = install && 9430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9431 # program-specific install script used by HP pwplus--don't use. 9432 : 9433 else 9434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9435 break 3 9436 fi 9437 fi 9438 done 9439 done 9440 ;; 9441esac 9442done 9443 9444 9445fi 9446 if test "${ac_cv_path_install+set}" = set; then 9447 INSTALL=$ac_cv_path_install 9448 else 9449 # As a last resort, use the slow shell script. We don't cache a 9450 # path for INSTALL within a source directory, because that will 9451 # break other packages using the cache if that directory is 9452 # removed, or if the path is relative. 9453 INSTALL=$ac_install_sh 9454 fi 9455fi 9456echo "$as_me:$LINENO: result: $INSTALL" >&5 9457echo "${ECHO_T}$INSTALL" >&6 9458 9459# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9460# It thinks the first close brace ends the variable substitution. 9461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9462 9463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9464 9465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9466 9467for ac_prog in gawk mawk nawk awk 9468do 9469 # Extract the first word of "$ac_prog", so it can be a program name with args. 9470set dummy $ac_prog; ac_word=$2 9471echo "$as_me:$LINENO: checking for $ac_word" >&5 9472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9473if test "${ac_cv_prog_AWK+set}" = set; then 9474 echo $ECHO_N "(cached) $ECHO_C" >&6 9475else 9476 if test -n "$AWK"; then 9477 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9478else 9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9480for as_dir in $PATH 9481do 9482 IFS=$as_save_IFS 9483 test -z "$as_dir" && as_dir=. 9484 for ac_exec_ext in '' $ac_executable_extensions; do 9485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9486 ac_cv_prog_AWK="$ac_prog" 9487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9488 break 2 9489 fi 9490done 9491done 9492 9493fi 9494fi 9495AWK=$ac_cv_prog_AWK 9496if test -n "$AWK"; then 9497 echo "$as_me:$LINENO: result: $AWK" >&5 9498echo "${ECHO_T}$AWK" >&6 9499else 9500 echo "$as_me:$LINENO: result: no" >&5 9501echo "${ECHO_T}no" >&6 9502fi 9503 9504 test -n "$AWK" && break 9505done 9506 9507 9508######### 9509# Enable large file support (if special flags are necessary) 9510# 9511# Check whether --enable-largefile or --disable-largefile was given. 9512if test "${enable_largefile+set}" = set; then 9513 enableval="$enable_largefile" 9514 9515fi; 9516if test "$enable_largefile" != no; then 9517 9518 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 9519echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 9520if test "${ac_cv_sys_largefile_CC+set}" = set; then 9521 echo $ECHO_N "(cached) $ECHO_C" >&6 9522else 9523 ac_cv_sys_largefile_CC=no 9524 if test "$GCC" != yes; then 9525 ac_save_CC=$CC 9526 while :; do 9527 # IRIX 6.2 and later do not support large files by default, 9528 # so use the C compiler's -n32 option if that helps. 9529 cat >conftest.$ac_ext <<_ACEOF 9530/* confdefs.h. */ 9531_ACEOF 9532cat confdefs.h >>conftest.$ac_ext 9533cat >>conftest.$ac_ext <<_ACEOF 9534/* end confdefs.h. */ 9535#include <sys/types.h> 9536 /* Check that off_t can represent 2**63 - 1 correctly. 9537 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9538 since some C++ compilers masquerading as C compilers 9539 incorrectly reject 9223372036854775807. */ 9540#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9542 && LARGE_OFF_T % 2147483647 == 1) 9543 ? 1 : -1]; 9544int 9545main () 9546{ 9547 9548 ; 9549 return 0; 9550} 9551_ACEOF 9552 rm -f conftest.$ac_objext 9553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9554 (eval $ac_compile) 2>conftest.er1 9555 ac_status=$? 9556 grep -v '^ *+' conftest.er1 >conftest.err 9557 rm -f conftest.er1 9558 cat conftest.err >&5 9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); } && 9561 { ac_try='test -z "$ac_c_werror_flag" 9562 || test ! -s conftest.err' 9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9564 (eval $ac_try) 2>&5 9565 ac_status=$? 9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9567 (exit $ac_status); }; } && 9568 { ac_try='test -s conftest.$ac_objext' 9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9570 (eval $ac_try) 2>&5 9571 ac_status=$? 9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9573 (exit $ac_status); }; }; then 9574 break 9575else 9576 echo "$as_me: failed program was:" >&5 9577sed 's/^/| /' conftest.$ac_ext >&5 9578 9579fi 9580rm -f conftest.err conftest.$ac_objext 9581 CC="$CC -n32" 9582 rm -f conftest.$ac_objext 9583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9584 (eval $ac_compile) 2>conftest.er1 9585 ac_status=$? 9586 grep -v '^ *+' conftest.er1 >conftest.err 9587 rm -f conftest.er1 9588 cat conftest.err >&5 9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9590 (exit $ac_status); } && 9591 { ac_try='test -z "$ac_c_werror_flag" 9592 || test ! -s conftest.err' 9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594 (eval $ac_try) 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; } && 9598 { ac_try='test -s conftest.$ac_objext' 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9600 (eval $ac_try) 2>&5 9601 ac_status=$? 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9603 (exit $ac_status); }; }; then 9604 ac_cv_sys_largefile_CC=' -n32'; break 9605else 9606 echo "$as_me: failed program was:" >&5 9607sed 's/^/| /' conftest.$ac_ext >&5 9608 9609fi 9610rm -f conftest.err conftest.$ac_objext 9611 break 9612 done 9613 CC=$ac_save_CC 9614 rm -f conftest.$ac_ext 9615 fi 9616fi 9617echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 9618echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 9619 if test "$ac_cv_sys_largefile_CC" != no; then 9620 CC=$CC$ac_cv_sys_largefile_CC 9621 fi 9622 9623 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9624echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 9625if test "${ac_cv_sys_file_offset_bits+set}" = set; then 9626 echo $ECHO_N "(cached) $ECHO_C" >&6 9627else 9628 while :; do 9629 ac_cv_sys_file_offset_bits=no 9630 cat >conftest.$ac_ext <<_ACEOF 9631/* confdefs.h. */ 9632_ACEOF 9633cat confdefs.h >>conftest.$ac_ext 9634cat >>conftest.$ac_ext <<_ACEOF 9635/* end confdefs.h. */ 9636#include <sys/types.h> 9637 /* Check that off_t can represent 2**63 - 1 correctly. 9638 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9639 since some C++ compilers masquerading as C compilers 9640 incorrectly reject 9223372036854775807. */ 9641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9643 && LARGE_OFF_T % 2147483647 == 1) 9644 ? 1 : -1]; 9645int 9646main () 9647{ 9648 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653rm -f conftest.$ac_objext 9654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9655 (eval $ac_compile) 2>conftest.er1 9656 ac_status=$? 9657 grep -v '^ *+' conftest.er1 >conftest.err 9658 rm -f conftest.er1 9659 cat conftest.err >&5 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9661 (exit $ac_status); } && 9662 { ac_try='test -z "$ac_c_werror_flag" 9663 || test ! -s conftest.err' 9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9665 (eval $ac_try) 2>&5 9666 ac_status=$? 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); }; } && 9669 { ac_try='test -s conftest.$ac_objext' 9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9671 (eval $ac_try) 2>&5 9672 ac_status=$? 9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9674 (exit $ac_status); }; }; then 9675 break 9676else 9677 echo "$as_me: failed program was:" >&5 9678sed 's/^/| /' conftest.$ac_ext >&5 9679 9680fi 9681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9682 cat >conftest.$ac_ext <<_ACEOF 9683/* confdefs.h. */ 9684_ACEOF 9685cat confdefs.h >>conftest.$ac_ext 9686cat >>conftest.$ac_ext <<_ACEOF 9687/* end confdefs.h. */ 9688#define _FILE_OFFSET_BITS 64 9689#include <sys/types.h> 9690 /* Check that off_t can represent 2**63 - 1 correctly. 9691 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9692 since some C++ compilers masquerading as C compilers 9693 incorrectly reject 9223372036854775807. */ 9694#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9696 && LARGE_OFF_T % 2147483647 == 1) 9697 ? 1 : -1]; 9698int 9699main () 9700{ 9701 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706rm -f conftest.$ac_objext 9707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9708 (eval $ac_compile) 2>conftest.er1 9709 ac_status=$? 9710 grep -v '^ *+' conftest.er1 >conftest.err 9711 rm -f conftest.er1 9712 cat conftest.err >&5 9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9714 (exit $ac_status); } && 9715 { ac_try='test -z "$ac_c_werror_flag" 9716 || test ! -s conftest.err' 9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9718 (eval $ac_try) 2>&5 9719 ac_status=$? 9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9721 (exit $ac_status); }; } && 9722 { ac_try='test -s conftest.$ac_objext' 9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9724 (eval $ac_try) 2>&5 9725 ac_status=$? 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 (exit $ac_status); }; }; then 9728 ac_cv_sys_file_offset_bits=64; break 9729else 9730 echo "$as_me: failed program was:" >&5 9731sed 's/^/| /' conftest.$ac_ext >&5 9732 9733fi 9734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9735 break 9736done 9737fi 9738echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 9739echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 9740if test "$ac_cv_sys_file_offset_bits" != no; then 9741 9742cat >>confdefs.h <<_ACEOF 9743#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 9744_ACEOF 9745 9746fi 9747rm -f conftest* 9748 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 9749echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 9750if test "${ac_cv_sys_large_files+set}" = set; then 9751 echo $ECHO_N "(cached) $ECHO_C" >&6 9752else 9753 while :; do 9754 ac_cv_sys_large_files=no 9755 cat >conftest.$ac_ext <<_ACEOF 9756/* confdefs.h. */ 9757_ACEOF 9758cat confdefs.h >>conftest.$ac_ext 9759cat >>conftest.$ac_ext <<_ACEOF 9760/* end confdefs.h. */ 9761#include <sys/types.h> 9762 /* Check that off_t can represent 2**63 - 1 correctly. 9763 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9764 since some C++ compilers masquerading as C compilers 9765 incorrectly reject 9223372036854775807. */ 9766#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9768 && LARGE_OFF_T % 2147483647 == 1) 9769 ? 1 : -1]; 9770int 9771main () 9772{ 9773 9774 ; 9775 return 0; 9776} 9777_ACEOF 9778rm -f conftest.$ac_objext 9779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9780 (eval $ac_compile) 2>conftest.er1 9781 ac_status=$? 9782 grep -v '^ *+' conftest.er1 >conftest.err 9783 rm -f conftest.er1 9784 cat conftest.err >&5 9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9786 (exit $ac_status); } && 9787 { ac_try='test -z "$ac_c_werror_flag" 9788 || test ! -s conftest.err' 9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9790 (eval $ac_try) 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); }; } && 9794 { ac_try='test -s conftest.$ac_objext' 9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9796 (eval $ac_try) 2>&5 9797 ac_status=$? 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); }; }; then 9800 break 9801else 9802 echo "$as_me: failed program was:" >&5 9803sed 's/^/| /' conftest.$ac_ext >&5 9804 9805fi 9806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9807 cat >conftest.$ac_ext <<_ACEOF 9808/* confdefs.h. */ 9809_ACEOF 9810cat confdefs.h >>conftest.$ac_ext 9811cat >>conftest.$ac_ext <<_ACEOF 9812/* end confdefs.h. */ 9813#define _LARGE_FILES 1 9814#include <sys/types.h> 9815 /* Check that off_t can represent 2**63 - 1 correctly. 9816 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9817 since some C++ compilers masquerading as C compilers 9818 incorrectly reject 9223372036854775807. */ 9819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9821 && LARGE_OFF_T % 2147483647 == 1) 9822 ? 1 : -1]; 9823int 9824main () 9825{ 9826 9827 ; 9828 return 0; 9829} 9830_ACEOF 9831rm -f conftest.$ac_objext 9832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9833 (eval $ac_compile) 2>conftest.er1 9834 ac_status=$? 9835 grep -v '^ *+' conftest.er1 >conftest.err 9836 rm -f conftest.er1 9837 cat conftest.err >&5 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); } && 9840 { ac_try='test -z "$ac_c_werror_flag" 9841 || test ! -s conftest.err' 9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9843 (eval $ac_try) 2>&5 9844 ac_status=$? 9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9846 (exit $ac_status); }; } && 9847 { ac_try='test -s conftest.$ac_objext' 9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9849 (eval $ac_try) 2>&5 9850 ac_status=$? 9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9852 (exit $ac_status); }; }; then 9853 ac_cv_sys_large_files=1; break 9854else 9855 echo "$as_me: failed program was:" >&5 9856sed 's/^/| /' conftest.$ac_ext >&5 9857 9858fi 9859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9860 break 9861done 9862fi 9863echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 9864echo "${ECHO_T}$ac_cv_sys_large_files" >&6 9865if test "$ac_cv_sys_large_files" != no; then 9866 9867cat >>confdefs.h <<_ACEOF 9868#define _LARGE_FILES $ac_cv_sys_large_files 9869_ACEOF 9870 9871fi 9872rm -f conftest* 9873fi 9874 9875 9876######### 9877# Check for needed/wanted data types 9878echo "$as_me:$LINENO: checking for int8_t" >&5 9879echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 9880if test "${ac_cv_type_int8_t+set}" = set; then 9881 echo $ECHO_N "(cached) $ECHO_C" >&6 9882else 9883 cat >conftest.$ac_ext <<_ACEOF 9884/* confdefs.h. */ 9885_ACEOF 9886cat confdefs.h >>conftest.$ac_ext 9887cat >>conftest.$ac_ext <<_ACEOF 9888/* end confdefs.h. */ 9889$ac_includes_default 9890int 9891main () 9892{ 9893if ((int8_t *) 0) 9894 return 0; 9895if (sizeof (int8_t)) 9896 return 0; 9897 ; 9898 return 0; 9899} 9900_ACEOF 9901rm -f conftest.$ac_objext 9902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9903 (eval $ac_compile) 2>conftest.er1 9904 ac_status=$? 9905 grep -v '^ *+' conftest.er1 >conftest.err 9906 rm -f conftest.er1 9907 cat conftest.err >&5 9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9909 (exit $ac_status); } && 9910 { ac_try='test -z "$ac_c_werror_flag" 9911 || test ! -s conftest.err' 9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9913 (eval $ac_try) 2>&5 9914 ac_status=$? 9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9916 (exit $ac_status); }; } && 9917 { ac_try='test -s conftest.$ac_objext' 9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9919 (eval $ac_try) 2>&5 9920 ac_status=$? 9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9922 (exit $ac_status); }; }; then 9923 ac_cv_type_int8_t=yes 9924else 9925 echo "$as_me: failed program was:" >&5 9926sed 's/^/| /' conftest.$ac_ext >&5 9927 9928ac_cv_type_int8_t=no 9929fi 9930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9931fi 9932echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 9933echo "${ECHO_T}$ac_cv_type_int8_t" >&6 9934if test $ac_cv_type_int8_t = yes; then 9935 9936cat >>confdefs.h <<_ACEOF 9937#define HAVE_INT8_T 1 9938_ACEOF 9939 9940 9941fi 9942echo "$as_me:$LINENO: checking for int16_t" >&5 9943echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 9944if test "${ac_cv_type_int16_t+set}" = set; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946else 9947 cat >conftest.$ac_ext <<_ACEOF 9948/* confdefs.h. */ 9949_ACEOF 9950cat confdefs.h >>conftest.$ac_ext 9951cat >>conftest.$ac_ext <<_ACEOF 9952/* end confdefs.h. */ 9953$ac_includes_default 9954int 9955main () 9956{ 9957if ((int16_t *) 0) 9958 return 0; 9959if (sizeof (int16_t)) 9960 return 0; 9961 ; 9962 return 0; 9963} 9964_ACEOF 9965rm -f conftest.$ac_objext 9966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9967 (eval $ac_compile) 2>conftest.er1 9968 ac_status=$? 9969 grep -v '^ *+' conftest.er1 >conftest.err 9970 rm -f conftest.er1 9971 cat conftest.err >&5 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); } && 9974 { ac_try='test -z "$ac_c_werror_flag" 9975 || test ! -s conftest.err' 9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9977 (eval $ac_try) 2>&5 9978 ac_status=$? 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9980 (exit $ac_status); }; } && 9981 { ac_try='test -s conftest.$ac_objext' 9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9983 (eval $ac_try) 2>&5 9984 ac_status=$? 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); }; }; then 9987 ac_cv_type_int16_t=yes 9988else 9989 echo "$as_me: failed program was:" >&5 9990sed 's/^/| /' conftest.$ac_ext >&5 9991 9992ac_cv_type_int16_t=no 9993fi 9994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9995fi 9996echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 9997echo "${ECHO_T}$ac_cv_type_int16_t" >&6 9998if test $ac_cv_type_int16_t = yes; then 9999 10000cat >>confdefs.h <<_ACEOF 10001#define HAVE_INT16_T 1 10002_ACEOF 10003 10004 10005fi 10006echo "$as_me:$LINENO: checking for int32_t" >&5 10007echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 10008if test "${ac_cv_type_int32_t+set}" = set; then 10009 echo $ECHO_N "(cached) $ECHO_C" >&6 10010else 10011 cat >conftest.$ac_ext <<_ACEOF 10012/* confdefs.h. */ 10013_ACEOF 10014cat confdefs.h >>conftest.$ac_ext 10015cat >>conftest.$ac_ext <<_ACEOF 10016/* end confdefs.h. */ 10017$ac_includes_default 10018int 10019main () 10020{ 10021if ((int32_t *) 0) 10022 return 0; 10023if (sizeof (int32_t)) 10024 return 0; 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029rm -f conftest.$ac_objext 10030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10031 (eval $ac_compile) 2>conftest.er1 10032 ac_status=$? 10033 grep -v '^ *+' conftest.er1 >conftest.err 10034 rm -f conftest.er1 10035 cat conftest.err >&5 10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10037 (exit $ac_status); } && 10038 { ac_try='test -z "$ac_c_werror_flag" 10039 || test ! -s conftest.err' 10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10041 (eval $ac_try) 2>&5 10042 ac_status=$? 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); }; } && 10045 { ac_try='test -s conftest.$ac_objext' 10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10047 (eval $ac_try) 2>&5 10048 ac_status=$? 10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10050 (exit $ac_status); }; }; then 10051 ac_cv_type_int32_t=yes 10052else 10053 echo "$as_me: failed program was:" >&5 10054sed 's/^/| /' conftest.$ac_ext >&5 10055 10056ac_cv_type_int32_t=no 10057fi 10058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10059fi 10060echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 10061echo "${ECHO_T}$ac_cv_type_int32_t" >&6 10062if test $ac_cv_type_int32_t = yes; then 10063 10064cat >>confdefs.h <<_ACEOF 10065#define HAVE_INT32_T 1 10066_ACEOF 10067 10068 10069fi 10070echo "$as_me:$LINENO: checking for int64_t" >&5 10071echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 10072if test "${ac_cv_type_int64_t+set}" = set; then 10073 echo $ECHO_N "(cached) $ECHO_C" >&6 10074else 10075 cat >conftest.$ac_ext <<_ACEOF 10076/* confdefs.h. */ 10077_ACEOF 10078cat confdefs.h >>conftest.$ac_ext 10079cat >>conftest.$ac_ext <<_ACEOF 10080/* end confdefs.h. */ 10081$ac_includes_default 10082int 10083main () 10084{ 10085if ((int64_t *) 0) 10086 return 0; 10087if (sizeof (int64_t)) 10088 return 0; 10089 ; 10090 return 0; 10091} 10092_ACEOF 10093rm -f conftest.$ac_objext 10094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10095 (eval $ac_compile) 2>conftest.er1 10096 ac_status=$? 10097 grep -v '^ *+' conftest.er1 >conftest.err 10098 rm -f conftest.er1 10099 cat conftest.err >&5 10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10101 (exit $ac_status); } && 10102 { ac_try='test -z "$ac_c_werror_flag" 10103 || test ! -s conftest.err' 10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10105 (eval $ac_try) 2>&5 10106 ac_status=$? 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); }; } && 10109 { ac_try='test -s conftest.$ac_objext' 10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10111 (eval $ac_try) 2>&5 10112 ac_status=$? 10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10114 (exit $ac_status); }; }; then 10115 ac_cv_type_int64_t=yes 10116else 10117 echo "$as_me: failed program was:" >&5 10118sed 's/^/| /' conftest.$ac_ext >&5 10119 10120ac_cv_type_int64_t=no 10121fi 10122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10123fi 10124echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 10125echo "${ECHO_T}$ac_cv_type_int64_t" >&6 10126if test $ac_cv_type_int64_t = yes; then 10127 10128cat >>confdefs.h <<_ACEOF 10129#define HAVE_INT64_T 1 10130_ACEOF 10131 10132 10133fi 10134echo "$as_me:$LINENO: checking for intptr_t" >&5 10135echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 10136if test "${ac_cv_type_intptr_t+set}" = set; then 10137 echo $ECHO_N "(cached) $ECHO_C" >&6 10138else 10139 cat >conftest.$ac_ext <<_ACEOF 10140/* confdefs.h. */ 10141_ACEOF 10142cat confdefs.h >>conftest.$ac_ext 10143cat >>conftest.$ac_ext <<_ACEOF 10144/* end confdefs.h. */ 10145$ac_includes_default 10146int 10147main () 10148{ 10149if ((intptr_t *) 0) 10150 return 0; 10151if (sizeof (intptr_t)) 10152 return 0; 10153 ; 10154 return 0; 10155} 10156_ACEOF 10157rm -f conftest.$ac_objext 10158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10159 (eval $ac_compile) 2>conftest.er1 10160 ac_status=$? 10161 grep -v '^ *+' conftest.er1 >conftest.err 10162 rm -f conftest.er1 10163 cat conftest.err >&5 10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10165 (exit $ac_status); } && 10166 { ac_try='test -z "$ac_c_werror_flag" 10167 || test ! -s conftest.err' 10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10169 (eval $ac_try) 2>&5 10170 ac_status=$? 10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10172 (exit $ac_status); }; } && 10173 { ac_try='test -s conftest.$ac_objext' 10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10175 (eval $ac_try) 2>&5 10176 ac_status=$? 10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 (exit $ac_status); }; }; then 10179 ac_cv_type_intptr_t=yes 10180else 10181 echo "$as_me: failed program was:" >&5 10182sed 's/^/| /' conftest.$ac_ext >&5 10183 10184ac_cv_type_intptr_t=no 10185fi 10186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10187fi 10188echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 10189echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 10190if test $ac_cv_type_intptr_t = yes; then 10191 10192cat >>confdefs.h <<_ACEOF 10193#define HAVE_INTPTR_T 1 10194_ACEOF 10195 10196 10197fi 10198echo "$as_me:$LINENO: checking for uint8_t" >&5 10199echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 10200if test "${ac_cv_type_uint8_t+set}" = set; then 10201 echo $ECHO_N "(cached) $ECHO_C" >&6 10202else 10203 cat >conftest.$ac_ext <<_ACEOF 10204/* confdefs.h. */ 10205_ACEOF 10206cat confdefs.h >>conftest.$ac_ext 10207cat >>conftest.$ac_ext <<_ACEOF 10208/* end confdefs.h. */ 10209$ac_includes_default 10210int 10211main () 10212{ 10213if ((uint8_t *) 0) 10214 return 0; 10215if (sizeof (uint8_t)) 10216 return 0; 10217 ; 10218 return 0; 10219} 10220_ACEOF 10221rm -f conftest.$ac_objext 10222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10223 (eval $ac_compile) 2>conftest.er1 10224 ac_status=$? 10225 grep -v '^ *+' conftest.er1 >conftest.err 10226 rm -f conftest.er1 10227 cat conftest.err >&5 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); } && 10230 { ac_try='test -z "$ac_c_werror_flag" 10231 || test ! -s conftest.err' 10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10233 (eval $ac_try) 2>&5 10234 ac_status=$? 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); }; } && 10237 { ac_try='test -s conftest.$ac_objext' 10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10239 (eval $ac_try) 2>&5 10240 ac_status=$? 10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10242 (exit $ac_status); }; }; then 10243 ac_cv_type_uint8_t=yes 10244else 10245 echo "$as_me: failed program was:" >&5 10246sed 's/^/| /' conftest.$ac_ext >&5 10247 10248ac_cv_type_uint8_t=no 10249fi 10250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10251fi 10252echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 10253echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 10254if test $ac_cv_type_uint8_t = yes; then 10255 10256cat >>confdefs.h <<_ACEOF 10257#define HAVE_UINT8_T 1 10258_ACEOF 10259 10260 10261fi 10262echo "$as_me:$LINENO: checking for uint16_t" >&5 10263echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 10264if test "${ac_cv_type_uint16_t+set}" = set; then 10265 echo $ECHO_N "(cached) $ECHO_C" >&6 10266else 10267 cat >conftest.$ac_ext <<_ACEOF 10268/* confdefs.h. */ 10269_ACEOF 10270cat confdefs.h >>conftest.$ac_ext 10271cat >>conftest.$ac_ext <<_ACEOF 10272/* end confdefs.h. */ 10273$ac_includes_default 10274int 10275main () 10276{ 10277if ((uint16_t *) 0) 10278 return 0; 10279if (sizeof (uint16_t)) 10280 return 0; 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285rm -f conftest.$ac_objext 10286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10287 (eval $ac_compile) 2>conftest.er1 10288 ac_status=$? 10289 grep -v '^ *+' conftest.er1 >conftest.err 10290 rm -f conftest.er1 10291 cat conftest.err >&5 10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10293 (exit $ac_status); } && 10294 { ac_try='test -z "$ac_c_werror_flag" 10295 || test ! -s conftest.err' 10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10297 (eval $ac_try) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); }; } && 10301 { ac_try='test -s conftest.$ac_objext' 10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10303 (eval $ac_try) 2>&5 10304 ac_status=$? 10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10306 (exit $ac_status); }; }; then 10307 ac_cv_type_uint16_t=yes 10308else 10309 echo "$as_me: failed program was:" >&5 10310sed 's/^/| /' conftest.$ac_ext >&5 10311 10312ac_cv_type_uint16_t=no 10313fi 10314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10315fi 10316echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 10317echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 10318if test $ac_cv_type_uint16_t = yes; then 10319 10320cat >>confdefs.h <<_ACEOF 10321#define HAVE_UINT16_T 1 10322_ACEOF 10323 10324 10325fi 10326echo "$as_me:$LINENO: checking for uint32_t" >&5 10327echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10328if test "${ac_cv_type_uint32_t+set}" = set; then 10329 echo $ECHO_N "(cached) $ECHO_C" >&6 10330else 10331 cat >conftest.$ac_ext <<_ACEOF 10332/* confdefs.h. */ 10333_ACEOF 10334cat confdefs.h >>conftest.$ac_ext 10335cat >>conftest.$ac_ext <<_ACEOF 10336/* end confdefs.h. */ 10337$ac_includes_default 10338int 10339main () 10340{ 10341if ((uint32_t *) 0) 10342 return 0; 10343if (sizeof (uint32_t)) 10344 return 0; 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349rm -f conftest.$ac_objext 10350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10351 (eval $ac_compile) 2>conftest.er1 10352 ac_status=$? 10353 grep -v '^ *+' conftest.er1 >conftest.err 10354 rm -f conftest.er1 10355 cat conftest.err >&5 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); } && 10358 { ac_try='test -z "$ac_c_werror_flag" 10359 || test ! -s conftest.err' 10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10361 (eval $ac_try) 2>&5 10362 ac_status=$? 10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10364 (exit $ac_status); }; } && 10365 { ac_try='test -s conftest.$ac_objext' 10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10367 (eval $ac_try) 2>&5 10368 ac_status=$? 10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 (exit $ac_status); }; }; then 10371 ac_cv_type_uint32_t=yes 10372else 10373 echo "$as_me: failed program was:" >&5 10374sed 's/^/| /' conftest.$ac_ext >&5 10375 10376ac_cv_type_uint32_t=no 10377fi 10378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10379fi 10380echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10381echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10382if test $ac_cv_type_uint32_t = yes; then 10383 10384cat >>confdefs.h <<_ACEOF 10385#define HAVE_UINT32_T 1 10386_ACEOF 10387 10388 10389fi 10390echo "$as_me:$LINENO: checking for uint64_t" >&5 10391echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 10392if test "${ac_cv_type_uint64_t+set}" = set; then 10393 echo $ECHO_N "(cached) $ECHO_C" >&6 10394else 10395 cat >conftest.$ac_ext <<_ACEOF 10396/* confdefs.h. */ 10397_ACEOF 10398cat confdefs.h >>conftest.$ac_ext 10399cat >>conftest.$ac_ext <<_ACEOF 10400/* end confdefs.h. */ 10401$ac_includes_default 10402int 10403main () 10404{ 10405if ((uint64_t *) 0) 10406 return 0; 10407if (sizeof (uint64_t)) 10408 return 0; 10409 ; 10410 return 0; 10411} 10412_ACEOF 10413rm -f conftest.$ac_objext 10414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10415 (eval $ac_compile) 2>conftest.er1 10416 ac_status=$? 10417 grep -v '^ *+' conftest.er1 >conftest.err 10418 rm -f conftest.er1 10419 cat conftest.err >&5 10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10421 (exit $ac_status); } && 10422 { ac_try='test -z "$ac_c_werror_flag" 10423 || test ! -s conftest.err' 10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10425 (eval $ac_try) 2>&5 10426 ac_status=$? 10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10428 (exit $ac_status); }; } && 10429 { ac_try='test -s conftest.$ac_objext' 10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10431 (eval $ac_try) 2>&5 10432 ac_status=$? 10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10434 (exit $ac_status); }; }; then 10435 ac_cv_type_uint64_t=yes 10436else 10437 echo "$as_me: failed program was:" >&5 10438sed 's/^/| /' conftest.$ac_ext >&5 10439 10440ac_cv_type_uint64_t=no 10441fi 10442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10443fi 10444echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 10445echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 10446if test $ac_cv_type_uint64_t = yes; then 10447 10448cat >>confdefs.h <<_ACEOF 10449#define HAVE_UINT64_T 1 10450_ACEOF 10451 10452 10453fi 10454echo "$as_me:$LINENO: checking for uintptr_t" >&5 10455echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 10456if test "${ac_cv_type_uintptr_t+set}" = set; then 10457 echo $ECHO_N "(cached) $ECHO_C" >&6 10458else 10459 cat >conftest.$ac_ext <<_ACEOF 10460/* confdefs.h. */ 10461_ACEOF 10462cat confdefs.h >>conftest.$ac_ext 10463cat >>conftest.$ac_ext <<_ACEOF 10464/* end confdefs.h. */ 10465$ac_includes_default 10466int 10467main () 10468{ 10469if ((uintptr_t *) 0) 10470 return 0; 10471if (sizeof (uintptr_t)) 10472 return 0; 10473 ; 10474 return 0; 10475} 10476_ACEOF 10477rm -f conftest.$ac_objext 10478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10479 (eval $ac_compile) 2>conftest.er1 10480 ac_status=$? 10481 grep -v '^ *+' conftest.er1 >conftest.err 10482 rm -f conftest.er1 10483 cat conftest.err >&5 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 (exit $ac_status); } && 10486 { ac_try='test -z "$ac_c_werror_flag" 10487 || test ! -s conftest.err' 10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10489 (eval $ac_try) 2>&5 10490 ac_status=$? 10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); }; } && 10493 { ac_try='test -s conftest.$ac_objext' 10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10495 (eval $ac_try) 2>&5 10496 ac_status=$? 10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10498 (exit $ac_status); }; }; then 10499 ac_cv_type_uintptr_t=yes 10500else 10501 echo "$as_me: failed program was:" >&5 10502sed 's/^/| /' conftest.$ac_ext >&5 10503 10504ac_cv_type_uintptr_t=no 10505fi 10506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10507fi 10508echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 10509echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 10510if test $ac_cv_type_uintptr_t = yes; then 10511 10512cat >>confdefs.h <<_ACEOF 10513#define HAVE_UINTPTR_T 1 10514_ACEOF 10515 10516 10517fi 10518 10519 10520######### 10521# Check for needed/wanted headers 10522 10523 10524 10525 10526for ac_header in sys/types.h stdlib.h stdint.h inttypes.h 10527do 10528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10529if eval "test \"\${$as_ac_Header+set}\" = set"; then 10530 echo "$as_me:$LINENO: checking for $ac_header" >&5 10531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10532if eval "test \"\${$as_ac_Header+set}\" = set"; then 10533 echo $ECHO_N "(cached) $ECHO_C" >&6 10534fi 10535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10537else 10538 # Is the header compilable? 10539echo "$as_me:$LINENO: checking $ac_header usability" >&5 10540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10541cat >conftest.$ac_ext <<_ACEOF 10542/* confdefs.h. */ 10543_ACEOF 10544cat confdefs.h >>conftest.$ac_ext 10545cat >>conftest.$ac_ext <<_ACEOF 10546/* end confdefs.h. */ 10547$ac_includes_default 10548#include <$ac_header> 10549_ACEOF 10550rm -f conftest.$ac_objext 10551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10552 (eval $ac_compile) 2>conftest.er1 10553 ac_status=$? 10554 grep -v '^ *+' conftest.er1 >conftest.err 10555 rm -f conftest.er1 10556 cat conftest.err >&5 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); } && 10559 { ac_try='test -z "$ac_c_werror_flag" 10560 || test ! -s conftest.err' 10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 (eval $ac_try) 2>&5 10563 ac_status=$? 10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); }; } && 10566 { ac_try='test -s conftest.$ac_objext' 10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10568 (eval $ac_try) 2>&5 10569 ac_status=$? 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); }; }; then 10572 ac_header_compiler=yes 10573else 10574 echo "$as_me: failed program was:" >&5 10575sed 's/^/| /' conftest.$ac_ext >&5 10576 10577ac_header_compiler=no 10578fi 10579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10581echo "${ECHO_T}$ac_header_compiler" >&6 10582 10583# Is the header present? 10584echo "$as_me:$LINENO: checking $ac_header presence" >&5 10585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10586cat >conftest.$ac_ext <<_ACEOF 10587/* confdefs.h. */ 10588_ACEOF 10589cat confdefs.h >>conftest.$ac_ext 10590cat >>conftest.$ac_ext <<_ACEOF 10591/* end confdefs.h. */ 10592#include <$ac_header> 10593_ACEOF 10594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10596 ac_status=$? 10597 grep -v '^ *+' conftest.er1 >conftest.err 10598 rm -f conftest.er1 10599 cat conftest.err >&5 10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10601 (exit $ac_status); } >/dev/null; then 10602 if test -s conftest.err; then 10603 ac_cpp_err=$ac_c_preproc_warn_flag 10604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10605 else 10606 ac_cpp_err= 10607 fi 10608else 10609 ac_cpp_err=yes 10610fi 10611if test -z "$ac_cpp_err"; then 10612 ac_header_preproc=yes 10613else 10614 echo "$as_me: failed program was:" >&5 10615sed 's/^/| /' conftest.$ac_ext >&5 10616 10617 ac_header_preproc=no 10618fi 10619rm -f conftest.err conftest.$ac_ext 10620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10621echo "${ECHO_T}$ac_header_preproc" >&6 10622 10623# So? What about this header? 10624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10625 yes:no: ) 10626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10630 ac_header_preproc=yes 10631 ;; 10632 no:yes:* ) 10633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10645 ( 10646 cat <<\_ASBOX 10647## --------------------------------- ## 10648## Report this to the sqlite lists. ## 10649## --------------------------------- ## 10650_ASBOX 10651 ) | 10652 sed "s/^/$as_me: WARNING: /" >&2 10653 ;; 10654esac 10655echo "$as_me:$LINENO: checking for $ac_header" >&5 10656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10657if eval "test \"\${$as_ac_Header+set}\" = set"; then 10658 echo $ECHO_N "(cached) $ECHO_C" >&6 10659else 10660 eval "$as_ac_Header=\$ac_header_preproc" 10661fi 10662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10664 10665fi 10666if test `eval echo '${'$as_ac_Header'}'` = yes; then 10667 cat >>confdefs.h <<_ACEOF 10668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10669_ACEOF 10670 10671fi 10672 10673done 10674 10675 10676######### 10677# Figure out whether or not we have these functions 10678# 10679 10680 10681 10682 10683 10684for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s 10685do 10686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10687echo "$as_me:$LINENO: checking for $ac_func" >&5 10688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10689if eval "test \"\${$as_ac_var+set}\" = set"; then 10690 echo $ECHO_N "(cached) $ECHO_C" >&6 10691else 10692 cat >conftest.$ac_ext <<_ACEOF 10693/* confdefs.h. */ 10694_ACEOF 10695cat confdefs.h >>conftest.$ac_ext 10696cat >>conftest.$ac_ext <<_ACEOF 10697/* end confdefs.h. */ 10698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10700#define $ac_func innocuous_$ac_func 10701 10702/* System header to define __stub macros and hopefully few prototypes, 10703 which can conflict with char $ac_func (); below. 10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10705 <limits.h> exists even on freestanding compilers. */ 10706 10707#ifdef __STDC__ 10708# include <limits.h> 10709#else 10710# include <assert.h> 10711#endif 10712 10713#undef $ac_func 10714 10715/* Override any gcc2 internal prototype to avoid an error. */ 10716#ifdef __cplusplus 10717extern "C" 10718{ 10719#endif 10720/* We use char because int might match the return type of a gcc2 10721 builtin and then its argument prototype would still apply. */ 10722char $ac_func (); 10723/* The GNU C library defines this for functions which it implements 10724 to always fail with ENOSYS. Some functions are actually named 10725 something starting with __ and the normal name is an alias. */ 10726#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10727choke me 10728#else 10729char (*f) () = $ac_func; 10730#endif 10731#ifdef __cplusplus 10732} 10733#endif 10734 10735int 10736main () 10737{ 10738return f != $ac_func; 10739 ; 10740 return 0; 10741} 10742_ACEOF 10743rm -f conftest.$ac_objext conftest$ac_exeext 10744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10745 (eval $ac_link) 2>conftest.er1 10746 ac_status=$? 10747 grep -v '^ *+' conftest.er1 >conftest.err 10748 rm -f conftest.er1 10749 cat conftest.err >&5 10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10751 (exit $ac_status); } && 10752 { ac_try='test -z "$ac_c_werror_flag" 10753 || test ! -s conftest.err' 10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10755 (eval $ac_try) 2>&5 10756 ac_status=$? 10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10758 (exit $ac_status); }; } && 10759 { ac_try='test -s conftest$ac_exeext' 10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10761 (eval $ac_try) 2>&5 10762 ac_status=$? 10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10764 (exit $ac_status); }; }; then 10765 eval "$as_ac_var=yes" 10766else 10767 echo "$as_me: failed program was:" >&5 10768sed 's/^/| /' conftest.$ac_ext >&5 10769 10770eval "$as_ac_var=no" 10771fi 10772rm -f conftest.err conftest.$ac_objext \ 10773 conftest$ac_exeext conftest.$ac_ext 10774fi 10775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10777if test `eval echo '${'$as_ac_var'}'` = yes; then 10778 cat >>confdefs.h <<_ACEOF 10779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10780_ACEOF 10781 10782fi 10783done 10784 10785 10786######### 10787# By default, we use the amalgamation (this may be changed below...) 10788# 10789USE_AMALGAMATION=1 10790 10791######### 10792# See whether we can run specific tclsh versions known to work well; 10793# if not, then we fall back to plain tclsh. 10794# TODO: try other versions before falling back? 10795# 10796for ac_prog in tclsh8.4 tclsh 10797do 10798 # Extract the first word of "$ac_prog", so it can be a program name with args. 10799set dummy $ac_prog; ac_word=$2 10800echo "$as_me:$LINENO: checking for $ac_word" >&5 10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10802if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then 10803 echo $ECHO_N "(cached) $ECHO_C" >&6 10804else 10805 if test -n "$TCLSH_CMD"; then 10806 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 10807else 10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10809for as_dir in $PATH 10810do 10811 IFS=$as_save_IFS 10812 test -z "$as_dir" && as_dir=. 10813 for ac_exec_ext in '' $ac_executable_extensions; do 10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10815 ac_cv_prog_TCLSH_CMD="$ac_prog" 10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10817 break 2 10818 fi 10819done 10820done 10821 10822fi 10823fi 10824TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 10825if test -n "$TCLSH_CMD"; then 10826 echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 10827echo "${ECHO_T}$TCLSH_CMD" >&6 10828else 10829 echo "$as_me:$LINENO: result: no" >&5 10830echo "${ECHO_T}no" >&6 10831fi 10832 10833 test -n "$TCLSH_CMD" && break 10834done 10835test -n "$TCLSH_CMD" || TCLSH_CMD="none" 10836 10837if test "$TCLSH_CMD" = "none"; then 10838 # If we can't find a local tclsh, then building the amalgamation will fail. 10839 # We act as though --disable-amalgamation has been used. 10840 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 10841 USE_AMALGAMATION=0 10842 TCLSH_CMD="tclsh" 10843fi 10844 10845 10846 10847######### 10848# Set up an appropriate program prefix 10849# 10850if test "$program_prefix" = "NONE"; then 10851 program_prefix="" 10852fi 10853 10854 10855VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 10856echo "Version set to $VERSION" 10857 10858RELEASE=`cat $srcdir/VERSION` 10859echo "Release set to $RELEASE" 10860 10861VERSION_NUMBER=`cat $srcdir/VERSION \ 10862 | sed 's/[^0-9]/ /g' \ 10863 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 10864echo "Version number set to $VERSION_NUMBER" 10865 10866 10867######### 10868# Check to see if the --with-hints=FILE option is used. If there is none, 10869# then check for a files named "$host.hints" and ../$hosts.hints where 10870# $host is the hostname of the build system. If still no hints are 10871# found, try looking in $system.hints and ../$system.hints where 10872# $system is the result of uname -s. 10873# 10874 10875# Check whether --with-hints or --without-hints was given. 10876if test "${with_hints+set}" = set; then 10877 withval="$with_hints" 10878 hints=$withval 10879fi; 10880if test "$hints" = ""; then 10881 host=`hostname | sed 's/\..*//'` 10882 if test -r $host.hints; then 10883 hints=$host.hints 10884 else 10885 if test -r ../$host.hints; then 10886 hints=../$host.hints 10887 fi 10888 fi 10889fi 10890if test "$hints" = ""; then 10891 sys=`uname -s` 10892 if test -r $sys.hints; then 10893 hints=$sys.hints 10894 else 10895 if test -r ../$sys.hints; then 10896 hints=../$sys.hints 10897 fi 10898 fi 10899fi 10900if test "$hints" != ""; then 10901 echo "$as_me:$LINENO: result: reading hints from $hints" >&5 10902echo "${ECHO_T}reading hints from $hints" >&6 10903 . $hints 10904fi 10905 10906######### 10907# Locate a compiler for the build machine. This compiler should 10908# generate command-line programs that run on the build machine. 10909# 10910if test x"$cross_compiling" = xno; then 10911 BUILD_CC=$CC 10912 BUILD_CFLAGS=$CFLAGS 10913else 10914 if test "${BUILD_CC+set}" != set; then 10915 for ac_prog in gcc cc cl 10916do 10917 # Extract the first word of "$ac_prog", so it can be a program name with args. 10918set dummy $ac_prog; ac_word=$2 10919echo "$as_me:$LINENO: checking for $ac_word" >&5 10920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10921if test "${ac_cv_prog_BUILD_CC+set}" = set; then 10922 echo $ECHO_N "(cached) $ECHO_C" >&6 10923else 10924 if test -n "$BUILD_CC"; then 10925 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10926else 10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10928for as_dir in $PATH 10929do 10930 IFS=$as_save_IFS 10931 test -z "$as_dir" && as_dir=. 10932 for ac_exec_ext in '' $ac_executable_extensions; do 10933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10934 ac_cv_prog_BUILD_CC="$ac_prog" 10935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10936 break 2 10937 fi 10938done 10939done 10940 10941fi 10942fi 10943BUILD_CC=$ac_cv_prog_BUILD_CC 10944if test -n "$BUILD_CC"; then 10945 echo "$as_me:$LINENO: result: $BUILD_CC" >&5 10946echo "${ECHO_T}$BUILD_CC" >&6 10947else 10948 echo "$as_me:$LINENO: result: no" >&5 10949echo "${ECHO_T}no" >&6 10950fi 10951 10952 test -n "$BUILD_CC" && break 10953done 10954 10955 fi 10956 if test "${BUILD_CFLAGS+set}" != set; then 10957 BUILD_CFLAGS="-g" 10958 fi 10959fi 10960 10961 10962########## 10963# Do we want to support multithreaded use of sqlite 10964# 10965# Check whether --enable-threadsafe or --disable-threadsafe was given. 10966if test "${enable_threadsafe+set}" = set; then 10967 enableval="$enable_threadsafe" 10968 10969else 10970 enable_threadsafe=yes 10971fi; 10972echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 10973echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 10974if test "$enable_threadsafe" = "no"; then 10975 SQLITE_THREADSAFE=0 10976 echo "$as_me:$LINENO: result: no" >&5 10977echo "${ECHO_T}no" >&6 10978else 10979 SQLITE_THREADSAFE=1 10980 echo "$as_me:$LINENO: result: yes" >&5 10981echo "${ECHO_T}yes" >&6 10982fi 10983 10984 10985if test "$SQLITE_THREADSAFE" = "1"; then 10986 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 10987echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 10988if test "${ac_cv_search_pthread_create+set}" = set; then 10989 echo $ECHO_N "(cached) $ECHO_C" >&6 10990else 10991 ac_func_search_save_LIBS=$LIBS 10992ac_cv_search_pthread_create=no 10993cat >conftest.$ac_ext <<_ACEOF 10994/* confdefs.h. */ 10995_ACEOF 10996cat confdefs.h >>conftest.$ac_ext 10997cat >>conftest.$ac_ext <<_ACEOF 10998/* end confdefs.h. */ 10999 11000/* Override any gcc2 internal prototype to avoid an error. */ 11001#ifdef __cplusplus 11002extern "C" 11003#endif 11004/* We use char because int might match the return type of a gcc2 11005 builtin and then its argument prototype would still apply. */ 11006char pthread_create (); 11007int 11008main () 11009{ 11010pthread_create (); 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015rm -f conftest.$ac_objext conftest$ac_exeext 11016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11017 (eval $ac_link) 2>conftest.er1 11018 ac_status=$? 11019 grep -v '^ *+' conftest.er1 >conftest.err 11020 rm -f conftest.er1 11021 cat conftest.err >&5 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); } && 11024 { ac_try='test -z "$ac_c_werror_flag" 11025 || test ! -s conftest.err' 11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11027 (eval $ac_try) 2>&5 11028 ac_status=$? 11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); }; } && 11031 { ac_try='test -s conftest$ac_exeext' 11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11033 (eval $ac_try) 2>&5 11034 ac_status=$? 11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 (exit $ac_status); }; }; then 11037 ac_cv_search_pthread_create="none required" 11038else 11039 echo "$as_me: failed program was:" >&5 11040sed 's/^/| /' conftest.$ac_ext >&5 11041 11042fi 11043rm -f conftest.err conftest.$ac_objext \ 11044 conftest$ac_exeext conftest.$ac_ext 11045if test "$ac_cv_search_pthread_create" = no; then 11046 for ac_lib in pthread; do 11047 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11048 cat >conftest.$ac_ext <<_ACEOF 11049/* confdefs.h. */ 11050_ACEOF 11051cat confdefs.h >>conftest.$ac_ext 11052cat >>conftest.$ac_ext <<_ACEOF 11053/* end confdefs.h. */ 11054 11055/* Override any gcc2 internal prototype to avoid an error. */ 11056#ifdef __cplusplus 11057extern "C" 11058#endif 11059/* We use char because int might match the return type of a gcc2 11060 builtin and then its argument prototype would still apply. */ 11061char pthread_create (); 11062int 11063main () 11064{ 11065pthread_create (); 11066 ; 11067 return 0; 11068} 11069_ACEOF 11070rm -f conftest.$ac_objext conftest$ac_exeext 11071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11072 (eval $ac_link) 2>conftest.er1 11073 ac_status=$? 11074 grep -v '^ *+' conftest.er1 >conftest.err 11075 rm -f conftest.er1 11076 cat conftest.err >&5 11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11078 (exit $ac_status); } && 11079 { ac_try='test -z "$ac_c_werror_flag" 11080 || test ! -s conftest.err' 11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11082 (eval $ac_try) 2>&5 11083 ac_status=$? 11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11085 (exit $ac_status); }; } && 11086 { ac_try='test -s conftest$ac_exeext' 11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11088 (eval $ac_try) 2>&5 11089 ac_status=$? 11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11091 (exit $ac_status); }; }; then 11092 ac_cv_search_pthread_create="-l$ac_lib" 11093break 11094else 11095 echo "$as_me: failed program was:" >&5 11096sed 's/^/| /' conftest.$ac_ext >&5 11097 11098fi 11099rm -f conftest.err conftest.$ac_objext \ 11100 conftest$ac_exeext conftest.$ac_ext 11101 done 11102fi 11103LIBS=$ac_func_search_save_LIBS 11104fi 11105echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 11106echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 11107if test "$ac_cv_search_pthread_create" != no; then 11108 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 11109 11110fi 11111 11112fi 11113 11114########## 11115# Do we want to allow a connection created in one thread to be used 11116# in another thread. This does not work on many Linux systems (ex: RedHat 9) 11117# due to bugs in the threading implementations. This is thus off by default. 11118# 11119# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given. 11120if test "${enable_cross_thread_connections+set}" = set; then 11121 enableval="$enable_cross_thread_connections" 11122 11123else 11124 enable_xthreadconnect=no 11125fi; 11126echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 11127echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6 11128if test "$enable_xthreadconnect" = "no"; then 11129 XTHREADCONNECT='' 11130 echo "$as_me:$LINENO: result: no" >&5 11131echo "${ECHO_T}no" >&6 11132else 11133 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' 11134 echo "$as_me:$LINENO: result: yes" >&5 11135echo "${ECHO_T}yes" >&6 11136fi 11137 11138 11139########## 11140# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by 11141# default. Normally, a test at runtime is performed to determine the 11142# appropriate value of this variable. Use this option only if you're sure that 11143# threads can safely override each others locks in all runtime situations. 11144# 11145# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given. 11146if test "${enable_threads_override_locks+set}" = set; then 11147 enableval="$enable_threads_override_locks" 11148 11149else 11150 enable_threads_override_locks=no 11151fi; 11152echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5 11153echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6 11154if test "$enable_threads_override_locks" = "no"; then 11155 THREADSOVERRIDELOCKS='-1' 11156 echo "$as_me:$LINENO: result: no" >&5 11157echo "${ECHO_T}no" >&6 11158else 11159 THREADSOVERRIDELOCKS='1' 11160 echo "$as_me:$LINENO: result: yes" >&5 11161echo "${ECHO_T}yes" >&6 11162fi 11163 11164 11165########## 11166# Do we want to support release 11167# 11168# Check whether --enable-releasemode or --disable-releasemode was given. 11169if test "${enable_releasemode+set}" = set; then 11170 enableval="$enable_releasemode" 11171 11172else 11173 enable_releasemode=no 11174fi; 11175echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 11176echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 11177if test "$enable_releasemode" = "no"; then 11178 ALLOWRELEASE="" 11179 echo "$as_me:$LINENO: result: no" >&5 11180echo "${ECHO_T}no" >&6 11181else 11182 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 11183 echo "$as_me:$LINENO: result: yes" >&5 11184echo "${ECHO_T}yes" >&6 11185fi 11186 11187 11188########## 11189# Do we want temporary databases in memory 11190# 11191# Check whether --enable-tempstore or --disable-tempstore was given. 11192if test "${enable_tempstore+set}" = set; then 11193 enableval="$enable_tempstore" 11194 11195else 11196 enable_tempstore=no 11197fi; 11198echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 11199echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 11200case "$enable_tempstore" in 11201 never ) 11202 TEMP_STORE=0 11203 echo "$as_me:$LINENO: result: never" >&5 11204echo "${ECHO_T}never" >&6 11205 ;; 11206 no ) 11207 TEMP_STORE=1 11208 echo "$as_me:$LINENO: result: no" >&5 11209echo "${ECHO_T}no" >&6 11210 ;; 11211 always ) 11212 TEMP_STORE=3 11213 echo "$as_me:$LINENO: result: always" >&5 11214echo "${ECHO_T}always" >&6 11215 ;; 11216 yes ) 11217 TEMP_STORE=3 11218 echo "$as_me:$LINENO: result: always" >&5 11219echo "${ECHO_T}always" >&6 11220 ;; 11221 * ) 11222 TEMP_STORE=1 11223 echo "$as_me:$LINENO: result: yes" >&5 11224echo "${ECHO_T}yes" >&6 11225 ;; 11226esac 11227 11228 11229 11230########### 11231# Lots of things are different if we are compiling for Windows using 11232# the CYGWIN environment. So check for that special case and handle 11233# things accordingly. 11234# 11235echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 11236echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 11237if test "$config_BUILD_EXEEXT" = ".exe"; then 11238 CYGWIN=yes 11239 echo "$as_me:$LINENO: result: yes" >&5 11240echo "${ECHO_T}yes" >&6 11241else 11242 echo "$as_me:$LINENO: result: unknown" >&5 11243echo "${ECHO_T}unknown" >&6 11244fi 11245if test "$CYGWIN" != "yes"; then 11246 11247case $host_os in 11248 *cygwin* ) CYGWIN=yes;; 11249 * ) CYGWIN=no;; 11250esac 11251 11252fi 11253if test "$CYGWIN" = "yes"; then 11254 BUILD_EXEEXT=.exe 11255else 11256 BUILD_EXEEXT=$EXEEXT 11257fi 11258if test x"$cross_compiling" = xno; then 11259 TARGET_EXEEXT=$BUILD_EXEEXT 11260else 11261 TARGET_EXEEXT=$config_TARGET_EXEEXT 11262fi 11263if test "$TARGET_EXEEXT" = ".exe"; then 11264 if test $OS2_SHELL ; then 11265 SQLITE_OS_UNIX=0 11266 SQLITE_OS_WIN=0 11267 SQLITE_OS_OS2=1 11268 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1" 11269 if test "$ac_compiler_gnu" = "yes" ; then 11270 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap" 11271 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" 11272 fi 11273 else 11274 SQLITE_OS_UNIX=0 11275 SQLITE_OS_WIN=1 11276 SQLITE_OS_OS2=0 11277 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 11278 fi 11279else 11280 SQLITE_OS_UNIX=1 11281 SQLITE_OS_WIN=0 11282 SQLITE_OS_OS2=0 11283 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 11284fi 11285 11286 11287 11288 11289 11290 11291 11292########## 11293# Figure out all the parameters needed to compile against Tcl. 11294# 11295# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 11296# macros in the in the tcl.m4 file of the standard TCL distribution. 11297# Those macros could not be used directly since we have to make some 11298# minor changes to accomodate systems that do not have TCL installed. 11299# 11300# Check whether --enable-tcl or --disable-tcl was given. 11301if test "${enable_tcl+set}" = set; then 11302 enableval="$enable_tcl" 11303 use_tcl=$enableval 11304else 11305 use_tcl=yes 11306fi; 11307if test "${use_tcl}" = "yes" ; then 11308 11309# Check whether --with-tcl or --without-tcl was given. 11310if test "${with_tcl+set}" = set; then 11311 withval="$with_tcl" 11312 with_tclconfig=${withval} 11313fi; 11314 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 11315echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 11316 if test "${ac_cv_c_tclconfig+set}" = set; then 11317 echo $ECHO_N "(cached) $ECHO_C" >&6 11318else 11319 11320 # First check to see if --with-tcl was specified. 11321 if test x"${with_tclconfig}" != x ; then 11322 if test -f "${with_tclconfig}/tclConfig.sh" ; then 11323 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 11324 else 11325 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 11326echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 11327 { (exit 1); exit 1; }; } 11328 fi 11329 fi 11330 # then check for a private Tcl installation 11331 if test x"${ac_cv_c_tclconfig}" = x ; then 11332 for i in \ 11333 ../tcl \ 11334 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 11335 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 11336 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 11337 ../../tcl \ 11338 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 11339 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 11340 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 11341 ../../../tcl \ 11342 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 11343 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 11344 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 11345 do 11346 if test -f "$i/unix/tclConfig.sh" ; then 11347 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 11348 break 11349 fi 11350 done 11351 fi 11352 11353 # check in a few common install locations 11354 if test x"${ac_cv_c_tclconfig}" = x ; then 11355 for i in \ 11356 `ls -d ${libdir} 2>/dev/null` \ 11357 `ls -d /usr/local/lib 2>/dev/null` \ 11358 `ls -d /usr/contrib/lib 2>/dev/null` \ 11359 `ls -d /usr/lib 2>/dev/null` 11360 do 11361 if test -f "$i/tclConfig.sh" ; then 11362 ac_cv_c_tclconfig=`(cd $i; pwd)` 11363 break 11364 fi 11365 done 11366 fi 11367 11368 # check in a few other private locations 11369 if test x"${ac_cv_c_tclconfig}" = x ; then 11370 for i in \ 11371 ${srcdir}/../tcl \ 11372 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 11373 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 11374 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 11375 do 11376 if test -f "$i/unix/tclConfig.sh" ; then 11377 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 11378 break 11379 fi 11380 done 11381 fi 11382 11383fi 11384 11385 11386 if test x"${ac_cv_c_tclconfig}" = x ; then 11387 use_tcl=no 11388 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 11389echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 11390 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 11391echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 11392 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 11393echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 11394 else 11395 TCL_BIN_DIR=${ac_cv_c_tclconfig} 11396 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 11397echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 11398 11399 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 11400echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 11401 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 11402 echo "$as_me:$LINENO: result: loading" >&5 11403echo "${ECHO_T}loading" >&6 11404 . $TCL_BIN_DIR/tclConfig.sh 11405 else 11406 echo "$as_me:$LINENO: result: file not found" >&5 11407echo "${ECHO_T}file not found" >&6 11408 fi 11409 11410 # 11411 # If the TCL_BIN_DIR is the build directory (not the install directory), 11412 # then set the common variable name to the value of the build variables. 11413 # For example, the variable TCL_LIB_SPEC will be set to the value 11414 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 11415 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 11416 # installed and uninstalled version of Tcl. 11417 # 11418 11419 if test -f $TCL_BIN_DIR/Makefile ; then 11420 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 11421 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 11422 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 11423 fi 11424 11425 # 11426 # eval is required to do the TCL_DBGX substitution 11427 # 11428 11429 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 11430 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 11431 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 11432 11433 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 11434 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 11435 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 fi 11451fi 11452if test "${use_tcl}" = "no" ; then 11453 HAVE_TCL="" 11454else 11455 HAVE_TCL=1 11456fi 11457 11458 11459########## 11460# Figure out what C libraries are required to compile programs 11461# that use "readline()" library. 11462# 11463TARGET_READLINE_LIBS="" 11464TARGET_READLINE_INC="" 11465TARGET_HAVE_READLINE=0 11466# Check whether --enable-readline or --disable-readline was given. 11467if test "${enable_readline+set}" = set; then 11468 enableval="$enable_readline" 11469 with_readline=$enableval 11470else 11471 with_readline=auto 11472fi; 11473 11474if test x"$with_readline" != xno; then 11475 found="yes" 11476 11477 11478# Check whether --with-readline-lib or --without-readline-lib was given. 11479if test "${with_readline_lib+set}" = set; then 11480 withval="$with_readline_lib" 11481 with_readline_lib=$withval 11482else 11483 with_readline_lib="auto" 11484fi; 11485 if test "x$with_readline_lib" = xauto; then 11486 save_LIBS="$LIBS" 11487 LIBS="" 11488 echo "$as_me:$LINENO: checking for library containing tgetent" >&5 11489echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 11490if test "${ac_cv_search_tgetent+set}" = set; then 11491 echo $ECHO_N "(cached) $ECHO_C" >&6 11492else 11493 ac_func_search_save_LIBS=$LIBS 11494ac_cv_search_tgetent=no 11495cat >conftest.$ac_ext <<_ACEOF 11496/* confdefs.h. */ 11497_ACEOF 11498cat confdefs.h >>conftest.$ac_ext 11499cat >>conftest.$ac_ext <<_ACEOF 11500/* end confdefs.h. */ 11501 11502/* Override any gcc2 internal prototype to avoid an error. */ 11503#ifdef __cplusplus 11504extern "C" 11505#endif 11506/* We use char because int might match the return type of a gcc2 11507 builtin and then its argument prototype would still apply. */ 11508char tgetent (); 11509int 11510main () 11511{ 11512tgetent (); 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517rm -f conftest.$ac_objext conftest$ac_exeext 11518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11519 (eval $ac_link) 2>conftest.er1 11520 ac_status=$? 11521 grep -v '^ *+' conftest.er1 >conftest.err 11522 rm -f conftest.er1 11523 cat conftest.err >&5 11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11525 (exit $ac_status); } && 11526 { ac_try='test -z "$ac_c_werror_flag" 11527 || test ! -s conftest.err' 11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11529 (eval $ac_try) 2>&5 11530 ac_status=$? 11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11532 (exit $ac_status); }; } && 11533 { ac_try='test -s conftest$ac_exeext' 11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11535 (eval $ac_try) 2>&5 11536 ac_status=$? 11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11538 (exit $ac_status); }; }; then 11539 ac_cv_search_tgetent="none required" 11540else 11541 echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544fi 11545rm -f conftest.err conftest.$ac_objext \ 11546 conftest$ac_exeext conftest.$ac_ext 11547if test "$ac_cv_search_tgetent" = no; then 11548 for ac_lib in readline ncurses curses termcap; do 11549 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11550 cat >conftest.$ac_ext <<_ACEOF 11551/* confdefs.h. */ 11552_ACEOF 11553cat confdefs.h >>conftest.$ac_ext 11554cat >>conftest.$ac_ext <<_ACEOF 11555/* end confdefs.h. */ 11556 11557/* Override any gcc2 internal prototype to avoid an error. */ 11558#ifdef __cplusplus 11559extern "C" 11560#endif 11561/* We use char because int might match the return type of a gcc2 11562 builtin and then its argument prototype would still apply. */ 11563char tgetent (); 11564int 11565main () 11566{ 11567tgetent (); 11568 ; 11569 return 0; 11570} 11571_ACEOF 11572rm -f conftest.$ac_objext conftest$ac_exeext 11573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11574 (eval $ac_link) 2>conftest.er1 11575 ac_status=$? 11576 grep -v '^ *+' conftest.er1 >conftest.err 11577 rm -f conftest.er1 11578 cat conftest.err >&5 11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11580 (exit $ac_status); } && 11581 { ac_try='test -z "$ac_c_werror_flag" 11582 || test ! -s conftest.err' 11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11584 (eval $ac_try) 2>&5 11585 ac_status=$? 11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11587 (exit $ac_status); }; } && 11588 { ac_try='test -s conftest$ac_exeext' 11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11590 (eval $ac_try) 2>&5 11591 ac_status=$? 11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11593 (exit $ac_status); }; }; then 11594 ac_cv_search_tgetent="-l$ac_lib" 11595break 11596else 11597 echo "$as_me: failed program was:" >&5 11598sed 's/^/| /' conftest.$ac_ext >&5 11599 11600fi 11601rm -f conftest.err conftest.$ac_objext \ 11602 conftest$ac_exeext conftest.$ac_ext 11603 done 11604fi 11605LIBS=$ac_func_search_save_LIBS 11606fi 11607echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 11608echo "${ECHO_T}$ac_cv_search_tgetent" >&6 11609if test "$ac_cv_search_tgetent" != no; then 11610 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" 11611 term_LIBS="$LIBS" 11612else 11613 term_LIBS="" 11614fi 11615 11616 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 11617echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 11618if test "${ac_cv_lib_readline_readline+set}" = set; then 11619 echo $ECHO_N "(cached) $ECHO_C" >&6 11620else 11621 ac_check_lib_save_LIBS=$LIBS 11622LIBS="-lreadline $LIBS" 11623cat >conftest.$ac_ext <<_ACEOF 11624/* confdefs.h. */ 11625_ACEOF 11626cat confdefs.h >>conftest.$ac_ext 11627cat >>conftest.$ac_ext <<_ACEOF 11628/* end confdefs.h. */ 11629 11630/* Override any gcc2 internal prototype to avoid an error. */ 11631#ifdef __cplusplus 11632extern "C" 11633#endif 11634/* We use char because int might match the return type of a gcc2 11635 builtin and then its argument prototype would still apply. */ 11636char readline (); 11637int 11638main () 11639{ 11640readline (); 11641 ; 11642 return 0; 11643} 11644_ACEOF 11645rm -f conftest.$ac_objext conftest$ac_exeext 11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11647 (eval $ac_link) 2>conftest.er1 11648 ac_status=$? 11649 grep -v '^ *+' conftest.er1 >conftest.err 11650 rm -f conftest.er1 11651 cat conftest.err >&5 11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11653 (exit $ac_status); } && 11654 { ac_try='test -z "$ac_c_werror_flag" 11655 || test ! -s conftest.err' 11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11657 (eval $ac_try) 2>&5 11658 ac_status=$? 11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11660 (exit $ac_status); }; } && 11661 { ac_try='test -s conftest$ac_exeext' 11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11663 (eval $ac_try) 2>&5 11664 ac_status=$? 11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11666 (exit $ac_status); }; }; then 11667 ac_cv_lib_readline_readline=yes 11668else 11669 echo "$as_me: failed program was:" >&5 11670sed 's/^/| /' conftest.$ac_ext >&5 11671 11672ac_cv_lib_readline_readline=no 11673fi 11674rm -f conftest.err conftest.$ac_objext \ 11675 conftest$ac_exeext conftest.$ac_ext 11676LIBS=$ac_check_lib_save_LIBS 11677fi 11678echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 11679echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 11680if test $ac_cv_lib_readline_readline = yes; then 11681 TARGET_READLINE_LIBS="-lreadline" 11682else 11683 found="no" 11684fi 11685 11686 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 11687 LIBS="$save_LIBS" 11688 else 11689 TARGET_READLINE_LIBS="$with_readline_lib" 11690 fi 11691 11692 11693# Check whether --with-readline-inc or --without-readline-inc was given. 11694if test "${with_readline_inc+set}" = set; then 11695 withval="$with_readline_inc" 11696 with_readline_inc=$withval 11697else 11698 with_readline_inc="auto" 11699fi; 11700 if test "x$with_readline_inc" = xauto; then 11701 if test "${ac_cv_header_readline_h+set}" = set; then 11702 echo "$as_me:$LINENO: checking for readline.h" >&5 11703echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 11704if test "${ac_cv_header_readline_h+set}" = set; then 11705 echo $ECHO_N "(cached) $ECHO_C" >&6 11706fi 11707echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 11708echo "${ECHO_T}$ac_cv_header_readline_h" >&6 11709else 11710 # Is the header compilable? 11711echo "$as_me:$LINENO: checking readline.h usability" >&5 11712echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 11713cat >conftest.$ac_ext <<_ACEOF 11714/* confdefs.h. */ 11715_ACEOF 11716cat confdefs.h >>conftest.$ac_ext 11717cat >>conftest.$ac_ext <<_ACEOF 11718/* end confdefs.h. */ 11719$ac_includes_default 11720#include <readline.h> 11721_ACEOF 11722rm -f conftest.$ac_objext 11723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11724 (eval $ac_compile) 2>conftest.er1 11725 ac_status=$? 11726 grep -v '^ *+' conftest.er1 >conftest.err 11727 rm -f conftest.er1 11728 cat conftest.err >&5 11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11730 (exit $ac_status); } && 11731 { ac_try='test -z "$ac_c_werror_flag" 11732 || test ! -s conftest.err' 11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11734 (eval $ac_try) 2>&5 11735 ac_status=$? 11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11737 (exit $ac_status); }; } && 11738 { ac_try='test -s conftest.$ac_objext' 11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11740 (eval $ac_try) 2>&5 11741 ac_status=$? 11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11743 (exit $ac_status); }; }; then 11744 ac_header_compiler=yes 11745else 11746 echo "$as_me: failed program was:" >&5 11747sed 's/^/| /' conftest.$ac_ext >&5 11748 11749ac_header_compiler=no 11750fi 11751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11753echo "${ECHO_T}$ac_header_compiler" >&6 11754 11755# Is the header present? 11756echo "$as_me:$LINENO: checking readline.h presence" >&5 11757echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 11758cat >conftest.$ac_ext <<_ACEOF 11759/* confdefs.h. */ 11760_ACEOF 11761cat confdefs.h >>conftest.$ac_ext 11762cat >>conftest.$ac_ext <<_ACEOF 11763/* end confdefs.h. */ 11764#include <readline.h> 11765_ACEOF 11766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11768 ac_status=$? 11769 grep -v '^ *+' conftest.er1 >conftest.err 11770 rm -f conftest.er1 11771 cat conftest.err >&5 11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11773 (exit $ac_status); } >/dev/null; then 11774 if test -s conftest.err; then 11775 ac_cpp_err=$ac_c_preproc_warn_flag 11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11777 else 11778 ac_cpp_err= 11779 fi 11780else 11781 ac_cpp_err=yes 11782fi 11783if test -z "$ac_cpp_err"; then 11784 ac_header_preproc=yes 11785else 11786 echo "$as_me: failed program was:" >&5 11787sed 's/^/| /' conftest.$ac_ext >&5 11788 11789 ac_header_preproc=no 11790fi 11791rm -f conftest.err conftest.$ac_ext 11792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11793echo "${ECHO_T}$ac_header_preproc" >&6 11794 11795# So? What about this header? 11796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11797 yes:no: ) 11798 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 11799echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11800 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 11801echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 11802 ac_header_preproc=yes 11803 ;; 11804 no:yes:* ) 11805 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 11806echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 11807 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 11808echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 11809 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 11810echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 11811 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 11812echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 11813 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 11814echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 11815 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 11816echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 11817 ( 11818 cat <<\_ASBOX 11819## --------------------------------- ## 11820## Report this to the sqlite lists. ## 11821## --------------------------------- ## 11822_ASBOX 11823 ) | 11824 sed "s/^/$as_me: WARNING: /" >&2 11825 ;; 11826esac 11827echo "$as_me:$LINENO: checking for readline.h" >&5 11828echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 11829if test "${ac_cv_header_readline_h+set}" = set; then 11830 echo $ECHO_N "(cached) $ECHO_C" >&6 11831else 11832 ac_cv_header_readline_h=$ac_header_preproc 11833fi 11834echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 11835echo "${ECHO_T}$ac_cv_header_readline_h" >&6 11836 11837fi 11838if test $ac_cv_header_readline_h = yes; then 11839 found="yes" 11840else 11841 11842 found="no" 11843 if test "$cross_compiling" != yes; then 11844 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 11845 for subdir in include include/readline; do 11846 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 11847echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 11848echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6 11849if eval "test \"\${$as_ac_File+set}\" = set"; then 11850 echo $ECHO_N "(cached) $ECHO_C" >&6 11851else 11852 test "$cross_compiling" = yes && 11853 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 11854echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 11855 { (exit 1); exit 1; }; } 11856if test -r "$dir/$subdir/readline.h"; then 11857 eval "$as_ac_File=yes" 11858else 11859 eval "$as_ac_File=no" 11860fi 11861fi 11862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 11863echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 11864if test `eval echo '${'$as_ac_File'}'` = yes; then 11865 found=yes 11866fi 11867 11868 if test "$found" = "yes"; then 11869 TARGET_READLINE_INC="-I$dir/$subdir" 11870 break 11871 fi 11872 done 11873 test "$found" = "yes" && break 11874 done 11875 fi 11876 11877fi 11878 11879 11880 else 11881 TARGET_READLINE_INC="$with_readline_inc" 11882 fi 11883 11884 if test x"$found" = xno; then 11885 TARGET_READLINE_LIBS="" 11886 TARGET_READLINE_INC="" 11887 TARGET_HAVE_READLINE=0 11888 else 11889 TARGET_HAVE_READLINE=1 11890 fi 11891fi 11892 11893 11894 11895 11896 11897########## 11898# Figure out what C libraries are required to compile programs 11899# that use "fdatasync()" function. 11900# 11901echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 11902echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6 11903if test "${ac_cv_search_fdatasync+set}" = set; then 11904 echo $ECHO_N "(cached) $ECHO_C" >&6 11905else 11906 ac_func_search_save_LIBS=$LIBS 11907ac_cv_search_fdatasync=no 11908cat >conftest.$ac_ext <<_ACEOF 11909/* confdefs.h. */ 11910_ACEOF 11911cat confdefs.h >>conftest.$ac_ext 11912cat >>conftest.$ac_ext <<_ACEOF 11913/* end confdefs.h. */ 11914 11915/* Override any gcc2 internal prototype to avoid an error. */ 11916#ifdef __cplusplus 11917extern "C" 11918#endif 11919/* We use char because int might match the return type of a gcc2 11920 builtin and then its argument prototype would still apply. */ 11921char fdatasync (); 11922int 11923main () 11924{ 11925fdatasync (); 11926 ; 11927 return 0; 11928} 11929_ACEOF 11930rm -f conftest.$ac_objext conftest$ac_exeext 11931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11932 (eval $ac_link) 2>conftest.er1 11933 ac_status=$? 11934 grep -v '^ *+' conftest.er1 >conftest.err 11935 rm -f conftest.er1 11936 cat conftest.err >&5 11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 (exit $ac_status); } && 11939 { ac_try='test -z "$ac_c_werror_flag" 11940 || test ! -s conftest.err' 11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11942 (eval $ac_try) 2>&5 11943 ac_status=$? 11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11945 (exit $ac_status); }; } && 11946 { ac_try='test -s conftest$ac_exeext' 11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11948 (eval $ac_try) 2>&5 11949 ac_status=$? 11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11951 (exit $ac_status); }; }; then 11952 ac_cv_search_fdatasync="none required" 11953else 11954 echo "$as_me: failed program was:" >&5 11955sed 's/^/| /' conftest.$ac_ext >&5 11956 11957fi 11958rm -f conftest.err conftest.$ac_objext \ 11959 conftest$ac_exeext conftest.$ac_ext 11960if test "$ac_cv_search_fdatasync" = no; then 11961 for ac_lib in rt; do 11962 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11963 cat >conftest.$ac_ext <<_ACEOF 11964/* confdefs.h. */ 11965_ACEOF 11966cat confdefs.h >>conftest.$ac_ext 11967cat >>conftest.$ac_ext <<_ACEOF 11968/* end confdefs.h. */ 11969 11970/* Override any gcc2 internal prototype to avoid an error. */ 11971#ifdef __cplusplus 11972extern "C" 11973#endif 11974/* We use char because int might match the return type of a gcc2 11975 builtin and then its argument prototype would still apply. */ 11976char fdatasync (); 11977int 11978main () 11979{ 11980fdatasync (); 11981 ; 11982 return 0; 11983} 11984_ACEOF 11985rm -f conftest.$ac_objext conftest$ac_exeext 11986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11987 (eval $ac_link) 2>conftest.er1 11988 ac_status=$? 11989 grep -v '^ *+' conftest.er1 >conftest.err 11990 rm -f conftest.er1 11991 cat conftest.err >&5 11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11993 (exit $ac_status); } && 11994 { ac_try='test -z "$ac_c_werror_flag" 11995 || test ! -s conftest.err' 11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11997 (eval $ac_try) 2>&5 11998 ac_status=$? 11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12000 (exit $ac_status); }; } && 12001 { ac_try='test -s conftest$ac_exeext' 12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12003 (eval $ac_try) 2>&5 12004 ac_status=$? 12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12006 (exit $ac_status); }; }; then 12007 ac_cv_search_fdatasync="-l$ac_lib" 12008break 12009else 12010 echo "$as_me: failed program was:" >&5 12011sed 's/^/| /' conftest.$ac_ext >&5 12012 12013fi 12014rm -f conftest.err conftest.$ac_objext \ 12015 conftest$ac_exeext conftest.$ac_ext 12016 done 12017fi 12018LIBS=$ac_func_search_save_LIBS 12019fi 12020echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 12021echo "${ECHO_T}$ac_cv_search_fdatasync" >&6 12022if test "$ac_cv_search_fdatasync" != no; then 12023 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS" 12024 12025fi 12026 12027 12028######### 12029# check for debug enabled 12030# Check whether --enable-debug or --disable-debug was given. 12031if test "${enable_debug+set}" = set; then 12032 enableval="$enable_debug" 12033 use_debug=$enableval 12034else 12035 use_debug=no 12036fi; 12037if test "${use_debug}" = "yes" ; then 12038 TARGET_DEBUG="-DSQLITE_DEBUG=1" 12039else 12040 TARGET_DEBUG="-DNDEBUG" 12041fi 12042 12043 12044######### 12045# See whether we should use the amalgamation to build 12046# Check whether --enable-amalgamation or --disable-amalgamation was given. 12047if test "${enable_amalgamation+set}" = set; then 12048 enableval="$enable_amalgamation" 12049 use_amalgamation=$enableval 12050else 12051 use_amalgamation=yes 12052fi; 12053if test "${use_amalgamation}" != "yes" ; then 12054 USE_AMALGAMATION=0 12055fi 12056 12057 12058######### 12059# See whether we should allow loadable extensions 12060# Check whether --enable-load-extension or --disable-load-extension was given. 12061if test "${enable_load_extension+set}" = set; then 12062 enableval="$enable_load_extension" 12063 use_loadextension=$enableval 12064else 12065 use_loadextension=no 12066fi; 12067if test "${use_loadextension}" = "yes" ; then 12068 OPT_FEATURE_FLAGS="" 12069else 12070 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 12071fi 12072 12073######### 12074# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter 12075for option in $CFLAGS $CPPFLAGS 12076do 12077 case $option in 12078 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 12079 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 12080 esac 12081done 12082 12083 12084 12085# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 12086ac_temp_CFLAGS="" 12087for option in $CFLAGS 12088do 12089 case $option in 12090 -DSQLITE_OMIT*) ;; 12091 -DSQLITE_ENABLE*) ;; 12092 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 12093 esac 12094done 12095CFLAGS=$ac_temp_CFLAGS 12096 12097 12098# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 12099ac_temp_CPPFLAGS="" 12100for option in $CPPFLAGS 12101do 12102 case $option in 12103 -DSQLITE_OMIT*) ;; 12104 -DSQLITE_ENABLE*) ;; 12105 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 12106 esac 12107done 12108CPPFLAGS=$ac_temp_CPPFLAGS 12109 12110 12111# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter 12112ac_temp_BUILD_CFLAGS="" 12113for option in $BUILD_CFLAGS 12114do 12115 case $option in 12116 -DSQLITE_OMIT*) ;; 12117 -DSQLITE_ENABLE*) ;; 12118 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 12119 esac 12120done 12121BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 12122 12123 12124######### 12125# See whether we should use GCOV 12126# Check whether --enable-gcov or --disable-gcov was given. 12127if test "${enable_gcov+set}" = set; then 12128 enableval="$enable_gcov" 12129 use_gcov=$enableval 12130else 12131 use_gcov=no 12132fi; 12133if test "${use_gcov}" = "yes" ; then 12134 USE_GCOV=1 12135else 12136 USE_GCOV=0 12137fi 12138 12139 12140 12141######### 12142# Output the config header 12143 ac_config_headers="$ac_config_headers config.h" 12144 12145 12146######### 12147# Generate the output files. 12148# 12149 12150 ac_config_files="$ac_config_files Makefile sqlite3.pc" 12151cat >confcache <<\_ACEOF 12152# This file is a shell script that caches the results of configure 12153# tests run on this system so they can be shared between configure 12154# scripts and configure runs, see configure's option --config-cache. 12155# It is not useful on other systems. If it contains results you don't 12156# want to keep, you may remove or edit it. 12157# 12158# config.status only pays attention to the cache file if you give it 12159# the --recheck option to rerun configure. 12160# 12161# `ac_cv_env_foo' variables (set or unset) will be overridden when 12162# loading this file, other *unset* `ac_cv_foo' will be assigned the 12163# following values. 12164 12165_ACEOF 12166 12167# The following way of writing the cache mishandles newlines in values, 12168# but we know of no workaround that is simple, portable, and efficient. 12169# So, don't put newlines in cache variables' values. 12170# Ultrix sh set writes to stderr and can't be redirected directly, 12171# and sets the high bit in the cache file unless we assign to the vars. 12172{ 12173 (set) 2>&1 | 12174 case `(ac_space=' '; set | grep ac_space) 2>&1` in 12175 *ac_space=\ *) 12176 # `set' does not quote correctly, so add quotes (double-quote 12177 # substitution turns \\\\ into \\, and sed turns \\ into \). 12178 sed -n \ 12179 "s/'/'\\\\''/g; 12180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12181 ;; 12182 *) 12183 # `set' quotes correctly as required by POSIX, so do not add quotes. 12184 sed -n \ 12185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 12186 ;; 12187 esac; 12188} | 12189 sed ' 12190 t clear 12191 : clear 12192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12193 t end 12194 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12195 : end' >>confcache 12196if diff $cache_file confcache >/dev/null 2>&1; then :; else 12197 if test -w $cache_file; then 12198 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 12199 cat confcache >$cache_file 12200 else 12201 echo "not updating unwritable cache $cache_file" 12202 fi 12203fi 12204rm -f confcache 12205 12206test "x$prefix" = xNONE && prefix=$ac_default_prefix 12207# Let make expand exec_prefix. 12208test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12209 12210# VPATH may cause trouble with some makes, so we remove $(srcdir), 12211# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12212# trailing colons and then remove the whole line if VPATH becomes empty 12213# (actually we leave an empty line to preserve line numbers). 12214if test "x$srcdir" = x.; then 12215 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12216s/:*\$(srcdir):*/:/; 12217s/:*\${srcdir}:*/:/; 12218s/:*@srcdir@:*/:/; 12219s/^\([^=]*=[ ]*\):*/\1/; 12220s/:*$//; 12221s/^[^=]*=[ ]*$//; 12222}' 12223fi 12224 12225DEFS=-DHAVE_CONFIG_H 12226 12227ac_libobjs= 12228ac_ltlibobjs= 12229for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12230 # 1. Remove the extension, and $U if already installed. 12231 ac_i=`echo "$ac_i" | 12232 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 12233 # 2. Add them. 12234 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 12235 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 12236done 12237LIBOBJS=$ac_libobjs 12238 12239LTLIBOBJS=$ac_ltlibobjs 12240 12241 12242 12243: ${CONFIG_STATUS=./config.status} 12244ac_clean_files_save=$ac_clean_files 12245ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12246{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12247echo "$as_me: creating $CONFIG_STATUS" >&6;} 12248cat >$CONFIG_STATUS <<_ACEOF 12249#! $SHELL 12250# Generated by $as_me. 12251# Run this file to recreate the current configuration. 12252# Compiler output produced by configure, useful for debugging 12253# configure, is in config.log if it exists. 12254 12255debug=false 12256ac_cs_recheck=false 12257ac_cs_silent=false 12258SHELL=\${CONFIG_SHELL-$SHELL} 12259_ACEOF 12260 12261cat >>$CONFIG_STATUS <<\_ACEOF 12262## --------------------- ## 12263## M4sh Initialization. ## 12264## --------------------- ## 12265 12266# Be Bourne compatible 12267if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12268 emulate sh 12269 NULLCMD=: 12270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12271 # is contrary to our usage. Disable this feature. 12272 alias -g '${1+"$@"}'='"$@"' 12273elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 12274 set -o posix 12275fi 12276DUALCASE=1; export DUALCASE # for MKS sh 12277 12278# Support unset when possible. 12279if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12280 as_unset=unset 12281else 12282 as_unset=false 12283fi 12284 12285 12286# Work around bugs in pre-3.0 UWIN ksh. 12287$as_unset ENV MAIL MAILPATH 12288PS1='$ ' 12289PS2='> ' 12290PS4='+ ' 12291 12292# NLS nuisances. 12293for as_var in \ 12294 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12295 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12296 LC_TELEPHONE LC_TIME 12297do 12298 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12299 eval $as_var=C; export $as_var 12300 else 12301 $as_unset $as_var 12302 fi 12303done 12304 12305# Required to use basename. 12306if expr a : '\(a\)' >/dev/null 2>&1; then 12307 as_expr=expr 12308else 12309 as_expr=false 12310fi 12311 12312if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 12313 as_basename=basename 12314else 12315 as_basename=false 12316fi 12317 12318 12319# Name of the executable. 12320as_me=`$as_basename "$0" || 12321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12322 X"$0" : 'X\(//\)$' \| \ 12323 X"$0" : 'X\(/\)$' \| \ 12324 . : '\(.\)' 2>/dev/null || 12325echo X/"$0" | 12326 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 12327 /^X\/\(\/\/\)$/{ s//\1/; q; } 12328 /^X\/\(\/\).*/{ s//\1/; q; } 12329 s/.*/./; q'` 12330 12331 12332# PATH needs CR, and LINENO needs CR and PATH. 12333# Avoid depending upon Character Ranges. 12334as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12335as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12336as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12337as_cr_digits='0123456789' 12338as_cr_alnum=$as_cr_Letters$as_cr_digits 12339 12340# The user is always right. 12341if test "${PATH_SEPARATOR+set}" != set; then 12342 echo "#! /bin/sh" >conf$$.sh 12343 echo "exit 0" >>conf$$.sh 12344 chmod +x conf$$.sh 12345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12346 PATH_SEPARATOR=';' 12347 else 12348 PATH_SEPARATOR=: 12349 fi 12350 rm -f conf$$.sh 12351fi 12352 12353 12354 as_lineno_1=$LINENO 12355 as_lineno_2=$LINENO 12356 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12357 test "x$as_lineno_1" != "x$as_lineno_2" && 12358 test "x$as_lineno_3" = "x$as_lineno_2" || { 12359 # Find who we are. Look in the path if we contain no path at all 12360 # relative or not. 12361 case $0 in 12362 *[\\/]* ) as_myself=$0 ;; 12363 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12364for as_dir in $PATH 12365do 12366 IFS=$as_save_IFS 12367 test -z "$as_dir" && as_dir=. 12368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12369done 12370 12371 ;; 12372 esac 12373 # We did not find ourselves, most probably we were run as `sh COMMAND' 12374 # in which case we are not to be found in the path. 12375 if test "x$as_myself" = x; then 12376 as_myself=$0 12377 fi 12378 if test ! -f "$as_myself"; then 12379 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 12380echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 12381 { (exit 1); exit 1; }; } 12382 fi 12383 case $CONFIG_SHELL in 12384 '') 12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12386for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 12387do 12388 IFS=$as_save_IFS 12389 test -z "$as_dir" && as_dir=. 12390 for as_base in sh bash ksh sh5; do 12391 case $as_dir in 12392 /*) 12393 if ("$as_dir/$as_base" -c ' 12394 as_lineno_1=$LINENO 12395 as_lineno_2=$LINENO 12396 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12397 test "x$as_lineno_1" != "x$as_lineno_2" && 12398 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 12399 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 12400 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 12401 CONFIG_SHELL=$as_dir/$as_base 12402 export CONFIG_SHELL 12403 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 12404 fi;; 12405 esac 12406 done 12407done 12408;; 12409 esac 12410 12411 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12412 # uniformly replaced by the line number. The first 'sed' inserts a 12413 # line-number line before each line; the second 'sed' does the real 12414 # work. The second script uses 'N' to pair each line-number line 12415 # with the numbered line, and appends trailing '-' during 12416 # substitution so that $LINENO is not a special case at line end. 12417 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12418 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 12419 sed '=' <$as_myself | 12420 sed ' 12421 N 12422 s,$,-, 12423 : loop 12424 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 12425 t loop 12426 s,-$,, 12427 s,^['$as_cr_digits']*\n,, 12428 ' >$as_me.lineno && 12429 chmod +x $as_me.lineno || 12430 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 12431echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 12432 { (exit 1); exit 1; }; } 12433 12434 # Don't try to exec as it changes $[0], causing all sort of problems 12435 # (the dirname of $[0] is not the place where we might find the 12436 # original and so on. Autoconf is especially sensible to this). 12437 . ./$as_me.lineno 12438 # Exit status is that of the last command. 12439 exit 12440} 12441 12442 12443case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 12444 *c*,-n*) ECHO_N= ECHO_C=' 12445' ECHO_T=' ' ;; 12446 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 12447 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 12448esac 12449 12450if expr a : '\(a\)' >/dev/null 2>&1; then 12451 as_expr=expr 12452else 12453 as_expr=false 12454fi 12455 12456rm -f conf$$ conf$$.exe conf$$.file 12457echo >conf$$.file 12458if ln -s conf$$.file conf$$ 2>/dev/null; then 12459 # We could just check for DJGPP; but this test a) works b) is more generic 12460 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 12461 if test -f conf$$.exe; then 12462 # Don't use ln at all; we don't have any links 12463 as_ln_s='cp -p' 12464 else 12465 as_ln_s='ln -s' 12466 fi 12467elif ln conf$$.file conf$$ 2>/dev/null; then 12468 as_ln_s=ln 12469else 12470 as_ln_s='cp -p' 12471fi 12472rm -f conf$$ conf$$.exe conf$$.file 12473 12474if mkdir -p . 2>/dev/null; then 12475 as_mkdir_p=: 12476else 12477 test -d ./-p && rmdir ./-p 12478 as_mkdir_p=false 12479fi 12480 12481as_executable_p="test -f" 12482 12483# Sed expression to map a string onto a valid CPP name. 12484as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12485 12486# Sed expression to map a string onto a valid variable name. 12487as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12488 12489 12490# IFS 12491# We need space, tab and new line, in precisely that order. 12492as_nl=' 12493' 12494IFS=" $as_nl" 12495 12496# CDPATH. 12497$as_unset CDPATH 12498 12499exec 6>&1 12500 12501# Open the log real soon, to keep \$[0] and so on meaningful, and to 12502# report actual input values of CONFIG_FILES etc. instead of their 12503# values after options handling. Logging --version etc. is OK. 12504exec 5>>config.log 12505{ 12506 echo 12507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12508## Running $as_me. ## 12509_ASBOX 12510} >&5 12511cat >&5 <<_CSEOF 12512 12513This file was extended by sqlite $as_me 3.6.1, which was 12514generated by GNU Autoconf 2.59. Invocation command line was 12515 12516 CONFIG_FILES = $CONFIG_FILES 12517 CONFIG_HEADERS = $CONFIG_HEADERS 12518 CONFIG_LINKS = $CONFIG_LINKS 12519 CONFIG_COMMANDS = $CONFIG_COMMANDS 12520 $ $0 $@ 12521 12522_CSEOF 12523echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12524echo >&5 12525_ACEOF 12526 12527# Files that config.status was made for. 12528if test -n "$ac_config_files"; then 12529 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12530fi 12531 12532if test -n "$ac_config_headers"; then 12533 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12534fi 12535 12536if test -n "$ac_config_links"; then 12537 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12538fi 12539 12540if test -n "$ac_config_commands"; then 12541 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12542fi 12543 12544cat >>$CONFIG_STATUS <<\_ACEOF 12545 12546ac_cs_usage="\ 12547\`$as_me' instantiates files from templates according to the 12548current configuration. 12549 12550Usage: $0 [OPTIONS] [FILE]... 12551 12552 -h, --help print this help, then exit 12553 -V, --version print version number, then exit 12554 -q, --quiet do not print progress messages 12555 -d, --debug don't remove temporary files 12556 --recheck update $as_me by reconfiguring in the same conditions 12557 --file=FILE[:TEMPLATE] 12558 instantiate the configuration file FILE 12559 --header=FILE[:TEMPLATE] 12560 instantiate the configuration header FILE 12561 12562Configuration files: 12563$config_files 12564 12565Configuration headers: 12566$config_headers 12567 12568Configuration commands: 12569$config_commands 12570 12571Report bugs to <[email protected]>." 12572_ACEOF 12573 12574cat >>$CONFIG_STATUS <<_ACEOF 12575ac_cs_version="\\ 12576sqlite config.status 3.6.1 12577configured by $0, generated by GNU Autoconf 2.59, 12578 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12579 12580Copyright (C) 2003 Free Software Foundation, Inc. 12581This config.status script is free software; the Free Software Foundation 12582gives unlimited permission to copy, distribute and modify it." 12583srcdir=$srcdir 12584INSTALL="$INSTALL" 12585_ACEOF 12586 12587cat >>$CONFIG_STATUS <<\_ACEOF 12588# If no file are specified by the user, then we need to provide default 12589# value. By we need to know if files were specified by the user. 12590ac_need_defaults=: 12591while test $# != 0 12592do 12593 case $1 in 12594 --*=*) 12595 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12596 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12597 ac_shift=: 12598 ;; 12599 -*) 12600 ac_option=$1 12601 ac_optarg=$2 12602 ac_shift=shift 12603 ;; 12604 *) # This is not an option, so the user has probably given explicit 12605 # arguments. 12606 ac_option=$1 12607 ac_need_defaults=false;; 12608 esac 12609 12610 case $ac_option in 12611 # Handling of the options. 12612_ACEOF 12613cat >>$CONFIG_STATUS <<\_ACEOF 12614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12615 ac_cs_recheck=: ;; 12616 --version | --vers* | -V ) 12617 echo "$ac_cs_version"; exit 0 ;; 12618 --he | --h) 12619 # Conflict between --help and --header 12620 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12621Try \`$0 --help' for more information." >&5 12622echo "$as_me: error: ambiguous option: $1 12623Try \`$0 --help' for more information." >&2;} 12624 { (exit 1); exit 1; }; };; 12625 --help | --hel | -h ) 12626 echo "$ac_cs_usage"; exit 0 ;; 12627 --debug | --d* | -d ) 12628 debug=: ;; 12629 --file | --fil | --fi | --f ) 12630 $ac_shift 12631 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12632 ac_need_defaults=false;; 12633 --header | --heade | --head | --hea ) 12634 $ac_shift 12635 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12636 ac_need_defaults=false;; 12637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12638 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12639 ac_cs_silent=: ;; 12640 12641 # This is an error. 12642 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12643Try \`$0 --help' for more information." >&5 12644echo "$as_me: error: unrecognized option: $1 12645Try \`$0 --help' for more information." >&2;} 12646 { (exit 1); exit 1; }; } ;; 12647 12648 *) ac_config_targets="$ac_config_targets $1" ;; 12649 12650 esac 12651 shift 12652done 12653 12654ac_configure_extra_args= 12655 12656if $ac_cs_silent; then 12657 exec 6>/dev/null 12658 ac_configure_extra_args="$ac_configure_extra_args --silent" 12659fi 12660 12661_ACEOF 12662cat >>$CONFIG_STATUS <<_ACEOF 12663if \$ac_cs_recheck; then 12664 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12665 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12666fi 12667 12668_ACEOF 12669 12670cat >>$CONFIG_STATUS <<_ACEOF 12671# 12672# INIT-COMMANDS section. 12673# 12674 12675 12676 12677# The HP-UX ksh and POSIX shell print the target directory to stdout 12678# if CDPATH is set. 12679(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12680 12681sed_quote_subst='$sed_quote_subst' 12682double_quote_subst='$double_quote_subst' 12683delay_variable_subst='$delay_variable_subst' 12684macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12685macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12686enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12687enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12688pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12689enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12690host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12691host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12692host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12693build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12694build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12695build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12696SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12697Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12698GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12699EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12700FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12701LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12702NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12703LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12704max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12705ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12706exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12707lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12708lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12709lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12710reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12711reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12712deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12713file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12714AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12715AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12716STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12717RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12718old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12719old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12720old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12721CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12722CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12723compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12724GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12725lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12726lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12727lt_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"`' 12728lt_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"`' 12729objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12730SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12731ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12732MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12733lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12734lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12735lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12736lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12737lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12738need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12739DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12740NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12741LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12742OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12743OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12744libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12745shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12746extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12747archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12748enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12749export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12750whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12751compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12752old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12753old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12754archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12755archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12756module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12757module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12758with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12759allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12760no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12761hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12762hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12763hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12764hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12765hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12766hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12767hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12768hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12769inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12770link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12771fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12772always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12773export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12774exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12775include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12776prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12777file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12778variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12779need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12780need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12781version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12782runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12783shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12784shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12785libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12786library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12787soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12788postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12789postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12790finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12791finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12792hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12793sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12794sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12795hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12796enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12797enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12798enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12799old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12800striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12801 12802LTCC='$LTCC' 12803LTCFLAGS='$LTCFLAGS' 12804compiler='$compiler_DEFAULT' 12805 12806# Quote evaled strings. 12807for var in SED \ 12808GREP \ 12809EGREP \ 12810FGREP \ 12811LD \ 12812NM \ 12813LN_S \ 12814lt_SP2NL \ 12815lt_NL2SP \ 12816reload_flag \ 12817deplibs_check_method \ 12818file_magic_cmd \ 12819AR \ 12820AR_FLAGS \ 12821STRIP \ 12822RANLIB \ 12823CC \ 12824CFLAGS \ 12825compiler \ 12826lt_cv_sys_global_symbol_pipe \ 12827lt_cv_sys_global_symbol_to_cdecl \ 12828lt_cv_sys_global_symbol_to_c_name_address \ 12829lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12830SHELL \ 12831ECHO \ 12832lt_prog_compiler_no_builtin_flag \ 12833lt_prog_compiler_wl \ 12834lt_prog_compiler_pic \ 12835lt_prog_compiler_static \ 12836lt_cv_prog_compiler_c_o \ 12837need_locks \ 12838DSYMUTIL \ 12839NMEDIT \ 12840LIPO \ 12841OTOOL \ 12842OTOOL64 \ 12843shrext_cmds \ 12844export_dynamic_flag_spec \ 12845whole_archive_flag_spec \ 12846compiler_needs_object \ 12847with_gnu_ld \ 12848allow_undefined_flag \ 12849no_undefined_flag \ 12850hardcode_libdir_flag_spec \ 12851hardcode_libdir_flag_spec_ld \ 12852hardcode_libdir_separator \ 12853fix_srcfile_path \ 12854exclude_expsyms \ 12855include_expsyms \ 12856file_list_spec \ 12857variables_saved_for_relink \ 12858libname_spec \ 12859library_names_spec \ 12860soname_spec \ 12861finish_eval \ 12862old_striplib \ 12863striplib; do 12864 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12865 *[\\\\\\\`\\"\\\$]*) 12866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12867 ;; 12868 *) 12869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12870 ;; 12871 esac 12872done 12873 12874# Double-quote double-evaled strings. 12875for var in reload_cmds \ 12876old_postinstall_cmds \ 12877old_postuninstall_cmds \ 12878old_archive_cmds \ 12879extract_expsyms_cmds \ 12880old_archive_from_new_cmds \ 12881old_archive_from_expsyms_cmds \ 12882archive_cmds \ 12883archive_expsym_cmds \ 12884module_cmds \ 12885module_expsym_cmds \ 12886export_symbols_cmds \ 12887prelink_cmds \ 12888postinstall_cmds \ 12889postuninstall_cmds \ 12890finish_cmds \ 12891sys_lib_search_path_spec \ 12892sys_lib_dlsearch_path_spec; do 12893 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12894 *[\\\\\\\`\\"\\\$]*) 12895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12896 ;; 12897 *) 12898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12899 ;; 12900 esac 12901done 12902 12903# Fix-up fallback echo if it was mangled by the above quoting rules. 12904case \$lt_ECHO in 12905*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12906 ;; 12907esac 12908 12909ac_aux_dir='$ac_aux_dir' 12910xsi_shell='$xsi_shell' 12911lt_shell_append='$lt_shell_append' 12912 12913# See if we are running on zsh, and set the options which allow our 12914# commands through without removal of \ escapes INIT. 12915if test -n "\${ZSH_VERSION+set}" ; then 12916 setopt NO_GLOB_SUBST 12917fi 12918 12919 12920 PACKAGE='$PACKAGE' 12921 VERSION='$VERSION' 12922 TIMESTAMP='$TIMESTAMP' 12923 RM='$RM' 12924 ofile='$ofile' 12925 12926 12927 12928 12929_ACEOF 12930 12931 12932 12933cat >>$CONFIG_STATUS <<\_ACEOF 12934for ac_config_target in $ac_config_targets 12935do 12936 case "$ac_config_target" in 12937 # Handling of arguments. 12938 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12939 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 12940 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12941 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12943echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12944 { (exit 1); exit 1; }; };; 12945 esac 12946done 12947 12948# If the user did not use the arguments to specify the items to instantiate, 12949# then the envvar interface is used. Set only those that are not. 12950# We use the long form for the default assignment because of an extremely 12951# bizarre bug on SunOS 4.1.3. 12952if $ac_need_defaults; then 12953 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12954 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12955 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12956fi 12957 12958# Have a temporary directory for convenience. Make it in the build tree 12959# simply because there is no reason to put it here, and in addition, 12960# creating and moving files from /tmp can sometimes cause problems. 12961# Create a temporary directory, and hook for its removal unless debugging. 12962$debug || 12963{ 12964 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12965 trap '{ (exit 1); exit 1; }' 1 2 13 15 12966} 12967 12968# Create a (secure) tmp directory for tmp files. 12969 12970{ 12971 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12972 test -n "$tmp" && test -d "$tmp" 12973} || 12974{ 12975 tmp=./confstat$$-$RANDOM 12976 (umask 077 && mkdir $tmp) 12977} || 12978{ 12979 echo "$me: cannot create a temporary directory in ." >&2 12980 { (exit 1); exit 1; } 12981} 12982 12983_ACEOF 12984 12985cat >>$CONFIG_STATUS <<_ACEOF 12986 12987# 12988# CONFIG_FILES section. 12989# 12990 12991# No need to generate the scripts if there are no CONFIG_FILES. 12992# This happens for instance when ./config.status config.h 12993if test -n "\$CONFIG_FILES"; then 12994 # Protect against being on the right side of a sed subst in config.status. 12995 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12996 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12997s,@SHELL@,$SHELL,;t t 12998s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12999s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13000s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13001s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13002s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13003s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13004s,@exec_prefix@,$exec_prefix,;t t 13005s,@prefix@,$prefix,;t t 13006s,@program_transform_name@,$program_transform_name,;t t 13007s,@bindir@,$bindir,;t t 13008s,@sbindir@,$sbindir,;t t 13009s,@libexecdir@,$libexecdir,;t t 13010s,@datadir@,$datadir,;t t 13011s,@sysconfdir@,$sysconfdir,;t t 13012s,@sharedstatedir@,$sharedstatedir,;t t 13013s,@localstatedir@,$localstatedir,;t t 13014s,@libdir@,$libdir,;t t 13015s,@includedir@,$includedir,;t t 13016s,@oldincludedir@,$oldincludedir,;t t 13017s,@infodir@,$infodir,;t t 13018s,@mandir@,$mandir,;t t 13019s,@build_alias@,$build_alias,;t t 13020s,@host_alias@,$host_alias,;t t 13021s,@target_alias@,$target_alias,;t t 13022s,@DEFS@,$DEFS,;t t 13023s,@ECHO_C@,$ECHO_C,;t t 13024s,@ECHO_N@,$ECHO_N,;t t 13025s,@ECHO_T@,$ECHO_T,;t t 13026s,@LIBS@,$LIBS,;t t 13027s,@LIBTOOL@,$LIBTOOL,;t t 13028s,@build@,$build,;t t 13029s,@build_cpu@,$build_cpu,;t t 13030s,@build_vendor@,$build_vendor,;t t 13031s,@build_os@,$build_os,;t t 13032s,@host@,$host,;t t 13033s,@host_cpu@,$host_cpu,;t t 13034s,@host_vendor@,$host_vendor,;t t 13035s,@host_os@,$host_os,;t t 13036s,@CC@,$CC,;t t 13037s,@CFLAGS@,$CFLAGS,;t t 13038s,@LDFLAGS@,$LDFLAGS,;t t 13039s,@CPPFLAGS@,$CPPFLAGS,;t t 13040s,@ac_ct_CC@,$ac_ct_CC,;t t 13041s,@EXEEXT@,$EXEEXT,;t t 13042s,@OBJEXT@,$OBJEXT,;t t 13043s,@SED@,$SED,;t t 13044s,@EGREP@,$EGREP,;t t 13045s,@FGREP@,$FGREP,;t t 13046s,@GREP@,$GREP,;t t 13047s,@LD@,$LD,;t t 13048s,@DUMPBIN@,$DUMPBIN,;t t 13049s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t 13050s,@NM@,$NM,;t t 13051s,@LN_S@,$LN_S,;t t 13052s,@AR@,$AR,;t t 13053s,@ac_ct_AR@,$ac_ct_AR,;t t 13054s,@STRIP@,$STRIP,;t t 13055s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13056s,@RANLIB@,$RANLIB,;t t 13057s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13058s,@lt_ECHO@,$lt_ECHO,;t t 13059s,@DSYMUTIL@,$DSYMUTIL,;t t 13060s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t 13061s,@NMEDIT@,$NMEDIT,;t t 13062s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t 13063s,@LIPO@,$LIPO,;t t 13064s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t 13065s,@OTOOL@,$OTOOL,;t t 13066s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t 13067s,@OTOOL64@,$OTOOL64,;t t 13068s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t 13069s,@CPP@,$CPP,;t t 13070s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13071s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13072s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13073s,@AWK@,$AWK,;t t 13074s,@TCLSH_CMD@,$TCLSH_CMD,;t t 13075s,@program_prefix@,$program_prefix,;t t 13076s,@VERSION@,$VERSION,;t t 13077s,@RELEASE@,$RELEASE,;t t 13078s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t 13079s,@BUILD_CC@,$BUILD_CC,;t t 13080s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t 13081s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t 13082s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t 13083s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t 13084s,@TEMP_STORE@,$TEMP_STORE,;t t 13085s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 13086s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t 13087s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t 13088s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t 13089s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t 13090s,@TCL_VERSION@,$TCL_VERSION,;t t 13091s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 13092s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 13093s,@TCL_LIBS@,$TCL_LIBS,;t t 13094s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t 13095s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 13096s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 13097s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 13098s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 13099s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 13100s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 13101s,@HAVE_TCL@,$HAVE_TCL,;t t 13102s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t 13103s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t 13104s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t 13105s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t 13106s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t 13107s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t 13108s,@USE_GCOV@,$USE_GCOV,;t t 13109s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 13110s,@LIBOBJS@,$LIBOBJS,;t t 13111s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13112CEOF 13113 13114_ACEOF 13115 13116 cat >>$CONFIG_STATUS <<\_ACEOF 13117 # Split the substitutions into bite-sized pieces for seds with 13118 # small command number limits, like on Digital OSF/1 and HP-UX. 13119 ac_max_sed_lines=48 13120 ac_sed_frag=1 # Number of current file. 13121 ac_beg=1 # First line for current file. 13122 ac_end=$ac_max_sed_lines # Line after last line for current file. 13123 ac_more_lines=: 13124 ac_sed_cmds= 13125 while $ac_more_lines; do 13126 if test $ac_beg -gt 1; then 13127 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13128 else 13129 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13130 fi 13131 if test ! -s $tmp/subs.frag; then 13132 ac_more_lines=false 13133 else 13134 # The purpose of the label and of the branching condition is to 13135 # speed up the sed processing (if there are no `@' at all, there 13136 # is no need to browse any of the substitutions). 13137 # These are the two extra sed commands mentioned above. 13138 (echo ':t 13139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 13140 if test -z "$ac_sed_cmds"; then 13141 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 13142 else 13143 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 13144 fi 13145 ac_sed_frag=`expr $ac_sed_frag + 1` 13146 ac_beg=$ac_end 13147 ac_end=`expr $ac_end + $ac_max_sed_lines` 13148 fi 13149 done 13150 if test -z "$ac_sed_cmds"; then 13151 ac_sed_cmds=cat 13152 fi 13153fi # test -n "$CONFIG_FILES" 13154 13155_ACEOF 13156cat >>$CONFIG_STATUS <<\_ACEOF 13157for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 13158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13159 case $ac_file in 13160 - | *:- | *:-:* ) # input from stdin 13161 cat >$tmp/stdin 13162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13166 * ) ac_file_in=$ac_file.in ;; 13167 esac 13168 13169 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 13170 ac_dir=`(dirname "$ac_file") 2>/dev/null || 13171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13172 X"$ac_file" : 'X\(//\)[^/]' \| \ 13173 X"$ac_file" : 'X\(//\)$' \| \ 13174 X"$ac_file" : 'X\(/\)' \| \ 13175 . : '\(.\)' 2>/dev/null || 13176echo X"$ac_file" | 13177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13178 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13179 /^X\(\/\/\)$/{ s//\1/; q; } 13180 /^X\(\/\).*/{ s//\1/; q; } 13181 s/.*/./; q'` 13182 { if $as_mkdir_p; then 13183 mkdir -p "$ac_dir" 13184 else 13185 as_dir="$ac_dir" 13186 as_dirs= 13187 while test ! -d "$as_dir"; do 13188 as_dirs="$as_dir $as_dirs" 13189 as_dir=`(dirname "$as_dir") 2>/dev/null || 13190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13191 X"$as_dir" : 'X\(//\)[^/]' \| \ 13192 X"$as_dir" : 'X\(//\)$' \| \ 13193 X"$as_dir" : 'X\(/\)' \| \ 13194 . : '\(.\)' 2>/dev/null || 13195echo X"$as_dir" | 13196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13197 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13198 /^X\(\/\/\)$/{ s//\1/; q; } 13199 /^X\(\/\).*/{ s//\1/; q; } 13200 s/.*/./; q'` 13201 done 13202 test ! -n "$as_dirs" || mkdir $as_dirs 13203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13204echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13205 { (exit 1); exit 1; }; }; } 13206 13207 ac_builddir=. 13208 13209if test "$ac_dir" != .; then 13210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13211 # A "../" for each directory in $ac_dir_suffix. 13212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 13213else 13214 ac_dir_suffix= ac_top_builddir= 13215fi 13216 13217case $srcdir in 13218 .) # No --srcdir option. We are building in place. 13219 ac_srcdir=. 13220 if test -z "$ac_top_builddir"; then 13221 ac_top_srcdir=. 13222 else 13223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 13224 fi ;; 13225 [\\/]* | ?:[\\/]* ) # Absolute path. 13226 ac_srcdir=$srcdir$ac_dir_suffix; 13227 ac_top_srcdir=$srcdir ;; 13228 *) # Relative path. 13229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 13230 ac_top_srcdir=$ac_top_builddir$srcdir ;; 13231esac 13232 13233# Do not use `cd foo && pwd` to compute absolute paths, because 13234# the directories may not exist. 13235case `pwd` in 13236.) ac_abs_builddir="$ac_dir";; 13237*) 13238 case "$ac_dir" in 13239 .) ac_abs_builddir=`pwd`;; 13240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 13241 *) ac_abs_builddir=`pwd`/"$ac_dir";; 13242 esac;; 13243esac 13244case $ac_abs_builddir in 13245.) ac_abs_top_builddir=${ac_top_builddir}.;; 13246*) 13247 case ${ac_top_builddir}. in 13248 .) ac_abs_top_builddir=$ac_abs_builddir;; 13249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 13250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 13251 esac;; 13252esac 13253case $ac_abs_builddir in 13254.) ac_abs_srcdir=$ac_srcdir;; 13255*) 13256 case $ac_srcdir in 13257 .) ac_abs_srcdir=$ac_abs_builddir;; 13258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 13259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 13260 esac;; 13261esac 13262case $ac_abs_builddir in 13263.) ac_abs_top_srcdir=$ac_top_srcdir;; 13264*) 13265 case $ac_top_srcdir in 13266 .) ac_abs_top_srcdir=$ac_abs_builddir;; 13267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 13268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 13269 esac;; 13270esac 13271 13272 13273 case $INSTALL in 13274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13275 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 13276 esac 13277 13278 if test x"$ac_file" != x-; then 13279 { echo "$as_me:$LINENO: creating $ac_file" >&5 13280echo "$as_me: creating $ac_file" >&6;} 13281 rm -f "$ac_file" 13282 fi 13283 # Let's still pretend it is `configure' which instantiates (i.e., don't 13284 # use $as_me), people would be surprised to read: 13285 # /* config.h. Generated by config.status. */ 13286 if test x"$ac_file" = x-; then 13287 configure_input= 13288 else 13289 configure_input="$ac_file. " 13290 fi 13291 configure_input=$configure_input"Generated from `echo $ac_file_in | 13292 sed 's,.*/,,'` by configure." 13293 13294 # First look for the input files in the build tree, otherwise in the 13295 # src tree. 13296 ac_file_inputs=`IFS=: 13297 for f in $ac_file_in; do 13298 case $f in 13299 -) echo $tmp/stdin ;; 13300 [\\/$]*) 13301 # Absolute (can't be DOS-style, as IFS=:) 13302 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13303echo "$as_me: error: cannot find input file: $f" >&2;} 13304 { (exit 1); exit 1; }; } 13305 echo "$f";; 13306 *) # Relative 13307 if test -f "$f"; then 13308 # Build tree 13309 echo "$f" 13310 elif test -f "$srcdir/$f"; then 13311 # Source tree 13312 echo "$srcdir/$f" 13313 else 13314 # /dev/null tree 13315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13316echo "$as_me: error: cannot find input file: $f" >&2;} 13317 { (exit 1); exit 1; }; } 13318 fi;; 13319 esac 13320 done` || { (exit 1); exit 1; } 13321_ACEOF 13322cat >>$CONFIG_STATUS <<_ACEOF 13323 sed "$ac_vpsub 13324$extrasub 13325_ACEOF 13326cat >>$CONFIG_STATUS <<\_ACEOF 13327:t 13328/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13329s,@configure_input@,$configure_input,;t t 13330s,@srcdir@,$ac_srcdir,;t t 13331s,@abs_srcdir@,$ac_abs_srcdir,;t t 13332s,@top_srcdir@,$ac_top_srcdir,;t t 13333s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 13334s,@builddir@,$ac_builddir,;t t 13335s,@abs_builddir@,$ac_abs_builddir,;t t 13336s,@top_builddir@,$ac_top_builddir,;t t 13337s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 13338s,@INSTALL@,$ac_INSTALL,;t t 13339" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 13340 rm -f $tmp/stdin 13341 if test x"$ac_file" != x-; then 13342 mv $tmp/out $ac_file 13343 else 13344 cat $tmp/out 13345 rm -f $tmp/out 13346 fi 13347 13348done 13349_ACEOF 13350cat >>$CONFIG_STATUS <<\_ACEOF 13351 13352# 13353# CONFIG_HEADER section. 13354# 13355 13356# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 13357# NAME is the cpp macro being defined and VALUE is the value it is being given. 13358# 13359# ac_d sets the value in "#define NAME VALUE" lines. 13360ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 13361ac_dB='[ ].*$,\1#\2' 13362ac_dC=' ' 13363ac_dD=',;t' 13364# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 13365ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 13366ac_uB='$,\1#\2define\3' 13367ac_uC=' ' 13368ac_uD=',;t' 13369 13370for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 13371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13372 case $ac_file in 13373 - | *:- | *:-:* ) # input from stdin 13374 cat >$tmp/stdin 13375 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13377 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13379 * ) ac_file_in=$ac_file.in ;; 13380 esac 13381 13382 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 13383echo "$as_me: creating $ac_file" >&6;} 13384 13385 # First look for the input files in the build tree, otherwise in the 13386 # src tree. 13387 ac_file_inputs=`IFS=: 13388 for f in $ac_file_in; do 13389 case $f in 13390 -) echo $tmp/stdin ;; 13391 [\\/$]*) 13392 # Absolute (can't be DOS-style, as IFS=:) 13393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13394echo "$as_me: error: cannot find input file: $f" >&2;} 13395 { (exit 1); exit 1; }; } 13396 # Do quote $f, to prevent DOS paths from being IFS'd. 13397 echo "$f";; 13398 *) # Relative 13399 if test -f "$f"; then 13400 # Build tree 13401 echo "$f" 13402 elif test -f "$srcdir/$f"; then 13403 # Source tree 13404 echo "$srcdir/$f" 13405 else 13406 # /dev/null tree 13407 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13408echo "$as_me: error: cannot find input file: $f" >&2;} 13409 { (exit 1); exit 1; }; } 13410 fi;; 13411 esac 13412 done` || { (exit 1); exit 1; } 13413 # Remove the trailing spaces. 13414 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 13415 13416_ACEOF 13417 13418# Transform confdefs.h into two sed scripts, `conftest.defines' and 13419# `conftest.undefs', that substitutes the proper values into 13420# config.h.in to produce config.h. The first handles `#define' 13421# templates, and the second `#undef' templates. 13422# And first: Protect against being on the right side of a sed subst in 13423# config.status. Protect against being in an unquoted here document 13424# in config.status. 13425rm -f conftest.defines conftest.undefs 13426# Using a here document instead of a string reduces the quoting nightmare. 13427# Putting comments in sed scripts is not portable. 13428# 13429# `end' is used to avoid that the second main sed command (meant for 13430# 0-ary CPP macros) applies to n-ary macro definitions. 13431# See the Autoconf documentation for `clear'. 13432cat >confdef2sed.sed <<\_ACEOF 13433s/[\\&,]/\\&/g 13434s,[\\$`],\\&,g 13435t clear 13436: clear 13437s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 13438t end 13439s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 13440: end 13441_ACEOF 13442# If some macros were called several times there might be several times 13443# the same #defines, which is useless. Nevertheless, we may not want to 13444# sort them, since we want the *last* AC-DEFINE to be honored. 13445uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 13446sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 13447rm -f confdef2sed.sed 13448 13449# This sed command replaces #undef with comments. This is necessary, for 13450# example, in the case of _POSIX_SOURCE, which is predefined and required 13451# on some systems where configure will not decide to define it. 13452cat >>conftest.undefs <<\_ACEOF 13453s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 13454_ACEOF 13455 13456# Break up conftest.defines because some shells have a limit on the size 13457# of here documents, and old seds have small limits too (100 cmds). 13458echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 13459echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 13460echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 13461echo ' :' >>$CONFIG_STATUS 13462rm -f conftest.tail 13463while grep . conftest.defines >/dev/null 13464do 13465 # Write a limited-size here document to $tmp/defines.sed. 13466 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 13467 # Speed up: don't consider the non `#define' lines. 13468 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 13469 # Work around the forget-to-reset-the-flag bug. 13470 echo 't clr' >>$CONFIG_STATUS 13471 echo ': clr' >>$CONFIG_STATUS 13472 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 13473 echo 'CEOF 13474 sed -f $tmp/defines.sed $tmp/in >$tmp/out 13475 rm -f $tmp/in 13476 mv $tmp/out $tmp/in 13477' >>$CONFIG_STATUS 13478 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 13479 rm -f conftest.defines 13480 mv conftest.tail conftest.defines 13481done 13482rm -f conftest.defines 13483echo ' fi # grep' >>$CONFIG_STATUS 13484echo >>$CONFIG_STATUS 13485 13486# Break up conftest.undefs because some shells have a limit on the size 13487# of here documents, and old seds have small limits too (100 cmds). 13488echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 13489rm -f conftest.tail 13490while grep . conftest.undefs >/dev/null 13491do 13492 # Write a limited-size here document to $tmp/undefs.sed. 13493 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 13494 # Speed up: don't consider the non `#undef' 13495 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 13496 # Work around the forget-to-reset-the-flag bug. 13497 echo 't clr' >>$CONFIG_STATUS 13498 echo ': clr' >>$CONFIG_STATUS 13499 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 13500 echo 'CEOF 13501 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 13502 rm -f $tmp/in 13503 mv $tmp/out $tmp/in 13504' >>$CONFIG_STATUS 13505 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 13506 rm -f conftest.undefs 13507 mv conftest.tail conftest.undefs 13508done 13509rm -f conftest.undefs 13510 13511cat >>$CONFIG_STATUS <<\_ACEOF 13512 # Let's still pretend it is `configure' which instantiates (i.e., don't 13513 # use $as_me), people would be surprised to read: 13514 # /* config.h. Generated by config.status. */ 13515 if test x"$ac_file" = x-; then 13516 echo "/* Generated by configure. */" >$tmp/config.h 13517 else 13518 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 13519 fi 13520 cat $tmp/in >>$tmp/config.h 13521 rm -f $tmp/in 13522 if test x"$ac_file" != x-; then 13523 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 13524 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13525echo "$as_me: $ac_file is unchanged" >&6;} 13526 else 13527 ac_dir=`(dirname "$ac_file") 2>/dev/null || 13528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13529 X"$ac_file" : 'X\(//\)[^/]' \| \ 13530 X"$ac_file" : 'X\(//\)$' \| \ 13531 X"$ac_file" : 'X\(/\)' \| \ 13532 . : '\(.\)' 2>/dev/null || 13533echo X"$ac_file" | 13534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13535 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13536 /^X\(\/\/\)$/{ s//\1/; q; } 13537 /^X\(\/\).*/{ s//\1/; q; } 13538 s/.*/./; q'` 13539 { if $as_mkdir_p; then 13540 mkdir -p "$ac_dir" 13541 else 13542 as_dir="$ac_dir" 13543 as_dirs= 13544 while test ! -d "$as_dir"; do 13545 as_dirs="$as_dir $as_dirs" 13546 as_dir=`(dirname "$as_dir") 2>/dev/null || 13547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13548 X"$as_dir" : 'X\(//\)[^/]' \| \ 13549 X"$as_dir" : 'X\(//\)$' \| \ 13550 X"$as_dir" : 'X\(/\)' \| \ 13551 . : '\(.\)' 2>/dev/null || 13552echo X"$as_dir" | 13553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13554 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13555 /^X\(\/\/\)$/{ s//\1/; q; } 13556 /^X\(\/\).*/{ s//\1/; q; } 13557 s/.*/./; q'` 13558 done 13559 test ! -n "$as_dirs" || mkdir $as_dirs 13560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13561echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13562 { (exit 1); exit 1; }; }; } 13563 13564 rm -f $ac_file 13565 mv $tmp/config.h $ac_file 13566 fi 13567 else 13568 cat $tmp/config.h 13569 rm -f $tmp/config.h 13570 fi 13571done 13572_ACEOF 13573cat >>$CONFIG_STATUS <<\_ACEOF 13574 13575# 13576# CONFIG_COMMANDS section. 13577# 13578for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 13579 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 13580 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 13581 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 13582$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13583 X"$ac_dest" : 'X\(//\)[^/]' \| \ 13584 X"$ac_dest" : 'X\(//\)$' \| \ 13585 X"$ac_dest" : 'X\(/\)' \| \ 13586 . : '\(.\)' 2>/dev/null || 13587echo X"$ac_dest" | 13588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13589 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13590 /^X\(\/\/\)$/{ s//\1/; q; } 13591 /^X\(\/\).*/{ s//\1/; q; } 13592 s/.*/./; q'` 13593 { if $as_mkdir_p; then 13594 mkdir -p "$ac_dir" 13595 else 13596 as_dir="$ac_dir" 13597 as_dirs= 13598 while test ! -d "$as_dir"; do 13599 as_dirs="$as_dir $as_dirs" 13600 as_dir=`(dirname "$as_dir") 2>/dev/null || 13601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13602 X"$as_dir" : 'X\(//\)[^/]' \| \ 13603 X"$as_dir" : 'X\(//\)$' \| \ 13604 X"$as_dir" : 'X\(/\)' \| \ 13605 . : '\(.\)' 2>/dev/null || 13606echo X"$as_dir" | 13607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13608 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13609 /^X\(\/\/\)$/{ s//\1/; q; } 13610 /^X\(\/\).*/{ s//\1/; q; } 13611 s/.*/./; q'` 13612 done 13613 test ! -n "$as_dirs" || mkdir $as_dirs 13614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13615echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13616 { (exit 1); exit 1; }; }; } 13617 13618 ac_builddir=. 13619 13620if test "$ac_dir" != .; then 13621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13622 # A "../" for each directory in $ac_dir_suffix. 13623 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 13624else 13625 ac_dir_suffix= ac_top_builddir= 13626fi 13627 13628case $srcdir in 13629 .) # No --srcdir option. We are building in place. 13630 ac_srcdir=. 13631 if test -z "$ac_top_builddir"; then 13632 ac_top_srcdir=. 13633 else 13634 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 13635 fi ;; 13636 [\\/]* | ?:[\\/]* ) # Absolute path. 13637 ac_srcdir=$srcdir$ac_dir_suffix; 13638 ac_top_srcdir=$srcdir ;; 13639 *) # Relative path. 13640 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 13641 ac_top_srcdir=$ac_top_builddir$srcdir ;; 13642esac 13643 13644# Do not use `cd foo && pwd` to compute absolute paths, because 13645# the directories may not exist. 13646case `pwd` in 13647.) ac_abs_builddir="$ac_dir";; 13648*) 13649 case "$ac_dir" in 13650 .) ac_abs_builddir=`pwd`;; 13651 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 13652 *) ac_abs_builddir=`pwd`/"$ac_dir";; 13653 esac;; 13654esac 13655case $ac_abs_builddir in 13656.) ac_abs_top_builddir=${ac_top_builddir}.;; 13657*) 13658 case ${ac_top_builddir}. in 13659 .) ac_abs_top_builddir=$ac_abs_builddir;; 13660 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 13661 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 13662 esac;; 13663esac 13664case $ac_abs_builddir in 13665.) ac_abs_srcdir=$ac_srcdir;; 13666*) 13667 case $ac_srcdir in 13668 .) ac_abs_srcdir=$ac_abs_builddir;; 13669 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 13670 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 13671 esac;; 13672esac 13673case $ac_abs_builddir in 13674.) ac_abs_top_srcdir=$ac_top_srcdir;; 13675*) 13676 case $ac_top_srcdir in 13677 .) ac_abs_top_srcdir=$ac_abs_builddir;; 13678 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 13679 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 13680 esac;; 13681esac 13682 13683 13684 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 13685echo "$as_me: executing $ac_dest commands" >&6;} 13686 case $ac_dest in 13687 libtool ) 13688 13689 # See if we are running on zsh, and set the options which allow our 13690 # commands through without removal of \ escapes. 13691 if test -n "${ZSH_VERSION+set}" ; then 13692 setopt NO_GLOB_SUBST 13693 fi 13694 13695 cfgfile="${ofile}T" 13696 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13697 $RM "$cfgfile" 13698 13699 cat <<_LT_EOF >> "$cfgfile" 13700#! $SHELL 13701 13702# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13703# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13705# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13706# 13707# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13708# 2006, 2007, 2008 Free Software Foundation, Inc. 13709# Written by Gordon Matzigkeit, 1996 13710# 13711# This file is part of GNU Libtool. 13712# 13713# GNU Libtool is free software; you can redistribute it and/or 13714# modify it under the terms of the GNU General Public License as 13715# published by the Free Software Foundation; either version 2 of 13716# the License, or (at your option) any later version. 13717# 13718# As a special exception to the GNU General Public License, 13719# if you distribute this file as part of a program or library that 13720# is built using GNU Libtool, you may include this file under the 13721# same distribution terms that you use for the rest of that program. 13722# 13723# GNU Libtool is distributed in the hope that it will be useful, 13724# but WITHOUT ANY WARRANTY; without even the implied warranty of 13725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13726# GNU General Public License for more details. 13727# 13728# You should have received a copy of the GNU General Public License 13729# along with GNU Libtool; see the file COPYING. If not, a copy 13730# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13731# obtained by writing to the Free Software Foundation, Inc., 13732# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13733 13734 13735# The names of the tagged configurations supported by this script. 13736available_tags="" 13737 13738# ### BEGIN LIBTOOL CONFIG 13739 13740# Which release of libtool.m4 was used? 13741macro_version=$macro_version 13742macro_revision=$macro_revision 13743 13744# Whether or not to build shared libraries. 13745build_libtool_libs=$enable_shared 13746 13747# Whether or not to build static libraries. 13748build_old_libs=$enable_static 13749 13750# What type of objects to build. 13751pic_mode=$pic_mode 13752 13753# Whether or not to optimize for fast installation. 13754fast_install=$enable_fast_install 13755 13756# The host system. 13757host_alias=$host_alias 13758host=$host 13759host_os=$host_os 13760 13761# The build system. 13762build_alias=$build_alias 13763build=$build 13764build_os=$build_os 13765 13766# A sed program that does not truncate output. 13767SED=$lt_SED 13768 13769# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13770Xsed="\$SED -e 1s/^X//" 13771 13772# A grep program that handles long lines. 13773GREP=$lt_GREP 13774 13775# An ERE matcher. 13776EGREP=$lt_EGREP 13777 13778# A literal string matcher. 13779FGREP=$lt_FGREP 13780 13781# A BSD- or MS-compatible name lister. 13782NM=$lt_NM 13783 13784# Whether we need soft or hard links. 13785LN_S=$lt_LN_S 13786 13787# What is the maximum length of a command? 13788max_cmd_len=$max_cmd_len 13789 13790# Object file suffix (normally "o"). 13791objext=$ac_objext 13792 13793# Executable file suffix (normally ""). 13794exeext=$exeext 13795 13796# whether the shell understands "unset". 13797lt_unset=$lt_unset 13798 13799# turn spaces into newlines. 13800SP2NL=$lt_lt_SP2NL 13801 13802# turn newlines into spaces. 13803NL2SP=$lt_lt_NL2SP 13804 13805# How to create reloadable object files. 13806reload_flag=$lt_reload_flag 13807reload_cmds=$lt_reload_cmds 13808 13809# Method to check whether dependent libraries are shared objects. 13810deplibs_check_method=$lt_deplibs_check_method 13811 13812# Command to use when deplibs_check_method == "file_magic". 13813file_magic_cmd=$lt_file_magic_cmd 13814 13815# The archiver. 13816AR=$lt_AR 13817AR_FLAGS=$lt_AR_FLAGS 13818 13819# A symbol stripping program. 13820STRIP=$lt_STRIP 13821 13822# Commands used to install an old-style archive. 13823RANLIB=$lt_RANLIB 13824old_postinstall_cmds=$lt_old_postinstall_cmds 13825old_postuninstall_cmds=$lt_old_postuninstall_cmds 13826 13827# A C compiler. 13828LTCC=$lt_CC 13829 13830# LTCC compiler flags. 13831LTCFLAGS=$lt_CFLAGS 13832 13833# Take the output of nm and produce a listing of raw symbols and C names. 13834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13835 13836# Transform the output of nm in a proper C declaration. 13837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13838 13839# Transform the output of nm in a C name address pair. 13840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13841 13842# Transform the output of nm in a C name address pair when lib prefix is needed. 13843global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13844 13845# The name of the directory that contains temporary libtool files. 13846objdir=$objdir 13847 13848# Shell to use when invoking shell scripts. 13849SHELL=$lt_SHELL 13850 13851# An echo program that does not interpret backslashes. 13852ECHO=$lt_ECHO 13853 13854# Used to examine libraries when file_magic_cmd begins with "file". 13855MAGIC_CMD=$MAGIC_CMD 13856 13857# Must we lock files when doing compilation? 13858need_locks=$lt_need_locks 13859 13860# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13861DSYMUTIL=$lt_DSYMUTIL 13862 13863# Tool to change global to local symbols on Mac OS X. 13864NMEDIT=$lt_NMEDIT 13865 13866# Tool to manipulate fat objects and archives on Mac OS X. 13867LIPO=$lt_LIPO 13868 13869# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13870OTOOL=$lt_OTOOL 13871 13872# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13873OTOOL64=$lt_OTOOL64 13874 13875# Old archive suffix (normally "a"). 13876libext=$libext 13877 13878# Shared library suffix (normally ".so"). 13879shrext_cmds=$lt_shrext_cmds 13880 13881# The commands to extract the exported symbol list from a shared archive. 13882extract_expsyms_cmds=$lt_extract_expsyms_cmds 13883 13884# Variables whose values should be saved in libtool wrapper scripts and 13885# restored at link time. 13886variables_saved_for_relink=$lt_variables_saved_for_relink 13887 13888# Do we need the "lib" prefix for modules? 13889need_lib_prefix=$need_lib_prefix 13890 13891# Do we need a version for libraries? 13892need_version=$need_version 13893 13894# Library versioning type. 13895version_type=$version_type 13896 13897# Shared library runtime path variable. 13898runpath_var=$runpath_var 13899 13900# Shared library path variable. 13901shlibpath_var=$shlibpath_var 13902 13903# Is shlibpath searched before the hard-coded library search path? 13904shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13905 13906# Format of library name prefix. 13907libname_spec=$lt_libname_spec 13908 13909# List of archive names. First name is the real one, the rest are links. 13910# The last name is the one that the linker finds with -lNAME 13911library_names_spec=$lt_library_names_spec 13912 13913# The coded name of the library, if different from the real name. 13914soname_spec=$lt_soname_spec 13915 13916# Command to use after installation of a shared archive. 13917postinstall_cmds=$lt_postinstall_cmds 13918 13919# Command to use after uninstallation of a shared archive. 13920postuninstall_cmds=$lt_postuninstall_cmds 13921 13922# Commands used to finish a libtool library installation in a directory. 13923finish_cmds=$lt_finish_cmds 13924 13925# As "finish_cmds", except a single script fragment to be evaled but 13926# not shown. 13927finish_eval=$lt_finish_eval 13928 13929# Whether we should hardcode library paths into libraries. 13930hardcode_into_libs=$hardcode_into_libs 13931 13932# Compile-time system search path for libraries. 13933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13934 13935# Run-time system search path for libraries. 13936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13937 13938# Whether dlopen is supported. 13939dlopen_support=$enable_dlopen 13940 13941# Whether dlopen of programs is supported. 13942dlopen_self=$enable_dlopen_self 13943 13944# Whether dlopen of statically linked programs is supported. 13945dlopen_self_static=$enable_dlopen_self_static 13946 13947# Commands to strip libraries. 13948old_striplib=$lt_old_striplib 13949striplib=$lt_striplib 13950 13951 13952# The linker used to build libraries. 13953LD=$lt_LD 13954 13955# Commands used to build an old-style archive. 13956old_archive_cmds=$lt_old_archive_cmds 13957 13958# A language specific compiler. 13959CC=$lt_compiler 13960 13961# Is the compiler the GNU compiler? 13962with_gcc=$GCC 13963 13964# Compiler flag to turn off builtin functions. 13965no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13966 13967# How to pass a linker flag through the compiler. 13968wl=$lt_lt_prog_compiler_wl 13969 13970# Additional compiler flags for building library objects. 13971pic_flag=$lt_lt_prog_compiler_pic 13972 13973# Compiler flag to prevent dynamic linking. 13974link_static_flag=$lt_lt_prog_compiler_static 13975 13976# Does compiler simultaneously support -c and -o options? 13977compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13978 13979# Whether or not to add -lc for building shared libraries. 13980build_libtool_need_lc=$archive_cmds_need_lc 13981 13982# Whether or not to disallow shared libs when runtime libs are static. 13983allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13984 13985# Compiler flag to allow reflexive dlopens. 13986export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13987 13988# Compiler flag to generate shared objects directly from archives. 13989whole_archive_flag_spec=$lt_whole_archive_flag_spec 13990 13991# Whether the compiler copes with passing no objects directly. 13992compiler_needs_object=$lt_compiler_needs_object 13993 13994# Create an old-style archive from a shared archive. 13995old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13996 13997# Create a temporary old-style archive to link instead of a shared archive. 13998old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13999 14000# Commands used to build a shared archive. 14001archive_cmds=$lt_archive_cmds 14002archive_expsym_cmds=$lt_archive_expsym_cmds 14003 14004# Commands used to build a loadable module if different from building 14005# a shared archive. 14006module_cmds=$lt_module_cmds 14007module_expsym_cmds=$lt_module_expsym_cmds 14008 14009# Whether we are building with GNU ld or not. 14010with_gnu_ld=$lt_with_gnu_ld 14011 14012# Flag that allows shared libraries with undefined symbols to be built. 14013allow_undefined_flag=$lt_allow_undefined_flag 14014 14015# Flag that enforces no undefined symbols. 14016no_undefined_flag=$lt_no_undefined_flag 14017 14018# Flag to hardcode \$libdir into a binary during linking. 14019# This must work even if \$libdir does not exist 14020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14021 14022# If ld is used when linking, flag to hardcode \$libdir into a binary 14023# during linking. This must work even if \$libdir does not exist. 14024hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14025 14026# Whether we need a single "-rpath" flag with a separated argument. 14027hardcode_libdir_separator=$lt_hardcode_libdir_separator 14028 14029# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14030# DIR into the resulting binary. 14031hardcode_direct=$hardcode_direct 14032 14033# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14034# DIR into the resulting binary and the resulting library dependency is 14035# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14036# library is relocated. 14037hardcode_direct_absolute=$hardcode_direct_absolute 14038 14039# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14040# into the resulting binary. 14041hardcode_minus_L=$hardcode_minus_L 14042 14043# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14044# into the resulting binary. 14045hardcode_shlibpath_var=$hardcode_shlibpath_var 14046 14047# Set to "yes" if building a shared library automatically hardcodes DIR 14048# into the library and all subsequent libraries and executables linked 14049# against it. 14050hardcode_automatic=$hardcode_automatic 14051 14052# Set to yes if linker adds runtime paths of dependent libraries 14053# to runtime path list. 14054inherit_rpath=$inherit_rpath 14055 14056# Whether libtool must link a program against all its dependency libraries. 14057link_all_deplibs=$link_all_deplibs 14058 14059# Fix the shell variable \$srcfile for the compiler. 14060fix_srcfile_path=$lt_fix_srcfile_path 14061 14062# Set to "yes" if exported symbols are required. 14063always_export_symbols=$always_export_symbols 14064 14065# The commands to list exported symbols. 14066export_symbols_cmds=$lt_export_symbols_cmds 14067 14068# Symbols that should not be listed in the preloaded symbols. 14069exclude_expsyms=$lt_exclude_expsyms 14070 14071# Symbols that must always be exported. 14072include_expsyms=$lt_include_expsyms 14073 14074# Commands necessary for linking programs (against libraries) with templates. 14075prelink_cmds=$lt_prelink_cmds 14076 14077# Specify filename containing input files. 14078file_list_spec=$lt_file_list_spec 14079 14080# How to hardcode a shared library path into an executable. 14081hardcode_action=$hardcode_action 14082 14083# ### END LIBTOOL CONFIG 14084 14085_LT_EOF 14086 14087 case $host_os in 14088 aix3*) 14089 cat <<\_LT_EOF >> "$cfgfile" 14090# AIX sometimes has problems with the GCC collect2 program. For some 14091# reason, if we set the COLLECT_NAMES environment variable, the problems 14092# vanish in a puff of smoke. 14093if test "X${COLLECT_NAMES+set}" != Xset; then 14094 COLLECT_NAMES= 14095 export COLLECT_NAMES 14096fi 14097_LT_EOF 14098 ;; 14099 esac 14100 14101 14102ltmain="$ac_aux_dir/ltmain.sh" 14103 14104 14105 # We use sed instead of cat because bash on DJGPP gets confused if 14106 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14107 # text mode, it properly converts lines to CR/LF. This bash problem 14108 # is reportedly fixed, but why not run on old versions too? 14109 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14110 || (rm -f "$cfgfile"; exit 1) 14111 14112 case $xsi_shell in 14113 yes) 14114 cat << \_LT_EOF >> "$cfgfile" 14115 14116# func_dirname file append nondir_replacement 14117# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14118# otherwise set result to NONDIR_REPLACEMENT. 14119func_dirname () 14120{ 14121 case ${1} in 14122 */*) func_dirname_result="${1%/*}${2}" ;; 14123 * ) func_dirname_result="${3}" ;; 14124 esac 14125} 14126 14127# func_basename file 14128func_basename () 14129{ 14130 func_basename_result="${1##*/}" 14131} 14132 14133# func_dirname_and_basename file append nondir_replacement 14134# perform func_basename and func_dirname in a single function 14135# call: 14136# dirname: Compute the dirname of FILE. If nonempty, 14137# add APPEND to the result, otherwise set result 14138# to NONDIR_REPLACEMENT. 14139# value returned in "$func_dirname_result" 14140# basename: Compute filename of FILE. 14141# value retuned in "$func_basename_result" 14142# Implementation must be kept synchronized with func_dirname 14143# and func_basename. For efficiency, we do not delegate to 14144# those functions but instead duplicate the functionality here. 14145func_dirname_and_basename () 14146{ 14147 case ${1} in 14148 */*) func_dirname_result="${1%/*}${2}" ;; 14149 * ) func_dirname_result="${3}" ;; 14150 esac 14151 func_basename_result="${1##*/}" 14152} 14153 14154# func_stripname prefix suffix name 14155# strip PREFIX and SUFFIX off of NAME. 14156# PREFIX and SUFFIX must not contain globbing or regex special 14157# characters, hashes, percent signs, but SUFFIX may contain a leading 14158# dot (in which case that matches only a dot). 14159func_stripname () 14160{ 14161 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14162 # positional parameters, so assign one to ordinary parameter first. 14163 func_stripname_result=${3} 14164 func_stripname_result=${func_stripname_result#"${1}"} 14165 func_stripname_result=${func_stripname_result%"${2}"} 14166} 14167 14168# func_opt_split 14169func_opt_split () 14170{ 14171 func_opt_split_opt=${1%%=*} 14172 func_opt_split_arg=${1#*=} 14173} 14174 14175# func_lo2o object 14176func_lo2o () 14177{ 14178 case ${1} in 14179 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14180 *) func_lo2o_result=${1} ;; 14181 esac 14182} 14183 14184# func_xform libobj-or-source 14185func_xform () 14186{ 14187 func_xform_result=${1%.*}.lo 14188} 14189 14190# func_arith arithmetic-term... 14191func_arith () 14192{ 14193 func_arith_result=$(( $* )) 14194} 14195 14196# func_len string 14197# STRING may not start with a hyphen. 14198func_len () 14199{ 14200 func_len_result=${#1} 14201} 14202 14203_LT_EOF 14204 ;; 14205 *) # Bourne compatible functions. 14206 cat << \_LT_EOF >> "$cfgfile" 14207 14208# func_dirname file append nondir_replacement 14209# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14210# otherwise set result to NONDIR_REPLACEMENT. 14211func_dirname () 14212{ 14213 # Extract subdirectory from the argument. 14214 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14215 if test "X$func_dirname_result" = "X${1}"; then 14216 func_dirname_result="${3}" 14217 else 14218 func_dirname_result="$func_dirname_result${2}" 14219 fi 14220} 14221 14222# func_basename file 14223func_basename () 14224{ 14225 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14226} 14227 14228 14229# func_stripname prefix suffix name 14230# strip PREFIX and SUFFIX off of NAME. 14231# PREFIX and SUFFIX must not contain globbing or regex special 14232# characters, hashes, percent signs, but SUFFIX may contain a leading 14233# dot (in which case that matches only a dot). 14234# func_strip_suffix prefix name 14235func_stripname () 14236{ 14237 case ${2} in 14238 .*) func_stripname_result=`$ECHO "X${3}" \ 14239 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14240 *) func_stripname_result=`$ECHO "X${3}" \ 14241 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14242 esac 14243} 14244 14245# sed scripts: 14246my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14247my_sed_long_arg='1s/^-[^=]*=//' 14248 14249# func_opt_split 14250func_opt_split () 14251{ 14252 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14253 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14254} 14255 14256# func_lo2o object 14257func_lo2o () 14258{ 14259 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14260} 14261 14262# func_xform libobj-or-source 14263func_xform () 14264{ 14265 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14266} 14267 14268# func_arith arithmetic-term... 14269func_arith () 14270{ 14271 func_arith_result=`expr "$@"` 14272} 14273 14274# func_len string 14275# STRING may not start with a hyphen. 14276func_len () 14277{ 14278 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14279} 14280 14281_LT_EOF 14282esac 14283 14284case $lt_shell_append in 14285 yes) 14286 cat << \_LT_EOF >> "$cfgfile" 14287 14288# func_append var value 14289# Append VALUE to the end of shell variable VAR. 14290func_append () 14291{ 14292 eval "$1+=\$2" 14293} 14294_LT_EOF 14295 ;; 14296 *) 14297 cat << \_LT_EOF >> "$cfgfile" 14298 14299# func_append var value 14300# Append VALUE to the end of shell variable VAR. 14301func_append () 14302{ 14303 eval "$1=\$$1\$2" 14304} 14305 14306_LT_EOF 14307 ;; 14308 esac 14309 14310 14311 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14312 || (rm -f "$cfgfile"; exit 1) 14313 14314 mv -f "$cfgfile" "$ofile" || 14315 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14316 chmod +x "$ofile" 14317 14318 ;; 14319 esac 14320done 14321_ACEOF 14322 14323cat >>$CONFIG_STATUS <<\_ACEOF 14324 14325{ (exit 0); exit 0; } 14326_ACEOF 14327chmod +x $CONFIG_STATUS 14328ac_clean_files=$ac_clean_files_save 14329 14330 14331# configure is writing to config.log, and then calls config.status. 14332# config.status does its own redirection, appending to config.log. 14333# Unfortunately, on DOS this fails, as config.log is still kept open 14334# by configure, so config.status won't be able to write to it; its 14335# output is simply discarded. So we exec the FD to /dev/null, 14336# effectively closing config.log, so it can be properly (re)opened and 14337# appended to by config.status. When coming back to configure, we 14338# need to make the FD available again. 14339if test "$no_create" != yes; then 14340 ac_cs_success=: 14341 ac_config_status_args= 14342 test "$silent" = yes && 14343 ac_config_status_args="$ac_config_status_args --quiet" 14344 exec 5>/dev/null 14345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14346 exec 5>>config.log 14347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14348 # would make configure fail if this is the last instruction. 14349 $ac_cs_success || { (exit 1); exit 1; } 14350fi 14351 14352