2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57 for Berkeley DB 4.1.25.
5
# Report bugs to <support@sleepycat.com>.
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
# is contrary to our usage. Disable this feature.
21
alias -g '${1+"$@"}'='"$@"'
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
# Support unset when possible.
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236
# We need space, tab and new line, in precisely that order.
245
# Find the correct PATH separator. Usually this is `:', but
246
# DJGPP uses `;' like DOS.
247
if test "X${PATH_SEPARATOR+set}" != Xset; then
248
UNAME=${UNAME-`uname 2>/dev/null`}
250
*-DOS) lt_cv_sys_path_separator=';' ;;
251
*) lt_cv_sys_path_separator=':' ;;
253
PATH_SEPARATOR=$lt_cv_sys_path_separator
257
# Check that we are running under the correct shell.
258
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Remove one level of quotation (which was required for Make).
263
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
268
if test "X$1" = X--no-reexec; then
269
# Discard the --no-reexec flag, and continue.
271
elif test "X$1" = X--fallback-echo; then
272
# Avoid inline document here, it may be left over
274
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275
# Yippee, $echo works!
278
# Restart under the correct shell.
279
exec $SHELL "$0" --no-reexec ${1+"$@"}
282
if test "X$1" = X--fallback-echo; then
283
# used as fallback echo
291
# The HP-UX ksh and POSIX shell print the target directory to stdout
293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
if test -z "$ECHO"; then
296
if test "X${echo_test_string+set}" != Xset; then
297
# find a string as large as possible, as long as the shell can cope with it
298
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301
echo_test_string="`eval $cmd`" &&
302
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311
test "X$echo_testing_string" = "X$echo_test_string"; then
314
# The Solaris, AIX, and Digital Unix default echo programs unquote
315
# backslashes. This makes it impossible to quote backslashes using
316
# echo "$something" | sed 's/\\/\\\\/g'
318
# So, first we look for a working echo in the user's PATH.
320
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321
for dir in $PATH /usr/ucb; do
322
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
332
if test "X$echo" = Xecho; then
333
# We didn't find a better echo, so look for alternatives.
334
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336
test "X$echo_testing_string" = "X$echo_test_string"; then
337
# This shell has a builtin print -r that does the trick.
339
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340
test "X$CONFIG_SHELL" != X/bin/ksh; then
341
# If we have ksh, try running configure again with it.
342
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343
export ORIGINAL_CONFIG_SHELL
344
CONFIG_SHELL=/bin/ksh
346
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
350
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352
test "X$echo_testing_string" = "X$echo_test_string"; then
355
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361
SHELL="$CONFIG_SHELL"
363
echo="$CONFIG_SHELL $0 --fallback-echo"
364
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365
test "X$echo_testing_string" = 'X\t' &&
366
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367
test "X$echo_testing_string" = "X$echo_test_string"; then
368
echo="$CONFIG_SHELL $0 --fallback-echo"
370
# maybe with a smaller string...
373
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
381
if test "$prev" != 'sed 50q "$0"'; then
382
echo_test_string=`eval $prev`
383
export echo_test_string
384
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386
# Oops. We lost completely, so just stick with echo.
395
# Copy echo and quote the copy suitably for passing to libtool from
396
# the Makefile, instead of quoting the original, which is used later.
398
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
# so uname gets run too.
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414
ac_default_prefix=/usr/local
415
ac_config_libobj_dir=.
420
SHELL=${CONFIG_SHELL-/bin/sh}
422
# Maximum number of lines to put in a shell here document.
423
# This variable seems obsolete. It should probably be removed, and
424
# only ac_max_sed_lines should be used.
425
: ${ac_max_here_lines=38}
427
# Identity of this package.
428
PACKAGE_NAME='Berkeley DB'
429
PACKAGE_TARNAME='db-4.1.25'
430
PACKAGE_VERSION='4.1.25'
431
PACKAGE_STRING='Berkeley DB 4.1.25'
432
PACKAGE_BUGREPORT='support@sleepycat.com'
434
ac_unique_file="../db/db.c"
435
ac_default_prefix=/usr/local/BerkeleyDB.@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
436
# Factoring default headers for most tests.
437
ac_includes_default="\
440
# include <sys/types.h>
443
# include <sys/stat.h>
454
# if !STDC_HEADERS && HAVE_MEMORY_H
460
# include <strings.h>
463
# include <inttypes.h>
473
ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CXX CXXFLAGS DEFAULT_LIB DEFAULT_LIB_CXX EMBEDIX_ECD_CXX EMBEDIX_ECD_RPC EMBEDIX_ROOT INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBXSO_LIBS LOAD_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_MAYBE_WIN32 MAKEFILE_SOLINK MAKEFILE_XSOLINK POSTLINK RPC_CLIENT_OBJS RPM_POST_INSTALL RPM_POST_UNINSTALL SOFLAGS db_cv_path_embedix_install db_cv_path_rpm_archive db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_UNIQUE_NAME DB_VERSION_STRING db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp path_ldconfig ac_ct_path_ldconfig db_cv_path_ldconfig db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpm ac_ct_db_cv_path_rpm path_sh ac_ct_path_sh db_cv_path_sh path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT CCC ac_ct_CCC ac_ct_CXX cxx_have_stdheaders LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC _ACJNI_JAVAC TCFLAGS TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_TCLSH u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl ssize_t_decl db_align_t_decl db_alignp_t_decl LIBOBJS LTLIBOBJS'
476
# Initialize some variables set by options.
478
ac_init_version=false
479
# The variables have the same names as the options, with
480
# dashes changed to underlines.
488
program_transform_name=s,x,x,
496
# Installation directory options.
497
# These are left unexpanded so users can "make install exec_prefix=/foo"
498
# and all the variables that are supposed to be based on exec_prefix
499
# by default will actually change.
500
# Use braces instead of parens because sh, perl, etc. also accept them.
501
bindir='${exec_prefix}/bin'
502
sbindir='${exec_prefix}/sbin'
503
libexecdir='${exec_prefix}/libexec'
504
datadir='${prefix}/share'
505
sysconfdir='${prefix}/etc'
506
sharedstatedir='${prefix}/com'
507
localstatedir='${prefix}/var'
508
libdir='${exec_prefix}/lib'
509
includedir='${prefix}/include'
510
oldincludedir='/usr/include'
511
infodir='${prefix}/info'
512
mandir='${prefix}/man'
517
# If the previous option needs an argument, assign it.
518
if test -n "$ac_prev"; then
519
eval "$ac_prev=\$ac_option"
524
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526
# Accept the important Cygnus configure options, so we can diagnose typos.
530
-bindir | --bindir | --bindi | --bind | --bin | --bi)
532
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535
-build | --build | --buil | --bui | --bu)
536
ac_prev=build_alias ;;
537
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
538
build_alias=$ac_optarg ;;
540
-cache-file | --cache-file | --cache-fil | --cache-fi \
541
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542
ac_prev=cache_file ;;
543
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545
cache_file=$ac_optarg ;;
548
cache_file=config.cache ;;
550
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554
datadir=$ac_optarg ;;
556
-disable-* | --disable-*)
557
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558
# Reject names that are not valid shell variable names.
559
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
561
{ (exit 1); exit 1; }; }
562
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563
eval "enable_$ac_feature=no" ;;
565
-enable-* | --enable-*)
566
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567
# Reject names that are not valid shell variable names.
568
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
570
{ (exit 1); exit 1; }; }
571
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576
eval "enable_$ac_feature='$ac_optarg'" ;;
578
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580
| --exec | --exe | --ex)
581
ac_prev=exec_prefix ;;
582
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584
| --exec=* | --exe=* | --ex=*)
585
exec_prefix=$ac_optarg ;;
587
-gas | --gas | --ga | --g)
588
# Obsolete; use --with-gas.
591
-help | --help | --hel | --he | -h)
593
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594
ac_init_help=recursive ;;
595
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596
ac_init_help=short ;;
598
-host | --host | --hos | --ho)
599
ac_prev=host_alias ;;
600
-host=* | --host=* | --hos=* | --ho=*)
601
host_alias=$ac_optarg ;;
603
-includedir | --includedir | --includedi | --included | --include \
604
| --includ | --inclu | --incl | --inc)
605
ac_prev=includedir ;;
606
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607
| --includ=* | --inclu=* | --incl=* | --inc=*)
608
includedir=$ac_optarg ;;
610
-infodir | --infodir | --infodi | --infod | --info | --inf)
612
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613
infodir=$ac_optarg ;;
615
-libdir | --libdir | --libdi | --libd)
617
-libdir=* | --libdir=* | --libdi=* | --libd=*)
620
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621
| --libexe | --libex | --libe)
622
ac_prev=libexecdir ;;
623
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624
| --libexe=* | --libex=* | --libe=*)
625
libexecdir=$ac_optarg ;;
627
-localstatedir | --localstatedir | --localstatedi | --localstated \
628
| --localstate | --localstat | --localsta | --localst \
629
| --locals | --local | --loca | --loc | --lo)
630
ac_prev=localstatedir ;;
631
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
633
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634
localstatedir=$ac_optarg ;;
636
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642
# Obsolete; use --without-fp.
645
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
646
| --no-cr | --no-c | -n)
649
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
650
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655
| --oldin | --oldi | --old | --ol | --o)
656
ac_prev=oldincludedir ;;
657
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660
oldincludedir=$ac_optarg ;;
662
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667
-program-prefix | --program-prefix | --program-prefi | --program-pref \
668
| --program-pre | --program-pr | --program-p)
669
ac_prev=program_prefix ;;
670
-program-prefix=* | --program-prefix=* | --program-prefi=* \
671
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672
program_prefix=$ac_optarg ;;
674
-program-suffix | --program-suffix | --program-suffi | --program-suff \
675
| --program-suf | --program-su | --program-s)
676
ac_prev=program_suffix ;;
677
-program-suffix=* | --program-suffix=* | --program-suffi=* \
678
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679
program_suffix=$ac_optarg ;;
681
-program-transform-name | --program-transform-name \
682
| --program-transform-nam | --program-transform-na \
683
| --program-transform-n | --program-transform- \
684
| --program-transform | --program-transfor \
685
| --program-transfo | --program-transf \
686
| --program-trans | --program-tran \
687
| --progr-tra | --program-tr | --program-t)
688
ac_prev=program_transform_name ;;
689
-program-transform-name=* | --program-transform-name=* \
690
| --program-transform-nam=* | --program-transform-na=* \
691
| --program-transform-n=* | --program-transform-=* \
692
| --program-transform=* | --program-transfor=* \
693
| --program-transfo=* | --program-transf=* \
694
| --program-trans=* | --program-tran=* \
695
| --progr-tra=* | --program-tr=* | --program-t=*)
696
program_transform_name=$ac_optarg ;;
698
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
699
| -silent | --silent | --silen | --sile | --sil)
702
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706
sbindir=$ac_optarg ;;
708
-sharedstatedir | --sharedstatedir | --sharedstatedi \
709
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710
| --sharedst | --shareds | --shared | --share | --shar \
712
ac_prev=sharedstatedir ;;
713
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717
sharedstatedir=$ac_optarg ;;
719
-site | --site | --sit)
721
-site=* | --site=* | --sit=*)
724
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730
| --syscon | --sysco | --sysc | --sys | --sy)
731
ac_prev=sysconfdir ;;
732
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734
sysconfdir=$ac_optarg ;;
736
-target | --target | --targe | --targ | --tar | --ta | --t)
737
ac_prev=target_alias ;;
738
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739
target_alias=$ac_optarg ;;
741
-v | -verbose | --verbose | --verbos | --verbo | --verb)
744
-version | --version | --versio | --versi | --vers | -V)
748
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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'`
755
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758
eval "with_$ac_package='$ac_optarg'" ;;
760
-without-* | --without-*)
761
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762
# Reject names that are not valid shell variable names.
763
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764
{ echo "$as_me: error: invalid package name: $ac_package" >&2
765
{ (exit 1); exit 1; }; }
766
ac_package=`echo $ac_package | sed 's/-/_/g'`
767
eval "with_$ac_package=no" ;;
770
# Obsolete; use --with-x.
773
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774
| --x-incl | --x-inc | --x-in | --x-i)
775
ac_prev=x_includes ;;
776
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778
x_includes=$ac_optarg ;;
780
-x-libraries | --x-libraries | --x-librarie | --x-librari \
781
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782
ac_prev=x_libraries ;;
783
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785
x_libraries=$ac_optarg ;;
787
-*) { echo "$as_me: error: unrecognized option: $ac_option
788
Try \`$0 --help' for more information." >&2
789
{ (exit 1); exit 1; }; }
793
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794
# Reject names that are not valid shell variable names.
795
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797
{ (exit 1); exit 1; }; }
798
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799
eval "$ac_envvar='$ac_optarg'"
803
# FIXME: should be removed in autoconf 3.0.
804
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813
if test -n "$ac_prev"; then
814
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815
{ echo "$as_me: error: missing argument to $ac_option" >&2
816
{ (exit 1); exit 1; }; }
819
# Be sure to have absolute paths.
820
for ac_var in exec_prefix prefix
822
eval ac_val=$`echo $ac_var`
824
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
{ (exit 1); exit 1; }; };;
830
# Be sure to have absolute paths.
831
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832
localstatedir libdir includedir oldincludedir infodir mandir
834
eval ac_val=$`echo $ac_var`
836
[\\/$]* | ?:[\\/]* ) ;;
837
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838
{ (exit 1); exit 1; }; };;
842
# There might be people who depend on the old broken behavior: `$host'
843
# used to hold the argument of --host etc.
844
# FIXME: To remove some day.
849
# FIXME: To remove some day.
850
if test "x$host_alias" != x; then
851
if test "x$build_alias" = x; then
852
cross_compiling=maybe
853
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854
If a cross compiler is detected then cross compile mode will be used." >&2
855
elif test "x$build_alias" != "x$host_alias"; then
861
test -n "$host_alias" && ac_tool_prefix=$host_alias-
863
test "$silent" = yes && exec 6>/dev/null
866
# Find the source files, if location was not specified.
867
if test -z "$srcdir"; then
868
ac_srcdir_defaulted=yes
869
# Try the directory containing this script, then its parent.
870
ac_confdir=`(dirname "$0") 2>/dev/null ||
871
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872
X"$0" : 'X\(//\)[^/]' \| \
873
X"$0" : 'X\(//\)$' \| \
874
X"$0" : 'X\(/\)' \| \
875
. : '\(.\)' 2>/dev/null ||
877
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
879
/^X\(\/\/\)$/{ s//\1/; q; }
880
/^X\(\/\).*/{ s//\1/; q; }
883
if test ! -r $srcdir/$ac_unique_file; then
887
ac_srcdir_defaulted=no
889
if test ! -r $srcdir/$ac_unique_file; then
890
if test "$ac_srcdir_defaulted" = yes; then
891
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892
{ (exit 1); exit 1; }; }
894
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895
{ (exit 1); exit 1; }; }
898
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900
{ (exit 1); exit 1; }; }
901
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902
ac_env_build_alias_set=${build_alias+set}
903
ac_env_build_alias_value=$build_alias
904
ac_cv_env_build_alias_set=${build_alias+set}
905
ac_cv_env_build_alias_value=$build_alias
906
ac_env_host_alias_set=${host_alias+set}
907
ac_env_host_alias_value=$host_alias
908
ac_cv_env_host_alias_set=${host_alias+set}
909
ac_cv_env_host_alias_value=$host_alias
910
ac_env_target_alias_set=${target_alias+set}
911
ac_env_target_alias_value=$target_alias
912
ac_cv_env_target_alias_set=${target_alias+set}
913
ac_cv_env_target_alias_value=$target_alias
914
ac_env_CC_set=${CC+set}
916
ac_cv_env_CC_set=${CC+set}
917
ac_cv_env_CC_value=$CC
918
ac_env_CFLAGS_set=${CFLAGS+set}
919
ac_env_CFLAGS_value=$CFLAGS
920
ac_cv_env_CFLAGS_set=${CFLAGS+set}
921
ac_cv_env_CFLAGS_value=$CFLAGS
922
ac_env_LDFLAGS_set=${LDFLAGS+set}
923
ac_env_LDFLAGS_value=$LDFLAGS
924
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925
ac_cv_env_LDFLAGS_value=$LDFLAGS
926
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927
ac_env_CPPFLAGS_value=$CPPFLAGS
928
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930
ac_env_CXX_set=${CXX+set}
931
ac_env_CXX_value=$CXX
932
ac_cv_env_CXX_set=${CXX+set}
933
ac_cv_env_CXX_value=$CXX
934
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_env_CXXFLAGS_value=$CXXFLAGS
936
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938
ac_env_CPP_set=${CPP+set}
939
ac_env_CPP_value=$CPP
940
ac_cv_env_CPP_set=${CPP+set}
941
ac_cv_env_CPP_value=$CPP
944
# Report the --help message.
946
if test "$ac_init_help" = "long"; then
947
# Omit some internal or obsolete options to make the list less imposing.
948
# This message is too long to be a string in the A/UX 3.1 sh.
950
\`configure' configures Berkeley DB 4.1.25 to adapt to many kinds of systems.
952
Usage: $0 [OPTION]... [VAR=VALUE]...
954
To assign environment variables (e.g., CC, CFLAGS...), specify them as
955
VAR=VALUE. See below for descriptions of some of the useful variables.
957
Defaults for the options are specified in brackets.
960
-h, --help display this help and exit
961
--help=short display options specific to this package
962
--help=recursive display the short help of all the included packages
963
-V, --version display version information and exit
964
-q, --quiet, --silent do not print \`checking...' messages
965
--cache-file=FILE cache test results in FILE [disabled]
966
-C, --config-cache alias for \`--cache-file=config.cache'
967
-n, --no-create do not create output files
968
--srcdir=DIR find the sources in DIR [configure dir or \`..']
973
Installation directories:
974
--prefix=PREFIX install architecture-independent files in PREFIX
976
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
979
By default, \`make install' will install all the files in
980
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982
for instance \`--prefix=\$HOME'.
984
For better control, use the options below.
986
Fine tuning of the installation directories:
987
--bindir=DIR user executables [EPREFIX/bin]
988
--sbindir=DIR system admin executables [EPREFIX/sbin]
989
--libexecdir=DIR program executables [EPREFIX/libexec]
990
--datadir=DIR read-only architecture-independent data [PREFIX/share]
991
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
992
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
993
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
994
--libdir=DIR object code libraries [EPREFIX/lib]
995
--includedir=DIR C header files [PREFIX/include]
996
--oldincludedir=DIR C header files for non-gcc [/usr/include]
997
--infodir=DIR info documentation [PREFIX/info]
998
--mandir=DIR man documentation [PREFIX/man]
1004
--program-prefix=PREFIX prepend PREFIX to installed program names
1005
--program-suffix=SUFFIX append SUFFIX to installed program names
1006
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1009
--build=BUILD configure for building on BUILD [guessed]
1010
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1014
if test -n "$ac_init_help"; then
1015
case $ac_init_help in
1016
short | recursive ) echo "Configuration of Berkeley DB 4.1.25:";;
1021
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023
--disable-bigfile Obsolete; use --disable-largefile instead.
1024
--enable-compat185 Build DB 1.85 compatibility API.
1025
--enable-cxx Build C++ API.
1026
--enable-debug Build a debugging version.
1027
--enable-debug_rop Build a version that logs read operations.
1028
--enable-debug_wop Build a version that logs write operations.
1029
--enable-diagnostic Build a version with run-time diagnostics.
1030
--enable-dump185 Build db_dump185(1) to dump 1.85 databases.
1031
--enable-java Build Java API.
1032
--enable-pthreadsmutexes
1033
Use POSIX pthreads mutexes.
1034
--enable-posixmutexes Force use of POSIX standard mutexes.
1035
--enable-rpc Build RPC client/server.
1036
--enable-tcl Build Tcl API.
1037
--enable-test Configure to run the test suite.
1038
--enable-uimutexes Force use of Unix International mutexes.
1039
--enable-umrw Mask harmless unitialized memory read/writes.
1040
--enable-shared=PKGS build shared libraries default=yes
1041
--enable-static=PKGS build static libraries default=yes
1042
--enable-fast-install=PKGS optimize for fast installation default=yes
1043
--disable-libtool-lock avoid locking (might break parallel builds)
1044
--disable-largefile omit support for large files
1047
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049
--with-embedix=DIR Embedix install directory location.
1050
--with-mutex=MUTEX Selection of non-standard mutexes.
1051
--with-rpm=DIR Directory location of RPM archive.
1052
--with-tcl=DIR Directory location of tclConfig.sh.
1053
--with-uniquename=NAME Build a uniquely named library.
1054
--with-gnu-ld assume the C compiler uses GNU ld default=no
1055
--with-pic try to use only PIC/non-PIC objects default=use both
1057
Some influential environment variables:
1058
CC C compiler command
1059
CFLAGS C compiler flags
1060
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061
nonstandard directory <lib dir>
1062
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
headers in a nonstandard directory <include dir>
1064
CXX C++ compiler command
1065
CXXFLAGS C++ compiler flags
1068
Use these variables to override the choices made by `configure' or to help
1069
it to find libraries and programs with nonstandard names/locations.
1071
Report bugs to <support@sleepycat.com>.
1075
if test "$ac_init_help" = "recursive"; then
1076
# If there are subdirs, report their specific --help.
1078
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079
test -d $ac_dir || continue
1082
if test "$ac_dir" != .; then
1083
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084
# A "../" for each directory in $ac_dir_suffix.
1085
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087
ac_dir_suffix= ac_top_builddir=
1091
.) # No --srcdir option. We are building in place.
1093
if test -z "$ac_top_builddir"; then
1096
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098
[\\/]* | ?:[\\/]* ) # Absolute path.
1099
ac_srcdir=$srcdir$ac_dir_suffix;
1100
ac_top_srcdir=$srcdir ;;
1102
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
# Check for guested configure; otherwise get Cygnus style configure.
1114
if test -f $ac_srcdir/configure.gnu; then
1116
$SHELL $ac_srcdir/configure.gnu --help=recursive
1117
elif test -f $ac_srcdir/configure; then
1119
$SHELL $ac_srcdir/configure --help=recursive
1120
elif test -f $ac_srcdir/configure.ac ||
1121
test -f $ac_srcdir/configure.in; then
1123
$ac_configure --help
1125
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131
test -n "$ac_init_help" && exit 0
1132
if $ac_init_version; then
1134
Berkeley DB configure 4.1.25
1135
generated by GNU Autoconf 2.57
1137
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138
Free Software Foundation, Inc.
1139
This configure script is free software; the Free Software Foundation
1140
gives unlimited permission to copy, distribute and modify it.
1146
This file contains any messages produced by compilers while
1147
running configure, to aid debugging if configure makes a mistake.
1149
It was created by Berkeley DB $as_me 4.1.25, which was
1150
generated by GNU Autoconf 2.57. Invocation command line was
1161
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184
test -z "$as_dir" && as_dir=.
1185
echo "PATH: $as_dir"
1200
# Keep a trace of the command line.
1201
# Strip out --no-create and --no-recursion so they do not pile up.
1202
# Strip out --silent because we don't want to record it for future runs.
1203
# Also quote any args containing shell meta-characters.
1204
# Make two passes to allow for proper duplicate-argument suppression.
1209
ac_must_keep_next=false
1215
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217
| -silent | --silent | --silen | --sile | --sil)
1219
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226
if test $ac_must_keep_next = true; then
1227
ac_must_keep_next=false # Got value, back to normal.
1230
*=* | --config-cache | -C | -disable-* | --disable-* \
1231
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233
| -with-* | --with-* | -without-* | --without-* | --x)
1234
case "$ac_configure_args0 " in
1235
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238
-* ) ac_must_keep_next=true ;;
1241
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242
# Get rid of the leading space.
1248
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
# When interrupted or exit'd, cleanup temporary files, and complete
1252
# config.log. We remove comments because anyway the quotes in there
1253
# would cause problems or look ugly.
1254
# WARNING: Be sure not to use single quotes in there, as some shells,
1255
# such as our DU 5.0 friend, will then `close' the trap.
1256
trap 'exit_status=$?
1257
# Save into config.log some information that might help in debugging.
1262
## ---------------- ##
1263
## Cache variables. ##
1264
## ---------------- ##
1267
# The following way of writing the cache mishandles newlines in values,
1270
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285
## ----------------- ##
1286
## Output variables. ##
1287
## ----------------- ##
1290
for ac_var in $ac_subst_vars
1292
eval ac_val=$`echo $ac_var`
1293
echo "$ac_var='"'"'$ac_val'"'"'"
1297
if test -n "$ac_subst_files"; then
1304
for ac_var in $ac_subst_files
1306
eval ac_val=$`echo $ac_var`
1307
echo "$ac_var='"'"'$ac_val'"'"'"
1312
if test -s confdefs.h; then
1319
sed "/^$/d" confdefs.h | sort
1322
test "$ac_signal" != 0 &&
1323
echo "$as_me: caught signal $ac_signal"
1324
echo "$as_me: exit $exit_status"
1326
rm -f core core.* *.core &&
1327
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330
for ac_signal in 1 2 13 15; do
1331
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336
rm -rf conftest* confdefs.h
1337
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340
# Predefined preprocessor variables.
1342
cat >>confdefs.h <<_ACEOF
1343
#define PACKAGE_NAME "$PACKAGE_NAME"
1347
cat >>confdefs.h <<_ACEOF
1348
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352
cat >>confdefs.h <<_ACEOF
1353
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1357
cat >>confdefs.h <<_ACEOF
1358
#define PACKAGE_STRING "$PACKAGE_STRING"
1362
cat >>confdefs.h <<_ACEOF
1363
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367
# Let the site file select an alternate cache file if it wants to.
1368
# Prefer explicitly selected file to automatically selected ones.
1369
if test -z "$CONFIG_SITE"; then
1370
if test "x$prefix" != xNONE; then
1371
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376
for ac_site_file in $CONFIG_SITE; do
1377
if test -r "$ac_site_file"; then
1378
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379
echo "$as_me: loading site script $ac_site_file" >&6;}
1380
sed 's/^/| /' "$ac_site_file" >&5
1385
if test -r "$cache_file"; then
1386
# Some versions of bash will fail to source /dev/null (special
1387
# files actually), so we avoid doing that.
1388
if test -f "$cache_file"; then
1389
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390
echo "$as_me: loading cache $cache_file" >&6;}
1392
[\\/]* | ?:[\\/]* ) . $cache_file;;
1393
*) . ./$cache_file;;
1397
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398
echo "$as_me: creating cache $cache_file" >&6;}
1402
# Check that the precious variables saved in the cache have kept the same
1404
ac_cache_corrupted=false
1405
for ac_var in `(set) 2>&1 |
1406
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408
eval ac_new_set=\$ac_env_${ac_var}_set
1409
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410
eval ac_new_val="\$ac_env_${ac_var}_value"
1411
case $ac_old_set,$ac_new_set in
1413
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415
ac_cache_corrupted=: ;;
1417
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419
ac_cache_corrupted=: ;;
1422
if test "x$ac_old_val" != "x$ac_new_val"; then
1423
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426
echo "$as_me: former value: $ac_old_val" >&2;}
1427
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428
echo "$as_me: current value: $ac_new_val" >&2;}
1429
ac_cache_corrupted=:
1432
# Pass precious variables to config.status.
1433
if test "$ac_new_set" = set; then
1435
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437
*) ac_arg=$ac_var=$ac_new_val ;;
1439
case " $ac_configure_args " in
1440
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445
if $ac_cache_corrupted; then
1446
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450
{ (exit 1); exit 1; }; }
1454
ac_cpp='$CPP $CPPFLAGS'
1455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
ac_config_headers="$ac_config_headers db_config.h:config.hin"
1491
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1492
if test -f $ac_dir/install-sh; then
1494
ac_install_sh="$ac_aux_dir/install-sh -c"
1496
elif test -f $ac_dir/install.sh; then
1498
ac_install_sh="$ac_aux_dir/install.sh -c"
1500
elif test -f $ac_dir/shtool; then
1502
ac_install_sh="$ac_aux_dir/shtool install -c"
1506
if test -z "$ac_aux_dir"; then
1507
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1508
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1509
{ (exit 1); exit 1; }; }
1511
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
# Make sure we can run config.sub.
1516
$ac_config_sub sun4 >/dev/null 2>&1 ||
1517
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519
{ (exit 1); exit 1; }; }
1521
echo "$as_me:$LINENO: checking build system type" >&5
1522
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523
if test "${ac_cv_build+set}" = set; then
1524
echo $ECHO_N "(cached) $ECHO_C" >&6
1526
ac_cv_build_alias=$build_alias
1527
test -z "$ac_cv_build_alias" &&
1528
ac_cv_build_alias=`$ac_config_guess`
1529
test -z "$ac_cv_build_alias" &&
1530
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532
{ (exit 1); exit 1; }; }
1533
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536
{ (exit 1); exit 1; }; }
1539
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540
echo "${ECHO_T}$ac_cv_build" >&6
1542
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
echo "$as_me:$LINENO: checking host system type" >&5
1548
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549
if test "${ac_cv_host+set}" = set; then
1550
echo $ECHO_N "(cached) $ECHO_C" >&6
1552
ac_cv_host_alias=$host_alias
1553
test -z "$ac_cv_host_alias" &&
1554
ac_cv_host_alias=$ac_cv_build_alias
1555
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558
{ (exit 1); exit 1; }; }
1561
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562
echo "${ECHO_T}$ac_cv_host" >&6
1564
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
test "$program_prefix" != NONE &&
1570
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1571
# Use a double $ so make ignores it.
1572
test "$program_suffix" != NONE &&
1573
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1574
# Double any \ or $. echo might interpret backslashes.
1575
# By default was `s,x,x', remove it if useless.
1576
cat <<\_ACEOF >conftest.sed
1577
s/[\\$]/&&/g;s/;s,x,x,$//
1579
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1583
# We cannot build in the top-level directory.
1584
echo "$as_me:$LINENO: checking if building in the top-level directory" >&5
1585
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
1586
test -d db_archive && { { echo "$as_me:$LINENO: error:
1587
Berkeley DB cannot be built in the top-level distribution directory." >&5
1588
echo "$as_me: error:
1589
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
1590
{ (exit 1); exit 1; }; }
1591
echo "$as_me:$LINENO: result: no" >&5
1592
echo "${ECHO_T}no" >&6
1594
# Substitution variables.
1640
# RPM needs the current absolute path.
1641
# RPM needs the list of original arguments, but we don't include the RPM
1643
CONFIGURATION_PATH=${PWD-`pwd`}
1644
CONFIGURATION_ARGS=`echo "$*" |
1645
sed -e 's/--with-embedix[^ ]*//' -e 's/--with-rpm[^ ]*//'`
1656
DB_VERSION_UNIQUE_NAME=_4001
1658
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.1.25: (October 11, 2004)\""
1661
# Set the default installation location.
1664
# Process all options before using them.
1667
# --enable-bigfile was the configuration option that Berkeley DB used before
1668
# autoconf 2.50 was released (which had --enable-largefile integrated in).
1669
# Check whether --enable-bigfile or --disable-bigfile was given.
1670
if test "${enable_bigfile+set}" = set; then
1671
enableval="$enable_bigfile"
1672
{ { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
1673
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
1674
{ (exit 1); exit 1; }; }
1677
echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
1678
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
1679
# Check whether --enable-compat185 or --disable-compat185 was given.
1680
if test "${enable_compat185+set}" = set; then
1681
enableval="$enable_compat185"
1682
db_cv_compat185="$enable_compat185"
1684
db_cv_compat185="no"
1686
echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
1687
echo "${ECHO_T}$db_cv_compat185" >&6
1689
echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
1690
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
1691
# Check whether --enable-cxx or --disable-cxx was given.
1692
if test "${enable_cxx+set}" = set; then
1693
enableval="$enable_cxx"
1694
db_cv_cxx="$enable_cxx"
1698
echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
1699
echo "${ECHO_T}$db_cv_cxx" >&6
1701
echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1702
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1703
# Check whether --enable-debug or --disable-debug was given.
1704
if test "${enable_debug+set}" = set; then
1705
enableval="$enable_debug"
1706
db_cv_debug="$enable_debug"
1710
echo "$as_me:$LINENO: result: $db_cv_debug" >&5
1711
echo "${ECHO_T}$db_cv_debug" >&6
1713
echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
1714
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
1715
# Check whether --enable-debug_rop or --disable-debug_rop was given.
1716
if test "${enable_debug_rop+set}" = set; then
1717
enableval="$enable_debug_rop"
1718
db_cv_debug_rop="$enable_debug_rop"
1720
db_cv_debug_rop="no"
1722
echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
1723
echo "${ECHO_T}$db_cv_debug_rop" >&6
1725
echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
1726
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
1727
# Check whether --enable-debug_wop or --disable-debug_wop was given.
1728
if test "${enable_debug_wop+set}" = set; then
1729
enableval="$enable_debug_wop"
1730
db_cv_debug_wop="$enable_debug_wop"
1732
db_cv_debug_wop="no"
1734
echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
1735
echo "${ECHO_T}$db_cv_debug_wop" >&6
1737
echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
1738
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
1739
# Check whether --enable-diagnostic or --disable-diagnostic was given.
1740
if test "${enable_diagnostic+set}" = set; then
1741
enableval="$enable_diagnostic"
1742
db_cv_diagnostic="$enable_diagnostic"
1744
db_cv_diagnostic="no"
1746
echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
1747
echo "${ECHO_T}$db_cv_diagnostic" >&6
1749
echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
1750
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
1751
# Check whether --enable-dump185 or --disable-dump185 was given.
1752
if test "${enable_dump185+set}" = set; then
1753
enableval="$enable_dump185"
1754
db_cv_dump185="$enable_dump185"
1758
echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
1759
echo "${ECHO_T}$db_cv_dump185" >&6
1761
echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
1762
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
1763
# Check whether --enable-java or --disable-java was given.
1764
if test "${enable_java+set}" = set; then
1765
enableval="$enable_java"
1766
db_cv_java="$enable_java"
1770
echo "$as_me:$LINENO: result: $db_cv_java" >&5
1771
echo "${ECHO_T}$db_cv_java" >&6
1773
echo "$as_me:$LINENO: checking if --enable-pthreadsmutexes option specified" >&5
1774
echo $ECHO_N "checking if --enable-pthreadsmutexes option specified... $ECHO_C" >&6
1775
# Check whether --enable-pthreadsmutexes or --disable-pthreadsmutexes was given.
1776
if test "${enable_pthreadsmutexes+set}" = set; then
1777
enableval="$enable_pthreadsmutexes"
1782
db_cv_pthreadsmutexes="$enableval"
1783
case "$enableval" in
1784
no) echo "$as_me:$LINENO: result: yes" >&5
1785
echo "${ECHO_T}yes" >&6;;
1786
yes) echo "$as_me:$LINENO: result: no" >&5
1787
echo "${ECHO_T}no" >&6;;
1790
echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
1791
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
1792
# Check whether --enable-posixmutexes or --disable-posixmutexes was given.
1793
if test "${enable_posixmutexes+set}" = set; then
1794
enableval="$enable_posixmutexes"
1795
db_cv_posixmutexes="$enable_posixmutexes"
1797
db_cv_posixmutexes="no"
1799
echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
1800
echo "${ECHO_T}$db_cv_posixmutexes" >&6
1802
echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
1803
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
1804
# Check whether --enable-rpc or --disable-rpc was given.
1805
if test "${enable_rpc+set}" = set; then
1806
enableval="$enable_rpc"
1807
db_cv_rpc="$enable_rpc"
1811
echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
1812
echo "${ECHO_T}$db_cv_rpc" >&6
1814
echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
1815
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
1816
# Check whether --enable-tcl or --disable-tcl was given.
1817
if test "${enable_tcl+set}" = set; then
1818
enableval="$enable_tcl"
1819
db_cv_tcl="$enable_tcl"
1823
echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
1824
echo "${ECHO_T}$db_cv_tcl" >&6
1826
echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
1827
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
1828
# Check whether --enable-test or --disable-test was given.
1829
if test "${enable_test+set}" = set; then
1830
enableval="$enable_test"
1831
db_cv_test="$enable_test"
1835
echo "$as_me:$LINENO: result: $db_cv_test" >&5
1836
echo "${ECHO_T}$db_cv_test" >&6
1838
echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
1839
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
1840
# Check whether --enable-uimutexes or --disable-uimutexes was given.
1841
if test "${enable_uimutexes+set}" = set; then
1842
enableval="$enable_uimutexes"
1843
db_cv_uimutexes="$enable_uimutexes"
1845
db_cv_uimutexes="no"
1847
echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
1848
echo "${ECHO_T}$db_cv_uimutexes" >&6
1850
echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
1851
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
1852
# Check whether --enable-umrw or --disable-umrw was given.
1853
if test "${enable_umrw+set}" = set; then
1854
enableval="$enable_umrw"
1855
db_cv_umrw="$enable_umrw"
1859
echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
1860
echo "${ECHO_T}$db_cv_umrw" >&6
1862
echo "$as_me:$LINENO: checking if --with-embedix=DIR option specified" >&5
1863
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
1865
# Check whether --with-embedix or --without-embedix was given.
1866
if test "${with_embedix+set}" = set; then
1867
withval="$with_embedix"
1868
with_embedix="$withval"
1872
if test "$with_embedix" = "no"; then
1874
echo "$as_me:$LINENO: result: $with_embedix" >&5
1875
echo "${ECHO_T}$with_embedix" >&6
1878
if test "$with_embedix" = "yes"; then
1879
db_cv_path_embedix_install="/opt/Embedix"
1881
db_cv_path_embedix_install="$with_embedix"
1883
echo "$as_me:$LINENO: result: $db_cv_path_embedix_install" >&5
1884
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
1887
echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
1888
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6
1890
# Check whether --with-mutex or --without-mutex was given.
1891
if test "${with_mutex+set}" = set; then
1892
withval="$with_mutex"
1893
with_mutex="$withval"
1897
if test "$with_mutex" = "yes"; then
1898
{ { echo "$as_me:$LINENO: error: --with-mutex requires a mutex name argument" >&5
1899
echo "$as_me: error: --with-mutex requires a mutex name argument" >&2;}
1900
{ (exit 1); exit 1; }; }
1902
if test "$with_mutex" != "no"; then
1903
db_cv_mutex="$with_mutex"
1905
echo "$as_me:$LINENO: result: $with_mutex" >&5
1906
echo "${ECHO_T}$with_mutex" >&6
1908
echo "$as_me:$LINENO: checking if --with-rpm=DIR option specified" >&5
1909
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6
1911
# Check whether --with-rpm or --without-rpm was given.
1912
if test "${with_rpm+set}" = set; then
1918
if test "$with_rpm" = "no"; then
1921
if test "$with_rpm" = "yes"; then
1922
{ { echo "$as_me:$LINENO: error: --with-rpm requires a directory argument" >&5
1923
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
1924
{ (exit 1); exit 1; }; }
1927
db_cv_path_rpm_archive="$with_rpm"
1929
echo "$as_me:$LINENO: result: $with_rpm" >&5
1930
echo "${ECHO_T}$with_rpm" >&6
1932
echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
1933
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
1935
# Check whether --with-tcl or --without-tcl was given.
1936
if test "${with_tcl+set}" = set; then
1938
with_tclconfig="$withval"
1942
echo "$as_me:$LINENO: result: $with_tclconfig" >&5
1943
echo "${ECHO_T}$with_tclconfig" >&6
1944
if test "$with_tclconfig" != "no"; then
1948
echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
1949
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6
1951
# Check whether --with-uniquename or --without-uniquename was given.
1952
if test "${with_uniquename+set}" = set; then
1953
withval="$with_uniquename"
1954
with_uniquename="$withval"
1956
with_uniquename="_eds"
1958
if test "$with_uniquename" = "no"; then
1959
db_cv_uniquename="no"
1960
echo "$as_me:$LINENO: result: $with_uniquename" >&5
1961
echo "${ECHO_T}$with_uniquename" >&6
1963
db_cv_uniquename="yes"
1964
if test "$with_uniquename" != "yes"; then
1965
DB_VERSION_UNIQUE_NAME="$with_uniquename"
1967
echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
1968
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
1971
# Embedix requires RPM.
1972
if test "$db_cv_embedix" = "yes"; then
1973
if test "$db_cv_rpm" = "no"; then
1974
{ { echo "$as_me:$LINENO: error: --with-embedix requires --with-rpm" >&5
1975
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
1976
{ (exit 1); exit 1; }; }
1981
if test "$db_cv_test" = "yes"; then
1982
if test "$db_cv_tcl" = "no"; then
1983
{ { echo "$as_me:$LINENO: error: --enable-test requires --enable-tcl" >&5
1984
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
1985
{ (exit 1); exit 1; }; }
1989
# Set some #defines based on configuration options.
1990
if test "$db_cv_diagnostic" = yes; then
1991
cat >>confdefs.h <<\_ACEOF
1992
#define DIAGNOSTIC 1
1998
if test "$db_cv_debug_rop" = yes; then
1999
cat >>confdefs.h <<\_ACEOF
2006
if test "$db_cv_debug_wop" = yes; then
2007
cat >>confdefs.h <<\_ACEOF
2014
if test "$db_cv_umrw" = yes; then
2015
cat >>confdefs.h <<\_ACEOF
2023
if test "$db_cv_test" = yes; then
2024
cat >>confdefs.h <<\_ACEOF
2025
#define CONFIG_TEST 1
2032
# Check for programs used in building and installation.
2035
if test -n "$ac_tool_prefix"; then
2036
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2037
set dummy ${ac_tool_prefix}ar; ac_word=$2
2038
echo "$as_me:$LINENO: checking for $ac_word" >&5
2039
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
2041
echo $ECHO_N "(cached) $ECHO_C" >&6
2043
if test -n "$db_cv_path_ar"; then
2044
ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
2046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050
test -z "$as_dir" && as_dir=.
2051
for ac_exec_ext in '' $ac_executable_extensions; do
2052
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053
ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
2054
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
2063
if test -n "$db_cv_path_ar"; then
2064
echo "$as_me:$LINENO: result: $db_cv_path_ar" >&5
2065
echo "${ECHO_T}$db_cv_path_ar" >&6
2067
echo "$as_me:$LINENO: result: no" >&5
2068
echo "${ECHO_T}no" >&6
2072
if test -z "$ac_cv_prog_db_cv_path_ar"; then
2073
ac_ct_db_cv_path_ar=$db_cv_path_ar
2074
# Extract the first word of "ar", so it can be a program name with args.
2075
set dummy ar; ac_word=$2
2076
echo "$as_me:$LINENO: checking for $ac_word" >&5
2077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
2079
echo $ECHO_N "(cached) $ECHO_C" >&6
2081
if test -n "$ac_ct_db_cv_path_ar"; then
2082
ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
2084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088
test -z "$as_dir" && as_dir=.
2089
for ac_exec_ext in '' $ac_executable_extensions; do
2090
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091
ac_cv_prog_ac_ct_db_cv_path_ar="ar"
2092
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098
test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
2101
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
2102
if test -n "$ac_ct_db_cv_path_ar"; then
2103
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ar" >&5
2104
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
2106
echo "$as_me:$LINENO: result: no" >&5
2107
echo "${ECHO_T}no" >&6
2110
db_cv_path_ar=$ac_ct_db_cv_path_ar
2112
db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
2115
if test "$db_cv_path_ar" = missing_ar; then
2116
{ { echo "$as_me:$LINENO: error: No ar utility found." >&5
2117
echo "$as_me: error: No ar utility found." >&2;}
2118
{ (exit 1); exit 1; }; }
2121
if test -n "$ac_tool_prefix"; then
2122
# Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
2123
set dummy ${ac_tool_prefix}chmod; ac_word=$2
2124
echo "$as_me:$LINENO: checking for $ac_word" >&5
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
2127
echo $ECHO_N "(cached) $ECHO_C" >&6
2129
if test -n "$db_cv_path_chmod"; then
2130
ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
2132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136
test -z "$as_dir" && as_dir=.
2137
for ac_exec_ext in '' $ac_executable_extensions; do
2138
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139
ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
2140
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
2149
if test -n "$db_cv_path_chmod"; then
2150
echo "$as_me:$LINENO: result: $db_cv_path_chmod" >&5
2151
echo "${ECHO_T}$db_cv_path_chmod" >&6
2153
echo "$as_me:$LINENO: result: no" >&5
2154
echo "${ECHO_T}no" >&6
2158
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
2159
ac_ct_db_cv_path_chmod=$db_cv_path_chmod
2160
# Extract the first word of "chmod", so it can be a program name with args.
2161
set dummy chmod; ac_word=$2
2162
echo "$as_me:$LINENO: checking for $ac_word" >&5
2163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
2165
echo $ECHO_N "(cached) $ECHO_C" >&6
2167
if test -n "$ac_ct_db_cv_path_chmod"; then
2168
ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
2170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174
test -z "$as_dir" && as_dir=.
2175
for ac_exec_ext in '' $ac_executable_extensions; do
2176
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177
ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
2178
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184
test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
2187
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
2188
if test -n "$ac_ct_db_cv_path_chmod"; then
2189
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_chmod" >&5
2190
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
2192
echo "$as_me:$LINENO: result: no" >&5
2193
echo "${ECHO_T}no" >&6
2196
db_cv_path_chmod=$ac_ct_db_cv_path_chmod
2198
db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
2201
if test "$db_cv_path_chmod" = missing_chmod; then
2202
{ { echo "$as_me:$LINENO: error: No chmod utility found." >&5
2203
echo "$as_me: error: No chmod utility found." >&2;}
2204
{ (exit 1); exit 1; }; }
2207
if test -n "$ac_tool_prefix"; then
2208
# Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
2209
set dummy ${ac_tool_prefix}cp; ac_word=$2
2210
echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
2213
echo $ECHO_N "(cached) $ECHO_C" >&6
2215
if test -n "$db_cv_path_cp"; then
2216
ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
for ac_exec_ext in '' $ac_executable_extensions; do
2224
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225
ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
2226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
2235
if test -n "$db_cv_path_cp"; then
2236
echo "$as_me:$LINENO: result: $db_cv_path_cp" >&5
2237
echo "${ECHO_T}$db_cv_path_cp" >&6
2239
echo "$as_me:$LINENO: result: no" >&5
2240
echo "${ECHO_T}no" >&6
2244
if test -z "$ac_cv_prog_db_cv_path_cp"; then
2245
ac_ct_db_cv_path_cp=$db_cv_path_cp
2246
# Extract the first word of "cp", so it can be a program name with args.
2247
set dummy cp; ac_word=$2
2248
echo "$as_me:$LINENO: checking for $ac_word" >&5
2249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
2251
echo $ECHO_N "(cached) $ECHO_C" >&6
2253
if test -n "$ac_ct_db_cv_path_cp"; then
2254
ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260
test -z "$as_dir" && as_dir=.
2261
for ac_exec_ext in '' $ac_executable_extensions; do
2262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263
ac_cv_prog_ac_ct_db_cv_path_cp="cp"
2264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270
test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
2273
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
2274
if test -n "$ac_ct_db_cv_path_cp"; then
2275
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_cp" >&5
2276
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
2278
echo "$as_me:$LINENO: result: no" >&5
2279
echo "${ECHO_T}no" >&6
2282
db_cv_path_cp=$ac_ct_db_cv_path_cp
2284
db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
2287
if test "$db_cv_path_cp" = missing_cp; then
2288
{ { echo "$as_me:$LINENO: error: No cp utility found." >&5
2289
echo "$as_me: error: No cp utility found." >&2;}
2290
{ (exit 1); exit 1; }; }
2293
if test "$db_cv_rpm" = "yes"; then
2294
if test -n "$ac_tool_prefix"; then
2295
# Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
2296
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
2297
echo "$as_me:$LINENO: checking for $ac_word" >&5
2298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
2300
echo $ECHO_N "(cached) $ECHO_C" >&6
2302
if test -n "$path_ldconfig"; then
2303
ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
2305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309
test -z "$as_dir" && as_dir=.
2310
for ac_exec_ext in '' $ac_executable_extensions; do
2311
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312
ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
2313
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
path_ldconfig=$ac_cv_prog_path_ldconfig
2322
if test -n "$path_ldconfig"; then
2323
echo "$as_me:$LINENO: result: $path_ldconfig" >&5
2324
echo "${ECHO_T}$path_ldconfig" >&6
2326
echo "$as_me:$LINENO: result: no" >&5
2327
echo "${ECHO_T}no" >&6
2331
if test -z "$ac_cv_prog_path_ldconfig"; then
2332
ac_ct_path_ldconfig=$path_ldconfig
2333
# Extract the first word of "ldconfig", so it can be a program name with args.
2334
set dummy ldconfig; ac_word=$2
2335
echo "$as_me:$LINENO: checking for $ac_word" >&5
2336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
2338
echo $ECHO_N "(cached) $ECHO_C" >&6
2340
if test -n "$ac_ct_path_ldconfig"; then
2341
ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
2343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347
test -z "$as_dir" && as_dir=.
2348
for ac_exec_ext in '' $ac_executable_extensions; do
2349
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350
ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
2351
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357
test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
2360
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
2361
if test -n "$ac_ct_path_ldconfig"; then
2362
echo "$as_me:$LINENO: result: $ac_ct_path_ldconfig" >&5
2363
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
2365
echo "$as_me:$LINENO: result: no" >&5
2366
echo "${ECHO_T}no" >&6
2369
path_ldconfig=$ac_ct_path_ldconfig
2371
path_ldconfig="$ac_cv_prog_path_ldconfig"
2374
# Extract the first word of "$path_ldconfig", so it can be a program name with args.
2375
set dummy $path_ldconfig; ac_word=$2
2376
echo "$as_me:$LINENO: checking for $ac_word" >&5
2377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
2379
echo $ECHO_N "(cached) $ECHO_C" >&6
2381
case $db_cv_path_ldconfig in
2383
ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
2386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390
test -z "$as_dir" && as_dir=.
2391
for ac_exec_ext in '' $ac_executable_extensions; do
2392
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393
ac_cv_path_db_cv_path_ldconfig="$as_dir/$ac_word$ac_exec_ext"
2394
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400
test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
2404
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig
2406
if test -n "$db_cv_path_ldconfig"; then
2407
echo "$as_me:$LINENO: result: $db_cv_path_ldconfig" >&5
2408
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
2410
echo "$as_me:$LINENO: result: no" >&5
2411
echo "${ECHO_T}no" >&6
2414
if test "$db_cv_path_ldconfig" != missing_ldconfig; then
2415
RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
2416
RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
2420
if test -n "$ac_tool_prefix"; then
2421
# Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
2422
set dummy ${ac_tool_prefix}ln; ac_word=$2
2423
echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
2426
echo $ECHO_N "(cached) $ECHO_C" >&6
2428
if test -n "$db_cv_path_ln"; then
2429
ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435
test -z "$as_dir" && as_dir=.
2436
for ac_exec_ext in '' $ac_executable_extensions; do
2437
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438
ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
2439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
2448
if test -n "$db_cv_path_ln"; then
2449
echo "$as_me:$LINENO: result: $db_cv_path_ln" >&5
2450
echo "${ECHO_T}$db_cv_path_ln" >&6
2452
echo "$as_me:$LINENO: result: no" >&5
2453
echo "${ECHO_T}no" >&6
2457
if test -z "$ac_cv_prog_db_cv_path_ln"; then
2458
ac_ct_db_cv_path_ln=$db_cv_path_ln
2459
# Extract the first word of "ln", so it can be a program name with args.
2460
set dummy ln; ac_word=$2
2461
echo "$as_me:$LINENO: checking for $ac_word" >&5
2462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
2464
echo $ECHO_N "(cached) $ECHO_C" >&6
2466
if test -n "$ac_ct_db_cv_path_ln"; then
2467
ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
2469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473
test -z "$as_dir" && as_dir=.
2474
for ac_exec_ext in '' $ac_executable_extensions; do
2475
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476
ac_cv_prog_ac_ct_db_cv_path_ln="ln"
2477
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483
test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
2486
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
2487
if test -n "$ac_ct_db_cv_path_ln"; then
2488
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ln" >&5
2489
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
2491
echo "$as_me:$LINENO: result: no" >&5
2492
echo "${ECHO_T}no" >&6
2495
db_cv_path_ln=$ac_ct_db_cv_path_ln
2497
db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
2500
if test "$db_cv_path_ln" = missing_ln; then
2501
{ { echo "$as_me:$LINENO: error: No ln utility found." >&5
2502
echo "$as_me: error: No ln utility found." >&2;}
2503
{ (exit 1); exit 1; }; }
2506
if test -n "$ac_tool_prefix"; then
2507
# Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
2508
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
2509
echo "$as_me:$LINENO: checking for $ac_word" >&5
2510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
2512
echo $ECHO_N "(cached) $ECHO_C" >&6
2514
if test -n "$db_cv_path_mkdir"; then
2515
ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
2517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521
test -z "$as_dir" && as_dir=.
2522
for ac_exec_ext in '' $ac_executable_extensions; do
2523
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524
ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
2525
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
2534
if test -n "$db_cv_path_mkdir"; then
2535
echo "$as_me:$LINENO: result: $db_cv_path_mkdir" >&5
2536
echo "${ECHO_T}$db_cv_path_mkdir" >&6
2538
echo "$as_me:$LINENO: result: no" >&5
2539
echo "${ECHO_T}no" >&6
2543
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
2544
ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
2545
# Extract the first word of "mkdir", so it can be a program name with args.
2546
set dummy mkdir; ac_word=$2
2547
echo "$as_me:$LINENO: checking for $ac_word" >&5
2548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
2550
echo $ECHO_N "(cached) $ECHO_C" >&6
2552
if test -n "$ac_ct_db_cv_path_mkdir"; then
2553
ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
2555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559
test -z "$as_dir" && as_dir=.
2560
for ac_exec_ext in '' $ac_executable_extensions; do
2561
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562
ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
2563
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569
test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
2572
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
2573
if test -n "$ac_ct_db_cv_path_mkdir"; then
2574
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_mkdir" >&5
2575
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
2577
echo "$as_me:$LINENO: result: no" >&5
2578
echo "${ECHO_T}no" >&6
2581
db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
2583
db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
2586
if test "$db_cv_path_mkdir" = missing_mkdir; then
2587
{ { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
2588
echo "$as_me: error: No mkdir utility found." >&2;}
2589
{ (exit 1); exit 1; }; }
2592
# We need a complete path for ranlib, because it doesn't exist on some
2593
# architectures because the ar utility packages the library itself.
2594
if test -n "$ac_tool_prefix"; then
2595
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2596
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2597
echo "$as_me:$LINENO: checking for $ac_word" >&5
2598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599
if test "${ac_cv_prog_path_ranlib+set}" = set; then
2600
echo $ECHO_N "(cached) $ECHO_C" >&6
2602
if test -n "$path_ranlib"; then
2603
ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609
test -z "$as_dir" && as_dir=.
2610
for ac_exec_ext in '' $ac_executable_extensions; do
2611
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612
ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
2613
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621
path_ranlib=$ac_cv_prog_path_ranlib
2622
if test -n "$path_ranlib"; then
2623
echo "$as_me:$LINENO: result: $path_ranlib" >&5
2624
echo "${ECHO_T}$path_ranlib" >&6
2626
echo "$as_me:$LINENO: result: no" >&5
2627
echo "${ECHO_T}no" >&6
2631
if test -z "$ac_cv_prog_path_ranlib"; then
2632
ac_ct_path_ranlib=$path_ranlib
2633
# Extract the first word of "ranlib", so it can be a program name with args.
2634
set dummy ranlib; ac_word=$2
2635
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
if test -n "$ac_ct_path_ranlib"; then
2641
ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647
test -z "$as_dir" && as_dir=.
2648
for ac_exec_ext in '' $ac_executable_extensions; do
2649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
ac_cv_prog_ac_ct_path_ranlib="ranlib"
2651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657
test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
2660
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
2661
if test -n "$ac_ct_path_ranlib"; then
2662
echo "$as_me:$LINENO: result: $ac_ct_path_ranlib" >&5
2663
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
2665
echo "$as_me:$LINENO: result: no" >&5
2666
echo "${ECHO_T}no" >&6
2669
path_ranlib=$ac_ct_path_ranlib
2671
path_ranlib="$ac_cv_prog_path_ranlib"
2674
# Extract the first word of "$path_ranlib", so it can be a program name with args.
2675
set dummy $path_ranlib; ac_word=$2
2676
echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
2679
echo $ECHO_N "(cached) $ECHO_C" >&6
2681
case $db_cv_path_ranlib in
2683
ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
test -z "$as_dir" && as_dir=.
2691
for ac_exec_ext in '' $ac_executable_extensions; do
2692
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693
ac_cv_path_db_cv_path_ranlib="$as_dir/$ac_word$ac_exec_ext"
2694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700
test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
2704
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib
2706
if test -n "$db_cv_path_ranlib"; then
2707
echo "$as_me:$LINENO: result: $db_cv_path_ranlib" >&5
2708
echo "${ECHO_T}$db_cv_path_ranlib" >&6
2710
echo "$as_me:$LINENO: result: no" >&5
2711
echo "${ECHO_T}no" >&6
2715
if test -n "$ac_tool_prefix"; then
2716
# Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
2717
set dummy ${ac_tool_prefix}rm; ac_word=$2
2718
echo "$as_me:$LINENO: checking for $ac_word" >&5
2719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
2721
echo $ECHO_N "(cached) $ECHO_C" >&6
2723
if test -n "$db_cv_path_rm"; then
2724
ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
2726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730
test -z "$as_dir" && as_dir=.
2731
for ac_exec_ext in '' $ac_executable_extensions; do
2732
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733
ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
2734
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
2743
if test -n "$db_cv_path_rm"; then
2744
echo "$as_me:$LINENO: result: $db_cv_path_rm" >&5
2745
echo "${ECHO_T}$db_cv_path_rm" >&6
2747
echo "$as_me:$LINENO: result: no" >&5
2748
echo "${ECHO_T}no" >&6
2752
if test -z "$ac_cv_prog_db_cv_path_rm"; then
2753
ac_ct_db_cv_path_rm=$db_cv_path_rm
2754
# Extract the first word of "rm", so it can be a program name with args.
2755
set dummy rm; ac_word=$2
2756
echo "$as_me:$LINENO: checking for $ac_word" >&5
2757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
2759
echo $ECHO_N "(cached) $ECHO_C" >&6
2761
if test -n "$ac_ct_db_cv_path_rm"; then
2762
ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768
test -z "$as_dir" && as_dir=.
2769
for ac_exec_ext in '' $ac_executable_extensions; do
2770
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771
ac_cv_prog_ac_ct_db_cv_path_rm="rm"
2772
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778
test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
2781
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
2782
if test -n "$ac_ct_db_cv_path_rm"; then
2783
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rm" >&5
2784
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
2786
echo "$as_me:$LINENO: result: no" >&5
2787
echo "${ECHO_T}no" >&6
2790
db_cv_path_rm=$ac_ct_db_cv_path_rm
2792
db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
2795
if test "$db_cv_path_rm" = missing_rm; then
2796
{ { echo "$as_me:$LINENO: error: No rm utility found." >&5
2797
echo "$as_me: error: No rm utility found." >&2;}
2798
{ (exit 1); exit 1; }; }
2801
if test "$db_cv_rpm" = "yes"; then
2802
if test -n "$ac_tool_prefix"; then
2803
# Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
2804
set dummy ${ac_tool_prefix}rpm; ac_word=$2
2805
echo "$as_me:$LINENO: checking for $ac_word" >&5
2806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
2808
echo $ECHO_N "(cached) $ECHO_C" >&6
2810
if test -n "$db_cv_path_rpm"; then
2811
ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
2813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817
test -z "$as_dir" && as_dir=.
2818
for ac_exec_ext in '' $ac_executable_extensions; do
2819
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820
ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
2821
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
2830
if test -n "$db_cv_path_rpm"; then
2831
echo "$as_me:$LINENO: result: $db_cv_path_rpm" >&5
2832
echo "${ECHO_T}$db_cv_path_rpm" >&6
2834
echo "$as_me:$LINENO: result: no" >&5
2835
echo "${ECHO_T}no" >&6
2839
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
2840
ac_ct_db_cv_path_rpm=$db_cv_path_rpm
2841
# Extract the first word of "rpm", so it can be a program name with args.
2842
set dummy rpm; ac_word=$2
2843
echo "$as_me:$LINENO: checking for $ac_word" >&5
2844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
2846
echo $ECHO_N "(cached) $ECHO_C" >&6
2848
if test -n "$ac_ct_db_cv_path_rpm"; then
2849
ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
2851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855
test -z "$as_dir" && as_dir=.
2856
for ac_exec_ext in '' $ac_executable_extensions; do
2857
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858
ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
2859
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865
test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
2868
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
2869
if test -n "$ac_ct_db_cv_path_rpm"; then
2870
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rpm" >&5
2871
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
2873
echo "$as_me:$LINENO: result: no" >&5
2874
echo "${ECHO_T}no" >&6
2877
db_cv_path_rpm=$ac_ct_db_cv_path_rpm
2879
db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
2882
if test "$db_cv_path_rpm" = missing_rpm; then
2883
{ { echo "$as_me:$LINENO: error: No rpm utility found." >&5
2884
echo "$as_me: error: No rpm utility found." >&2;}
2885
{ (exit 1); exit 1; }; }
2889
# We need a complete path for sh, because some implementations of make
2890
# get upset if SHELL is set to just the command name.
2891
if test -n "$ac_tool_prefix"; then
2892
# Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
2893
set dummy ${ac_tool_prefix}sh; ac_word=$2
2894
echo "$as_me:$LINENO: checking for $ac_word" >&5
2895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896
if test "${ac_cv_prog_path_sh+set}" = set; then
2897
echo $ECHO_N "(cached) $ECHO_C" >&6
2899
if test -n "$path_sh"; then
2900
ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906
test -z "$as_dir" && as_dir=.
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909
ac_cv_prog_path_sh="${ac_tool_prefix}sh"
2910
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918
path_sh=$ac_cv_prog_path_sh
2919
if test -n "$path_sh"; then
2920
echo "$as_me:$LINENO: result: $path_sh" >&5
2921
echo "${ECHO_T}$path_sh" >&6
2923
echo "$as_me:$LINENO: result: no" >&5
2924
echo "${ECHO_T}no" >&6
2928
if test -z "$ac_cv_prog_path_sh"; then
2929
ac_ct_path_sh=$path_sh
2930
# Extract the first word of "sh", so it can be a program name with args.
2931
set dummy sh; ac_word=$2
2932
echo "$as_me:$LINENO: checking for $ac_word" >&5
2933
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
2935
echo $ECHO_N "(cached) $ECHO_C" >&6
2937
if test -n "$ac_ct_path_sh"; then
2938
ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
2940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944
test -z "$as_dir" && as_dir=.
2945
for ac_exec_ext in '' $ac_executable_extensions; do
2946
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947
ac_cv_prog_ac_ct_path_sh="sh"
2948
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954
test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
2957
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
2958
if test -n "$ac_ct_path_sh"; then
2959
echo "$as_me:$LINENO: result: $ac_ct_path_sh" >&5
2960
echo "${ECHO_T}$ac_ct_path_sh" >&6
2962
echo "$as_me:$LINENO: result: no" >&5
2963
echo "${ECHO_T}no" >&6
2966
path_sh=$ac_ct_path_sh
2968
path_sh="$ac_cv_prog_path_sh"
2971
# Extract the first word of "$path_sh", so it can be a program name with args.
2972
set dummy $path_sh; ac_word=$2
2973
echo "$as_me:$LINENO: checking for $ac_word" >&5
2974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
2976
echo $ECHO_N "(cached) $ECHO_C" >&6
2978
case $db_cv_path_sh in
2980
ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
2983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987
test -z "$as_dir" && as_dir=.
2988
for ac_exec_ext in '' $ac_executable_extensions; do
2989
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990
ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
2991
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997
test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
3001
db_cv_path_sh=$ac_cv_path_db_cv_path_sh
3003
if test -n "$db_cv_path_sh"; then
3004
echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
3005
echo "${ECHO_T}$db_cv_path_sh" >&6
3007
echo "$as_me:$LINENO: result: no" >&5
3008
echo "${ECHO_T}no" >&6
3011
if test "$db_cv_path_sh" = missing_sh; then
3012
{ { echo "$as_me:$LINENO: error: No sh utility found." >&5
3013
echo "$as_me: error: No sh utility found." >&2;}
3014
{ (exit 1); exit 1; }; }
3017
# Don't strip the binaries if --enable-debug was specified.
3018
if test "$db_cv_debug" = yes; then
3019
db_cv_path_strip=debug_build_no_strip
3021
if test -n "$ac_tool_prefix"; then
3022
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3023
set dummy ${ac_tool_prefix}strip; ac_word=$2
3024
echo "$as_me:$LINENO: checking for $ac_word" >&5
3025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026
if test "${ac_cv_prog_path_strip+set}" = set; then
3027
echo $ECHO_N "(cached) $ECHO_C" >&6
3029
if test -n "$path_strip"; then
3030
ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
3032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036
test -z "$as_dir" && as_dir=.
3037
for ac_exec_ext in '' $ac_executable_extensions; do
3038
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039
ac_cv_prog_path_strip="${ac_tool_prefix}strip"
3040
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048
path_strip=$ac_cv_prog_path_strip
3049
if test -n "$path_strip"; then
3050
echo "$as_me:$LINENO: result: $path_strip" >&5
3051
echo "${ECHO_T}$path_strip" >&6
3053
echo "$as_me:$LINENO: result: no" >&5
3054
echo "${ECHO_T}no" >&6
3058
if test -z "$ac_cv_prog_path_strip"; then
3059
ac_ct_path_strip=$path_strip
3060
# Extract the first word of "strip", so it can be a program name with args.
3061
set dummy strip; ac_word=$2
3062
echo "$as_me:$LINENO: checking for $ac_word" >&5
3063
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
3065
echo $ECHO_N "(cached) $ECHO_C" >&6
3067
if test -n "$ac_ct_path_strip"; then
3068
ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
3070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074
test -z "$as_dir" && as_dir=.
3075
for ac_exec_ext in '' $ac_executable_extensions; do
3076
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077
ac_cv_prog_ac_ct_path_strip="strip"
3078
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084
test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
3087
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
3088
if test -n "$ac_ct_path_strip"; then
3089
echo "$as_me:$LINENO: result: $ac_ct_path_strip" >&5
3090
echo "${ECHO_T}$ac_ct_path_strip" >&6
3092
echo "$as_me:$LINENO: result: no" >&5
3093
echo "${ECHO_T}no" >&6
3096
path_strip=$ac_ct_path_strip
3098
path_strip="$ac_cv_prog_path_strip"
3101
# Extract the first word of "$path_strip", so it can be a program name with args.
3102
set dummy $path_strip; ac_word=$2
3103
echo "$as_me:$LINENO: checking for $ac_word" >&5
3104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
3106
echo $ECHO_N "(cached) $ECHO_C" >&6
3108
case $db_cv_path_strip in
3110
ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
3113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117
test -z "$as_dir" && as_dir=.
3118
for ac_exec_ext in '' $ac_executable_extensions; do
3119
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120
ac_cv_path_db_cv_path_strip="$as_dir/$ac_word$ac_exec_ext"
3121
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127
test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
3131
db_cv_path_strip=$ac_cv_path_db_cv_path_strip
3133
if test -n "$db_cv_path_strip"; then
3134
echo "$as_me:$LINENO: result: $db_cv_path_strip" >&5
3135
echo "${ECHO_T}$db_cv_path_strip" >&6
3137
echo "$as_me:$LINENO: result: no" >&5
3138
echo "${ECHO_T}no" >&6
3143
if test "$db_cv_test" = "yes"; then
3144
if test -n "$ac_tool_prefix"; then
3145
# Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
3146
set dummy ${ac_tool_prefix}kill; ac_word=$2
3147
echo "$as_me:$LINENO: checking for $ac_word" >&5
3148
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
3150
echo $ECHO_N "(cached) $ECHO_C" >&6
3152
if test -n "$db_cv_path_kill"; then
3153
ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
3155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159
test -z "$as_dir" && as_dir=.
3160
for ac_exec_ext in '' $ac_executable_extensions; do
3161
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162
ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
3163
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
3172
if test -n "$db_cv_path_kill"; then
3173
echo "$as_me:$LINENO: result: $db_cv_path_kill" >&5
3174
echo "${ECHO_T}$db_cv_path_kill" >&6
3176
echo "$as_me:$LINENO: result: no" >&5
3177
echo "${ECHO_T}no" >&6
3181
if test -z "$ac_cv_prog_db_cv_path_kill"; then
3182
ac_ct_db_cv_path_kill=$db_cv_path_kill
3183
# Extract the first word of "kill", so it can be a program name with args.
3184
set dummy kill; ac_word=$2
3185
echo "$as_me:$LINENO: checking for $ac_word" >&5
3186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
3188
echo $ECHO_N "(cached) $ECHO_C" >&6
3190
if test -n "$ac_ct_db_cv_path_kill"; then
3191
ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
3193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197
test -z "$as_dir" && as_dir=.
3198
for ac_exec_ext in '' $ac_executable_extensions; do
3199
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200
ac_cv_prog_ac_ct_db_cv_path_kill="kill"
3201
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207
test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
3210
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
3211
if test -n "$ac_ct_db_cv_path_kill"; then
3212
echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_kill" >&5
3213
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
3215
echo "$as_me:$LINENO: result: no" >&5
3216
echo "${ECHO_T}no" >&6
3219
db_cv_path_kill=$ac_ct_db_cv_path_kill
3221
db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
3224
if test "$db_cv_path_kill" = missing_kill; then
3225
{ { echo "$as_me:$LINENO: error: No kill utility found." >&5
3226
echo "$as_me: error: No kill utility found." >&2;}
3227
{ (exit 1); exit 1; }; }
3232
# Find a good install program. We prefer a C program (faster),
3233
# so one script is as good as another. But avoid the broken or
3234
# incompatible versions:
3235
# SysV /etc/install, /usr/sbin/install
3236
# SunOS /usr/etc/install
3237
# IRIX /sbin/install
3239
# AmigaOS /C/install, which installs bootblocks on floppy discs
3240
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243
# ./install, which can be erroneously created by make from ./install.sh.
3244
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3245
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3246
if test -z "$INSTALL"; then
3247
if test "${ac_cv_path_install+set}" = set; then
3248
echo $ECHO_N "(cached) $ECHO_C" >&6
3250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254
test -z "$as_dir" && as_dir=.
3255
# Account for people who put trailing slashes in PATH elements.
3257
./ | .// | /cC/* | \
3258
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261
# OSF1 and SCO ODT 3.0 have their own names for install.
3262
# Don't use installbsd from OSF since it installs stuff as root
3264
for ac_prog in ginstall scoinst install; do
3265
for ac_exec_ext in '' $ac_executable_extensions; do
3266
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3267
if test $ac_prog = install &&
3268
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3269
# AIX install. It has an incompatible calling convention.
3271
elif test $ac_prog = install &&
3272
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273
# program-specific install script used by HP pwplus--don't use.
3276
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3288
if test "${ac_cv_path_install+set}" = set; then
3289
INSTALL=$ac_cv_path_install
3291
# As a last resort, use the slow shell script. We don't cache a
3292
# path for INSTALL within a source directory, because that will
3293
# break other packages using the cache if that directory is
3294
# removed, or if the path is relative.
3295
INSTALL=$ac_install_sh
3298
echo "$as_me:$LINENO: result: $INSTALL" >&5
3299
echo "${ECHO_T}$INSTALL" >&6
3301
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3302
# It thinks the first close brace ends the variable substitution.
3303
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3305
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3307
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3310
# RPM/Embedix support: change the standard make and install targets
3311
if test "$db_cv_rpm" = "yes"; then
3312
BUILD_TARGET="rpm_build"
3313
echo "topdir: $CONFIGURATION_PATH" > rpmrc
3314
if test "$db_cv_embedix" = "yes"; then
3316
INSTALL_TARGET="embedix_install"
3318
INSTALL_TARGET="rpm_install"
3321
BUILD_TARGET="library_build"
3322
INSTALL_TARGET="library_install"
3325
# This is where we handle stuff that autoconf can't handle: compiler,
3326
# preprocessor and load flags, libraries that the standard tests don't
3327
# look for. The default optimization is -O. We would like to set the
3328
# default optimization for systems using gcc to -O2, but we can't. By
3329
# the time we know we're using gcc, it's too late to set optimization
3332
# There are additional libraries we need for some compiler/architecture
3335
# Some architectures require DB to be compiled with special flags and/or
3336
# libraries for threaded applications
3338
# The makefile CC may be different than the CC used in config testing,
3339
# because the makefile CC may be set to use $(LIBTOOL).
3342
# Don't override anything if it's already set from the environment.
3344
MAKEFILE_MAYBE_WIN32=""
3350
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3351
LDFLAGS="$LDFLAGS -Wl,-brtl";;
3352
bsdi3*) optimize_def="-O2"
3354
LIBS="$LIBS -lipc";;
3355
bsdi*) optimize_def="-O2";;
3358
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3359
LDFLAGS="$LDFLAGS -pthread";;
3360
hpux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
3361
irix*) optimize_def="-O2"
3362
CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
3363
linux*) optimize_def="-O2"
3364
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
3365
mingw*) optimize_def="-O2"
3366
SOFLAGS="-no-undefined"
3367
ADDITIONAL_OBJS="os_type.lo $ADDITIONAL_OBJS"
3368
MAKEFILE_MAYBE_WIN32="_win32"
3369
cat >>confdefs.h <<\_ACEOF
3375
mpeix*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
3376
LIBS="$LIBS -lsocket -lsvipc";;
3377
osf*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3378
LDFLAGS="$LDFLAGS -pthread";;
3379
*qnx) cat >>confdefs.h <<\_ACEOF
3386
CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
3389
# Set CFLAGS/CXXFLAGS. We MUST set the flags before we call autoconf
3390
# compiler configuration macros, because if we don't, they set CFLAGS
3391
# to no optimization and -g, which isn't what we want.
3392
CFLAGS=${CFLAGS-$optimize_def}
3393
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
3395
# If the user wants a debugging environment, add -g to the CFLAGS value.
3398
# Some compilers can't mix optimizing and debug flags. The only way to
3399
# handle this is to specify CFLAGS in the environment before configuring.
3400
if test "$db_cv_debug" = yes; then
3401
cat >>confdefs.h <<\_ACEOF
3409
CXXFLAGS="$CXXFLAGS -g"
3412
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
3413
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
3414
# for any compiler other than gcc.
3416
ac_cpp='$CPP $CPPFLAGS'
3417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
if test -n "$ac_tool_prefix"; then
3421
for ac_prog in cc gcc
3423
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425
echo "$as_me:$LINENO: checking for $ac_word" >&5
3426
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427
if test "${ac_cv_prog_CC+set}" = set; then
3428
echo $ECHO_N "(cached) $ECHO_C" >&6
3430
if test -n "$CC"; then
3431
ac_cv_prog_CC="$CC" # Let the user override the test.
3433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437
test -z "$as_dir" && as_dir=.
3438
for ac_exec_ext in '' $ac_executable_extensions; do
3439
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3441
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450
if test -n "$CC"; then
3451
echo "$as_me:$LINENO: result: $CC" >&5
3452
echo "${ECHO_T}$CC" >&6
3454
echo "$as_me:$LINENO: result: no" >&5
3455
echo "${ECHO_T}no" >&6
3458
test -n "$CC" && break
3461
if test -z "$CC"; then
3463
for ac_prog in cc gcc
3465
# Extract the first word of "$ac_prog", so it can be a program name with args.
3466
set dummy $ac_prog; ac_word=$2
3467
echo "$as_me:$LINENO: checking for $ac_word" >&5
3468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3470
echo $ECHO_N "(cached) $ECHO_C" >&6
3472
if test -n "$ac_ct_CC"; then
3473
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479
test -z "$as_dir" && as_dir=.
3480
for ac_exec_ext in '' $ac_executable_extensions; do
3481
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482
ac_cv_prog_ac_ct_CC="$ac_prog"
3483
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492
if test -n "$ac_ct_CC"; then
3493
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3494
echo "${ECHO_T}$ac_ct_CC" >&6
3496
echo "$as_me:$LINENO: result: no" >&5
3497
echo "${ECHO_T}no" >&6
3500
test -n "$ac_ct_CC" && break
3507
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3508
See \`config.log' for more details." >&5
3509
echo "$as_me: error: no acceptable C compiler found in \$PATH
3510
See \`config.log' for more details." >&2;}
3511
{ (exit 1); exit 1; }; }
3513
# Provide some information about the compiler.
3514
echo "$as_me:$LINENO:" \
3515
"checking for C compiler version" >&5
3516
ac_compiler=`set X $ac_compile; echo $2`
3517
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3518
(eval $ac_compiler --version </dev/null >&5) 2>&5
3520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
(exit $ac_status); }
3522
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3523
(eval $ac_compiler -v </dev/null >&5) 2>&5
3525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526
(exit $ac_status); }
3527
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3528
(eval $ac_compiler -V </dev/null >&5) 2>&5
3530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531
(exit $ac_status); }
3533
cat >conftest.$ac_ext <<_ACEOF
3534
#line $LINENO "configure"
3537
cat confdefs.h >>conftest.$ac_ext
3538
cat >>conftest.$ac_ext <<_ACEOF
3539
/* end confdefs.h. */
3549
ac_clean_files_save=$ac_clean_files
3550
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3551
# Try to create an executable without -o first, disregard a.out.
3552
# It will help us diagnose broken compilers, and finding out an intuition
3554
echo "$as_me:$LINENO: checking for C compiler default output" >&5
3555
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3556
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3558
(eval $ac_link_default) 2>&5
3560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
(exit $ac_status); }; then
3562
# Find the output, starting from the most likely. This scheme is
3563
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3566
# Be careful to initialize this variable, since it used to be cached.
3567
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3569
# b.out is created by i960 compilers.
3570
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3572
test -f "$ac_file" || continue
3574
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3577
# This is the source file.
3580
# We found the default executable, but exeext='' is most
3584
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585
# FIXME: I believe we export ac_cv_exeext for Libtool,
3586
# but it would be cool to find out if it's true. Does anybody
3587
# maintain Libtool? --akim.
3595
echo "$as_me: failed program was:" >&5
3596
sed 's/^/| /' conftest.$ac_ext >&5
3598
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3599
See \`config.log' for more details." >&5
3600
echo "$as_me: error: C compiler cannot create executables
3601
See \`config.log' for more details." >&2;}
3602
{ (exit 77); exit 77; }; }
3605
ac_exeext=$ac_cv_exeext
3606
echo "$as_me:$LINENO: result: $ac_file" >&5
3607
echo "${ECHO_T}$ac_file" >&6
3609
# Check the compiler produces executables we can run. If not, either
3610
# the compiler is broken, or we cross compile.
3611
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3612
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3613
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3614
# If not cross compiling, check that we can run a simple program.
3615
if test "$cross_compiling" != yes; then
3616
if { ac_try='./$ac_file'
3617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
(exit $ac_status); }; }; then
3624
if test "$cross_compiling" = maybe; then
3627
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3628
If you meant to cross compile, use \`--host'.
3629
See \`config.log' for more details." >&5
3630
echo "$as_me: error: cannot run C compiled programs.
3631
If you meant to cross compile, use \`--host'.
3632
See \`config.log' for more details." >&2;}
3633
{ (exit 1); exit 1; }; }
3637
echo "$as_me:$LINENO: result: yes" >&5
3638
echo "${ECHO_T}yes" >&6
3640
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3641
ac_clean_files=$ac_clean_files_save
3642
# Check the compiler produces executables we can run. If not, either
3643
# the compiler is broken, or we cross compile.
3644
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3645
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3646
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3647
echo "${ECHO_T}$cross_compiling" >&6
3649
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3650
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3652
(eval $ac_link) 2>&5
3654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655
(exit $ac_status); }; then
3656
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3657
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3658
# work properly (i.e., refer to `conftest.exe'), while it won't with
3660
for ac_file in conftest.exe conftest conftest.*; do
3661
test -f "$ac_file" || continue
3663
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3664
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3672
See \`config.log' for more details." >&5
3673
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3674
See \`config.log' for more details." >&2;}
3675
{ (exit 1); exit 1; }; }
3678
rm -f conftest$ac_cv_exeext
3679
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3680
echo "${ECHO_T}$ac_cv_exeext" >&6
3682
rm -f conftest.$ac_ext
3683
EXEEXT=$ac_cv_exeext
3685
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3686
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3687
if test "${ac_cv_objext+set}" = set; then
3688
echo $ECHO_N "(cached) $ECHO_C" >&6
3690
cat >conftest.$ac_ext <<_ACEOF
3691
#line $LINENO "configure"
3694
cat confdefs.h >>conftest.$ac_ext
3695
cat >>conftest.$ac_ext <<_ACEOF
3696
/* end confdefs.h. */
3706
rm -f conftest.o conftest.obj
3707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708
(eval $ac_compile) 2>&5
3710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711
(exit $ac_status); }; then
3712
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3714
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3715
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720
echo "$as_me: failed program was:" >&5
3721
sed 's/^/| /' conftest.$ac_ext >&5
3723
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724
See \`config.log' for more details." >&5
3725
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726
See \`config.log' for more details." >&2;}
3727
{ (exit 1); exit 1; }; }
3730
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733
echo "${ECHO_T}$ac_cv_objext" >&6
3734
OBJEXT=$ac_cv_objext
3736
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3738
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739
echo $ECHO_N "(cached) $ECHO_C" >&6
3741
cat >conftest.$ac_ext <<_ACEOF
3742
#line $LINENO "configure"
3745
cat confdefs.h >>conftest.$ac_ext
3746
cat >>conftest.$ac_ext <<_ACEOF
3747
/* end confdefs.h. */
3760
rm -f conftest.$ac_objext
3761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762
(eval $ac_compile) 2>&5
3764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
(exit $ac_status); } &&
3766
{ ac_try='test -s conftest.$ac_objext'
3767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771
(exit $ac_status); }; }; then
3774
echo "$as_me: failed program was:" >&5
3775
sed 's/^/| /' conftest.$ac_ext >&5
3779
rm -f conftest.$ac_objext conftest.$ac_ext
3780
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3784
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3785
GCC=`test $ac_compiler_gnu = yes && echo yes`
3786
ac_test_CFLAGS=${CFLAGS+set}
3787
ac_save_CFLAGS=$CFLAGS
3789
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3790
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3791
if test "${ac_cv_prog_cc_g+set}" = set; then
3792
echo $ECHO_N "(cached) $ECHO_C" >&6
3794
cat >conftest.$ac_ext <<_ACEOF
3795
#line $LINENO "configure"
3798
cat confdefs.h >>conftest.$ac_ext
3799
cat >>conftest.$ac_ext <<_ACEOF
3800
/* end confdefs.h. */
3810
rm -f conftest.$ac_objext
3811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812
(eval $ac_compile) 2>&5
3814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815
(exit $ac_status); } &&
3816
{ ac_try='test -s conftest.$ac_objext'
3817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821
(exit $ac_status); }; }; then
3824
echo "$as_me: failed program was:" >&5
3825
sed 's/^/| /' conftest.$ac_ext >&5
3829
rm -f conftest.$ac_objext conftest.$ac_ext
3831
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3832
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3833
if test "$ac_test_CFLAGS" = set; then
3834
CFLAGS=$ac_save_CFLAGS
3835
elif test $ac_cv_prog_cc_g = yes; then
3836
if test "$GCC" = yes; then
3842
if test "$GCC" = yes; then
3848
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3849
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3850
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3851
echo $ECHO_N "(cached) $ECHO_C" >&6
3853
ac_cv_prog_cc_stdc=no
3855
cat >conftest.$ac_ext <<_ACEOF
3856
#line $LINENO "configure"
3859
cat confdefs.h >>conftest.$ac_ext
3860
cat >>conftest.$ac_ext <<_ACEOF
3861
/* end confdefs.h. */
3864
#include <sys/types.h>
3865
#include <sys/stat.h>
3866
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3867
struct buf { int x; };
3868
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869
static char *e (p, i)
3875
static char *f (char * (*g) (char **, int), char **p, ...)
3880
s = g (p, va_arg (v,int));
3884
int test (int i, double x);
3885
struct s1 {int (*f) (int a);};
3886
struct s2 {int (*f) (double a);};
3887
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898
# Don't try gcc -ansi; that turns off useful extensions and
3899
# breaks some systems' header files.
3900
# AIX -qlanglvl=ansi
3901
# Ultrix and OSF/1 -std1
3902
# HP-UX 10.20 and later -Ae
3903
# HP-UX older versions -Aa -D_HPUX_SOURCE
3904
# SVR4 -Xc -D__EXTENSIONS__
3905
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907
CC="$ac_save_CC $ac_arg"
3908
rm -f conftest.$ac_objext
3909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910
(eval $ac_compile) 2>&5
3912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913
(exit $ac_status); } &&
3914
{ ac_try='test -s conftest.$ac_objext'
3915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); }; }; then
3920
ac_cv_prog_cc_stdc=$ac_arg
3923
echo "$as_me: failed program was:" >&5
3924
sed 's/^/| /' conftest.$ac_ext >&5
3927
rm -f conftest.$ac_objext
3929
rm -f conftest.$ac_ext conftest.$ac_objext
3934
case "x$ac_cv_prog_cc_stdc" in
3936
echo "$as_me:$LINENO: result: none needed" >&5
3937
echo "${ECHO_T}none needed" >&6 ;;
3939
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3940
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3941
CC="$CC $ac_cv_prog_cc_stdc" ;;
3944
# Some people use a C++ compiler to compile C. Since we use `exit',
3945
# in C++ we need to declare it. In case someone uses the same compiler
3946
# for both compiling C and C++ we need to have the C++ compiler decide
3947
# the declaration of exit, since it's the most demanding environment.
3948
cat >conftest.$ac_ext <<_ACEOF
3953
rm -f conftest.$ac_objext
3954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955
(eval $ac_compile) 2>&5
3957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958
(exit $ac_status); } &&
3959
{ ac_try='test -s conftest.$ac_objext'
3960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
(exit $ac_status); }; }; then
3965
for ac_declaration in \
3967
'#include <stdlib.h>' \
3968
'extern "C" void std::exit (int) throw (); using std::exit;' \
3969
'extern "C" void std::exit (int); using std::exit;' \
3970
'extern "C" void exit (int) throw ();' \
3971
'extern "C" void exit (int);' \
3974
cat >conftest.$ac_ext <<_ACEOF
3975
#line $LINENO "configure"
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h. */
3991
rm -f conftest.$ac_objext
3992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993
(eval $ac_compile) 2>&5
3995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996
(exit $ac_status); } &&
3997
{ ac_try='test -s conftest.$ac_objext'
3998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
(exit $ac_status); }; }; then
4005
echo "$as_me: failed program was:" >&5
4006
sed 's/^/| /' conftest.$ac_ext >&5
4010
rm -f conftest.$ac_objext conftest.$ac_ext
4011
cat >conftest.$ac_ext <<_ACEOF
4012
#line $LINENO "configure"
4015
cat confdefs.h >>conftest.$ac_ext
4016
cat >>conftest.$ac_ext <<_ACEOF
4017
/* end confdefs.h. */
4027
rm -f conftest.$ac_objext
4028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029
(eval $ac_compile) 2>&5
4031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032
(exit $ac_status); } &&
4033
{ ac_try='test -s conftest.$ac_objext'
4034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038
(exit $ac_status); }; }; then
4041
echo "$as_me: failed program was:" >&5
4042
sed 's/^/| /' conftest.$ac_ext >&5
4045
rm -f conftest.$ac_objext conftest.$ac_ext
4048
if test -n "$ac_declaration"; then
4049
echo '#ifdef __cplusplus' >>confdefs.h
4050
echo $ac_declaration >>confdefs.h
4051
echo '#endif' >>confdefs.h
4055
echo "$as_me: failed program was:" >&5
4056
sed 's/^/| /' conftest.$ac_ext >&5
4059
rm -f conftest.$ac_objext conftest.$ac_ext
4061
ac_cpp='$CPP $CPPFLAGS'
4062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
# Because of shared library building, the ${CC} used for config tests
4068
# may be different than the ${CC} we want to put in the Makefile.
4069
# The latter is known as ${MAKEFILE_CC} in this script.
4071
MAKEFILE_CCLINK="${CC}"
4072
MAKEFILE_CXX="nocxx"
4073
MAKEFILE_CXXLINK="nocxx"
4075
# See if we need the C++ compiler at all. If so, we'd like to find one that
4076
# interoperates with the C compiler we chose. Since we prefered cc over gcc,
4077
# we'll also prefer the vendor's compiler over g++/gcc. If we're wrong, the
4078
# user can set CC and CXX in their environment before running configure.
4080
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
4082
if test "$db_cv_cxx" = "yes"; then
4083
if test "$GCC" != "yes"; then
4085
aix*) if test -n "$ac_tool_prefix"; then
4086
# Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
4087
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
4088
echo "$as_me:$LINENO: checking for $ac_word" >&5
4089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090
if test "${ac_cv_prog_CCC+set}" = set; then
4091
echo $ECHO_N "(cached) $ECHO_C" >&6
4093
if test -n "$CCC"; then
4094
ac_cv_prog_CCC="$CCC" # Let the user override the test.
4096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100
test -z "$as_dir" && as_dir=.
4101
for ac_exec_ext in '' $ac_executable_extensions; do
4102
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103
ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
4104
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113
if test -n "$CCC"; then
4114
echo "$as_me:$LINENO: result: $CCC" >&5
4115
echo "${ECHO_T}$CCC" >&6
4117
echo "$as_me:$LINENO: result: no" >&5
4118
echo "${ECHO_T}no" >&6
4122
if test -z "$ac_cv_prog_CCC"; then
4124
# Extract the first word of "xlC_r", so it can be a program name with args.
4125
set dummy xlC_r; ac_word=$2
4126
echo "$as_me:$LINENO: checking for $ac_word" >&5
4127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4129
echo $ECHO_N "(cached) $ECHO_C" >&6
4131
if test -n "$ac_ct_CCC"; then
4132
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138
test -z "$as_dir" && as_dir=.
4139
for ac_exec_ext in '' $ac_executable_extensions; do
4140
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141
ac_cv_prog_ac_ct_CCC="xlC_r"
4142
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4151
if test -n "$ac_ct_CCC"; then
4152
echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4153
echo "${ECHO_T}$ac_ct_CCC" >&6
4155
echo "$as_me:$LINENO: result: no" >&5
4156
echo "${ECHO_T}no" >&6
4161
CCC="$ac_cv_prog_CCC"
4164
LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
4165
LIBS="-lC_r $LIBS";;
4166
hpux*) if test -n "$ac_tool_prefix"; then
4167
# Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
4168
set dummy ${ac_tool_prefix}aCC; ac_word=$2
4169
echo "$as_me:$LINENO: checking for $ac_word" >&5
4170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171
if test "${ac_cv_prog_CCC+set}" = set; then
4172
echo $ECHO_N "(cached) $ECHO_C" >&6
4174
if test -n "$CCC"; then
4175
ac_cv_prog_CCC="$CCC" # Let the user override the test.
4177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181
test -z "$as_dir" && as_dir=.
4182
for ac_exec_ext in '' $ac_executable_extensions; do
4183
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184
ac_cv_prog_CCC="${ac_tool_prefix}aCC"
4185
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194
if test -n "$CCC"; then
4195
echo "$as_me:$LINENO: result: $CCC" >&5
4196
echo "${ECHO_T}$CCC" >&6
4198
echo "$as_me:$LINENO: result: no" >&5
4199
echo "${ECHO_T}no" >&6
4203
if test -z "$ac_cv_prog_CCC"; then
4205
# Extract the first word of "aCC", so it can be a program name with args.
4206
set dummy aCC; ac_word=$2
4207
echo "$as_me:$LINENO: checking for $ac_word" >&5
4208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4210
echo $ECHO_N "(cached) $ECHO_C" >&6
4212
if test -n "$ac_ct_CCC"; then
4213
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219
test -z "$as_dir" && as_dir=.
4220
for ac_exec_ext in '' $ac_executable_extensions; do
4221
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222
ac_cv_prog_ac_ct_CCC="aCC"
4223
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4232
if test -n "$ac_ct_CCC"; then
4233
echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4234
echo "${ECHO_T}$ac_ct_CCC" >&6
4236
echo "$as_me:$LINENO: result: no" >&5
4237
echo "${ECHO_T}no" >&6
4242
CCC="$ac_cv_prog_CCC"
4245
irix*) if test -n "$ac_tool_prefix"; then
4246
# Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
4247
set dummy ${ac_tool_prefix}CC; ac_word=$2
4248
echo "$as_me:$LINENO: checking for $ac_word" >&5
4249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250
if test "${ac_cv_prog_CCC+set}" = set; then
4251
echo $ECHO_N "(cached) $ECHO_C" >&6
4253
if test -n "$CCC"; then
4254
ac_cv_prog_CCC="$CCC" # Let the user override the test.
4256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260
test -z "$as_dir" && as_dir=.
4261
for ac_exec_ext in '' $ac_executable_extensions; do
4262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263
ac_cv_prog_CCC="${ac_tool_prefix}CC"
4264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273
if test -n "$CCC"; then
4274
echo "$as_me:$LINENO: result: $CCC" >&5
4275
echo "${ECHO_T}$CCC" >&6
4277
echo "$as_me:$LINENO: result: no" >&5
4278
echo "${ECHO_T}no" >&6
4282
if test -z "$ac_cv_prog_CCC"; then
4284
# Extract the first word of "CC", so it can be a program name with args.
4285
set dummy CC; ac_word=$2
4286
echo "$as_me:$LINENO: checking for $ac_word" >&5
4287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4289
echo $ECHO_N "(cached) $ECHO_C" >&6
4291
if test -n "$ac_ct_CCC"; then
4292
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298
test -z "$as_dir" && as_dir=.
4299
for ac_exec_ext in '' $ac_executable_extensions; do
4300
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301
ac_cv_prog_ac_ct_CCC="CC"
4302
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4311
if test -n "$ac_ct_CCC"; then
4312
echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4313
echo "${ECHO_T}$ac_ct_CCC" >&6
4315
echo "$as_me:$LINENO: result: no" >&5
4316
echo "${ECHO_T}no" >&6
4321
CCC="$ac_cv_prog_CCC"
4324
osf*) if test -n "$ac_tool_prefix"; then
4325
# Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
4326
set dummy ${ac_tool_prefix}cxx; ac_word=$2
4327
echo "$as_me:$LINENO: checking for $ac_word" >&5
4328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329
if test "${ac_cv_prog_CCC+set}" = set; then
4330
echo $ECHO_N "(cached) $ECHO_C" >&6
4332
if test -n "$CCC"; then
4333
ac_cv_prog_CCC="$CCC" # Let the user override the test.
4335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339
test -z "$as_dir" && as_dir=.
4340
for ac_exec_ext in '' $ac_executable_extensions; do
4341
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342
ac_cv_prog_CCC="${ac_tool_prefix}cxx"
4343
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352
if test -n "$CCC"; then
4353
echo "$as_me:$LINENO: result: $CCC" >&5
4354
echo "${ECHO_T}$CCC" >&6
4356
echo "$as_me:$LINENO: result: no" >&5
4357
echo "${ECHO_T}no" >&6
4361
if test -z "$ac_cv_prog_CCC"; then
4363
# Extract the first word of "cxx", so it can be a program name with args.
4364
set dummy cxx; ac_word=$2
4365
echo "$as_me:$LINENO: checking for $ac_word" >&5
4366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4368
echo $ECHO_N "(cached) $ECHO_C" >&6
4370
if test -n "$ac_ct_CCC"; then
4371
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377
test -z "$as_dir" && as_dir=.
4378
for ac_exec_ext in '' $ac_executable_extensions; do
4379
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380
ac_cv_prog_ac_ct_CCC="cxx"
4381
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4390
if test -n "$ac_ct_CCC"; then
4391
echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4392
echo "${ECHO_T}$ac_ct_CCC" >&6
4394
echo "$as_me:$LINENO: result: no" >&5
4395
echo "${ECHO_T}no" >&6
4400
CCC="$ac_cv_prog_CCC"
4403
solaris*) if test -n "$ac_tool_prefix"; then
4404
# Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
4405
set dummy ${ac_tool_prefix}CC; ac_word=$2
4406
echo "$as_me:$LINENO: checking for $ac_word" >&5
4407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408
if test "${ac_cv_prog_CCC+set}" = set; then
4409
echo $ECHO_N "(cached) $ECHO_C" >&6
4411
if test -n "$CCC"; then
4412
ac_cv_prog_CCC="$CCC" # Let the user override the test.
4414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418
test -z "$as_dir" && as_dir=.
4419
for ac_exec_ext in '' $ac_executable_extensions; do
4420
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421
ac_cv_prog_CCC="${ac_tool_prefix}CC"
4422
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431
if test -n "$CCC"; then
4432
echo "$as_me:$LINENO: result: $CCC" >&5
4433
echo "${ECHO_T}$CCC" >&6
4435
echo "$as_me:$LINENO: result: no" >&5
4436
echo "${ECHO_T}no" >&6
4440
if test -z "$ac_cv_prog_CCC"; then
4442
# Extract the first word of "CC", so it can be a program name with args.
4443
set dummy CC; ac_word=$2
4444
echo "$as_me:$LINENO: checking for $ac_word" >&5
4445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4446
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4447
echo $ECHO_N "(cached) $ECHO_C" >&6
4449
if test -n "$ac_ct_CCC"; then
4450
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456
test -z "$as_dir" && as_dir=.
4457
for ac_exec_ext in '' $ac_executable_extensions; do
4458
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459
ac_cv_prog_ac_ct_CCC="CC"
4460
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4469
if test -n "$ac_ct_CCC"; then
4470
echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4471
echo "${ECHO_T}$ac_ct_CCC" >&6
4473
echo "$as_me:$LINENO: result: no" >&5
4474
echo "${ECHO_T}no" >&6
4479
CCC="$ac_cv_prog_CCC"
4485
ac_cpp='$CXXCPP $CPPFLAGS'
4486
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4489
if test -n "$ac_tool_prefix"; then
4490
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4492
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4493
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4494
echo "$as_me:$LINENO: checking for $ac_word" >&5
4495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496
if test "${ac_cv_prog_CXX+set}" = set; then
4497
echo $ECHO_N "(cached) $ECHO_C" >&6
4499
if test -n "$CXX"; then
4500
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506
test -z "$as_dir" && as_dir=.
4507
for ac_exec_ext in '' $ac_executable_extensions; do
4508
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4510
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519
if test -n "$CXX"; then
4520
echo "$as_me:$LINENO: result: $CXX" >&5
4521
echo "${ECHO_T}$CXX" >&6
4523
echo "$as_me:$LINENO: result: no" >&5
4524
echo "${ECHO_T}no" >&6
4527
test -n "$CXX" && break
4530
if test -z "$CXX"; then
4532
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4534
# Extract the first word of "$ac_prog", so it can be a program name with args.
4535
set dummy $ac_prog; ac_word=$2
4536
echo "$as_me:$LINENO: checking for $ac_word" >&5
4537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4539
echo $ECHO_N "(cached) $ECHO_C" >&6
4541
if test -n "$ac_ct_CXX"; then
4542
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548
test -z "$as_dir" && as_dir=.
4549
for ac_exec_ext in '' $ac_executable_extensions; do
4550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551
ac_cv_prog_ac_ct_CXX="$ac_prog"
4552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4561
if test -n "$ac_ct_CXX"; then
4562
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4563
echo "${ECHO_T}$ac_ct_CXX" >&6
4565
echo "$as_me:$LINENO: result: no" >&5
4566
echo "${ECHO_T}no" >&6
4569
test -n "$ac_ct_CXX" && break
4571
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4577
# Provide some information about the compiler.
4578
echo "$as_me:$LINENO:" \
4579
"checking for C++ compiler version" >&5
4580
ac_compiler=`set X $ac_compile; echo $2`
4581
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582
(eval $ac_compiler --version </dev/null >&5) 2>&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); }
4586
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587
(eval $ac_compiler -v </dev/null >&5) 2>&5
4589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590
(exit $ac_status); }
4591
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592
(eval $ac_compiler -V </dev/null >&5) 2>&5
4594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
(exit $ac_status); }
4597
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4598
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4599
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4600
echo $ECHO_N "(cached) $ECHO_C" >&6
4602
cat >conftest.$ac_ext <<_ACEOF
4603
#line $LINENO "configure"
4606
cat confdefs.h >>conftest.$ac_ext
4607
cat >>conftest.$ac_ext <<_ACEOF
4608
/* end confdefs.h. */
4621
rm -f conftest.$ac_objext
4622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623
(eval $ac_compile) 2>&5
4625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626
(exit $ac_status); } &&
4627
{ ac_try='test -s conftest.$ac_objext'
4628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
(exit $ac_status); }; }; then
4635
echo "$as_me: failed program was:" >&5
4636
sed 's/^/| /' conftest.$ac_ext >&5
4640
rm -f conftest.$ac_objext conftest.$ac_ext
4641
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4644
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4645
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4646
GXX=`test $ac_compiler_gnu = yes && echo yes`
4647
ac_test_CXXFLAGS=${CXXFLAGS+set}
4648
ac_save_CXXFLAGS=$CXXFLAGS
4650
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4651
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4652
if test "${ac_cv_prog_cxx_g+set}" = set; then
4653
echo $ECHO_N "(cached) $ECHO_C" >&6
4655
cat >conftest.$ac_ext <<_ACEOF
4656
#line $LINENO "configure"
4659
cat confdefs.h >>conftest.$ac_ext
4660
cat >>conftest.$ac_ext <<_ACEOF
4661
/* end confdefs.h. */
4671
rm -f conftest.$ac_objext
4672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673
(eval $ac_compile) 2>&5
4675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
(exit $ac_status); } &&
4677
{ ac_try='test -s conftest.$ac_objext'
4678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
(exit $ac_status); }; }; then
4683
ac_cv_prog_cxx_g=yes
4685
echo "$as_me: failed program was:" >&5
4686
sed 's/^/| /' conftest.$ac_ext >&5
4690
rm -f conftest.$ac_objext conftest.$ac_ext
4692
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694
if test "$ac_test_CXXFLAGS" = set; then
4695
CXXFLAGS=$ac_save_CXXFLAGS
4696
elif test $ac_cv_prog_cxx_g = yes; then
4697
if test "$GXX" = yes; then
4703
if test "$GXX" = yes; then
4709
for ac_declaration in \
4711
'#include <stdlib.h>' \
4712
'extern "C" void std::exit (int) throw (); using std::exit;' \
4713
'extern "C" void std::exit (int); using std::exit;' \
4714
'extern "C" void exit (int) throw ();' \
4715
'extern "C" void exit (int);' \
4718
cat >conftest.$ac_ext <<_ACEOF
4719
#line $LINENO "configure"
4722
cat confdefs.h >>conftest.$ac_ext
4723
cat >>conftest.$ac_ext <<_ACEOF
4724
/* end confdefs.h. */
4735
rm -f conftest.$ac_objext
4736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737
(eval $ac_compile) 2>&5
4739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
(exit $ac_status); } &&
4741
{ ac_try='test -s conftest.$ac_objext'
4742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
(exit $ac_status); }; }; then
4749
echo "$as_me: failed program was:" >&5
4750
sed 's/^/| /' conftest.$ac_ext >&5
4754
rm -f conftest.$ac_objext conftest.$ac_ext
4755
cat >conftest.$ac_ext <<_ACEOF
4756
#line $LINENO "configure"
4759
cat confdefs.h >>conftest.$ac_ext
4760
cat >>conftest.$ac_ext <<_ACEOF
4761
/* end confdefs.h. */
4771
rm -f conftest.$ac_objext
4772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773
(eval $ac_compile) 2>&5
4775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
(exit $ac_status); } &&
4777
{ ac_try='test -s conftest.$ac_objext'
4778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782
(exit $ac_status); }; }; then
4785
echo "$as_me: failed program was:" >&5
4786
sed 's/^/| /' conftest.$ac_ext >&5
4789
rm -f conftest.$ac_objext conftest.$ac_ext
4792
if test -n "$ac_declaration"; then
4793
echo '#ifdef __cplusplus' >>confdefs.h
4794
echo $ac_declaration >>confdefs.h
4795
echo '#endif' >>confdefs.h
4799
ac_cpp='$CPP $CPPFLAGS'
4800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807
echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
4808
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6
4809
if test "${db_cv_cxx_have_stdheaders+set}" = set; then
4810
echo $ECHO_N "(cached) $ECHO_C" >&6
4815
ac_cpp='$CXXCPP $CPPFLAGS'
4816
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4820
cat >conftest.$ac_ext <<_ACEOF
4821
#line $LINENO "configure"
4824
cat confdefs.h >>conftest.$ac_ext
4825
cat >>conftest.$ac_ext <<_ACEOF
4826
/* end confdefs.h. */
4832
std::ostream *o; return 0;
4837
rm -f conftest.$ac_objext
4838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839
(eval $ac_compile) 2>&5
4841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
(exit $ac_status); } &&
4843
{ ac_try='test -s conftest.$ac_objext'
4844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
(exit $ac_status); }; }; then
4849
db_cv_cxx_have_stdheaders=yes
4851
echo "$as_me: failed program was:" >&5
4852
sed 's/^/| /' conftest.$ac_ext >&5
4854
db_cv_cxx_have_stdheaders=no
4856
rm -f conftest.$ac_objext conftest.$ac_ext
4858
ac_cpp='$CPP $CPPFLAGS'
4859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865
echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
4866
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6
4867
if test "$db_cv_cxx_have_stdheaders" = yes; then
4868
cxx_have_stdheaders="#define HAVE_CXX_STDHEADERS 1"
4870
MAKEFILE_CXX="${CXX}"
4871
MAKEFILE_CXXLINK="${CXX}"
4874
# Do some gcc specific configuration.
4876
echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
4877
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6
4878
if test "${db_cv_gcc_2_96+set}" = set; then
4879
echo $ECHO_N "(cached) $ECHO_C" >&6
4883
if test "$GCC" = "yes"; then
4884
GCC_VERSION=`${MAKEFILE_CC} --version`
4885
case ${GCC_VERSION} in
4887
db_cv_gcc_2_96=yes;;
4891
echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
4892
echo "${ECHO_T}$db_cv_gcc_2_96" >&6
4893
if test "$db_cv_gcc_2_96" = "yes"; then
4894
CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
4895
CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
4896
{ echo "$as_me:$LINENO: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
4897
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
4898
{ echo "$as_me:$LINENO: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
4899
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
4902
echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
4903
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6
4904
if test "${db_cv_gxx_except+set}" = set; then
4905
echo $ECHO_N "(cached) $ECHO_C" >&6
4908
db_cv_gxx_except=no;
4909
if test "$GXX" = "yes"; then
4910
GXX_VERSION=`${MAKEFILE_CXX} --version`
4911
case ${GXX_VERSION} in
4912
1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
4913
db_cv_gxx_except=yes;;
4917
echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
4918
echo "${ECHO_T}$db_cv_gxx_except" >&6
4919
if test "$db_cv_gxx_except" = "yes"; then
4920
CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
4923
# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
4924
# and OpenUNIX releases. We can't make the test until we know which compiler
4927
sysv5UnixWare*|sysv5OpenUNIX8*)
4928
if test "$GCC" == "yes"; then
4929
CPPFLAGS="$CPPFLAGS -pthread"
4930
LDFLAGS="$LDFLAGS -pthread"
4932
CPPFLAGS="$CPPFLAGS -Kthread"
4933
LDFLAGS="$LDFLAGS -Kthread"
4937
# Export our compiler preferences for the libtool configuration.
4941
# Libtool configuration.
4942
# Check whether --enable-shared or --disable-shared was given.
4943
if test "${enable_shared+set}" = set; then
4944
enableval="$enable_shared"
4945
p=${PACKAGE-default}
4947
yes) enable_shared=yes ;;
4948
no) enable_shared=no ;;
4951
# Look at the argument we got. We use all the common list separators.
4952
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4953
for pkg in $enableval; do
4954
if test "X$pkg" = "X$p"; then
4964
# Check whether --enable-static or --disable-static was given.
4965
if test "${enable_static+set}" = set; then
4966
enableval="$enable_static"
4967
p=${PACKAGE-default}
4969
yes) enable_static=yes ;;
4970
no) enable_static=no ;;
4973
# Look at the argument we got. We use all the common list separators.
4974
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4975
for pkg in $enableval; do
4976
if test "X$pkg" = "X$p"; then
4986
# Check whether --enable-fast-install or --disable-fast-install was given.
4987
if test "${enable_fast_install+set}" = set; then
4988
enableval="$enable_fast_install"
4989
p=${PACKAGE-default}
4991
yes) enable_fast_install=yes ;;
4992
no) enable_fast_install=no ;;
4994
enable_fast_install=no
4995
# Look at the argument we got. We use all the common list separators.
4996
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4997
for pkg in $enableval; do
4998
if test "X$pkg" = "X$p"; then
4999
enable_fast_install=yes
5006
enable_fast_install=yes
5008
# Find the correct PATH separator. Usually this is `:', but
5009
# DJGPP uses `;' like DOS.
5010
if test "X${PATH_SEPARATOR+set}" != Xset; then
5011
UNAME=${UNAME-`uname 2>/dev/null`}
5013
*-DOS) lt_cv_sys_path_separator=';' ;;
5014
*) lt_cv_sys_path_separator=':' ;;
5016
PATH_SEPARATOR=$lt_cv_sys_path_separator
5020
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5021
if test "${with_gnu_ld+set}" = set; then
5022
withval="$with_gnu_ld"
5023
test "$withval" = no || with_gnu_ld=yes
5028
if test "$GCC" = yes; then
5029
# Check if gcc -print-prog-name=ld gives a path.
5030
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5031
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5034
# gcc leaves a trailing carriage return which upsets mingw
5035
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5037
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5040
# Accept absolute paths.
5041
[\\/]* | [A-Za-z]:[\\/]*)
5042
re_direlt='/[^/][^/]*/\.\./'
5043
# Canonicalize the path of ld
5044
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5045
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5046
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5048
test -z "$LD" && LD="$ac_prog"
5051
# If it fails, then pretend we aren't using GCC.
5055
# If it is relative, then search for the first ld in PATH.
5059
elif test "$with_gnu_ld" = yes; then
5060
echo "$as_me:$LINENO: checking for GNU ld" >&5
5061
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5063
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5064
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5066
if test "${lt_cv_path_LD+set}" = set; then
5067
echo $ECHO_N "(cached) $ECHO_C" >&6
5069
if test -z "$LD"; then
5070
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071
for ac_dir in $PATH; do
5072
test -z "$ac_dir" && ac_dir=.
5073
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5074
lt_cv_path_LD="$ac_dir/$ac_prog"
5075
# Check to see if the program is GNU ld. I'd rather use --version,
5076
# but apparently some GNU ld's only accept -v.
5077
# Break only if it was the GNU/non-GNU ld that we prefer.
5078
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5079
test "$with_gnu_ld" != no && break
5081
test "$with_gnu_ld" != yes && break
5087
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5092
if test -n "$LD"; then
5093
echo "$as_me:$LINENO: result: $LD" >&5
5094
echo "${ECHO_T}$LD" >&6
5096
echo "$as_me:$LINENO: result: no" >&5
5097
echo "${ECHO_T}no" >&6
5099
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5100
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5101
{ (exit 1); exit 1; }; }
5102
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5103
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5104
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5105
echo $ECHO_N "(cached) $ECHO_C" >&6
5107
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5108
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5109
lt_cv_prog_gnu_ld=yes
5111
lt_cv_prog_gnu_ld=no
5114
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5115
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5116
with_gnu_ld=$lt_cv_prog_gnu_ld
5119
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5120
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5121
if test "${lt_cv_ld_reload_flag+set}" = set; then
5122
echo $ECHO_N "(cached) $ECHO_C" >&6
5124
lt_cv_ld_reload_flag='-r'
5126
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5127
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5128
reload_flag=$lt_cv_ld_reload_flag
5129
test -n "$reload_flag" && reload_flag=" $reload_flag"
5131
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5132
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5133
if test "${lt_cv_path_NM+set}" = set; then
5134
echo $ECHO_N "(cached) $ECHO_C" >&6
5136
if test -n "$NM"; then
5137
# Let the user override the test.
5140
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5141
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5142
test -z "$ac_dir" && ac_dir=.
5143
tmp_nm=$ac_dir/${ac_tool_prefix}nm
5144
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5145
# Check to see if the nm accepts a BSD-compat flag.
5146
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5147
# nm: unknown option "B" ignored
5148
# Tru64's nm complains that /dev/null is an invalid object file
5149
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5150
lt_cv_path_NM="$tmp_nm -B"
5152
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5153
lt_cv_path_NM="$tmp_nm -p"
5156
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5157
continue # so that we can try to find one that supports BSD flags
5162
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5167
echo "$as_me:$LINENO: result: $NM" >&5
5168
echo "${ECHO_T}$NM" >&6
5170
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5171
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5173
if test "$LN_S" = "ln -s"; then
5174
echo "$as_me:$LINENO: result: yes" >&5
5175
echo "${ECHO_T}yes" >&6
5177
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5178
echo "${ECHO_T}no, using $LN_S" >&6
5181
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5182
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5183
if test "${lt_cv_deplibs_check_method+set}" = set; then
5184
echo $ECHO_N "(cached) $ECHO_C" >&6
5186
lt_cv_file_magic_cmd='$MAGIC_CMD'
5187
lt_cv_file_magic_test_file=
5188
lt_cv_deplibs_check_method='unknown'
5189
# Need to set the preceding variable on all platforms that support
5190
# interlibrary dependencies.
5191
# 'none' -- dependencies not supported.
5192
# `unknown' -- same as none, but documents that we really don't know.
5193
# 'pass_all' -- all dependencies passed with no checks.
5194
# 'test_compile' -- check by making test program.
5195
# 'file_magic [[regex]]' -- check by looking for files in library path
5196
# which responds to the $file_magic_cmd with a given egrep regex.
5197
# If you have `file' or equivalent on your system and you're not sure
5198
# whether `pass_all' will *always* work, you probably want this one.
5202
lt_cv_deplibs_check_method=pass_all
5206
lt_cv_deplibs_check_method=pass_all
5210
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5211
lt_cv_file_magic_cmd='/usr/bin/file -L'
5212
lt_cv_file_magic_test_file=/shlib/libc.so
5215
cygwin* | mingw* | pw32*)
5216
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5217
lt_cv_file_magic_cmd='$OBJDUMP -f'
5220
darwin* | rhapsody*)
5221
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5222
lt_cv_file_magic_cmd='/usr/bin/file -L'
5224
rhapsody* | darwin1.[012])
5225
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
5228
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5234
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5237
# Not sure whether the presence of OpenBSD here was a mistake.
5238
# Let's accept both of them until this is cleared up.
5239
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5240
lt_cv_file_magic_cmd=/usr/bin/file
5241
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5245
lt_cv_deplibs_check_method=pass_all
5250
lt_cv_deplibs_check_method=pass_all
5254
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5255
lt_cv_file_magic_cmd=/usr/bin/file
5256
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5262
# this will be overridden with pass_all, but let us keep it just in case
5263
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5267
*-32|*"-32 ") libmagic=32-bit;;
5268
*-n32|*"-n32 ") libmagic=N32;;
5269
*-64|*"-64 ") libmagic=64-bit;;
5270
*) libmagic=never-match;;
5272
# this will be overridden with pass_all, but let us keep it just in case
5273
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5276
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5277
lt_cv_deplibs_check_method=pass_all
5280
# This must be Linux ELF.
5283
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | *)
5284
lt_cv_deplibs_check_method=pass_all ;;
5286
# glibc up to 2.1.1 does not perform some relocations on ARM
5287
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5289
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5293
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5294
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5296
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5301
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5302
lt_cv_file_magic_cmd=/usr/bin/file
5303
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5307
lt_cv_deplibs_check_method=unknown
5311
lt_cv_file_magic_cmd=/usr/bin/file
5312
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5313
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5314
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5316
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5320
osf3* | osf4* | osf5*)
5321
# this will be overridden with pass_all, but let us keep it just in case
5322
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5323
lt_cv_file_magic_test_file=/shlib/libc.so
5324
lt_cv_deplibs_check_method=pass_all
5328
lt_cv_deplibs_check_method=pass_all
5332
lt_cv_deplibs_check_method=pass_all
5333
lt_cv_file_magic_test_file=/lib/libc.so
5336
sysv5uw[78]* | sysv4*uw2*)
5337
lt_cv_deplibs_check_method=pass_all
5340
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5341
case $host_vendor in
5343
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]'
5344
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5347
lt_cv_deplibs_check_method=pass_all
5350
lt_cv_file_magic_cmd='/bin/file'
5351
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5354
lt_cv_file_magic_cmd='/bin/file'
5355
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5356
lt_cv_file_magic_test_file=/lib/libc.so
5363
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5364
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5365
file_magic_cmd=$lt_cv_file_magic_cmd
5366
deplibs_check_method=$lt_cv_deplibs_check_method
5375
# Check for command to grab the raw symbol name followed by C symbol from nm.
5376
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5377
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5378
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5379
echo $ECHO_N "(cached) $ECHO_C" >&6
5382
# These are sane defaults that work on at least a few old systems.
5383
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5385
# Character class describing NM global symbol codes.
5386
symcode='[BCDEGRST]'
5388
# Regexp to match symbols that can be accessed directly from C.
5389
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5391
# Transform the above into a raw symbol and a C symbol.
5392
symxfrm='\1 \2\3 \3'
5394
# Transform an extracted symbol line into a proper C declaration
5395
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5397
# Transform an extracted symbol line into symbol name and symbol address
5398
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5400
# Define system-specific variables.
5405
cygwin* | mingw* | pw32*)
5406
symcode='[ABCDGISTW]'
5408
hpux*) # Its linker distinguishes data from code symbols
5409
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5410
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5413
symcode='[BCDEGRST]'
5423
# Handle CRLF in mingw tool chain
5427
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5431
# If we're using GNU nm, then use its standard symbol codes.
5432
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5433
symcode='[ABCDGISTW]'
5436
# Try without a prefix undercore, then with it.
5437
for ac_symprfx in "" "_"; do
5439
# Write the raw and C identifiers.
5440
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5442
# Check to see that the pipe works correctly.
5445
cat > conftest.$ac_ext <<EOF
5450
void nm_test_func(){}
5454
int main(){nm_test_var='a';nm_test_func();return(0);}
5457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458
(eval $ac_compile) 2>&5
5460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461
(exit $ac_status); }; then
5462
# Now try to grab the symbols.
5464
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468
(exit $ac_status); } && test -s "$nlist"; then
5469
# Try sorting and uniquifying the output.
5470
if sort "$nlist" | uniq > "$nlist"T; then
5471
mv -f "$nlist"T "$nlist"
5476
# Make sure that we snagged all the symbols we need.
5477
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5478
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5479
cat <<EOF > conftest.$ac_ext
5485
# Now generate the symbol file.
5486
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5488
cat <<EOF >> conftest.$ac_ext
5489
#if defined (__STDC__) && __STDC__
5490
# define lt_ptr void *
5492
# define lt_ptr char *
5496
/* The mapping between symbol names and symbols. */
5501
lt_preloaded_symbols[] =
5504
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5505
cat <<\EOF >> conftest.$ac_ext
5513
# Now try linking the two files.
5514
mv conftest.$ac_objext conftstm.$ac_objext
5516
save_CFLAGS="$CFLAGS"
5517
LIBS="conftstm.$ac_objext"
5518
CFLAGS="$CFLAGS$no_builtin_flag"
5519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520
(eval $ac_link) 2>&5
5522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523
(exit $ac_status); } && test -s conftest; then
5527
CFLAGS="$save_CFLAGS"
5529
echo "cannot find nm_test_func in $nlist" >&5
5532
echo "cannot find nm_test_var in $nlist" >&5
5535
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5538
echo "$progname: failed program was:" >&5
5539
cat conftest.$ac_ext >&5
5541
rm -f conftest* conftst*
5543
# Do not use the global_symbol_pipe unless it works.
5544
if test "$pipe_works" = yes; then
5547
lt_cv_sys_global_symbol_pipe=
5553
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5554
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5555
global_symbol_to_cdecl=
5556
global_symbol_to_c_name_address=
5558
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5559
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5561
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5563
echo "$as_me:$LINENO: result: failed" >&5
5564
echo "${ECHO_T}failed" >&6
5566
echo "$as_me:$LINENO: result: ok" >&5
5567
echo "${ECHO_T}ok" >&6
5571
ac_cpp='$CPP $CPPFLAGS'
5572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5576
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5577
# On Suns, sometimes $CPP names a directory.
5578
if test -n "$CPP" && test -d "$CPP"; then
5581
if test -z "$CPP"; then
5582
if test "${ac_cv_prog_CPP+set}" = set; then
5583
echo $ECHO_N "(cached) $ECHO_C" >&6
5585
# Double quotes because CPP needs to be expanded
5586
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5589
for ac_c_preproc_warn_flag in '' yes
5591
# Use a header file that comes with gcc, so configuring glibc
5592
# with a fresh cross-compiler works.
5593
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594
# <limits.h> exists even on freestanding compilers.
5595
# On the NeXT, cc -E runs the code through the compiler's parser,
5596
# not just through cpp. "Syntax error" is here to catch this case.
5597
cat >conftest.$ac_ext <<_ACEOF
5598
#line $LINENO "configure"
5601
cat confdefs.h >>conftest.$ac_ext
5602
cat >>conftest.$ac_ext <<_ACEOF
5603
/* end confdefs.h. */
5605
# include <limits.h>
5607
# include <assert.h>
5611
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5612
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5614
grep -v '^ *+' conftest.er1 >conftest.err
5616
cat conftest.err >&5
5617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
(exit $ac_status); } >/dev/null; then
5619
if test -s conftest.err; then
5620
ac_cpp_err=$ac_c_preproc_warn_flag
5627
if test -z "$ac_cpp_err"; then
5630
echo "$as_me: failed program was:" >&5
5631
sed 's/^/| /' conftest.$ac_ext >&5
5633
# Broken: fails on valid input.
5636
rm -f conftest.err conftest.$ac_ext
5638
# OK, works on sane cases. Now check whether non-existent headers
5639
# can be detected and how.
5640
cat >conftest.$ac_ext <<_ACEOF
5641
#line $LINENO "configure"
5644
cat confdefs.h >>conftest.$ac_ext
5645
cat >>conftest.$ac_ext <<_ACEOF
5646
/* end confdefs.h. */
5647
#include <ac_nonexistent.h>
5649
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5650
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5652
grep -v '^ *+' conftest.er1 >conftest.err
5654
cat conftest.err >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); } >/dev/null; then
5657
if test -s conftest.err; then
5658
ac_cpp_err=$ac_c_preproc_warn_flag
5665
if test -z "$ac_cpp_err"; then
5666
# Broken: success on invalid input.
5669
echo "$as_me: failed program was:" >&5
5670
sed 's/^/| /' conftest.$ac_ext >&5
5672
# Passes both tests.
5676
rm -f conftest.err conftest.$ac_ext
5679
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5680
rm -f conftest.err conftest.$ac_ext
5681
if $ac_preproc_ok; then
5693
echo "$as_me:$LINENO: result: $CPP" >&5
5694
echo "${ECHO_T}$CPP" >&6
5696
for ac_c_preproc_warn_flag in '' yes
5698
# Use a header file that comes with gcc, so configuring glibc
5699
# with a fresh cross-compiler works.
5700
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5701
# <limits.h> exists even on freestanding compilers.
5702
# On the NeXT, cc -E runs the code through the compiler's parser,
5703
# not just through cpp. "Syntax error" is here to catch this case.
5704
cat >conftest.$ac_ext <<_ACEOF
5705
#line $LINENO "configure"
5708
cat confdefs.h >>conftest.$ac_ext
5709
cat >>conftest.$ac_ext <<_ACEOF
5710
/* end confdefs.h. */
5712
# include <limits.h>
5714
# include <assert.h>
5718
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5719
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5721
grep -v '^ *+' conftest.er1 >conftest.err
5723
cat conftest.err >&5
5724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
(exit $ac_status); } >/dev/null; then
5726
if test -s conftest.err; then
5727
ac_cpp_err=$ac_c_preproc_warn_flag
5734
if test -z "$ac_cpp_err"; then
5737
echo "$as_me: failed program was:" >&5
5738
sed 's/^/| /' conftest.$ac_ext >&5
5740
# Broken: fails on valid input.
5743
rm -f conftest.err conftest.$ac_ext
5745
# OK, works on sane cases. Now check whether non-existent headers
5746
# can be detected and how.
5747
cat >conftest.$ac_ext <<_ACEOF
5748
#line $LINENO "configure"
5751
cat confdefs.h >>conftest.$ac_ext
5752
cat >>conftest.$ac_ext <<_ACEOF
5753
/* end confdefs.h. */
5754
#include <ac_nonexistent.h>
5756
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5757
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5759
grep -v '^ *+' conftest.er1 >conftest.err
5761
cat conftest.err >&5
5762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); } >/dev/null; then
5764
if test -s conftest.err; then
5765
ac_cpp_err=$ac_c_preproc_warn_flag
5772
if test -z "$ac_cpp_err"; then
5773
# Broken: success on invalid input.
5776
echo "$as_me: failed program was:" >&5
5777
sed 's/^/| /' conftest.$ac_ext >&5
5779
# Passes both tests.
5783
rm -f conftest.err conftest.$ac_ext
5786
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787
rm -f conftest.err conftest.$ac_ext
5788
if $ac_preproc_ok; then
5791
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5792
See \`config.log' for more details." >&5
5793
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794
See \`config.log' for more details." >&2;}
5795
{ (exit 1); exit 1; }; }
5799
ac_cpp='$CPP $CPPFLAGS'
5800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
echo "$as_me:$LINENO: checking for egrep" >&5
5806
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807
if test "${ac_cv_prog_egrep+set}" = set; then
5808
echo $ECHO_N "(cached) $ECHO_C" >&6
5810
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811
then ac_cv_prog_egrep='grep -E'
5812
else ac_cv_prog_egrep='egrep'
5815
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817
EGREP=$ac_cv_prog_egrep
5820
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822
if test "${ac_cv_header_stdc+set}" = set; then
5823
echo $ECHO_N "(cached) $ECHO_C" >&6
5825
cat >conftest.$ac_ext <<_ACEOF
5826
#line $LINENO "configure"
5829
cat confdefs.h >>conftest.$ac_ext
5830
cat >>conftest.$ac_ext <<_ACEOF
5831
/* end confdefs.h. */
5845
rm -f conftest.$ac_objext
5846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847
(eval $ac_compile) 2>&5
5849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
(exit $ac_status); } &&
5851
{ ac_try='test -s conftest.$ac_objext'
5852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856
(exit $ac_status); }; }; then
5857
ac_cv_header_stdc=yes
5859
echo "$as_me: failed program was:" >&5
5860
sed 's/^/| /' conftest.$ac_ext >&5
5862
ac_cv_header_stdc=no
5864
rm -f conftest.$ac_objext conftest.$ac_ext
5866
if test $ac_cv_header_stdc = yes; then
5867
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5868
cat >conftest.$ac_ext <<_ACEOF
5869
#line $LINENO "configure"
5872
cat confdefs.h >>conftest.$ac_ext
5873
cat >>conftest.$ac_ext <<_ACEOF
5874
/* end confdefs.h. */
5878
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5879
$EGREP "memchr" >/dev/null 2>&1; then
5882
ac_cv_header_stdc=no
5888
if test $ac_cv_header_stdc = yes; then
5889
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5890
cat >conftest.$ac_ext <<_ACEOF
5891
#line $LINENO "configure"
5894
cat confdefs.h >>conftest.$ac_ext
5895
cat >>conftest.$ac_ext <<_ACEOF
5896
/* end confdefs.h. */
5900
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901
$EGREP "free" >/dev/null 2>&1; then
5904
ac_cv_header_stdc=no
5910
if test $ac_cv_header_stdc = yes; then
5911
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5912
if test "$cross_compiling" = yes; then
5915
cat >conftest.$ac_ext <<_ACEOF
5916
#line $LINENO "configure"
5919
cat confdefs.h >>conftest.$ac_ext
5920
cat >>conftest.$ac_ext <<_ACEOF
5921
/* end confdefs.h. */
5923
#if ((' ' & 0x0FF) == 0x020)
5924
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5927
# define ISLOWER(c) \
5928
(('a' <= (c) && (c) <= 'i') \
5929
|| ('j' <= (c) && (c) <= 'r') \
5930
|| ('s' <= (c) && (c) <= 'z'))
5931
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5934
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5939
for (i = 0; i < 256; i++)
5940
if (XOR (islower (i), ISLOWER (i))
5941
|| toupper (i) != TOUPPER (i))
5946
rm -f conftest$ac_exeext
5947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948
(eval $ac_link) 2>&5
5950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
(exit $ac_status); }; }; then
5959
echo "$as_me: program exited with status $ac_status" >&5
5960
echo "$as_me: failed program was:" >&5
5961
sed 's/^/| /' conftest.$ac_ext >&5
5964
ac_cv_header_stdc=no
5966
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5971
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5972
if test $ac_cv_header_stdc = yes; then
5974
cat >>confdefs.h <<\_ACEOF
5975
#define STDC_HEADERS 1
5980
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5990
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5991
inttypes.h stdint.h unistd.h
5993
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994
echo "$as_me:$LINENO: checking for $ac_header" >&5
5995
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997
echo $ECHO_N "(cached) $ECHO_C" >&6
5999
cat >conftest.$ac_ext <<_ACEOF
6000
#line $LINENO "configure"
6003
cat confdefs.h >>conftest.$ac_ext
6004
cat >>conftest.$ac_ext <<_ACEOF
6005
/* end confdefs.h. */
6006
$ac_includes_default
6008
#include <$ac_header>
6010
rm -f conftest.$ac_objext
6011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012
(eval $ac_compile) 2>&5
6014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015
(exit $ac_status); } &&
6016
{ ac_try='test -s conftest.$ac_objext'
6017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
(exit $ac_status); }; }; then
6022
eval "$as_ac_Header=yes"
6024
echo "$as_me: failed program was:" >&5
6025
sed 's/^/| /' conftest.$ac_ext >&5
6027
eval "$as_ac_Header=no"
6029
rm -f conftest.$ac_objext conftest.$ac_ext
6031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034
cat >>confdefs.h <<_ACEOF
6035
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044
for ac_header in dlfcn.h
6046
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048
echo "$as_me:$LINENO: checking for $ac_header" >&5
6049
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6050
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6051
echo $ECHO_N "(cached) $ECHO_C" >&6
6053
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6054
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056
# Is the header compilable?
6057
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6058
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6059
cat >conftest.$ac_ext <<_ACEOF
6060
#line $LINENO "configure"
6063
cat confdefs.h >>conftest.$ac_ext
6064
cat >>conftest.$ac_ext <<_ACEOF
6065
/* end confdefs.h. */
6066
$ac_includes_default
6067
#include <$ac_header>
6069
rm -f conftest.$ac_objext
6070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071
(eval $ac_compile) 2>&5
6073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
(exit $ac_status); } &&
6075
{ ac_try='test -s conftest.$ac_objext'
6076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080
(exit $ac_status); }; }; then
6081
ac_header_compiler=yes
6083
echo "$as_me: failed program was:" >&5
6084
sed 's/^/| /' conftest.$ac_ext >&5
6086
ac_header_compiler=no
6088
rm -f conftest.$ac_objext conftest.$ac_ext
6089
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6090
echo "${ECHO_T}$ac_header_compiler" >&6
6092
# Is the header present?
6093
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6094
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6095
cat >conftest.$ac_ext <<_ACEOF
6096
#line $LINENO "configure"
6099
cat confdefs.h >>conftest.$ac_ext
6100
cat >>conftest.$ac_ext <<_ACEOF
6101
/* end confdefs.h. */
6102
#include <$ac_header>
6104
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6105
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6107
grep -v '^ *+' conftest.er1 >conftest.err
6109
cat conftest.err >&5
6110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
(exit $ac_status); } >/dev/null; then
6112
if test -s conftest.err; then
6113
ac_cpp_err=$ac_c_preproc_warn_flag
6120
if test -z "$ac_cpp_err"; then
6121
ac_header_preproc=yes
6123
echo "$as_me: failed program was:" >&5
6124
sed 's/^/| /' conftest.$ac_ext >&5
6126
ac_header_preproc=no
6128
rm -f conftest.err conftest.$ac_ext
6129
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6130
echo "${ECHO_T}$ac_header_preproc" >&6
6132
# So? What about this header?
6133
case $ac_header_compiler:$ac_header_preproc in
6135
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6136
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6137
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6141
## ------------------------------------ ##
6142
## Report this to bug-autoconf@gnu.org. ##
6143
## ------------------------------------ ##
6146
sed "s/^/$as_me: WARNING: /" >&2
6149
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6150
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6151
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6152
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6153
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6154
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6157
## ------------------------------------ ##
6158
## Report this to bug-autoconf@gnu.org. ##
6159
## ------------------------------------ ##
6162
sed "s/^/$as_me: WARNING: /" >&2
6165
echo "$as_me:$LINENO: checking for $ac_header" >&5
6166
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6167
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168
echo $ECHO_N "(cached) $ECHO_C" >&6
6170
eval "$as_ac_Header=$ac_header_preproc"
6172
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6173
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6176
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6177
cat >>confdefs.h <<_ACEOF
6178
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189
# Only perform the check for file, if the check method requires it
6190
case $deplibs_check_method in
6192
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6193
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6194
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6195
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196
echo $ECHO_N "(cached) $ECHO_C" >&6
6200
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6203
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6206
ac_save_MAGIC_CMD="$MAGIC_CMD"
6207
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6208
ac_dummy="/usr/bin:$PATH"
6209
for ac_dir in $ac_dummy; do
6210
test -z "$ac_dir" && ac_dir=.
6211
if test -f $ac_dir/${ac_tool_prefix}file; then
6212
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6213
if test -n "$file_magic_test_file"; then
6214
case $deplibs_check_method in
6216
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6217
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6218
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6219
egrep "$file_magic_regex" > /dev/null; then
6224
*** Warning: the command libtool uses to detect shared libraries,
6225
*** $file_magic_cmd, produces output that libtool cannot recognize.
6226
*** The result is that libtool may fail to recognize shared libraries
6227
*** as such. This will affect the creation of libtool libraries that
6228
*** depend on shared libraries, but programs linked with such libtool
6229
*** libraries will work regardless of this problem. Nevertheless, you
6230
*** may want to report the problem to your system manager and/or to
6231
*** bug-libtool@gnu.org
6241
MAGIC_CMD="$ac_save_MAGIC_CMD"
6246
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6247
if test -n "$MAGIC_CMD"; then
6248
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6249
echo "${ECHO_T}$MAGIC_CMD" >&6
6251
echo "$as_me:$LINENO: result: no" >&5
6252
echo "${ECHO_T}no" >&6
6255
if test -z "$lt_cv_path_MAGIC_CMD"; then
6256
if test -n "$ac_tool_prefix"; then
6257
echo "$as_me:$LINENO: checking for file" >&5
6258
echo $ECHO_N "checking for file... $ECHO_C" >&6
6259
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6260
echo $ECHO_N "(cached) $ECHO_C" >&6
6264
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6267
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6270
ac_save_MAGIC_CMD="$MAGIC_CMD"
6271
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6272
ac_dummy="/usr/bin:$PATH"
6273
for ac_dir in $ac_dummy; do
6274
test -z "$ac_dir" && ac_dir=.
6275
if test -f $ac_dir/file; then
6276
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6277
if test -n "$file_magic_test_file"; then
6278
case $deplibs_check_method in
6280
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6281
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6283
egrep "$file_magic_regex" > /dev/null; then
6288
*** Warning: the command libtool uses to detect shared libraries,
6289
*** $file_magic_cmd, produces output that libtool cannot recognize.
6290
*** The result is that libtool may fail to recognize shared libraries
6291
*** as such. This will affect the creation of libtool libraries that
6292
*** depend on shared libraries, but programs linked with such libtool
6293
*** libraries will work regardless of this problem. Nevertheless, you
6294
*** may want to report the problem to your system manager and/or to
6295
*** bug-libtool@gnu.org
6305
MAGIC_CMD="$ac_save_MAGIC_CMD"
6310
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6311
if test -n "$MAGIC_CMD"; then
6312
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6313
echo "${ECHO_T}$MAGIC_CMD" >&6
6315
echo "$as_me:$LINENO: result: no" >&5
6316
echo "${ECHO_T}no" >&6
6328
if test -n "$ac_tool_prefix"; then
6329
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6330
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6331
echo "$as_me:$LINENO: checking for $ac_word" >&5
6332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333
if test "${ac_cv_prog_RANLIB+set}" = set; then
6334
echo $ECHO_N "(cached) $ECHO_C" >&6
6336
if test -n "$RANLIB"; then
6337
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343
test -z "$as_dir" && as_dir=.
6344
for ac_exec_ext in '' $ac_executable_extensions; do
6345
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6347
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355
RANLIB=$ac_cv_prog_RANLIB
6356
if test -n "$RANLIB"; then
6357
echo "$as_me:$LINENO: result: $RANLIB" >&5
6358
echo "${ECHO_T}$RANLIB" >&6
6360
echo "$as_me:$LINENO: result: no" >&5
6361
echo "${ECHO_T}no" >&6
6365
if test -z "$ac_cv_prog_RANLIB"; then
6366
ac_ct_RANLIB=$RANLIB
6367
# Extract the first word of "ranlib", so it can be a program name with args.
6368
set dummy ranlib; ac_word=$2
6369
echo "$as_me:$LINENO: checking for $ac_word" >&5
6370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6371
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6372
echo $ECHO_N "(cached) $ECHO_C" >&6
6374
if test -n "$ac_ct_RANLIB"; then
6375
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381
test -z "$as_dir" && as_dir=.
6382
for ac_exec_ext in '' $ac_executable_extensions; do
6383
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384
ac_cv_prog_ac_ct_RANLIB="ranlib"
6385
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6394
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6395
if test -n "$ac_ct_RANLIB"; then
6396
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6397
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6399
echo "$as_me:$LINENO: result: no" >&5
6400
echo "${ECHO_T}no" >&6
6403
RANLIB=$ac_ct_RANLIB
6405
RANLIB="$ac_cv_prog_RANLIB"
6408
if test -n "$ac_tool_prefix"; then
6409
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6410
set dummy ${ac_tool_prefix}strip; ac_word=$2
6411
echo "$as_me:$LINENO: checking for $ac_word" >&5
6412
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413
if test "${ac_cv_prog_STRIP+set}" = set; then
6414
echo $ECHO_N "(cached) $ECHO_C" >&6
6416
if test -n "$STRIP"; then
6417
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423
test -z "$as_dir" && as_dir=.
6424
for ac_exec_ext in '' $ac_executable_extensions; do
6425
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6427
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435
STRIP=$ac_cv_prog_STRIP
6436
if test -n "$STRIP"; then
6437
echo "$as_me:$LINENO: result: $STRIP" >&5
6438
echo "${ECHO_T}$STRIP" >&6
6440
echo "$as_me:$LINENO: result: no" >&5
6441
echo "${ECHO_T}no" >&6
6445
if test -z "$ac_cv_prog_STRIP"; then
6447
# Extract the first word of "strip", so it can be a program name with args.
6448
set dummy strip; ac_word=$2
6449
echo "$as_me:$LINENO: checking for $ac_word" >&5
6450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6452
echo $ECHO_N "(cached) $ECHO_C" >&6
6454
if test -n "$ac_ct_STRIP"; then
6455
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461
test -z "$as_dir" && as_dir=.
6462
for ac_exec_ext in '' $ac_executable_extensions; do
6463
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464
ac_cv_prog_ac_ct_STRIP="strip"
6465
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6474
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6475
if test -n "$ac_ct_STRIP"; then
6476
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6477
echo "${ECHO_T}$ac_ct_STRIP" >&6
6479
echo "$as_me:$LINENO: result: no" >&5
6480
echo "${ECHO_T}no" >&6
6485
STRIP="$ac_cv_prog_STRIP"
6492
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6493
if test "${enable_libtool_lock+set}" = set; then
6494
enableval="$enable_libtool_lock"
6497
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6499
# Some flags need to be propagated to the compiler or linker for good
6503
# Find out which ABI we are using.
6504
echo '#line 6492 "configure"' > conftest.$ac_ext
6505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506
(eval $ac_compile) 2>&5
6508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509
(exit $ac_status); }; then
6510
case `/usr/bin/file conftest.$ac_objext` in
6526
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6527
SAVE_CFLAGS="$CFLAGS"
6528
CFLAGS="$CFLAGS -belf"
6529
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6530
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6531
if test "${lt_cv_cc_needs_belf+set}" = set; then
6532
echo $ECHO_N "(cached) $ECHO_C" >&6
6537
ac_cpp='$CPP $CPPFLAGS'
6538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
cat >conftest.$ac_ext <<_ACEOF
6543
#line $LINENO "configure"
6546
cat confdefs.h >>conftest.$ac_ext
6547
cat >>conftest.$ac_ext <<_ACEOF
6548
/* end confdefs.h. */
6558
rm -f conftest.$ac_objext conftest$ac_exeext
6559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560
(eval $ac_link) 2>&5
6562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563
(exit $ac_status); } &&
6564
{ ac_try='test -s conftest$ac_exeext'
6565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569
(exit $ac_status); }; }; then
6570
lt_cv_cc_needs_belf=yes
6572
echo "$as_me: failed program was:" >&5
6573
sed 's/^/| /' conftest.$ac_ext >&5
6575
lt_cv_cc_needs_belf=no
6577
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579
ac_cpp='$CPP $CPPFLAGS'
6580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6587
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589
CFLAGS="$SAVE_CFLAGS"
6596
# Sed substitution that helps us do robust quoting. It backslashifies
6597
# metacharacters that are still active within double-quoted strings.
6598
Xsed='sed -e s/^X//'
6599
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6601
# Same as above, but do not quote variable references.
6602
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6604
# Sed substitution to delay expansion of an escaped shell variable in a
6605
# double_quote_subst'ed string.
6606
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612
default_ofile=libtool
6613
can_build_shared=yes
6615
# All known linkers require a `.a' archive for static linking (except M$VC,
6616
# which needs '.lib').
6618
ltmain="$ac_aux_dir/ltmain.sh"
6619
ofile="$default_ofile"
6620
with_gnu_ld="$lt_cv_prog_gnu_ld"
6621
need_locks="$enable_libtool_lock"
6624
old_CFLAGS="$CFLAGS"
6626
# Set sane defaults for various variables
6627
test -z "$AR" && AR=ar
6628
test -z "$AR_FLAGS" && AR_FLAGS=cru
6629
test -z "$AS" && AS=as
6630
test -z "$CC" && CC=cc
6631
test -z "$DLLTOOL" && DLLTOOL=dlltool
6632
test -z "$LD" && LD=ld
6633
test -z "$LN_S" && LN_S="ln -s"
6634
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6635
test -z "$NM" && NM=nm
6636
test -z "$OBJDUMP" && OBJDUMP=objdump
6637
test -z "$RANLIB" && RANLIB=:
6638
test -z "$STRIP" && STRIP=:
6639
test -z "$ac_objext" && ac_objext=o
6641
if test x"$host" != x"$build"; then
6642
ac_tool_prefix=${host_alias}-
6647
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6650
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6655
# AIX sometimes has problems with the GCC collect2 program. For some
6656
# reason, if we set the COLLECT_NAMES environment variable, the problems
6657
# vanish in a puff of smoke.
6658
if test "X${COLLECT_NAMES+set}" != Xset; then
6660
export COLLECT_NAMES
6665
# Determine commands to create old-style static archives.
6666
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6667
old_postinstall_cmds='chmod 644 $oldlib'
6668
old_postuninstall_cmds=
6670
if test -n "$RANLIB"; then
6673
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6676
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6679
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6682
# Allow CC to be a program name with arguments.
6686
## FIXME: this should be a separate macro
6688
echo "$as_me:$LINENO: checking for objdir" >&5
6689
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6690
rm -f .libs 2>/dev/null
6691
mkdir .libs 2>/dev/null
6692
if test -d .libs; then
6695
# MS-DOS does not allow filenames that begin with a dot.
6698
rmdir .libs 2>/dev/null
6699
echo "$as_me:$LINENO: result: $objdir" >&5
6700
echo "${ECHO_T}$objdir" >&6
6705
## FIXME: this should be a separate macro
6708
# Check whether --with-pic or --without-pic was given.
6709
if test "${with_pic+set}" = set; then
6715
test -z "$pic_mode" && pic_mode=default
6717
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
6718
# in isolation, and that seeing it set (from the cache) indicates that
6719
# the associated values are set (in the cache) correctly too.
6720
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6721
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6722
if test "${lt_cv_prog_cc_pic+set}" = set; then
6723
echo $ECHO_N "(cached) $ECHO_C" >&6
6726
lt_cv_prog_cc_shlib=
6728
lt_cv_prog_cc_static=
6729
lt_cv_prog_cc_no_builtin=
6730
lt_cv_prog_cc_can_build_shared=$can_build_shared
6732
if test "$GCC" = yes; then
6733
lt_cv_prog_cc_wl='-Wl,'
6734
lt_cv_prog_cc_static='-static'
6738
# Below there is a dirty hack to force normal static linking with -ldl
6739
# The problem is because libdl dynamically linked with both libc and
6740
# libC (AIX C++ library), which obviously doesn't included in libraries
6741
# list by gcc. This cause undefined symbols with -static flags.
6742
# This hack allows C programs to be linked with "-static -ldl", but
6743
# not sure about C++ programs.
6744
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6747
# FIXME: we need at least 68020 code to build shared libraries, but
6748
# adding the `-m68020' flag to GCC prevents building anything better,
6750
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6752
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6753
# PIC is the default for these OSes.
6755
darwin* | rhapsody*)
6756
# PIC is the default on this platform
6757
# Common symbols not allowed in MH_DYLIB files
6758
lt_cv_prog_cc_pic='-fno-common'
6760
cygwin* | mingw* | pw32* | os2*)
6761
# This hack is so that the source file can tell whether it is being
6762
# built for inclusion in a dll (and should export symbols for example).
6763
lt_cv_prog_cc_pic='-DDLL_EXPORT'
6766
if test -d /usr/nec; then
6767
lt_cv_prog_cc_pic=-Kconform_pic
6771
lt_cv_prog_cc_pic='-fPIC'
6775
# PORTME Check for PIC flags for the system compiler.
6777
aix3* | aix4* | aix5*)
6778
lt_cv_prog_cc_wl='-Wl,'
6779
# All AIX code is PIC.
6780
if test "$host_cpu" = ia64; then
6781
# AIX 5 now supports IA64 processor
6782
lt_cv_prog_cc_static='-Bstatic'
6784
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6788
hpux9* | hpux10* | hpux11*)
6789
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6790
lt_cv_prog_cc_wl='-Wl,'
6791
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6792
lt_cv_prog_cc_pic='+Z'
6796
lt_cv_prog_cc_wl='-Wl,'
6797
lt_cv_prog_cc_static='-non_shared'
6798
# PIC (with -KPIC) is the default.
6801
cygwin* | mingw* | pw32* | os2*)
6802
# This hack is so that the source file can tell whether it is being
6803
# built for inclusion in a dll (and should export symbols for example).
6804
lt_cv_prog_cc_pic='-DDLL_EXPORT'
6808
lt_cv_prog_cc_pic='-KPIC'
6809
lt_cv_prog_cc_static='-Bstatic'
6812
osf3* | osf4* | osf5*)
6813
# All OSF/1 code is PIC.
6814
lt_cv_prog_cc_wl='-Wl,'
6815
lt_cv_prog_cc_static='-non_shared'
6819
lt_cv_prog_cc_pic='-Kpic'
6820
lt_cv_prog_cc_static='-dn'
6821
lt_cv_prog_cc_shlib='-belf'
6825
lt_cv_prog_cc_pic='-KPIC'
6826
lt_cv_prog_cc_static='-Bstatic'
6827
lt_cv_prog_cc_wl='-Wl,'
6831
lt_cv_prog_cc_pic='-PIC'
6832
lt_cv_prog_cc_static='-Bstatic'
6833
lt_cv_prog_cc_wl='-Qoption ld '
6836
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6837
lt_cv_prog_cc_pic='-KPIC'
6838
lt_cv_prog_cc_static='-Bstatic'
6839
if test "x$host_vendor" = xsni; then
6840
lt_cv_prog_cc_wl='-LD'
6842
lt_cv_prog_cc_wl='-Wl,'
6847
lt_cv_prog_cc_pic='-pic'
6848
lt_cv_prog_cc_static='-Bstatic'
6852
if test -d /usr/nec ;then
6853
lt_cv_prog_cc_pic='-Kconform_pic'
6854
lt_cv_prog_cc_static='-Bstatic'
6859
lt_cv_prog_cc_can_build_shared=no
6866
if test -z "$lt_cv_prog_cc_pic"; then
6867
echo "$as_me:$LINENO: result: none" >&5
6868
echo "${ECHO_T}none" >&6
6870
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6871
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6873
# Check to make sure the pic_flag actually works.
6874
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6875
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6876
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6877
echo $ECHO_N "(cached) $ECHO_C" >&6
6879
save_CFLAGS="$CFLAGS"
6880
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6881
cat >conftest.$ac_ext <<_ACEOF
6882
#line $LINENO "configure"
6885
cat confdefs.h >>conftest.$ac_ext
6886
cat >>conftest.$ac_ext <<_ACEOF
6887
/* end confdefs.h. */
6897
rm -f conftest.$ac_objext
6898
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899
(eval $ac_compile) 2>&5
6901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902
(exit $ac_status); } &&
6903
{ ac_try='test -s conftest.$ac_objext'
6904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908
(exit $ac_status); }; }; then
6910
hpux9* | hpux10* | hpux11*)
6911
# On HP-UX, both CC and GCC only warn that PIC is supported... then
6912
# they create non-PIC objects. So, if there were any warnings, we
6913
# assume that PIC is not supported.
6914
if test -s conftest.err; then
6915
lt_cv_prog_cc_pic_works=no
6917
lt_cv_prog_cc_pic_works=yes
6921
lt_cv_prog_cc_pic_works=yes
6926
echo "$as_me: failed program was:" >&5
6927
sed 's/^/| /' conftest.$ac_ext >&5
6929
lt_cv_prog_cc_pic_works=no
6932
rm -f conftest.$ac_objext conftest.$ac_ext
6933
CFLAGS="$save_CFLAGS"
6938
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6940
lt_cv_prog_cc_can_build_shared=no
6942
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6945
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6946
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6951
# Check for any special shared library compilation flags.
6952
if test -n "$lt_cv_prog_cc_shlib"; then
6953
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6954
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6955
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6957
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6958
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6959
lt_cv_prog_cc_can_build_shared=no
6963
## FIXME: this should be a separate macro
6965
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6966
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6967
if test "${lt_cv_prog_cc_static_works+set}" = set; then
6968
echo $ECHO_N "(cached) $ECHO_C" >&6
6970
lt_cv_prog_cc_static_works=no
6971
save_LDFLAGS="$LDFLAGS"
6972
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6973
cat >conftest.$ac_ext <<_ACEOF
6974
#line $LINENO "configure"
6977
cat confdefs.h >>conftest.$ac_ext
6978
cat >>conftest.$ac_ext <<_ACEOF
6979
/* end confdefs.h. */
6989
rm -f conftest.$ac_objext conftest$ac_exeext
6990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991
(eval $ac_link) 2>&5
6993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994
(exit $ac_status); } &&
6995
{ ac_try='test -s conftest$ac_exeext'
6996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); }; }; then
7001
lt_cv_prog_cc_static_works=yes
7003
echo "$as_me: failed program was:" >&5
7004
sed 's/^/| /' conftest.$ac_ext >&5
7007
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008
LDFLAGS="$save_LDFLAGS"
7013
# Belt *and* braces to stop my trousers falling down:
7014
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
7015
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
7016
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
7018
pic_flag="$lt_cv_prog_cc_pic"
7019
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
7020
wl="$lt_cv_prog_cc_wl"
7021
link_static_flag="$lt_cv_prog_cc_static"
7022
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
7023
can_build_shared="$lt_cv_prog_cc_can_build_shared"
7028
## FIXME: this should be a separate macro
7030
# Check to see if options -o and -c are simultaneously supported by compiler
7031
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7032
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7033
if test "${lt_cv_compiler_c_o+set}" = set; then
7034
echo $ECHO_N "(cached) $ECHO_C" >&6
7037
$rm -r conftest 2>/dev/null
7040
echo "int some_variable = 0;" > conftest.$ac_ext
7042
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7043
# that will create temporary files in the current directory regardless of
7044
# the output directory. Thus, making CWD read-only will cause this test
7045
# to fail, enabling locking or at least warning the user not to do parallel
7048
save_CFLAGS="$CFLAGS"
7049
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
7051
if { (eval echo configure:7039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
7052
# The compiler can only warn and ignore the option if not recognized
7053
# So say no if there are warnings
7054
if test -s out/conftest.err; then
7055
lt_cv_compiler_c_o=no
7057
lt_cv_compiler_c_o=yes
7060
# Append any errors to the config.log.
7061
cat out/conftest.err 1>&5
7062
lt_cv_compiler_c_o=no
7064
CFLAGS="$save_CFLAGS"
7070
$rm -r conftest 2>/dev/null
7074
compiler_c_o=$lt_cv_compiler_c_o
7075
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
7076
echo "${ECHO_T}$compiler_c_o" >&6
7078
if test x"$compiler_c_o" = x"yes"; then
7079
# Check to see if we can write to a .lo
7080
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
7081
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
7082
if test "${lt_cv_compiler_o_lo+set}" = set; then
7083
echo $ECHO_N "(cached) $ECHO_C" >&6
7086
lt_cv_compiler_o_lo=no
7087
save_CFLAGS="$CFLAGS"
7088
CFLAGS="$CFLAGS -c -o conftest.lo"
7089
save_objext="$ac_objext"
7091
cat >conftest.$ac_ext <<_ACEOF
7092
#line $LINENO "configure"
7095
cat confdefs.h >>conftest.$ac_ext
7096
cat >>conftest.$ac_ext <<_ACEOF
7097
/* end confdefs.h. */
7102
int some_variable = 0;
7107
rm -f conftest.$ac_objext
7108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109
(eval $ac_compile) 2>&5
7111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112
(exit $ac_status); } &&
7113
{ ac_try='test -s conftest.$ac_objext'
7114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118
(exit $ac_status); }; }; then
7119
# The compiler can only warn and ignore the option if not recognized
7120
# So say no if there are warnings
7121
if test -s conftest.err; then
7122
lt_cv_compiler_o_lo=no
7124
lt_cv_compiler_o_lo=yes
7128
echo "$as_me: failed program was:" >&5
7129
sed 's/^/| /' conftest.$ac_ext >&5
7132
rm -f conftest.$ac_objext conftest.$ac_ext
7133
ac_objext="$save_objext"
7134
CFLAGS="$save_CFLAGS"
7138
compiler_o_lo=$lt_cv_compiler_o_lo
7139
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
7140
echo "${ECHO_T}$compiler_o_lo" >&6
7147
## FIXME: this should be a separate macro
7149
# Check to see if we can do hard links to lock some files if needed
7150
hard_links="nottested"
7151
if test "$compiler_c_o" = no && test "$need_locks" != no; then
7152
# do not overwrite the value of need_locks provided by the user
7153
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7154
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7157
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7159
ln conftest.a conftest.b 2>&5 || hard_links=no
7160
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7161
echo "$as_me:$LINENO: result: $hard_links" >&5
7162
echo "${ECHO_T}$hard_links" >&6
7163
if test "$hard_links" = no; then
7164
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7165
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7174
## FIXME: this should be a separate macro
7176
if test "$GCC" = yes; then
7177
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
7178
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7180
echo "int some_variable = 0;" > conftest.$ac_ext
7181
save_CFLAGS="$CFLAGS"
7182
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
7183
compiler_rtti_exceptions=no
7184
cat >conftest.$ac_ext <<_ACEOF
7185
#line $LINENO "configure"
7188
cat confdefs.h >>conftest.$ac_ext
7189
cat >>conftest.$ac_ext <<_ACEOF
7190
/* end confdefs.h. */
7195
int some_variable = 0;
7200
rm -f conftest.$ac_objext
7201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202
(eval $ac_compile) 2>&5
7204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
(exit $ac_status); } &&
7206
{ ac_try='test -s conftest.$ac_objext'
7207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
(exit $ac_status); }; }; then
7212
# The compiler can only warn and ignore the option if not recognized
7213
# So say no if there are warnings
7214
if test -s conftest.err; then
7215
compiler_rtti_exceptions=no
7217
compiler_rtti_exceptions=yes
7221
echo "$as_me: failed program was:" >&5
7222
sed 's/^/| /' conftest.$ac_ext >&5
7225
rm -f conftest.$ac_objext conftest.$ac_ext
7226
CFLAGS="$save_CFLAGS"
7227
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
7228
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
7230
if test "$compiler_rtti_exceptions" = "yes"; then
7231
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
7233
no_builtin_flag=' -fno-builtin'
7239
## FIXME: this should be a separate macro
7241
# See if the linker supports building shared libraries.
7242
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
7243
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
7245
allow_undefined_flag=
7247
need_lib_prefix=unknown
7248
need_version=unknown
7249
# when you set need_version to no, make sure it does not cause -set_version
7250
# flags to be left without arguments
7252
archive_expsym_cmds=
7253
old_archive_from_new_cmds=
7254
old_archive_from_expsyms_cmds=
7255
export_dynamic_flag_spec=
7256
whole_archive_flag_spec=
7257
thread_safe_flag_spec=
7258
hardcode_into_libs=no
7259
hardcode_libdir_flag_spec=
7260
hardcode_libdir_separator=
7263
hardcode_shlibpath_var=unsupported
7265
link_all_deplibs=unknown
7266
always_export_symbols=no
7267
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
7268
# include_expsyms should be a list of space-separated symbols to be *always*
7269
# included in the symbol list
7271
# exclude_expsyms can be an egrep regular expression of symbols to exclude
7272
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7273
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274
# as well as any symbol that contains `d'.
7275
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7276
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277
# platforms (ab)use it in PIC code, but their linkers get confused if
7278
# the symbol is explicitly referenced. Since portable code cannot
7279
# rely on this symbol name, it's probably fine to never include it in
7280
# preloaded symbol tables.
7281
extract_expsyms_cmds=
7284
cygwin* | mingw* | pw32*)
7285
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7286
# When not using gcc, we currently assume that we are using
7287
# Microsoft Visual C++.
7288
if test "$GCC" != yes; then
7298
if test "$with_gnu_ld" = yes; then
7299
# If archive_cmds runs LD, not CC, wlarc should be empty
7302
# See if GNU ld supports shared libraries.
7304
aix3* | aix4* | aix5*)
7305
# On AIX, the GNU linker is very broken
7306
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
7310
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7311
*** to be unable to reliably create shared libraries on AIX.
7312
*** Therefore, libtool is disabling shared libraries support. If you
7313
*** really care for shared libraries, you may want to modify your PATH
7314
*** so that a non-GNU linker is found, and then restart.
7320
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)'
7321
hardcode_libdir_flag_spec='-L$libdir'
7322
hardcode_minus_L=yes
7324
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7325
# that the semantics of dynamic libraries on AmigaOS, at least up
7326
# to version 4, is to share data among multiple programs linked
7327
# with the same dynamic library. Since this doesn't match the
7328
# behavior of shared libraries on other platforms, we can use
7334
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7335
allow_undefined_flag=unsupported
7336
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7337
# support --undefined. This deserves some investigation. FIXME
7338
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7344
cygwin* | mingw* | pw32*)
7345
# hardcode_libdir_flag_spec is actually meaningless, as there is
7346
# no search path for DLLs.
7347
hardcode_libdir_flag_spec='-L$libdir'
7348
allow_undefined_flag=unsupported
7349
always_export_symbols=yes
7351
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
7352
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
7353
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
7354
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
7355
else $CC -o impgen impgen.c ; fi)~
7356
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
7358
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
7360
# cygwin and mingw dlls have different entry points and sets of symbols
7362
# FIXME: what about values for MSVC?
7363
dll_entry=__cygwin_dll_entry@12
7364
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
7368
dll_entry=_DllMainCRTStartup@12
7369
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
7373
# mingw and cygwin differ, and it's simplest to just exclude the union
7374
# of the two symbol sets.
7375
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
7377
# recent cygwin and mingw systems supply a stub DllMain which the user
7378
# can override, but on older systems we have to supply one (in ltdll.c)
7379
if test "x$lt_cv_need_dllmain" = "xyes"; then
7380
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
7381
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
7382
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
7388
# Extract the symbol export list from an `--export-all' def file,
7389
# then regenerate the def file from the symbol export list, so that
7390
# the compiled dll only exports the symbol export list.
7391
# Be careful not to strip the DATA tag left be newer dlltools.
7392
export_symbols_cmds="$ltdll_cmds"'
7393
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
7394
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
7396
# If the export-symbols file already is a .def file (1st line
7397
# is EXPORTS), use it as is.
7398
# If DATA tags from a recent dlltool are present, honour them!
7399
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
7400
cp $export_symbols $output_objdir/$soname-def;
7402
echo EXPORTS > $output_objdir/$soname-def;
7404
cat $export_symbols | while read symbol; do
7407
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
7408
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
7410
_lt_hint=`expr 1 + \$_lt_hint`;
7414
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7415
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
7416
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7417
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
7418
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
7422
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7423
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7426
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7432
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
7436
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7437
*** create shared libraries on Solaris systems. Therefore, libtool
7438
*** is disabling shared libraries support. We urge you to upgrade GNU
7439
*** binutils to release 2.9.1 or newer. Another option is to modify
7440
*** your PATH or compiler configuration so that the native linker is
7441
*** used, and then restart.
7444
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7445
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7456
hardcode_shlibpath_var=no
7460
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7461
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469
if test "$ld_shlibs" = yes; then
7470
runpath_var=LD_RUN_PATH
7471
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7472
export_dynamic_flag_spec='${wl}--export-dynamic'
7474
cygwin* | mingw* | pw32*)
7475
# dlltool doesn't understand --whole-archive et. al.
7476
whole_archive_flag_spec=
7479
# ancient GNU ld didn't support --whole-archive et. al.
7480
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7481
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7483
whole_archive_flag_spec=
7489
# PORTME fill in a description of your system's linker (not GNU ld)
7492
allow_undefined_flag=unsupported
7493
always_export_symbols=yes
7494
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'
7495
# Note: this linker hardcodes the directories in LIBPATH if there
7496
# are no directories specified by -L.
7497
hardcode_minus_L=yes
7498
if test "$GCC" = yes && test -z "$link_static_flag"; then
7499
# Neither direct hardcoding nor static linking is supported with a
7501
hardcode_direct=unsupported
7506
if test "$host_cpu" = ia64; then
7507
# On IA64, the linker does run time linking by default, so we don't
7508
# have to do anything special.
7509
aix_use_runtimelinking=no
7510
exp_sym_flag='-Bexport'
7513
aix_use_runtimelinking=no
7515
# Test if we are trying to use run time linking or normal
7516
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7517
# need to do runtime linking.
7518
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7519
for ld_flag in $LDFLAGS; do
7520
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7521
aix_use_runtimelinking=yes
7527
exp_sym_flag='-bexport'
7528
no_entry_flag='-bnoentry'
7531
# When large executables or shared objects are built, AIX ld can
7532
# have problems creating the table of contents. If linking a library
7533
# or program results in "error TOC overflow" add -mminimal-toc to
7534
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7535
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7539
hardcode_libdir_separator=':'
7541
#### Local change for Sleepycat's Berkeley DB [#5779]:
7542
# Added $aix_export variable to control use of exports file.
7543
# For non-gcc, we don't use exports files, and rather trust
7544
# the binder's -qmkshrobj option to export all the mangled
7545
# symbols we need for C++ and java.
7547
aix_export="\${wl}$exp_sym_flag:\$export_symbols"
7549
if test "$GCC" = yes; then
7550
case $host_os in aix4.[012]|aix4.[012].*)
7551
collect2name=`${CC} -print-prog-name=collect2`
7552
if test -f "$collect2name" && \
7553
strings "$collect2name" | grep resolve_lib_name >/dev/null
7555
# We have reworked collect2
7558
# We have old collect2
7559
hardcode_direct=unsupported
7560
# It fails to find uninstalled libraries when the uninstalled
7561
# path is not listed in the libpath. Setting hardcode_minus_L
7562
# to unsupported forces relinking
7563
hardcode_minus_L=yes
7564
hardcode_libdir_flag_spec='-L$libdir'
7565
hardcode_libdir_separator=
7569
shared_flag='-shared'
7572
if test "$host_cpu" = ia64; then
7573
shared_flag='${wl}-G'
7575
if test "$aix_use_runtimelinking" = yes; then
7576
shared_flag='${wl}-G'
7578
shared_flag='${wl}-bM:SRE'
7582
# Test for -qmkshrobj and use it if it's available.
7583
# It's superior for determining exportable symbols,
7584
# especially for C++ or JNI libraries, which have
7587
cat >conftest.$ac_ext <<_ACEOF
7590
if { (eval echo "$as_me:$LINENO: \"$CC -c conftest.c\"") >&5
7591
(eval $CC -c conftest.c) 2>&5
7593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594
(exit $ac_status); } && { (eval echo "$as_me:$LINENO: \"$CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r\"") >&5
7595
(eval $CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r) 2>&5
7597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598
(exit $ac_status); }; then
7599
lt_cv_aix_mkshrobj=yes
7601
lt_cv_aix_mkshrobj=no
7604
if test "$lt_cv_aix_mkshrobj" = yes; then
7605
aix_export="-qmkshrobj"
7609
# It seems that -bexpall can do strange things, so it is better to
7610
# generate a list of symbols to export.
7611
always_export_symbols=yes
7612
if test "$aix_use_runtimelinking" = yes; then
7613
# Warning - without using the other runtime loading flags (-brtl),
7614
# -berok will link without error, but may produce a broken library.
7615
allow_undefined_flag='-berok'
7616
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7617
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag $aix_export $shared_flag"
7619
if test "$host_cpu" = ia64; then
7620
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7621
allow_undefined_flag="-z nodefs"
7622
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"
7624
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7625
# Warning - without using the other run time loading flags,
7626
# -berok will link without error, but may produce a broken library.
7627
allow_undefined_flag='${wl}-berok'
7628
# This is a bit strange, but is similar to how AIX traditionally builds
7629
# it's shared libraries.
7630
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
7636
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)'
7637
hardcode_libdir_flag_spec='-L$libdir'
7638
hardcode_minus_L=yes
7639
# see comment about different semantics on the GNU ld section
7643
cygwin* | mingw* | pw32*)
7644
# When not using gcc, we currently assume that we are using
7645
# Microsoft Visual C++.
7646
# hardcode_libdir_flag_spec is actually meaningless, as there is
7647
# no search path for DLLs.
7648
hardcode_libdir_flag_spec=' '
7649
allow_undefined_flag=unsupported
7650
# Tell ltmain to make .lib files, not .a files.
7652
# FIXME: Setting linknames here is a bad hack.
7653
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7654
# The linker will automatically build a .lib file if we build a DLL.
7655
old_archive_from_new_cmds='true'
7656
# FIXME: Should let the user specify the lib program.
7657
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7658
fix_srcfile_path='`cygpath -w "$srcfile"`'
7661
darwin* | rhapsody*)
7663
rhapsody* | darwin1.[012])
7664
allow_undefined_flag='-undefined suppress'
7667
allow_undefined_flag='-flat_namespace -undefined suppress'
7670
# FIXME: Relying on posixy $() will cause problems for
7671
# cross-compilation, but unfortunately the echo tests do not
7672
# yet detect zsh echo's removal of \ escapes.
7674
#### Local change for Sleepycat's Berkeley DB [#5664] [#6511]
7677
# removed double quotes in the following line:
7678
archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
7680
*) # Darwin6.0 on (Mac OS/X Jaguar)
7681
archive_cmds='$nonopt $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -dynamiclib -install_name $rpath/$soname $verstring'
7684
#### End of changes for Sleepycat's Berkeley DB [#5664] [#6511]
7686
# We need to add '_' to the symbols in $export_symbols first
7687
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7689
hardcode_shlibpath_var=no
7690
whole_archive_flag_spec='-all_load $convenience'
7697
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698
# support. Future versions do this automatically, but an explicit c++rt0.o
7699
# does not break anything, and helps significantly (at the cost of a little
7702
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703
hardcode_libdir_flag_spec='-R$libdir'
7705
hardcode_shlibpath_var=no
7708
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7710
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7712
hardcode_minus_L=yes
7713
hardcode_shlibpath_var=no
7716
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7718
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719
hardcode_libdir_flag_spec='-R$libdir'
7721
hardcode_shlibpath_var=no
7724
hpux9* | hpux10* | hpux11*)
7726
hpux9*) 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' ;;
7727
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7729
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7730
hardcode_libdir_separator=:
7732
hardcode_minus_L=yes # Not in the search PATH, but as the default
7733
# location of the library.
7734
export_dynamic_flag_spec='${wl}-E'
7738
if test "$GCC" = yes; then
7739
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7741
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7743
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7744
hardcode_libdir_separator=:
7745
link_all_deplibs=yes
7749
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7750
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7752
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7754
hardcode_libdir_flag_spec='-R$libdir'
7756
hardcode_shlibpath_var=no
7760
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7763
hardcode_libdir_separator=:
7764
hardcode_shlibpath_var=no
7769
hardcode_shlibpath_var=no
7770
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7771
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7772
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7773
export_dynamic_flag_spec='${wl}-E'
7776
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7777
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7778
hardcode_libdir_flag_spec='-R$libdir'
7781
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7782
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7789
hardcode_libdir_flag_spec='-L$libdir'
7790
hardcode_minus_L=yes
7791
allow_undefined_flag=unsupported
7792
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'
7793
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7797
if test "$GCC" = yes; then
7798
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7799
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7801
allow_undefined_flag=' -expect_unresolved \*'
7802
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7804
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7805
hardcode_libdir_separator=:
7808
osf4* | osf5*) # as osf3* with the addition of -msym flag
7809
if test "$GCC" = yes; then
7810
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7811
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7812
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7814
allow_undefined_flag=' -expect_unresolved \*'
7815
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7816
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7817
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7819
#Both c and cxx compiler support -rpath directly
7820
hardcode_libdir_flag_spec='-rpath $libdir'
7822
hardcode_libdir_separator=:
7826
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7827
hardcode_shlibpath_var=no
7828
runpath_var=LD_RUN_PATH
7829
hardcode_runpath_var=yes
7830
export_dynamic_flag_spec='${wl}-Bexport'
7834
# gcc --version < 3.0 without binutils cannot create self contained
7835
# shared libraries reliably, requiring libgcc.a to resolve some of
7836
# the object symbols generated in some cases. Libraries that use
7837
# assert need libgcc.a to resolve __eprintf, for example. Linking
7838
# a copy of libgcc.a into every shared library to guarantee resolving
7839
# such symbols causes other problems: According to Tim Van Holder
7840
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7841
# (to the application) exception stack for one thing.
7842
no_undefined_flag=' -z defs'
7843
if test "$GCC" = yes; then
7844
case `$CC --version 2>/dev/null` in
7848
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7849
*** create self contained shared libraries on Solaris systems, without
7850
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7851
*** -no-undefined support, which will at least allow you to build shared
7852
*** libraries. However, you may find that when you link such libraries
7853
*** into an application without using GCC, you have to manually add
7854
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7855
*** upgrade to a newer version of GCC. Another option is to rebuild your
7856
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7863
# $CC -shared without GNU ld will not create a library from C++
7864
# object files and a static libstdc++, better avoid it by now
7865
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7866
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7867
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7868
hardcode_libdir_flag_spec='-R$libdir'
7869
hardcode_shlibpath_var=no
7871
solaris2.[0-5] | solaris2.[0-5].*) ;;
7872
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7873
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7875
link_all_deplibs=yes
7879
if test "x$host_vendor" = xsequent; then
7880
# Use $CC to link under sequent, because it throws in some extra .o
7881
# files that make .init and .fini sections work.
7882
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7884
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7886
hardcode_libdir_flag_spec='-L$libdir'
7888
hardcode_minus_L=yes
7889
hardcode_shlibpath_var=no
7893
if test "x$host_vendor" = xsno; then
7894
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895
hardcode_direct=yes # is this really true???
7897
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7898
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7900
runpath_var='LD_RUN_PATH'
7901
hardcode_shlibpath_var=no
7905
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7906
hardcode_shlibpath_var=no
7907
export_dynamic_flag_spec='-Bexport'
7911
no_undefined_flag=' -z text'
7912
# $CC -shared without GNU ld will not create a library from C++
7913
# object files and a static libstdc++, better avoid it by now
7914
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7915
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7916
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7917
hardcode_libdir_flag_spec=
7918
hardcode_shlibpath_var=no
7919
runpath_var='LD_RUN_PATH'
7923
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7924
hardcode_libdir_flag_spec='-L$libdir'
7925
hardcode_shlibpath_var=no
7929
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930
hardcode_libdir_flag_spec='-L$libdir'
7931
hardcode_shlibpath_var=no
7935
if test -d /usr/nec; then
7936
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937
hardcode_shlibpath_var=no
7938
runpath_var=LD_RUN_PATH
7939
hardcode_runpath_var=yes
7945
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7948
hardcode_shlibpath_var=no
7949
hardcode_runpath_var=yes
7950
runpath_var=LD_RUN_PATH
7953
sysv5uw7* | unixware7*)
7954
no_undefined_flag='${wl}-z ${wl}text'
7955
if test "$GCC" = yes; then
7956
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7958
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7960
runpath_var='LD_RUN_PATH'
7961
hardcode_shlibpath_var=no
7969
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7970
echo "${ECHO_T}$ld_shlibs" >&6
7971
test "$ld_shlibs" = no && can_build_shared=no
7975
## FIXME: this should be a separate macro
7977
# Check hardcoding attributes.
7978
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7979
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7981
if test -n "$hardcode_libdir_flag_spec" || \
7982
test -n "$runpath_var"; then
7984
# We can hardcode non-existant directories.
7985
if test "$hardcode_direct" != no &&
7986
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7987
# have to relink, otherwise we might link with an installed library
7988
# when we should be linking with a yet-to-be-installed one
7989
## test "$hardcode_shlibpath_var" != no &&
7990
test "$hardcode_minus_L" != no; then
7991
# Linking always hardcodes the temporary library directory.
7992
hardcode_action=relink
7994
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7995
hardcode_action=immediate
7998
# We cannot hardcode anything, or else we can only hardcode existing
8000
hardcode_action=unsupported
8002
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8003
echo "${ECHO_T}$hardcode_action" >&6
8007
## FIXME: this should be a separate macro
8011
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8012
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8013
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8014
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8015
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8016
echo "$as_me:$LINENO: result: yes" >&5
8017
echo "${ECHO_T}yes" >&6
8019
echo "$as_me:$LINENO: result: no" >&5
8020
echo "${ECHO_T}no" >&6
8025
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8026
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8028
## FIXME: this should be a separate macro
8030
# PORTME Fill in your ld.so characteristics
8031
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8032
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8034
libname_spec='lib$name'
8041
shlibpath_overrides_runpath=unknown
8043
dynamic_linker="$host_os ld.so"
8044
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8045
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8050
library_names_spec='${libname}${release}.so$versuffix $libname.a'
8051
shlibpath_var=LIBPATH
8053
# AIX has no versioning support, so we append a major version to the name.
8054
soname_spec='${libname}${release}.so$major'
8060
#### Local change for Sleepycat's Berkeley DB [#5779]:
8061
# If we don't set need_version, we'll get x.so.0.0.0,
8062
# even if -avoid-version is set.
8065
if test "$host_cpu" = ia64; then
8066
# AIX 5 supports IA64
8067
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8068
shlibpath_var=LD_LIBRARY_PATH
8070
# With GCC up to 2.95.x, collect2 would create an import file
8071
# for dependence libraries. The import file would start with
8072
# the line `#! .'. This would cause the generated library to
8073
# depend on `.', always an invalid library. This was fixed in
8074
# development snapshots of GCC prior to 3.0.
8076
aix4 | aix4.[01] | aix4.[01].*)
8077
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8079
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8086
# AIX (on Power*) has no versioning support, so currently we can
8087
# not hardcode correct soname into executable. Probably we can
8088
# add versioning support to collect2, so additional links can
8089
# be useful in future.
8090
if test "$aix_use_runtimelinking" = yes; then
8091
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8092
# instead of lib<name>.a to let people know that these are not
8093
# typical AIX shared libraries.
8094
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8096
# We preserve .a as extension for shared libraries through AIX4.2
8097
# and later when we are not doing run time linking.
8098
library_names_spec='${libname}${release}.a $libname.a'
8099
soname_spec='${libname}${release}.so$major'
8101
shlibpath_var=LIBPATH
8106
library_names_spec='$libname.ixlibrary $libname.a'
8107
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8108
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'
8112
library_names_spec='${libname}.so'
8113
dynamic_linker="$host_os ld.so"
8114
shlibpath_var=LIBRARY_PATH
8120
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8121
soname_spec='${libname}${release}.so$major'
8122
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8123
shlibpath_var=LD_LIBRARY_PATH
8124
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8125
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8126
export_dynamic_flag_spec=-rdynamic
8127
# the default ld.so.conf also contains /usr/contrib/lib and
8128
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8129
# libtool to hard-code these into programs
8132
cygwin* | mingw* | pw32*)
8133
version_type=windows
8136
case $GCC,$host_os in
8138
library_names_spec='$libname.dll.a'
8139
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8140
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8141
dldir=$destdir/`dirname \$dlpath`~
8142
test -d \$dldir || mkdir -p \$dldir~
8143
$install_prog .libs/$dlname \$dldir/$dlname'
8144
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8145
dlpath=$dir/\$dldll~
8149
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8150
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
8153
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8156
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8159
dynamic_linker='Win32 ld.exe'
8160
# FIXME: first we should search . and the directory the executable is in
8164
darwin* | rhapsody*)
8165
dynamic_linker="$host_os dyld"
8169
# FIXME: Relying on posixy $() will cause problems for
8170
# cross-compilation, but unfortunately the echo tests do not
8171
# yet detect zsh echo's removal of \ escapes.
8172
#### Local change for Sleepycat's Berkeley DB [#6117]:
8173
# added support for -jnimodule, encapsulated below in ${darwin_suffix}
8174
darwin_suffix='$(test .$jnimodule = .yes && echo jnilib || (test .$module = .yes && echo so || echo dylib))'
8175
library_names_spec='${libname}${release}${versuffix}.'"${darwin_suffix}"' ${libname}${release}${major}.'"${darwin_suffix}"' ${libname}.'"${darwin_suffix}"
8176
soname_spec='${libname}${release}${major}.'"${darwin_suffix}"
8177
shlibpath_overrides_runpath=yes
8178
shlibpath_var=DYLD_LIBRARY_PATH
8186
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8187
version_type=freebsd-$objformat
8188
case $version_type in
8190
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8195
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8199
shlibpath_var=LD_LIBRARY_PATH
8202
shlibpath_overrides_runpath=yes
8205
shlibpath_overrides_runpath=no
8206
hardcode_into_libs=yes
8215
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8216
soname_spec='${libname}${release}.so$major'
8217
shlibpath_var=LD_LIBRARY_PATH
8218
hardcode_into_libs=yes
8221
hpux9* | hpux10* | hpux11*)
8222
# Give a soname corresponding to the major version so that dld.sl refuses to
8223
# link against other versions.
8224
dynamic_linker="$host_os dld.sl"
8228
shlibpath_var=SHLIB_PATH
8229
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8230
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8231
soname_spec='${libname}${release}.sl$major'
8232
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8233
postinstall_cmds='chmod 555 $lib'
8240
soname_spec='${libname}${release}.so$major'
8241
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8247
case $LD in # libtool.m4 will add one of these switches to LD
8248
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8249
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8250
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8251
*) libsuff= shlibsuff= libmagic=never-match;;
8255
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8256
shlibpath_overrides_runpath=no
8257
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8258
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8261
# No shared lib support for Linux oldld, aout, or coff.
8262
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
8266
# This must be Linux ELF.
8271
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8272
soname_spec='${libname}${release}.so$major'
8273
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8274
shlibpath_var=LD_LIBRARY_PATH
8275
shlibpath_overrides_runpath=no
8276
# This implies no fast_install, which is unacceptable.
8277
# Some rework will be needed to allow for fast_install
8278
# before this can be enabled.
8279
hardcode_into_libs=yes
8281
# We used to test for /lib/ld.so.1 and disable shared libraries on
8282
# powerpc, because MkLinux only supported shared libraries with the
8283
# GNU dynamic linker. Since this was broken with cross compilers,
8284
# most powerpc-linux boxes support dynamic linking these days and
8285
# people can always --disable-shared, the test was removed, and we
8286
# assume the GNU/Linux dynamic linker is in use.
8287
dynamic_linker='GNU/Linux ld.so'
8294
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8296
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8297
dynamic_linker='NetBSD (a.out) ld.so'
8299
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8300
soname_spec='${libname}${release}.so$major'
8301
dynamic_linker='NetBSD ld.elf_so'
8303
shlibpath_var=LD_LIBRARY_PATH
8304
shlibpath_overrides_runpath=yes
8305
hardcode_into_libs=yes
8310
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8311
shlibpath_var=LD_LIBRARY_PATH
8312
shlibpath_overrides_runpath=yes
8319
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8320
soname_spec='${libname}${release}.so$major'
8321
shlibpath_var=LD_LIBRARY_PATH
8322
shlibpath_overrides_runpath=yes
8329
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8331
openbsd2.[89] | openbsd2.[89].*)
8332
shlibpath_overrides_runpath=no
8335
shlibpath_overrides_runpath=yes
8339
shlibpath_overrides_runpath=yes
8341
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8342
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8343
shlibpath_var=LD_LIBRARY_PATH
8347
libname_spec='$name'
8349
library_names_spec='$libname.dll $libname.a'
8350
dynamic_linker='OS/2 ld.exe'
8351
shlibpath_var=LIBPATH
8354
osf3* | osf4* | osf5*)
8357
soname_spec='${libname}${release}.so'
8358
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8359
shlibpath_var=LD_LIBRARY_PATH
8360
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8361
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8366
soname_spec='${libname}${release}.so$major'
8367
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8368
shlibpath_var=LD_LIBRARY_PATH
8375
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8376
soname_spec='${libname}${release}.so$major'
8377
shlibpath_var=LD_LIBRARY_PATH
8378
shlibpath_overrides_runpath=yes
8379
hardcode_into_libs=yes
8380
# ldd complains unless libraries are executable
8381
postinstall_cmds='chmod +x $lib'
8386
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8387
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8388
shlibpath_var=LD_LIBRARY_PATH
8389
shlibpath_overrides_runpath=yes
8390
if test "$with_gnu_ld" = yes; then
8396
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8398
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8399
soname_spec='${libname}${release}.so$major'
8400
shlibpath_var=LD_LIBRARY_PATH
8401
case $host_vendor in
8403
shlibpath_overrides_runpath=no
8408
shlibpath_overrides_runpath=no
8409
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8416
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8417
soname_spec='${libname}${release}.so$major'
8418
shlibpath_var=LD_LIBRARY_PATH
8425
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8426
soname_spec='${libname}${release}.so$major'
8427
shlibpath_var=LD_LIBRARY_PATH
8431
if test -d /usr/nec ;then
8433
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
8434
soname_spec='$libname.so.$major'
8435
shlibpath_var=LD_LIBRARY_PATH
8443
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8444
echo "${ECHO_T}$dynamic_linker" >&6
8445
test "$dynamic_linker" = no && can_build_shared=no
8449
## FIXME: this should be a separate macro
8451
# Report the final consequences.
8452
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8453
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8454
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8455
echo "${ECHO_T}$can_build_shared" >&6
8459
## FIXME: this should be a separate macro
8461
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8462
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8463
test "$can_build_shared" = "no" && enable_shared=no
8465
# On AIX, shared libraries and static libraries use the same namespace, and
8466
# are all built from PIC.
8469
test "$enable_shared" = yes && enable_static=no
8470
if test -n "$RANLIB"; then
8471
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8472
postinstall_cmds='$RANLIB $lib'
8477
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8478
test "$enable_shared" = yes && enable_static=no
8482
echo "$as_me:$LINENO: result: $enable_shared" >&5
8483
echo "${ECHO_T}$enable_shared" >&6
8487
## FIXME: this should be a separate macro
8489
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8490
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8491
# Make sure either enable_shared or enable_static is yes.
8492
test "$enable_shared" = yes || enable_static=yes
8493
echo "$as_me:$LINENO: result: $enable_static" >&5
8494
echo "${ECHO_T}$enable_static" >&6
8498
if test "$hardcode_action" = relink; then
8499
# Fast installation is not supported
8500
enable_fast_install=no
8501
elif test "$shlibpath_overrides_runpath" = yes ||
8502
test "$enable_shared" = no; then
8503
# Fast installation is not necessary
8504
enable_fast_install=needless
8507
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8508
if test "$GCC" = yes; then
8509
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8512
if test "x$enable_dlopen" != xyes; then
8513
enable_dlopen=unknown
8514
enable_dlopen_self=unknown
8515
enable_dlopen_self_static=unknown
8522
lt_cv_dlopen="load_add_on"
8524
lt_cv_dlopen_self=yes
8527
cygwin* | mingw* | pw32*)
8528
lt_cv_dlopen="LoadLibrary"
8533
echo "$as_me:$LINENO: checking for shl_load" >&5
8534
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8535
if test "${ac_cv_func_shl_load+set}" = set; then
8536
echo $ECHO_N "(cached) $ECHO_C" >&6
8538
cat >conftest.$ac_ext <<_ACEOF
8539
#line $LINENO "configure"
8542
cat confdefs.h >>conftest.$ac_ext
8543
cat >>conftest.$ac_ext <<_ACEOF
8544
/* end confdefs.h. */
8545
/* System header to define __stub macros and hopefully few prototypes,
8546
which can conflict with char shl_load (); below.
8547
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548
<limits.h> exists even on freestanding compilers. */
8550
# include <limits.h>
8552
# include <assert.h>
8554
/* Override any gcc2 internal prototype to avoid an error. */
8559
/* We use char because int might match the return type of a gcc2
8560
builtin and then its argument prototype would still apply. */
8562
/* The GNU C library defines this for functions which it implements
8563
to always fail with ENOSYS. Some functions are actually named
8564
something starting with __ and the normal name is an alias. */
8565
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8568
char (*f) () = shl_load;
8577
return f != shl_load;
8582
rm -f conftest.$ac_objext conftest$ac_exeext
8583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584
(eval $ac_link) 2>&5
8586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587
(exit $ac_status); } &&
8588
{ ac_try='test -s conftest$ac_exeext'
8589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
(exit $ac_status); }; }; then
8594
ac_cv_func_shl_load=yes
8596
echo "$as_me: failed program was:" >&5
8597
sed 's/^/| /' conftest.$ac_ext >&5
8599
ac_cv_func_shl_load=no
8601
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8603
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8604
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8605
if test $ac_cv_func_shl_load = yes; then
8606
lt_cv_dlopen="shl_load"
8608
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8609
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8610
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8611
echo $ECHO_N "(cached) $ECHO_C" >&6
8613
ac_check_lib_save_LIBS=$LIBS
8615
cat >conftest.$ac_ext <<_ACEOF
8616
#line $LINENO "configure"
8619
cat confdefs.h >>conftest.$ac_ext
8620
cat >>conftest.$ac_ext <<_ACEOF
8621
/* end confdefs.h. */
8623
/* Override any gcc2 internal prototype to avoid an error. */
8627
/* We use char because int might match the return type of a gcc2
8628
builtin and then its argument prototype would still apply. */
8638
rm -f conftest.$ac_objext conftest$ac_exeext
8639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640
(eval $ac_link) 2>&5
8642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643
(exit $ac_status); } &&
8644
{ ac_try='test -s conftest$ac_exeext'
8645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649
(exit $ac_status); }; }; then
8650
ac_cv_lib_dld_shl_load=yes
8652
echo "$as_me: failed program was:" >&5
8653
sed 's/^/| /' conftest.$ac_ext >&5
8655
ac_cv_lib_dld_shl_load=no
8657
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8658
LIBS=$ac_check_lib_save_LIBS
8660
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8661
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8662
if test $ac_cv_lib_dld_shl_load = yes; then
8663
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8665
echo "$as_me:$LINENO: checking for dlopen" >&5
8666
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8667
if test "${ac_cv_func_dlopen+set}" = set; then
8668
echo $ECHO_N "(cached) $ECHO_C" >&6
8670
cat >conftest.$ac_ext <<_ACEOF
8671
#line $LINENO "configure"
8674
cat confdefs.h >>conftest.$ac_ext
8675
cat >>conftest.$ac_ext <<_ACEOF
8676
/* end confdefs.h. */
8677
/* System header to define __stub macros and hopefully few prototypes,
8678
which can conflict with char dlopen (); below.
8679
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8680
<limits.h> exists even on freestanding compilers. */
8682
# include <limits.h>
8684
# include <assert.h>
8686
/* Override any gcc2 internal prototype to avoid an error. */
8691
/* We use char because int might match the return type of a gcc2
8692
builtin and then its argument prototype would still apply. */
8694
/* The GNU C library defines this for functions which it implements
8695
to always fail with ENOSYS. Some functions are actually named
8696
something starting with __ and the normal name is an alias. */
8697
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8700
char (*f) () = dlopen;
8714
rm -f conftest.$ac_objext conftest$ac_exeext
8715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716
(eval $ac_link) 2>&5
8718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
(exit $ac_status); } &&
8720
{ ac_try='test -s conftest$ac_exeext'
8721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
(exit $ac_status); }; }; then
8726
ac_cv_func_dlopen=yes
8728
echo "$as_me: failed program was:" >&5
8729
sed 's/^/| /' conftest.$ac_ext >&5
8731
ac_cv_func_dlopen=no
8733
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8735
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8736
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8737
if test $ac_cv_func_dlopen = yes; then
8738
lt_cv_dlopen="dlopen"
8740
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8741
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743
echo $ECHO_N "(cached) $ECHO_C" >&6
8745
ac_check_lib_save_LIBS=$LIBS
8747
cat >conftest.$ac_ext <<_ACEOF
8748
#line $LINENO "configure"
8751
cat confdefs.h >>conftest.$ac_ext
8752
cat >>conftest.$ac_ext <<_ACEOF
8753
/* end confdefs.h. */
8755
/* Override any gcc2 internal prototype to avoid an error. */
8759
/* We use char because int might match the return type of a gcc2
8760
builtin and then its argument prototype would still apply. */
8770
rm -f conftest.$ac_objext conftest$ac_exeext
8771
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772
(eval $ac_link) 2>&5
8774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775
(exit $ac_status); } &&
8776
{ ac_try='test -s conftest$ac_exeext'
8777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
(exit $ac_status); }; }; then
8782
ac_cv_lib_dl_dlopen=yes
8784
echo "$as_me: failed program was:" >&5
8785
sed 's/^/| /' conftest.$ac_ext >&5
8787
ac_cv_lib_dl_dlopen=no
8789
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790
LIBS=$ac_check_lib_save_LIBS
8792
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8793
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8794
if test $ac_cv_lib_dl_dlopen = yes; then
8795
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8797
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8798
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8799
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8800
echo $ECHO_N "(cached) $ECHO_C" >&6
8802
ac_check_lib_save_LIBS=$LIBS
8804
cat >conftest.$ac_ext <<_ACEOF
8805
#line $LINENO "configure"
8808
cat confdefs.h >>conftest.$ac_ext
8809
cat >>conftest.$ac_ext <<_ACEOF
8810
/* end confdefs.h. */
8812
/* Override any gcc2 internal prototype to avoid an error. */
8816
/* We use char because int might match the return type of a gcc2
8817
builtin and then its argument prototype would still apply. */
8827
rm -f conftest.$ac_objext conftest$ac_exeext
8828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829
(eval $ac_link) 2>&5
8831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832
(exit $ac_status); } &&
8833
{ ac_try='test -s conftest$ac_exeext'
8834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838
(exit $ac_status); }; }; then
8839
ac_cv_lib_svld_dlopen=yes
8841
echo "$as_me: failed program was:" >&5
8842
sed 's/^/| /' conftest.$ac_ext >&5
8844
ac_cv_lib_svld_dlopen=no
8846
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8847
LIBS=$ac_check_lib_save_LIBS
8849
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8850
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8851
if test $ac_cv_lib_svld_dlopen = yes; then
8852
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8854
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8855
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8856
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8857
echo $ECHO_N "(cached) $ECHO_C" >&6
8859
ac_check_lib_save_LIBS=$LIBS
8861
cat >conftest.$ac_ext <<_ACEOF
8862
#line $LINENO "configure"
8865
cat confdefs.h >>conftest.$ac_ext
8866
cat >>conftest.$ac_ext <<_ACEOF
8867
/* end confdefs.h. */
8869
/* Override any gcc2 internal prototype to avoid an error. */
8873
/* We use char because int might match the return type of a gcc2
8874
builtin and then its argument prototype would still apply. */
8884
rm -f conftest.$ac_objext conftest$ac_exeext
8885
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886
(eval $ac_link) 2>&5
8888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889
(exit $ac_status); } &&
8890
{ ac_try='test -s conftest$ac_exeext'
8891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
(exit $ac_status); }; }; then
8896
ac_cv_lib_dld_dld_link=yes
8898
echo "$as_me: failed program was:" >&5
8899
sed 's/^/| /' conftest.$ac_ext >&5
8901
ac_cv_lib_dld_dld_link=no
8903
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8904
LIBS=$ac_check_lib_save_LIBS
8906
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8907
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8908
if test $ac_cv_lib_dld_dld_link = yes; then
8909
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8930
if test "x$lt_cv_dlopen" != xno; then
8936
case $lt_cv_dlopen in
8938
save_CPPFLAGS="$CPPFLAGS"
8939
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8941
save_LDFLAGS="$LDFLAGS"
8942
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8945
LIBS="$lt_cv_dlopen_libs $LIBS"
8947
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8948
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8949
if test "${lt_cv_dlopen_self+set}" = set; then
8950
echo $ECHO_N "(cached) $ECHO_C" >&6
8952
if test "$cross_compiling" = yes; then :
8953
lt_cv_dlopen_self=cross
8955
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8956
lt_status=$lt_dlunknown
8957
cat > conftest.$ac_ext <<EOF
8958
#line 8946 "configure"
8959
#include "confdefs.h"
8968
# define LT_DLGLOBAL RTLD_GLOBAL
8971
# define LT_DLGLOBAL DL_GLOBAL
8973
# define LT_DLGLOBAL 0
8977
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8978
find out it does not work in some platform. */
8979
#ifndef LT_DLLAZY_OR_NOW
8981
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8984
# define LT_DLLAZY_OR_NOW DL_LAZY
8987
# define LT_DLLAZY_OR_NOW RTLD_NOW
8990
# define LT_DLLAZY_OR_NOW DL_NOW
8992
# define LT_DLLAZY_OR_NOW 0
9000
extern "C" void exit (int);
9003
void fnord() { int i=42;}
9006
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9007
int status = $lt_dlunknown;
9011
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9012
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9013
/* dlclose (self); */
9019
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020
(eval $ac_link) 2>&5
9022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9024
(./conftest; exit; ) 2>/dev/null
9027
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9028
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9029
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9032
# compilation failed
9033
lt_cv_dlopen_self=no
9040
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9041
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9043
if test "x$lt_cv_dlopen_self" = xyes; then
9044
LDFLAGS="$LDFLAGS $link_static_flag"
9045
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9046
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9047
if test "${lt_cv_dlopen_self_static+set}" = set; then
9048
echo $ECHO_N "(cached) $ECHO_C" >&6
9050
if test "$cross_compiling" = yes; then :
9051
lt_cv_dlopen_self_static=cross
9053
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9054
lt_status=$lt_dlunknown
9055
cat > conftest.$ac_ext <<EOF
9056
#line 9044 "configure"
9057
#include "confdefs.h"
9066
# define LT_DLGLOBAL RTLD_GLOBAL
9069
# define LT_DLGLOBAL DL_GLOBAL
9071
# define LT_DLGLOBAL 0
9075
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9076
find out it does not work in some platform. */
9077
#ifndef LT_DLLAZY_OR_NOW
9079
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9082
# define LT_DLLAZY_OR_NOW DL_LAZY
9085
# define LT_DLLAZY_OR_NOW RTLD_NOW
9088
# define LT_DLLAZY_OR_NOW DL_NOW
9090
# define LT_DLLAZY_OR_NOW 0
9098
extern "C" void exit (int);
9101
void fnord() { int i=42;}
9104
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9105
int status = $lt_dlunknown;
9109
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9110
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9111
/* dlclose (self); */
9117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118
(eval $ac_link) 2>&5
9120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9122
(./conftest; exit; ) 2>/dev/null
9125
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9126
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9127
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9130
# compilation failed
9131
lt_cv_dlopen_self_static=no
9138
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9139
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9142
CPPFLAGS="$save_CPPFLAGS"
9143
LDFLAGS="$save_LDFLAGS"
9148
case $lt_cv_dlopen_self in
9149
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9150
*) enable_dlopen_self=unknown ;;
9153
case $lt_cv_dlopen_self_static in
9154
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9155
*) enable_dlopen_self_static=unknown ;;
9160
## FIXME: this should be a separate macro
9162
if test "$enable_shared" = yes && test "$GCC" = yes; then
9163
case $archive_cmds in
9165
# FIXME: we may have to deal with multi-command sequences.
9168
# Test whether the compiler implicitly links with -lc since on some
9169
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9170
# to ld, don't add -lc before -lgcc.
9171
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9172
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9173
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9174
echo $ECHO_N "(cached) $ECHO_C" >&6
9177
echo 'static int dummy;' > conftest.$ac_ext
9179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180
(eval $ac_compile) 2>&5
9182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183
(exit $ac_status); }; then
9186
libobjs=conftest.$ac_objext
9188
wl=$lt_cv_prog_cc_wl
9194
save_allow_undefined_flag=$allow_undefined_flag
9195
allow_undefined_flag=
9196
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9197
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200
(exit $ac_status); }
9202
lt_cv_archive_cmds_need_lc=no
9204
lt_cv_archive_cmds_need_lc=yes
9206
allow_undefined_flag=$save_allow_undefined_flag
9208
cat conftest.err 1>&5
9212
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9213
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9217
need_lc=${lt_cv_archive_cmds_need_lc-yes}
9221
## FIXME: this should be a separate macro
9223
# The second clause should only fire when bootstrapping the
9224
# libtool distribution, otherwise you forgot to ship ltmain.sh
9225
# with your package, and you will get complaints that there are
9226
# no rules to generate ltmain.sh.
9227
if test -f "$ltmain"; then
9230
# If there is no Makefile yet, we rely on a make rule to execute
9231
# `config.status --recheck' to rerun these tests and create the
9232
# libtool script then.
9233
test -f Makefile && make "$ltmain"
9236
if test -f "$ltmain"; then
9237
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
9240
echo creating $ofile
9242
# Now quote all the things that may contain metacharacters while being
9243
# careful not to overquote the AC_SUBSTed values. We take copies of the
9244
# variables and quote the copies for generation of the libtool script.
9245
for var in echo old_CC old_CFLAGS \
9246
AR AR_FLAGS CC LD LN_S NM SHELL \
9247
reload_flag reload_cmds wl \
9248
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
9249
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
9250
library_names_spec soname_spec \
9251
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
9252
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
9253
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
9254
old_striplib striplib file_magic_cmd export_symbols_cmds \
9255
deplibs_check_method allow_undefined_flag no_undefined_flag \
9256
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
9257
global_symbol_to_c_name_address \
9258
hardcode_libdir_flag_spec hardcode_libdir_separator \
9259
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9260
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
9263
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
9264
old_postinstall_cmds | old_postuninstall_cmds | \
9265
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
9266
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
9267
postinstall_cmds | postuninstall_cmds | \
9268
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9269
# Double-quote double-evaled strings.
9270
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9273
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9278
cat <<__EOF__ > "${ofile}T"
9281
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9282
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9283
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9285
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
9286
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9288
# This program is free software; you can redistribute it and/or modify
9289
# it under the terms of the GNU General Public License as published by
9290
# the Free Software Foundation; either version 2 of the License, or
9291
# (at your option) any later version.
9293
# This program is distributed in the hope that it will be useful, but
9294
# WITHOUT ANY WARRANTY; without even the implied warranty of
9295
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9296
# General Public License for more details.
9298
# You should have received a copy of the GNU General Public License
9299
# along with this program; if not, write to the Free Software
9300
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9302
# As a special exception to the GNU General Public License, if you
9303
# distribute this file as part of a program that contains a
9304
# configuration script generated by Autoconf, you may include it under
9305
# the same distribution terms that you use for the rest of that program.
9307
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9308
Xsed="sed -e s/^X//"
9310
# The HP-UX ksh and POSIX shell print the target directory to stdout
9312
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9314
# ### BEGIN LIBTOOL CONFIG
9316
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9318
# Shell to use when invoking shell scripts.
9321
# Whether or not to build shared libraries.
9322
build_libtool_libs=$enable_shared
9324
# Whether or not to build static libraries.
9325
build_old_libs=$enable_static
9327
# Whether or not to add -lc for building shared libraries.
9328
build_libtool_need_lc=$need_lc
9330
# Whether or not to optimize for fast installation.
9331
fast_install=$enable_fast_install
9334
host_alias=$host_alias
9337
# An echo program that does not interpret backslashes.
9342
AR_FLAGS=$lt_AR_FLAGS
9344
# The default C compiler.
9347
# Is the compiler the GNU C compiler?
9350
# The linker used to build libraries.
9353
# Whether we need hard or soft links.
9356
# A BSD-compatible nm program.
9359
# A symbol stripping program
9362
# Used to examine libraries when file_magic_cmd begins "file"
9363
MAGIC_CMD=$MAGIC_CMD
9365
# Used on cygwin: DLL creation program.
9368
# Used on cygwin: object dumper.
9371
# Used on cygwin: assembler.
9374
# The name of the directory that contains temporary libtool files.
9377
# How to create reloadable object files.
9378
reload_flag=$lt_reload_flag
9379
reload_cmds=$lt_reload_cmds
9381
# How to pass a linker flag through the compiler.
9384
# Object file suffix (normally "o").
9387
# Old archive suffix (normally "a").
9390
# Executable file suffix (normally "").
9393
# Additional compiler flags for building library objects.
9394
pic_flag=$lt_pic_flag
9397
# Does compiler simultaneously support -c and -o options?
9398
compiler_c_o=$lt_compiler_c_o
9400
# Can we write directly to a .lo ?
9401
compiler_o_lo=$lt_compiler_o_lo
9403
# Must we lock files when doing compilation ?
9404
need_locks=$lt_need_locks
9406
# Do we need the lib prefix for modules?
9407
need_lib_prefix=$need_lib_prefix
9409
# Do we need a version for libraries?
9410
need_version=$need_version
9412
# Whether dlopen is supported.
9413
dlopen_support=$enable_dlopen
9415
# Whether dlopen of programs is supported.
9416
dlopen_self=$enable_dlopen_self
9418
# Whether dlopen of statically linked programs is supported.
9419
dlopen_self_static=$enable_dlopen_self_static
9421
# Compiler flag to prevent dynamic linking.
9422
link_static_flag=$lt_link_static_flag
9424
# Compiler flag to turn off builtin functions.
9425
no_builtin_flag=$lt_no_builtin_flag
9427
# Compiler flag to allow reflexive dlopens.
9428
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9430
# Compiler flag to generate shared objects directly from archives.
9431
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9433
# Compiler flag to generate thread-safe objects.
9434
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9436
# Library versioning type.
9437
version_type=$version_type
9439
# Format of library name prefix.
9440
libname_spec=$lt_libname_spec
9442
# List of archive names. First name is the real one, the rest are links.
9443
# The last name is the one that the linker finds with -lNAME.
9444
library_names_spec=$lt_library_names_spec
9446
# The coded name of the library, if different from the real name.
9447
soname_spec=$lt_soname_spec
9449
# Commands used to build and install an old-style archive.
9451
old_archive_cmds=$lt_old_archive_cmds
9452
old_postinstall_cmds=$lt_old_postinstall_cmds
9453
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9455
# Create an old-style archive from a shared archive.
9456
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9458
# Create a temporary old-style archive to link instead of a shared archive.
9459
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9461
# Commands used to build and install a shared archive.
9462
archive_cmds=$lt_archive_cmds
9463
archive_expsym_cmds=$lt_archive_expsym_cmds
9464
postinstall_cmds=$lt_postinstall_cmds
9465
postuninstall_cmds=$lt_postuninstall_cmds
9467
# Commands to strip libraries.
9468
old_striplib=$lt_old_striplib
9469
striplib=$lt_striplib
9471
# Method to check whether dependent libraries are shared objects.
9472
deplibs_check_method=$lt_deplibs_check_method
9474
# Command to use when deplibs_check_method == file_magic.
9475
file_magic_cmd=$lt_file_magic_cmd
9477
# Flag that allows shared libraries with undefined symbols to be built.
9478
allow_undefined_flag=$lt_allow_undefined_flag
9480
# Flag that forces no undefined symbols.
9481
no_undefined_flag=$lt_no_undefined_flag
9483
# Commands used to finish a libtool library installation in a directory.
9484
finish_cmds=$lt_finish_cmds
9486
# Same as above, but a single script fragment to be evaled but not shown.
9487
finish_eval=$lt_finish_eval
9489
# Take the output of nm and produce a listing of raw symbols and C names.
9490
global_symbol_pipe=$lt_global_symbol_pipe
9492
# Transform the output of nm in a proper C declaration
9493
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9495
# Transform the output of nm in a C name address pair
9496
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9498
# This is the shared library runtime path variable.
9499
runpath_var=$runpath_var
9501
# This is the shared library path variable.
9502
shlibpath_var=$shlibpath_var
9504
# Is shlibpath searched before the hard-coded library search path?
9505
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9507
# How to hardcode a shared library path into an executable.
9508
hardcode_action=$hardcode_action
9510
# Whether we should hardcode library paths into libraries.
9511
hardcode_into_libs=$hardcode_into_libs
9513
# Flag to hardcode \$libdir into a binary during linking.
9514
# This must work even if \$libdir does not exist.
9515
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9517
# Whether we need a single -rpath flag with a separated argument.
9518
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9520
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9522
hardcode_direct=$hardcode_direct
9524
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9526
hardcode_minus_L=$hardcode_minus_L
9528
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9529
# the resulting binary.
9530
hardcode_shlibpath_var=$hardcode_shlibpath_var
9532
# Variables whose values should be saved in libtool wrapper scripts and
9533
# restored at relink time.
9534
variables_saved_for_relink="$variables_saved_for_relink"
9536
# Whether libtool must link a program against all its dependency libraries.
9537
link_all_deplibs=$link_all_deplibs
9539
# Compile-time system search path for libraries
9540
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9542
# Run-time system search path for libraries
9543
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9545
# Fix the shell variable \$srcfile for the compiler.
9546
fix_srcfile_path="$fix_srcfile_path"
9548
# Set to yes if exported symbols are required.
9549
always_export_symbols=$always_export_symbols
9551
# The commands to list exported symbols.
9552
export_symbols_cmds=$lt_export_symbols_cmds
9554
# The commands to extract the exported symbol list from a shared archive.
9555
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9557
# Symbols that should not be listed in the preloaded symbols.
9558
exclude_expsyms=$lt_exclude_expsyms
9560
# Symbols that must always be exported.
9561
include_expsyms=$lt_include_expsyms
9563
# ### END LIBTOOL CONFIG
9569
cat <<\EOF >> "${ofile}T"
9571
# AIX sometimes has problems with the GCC collect2 program. For some
9572
# reason, if we set the COLLECT_NAMES environment variable, the problems
9573
# vanish in a puff of smoke.
9574
if test "X${COLLECT_NAMES+set}" != Xset; then
9576
export COLLECT_NAMES
9583
cygwin* | mingw* | pw32* | os2*)
9584
cat <<'EOF' >> "${ofile}T"
9585
# This is a source program that is used to create dlls on Windows
9586
# Don't remove nor modify the starting and closing comments
9587
# /* ltdll.c starts here */
9588
# #define WIN32_LEAN_AND_MEAN
9589
# #include <windows.h>
9590
# #undef WIN32_LEAN_AND_MEAN
9591
# #include <stdio.h>
9593
# #ifndef __CYGWIN__
9594
# # ifdef __CYGWIN32__
9595
# # define __CYGWIN__ __CYGWIN32__
9599
# #ifdef __cplusplus
9602
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9603
# #ifdef __cplusplus
9608
# #include <cygwin/cygwin_dll.h>
9609
# DECLARE_CYGWIN_DLL( DllMain );
9611
# HINSTANCE __hDllInstance_base;
9614
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9616
# __hDllInstance_base = hInst;
9619
# /* ltdll.c ends here */
9620
# This is a source program that is used to create import libraries
9621
# on Windows for dlls which lack them. Don't remove nor modify the
9622
# starting and closing comments
9623
# /* impgen.c starts here */
9624
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
9626
# This file is part of GNU libtool.
9628
# This program is free software; you can redistribute it and/or modify
9629
# it under the terms of the GNU General Public License as published by
9630
# the Free Software Foundation; either version 2 of the License, or
9631
# (at your option) any later version.
9633
# This program is distributed in the hope that it will be useful,
9634
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9635
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9636
# GNU General Public License for more details.
9638
# You should have received a copy of the GNU General Public License
9639
# along with this program; if not, write to the Free Software
9640
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9643
# #include <stdio.h> /* for printf() */
9644
# #include <unistd.h> /* for open(), lseek(), read() */
9645
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
9646
# #include <string.h> /* for strdup() */
9648
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
9650
# #define O_BINARY 0
9653
# static unsigned int
9654
# pe_get16 (fd, offset)
9658
# unsigned char b[2];
9659
# lseek (fd, offset, SEEK_SET);
9661
# return b[0] + (b[1]<<8);
9664
# static unsigned int
9665
# pe_get32 (fd, offset)
9669
# unsigned char b[4];
9670
# lseek (fd, offset, SEEK_SET);
9672
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9675
# static unsigned int
9679
# unsigned char *b = ptr;
9680
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9689
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9690
# unsigned long export_rva, export_size, nsections, secptr, expptr;
9691
# unsigned long name_rvas, nexp;
9692
# unsigned char *expdata, *erva;
9693
# char *filename, *dll_name;
9695
# filename = argv[1];
9697
# dll = open(filename, O_RDONLY|O_BINARY);
9701
# dll_name = filename;
9703
# for (i=0; filename[i]; i++)
9704
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9705
# dll_name = filename + i +1;
9707
# pe_header_offset = pe_get32 (dll, 0x3c);
9708
# opthdr_ofs = pe_header_offset + 4 + 20;
9709
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
9711
# if (num_entries < 1) /* no exports */
9714
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
9715
# export_size = pe_get32 (dll, opthdr_ofs + 100);
9716
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9717
# secptr = (pe_header_offset + 4 + 20 +
9718
# pe_get16 (dll, pe_header_offset + 4 + 16));
9721
# for (i = 0; i < nsections; i++)
9724
# unsigned long secptr1 = secptr + 40 * i;
9725
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9726
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9727
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9728
# lseek(dll, secptr1, SEEK_SET);
9729
# read(dll, sname, 8);
9730
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
9732
# expptr = fptr + (export_rva - vaddr);
9733
# if (export_rva + export_size > vaddr + vsize)
9734
# export_size = vsize - (export_rva - vaddr);
9739
# expdata = (unsigned char*)malloc(export_size);
9740
# lseek (dll, expptr, SEEK_SET);
9741
# read (dll, expdata, export_size);
9742
# erva = expdata - export_rva;
9744
# nexp = pe_as32 (expdata+24);
9745
# name_rvas = pe_as32 (expdata+32);
9747
# printf ("EXPORTS\n");
9748
# for (i = 0; i<nexp; i++)
9750
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9751
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9756
# /* impgen.c ends here */
9762
# We use sed instead of cat because bash on DJGPP gets confused if
9763
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9764
# text mode, it properly converts lines to CR/LF. This bash problem
9765
# is reportedly fixed, but why not run on old versions too?
9766
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9768
mv -f "${ofile}T" "$ofile" || \
9769
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9779
# This can be used to rebuild libtool when needed
9780
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9782
# Always use our own libtool.
9783
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9785
# Prevent multiple expansion
9789
LIBTOOL="\$(SHELL) ./libtool"
9791
# Set SOSUFFIX and friends
9793
echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
9794
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6
9801
eval library_names=\"$library_names_spec\"
9802
_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9803
if test "$_SOSUFFIX" = '' ; then
9805
if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9806
_SOSUFFIX_MESSAGE=yes
9807
{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9808
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9809
{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9810
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9815
echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
9816
echo "${ECHO_T}$SOSUFFIX" >&6
9820
echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
9821
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6
9828
eval library_names=\"$library_names_spec\"
9829
_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9830
if test "$_SOSUFFIX" = '' ; then
9832
if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9833
_SOSUFFIX_MESSAGE=yes
9834
{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9835
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9836
{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9837
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9841
MODSUFFIX=$_SOSUFFIX
9842
echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
9843
echo "${ECHO_T}$MODSUFFIX" >&6
9847
echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
9848
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6
9855
eval library_names=\"$library_names_spec\"
9856
_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9857
if test "$_SOSUFFIX" = '' ; then
9859
if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9860
_SOSUFFIX_MESSAGE=yes
9861
{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9862
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9863
{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9864
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9868
JMODSUFFIX=$_SOSUFFIX
9869
echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
9870
echo "${ECHO_T}$JMODSUFFIX" >&6
9874
INSTALLER="\$(LIBTOOL) --mode=install cp -p"
9876
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
9877
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
9878
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
9879
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
9880
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
9881
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
9883
DEFAULT_LIB="\$(libso_target)"
9884
POSTLINK="\$(LIBTOOL) --mode=execute true"
9886
INSTALL_LIBS="$DEFAULT_LIB"
9889
if test "$db_cv_cxx" = "yes"; then
9890
if test "$enable_shared" = "no"; then
9891
DEFAULT_LIB_CXX="\$(libcxx)"
9893
if test "$enable_shared" = "yes"; then
9894
DEFAULT_LIB_CXX="\$(libxso_target)"
9896
INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
9898
# Fill in C++ library for Embedix.
9899
EMBEDIX_ECD_CXX='<OPTION db-extra>\
9902
PROMPT=Include BerkeleyDB C++ library?\
9904
/usr/include/db_cxx.h\
9905
/usr/lib/libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
9908
libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
9915
STORAGE_SIZE=523612\
9920
# Optional Java API.
9921
if test "$db_cv_java" = "yes"; then
9922
# Java requires shared libraries.
9923
if test "$enable_shared" = "no"; then
9924
{ { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
9925
echo "$as_me: error: Java requires shared libraries" >&2;}
9926
{ (exit 1); exit 1; }; }
9930
if test "x$JAVAPREFIX" = x; then
9931
test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
9933
# Extract the first word of "$ac_prog", so it can be a program name with args.
9934
set dummy $ac_prog; ac_word=$2
9935
echo "$as_me:$LINENO: checking for $ac_word" >&5
9936
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9937
if test "${ac_cv_prog_JAVAC+set}" = set; then
9938
echo $ECHO_N "(cached) $ECHO_C" >&6
9940
if test -n "$JAVAC"; then
9941
ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
9943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947
test -z "$as_dir" && as_dir=.
9948
for ac_exec_ext in '' $ac_executable_extensions; do
9949
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950
ac_cv_prog_JAVAC="$ac_prog"
9951
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959
JAVAC=$ac_cv_prog_JAVAC
9960
if test -n "$JAVAC"; then
9961
echo "$as_me:$LINENO: result: $JAVAC" >&5
9962
echo "${ECHO_T}$JAVAC" >&6
9964
echo "$as_me:$LINENO: result: no" >&5
9965
echo "${ECHO_T}no" >&6
9968
test -n "$JAVAC" && break
9972
test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
9974
# Extract the first word of "$ac_prog", so it can be a program name with args.
9975
set dummy $ac_prog; ac_word=$2
9976
echo "$as_me:$LINENO: checking for $ac_word" >&5
9977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978
if test "${ac_cv_prog_JAVAC+set}" = set; then
9979
echo $ECHO_N "(cached) $ECHO_C" >&6
9981
if test -n "$JAVAC"; then
9982
ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
9984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988
test -z "$as_dir" && as_dir=.
9989
for ac_exec_ext in '' $ac_executable_extensions; do
9990
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991
ac_cv_prog_JAVAC="$ac_prog"
9992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10000
JAVAC=$ac_cv_prog_JAVAC
10001
if test -n "$JAVAC"; then
10002
echo "$as_me:$LINENO: result: $JAVAC" >&5
10003
echo "${ECHO_T}$JAVAC" >&6
10005
echo "$as_me:$LINENO: result: no" >&5
10006
echo "${ECHO_T}no" >&6
10009
test -n "$JAVAC" && break
10011
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
10014
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
10015
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
10016
{ (exit 1); exit 1; }; }
10018
echo "$as_me:$LINENO: checking if $JAVAC works" >&5
10019
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
10020
if test "${ac_cv_prog_javac_works+set}" = set; then
10021
echo $ECHO_N "(cached) $ECHO_C" >&6
10024
JAVA_TEST=Test.java
10025
CLASS_TEST=Test.class
10026
cat << \EOF > $JAVA_TEST
10027
/* #line 10016 "configure" */
10028
public class Test {
10031
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
10032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033
(eval $ac_try) 2>&5
10035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036
(exit $ac_status); }; } >/dev/null 2>&1; then
10037
ac_cv_prog_javac_works=yes
10039
{ { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
10040
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
10041
{ (exit 1); exit 1; }; }
10042
echo "configure: failed program was:" >&5
10045
rm -f $JAVA_TEST $CLASS_TEST
10048
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
10049
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
10053
if test "x$JAVAPREFIX" = x; then
10054
test "x$JAR" = x && for ac_prog in jar$EXEEXT
10056
# Extract the first word of "$ac_prog", so it can be a program name with args.
10057
set dummy $ac_prog; ac_word=$2
10058
echo "$as_me:$LINENO: checking for $ac_word" >&5
10059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10060
if test "${ac_cv_prog_JAR+set}" = set; then
10061
echo $ECHO_N "(cached) $ECHO_C" >&6
10063
if test -n "$JAR"; then
10064
ac_cv_prog_JAR="$JAR" # Let the user override the test.
10066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067
for as_dir in $PATH
10070
test -z "$as_dir" && as_dir=.
10071
for ac_exec_ext in '' $ac_executable_extensions; do
10072
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10073
ac_cv_prog_JAR="$ac_prog"
10074
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10082
JAR=$ac_cv_prog_JAR
10083
if test -n "$JAR"; then
10084
echo "$as_me:$LINENO: result: $JAR" >&5
10085
echo "${ECHO_T}$JAR" >&6
10087
echo "$as_me:$LINENO: result: no" >&5
10088
echo "${ECHO_T}no" >&6
10091
test -n "$JAR" && break
10095
test "x$JAR" = x && for ac_prog in jar
10097
# Extract the first word of "$ac_prog", so it can be a program name with args.
10098
set dummy $ac_prog; ac_word=$2
10099
echo "$as_me:$LINENO: checking for $ac_word" >&5
10100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10101
if test "${ac_cv_prog_JAR+set}" = set; then
10102
echo $ECHO_N "(cached) $ECHO_C" >&6
10104
if test -n "$JAR"; then
10105
ac_cv_prog_JAR="$JAR" # Let the user override the test.
10107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108
for as_dir in $PATH
10111
test -z "$as_dir" && as_dir=.
10112
for ac_exec_ext in '' $ac_executable_extensions; do
10113
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114
ac_cv_prog_JAR="$ac_prog"
10115
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10123
JAR=$ac_cv_prog_JAR
10124
if test -n "$JAR"; then
10125
echo "$as_me:$LINENO: result: $JAR" >&5
10126
echo "${ECHO_T}$JAR" >&6
10128
echo "$as_me:$LINENO: result: no" >&5
10129
echo "${ECHO_T}no" >&6
10132
test -n "$JAR" && break
10134
test -n "$JAR" || JAR="$JAVAPREFIX"
10137
test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
10138
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
10139
{ (exit 1); exit 1; }; }
10143
JNI_INCLUDE_DIRS=""
10145
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
10146
echo "$as_me: error: '$JAVAC' undefined" >&2;}
10147
{ (exit 1); exit 1; }; }
10148
# Extract the first word of "$JAVAC", so it can be a program name with args.
10149
set dummy $JAVAC; ac_word=$2
10150
echo "$as_me:$LINENO: checking for $ac_word" >&5
10151
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10152
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
10153
echo $ECHO_N "(cached) $ECHO_C" >&6
10155
case $_ACJNI_JAVAC in
10157
ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
10160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161
for as_dir in $PATH
10164
test -z "$as_dir" && as_dir=.
10165
for ac_exec_ext in '' $ac_executable_extensions; do
10166
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167
ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
10168
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10174
test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
10178
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
10180
if test -n "$_ACJNI_JAVAC"; then
10181
echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
10182
echo "${ECHO_T}$_ACJNI_JAVAC" >&6
10184
echo "$as_me:$LINENO: result: no" >&5
10185
echo "${ECHO_T}no" >&6
10188
test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
10189
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
10190
{ (exit 1); exit 1; }; }
10191
echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
10192
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6
10193
case "$_ACJNI_JAVAC" in
10194
/*) echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
10195
echo "${ECHO_T}$_ACJNI_JAVAC" >&6;;
10196
*) { { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
10197
echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
10198
{ (exit 1); exit 1; }; };;
10202
# find the include directory relative to the javac executable
10203
_cur=""$_ACJNI_JAVAC""
10204
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
10205
echo "$as_me:$LINENO: checking symlink for $_cur" >&5
10206
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6
10207
_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
10209
/*) _cur="$_slink";;
10210
# 'X' avoids triggering unwanted echo options.
10211
*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
10213
echo "$as_me:$LINENO: result: $_cur" >&5
10214
echo "${ECHO_T}$_cur" >&6
10216
_ACJNI_FOLLOWED="$_cur"
10218
_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
10220
darwin*) _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
10221
_JINC="$_JTOPDIR/Headers";;
10222
*) _JINC="$_JTOPDIR/include";;
10225
# If we find jni.h in /usr/include, then it's not a java-only tree, so
10226
# don't add /usr/include or subdirectories to the list of includes.
10227
# An extra -I/usr/include can foul things up with newer gcc's.
10228
if test -f "$_JINC/jni.h"; then
10229
if test "$_JINC" != "/usr/include"; then
10230
JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
10233
_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
10234
if test -f "$_JTOPDIR/include/jni.h"; then
10235
if test "$_JTOPDIR" != "/usr"; then
10236
JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
10239
{ { echo "$as_me:$LINENO: error: cannot find java include files" >&5
10240
echo "$as_me: error: cannot find java include files" >&2;}
10241
{ (exit 1); exit 1; }; }
10245
# get the likely subdirectories for system specific java includes
10246
if test "$_JTOPDIR" != "/usr"; then
10248
aix*) _JNI_INC_SUBDIRS="aix";;
10249
bsdi*) _JNI_INC_SUBDIRS="bsdos";;
10250
linux*) _JNI_INC_SUBDIRS="linux genunix";;
10251
osf*) _JNI_INC_SUBDIRS="alpha";;
10252
solaris*) _JNI_INC_SUBDIRS="solaris";;
10253
*) _JNI_INC_SUBDIRS="genunix";;
10257
# add any subdirectories that are present
10258
for _JINCSUBDIR in $_JNI_INC_SUBDIRS
10260
if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
10261
JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
10266
for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
10268
CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
10271
ADDITIONAL_LANG="$ADDITIONAL_LANG java"
10272
INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
10277
# Optional RPC client/server.
10278
if test "$db_cv_rpc" = "yes"; then
10279
cat >>confdefs.h <<\_ACEOF
10286
RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
10287
ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
10289
EMBEDIX_ECD_RPC="/usr/bin/berkeley_db_svc"
10293
echo "$as_me:$LINENO: checking for svc_run" >&5
10294
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
10295
if test "${ac_cv_func_svc_run+set}" = set; then
10296
echo $ECHO_N "(cached) $ECHO_C" >&6
10298
cat >conftest.$ac_ext <<_ACEOF
10299
#line $LINENO "configure"
10302
cat confdefs.h >>conftest.$ac_ext
10303
cat >>conftest.$ac_ext <<_ACEOF
10304
/* end confdefs.h. */
10305
/* System header to define __stub macros and hopefully few prototypes,
10306
which can conflict with char svc_run (); below.
10307
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308
<limits.h> exists even on freestanding compilers. */
10310
# include <limits.h>
10312
# include <assert.h>
10314
/* Override any gcc2 internal prototype to avoid an error. */
10319
/* We use char because int might match the return type of a gcc2
10320
builtin and then its argument prototype would still apply. */
10322
/* The GNU C library defines this for functions which it implements
10323
to always fail with ENOSYS. Some functions are actually named
10324
something starting with __ and the normal name is an alias. */
10325
#if defined (__stub_svc_run) || defined (__stub___svc_run)
10328
char (*f) () = svc_run;
10337
return f != svc_run;
10342
rm -f conftest.$ac_objext conftest$ac_exeext
10343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344
(eval $ac_link) 2>&5
10346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347
(exit $ac_status); } &&
10348
{ ac_try='test -s conftest$ac_exeext'
10349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350
(eval $ac_try) 2>&5
10352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
(exit $ac_status); }; }; then
10354
ac_cv_func_svc_run=yes
10356
echo "$as_me: failed program was:" >&5
10357
sed 's/^/| /' conftest.$ac_ext >&5
10359
ac_cv_func_svc_run=no
10361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10363
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
10364
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
10365
if test $ac_cv_func_svc_run = yes; then
10368
echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
10369
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
10370
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
10371
echo $ECHO_N "(cached) $ECHO_C" >&6
10373
ac_check_lib_save_LIBS=$LIBS
10375
cat >conftest.$ac_ext <<_ACEOF
10376
#line $LINENO "configure"
10379
cat confdefs.h >>conftest.$ac_ext
10380
cat >>conftest.$ac_ext <<_ACEOF
10381
/* end confdefs.h. */
10383
/* Override any gcc2 internal prototype to avoid an error. */
10387
/* We use char because int might match the return type of a gcc2
10388
builtin and then its argument prototype would still apply. */
10398
rm -f conftest.$ac_objext conftest$ac_exeext
10399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400
(eval $ac_link) 2>&5
10402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403
(exit $ac_status); } &&
10404
{ ac_try='test -s conftest$ac_exeext'
10405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406
(eval $ac_try) 2>&5
10408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409
(exit $ac_status); }; }; then
10410
ac_cv_lib_nsl_svc_run=yes
10412
echo "$as_me: failed program was:" >&5
10413
sed 's/^/| /' conftest.$ac_ext >&5
10415
ac_cv_lib_nsl_svc_run=no
10417
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10418
LIBS=$ac_check_lib_save_LIBS
10420
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
10421
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
10422
if test $ac_cv_lib_nsl_svc_run = yes; then
10423
LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
10429
echo "$as_me:$LINENO: checking for svc_run" >&5
10430
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
10431
if test "${ac_cv_func_svc_run+set}" = set; then
10432
echo $ECHO_N "(cached) $ECHO_C" >&6
10434
cat >conftest.$ac_ext <<_ACEOF
10435
#line $LINENO "configure"
10438
cat confdefs.h >>conftest.$ac_ext
10439
cat >>conftest.$ac_ext <<_ACEOF
10440
/* end confdefs.h. */
10441
/* System header to define __stub macros and hopefully few prototypes,
10442
which can conflict with char svc_run (); below.
10443
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444
<limits.h> exists even on freestanding compilers. */
10446
# include <limits.h>
10448
# include <assert.h>
10450
/* Override any gcc2 internal prototype to avoid an error. */
10455
/* We use char because int might match the return type of a gcc2
10456
builtin and then its argument prototype would still apply. */
10458
/* The GNU C library defines this for functions which it implements
10459
to always fail with ENOSYS. Some functions are actually named
10460
something starting with __ and the normal name is an alias. */
10461
#if defined (__stub_svc_run) || defined (__stub___svc_run)
10464
char (*f) () = svc_run;
10473
return f != svc_run;
10478
rm -f conftest.$ac_objext conftest$ac_exeext
10479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480
(eval $ac_link) 2>&5
10482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483
(exit $ac_status); } &&
10484
{ ac_try='test -s conftest$ac_exeext'
10485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486
(eval $ac_try) 2>&5
10488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489
(exit $ac_status); }; }; then
10490
ac_cv_func_svc_run=yes
10492
echo "$as_me: failed program was:" >&5
10493
sed 's/^/| /' conftest.$ac_ext >&5
10495
ac_cv_func_svc_run=no
10497
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10499
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
10500
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
10501
if test $ac_cv_func_svc_run = yes; then
10505
echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
10506
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
10507
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
10508
echo $ECHO_N "(cached) $ECHO_C" >&6
10510
ac_check_lib_save_LIBS=$LIBS
10512
cat >conftest.$ac_ext <<_ACEOF
10513
#line $LINENO "configure"
10516
cat confdefs.h >>conftest.$ac_ext
10517
cat >>conftest.$ac_ext <<_ACEOF
10518
/* end confdefs.h. */
10520
/* Override any gcc2 internal prototype to avoid an error. */
10524
/* We use char because int might match the return type of a gcc2
10525
builtin and then its argument prototype would still apply. */
10535
rm -f conftest.$ac_objext conftest$ac_exeext
10536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537
(eval $ac_link) 2>&5
10539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540
(exit $ac_status); } &&
10541
{ ac_try='test -s conftest$ac_exeext'
10542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543
(eval $ac_try) 2>&5
10545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546
(exit $ac_status); }; }; then
10547
ac_cv_lib_nsl_svc_run=yes
10549
echo "$as_me: failed program was:" >&5
10550
sed 's/^/| /' conftest.$ac_ext >&5
10552
ac_cv_lib_nsl_svc_run=no
10554
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10555
LIBS=$ac_check_lib_save_LIBS
10557
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
10558
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
10559
if test $ac_cv_lib_nsl_svc_run = yes; then
10560
cat >>confdefs.h <<_ACEOF
10561
#define HAVE_LIBNSL 1
10574
if test "$db_cv_tcl" = "yes"; then
10575
if test "$enable_shared" = "no"; then
10576
{ { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
10577
echo "$as_me: error: Tcl requires shared libraries" >&2;}
10578
{ (exit 1); exit 1; }; }
10584
if test "${ac_cv_c_tclconfig+set}" = set; then
10585
echo $ECHO_N "(cached) $ECHO_C" >&6
10589
# First check to see if --with-tclconfig was specified.
10590
if test "${with_tclconfig}" != no; then
10591
if test -f "${with_tclconfig}/tclConfig.sh" ; then
10592
ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10594
{ { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10595
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10596
{ (exit 1); exit 1; }; }
10600
# check in a few common install locations
10601
if test x"${ac_cv_c_tclconfig}" = x ; then
10602
for i in `ls -d /usr/local/lib 2>/dev/null` ; do
10603
if test -f "$i/tclConfig.sh" ; then
10604
ac_cv_c_tclconfig=`(cd $i; pwd)`
10614
if test x"${ac_cv_c_tclconfig}" = x ; then
10615
TCL_BIN_DIR="# no Tcl configs found"
10616
{ { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
10617
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
10618
{ (exit 1); exit 1; }; }
10620
TCL_BIN_DIR=${ac_cv_c_tclconfig}
10624
echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10625
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
10627
if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10628
echo "$as_me:$LINENO: result: loading" >&5
10629
echo "${ECHO_T}loading" >&6
10630
. $TCL_BIN_DIR/tclConfig.sh
10632
echo "$as_me:$LINENO: result: file not found" >&5
10633
echo "${ECHO_T}file not found" >&6
10637
# The eval is required to do the TCL_DBGX substitution in the
10638
# TCL_LIB_FILE variable
10640
eval TCL_LIB_FILE="${TCL_LIB_FILE}"
10641
eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
10642
eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10645
# If the DB Tcl library isn't loaded with the Tcl spec and library
10646
# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
10647
# load time. [#4843] Furthermore, with Tcl 8.3, the link flags
10648
# given by the Tcl spec are insufficient for our use. [#5779]
10652
LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
10653
LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
10655
LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
10662
TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
10665
if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
10666
TCFLAGS="-I$TCL_PREFIX/include"
10671
# To include tcl.h when compiling tcl_*.o
10672
TCFLAGS="$TCFLAGS -DDB_TCL_SUPPORT"
10676
INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
10679
# Optional crypto support.
10680
if test -d "$srcdir/../crypto"; then
10681
cat >>confdefs.h <<\_ACEOF
10682
#define HAVE_CRYPTO 1
10687
ADDITIONAL_OBJS="aes_method${o} crypto${o} mt19937db${o} rijndael-alg-fst${o} rijndael-api-fst${o} $ADDITIONAL_OBJS"
10690
# Optional DB 1.85 compatibility API.
10691
if test "$db_cv_compat185" = "yes"; then
10692
ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
10693
ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
10696
# Optional utilities.
10697
if test "$db_cv_dump185" = "yes"; then
10698
ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
10701
# Checks for compiler characteristics.
10702
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10703
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10704
if test "${ac_cv_c_const+set}" = set; then
10705
echo $ECHO_N "(cached) $ECHO_C" >&6
10707
cat >conftest.$ac_ext <<_ACEOF
10708
#line $LINENO "configure"
10711
cat confdefs.h >>conftest.$ac_ext
10712
cat >>conftest.$ac_ext <<_ACEOF
10713
/* end confdefs.h. */
10718
/* FIXME: Include the comments suggested by Paul. */
10719
#ifndef __cplusplus
10720
/* Ultrix mips cc rejects this. */
10721
typedef int charset[2];
10723
/* SunOS 4.1.1 cc rejects this. */
10724
char const *const *ccp;
10726
/* NEC SVR4.0.2 mips cc rejects this. */
10727
struct point {int x, y;};
10728
static struct point const zero = {0,0};
10729
/* AIX XL C 1.02.0.0 rejects this.
10730
It does not let you subtract one const X* pointer from another in
10731
an arm of an if-expression whose if-part is not a constant
10733
const char *g = "string";
10734
ccp = &g + (g ? g-g : 0);
10735
/* HPUX 7.0 cc rejects these. */
10738
ccp = (char const *const *) p;
10739
{ /* SCO 3.2v4 cc rejects this. */
10741
char const *s = 0 ? (char *) 0 : (char const *) 0;
10745
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10746
int x[] = {25, 17};
10747
const int *foo = &x[0];
10750
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10751
typedef const int *iptr;
10755
{ /* AIX XL C 1.02.0.0 rejects this saying
10756
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10757
struct s { int j; const int *ap[3]; };
10758
struct s *b; b->j = 5;
10760
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10761
const int foo = 10;
10769
rm -f conftest.$ac_objext
10770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771
(eval $ac_compile) 2>&5
10773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774
(exit $ac_status); } &&
10775
{ ac_try='test -s conftest.$ac_objext'
10776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777
(eval $ac_try) 2>&5
10779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780
(exit $ac_status); }; }; then
10783
echo "$as_me: failed program was:" >&5
10784
sed 's/^/| /' conftest.$ac_ext >&5
10788
rm -f conftest.$ac_objext conftest.$ac_ext
10790
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10791
echo "${ECHO_T}$ac_cv_c_const" >&6
10792
if test $ac_cv_c_const = no; then
10794
cat >>confdefs.h <<\_ACEOF
10801
# Checks for include files, structures, C types.
10802
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10803
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10804
if test "${ac_cv_header_stat_broken+set}" = set; then
10805
echo $ECHO_N "(cached) $ECHO_C" >&6
10807
cat >conftest.$ac_ext <<_ACEOF
10808
#line $LINENO "configure"
10811
cat confdefs.h >>conftest.$ac_ext
10812
cat >>conftest.$ac_ext <<_ACEOF
10813
/* end confdefs.h. */
10814
#include <sys/types.h>
10815
#include <sys/stat.h>
10817
#if defined(S_ISBLK) && defined(S_IFDIR)
10818
# if S_ISBLK (S_IFDIR)
10823
#if defined(S_ISBLK) && defined(S_IFCHR)
10824
# if S_ISBLK (S_IFCHR)
10829
#if defined(S_ISLNK) && defined(S_IFREG)
10830
# if S_ISLNK (S_IFREG)
10835
#if defined(S_ISSOCK) && defined(S_IFREG)
10836
# if S_ISSOCK (S_IFREG)
10842
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10843
$EGREP "You lose" >/dev/null 2>&1; then
10844
ac_cv_header_stat_broken=yes
10846
ac_cv_header_stat_broken=no
10851
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10852
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10853
if test $ac_cv_header_stat_broken = yes; then
10855
cat >>confdefs.h <<\_ACEOF
10856
#define STAT_MACROS_BROKEN 1
10861
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10862
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10863
if test "${ac_cv_header_time+set}" = set; then
10864
echo $ECHO_N "(cached) $ECHO_C" >&6
10866
cat >conftest.$ac_ext <<_ACEOF
10867
#line $LINENO "configure"
10870
cat confdefs.h >>conftest.$ac_ext
10871
cat >>conftest.$ac_ext <<_ACEOF
10872
/* end confdefs.h. */
10873
#include <sys/types.h>
10874
#include <sys/time.h>
10880
if ((struct tm *) 0)
10886
rm -f conftest.$ac_objext
10887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10888
(eval $ac_compile) 2>&5
10890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891
(exit $ac_status); } &&
10892
{ ac_try='test -s conftest.$ac_objext'
10893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894
(eval $ac_try) 2>&5
10896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897
(exit $ac_status); }; }; then
10898
ac_cv_header_time=yes
10900
echo "$as_me: failed program was:" >&5
10901
sed 's/^/| /' conftest.$ac_ext >&5
10903
ac_cv_header_time=no
10905
rm -f conftest.$ac_objext conftest.$ac_ext
10907
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10908
echo "${ECHO_T}$ac_cv_header_time" >&6
10909
if test $ac_cv_header_time = yes; then
10911
cat >>confdefs.h <<\_ACEOF
10912
#define TIME_WITH_SYS_TIME 1
10922
ac_header_dirent=no
10923
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10924
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10925
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10926
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10927
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10928
echo $ECHO_N "(cached) $ECHO_C" >&6
10930
cat >conftest.$ac_ext <<_ACEOF
10931
#line $LINENO "configure"
10934
cat confdefs.h >>conftest.$ac_ext
10935
cat >>conftest.$ac_ext <<_ACEOF
10936
/* end confdefs.h. */
10937
#include <sys/types.h>
10949
rm -f conftest.$ac_objext
10950
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951
(eval $ac_compile) 2>&5
10953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
(exit $ac_status); } &&
10955
{ ac_try='test -s conftest.$ac_objext'
10956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957
(eval $ac_try) 2>&5
10959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960
(exit $ac_status); }; }; then
10961
eval "$as_ac_Header=yes"
10963
echo "$as_me: failed program was:" >&5
10964
sed 's/^/| /' conftest.$ac_ext >&5
10966
eval "$as_ac_Header=no"
10968
rm -f conftest.$ac_objext conftest.$ac_ext
10970
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10971
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10972
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10973
cat >>confdefs.h <<_ACEOF
10974
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10977
ac_header_dirent=$ac_hdr; break
10981
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10982
if test $ac_header_dirent = dirent.h; then
10983
echo "$as_me:$LINENO: checking for library containing opendir" >&5
10984
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10985
if test "${ac_cv_search_opendir+set}" = set; then
10986
echo $ECHO_N "(cached) $ECHO_C" >&6
10988
ac_func_search_save_LIBS=$LIBS
10989
ac_cv_search_opendir=no
10990
cat >conftest.$ac_ext <<_ACEOF
10991
#line $LINENO "configure"
10994
cat confdefs.h >>conftest.$ac_ext
10995
cat >>conftest.$ac_ext <<_ACEOF
10996
/* end confdefs.h. */
10998
/* Override any gcc2 internal prototype to avoid an error. */
11002
/* We use char because int might match the return type of a gcc2
11003
builtin and then its argument prototype would still apply. */
11013
rm -f conftest.$ac_objext conftest$ac_exeext
11014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015
(eval $ac_link) 2>&5
11017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018
(exit $ac_status); } &&
11019
{ ac_try='test -s conftest$ac_exeext'
11020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021
(eval $ac_try) 2>&5
11023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
(exit $ac_status); }; }; then
11025
ac_cv_search_opendir="none required"
11027
echo "$as_me: failed program was:" >&5
11028
sed 's/^/| /' conftest.$ac_ext >&5
11031
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032
if test "$ac_cv_search_opendir" = no; then
11033
for ac_lib in dir; do
11034
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11035
cat >conftest.$ac_ext <<_ACEOF
11036
#line $LINENO "configure"
11039
cat confdefs.h >>conftest.$ac_ext
11040
cat >>conftest.$ac_ext <<_ACEOF
11041
/* end confdefs.h. */
11043
/* Override any gcc2 internal prototype to avoid an error. */
11047
/* We use char because int might match the return type of a gcc2
11048
builtin and then its argument prototype would still apply. */
11058
rm -f conftest.$ac_objext conftest$ac_exeext
11059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060
(eval $ac_link) 2>&5
11062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
(exit $ac_status); } &&
11064
{ ac_try='test -s conftest$ac_exeext'
11065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066
(eval $ac_try) 2>&5
11068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069
(exit $ac_status); }; }; then
11070
ac_cv_search_opendir="-l$ac_lib"
11073
echo "$as_me: failed program was:" >&5
11074
sed 's/^/| /' conftest.$ac_ext >&5
11077
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11080
LIBS=$ac_func_search_save_LIBS
11082
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11083
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11084
if test "$ac_cv_search_opendir" != no; then
11085
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11090
echo "$as_me:$LINENO: checking for library containing opendir" >&5
11091
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11092
if test "${ac_cv_search_opendir+set}" = set; then
11093
echo $ECHO_N "(cached) $ECHO_C" >&6
11095
ac_func_search_save_LIBS=$LIBS
11096
ac_cv_search_opendir=no
11097
cat >conftest.$ac_ext <<_ACEOF
11098
#line $LINENO "configure"
11101
cat confdefs.h >>conftest.$ac_ext
11102
cat >>conftest.$ac_ext <<_ACEOF
11103
/* end confdefs.h. */
11105
/* Override any gcc2 internal prototype to avoid an error. */
11109
/* We use char because int might match the return type of a gcc2
11110
builtin and then its argument prototype would still apply. */
11120
rm -f conftest.$ac_objext conftest$ac_exeext
11121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122
(eval $ac_link) 2>&5
11124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125
(exit $ac_status); } &&
11126
{ ac_try='test -s conftest$ac_exeext'
11127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128
(eval $ac_try) 2>&5
11130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131
(exit $ac_status); }; }; then
11132
ac_cv_search_opendir="none required"
11134
echo "$as_me: failed program was:" >&5
11135
sed 's/^/| /' conftest.$ac_ext >&5
11138
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11139
if test "$ac_cv_search_opendir" = no; then
11140
for ac_lib in x; do
11141
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11142
cat >conftest.$ac_ext <<_ACEOF
11143
#line $LINENO "configure"
11146
cat confdefs.h >>conftest.$ac_ext
11147
cat >>conftest.$ac_ext <<_ACEOF
11148
/* end confdefs.h. */
11150
/* Override any gcc2 internal prototype to avoid an error. */
11154
/* We use char because int might match the return type of a gcc2
11155
builtin and then its argument prototype would still apply. */
11165
rm -f conftest.$ac_objext conftest$ac_exeext
11166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167
(eval $ac_link) 2>&5
11169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170
(exit $ac_status); } &&
11171
{ ac_try='test -s conftest$ac_exeext'
11172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173
(eval $ac_try) 2>&5
11175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176
(exit $ac_status); }; }; then
11177
ac_cv_search_opendir="-l$ac_lib"
11180
echo "$as_me: failed program was:" >&5
11181
sed 's/^/| /' conftest.$ac_ext >&5
11184
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11187
LIBS=$ac_func_search_save_LIBS
11189
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11190
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11191
if test "$ac_cv_search_opendir" != no; then
11192
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11200
for ac_header in sys/select.h sys/time.h
11202
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11203
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204
echo "$as_me:$LINENO: checking for $ac_header" >&5
11205
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207
echo $ECHO_N "(cached) $ECHO_C" >&6
11209
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11212
# Is the header compilable?
11213
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11214
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11215
cat >conftest.$ac_ext <<_ACEOF
11216
#line $LINENO "configure"
11219
cat confdefs.h >>conftest.$ac_ext
11220
cat >>conftest.$ac_ext <<_ACEOF
11221
/* end confdefs.h. */
11222
$ac_includes_default
11223
#include <$ac_header>
11225
rm -f conftest.$ac_objext
11226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227
(eval $ac_compile) 2>&5
11229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230
(exit $ac_status); } &&
11231
{ ac_try='test -s conftest.$ac_objext'
11232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233
(eval $ac_try) 2>&5
11235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236
(exit $ac_status); }; }; then
11237
ac_header_compiler=yes
11239
echo "$as_me: failed program was:" >&5
11240
sed 's/^/| /' conftest.$ac_ext >&5
11242
ac_header_compiler=no
11244
rm -f conftest.$ac_objext conftest.$ac_ext
11245
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246
echo "${ECHO_T}$ac_header_compiler" >&6
11248
# Is the header present?
11249
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11250
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11251
cat >conftest.$ac_ext <<_ACEOF
11252
#line $LINENO "configure"
11255
cat confdefs.h >>conftest.$ac_ext
11256
cat >>conftest.$ac_ext <<_ACEOF
11257
/* end confdefs.h. */
11258
#include <$ac_header>
11260
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263
grep -v '^ *+' conftest.er1 >conftest.err
11265
cat conftest.err >&5
11266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267
(exit $ac_status); } >/dev/null; then
11268
if test -s conftest.err; then
11269
ac_cpp_err=$ac_c_preproc_warn_flag
11276
if test -z "$ac_cpp_err"; then
11277
ac_header_preproc=yes
11279
echo "$as_me: failed program was:" >&5
11280
sed 's/^/| /' conftest.$ac_ext >&5
11282
ac_header_preproc=no
11284
rm -f conftest.err conftest.$ac_ext
11285
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286
echo "${ECHO_T}$ac_header_preproc" >&6
11288
# So? What about this header?
11289
case $ac_header_compiler:$ac_header_preproc in
11291
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11294
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11297
## ------------------------------------ ##
11298
## Report this to bug-autoconf@gnu.org. ##
11299
## ------------------------------------ ##
11302
sed "s/^/$as_me: WARNING: /" >&2
11305
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313
## ------------------------------------ ##
11314
## Report this to bug-autoconf@gnu.org. ##
11315
## ------------------------------------ ##
11318
sed "s/^/$as_me: WARNING: /" >&2
11321
echo "$as_me:$LINENO: checking for $ac_header" >&5
11322
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324
echo $ECHO_N "(cached) $ECHO_C" >&6
11326
eval "$as_ac_Header=$ac_header_preproc"
11328
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11333
cat >>confdefs.h <<_ACEOF
11334
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11342
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11343
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11344
echo $ECHO_N "(cached) $ECHO_C" >&6
11346
cat >conftest.$ac_ext <<_ACEOF
11347
#line $LINENO "configure"
11350
cat confdefs.h >>conftest.$ac_ext
11351
cat >>conftest.$ac_ext <<_ACEOF
11352
/* end confdefs.h. */
11353
$ac_includes_default
11357
static struct stat ac_aggr;
11358
if (ac_aggr.st_blksize)
11364
rm -f conftest.$ac_objext
11365
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366
(eval $ac_compile) 2>&5
11368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369
(exit $ac_status); } &&
11370
{ ac_try='test -s conftest.$ac_objext'
11371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372
(eval $ac_try) 2>&5
11374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375
(exit $ac_status); }; }; then
11376
ac_cv_member_struct_stat_st_blksize=yes
11378
echo "$as_me: failed program was:" >&5
11379
sed 's/^/| /' conftest.$ac_ext >&5
11381
cat >conftest.$ac_ext <<_ACEOF
11382
#line $LINENO "configure"
11385
cat confdefs.h >>conftest.$ac_ext
11386
cat >>conftest.$ac_ext <<_ACEOF
11387
/* end confdefs.h. */
11388
$ac_includes_default
11392
static struct stat ac_aggr;
11393
if (sizeof ac_aggr.st_blksize)
11399
rm -f conftest.$ac_objext
11400
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401
(eval $ac_compile) 2>&5
11403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404
(exit $ac_status); } &&
11405
{ ac_try='test -s conftest.$ac_objext'
11406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407
(eval $ac_try) 2>&5
11409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410
(exit $ac_status); }; }; then
11411
ac_cv_member_struct_stat_st_blksize=yes
11413
echo "$as_me: failed program was:" >&5
11414
sed 's/^/| /' conftest.$ac_ext >&5
11416
ac_cv_member_struct_stat_st_blksize=no
11418
rm -f conftest.$ac_objext conftest.$ac_ext
11420
rm -f conftest.$ac_objext conftest.$ac_ext
11422
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11423
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11424
if test $ac_cv_member_struct_stat_st_blksize = yes; then
11426
cat >>confdefs.h <<_ACEOF
11427
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11435
# We need to know the sizes of various objects on this system.
11436
# We don't use the SIZEOF_XXX values created by autoconf.
11437
echo "$as_me:$LINENO: checking for char" >&5
11438
echo $ECHO_N "checking for char... $ECHO_C" >&6
11439
if test "${ac_cv_type_char+set}" = set; then
11440
echo $ECHO_N "(cached) $ECHO_C" >&6
11442
cat >conftest.$ac_ext <<_ACEOF
11443
#line $LINENO "configure"
11446
cat confdefs.h >>conftest.$ac_ext
11447
cat >>conftest.$ac_ext <<_ACEOF
11448
/* end confdefs.h. */
11450
#include <sys/types.h>
11464
rm -f conftest.$ac_objext
11465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466
(eval $ac_compile) 2>&5
11468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469
(exit $ac_status); } &&
11470
{ ac_try='test -s conftest.$ac_objext'
11471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472
(eval $ac_try) 2>&5
11474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475
(exit $ac_status); }; }; then
11476
ac_cv_type_char=yes
11478
echo "$as_me: failed program was:" >&5
11479
sed 's/^/| /' conftest.$ac_ext >&5
11483
rm -f conftest.$ac_objext conftest.$ac_ext
11485
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11486
echo "${ECHO_T}$ac_cv_type_char" >&6
11488
echo "$as_me:$LINENO: checking size of char" >&5
11489
echo $ECHO_N "checking size of char... $ECHO_C" >&6
11490
if test "${ac_cv_sizeof_char+set}" = set; then
11491
echo $ECHO_N "(cached) $ECHO_C" >&6
11493
if test "$ac_cv_type_char" = yes; then
11494
# The cast to unsigned long works around a bug in the HP C Compiler
11495
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11496
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11497
# This bug is HP SR number 8606223364.
11498
if test "$cross_compiling" = yes; then
11499
# Depending upon the size, compute the lo and hi bounds.
11500
cat >conftest.$ac_ext <<_ACEOF
11501
#line $LINENO "configure"
11504
cat confdefs.h >>conftest.$ac_ext
11505
cat >>conftest.$ac_ext <<_ACEOF
11506
/* end confdefs.h. */
11508
#include <sys/types.h>
11514
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11521
rm -f conftest.$ac_objext
11522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11523
(eval $ac_compile) 2>&5
11525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
(exit $ac_status); } &&
11527
{ ac_try='test -s conftest.$ac_objext'
11528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529
(eval $ac_try) 2>&5
11531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532
(exit $ac_status); }; }; then
11535
cat >conftest.$ac_ext <<_ACEOF
11536
#line $LINENO "configure"
11539
cat confdefs.h >>conftest.$ac_ext
11540
cat >>conftest.$ac_ext <<_ACEOF
11541
/* end confdefs.h. */
11543
#include <sys/types.h>
11549
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11556
rm -f conftest.$ac_objext
11557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558
(eval $ac_compile) 2>&5
11560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561
(exit $ac_status); } &&
11562
{ ac_try='test -s conftest.$ac_objext'
11563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564
(eval $ac_try) 2>&5
11566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567
(exit $ac_status); }; }; then
11568
ac_hi=$ac_mid; break
11570
echo "$as_me: failed program was:" >&5
11571
sed 's/^/| /' conftest.$ac_ext >&5
11573
ac_lo=`expr $ac_mid + 1`
11574
if test $ac_lo -le $ac_mid; then
11578
ac_mid=`expr 2 '*' $ac_mid + 1`
11580
rm -f conftest.$ac_objext conftest.$ac_ext
11583
echo "$as_me: failed program was:" >&5
11584
sed 's/^/| /' conftest.$ac_ext >&5
11586
cat >conftest.$ac_ext <<_ACEOF
11587
#line $LINENO "configure"
11590
cat confdefs.h >>conftest.$ac_ext
11591
cat >>conftest.$ac_ext <<_ACEOF
11592
/* end confdefs.h. */
11594
#include <sys/types.h>
11600
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11607
rm -f conftest.$ac_objext
11608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609
(eval $ac_compile) 2>&5
11611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612
(exit $ac_status); } &&
11613
{ ac_try='test -s conftest.$ac_objext'
11614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615
(eval $ac_try) 2>&5
11617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618
(exit $ac_status); }; }; then
11621
cat >conftest.$ac_ext <<_ACEOF
11622
#line $LINENO "configure"
11625
cat confdefs.h >>conftest.$ac_ext
11626
cat >>conftest.$ac_ext <<_ACEOF
11627
/* end confdefs.h. */
11629
#include <sys/types.h>
11635
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11642
rm -f conftest.$ac_objext
11643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644
(eval $ac_compile) 2>&5
11646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647
(exit $ac_status); } &&
11648
{ ac_try='test -s conftest.$ac_objext'
11649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650
(eval $ac_try) 2>&5
11652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653
(exit $ac_status); }; }; then
11654
ac_lo=$ac_mid; break
11656
echo "$as_me: failed program was:" >&5
11657
sed 's/^/| /' conftest.$ac_ext >&5
11659
ac_hi=`expr '(' $ac_mid ')' - 1`
11660
if test $ac_mid -le $ac_hi; then
11664
ac_mid=`expr 2 '*' $ac_mid`
11666
rm -f conftest.$ac_objext conftest.$ac_ext
11669
echo "$as_me: failed program was:" >&5
11670
sed 's/^/| /' conftest.$ac_ext >&5
11674
rm -f conftest.$ac_objext conftest.$ac_ext
11676
rm -f conftest.$ac_objext conftest.$ac_ext
11677
# Binary search between lo and hi bounds.
11678
while test "x$ac_lo" != "x$ac_hi"; do
11679
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11680
cat >conftest.$ac_ext <<_ACEOF
11681
#line $LINENO "configure"
11684
cat confdefs.h >>conftest.$ac_ext
11685
cat >>conftest.$ac_ext <<_ACEOF
11686
/* end confdefs.h. */
11688
#include <sys/types.h>
11694
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11701
rm -f conftest.$ac_objext
11702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703
(eval $ac_compile) 2>&5
11705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706
(exit $ac_status); } &&
11707
{ ac_try='test -s conftest.$ac_objext'
11708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709
(eval $ac_try) 2>&5
11711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712
(exit $ac_status); }; }; then
11715
echo "$as_me: failed program was:" >&5
11716
sed 's/^/| /' conftest.$ac_ext >&5
11718
ac_lo=`expr '(' $ac_mid ')' + 1`
11720
rm -f conftest.$ac_objext conftest.$ac_ext
11723
?*) ac_cv_sizeof_char=$ac_lo;;
11724
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11725
See \`config.log' for more details." >&5
11726
echo "$as_me: error: cannot compute sizeof (char), 77
11727
See \`config.log' for more details." >&2;}
11728
{ (exit 1); exit 1; }; } ;;
11731
if test "$cross_compiling" = yes; then
11732
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11733
See \`config.log' for more details." >&5
11734
echo "$as_me: error: cannot run test program while cross compiling
11735
See \`config.log' for more details." >&2;}
11736
{ (exit 1); exit 1; }; }
11738
cat >conftest.$ac_ext <<_ACEOF
11739
#line $LINENO "configure"
11742
cat confdefs.h >>conftest.$ac_ext
11743
cat >>conftest.$ac_ext <<_ACEOF
11744
/* end confdefs.h. */
11746
#include <sys/types.h>
11749
long longval () { return (long) (sizeof (char)); }
11750
unsigned long ulongval () { return (long) (sizeof (char)); }
11752
#include <stdlib.h>
11757
FILE *f = fopen ("conftest.val", "w");
11760
if (((long) (sizeof (char))) < 0)
11762
long i = longval ();
11763
if (i != ((long) (sizeof (char))))
11765
fprintf (f, "%ld\n", i);
11769
unsigned long i = ulongval ();
11770
if (i != ((long) (sizeof (char))))
11772
fprintf (f, "%lu\n", i);
11774
exit (ferror (f) || fclose (f) != 0);
11780
rm -f conftest$ac_exeext
11781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782
(eval $ac_link) 2>&5
11784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787
(eval $ac_try) 2>&5
11789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790
(exit $ac_status); }; }; then
11791
ac_cv_sizeof_char=`cat conftest.val`
11793
echo "$as_me: program exited with status $ac_status" >&5
11794
echo "$as_me: failed program was:" >&5
11795
sed 's/^/| /' conftest.$ac_ext >&5
11797
( exit $ac_status )
11798
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11799
See \`config.log' for more details." >&5
11800
echo "$as_me: error: cannot compute sizeof (char), 77
11801
See \`config.log' for more details." >&2;}
11802
{ (exit 1); exit 1; }; }
11804
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11809
ac_cv_sizeof_char=0
11812
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11813
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11814
cat >>confdefs.h <<_ACEOF
11815
#define SIZEOF_CHAR $ac_cv_sizeof_char
11819
echo "$as_me:$LINENO: checking for unsigned char" >&5
11820
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
11821
if test "${ac_cv_type_unsigned_char+set}" = set; then
11822
echo $ECHO_N "(cached) $ECHO_C" >&6
11824
cat >conftest.$ac_ext <<_ACEOF
11825
#line $LINENO "configure"
11828
cat confdefs.h >>conftest.$ac_ext
11829
cat >>conftest.$ac_ext <<_ACEOF
11830
/* end confdefs.h. */
11832
#include <sys/types.h>
11838
if ((unsigned char *) 0)
11840
if (sizeof (unsigned char))
11846
rm -f conftest.$ac_objext
11847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848
(eval $ac_compile) 2>&5
11850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851
(exit $ac_status); } &&
11852
{ ac_try='test -s conftest.$ac_objext'
11853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854
(eval $ac_try) 2>&5
11856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857
(exit $ac_status); }; }; then
11858
ac_cv_type_unsigned_char=yes
11860
echo "$as_me: failed program was:" >&5
11861
sed 's/^/| /' conftest.$ac_ext >&5
11863
ac_cv_type_unsigned_char=no
11865
rm -f conftest.$ac_objext conftest.$ac_ext
11867
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
11868
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
11870
echo "$as_me:$LINENO: checking size of unsigned char" >&5
11871
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
11872
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
11873
echo $ECHO_N "(cached) $ECHO_C" >&6
11875
if test "$ac_cv_type_unsigned_char" = yes; then
11876
# The cast to unsigned long works around a bug in the HP C Compiler
11877
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11878
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11879
# This bug is HP SR number 8606223364.
11880
if test "$cross_compiling" = yes; then
11881
# Depending upon the size, compute the lo and hi bounds.
11882
cat >conftest.$ac_ext <<_ACEOF
11883
#line $LINENO "configure"
11886
cat confdefs.h >>conftest.$ac_ext
11887
cat >>conftest.$ac_ext <<_ACEOF
11888
/* end confdefs.h. */
11890
#include <sys/types.h>
11896
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
11903
rm -f conftest.$ac_objext
11904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905
(eval $ac_compile) 2>&5
11907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908
(exit $ac_status); } &&
11909
{ ac_try='test -s conftest.$ac_objext'
11910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911
(eval $ac_try) 2>&5
11913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914
(exit $ac_status); }; }; then
11917
cat >conftest.$ac_ext <<_ACEOF
11918
#line $LINENO "configure"
11921
cat confdefs.h >>conftest.$ac_ext
11922
cat >>conftest.$ac_ext <<_ACEOF
11923
/* end confdefs.h. */
11925
#include <sys/types.h>
11931
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
11938
rm -f conftest.$ac_objext
11939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940
(eval $ac_compile) 2>&5
11942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943
(exit $ac_status); } &&
11944
{ ac_try='test -s conftest.$ac_objext'
11945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946
(eval $ac_try) 2>&5
11948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949
(exit $ac_status); }; }; then
11950
ac_hi=$ac_mid; break
11952
echo "$as_me: failed program was:" >&5
11953
sed 's/^/| /' conftest.$ac_ext >&5
11955
ac_lo=`expr $ac_mid + 1`
11956
if test $ac_lo -le $ac_mid; then
11960
ac_mid=`expr 2 '*' $ac_mid + 1`
11962
rm -f conftest.$ac_objext conftest.$ac_ext
11965
echo "$as_me: failed program was:" >&5
11966
sed 's/^/| /' conftest.$ac_ext >&5
11968
cat >conftest.$ac_ext <<_ACEOF
11969
#line $LINENO "configure"
11972
cat confdefs.h >>conftest.$ac_ext
11973
cat >>conftest.$ac_ext <<_ACEOF
11974
/* end confdefs.h. */
11976
#include <sys/types.h>
11982
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
11989
rm -f conftest.$ac_objext
11990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991
(eval $ac_compile) 2>&5
11993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994
(exit $ac_status); } &&
11995
{ ac_try='test -s conftest.$ac_objext'
11996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997
(eval $ac_try) 2>&5
11999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000
(exit $ac_status); }; }; then
12003
cat >conftest.$ac_ext <<_ACEOF
12004
#line $LINENO "configure"
12007
cat confdefs.h >>conftest.$ac_ext
12008
cat >>conftest.$ac_ext <<_ACEOF
12009
/* end confdefs.h. */
12011
#include <sys/types.h>
12017
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
12024
rm -f conftest.$ac_objext
12025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026
(eval $ac_compile) 2>&5
12028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029
(exit $ac_status); } &&
12030
{ ac_try='test -s conftest.$ac_objext'
12031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032
(eval $ac_try) 2>&5
12034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035
(exit $ac_status); }; }; then
12036
ac_lo=$ac_mid; break
12038
echo "$as_me: failed program was:" >&5
12039
sed 's/^/| /' conftest.$ac_ext >&5
12041
ac_hi=`expr '(' $ac_mid ')' - 1`
12042
if test $ac_mid -le $ac_hi; then
12046
ac_mid=`expr 2 '*' $ac_mid`
12048
rm -f conftest.$ac_objext conftest.$ac_ext
12051
echo "$as_me: failed program was:" >&5
12052
sed 's/^/| /' conftest.$ac_ext >&5
12056
rm -f conftest.$ac_objext conftest.$ac_ext
12058
rm -f conftest.$ac_objext conftest.$ac_ext
12059
# Binary search between lo and hi bounds.
12060
while test "x$ac_lo" != "x$ac_hi"; do
12061
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12062
cat >conftest.$ac_ext <<_ACEOF
12063
#line $LINENO "configure"
12066
cat confdefs.h >>conftest.$ac_ext
12067
cat >>conftest.$ac_ext <<_ACEOF
12068
/* end confdefs.h. */
12070
#include <sys/types.h>
12076
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
12083
rm -f conftest.$ac_objext
12084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085
(eval $ac_compile) 2>&5
12087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088
(exit $ac_status); } &&
12089
{ ac_try='test -s conftest.$ac_objext'
12090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091
(eval $ac_try) 2>&5
12093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094
(exit $ac_status); }; }; then
12097
echo "$as_me: failed program was:" >&5
12098
sed 's/^/| /' conftest.$ac_ext >&5
12100
ac_lo=`expr '(' $ac_mid ')' + 1`
12102
rm -f conftest.$ac_objext conftest.$ac_ext
12105
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
12106
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
12107
See \`config.log' for more details." >&5
12108
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
12109
See \`config.log' for more details." >&2;}
12110
{ (exit 1); exit 1; }; } ;;
12113
if test "$cross_compiling" = yes; then
12114
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12115
See \`config.log' for more details." >&5
12116
echo "$as_me: error: cannot run test program while cross compiling
12117
See \`config.log' for more details." >&2;}
12118
{ (exit 1); exit 1; }; }
12120
cat >conftest.$ac_ext <<_ACEOF
12121
#line $LINENO "configure"
12124
cat confdefs.h >>conftest.$ac_ext
12125
cat >>conftest.$ac_ext <<_ACEOF
12126
/* end confdefs.h. */
12128
#include <sys/types.h>
12131
long longval () { return (long) (sizeof (unsigned char)); }
12132
unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
12134
#include <stdlib.h>
12139
FILE *f = fopen ("conftest.val", "w");
12142
if (((long) (sizeof (unsigned char))) < 0)
12144
long i = longval ();
12145
if (i != ((long) (sizeof (unsigned char))))
12147
fprintf (f, "%ld\n", i);
12151
unsigned long i = ulongval ();
12152
if (i != ((long) (sizeof (unsigned char))))
12154
fprintf (f, "%lu\n", i);
12156
exit (ferror (f) || fclose (f) != 0);
12162
rm -f conftest$ac_exeext
12163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164
(eval $ac_link) 2>&5
12166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169
(eval $ac_try) 2>&5
12171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172
(exit $ac_status); }; }; then
12173
ac_cv_sizeof_unsigned_char=`cat conftest.val`
12175
echo "$as_me: program exited with status $ac_status" >&5
12176
echo "$as_me: failed program was:" >&5
12177
sed 's/^/| /' conftest.$ac_ext >&5
12179
( exit $ac_status )
12180
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
12181
See \`config.log' for more details." >&5
12182
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
12183
See \`config.log' for more details." >&2;}
12184
{ (exit 1); exit 1; }; }
12186
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12191
ac_cv_sizeof_unsigned_char=0
12194
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
12195
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
12196
cat >>confdefs.h <<_ACEOF
12197
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
12201
echo "$as_me:$LINENO: checking for short" >&5
12202
echo $ECHO_N "checking for short... $ECHO_C" >&6
12203
if test "${ac_cv_type_short+set}" = set; then
12204
echo $ECHO_N "(cached) $ECHO_C" >&6
12206
cat >conftest.$ac_ext <<_ACEOF
12207
#line $LINENO "configure"
12210
cat confdefs.h >>conftest.$ac_ext
12211
cat >>conftest.$ac_ext <<_ACEOF
12212
/* end confdefs.h. */
12214
#include <sys/types.h>
12222
if (sizeof (short))
12228
rm -f conftest.$ac_objext
12229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230
(eval $ac_compile) 2>&5
12232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
(exit $ac_status); } &&
12234
{ ac_try='test -s conftest.$ac_objext'
12235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236
(eval $ac_try) 2>&5
12238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239
(exit $ac_status); }; }; then
12240
ac_cv_type_short=yes
12242
echo "$as_me: failed program was:" >&5
12243
sed 's/^/| /' conftest.$ac_ext >&5
12245
ac_cv_type_short=no
12247
rm -f conftest.$ac_objext conftest.$ac_ext
12249
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12250
echo "${ECHO_T}$ac_cv_type_short" >&6
12252
echo "$as_me:$LINENO: checking size of short" >&5
12253
echo $ECHO_N "checking size of short... $ECHO_C" >&6
12254
if test "${ac_cv_sizeof_short+set}" = set; then
12255
echo $ECHO_N "(cached) $ECHO_C" >&6
12257
if test "$ac_cv_type_short" = yes; then
12258
# The cast to unsigned long works around a bug in the HP C Compiler
12259
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12260
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12261
# This bug is HP SR number 8606223364.
12262
if test "$cross_compiling" = yes; then
12263
# Depending upon the size, compute the lo and hi bounds.
12264
cat >conftest.$ac_ext <<_ACEOF
12265
#line $LINENO "configure"
12268
cat confdefs.h >>conftest.$ac_ext
12269
cat >>conftest.$ac_ext <<_ACEOF
12270
/* end confdefs.h. */
12272
#include <sys/types.h>
12278
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12285
rm -f conftest.$ac_objext
12286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287
(eval $ac_compile) 2>&5
12289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290
(exit $ac_status); } &&
12291
{ ac_try='test -s conftest.$ac_objext'
12292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293
(eval $ac_try) 2>&5
12295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296
(exit $ac_status); }; }; then
12299
cat >conftest.$ac_ext <<_ACEOF
12300
#line $LINENO "configure"
12303
cat confdefs.h >>conftest.$ac_ext
12304
cat >>conftest.$ac_ext <<_ACEOF
12305
/* end confdefs.h. */
12307
#include <sys/types.h>
12313
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12320
rm -f conftest.$ac_objext
12321
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322
(eval $ac_compile) 2>&5
12324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325
(exit $ac_status); } &&
12326
{ ac_try='test -s conftest.$ac_objext'
12327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328
(eval $ac_try) 2>&5
12330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
(exit $ac_status); }; }; then
12332
ac_hi=$ac_mid; break
12334
echo "$as_me: failed program was:" >&5
12335
sed 's/^/| /' conftest.$ac_ext >&5
12337
ac_lo=`expr $ac_mid + 1`
12338
if test $ac_lo -le $ac_mid; then
12342
ac_mid=`expr 2 '*' $ac_mid + 1`
12344
rm -f conftest.$ac_objext conftest.$ac_ext
12347
echo "$as_me: failed program was:" >&5
12348
sed 's/^/| /' conftest.$ac_ext >&5
12350
cat >conftest.$ac_ext <<_ACEOF
12351
#line $LINENO "configure"
12354
cat confdefs.h >>conftest.$ac_ext
12355
cat >>conftest.$ac_ext <<_ACEOF
12356
/* end confdefs.h. */
12358
#include <sys/types.h>
12364
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12371
rm -f conftest.$ac_objext
12372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373
(eval $ac_compile) 2>&5
12375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376
(exit $ac_status); } &&
12377
{ ac_try='test -s conftest.$ac_objext'
12378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379
(eval $ac_try) 2>&5
12381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382
(exit $ac_status); }; }; then
12385
cat >conftest.$ac_ext <<_ACEOF
12386
#line $LINENO "configure"
12389
cat confdefs.h >>conftest.$ac_ext
12390
cat >>conftest.$ac_ext <<_ACEOF
12391
/* end confdefs.h. */
12393
#include <sys/types.h>
12399
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12406
rm -f conftest.$ac_objext
12407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408
(eval $ac_compile) 2>&5
12410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411
(exit $ac_status); } &&
12412
{ ac_try='test -s conftest.$ac_objext'
12413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414
(eval $ac_try) 2>&5
12416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417
(exit $ac_status); }; }; then
12418
ac_lo=$ac_mid; break
12420
echo "$as_me: failed program was:" >&5
12421
sed 's/^/| /' conftest.$ac_ext >&5
12423
ac_hi=`expr '(' $ac_mid ')' - 1`
12424
if test $ac_mid -le $ac_hi; then
12428
ac_mid=`expr 2 '*' $ac_mid`
12430
rm -f conftest.$ac_objext conftest.$ac_ext
12433
echo "$as_me: failed program was:" >&5
12434
sed 's/^/| /' conftest.$ac_ext >&5
12438
rm -f conftest.$ac_objext conftest.$ac_ext
12440
rm -f conftest.$ac_objext conftest.$ac_ext
12441
# Binary search between lo and hi bounds.
12442
while test "x$ac_lo" != "x$ac_hi"; do
12443
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12444
cat >conftest.$ac_ext <<_ACEOF
12445
#line $LINENO "configure"
12448
cat confdefs.h >>conftest.$ac_ext
12449
cat >>conftest.$ac_ext <<_ACEOF
12450
/* end confdefs.h. */
12452
#include <sys/types.h>
12458
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12465
rm -f conftest.$ac_objext
12466
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467
(eval $ac_compile) 2>&5
12469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470
(exit $ac_status); } &&
12471
{ ac_try='test -s conftest.$ac_objext'
12472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473
(eval $ac_try) 2>&5
12475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476
(exit $ac_status); }; }; then
12479
echo "$as_me: failed program was:" >&5
12480
sed 's/^/| /' conftest.$ac_ext >&5
12482
ac_lo=`expr '(' $ac_mid ')' + 1`
12484
rm -f conftest.$ac_objext conftest.$ac_ext
12487
?*) ac_cv_sizeof_short=$ac_lo;;
12488
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12489
See \`config.log' for more details." >&5
12490
echo "$as_me: error: cannot compute sizeof (short), 77
12491
See \`config.log' for more details." >&2;}
12492
{ (exit 1); exit 1; }; } ;;
12495
if test "$cross_compiling" = yes; then
12496
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12497
See \`config.log' for more details." >&5
12498
echo "$as_me: error: cannot run test program while cross compiling
12499
See \`config.log' for more details." >&2;}
12500
{ (exit 1); exit 1; }; }
12502
cat >conftest.$ac_ext <<_ACEOF
12503
#line $LINENO "configure"
12506
cat confdefs.h >>conftest.$ac_ext
12507
cat >>conftest.$ac_ext <<_ACEOF
12508
/* end confdefs.h. */
12510
#include <sys/types.h>
12513
long longval () { return (long) (sizeof (short)); }
12514
unsigned long ulongval () { return (long) (sizeof (short)); }
12516
#include <stdlib.h>
12521
FILE *f = fopen ("conftest.val", "w");
12524
if (((long) (sizeof (short))) < 0)
12526
long i = longval ();
12527
if (i != ((long) (sizeof (short))))
12529
fprintf (f, "%ld\n", i);
12533
unsigned long i = ulongval ();
12534
if (i != ((long) (sizeof (short))))
12536
fprintf (f, "%lu\n", i);
12538
exit (ferror (f) || fclose (f) != 0);
12544
rm -f conftest$ac_exeext
12545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12546
(eval $ac_link) 2>&5
12548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551
(eval $ac_try) 2>&5
12553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
(exit $ac_status); }; }; then
12555
ac_cv_sizeof_short=`cat conftest.val`
12557
echo "$as_me: program exited with status $ac_status" >&5
12558
echo "$as_me: failed program was:" >&5
12559
sed 's/^/| /' conftest.$ac_ext >&5
12561
( exit $ac_status )
12562
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12563
See \`config.log' for more details." >&5
12564
echo "$as_me: error: cannot compute sizeof (short), 77
12565
See \`config.log' for more details." >&2;}
12566
{ (exit 1); exit 1; }; }
12568
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12573
ac_cv_sizeof_short=0
12576
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12577
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12578
cat >>confdefs.h <<_ACEOF
12579
#define SIZEOF_SHORT $ac_cv_sizeof_short
12583
echo "$as_me:$LINENO: checking for unsigned short" >&5
12584
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
12585
if test "${ac_cv_type_unsigned_short+set}" = set; then
12586
echo $ECHO_N "(cached) $ECHO_C" >&6
12588
cat >conftest.$ac_ext <<_ACEOF
12589
#line $LINENO "configure"
12592
cat confdefs.h >>conftest.$ac_ext
12593
cat >>conftest.$ac_ext <<_ACEOF
12594
/* end confdefs.h. */
12596
#include <sys/types.h>
12602
if ((unsigned short *) 0)
12604
if (sizeof (unsigned short))
12610
rm -f conftest.$ac_objext
12611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612
(eval $ac_compile) 2>&5
12614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615
(exit $ac_status); } &&
12616
{ ac_try='test -s conftest.$ac_objext'
12617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618
(eval $ac_try) 2>&5
12620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
(exit $ac_status); }; }; then
12622
ac_cv_type_unsigned_short=yes
12624
echo "$as_me: failed program was:" >&5
12625
sed 's/^/| /' conftest.$ac_ext >&5
12627
ac_cv_type_unsigned_short=no
12629
rm -f conftest.$ac_objext conftest.$ac_ext
12631
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
12632
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
12634
echo "$as_me:$LINENO: checking size of unsigned short" >&5
12635
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
12636
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12637
echo $ECHO_N "(cached) $ECHO_C" >&6
12639
if test "$ac_cv_type_unsigned_short" = yes; then
12640
# The cast to unsigned long works around a bug in the HP C Compiler
12641
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12642
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12643
# This bug is HP SR number 8606223364.
12644
if test "$cross_compiling" = yes; then
12645
# Depending upon the size, compute the lo and hi bounds.
12646
cat >conftest.$ac_ext <<_ACEOF
12647
#line $LINENO "configure"
12650
cat confdefs.h >>conftest.$ac_ext
12651
cat >>conftest.$ac_ext <<_ACEOF
12652
/* end confdefs.h. */
12654
#include <sys/types.h>
12660
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
12667
rm -f conftest.$ac_objext
12668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669
(eval $ac_compile) 2>&5
12671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672
(exit $ac_status); } &&
12673
{ ac_try='test -s conftest.$ac_objext'
12674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675
(eval $ac_try) 2>&5
12677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678
(exit $ac_status); }; }; then
12681
cat >conftest.$ac_ext <<_ACEOF
12682
#line $LINENO "configure"
12685
cat confdefs.h >>conftest.$ac_ext
12686
cat >>conftest.$ac_ext <<_ACEOF
12687
/* end confdefs.h. */
12689
#include <sys/types.h>
12695
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
12702
rm -f conftest.$ac_objext
12703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704
(eval $ac_compile) 2>&5
12706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707
(exit $ac_status); } &&
12708
{ ac_try='test -s conftest.$ac_objext'
12709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710
(eval $ac_try) 2>&5
12712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713
(exit $ac_status); }; }; then
12714
ac_hi=$ac_mid; break
12716
echo "$as_me: failed program was:" >&5
12717
sed 's/^/| /' conftest.$ac_ext >&5
12719
ac_lo=`expr $ac_mid + 1`
12720
if test $ac_lo -le $ac_mid; then
12724
ac_mid=`expr 2 '*' $ac_mid + 1`
12726
rm -f conftest.$ac_objext conftest.$ac_ext
12729
echo "$as_me: failed program was:" >&5
12730
sed 's/^/| /' conftest.$ac_ext >&5
12732
cat >conftest.$ac_ext <<_ACEOF
12733
#line $LINENO "configure"
12736
cat confdefs.h >>conftest.$ac_ext
12737
cat >>conftest.$ac_ext <<_ACEOF
12738
/* end confdefs.h. */
12740
#include <sys/types.h>
12746
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
12753
rm -f conftest.$ac_objext
12754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755
(eval $ac_compile) 2>&5
12757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758
(exit $ac_status); } &&
12759
{ ac_try='test -s conftest.$ac_objext'
12760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761
(eval $ac_try) 2>&5
12763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764
(exit $ac_status); }; }; then
12767
cat >conftest.$ac_ext <<_ACEOF
12768
#line $LINENO "configure"
12771
cat confdefs.h >>conftest.$ac_ext
12772
cat >>conftest.$ac_ext <<_ACEOF
12773
/* end confdefs.h. */
12775
#include <sys/types.h>
12781
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
12788
rm -f conftest.$ac_objext
12789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790
(eval $ac_compile) 2>&5
12792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793
(exit $ac_status); } &&
12794
{ ac_try='test -s conftest.$ac_objext'
12795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796
(eval $ac_try) 2>&5
12798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799
(exit $ac_status); }; }; then
12800
ac_lo=$ac_mid; break
12802
echo "$as_me: failed program was:" >&5
12803
sed 's/^/| /' conftest.$ac_ext >&5
12805
ac_hi=`expr '(' $ac_mid ')' - 1`
12806
if test $ac_mid -le $ac_hi; then
12810
ac_mid=`expr 2 '*' $ac_mid`
12812
rm -f conftest.$ac_objext conftest.$ac_ext
12815
echo "$as_me: failed program was:" >&5
12816
sed 's/^/| /' conftest.$ac_ext >&5
12820
rm -f conftest.$ac_objext conftest.$ac_ext
12822
rm -f conftest.$ac_objext conftest.$ac_ext
12823
# Binary search between lo and hi bounds.
12824
while test "x$ac_lo" != "x$ac_hi"; do
12825
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826
cat >conftest.$ac_ext <<_ACEOF
12827
#line $LINENO "configure"
12830
cat confdefs.h >>conftest.$ac_ext
12831
cat >>conftest.$ac_ext <<_ACEOF
12832
/* end confdefs.h. */
12834
#include <sys/types.h>
12840
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
12847
rm -f conftest.$ac_objext
12848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849
(eval $ac_compile) 2>&5
12851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852
(exit $ac_status); } &&
12853
{ ac_try='test -s conftest.$ac_objext'
12854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855
(eval $ac_try) 2>&5
12857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858
(exit $ac_status); }; }; then
12861
echo "$as_me: failed program was:" >&5
12862
sed 's/^/| /' conftest.$ac_ext >&5
12864
ac_lo=`expr '(' $ac_mid ')' + 1`
12866
rm -f conftest.$ac_objext conftest.$ac_ext
12869
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
12870
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
12871
See \`config.log' for more details." >&5
12872
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
12873
See \`config.log' for more details." >&2;}
12874
{ (exit 1); exit 1; }; } ;;
12877
if test "$cross_compiling" = yes; then
12878
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12879
See \`config.log' for more details." >&5
12880
echo "$as_me: error: cannot run test program while cross compiling
12881
See \`config.log' for more details." >&2;}
12882
{ (exit 1); exit 1; }; }
12884
cat >conftest.$ac_ext <<_ACEOF
12885
#line $LINENO "configure"
12888
cat confdefs.h >>conftest.$ac_ext
12889
cat >>conftest.$ac_ext <<_ACEOF
12890
/* end confdefs.h. */
12892
#include <sys/types.h>
12895
long longval () { return (long) (sizeof (unsigned short)); }
12896
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
12898
#include <stdlib.h>
12903
FILE *f = fopen ("conftest.val", "w");
12906
if (((long) (sizeof (unsigned short))) < 0)
12908
long i = longval ();
12909
if (i != ((long) (sizeof (unsigned short))))
12911
fprintf (f, "%ld\n", i);
12915
unsigned long i = ulongval ();
12916
if (i != ((long) (sizeof (unsigned short))))
12918
fprintf (f, "%lu\n", i);
12920
exit (ferror (f) || fclose (f) != 0);
12926
rm -f conftest$ac_exeext
12927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928
(eval $ac_link) 2>&5
12930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933
(eval $ac_try) 2>&5
12935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936
(exit $ac_status); }; }; then
12937
ac_cv_sizeof_unsigned_short=`cat conftest.val`
12939
echo "$as_me: program exited with status $ac_status" >&5
12940
echo "$as_me: failed program was:" >&5
12941
sed 's/^/| /' conftest.$ac_ext >&5
12943
( exit $ac_status )
12944
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
12945
See \`config.log' for more details." >&5
12946
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
12947
See \`config.log' for more details." >&2;}
12948
{ (exit 1); exit 1; }; }
12950
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955
ac_cv_sizeof_unsigned_short=0
12958
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
12959
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
12960
cat >>confdefs.h <<_ACEOF
12961
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12965
echo "$as_me:$LINENO: checking for int" >&5
12966
echo $ECHO_N "checking for int... $ECHO_C" >&6
12967
if test "${ac_cv_type_int+set}" = set; then
12968
echo $ECHO_N "(cached) $ECHO_C" >&6
12970
cat >conftest.$ac_ext <<_ACEOF
12971
#line $LINENO "configure"
12974
cat confdefs.h >>conftest.$ac_ext
12975
cat >>conftest.$ac_ext <<_ACEOF
12976
/* end confdefs.h. */
12978
#include <sys/types.h>
12992
rm -f conftest.$ac_objext
12993
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994
(eval $ac_compile) 2>&5
12996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997
(exit $ac_status); } &&
12998
{ ac_try='test -s conftest.$ac_objext'
12999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000
(eval $ac_try) 2>&5
13002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003
(exit $ac_status); }; }; then
13006
echo "$as_me: failed program was:" >&5
13007
sed 's/^/| /' conftest.$ac_ext >&5
13011
rm -f conftest.$ac_objext conftest.$ac_ext
13013
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13014
echo "${ECHO_T}$ac_cv_type_int" >&6
13016
echo "$as_me:$LINENO: checking size of int" >&5
13017
echo $ECHO_N "checking size of int... $ECHO_C" >&6
13018
if test "${ac_cv_sizeof_int+set}" = set; then
13019
echo $ECHO_N "(cached) $ECHO_C" >&6
13021
if test "$ac_cv_type_int" = yes; then
13022
# The cast to unsigned long works around a bug in the HP C Compiler
13023
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13024
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13025
# This bug is HP SR number 8606223364.
13026
if test "$cross_compiling" = yes; then
13027
# Depending upon the size, compute the lo and hi bounds.
13028
cat >conftest.$ac_ext <<_ACEOF
13029
#line $LINENO "configure"
13032
cat confdefs.h >>conftest.$ac_ext
13033
cat >>conftest.$ac_ext <<_ACEOF
13034
/* end confdefs.h. */
13036
#include <sys/types.h>
13042
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13049
rm -f conftest.$ac_objext
13050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051
(eval $ac_compile) 2>&5
13053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054
(exit $ac_status); } &&
13055
{ ac_try='test -s conftest.$ac_objext'
13056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057
(eval $ac_try) 2>&5
13059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060
(exit $ac_status); }; }; then
13063
cat >conftest.$ac_ext <<_ACEOF
13064
#line $LINENO "configure"
13067
cat confdefs.h >>conftest.$ac_ext
13068
cat >>conftest.$ac_ext <<_ACEOF
13069
/* end confdefs.h. */
13071
#include <sys/types.h>
13077
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13084
rm -f conftest.$ac_objext
13085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086
(eval $ac_compile) 2>&5
13088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089
(exit $ac_status); } &&
13090
{ ac_try='test -s conftest.$ac_objext'
13091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092
(eval $ac_try) 2>&5
13094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095
(exit $ac_status); }; }; then
13096
ac_hi=$ac_mid; break
13098
echo "$as_me: failed program was:" >&5
13099
sed 's/^/| /' conftest.$ac_ext >&5
13101
ac_lo=`expr $ac_mid + 1`
13102
if test $ac_lo -le $ac_mid; then
13106
ac_mid=`expr 2 '*' $ac_mid + 1`
13108
rm -f conftest.$ac_objext conftest.$ac_ext
13111
echo "$as_me: failed program was:" >&5
13112
sed 's/^/| /' conftest.$ac_ext >&5
13114
cat >conftest.$ac_ext <<_ACEOF
13115
#line $LINENO "configure"
13118
cat confdefs.h >>conftest.$ac_ext
13119
cat >>conftest.$ac_ext <<_ACEOF
13120
/* end confdefs.h. */
13122
#include <sys/types.h>
13128
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13135
rm -f conftest.$ac_objext
13136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137
(eval $ac_compile) 2>&5
13139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140
(exit $ac_status); } &&
13141
{ ac_try='test -s conftest.$ac_objext'
13142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143
(eval $ac_try) 2>&5
13145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146
(exit $ac_status); }; }; then
13149
cat >conftest.$ac_ext <<_ACEOF
13150
#line $LINENO "configure"
13153
cat confdefs.h >>conftest.$ac_ext
13154
cat >>conftest.$ac_ext <<_ACEOF
13155
/* end confdefs.h. */
13157
#include <sys/types.h>
13163
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13170
rm -f conftest.$ac_objext
13171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172
(eval $ac_compile) 2>&5
13174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175
(exit $ac_status); } &&
13176
{ ac_try='test -s conftest.$ac_objext'
13177
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178
(eval $ac_try) 2>&5
13180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181
(exit $ac_status); }; }; then
13182
ac_lo=$ac_mid; break
13184
echo "$as_me: failed program was:" >&5
13185
sed 's/^/| /' conftest.$ac_ext >&5
13187
ac_hi=`expr '(' $ac_mid ')' - 1`
13188
if test $ac_mid -le $ac_hi; then
13192
ac_mid=`expr 2 '*' $ac_mid`
13194
rm -f conftest.$ac_objext conftest.$ac_ext
13197
echo "$as_me: failed program was:" >&5
13198
sed 's/^/| /' conftest.$ac_ext >&5
13202
rm -f conftest.$ac_objext conftest.$ac_ext
13204
rm -f conftest.$ac_objext conftest.$ac_ext
13205
# Binary search between lo and hi bounds.
13206
while test "x$ac_lo" != "x$ac_hi"; do
13207
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13208
cat >conftest.$ac_ext <<_ACEOF
13209
#line $LINENO "configure"
13212
cat confdefs.h >>conftest.$ac_ext
13213
cat >>conftest.$ac_ext <<_ACEOF
13214
/* end confdefs.h. */
13216
#include <sys/types.h>
13222
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13229
rm -f conftest.$ac_objext
13230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231
(eval $ac_compile) 2>&5
13233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
(exit $ac_status); } &&
13235
{ ac_try='test -s conftest.$ac_objext'
13236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237
(eval $ac_try) 2>&5
13239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
(exit $ac_status); }; }; then
13243
echo "$as_me: failed program was:" >&5
13244
sed 's/^/| /' conftest.$ac_ext >&5
13246
ac_lo=`expr '(' $ac_mid ')' + 1`
13248
rm -f conftest.$ac_objext conftest.$ac_ext
13251
?*) ac_cv_sizeof_int=$ac_lo;;
13252
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13253
See \`config.log' for more details." >&5
13254
echo "$as_me: error: cannot compute sizeof (int), 77
13255
See \`config.log' for more details." >&2;}
13256
{ (exit 1); exit 1; }; } ;;
13259
if test "$cross_compiling" = yes; then
13260
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13261
See \`config.log' for more details." >&5
13262
echo "$as_me: error: cannot run test program while cross compiling
13263
See \`config.log' for more details." >&2;}
13264
{ (exit 1); exit 1; }; }
13266
cat >conftest.$ac_ext <<_ACEOF
13267
#line $LINENO "configure"
13270
cat confdefs.h >>conftest.$ac_ext
13271
cat >>conftest.$ac_ext <<_ACEOF
13272
/* end confdefs.h. */
13274
#include <sys/types.h>
13277
long longval () { return (long) (sizeof (int)); }
13278
unsigned long ulongval () { return (long) (sizeof (int)); }
13280
#include <stdlib.h>
13285
FILE *f = fopen ("conftest.val", "w");
13288
if (((long) (sizeof (int))) < 0)
13290
long i = longval ();
13291
if (i != ((long) (sizeof (int))))
13293
fprintf (f, "%ld\n", i);
13297
unsigned long i = ulongval ();
13298
if (i != ((long) (sizeof (int))))
13300
fprintf (f, "%lu\n", i);
13302
exit (ferror (f) || fclose (f) != 0);
13308
rm -f conftest$ac_exeext
13309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310
(eval $ac_link) 2>&5
13312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315
(eval $ac_try) 2>&5
13317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318
(exit $ac_status); }; }; then
13319
ac_cv_sizeof_int=`cat conftest.val`
13321
echo "$as_me: program exited with status $ac_status" >&5
13322
echo "$as_me: failed program was:" >&5
13323
sed 's/^/| /' conftest.$ac_ext >&5
13325
( exit $ac_status )
13326
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13327
See \`config.log' for more details." >&5
13328
echo "$as_me: error: cannot compute sizeof (int), 77
13329
See \`config.log' for more details." >&2;}
13330
{ (exit 1); exit 1; }; }
13332
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13340
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13341
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13342
cat >>confdefs.h <<_ACEOF
13343
#define SIZEOF_INT $ac_cv_sizeof_int
13347
echo "$as_me:$LINENO: checking for unsigned int" >&5
13348
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
13349
if test "${ac_cv_type_unsigned_int+set}" = set; then
13350
echo $ECHO_N "(cached) $ECHO_C" >&6
13352
cat >conftest.$ac_ext <<_ACEOF
13353
#line $LINENO "configure"
13356
cat confdefs.h >>conftest.$ac_ext
13357
cat >>conftest.$ac_ext <<_ACEOF
13358
/* end confdefs.h. */
13360
#include <sys/types.h>
13366
if ((unsigned int *) 0)
13368
if (sizeof (unsigned int))
13374
rm -f conftest.$ac_objext
13375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376
(eval $ac_compile) 2>&5
13378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379
(exit $ac_status); } &&
13380
{ ac_try='test -s conftest.$ac_objext'
13381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382
(eval $ac_try) 2>&5
13384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385
(exit $ac_status); }; }; then
13386
ac_cv_type_unsigned_int=yes
13388
echo "$as_me: failed program was:" >&5
13389
sed 's/^/| /' conftest.$ac_ext >&5
13391
ac_cv_type_unsigned_int=no
13393
rm -f conftest.$ac_objext conftest.$ac_ext
13395
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
13396
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
13398
echo "$as_me:$LINENO: checking size of unsigned int" >&5
13399
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
13400
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
13401
echo $ECHO_N "(cached) $ECHO_C" >&6
13403
if test "$ac_cv_type_unsigned_int" = yes; then
13404
# The cast to unsigned long works around a bug in the HP C Compiler
13405
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13406
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13407
# This bug is HP SR number 8606223364.
13408
if test "$cross_compiling" = yes; then
13409
# Depending upon the size, compute the lo and hi bounds.
13410
cat >conftest.$ac_ext <<_ACEOF
13411
#line $LINENO "configure"
13414
cat confdefs.h >>conftest.$ac_ext
13415
cat >>conftest.$ac_ext <<_ACEOF
13416
/* end confdefs.h. */
13418
#include <sys/types.h>
13424
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
13431
rm -f conftest.$ac_objext
13432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433
(eval $ac_compile) 2>&5
13435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436
(exit $ac_status); } &&
13437
{ ac_try='test -s conftest.$ac_objext'
13438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439
(eval $ac_try) 2>&5
13441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442
(exit $ac_status); }; }; then
13445
cat >conftest.$ac_ext <<_ACEOF
13446
#line $LINENO "configure"
13449
cat confdefs.h >>conftest.$ac_ext
13450
cat >>conftest.$ac_ext <<_ACEOF
13451
/* end confdefs.h. */
13453
#include <sys/types.h>
13459
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13466
rm -f conftest.$ac_objext
13467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468
(eval $ac_compile) 2>&5
13470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
(exit $ac_status); } &&
13472
{ ac_try='test -s conftest.$ac_objext'
13473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474
(eval $ac_try) 2>&5
13476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477
(exit $ac_status); }; }; then
13478
ac_hi=$ac_mid; break
13480
echo "$as_me: failed program was:" >&5
13481
sed 's/^/| /' conftest.$ac_ext >&5
13483
ac_lo=`expr $ac_mid + 1`
13484
if test $ac_lo -le $ac_mid; then
13488
ac_mid=`expr 2 '*' $ac_mid + 1`
13490
rm -f conftest.$ac_objext conftest.$ac_ext
13493
echo "$as_me: failed program was:" >&5
13494
sed 's/^/| /' conftest.$ac_ext >&5
13496
cat >conftest.$ac_ext <<_ACEOF
13497
#line $LINENO "configure"
13500
cat confdefs.h >>conftest.$ac_ext
13501
cat >>conftest.$ac_ext <<_ACEOF
13502
/* end confdefs.h. */
13504
#include <sys/types.h>
13510
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
13517
rm -f conftest.$ac_objext
13518
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519
(eval $ac_compile) 2>&5
13521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522
(exit $ac_status); } &&
13523
{ ac_try='test -s conftest.$ac_objext'
13524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525
(eval $ac_try) 2>&5
13527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528
(exit $ac_status); }; }; then
13531
cat >conftest.$ac_ext <<_ACEOF
13532
#line $LINENO "configure"
13535
cat confdefs.h >>conftest.$ac_ext
13536
cat >>conftest.$ac_ext <<_ACEOF
13537
/* end confdefs.h. */
13539
#include <sys/types.h>
13545
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
13552
rm -f conftest.$ac_objext
13553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
(eval $ac_compile) 2>&5
13556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
(exit $ac_status); } &&
13558
{ ac_try='test -s conftest.$ac_objext'
13559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560
(eval $ac_try) 2>&5
13562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563
(exit $ac_status); }; }; then
13564
ac_lo=$ac_mid; break
13566
echo "$as_me: failed program was:" >&5
13567
sed 's/^/| /' conftest.$ac_ext >&5
13569
ac_hi=`expr '(' $ac_mid ')' - 1`
13570
if test $ac_mid -le $ac_hi; then
13574
ac_mid=`expr 2 '*' $ac_mid`
13576
rm -f conftest.$ac_objext conftest.$ac_ext
13579
echo "$as_me: failed program was:" >&5
13580
sed 's/^/| /' conftest.$ac_ext >&5
13584
rm -f conftest.$ac_objext conftest.$ac_ext
13586
rm -f conftest.$ac_objext conftest.$ac_ext
13587
# Binary search between lo and hi bounds.
13588
while test "x$ac_lo" != "x$ac_hi"; do
13589
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13590
cat >conftest.$ac_ext <<_ACEOF
13591
#line $LINENO "configure"
13594
cat confdefs.h >>conftest.$ac_ext
13595
cat >>conftest.$ac_ext <<_ACEOF
13596
/* end confdefs.h. */
13598
#include <sys/types.h>
13604
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13611
rm -f conftest.$ac_objext
13612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613
(eval $ac_compile) 2>&5
13615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616
(exit $ac_status); } &&
13617
{ ac_try='test -s conftest.$ac_objext'
13618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619
(eval $ac_try) 2>&5
13621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622
(exit $ac_status); }; }; then
13625
echo "$as_me: failed program was:" >&5
13626
sed 's/^/| /' conftest.$ac_ext >&5
13628
ac_lo=`expr '(' $ac_mid ')' + 1`
13630
rm -f conftest.$ac_objext conftest.$ac_ext
13633
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
13634
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13635
See \`config.log' for more details." >&5
13636
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13637
See \`config.log' for more details." >&2;}
13638
{ (exit 1); exit 1; }; } ;;
13641
if test "$cross_compiling" = yes; then
13642
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13643
See \`config.log' for more details." >&5
13644
echo "$as_me: error: cannot run test program while cross compiling
13645
See \`config.log' for more details." >&2;}
13646
{ (exit 1); exit 1; }; }
13648
cat >conftest.$ac_ext <<_ACEOF
13649
#line $LINENO "configure"
13652
cat confdefs.h >>conftest.$ac_ext
13653
cat >>conftest.$ac_ext <<_ACEOF
13654
/* end confdefs.h. */
13656
#include <sys/types.h>
13659
long longval () { return (long) (sizeof (unsigned int)); }
13660
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
13662
#include <stdlib.h>
13667
FILE *f = fopen ("conftest.val", "w");
13670
if (((long) (sizeof (unsigned int))) < 0)
13672
long i = longval ();
13673
if (i != ((long) (sizeof (unsigned int))))
13675
fprintf (f, "%ld\n", i);
13679
unsigned long i = ulongval ();
13680
if (i != ((long) (sizeof (unsigned int))))
13682
fprintf (f, "%lu\n", i);
13684
exit (ferror (f) || fclose (f) != 0);
13690
rm -f conftest$ac_exeext
13691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692
(eval $ac_link) 2>&5
13694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697
(eval $ac_try) 2>&5
13699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700
(exit $ac_status); }; }; then
13701
ac_cv_sizeof_unsigned_int=`cat conftest.val`
13703
echo "$as_me: program exited with status $ac_status" >&5
13704
echo "$as_me: failed program was:" >&5
13705
sed 's/^/| /' conftest.$ac_ext >&5
13707
( exit $ac_status )
13708
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13709
See \`config.log' for more details." >&5
13710
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13711
See \`config.log' for more details." >&2;}
13712
{ (exit 1); exit 1; }; }
13714
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13719
ac_cv_sizeof_unsigned_int=0
13722
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
13723
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
13724
cat >>confdefs.h <<_ACEOF
13725
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13729
echo "$as_me:$LINENO: checking for long" >&5
13730
echo $ECHO_N "checking for long... $ECHO_C" >&6
13731
if test "${ac_cv_type_long+set}" = set; then
13732
echo $ECHO_N "(cached) $ECHO_C" >&6
13734
cat >conftest.$ac_ext <<_ACEOF
13735
#line $LINENO "configure"
13738
cat confdefs.h >>conftest.$ac_ext
13739
cat >>conftest.$ac_ext <<_ACEOF
13740
/* end confdefs.h. */
13742
#include <sys/types.h>
13756
rm -f conftest.$ac_objext
13757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758
(eval $ac_compile) 2>&5
13760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761
(exit $ac_status); } &&
13762
{ ac_try='test -s conftest.$ac_objext'
13763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764
(eval $ac_try) 2>&5
13766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767
(exit $ac_status); }; }; then
13768
ac_cv_type_long=yes
13770
echo "$as_me: failed program was:" >&5
13771
sed 's/^/| /' conftest.$ac_ext >&5
13775
rm -f conftest.$ac_objext conftest.$ac_ext
13777
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13778
echo "${ECHO_T}$ac_cv_type_long" >&6
13780
echo "$as_me:$LINENO: checking size of long" >&5
13781
echo $ECHO_N "checking size of long... $ECHO_C" >&6
13782
if test "${ac_cv_sizeof_long+set}" = set; then
13783
echo $ECHO_N "(cached) $ECHO_C" >&6
13785
if test "$ac_cv_type_long" = yes; then
13786
# The cast to unsigned long works around a bug in the HP C Compiler
13787
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13788
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13789
# This bug is HP SR number 8606223364.
13790
if test "$cross_compiling" = yes; then
13791
# Depending upon the size, compute the lo and hi bounds.
13792
cat >conftest.$ac_ext <<_ACEOF
13793
#line $LINENO "configure"
13796
cat confdefs.h >>conftest.$ac_ext
13797
cat >>conftest.$ac_ext <<_ACEOF
13798
/* end confdefs.h. */
13800
#include <sys/types.h>
13806
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13813
rm -f conftest.$ac_objext
13814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815
(eval $ac_compile) 2>&5
13817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818
(exit $ac_status); } &&
13819
{ ac_try='test -s conftest.$ac_objext'
13820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821
(eval $ac_try) 2>&5
13823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824
(exit $ac_status); }; }; then
13827
cat >conftest.$ac_ext <<_ACEOF
13828
#line $LINENO "configure"
13831
cat confdefs.h >>conftest.$ac_ext
13832
cat >>conftest.$ac_ext <<_ACEOF
13833
/* end confdefs.h. */
13835
#include <sys/types.h>
13841
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13848
rm -f conftest.$ac_objext
13849
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850
(eval $ac_compile) 2>&5
13852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853
(exit $ac_status); } &&
13854
{ ac_try='test -s conftest.$ac_objext'
13855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856
(eval $ac_try) 2>&5
13858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859
(exit $ac_status); }; }; then
13860
ac_hi=$ac_mid; break
13862
echo "$as_me: failed program was:" >&5
13863
sed 's/^/| /' conftest.$ac_ext >&5
13865
ac_lo=`expr $ac_mid + 1`
13866
if test $ac_lo -le $ac_mid; then
13870
ac_mid=`expr 2 '*' $ac_mid + 1`
13872
rm -f conftest.$ac_objext conftest.$ac_ext
13875
echo "$as_me: failed program was:" >&5
13876
sed 's/^/| /' conftest.$ac_ext >&5
13878
cat >conftest.$ac_ext <<_ACEOF
13879
#line $LINENO "configure"
13882
cat confdefs.h >>conftest.$ac_ext
13883
cat >>conftest.$ac_ext <<_ACEOF
13884
/* end confdefs.h. */
13886
#include <sys/types.h>
13892
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13899
rm -f conftest.$ac_objext
13900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901
(eval $ac_compile) 2>&5
13903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904
(exit $ac_status); } &&
13905
{ ac_try='test -s conftest.$ac_objext'
13906
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907
(eval $ac_try) 2>&5
13909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910
(exit $ac_status); }; }; then
13913
cat >conftest.$ac_ext <<_ACEOF
13914
#line $LINENO "configure"
13917
cat confdefs.h >>conftest.$ac_ext
13918
cat >>conftest.$ac_ext <<_ACEOF
13919
/* end confdefs.h. */
13921
#include <sys/types.h>
13927
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13934
rm -f conftest.$ac_objext
13935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936
(eval $ac_compile) 2>&5
13938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939
(exit $ac_status); } &&
13940
{ ac_try='test -s conftest.$ac_objext'
13941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942
(eval $ac_try) 2>&5
13944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945
(exit $ac_status); }; }; then
13946
ac_lo=$ac_mid; break
13948
echo "$as_me: failed program was:" >&5
13949
sed 's/^/| /' conftest.$ac_ext >&5
13951
ac_hi=`expr '(' $ac_mid ')' - 1`
13952
if test $ac_mid -le $ac_hi; then
13956
ac_mid=`expr 2 '*' $ac_mid`
13958
rm -f conftest.$ac_objext conftest.$ac_ext
13961
echo "$as_me: failed program was:" >&5
13962
sed 's/^/| /' conftest.$ac_ext >&5
13966
rm -f conftest.$ac_objext conftest.$ac_ext
13968
rm -f conftest.$ac_objext conftest.$ac_ext
13969
# Binary search between lo and hi bounds.
13970
while test "x$ac_lo" != "x$ac_hi"; do
13971
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13972
cat >conftest.$ac_ext <<_ACEOF
13973
#line $LINENO "configure"
13976
cat confdefs.h >>conftest.$ac_ext
13977
cat >>conftest.$ac_ext <<_ACEOF
13978
/* end confdefs.h. */
13980
#include <sys/types.h>
13986
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13993
rm -f conftest.$ac_objext
13994
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995
(eval $ac_compile) 2>&5
13997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998
(exit $ac_status); } &&
13999
{ ac_try='test -s conftest.$ac_objext'
14000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001
(eval $ac_try) 2>&5
14003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004
(exit $ac_status); }; }; then
14007
echo "$as_me: failed program was:" >&5
14008
sed 's/^/| /' conftest.$ac_ext >&5
14010
ac_lo=`expr '(' $ac_mid ')' + 1`
14012
rm -f conftest.$ac_objext conftest.$ac_ext
14015
?*) ac_cv_sizeof_long=$ac_lo;;
14016
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14017
See \`config.log' for more details." >&5
14018
echo "$as_me: error: cannot compute sizeof (long), 77
14019
See \`config.log' for more details." >&2;}
14020
{ (exit 1); exit 1; }; } ;;
14023
if test "$cross_compiling" = yes; then
14024
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14025
See \`config.log' for more details." >&5
14026
echo "$as_me: error: cannot run test program while cross compiling
14027
See \`config.log' for more details." >&2;}
14028
{ (exit 1); exit 1; }; }
14030
cat >conftest.$ac_ext <<_ACEOF
14031
#line $LINENO "configure"
14034
cat confdefs.h >>conftest.$ac_ext
14035
cat >>conftest.$ac_ext <<_ACEOF
14036
/* end confdefs.h. */
14038
#include <sys/types.h>
14041
long longval () { return (long) (sizeof (long)); }
14042
unsigned long ulongval () { return (long) (sizeof (long)); }
14044
#include <stdlib.h>
14049
FILE *f = fopen ("conftest.val", "w");
14052
if (((long) (sizeof (long))) < 0)
14054
long i = longval ();
14055
if (i != ((long) (sizeof (long))))
14057
fprintf (f, "%ld\n", i);
14061
unsigned long i = ulongval ();
14062
if (i != ((long) (sizeof (long))))
14064
fprintf (f, "%lu\n", i);
14066
exit (ferror (f) || fclose (f) != 0);
14072
rm -f conftest$ac_exeext
14073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074
(eval $ac_link) 2>&5
14076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079
(eval $ac_try) 2>&5
14081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082
(exit $ac_status); }; }; then
14083
ac_cv_sizeof_long=`cat conftest.val`
14085
echo "$as_me: program exited with status $ac_status" >&5
14086
echo "$as_me: failed program was:" >&5
14087
sed 's/^/| /' conftest.$ac_ext >&5
14089
( exit $ac_status )
14090
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14091
See \`config.log' for more details." >&5
14092
echo "$as_me: error: cannot compute sizeof (long), 77
14093
See \`config.log' for more details." >&2;}
14094
{ (exit 1); exit 1; }; }
14096
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14101
ac_cv_sizeof_long=0
14104
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14105
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14106
cat >>confdefs.h <<_ACEOF
14107
#define SIZEOF_LONG $ac_cv_sizeof_long
14111
echo "$as_me:$LINENO: checking for unsigned long" >&5
14112
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14113
if test "${ac_cv_type_unsigned_long+set}" = set; then
14114
echo $ECHO_N "(cached) $ECHO_C" >&6
14116
cat >conftest.$ac_ext <<_ACEOF
14117
#line $LINENO "configure"
14120
cat confdefs.h >>conftest.$ac_ext
14121
cat >>conftest.$ac_ext <<_ACEOF
14122
/* end confdefs.h. */
14124
#include <sys/types.h>
14130
if ((unsigned long *) 0)
14132
if (sizeof (unsigned long))
14138
rm -f conftest.$ac_objext
14139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140
(eval $ac_compile) 2>&5
14142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143
(exit $ac_status); } &&
14144
{ ac_try='test -s conftest.$ac_objext'
14145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146
(eval $ac_try) 2>&5
14148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149
(exit $ac_status); }; }; then
14150
ac_cv_type_unsigned_long=yes
14152
echo "$as_me: failed program was:" >&5
14153
sed 's/^/| /' conftest.$ac_ext >&5
14155
ac_cv_type_unsigned_long=no
14157
rm -f conftest.$ac_objext conftest.$ac_ext
14159
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14160
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14162
echo "$as_me:$LINENO: checking size of unsigned long" >&5
14163
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14164
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14165
echo $ECHO_N "(cached) $ECHO_C" >&6
14167
if test "$ac_cv_type_unsigned_long" = yes; then
14168
# The cast to unsigned long works around a bug in the HP C Compiler
14169
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14170
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14171
# This bug is HP SR number 8606223364.
14172
if test "$cross_compiling" = yes; then
14173
# Depending upon the size, compute the lo and hi bounds.
14174
cat >conftest.$ac_ext <<_ACEOF
14175
#line $LINENO "configure"
14178
cat confdefs.h >>conftest.$ac_ext
14179
cat >>conftest.$ac_ext <<_ACEOF
14180
/* end confdefs.h. */
14182
#include <sys/types.h>
14188
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14195
rm -f conftest.$ac_objext
14196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197
(eval $ac_compile) 2>&5
14199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
(exit $ac_status); } &&
14201
{ ac_try='test -s conftest.$ac_objext'
14202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203
(eval $ac_try) 2>&5
14205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206
(exit $ac_status); }; }; then
14209
cat >conftest.$ac_ext <<_ACEOF
14210
#line $LINENO "configure"
14213
cat confdefs.h >>conftest.$ac_ext
14214
cat >>conftest.$ac_ext <<_ACEOF
14215
/* end confdefs.h. */
14217
#include <sys/types.h>
14223
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14230
rm -f conftest.$ac_objext
14231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232
(eval $ac_compile) 2>&5
14234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235
(exit $ac_status); } &&
14236
{ ac_try='test -s conftest.$ac_objext'
14237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238
(eval $ac_try) 2>&5
14240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241
(exit $ac_status); }; }; then
14242
ac_hi=$ac_mid; break
14244
echo "$as_me: failed program was:" >&5
14245
sed 's/^/| /' conftest.$ac_ext >&5
14247
ac_lo=`expr $ac_mid + 1`
14248
if test $ac_lo -le $ac_mid; then
14252
ac_mid=`expr 2 '*' $ac_mid + 1`
14254
rm -f conftest.$ac_objext conftest.$ac_ext
14257
echo "$as_me: failed program was:" >&5
14258
sed 's/^/| /' conftest.$ac_ext >&5
14260
cat >conftest.$ac_ext <<_ACEOF
14261
#line $LINENO "configure"
14264
cat confdefs.h >>conftest.$ac_ext
14265
cat >>conftest.$ac_ext <<_ACEOF
14266
/* end confdefs.h. */
14268
#include <sys/types.h>
14274
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14281
rm -f conftest.$ac_objext
14282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283
(eval $ac_compile) 2>&5
14285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286
(exit $ac_status); } &&
14287
{ ac_try='test -s conftest.$ac_objext'
14288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289
(eval $ac_try) 2>&5
14291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292
(exit $ac_status); }; }; then
14295
cat >conftest.$ac_ext <<_ACEOF
14296
#line $LINENO "configure"
14299
cat confdefs.h >>conftest.$ac_ext
14300
cat >>conftest.$ac_ext <<_ACEOF
14301
/* end confdefs.h. */
14303
#include <sys/types.h>
14309
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14316
rm -f conftest.$ac_objext
14317
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14318
(eval $ac_compile) 2>&5
14320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321
(exit $ac_status); } &&
14322
{ ac_try='test -s conftest.$ac_objext'
14323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324
(eval $ac_try) 2>&5
14326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327
(exit $ac_status); }; }; then
14328
ac_lo=$ac_mid; break
14330
echo "$as_me: failed program was:" >&5
14331
sed 's/^/| /' conftest.$ac_ext >&5
14333
ac_hi=`expr '(' $ac_mid ')' - 1`
14334
if test $ac_mid -le $ac_hi; then
14338
ac_mid=`expr 2 '*' $ac_mid`
14340
rm -f conftest.$ac_objext conftest.$ac_ext
14343
echo "$as_me: failed program was:" >&5
14344
sed 's/^/| /' conftest.$ac_ext >&5
14348
rm -f conftest.$ac_objext conftest.$ac_ext
14350
rm -f conftest.$ac_objext conftest.$ac_ext
14351
# Binary search between lo and hi bounds.
14352
while test "x$ac_lo" != "x$ac_hi"; do
14353
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14354
cat >conftest.$ac_ext <<_ACEOF
14355
#line $LINENO "configure"
14358
cat confdefs.h >>conftest.$ac_ext
14359
cat >>conftest.$ac_ext <<_ACEOF
14360
/* end confdefs.h. */
14362
#include <sys/types.h>
14368
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14375
rm -f conftest.$ac_objext
14376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377
(eval $ac_compile) 2>&5
14379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380
(exit $ac_status); } &&
14381
{ ac_try='test -s conftest.$ac_objext'
14382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383
(eval $ac_try) 2>&5
14385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386
(exit $ac_status); }; }; then
14389
echo "$as_me: failed program was:" >&5
14390
sed 's/^/| /' conftest.$ac_ext >&5
14392
ac_lo=`expr '(' $ac_mid ')' + 1`
14394
rm -f conftest.$ac_objext conftest.$ac_ext
14397
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14398
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14399
See \`config.log' for more details." >&5
14400
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14401
See \`config.log' for more details." >&2;}
14402
{ (exit 1); exit 1; }; } ;;
14405
if test "$cross_compiling" = yes; then
14406
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14407
See \`config.log' for more details." >&5
14408
echo "$as_me: error: cannot run test program while cross compiling
14409
See \`config.log' for more details." >&2;}
14410
{ (exit 1); exit 1; }; }
14412
cat >conftest.$ac_ext <<_ACEOF
14413
#line $LINENO "configure"
14416
cat confdefs.h >>conftest.$ac_ext
14417
cat >>conftest.$ac_ext <<_ACEOF
14418
/* end confdefs.h. */
14420
#include <sys/types.h>
14423
long longval () { return (long) (sizeof (unsigned long)); }
14424
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14426
#include <stdlib.h>
14431
FILE *f = fopen ("conftest.val", "w");
14434
if (((long) (sizeof (unsigned long))) < 0)
14436
long i = longval ();
14437
if (i != ((long) (sizeof (unsigned long))))
14439
fprintf (f, "%ld\n", i);
14443
unsigned long i = ulongval ();
14444
if (i != ((long) (sizeof (unsigned long))))
14446
fprintf (f, "%lu\n", i);
14448
exit (ferror (f) || fclose (f) != 0);
14454
rm -f conftest$ac_exeext
14455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14456
(eval $ac_link) 2>&5
14458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461
(eval $ac_try) 2>&5
14463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464
(exit $ac_status); }; }; then
14465
ac_cv_sizeof_unsigned_long=`cat conftest.val`
14467
echo "$as_me: program exited with status $ac_status" >&5
14468
echo "$as_me: failed program was:" >&5
14469
sed 's/^/| /' conftest.$ac_ext >&5
14471
( exit $ac_status )
14472
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14473
See \`config.log' for more details." >&5
14474
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14475
See \`config.log' for more details." >&2;}
14476
{ (exit 1); exit 1; }; }
14478
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14483
ac_cv_sizeof_unsigned_long=0
14486
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14487
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14488
cat >>confdefs.h <<_ACEOF
14489
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14493
echo "$as_me:$LINENO: checking for size_t" >&5
14494
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14495
if test "${ac_cv_type_size_t+set}" = set; then
14496
echo $ECHO_N "(cached) $ECHO_C" >&6
14498
cat >conftest.$ac_ext <<_ACEOF
14499
#line $LINENO "configure"
14502
cat confdefs.h >>conftest.$ac_ext
14503
cat >>conftest.$ac_ext <<_ACEOF
14504
/* end confdefs.h. */
14506
#include <sys/types.h>
14514
if (sizeof (size_t))
14520
rm -f conftest.$ac_objext
14521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522
(eval $ac_compile) 2>&5
14524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
(exit $ac_status); } &&
14526
{ ac_try='test -s conftest.$ac_objext'
14527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528
(eval $ac_try) 2>&5
14530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531
(exit $ac_status); }; }; then
14532
ac_cv_type_size_t=yes
14534
echo "$as_me: failed program was:" >&5
14535
sed 's/^/| /' conftest.$ac_ext >&5
14537
ac_cv_type_size_t=no
14539
rm -f conftest.$ac_objext conftest.$ac_ext
14541
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14542
echo "${ECHO_T}$ac_cv_type_size_t" >&6
14544
echo "$as_me:$LINENO: checking size of size_t" >&5
14545
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
14546
if test "${ac_cv_sizeof_size_t+set}" = set; then
14547
echo $ECHO_N "(cached) $ECHO_C" >&6
14549
if test "$ac_cv_type_size_t" = yes; then
14550
# The cast to unsigned long works around a bug in the HP C Compiler
14551
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14552
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14553
# This bug is HP SR number 8606223364.
14554
if test "$cross_compiling" = yes; then
14555
# Depending upon the size, compute the lo and hi bounds.
14556
cat >conftest.$ac_ext <<_ACEOF
14557
#line $LINENO "configure"
14560
cat confdefs.h >>conftest.$ac_ext
14561
cat >>conftest.$ac_ext <<_ACEOF
14562
/* end confdefs.h. */
14564
#include <sys/types.h>
14570
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
14577
rm -f conftest.$ac_objext
14578
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579
(eval $ac_compile) 2>&5
14581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582
(exit $ac_status); } &&
14583
{ ac_try='test -s conftest.$ac_objext'
14584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585
(eval $ac_try) 2>&5
14587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588
(exit $ac_status); }; }; then
14591
cat >conftest.$ac_ext <<_ACEOF
14592
#line $LINENO "configure"
14595
cat confdefs.h >>conftest.$ac_ext
14596
cat >>conftest.$ac_ext <<_ACEOF
14597
/* end confdefs.h. */
14599
#include <sys/types.h>
14605
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
14612
rm -f conftest.$ac_objext
14613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614
(eval $ac_compile) 2>&5
14616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617
(exit $ac_status); } &&
14618
{ ac_try='test -s conftest.$ac_objext'
14619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620
(eval $ac_try) 2>&5
14622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623
(exit $ac_status); }; }; then
14624
ac_hi=$ac_mid; break
14626
echo "$as_me: failed program was:" >&5
14627
sed 's/^/| /' conftest.$ac_ext >&5
14629
ac_lo=`expr $ac_mid + 1`
14630
if test $ac_lo -le $ac_mid; then
14634
ac_mid=`expr 2 '*' $ac_mid + 1`
14636
rm -f conftest.$ac_objext conftest.$ac_ext
14639
echo "$as_me: failed program was:" >&5
14640
sed 's/^/| /' conftest.$ac_ext >&5
14642
cat >conftest.$ac_ext <<_ACEOF
14643
#line $LINENO "configure"
14646
cat confdefs.h >>conftest.$ac_ext
14647
cat >>conftest.$ac_ext <<_ACEOF
14648
/* end confdefs.h. */
14650
#include <sys/types.h>
14656
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
14663
rm -f conftest.$ac_objext
14664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665
(eval $ac_compile) 2>&5
14667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668
(exit $ac_status); } &&
14669
{ ac_try='test -s conftest.$ac_objext'
14670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671
(eval $ac_try) 2>&5
14673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674
(exit $ac_status); }; }; then
14677
cat >conftest.$ac_ext <<_ACEOF
14678
#line $LINENO "configure"
14681
cat confdefs.h >>conftest.$ac_ext
14682
cat >>conftest.$ac_ext <<_ACEOF
14683
/* end confdefs.h. */
14685
#include <sys/types.h>
14691
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
14698
rm -f conftest.$ac_objext
14699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700
(eval $ac_compile) 2>&5
14702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
(exit $ac_status); } &&
14704
{ ac_try='test -s conftest.$ac_objext'
14705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706
(eval $ac_try) 2>&5
14708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709
(exit $ac_status); }; }; then
14710
ac_lo=$ac_mid; break
14712
echo "$as_me: failed program was:" >&5
14713
sed 's/^/| /' conftest.$ac_ext >&5
14715
ac_hi=`expr '(' $ac_mid ')' - 1`
14716
if test $ac_mid -le $ac_hi; then
14720
ac_mid=`expr 2 '*' $ac_mid`
14722
rm -f conftest.$ac_objext conftest.$ac_ext
14725
echo "$as_me: failed program was:" >&5
14726
sed 's/^/| /' conftest.$ac_ext >&5
14730
rm -f conftest.$ac_objext conftest.$ac_ext
14732
rm -f conftest.$ac_objext conftest.$ac_ext
14733
# Binary search between lo and hi bounds.
14734
while test "x$ac_lo" != "x$ac_hi"; do
14735
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14736
cat >conftest.$ac_ext <<_ACEOF
14737
#line $LINENO "configure"
14740
cat confdefs.h >>conftest.$ac_ext
14741
cat >>conftest.$ac_ext <<_ACEOF
14742
/* end confdefs.h. */
14744
#include <sys/types.h>
14750
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
14757
rm -f conftest.$ac_objext
14758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759
(eval $ac_compile) 2>&5
14761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762
(exit $ac_status); } &&
14763
{ ac_try='test -s conftest.$ac_objext'
14764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765
(eval $ac_try) 2>&5
14767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768
(exit $ac_status); }; }; then
14771
echo "$as_me: failed program was:" >&5
14772
sed 's/^/| /' conftest.$ac_ext >&5
14774
ac_lo=`expr '(' $ac_mid ')' + 1`
14776
rm -f conftest.$ac_objext conftest.$ac_ext
14779
?*) ac_cv_sizeof_size_t=$ac_lo;;
14780
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
14781
See \`config.log' for more details." >&5
14782
echo "$as_me: error: cannot compute sizeof (size_t), 77
14783
See \`config.log' for more details." >&2;}
14784
{ (exit 1); exit 1; }; } ;;
14787
if test "$cross_compiling" = yes; then
14788
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14789
See \`config.log' for more details." >&5
14790
echo "$as_me: error: cannot run test program while cross compiling
14791
See \`config.log' for more details." >&2;}
14792
{ (exit 1); exit 1; }; }
14794
cat >conftest.$ac_ext <<_ACEOF
14795
#line $LINENO "configure"
14798
cat confdefs.h >>conftest.$ac_ext
14799
cat >>conftest.$ac_ext <<_ACEOF
14800
/* end confdefs.h. */
14802
#include <sys/types.h>
14805
long longval () { return (long) (sizeof (size_t)); }
14806
unsigned long ulongval () { return (long) (sizeof (size_t)); }
14808
#include <stdlib.h>
14813
FILE *f = fopen ("conftest.val", "w");
14816
if (((long) (sizeof (size_t))) < 0)
14818
long i = longval ();
14819
if (i != ((long) (sizeof (size_t))))
14821
fprintf (f, "%ld\n", i);
14825
unsigned long i = ulongval ();
14826
if (i != ((long) (sizeof (size_t))))
14828
fprintf (f, "%lu\n", i);
14830
exit (ferror (f) || fclose (f) != 0);
14836
rm -f conftest$ac_exeext
14837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838
(eval $ac_link) 2>&5
14840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843
(eval $ac_try) 2>&5
14845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846
(exit $ac_status); }; }; then
14847
ac_cv_sizeof_size_t=`cat conftest.val`
14849
echo "$as_me: program exited with status $ac_status" >&5
14850
echo "$as_me: failed program was:" >&5
14851
sed 's/^/| /' conftest.$ac_ext >&5
14853
( exit $ac_status )
14854
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
14855
See \`config.log' for more details." >&5
14856
echo "$as_me: error: cannot compute sizeof (size_t), 77
14857
See \`config.log' for more details." >&2;}
14858
{ (exit 1); exit 1; }; }
14860
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14865
ac_cv_sizeof_size_t=0
14868
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
14869
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
14870
cat >>confdefs.h <<_ACEOF
14871
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14875
echo "$as_me:$LINENO: checking for char *" >&5
14876
echo $ECHO_N "checking for char *... $ECHO_C" >&6
14877
if test "${ac_cv_type_char_p+set}" = set; then
14878
echo $ECHO_N "(cached) $ECHO_C" >&6
14880
cat >conftest.$ac_ext <<_ACEOF
14881
#line $LINENO "configure"
14884
cat confdefs.h >>conftest.$ac_ext
14885
cat >>conftest.$ac_ext <<_ACEOF
14886
/* end confdefs.h. */
14888
#include <sys/types.h>
14896
if (sizeof (char *))
14902
rm -f conftest.$ac_objext
14903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904
(eval $ac_compile) 2>&5
14906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907
(exit $ac_status); } &&
14908
{ ac_try='test -s conftest.$ac_objext'
14909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910
(eval $ac_try) 2>&5
14912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913
(exit $ac_status); }; }; then
14914
ac_cv_type_char_p=yes
14916
echo "$as_me: failed program was:" >&5
14917
sed 's/^/| /' conftest.$ac_ext >&5
14919
ac_cv_type_char_p=no
14921
rm -f conftest.$ac_objext conftest.$ac_ext
14923
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
14924
echo "${ECHO_T}$ac_cv_type_char_p" >&6
14926
echo "$as_me:$LINENO: checking size of char *" >&5
14927
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
14928
if test "${ac_cv_sizeof_char_p+set}" = set; then
14929
echo $ECHO_N "(cached) $ECHO_C" >&6
14931
if test "$ac_cv_type_char_p" = yes; then
14932
# The cast to unsigned long works around a bug in the HP C Compiler
14933
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14934
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14935
# This bug is HP SR number 8606223364.
14936
if test "$cross_compiling" = yes; then
14937
# Depending upon the size, compute the lo and hi bounds.
14938
cat >conftest.$ac_ext <<_ACEOF
14939
#line $LINENO "configure"
14942
cat confdefs.h >>conftest.$ac_ext
14943
cat >>conftest.$ac_ext <<_ACEOF
14944
/* end confdefs.h. */
14946
#include <sys/types.h>
14952
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
14959
rm -f conftest.$ac_objext
14960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14961
(eval $ac_compile) 2>&5
14963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964
(exit $ac_status); } &&
14965
{ ac_try='test -s conftest.$ac_objext'
14966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967
(eval $ac_try) 2>&5
14969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970
(exit $ac_status); }; }; then
14973
cat >conftest.$ac_ext <<_ACEOF
14974
#line $LINENO "configure"
14977
cat confdefs.h >>conftest.$ac_ext
14978
cat >>conftest.$ac_ext <<_ACEOF
14979
/* end confdefs.h. */
14981
#include <sys/types.h>
14987
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
14994
rm -f conftest.$ac_objext
14995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996
(eval $ac_compile) 2>&5
14998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999
(exit $ac_status); } &&
15000
{ ac_try='test -s conftest.$ac_objext'
15001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002
(eval $ac_try) 2>&5
15004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005
(exit $ac_status); }; }; then
15006
ac_hi=$ac_mid; break
15008
echo "$as_me: failed program was:" >&5
15009
sed 's/^/| /' conftest.$ac_ext >&5
15011
ac_lo=`expr $ac_mid + 1`
15012
if test $ac_lo -le $ac_mid; then
15016
ac_mid=`expr 2 '*' $ac_mid + 1`
15018
rm -f conftest.$ac_objext conftest.$ac_ext
15021
echo "$as_me: failed program was:" >&5
15022
sed 's/^/| /' conftest.$ac_ext >&5
15024
cat >conftest.$ac_ext <<_ACEOF
15025
#line $LINENO "configure"
15028
cat confdefs.h >>conftest.$ac_ext
15029
cat >>conftest.$ac_ext <<_ACEOF
15030
/* end confdefs.h. */
15032
#include <sys/types.h>
15038
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
15045
rm -f conftest.$ac_objext
15046
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047
(eval $ac_compile) 2>&5
15049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050
(exit $ac_status); } &&
15051
{ ac_try='test -s conftest.$ac_objext'
15052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053
(eval $ac_try) 2>&5
15055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056
(exit $ac_status); }; }; then
15059
cat >conftest.$ac_ext <<_ACEOF
15060
#line $LINENO "configure"
15063
cat confdefs.h >>conftest.$ac_ext
15064
cat >>conftest.$ac_ext <<_ACEOF
15065
/* end confdefs.h. */
15067
#include <sys/types.h>
15073
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
15080
rm -f conftest.$ac_objext
15081
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082
(eval $ac_compile) 2>&5
15084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085
(exit $ac_status); } &&
15086
{ ac_try='test -s conftest.$ac_objext'
15087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088
(eval $ac_try) 2>&5
15090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091
(exit $ac_status); }; }; then
15092
ac_lo=$ac_mid; break
15094
echo "$as_me: failed program was:" >&5
15095
sed 's/^/| /' conftest.$ac_ext >&5
15097
ac_hi=`expr '(' $ac_mid ')' - 1`
15098
if test $ac_mid -le $ac_hi; then
15102
ac_mid=`expr 2 '*' $ac_mid`
15104
rm -f conftest.$ac_objext conftest.$ac_ext
15107
echo "$as_me: failed program was:" >&5
15108
sed 's/^/| /' conftest.$ac_ext >&5
15112
rm -f conftest.$ac_objext conftest.$ac_ext
15114
rm -f conftest.$ac_objext conftest.$ac_ext
15115
# Binary search between lo and hi bounds.
15116
while test "x$ac_lo" != "x$ac_hi"; do
15117
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15118
cat >conftest.$ac_ext <<_ACEOF
15119
#line $LINENO "configure"
15122
cat confdefs.h >>conftest.$ac_ext
15123
cat >>conftest.$ac_ext <<_ACEOF
15124
/* end confdefs.h. */
15126
#include <sys/types.h>
15132
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
15139
rm -f conftest.$ac_objext
15140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141
(eval $ac_compile) 2>&5
15143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144
(exit $ac_status); } &&
15145
{ ac_try='test -s conftest.$ac_objext'
15146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147
(eval $ac_try) 2>&5
15149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150
(exit $ac_status); }; }; then
15153
echo "$as_me: failed program was:" >&5
15154
sed 's/^/| /' conftest.$ac_ext >&5
15156
ac_lo=`expr '(' $ac_mid ')' + 1`
15158
rm -f conftest.$ac_objext conftest.$ac_ext
15161
?*) ac_cv_sizeof_char_p=$ac_lo;;
15162
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
15163
See \`config.log' for more details." >&5
15164
echo "$as_me: error: cannot compute sizeof (char *), 77
15165
See \`config.log' for more details." >&2;}
15166
{ (exit 1); exit 1; }; } ;;
15169
if test "$cross_compiling" = yes; then
15170
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15171
See \`config.log' for more details." >&5
15172
echo "$as_me: error: cannot run test program while cross compiling
15173
See \`config.log' for more details." >&2;}
15174
{ (exit 1); exit 1; }; }
15176
cat >conftest.$ac_ext <<_ACEOF
15177
#line $LINENO "configure"
15180
cat confdefs.h >>conftest.$ac_ext
15181
cat >>conftest.$ac_ext <<_ACEOF
15182
/* end confdefs.h. */
15184
#include <sys/types.h>
15187
long longval () { return (long) (sizeof (char *)); }
15188
unsigned long ulongval () { return (long) (sizeof (char *)); }
15190
#include <stdlib.h>
15195
FILE *f = fopen ("conftest.val", "w");
15198
if (((long) (sizeof (char *))) < 0)
15200
long i = longval ();
15201
if (i != ((long) (sizeof (char *))))
15203
fprintf (f, "%ld\n", i);
15207
unsigned long i = ulongval ();
15208
if (i != ((long) (sizeof (char *))))
15210
fprintf (f, "%lu\n", i);
15212
exit (ferror (f) || fclose (f) != 0);
15218
rm -f conftest$ac_exeext
15219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220
(eval $ac_link) 2>&5
15222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225
(eval $ac_try) 2>&5
15227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228
(exit $ac_status); }; }; then
15229
ac_cv_sizeof_char_p=`cat conftest.val`
15231
echo "$as_me: program exited with status $ac_status" >&5
15232
echo "$as_me: failed program was:" >&5
15233
sed 's/^/| /' conftest.$ac_ext >&5
15235
( exit $ac_status )
15236
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
15237
See \`config.log' for more details." >&5
15238
echo "$as_me: error: cannot compute sizeof (char *), 77
15239
See \`config.log' for more details." >&2;}
15240
{ (exit 1); exit 1; }; }
15242
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15247
ac_cv_sizeof_char_p=0
15250
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
15251
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
15252
cat >>confdefs.h <<_ACEOF
15253
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15258
# We require off_t and size_t, and we don't try to substitute our own
15259
# if we can't find them.
15260
echo "$as_me:$LINENO: checking for off_t" >&5
15261
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15262
if test "${ac_cv_type_off_t+set}" = set; then
15263
echo $ECHO_N "(cached) $ECHO_C" >&6
15265
cat >conftest.$ac_ext <<_ACEOF
15266
#line $LINENO "configure"
15269
cat confdefs.h >>conftest.$ac_ext
15270
cat >>conftest.$ac_ext <<_ACEOF
15271
/* end confdefs.h. */
15273
#include <sys/types.h>
15281
if (sizeof (off_t))
15287
rm -f conftest.$ac_objext
15288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15289
(eval $ac_compile) 2>&5
15291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292
(exit $ac_status); } &&
15293
{ ac_try='test -s conftest.$ac_objext'
15294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295
(eval $ac_try) 2>&5
15297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298
(exit $ac_status); }; }; then
15299
ac_cv_type_off_t=yes
15301
echo "$as_me: failed program was:" >&5
15302
sed 's/^/| /' conftest.$ac_ext >&5
15304
ac_cv_type_off_t=no
15306
rm -f conftest.$ac_objext conftest.$ac_ext
15308
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15309
echo "${ECHO_T}$ac_cv_type_off_t" >&6
15311
if test "$ac_cv_type_off_t" = no; then
15312
{ { echo "$as_me:$LINENO: error: No off_t type." >&5
15313
echo "$as_me: error: No off_t type." >&2;}
15314
{ (exit 1); exit 1; }; }
15317
echo "$as_me:$LINENO: checking for size_t" >&5
15318
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15319
if test "${ac_cv_type_size_t+set}" = set; then
15320
echo $ECHO_N "(cached) $ECHO_C" >&6
15322
cat >conftest.$ac_ext <<_ACEOF
15323
#line $LINENO "configure"
15326
cat confdefs.h >>conftest.$ac_ext
15327
cat >>conftest.$ac_ext <<_ACEOF
15328
/* end confdefs.h. */
15330
#include <sys/types.h>
15338
if (sizeof (size_t))
15344
rm -f conftest.$ac_objext
15345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346
(eval $ac_compile) 2>&5
15348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349
(exit $ac_status); } &&
15350
{ ac_try='test -s conftest.$ac_objext'
15351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352
(eval $ac_try) 2>&5
15354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355
(exit $ac_status); }; }; then
15356
ac_cv_type_size_t=yes
15358
echo "$as_me: failed program was:" >&5
15359
sed 's/^/| /' conftest.$ac_ext >&5
15361
ac_cv_type_size_t=no
15363
rm -f conftest.$ac_objext conftest.$ac_ext
15365
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15366
echo "${ECHO_T}$ac_cv_type_size_t" >&6
15368
if test "$ac_cv_type_size_t" = no; then
15369
{ { echo "$as_me:$LINENO: error: No size_t type." >&5
15370
echo "$as_me: error: No size_t type." >&2;}
15371
{ (exit 1); exit 1; }; }
15374
# We look for u_char, u_short, u_int, u_long -- if we can't find them,
15375
# we create our own.
15377
echo "$as_me:$LINENO: checking for u_char" >&5
15378
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
15379
if test "${ac_cv_type_u_char+set}" = set; then
15380
echo $ECHO_N "(cached) $ECHO_C" >&6
15382
cat >conftest.$ac_ext <<_ACEOF
15383
#line $LINENO "configure"
15386
cat confdefs.h >>conftest.$ac_ext
15387
cat >>conftest.$ac_ext <<_ACEOF
15388
/* end confdefs.h. */
15390
#include <sys/types.h>
15398
if (sizeof (u_char))
15404
rm -f conftest.$ac_objext
15405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406
(eval $ac_compile) 2>&5
15408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409
(exit $ac_status); } &&
15410
{ ac_try='test -s conftest.$ac_objext'
15411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412
(eval $ac_try) 2>&5
15414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415
(exit $ac_status); }; }; then
15416
ac_cv_type_u_char=yes
15418
echo "$as_me: failed program was:" >&5
15419
sed 's/^/| /' conftest.$ac_ext >&5
15421
ac_cv_type_u_char=no
15423
rm -f conftest.$ac_objext conftest.$ac_ext
15425
echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
15426
echo "${ECHO_T}$ac_cv_type_u_char" >&6
15428
if test "$ac_cv_type_u_char" = no; then
15429
u_char_decl="typedef unsigned char u_char;"
15433
echo "$as_me:$LINENO: checking for u_short" >&5
15434
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
15435
if test "${ac_cv_type_u_short+set}" = set; then
15436
echo $ECHO_N "(cached) $ECHO_C" >&6
15438
cat >conftest.$ac_ext <<_ACEOF
15439
#line $LINENO "configure"
15442
cat confdefs.h >>conftest.$ac_ext
15443
cat >>conftest.$ac_ext <<_ACEOF
15444
/* end confdefs.h. */
15446
#include <sys/types.h>
15454
if (sizeof (u_short))
15460
rm -f conftest.$ac_objext
15461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462
(eval $ac_compile) 2>&5
15464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465
(exit $ac_status); } &&
15466
{ ac_try='test -s conftest.$ac_objext'
15467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468
(eval $ac_try) 2>&5
15470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471
(exit $ac_status); }; }; then
15472
ac_cv_type_u_short=yes
15474
echo "$as_me: failed program was:" >&5
15475
sed 's/^/| /' conftest.$ac_ext >&5
15477
ac_cv_type_u_short=no
15479
rm -f conftest.$ac_objext conftest.$ac_ext
15481
echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
15482
echo "${ECHO_T}$ac_cv_type_u_short" >&6
15484
if test "$ac_cv_type_u_short" = no; then
15485
u_short_decl="typedef unsigned short u_short;"
15489
echo "$as_me:$LINENO: checking for u_int" >&5
15490
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
15491
if test "${ac_cv_type_u_int+set}" = set; then
15492
echo $ECHO_N "(cached) $ECHO_C" >&6
15494
cat >conftest.$ac_ext <<_ACEOF
15495
#line $LINENO "configure"
15498
cat confdefs.h >>conftest.$ac_ext
15499
cat >>conftest.$ac_ext <<_ACEOF
15500
/* end confdefs.h. */
15502
#include <sys/types.h>
15510
if (sizeof (u_int))
15516
rm -f conftest.$ac_objext
15517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518
(eval $ac_compile) 2>&5
15520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521
(exit $ac_status); } &&
15522
{ ac_try='test -s conftest.$ac_objext'
15523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524
(eval $ac_try) 2>&5
15526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527
(exit $ac_status); }; }; then
15528
ac_cv_type_u_int=yes
15530
echo "$as_me: failed program was:" >&5
15531
sed 's/^/| /' conftest.$ac_ext >&5
15533
ac_cv_type_u_int=no
15535
rm -f conftest.$ac_objext conftest.$ac_ext
15537
echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
15538
echo "${ECHO_T}$ac_cv_type_u_int" >&6
15540
if test "$ac_cv_type_u_int" = no; then
15541
u_int_decl="typedef unsigned int u_int;"
15545
echo "$as_me:$LINENO: checking for u_long" >&5
15546
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
15547
if test "${ac_cv_type_u_long+set}" = set; then
15548
echo $ECHO_N "(cached) $ECHO_C" >&6
15550
cat >conftest.$ac_ext <<_ACEOF
15551
#line $LINENO "configure"
15554
cat confdefs.h >>conftest.$ac_ext
15555
cat >>conftest.$ac_ext <<_ACEOF
15556
/* end confdefs.h. */
15558
#include <sys/types.h>
15566
if (sizeof (u_long))
15572
rm -f conftest.$ac_objext
15573
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574
(eval $ac_compile) 2>&5
15576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577
(exit $ac_status); } &&
15578
{ ac_try='test -s conftest.$ac_objext'
15579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580
(eval $ac_try) 2>&5
15582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583
(exit $ac_status); }; }; then
15584
ac_cv_type_u_long=yes
15586
echo "$as_me: failed program was:" >&5
15587
sed 's/^/| /' conftest.$ac_ext >&5
15589
ac_cv_type_u_long=no
15591
rm -f conftest.$ac_objext conftest.$ac_ext
15593
echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
15594
echo "${ECHO_T}$ac_cv_type_u_long" >&6
15596
if test "$ac_cv_type_u_long" = no; then
15597
u_long_decl="typedef unsigned long u_long;"
15601
echo "$as_me:$LINENO: checking for u_int8_t" >&5
15602
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
15603
if test "${ac_cv_type_u_int8_t+set}" = set; then
15604
echo $ECHO_N "(cached) $ECHO_C" >&6
15606
cat >conftest.$ac_ext <<_ACEOF
15607
#line $LINENO "configure"
15610
cat confdefs.h >>conftest.$ac_ext
15611
cat >>conftest.$ac_ext <<_ACEOF
15612
/* end confdefs.h. */
15614
#include <sys/types.h>
15620
if ((u_int8_t *) 0)
15622
if (sizeof (u_int8_t))
15628
rm -f conftest.$ac_objext
15629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630
(eval $ac_compile) 2>&5
15632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
(exit $ac_status); } &&
15634
{ ac_try='test -s conftest.$ac_objext'
15635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636
(eval $ac_try) 2>&5
15638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639
(exit $ac_status); }; }; then
15640
ac_cv_type_u_int8_t=yes
15642
echo "$as_me: failed program was:" >&5
15643
sed 's/^/| /' conftest.$ac_ext >&5
15645
ac_cv_type_u_int8_t=no
15647
rm -f conftest.$ac_objext conftest.$ac_ext
15649
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
15650
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
15652
if test "$ac_cv_type_u_int8_t" = no; then
15655
"$ac_cv_sizeof_unsigned_int")
15656
u_int8_decl="typedef unsigned int u_int8_t;";;
15657
"$ac_cv_sizeof_unsigned_char")
15658
u_int8_decl="typedef unsigned char u_int8_t;";;
15659
"$ac_cv_sizeof_unsigned_short")
15660
u_int8_decl="typedef unsigned short u_int8_t;";;
15661
"$ac_cv_sizeof_unsigned_long")
15662
u_int8_decl="typedef unsigned long u_int8_t;";;
15664
{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
15665
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
15666
{ (exit 1); exit 1; }; };;
15671
echo "$as_me:$LINENO: checking for u_int16_t" >&5
15672
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
15673
if test "${ac_cv_type_u_int16_t+set}" = set; then
15674
echo $ECHO_N "(cached) $ECHO_C" >&6
15676
cat >conftest.$ac_ext <<_ACEOF
15677
#line $LINENO "configure"
15680
cat confdefs.h >>conftest.$ac_ext
15681
cat >>conftest.$ac_ext <<_ACEOF
15682
/* end confdefs.h. */
15684
#include <sys/types.h>
15690
if ((u_int16_t *) 0)
15692
if (sizeof (u_int16_t))
15698
rm -f conftest.$ac_objext
15699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700
(eval $ac_compile) 2>&5
15702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703
(exit $ac_status); } &&
15704
{ ac_try='test -s conftest.$ac_objext'
15705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706
(eval $ac_try) 2>&5
15708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709
(exit $ac_status); }; }; then
15710
ac_cv_type_u_int16_t=yes
15712
echo "$as_me: failed program was:" >&5
15713
sed 's/^/| /' conftest.$ac_ext >&5
15715
ac_cv_type_u_int16_t=no
15717
rm -f conftest.$ac_objext conftest.$ac_ext
15719
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
15720
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
15722
if test "$ac_cv_type_u_int16_t" = no; then
15725
"$ac_cv_sizeof_unsigned_int")
15726
u_int16_decl="typedef unsigned int u_int16_t;";;
15727
"$ac_cv_sizeof_unsigned_char")
15728
u_int16_decl="typedef unsigned char u_int16_t;";;
15729
"$ac_cv_sizeof_unsigned_short")
15730
u_int16_decl="typedef unsigned short u_int16_t;";;
15731
"$ac_cv_sizeof_unsigned_long")
15732
u_int16_decl="typedef unsigned long u_int16_t;";;
15734
{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
15735
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
15736
{ (exit 1); exit 1; }; };;
15741
echo "$as_me:$LINENO: checking for int16_t" >&5
15742
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
15743
if test "${ac_cv_type_int16_t+set}" = set; then
15744
echo $ECHO_N "(cached) $ECHO_C" >&6
15746
cat >conftest.$ac_ext <<_ACEOF
15747
#line $LINENO "configure"
15750
cat confdefs.h >>conftest.$ac_ext
15751
cat >>conftest.$ac_ext <<_ACEOF
15752
/* end confdefs.h. */
15754
#include <sys/types.h>
15762
if (sizeof (int16_t))
15768
rm -f conftest.$ac_objext
15769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770
(eval $ac_compile) 2>&5
15772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773
(exit $ac_status); } &&
15774
{ ac_try='test -s conftest.$ac_objext'
15775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776
(eval $ac_try) 2>&5
15778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779
(exit $ac_status); }; }; then
15780
ac_cv_type_int16_t=yes
15782
echo "$as_me: failed program was:" >&5
15783
sed 's/^/| /' conftest.$ac_ext >&5
15785
ac_cv_type_int16_t=no
15787
rm -f conftest.$ac_objext conftest.$ac_ext
15789
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15790
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
15792
if test "$ac_cv_type_int16_t" = no; then
15795
"$ac_cv_sizeof_int")
15796
int16_decl="typedef int int16_t;";;
15797
"$ac_cv_sizeof_char")
15798
int16_decl="typedef char int16_t;";;
15799
"$ac_cv_sizeof_short")
15800
int16_decl="typedef short int16_t;";;
15801
"$ac_cv_sizeof_long")
15802
int16_decl="typedef long int16_t;";;
15804
{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
15805
echo "$as_me: error: No signed 2-byte integral type" >&2;}
15806
{ (exit 1); exit 1; }; };;
15811
echo "$as_me:$LINENO: checking for u_int32_t" >&5
15812
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
15813
if test "${ac_cv_type_u_int32_t+set}" = set; then
15814
echo $ECHO_N "(cached) $ECHO_C" >&6
15816
cat >conftest.$ac_ext <<_ACEOF
15817
#line $LINENO "configure"
15820
cat confdefs.h >>conftest.$ac_ext
15821
cat >>conftest.$ac_ext <<_ACEOF
15822
/* end confdefs.h. */
15824
#include <sys/types.h>
15830
if ((u_int32_t *) 0)
15832
if (sizeof (u_int32_t))
15838
rm -f conftest.$ac_objext
15839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840
(eval $ac_compile) 2>&5
15842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843
(exit $ac_status); } &&
15844
{ ac_try='test -s conftest.$ac_objext'
15845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846
(eval $ac_try) 2>&5
15848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849
(exit $ac_status); }; }; then
15850
ac_cv_type_u_int32_t=yes
15852
echo "$as_me: failed program was:" >&5
15853
sed 's/^/| /' conftest.$ac_ext >&5
15855
ac_cv_type_u_int32_t=no
15857
rm -f conftest.$ac_objext conftest.$ac_ext
15859
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15860
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15862
if test "$ac_cv_type_u_int32_t" = no; then
15865
"$ac_cv_sizeof_unsigned_int")
15866
u_int32_decl="typedef unsigned int u_int32_t;";;
15867
"$ac_cv_sizeof_unsigned_char")
15868
u_int32_decl="typedef unsigned char u_int32_t;";;
15869
"$ac_cv_sizeof_unsigned_short")
15870
u_int32_decl="typedef unsigned short u_int32_t;";;
15871
"$ac_cv_sizeof_unsigned_long")
15872
u_int32_decl="typedef unsigned long u_int32_t;";;
15874
{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
15875
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
15876
{ (exit 1); exit 1; }; };;
15881
echo "$as_me:$LINENO: checking for int32_t" >&5
15882
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
15883
if test "${ac_cv_type_int32_t+set}" = set; then
15884
echo $ECHO_N "(cached) $ECHO_C" >&6
15886
cat >conftest.$ac_ext <<_ACEOF
15887
#line $LINENO "configure"
15890
cat confdefs.h >>conftest.$ac_ext
15891
cat >>conftest.$ac_ext <<_ACEOF
15892
/* end confdefs.h. */
15894
#include <sys/types.h>
15902
if (sizeof (int32_t))
15908
rm -f conftest.$ac_objext
15909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910
(eval $ac_compile) 2>&5
15912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913
(exit $ac_status); } &&
15914
{ ac_try='test -s conftest.$ac_objext'
15915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916
(eval $ac_try) 2>&5
15918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919
(exit $ac_status); }; }; then
15920
ac_cv_type_int32_t=yes
15922
echo "$as_me: failed program was:" >&5
15923
sed 's/^/| /' conftest.$ac_ext >&5
15925
ac_cv_type_int32_t=no
15927
rm -f conftest.$ac_objext conftest.$ac_ext
15929
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15930
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
15932
if test "$ac_cv_type_int32_t" = no; then
15935
"$ac_cv_sizeof_int")
15936
int32_decl="typedef int int32_t;";;
15937
"$ac_cv_sizeof_char")
15938
int32_decl="typedef char int32_t;";;
15939
"$ac_cv_sizeof_short")
15940
int32_decl="typedef short int32_t;";;
15941
"$ac_cv_sizeof_long")
15942
int32_decl="typedef long int32_t;";;
15944
{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
15945
echo "$as_me: error: No signed 4-byte integral type" >&2;}
15946
{ (exit 1); exit 1; }; };;
15950
# Check for ssize_t -- if none exists, find a signed integral type that's
15951
# the same size as a size_t.
15953
echo "$as_me:$LINENO: checking for ssize_t" >&5
15954
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15955
if test "${ac_cv_type_ssize_t+set}" = set; then
15956
echo $ECHO_N "(cached) $ECHO_C" >&6
15958
cat >conftest.$ac_ext <<_ACEOF
15959
#line $LINENO "configure"
15962
cat confdefs.h >>conftest.$ac_ext
15963
cat >>conftest.$ac_ext <<_ACEOF
15964
/* end confdefs.h. */
15966
#include <sys/types.h>
15974
if (sizeof (ssize_t))
15980
rm -f conftest.$ac_objext
15981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982
(eval $ac_compile) 2>&5
15984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985
(exit $ac_status); } &&
15986
{ ac_try='test -s conftest.$ac_objext'
15987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988
(eval $ac_try) 2>&5
15990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991
(exit $ac_status); }; }; then
15992
ac_cv_type_ssize_t=yes
15994
echo "$as_me: failed program was:" >&5
15995
sed 's/^/| /' conftest.$ac_ext >&5
15997
ac_cv_type_ssize_t=no
15999
rm -f conftest.$ac_objext conftest.$ac_ext
16001
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16002
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16004
if test "$ac_cv_type_ssize_t" = no; then
16006
case "$ac_cv_sizeof_size_t" in
16007
"$ac_cv_sizeof_int")
16008
ssize_t_decl="typedef int ssize_t;";;
16009
"$ac_cv_sizeof_char")
16010
ssize_t_decl="typedef char ssize_t;";;
16011
"$ac_cv_sizeof_short")
16012
ssize_t_decl="typedef short ssize_t;";;
16013
"$ac_cv_sizeof_long")
16014
ssize_t_decl="typedef long ssize_t;";;
16016
{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
16017
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
16018
{ (exit 1); exit 1; }; };;
16022
# Find the largest integral type.
16024
echo "$as_me:$LINENO: checking for unsigned long long" >&5
16025
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16026
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16027
echo $ECHO_N "(cached) $ECHO_C" >&6
16029
cat >conftest.$ac_ext <<_ACEOF
16030
#line $LINENO "configure"
16033
cat confdefs.h >>conftest.$ac_ext
16034
cat >>conftest.$ac_ext <<_ACEOF
16035
/* end confdefs.h. */
16037
#include <sys/types.h>
16043
if ((unsigned long long *) 0)
16045
if (sizeof (unsigned long long))
16051
rm -f conftest.$ac_objext
16052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053
(eval $ac_compile) 2>&5
16055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056
(exit $ac_status); } &&
16057
{ ac_try='test -s conftest.$ac_objext'
16058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059
(eval $ac_try) 2>&5
16061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062
(exit $ac_status); }; }; then
16063
ac_cv_type_unsigned_long_long=yes
16065
echo "$as_me: failed program was:" >&5
16066
sed 's/^/| /' conftest.$ac_ext >&5
16068
ac_cv_type_unsigned_long_long=no
16070
rm -f conftest.$ac_objext conftest.$ac_ext
16072
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16073
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16075
if test "$ac_cv_type_unsigned_long_long" = no; then
16076
db_align_t_decl="typedef unsigned long db_align_t;"
16078
db_align_t_decl="typedef unsigned long long db_align_t;"
16081
# Find an integral type which is the same size as a pointer.
16084
case "$ac_cv_sizeof_char_p" in
16085
"$ac_cv_sizeof_unsigned_int")
16086
db_alignp_t_decl="typedef unsigned int db_alignp_t;";;
16087
"$ac_cv_sizeof_unsigned_char")
16088
db_alignp_t_decl="typedef unsigned char db_alignp_t;";;
16089
"$ac_cv_sizeof_unsigned_short")
16090
db_alignp_t_decl="typedef unsigned short db_alignp_t;";;
16091
"$ac_cv_sizeof_unsigned_long")
16092
db_alignp_t_decl="typedef unsigned long db_alignp_t;";;
16094
{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
16095
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
16096
{ (exit 1); exit 1; }; };;
16101
echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
16102
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
16103
if test "${db_cv_exit_defines+set}" = set; then
16104
echo $ECHO_N "(cached) $ECHO_C" >&6
16107
cat >conftest.$ac_ext <<_ACEOF
16108
#line $LINENO "configure"
16111
cat confdefs.h >>conftest.$ac_ext
16112
cat >>conftest.$ac_ext <<_ACEOF
16113
/* end confdefs.h. */
16114
#include <stdlib.h>
16118
return (EXIT_SUCCESS);
16123
rm -f conftest.$ac_objext
16124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125
(eval $ac_compile) 2>&5
16127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128
(exit $ac_status); } &&
16129
{ ac_try='test -s conftest.$ac_objext'
16130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131
(eval $ac_try) 2>&5
16133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134
(exit $ac_status); }; }; then
16135
db_cv_exit_defines=yes
16137
echo "$as_me: failed program was:" >&5
16138
sed 's/^/| /' conftest.$ac_ext >&5
16140
db_cv_exit_defines=no
16142
rm -f conftest.$ac_objext conftest.$ac_ext
16144
echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
16145
echo "${ECHO_T}$db_cv_exit_defines" >&6
16146
if test "$db_cv_exit_defines" = yes; then
16147
cat >>confdefs.h <<\_ACEOF
16148
#define HAVE_EXIT_SUCCESS 1
16155
# Test for various functions/libraries that the test and example programs use:
16156
# sched_yield function
16157
# pthreads, socket and math libraries
16158
echo "$as_me:$LINENO: checking for sched_yield" >&5
16159
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
16160
if test "${ac_cv_func_sched_yield+set}" = set; then
16161
echo $ECHO_N "(cached) $ECHO_C" >&6
16163
cat >conftest.$ac_ext <<_ACEOF
16164
#line $LINENO "configure"
16167
cat confdefs.h >>conftest.$ac_ext
16168
cat >>conftest.$ac_ext <<_ACEOF
16169
/* end confdefs.h. */
16170
/* System header to define __stub macros and hopefully few prototypes,
16171
which can conflict with char sched_yield (); below.
16172
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16173
<limits.h> exists even on freestanding compilers. */
16175
# include <limits.h>
16177
# include <assert.h>
16179
/* Override any gcc2 internal prototype to avoid an error. */
16184
/* We use char because int might match the return type of a gcc2
16185
builtin and then its argument prototype would still apply. */
16186
char sched_yield ();
16187
/* The GNU C library defines this for functions which it implements
16188
to always fail with ENOSYS. Some functions are actually named
16189
something starting with __ and the normal name is an alias. */
16190
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
16193
char (*f) () = sched_yield;
16202
return f != sched_yield;
16207
rm -f conftest.$ac_objext conftest$ac_exeext
16208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209
(eval $ac_link) 2>&5
16211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212
(exit $ac_status); } &&
16213
{ ac_try='test -s conftest$ac_exeext'
16214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215
(eval $ac_try) 2>&5
16217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218
(exit $ac_status); }; }; then
16219
ac_cv_func_sched_yield=yes
16221
echo "$as_me: failed program was:" >&5
16222
sed 's/^/| /' conftest.$ac_ext >&5
16224
ac_cv_func_sched_yield=no
16226
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228
echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
16229
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
16230
if test $ac_cv_func_sched_yield = yes; then
16233
echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
16234
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
16235
if test "${ac_cv_search_sched_yield+set}" = set; then
16236
echo $ECHO_N "(cached) $ECHO_C" >&6
16238
ac_func_search_save_LIBS=$LIBS
16239
ac_cv_search_sched_yield=no
16240
cat >conftest.$ac_ext <<_ACEOF
16241
#line $LINENO "configure"
16244
cat confdefs.h >>conftest.$ac_ext
16245
cat >>conftest.$ac_ext <<_ACEOF
16246
/* end confdefs.h. */
16248
/* Override any gcc2 internal prototype to avoid an error. */
16252
/* We use char because int might match the return type of a gcc2
16253
builtin and then its argument prototype would still apply. */
16254
char sched_yield ();
16263
rm -f conftest.$ac_objext conftest$ac_exeext
16264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265
(eval $ac_link) 2>&5
16267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268
(exit $ac_status); } &&
16269
{ ac_try='test -s conftest$ac_exeext'
16270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271
(eval $ac_try) 2>&5
16273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274
(exit $ac_status); }; }; then
16275
ac_cv_search_sched_yield="none required"
16277
echo "$as_me: failed program was:" >&5
16278
sed 's/^/| /' conftest.$ac_ext >&5
16281
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282
if test "$ac_cv_search_sched_yield" = no; then
16283
for ac_lib in rt; do
16284
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16285
cat >conftest.$ac_ext <<_ACEOF
16286
#line $LINENO "configure"
16289
cat confdefs.h >>conftest.$ac_ext
16290
cat >>conftest.$ac_ext <<_ACEOF
16291
/* end confdefs.h. */
16293
/* Override any gcc2 internal prototype to avoid an error. */
16297
/* We use char because int might match the return type of a gcc2
16298
builtin and then its argument prototype would still apply. */
16299
char sched_yield ();
16308
rm -f conftest.$ac_objext conftest$ac_exeext
16309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310
(eval $ac_link) 2>&5
16312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313
(exit $ac_status); } &&
16314
{ ac_try='test -s conftest$ac_exeext'
16315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316
(eval $ac_try) 2>&5
16318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319
(exit $ac_status); }; }; then
16320
ac_cv_search_sched_yield="-l$ac_lib"
16323
echo "$as_me: failed program was:" >&5
16324
sed 's/^/| /' conftest.$ac_ext >&5
16327
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16330
LIBS=$ac_func_search_save_LIBS
16332
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
16333
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
16334
if test "$ac_cv_search_sched_yield" != no; then
16335
test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
16336
LOAD_LIBS="$LOAD_LIBS -lrt"
16343
# We can't check for pthreads in the same way we did the test for sched_yield
16344
# because the Solaris C library includes pthread interfaces which are not
16345
# thread-safe. For that reason we always add -lpthread if we find a pthread
16346
# library. Also we can't depend on any specific call existing (pthread_create,
16347
# for example), as it may be #defined in an include file -- OSF/1 (Tru64) has
16349
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
16350
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
16351
if test "${ac_cv_lib_pthread_main+set}" = set; then
16352
echo $ECHO_N "(cached) $ECHO_C" >&6
16354
ac_check_lib_save_LIBS=$LIBS
16355
LIBS="-lpthread $LIBS"
16356
cat >conftest.$ac_ext <<_ACEOF
16357
#line $LINENO "configure"
16360
cat confdefs.h >>conftest.$ac_ext
16361
cat >>conftest.$ac_ext <<_ACEOF
16362
/* end confdefs.h. */
16373
rm -f conftest.$ac_objext conftest$ac_exeext
16374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375
(eval $ac_link) 2>&5
16377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378
(exit $ac_status); } &&
16379
{ ac_try='test -s conftest$ac_exeext'
16380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381
(eval $ac_try) 2>&5
16383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384
(exit $ac_status); }; }; then
16385
ac_cv_lib_pthread_main=yes
16387
echo "$as_me: failed program was:" >&5
16388
sed 's/^/| /' conftest.$ac_ext >&5
16390
ac_cv_lib_pthread_main=no
16392
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16393
LIBS=$ac_check_lib_save_LIBS
16395
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
16396
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
16397
if test $ac_cv_lib_pthread_main = yes; then
16398
LOAD_LIBS="$LOAD_LIBS -lpthread"
16400
ac_cv_lib_pthread=ac_cv_lib_pthread_main
16404
# We could be more exact about whether these libraries are needed, but we don't
16405
# bother -- if they exist, we load them.
16406
echo "$as_me:$LINENO: checking for main in -lm" >&5
16407
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
16408
if test "${ac_cv_lib_m_main+set}" = set; then
16409
echo $ECHO_N "(cached) $ECHO_C" >&6
16411
ac_check_lib_save_LIBS=$LIBS
16413
cat >conftest.$ac_ext <<_ACEOF
16414
#line $LINENO "configure"
16417
cat confdefs.h >>conftest.$ac_ext
16418
cat >>conftest.$ac_ext <<_ACEOF
16419
/* end confdefs.h. */
16430
rm -f conftest.$ac_objext conftest$ac_exeext
16431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432
(eval $ac_link) 2>&5
16434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435
(exit $ac_status); } &&
16436
{ ac_try='test -s conftest$ac_exeext'
16437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438
(eval $ac_try) 2>&5
16440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441
(exit $ac_status); }; }; then
16442
ac_cv_lib_m_main=yes
16444
echo "$as_me: failed program was:" >&5
16445
sed 's/^/| /' conftest.$ac_ext >&5
16447
ac_cv_lib_m_main=no
16449
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16450
LIBS=$ac_check_lib_save_LIBS
16452
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
16453
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
16454
if test $ac_cv_lib_m_main = yes; then
16455
LOAD_LIBS="$LOAD_LIBS -lm"
16457
ac_cv_lib_m=ac_cv_lib_m_main
16459
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
16460
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
16461
if test "${ac_cv_lib_socket_main+set}" = set; then
16462
echo $ECHO_N "(cached) $ECHO_C" >&6
16464
ac_check_lib_save_LIBS=$LIBS
16465
LIBS="-lsocket $LIBS"
16466
cat >conftest.$ac_ext <<_ACEOF
16467
#line $LINENO "configure"
16470
cat confdefs.h >>conftest.$ac_ext
16471
cat >>conftest.$ac_ext <<_ACEOF
16472
/* end confdefs.h. */
16483
rm -f conftest.$ac_objext conftest$ac_exeext
16484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485
(eval $ac_link) 2>&5
16487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488
(exit $ac_status); } &&
16489
{ ac_try='test -s conftest$ac_exeext'
16490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491
(eval $ac_try) 2>&5
16493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494
(exit $ac_status); }; }; then
16495
ac_cv_lib_socket_main=yes
16497
echo "$as_me: failed program was:" >&5
16498
sed 's/^/| /' conftest.$ac_ext >&5
16500
ac_cv_lib_socket_main=no
16502
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16503
LIBS=$ac_check_lib_save_LIBS
16505
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
16506
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
16507
if test $ac_cv_lib_socket_main = yes; then
16508
LOAD_LIBS="$LOAD_LIBS -lsocket"
16510
ac_cv_lib_socket=ac_cv_lib_socket_main
16512
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
16513
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
16514
if test "${ac_cv_lib_nsl_main+set}" = set; then
16515
echo $ECHO_N "(cached) $ECHO_C" >&6
16517
ac_check_lib_save_LIBS=$LIBS
16519
cat >conftest.$ac_ext <<_ACEOF
16520
#line $LINENO "configure"
16523
cat confdefs.h >>conftest.$ac_ext
16524
cat >>conftest.$ac_ext <<_ACEOF
16525
/* end confdefs.h. */
16536
rm -f conftest.$ac_objext conftest$ac_exeext
16537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16538
(eval $ac_link) 2>&5
16540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541
(exit $ac_status); } &&
16542
{ ac_try='test -s conftest$ac_exeext'
16543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544
(eval $ac_try) 2>&5
16546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547
(exit $ac_status); }; }; then
16548
ac_cv_lib_nsl_main=yes
16550
echo "$as_me: failed program was:" >&5
16551
sed 's/^/| /' conftest.$ac_ext >&5
16553
ac_cv_lib_nsl_main=no
16555
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16556
LIBS=$ac_check_lib_save_LIBS
16558
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
16559
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
16560
if test $ac_cv_lib_nsl_main = yes; then
16561
LOAD_LIBS="$LOAD_LIBS -lnsl"
16563
ac_cv_lib_nsl=ac_cv_lib_nsl_main
16566
# Check for mutexes.
16567
# We do this here because it changes $LIBS.
16570
# Mutexes we don't test for, but want the #defines to exist for
16579
echo "$as_me:$LINENO: checking for mutexes" >&5
16580
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
16581
if test "${db_cv_mutex+set}" = set; then
16582
echo $ECHO_N "(cached) $ECHO_C" >&6
16589
# User-specified POSIX or UI mutexes.
16591
# There are two different reasons to specify mutexes: First, the application
16592
# is already using one type of mutex and doesn't want to mix-and-match (for
16593
# example, on Solaris, which has POSIX, UI and LWP mutexes). Second, the
16594
# applications POSIX pthreads mutexes don't support inter-process locking,
16595
# but the application wants to use them anyway (for example, current Linux
16596
# and *BSD systems).
16598
# If we're on Solaris, we insist that -lthread or -lpthread be used. The
16599
# problem is the Solaris C library has UI/POSIX interface stubs, but they're
16600
# broken, configuring them for inter-process mutexes doesn't return an error,
16601
# but it doesn't work either. Otherwise, we try first without the library
16602
# and then with it: there's some information that SCO/UnixWare/OpenUNIX needs
16605
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
16606
# on Solaris. There's a bug in SunOS 5.7 where applications get pwrite, not
16607
# pwrite64, if they load the C library before the appropriate threads library,
16608
# e.g., tclsh using dlopen to load the DB library. By using LWP threads we
16609
# avoid answering lots of user questions, not to mention the bugs.
16610
if test "$db_cv_posixmutexes" = yes; then
16613
db_cv_mutex="posix_library_only";;
16615
db_cv_mutex="posix_only";;
16619
if test "$db_cv_uimutexes" = yes; then
16622
db_cv_mutex="ui_library_only";;
16624
db_cv_mutex="ui_only";;
16628
# LWP threads: _lwp_XXX
16629
if test "$db_cv_mutex" = no; then
16630
cat >conftest.$ac_ext <<_ACEOF
16631
#line $LINENO "configure"
16634
cat confdefs.h >>conftest.$ac_ext
16635
cat >>conftest.$ac_ext <<_ACEOF
16636
/* end confdefs.h. */
16643
static lwp_mutex_t mi = SHAREDMUTEX;
16644
static lwp_cond_t ci = SHAREDCV;
16645
lwp_mutex_t mutex = mi;
16646
lwp_cond_t cond = ci;
16648
_lwp_mutex_lock(&mutex) ||
16649
_lwp_mutex_unlock(&mutex));
16655
rm -f conftest.$ac_objext conftest$ac_exeext
16656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657
(eval $ac_link) 2>&5
16659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660
(exit $ac_status); } &&
16661
{ ac_try='test -s conftest$ac_exeext'
16662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663
(eval $ac_try) 2>&5
16665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666
(exit $ac_status); }; }; then
16667
db_cv_mutex="Solaris/lwp"
16669
echo "$as_me: failed program was:" >&5
16670
sed 's/^/| /' conftest.$ac_ext >&5
16673
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16676
# UI threads: thr_XXX
16678
# Try with and without the -lthread library.
16679
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
16680
cat >conftest.$ac_ext <<_ACEOF
16681
#line $LINENO "configure"
16684
cat confdefs.h >>conftest.$ac_ext
16685
cat >>conftest.$ac_ext <<_ACEOF
16686
/* end confdefs.h. */
16688
#include <thread.h>
16696
int type = USYNC_PROCESS;
16698
mutex_init(&mutex, type, NULL) ||
16699
cond_init(&cond, type, NULL) ||
16700
mutex_lock(&mutex) ||
16701
mutex_unlock(&mutex));
16707
rm -f conftest.$ac_objext conftest$ac_exeext
16708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709
(eval $ac_link) 2>&5
16711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712
(exit $ac_status); } &&
16713
{ ac_try='test -s conftest$ac_exeext'
16714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715
(eval $ac_try) 2>&5
16717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718
(exit $ac_status); }; }; then
16719
db_cv_mutex="UI/threads"
16721
echo "$as_me: failed program was:" >&5
16722
sed 's/^/| /' conftest.$ac_ext >&5
16725
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16727
if test "$db_cv_mutex" = no -o \
16728
"$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
16729
LIBS="$LIBS -lthread"
16730
cat >conftest.$ac_ext <<_ACEOF
16731
#line $LINENO "configure"
16734
cat confdefs.h >>conftest.$ac_ext
16735
cat >>conftest.$ac_ext <<_ACEOF
16736
/* end confdefs.h. */
16738
#include <thread.h>
16746
int type = USYNC_PROCESS;
16748
mutex_init(&mutex, type, NULL) ||
16749
cond_init(&cond, type, NULL) ||
16750
mutex_lock(&mutex) ||
16751
mutex_unlock(&mutex));
16757
rm -f conftest.$ac_objext conftest$ac_exeext
16758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759
(eval $ac_link) 2>&5
16761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762
(exit $ac_status); } &&
16763
{ ac_try='test -s conftest$ac_exeext'
16764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765
(eval $ac_try) 2>&5
16767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768
(exit $ac_status); }; }; then
16769
db_cv_mutex="UI/threads/library"
16771
echo "$as_me: failed program was:" >&5
16772
sed 's/^/| /' conftest.$ac_ext >&5
16775
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16778
if test "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
16779
{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
16780
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
16781
{ (exit 1); exit 1; }; }
16784
# POSIX.1 pthreads: pthread_XXX
16786
# Try with and without the -lpthread library. If the user specified we use
16787
# POSIX pthreads mutexes, and we fail to find the full interface, try and
16788
# configure for just intra-process support.
16789
if test "$db_cv_pthreadsmutexes" = yes; then
16790
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
16792
if test "$cross_compiling" = yes; then
16795
cat >conftest.$ac_ext <<_ACEOF
16796
#line $LINENO "configure"
16799
cat confdefs.h >>conftest.$ac_ext
16800
cat >>conftest.$ac_ext <<_ACEOF
16801
/* end confdefs.h. */
16803
#include <pthread.h>
16805
pthread_cond_t cond;
16806
pthread_mutex_t mutex;
16807
pthread_condattr_t condattr;
16808
pthread_mutexattr_t mutexattr;
16810
pthread_condattr_init(&condattr) ||
16811
pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
16812
pthread_mutexattr_init(&mutexattr) ||
16813
pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
16814
pthread_cond_init(&cond, &condattr) ||
16815
pthread_mutex_init(&mutex, &mutexattr) ||
16816
pthread_mutex_lock(&mutex) ||
16817
pthread_mutex_unlock(&mutex) ||
16818
pthread_mutex_destroy(&mutex) ||
16819
pthread_cond_destroy(&cond) ||
16820
pthread_condattr_destroy(&condattr) ||
16821
pthread_mutexattr_destroy(&mutexattr));
16824
rm -f conftest$ac_exeext
16825
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16826
(eval $ac_link) 2>&5
16828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831
(eval $ac_try) 2>&5
16833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834
(exit $ac_status); }; }; then
16835
db_cv_mutex=""POSIX/pthreads""
16837
echo "$as_me: program exited with status $ac_status" >&5
16838
echo "$as_me: failed program was:" >&5
16839
sed 's/^/| /' conftest.$ac_ext >&5
16842
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16845
if test "$db_cv_mutex" = no -o \
16846
"$db_cv_mutex" = "posix_only" -o \
16847
"$db_cv_mutex" = "posix_library_only"; then
16848
LIBS="$LIBS -lpthread"
16850
if test "$cross_compiling" = yes; then
16853
cat >conftest.$ac_ext <<_ACEOF
16854
#line $LINENO "configure"
16857
cat confdefs.h >>conftest.$ac_ext
16858
cat >>conftest.$ac_ext <<_ACEOF
16859
/* end confdefs.h. */
16861
#include <pthread.h>
16863
pthread_cond_t cond;
16864
pthread_mutex_t mutex;
16865
pthread_condattr_t condattr;
16866
pthread_mutexattr_t mutexattr;
16868
pthread_condattr_init(&condattr) ||
16869
pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
16870
pthread_mutexattr_init(&mutexattr) ||
16871
pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
16872
pthread_cond_init(&cond, &condattr) ||
16873
pthread_mutex_init(&mutex, &mutexattr) ||
16874
pthread_mutex_lock(&mutex) ||
16875
pthread_mutex_unlock(&mutex) ||
16876
pthread_mutex_destroy(&mutex) ||
16877
pthread_cond_destroy(&cond) ||
16878
pthread_condattr_destroy(&condattr) ||
16879
pthread_mutexattr_destroy(&mutexattr));
16882
rm -f conftest$ac_exeext
16883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16884
(eval $ac_link) 2>&5
16886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889
(eval $ac_try) 2>&5
16891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892
(exit $ac_status); }; }; then
16893
db_cv_mutex=""POSIX/pthreads/library""
16895
echo "$as_me: program exited with status $ac_status" >&5
16896
echo "$as_me: failed program was:" >&5
16897
sed 's/^/| /' conftest.$ac_ext >&5
16900
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16904
if test "$db_cv_mutex" = "posix_only"; then
16906
if test "$cross_compiling" = yes; then
16907
cat >conftest.$ac_ext <<_ACEOF
16908
#line $LINENO "configure"
16911
cat confdefs.h >>conftest.$ac_ext
16912
cat >>conftest.$ac_ext <<_ACEOF
16913
/* end confdefs.h. */
16915
#include <pthread.h>
16920
pthread_cond_t cond;
16921
pthread_mutex_t mutex;
16922
pthread_condattr_t condattr;
16923
pthread_mutexattr_t mutexattr;
16925
pthread_condattr_init(&condattr) ||
16926
pthread_mutexattr_init(&mutexattr) ||
16927
pthread_cond_init(&cond, &condattr) ||
16928
pthread_mutex_init(&mutex, &mutexattr) ||
16929
pthread_mutex_lock(&mutex) ||
16930
pthread_mutex_unlock(&mutex) ||
16931
pthread_mutex_destroy(&mutex) ||
16932
pthread_cond_destroy(&cond) ||
16933
pthread_condattr_destroy(&condattr) ||
16934
pthread_mutexattr_destroy(&mutexattr));
16940
rm -f conftest.$ac_objext conftest$ac_exeext
16941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942
(eval $ac_link) 2>&5
16944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945
(exit $ac_status); } &&
16946
{ ac_try='test -s conftest$ac_exeext'
16947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948
(eval $ac_try) 2>&5
16950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951
(exit $ac_status); }; }; then
16952
db_cv_mutex=""POSIX/pthreads/private""
16954
echo "$as_me: failed program was:" >&5
16955
sed 's/^/| /' conftest.$ac_ext >&5
16958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16960
cat >conftest.$ac_ext <<_ACEOF
16961
#line $LINENO "configure"
16964
cat confdefs.h >>conftest.$ac_ext
16965
cat >>conftest.$ac_ext <<_ACEOF
16966
/* end confdefs.h. */
16968
#include <pthread.h>
16970
pthread_cond_t cond;
16971
pthread_mutex_t mutex;
16972
pthread_condattr_t condattr;
16973
pthread_mutexattr_t mutexattr;
16975
pthread_condattr_init(&condattr) ||
16976
pthread_mutexattr_init(&mutexattr) ||
16977
pthread_cond_init(&cond, &condattr) ||
16978
pthread_mutex_init(&mutex, &mutexattr) ||
16979
pthread_mutex_lock(&mutex) ||
16980
pthread_mutex_unlock(&mutex) ||
16981
pthread_mutex_destroy(&mutex) ||
16982
pthread_cond_destroy(&cond) ||
16983
pthread_condattr_destroy(&condattr) ||
16984
pthread_mutexattr_destroy(&mutexattr));
16987
rm -f conftest$ac_exeext
16988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989
(eval $ac_link) 2>&5
16991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994
(eval $ac_try) 2>&5
16996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997
(exit $ac_status); }; }; then
16998
db_cv_mutex=""POSIX/pthreads/private""
17000
echo "$as_me: program exited with status $ac_status" >&5
17001
echo "$as_me: failed program was:" >&5
17002
sed 's/^/| /' conftest.$ac_ext >&5
17005
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008
if test "$db_cv_mutex" = "posix_only" -o \
17009
"$db_cv_mutex" = "posix_library_only"; then
17010
LIBS="$LIBS -lpthread"
17012
if test "$cross_compiling" = yes; then
17013
cat >conftest.$ac_ext <<_ACEOF
17014
#line $LINENO "configure"
17017
cat confdefs.h >>conftest.$ac_ext
17018
cat >>conftest.$ac_ext <<_ACEOF
17019
/* end confdefs.h. */
17021
#include <pthread.h>
17026
pthread_cond_t cond;
17027
pthread_mutex_t mutex;
17028
pthread_condattr_t condattr;
17029
pthread_mutexattr_t mutexattr;
17031
pthread_condattr_init(&condattr) ||
17032
pthread_mutexattr_init(&mutexattr) ||
17033
pthread_cond_init(&cond, &condattr) ||
17034
pthread_mutex_init(&mutex, &mutexattr) ||
17035
pthread_mutex_lock(&mutex) ||
17036
pthread_mutex_unlock(&mutex) ||
17037
pthread_mutex_destroy(&mutex) ||
17038
pthread_cond_destroy(&cond) ||
17039
pthread_condattr_destroy(&condattr) ||
17040
pthread_mutexattr_destroy(&mutexattr));
17046
rm -f conftest.$ac_objext conftest$ac_exeext
17047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048
(eval $ac_link) 2>&5
17050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051
(exit $ac_status); } &&
17052
{ ac_try='test -s conftest$ac_exeext'
17053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054
(eval $ac_try) 2>&5
17056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057
(exit $ac_status); }; }; then
17058
db_cv_mutex=""POSIX/pthreads/library/private""
17060
echo "$as_me: failed program was:" >&5
17061
sed 's/^/| /' conftest.$ac_ext >&5
17064
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17066
cat >conftest.$ac_ext <<_ACEOF
17067
#line $LINENO "configure"
17070
cat confdefs.h >>conftest.$ac_ext
17071
cat >>conftest.$ac_ext <<_ACEOF
17072
/* end confdefs.h. */
17074
#include <pthread.h>
17076
pthread_cond_t cond;
17077
pthread_mutex_t mutex;
17078
pthread_condattr_t condattr;
17079
pthread_mutexattr_t mutexattr;
17081
pthread_condattr_init(&condattr) ||
17082
pthread_mutexattr_init(&mutexattr) ||
17083
pthread_cond_init(&cond, &condattr) ||
17084
pthread_mutex_init(&mutex, &mutexattr) ||
17085
pthread_mutex_lock(&mutex) ||
17086
pthread_mutex_unlock(&mutex) ||
17087
pthread_mutex_destroy(&mutex) ||
17088
pthread_cond_destroy(&cond) ||
17089
pthread_condattr_destroy(&condattr) ||
17090
pthread_mutexattr_destroy(&mutexattr));
17093
rm -f conftest$ac_exeext
17094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095
(eval $ac_link) 2>&5
17097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100
(eval $ac_try) 2>&5
17102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103
(exit $ac_status); }; }; then
17104
db_cv_mutex=""POSIX/pthreads/library/private""
17106
echo "$as_me: program exited with status $ac_status" >&5
17107
echo "$as_me: failed program was:" >&5
17108
sed 's/^/| /' conftest.$ac_ext >&5
17111
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17116
if test "$db_cv_mutex" = "posix_only" -o \
17117
"$db_cv_mutex" = "posix_library_only"; then
17118
{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
17119
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
17120
{ (exit 1); exit 1; }; }
17124
# msemaphore: HPPA only
17125
# Try HPPA before general msem test, it needs special alignment.
17126
if test "$db_cv_mutex" = no; then
17127
cat >conftest.$ac_ext <<_ACEOF
17128
#line $LINENO "configure"
17131
cat confdefs.h >>conftest.$ac_ext
17132
cat >>conftest.$ac_ext <<_ACEOF
17133
/* end confdefs.h. */
17135
#include <sys/mman.h>
17140
#if defined(__hppa__)
17141
typedef msemaphore tsl_t;
17145
msem_unlock(&x, 0);
17148
FAIL TO COMPILE/LINK
17155
rm -f conftest.$ac_objext conftest$ac_exeext
17156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157
(eval $ac_link) 2>&5
17159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160
(exit $ac_status); } &&
17161
{ ac_try='test -s conftest$ac_exeext'
17162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163
(eval $ac_try) 2>&5
17165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166
(exit $ac_status); }; }; then
17167
db_cv_mutex="HP/msem_init"
17169
echo "$as_me: failed program was:" >&5
17170
sed 's/^/| /' conftest.$ac_ext >&5
17173
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17176
# msemaphore: AIX, OSF/1
17177
if test "$db_cv_mutex" = no; then
17178
cat >conftest.$ac_ext <<_ACEOF
17179
#line $LINENO "configure"
17182
cat confdefs.h >>conftest.$ac_ext
17183
cat >>conftest.$ac_ext <<_ACEOF
17184
/* end confdefs.h. */
17186
#include <sys/types.h>
17187
#include <sys/mman.h>
17192
typedef msemaphore tsl_t;
17196
msem_unlock(&x, 0);
17203
rm -f conftest.$ac_objext conftest$ac_exeext
17204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205
(eval $ac_link) 2>&5
17207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208
(exit $ac_status); } &&
17209
{ ac_try='test -s conftest$ac_exeext'
17210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211
(eval $ac_try) 2>&5
17213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214
(exit $ac_status); }; }; then
17215
db_cv_mutex="UNIX/msem_init"
17217
echo "$as_me: failed program was:" >&5
17218
sed 's/^/| /' conftest.$ac_ext >&5
17221
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17225
if test "$db_cv_mutex" = no; then
17226
LIBS="$LIBS -lmproc"
17227
cat >conftest.$ac_ext <<_ACEOF
17228
#line $LINENO "configure"
17231
cat confdefs.h >>conftest.$ac_ext
17232
cat >>conftest.$ac_ext <<_ACEOF
17233
/* end confdefs.h. */
17235
#include <ulocks.h>
17240
typedef spinlock_t tsl_t;
17250
rm -f conftest.$ac_objext conftest$ac_exeext
17251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252
(eval $ac_link) 2>&5
17254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255
(exit $ac_status); } &&
17256
{ ac_try='test -s conftest$ac_exeext'
17257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258
(eval $ac_try) 2>&5
17260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261
(exit $ac_status); }; }; then
17262
db_cv_mutex="ReliantUNIX/initspin"
17264
echo "$as_me: failed program was:" >&5
17265
sed 's/^/| /' conftest.$ac_ext >&5
17268
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17272
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
17273
if test "$db_cv_mutex" = no; then
17274
cat >conftest.$ac_ext <<_ACEOF
17275
#line $LINENO "configure"
17278
cat confdefs.h >>conftest.$ac_ext
17279
cat >>conftest.$ac_ext <<_ACEOF
17280
/* end confdefs.h. */
17286
#if defined(__USLC__)
17289
FAIL TO COMPILE/LINK
17296
rm -f conftest.$ac_objext
17297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298
(eval $ac_compile) 2>&5
17300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
(exit $ac_status); } &&
17302
{ ac_try='test -s conftest.$ac_objext'
17303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304
(eval $ac_try) 2>&5
17306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307
(exit $ac_status); }; }; then
17308
db_cv_mutex="SCO/x86/cc-assembly"
17310
echo "$as_me: failed program was:" >&5
17311
sed 's/^/| /' conftest.$ac_ext >&5
17314
rm -f conftest.$ac_objext conftest.$ac_ext
17318
if test "$db_cv_mutex" = no; then
17319
cat >conftest.$ac_ext <<_ACEOF
17320
#line $LINENO "configure"
17323
cat confdefs.h >>conftest.$ac_ext
17324
cat >>conftest.$ac_ext <<_ACEOF
17325
/* end confdefs.h. */
17327
#include <abi_mutex.h>
17332
typedef abilock_t tsl_t;
17342
rm -f conftest.$ac_objext conftest$ac_exeext
17343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17344
(eval $ac_link) 2>&5
17346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
(exit $ac_status); } &&
17348
{ ac_try='test -s conftest$ac_exeext'
17349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350
(eval $ac_try) 2>&5
17352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353
(exit $ac_status); }; }; then
17354
db_cv_mutex="SGI/init_lock"
17356
echo "$as_me: failed program was:" >&5
17357
sed 's/^/| /' conftest.$ac_ext >&5
17360
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17364
# The sema_XXX calls do not work on Solaris 5.5. I see no reason to ever
17365
# turn this test on, unless we find some other platform that uses the old
17366
# POSIX.1 interfaces. (I plan to move directly to pthreads on Solaris.)
17367
if test "$db_cv_mutex" = DOESNT_WORK; then
17368
cat >conftest.$ac_ext <<_ACEOF
17369
#line $LINENO "configure"
17372
cat confdefs.h >>conftest.$ac_ext
17373
cat >>conftest.$ac_ext <<_ACEOF
17374
/* end confdefs.h. */
17381
typedef sema_t tsl_t;
17383
sema_init(&x, 1, USYNC_PROCESS, NULL);
17391
rm -f conftest.$ac_objext conftest$ac_exeext
17392
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393
(eval $ac_link) 2>&5
17395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396
(exit $ac_status); } &&
17397
{ ac_try='test -s conftest$ac_exeext'
17398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399
(eval $ac_try) 2>&5
17401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402
(exit $ac_status); }; }; then
17403
db_cv_mutex="UNIX/sema_init"
17405
echo "$as_me: failed program was:" >&5
17406
sed 's/^/| /' conftest.$ac_ext >&5
17409
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17412
# _lock_try/_lock_clear: Solaris
17413
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
17414
# undocumented _lock_try _lock_clear function calls instead of either the
17415
# sema_trywait(3T) or sema_wait(3T) function calls. This is because of
17416
# problems in those interfaces in some releases of the Solaris C library.
17417
if test "$db_cv_mutex" = no; then
17418
cat >conftest.$ac_ext <<_ACEOF
17419
#line $LINENO "configure"
17422
cat confdefs.h >>conftest.$ac_ext
17423
cat >>conftest.$ac_ext <<_ACEOF
17424
/* end confdefs.h. */
17426
#include <sys/machlock.h>
17431
typedef lock_t tsl_t;
17440
rm -f conftest.$ac_objext conftest$ac_exeext
17441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442
(eval $ac_link) 2>&5
17444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445
(exit $ac_status); } &&
17446
{ ac_try='test -s conftest$ac_exeext'
17447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448
(eval $ac_try) 2>&5
17450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451
(exit $ac_status); }; }; then
17452
db_cv_mutex="Solaris/_lock_try"
17454
echo "$as_me: failed program was:" >&5
17455
sed 's/^/| /' conftest.$ac_ext >&5
17458
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17461
# _check_lock/_clear_lock: AIX
17462
if test "$db_cv_mutex" = no; then
17463
cat >conftest.$ac_ext <<_ACEOF
17464
#line $LINENO "configure"
17467
cat confdefs.h >>conftest.$ac_ext
17468
cat >>conftest.$ac_ext <<_ACEOF
17469
/* end confdefs.h. */
17471
#include <sys/atomic_op.h>
17477
_check_lock(&x,0,1);
17484
rm -f conftest.$ac_objext conftest$ac_exeext
17485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486
(eval $ac_link) 2>&5
17488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
(exit $ac_status); } &&
17490
{ ac_try='test -s conftest$ac_exeext'
17491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492
(eval $ac_try) 2>&5
17494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
(exit $ac_status); }; }; then
17496
db_cv_mutex="AIX/_check_lock"
17498
echo "$as_me: failed program was:" >&5
17499
sed 's/^/| /' conftest.$ac_ext >&5
17502
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17506
if test "$db_cv_mutex" = no; then
17507
cat >conftest.$ac_ext <<_ACEOF
17508
#line $LINENO "configure"
17511
cat confdefs.h >>conftest.$ac_ext
17512
cat >>conftest.$ac_ext <<_ACEOF
17513
/* end confdefs.h. */
17519
#if defined(__alpha) && defined(__GNUC__)
17522
FAIL TO COMPILE/LINK
17529
rm -f conftest.$ac_objext
17530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531
(eval $ac_compile) 2>&5
17533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534
(exit $ac_status); } &&
17535
{ ac_try='test -s conftest.$ac_objext'
17536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537
(eval $ac_try) 2>&5
17539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540
(exit $ac_status); }; }; then
17541
db_cv_mutex="ALPHA/gcc-assembly"
17543
echo "$as_me: failed program was:" >&5
17544
sed 's/^/| /' conftest.$ac_ext >&5
17547
rm -f conftest.$ac_objext conftest.$ac_ext
17551
if test "$db_cv_mutex" = no; then
17552
cat >conftest.$ac_ext <<_ACEOF
17553
#line $LINENO "configure"
17556
cat confdefs.h >>conftest.$ac_ext
17557
cat >>conftest.$ac_ext <<_ACEOF
17558
/* end confdefs.h. */
17564
#if defined(__arm__) && defined(__GNUC__)
17567
FAIL TO COMPILE/LINK
17574
rm -f conftest.$ac_objext
17575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576
(eval $ac_compile) 2>&5
17578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579
(exit $ac_status); } &&
17580
{ ac_try='test -s conftest.$ac_objext'
17581
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582
(eval $ac_try) 2>&5
17584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585
(exit $ac_status); }; }; then
17586
db_cv_mutex="ARM/gcc-assembly"
17588
echo "$as_me: failed program was:" >&5
17589
sed 's/^/| /' conftest.$ac_ext >&5
17592
rm -f conftest.$ac_objext conftest.$ac_ext
17596
if test "$db_cv_mutex" = no; then
17597
cat >conftest.$ac_ext <<_ACEOF
17598
#line $LINENO "configure"
17601
cat confdefs.h >>conftest.$ac_ext
17602
cat >>conftest.$ac_ext <<_ACEOF
17603
/* end confdefs.h. */
17609
#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
17612
FAIL TO COMPILE/LINK
17619
rm -f conftest.$ac_objext
17620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17621
(eval $ac_compile) 2>&5
17623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624
(exit $ac_status); } &&
17625
{ ac_try='test -s conftest.$ac_objext'
17626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627
(eval $ac_try) 2>&5
17629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630
(exit $ac_status); }; }; then
17631
db_cv_mutex="MIPS/gcc-assembly"
17633
echo "$as_me: failed program was:" >&5
17634
sed 's/^/| /' conftest.$ac_ext >&5
17637
rm -f conftest.$ac_objext conftest.$ac_ext
17640
# PaRisc/gcc: HP/UX
17641
if test "$db_cv_mutex" = no; then
17642
cat >conftest.$ac_ext <<_ACEOF
17643
#line $LINENO "configure"
17646
cat confdefs.h >>conftest.$ac_ext
17647
cat >>conftest.$ac_ext <<_ACEOF
17648
/* end confdefs.h. */
17654
#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
17657
FAIL TO COMPILE/LINK
17664
rm -f conftest.$ac_objext
17665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17666
(eval $ac_compile) 2>&5
17668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669
(exit $ac_status); } &&
17670
{ ac_try='test -s conftest.$ac_objext'
17671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672
(eval $ac_try) 2>&5
17674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675
(exit $ac_status); }; }; then
17676
db_cv_mutex="HPPA/gcc-assembly"
17678
echo "$as_me: failed program was:" >&5
17679
sed 's/^/| /' conftest.$ac_ext >&5
17682
rm -f conftest.$ac_objext conftest.$ac_ext
17686
# Test for Apple first, it requires slightly different assembly.
17687
if test "$db_cv_mutex" = no; then
17688
cat >conftest.$ac_ext <<_ACEOF
17689
#line $LINENO "configure"
17692
cat confdefs.h >>conftest.$ac_ext
17693
cat >>conftest.$ac_ext <<_ACEOF
17694
/* end confdefs.h. */
17700
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__) && defined(__APPLE__)
17703
FAIL TO COMPILE/LINK
17710
rm -f conftest.$ac_objext
17711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17712
(eval $ac_compile) 2>&5
17714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715
(exit $ac_status); } &&
17716
{ ac_try='test -s conftest.$ac_objext'
17717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718
(eval $ac_try) 2>&5
17720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721
(exit $ac_status); }; }; then
17722
db_cv_mutex="PPC_APPLE/gcc-assembly"
17724
echo "$as_me: failed program was:" >&5
17725
sed 's/^/| /' conftest.$ac_ext >&5
17728
rm -f conftest.$ac_objext conftest.$ac_ext
17730
if test "$db_cv_mutex" = no; then
17731
cat >conftest.$ac_ext <<_ACEOF
17732
#line $LINENO "configure"
17735
cat confdefs.h >>conftest.$ac_ext
17736
cat >>conftest.$ac_ext <<_ACEOF
17737
/* end confdefs.h. */
17743
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
17746
FAIL TO COMPILE/LINK
17753
rm -f conftest.$ac_objext
17754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755
(eval $ac_compile) 2>&5
17757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
(exit $ac_status); } &&
17759
{ ac_try='test -s conftest.$ac_objext'
17760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761
(eval $ac_try) 2>&5
17763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764
(exit $ac_status); }; }; then
17765
db_cv_mutex="PPC_GENERIC/gcc-assembly"
17767
echo "$as_me: failed program was:" >&5
17768
sed 's/^/| /' conftest.$ac_ext >&5
17771
rm -f conftest.$ac_objext conftest.$ac_ext
17774
# Sparc/gcc: SunOS, Solaris
17775
if test "$db_cv_mutex" = no; then
17776
cat >conftest.$ac_ext <<_ACEOF
17777
#line $LINENO "configure"
17780
cat confdefs.h >>conftest.$ac_ext
17781
cat >>conftest.$ac_ext <<_ACEOF
17782
/* end confdefs.h. */
17788
#if defined(__sparc__) && defined(__GNUC__)
17791
FAIL TO COMPILE/LINK
17798
rm -f conftest.$ac_objext
17799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800
(eval $ac_compile) 2>&5
17802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803
(exit $ac_status); } &&
17804
{ ac_try='test -s conftest.$ac_objext'
17805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806
(eval $ac_try) 2>&5
17808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809
(exit $ac_status); }; }; then
17810
db_cv_mutex="Sparc/gcc-assembly"
17812
echo "$as_me: failed program was:" >&5
17813
sed 's/^/| /' conftest.$ac_ext >&5
17816
rm -f conftest.$ac_objext conftest.$ac_ext
17820
if test "$db_cv_mutex" = no; then
17821
cat >conftest.$ac_ext <<_ACEOF
17822
#line $LINENO "configure"
17825
cat confdefs.h >>conftest.$ac_ext
17826
cat >>conftest.$ac_ext <<_ACEOF
17827
/* end confdefs.h. */
17833
#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
17836
FAIL TO COMPILE/LINK
17843
rm -f conftest.$ac_objext
17844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845
(eval $ac_compile) 2>&5
17847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848
(exit $ac_status); } &&
17849
{ ac_try='test -s conftest.$ac_objext'
17850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851
(eval $ac_try) 2>&5
17853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854
(exit $ac_status); }; }; then
17855
db_cv_mutex="68K/gcc-assembly"
17857
echo "$as_me: failed program was:" >&5
17858
sed 's/^/| /' conftest.$ac_ext >&5
17861
rm -f conftest.$ac_objext conftest.$ac_ext
17864
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
17865
if test "$db_cv_mutex" = no; then
17866
cat >conftest.$ac_ext <<_ACEOF
17867
#line $LINENO "configure"
17870
cat confdefs.h >>conftest.$ac_ext
17871
cat >>conftest.$ac_ext <<_ACEOF
17872
/* end confdefs.h. */
17878
#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
17881
FAIL TO COMPILE/LINK
17888
rm -f conftest.$ac_objext
17889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890
(eval $ac_compile) 2>&5
17892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893
(exit $ac_status); } &&
17894
{ ac_try='test -s conftest.$ac_objext'
17895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896
(eval $ac_try) 2>&5
17898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899
(exit $ac_status); }; }; then
17900
db_cv_mutex="x86/gcc-assembly"
17902
echo "$as_me: failed program was:" >&5
17903
sed 's/^/| /' conftest.$ac_ext >&5
17906
rm -f conftest.$ac_objext conftest.$ac_ext
17910
if test "$db_cv_mutex" = no; then
17911
cat >conftest.$ac_ext <<_ACEOF
17912
#line $LINENO "configure"
17915
cat confdefs.h >>conftest.$ac_ext
17916
cat >>conftest.$ac_ext <<_ACEOF
17917
/* end confdefs.h. */
17923
#if defined(__s390__) && defined(__GNUC__)
17926
FAIL TO COMPILE/LINK
17933
rm -f conftest.$ac_objext
17934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935
(eval $ac_compile) 2>&5
17937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938
(exit $ac_status); } &&
17939
{ ac_try='test -s conftest.$ac_objext'
17940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941
(eval $ac_try) 2>&5
17943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944
(exit $ac_status); }; }; then
17945
db_cv_mutex="S390/gcc-assembly"
17947
echo "$as_me: failed program was:" >&5
17948
sed 's/^/| /' conftest.$ac_ext >&5
17951
rm -f conftest.$ac_objext conftest.$ac_ext
17954
# AMD64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
17955
if test "$db_cv_mutex" = no; then
17956
cat >conftest.$ac_ext <<_ACEOF
17957
#line $LINENO "configure"
17960
cat confdefs.h >>conftest.$ac_ext
17961
cat >>conftest.$ac_ext <<_ACEOF
17962
/* end confdefs.h. */
17968
#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
17971
FAIL TO COMPILE/LINK
17978
rm -f conftest.$ac_objext
17979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17980
(eval $ac_compile) 2>&5
17982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983
(exit $ac_status); } &&
17984
{ ac_try='test -s conftest.$ac_objext'
17985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986
(eval $ac_try) 2>&5
17988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989
(exit $ac_status); }; }; then
17990
db_cv_mutex="x86_64/gcc-assembly"
17992
echo "$as_me: failed program was:" >&5
17993
sed 's/^/| /' conftest.$ac_ext >&5
17996
rm -f conftest.$ac_objext conftest.$ac_ext
17999
# x86-64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
18000
if test "$db_cv_mutex" = no; then
18001
if test "$cross_compiling" = yes; then
18002
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18003
See \`config.log' for more details." >&5
18004
echo "$as_me: error: cannot run test program while cross compiling
18005
See \`config.log' for more details." >&2;}
18006
{ (exit 1); exit 1; }; }
18008
cat >conftest.$ac_ext <<_ACEOF
18009
#line $LINENO "configure"
18012
cat confdefs.h >>conftest.$ac_ext
18013
cat >>conftest.$ac_ext <<_ACEOF
18014
/* end confdefs.h. */
18016
#if defined(__x86_64__)
18017
#if defined(__GNUC__)
18024
rm -f conftest$ac_exeext
18025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026
(eval $ac_link) 2>&5
18028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031
(eval $ac_try) 2>&5
18033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034
(exit $ac_status); }; }; then
18035
db_cv_mutex="x86_64/gcc-assembly"
18037
echo "$as_me: program exited with status $ac_status" >&5
18038
echo "$as_me: failed program was:" >&5
18039
sed 's/^/| /' conftest.$ac_ext >&5
18042
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18047
if test "$db_cv_mutex" = no; then
18048
cat >conftest.$ac_ext <<_ACEOF
18049
#line $LINENO "configure"
18052
cat confdefs.h >>conftest.$ac_ext
18053
cat >>conftest.$ac_ext <<_ACEOF
18054
/* end confdefs.h. */
18060
#if defined(__ia64) && defined(__GNUC__)
18063
FAIL TO COMPILE/LINK
18070
rm -f conftest.$ac_objext
18071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18072
(eval $ac_compile) 2>&5
18074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075
(exit $ac_status); } &&
18076
{ ac_try='test -s conftest.$ac_objext'
18077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078
(eval $ac_try) 2>&5
18080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081
(exit $ac_status); }; }; then
18082
db_cv_mutex="ia64/gcc-assembly"
18084
echo "$as_me: failed program was:" >&5
18085
sed 's/^/| /' conftest.$ac_ext >&5
18088
rm -f conftest.$ac_objext conftest.$ac_ext
18091
if test "$db_cv_mutex" = no; then
18092
if test "$cross_compiling" = yes; then
18093
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18094
See \`config.log' for more details." >&5
18095
echo "$as_me: error: cannot run test program while cross compiling
18096
See \`config.log' for more details." >&2;}
18097
{ (exit 1); exit 1; }; }
18099
cat >conftest.$ac_ext <<_ACEOF
18100
#line $LINENO "configure"
18103
cat confdefs.h >>conftest.$ac_ext
18104
cat >>conftest.$ac_ext <<_ACEOF
18105
/* end confdefs.h. */
18107
#if defined(__alpha__)
18108
#if defined(__linux__)
18115
rm -f conftest$ac_exeext
18116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117
(eval $ac_link) 2>&5
18119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122
(eval $ac_try) 2>&5
18124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125
(exit $ac_status); }; }; then
18126
db_cv_mutex="alphalinux/gcc-assembly"
18128
echo "$as_me: program exited with status $ac_status" >&5
18129
echo "$as_me: failed program was:" >&5
18130
sed 's/^/| /' conftest.$ac_ext >&5
18133
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18137
if test "$db_cv_mutex" = no; then
18138
if test "$cross_compiling" = yes; then
18139
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18140
See \`config.log' for more details." >&5
18141
echo "$as_me: error: cannot run test program while cross compiling
18142
See \`config.log' for more details." >&2;}
18143
{ (exit 1); exit 1; }; }
18145
cat >conftest.$ac_ext <<_ACEOF
18146
#line $LINENO "configure"
18149
cat confdefs.h >>conftest.$ac_ext
18150
cat >>conftest.$ac_ext <<_ACEOF
18151
/* end confdefs.h. */
18153
#if defined(__sparc__) && !defined(__arch64__)
18154
#if defined(__linux__)
18161
rm -f conftest$ac_exeext
18162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163
(eval $ac_link) 2>&5
18165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168
(eval $ac_try) 2>&5
18170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171
(exit $ac_status); }; }; then
18172
db_cv_mutex="sparc32linux/gcc-assembly"
18174
echo "$as_me: program exited with status $ac_status" >&5
18175
echo "$as_me: failed program was:" >&5
18176
sed 's/^/| /' conftest.$ac_ext >&5
18179
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18183
if test "$db_cv_mutex" = no; then
18184
if test "$cross_compiling" = yes; then
18185
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18186
See \`config.log' for more details." >&5
18187
echo "$as_me: error: cannot run test program while cross compiling
18188
See \`config.log' for more details." >&2;}
18189
{ (exit 1); exit 1; }; }
18191
cat >conftest.$ac_ext <<_ACEOF
18192
#line $LINENO "configure"
18195
cat confdefs.h >>conftest.$ac_ext
18196
cat >>conftest.$ac_ext <<_ACEOF
18197
/* end confdefs.h. */
18199
#if defined(__sparc__) && defined(__arch64__)
18200
#if defined(__linux__)
18207
rm -f conftest$ac_exeext
18208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209
(eval $ac_link) 2>&5
18211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214
(eval $ac_try) 2>&5
18216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217
(exit $ac_status); }; }; then
18218
db_cv_mutex="sparc64linux/gcc-assembly"
18220
echo "$as_me: program exited with status $ac_status" >&5
18221
echo "$as_me: failed program was:" >&5
18222
sed 's/^/| /' conftest.$ac_ext >&5
18225
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18229
if test "$db_cv_mutex" = no; then
18230
if test "$cross_compiling" = yes; then
18231
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18232
See \`config.log' for more details." >&5
18233
echo "$as_me: error: cannot run test program while cross compiling
18234
See \`config.log' for more details." >&2;}
18235
{ (exit 1); exit 1; }; }
18237
cat >conftest.$ac_ext <<_ACEOF
18238
#line $LINENO "configure"
18241
cat confdefs.h >>conftest.$ac_ext
18242
cat >>conftest.$ac_ext <<_ACEOF
18243
/* end confdefs.h. */
18245
#if defined(__linux__) && defined(__s390__)
18251
rm -f conftest$ac_exeext
18252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253
(eval $ac_link) 2>&5
18255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258
(eval $ac_try) 2>&5
18260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261
(exit $ac_status); }; }; then
18262
db_cv_mutex="s390linux/gcc-assembly"
18264
echo "$as_me: program exited with status $ac_status" >&5
18265
echo "$as_me: failed program was:" >&5
18266
sed 's/^/| /' conftest.$ac_ext >&5
18269
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18275
if test "$db_cv_mutex" = no; then
18276
cat >conftest.$ac_ext <<_ACEOF
18277
#line $LINENO "configure"
18280
cat confdefs.h >>conftest.$ac_ext
18281
cat >>conftest.$ac_ext <<_ACEOF
18282
/* end confdefs.h. */
18291
FAIL TO COMPILE/LINK
18298
rm -f conftest.$ac_objext
18299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300
(eval $ac_compile) 2>&5
18302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303
(exit $ac_status); } &&
18304
{ ac_try='test -s conftest.$ac_objext'
18305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306
(eval $ac_try) 2>&5
18308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309
(exit $ac_status); }; }; then
18310
db_cv_mutex="UTS/cc-assembly"
18312
echo "$as_me: failed program was:" >&5
18313
sed 's/^/| /' conftest.$ac_ext >&5
18316
rm -f conftest.$ac_objext conftest.$ac_ext
18319
# default to UNIX fcntl system call mutexes.
18320
if test "$db_cv_mutex" = no; then
18321
db_cv_mutex="UNIX/fcntl"
18325
echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
18326
echo "${ECHO_T}$db_cv_mutex" >&6
18328
case "$db_cv_mutex" in
18329
68K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18330
cat >>confdefs.h <<\_ACEOF
18331
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
18336
AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18337
cat >>confdefs.h <<\_ACEOF
18338
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
18343
ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18344
cat >>confdefs.h <<\_ACEOF
18345
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
18350
ARM/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18351
cat >>confdefs.h <<\_ACEOF
18352
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
18357
HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18358
cat >>confdefs.h <<\_ACEOF
18359
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
18364
HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18365
cat >>confdefs.h <<\_ACEOF
18366
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
18371
ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18372
cat >>confdefs.h <<\_ACEOF
18373
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
18378
POSIX/pthreads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18379
cat >>confdefs.h <<\_ACEOF
18380
#define HAVE_MUTEX_PTHREADS 1
18385
POSIX/pthreads/private) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18386
cat >>confdefs.h <<\_ACEOF
18387
#define HAVE_MUTEX_PTHREADS 1
18392
cat >>confdefs.h <<\_ACEOF
18393
#define HAVE_MUTEX_THREAD_ONLY 1
18398
POSIX/pthreads/library) LIBS="$LIBS -lpthread"
18399
ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18400
cat >>confdefs.h <<\_ACEOF
18401
#define HAVE_MUTEX_PTHREADS 1
18406
POSIX/pthreads/library/private)
18407
LIBS="$LIBS -lpthread"
18408
ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18409
cat >>confdefs.h <<\_ACEOF
18410
#define HAVE_MUTEX_PTHREADS 1
18415
cat >>confdefs.h <<\_ACEOF
18416
#define HAVE_MUTEX_THREAD_ONLY 1
18421
PPC_GENERIC/gcc-assembly)
18422
ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18423
cat >>confdefs.h <<\_ACEOF
18424
#define HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY 1
18429
PPC_APPLE/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18430
cat >>confdefs.h <<\_ACEOF
18431
#define HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY 1
18436
ReliantUNIX/initspin) LIBS="$LIBS -lmproc"
18437
ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18438
cat >>confdefs.h <<\_ACEOF
18439
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
18444
S390/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18445
cat >>confdefs.h <<\_ACEOF
18446
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
18451
SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18452
cat >>confdefs.h <<\_ACEOF
18453
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
18458
SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18459
cat >>confdefs.h <<\_ACEOF
18460
#define HAVE_MUTEX_SGI_INIT_LOCK 1
18465
Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18466
cat >>confdefs.h <<\_ACEOF
18467
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
18472
Solaris/lwp) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18473
cat >>confdefs.h <<\_ACEOF
18474
#define HAVE_MUTEX_SOLARIS_LWP 1
18479
Sparc/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18480
cat >>confdefs.h <<\_ACEOF
18481
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
18486
UI/threads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18487
cat >>confdefs.h <<\_ACEOF
18488
#define HAVE_MUTEX_UI_THREADS 1
18493
UI/threads/library) LIBS="$LIBS -lthread"
18494
ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18495
cat >>confdefs.h <<\_ACEOF
18496
#define HAVE_MUTEX_UI_THREADS 1
18501
UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18502
cat >>confdefs.h <<\_ACEOF
18503
#define HAVE_MUTEX_MSEM_INIT 1
18508
UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18509
cat >>confdefs.h <<\_ACEOF
18510
#define HAVE_MUTEX_SEMA_INIT 1
18515
UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
18516
cat >>confdefs.h <<\_ACEOF
18517
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
18522
MIPS/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18523
cat >>confdefs.h <<\_ACEOF
18524
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
18529
x86/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18530
cat >>confdefs.h <<\_ACEOF
18531
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
18536
x86_64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18537
cat >>confdefs.h <<\_ACEOF
18538
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
18543
alphalinux/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18544
cat >>confdefs.h <<\_ACEOF
18545
#define HAVE_MUTEX_ALPHA_LINUX_ASSEMBLY 1
18550
sparc32linux/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18551
cat >>confdefs.h <<\_ACEOF
18552
#define HAVE_MUTEX_SPARC32_LINUX_ASSEMBLY 1
18557
sparc64linux/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18558
cat >>confdefs.h <<\_ACEOF
18559
#define HAVE_MUTEX_SPARC64_LINUX_ASSEMBLY 1
18564
s390linux/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18565
cat >>confdefs.h <<\_ACEOF
18566
#define HAVE_MUTEX_S390_LINUX_ASSEMBLY 1
18571
UNIX/fcntl) { echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
18572
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
18573
ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
18574
cat >>confdefs.h <<\_ACEOF
18575
#define HAVE_MUTEX_FCNTL 1
18580
*) { { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
18581
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
18582
{ (exit 1); exit 1; }; };;
18585
if test "$db_cv_mutex" != "UNIX/fcntl"; then
18586
cat >>confdefs.h <<\_ACEOF
18587
#define HAVE_MUTEX_THREADS 1
18594
# There are 3 classes of mutexes:
18596
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
18597
# 2: Mutexes that must be destroyed, but which don't hold permanent system
18598
# resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
18599
# 3: Mutexes that must be destroyed, even after the process is gone, for
18600
# example, pthread mutexes on QNX and binary semaphores on VxWorks.
18602
# DB cannot currently distinguish between #2 and #3 because DB does not know
18603
# if the application is running environment recovery as part of startup and
18604
# does not need to do cleanup, or if the environment is being removed and/or
18605
# recovered in a loop in the application, and so does need to clean up. If
18606
# we get it wrong, we're going to call the mutex destroy routine on a random
18607
# piece of memory, which usually works, but just might drop core. For now,
18608
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
18609
# have a better solution or reason to solve this in a general way -- so far,
18610
# the places we've needed to handle this are few.
18614
case "$host_os$db_cv_mutex" in
18615
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
18616
cat >>confdefs.h <<\_ACEOF
18617
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
18622
# Checks for system functions for which we have replacements.
18625
# The only portable getcwd call is getcwd(char *, size_t), where the
18626
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
18634
for ac_func in getcwd getopt memcmp memcpy memmove raise
18636
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18637
echo "$as_me:$LINENO: checking for $ac_func" >&5
18638
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18639
if eval "test \"\${$as_ac_var+set}\" = set"; then
18640
echo $ECHO_N "(cached) $ECHO_C" >&6
18642
cat >conftest.$ac_ext <<_ACEOF
18643
#line $LINENO "configure"
18646
cat confdefs.h >>conftest.$ac_ext
18647
cat >>conftest.$ac_ext <<_ACEOF
18648
/* end confdefs.h. */
18649
/* System header to define __stub macros and hopefully few prototypes,
18650
which can conflict with char $ac_func (); below.
18651
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652
<limits.h> exists even on freestanding compilers. */
18654
# include <limits.h>
18656
# include <assert.h>
18658
/* Override any gcc2 internal prototype to avoid an error. */
18663
/* We use char because int might match the return type of a gcc2
18664
builtin and then its argument prototype would still apply. */
18666
/* The GNU C library defines this for functions which it implements
18667
to always fail with ENOSYS. Some functions are actually named
18668
something starting with __ and the normal name is an alias. */
18669
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18672
char (*f) () = $ac_func;
18681
return f != $ac_func;
18686
rm -f conftest.$ac_objext conftest$ac_exeext
18687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18688
(eval $ac_link) 2>&5
18690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691
(exit $ac_status); } &&
18692
{ ac_try='test -s conftest$ac_exeext'
18693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694
(eval $ac_try) 2>&5
18696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697
(exit $ac_status); }; }; then
18698
eval "$as_ac_var=yes"
18700
echo "$as_me: failed program was:" >&5
18701
sed 's/^/| /' conftest.$ac_ext >&5
18703
eval "$as_ac_var=no"
18705
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18707
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18708
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18709
if test `eval echo '${'$as_ac_var'}'` = yes; then
18710
cat >>confdefs.h <<_ACEOF
18711
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18715
LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18725
for ac_func in snprintf strcasecmp strdup strerror vsnprintf
18727
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728
echo "$as_me:$LINENO: checking for $ac_func" >&5
18729
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18730
if eval "test \"\${$as_ac_var+set}\" = set"; then
18731
echo $ECHO_N "(cached) $ECHO_C" >&6
18733
cat >conftest.$ac_ext <<_ACEOF
18734
#line $LINENO "configure"
18737
cat confdefs.h >>conftest.$ac_ext
18738
cat >>conftest.$ac_ext <<_ACEOF
18739
/* end confdefs.h. */
18740
/* System header to define __stub macros and hopefully few prototypes,
18741
which can conflict with char $ac_func (); below.
18742
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18743
<limits.h> exists even on freestanding compilers. */
18745
# include <limits.h>
18747
# include <assert.h>
18749
/* Override any gcc2 internal prototype to avoid an error. */
18754
/* We use char because int might match the return type of a gcc2
18755
builtin and then its argument prototype would still apply. */
18757
/* The GNU C library defines this for functions which it implements
18758
to always fail with ENOSYS. Some functions are actually named
18759
something starting with __ and the normal name is an alias. */
18760
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18763
char (*f) () = $ac_func;
18772
return f != $ac_func;
18777
rm -f conftest.$ac_objext conftest$ac_exeext
18778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18779
(eval $ac_link) 2>&5
18781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782
(exit $ac_status); } &&
18783
{ ac_try='test -s conftest$ac_exeext'
18784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785
(eval $ac_try) 2>&5
18787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788
(exit $ac_status); }; }; then
18789
eval "$as_ac_var=yes"
18791
echo "$as_me: failed program was:" >&5
18792
sed 's/^/| /' conftest.$ac_ext >&5
18794
eval "$as_ac_var=no"
18796
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18798
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18799
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18800
if test `eval echo '${'$as_ac_var'}'` = yes; then
18801
cat >>confdefs.h <<_ACEOF
18802
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806
LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18812
# Check for system functions we optionally use.
18818
for ac_func in _fstati64 clock_gettime directio gettimeofday getuid
18820
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821
echo "$as_me:$LINENO: checking for $ac_func" >&5
18822
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18823
if eval "test \"\${$as_ac_var+set}\" = set"; then
18824
echo $ECHO_N "(cached) $ECHO_C" >&6
18826
cat >conftest.$ac_ext <<_ACEOF
18827
#line $LINENO "configure"
18830
cat confdefs.h >>conftest.$ac_ext
18831
cat >>conftest.$ac_ext <<_ACEOF
18832
/* end confdefs.h. */
18833
/* System header to define __stub macros and hopefully few prototypes,
18834
which can conflict with char $ac_func (); below.
18835
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836
<limits.h> exists even on freestanding compilers. */
18838
# include <limits.h>
18840
# include <assert.h>
18842
/* Override any gcc2 internal prototype to avoid an error. */
18847
/* We use char because int might match the return type of a gcc2
18848
builtin and then its argument prototype would still apply. */
18850
/* The GNU C library defines this for functions which it implements
18851
to always fail with ENOSYS. Some functions are actually named
18852
something starting with __ and the normal name is an alias. */
18853
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18856
char (*f) () = $ac_func;
18865
return f != $ac_func;
18870
rm -f conftest.$ac_objext conftest$ac_exeext
18871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872
(eval $ac_link) 2>&5
18874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875
(exit $ac_status); } &&
18876
{ ac_try='test -s conftest$ac_exeext'
18877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878
(eval $ac_try) 2>&5
18880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881
(exit $ac_status); }; }; then
18882
eval "$as_ac_var=yes"
18884
echo "$as_me: failed program was:" >&5
18885
sed 's/^/| /' conftest.$ac_ext >&5
18887
eval "$as_ac_var=no"
18889
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18891
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893
if test `eval echo '${'$as_ac_var'}'` = yes; then
18894
cat >>confdefs.h <<_ACEOF
18895
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18907
for ac_func in pstat_getdynamic sched_yield select strtoul sysconf yield
18909
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18910
echo "$as_me:$LINENO: checking for $ac_func" >&5
18911
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18912
if eval "test \"\${$as_ac_var+set}\" = set"; then
18913
echo $ECHO_N "(cached) $ECHO_C" >&6
18915
cat >conftest.$ac_ext <<_ACEOF
18916
#line $LINENO "configure"
18919
cat confdefs.h >>conftest.$ac_ext
18920
cat >>conftest.$ac_ext <<_ACEOF
18921
/* end confdefs.h. */
18922
/* System header to define __stub macros and hopefully few prototypes,
18923
which can conflict with char $ac_func (); below.
18924
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925
<limits.h> exists even on freestanding compilers. */
18927
# include <limits.h>
18929
# include <assert.h>
18931
/* Override any gcc2 internal prototype to avoid an error. */
18936
/* We use char because int might match the return type of a gcc2
18937
builtin and then its argument prototype would still apply. */
18939
/* The GNU C library defines this for functions which it implements
18940
to always fail with ENOSYS. Some functions are actually named
18941
something starting with __ and the normal name is an alias. */
18942
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18945
char (*f) () = $ac_func;
18954
return f != $ac_func;
18959
rm -f conftest.$ac_objext conftest$ac_exeext
18960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18961
(eval $ac_link) 2>&5
18963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964
(exit $ac_status); } &&
18965
{ ac_try='test -s conftest$ac_exeext'
18966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967
(eval $ac_try) 2>&5
18969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970
(exit $ac_status); }; }; then
18971
eval "$as_ac_var=yes"
18973
echo "$as_me: failed program was:" >&5
18974
sed 's/^/| /' conftest.$ac_ext >&5
18976
eval "$as_ac_var=no"
18978
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18980
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18981
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18982
if test `eval echo '${'$as_ac_var'}'` = yes; then
18983
cat >>confdefs.h <<_ACEOF
18984
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18991
# Checks for system functions for which we don't have replacements.
18992
# We require qsort(3).
18994
for ac_func in qsort
18996
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18997
echo "$as_me:$LINENO: checking for $ac_func" >&5
18998
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18999
if eval "test \"\${$as_ac_var+set}\" = set"; then
19000
echo $ECHO_N "(cached) $ECHO_C" >&6
19002
cat >conftest.$ac_ext <<_ACEOF
19003
#line $LINENO "configure"
19006
cat confdefs.h >>conftest.$ac_ext
19007
cat >>conftest.$ac_ext <<_ACEOF
19008
/* end confdefs.h. */
19009
/* System header to define __stub macros and hopefully few prototypes,
19010
which can conflict with char $ac_func (); below.
19011
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012
<limits.h> exists even on freestanding compilers. */
19014
# include <limits.h>
19016
# include <assert.h>
19018
/* Override any gcc2 internal prototype to avoid an error. */
19023
/* We use char because int might match the return type of a gcc2
19024
builtin and then its argument prototype would still apply. */
19026
/* The GNU C library defines this for functions which it implements
19027
to always fail with ENOSYS. Some functions are actually named
19028
something starting with __ and the normal name is an alias. */
19029
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19032
char (*f) () = $ac_func;
19041
return f != $ac_func;
19046
rm -f conftest.$ac_objext conftest$ac_exeext
19047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048
(eval $ac_link) 2>&5
19050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051
(exit $ac_status); } &&
19052
{ ac_try='test -s conftest$ac_exeext'
19053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054
(eval $ac_try) 2>&5
19056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057
(exit $ac_status); }; }; then
19058
eval "$as_ac_var=yes"
19060
echo "$as_me: failed program was:" >&5
19061
sed 's/^/| /' conftest.$ac_ext >&5
19063
eval "$as_ac_var=no"
19065
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19067
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19068
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19069
if test `eval echo '${'$as_ac_var'}'` = yes; then
19070
cat >>confdefs.h <<_ACEOF
19071
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075
{ { echo "$as_me:$LINENO: error: No qsort library function." >&5
19076
echo "$as_me: error: No qsort library function." >&2;}
19077
{ (exit 1); exit 1; }; }
19083
# HP-UX has pread/pwrite, but it doesn't work with largefile support.
19086
{ echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
19087
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
19090
for ac_func in pread pwrite
19092
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093
echo "$as_me:$LINENO: checking for $ac_func" >&5
19094
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19095
if eval "test \"\${$as_ac_var+set}\" = set"; then
19096
echo $ECHO_N "(cached) $ECHO_C" >&6
19098
cat >conftest.$ac_ext <<_ACEOF
19099
#line $LINENO "configure"
19102
cat confdefs.h >>conftest.$ac_ext
19103
cat >>conftest.$ac_ext <<_ACEOF
19104
/* end confdefs.h. */
19105
/* System header to define __stub macros and hopefully few prototypes,
19106
which can conflict with char $ac_func (); below.
19107
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19108
<limits.h> exists even on freestanding compilers. */
19110
# include <limits.h>
19112
# include <assert.h>
19114
/* Override any gcc2 internal prototype to avoid an error. */
19119
/* We use char because int might match the return type of a gcc2
19120
builtin and then its argument prototype would still apply. */
19122
/* The GNU C library defines this for functions which it implements
19123
to always fail with ENOSYS. Some functions are actually named
19124
something starting with __ and the normal name is an alias. */
19125
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19128
char (*f) () = $ac_func;
19137
return f != $ac_func;
19142
rm -f conftest.$ac_objext conftest$ac_exeext
19143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144
(eval $ac_link) 2>&5
19146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147
(exit $ac_status); } &&
19148
{ ac_try='test -s conftest$ac_exeext'
19149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150
(eval $ac_try) 2>&5
19152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153
(exit $ac_status); }; }; then
19154
eval "$as_ac_var=yes"
19156
echo "$as_me: failed program was:" >&5
19157
sed 's/^/| /' conftest.$ac_ext >&5
19159
eval "$as_ac_var=no"
19161
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19163
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19164
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19165
if test `eval echo '${'$as_ac_var'}'` = yes; then
19166
cat >>confdefs.h <<_ACEOF
19167
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19175
# Check for fcntl(2) to deny child process access to file descriptors.
19176
echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
19177
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
19178
if test "${db_cv_fcntl_f_setfd+set}" = set; then
19179
echo $ECHO_N "(cached) $ECHO_C" >&6
19182
cat >conftest.$ac_ext <<_ACEOF
19183
#line $LINENO "configure"
19186
cat confdefs.h >>conftest.$ac_ext
19187
cat >>conftest.$ac_ext <<_ACEOF
19188
/* end confdefs.h. */
19190
#include <sys/types.h>
19196
fcntl(1, F_SETFD, 1);
19202
rm -f conftest.$ac_objext conftest$ac_exeext
19203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204
(eval $ac_link) 2>&5
19206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207
(exit $ac_status); } &&
19208
{ ac_try='test -s conftest$ac_exeext'
19209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210
(eval $ac_try) 2>&5
19212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213
(exit $ac_status); }; }; then
19214
db_cv_fcntl_f_setfd=yes
19216
echo "$as_me: failed program was:" >&5
19217
sed 's/^/| /' conftest.$ac_ext >&5
19219
db_cv_fcntl_f_setfd=no
19221
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19223
echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
19224
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
19225
if test "$db_cv_fcntl_f_setfd" = yes; then
19226
cat >>confdefs.h <<\_ACEOF
19227
#define HAVE_FCNTL_F_SETFD 1
19234
# A/UX has a broken getopt(3).
19236
aux*) ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
19239
# Linux has the O_DIRECT flag, but you can't actually use it.
19240
echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
19241
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6
19242
if test "${db_cv_open_o_direct+set}" = set; then
19243
echo $ECHO_N "(cached) $ECHO_C" >&6
19246
echo "test for working open/O_DIRECT" > __o_direct_file
19247
if test "$cross_compiling" = yes; then
19248
cat >conftest.$ac_ext <<_ACEOF
19249
#line $LINENO "configure"
19252
cat confdefs.h >>conftest.$ac_ext
19253
cat >>conftest.$ac_ext <<_ACEOF
19254
/* end confdefs.h. */
19256
#include <sys/types.h>
19262
open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
19268
rm -f conftest.$ac_objext conftest$ac_exeext
19269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270
(eval $ac_link) 2>&5
19272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273
(exit $ac_status); } &&
19274
{ ac_try='test -s conftest$ac_exeext'
19275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276
(eval $ac_try) 2>&5
19278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279
(exit $ac_status); }; }; then
19280
db_cv_open_o_direct=yes
19282
echo "$as_me: failed program was:" >&5
19283
sed 's/^/| /' conftest.$ac_ext >&5
19285
db_cv_open_o_direct=no
19287
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19289
cat >conftest.$ac_ext <<_ACEOF
19290
#line $LINENO "configure"
19293
cat confdefs.h >>conftest.$ac_ext
19294
cat >>conftest.$ac_ext <<_ACEOF
19295
/* end confdefs.h. */
19297
#include <sys/types.h>
19300
int c, fd = open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
19301
exit ((fd == -1) || (read(fd, &c, 1) != 1));
19304
rm -f conftest$ac_exeext
19305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306
(eval $ac_link) 2>&5
19308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311
(eval $ac_try) 2>&5
19313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314
(exit $ac_status); }; }; then
19315
db_cv_open_o_direct=yes
19317
echo "$as_me: program exited with status $ac_status" >&5
19318
echo "$as_me: failed program was:" >&5
19319
sed 's/^/| /' conftest.$ac_ext >&5
19321
( exit $ac_status )
19322
db_cv_open_o_direct=no
19324
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19326
rm -f __o_direct_file
19328
echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
19329
echo "${ECHO_T}$db_cv_open_o_direct" >&6
19330
if test "$db_cv_open_o_direct" = yes; then
19331
cat >>confdefs.h <<\_ACEOF
19332
#define HAVE_O_DIRECT 1
19339
# Check for largefile support.
19340
# Check whether --enable-largefile or --disable-largefile was given.
19341
if test "${enable_largefile+set}" = set; then
19342
enableval="$enable_largefile"
19345
if test "$enable_largefile" != no; then
19347
echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19348
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19349
if test "${ac_cv_sys_largefile_CC+set}" = set; then
19350
echo $ECHO_N "(cached) $ECHO_C" >&6
19352
ac_cv_sys_largefile_CC=no
19353
if test "$GCC" != yes; then
19356
# IRIX 6.2 and later do not support large files by default,
19357
# so use the C compiler's -n32 option if that helps.
19358
cat >conftest.$ac_ext <<_ACEOF
19359
#line $LINENO "configure"
19362
cat confdefs.h >>conftest.$ac_ext
19363
cat >>conftest.$ac_ext <<_ACEOF
19364
/* end confdefs.h. */
19365
#include <sys/types.h>
19366
/* Check that off_t can represent 2**63 - 1 correctly.
19367
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19368
since some C++ compilers masquerading as C compilers
19369
incorrectly reject 9223372036854775807. */
19370
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19371
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19372
&& LARGE_OFF_T % 2147483647 == 1)
19382
rm -f conftest.$ac_objext
19383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384
(eval $ac_compile) 2>&5
19386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387
(exit $ac_status); } &&
19388
{ ac_try='test -s conftest.$ac_objext'
19389
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390
(eval $ac_try) 2>&5
19392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393
(exit $ac_status); }; }; then
19396
echo "$as_me: failed program was:" >&5
19397
sed 's/^/| /' conftest.$ac_ext >&5
19400
rm -f conftest.$ac_objext
19402
rm -f conftest.$ac_objext
19403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404
(eval $ac_compile) 2>&5
19406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407
(exit $ac_status); } &&
19408
{ ac_try='test -s conftest.$ac_objext'
19409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410
(eval $ac_try) 2>&5
19412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413
(exit $ac_status); }; }; then
19414
ac_cv_sys_largefile_CC=' -n32'; break
19416
echo "$as_me: failed program was:" >&5
19417
sed 's/^/| /' conftest.$ac_ext >&5
19420
rm -f conftest.$ac_objext
19424
rm -f conftest.$ac_ext
19427
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19428
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19429
if test "$ac_cv_sys_largefile_CC" != no; then
19430
CC=$CC$ac_cv_sys_largefile_CC
19433
echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19434
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19435
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19436
echo $ECHO_N "(cached) $ECHO_C" >&6
19439
ac_cv_sys_file_offset_bits=no
19440
cat >conftest.$ac_ext <<_ACEOF
19441
#line $LINENO "configure"
19444
cat confdefs.h >>conftest.$ac_ext
19445
cat >>conftest.$ac_ext <<_ACEOF
19446
/* end confdefs.h. */
19447
#include <sys/types.h>
19448
/* Check that off_t can represent 2**63 - 1 correctly.
19449
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19450
since some C++ compilers masquerading as C compilers
19451
incorrectly reject 9223372036854775807. */
19452
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19453
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19454
&& LARGE_OFF_T % 2147483647 == 1)
19464
rm -f conftest.$ac_objext
19465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466
(eval $ac_compile) 2>&5
19468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469
(exit $ac_status); } &&
19470
{ ac_try='test -s conftest.$ac_objext'
19471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472
(eval $ac_try) 2>&5
19474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475
(exit $ac_status); }; }; then
19478
echo "$as_me: failed program was:" >&5
19479
sed 's/^/| /' conftest.$ac_ext >&5
19482
rm -f conftest.$ac_objext conftest.$ac_ext
19483
cat >conftest.$ac_ext <<_ACEOF
19484
#line $LINENO "configure"
19487
cat confdefs.h >>conftest.$ac_ext
19488
cat >>conftest.$ac_ext <<_ACEOF
19489
/* end confdefs.h. */
19490
#define _FILE_OFFSET_BITS 64
19491
#include <sys/types.h>
19492
/* Check that off_t can represent 2**63 - 1 correctly.
19493
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19494
since some C++ compilers masquerading as C compilers
19495
incorrectly reject 9223372036854775807. */
19496
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19497
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19498
&& LARGE_OFF_T % 2147483647 == 1)
19508
rm -f conftest.$ac_objext
19509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510
(eval $ac_compile) 2>&5
19512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513
(exit $ac_status); } &&
19514
{ ac_try='test -s conftest.$ac_objext'
19515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516
(eval $ac_try) 2>&5
19518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519
(exit $ac_status); }; }; then
19520
ac_cv_sys_file_offset_bits=64; break
19522
echo "$as_me: failed program was:" >&5
19523
sed 's/^/| /' conftest.$ac_ext >&5
19526
rm -f conftest.$ac_objext conftest.$ac_ext
19530
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19531
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19532
if test "$ac_cv_sys_file_offset_bits" != no; then
19534
cat >>confdefs.h <<_ACEOF
19535
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19540
echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19541
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19542
if test "${ac_cv_sys_large_files+set}" = set; then
19543
echo $ECHO_N "(cached) $ECHO_C" >&6
19546
ac_cv_sys_large_files=no
19547
cat >conftest.$ac_ext <<_ACEOF
19548
#line $LINENO "configure"
19551
cat confdefs.h >>conftest.$ac_ext
19552
cat >>conftest.$ac_ext <<_ACEOF
19553
/* end confdefs.h. */
19554
#include <sys/types.h>
19555
/* Check that off_t can represent 2**63 - 1 correctly.
19556
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19557
since some C++ compilers masquerading as C compilers
19558
incorrectly reject 9223372036854775807. */
19559
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19560
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19561
&& LARGE_OFF_T % 2147483647 == 1)
19571
rm -f conftest.$ac_objext
19572
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573
(eval $ac_compile) 2>&5
19575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576
(exit $ac_status); } &&
19577
{ ac_try='test -s conftest.$ac_objext'
19578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579
(eval $ac_try) 2>&5
19581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582
(exit $ac_status); }; }; then
19585
echo "$as_me: failed program was:" >&5
19586
sed 's/^/| /' conftest.$ac_ext >&5
19589
rm -f conftest.$ac_objext conftest.$ac_ext
19590
cat >conftest.$ac_ext <<_ACEOF
19591
#line $LINENO "configure"
19594
cat confdefs.h >>conftest.$ac_ext
19595
cat >>conftest.$ac_ext <<_ACEOF
19596
/* end confdefs.h. */
19597
#define _LARGE_FILES 1
19598
#include <sys/types.h>
19599
/* Check that off_t can represent 2**63 - 1 correctly.
19600
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19601
since some C++ compilers masquerading as C compilers
19602
incorrectly reject 9223372036854775807. */
19603
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19604
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19605
&& LARGE_OFF_T % 2147483647 == 1)
19615
rm -f conftest.$ac_objext
19616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617
(eval $ac_compile) 2>&5
19619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620
(exit $ac_status); } &&
19621
{ ac_try='test -s conftest.$ac_objext'
19622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623
(eval $ac_try) 2>&5
19625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626
(exit $ac_status); }; }; then
19627
ac_cv_sys_large_files=1; break
19629
echo "$as_me: failed program was:" >&5
19630
sed 's/^/| /' conftest.$ac_ext >&5
19633
rm -f conftest.$ac_objext conftest.$ac_ext
19637
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19638
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19639
if test "$ac_cv_sys_large_files" != no; then
19641
cat >>confdefs.h <<_ACEOF
19642
#define _LARGE_FILES $ac_cv_sys_large_files
19650
# Figure out how to create shared regions.
19652
# First, we look for mmap.
19654
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
19656
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
19657
# is defined in the C library) but does not support munmap(2). Don't
19658
# try to use mmap if we can't find munmap.
19660
# Ultrix has mmap(2), but it doesn't work.
19664
{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
19665
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
19669
for ac_func in mmap munmap
19671
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19672
echo "$as_me:$LINENO: checking for $ac_func" >&5
19673
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19674
if eval "test \"\${$as_ac_var+set}\" = set"; then
19675
echo $ECHO_N "(cached) $ECHO_C" >&6
19677
cat >conftest.$ac_ext <<_ACEOF
19678
#line $LINENO "configure"
19681
cat confdefs.h >>conftest.$ac_ext
19682
cat >>conftest.$ac_ext <<_ACEOF
19683
/* end confdefs.h. */
19684
/* System header to define __stub macros and hopefully few prototypes,
19685
which can conflict with char $ac_func (); below.
19686
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19687
<limits.h> exists even on freestanding compilers. */
19689
# include <limits.h>
19691
# include <assert.h>
19693
/* Override any gcc2 internal prototype to avoid an error. */
19698
/* We use char because int might match the return type of a gcc2
19699
builtin and then its argument prototype would still apply. */
19701
/* The GNU C library defines this for functions which it implements
19702
to always fail with ENOSYS. Some functions are actually named
19703
something starting with __ and the normal name is an alias. */
19704
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19707
char (*f) () = $ac_func;
19716
return f != $ac_func;
19721
rm -f conftest.$ac_objext conftest$ac_exeext
19722
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723
(eval $ac_link) 2>&5
19725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726
(exit $ac_status); } &&
19727
{ ac_try='test -s conftest$ac_exeext'
19728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729
(eval $ac_try) 2>&5
19731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732
(exit $ac_status); }; }; then
19733
eval "$as_ac_var=yes"
19735
echo "$as_me: failed program was:" >&5
19736
sed 's/^/| /' conftest.$ac_ext >&5
19738
eval "$as_ac_var=no"
19740
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19742
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19743
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19744
if test `eval echo '${'$as_ac_var'}'` = yes; then
19745
cat >>confdefs.h <<_ACEOF
19746
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19755
{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on Ultrix." >&5
19756
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
19761
for ac_func in mlock munlock
19763
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19764
echo "$as_me:$LINENO: checking for $ac_func" >&5
19765
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19766
if eval "test \"\${$as_ac_var+set}\" = set"; then
19767
echo $ECHO_N "(cached) $ECHO_C" >&6
19769
cat >conftest.$ac_ext <<_ACEOF
19770
#line $LINENO "configure"
19773
cat confdefs.h >>conftest.$ac_ext
19774
cat >>conftest.$ac_ext <<_ACEOF
19775
/* end confdefs.h. */
19776
/* System header to define __stub macros and hopefully few prototypes,
19777
which can conflict with char $ac_func (); below.
19778
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19779
<limits.h> exists even on freestanding compilers. */
19781
# include <limits.h>
19783
# include <assert.h>
19785
/* Override any gcc2 internal prototype to avoid an error. */
19790
/* We use char because int might match the return type of a gcc2
19791
builtin and then its argument prototype would still apply. */
19793
/* The GNU C library defines this for functions which it implements
19794
to always fail with ENOSYS. Some functions are actually named
19795
something starting with __ and the normal name is an alias. */
19796
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19799
char (*f) () = $ac_func;
19808
return f != $ac_func;
19813
rm -f conftest.$ac_objext conftest$ac_exeext
19814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815
(eval $ac_link) 2>&5
19817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
(exit $ac_status); } &&
19819
{ ac_try='test -s conftest$ac_exeext'
19820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821
(eval $ac_try) 2>&5
19823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824
(exit $ac_status); }; }; then
19825
eval "$as_ac_var=yes"
19827
echo "$as_me: failed program was:" >&5
19828
sed 's/^/| /' conftest.$ac_ext >&5
19830
eval "$as_ac_var=no"
19832
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19835
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19836
if test `eval echo '${'$as_ac_var'}'` = yes; then
19837
cat >>confdefs.h <<_ACEOF
19838
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19846
for ac_func in mmap munmap
19848
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19849
echo "$as_me:$LINENO: checking for $ac_func" >&5
19850
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19851
if eval "test \"\${$as_ac_var+set}\" = set"; then
19852
echo $ECHO_N "(cached) $ECHO_C" >&6
19854
cat >conftest.$ac_ext <<_ACEOF
19855
#line $LINENO "configure"
19858
cat confdefs.h >>conftest.$ac_ext
19859
cat >>conftest.$ac_ext <<_ACEOF
19860
/* end confdefs.h. */
19861
/* System header to define __stub macros and hopefully few prototypes,
19862
which can conflict with char $ac_func (); below.
19863
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19864
<limits.h> exists even on freestanding compilers. */
19866
# include <limits.h>
19868
# include <assert.h>
19870
/* Override any gcc2 internal prototype to avoid an error. */
19875
/* We use char because int might match the return type of a gcc2
19876
builtin and then its argument prototype would still apply. */
19878
/* The GNU C library defines this for functions which it implements
19879
to always fail with ENOSYS. Some functions are actually named
19880
something starting with __ and the normal name is an alias. */
19881
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19884
char (*f) () = $ac_func;
19893
return f != $ac_func;
19898
rm -f conftest.$ac_objext conftest$ac_exeext
19899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900
(eval $ac_link) 2>&5
19902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903
(exit $ac_status); } &&
19904
{ ac_try='test -s conftest$ac_exeext'
19905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906
(eval $ac_try) 2>&5
19908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909
(exit $ac_status); }; }; then
19910
eval "$as_ac_var=yes"
19912
echo "$as_me: failed program was:" >&5
19913
sed 's/^/| /' conftest.$ac_ext >&5
19915
eval "$as_ac_var=no"
19917
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19919
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19920
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19921
if test `eval echo '${'$as_ac_var'}'` = yes; then
19922
cat >>confdefs.h <<_ACEOF
19923
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19933
# Second, we look for shmget.
19935
# SunOS has the shmget(2) interfaces, but there appears to be a missing
19936
# #include <debug/debug.h> file, so we ignore them.
19940
{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on SunOS." >&5
19941
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
19945
for ac_func in shmget
19947
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19948
echo "$as_me:$LINENO: checking for $ac_func" >&5
19949
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19950
if eval "test \"\${$as_ac_var+set}\" = set"; then
19951
echo $ECHO_N "(cached) $ECHO_C" >&6
19953
cat >conftest.$ac_ext <<_ACEOF
19954
#line $LINENO "configure"
19957
cat confdefs.h >>conftest.$ac_ext
19958
cat >>conftest.$ac_ext <<_ACEOF
19959
/* end confdefs.h. */
19960
/* System header to define __stub macros and hopefully few prototypes,
19961
which can conflict with char $ac_func (); below.
19962
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19963
<limits.h> exists even on freestanding compilers. */
19965
# include <limits.h>
19967
# include <assert.h>
19969
/* Override any gcc2 internal prototype to avoid an error. */
19974
/* We use char because int might match the return type of a gcc2
19975
builtin and then its argument prototype would still apply. */
19977
/* The GNU C library defines this for functions which it implements
19978
to always fail with ENOSYS. Some functions are actually named
19979
something starting with __ and the normal name is an alias. */
19980
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19983
char (*f) () = $ac_func;
19992
return f != $ac_func;
19997
rm -f conftest.$ac_objext conftest$ac_exeext
19998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999
(eval $ac_link) 2>&5
20001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002
(exit $ac_status); } &&
20003
{ ac_try='test -s conftest$ac_exeext'
20004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005
(eval $ac_try) 2>&5
20007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008
(exit $ac_status); }; }; then
20009
eval "$as_ac_var=yes"
20011
echo "$as_me: failed program was:" >&5
20012
sed 's/^/| /' conftest.$ac_ext >&5
20014
eval "$as_ac_var=no"
20016
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20018
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20020
if test `eval echo '${'$as_ac_var'}'` = yes; then
20021
cat >>confdefs.h <<_ACEOF
20022
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20032
# We require either mmap/munmap(2) or shmget(2).
20033
if test "$mmap_ok" = no -a "$shmget_ok" = no; then
20034
{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
20035
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
20038
# If we're not doing version name substitution, DB_VERSION_UNIQUE_NAME
20039
# needs to be erased.
20040
if test "$db_cv_uniquename" = "no"; then
20041
DB_VERSION_UNIQUE_NAME=""
20044
# This is necessary so that .o files in LIBOBJS are also built via
20045
# the ANSI2KNR-filtering rules.
20046
LIBOBJS=`echo "$LIBOBJS" |
20047
sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
20048
LTLIBOBJS=`echo "$LIBOBJS" |
20049
sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
20052
# Initial output file list.
20053
CREATE_LIST="Makefile
20054
db_cxx.h:$srcdir/../dbinc/db_cxx.in
20055
db_int.h:$srcdir/../dbinc/db_int.in
20056
include.tcl:$srcdir/../test/include.tcl"
20058
# Create the db.h file from a source file, a list of global function
20059
# prototypes, and, if configured for unique names, a list of #defines
20060
# to do DB_VERSION_UNIQUE_NAME substitution.
20061
if test "$db_cv_uniquename" = "yes"; then
20062
CREATE_LIST="$CREATE_LIST
20063
db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
20065
CREATE_LIST="$CREATE_LIST
20066
db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_prot.in"
20069
# If configured for unique names, create the db_int_uext.h file (which
20070
# does the DB_VERSION_UNIQUE_NAME substitution), which is included by
20071
# the db_int.h file.
20072
if test "$db_cv_uniquename" = "yes"; then
20073
CREATE_LIST="$CREATE_LIST
20074
db_int_def.h:$srcdir/../dbinc_auto/int_def.in"
20075
db_int_def='#include "db_int_def.h"'
20078
# Create the db_185.h and db185_int.h files from source files, a list of
20079
# global function prototypes, and, if configured for unique names, a list
20080
# of #defines to do DB_VERSION_UNIQUE_NAME substitution.
20081
if test "$db_cv_compat185" = "yes"; then
20082
if test "$db_cv_uniquename" = "yes"; then
20083
CREATE_LIST="$CREATE_LIST
20084
db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in
20085
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in"
20087
CREATE_LIST="$CREATE_LIST
20088
db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in
20089
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in"
20093
if test "$db_cv_embedix" = "yes"; then
20094
CREATE_LIST="$CREATE_LIST db.ecd:../dist/db.ecd.in"
20097
if test "$db_cv_rpm" = "yes"; then
20098
CREATE_LIST="$CREATE_LIST db.spec:../dist/db.spec.in"
20101
ac_config_files="$ac_config_files $CREATE_LIST"
20103
cat >confcache <<\_ACEOF
20104
# This file is a shell script that caches the results of configure
20105
# tests run on this system so they can be shared between configure
20106
# scripts and configure runs, see configure's option --config-cache.
20107
# It is not useful on other systems. If it contains results you don't
20108
# want to keep, you may remove or edit it.
20110
# config.status only pays attention to the cache file if you give it
20111
# the --recheck option to rerun configure.
20113
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20114
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20115
# following values.
20119
# The following way of writing the cache mishandles newlines in values,
20120
# but we know of no workaround that is simple, portable, and efficient.
20121
# So, don't put newlines in cache variables' values.
20122
# Ultrix sh set writes to stderr and can't be redirected directly,
20123
# and sets the high bit in the cache file unless we assign to the vars.
20126
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20128
# `set' does not quote correctly, so add quotes (double-quote
20129
# substitution turns \\\\ into \\, and sed turns \\ into \).
20132
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20135
# `set' quotes correctly as required by POSIX, so do not add quotes.
20137
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20144
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20146
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20148
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20149
if test -w $cache_file; then
20150
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20151
cat confcache >$cache_file
20153
echo "not updating unwritable cache $cache_file"
20158
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20159
# Let make expand exec_prefix.
20160
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20162
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20163
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20164
# trailing colons and then remove the whole line if VPATH becomes empty
20165
# (actually we leave an empty line to preserve line numbers).
20166
if test "x$srcdir" = x.; then
20167
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20168
s/:*\$(srcdir):*/:/;
20169
s/:*\${srcdir}:*/:/;
20171
s/^\([^=]*=[ ]*\):*/\1/;
20177
DEFS=-DHAVE_CONFIG_H
20181
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20182
# 1. Remove the extension, and $U if already installed.
20183
ac_i=`echo "$ac_i" |
20184
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20186
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20187
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20189
LIBOBJS=$ac_libobjs
20191
LTLIBOBJS=$ac_ltlibobjs
20195
: ${CONFIG_STATUS=./config.status}
20196
ac_clean_files_save=$ac_clean_files
20197
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20198
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20199
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20200
cat >$CONFIG_STATUS <<_ACEOF
20202
# Generated by $as_me.
20203
# Run this file to recreate the current configuration.
20204
# Compiler output produced by configure, useful for debugging
20205
# configure, is in config.log if it exists.
20208
ac_cs_recheck=false
20210
SHELL=\${CONFIG_SHELL-$SHELL}
20213
cat >>$CONFIG_STATUS <<\_ACEOF
20214
## --------------------- ##
20215
## M4sh Initialization. ##
20216
## --------------------- ##
20218
# Be Bourne compatible
20219
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20222
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20223
# is contrary to our usage. Disable this feature.
20224
alias -g '${1+"$@"}'='"$@"'
20225
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20229
# Support unset when possible.
20230
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20237
# Work around bugs in pre-3.0 UWIN ksh.
20238
$as_unset ENV MAIL MAILPATH
20245
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20246
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20247
LC_TELEPHONE LC_TIME
20249
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20250
eval $as_var=C; export $as_var
20256
# Required to use basename.
20257
if expr a : '\(a\)' >/dev/null 2>&1; then
20263
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20264
as_basename=basename
20270
# Name of the executable.
20271
as_me=`$as_basename "$0" ||
20272
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20273
X"$0" : 'X\(//\)$' \| \
20274
X"$0" : 'X\(/\)$' \| \
20275
. : '\(.\)' 2>/dev/null ||
20277
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20278
/^X\/\(\/\/\)$/{ s//\1/; q; }
20279
/^X\/\(\/\).*/{ s//\1/; q; }
20283
# PATH needs CR, and LINENO needs CR and PATH.
20284
# Avoid depending upon Character Ranges.
20285
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20286
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20287
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20288
as_cr_digits='0123456789'
20289
as_cr_alnum=$as_cr_Letters$as_cr_digits
20291
# The user is always right.
20292
if test "${PATH_SEPARATOR+set}" != set; then
20293
echo "#! /bin/sh" >conf$$.sh
20294
echo "exit 0" >>conf$$.sh
20296
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20305
as_lineno_1=$LINENO
20306
as_lineno_2=$LINENO
20307
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20308
test "x$as_lineno_1" != "x$as_lineno_2" &&
20309
test "x$as_lineno_3" = "x$as_lineno_2" || {
20310
# Find who we are. Look in the path if we contain no path at all
20313
*[\\/]* ) as_myself=$0 ;;
20314
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315
for as_dir in $PATH
20318
test -z "$as_dir" && as_dir=.
20319
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20324
# We did not find ourselves, most probably we were run as `sh COMMAND'
20325
# in which case we are not to be found in the path.
20326
if test "x$as_myself" = x; then
20329
if test ! -f "$as_myself"; then
20330
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20331
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20332
{ (exit 1); exit 1; }; }
20334
case $CONFIG_SHELL in
20336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20337
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20340
test -z "$as_dir" && as_dir=.
20341
for as_base in sh bash ksh sh5; do
20344
if ("$as_dir/$as_base" -c '
20345
as_lineno_1=$LINENO
20346
as_lineno_2=$LINENO
20347
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20348
test "x$as_lineno_1" != "x$as_lineno_2" &&
20349
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20350
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20351
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20352
CONFIG_SHELL=$as_dir/$as_base
20353
export CONFIG_SHELL
20354
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20362
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20363
# uniformly replaced by the line number. The first 'sed' inserts a
20364
# line-number line before each line; the second 'sed' does the real
20365
# work. The second script uses 'N' to pair each line-number line
20366
# with the numbered line, and appends trailing '-' during
20367
# substitution so that $LINENO is not a special case at line end.
20368
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20369
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20370
sed '=' <$as_myself |
20375
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20378
s,^['$as_cr_digits']*\n,,
20379
' >$as_me.lineno &&
20380
chmod +x $as_me.lineno ||
20381
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20382
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20383
{ (exit 1); exit 1; }; }
20385
# Don't try to exec as it changes $[0], causing all sort of problems
20386
# (the dirname of $[0] is not the place where we might find the
20387
# original and so on. Autoconf is especially sensible to this).
20389
# Exit status is that of the last command.
20394
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20395
*c*,-n*) ECHO_N= ECHO_C='
20397
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20398
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20401
if expr a : '\(a\)' >/dev/null 2>&1; then
20407
rm -f conf$$ conf$$.exe conf$$.file
20409
if ln -s conf$$.file conf$$ 2>/dev/null; then
20410
# We could just check for DJGPP; but this test a) works b) is more generic
20411
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20412
if test -f conf$$.exe; then
20413
# Don't use ln at all; we don't have any links
20418
elif ln conf$$.file conf$$ 2>/dev/null; then
20423
rm -f conf$$ conf$$.exe conf$$.file
20425
if mkdir -p . 2>/dev/null; then
20431
as_executable_p="test -f"
20433
# Sed expression to map a string onto a valid CPP name.
20434
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20436
# Sed expression to map a string onto a valid variable name.
20437
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20441
# We need space, tab and new line, in precisely that order.
20451
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20452
# report actual input values of CONFIG_FILES etc. instead of their
20453
# values after options handling. Logging --version etc. is OK.
20457
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20458
## Running $as_me. ##
20463
This file was extended by Berkeley DB $as_me 4.1.25, which was
20464
generated by GNU Autoconf 2.57. Invocation command line was
20466
CONFIG_FILES = $CONFIG_FILES
20467
CONFIG_HEADERS = $CONFIG_HEADERS
20468
CONFIG_LINKS = $CONFIG_LINKS
20469
CONFIG_COMMANDS = $CONFIG_COMMANDS
20473
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20477
# Files that config.status was made for.
20478
if test -n "$ac_config_files"; then
20479
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20482
if test -n "$ac_config_headers"; then
20483
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20486
if test -n "$ac_config_links"; then
20487
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20490
if test -n "$ac_config_commands"; then
20491
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20494
cat >>$CONFIG_STATUS <<\_ACEOF
20497
\`$as_me' instantiates files from templates according to the
20498
current configuration.
20500
Usage: $0 [OPTIONS] [FILE]...
20502
-h, --help print this help, then exit
20503
-V, --version print version number, then exit
20504
-q, --quiet do not print progress messages
20505
-d, --debug don't remove temporary files
20506
--recheck update $as_me by reconfiguring in the same conditions
20507
--file=FILE[:TEMPLATE]
20508
instantiate the configuration file FILE
20509
--header=FILE[:TEMPLATE]
20510
instantiate the configuration header FILE
20512
Configuration files:
20515
Configuration headers:
20518
Report bugs to <bug-autoconf@gnu.org>."
20521
cat >>$CONFIG_STATUS <<_ACEOF
20523
Berkeley DB config.status 4.1.25
20524
configured by $0, generated by GNU Autoconf 2.57,
20525
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20527
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20528
Free Software Foundation, Inc.
20529
This config.status script is free software; the Free Software Foundation
20530
gives unlimited permission to copy, distribute and modify it."
20535
cat >>$CONFIG_STATUS <<\_ACEOF
20536
# If no file are specified by the user, then we need to provide default
20537
# value. By we need to know if files were specified by the user.
20543
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20544
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20552
*) # This is not an option, so the user has probably given explicit
20555
ac_need_defaults=false;;
20559
# Handling of the options.
20561
cat >>$CONFIG_STATUS <<\_ACEOF
20562
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20564
--version | --vers* | -V )
20565
echo "$ac_cs_version"; exit 0 ;;
20567
# Conflict between --help and --header
20568
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20569
Try \`$0 --help' for more information." >&5
20570
echo "$as_me: error: ambiguous option: $1
20571
Try \`$0 --help' for more information." >&2;}
20572
{ (exit 1); exit 1; }; };;
20573
--help | --hel | -h )
20574
echo "$ac_cs_usage"; exit 0 ;;
20575
--debug | --d* | -d )
20577
--file | --fil | --fi | --f )
20579
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20580
ac_need_defaults=false;;
20581
--header | --heade | --head | --hea )
20583
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20584
ac_need_defaults=false;;
20585
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20586
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20589
# This is an error.
20590
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20591
Try \`$0 --help' for more information." >&5
20592
echo "$as_me: error: unrecognized option: $1
20593
Try \`$0 --help' for more information." >&2;}
20594
{ (exit 1); exit 1; }; } ;;
20596
*) ac_config_targets="$ac_config_targets $1" ;;
20602
ac_configure_extra_args=
20604
if $ac_cs_silent; then
20606
ac_configure_extra_args="$ac_configure_extra_args --silent"
20610
cat >>$CONFIG_STATUS <<_ACEOF
20611
if \$ac_cs_recheck; then
20612
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20613
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20622
cat >>$CONFIG_STATUS <<\_ACEOF
20623
for ac_config_target in $ac_config_targets
20625
case "$ac_config_target" in
20626
# Handling of arguments.
20627
"$CREATE_LIST" ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
20628
"db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
20629
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20630
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20631
{ (exit 1); exit 1; }; };;
20635
# If the user did not use the arguments to specify the items to instantiate,
20636
# then the envvar interface is used. Set only those that are not.
20637
# We use the long form for the default assignment because of an extremely
20638
# bizarre bug on SunOS 4.1.3.
20639
if $ac_need_defaults; then
20640
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20641
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20644
# Have a temporary directory for convenience. Make it in the build tree
20645
# simply because there is no reason to put it here, and in addition,
20646
# creating and moving files from /tmp can sometimes cause problems.
20647
# Create a temporary directory, and hook for its removal unless debugging.
20650
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20651
trap '{ (exit 1); exit 1; }' 1 2 13 15
20654
# Create a (secure) tmp directory for tmp files.
20657
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20658
test -n "$tmp" && test -d "$tmp"
20661
tmp=./confstat$$-$RANDOM
20662
(umask 077 && mkdir $tmp)
20665
echo "$me: cannot create a temporary directory in ." >&2
20666
{ (exit 1); exit 1; }
20671
cat >>$CONFIG_STATUS <<_ACEOF
20674
# CONFIG_FILES section.
20677
# No need to generate the scripts if there are no CONFIG_FILES.
20678
# This happens for instance when ./config.status config.h
20679
if test -n "\$CONFIG_FILES"; then
20680
# Protect against being on the right side of a sed subst in config.status.
20681
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20682
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20683
s,@SHELL@,$SHELL,;t t
20684
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20685
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20686
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20687
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20688
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20689
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20690
s,@exec_prefix@,$exec_prefix,;t t
20691
s,@prefix@,$prefix,;t t
20692
s,@program_transform_name@,$program_transform_name,;t t
20693
s,@bindir@,$bindir,;t t
20694
s,@sbindir@,$sbindir,;t t
20695
s,@libexecdir@,$libexecdir,;t t
20696
s,@datadir@,$datadir,;t t
20697
s,@sysconfdir@,$sysconfdir,;t t
20698
s,@sharedstatedir@,$sharedstatedir,;t t
20699
s,@localstatedir@,$localstatedir,;t t
20700
s,@libdir@,$libdir,;t t
20701
s,@includedir@,$includedir,;t t
20702
s,@oldincludedir@,$oldincludedir,;t t
20703
s,@infodir@,$infodir,;t t
20704
s,@mandir@,$mandir,;t t
20705
s,@build_alias@,$build_alias,;t t
20706
s,@host_alias@,$host_alias,;t t
20707
s,@target_alias@,$target_alias,;t t
20708
s,@DEFS@,$DEFS,;t t
20709
s,@ECHO_C@,$ECHO_C,;t t
20710
s,@ECHO_N@,$ECHO_N,;t t
20711
s,@ECHO_T@,$ECHO_T,;t t
20712
s,@LIBS@,$LIBS,;t t
20713
s,@build@,$build,;t t
20714
s,@build_cpu@,$build_cpu,;t t
20715
s,@build_vendor@,$build_vendor,;t t
20716
s,@build_os@,$build_os,;t t
20717
s,@host@,$host,;t t
20718
s,@host_cpu@,$host_cpu,;t t
20719
s,@host_vendor@,$host_vendor,;t t
20720
s,@host_os@,$host_os,;t t
20721
s,@ADDITIONAL_INCS@,$ADDITIONAL_INCS,;t t
20722
s,@ADDITIONAL_LANG@,$ADDITIONAL_LANG,;t t
20723
s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
20724
s,@ADDITIONAL_PROGS@,$ADDITIONAL_PROGS,;t t
20725
s,@BUILD_TARGET@,$BUILD_TARGET,;t t
20726
s,@CFLAGS@,$CFLAGS,;t t
20727
s,@CONFIGURATION_ARGS@,$CONFIGURATION_ARGS,;t t
20728
s,@CONFIGURATION_PATH@,$CONFIGURATION_PATH,;t t
20729
s,@CPPFLAGS@,$CPPFLAGS,;t t
20731
s,@CXXFLAGS@,$CXXFLAGS,;t t
20732
s,@DEFAULT_LIB@,$DEFAULT_LIB,;t t
20733
s,@DEFAULT_LIB_CXX@,$DEFAULT_LIB_CXX,;t t
20734
s,@EMBEDIX_ECD_CXX@,$EMBEDIX_ECD_CXX,;t t
20735
s,@EMBEDIX_ECD_RPC@,$EMBEDIX_ECD_RPC,;t t
20736
s,@EMBEDIX_ROOT@,$EMBEDIX_ROOT,;t t
20737
s,@INSTALLER@,$INSTALLER,;t t
20738
s,@INSTALL_LIBS@,$INSTALL_LIBS,;t t
20739
s,@INSTALL_TARGET@,$INSTALL_TARGET,;t t
20741
s,@JAVACFLAGS@,$JAVACFLAGS,;t t
20742
s,@LDFLAGS@,$LDFLAGS,;t t
20743
s,@LIBJSO_LIBS@,$LIBJSO_LIBS,;t t
20744
s,@LIBSO_LIBS@,$LIBSO_LIBS,;t t
20745
s,@LIBTOOL@,$LIBTOOL,;t t
20746
s,@LIBTSO_LIBS@,$LIBTSO_LIBS,;t t
20747
s,@LIBXSO_LIBS@,$LIBXSO_LIBS,;t t
20748
s,@LOAD_LIBS@,$LOAD_LIBS,;t t
20749
s,@MAKEFILE_CC@,$MAKEFILE_CC,;t t
20750
s,@MAKEFILE_CCLINK@,$MAKEFILE_CCLINK,;t t
20751
s,@MAKEFILE_CXX@,$MAKEFILE_CXX,;t t
20752
s,@MAKEFILE_CXXLINK@,$MAKEFILE_CXXLINK,;t t
20753
s,@MAKEFILE_MAYBE_WIN32@,$MAKEFILE_MAYBE_WIN32,;t t
20754
s,@MAKEFILE_SOLINK@,$MAKEFILE_SOLINK,;t t
20755
s,@MAKEFILE_XSOLINK@,$MAKEFILE_XSOLINK,;t t
20756
s,@POSTLINK@,$POSTLINK,;t t
20757
s,@RPC_CLIENT_OBJS@,$RPC_CLIENT_OBJS,;t t
20758
s,@RPM_POST_INSTALL@,$RPM_POST_INSTALL,;t t
20759
s,@RPM_POST_UNINSTALL@,$RPM_POST_UNINSTALL,;t t
20760
s,@SOFLAGS@,$SOFLAGS,;t t
20761
s,@db_cv_path_embedix_install@,$db_cv_path_embedix_install,;t t
20762
s,@db_cv_path_rpm_archive@,$db_cv_path_rpm_archive,;t t
20763
s,@db_int_def@,$db_int_def,;t t
20765
s,@DB_VERSION_MAJOR@,$DB_VERSION_MAJOR,;t t
20766
s,@DB_VERSION_MINOR@,$DB_VERSION_MINOR,;t t
20767
s,@DB_VERSION_PATCH@,$DB_VERSION_PATCH,;t t
20768
s,@DB_VERSION_UNIQUE_NAME@,$DB_VERSION_UNIQUE_NAME,;t t
20769
s,@DB_VERSION_STRING@,$DB_VERSION_STRING,;t t
20770
s,@db_cv_path_ar@,$db_cv_path_ar,;t t
20771
s,@ac_ct_db_cv_path_ar@,$ac_ct_db_cv_path_ar,;t t
20772
s,@db_cv_path_chmod@,$db_cv_path_chmod,;t t
20773
s,@ac_ct_db_cv_path_chmod@,$ac_ct_db_cv_path_chmod,;t t
20774
s,@db_cv_path_cp@,$db_cv_path_cp,;t t
20775
s,@ac_ct_db_cv_path_cp@,$ac_ct_db_cv_path_cp,;t t
20776
s,@path_ldconfig@,$path_ldconfig,;t t
20777
s,@ac_ct_path_ldconfig@,$ac_ct_path_ldconfig,;t t
20778
s,@db_cv_path_ldconfig@,$db_cv_path_ldconfig,;t t
20779
s,@db_cv_path_ln@,$db_cv_path_ln,;t t
20780
s,@ac_ct_db_cv_path_ln@,$ac_ct_db_cv_path_ln,;t t
20781
s,@db_cv_path_mkdir@,$db_cv_path_mkdir,;t t
20782
s,@ac_ct_db_cv_path_mkdir@,$ac_ct_db_cv_path_mkdir,;t t
20783
s,@path_ranlib@,$path_ranlib,;t t
20784
s,@ac_ct_path_ranlib@,$ac_ct_path_ranlib,;t t
20785
s,@db_cv_path_ranlib@,$db_cv_path_ranlib,;t t
20786
s,@db_cv_path_rm@,$db_cv_path_rm,;t t
20787
s,@ac_ct_db_cv_path_rm@,$ac_ct_db_cv_path_rm,;t t
20788
s,@db_cv_path_rpm@,$db_cv_path_rpm,;t t
20789
s,@ac_ct_db_cv_path_rpm@,$ac_ct_db_cv_path_rpm,;t t
20790
s,@path_sh@,$path_sh,;t t
20791
s,@ac_ct_path_sh@,$ac_ct_path_sh,;t t
20792
s,@db_cv_path_sh@,$db_cv_path_sh,;t t
20793
s,@path_strip@,$path_strip,;t t
20794
s,@ac_ct_path_strip@,$ac_ct_path_strip,;t t
20795
s,@db_cv_path_strip@,$db_cv_path_strip,;t t
20796
s,@db_cv_path_kill@,$db_cv_path_kill,;t t
20797
s,@ac_ct_db_cv_path_kill@,$ac_ct_db_cv_path_kill,;t t
20798
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20799
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20800
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20802
s,@ac_ct_CC@,$ac_ct_CC,;t t
20803
s,@EXEEXT@,$EXEEXT,;t t
20804
s,@OBJEXT@,$OBJEXT,;t t
20806
s,@ac_ct_CCC@,$ac_ct_CCC,;t t
20807
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20808
s,@cxx_have_stdheaders@,$cxx_have_stdheaders,;t t
20809
s,@LN_S@,$LN_S,;t t
20810
s,@ECHO@,$ECHO,;t t
20811
s,@RANLIB@,$RANLIB,;t t
20812
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20813
s,@STRIP@,$STRIP,;t t
20814
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20816
s,@EGREP@,$EGREP,;t t
20817
s,@SOSUFFIX@,$SOSUFFIX,;t t
20818
s,@MODSUFFIX@,$MODSUFFIX,;t t
20819
s,@JMODSUFFIX@,$JMODSUFFIX,;t t
20820
s,@JAVAC@,$JAVAC,;t t
20821
s,@_ACJNI_JAVAC@,$_ACJNI_JAVAC,;t t
20822
s,@TCFLAGS@,$TCFLAGS,;t t
20823
s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
20824
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
20825
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
20826
s,@TCL_TCLSH@,$TCL_TCLSH,;t t
20827
s,@u_char_decl@,$u_char_decl,;t t
20828
s,@u_short_decl@,$u_short_decl,;t t
20829
s,@u_int_decl@,$u_int_decl,;t t
20830
s,@u_long_decl@,$u_long_decl,;t t
20831
s,@u_int8_decl@,$u_int8_decl,;t t
20832
s,@u_int16_decl@,$u_int16_decl,;t t
20833
s,@int16_decl@,$int16_decl,;t t
20834
s,@u_int32_decl@,$u_int32_decl,;t t
20835
s,@int32_decl@,$int32_decl,;t t
20836
s,@ssize_t_decl@,$ssize_t_decl,;t t
20837
s,@db_align_t_decl@,$db_align_t_decl,;t t
20838
s,@db_alignp_t_decl@,$db_alignp_t_decl,;t t
20839
s,@LIBOBJS@,$LIBOBJS,;t t
20840
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20845
cat >>$CONFIG_STATUS <<\_ACEOF
20846
# Split the substitutions into bite-sized pieces for seds with
20847
# small command number limits, like on Digital OSF/1 and HP-UX.
20848
ac_max_sed_lines=48
20849
ac_sed_frag=1 # Number of current file.
20850
ac_beg=1 # First line for current file.
20851
ac_end=$ac_max_sed_lines # Line after last line for current file.
20854
while $ac_more_lines; do
20855
if test $ac_beg -gt 1; then
20856
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20858
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20860
if test ! -s $tmp/subs.frag; then
20861
ac_more_lines=false
20863
# The purpose of the label and of the branching condition is to
20864
# speed up the sed processing (if there are no `@' at all, there
20865
# is no need to browse any of the substitutions).
20866
# These are the two extra sed commands mentioned above.
20868
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20869
if test -z "$ac_sed_cmds"; then
20870
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20872
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20874
ac_sed_frag=`expr $ac_sed_frag + 1`
20876
ac_end=`expr $ac_end + $ac_max_sed_lines`
20879
if test -z "$ac_sed_cmds"; then
20882
fi # test -n "$CONFIG_FILES"
20885
cat >>$CONFIG_STATUS <<\_ACEOF
20886
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20887
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20889
- | *:- | *:-:* ) # input from stdin
20891
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20892
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20893
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20894
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20895
* ) ac_file_in=$ac_file.in ;;
20898
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20899
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20900
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901
X"$ac_file" : 'X\(//\)[^/]' \| \
20902
X"$ac_file" : 'X\(//\)$' \| \
20903
X"$ac_file" : 'X\(/\)' \| \
20904
. : '\(.\)' 2>/dev/null ||
20906
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20907
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20908
/^X\(\/\/\)$/{ s//\1/; q; }
20909
/^X\(\/\).*/{ s//\1/; q; }
20911
{ if $as_mkdir_p; then
20916
while test ! -d "$as_dir"; do
20917
as_dirs="$as_dir $as_dirs"
20918
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20919
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920
X"$as_dir" : 'X\(//\)[^/]' \| \
20921
X"$as_dir" : 'X\(//\)$' \| \
20922
X"$as_dir" : 'X\(/\)' \| \
20923
. : '\(.\)' 2>/dev/null ||
20925
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20926
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20927
/^X\(\/\/\)$/{ s//\1/; q; }
20928
/^X\(\/\).*/{ s//\1/; q; }
20931
test ! -n "$as_dirs" || mkdir $as_dirs
20932
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20933
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20934
{ (exit 1); exit 1; }; }; }
20938
if test "$ac_dir" != .; then
20939
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20940
# A "../" for each directory in $ac_dir_suffix.
20941
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20943
ac_dir_suffix= ac_top_builddir=
20947
.) # No --srcdir option. We are building in place.
20949
if test -z "$ac_top_builddir"; then
20952
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20954
[\\/]* | ?:[\\/]* ) # Absolute path.
20955
ac_srcdir=$srcdir$ac_dir_suffix;
20956
ac_top_srcdir=$srcdir ;;
20957
*) # Relative path.
20958
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20959
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20961
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20963
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20964
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20965
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20966
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20970
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20971
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20974
if test x"$ac_file" != x-; then
20975
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20976
echo "$as_me: creating $ac_file" >&6;}
20979
# Let's still pretend it is `configure' which instantiates (i.e., don't
20980
# use $as_me), people would be surprised to read:
20981
# /* config.h. Generated by config.status. */
20982
if test x"$ac_file" = x-; then
20985
configure_input="$ac_file. "
20987
configure_input=$configure_input"Generated from `echo $ac_file_in |
20988
sed 's,.*/,,'` by configure."
20990
# First look for the input files in the build tree, otherwise in the
20992
ac_file_inputs=`IFS=:
20993
for f in $ac_file_in; do
20995
-) echo $tmp/stdin ;;
20997
# Absolute (can't be DOS-style, as IFS=:)
20998
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20999
echo "$as_me: error: cannot find input file: $f" >&2;}
21000
{ (exit 1); exit 1; }; }
21003
if test -f "$f"; then
21006
elif test -f "$srcdir/$f"; then
21011
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21012
echo "$as_me: error: cannot find input file: $f" >&2;}
21013
{ (exit 1); exit 1; }; }
21016
done` || { (exit 1); exit 1; }
21018
cat >>$CONFIG_STATUS <<_ACEOF
21022
cat >>$CONFIG_STATUS <<\_ACEOF
21024
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21025
s,@configure_input@,$configure_input,;t t
21026
s,@srcdir@,$ac_srcdir,;t t
21027
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21028
s,@top_srcdir@,$ac_top_srcdir,;t t
21029
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21030
s,@builddir@,$ac_builddir,;t t
21031
s,@abs_builddir@,$ac_abs_builddir,;t t
21032
s,@top_builddir@,$ac_top_builddir,;t t
21033
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21034
s,@INSTALL@,$ac_INSTALL,;t t
21035
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21037
if test x"$ac_file" != x-; then
21038
mv $tmp/out $ac_file
21046
cat >>$CONFIG_STATUS <<\_ACEOF
21049
# CONFIG_HEADER section.
21052
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21053
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21055
# ac_d sets the value in "#define NAME VALUE" lines.
21056
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21057
ac_dB='[ ].*$,\1#\2'
21060
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21061
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21062
ac_uB='$,\1#\2define\3'
21066
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21067
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21069
- | *:- | *:-:* ) # input from stdin
21071
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21072
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21073
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21074
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21075
* ) ac_file_in=$ac_file.in ;;
21078
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21079
echo "$as_me: creating $ac_file" >&6;}
21081
# First look for the input files in the build tree, otherwise in the
21083
ac_file_inputs=`IFS=:
21084
for f in $ac_file_in; do
21086
-) echo $tmp/stdin ;;
21088
# Absolute (can't be DOS-style, as IFS=:)
21089
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21090
echo "$as_me: error: cannot find input file: $f" >&2;}
21091
{ (exit 1); exit 1; }; }
21094
if test -f "$f"; then
21097
elif test -f "$srcdir/$f"; then
21102
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21103
echo "$as_me: error: cannot find input file: $f" >&2;}
21104
{ (exit 1); exit 1; }; }
21107
done` || { (exit 1); exit 1; }
21108
# Remove the trailing spaces.
21109
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21113
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21114
# `conftest.undefs', that substitutes the proper values into
21115
# config.h.in to produce config.h. The first handles `#define'
21116
# templates, and the second `#undef' templates.
21117
# And first: Protect against being on the right side of a sed subst in
21118
# config.status. Protect against being in an unquoted here document
21119
# in config.status.
21120
rm -f conftest.defines conftest.undefs
21121
# Using a here document instead of a string reduces the quoting nightmare.
21122
# Putting comments in sed scripts is not portable.
21124
# `end' is used to avoid that the second main sed command (meant for
21125
# 0-ary CPP macros) applies to n-ary macro definitions.
21126
# See the Autoconf documentation for `clear'.
21127
cat >confdef2sed.sed <<\_ACEOF
21132
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21134
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21137
# If some macros were called several times there might be several times
21138
# the same #defines, which is useless. Nevertheless, we may not want to
21139
# sort them, since we want the *last* AC-DEFINE to be honored.
21140
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21141
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21142
rm -f confdef2sed.sed
21144
# This sed command replaces #undef with comments. This is necessary, for
21145
# example, in the case of _POSIX_SOURCE, which is predefined and required
21146
# on some systems where configure will not decide to define it.
21147
cat >>conftest.undefs <<\_ACEOF
21148
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21151
# Break up conftest.defines because some shells have a limit on the size
21152
# of here documents, and old seds have small limits too (100 cmds).
21153
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21154
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21155
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21156
echo ' :' >>$CONFIG_STATUS
21157
rm -f conftest.tail
21158
while grep . conftest.defines >/dev/null
21160
# Write a limited-size here document to $tmp/defines.sed.
21161
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21162
# Speed up: don't consider the non `#define' lines.
21163
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21164
# Work around the forget-to-reset-the-flag bug.
21165
echo 't clr' >>$CONFIG_STATUS
21166
echo ': clr' >>$CONFIG_STATUS
21167
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21169
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21171
mv $tmp/out $tmp/in
21173
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21174
rm -f conftest.defines
21175
mv conftest.tail conftest.defines
21177
rm -f conftest.defines
21178
echo ' fi # grep' >>$CONFIG_STATUS
21179
echo >>$CONFIG_STATUS
21181
# Break up conftest.undefs because some shells have a limit on the size
21182
# of here documents, and old seds have small limits too (100 cmds).
21183
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21184
rm -f conftest.tail
21185
while grep . conftest.undefs >/dev/null
21187
# Write a limited-size here document to $tmp/undefs.sed.
21188
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21189
# Speed up: don't consider the non `#undef'
21190
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21191
# Work around the forget-to-reset-the-flag bug.
21192
echo 't clr' >>$CONFIG_STATUS
21193
echo ': clr' >>$CONFIG_STATUS
21194
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21196
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21198
mv $tmp/out $tmp/in
21200
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21201
rm -f conftest.undefs
21202
mv conftest.tail conftest.undefs
21204
rm -f conftest.undefs
21206
cat >>$CONFIG_STATUS <<\_ACEOF
21207
# Let's still pretend it is `configure' which instantiates (i.e., don't
21208
# use $as_me), people would be surprised to read:
21209
# /* config.h. Generated by config.status. */
21210
if test x"$ac_file" = x-; then
21211
echo "/* Generated by configure. */" >$tmp/config.h
21213
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21215
cat $tmp/in >>$tmp/config.h
21217
if test x"$ac_file" != x-; then
21218
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21219
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21220
echo "$as_me: $ac_file is unchanged" >&6;}
21222
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21223
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21224
X"$ac_file" : 'X\(//\)[^/]' \| \
21225
X"$ac_file" : 'X\(//\)$' \| \
21226
X"$ac_file" : 'X\(/\)' \| \
21227
. : '\(.\)' 2>/dev/null ||
21229
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21230
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21231
/^X\(\/\/\)$/{ s//\1/; q; }
21232
/^X\(\/\).*/{ s//\1/; q; }
21234
{ if $as_mkdir_p; then
21239
while test ! -d "$as_dir"; do
21240
as_dirs="$as_dir $as_dirs"
21241
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21242
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243
X"$as_dir" : 'X\(//\)[^/]' \| \
21244
X"$as_dir" : 'X\(//\)$' \| \
21245
X"$as_dir" : 'X\(/\)' \| \
21246
. : '\(.\)' 2>/dev/null ||
21248
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21249
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21250
/^X\(\/\/\)$/{ s//\1/; q; }
21251
/^X\(\/\).*/{ s//\1/; q; }
21254
test ! -n "$as_dirs" || mkdir $as_dirs
21255
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21256
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21257
{ (exit 1); exit 1; }; }; }
21260
mv $tmp/config.h $ac_file
21264
rm -f $tmp/config.h
21269
cat >>$CONFIG_STATUS <<\_ACEOF
21271
{ (exit 0); exit 0; }
21273
chmod +x $CONFIG_STATUS
21274
ac_clean_files=$ac_clean_files_save
21277
# configure is writing to config.log, and then calls config.status.
21278
# config.status does its own redirection, appending to config.log.
21279
# Unfortunately, on DOS this fails, as config.log is still kept open
21280
# by configure, so config.status won't be able to write to it; its
21281
# output is simply discarded. So we exec the FD to /dev/null,
21282
# effectively closing config.log, so it can be properly (re)opened and
21283
# appended to by config.status. When coming back to configure, we
21284
# need to make the FD available again.
21285
if test "$no_create" != yes; then
21287
ac_config_status_args=
21288
test "$silent" = yes &&
21289
ac_config_status_args="$ac_config_status_args --quiet"
21291
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21293
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21294
# would make configure fail if this is the last instruction.
21295
$ac_cs_success || { (exit 1); exit 1; }