~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/dist/configure

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by Autoconf 2.50.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Find the correct PATH separator.  Usually this is `:', but
 
11
# DJGPP uses `;' like DOS.
 
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
13
  UNAME=${UNAME-`uname 2>/dev/null`}
 
14
  case X$UNAME in
 
15
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
16
    *)     lt_cv_sys_path_separator=':' ;;
 
17
  esac
 
18
fi
 
19
 
 
20
# Check that we are running under the correct shell.
 
21
SHELL=${CONFIG_SHELL-/bin/sh}
 
22
 
 
23
case X$ECHO in
 
24
X*--fallback-echo)
 
25
  # Remove one level of quotation (which was required for Make).
 
26
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
27
  ;;
 
28
esac
 
29
 
 
30
echo=${ECHO-echo}
 
31
if test "X$1" = X--no-reexec; then
 
32
  # Discard the --no-reexec flag, and continue.
 
33
  shift
 
34
elif test "X$1" = X--fallback-echo; then
 
35
  # Avoid inline document here, it may be left over
 
36
  :
 
37
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
38
  # Yippee, $echo works!
 
39
  :
 
40
else
 
41
  # Restart under the correct shell.
 
42
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
43
fi
 
44
 
 
45
if test "X$1" = X--fallback-echo; then
 
46
  # used as fallback echo
 
47
  shift
 
48
  cat <<EOF
 
49
 
 
50
EOF
 
51
  exit 0
 
52
fi
 
53
 
 
54
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
55
# if CDPATH is set.
 
56
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
57
 
 
58
if test -z "$ECHO"; then
 
59
if test "X${echo_test_string+set}" != Xset; then
 
60
# find a string as large as possible, as long as the shell can cope with it
 
61
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
62
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
63
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
64
       echo_test_string="`eval $cmd`" &&
 
65
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
66
    then
 
67
      break
 
68
    fi
 
69
  done
 
70
fi
 
71
 
 
72
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
73
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
74
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
75
  :
 
76
else
 
77
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
78
  # backslashes.  This makes it impossible to quote backslashes using
 
79
  #   echo "$something" | sed 's/\\/\\\\/g'
 
80
  #
 
81
  # So, first we look for a working echo in the user's PATH.
 
82
 
 
83
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 
84
  for dir in $PATH /usr/ucb; do
 
85
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
86
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
87
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
88
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
89
      echo="$dir/echo"
 
90
      break
 
91
    fi
 
92
  done
 
93
  IFS="$save_ifs"
 
94
 
 
95
  if test "X$echo" = Xecho; then
 
96
    # We didn't find a better echo, so look for alternatives.
 
97
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
98
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
99
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
100
      # This shell has a builtin print -r that does the trick.
 
101
      echo='print -r'
 
102
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
103
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
104
      # If we have ksh, try running configure again with it.
 
105
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
106
      export ORIGINAL_CONFIG_SHELL
 
107
      CONFIG_SHELL=/bin/ksh
 
108
      export CONFIG_SHELL
 
109
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
110
    else
 
111
      # Try using printf.
 
112
      echo='printf %s\n'
 
113
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
114
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
115
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
116
        # Cool, printf works
 
117
        :
 
118
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
119
           test "X$echo_testing_string" = 'X\t' &&
 
120
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
121
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
122
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
123
        export CONFIG_SHELL
 
124
        SHELL="$CONFIG_SHELL"
 
125
        export SHELL
 
126
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
127
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
128
           test "X$echo_testing_string" = 'X\t' &&
 
129
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
130
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
131
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
132
      else
 
133
        # maybe with a smaller string...
 
134
        prev=:
 
135
 
 
136
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
137
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
138
          then
 
139
            break
 
140
          fi
 
141
          prev="$cmd"
 
142
        done
 
143
 
 
144
        if test "$prev" != 'sed 50q "$0"'; then
 
145
          echo_test_string=`eval $prev`
 
146
          export echo_test_string
 
147
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
148
        else
 
149
          # Oops.  We lost completely, so just stick with echo.
 
150
          echo=echo
 
151
        fi
 
152
      fi
 
153
    fi
 
154
  fi
 
155
fi
 
156
fi
 
157
 
 
158
# Copy echo and quote the copy suitably for passing to libtool from
 
159
# the Makefile, instead of quoting the original, which is used later.
 
160
ECHO=$echo
 
161
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
162
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
163
fi
 
164
 
 
165
# Be Bourne compatible
 
166
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
167
  emulate sh
 
168
  NULLCMD=:
 
169
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
170
  set -o posix
 
171
fi
 
172
 
 
173
# Name of the executable.
 
174
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
175
 
 
176
if expr a : '\(a\)' >/dev/null 2>&1; then
 
177
  as_expr=expr
 
178
else
 
179
  as_expr=false
 
180
fi
 
181
 
 
182
rm -f conf$$ conf$$.exe conf$$.file
 
183
echo >conf$$.file
 
184
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
185
  # We could just check for DJGPP; but this test a) works b) is more generic
 
186
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
187
  if test -f conf$$.exe; then
 
188
    # Don't use ln at all; we don't have any links
 
189
    as_ln_s='cp -p'
 
190
  else
 
191
    as_ln_s='ln -s'
 
192
  fi
 
193
elif ln conf$$.file conf$$ 2>/dev/null; then
 
194
  as_ln_s=ln
 
195
else
 
196
  as_ln_s='cp -p'
 
197
fi
 
198
rm -f conf$$ conf$$.exe conf$$.file
 
199
 
 
200
as_executable_p="test -f"
 
201
 
 
202
# Support unset when possible.
 
203
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
204
  as_unset=unset
 
205
else
 
206
  as_unset=false
 
207
fi
 
208
 
 
209
# NLS nuisances.
 
210
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
211
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
212
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
213
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
214
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
215
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
216
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
217
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
218
 
 
219
# IFS
 
220
# We need space, tab and new line, in precisely that order.
 
221
as_nl='
 
222
'
 
223
IFS="   $as_nl"
 
224
 
 
225
# CDPATH.
 
226
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
227
 
 
228
# Name of the host.
 
229
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
230
# so uname gets run too.
 
231
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
232
 
 
233
exec 6>&1
 
234
 
 
235
#
 
236
# Initializations.
 
237
#
 
238
ac_default_prefix=/usr/local
 
239
cross_compiling=no
 
240
subdirs=
 
241
MFLAGS= MAKEFLAGS=
 
242
SHELL=${CONFIG_SHELL-/bin/sh}
 
243
 
 
244
# Maximum number of lines to put in a shell here document.
 
245
# This variable seems obsolete.  It should probably be removed, and
 
246
# only ac_max_sed_lines should be used.
 
247
: ${ac_max_here_lines=38}
 
248
 
 
249
# Avoid depending upon Character Ranges.
 
250
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
 
251
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
252
ac_cr_09='0123456789'
 
253
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
 
254
 
 
255
# Sed expression to map a string onto a valid sh and CPP variable names.
 
256
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
 
257
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
 
258
 
 
259
ac_unique_file="../db/db.c"
 
260
ac_default_prefix=/usr/local/BerkeleyDB.@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
 
261
# Factoring default headers for most tests.
 
262
ac_includes_default="\
 
263
#include <stdio.h>
 
264
#include <sys/types.h>
 
265
#include <sys/stat.h>
 
266
#if STDC_HEADERS
 
267
# include <stdlib.h>
 
268
# include <stddef.h>
 
269
#else
 
270
# if HAVE_STDLIB_H
 
271
#  include <stdlib.h>
 
272
# endif
 
273
#endif
 
274
#if HAVE_STRING_H
 
275
# if !STDC_HEADERS && HAVE_MEMORY_H
 
276
#  include <memory.h>
 
277
# endif
 
278
# include <string.h>
 
279
#else
 
280
# if HAVE_STRINGS_H
 
281
#  include <strings.h>
 
282
# endif
 
283
#endif
 
284
#if HAVE_INTTYPES_H
 
285
# include <inttypes.h>
 
286
#endif
 
287
#if HAVE_UNISTD_H
 
288
# include <unistd.h>
 
289
#endif"
 
290
 
 
291
# Initialize some variables set by options.
 
292
ac_init_help=
 
293
ac_init_version=false
 
294
# The variables have the same names as the options, with
 
295
# dashes changed to underlines.
 
296
cache_file=/dev/null
 
297
exec_prefix=NONE
 
298
no_create=
 
299
no_recursion=
 
300
prefix=NONE
 
301
program_prefix=NONE
 
302
program_suffix=NONE
 
303
program_transform_name=s,x,x,
 
304
silent=
 
305
site=
 
306
srcdir=
 
307
verbose=
 
308
x_includes=NONE
 
309
x_libraries=NONE
 
310
 
 
311
# Installation directory options.
 
312
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
313
# and all the variables that are supposed to be based on exec_prefix
 
314
# by default will actually change.
 
315
# Use braces instead of parens because sh, perl, etc. also accept them.
 
316
bindir='${exec_prefix}/bin'
 
317
sbindir='${exec_prefix}/sbin'
 
318
libexecdir='${exec_prefix}/libexec'
 
319
datadir='${prefix}/share'
 
320
sysconfdir='${prefix}/etc'
 
321
sharedstatedir='${prefix}/com'
 
322
localstatedir='${prefix}/var'
 
323
libdir='${exec_prefix}/lib'
 
324
includedir='${prefix}/include'
 
325
oldincludedir='/usr/include'
 
326
infodir='${prefix}/info'
 
327
mandir='${prefix}/man'
 
328
 
 
329
# Identity of this package.
 
330
PACKAGE_NAME=
 
331
PACKAGE_TARNAME=
 
332
PACKAGE_VERSION=
 
333
PACKAGE_STRING=
 
334
PACKAGE_BUGREPORT=
 
335
 
 
336
ac_prev=
 
337
for ac_option
 
338
do
 
339
  # If the previous option needs an argument, assign it.
 
340
  if test -n "$ac_prev"; then
 
341
    eval "$ac_prev=\$ac_option"
 
342
    ac_prev=
 
343
    continue
 
344
  fi
 
345
 
 
346
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
347
 
 
348
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
349
 
 
350
  case $ac_option in
 
351
 
 
352
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
353
    ac_prev=bindir ;;
 
354
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
355
    bindir=$ac_optarg ;;
 
356
 
 
357
  -build | --build | --buil | --bui | --bu)
 
358
    ac_prev=build_alias ;;
 
359
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
360
    build_alias=$ac_optarg ;;
 
361
 
 
362
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
363
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
364
    ac_prev=cache_file ;;
 
365
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
366
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
367
    cache_file=$ac_optarg ;;
 
368
 
 
369
  --config-cache | -C)
 
370
    cache_file=config.cache ;;
 
371
 
 
372
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
373
    ac_prev=datadir ;;
 
374
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
375
  | --da=*)
 
376
    datadir=$ac_optarg ;;
 
377
 
 
378
  -disable-* | --disable-*)
 
379
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
380
    # Reject names that are not valid shell variable names.
 
381
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
382
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
383
   { (exit 1); exit 1; }; }
 
384
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
385
    eval "enable_$ac_feature=no" ;;
 
386
 
 
387
  -enable-* | --enable-*)
 
388
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
389
    # Reject names that are not valid shell variable names.
 
390
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
391
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
392
   { (exit 1); exit 1; }; }
 
393
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
394
    case $ac_option in
 
395
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
396
      *) ac_optarg=yes ;;
 
397
    esac
 
398
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
399
 
 
400
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
401
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
402
  | --exec | --exe | --ex)
 
403
    ac_prev=exec_prefix ;;
 
404
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
405
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
406
  | --exec=* | --exe=* | --ex=*)
 
407
    exec_prefix=$ac_optarg ;;
 
408
 
 
409
  -gas | --gas | --ga | --g)
 
410
    # Obsolete; use --with-gas.
 
411
    with_gas=yes ;;
 
412
 
 
413
  -help | --help | --hel | --he | -h)
 
414
    ac_init_help=long ;;
 
415
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
416
    ac_init_help=recursive ;;
 
417
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
418
    ac_init_help=short ;;
 
419
 
 
420
  -host | --host | --hos | --ho)
 
421
    ac_prev=host_alias ;;
 
422
  -host=* | --host=* | --hos=* | --ho=*)
 
423
    host_alias=$ac_optarg ;;
 
424
 
 
425
  -includedir | --includedir | --includedi | --included | --include \
 
426
  | --includ | --inclu | --incl | --inc)
 
427
    ac_prev=includedir ;;
 
428
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
429
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
430
    includedir=$ac_optarg ;;
 
431
 
 
432
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
433
    ac_prev=infodir ;;
 
434
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
435
    infodir=$ac_optarg ;;
 
436
 
 
437
  -libdir | --libdir | --libdi | --libd)
 
438
    ac_prev=libdir ;;
 
439
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
440
    libdir=$ac_optarg ;;
 
441
 
 
442
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
443
  | --libexe | --libex | --libe)
 
444
    ac_prev=libexecdir ;;
 
445
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
446
  | --libexe=* | --libex=* | --libe=*)
 
447
    libexecdir=$ac_optarg ;;
 
448
 
 
449
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
450
  | --localstate | --localstat | --localsta | --localst \
 
451
  | --locals | --local | --loca | --loc | --lo)
 
452
    ac_prev=localstatedir ;;
 
453
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
454
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
455
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
456
    localstatedir=$ac_optarg ;;
 
457
 
 
458
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
459
    ac_prev=mandir ;;
 
460
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
461
    mandir=$ac_optarg ;;
 
462
 
 
463
  -nfp | --nfp | --nf)
 
464
    # Obsolete; use --without-fp.
 
465
    with_fp=no ;;
 
466
 
 
467
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
468
  | --no-cr | --no-c)
 
469
    no_create=yes ;;
 
470
 
 
471
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
472
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
473
    no_recursion=yes ;;
 
474
 
 
475
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
476
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
477
  | --oldin | --oldi | --old | --ol | --o)
 
478
    ac_prev=oldincludedir ;;
 
479
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
480
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
481
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
482
    oldincludedir=$ac_optarg ;;
 
483
 
 
484
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
485
    ac_prev=prefix ;;
 
486
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
487
    prefix=$ac_optarg ;;
 
488
 
 
489
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
490
  | --program-pre | --program-pr | --program-p)
 
491
    ac_prev=program_prefix ;;
 
492
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
493
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
494
    program_prefix=$ac_optarg ;;
 
495
 
 
496
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
497
  | --program-suf | --program-su | --program-s)
 
498
    ac_prev=program_suffix ;;
 
499
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
500
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
501
    program_suffix=$ac_optarg ;;
 
502
 
 
503
  -program-transform-name | --program-transform-name \
 
504
  | --program-transform-nam | --program-transform-na \
 
505
  | --program-transform-n | --program-transform- \
 
506
  | --program-transform | --program-transfor \
 
507
  | --program-transfo | --program-transf \
 
508
  | --program-trans | --program-tran \
 
509
  | --progr-tra | --program-tr | --program-t)
 
510
    ac_prev=program_transform_name ;;
 
511
  -program-transform-name=* | --program-transform-name=* \
 
512
  | --program-transform-nam=* | --program-transform-na=* \
 
513
  | --program-transform-n=* | --program-transform-=* \
 
514
  | --program-transform=* | --program-transfor=* \
 
515
  | --program-transfo=* | --program-transf=* \
 
516
  | --program-trans=* | --program-tran=* \
 
517
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
518
    program_transform_name=$ac_optarg ;;
 
519
 
 
520
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
521
  | -silent | --silent | --silen | --sile | --sil)
 
522
    silent=yes ;;
 
523
 
 
524
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
525
    ac_prev=sbindir ;;
 
526
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
527
  | --sbi=* | --sb=*)
 
528
    sbindir=$ac_optarg ;;
 
529
 
 
530
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
531
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
532
  | --sharedst | --shareds | --shared | --share | --shar \
 
533
  | --sha | --sh)
 
534
    ac_prev=sharedstatedir ;;
 
535
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
536
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
537
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
538
  | --sha=* | --sh=*)
 
539
    sharedstatedir=$ac_optarg ;;
 
540
 
 
541
  -site | --site | --sit)
 
542
    ac_prev=site ;;
 
543
  -site=* | --site=* | --sit=*)
 
544
    site=$ac_optarg ;;
 
545
 
 
546
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
547
    ac_prev=srcdir ;;
 
548
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
549
    srcdir=$ac_optarg ;;
 
550
 
 
551
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
552
  | --syscon | --sysco | --sysc | --sys | --sy)
 
553
    ac_prev=sysconfdir ;;
 
554
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
555
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
556
    sysconfdir=$ac_optarg ;;
 
557
 
 
558
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
559
    ac_prev=target_alias ;;
 
560
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
561
    target_alias=$ac_optarg ;;
 
562
 
 
563
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
564
    verbose=yes ;;
 
565
 
 
566
  -version | --version | --versio | --versi | --vers | -V)
 
567
    ac_init_version=: ;;
 
568
 
 
569
  -with-* | --with-*)
 
570
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
571
    # Reject names that are not valid shell variable names.
 
572
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
573
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
574
   { (exit 1); exit 1; }; }
 
575
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
576
    case $ac_option in
 
577
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
578
      *) ac_optarg=yes ;;
 
579
    esac
 
580
    eval "with_$ac_package='$ac_optarg'" ;;
 
581
 
 
582
  -without-* | --without-*)
 
583
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
584
    # Reject names that are not valid shell variable names.
 
585
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
586
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
587
   { (exit 1); exit 1; }; }
 
588
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
589
    eval "with_$ac_package=no" ;;
 
590
 
 
591
  --x)
 
592
    # Obsolete; use --with-x.
 
593
    with_x=yes ;;
 
594
 
 
595
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
596
  | --x-incl | --x-inc | --x-in | --x-i)
 
597
    ac_prev=x_includes ;;
 
598
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
599
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
600
    x_includes=$ac_optarg ;;
 
601
 
 
602
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
603
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
604
    ac_prev=x_libraries ;;
 
605
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
606
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
607
    x_libraries=$ac_optarg ;;
 
608
 
 
609
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
610
Try \`$0 --help' for more information." >&2
 
611
   { (exit 1); exit 1; }; }
 
612
    ;;
 
613
 
 
614
  *=*)
 
615
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
616
    # Reject names that are not valid shell variable names.
 
617
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
 
618
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
619
   { (exit 1); exit 1; }; }
 
620
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
621
    eval "$ac_envvar='$ac_optarg'"
 
622
    export $ac_envvar ;;
 
623
 
 
624
  *)
 
625
    # FIXME: should be removed in autoconf 3.0.
 
626
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
627
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
 
628
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
629
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
630
    ;;
 
631
 
 
632
  esac
 
633
done
 
634
 
 
635
if test -n "$ac_prev"; then
 
636
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
637
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
638
   { (exit 1); exit 1; }; }
 
639
fi
 
640
 
 
641
# Be sure to have absolute paths.
 
642
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
643
              localstatedir libdir includedir oldincludedir infodir mandir \
 
644
              exec_prefix prefix
 
645
do
 
646
  eval ac_val=$`echo $ac_var`
 
647
  case $ac_val in
 
648
    [\\/$]* | ?:[\\/]* ) ;;
 
649
    NONE ) ;;
 
650
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
651
   { (exit 1); exit 1; }; };;
 
652
  esac
 
653
done
 
654
 
 
655
# There might be people who depend on the old broken behavior: `$host'
 
656
# used to hold the argument of --host etc.
 
657
build=$build_alias
 
658
host=$host_alias
 
659
target=$target_alias
 
660
 
 
661
# FIXME: should be removed in autoconf 3.0.
 
662
if test "x$host_alias" != x; then
 
663
  if test "x$build_alias" = x; then
 
664
    cross_compiling=maybe
 
665
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
666
    If a cross compiler is detected then cross compile mode will be used." >&2
 
667
  elif test "x$build_alias" != "x$host_alias"; then
 
668
    cross_compiling=yes
 
669
  fi
 
670
fi
 
671
 
 
672
ac_tool_prefix=
 
673
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
674
 
 
675
test "$silent" = yes && exec 6>/dev/null
 
676
 
 
677
# Find the source files, if location was not specified.
 
678
if test -z "$srcdir"; then
 
679
  ac_srcdir_defaulted=yes
 
680
  # Try the directory containing this script, then its parent.
 
681
  ac_prog=$0
 
682
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
 
683
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
684
  srcdir=$ac_confdir
 
685
  if test ! -r $srcdir/$ac_unique_file; then
 
686
    srcdir=..
 
687
  fi
 
688
else
 
689
  ac_srcdir_defaulted=no
 
690
fi
 
691
if test ! -r $srcdir/$ac_unique_file; then
 
692
  if test "$ac_srcdir_defaulted" = yes; then
 
693
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
694
   { (exit 1); exit 1; }; }
 
695
  else
 
696
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
697
   { (exit 1); exit 1; }; }
 
698
  fi
 
699
fi
 
700
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
701
ac_env_build_alias_set=${build_alias+set}
 
702
ac_env_build_alias_value=$build_alias
 
703
ac_cv_env_build_alias_set=${build_alias+set}
 
704
ac_cv_env_build_alias_value=$build_alias
 
705
ac_env_host_alias_set=${host_alias+set}
 
706
ac_env_host_alias_value=$host_alias
 
707
ac_cv_env_host_alias_set=${host_alias+set}
 
708
ac_cv_env_host_alias_value=$host_alias
 
709
ac_env_target_alias_set=${target_alias+set}
 
710
ac_env_target_alias_value=$target_alias
 
711
ac_cv_env_target_alias_set=${target_alias+set}
 
712
ac_cv_env_target_alias_value=$target_alias
 
713
ac_env_CC_set=${CC+set}
 
714
ac_env_CC_value=$CC
 
715
ac_cv_env_CC_set=${CC+set}
 
716
ac_cv_env_CC_value=$CC
 
717
ac_env_CFLAGS_set=${CFLAGS+set}
 
718
ac_env_CFLAGS_value=$CFLAGS
 
719
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
720
ac_cv_env_CFLAGS_value=$CFLAGS
 
721
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
722
ac_env_LDFLAGS_value=$LDFLAGS
 
723
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
724
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
725
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
726
ac_env_CPPFLAGS_value=$CPPFLAGS
 
727
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
728
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
729
ac_env_CXX_set=${CXX+set}
 
730
ac_env_CXX_value=$CXX
 
731
ac_cv_env_CXX_set=${CXX+set}
 
732
ac_cv_env_CXX_value=$CXX
 
733
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
734
ac_env_CXXFLAGS_value=$CXXFLAGS
 
735
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
736
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
737
ac_env_CPP_set=${CPP+set}
 
738
ac_env_CPP_value=$CPP
 
739
ac_cv_env_CPP_set=${CPP+set}
 
740
ac_cv_env_CPP_value=$CPP
 
741
 
 
742
#
 
743
# Report the --help message.
 
744
#
 
745
if test "$ac_init_help" = "long"; then
 
746
  # Omit some internal or obsolete options to make the list less imposing.
 
747
  # This message is too long to be a string in the A/UX 3.1 sh.
 
748
  cat <<EOF
 
749
\`configure' configures this package to adapt to many kinds of systems.
 
750
 
 
751
Usage: $0 [OPTION]... [VAR=VALUE]...
 
752
 
 
753
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
754
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
755
 
 
756
Defaults for the options are specified in brackets.
 
757
 
 
758
Configuration:
 
759
  -h, --help              display this help and exit
 
760
      --help=short        display options specific to this package
 
761
      --help=recursive    display the short help of all the included packages
 
762
  -V, --version           display version information and exit
 
763
  -q, --quiet, --silent   do not print \`checking...' messages
 
764
      --cache-file=FILE   cache test results in FILE [disabled]
 
765
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
766
  -n, --no-create         do not create output files
 
767
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
768
 
 
769
EOF
 
770
 
 
771
  cat <<EOF
 
772
Installation directories:
 
773
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
774
                          [$ac_default_prefix]
 
775
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
776
                          [PREFIX]
 
777
 
 
778
By default, \`make install' will install all the files in
 
779
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
780
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
781
for instance \`--prefix=\$HOME'.
 
782
 
 
783
For better control, use the options below.
 
784
 
 
785
Fine tuning of the installation directories:
 
786
  --bindir=DIR           user executables [EPREFIX/bin]
 
787
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
788
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
789
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
790
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
791
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
792
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
793
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
794
  --includedir=DIR       C header files [PREFIX/include]
 
795
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
796
  --infodir=DIR          info documentation [PREFIX/info]
 
797
  --mandir=DIR           man documentation [PREFIX/man]
 
798
EOF
 
799
 
 
800
  cat <<\EOF
 
801
 
 
802
Program names:
 
803
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
804
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
805
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
806
 
 
807
System types:
 
808
  --build=BUILD     configure for building on BUILD [guessed]
 
809
  --host=HOST       build programs to run on HOST [BUILD]
 
810
EOF
 
811
fi
 
812
 
 
813
if test -n "$ac_init_help"; then
 
814
 
 
815
  cat <<\EOF
 
816
 
 
817
Optional Features:
 
818
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
819
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
820
  --disable-bigfile       Obsolete; use --disable-largefile instead.
 
821
  --enable-compat185      Build DB 1.85 compatibility API.
 
822
  --enable-cxx            Build C++ API.
 
823
  --enable-debug          Build a debugging version.
 
824
  --enable-debug_rop      Build a version that logs read operations.
 
825
  --enable-debug_wop      Build a version that logs write operations.
 
826
  --enable-diagnostic     Build a version with run-time diagnostics.
 
827
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
 
828
  --enable-java           Build Java API.
 
829
  --enable-posixmutexes   Force use of POSIX standard mutexes.
 
830
  --enable-rpc            Build RPC client/server.
 
831
  --enable-tcl            Build Tcl API.
 
832
  --enable-test           Configure to run the test suite.
 
833
  --enable-uimutexes      Force use of Unix International mutexes.
 
834
  --enable-umrw           Mask harmless unitialized memory read/writes.
 
835
  --enable-shared=PKGS    build shared libraries default=yes
 
836
  --enable-static=PKGS    build static libraries default=yes
 
837
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
838
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
839
  --disable-largefile     omit support for large files
 
840
 
 
841
Optional Packages:
 
842
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
843
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
844
  --with-embedix=DIR      Embedix install directory location.
 
845
  --with-rpm=DIR          Directory location of RPM archive.
 
846
  --with-tcl=DIR          Directory location of tclConfig.sh.
 
847
  --with-uniquename=NAME  Build a uniquely named library.
 
848
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
849
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
850
 
 
851
Some influential environment variables:
 
852
  CC          C compiler command
 
853
  CFLAGS      C compiler flags
 
854
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
855
              nonstandard directory <lib dir>
 
856
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
857
              headers in a nonstandard directory <include dir>
 
858
  CXX         C++ compiler command
 
859
  CXXFLAGS    C++ compiler flags
 
860
  CPP         C preprocessor
 
861
 
 
862
Use these variables to override the choices made by `configure' or to help
 
863
it to find libraries and programs with nonstandard names/locations.
 
864
 
 
865
EOF
 
866
fi
 
867
 
 
868
if test "$ac_init_help" = "recursive"; then
 
869
  # If there are subdirs, report their specific --help.
 
870
  ac_popdir=`pwd`
 
871
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
 
872
    cd $ac_subdir
 
873
    # A "../" for each directory in /$ac_subdir.
 
874
    ac_dots=`echo $ac_subdir |
 
875
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
 
876
 
 
877
    case $srcdir in
 
878
    .) # No --srcdir option.  We are building in place.
 
879
      ac_sub_srcdir=$srcdir ;;
 
880
    [\\/]* | ?:[\\/]* ) # Absolute path.
 
881
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
 
882
    *) # Relative path.
 
883
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
 
884
    esac
 
885
 
 
886
    # Check for guested configure; otherwise get Cygnus style configure.
 
887
    if test -f $ac_sub_srcdir/configure.gnu; then
 
888
      echo
 
889
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
 
890
    elif test -f $ac_sub_srcdir/configure; then
 
891
      echo
 
892
      $SHELL $ac_sub_srcdir/configure  --help=recursive
 
893
    elif test -f $ac_sub_srcdir/configure.ac ||
 
894
           test -f $ac_sub_srcdir/configure.in; then
 
895
      echo
 
896
      $ac_configure --help
 
897
    else
 
898
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
899
    fi
 
900
    cd $ac_popdir
 
901
  done
 
902
fi
 
903
 
 
904
test -n "$ac_init_help" && exit 0
 
905
if $ac_init_version; then
 
906
  cat <<\EOF
 
907
 
 
908
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
909
Free Software Foundation, Inc.
 
910
This configure script is free software; the Free Software Foundation
 
911
gives unlimited permission to copy, distribute and modify it.
 
912
EOF
 
913
  exit 0
 
914
fi
 
915
exec 5>config.log
 
916
cat >&5 <<EOF
 
917
This file contains any messages produced by compilers while
 
918
running configure, to aid debugging if configure makes a mistake.
 
919
 
 
920
It was created by $as_me, which was
 
921
generated by GNU Autoconf 2.50.  Invocation command line was
 
922
 
 
923
  $ $0 $@
 
924
 
 
925
EOF
 
926
{
 
927
cat <<_ASUNAME
 
928
## ---------- ##
 
929
## Platform.  ##
 
930
## ---------- ##
 
931
 
 
932
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
933
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
934
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
935
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
936
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
937
 
 
938
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
939
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
940
 
 
941
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
942
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
943
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
944
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
945
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
946
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
947
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
948
 
 
949
PATH = $PATH
 
950
 
 
951
_ASUNAME
 
952
} >&5
 
953
 
 
954
cat >&5 <<EOF
 
955
## ------------ ##
 
956
## Core tests.  ##
 
957
## ------------ ##
 
958
 
 
959
EOF
 
960
 
 
961
# Keep a trace of the command line.
 
962
# Strip out --no-create and --no-recursion so they do not pile up.
 
963
# Also quote any args containing shell meta-characters.
 
964
ac_configure_args=
 
965
ac_sep=
 
966
for ac_arg
 
967
do
 
968
  case $ac_arg in
 
969
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
970
  | --no-cr | --no-c) ;;
 
971
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
972
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
973
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
974
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
975
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
976
    ac_sep=" " ;;
 
977
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
978
     ac_sep=" " ;;
 
979
  esac
 
980
  # Get rid of the leading space.
 
981
done
 
982
 
 
983
# When interrupted or exit'd, cleanup temporary files, and complete
 
984
# config.log.  We remove comments because anyway the quotes in there
 
985
# would cause problems or look ugly.
 
986
trap 'exit_status=$?
 
987
  # Save into config.log some information that might help in debugging.
 
988
  echo >&5
 
989
  echo "## ----------------- ##" >&5
 
990
  echo "## Cache variables.  ##" >&5
 
991
  echo "## ----------------- ##" >&5
 
992
  echo >&5
 
993
  # The following way of writing the cache mishandles newlines in values,
 
994
{
 
995
  (set) 2>&1 |
 
996
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
997
    *ac_space=\ *)
 
998
      sed -n \
 
999
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1000
          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1001
      ;;
 
1002
    *)
 
1003
      sed -n \
 
1004
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1005
      ;;
 
1006
    esac;
 
1007
} >&5
 
1008
  sed "/^$/d" confdefs.h >conftest.log
 
1009
  if test -s conftest.log; then
 
1010
    echo >&5
 
1011
    echo "## ------------ ##" >&5
 
1012
    echo "## confdefs.h.  ##" >&5
 
1013
    echo "## ------------ ##" >&5
 
1014
    echo >&5
 
1015
    cat conftest.log >&5
 
1016
  fi
 
1017
  (echo; echo) >&5
 
1018
  test "$ac_signal" != 0 &&
 
1019
    echo "$as_me: caught signal $ac_signal" >&5
 
1020
  echo "$as_me: exit $exit_status" >&5
 
1021
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1022
    exit $exit_status
 
1023
     ' 0
 
1024
for ac_signal in 1 2 13 15; do
 
1025
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
 
1026
done
 
1027
ac_signal=0
 
1028
 
 
1029
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1030
rm -rf conftest* confdefs.h
 
1031
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1032
echo >confdefs.h
 
1033
 
 
1034
# Let the site file select an alternate cache file if it wants to.
 
1035
# Prefer explicitly selected file to automatically selected ones.
 
1036
if test -z "$CONFIG_SITE"; then
 
1037
  if test "x$prefix" != xNONE; then
 
1038
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1039
  else
 
1040
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1041
  fi
 
1042
fi
 
1043
for ac_site_file in $CONFIG_SITE; do
 
1044
  if test -r "$ac_site_file"; then
 
1045
    { echo "$as_me:1045: loading site script $ac_site_file" >&5
 
1046
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1047
    cat "$ac_site_file" >&5
 
1048
    . "$ac_site_file"
 
1049
  fi
 
1050
done
 
1051
 
 
1052
if test -r "$cache_file"; then
 
1053
  # Some versions of bash will fail to source /dev/null (special
 
1054
  # files actually), so we avoid doing that.
 
1055
  if test -f "$cache_file"; then
 
1056
    { echo "$as_me:1056: loading cache $cache_file" >&5
 
1057
echo "$as_me: loading cache $cache_file" >&6;}
 
1058
    case $cache_file in
 
1059
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1060
      *)                      . ./$cache_file;;
 
1061
    esac
 
1062
  fi
 
1063
else
 
1064
  { echo "$as_me:1064: creating cache $cache_file" >&5
 
1065
echo "$as_me: creating cache $cache_file" >&6;}
 
1066
  >$cache_file
 
1067
fi
 
1068
 
 
1069
# Check that the precious variables saved in the cache have kept the same
 
1070
# value.
 
1071
ac_suggest_removing_cache=false
 
1072
for ac_var in `(set) 2>&1 |
 
1073
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1074
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1075
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1076
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1077
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1078
  case $ac_old_set,$ac_new_set in
 
1079
    set,)
 
1080
      { echo "$as_me:1080: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1081
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1082
      ac_suggest_removing_cache=: ;;
 
1083
    ,set)
 
1084
      { echo "$as_me:1084: WARNING: \`$ac_var' was not set in the previous run" >&5
 
1085
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
 
1086
      ac_suggest_removing_cache=: ;;
 
1087
    ,);;
 
1088
    *)
 
1089
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1090
        { echo "$as_me:1090: WARNING: \`$ac_var' has changed since the previous run:" >&5
 
1091
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
 
1092
        { echo "$as_me:1092: WARNING:   former value:  $ac_old_val" >&5
 
1093
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
 
1094
        { echo "$as_me:1094: WARNING:   current value: $ac_new_val" >&5
 
1095
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
 
1096
        ac_suggest_removing_cache=:
 
1097
      fi;;
 
1098
  esac
 
1099
done
 
1100
if $ac_suggest_removing_cache; then
 
1101
  { echo "$as_me:1101: WARNING: changes in the environment can compromise the build" >&5
 
1102
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
 
1103
  { echo "$as_me:1103: WARNING: consider removing $cache_file and starting over" >&5
 
1104
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
 
1105
fi
 
1106
 
 
1107
ac_ext=c
 
1108
ac_cpp='$CPP $CPPFLAGS'
 
1109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1112
 
 
1113
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
1114
  *c*,-n*) ECHO_N= ECHO_C='
 
1115
' ECHO_T='      ' ;;
 
1116
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
1117
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
1118
esac
 
1119
echo "#! $SHELL" >conftest.sh
 
1120
echo  "exit 0"   >>conftest.sh
 
1121
chmod +x conftest.sh
 
1122
if { (echo "$as_me:1122: PATH=\".;.\"; conftest.sh") >&5
 
1123
  (PATH=".;."; conftest.sh) 2>&5
 
1124
  ac_status=$?
 
1125
  echo "$as_me:1125: \$? = $ac_status" >&5
 
1126
  (exit $ac_status); }; then
 
1127
  ac_path_separator=';'
 
1128
else
 
1129
  ac_path_separator=:
 
1130
fi
 
1131
PATH_SEPARATOR="$ac_path_separator"
 
1132
rm -f conftest.sh
 
1133
 
 
1134
ac_config_headers="$ac_config_headers db_config.h:config.hin"
 
1135
 
 
1136
# Configure setup.
 
1137
ac_aux_dir=
 
1138
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1139
  if test -f $ac_dir/install-sh; then
 
1140
    ac_aux_dir=$ac_dir
 
1141
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1142
    break
 
1143
  elif test -f $ac_dir/install.sh; then
 
1144
    ac_aux_dir=$ac_dir
 
1145
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1146
    break
 
1147
  elif test -f $ac_dir/shtool; then
 
1148
    ac_aux_dir=$ac_dir
 
1149
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1150
    break
 
1151
  fi
 
1152
done
 
1153
if test -z "$ac_aux_dir"; then
 
1154
  { { echo "$as_me:1154: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1155
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1156
   { (exit 1); exit 1; }; }
 
1157
fi
 
1158
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1159
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1160
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1161
 
 
1162
# Make sure we can run config.sub.
 
1163
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1164
  { { echo "$as_me:1164: error: cannot run $ac_config_sub" >&5
 
1165
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1166
   { (exit 1); exit 1; }; }
 
1167
 
 
1168
echo "$as_me:1168: checking build system type" >&5
 
1169
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1170
if test "${ac_cv_build+set}" = set; then
 
1171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1172
else
 
1173
  ac_cv_build_alias=$build_alias
 
1174
test -z "$ac_cv_build_alias" &&
 
1175
  ac_cv_build_alias=`$ac_config_guess`
 
1176
test -z "$ac_cv_build_alias" &&
 
1177
  { { echo "$as_me:1177: error: cannot guess build type; you must specify one" >&5
 
1178
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1179
   { (exit 1); exit 1; }; }
 
1180
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1181
  { { echo "$as_me:1181: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 
1182
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
1183
   { (exit 1); exit 1; }; }
 
1184
 
 
1185
fi
 
1186
echo "$as_me:1186: result: $ac_cv_build" >&5
 
1187
echo "${ECHO_T}$ac_cv_build" >&6
 
1188
build=$ac_cv_build
 
1189
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1190
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1191
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1192
 
 
1193
echo "$as_me:1193: checking host system type" >&5
 
1194
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1195
if test "${ac_cv_host+set}" = set; then
 
1196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1197
else
 
1198
  ac_cv_host_alias=$host_alias
 
1199
test -z "$ac_cv_host_alias" &&
 
1200
  ac_cv_host_alias=$ac_cv_build_alias
 
1201
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1202
  { { echo "$as_me:1202: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1203
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1204
   { (exit 1); exit 1; }; }
 
1205
 
 
1206
fi
 
1207
echo "$as_me:1207: result: $ac_cv_host" >&5
 
1208
echo "${ECHO_T}$ac_cv_host" >&6
 
1209
host=$ac_cv_host
 
1210
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1211
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1212
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1213
 
 
1214
if test "$program_transform_name" = s,x,x,; then
 
1215
  program_transform_name=
 
1216
else
 
1217
  # Double any \ or $.  echo might interpret backslashes.
 
1218
  cat <<\EOF >conftest.sed
 
1219
s,\\,\\\\,g; s,\$,$$,g
 
1220
EOF
 
1221
  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1222
  rm -f conftest.sed
 
1223
fi
 
1224
test "$program_prefix" != NONE &&
 
1225
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
 
1226
# Use a double $ so make ignores it.
 
1227
test "$program_suffix" != NONE &&
 
1228
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
 
1229
 
 
1230
# sed with no file args requires a program.
 
1231
test -z "$program_transform_name" && program_transform_name="s,x,x,"
 
1232
 
 
1233
# We cannot build in the top-level directory.
 
1234
echo "$as_me:1234: checking if building in the top-level directory" >&5
 
1235
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
 
1236
 test -d db_archive  && { { echo "$as_me:1236: error:
 
1237
Berkeley DB cannot be built in the top-level distribution directory." >&5
 
1238
echo "$as_me: error:
 
1239
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
 
1240
   { (exit 1); exit 1; }; }
 
1241
echo "$as_me:1241: result: no" >&5
 
1242
echo "${ECHO_T}no" >&6
 
1243
 
 
1244
# Substitution variables.
 
1245
 
 
1246
# RPM needs the current absolute path.
 
1247
# RPM needs the list of original arguments, but we don't include the RPM
 
1248
# option itself.
 
1249
CONFIGURATION_PATH=${PWD-`pwd`}
 
1250
CONFIGURATION_ARGS=`echo "$*" |
 
1251
    sed -e 's/--with-embedix[^ ]*//' -e 's/--with-rpm[^ ]*//'`
 
1252
 
 
1253
# Set the version.
 
1254
 
 
1255
DB_VERSION_MAJOR=3
 
1256
 
 
1257
DB_VERSION_MINOR=3
 
1258
 
 
1259
DB_VERSION_PATCH=11
 
1260
 
 
1261
DB_VERSION_UNIQUE_NAME=_3003
 
1262
 
 
1263
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)\""
 
1264
 
 
1265
# Set the default installation location.
 
1266
 
 
1267
# Process all options before using them.
 
1268
 
 
1269
# --enable-bigfile was the configuration option that Berkeley DB used before
 
1270
# autoconf 2.50 was released (which had --enable-largefile integrated in).
 
1271
# Check whether --enable-bigfile or --disable-bigfile was given.
 
1272
if test "${enable_bigfile+set}" = set; then
 
1273
  enableval="$enable_bigfile"
 
1274
  { { echo "$as_me:1274: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
 
1275
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
 
1276
   { (exit 1); exit 1; }; }
 
1277
fi;
 
1278
 
 
1279
echo "$as_me:1279: checking if --enable-compat185 option specified" >&5
 
1280
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
 
1281
# Check whether --enable-compat185 or --disable-compat185 was given.
 
1282
if test "${enable_compat185+set}" = set; then
 
1283
  enableval="$enable_compat185"
 
1284
  db_cv_compat185="$enable_compat185"
 
1285
else
 
1286
  db_cv_compat185="no"
 
1287
fi;
 
1288
echo "$as_me:1288: result: $db_cv_compat185" >&5
 
1289
echo "${ECHO_T}$db_cv_compat185" >&6
 
1290
 
 
1291
echo "$as_me:1291: checking if --enable-cxx option specified" >&5
 
1292
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
 
1293
# Check whether --enable-cxx or --disable-cxx was given.
 
1294
if test "${enable_cxx+set}" = set; then
 
1295
  enableval="$enable_cxx"
 
1296
  db_cv_cxx="$enable_cxx"
 
1297
else
 
1298
  db_cv_cxx="no"
 
1299
fi;
 
1300
echo "$as_me:1300: result: $db_cv_cxx" >&5
 
1301
echo "${ECHO_T}$db_cv_cxx" >&6
 
1302
 
 
1303
echo "$as_me:1303: checking if --enable-debug option specified" >&5
 
1304
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
 
1305
# Check whether --enable-debug or --disable-debug was given.
 
1306
if test "${enable_debug+set}" = set; then
 
1307
  enableval="$enable_debug"
 
1308
  db_cv_debug="$enable_debug"
 
1309
else
 
1310
  db_cv_debug="no"
 
1311
fi;
 
1312
echo "$as_me:1312: result: $db_cv_debug" >&5
 
1313
echo "${ECHO_T}$db_cv_debug" >&6
 
1314
 
 
1315
echo "$as_me:1315: checking if --enable-debug_rop option specified" >&5
 
1316
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
 
1317
# Check whether --enable-debug_rop or --disable-debug_rop was given.
 
1318
if test "${enable_debug_rop+set}" = set; then
 
1319
  enableval="$enable_debug_rop"
 
1320
  db_cv_debug_rop="$enable_debug_rop"
 
1321
else
 
1322
  db_cv_debug_rop="no"
 
1323
fi;
 
1324
echo "$as_me:1324: result: $db_cv_debug_rop" >&5
 
1325
echo "${ECHO_T}$db_cv_debug_rop" >&6
 
1326
 
 
1327
echo "$as_me:1327: checking if --enable-debug_wop option specified" >&5
 
1328
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
 
1329
# Check whether --enable-debug_wop or --disable-debug_wop was given.
 
1330
if test "${enable_debug_wop+set}" = set; then
 
1331
  enableval="$enable_debug_wop"
 
1332
  db_cv_debug_wop="$enable_debug_wop"
 
1333
else
 
1334
  db_cv_debug_wop="no"
 
1335
fi;
 
1336
echo "$as_me:1336: result: $db_cv_debug_wop" >&5
 
1337
echo "${ECHO_T}$db_cv_debug_wop" >&6
 
1338
 
 
1339
echo "$as_me:1339: checking if --enable-diagnostic option specified" >&5
 
1340
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
 
1341
# Check whether --enable-diagnostic or --disable-diagnostic was given.
 
1342
if test "${enable_diagnostic+set}" = set; then
 
1343
  enableval="$enable_diagnostic"
 
1344
  db_cv_diagnostic="$enable_diagnostic"
 
1345
else
 
1346
  db_cv_diagnostic="no"
 
1347
fi;
 
1348
echo "$as_me:1348: result: $db_cv_diagnostic" >&5
 
1349
echo "${ECHO_T}$db_cv_diagnostic" >&6
 
1350
 
 
1351
echo "$as_me:1351: checking if --enable-dump185 option specified" >&5
 
1352
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
 
1353
# Check whether --enable-dump185 or --disable-dump185 was given.
 
1354
if test "${enable_dump185+set}" = set; then
 
1355
  enableval="$enable_dump185"
 
1356
  db_cv_dump185="$enable_dump185"
 
1357
else
 
1358
  db_cv_dump185="no"
 
1359
fi;
 
1360
echo "$as_me:1360: result: $db_cv_dump185" >&5
 
1361
echo "${ECHO_T}$db_cv_dump185" >&6
 
1362
 
 
1363
echo "$as_me:1363: checking if --enable-java option specified" >&5
 
1364
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
 
1365
# Check whether --enable-java or --disable-java was given.
 
1366
if test "${enable_java+set}" = set; then
 
1367
  enableval="$enable_java"
 
1368
  db_cv_java="$enable_java"
 
1369
else
 
1370
  db_cv_java="no"
 
1371
fi;
 
1372
echo "$as_me:1372: result: $db_cv_java" >&5
 
1373
echo "${ECHO_T}$db_cv_java" >&6
 
1374
 
 
1375
echo "$as_me:1375: checking if --enable-posixmutexes option specified" >&5
 
1376
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
 
1377
# Check whether --enable-posixmutexes or --disable-posixmutexes was given.
 
1378
if test "${enable_posixmutexes+set}" = set; then
 
1379
  enableval="$enable_posixmutexes"
 
1380
  db_cv_posixmutexes="$enable_posixmutexes"
 
1381
else
 
1382
  db_cv_posixmutexes="no"
 
1383
fi;
 
1384
echo "$as_me:1384: result: $db_cv_posixmutexes" >&5
 
1385
echo "${ECHO_T}$db_cv_posixmutexes" >&6
 
1386
 
 
1387
echo "$as_me:1387: checking if --enable-rpc option specified" >&5
 
1388
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
 
1389
# Check whether --enable-rpc or --disable-rpc was given.
 
1390
if test "${enable_rpc+set}" = set; then
 
1391
  enableval="$enable_rpc"
 
1392
  db_cv_rpc="$enable_rpc"
 
1393
else
 
1394
  db_cv_rpc="no"
 
1395
fi;
 
1396
echo "$as_me:1396: result: $db_cv_rpc" >&5
 
1397
echo "${ECHO_T}$db_cv_rpc" >&6
 
1398
 
 
1399
echo "$as_me:1399: checking if --enable-tcl option specified" >&5
 
1400
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
 
1401
# Check whether --enable-tcl or --disable-tcl was given.
 
1402
if test "${enable_tcl+set}" = set; then
 
1403
  enableval="$enable_tcl"
 
1404
  db_cv_tcl="$enable_tcl"
 
1405
else
 
1406
  db_cv_tcl="no"
 
1407
fi;
 
1408
echo "$as_me:1408: result: $db_cv_tcl" >&5
 
1409
echo "${ECHO_T}$db_cv_tcl" >&6
 
1410
 
 
1411
echo "$as_me:1411: checking if --enable-test option specified" >&5
 
1412
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
 
1413
# Check whether --enable-test or --disable-test was given.
 
1414
if test "${enable_test+set}" = set; then
 
1415
  enableval="$enable_test"
 
1416
  db_cv_test="$enable_test"
 
1417
else
 
1418
  db_cv_test="no"
 
1419
fi;
 
1420
echo "$as_me:1420: result: $db_cv_test" >&5
 
1421
echo "${ECHO_T}$db_cv_test" >&6
 
1422
 
 
1423
echo "$as_me:1423: checking if --enable-uimutexes option specified" >&5
 
1424
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
 
1425
# Check whether --enable-uimutexes or --disable-uimutexes was given.
 
1426
if test "${enable_uimutexes+set}" = set; then
 
1427
  enableval="$enable_uimutexes"
 
1428
  db_cv_uimutexes="$enable_uimutexes"
 
1429
else
 
1430
  db_cv_uimutexes="no"
 
1431
fi;
 
1432
echo "$as_me:1432: result: $db_cv_uimutexes" >&5
 
1433
echo "${ECHO_T}$db_cv_uimutexes" >&6
 
1434
 
 
1435
echo "$as_me:1435: checking if --enable-umrw option specified" >&5
 
1436
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
 
1437
# Check whether --enable-umrw or --disable-umrw was given.
 
1438
if test "${enable_umrw+set}" = set; then
 
1439
  enableval="$enable_umrw"
 
1440
  db_cv_umrw="$enable_umrw"
 
1441
else
 
1442
  db_cv_umrw="no"
 
1443
fi;
 
1444
echo "$as_me:1444: result: $db_cv_umrw" >&5
 
1445
echo "${ECHO_T}$db_cv_umrw" >&6
 
1446
 
 
1447
echo "$as_me:1447: checking if --with-embedix=DIR option specified" >&5
 
1448
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
 
1449
 
 
1450
# Check whether --with-embedix or --without-embedix was given.
 
1451
if test "${with_embedix+set}" = set; then
 
1452
  withval="$with_embedix"
 
1453
  with_embedix="$withval"
 
1454
else
 
1455
  with_embedix="no"
 
1456
fi;
 
1457
if test "$with_embedix" = "no"; then
 
1458
        db_cv_embedix="no"
 
1459
        echo "$as_me:1459: result: $with_embedix" >&5
 
1460
echo "${ECHO_T}$with_embedix" >&6
 
1461
else
 
1462
        db_cv_embedix="yes"
 
1463
        if test "$with_embedix" = "yes"; then
 
1464
                db_cv_path_embedix_install="/opt/Embedix"
 
1465
        else
 
1466
                db_cv_path_embedix_install="$with_embedix"
 
1467
        fi
 
1468
        echo "$as_me:1468: result: $db_cv_path_embedix_install" >&5
 
1469
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
 
1470
fi
 
1471
 
 
1472
echo "$as_me:1472: checking if --with-rpm=DIR option specified" >&5
 
1473
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6
 
1474
 
 
1475
# Check whether --with-rpm or --without-rpm was given.
 
1476
if test "${with_rpm+set}" = set; then
 
1477
  withval="$with_rpm"
 
1478
  with_rpm="$withval"
 
1479
else
 
1480
  with_rpm="no"
 
1481
fi;
 
1482
if test "$with_rpm" = "no"; then
 
1483
        db_cv_rpm="no"
 
1484
else
 
1485
        if test "$with_rpm" = "yes"; then
 
1486
                { { echo "$as_me:1486: error: --with-rpm requires a directory argument" >&5
 
1487
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
 
1488
   { (exit 1); exit 1; }; }
 
1489
        fi
 
1490
        db_cv_rpm="yes"
 
1491
        db_cv_path_rpm_archive="$with_rpm"
 
1492
fi
 
1493
echo "$as_me:1493: result: $with_rpm" >&5
 
1494
echo "${ECHO_T}$with_rpm" >&6
 
1495
 
 
1496
echo "$as_me:1496: checking if --with-tcl=DIR option specified" >&5
 
1497
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
 
1498
 
 
1499
# Check whether --with-tcl or --without-tcl was given.
 
1500
if test "${with_tcl+set}" = set; then
 
1501
  withval="$with_tcl"
 
1502
  with_tclconfig="$withval"
 
1503
else
 
1504
  with_tclconfig="no"
 
1505
fi;
 
1506
echo "$as_me:1506: result: $with_tclconfig" >&5
 
1507
echo "${ECHO_T}$with_tclconfig" >&6
 
1508
if test "$with_tclconfig" != "no"; then
 
1509
        db_cv_tcl="yes"
 
1510
fi
 
1511
 
 
1512
echo "$as_me:1512: checking if --with-uniquename=NAME option specified" >&5
 
1513
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6
 
1514
 
 
1515
# Check whether --with-uniquename or --without-uniquename was given.
 
1516
if test "${with_uniquename+set}" = set; then
 
1517
  withval="$with_uniquename"
 
1518
  with_uniquename="$withval"
 
1519
else
 
1520
  with_uniquename="no"
 
1521
fi;
 
1522
if test "$with_uniquename" = "no"; then
 
1523
        db_cv_uniquename="no"
 
1524
        echo "$as_me:1524: result: $with_uniquename" >&5
 
1525
echo "${ECHO_T}$with_uniquename" >&6
 
1526
else
 
1527
        db_cv_uniquename="yes"
 
1528
        if test "$with_uniquename" != "yes"; then
 
1529
                DB_VERSION_UNIQUE_NAME="$with_uniquename"
 
1530
        fi
 
1531
        echo "$as_me:1531: result: $DB_VERSION_UNIQUE_NAME" >&5
 
1532
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
 
1533
fi
 
1534
 
 
1535
# Embedix requires RPM.
 
1536
if test "$db_cv_embedix" = "yes"; then
 
1537
        if test "$db_cv_rpm" = "no"; then
 
1538
                { { echo "$as_me:1538: error: --with-embedix requires --with-rpm" >&5
 
1539
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
 
1540
   { (exit 1); exit 1; }; }
 
1541
        fi
 
1542
fi
 
1543
 
 
1544
# Test requires Tcl
 
1545
if test "$db_cv_test" = "yes"; then
 
1546
        if test "$db_cv_tcl" = "no"; then
 
1547
                { { echo "$as_me:1547: error: --enable-test requires --enable-tcl" >&5
 
1548
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
 
1549
   { (exit 1); exit 1; }; }
 
1550
        fi
 
1551
fi
 
1552
 
 
1553
# Set some #defines based on configuration options.
 
1554
if test "$db_cv_diagnostic" = yes; then
 
1555
        cat >>confdefs.h <<\EOF
 
1556
#define DIAGNOSTIC 1
 
1557
EOF
 
1558
 
 
1559
fi
 
1560
if test "$db_cv_debug_rop" = yes; then
 
1561
        cat >>confdefs.h <<\EOF
 
1562
#define DEBUG_ROP 1
 
1563
EOF
 
1564
 
 
1565
fi
 
1566
if test "$db_cv_debug_wop" = yes; then
 
1567
        cat >>confdefs.h <<\EOF
 
1568
#define DEBUG_WOP 1
 
1569
EOF
 
1570
 
 
1571
fi
 
1572
if test "$db_cv_umrw" = yes; then
 
1573
        cat >>confdefs.h <<\EOF
 
1574
#define UMRW 1
 
1575
EOF
 
1576
 
 
1577
fi
 
1578
if test "$db_cv_test" = yes; then
 
1579
        cat >>confdefs.h <<\EOF
 
1580
#define CONFIG_TEST 1
 
1581
EOF
 
1582
 
 
1583
fi
 
1584
 
 
1585
# Check for programs used in building and installation.
 
1586
 
 
1587
if test -n "$ac_tool_prefix"; then
 
1588
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
1589
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
1590
echo "$as_me:1590: checking for $ac_word" >&5
 
1591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1592
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
 
1593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1594
else
 
1595
  if test -n "$db_cv_path_ar"; then
 
1596
  ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
 
1597
else
 
1598
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1599
ac_dummy="$PATH"
 
1600
for ac_dir in $ac_dummy; do
 
1601
  IFS=$ac_save_IFS
 
1602
  test -z "$ac_dir" && ac_dir=.
 
1603
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1604
ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
 
1605
echo "$as_me:1605: found $ac_dir/$ac_word" >&5
 
1606
break
 
1607
done
 
1608
 
 
1609
fi
 
1610
fi
 
1611
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
 
1612
if test -n "$db_cv_path_ar"; then
 
1613
  echo "$as_me:1613: result: $db_cv_path_ar" >&5
 
1614
echo "${ECHO_T}$db_cv_path_ar" >&6
 
1615
else
 
1616
  echo "$as_me:1616: result: no" >&5
 
1617
echo "${ECHO_T}no" >&6
 
1618
fi
 
1619
 
 
1620
fi
 
1621
if test -z "$ac_cv_prog_db_cv_path_ar"; then
 
1622
  ac_ct_db_cv_path_ar=$db_cv_path_ar
 
1623
  # Extract the first word of "ar", so it can be a program name with args.
 
1624
set dummy ar; ac_word=$2
 
1625
echo "$as_me:1625: checking for $ac_word" >&5
 
1626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1627
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
 
1628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1629
else
 
1630
  if test -n "$ac_ct_db_cv_path_ar"; then
 
1631
  ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
 
1632
else
 
1633
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1634
ac_dummy="$PATH"
 
1635
for ac_dir in $ac_dummy; do
 
1636
  IFS=$ac_save_IFS
 
1637
  test -z "$ac_dir" && ac_dir=.
 
1638
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1639
ac_cv_prog_ac_ct_db_cv_path_ar="ar"
 
1640
echo "$as_me:1640: found $ac_dir/$ac_word" >&5
 
1641
break
 
1642
done
 
1643
 
 
1644
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
 
1645
fi
 
1646
fi
 
1647
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
 
1648
if test -n "$ac_ct_db_cv_path_ar"; then
 
1649
  echo "$as_me:1649: result: $ac_ct_db_cv_path_ar" >&5
 
1650
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
 
1651
else
 
1652
  echo "$as_me:1652: result: no" >&5
 
1653
echo "${ECHO_T}no" >&6
 
1654
fi
 
1655
 
 
1656
  db_cv_path_ar=$ac_ct_db_cv_path_ar
 
1657
else
 
1658
  db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
 
1659
fi
 
1660
 
 
1661
if test "$db_cv_path_ar" = missing_ar; then
 
1662
        { { echo "$as_me:1662: error: No ar utility found." >&5
 
1663
echo "$as_me: error: No ar utility found." >&2;}
 
1664
   { (exit 1); exit 1; }; }
 
1665
fi
 
1666
 
 
1667
if test -n "$ac_tool_prefix"; then
 
1668
  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
 
1669
set dummy ${ac_tool_prefix}chmod; ac_word=$2
 
1670
echo "$as_me:1670: checking for $ac_word" >&5
 
1671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1672
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
 
1673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1674
else
 
1675
  if test -n "$db_cv_path_chmod"; then
 
1676
  ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
 
1677
else
 
1678
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1679
ac_dummy="$PATH"
 
1680
for ac_dir in $ac_dummy; do
 
1681
  IFS=$ac_save_IFS
 
1682
  test -z "$ac_dir" && ac_dir=.
 
1683
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1684
ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
 
1685
echo "$as_me:1685: found $ac_dir/$ac_word" >&5
 
1686
break
 
1687
done
 
1688
 
 
1689
fi
 
1690
fi
 
1691
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
 
1692
if test -n "$db_cv_path_chmod"; then
 
1693
  echo "$as_me:1693: result: $db_cv_path_chmod" >&5
 
1694
echo "${ECHO_T}$db_cv_path_chmod" >&6
 
1695
else
 
1696
  echo "$as_me:1696: result: no" >&5
 
1697
echo "${ECHO_T}no" >&6
 
1698
fi
 
1699
 
 
1700
fi
 
1701
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
 
1702
  ac_ct_db_cv_path_chmod=$db_cv_path_chmod
 
1703
  # Extract the first word of "chmod", so it can be a program name with args.
 
1704
set dummy chmod; ac_word=$2
 
1705
echo "$as_me:1705: checking for $ac_word" >&5
 
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1707
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
 
1708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1709
else
 
1710
  if test -n "$ac_ct_db_cv_path_chmod"; then
 
1711
  ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
 
1712
else
 
1713
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1714
ac_dummy="$PATH"
 
1715
for ac_dir in $ac_dummy; do
 
1716
  IFS=$ac_save_IFS
 
1717
  test -z "$ac_dir" && ac_dir=.
 
1718
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1719
ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
 
1720
echo "$as_me:1720: found $ac_dir/$ac_word" >&5
 
1721
break
 
1722
done
 
1723
 
 
1724
  test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
 
1725
fi
 
1726
fi
 
1727
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
 
1728
if test -n "$ac_ct_db_cv_path_chmod"; then
 
1729
  echo "$as_me:1729: result: $ac_ct_db_cv_path_chmod" >&5
 
1730
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
 
1731
else
 
1732
  echo "$as_me:1732: result: no" >&5
 
1733
echo "${ECHO_T}no" >&6
 
1734
fi
 
1735
 
 
1736
  db_cv_path_chmod=$ac_ct_db_cv_path_chmod
 
1737
else
 
1738
  db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
 
1739
fi
 
1740
 
 
1741
if test "$db_cv_path_chmod" = missing_chmod; then
 
1742
        { { echo "$as_me:1742: error: No chmod utility found." >&5
 
1743
echo "$as_me: error: No chmod utility found." >&2;}
 
1744
   { (exit 1); exit 1; }; }
 
1745
fi
 
1746
 
 
1747
if test -n "$ac_tool_prefix"; then
 
1748
  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
 
1749
set dummy ${ac_tool_prefix}cp; ac_word=$2
 
1750
echo "$as_me:1750: checking for $ac_word" >&5
 
1751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1752
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
 
1753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1754
else
 
1755
  if test -n "$db_cv_path_cp"; then
 
1756
  ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
 
1757
else
 
1758
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1759
ac_dummy="$PATH"
 
1760
for ac_dir in $ac_dummy; do
 
1761
  IFS=$ac_save_IFS
 
1762
  test -z "$ac_dir" && ac_dir=.
 
1763
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1764
ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
 
1765
echo "$as_me:1765: found $ac_dir/$ac_word" >&5
 
1766
break
 
1767
done
 
1768
 
 
1769
fi
 
1770
fi
 
1771
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
 
1772
if test -n "$db_cv_path_cp"; then
 
1773
  echo "$as_me:1773: result: $db_cv_path_cp" >&5
 
1774
echo "${ECHO_T}$db_cv_path_cp" >&6
 
1775
else
 
1776
  echo "$as_me:1776: result: no" >&5
 
1777
echo "${ECHO_T}no" >&6
 
1778
fi
 
1779
 
 
1780
fi
 
1781
if test -z "$ac_cv_prog_db_cv_path_cp"; then
 
1782
  ac_ct_db_cv_path_cp=$db_cv_path_cp
 
1783
  # Extract the first word of "cp", so it can be a program name with args.
 
1784
set dummy cp; ac_word=$2
 
1785
echo "$as_me:1785: checking for $ac_word" >&5
 
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1787
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
 
1788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1789
else
 
1790
  if test -n "$ac_ct_db_cv_path_cp"; then
 
1791
  ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
 
1792
else
 
1793
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1794
ac_dummy="$PATH"
 
1795
for ac_dir in $ac_dummy; do
 
1796
  IFS=$ac_save_IFS
 
1797
  test -z "$ac_dir" && ac_dir=.
 
1798
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1799
ac_cv_prog_ac_ct_db_cv_path_cp="cp"
 
1800
echo "$as_me:1800: found $ac_dir/$ac_word" >&5
 
1801
break
 
1802
done
 
1803
 
 
1804
  test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
 
1805
fi
 
1806
fi
 
1807
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
 
1808
if test -n "$ac_ct_db_cv_path_cp"; then
 
1809
  echo "$as_me:1809: result: $ac_ct_db_cv_path_cp" >&5
 
1810
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
 
1811
else
 
1812
  echo "$as_me:1812: result: no" >&5
 
1813
echo "${ECHO_T}no" >&6
 
1814
fi
 
1815
 
 
1816
  db_cv_path_cp=$ac_ct_db_cv_path_cp
 
1817
else
 
1818
  db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
 
1819
fi
 
1820
 
 
1821
if test "$db_cv_path_cp" = missing_cp; then
 
1822
        { { echo "$as_me:1822: error: No cp utility found." >&5
 
1823
echo "$as_me: error: No cp utility found." >&2;}
 
1824
   { (exit 1); exit 1; }; }
 
1825
fi
 
1826
 
 
1827
if test "$db_cv_rpm" = "yes"; then
 
1828
        if test -n "$ac_tool_prefix"; then
 
1829
  # Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
 
1830
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
 
1831
echo "$as_me:1831: checking for $ac_word" >&5
 
1832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1833
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
 
1834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1835
else
 
1836
  if test -n "$path_ldconfig"; then
 
1837
  ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
 
1838
else
 
1839
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1840
ac_dummy="$PATH"
 
1841
for ac_dir in $ac_dummy; do
 
1842
  IFS=$ac_save_IFS
 
1843
  test -z "$ac_dir" && ac_dir=.
 
1844
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1845
ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
 
1846
echo "$as_me:1846: found $ac_dir/$ac_word" >&5
 
1847
break
 
1848
done
 
1849
 
 
1850
fi
 
1851
fi
 
1852
path_ldconfig=$ac_cv_prog_path_ldconfig
 
1853
if test -n "$path_ldconfig"; then
 
1854
  echo "$as_me:1854: result: $path_ldconfig" >&5
 
1855
echo "${ECHO_T}$path_ldconfig" >&6
 
1856
else
 
1857
  echo "$as_me:1857: result: no" >&5
 
1858
echo "${ECHO_T}no" >&6
 
1859
fi
 
1860
 
 
1861
fi
 
1862
if test -z "$ac_cv_prog_path_ldconfig"; then
 
1863
  ac_ct_path_ldconfig=$path_ldconfig
 
1864
  # Extract the first word of "ldconfig", so it can be a program name with args.
 
1865
set dummy ldconfig; ac_word=$2
 
1866
echo "$as_me:1866: checking for $ac_word" >&5
 
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1868
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
 
1869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1870
else
 
1871
  if test -n "$ac_ct_path_ldconfig"; then
 
1872
  ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
 
1873
else
 
1874
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1875
ac_dummy="$PATH"
 
1876
for ac_dir in $ac_dummy; do
 
1877
  IFS=$ac_save_IFS
 
1878
  test -z "$ac_dir" && ac_dir=.
 
1879
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1880
ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
 
1881
echo "$as_me:1881: found $ac_dir/$ac_word" >&5
 
1882
break
 
1883
done
 
1884
 
 
1885
  test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
 
1886
fi
 
1887
fi
 
1888
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
 
1889
if test -n "$ac_ct_path_ldconfig"; then
 
1890
  echo "$as_me:1890: result: $ac_ct_path_ldconfig" >&5
 
1891
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
 
1892
else
 
1893
  echo "$as_me:1893: result: no" >&5
 
1894
echo "${ECHO_T}no" >&6
 
1895
fi
 
1896
 
 
1897
  path_ldconfig=$ac_ct_path_ldconfig
 
1898
else
 
1899
  path_ldconfig="$ac_cv_prog_path_ldconfig"
 
1900
fi
 
1901
 
 
1902
        # Extract the first word of "$path_ldconfig", so it can be a program name with args.
 
1903
set dummy $path_ldconfig; ac_word=$2
 
1904
echo "$as_me:1904: checking for $ac_word" >&5
 
1905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1906
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
 
1907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1908
else
 
1909
  case $db_cv_path_ldconfig in
 
1910
  [\\/]* | ?:[\\/]*)
 
1911
  ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
 
1912
  ;;
 
1913
  *)
 
1914
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1915
ac_dummy="$PATH"
 
1916
for ac_dir in $ac_dummy; do
 
1917
  IFS=$ac_save_IFS
 
1918
  test -z "$ac_dir" && ac_dir=.
 
1919
  if $as_executable_p "$ac_dir/$ac_word"; then
 
1920
   ac_cv_path_db_cv_path_ldconfig="$ac_dir/$ac_word"
 
1921
   echo "$as_me:1921: found $ac_dir/$ac_word" >&5
 
1922
   break
 
1923
fi
 
1924
done
 
1925
 
 
1926
  test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
 
1927
  ;;
 
1928
esac
 
1929
fi
 
1930
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig
 
1931
 
 
1932
if test -n "$db_cv_path_ldconfig"; then
 
1933
  echo "$as_me:1933: result: $db_cv_path_ldconfig" >&5
 
1934
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
 
1935
else
 
1936
  echo "$as_me:1936: result: no" >&5
 
1937
echo "${ECHO_T}no" >&6
 
1938
fi
 
1939
 
 
1940
        if test "$db_cv_path_ldconfig" != missing_ldconfig; then
 
1941
                RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
 
1942
                RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
 
1943
        fi
 
1944
fi
 
1945
 
 
1946
if test -n "$ac_tool_prefix"; then
 
1947
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
 
1948
set dummy ${ac_tool_prefix}ln; ac_word=$2
 
1949
echo "$as_me:1949: checking for $ac_word" >&5
 
1950
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1951
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
 
1952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1953
else
 
1954
  if test -n "$db_cv_path_ln"; then
 
1955
  ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
 
1956
else
 
1957
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1958
ac_dummy="$PATH"
 
1959
for ac_dir in $ac_dummy; do
 
1960
  IFS=$ac_save_IFS
 
1961
  test -z "$ac_dir" && ac_dir=.
 
1962
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1963
ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
 
1964
echo "$as_me:1964: found $ac_dir/$ac_word" >&5
 
1965
break
 
1966
done
 
1967
 
 
1968
fi
 
1969
fi
 
1970
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
 
1971
if test -n "$db_cv_path_ln"; then
 
1972
  echo "$as_me:1972: result: $db_cv_path_ln" >&5
 
1973
echo "${ECHO_T}$db_cv_path_ln" >&6
 
1974
else
 
1975
  echo "$as_me:1975: result: no" >&5
 
1976
echo "${ECHO_T}no" >&6
 
1977
fi
 
1978
 
 
1979
fi
 
1980
if test -z "$ac_cv_prog_db_cv_path_ln"; then
 
1981
  ac_ct_db_cv_path_ln=$db_cv_path_ln
 
1982
  # Extract the first word of "ln", so it can be a program name with args.
 
1983
set dummy ln; ac_word=$2
 
1984
echo "$as_me:1984: checking for $ac_word" >&5
 
1985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1986
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
 
1987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1988
else
 
1989
  if test -n "$ac_ct_db_cv_path_ln"; then
 
1990
  ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
 
1991
else
 
1992
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1993
ac_dummy="$PATH"
 
1994
for ac_dir in $ac_dummy; do
 
1995
  IFS=$ac_save_IFS
 
1996
  test -z "$ac_dir" && ac_dir=.
 
1997
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1998
ac_cv_prog_ac_ct_db_cv_path_ln="ln"
 
1999
echo "$as_me:1999: found $ac_dir/$ac_word" >&5
 
2000
break
 
2001
done
 
2002
 
 
2003
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
 
2004
fi
 
2005
fi
 
2006
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
 
2007
if test -n "$ac_ct_db_cv_path_ln"; then
 
2008
  echo "$as_me:2008: result: $ac_ct_db_cv_path_ln" >&5
 
2009
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
 
2010
else
 
2011
  echo "$as_me:2011: result: no" >&5
 
2012
echo "${ECHO_T}no" >&6
 
2013
fi
 
2014
 
 
2015
  db_cv_path_ln=$ac_ct_db_cv_path_ln
 
2016
else
 
2017
  db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
 
2018
fi
 
2019
 
 
2020
if test "$db_cv_path_ln" = missing_ln; then
 
2021
        { { echo "$as_me:2021: error: No ln utility found." >&5
 
2022
echo "$as_me: error: No ln utility found." >&2;}
 
2023
   { (exit 1); exit 1; }; }
 
2024
fi
 
2025
 
 
2026
if test -n "$ac_tool_prefix"; then
 
2027
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
 
2028
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
 
2029
echo "$as_me:2029: checking for $ac_word" >&5
 
2030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2031
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
 
2032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2033
else
 
2034
  if test -n "$db_cv_path_mkdir"; then
 
2035
  ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
 
2036
else
 
2037
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2038
ac_dummy="$PATH"
 
2039
for ac_dir in $ac_dummy; do
 
2040
  IFS=$ac_save_IFS
 
2041
  test -z "$ac_dir" && ac_dir=.
 
2042
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2043
ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
 
2044
echo "$as_me:2044: found $ac_dir/$ac_word" >&5
 
2045
break
 
2046
done
 
2047
 
 
2048
fi
 
2049
fi
 
2050
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
 
2051
if test -n "$db_cv_path_mkdir"; then
 
2052
  echo "$as_me:2052: result: $db_cv_path_mkdir" >&5
 
2053
echo "${ECHO_T}$db_cv_path_mkdir" >&6
 
2054
else
 
2055
  echo "$as_me:2055: result: no" >&5
 
2056
echo "${ECHO_T}no" >&6
 
2057
fi
 
2058
 
 
2059
fi
 
2060
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
 
2061
  ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
 
2062
  # Extract the first word of "mkdir", so it can be a program name with args.
 
2063
set dummy mkdir; ac_word=$2
 
2064
echo "$as_me:2064: checking for $ac_word" >&5
 
2065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2066
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
 
2067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2068
else
 
2069
  if test -n "$ac_ct_db_cv_path_mkdir"; then
 
2070
  ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
 
2071
else
 
2072
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2073
ac_dummy="$PATH"
 
2074
for ac_dir in $ac_dummy; do
 
2075
  IFS=$ac_save_IFS
 
2076
  test -z "$ac_dir" && ac_dir=.
 
2077
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2078
ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
 
2079
echo "$as_me:2079: found $ac_dir/$ac_word" >&5
 
2080
break
 
2081
done
 
2082
 
 
2083
  test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
 
2084
fi
 
2085
fi
 
2086
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
 
2087
if test -n "$ac_ct_db_cv_path_mkdir"; then
 
2088
  echo "$as_me:2088: result: $ac_ct_db_cv_path_mkdir" >&5
 
2089
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
 
2090
else
 
2091
  echo "$as_me:2091: result: no" >&5
 
2092
echo "${ECHO_T}no" >&6
 
2093
fi
 
2094
 
 
2095
  db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
 
2096
else
 
2097
  db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
 
2098
fi
 
2099
 
 
2100
if test "$db_cv_path_mkdir" = missing_mkdir; then
 
2101
        { { echo "$as_me:2101: error: No mkdir utility found." >&5
 
2102
echo "$as_me: error: No mkdir utility found." >&2;}
 
2103
   { (exit 1); exit 1; }; }
 
2104
fi
 
2105
 
 
2106
# We need a complete path for ranlib, because it doesn't exist on some
 
2107
# architectures because the ar utility packages the library itself.
 
2108
if test -n "$ac_tool_prefix"; then
 
2109
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
2110
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
2111
echo "$as_me:2111: checking for $ac_word" >&5
 
2112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2113
if test "${ac_cv_prog_path_ranlib+set}" = set; then
 
2114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2115
else
 
2116
  if test -n "$path_ranlib"; then
 
2117
  ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
 
2118
else
 
2119
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2120
ac_dummy="$PATH"
 
2121
for ac_dir in $ac_dummy; do
 
2122
  IFS=$ac_save_IFS
 
2123
  test -z "$ac_dir" && ac_dir=.
 
2124
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2125
ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
 
2126
echo "$as_me:2126: found $ac_dir/$ac_word" >&5
 
2127
break
 
2128
done
 
2129
 
 
2130
fi
 
2131
fi
 
2132
path_ranlib=$ac_cv_prog_path_ranlib
 
2133
if test -n "$path_ranlib"; then
 
2134
  echo "$as_me:2134: result: $path_ranlib" >&5
 
2135
echo "${ECHO_T}$path_ranlib" >&6
 
2136
else
 
2137
  echo "$as_me:2137: result: no" >&5
 
2138
echo "${ECHO_T}no" >&6
 
2139
fi
 
2140
 
 
2141
fi
 
2142
if test -z "$ac_cv_prog_path_ranlib"; then
 
2143
  ac_ct_path_ranlib=$path_ranlib
 
2144
  # Extract the first word of "ranlib", so it can be a program name with args.
 
2145
set dummy ranlib; ac_word=$2
 
2146
echo "$as_me:2146: checking for $ac_word" >&5
 
2147
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2148
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
 
2149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2150
else
 
2151
  if test -n "$ac_ct_path_ranlib"; then
 
2152
  ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
 
2153
else
 
2154
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2155
ac_dummy="$PATH"
 
2156
for ac_dir in $ac_dummy; do
 
2157
  IFS=$ac_save_IFS
 
2158
  test -z "$ac_dir" && ac_dir=.
 
2159
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2160
ac_cv_prog_ac_ct_path_ranlib="ranlib"
 
2161
echo "$as_me:2161: found $ac_dir/$ac_word" >&5
 
2162
break
 
2163
done
 
2164
 
 
2165
  test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
 
2166
fi
 
2167
fi
 
2168
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
 
2169
if test -n "$ac_ct_path_ranlib"; then
 
2170
  echo "$as_me:2170: result: $ac_ct_path_ranlib" >&5
 
2171
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
 
2172
else
 
2173
  echo "$as_me:2173: result: no" >&5
 
2174
echo "${ECHO_T}no" >&6
 
2175
fi
 
2176
 
 
2177
  path_ranlib=$ac_ct_path_ranlib
 
2178
else
 
2179
  path_ranlib="$ac_cv_prog_path_ranlib"
 
2180
fi
 
2181
 
 
2182
# Extract the first word of "$path_ranlib", so it can be a program name with args.
 
2183
set dummy $path_ranlib; ac_word=$2
 
2184
echo "$as_me:2184: checking for $ac_word" >&5
 
2185
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2186
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
 
2187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2188
else
 
2189
  case $db_cv_path_ranlib in
 
2190
  [\\/]* | ?:[\\/]*)
 
2191
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
 
2192
  ;;
 
2193
  *)
 
2194
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2195
ac_dummy="$PATH"
 
2196
for ac_dir in $ac_dummy; do
 
2197
  IFS=$ac_save_IFS
 
2198
  test -z "$ac_dir" && ac_dir=.
 
2199
  if $as_executable_p "$ac_dir/$ac_word"; then
 
2200
   ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
 
2201
   echo "$as_me:2201: found $ac_dir/$ac_word" >&5
 
2202
   break
 
2203
fi
 
2204
done
 
2205
 
 
2206
  test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
 
2207
  ;;
 
2208
esac
 
2209
fi
 
2210
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib
 
2211
 
 
2212
if test -n "$db_cv_path_ranlib"; then
 
2213
  echo "$as_me:2213: result: $db_cv_path_ranlib" >&5
 
2214
echo "${ECHO_T}$db_cv_path_ranlib" >&6
 
2215
else
 
2216
  echo "$as_me:2216: result: no" >&5
 
2217
echo "${ECHO_T}no" >&6
 
2218
fi
 
2219
 
 
2220
if test -n "$ac_tool_prefix"; then
 
2221
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
 
2222
set dummy ${ac_tool_prefix}rm; ac_word=$2
 
2223
echo "$as_me:2223: checking for $ac_word" >&5
 
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2225
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
 
2226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2227
else
 
2228
  if test -n "$db_cv_path_rm"; then
 
2229
  ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
 
2230
else
 
2231
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2232
ac_dummy="$PATH"
 
2233
for ac_dir in $ac_dummy; do
 
2234
  IFS=$ac_save_IFS
 
2235
  test -z "$ac_dir" && ac_dir=.
 
2236
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2237
ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
 
2238
echo "$as_me:2238: found $ac_dir/$ac_word" >&5
 
2239
break
 
2240
done
 
2241
 
 
2242
fi
 
2243
fi
 
2244
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
 
2245
if test -n "$db_cv_path_rm"; then
 
2246
  echo "$as_me:2246: result: $db_cv_path_rm" >&5
 
2247
echo "${ECHO_T}$db_cv_path_rm" >&6
 
2248
else
 
2249
  echo "$as_me:2249: result: no" >&5
 
2250
echo "${ECHO_T}no" >&6
 
2251
fi
 
2252
 
 
2253
fi
 
2254
if test -z "$ac_cv_prog_db_cv_path_rm"; then
 
2255
  ac_ct_db_cv_path_rm=$db_cv_path_rm
 
2256
  # Extract the first word of "rm", so it can be a program name with args.
 
2257
set dummy rm; ac_word=$2
 
2258
echo "$as_me:2258: checking for $ac_word" >&5
 
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2260
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
 
2261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2262
else
 
2263
  if test -n "$ac_ct_db_cv_path_rm"; then
 
2264
  ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
 
2265
else
 
2266
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2267
ac_dummy="$PATH"
 
2268
for ac_dir in $ac_dummy; do
 
2269
  IFS=$ac_save_IFS
 
2270
  test -z "$ac_dir" && ac_dir=.
 
2271
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2272
ac_cv_prog_ac_ct_db_cv_path_rm="rm"
 
2273
echo "$as_me:2273: found $ac_dir/$ac_word" >&5
 
2274
break
 
2275
done
 
2276
 
 
2277
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
 
2278
fi
 
2279
fi
 
2280
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
 
2281
if test -n "$ac_ct_db_cv_path_rm"; then
 
2282
  echo "$as_me:2282: result: $ac_ct_db_cv_path_rm" >&5
 
2283
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
 
2284
else
 
2285
  echo "$as_me:2285: result: no" >&5
 
2286
echo "${ECHO_T}no" >&6
 
2287
fi
 
2288
 
 
2289
  db_cv_path_rm=$ac_ct_db_cv_path_rm
 
2290
else
 
2291
  db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
 
2292
fi
 
2293
 
 
2294
if test "$db_cv_path_rm" = missing_rm; then
 
2295
        { { echo "$as_me:2295: error: No rm utility found." >&5
 
2296
echo "$as_me: error: No rm utility found." >&2;}
 
2297
   { (exit 1); exit 1; }; }
 
2298
fi
 
2299
 
 
2300
if test "$db_cv_rpm" = "yes"; then
 
2301
        if test -n "$ac_tool_prefix"; then
 
2302
  # Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
 
2303
set dummy ${ac_tool_prefix}rpm; ac_word=$2
 
2304
echo "$as_me:2304: checking for $ac_word" >&5
 
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2306
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
 
2307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2308
else
 
2309
  if test -n "$db_cv_path_rpm"; then
 
2310
  ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
 
2311
else
 
2312
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2313
ac_dummy="$PATH"
 
2314
for ac_dir in $ac_dummy; do
 
2315
  IFS=$ac_save_IFS
 
2316
  test -z "$ac_dir" && ac_dir=.
 
2317
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2318
ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
 
2319
echo "$as_me:2319: found $ac_dir/$ac_word" >&5
 
2320
break
 
2321
done
 
2322
 
 
2323
fi
 
2324
fi
 
2325
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
 
2326
if test -n "$db_cv_path_rpm"; then
 
2327
  echo "$as_me:2327: result: $db_cv_path_rpm" >&5
 
2328
echo "${ECHO_T}$db_cv_path_rpm" >&6
 
2329
else
 
2330
  echo "$as_me:2330: result: no" >&5
 
2331
echo "${ECHO_T}no" >&6
 
2332
fi
 
2333
 
 
2334
fi
 
2335
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
 
2336
  ac_ct_db_cv_path_rpm=$db_cv_path_rpm
 
2337
  # Extract the first word of "rpm", so it can be a program name with args.
 
2338
set dummy rpm; ac_word=$2
 
2339
echo "$as_me:2339: checking for $ac_word" >&5
 
2340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2341
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
 
2342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2343
else
 
2344
  if test -n "$ac_ct_db_cv_path_rpm"; then
 
2345
  ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
 
2346
else
 
2347
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2348
ac_dummy="$PATH"
 
2349
for ac_dir in $ac_dummy; do
 
2350
  IFS=$ac_save_IFS
 
2351
  test -z "$ac_dir" && ac_dir=.
 
2352
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2353
ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
 
2354
echo "$as_me:2354: found $ac_dir/$ac_word" >&5
 
2355
break
 
2356
done
 
2357
 
 
2358
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
 
2359
fi
 
2360
fi
 
2361
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
 
2362
if test -n "$ac_ct_db_cv_path_rpm"; then
 
2363
  echo "$as_me:2363: result: $ac_ct_db_cv_path_rpm" >&5
 
2364
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
 
2365
else
 
2366
  echo "$as_me:2366: result: no" >&5
 
2367
echo "${ECHO_T}no" >&6
 
2368
fi
 
2369
 
 
2370
  db_cv_path_rpm=$ac_ct_db_cv_path_rpm
 
2371
else
 
2372
  db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
 
2373
fi
 
2374
 
 
2375
        if test "$db_cv_path_rpm" = missing_rpm; then
 
2376
                { { echo "$as_me:2376: error: No rpm utility found." >&5
 
2377
echo "$as_me: error: No rpm utility found." >&2;}
 
2378
   { (exit 1); exit 1; }; }
 
2379
        fi
 
2380
fi
 
2381
 
 
2382
# We need a complete path for sh, because some implementations of make
 
2383
# get upset if SHELL is set to just the command name.
 
2384
if test -n "$ac_tool_prefix"; then
 
2385
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
 
2386
set dummy ${ac_tool_prefix}sh; ac_word=$2
 
2387
echo "$as_me:2387: checking for $ac_word" >&5
 
2388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2389
if test "${ac_cv_prog_path_sh+set}" = set; then
 
2390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2391
else
 
2392
  if test -n "$path_sh"; then
 
2393
  ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
 
2394
else
 
2395
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2396
ac_dummy="$PATH"
 
2397
for ac_dir in $ac_dummy; do
 
2398
  IFS=$ac_save_IFS
 
2399
  test -z "$ac_dir" && ac_dir=.
 
2400
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2401
ac_cv_prog_path_sh="${ac_tool_prefix}sh"
 
2402
echo "$as_me:2402: found $ac_dir/$ac_word" >&5
 
2403
break
 
2404
done
 
2405
 
 
2406
fi
 
2407
fi
 
2408
path_sh=$ac_cv_prog_path_sh
 
2409
if test -n "$path_sh"; then
 
2410
  echo "$as_me:2410: result: $path_sh" >&5
 
2411
echo "${ECHO_T}$path_sh" >&6
 
2412
else
 
2413
  echo "$as_me:2413: result: no" >&5
 
2414
echo "${ECHO_T}no" >&6
 
2415
fi
 
2416
 
 
2417
fi
 
2418
if test -z "$ac_cv_prog_path_sh"; then
 
2419
  ac_ct_path_sh=$path_sh
 
2420
  # Extract the first word of "sh", so it can be a program name with args.
 
2421
set dummy sh; ac_word=$2
 
2422
echo "$as_me:2422: checking for $ac_word" >&5
 
2423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2424
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
 
2425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2426
else
 
2427
  if test -n "$ac_ct_path_sh"; then
 
2428
  ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
 
2429
else
 
2430
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2431
ac_dummy="$PATH"
 
2432
for ac_dir in $ac_dummy; do
 
2433
  IFS=$ac_save_IFS
 
2434
  test -z "$ac_dir" && ac_dir=.
 
2435
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2436
ac_cv_prog_ac_ct_path_sh="sh"
 
2437
echo "$as_me:2437: found $ac_dir/$ac_word" >&5
 
2438
break
 
2439
done
 
2440
 
 
2441
  test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
 
2442
fi
 
2443
fi
 
2444
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
 
2445
if test -n "$ac_ct_path_sh"; then
 
2446
  echo "$as_me:2446: result: $ac_ct_path_sh" >&5
 
2447
echo "${ECHO_T}$ac_ct_path_sh" >&6
 
2448
else
 
2449
  echo "$as_me:2449: result: no" >&5
 
2450
echo "${ECHO_T}no" >&6
 
2451
fi
 
2452
 
 
2453
  path_sh=$ac_ct_path_sh
 
2454
else
 
2455
  path_sh="$ac_cv_prog_path_sh"
 
2456
fi
 
2457
 
 
2458
# Extract the first word of "$path_sh", so it can be a program name with args.
 
2459
set dummy $path_sh; ac_word=$2
 
2460
echo "$as_me:2460: checking for $ac_word" >&5
 
2461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2462
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
 
2463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2464
else
 
2465
  case $db_cv_path_sh in
 
2466
  [\\/]* | ?:[\\/]*)
 
2467
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
 
2468
  ;;
 
2469
  *)
 
2470
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2471
ac_dummy="$PATH"
 
2472
for ac_dir in $ac_dummy; do
 
2473
  IFS=$ac_save_IFS
 
2474
  test -z "$ac_dir" && ac_dir=.
 
2475
  if $as_executable_p "$ac_dir/$ac_word"; then
 
2476
   ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
 
2477
   echo "$as_me:2477: found $ac_dir/$ac_word" >&5
 
2478
   break
 
2479
fi
 
2480
done
 
2481
 
 
2482
  test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
 
2483
  ;;
 
2484
esac
 
2485
fi
 
2486
db_cv_path_sh=$ac_cv_path_db_cv_path_sh
 
2487
 
 
2488
if test -n "$db_cv_path_sh"; then
 
2489
  echo "$as_me:2489: result: $db_cv_path_sh" >&5
 
2490
echo "${ECHO_T}$db_cv_path_sh" >&6
 
2491
else
 
2492
  echo "$as_me:2492: result: no" >&5
 
2493
echo "${ECHO_T}no" >&6
 
2494
fi
 
2495
 
 
2496
if test "$db_cv_path_sh" = missing_sh; then
 
2497
        { { echo "$as_me:2497: error: No sh utility found." >&5
 
2498
echo "$as_me: error: No sh utility found." >&2;}
 
2499
   { (exit 1); exit 1; }; }
 
2500
fi
 
2501
 
 
2502
# We need a complete path for ranlib, because it doesn't exist on some
 
2503
# architectures because the ar utility packages the library itself.
 
2504
if test -n "$ac_tool_prefix"; then
 
2505
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2506
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2507
echo "$as_me:2507: checking for $ac_word" >&5
 
2508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2509
if test "${ac_cv_prog_path_strip+set}" = set; then
 
2510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2511
else
 
2512
  if test -n "$path_strip"; then
 
2513
  ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
 
2514
else
 
2515
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2516
ac_dummy="$PATH"
 
2517
for ac_dir in $ac_dummy; do
 
2518
  IFS=$ac_save_IFS
 
2519
  test -z "$ac_dir" && ac_dir=.
 
2520
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2521
ac_cv_prog_path_strip="${ac_tool_prefix}strip"
 
2522
echo "$as_me:2522: found $ac_dir/$ac_word" >&5
 
2523
break
 
2524
done
 
2525
 
 
2526
fi
 
2527
fi
 
2528
path_strip=$ac_cv_prog_path_strip
 
2529
if test -n "$path_strip"; then
 
2530
  echo "$as_me:2530: result: $path_strip" >&5
 
2531
echo "${ECHO_T}$path_strip" >&6
 
2532
else
 
2533
  echo "$as_me:2533: result: no" >&5
 
2534
echo "${ECHO_T}no" >&6
 
2535
fi
 
2536
 
 
2537
fi
 
2538
if test -z "$ac_cv_prog_path_strip"; then
 
2539
  ac_ct_path_strip=$path_strip
 
2540
  # Extract the first word of "strip", so it can be a program name with args.
 
2541
set dummy strip; ac_word=$2
 
2542
echo "$as_me:2542: checking for $ac_word" >&5
 
2543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2544
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
 
2545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2546
else
 
2547
  if test -n "$ac_ct_path_strip"; then
 
2548
  ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
 
2549
else
 
2550
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2551
ac_dummy="$PATH"
 
2552
for ac_dir in $ac_dummy; do
 
2553
  IFS=$ac_save_IFS
 
2554
  test -z "$ac_dir" && ac_dir=.
 
2555
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2556
ac_cv_prog_ac_ct_path_strip="strip"
 
2557
echo "$as_me:2557: found $ac_dir/$ac_word" >&5
 
2558
break
 
2559
done
 
2560
 
 
2561
  test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
 
2562
fi
 
2563
fi
 
2564
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
 
2565
if test -n "$ac_ct_path_strip"; then
 
2566
  echo "$as_me:2566: result: $ac_ct_path_strip" >&5
 
2567
echo "${ECHO_T}$ac_ct_path_strip" >&6
 
2568
else
 
2569
  echo "$as_me:2569: result: no" >&5
 
2570
echo "${ECHO_T}no" >&6
 
2571
fi
 
2572
 
 
2573
  path_strip=$ac_ct_path_strip
 
2574
else
 
2575
  path_strip="$ac_cv_prog_path_strip"
 
2576
fi
 
2577
 
 
2578
# Extract the first word of "$path_strip", so it can be a program name with args.
 
2579
set dummy $path_strip; ac_word=$2
 
2580
echo "$as_me:2580: checking for $ac_word" >&5
 
2581
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2582
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
 
2583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2584
else
 
2585
  case $db_cv_path_strip in
 
2586
  [\\/]* | ?:[\\/]*)
 
2587
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
 
2588
  ;;
 
2589
  *)
 
2590
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2591
ac_dummy="$PATH"
 
2592
for ac_dir in $ac_dummy; do
 
2593
  IFS=$ac_save_IFS
 
2594
  test -z "$ac_dir" && ac_dir=.
 
2595
  if $as_executable_p "$ac_dir/$ac_word"; then
 
2596
   ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
 
2597
   echo "$as_me:2597: found $ac_dir/$ac_word" >&5
 
2598
   break
 
2599
fi
 
2600
done
 
2601
 
 
2602
  test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
 
2603
  ;;
 
2604
esac
 
2605
fi
 
2606
db_cv_path_strip=$ac_cv_path_db_cv_path_strip
 
2607
 
 
2608
if test -n "$db_cv_path_strip"; then
 
2609
  echo "$as_me:2609: result: $db_cv_path_strip" >&5
 
2610
echo "${ECHO_T}$db_cv_path_strip" >&6
 
2611
else
 
2612
  echo "$as_me:2612: result: no" >&5
 
2613
echo "${ECHO_T}no" >&6
 
2614
fi
 
2615
 
 
2616
if test "$db_cv_path_strip" = missing_strip; then
 
2617
        { { echo "$as_me:2617: error: No strip utility found." >&5
 
2618
echo "$as_me: error: No strip utility found." >&2;}
 
2619
   { (exit 1); exit 1; }; }
 
2620
fi
 
2621
 
 
2622
if test "$db_cv_test" = "yes"; then
 
2623
        if test -n "$ac_tool_prefix"; then
 
2624
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
 
2625
set dummy ${ac_tool_prefix}kill; ac_word=$2
 
2626
echo "$as_me:2626: checking for $ac_word" >&5
 
2627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2628
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
 
2629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2630
else
 
2631
  if test -n "$db_cv_path_kill"; then
 
2632
  ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
 
2633
else
 
2634
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2635
ac_dummy="$PATH"
 
2636
for ac_dir in $ac_dummy; do
 
2637
  IFS=$ac_save_IFS
 
2638
  test -z "$ac_dir" && ac_dir=.
 
2639
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2640
ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
 
2641
echo "$as_me:2641: found $ac_dir/$ac_word" >&5
 
2642
break
 
2643
done
 
2644
 
 
2645
fi
 
2646
fi
 
2647
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
 
2648
if test -n "$db_cv_path_kill"; then
 
2649
  echo "$as_me:2649: result: $db_cv_path_kill" >&5
 
2650
echo "${ECHO_T}$db_cv_path_kill" >&6
 
2651
else
 
2652
  echo "$as_me:2652: result: no" >&5
 
2653
echo "${ECHO_T}no" >&6
 
2654
fi
 
2655
 
 
2656
fi
 
2657
if test -z "$ac_cv_prog_db_cv_path_kill"; then
 
2658
  ac_ct_db_cv_path_kill=$db_cv_path_kill
 
2659
  # Extract the first word of "kill", so it can be a program name with args.
 
2660
set dummy kill; ac_word=$2
 
2661
echo "$as_me:2661: checking for $ac_word" >&5
 
2662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2663
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
 
2664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2665
else
 
2666
  if test -n "$ac_ct_db_cv_path_kill"; then
 
2667
  ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
 
2668
else
 
2669
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2670
ac_dummy="$PATH"
 
2671
for ac_dir in $ac_dummy; do
 
2672
  IFS=$ac_save_IFS
 
2673
  test -z "$ac_dir" && ac_dir=.
 
2674
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2675
ac_cv_prog_ac_ct_db_cv_path_kill="kill"
 
2676
echo "$as_me:2676: found $ac_dir/$ac_word" >&5
 
2677
break
 
2678
done
 
2679
 
 
2680
  test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
 
2681
fi
 
2682
fi
 
2683
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
 
2684
if test -n "$ac_ct_db_cv_path_kill"; then
 
2685
  echo "$as_me:2685: result: $ac_ct_db_cv_path_kill" >&5
 
2686
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
 
2687
else
 
2688
  echo "$as_me:2688: result: no" >&5
 
2689
echo "${ECHO_T}no" >&6
 
2690
fi
 
2691
 
 
2692
  db_cv_path_kill=$ac_ct_db_cv_path_kill
 
2693
else
 
2694
  db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
 
2695
fi
 
2696
 
 
2697
        if test "$db_cv_path_kill" = missing_kill; then
 
2698
                { { echo "$as_me:2698: error: No kill utility found." >&5
 
2699
echo "$as_me: error: No kill utility found." >&2;}
 
2700
   { (exit 1); exit 1; }; }
 
2701
        fi
 
2702
fi
 
2703
 
 
2704
# Find a good install program.  We prefer a C program (faster),
 
2705
# so one script is as good as another.  But avoid the broken or
 
2706
# incompatible versions:
 
2707
# SysV /etc/install, /usr/sbin/install
 
2708
# SunOS /usr/etc/install
 
2709
# IRIX /sbin/install
 
2710
# AIX /bin/install
 
2711
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2712
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2713
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2714
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2715
# ./install, which can be erroneously created by make from ./install.sh.
 
2716
echo "$as_me:2716: checking for a BSD compatible install" >&5
 
2717
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
2718
if test -z "$INSTALL"; then
 
2719
if test "${ac_cv_path_install+set}" = set; then
 
2720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2721
else
 
2722
    ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2723
  for ac_dir in $PATH; do
 
2724
    IFS=$ac_save_IFS
 
2725
    # Account for people who put trailing slashes in PATH elements.
 
2726
    case $ac_dir/ in
 
2727
    / | ./ | .// | /cC/* \
 
2728
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
 
2729
    | /usr/ucb/* ) ;;
 
2730
    *)
 
2731
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
2732
      # Don't use installbsd from OSF since it installs stuff as root
 
2733
      # by default.
 
2734
      for ac_prog in ginstall scoinst install; do
 
2735
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
2736
          if test $ac_prog = install &&
 
2737
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
2738
            # AIX install.  It has an incompatible calling convention.
 
2739
            :
 
2740
          elif test $ac_prog = install &&
 
2741
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
2742
            # program-specific install script used by HP pwplus--don't use.
 
2743
            :
 
2744
          else
 
2745
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
2746
            break 2
 
2747
          fi
 
2748
        fi
 
2749
      done
 
2750
      ;;
 
2751
    esac
 
2752
  done
 
2753
 
 
2754
fi
 
2755
  if test "${ac_cv_path_install+set}" = set; then
 
2756
    INSTALL=$ac_cv_path_install
 
2757
  else
 
2758
    # As a last resort, use the slow shell script.  We don't cache a
 
2759
    # path for INSTALL within a source directory, because that will
 
2760
    # break other packages using the cache if that directory is
 
2761
    # removed, or if the path is relative.
 
2762
    INSTALL=$ac_install_sh
 
2763
  fi
 
2764
fi
 
2765
echo "$as_me:2765: result: $INSTALL" >&5
 
2766
echo "${ECHO_T}$INSTALL" >&6
 
2767
 
 
2768
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2769
# It thinks the first close brace ends the variable substitution.
 
2770
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2771
 
 
2772
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2773
 
 
2774
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2775
 
 
2776
# RPM/Embedix support: change the standard make and install targets
 
2777
if test "$db_cv_rpm" = "yes"; then
 
2778
        BUILD_TARGET="rpm_build"
 
2779
        echo "topdir: $CONFIGURATION_PATH" > rpmrc
 
2780
        if test "$db_cv_embedix" = "yes"; then
 
2781
                EMBEDIX_ROOT="/usr"
 
2782
                INSTALL_TARGET="embedix_install"
 
2783
        else
 
2784
                INSTALL_TARGET="rpm_install"
 
2785
        fi
 
2786
else
 
2787
        BUILD_TARGET="library_build"
 
2788
        INSTALL_TARGET="library_install"
 
2789
fi
 
2790
 
 
2791
# This is where we handle stuff that autoconf can't handle: compiler,
 
2792
# preprocessor and load flags, libraries that the standard tests don't
 
2793
# look for.  The default optimization is -O.  We would like to set the
 
2794
# default optimization for systems using gcc to -O2, but we can't.  By
 
2795
# the time we know we're using gcc, it's too late to set optimization
 
2796
# flags.
 
2797
#
 
2798
# There are additional libraries we need for some compiler/architecture
 
2799
# combinations.
 
2800
#
 
2801
# Some architectures require DB to be compiled with special flags and/or
 
2802
# libraries for threaded applications
 
2803
#
 
2804
# The makefile CC may be different than the CC used in config testing,
 
2805
# because the makefile CC may be set to use $(LIBTOOL).
 
2806
#
 
2807
# XXX
 
2808
# Don't override anything if it's already set from the environment.
 
2809
optimize_def="-O"
 
2810
case "$host_os" in
 
2811
aix4.*)    optimize_def="-O2"
 
2812
           CC=${CC-"xlc_r"}
 
2813
           CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
 
2814
           LIBTSO_LIBS="\$(LIBS)";;
 
2815
bsdi3*)    CC=${CC-"shlicc2"}
 
2816
           optimize_def="-O2"
 
2817
           LIBS="-lipc $LIBS";;
 
2818
bsdi*)     optimize_def="-O2";;
 
2819
freebsd*)  optimize_def="-O2"
 
2820
           CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
 
2821
           LIBS="-pthread";;
 
2822
hpux*)     CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
 
2823
irix*)     optimize_def="-O2"
 
2824
           CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
 
2825
linux*)    optimize_def="-O2"
 
2826
           CPPFLAGS="-D_GNU_SOURCE -D_REENTRANT $CPPFLAGS";;
 
2827
mpeix*)    CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
 
2828
           LIBS="-lsocket -lsvipc $LIBS";;
 
2829
osf*)      CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
 
2830
*qnx)      cat >>confdefs.h <<\EOF
 
2831
#define HAVE_QNX 1
 
2832
EOF
 
2833
 
 
2834
;;
 
2835
sco3.2v4*) CC=${CC-"cc -belf"}
 
2836
           LIBS="-lsocket -lnsl_s $LIBS";;
 
2837
sco*)      CC=${CC-"cc -belf"}
 
2838
           LIBS="-lsocket -lnsl $LIBS";;
 
2839
solaris*)  CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
 
2840
esac
 
2841
 
 
2842
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
 
2843
# compiler configuration macros, because if we don't, they set CFLAGS
 
2844
# to no optimization and -g, which isn't what we want.
 
2845
CFLAGS=${CFLAGS-$optimize_def}
 
2846
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
 
2847
 
 
2848
# If the user wants a debugging environment, add -g to the CFLAGS value.
 
2849
#
 
2850
# XXX
 
2851
# Some compilers can't mix optimizing and debug flags.  The only way to
 
2852
# handle this is to specify CFLAGS in the environment before configuring.
 
2853
if test "$db_cv_debug" = yes; then
 
2854
        cat >>confdefs.h <<\EOF
 
2855
#define DEBUG 1
 
2856
EOF
 
2857
 
 
2858
        CFLAGS="$CFLAGS -g"
 
2859
        CXXFLAGS="$CXXFLAGS -g"
 
2860
fi
 
2861
 
 
2862
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
 
2863
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags.
 
2864
# We still call AC_PROG_CC so that we get the other side-effects.
 
2865
if test -n "$ac_tool_prefix"; then
 
2866
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2867
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2868
echo "$as_me:2868: checking for $ac_word" >&5
 
2869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2870
if test "${ac_cv_prog_CC+set}" = set; then
 
2871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2872
else
 
2873
  if test -n "$CC"; then
 
2874
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2875
else
 
2876
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2877
ac_dummy="$PATH"
 
2878
for ac_dir in $ac_dummy; do
 
2879
  IFS=$ac_save_IFS
 
2880
  test -z "$ac_dir" && ac_dir=.
 
2881
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2882
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2883
echo "$as_me:2883: found $ac_dir/$ac_word" >&5
 
2884
break
 
2885
done
 
2886
 
 
2887
fi
 
2888
fi
 
2889
CC=$ac_cv_prog_CC
 
2890
if test -n "$CC"; then
 
2891
  echo "$as_me:2891: result: $CC" >&5
 
2892
echo "${ECHO_T}$CC" >&6
 
2893
else
 
2894
  echo "$as_me:2894: result: no" >&5
 
2895
echo "${ECHO_T}no" >&6
 
2896
fi
 
2897
 
 
2898
fi
 
2899
if test -z "$ac_cv_prog_CC"; then
 
2900
  ac_ct_CC=$CC
 
2901
  # Extract the first word of "cc", so it can be a program name with args.
 
2902
set dummy cc; ac_word=$2
 
2903
echo "$as_me:2903: checking for $ac_word" >&5
 
2904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2905
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2907
else
 
2908
  if test -n "$ac_ct_CC"; then
 
2909
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2910
else
 
2911
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2912
ac_dummy="$PATH"
 
2913
for ac_dir in $ac_dummy; do
 
2914
  IFS=$ac_save_IFS
 
2915
  test -z "$ac_dir" && ac_dir=.
 
2916
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2917
ac_cv_prog_ac_ct_CC="cc"
 
2918
echo "$as_me:2918: found $ac_dir/$ac_word" >&5
 
2919
break
 
2920
done
 
2921
 
 
2922
fi
 
2923
fi
 
2924
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2925
if test -n "$ac_ct_CC"; then
 
2926
  echo "$as_me:2926: result: $ac_ct_CC" >&5
 
2927
echo "${ECHO_T}$ac_ct_CC" >&6
 
2928
else
 
2929
  echo "$as_me:2929: result: no" >&5
 
2930
echo "${ECHO_T}no" >&6
 
2931
fi
 
2932
 
 
2933
  CC=$ac_ct_CC
 
2934
else
 
2935
  CC="$ac_cv_prog_CC"
 
2936
fi
 
2937
 
 
2938
if test -n "$ac_tool_prefix"; then
 
2939
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2940
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2941
echo "$as_me:2941: checking for $ac_word" >&5
 
2942
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2943
if test "${ac_cv_prog_CC+set}" = set; then
 
2944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2945
else
 
2946
  if test -n "$CC"; then
 
2947
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2948
else
 
2949
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2950
ac_dummy="$PATH"
 
2951
for ac_dir in $ac_dummy; do
 
2952
  IFS=$ac_save_IFS
 
2953
  test -z "$ac_dir" && ac_dir=.
 
2954
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2955
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2956
echo "$as_me:2956: found $ac_dir/$ac_word" >&5
 
2957
break
 
2958
done
 
2959
 
 
2960
fi
 
2961
fi
 
2962
CC=$ac_cv_prog_CC
 
2963
if test -n "$CC"; then
 
2964
  echo "$as_me:2964: result: $CC" >&5
 
2965
echo "${ECHO_T}$CC" >&6
 
2966
else
 
2967
  echo "$as_me:2967: result: no" >&5
 
2968
echo "${ECHO_T}no" >&6
 
2969
fi
 
2970
 
 
2971
fi
 
2972
if test -z "$ac_cv_prog_CC"; then
 
2973
  ac_ct_CC=$CC
 
2974
  # Extract the first word of "gcc", so it can be a program name with args.
 
2975
set dummy gcc; ac_word=$2
 
2976
echo "$as_me:2976: checking for $ac_word" >&5
 
2977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2978
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2980
else
 
2981
  if test -n "$ac_ct_CC"; then
 
2982
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2983
else
 
2984
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2985
ac_dummy="$PATH"
 
2986
for ac_dir in $ac_dummy; do
 
2987
  IFS=$ac_save_IFS
 
2988
  test -z "$ac_dir" && ac_dir=.
 
2989
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2990
ac_cv_prog_ac_ct_CC="gcc"
 
2991
echo "$as_me:2991: found $ac_dir/$ac_word" >&5
 
2992
break
 
2993
done
 
2994
 
 
2995
fi
 
2996
fi
 
2997
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2998
if test -n "$ac_ct_CC"; then
 
2999
  echo "$as_me:2999: result: $ac_ct_CC" >&5
 
3000
echo "${ECHO_T}$ac_ct_CC" >&6
 
3001
else
 
3002
  echo "$as_me:3002: result: no" >&5
 
3003
echo "${ECHO_T}no" >&6
 
3004
fi
 
3005
 
 
3006
  CC=$ac_ct_CC
 
3007
else
 
3008
  CC="$ac_cv_prog_CC"
 
3009
fi
 
3010
 
 
3011
ac_ext=c
 
3012
ac_cpp='$CPP $CPPFLAGS'
 
3013
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3014
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3015
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3016
if test -n "$ac_tool_prefix"; then
 
3017
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3018
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3019
echo "$as_me:3019: checking for $ac_word" >&5
 
3020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3021
if test "${ac_cv_prog_CC+set}" = set; then
 
3022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3023
else
 
3024
  if test -n "$CC"; then
 
3025
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3026
else
 
3027
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3028
ac_dummy="$PATH"
 
3029
for ac_dir in $ac_dummy; do
 
3030
  IFS=$ac_save_IFS
 
3031
  test -z "$ac_dir" && ac_dir=.
 
3032
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3033
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3034
echo "$as_me:3034: found $ac_dir/$ac_word" >&5
 
3035
break
 
3036
done
 
3037
 
 
3038
fi
 
3039
fi
 
3040
CC=$ac_cv_prog_CC
 
3041
if test -n "$CC"; then
 
3042
  echo "$as_me:3042: result: $CC" >&5
 
3043
echo "${ECHO_T}$CC" >&6
 
3044
else
 
3045
  echo "$as_me:3045: result: no" >&5
 
3046
echo "${ECHO_T}no" >&6
 
3047
fi
 
3048
 
 
3049
fi
 
3050
if test -z "$ac_cv_prog_CC"; then
 
3051
  ac_ct_CC=$CC
 
3052
  # Extract the first word of "gcc", so it can be a program name with args.
 
3053
set dummy gcc; ac_word=$2
 
3054
echo "$as_me:3054: checking for $ac_word" >&5
 
3055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3056
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3058
else
 
3059
  if test -n "$ac_ct_CC"; then
 
3060
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3061
else
 
3062
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3063
ac_dummy="$PATH"
 
3064
for ac_dir in $ac_dummy; do
 
3065
  IFS=$ac_save_IFS
 
3066
  test -z "$ac_dir" && ac_dir=.
 
3067
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3068
ac_cv_prog_ac_ct_CC="gcc"
 
3069
echo "$as_me:3069: found $ac_dir/$ac_word" >&5
 
3070
break
 
3071
done
 
3072
 
 
3073
fi
 
3074
fi
 
3075
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3076
if test -n "$ac_ct_CC"; then
 
3077
  echo "$as_me:3077: result: $ac_ct_CC" >&5
 
3078
echo "${ECHO_T}$ac_ct_CC" >&6
 
3079
else
 
3080
  echo "$as_me:3080: result: no" >&5
 
3081
echo "${ECHO_T}no" >&6
 
3082
fi
 
3083
 
 
3084
  CC=$ac_ct_CC
 
3085
else
 
3086
  CC="$ac_cv_prog_CC"
 
3087
fi
 
3088
 
 
3089
if test -z "$CC"; then
 
3090
  if test -n "$ac_tool_prefix"; then
 
3091
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3092
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3093
echo "$as_me:3093: checking for $ac_word" >&5
 
3094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3095
if test "${ac_cv_prog_CC+set}" = set; then
 
3096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3097
else
 
3098
  if test -n "$CC"; then
 
3099
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3100
else
 
3101
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3102
ac_dummy="$PATH"
 
3103
for ac_dir in $ac_dummy; do
 
3104
  IFS=$ac_save_IFS
 
3105
  test -z "$ac_dir" && ac_dir=.
 
3106
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3107
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3108
echo "$as_me:3108: found $ac_dir/$ac_word" >&5
 
3109
break
 
3110
done
 
3111
 
 
3112
fi
 
3113
fi
 
3114
CC=$ac_cv_prog_CC
 
3115
if test -n "$CC"; then
 
3116
  echo "$as_me:3116: result: $CC" >&5
 
3117
echo "${ECHO_T}$CC" >&6
 
3118
else
 
3119
  echo "$as_me:3119: result: no" >&5
 
3120
echo "${ECHO_T}no" >&6
 
3121
fi
 
3122
 
 
3123
fi
 
3124
if test -z "$ac_cv_prog_CC"; then
 
3125
  ac_ct_CC=$CC
 
3126
  # Extract the first word of "cc", so it can be a program name with args.
 
3127
set dummy cc; ac_word=$2
 
3128
echo "$as_me:3128: checking for $ac_word" >&5
 
3129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3130
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3132
else
 
3133
  if test -n "$ac_ct_CC"; then
 
3134
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3135
else
 
3136
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3137
ac_dummy="$PATH"
 
3138
for ac_dir in $ac_dummy; do
 
3139
  IFS=$ac_save_IFS
 
3140
  test -z "$ac_dir" && ac_dir=.
 
3141
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3142
ac_cv_prog_ac_ct_CC="cc"
 
3143
echo "$as_me:3143: found $ac_dir/$ac_word" >&5
 
3144
break
 
3145
done
 
3146
 
 
3147
fi
 
3148
fi
 
3149
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3150
if test -n "$ac_ct_CC"; then
 
3151
  echo "$as_me:3151: result: $ac_ct_CC" >&5
 
3152
echo "${ECHO_T}$ac_ct_CC" >&6
 
3153
else
 
3154
  echo "$as_me:3154: result: no" >&5
 
3155
echo "${ECHO_T}no" >&6
 
3156
fi
 
3157
 
 
3158
  CC=$ac_ct_CC
 
3159
else
 
3160
  CC="$ac_cv_prog_CC"
 
3161
fi
 
3162
 
 
3163
fi
 
3164
if test -z "$CC"; then
 
3165
  # Extract the first word of "cc", so it can be a program name with args.
 
3166
set dummy cc; ac_word=$2
 
3167
echo "$as_me:3167: checking for $ac_word" >&5
 
3168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3169
if test "${ac_cv_prog_CC+set}" = set; then
 
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3171
else
 
3172
  if test -n "$CC"; then
 
3173
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3174
else
 
3175
  ac_prog_rejected=no
 
3176
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3177
ac_dummy="$PATH"
 
3178
for ac_dir in $ac_dummy; do
 
3179
  IFS=$ac_save_IFS
 
3180
  test -z "$ac_dir" && ac_dir=.
 
3181
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3182
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
3183
  ac_prog_rejected=yes
 
3184
  continue
 
3185
fi
 
3186
ac_cv_prog_CC="cc"
 
3187
echo "$as_me:3187: found $ac_dir/$ac_word" >&5
 
3188
break
 
3189
done
 
3190
 
 
3191
if test $ac_prog_rejected = yes; then
 
3192
  # We found a bogon in the path, so make sure we never use it.
 
3193
  set dummy $ac_cv_prog_CC
 
3194
  shift
 
3195
  if test $# != 0; then
 
3196
    # We chose a different compiler from the bogus one.
 
3197
    # However, it has the same basename, so the bogon will be chosen
 
3198
    # first if we set CC to just the basename; use the full file name.
 
3199
    shift
 
3200
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
 
3201
    shift
 
3202
    ac_cv_prog_CC="$@"
 
3203
  fi
 
3204
fi
 
3205
fi
 
3206
fi
 
3207
CC=$ac_cv_prog_CC
 
3208
if test -n "$CC"; then
 
3209
  echo "$as_me:3209: result: $CC" >&5
 
3210
echo "${ECHO_T}$CC" >&6
 
3211
else
 
3212
  echo "$as_me:3212: result: no" >&5
 
3213
echo "${ECHO_T}no" >&6
 
3214
fi
 
3215
 
 
3216
fi
 
3217
if test -z "$CC"; then
 
3218
  if test -n "$ac_tool_prefix"; then
 
3219
  for ac_prog in cl
 
3220
  do
 
3221
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3222
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3223
echo "$as_me:3223: checking for $ac_word" >&5
 
3224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3225
if test "${ac_cv_prog_CC+set}" = set; then
 
3226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3227
else
 
3228
  if test -n "$CC"; then
 
3229
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3230
else
 
3231
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3232
ac_dummy="$PATH"
 
3233
for ac_dir in $ac_dummy; do
 
3234
  IFS=$ac_save_IFS
 
3235
  test -z "$ac_dir" && ac_dir=.
 
3236
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3237
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3238
echo "$as_me:3238: found $ac_dir/$ac_word" >&5
 
3239
break
 
3240
done
 
3241
 
 
3242
fi
 
3243
fi
 
3244
CC=$ac_cv_prog_CC
 
3245
if test -n "$CC"; then
 
3246
  echo "$as_me:3246: result: $CC" >&5
 
3247
echo "${ECHO_T}$CC" >&6
 
3248
else
 
3249
  echo "$as_me:3249: result: no" >&5
 
3250
echo "${ECHO_T}no" >&6
 
3251
fi
 
3252
 
 
3253
    test -n "$CC" && break
 
3254
  done
 
3255
fi
 
3256
if test -z "$CC"; then
 
3257
  ac_ct_CC=$CC
 
3258
  for ac_prog in cl
 
3259
do
 
3260
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3261
set dummy $ac_prog; ac_word=$2
 
3262
echo "$as_me:3262: checking for $ac_word" >&5
 
3263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3264
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3266
else
 
3267
  if test -n "$ac_ct_CC"; then
 
3268
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3269
else
 
3270
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3271
ac_dummy="$PATH"
 
3272
for ac_dir in $ac_dummy; do
 
3273
  IFS=$ac_save_IFS
 
3274
  test -z "$ac_dir" && ac_dir=.
 
3275
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3276
ac_cv_prog_ac_ct_CC="$ac_prog"
 
3277
echo "$as_me:3277: found $ac_dir/$ac_word" >&5
 
3278
break
 
3279
done
 
3280
 
 
3281
fi
 
3282
fi
 
3283
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3284
if test -n "$ac_ct_CC"; then
 
3285
  echo "$as_me:3285: result: $ac_ct_CC" >&5
 
3286
echo "${ECHO_T}$ac_ct_CC" >&6
 
3287
else
 
3288
  echo "$as_me:3288: result: no" >&5
 
3289
echo "${ECHO_T}no" >&6
 
3290
fi
 
3291
 
 
3292
  test -n "$ac_ct_CC" && break
 
3293
done
 
3294
 
 
3295
  CC=$ac_ct_CC
 
3296
fi
 
3297
 
 
3298
fi
 
3299
 
 
3300
test -z "$CC" && { { echo "$as_me:3300: error: no acceptable cc found in \$PATH" >&5
 
3301
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
3302
   { (exit 1); exit 1; }; }
 
3303
 
 
3304
cat >conftest.$ac_ext <<_ACEOF
 
3305
#line 3305 "configure"
 
3306
#include "confdefs.h"
 
3307
 
 
3308
int
 
3309
main ()
 
3310
{
 
3311
 
 
3312
  ;
 
3313
  return 0;
 
3314
}
 
3315
_ACEOF
 
3316
ac_clean_files_save=$ac_clean_files
 
3317
ac_clean_files="$ac_clean_files a.out a.exe"
 
3318
# Try to create an executable without -o first, disregard a.out.
 
3319
# It will help us diagnose broken compiler, and finding out an intuition
 
3320
# of exeext.
 
3321
echo "$as_me:3321: checking for C compiler default output" >&5
 
3322
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
3323
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3324
if { (eval echo "$as_me:3324: \"$ac_link_default\"") >&5
 
3325
  (eval $ac_link_default) 2>&5
 
3326
  ac_status=$?
 
3327
  echo "$as_me:3327: \$? = $ac_status" >&5
 
3328
  (exit $ac_status); }; then
 
3329
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
 
3330
  case $ac_file in
 
3331
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
3332
    a.out ) # We found the default executable, but exeext='' is most
 
3333
            # certainly right.
 
3334
            break;;
 
3335
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3336
          export ac_cv_exeext
 
3337
          break;;
 
3338
    * ) break;;
 
3339
  esac
 
3340
done
 
3341
else
 
3342
  echo "$as_me: failed program was:" >&5
 
3343
cat conftest.$ac_ext >&5
 
3344
{ { echo "$as_me:3344: error: C compiler cannot create executables" >&5
 
3345
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
3346
   { (exit 77); exit 77; }; }
 
3347
fi
 
3348
 
 
3349
ac_exeext=$ac_cv_exeext
 
3350
echo "$as_me:3350: result: $ac_file" >&5
 
3351
echo "${ECHO_T}$ac_file" >&6
 
3352
 
 
3353
# Check the compiler produces executables we can run.  If not, either
 
3354
# the compiler is broken, or we cross compile.
 
3355
echo "$as_me:3355: checking whether the C compiler works" >&5
 
3356
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3357
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3358
# If not cross compiling, check that we can run a simple program.
 
3359
if test "$cross_compiling" != yes; then
 
3360
  if { ac_try='./$ac_file'
 
3361
  { (eval echo "$as_me:3361: \"$ac_try\"") >&5
 
3362
  (eval $ac_try) 2>&5
 
3363
  ac_status=$?
 
3364
  echo "$as_me:3364: \$? = $ac_status" >&5
 
3365
  (exit $ac_status); }; }; then
 
3366
    cross_compiling=no
 
3367
  else
 
3368
    if test "$cross_compiling" = maybe; then
 
3369
        cross_compiling=yes
 
3370
    else
 
3371
        { { echo "$as_me:3371: error: cannot run C compiled programs.
 
3372
If you meant to cross compile, use \`--host'." >&5
 
3373
echo "$as_me: error: cannot run C compiled programs.
 
3374
If you meant to cross compile, use \`--host'." >&2;}
 
3375
   { (exit 1); exit 1; }; }
 
3376
    fi
 
3377
  fi
 
3378
fi
 
3379
echo "$as_me:3379: result: yes" >&5
 
3380
echo "${ECHO_T}yes" >&6
 
3381
 
 
3382
rm -f a.out a.exe conftest$ac_cv_exeext
 
3383
ac_clean_files=$ac_clean_files_save
 
3384
# Check the compiler produces executables we can run.  If not, either
 
3385
# the compiler is broken, or we cross compile.
 
3386
echo "$as_me:3386: checking whether we are cross compiling" >&5
 
3387
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
3388
echo "$as_me:3388: result: $cross_compiling" >&5
 
3389
echo "${ECHO_T}$cross_compiling" >&6
 
3390
 
 
3391
echo "$as_me:3391: checking for executable suffix" >&5
 
3392
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
3393
if { (eval echo "$as_me:3393: \"$ac_link\"") >&5
 
3394
  (eval $ac_link) 2>&5
 
3395
  ac_status=$?
 
3396
  echo "$as_me:3396: \$? = $ac_status" >&5
 
3397
  (exit $ac_status); }; then
 
3398
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3399
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3400
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3401
# `rm'.
 
3402
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
3403
  case $ac_file in
 
3404
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
3405
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3406
          export ac_cv_exeext
 
3407
          break;;
 
3408
    * ) break;;
 
3409
  esac
 
3410
done
 
3411
else
 
3412
  { { echo "$as_me:3412: error: cannot compute EXEEXT: cannot compile and link" >&5
 
3413
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
3414
   { (exit 1); exit 1; }; }
 
3415
fi
 
3416
 
 
3417
rm -f conftest$ac_cv_exeext
 
3418
echo "$as_me:3418: result: $ac_cv_exeext" >&5
 
3419
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3420
 
 
3421
rm -f conftest.$ac_ext
 
3422
EXEEXT=$ac_cv_exeext
 
3423
ac_exeext=$EXEEXT
 
3424
echo "$as_me:3424: checking for object suffix" >&5
 
3425
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
3426
if test "${ac_cv_objext+set}" = set; then
 
3427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3428
else
 
3429
  cat >conftest.$ac_ext <<_ACEOF
 
3430
#line 3430 "configure"
 
3431
#include "confdefs.h"
 
3432
 
 
3433
int
 
3434
main ()
 
3435
{
 
3436
 
 
3437
  ;
 
3438
  return 0;
 
3439
}
 
3440
_ACEOF
 
3441
rm -f conftest.o conftest.obj
 
3442
if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
 
3443
  (eval $ac_compile) 2>&5
 
3444
  ac_status=$?
 
3445
  echo "$as_me:3445: \$? = $ac_status" >&5
 
3446
  (exit $ac_status); }; then
 
3447
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3448
  case $ac_file in
 
3449
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
3450
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3451
       break;;
 
3452
  esac
 
3453
done
 
3454
else
 
3455
  echo "$as_me: failed program was:" >&5
 
3456
cat conftest.$ac_ext >&5
 
3457
{ { echo "$as_me:3457: error: cannot compute OBJEXT: cannot compile" >&5
 
3458
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
3459
   { (exit 1); exit 1; }; }
 
3460
fi
 
3461
 
 
3462
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3463
fi
 
3464
echo "$as_me:3464: result: $ac_cv_objext" >&5
 
3465
echo "${ECHO_T}$ac_cv_objext" >&6
 
3466
OBJEXT=$ac_cv_objext
 
3467
ac_objext=$OBJEXT
 
3468
echo "$as_me:3468: checking whether we are using the GNU C compiler" >&5
 
3469
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3470
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3472
else
 
3473
  cat >conftest.$ac_ext <<_ACEOF
 
3474
#line 3474 "configure"
 
3475
#include "confdefs.h"
 
3476
 
 
3477
int
 
3478
main ()
 
3479
{
 
3480
#ifndef __GNUC__
 
3481
       choke me
 
3482
#endif
 
3483
 
 
3484
  ;
 
3485
  return 0;
 
3486
}
 
3487
_ACEOF
 
3488
rm -f conftest.$ac_objext
 
3489
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
 
3490
  (eval $ac_compile) 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:3492: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); } &&
 
3494
         { ac_try='test -s conftest.$ac_objext'
 
3495
  { (eval echo "$as_me:3495: \"$ac_try\"") >&5
 
3496
  (eval $ac_try) 2>&5
 
3497
  ac_status=$?
 
3498
  echo "$as_me:3498: \$? = $ac_status" >&5
 
3499
  (exit $ac_status); }; }; then
 
3500
  ac_compiler_gnu=yes
 
3501
else
 
3502
  echo "$as_me: failed program was:" >&5
 
3503
cat conftest.$ac_ext >&5
 
3504
ac_compiler_gnu=no
 
3505
fi
 
3506
rm -f conftest.$ac_objext conftest.$ac_ext
 
3507
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3508
 
 
3509
fi
 
3510
echo "$as_me:3510: result: $ac_cv_c_compiler_gnu" >&5
 
3511
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3512
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3513
ac_test_CFLAGS=${CFLAGS+set}
 
3514
ac_save_CFLAGS=$CFLAGS
 
3515
CFLAGS="-g"
 
3516
echo "$as_me:3516: checking whether $CC accepts -g" >&5
 
3517
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3518
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3520
else
 
3521
  cat >conftest.$ac_ext <<_ACEOF
 
3522
#line 3522 "configure"
 
3523
#include "confdefs.h"
 
3524
 
 
3525
int
 
3526
main ()
 
3527
{
 
3528
 
 
3529
  ;
 
3530
  return 0;
 
3531
}
 
3532
_ACEOF
 
3533
rm -f conftest.$ac_objext
 
3534
if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
 
3535
  (eval $ac_compile) 2>&5
 
3536
  ac_status=$?
 
3537
  echo "$as_me:3537: \$? = $ac_status" >&5
 
3538
  (exit $ac_status); } &&
 
3539
         { ac_try='test -s conftest.$ac_objext'
 
3540
  { (eval echo "$as_me:3540: \"$ac_try\"") >&5
 
3541
  (eval $ac_try) 2>&5
 
3542
  ac_status=$?
 
3543
  echo "$as_me:3543: \$? = $ac_status" >&5
 
3544
  (exit $ac_status); }; }; then
 
3545
  ac_cv_prog_cc_g=yes
 
3546
else
 
3547
  echo "$as_me: failed program was:" >&5
 
3548
cat conftest.$ac_ext >&5
 
3549
ac_cv_prog_cc_g=no
 
3550
fi
 
3551
rm -f conftest.$ac_objext conftest.$ac_ext
 
3552
fi
 
3553
echo "$as_me:3553: result: $ac_cv_prog_cc_g" >&5
 
3554
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3555
if test "$ac_test_CFLAGS" = set; then
 
3556
  CFLAGS=$ac_save_CFLAGS
 
3557
elif test $ac_cv_prog_cc_g = yes; then
 
3558
  if test "$GCC" = yes; then
 
3559
    CFLAGS="-g -O2"
 
3560
  else
 
3561
    CFLAGS="-g"
 
3562
  fi
 
3563
else
 
3564
  if test "$GCC" = yes; then
 
3565
    CFLAGS="-O2"
 
3566
  else
 
3567
    CFLAGS=
 
3568
  fi
 
3569
fi
 
3570
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3571
# in C++ we need to declare it.  In case someone uses the same compiler
 
3572
# for both compiling C and C++ we need to have the C++ compiler decide
 
3573
# the declaration of exit, since it's the most demanding environment.
 
3574
cat >conftest.$ac_ext <<_ACEOF
 
3575
#ifndef __cplusplus
 
3576
  choke me
 
3577
#endif
 
3578
_ACEOF
 
3579
rm -f conftest.$ac_objext
 
3580
if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
 
3581
  (eval $ac_compile) 2>&5
 
3582
  ac_status=$?
 
3583
  echo "$as_me:3583: \$? = $ac_status" >&5
 
3584
  (exit $ac_status); } &&
 
3585
         { ac_try='test -s conftest.$ac_objext'
 
3586
  { (eval echo "$as_me:3586: \"$ac_try\"") >&5
 
3587
  (eval $ac_try) 2>&5
 
3588
  ac_status=$?
 
3589
  echo "$as_me:3589: \$? = $ac_status" >&5
 
3590
  (exit $ac_status); }; }; then
 
3591
  for ac_declaration in \
 
3592
   ''\
 
3593
   '#include <stdlib.h>' \
 
3594
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3595
   'extern "C" void std::exit (int); using std::exit;' \
 
3596
   'extern "C" void exit (int) throw ();' \
 
3597
   'extern "C" void exit (int);' \
 
3598
   'void exit (int);'
 
3599
do
 
3600
  cat >conftest.$ac_ext <<_ACEOF
 
3601
#line 3601 "configure"
 
3602
#include "confdefs.h"
 
3603
#include <stdlib.h>
 
3604
$ac_declaration
 
3605
int
 
3606
main ()
 
3607
{
 
3608
exit (42);
 
3609
  ;
 
3610
  return 0;
 
3611
}
 
3612
_ACEOF
 
3613
rm -f conftest.$ac_objext
 
3614
if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
 
3615
  (eval $ac_compile) 2>&5
 
3616
  ac_status=$?
 
3617
  echo "$as_me:3617: \$? = $ac_status" >&5
 
3618
  (exit $ac_status); } &&
 
3619
         { ac_try='test -s conftest.$ac_objext'
 
3620
  { (eval echo "$as_me:3620: \"$ac_try\"") >&5
 
3621
  (eval $ac_try) 2>&5
 
3622
  ac_status=$?
 
3623
  echo "$as_me:3623: \$? = $ac_status" >&5
 
3624
  (exit $ac_status); }; }; then
 
3625
  :
 
3626
else
 
3627
  echo "$as_me: failed program was:" >&5
 
3628
cat conftest.$ac_ext >&5
 
3629
continue
 
3630
fi
 
3631
rm -f conftest.$ac_objext conftest.$ac_ext
 
3632
  cat >conftest.$ac_ext <<_ACEOF
 
3633
#line 3633 "configure"
 
3634
#include "confdefs.h"
 
3635
$ac_declaration
 
3636
int
 
3637
main ()
 
3638
{
 
3639
exit (42);
 
3640
  ;
 
3641
  return 0;
 
3642
}
 
3643
_ACEOF
 
3644
rm -f conftest.$ac_objext
 
3645
if { (eval echo "$as_me:3645: \"$ac_compile\"") >&5
 
3646
  (eval $ac_compile) 2>&5
 
3647
  ac_status=$?
 
3648
  echo "$as_me:3648: \$? = $ac_status" >&5
 
3649
  (exit $ac_status); } &&
 
3650
         { ac_try='test -s conftest.$ac_objext'
 
3651
  { (eval echo "$as_me:3651: \"$ac_try\"") >&5
 
3652
  (eval $ac_try) 2>&5
 
3653
  ac_status=$?
 
3654
  echo "$as_me:3654: \$? = $ac_status" >&5
 
3655
  (exit $ac_status); }; }; then
 
3656
  break
 
3657
else
 
3658
  echo "$as_me: failed program was:" >&5
 
3659
cat conftest.$ac_ext >&5
 
3660
fi
 
3661
rm -f conftest.$ac_objext conftest.$ac_ext
 
3662
done
 
3663
echo '#ifdef __cplusplus' >>confdefs.h
 
3664
echo $ac_declaration      >>confdefs.h
 
3665
echo '#endif'             >>confdefs.h
 
3666
 
 
3667
else
 
3668
  echo "$as_me: failed program was:" >&5
 
3669
cat conftest.$ac_ext >&5
 
3670
fi
 
3671
rm -f conftest.$ac_objext conftest.$ac_ext
 
3672
ac_ext=c
 
3673
ac_cpp='$CPP $CPPFLAGS'
 
3674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3677
 
 
3678
# Because of shared library building, the ${CC} used for config tests
 
3679
# may be different than the ${CC} we want to put in the Makefile.
 
3680
# The latter is known as ${MAKEFILE_CC} in this script.
 
3681
MAKEFILE_CC=${CC}
 
3682
MAKEFILE_CCLINK="\$(CC)"
 
3683
MAKEFILE_CXX="nocxx"
 
3684
MAKEFILE_CXXLINK="nocxx"
 
3685
 
 
3686
# See if we need the C++ compiler at all.  If so, we'd like to find one that
 
3687
# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
 
3688
# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
 
3689
# user can set CC and CXX in their environment before running configure.
 
3690
#
 
3691
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
 
3692
# first choices.
 
3693
if test "$db_cv_cxx" = "yes"; then
 
3694
        if test "$GCC" != "yes"; then
 
3695
                case "$host_os" in
 
3696
                aix*)           if test -n "$ac_tool_prefix"; then
 
3697
  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
 
3698
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
 
3699
echo "$as_me:3699: checking for $ac_word" >&5
 
3700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3701
if test "${ac_cv_prog_CCC+set}" = set; then
 
3702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3703
else
 
3704
  if test -n "$CCC"; then
 
3705
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
 
3706
else
 
3707
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3708
ac_dummy="$PATH"
 
3709
for ac_dir in $ac_dummy; do
 
3710
  IFS=$ac_save_IFS
 
3711
  test -z "$ac_dir" && ac_dir=.
 
3712
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3713
ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
 
3714
echo "$as_me:3714: found $ac_dir/$ac_word" >&5
 
3715
break
 
3716
done
 
3717
 
 
3718
fi
 
3719
fi
 
3720
CCC=$ac_cv_prog_CCC
 
3721
if test -n "$CCC"; then
 
3722
  echo "$as_me:3722: result: $CCC" >&5
 
3723
echo "${ECHO_T}$CCC" >&6
 
3724
else
 
3725
  echo "$as_me:3725: result: no" >&5
 
3726
echo "${ECHO_T}no" >&6
 
3727
fi
 
3728
 
 
3729
fi
 
3730
if test -z "$ac_cv_prog_CCC"; then
 
3731
  ac_ct_CCC=$CCC
 
3732
  # Extract the first word of "xlC_r", so it can be a program name with args.
 
3733
set dummy xlC_r; ac_word=$2
 
3734
echo "$as_me:3734: checking for $ac_word" >&5
 
3735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3736
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
 
3737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3738
else
 
3739
  if test -n "$ac_ct_CCC"; then
 
3740
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
 
3741
else
 
3742
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3743
ac_dummy="$PATH"
 
3744
for ac_dir in $ac_dummy; do
 
3745
  IFS=$ac_save_IFS
 
3746
  test -z "$ac_dir" && ac_dir=.
 
3747
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3748
ac_cv_prog_ac_ct_CCC="xlC_r"
 
3749
echo "$as_me:3749: found $ac_dir/$ac_word" >&5
 
3750
break
 
3751
done
 
3752
 
 
3753
fi
 
3754
fi
 
3755
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
 
3756
if test -n "$ac_ct_CCC"; then
 
3757
  echo "$as_me:3757: result: $ac_ct_CCC" >&5
 
3758
echo "${ECHO_T}$ac_ct_CCC" >&6
 
3759
else
 
3760
  echo "$as_me:3760: result: no" >&5
 
3761
echo "${ECHO_T}no" >&6
 
3762
fi
 
3763
 
 
3764
  CCC=$ac_ct_CCC
 
3765
else
 
3766
  CCC="$ac_cv_prog_CCC"
 
3767
fi
 
3768
;;
 
3769
                hpux*)          if test -n "$ac_tool_prefix"; then
 
3770
  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
 
3771
set dummy ${ac_tool_prefix}aCC; ac_word=$2
 
3772
echo "$as_me:3772: checking for $ac_word" >&5
 
3773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3774
if test "${ac_cv_prog_CCC+set}" = set; then
 
3775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3776
else
 
3777
  if test -n "$CCC"; then
 
3778
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
 
3779
else
 
3780
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3781
ac_dummy="$PATH"
 
3782
for ac_dir in $ac_dummy; do
 
3783
  IFS=$ac_save_IFS
 
3784
  test -z "$ac_dir" && ac_dir=.
 
3785
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3786
ac_cv_prog_CCC="${ac_tool_prefix}aCC"
 
3787
echo "$as_me:3787: found $ac_dir/$ac_word" >&5
 
3788
break
 
3789
done
 
3790
 
 
3791
fi
 
3792
fi
 
3793
CCC=$ac_cv_prog_CCC
 
3794
if test -n "$CCC"; then
 
3795
  echo "$as_me:3795: result: $CCC" >&5
 
3796
echo "${ECHO_T}$CCC" >&6
 
3797
else
 
3798
  echo "$as_me:3798: result: no" >&5
 
3799
echo "${ECHO_T}no" >&6
 
3800
fi
 
3801
 
 
3802
fi
 
3803
if test -z "$ac_cv_prog_CCC"; then
 
3804
  ac_ct_CCC=$CCC
 
3805
  # Extract the first word of "aCC", so it can be a program name with args.
 
3806
set dummy aCC; ac_word=$2
 
3807
echo "$as_me:3807: checking for $ac_word" >&5
 
3808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3809
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
 
3810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3811
else
 
3812
  if test -n "$ac_ct_CCC"; then
 
3813
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
 
3814
else
 
3815
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3816
ac_dummy="$PATH"
 
3817
for ac_dir in $ac_dummy; do
 
3818
  IFS=$ac_save_IFS
 
3819
  test -z "$ac_dir" && ac_dir=.
 
3820
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3821
ac_cv_prog_ac_ct_CCC="aCC"
 
3822
echo "$as_me:3822: found $ac_dir/$ac_word" >&5
 
3823
break
 
3824
done
 
3825
 
 
3826
fi
 
3827
fi
 
3828
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
 
3829
if test -n "$ac_ct_CCC"; then
 
3830
  echo "$as_me:3830: result: $ac_ct_CCC" >&5
 
3831
echo "${ECHO_T}$ac_ct_CCC" >&6
 
3832
else
 
3833
  echo "$as_me:3833: result: no" >&5
 
3834
echo "${ECHO_T}no" >&6
 
3835
fi
 
3836
 
 
3837
  CCC=$ac_ct_CCC
 
3838
else
 
3839
  CCC="$ac_cv_prog_CCC"
 
3840
fi
 
3841
;;
 
3842
                osf*)           if test -n "$ac_tool_prefix"; then
 
3843
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
 
3844
set dummy ${ac_tool_prefix}cxx; ac_word=$2
 
3845
echo "$as_me:3845: checking for $ac_word" >&5
 
3846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3847
if test "${ac_cv_prog_CCC+set}" = set; then
 
3848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3849
else
 
3850
  if test -n "$CCC"; then
 
3851
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
 
3852
else
 
3853
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3854
ac_dummy="$PATH"
 
3855
for ac_dir in $ac_dummy; do
 
3856
  IFS=$ac_save_IFS
 
3857
  test -z "$ac_dir" && ac_dir=.
 
3858
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3859
ac_cv_prog_CCC="${ac_tool_prefix}cxx"
 
3860
echo "$as_me:3860: found $ac_dir/$ac_word" >&5
 
3861
break
 
3862
done
 
3863
 
 
3864
fi
 
3865
fi
 
3866
CCC=$ac_cv_prog_CCC
 
3867
if test -n "$CCC"; then
 
3868
  echo "$as_me:3868: result: $CCC" >&5
 
3869
echo "${ECHO_T}$CCC" >&6
 
3870
else
 
3871
  echo "$as_me:3871: result: no" >&5
 
3872
echo "${ECHO_T}no" >&6
 
3873
fi
 
3874
 
 
3875
fi
 
3876
if test -z "$ac_cv_prog_CCC"; then
 
3877
  ac_ct_CCC=$CCC
 
3878
  # Extract the first word of "cxx", so it can be a program name with args.
 
3879
set dummy cxx; ac_word=$2
 
3880
echo "$as_me:3880: checking for $ac_word" >&5
 
3881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3882
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
 
3883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3884
else
 
3885
  if test -n "$ac_ct_CCC"; then
 
3886
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
 
3887
else
 
3888
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3889
ac_dummy="$PATH"
 
3890
for ac_dir in $ac_dummy; do
 
3891
  IFS=$ac_save_IFS
 
3892
  test -z "$ac_dir" && ac_dir=.
 
3893
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3894
ac_cv_prog_ac_ct_CCC="cxx"
 
3895
echo "$as_me:3895: found $ac_dir/$ac_word" >&5
 
3896
break
 
3897
done
 
3898
 
 
3899
fi
 
3900
fi
 
3901
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
 
3902
if test -n "$ac_ct_CCC"; then
 
3903
  echo "$as_me:3903: result: $ac_ct_CCC" >&5
 
3904
echo "${ECHO_T}$ac_ct_CCC" >&6
 
3905
else
 
3906
  echo "$as_me:3906: result: no" >&5
 
3907
echo "${ECHO_T}no" >&6
 
3908
fi
 
3909
 
 
3910
  CCC=$ac_ct_CCC
 
3911
else
 
3912
  CCC="$ac_cv_prog_CCC"
 
3913
fi
 
3914
;;
 
3915
                solaris*)       if test -n "$ac_tool_prefix"; then
 
3916
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
 
3917
set dummy ${ac_tool_prefix}CC; ac_word=$2
 
3918
echo "$as_me:3918: checking for $ac_word" >&5
 
3919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3920
if test "${ac_cv_prog_CCC+set}" = set; then
 
3921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3922
else
 
3923
  if test -n "$CCC"; then
 
3924
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
 
3925
else
 
3926
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3927
ac_dummy="$PATH"
 
3928
for ac_dir in $ac_dummy; do
 
3929
  IFS=$ac_save_IFS
 
3930
  test -z "$ac_dir" && ac_dir=.
 
3931
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3932
ac_cv_prog_CCC="${ac_tool_prefix}CC"
 
3933
echo "$as_me:3933: found $ac_dir/$ac_word" >&5
 
3934
break
 
3935
done
 
3936
 
 
3937
fi
 
3938
fi
 
3939
CCC=$ac_cv_prog_CCC
 
3940
if test -n "$CCC"; then
 
3941
  echo "$as_me:3941: result: $CCC" >&5
 
3942
echo "${ECHO_T}$CCC" >&6
 
3943
else
 
3944
  echo "$as_me:3944: result: no" >&5
 
3945
echo "${ECHO_T}no" >&6
 
3946
fi
 
3947
 
 
3948
fi
 
3949
if test -z "$ac_cv_prog_CCC"; then
 
3950
  ac_ct_CCC=$CCC
 
3951
  # Extract the first word of "CC", so it can be a program name with args.
 
3952
set dummy CC; ac_word=$2
 
3953
echo "$as_me:3953: checking for $ac_word" >&5
 
3954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3955
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
 
3956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3957
else
 
3958
  if test -n "$ac_ct_CCC"; then
 
3959
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
 
3960
else
 
3961
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
3962
ac_dummy="$PATH"
 
3963
for ac_dir in $ac_dummy; do
 
3964
  IFS=$ac_save_IFS
 
3965
  test -z "$ac_dir" && ac_dir=.
 
3966
  $as_executable_p "$ac_dir/$ac_word" || continue
 
3967
ac_cv_prog_ac_ct_CCC="CC"
 
3968
echo "$as_me:3968: found $ac_dir/$ac_word" >&5
 
3969
break
 
3970
done
 
3971
 
 
3972
fi
 
3973
fi
 
3974
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
 
3975
if test -n "$ac_ct_CCC"; then
 
3976
  echo "$as_me:3976: result: $ac_ct_CCC" >&5
 
3977
echo "${ECHO_T}$ac_ct_CCC" >&6
 
3978
else
 
3979
  echo "$as_me:3979: result: no" >&5
 
3980
echo "${ECHO_T}no" >&6
 
3981
fi
 
3982
 
 
3983
  CCC=$ac_ct_CCC
 
3984
else
 
3985
  CCC="$ac_cv_prog_CCC"
 
3986
fi
 
3987
;;
 
3988
                esac
 
3989
        fi
 
3990
        ac_ext=cc
 
3991
ac_cpp='$CXXCPP $CPPFLAGS'
 
3992
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3993
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3994
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3995
if test -n "$ac_tool_prefix"; then
 
3996
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
 
3997
  do
 
3998
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3999
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4000
echo "$as_me:4000: checking for $ac_word" >&5
 
4001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4002
if test "${ac_cv_prog_CXX+set}" = set; then
 
4003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4004
else
 
4005
  if test -n "$CXX"; then
 
4006
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4007
else
 
4008
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4009
ac_dummy="$PATH"
 
4010
for ac_dir in $ac_dummy; do
 
4011
  IFS=$ac_save_IFS
 
4012
  test -z "$ac_dir" && ac_dir=.
 
4013
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4014
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4015
echo "$as_me:4015: found $ac_dir/$ac_word" >&5
 
4016
break
 
4017
done
 
4018
 
 
4019
fi
 
4020
fi
 
4021
CXX=$ac_cv_prog_CXX
 
4022
if test -n "$CXX"; then
 
4023
  echo "$as_me:4023: result: $CXX" >&5
 
4024
echo "${ECHO_T}$CXX" >&6
 
4025
else
 
4026
  echo "$as_me:4026: result: no" >&5
 
4027
echo "${ECHO_T}no" >&6
 
4028
fi
 
4029
 
 
4030
    test -n "$CXX" && break
 
4031
  done
 
4032
fi
 
4033
if test -z "$CXX"; then
 
4034
  ac_ct_CXX=$CXX
 
4035
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
 
4036
do
 
4037
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4038
set dummy $ac_prog; ac_word=$2
 
4039
echo "$as_me:4039: checking for $ac_word" >&5
 
4040
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4041
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4043
else
 
4044
  if test -n "$ac_ct_CXX"; then
 
4045
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4046
else
 
4047
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4048
ac_dummy="$PATH"
 
4049
for ac_dir in $ac_dummy; do
 
4050
  IFS=$ac_save_IFS
 
4051
  test -z "$ac_dir" && ac_dir=.
 
4052
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4053
ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4054
echo "$as_me:4054: found $ac_dir/$ac_word" >&5
 
4055
break
 
4056
done
 
4057
 
 
4058
fi
 
4059
fi
 
4060
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4061
if test -n "$ac_ct_CXX"; then
 
4062
  echo "$as_me:4062: result: $ac_ct_CXX" >&5
 
4063
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4064
else
 
4065
  echo "$as_me:4065: result: no" >&5
 
4066
echo "${ECHO_T}no" >&6
 
4067
fi
 
4068
 
 
4069
  test -n "$ac_ct_CXX" && break
 
4070
done
 
4071
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4072
 
 
4073
  CXX=$ac_ct_CXX
 
4074
fi
 
4075
 
 
4076
echo "$as_me:4076: checking whether we are using the GNU C++ compiler" >&5
 
4077
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4078
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4080
else
 
4081
  cat >conftest.$ac_ext <<_ACEOF
 
4082
#line 4082 "configure"
 
4083
#include "confdefs.h"
 
4084
 
 
4085
int
 
4086
main ()
 
4087
{
 
4088
#ifndef __GNUC__
 
4089
       choke me
 
4090
#endif
 
4091
 
 
4092
  ;
 
4093
  return 0;
 
4094
}
 
4095
_ACEOF
 
4096
rm -f conftest.$ac_objext
 
4097
if { (eval echo "$as_me:4097: \"$ac_compile\"") >&5
 
4098
  (eval $ac_compile) 2>&5
 
4099
  ac_status=$?
 
4100
  echo "$as_me:4100: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); } &&
 
4102
         { ac_try='test -s conftest.$ac_objext'
 
4103
  { (eval echo "$as_me:4103: \"$ac_try\"") >&5
 
4104
  (eval $ac_try) 2>&5
 
4105
  ac_status=$?
 
4106
  echo "$as_me:4106: \$? = $ac_status" >&5
 
4107
  (exit $ac_status); }; }; then
 
4108
  ac_compiler_gnu=yes
 
4109
else
 
4110
  echo "$as_me: failed program was:" >&5
 
4111
cat conftest.$ac_ext >&5
 
4112
ac_compiler_gnu=no
 
4113
fi
 
4114
rm -f conftest.$ac_objext conftest.$ac_ext
 
4115
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4116
 
 
4117
fi
 
4118
echo "$as_me:4118: result: $ac_cv_cxx_compiler_gnu" >&5
 
4119
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4120
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4121
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4122
ac_save_CXXFLAGS=$CXXFLAGS
 
4123
CXXFLAGS="-g"
 
4124
echo "$as_me:4124: checking whether $CXX accepts -g" >&5
 
4125
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4126
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4128
else
 
4129
  cat >conftest.$ac_ext <<_ACEOF
 
4130
#line 4130 "configure"
 
4131
#include "confdefs.h"
 
4132
 
 
4133
int
 
4134
main ()
 
4135
{
 
4136
 
 
4137
  ;
 
4138
  return 0;
 
4139
}
 
4140
_ACEOF
 
4141
rm -f conftest.$ac_objext
 
4142
if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
 
4143
  (eval $ac_compile) 2>&5
 
4144
  ac_status=$?
 
4145
  echo "$as_me:4145: \$? = $ac_status" >&5
 
4146
  (exit $ac_status); } &&
 
4147
         { ac_try='test -s conftest.$ac_objext'
 
4148
  { (eval echo "$as_me:4148: \"$ac_try\"") >&5
 
4149
  (eval $ac_try) 2>&5
 
4150
  ac_status=$?
 
4151
  echo "$as_me:4151: \$? = $ac_status" >&5
 
4152
  (exit $ac_status); }; }; then
 
4153
  ac_cv_prog_cxx_g=yes
 
4154
else
 
4155
  echo "$as_me: failed program was:" >&5
 
4156
cat conftest.$ac_ext >&5
 
4157
ac_cv_prog_cxx_g=no
 
4158
fi
 
4159
rm -f conftest.$ac_objext conftest.$ac_ext
 
4160
fi
 
4161
echo "$as_me:4161: result: $ac_cv_prog_cxx_g" >&5
 
4162
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4163
if test "$ac_test_CXXFLAGS" = set; then
 
4164
  CXXFLAGS=$ac_save_CXXFLAGS
 
4165
elif test $ac_cv_prog_cxx_g = yes; then
 
4166
  if test "$GXX" = yes; then
 
4167
    CXXFLAGS="-g -O2"
 
4168
  else
 
4169
    CXXFLAGS="-g"
 
4170
  fi
 
4171
else
 
4172
  if test "$GXX" = yes; then
 
4173
    CXXFLAGS="-O2"
 
4174
  else
 
4175
    CXXFLAGS=
 
4176
  fi
 
4177
fi
 
4178
for ac_declaration in \
 
4179
   ''\
 
4180
   '#include <stdlib.h>' \
 
4181
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4182
   'extern "C" void std::exit (int); using std::exit;' \
 
4183
   'extern "C" void exit (int) throw ();' \
 
4184
   'extern "C" void exit (int);' \
 
4185
   'void exit (int);'
 
4186
do
 
4187
  cat >conftest.$ac_ext <<_ACEOF
 
4188
#line 4188 "configure"
 
4189
#include "confdefs.h"
 
4190
#include <stdlib.h>
 
4191
$ac_declaration
 
4192
int
 
4193
main ()
 
4194
{
 
4195
exit (42);
 
4196
  ;
 
4197
  return 0;
 
4198
}
 
4199
_ACEOF
 
4200
rm -f conftest.$ac_objext
 
4201
if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5
 
4202
  (eval $ac_compile) 2>&5
 
4203
  ac_status=$?
 
4204
  echo "$as_me:4204: \$? = $ac_status" >&5
 
4205
  (exit $ac_status); } &&
 
4206
         { ac_try='test -s conftest.$ac_objext'
 
4207
  { (eval echo "$as_me:4207: \"$ac_try\"") >&5
 
4208
  (eval $ac_try) 2>&5
 
4209
  ac_status=$?
 
4210
  echo "$as_me:4210: \$? = $ac_status" >&5
 
4211
  (exit $ac_status); }; }; then
 
4212
  :
 
4213
else
 
4214
  echo "$as_me: failed program was:" >&5
 
4215
cat conftest.$ac_ext >&5
 
4216
continue
 
4217
fi
 
4218
rm -f conftest.$ac_objext conftest.$ac_ext
 
4219
  cat >conftest.$ac_ext <<_ACEOF
 
4220
#line 4220 "configure"
 
4221
#include "confdefs.h"
 
4222
$ac_declaration
 
4223
int
 
4224
main ()
 
4225
{
 
4226
exit (42);
 
4227
  ;
 
4228
  return 0;
 
4229
}
 
4230
_ACEOF
 
4231
rm -f conftest.$ac_objext
 
4232
if { (eval echo "$as_me:4232: \"$ac_compile\"") >&5
 
4233
  (eval $ac_compile) 2>&5
 
4234
  ac_status=$?
 
4235
  echo "$as_me:4235: \$? = $ac_status" >&5
 
4236
  (exit $ac_status); } &&
 
4237
         { ac_try='test -s conftest.$ac_objext'
 
4238
  { (eval echo "$as_me:4238: \"$ac_try\"") >&5
 
4239
  (eval $ac_try) 2>&5
 
4240
  ac_status=$?
 
4241
  echo "$as_me:4241: \$? = $ac_status" >&5
 
4242
  (exit $ac_status); }; }; then
 
4243
  break
 
4244
else
 
4245
  echo "$as_me: failed program was:" >&5
 
4246
cat conftest.$ac_ext >&5
 
4247
fi
 
4248
rm -f conftest.$ac_objext conftest.$ac_ext
 
4249
done
 
4250
echo '#ifdef __cplusplus' >>confdefs.h
 
4251
echo $ac_declaration      >>confdefs.h
 
4252
echo '#endif'             >>confdefs.h
 
4253
 
 
4254
ac_ext=c
 
4255
ac_cpp='$CPP $CPPFLAGS'
 
4256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4259
 
 
4260
        MAKEFILE_CXX=${CXX}
 
4261
        MAKEFILE_CXXLINK="\$(CXX)"
 
4262
fi
 
4263
 
 
4264
# Do some gcc specific configuration.
 
4265
 
 
4266
if test "$GCC" = "yes"; then
 
4267
    echo "$as_me:4267: checking for gcc 2.96 for-loop bug" >&5
 
4268
echo $ECHO_N "checking for gcc 2.96 for-loop bug... $ECHO_C" >&6
 
4269
if test "${db_cv_gcc_2_96_forloop_bug+set}" = set; then
 
4270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4271
else
 
4272
 
 
4273
    if test "$cross_compiling" = yes; then
 
4274
  { { echo "$as_me:4274: error: cannot run test program while cross compiling" >&5
 
4275
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
4276
   { (exit 1); exit 1; }; }
 
4277
else
 
4278
  cat >conftest.$ac_ext <<_ACEOF
 
4279
#line 4279 "configure"
 
4280
#include "confdefs.h"
 
4281
void bug(unsigned int n) {
 
4282
        int i;
 
4283
        int shift = -1;
 
4284
        for (i=0; ((i < 10) && (shift < 0)) ; i++) {
 
4285
                if ((1UL << i) == n)
 
4286
                        shift = i;
 
4287
        }
 
4288
        if (shift < 0)
 
4289
                exit(1);
 
4290
    }
 
4291
    int main() {
 
4292
        bug(64);
 
4293
        exit(0);
 
4294
    }
 
4295
_ACEOF
 
4296
rm -f conftest$ac_exeext
 
4297
if { (eval echo "$as_me:4297: \"$ac_link\"") >&5
 
4298
  (eval $ac_link) 2>&5
 
4299
  ac_status=$?
 
4300
  echo "$as_me:4300: \$? = $ac_status" >&5
 
4301
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4302
  { (eval echo "$as_me:4302: \"$ac_try\"") >&5
 
4303
  (eval $ac_try) 2>&5
 
4304
  ac_status=$?
 
4305
  echo "$as_me:4305: \$? = $ac_status" >&5
 
4306
  (exit $ac_status); }; }; then
 
4307
  db_cv_gcc_2_96_forloop_bug=no
 
4308
else
 
4309
  echo "$as_me: program exited with status $ac_status" >&5
 
4310
echo "$as_me: failed program was:" >&5
 
4311
cat conftest.$ac_ext >&5
 
4312
db_cv_gcc_2_96_forloop_bug=yes
 
4313
fi
 
4314
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
4315
fi
 
4316
fi
 
4317
echo "$as_me:4317: result: $db_cv_gcc_2_96_forloop_bug" >&5
 
4318
echo "${ECHO_T}$db_cv_gcc_2_96_forloop_bug" >&6
 
4319
    if test "$db_cv_gcc_2_96_forloop_bug" = "yes"; then
 
4320
        CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
 
4321
        CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
 
4322
        { echo "$as_me:4322: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
 
4323
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
 
4324
        { echo "$as_me:4324: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
 
4325
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
 
4326
    fi
 
4327
fi
 
4328
 
 
4329
if test "$GXX" = "yes"; then
 
4330
        CXXVERSION=`${MAKEFILE_CXX} --version`
 
4331
        case ${CXXVERSION} in
 
4332
        1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
 
4333
                CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
 
4334
        *)
 
4335
                CXXFLAGS="-fexceptions $CXXFLAGS";;
 
4336
        esac
 
4337
fi
 
4338
 
 
4339
# Export our compiler preferences for the libtool configuration.
 
4340
export CC CCC
 
4341
CCC=CXX
 
4342
 
 
4343
# Libtool configuration.
 
4344
# Check whether --enable-shared or --disable-shared was given.
 
4345
if test "${enable_shared+set}" = set; then
 
4346
  enableval="$enable_shared"
 
4347
  p=${PACKAGE-default}
 
4348
case $enableval in
 
4349
yes) enable_shared=yes ;;
 
4350
no) enable_shared=no ;;
 
4351
*)
 
4352
  enable_shared=no
 
4353
  # Look at the argument we got.  We use all the common list separators.
 
4354
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4355
  for pkg in $enableval; do
 
4356
    if test "X$pkg" = "X$p"; then
 
4357
      enable_shared=yes
 
4358
    fi
 
4359
  done
 
4360
  IFS="$ac_save_ifs"
 
4361
  ;;
 
4362
esac
 
4363
else
 
4364
  enable_shared=yes
 
4365
fi;
 
4366
# Check whether --enable-static or --disable-static was given.
 
4367
if test "${enable_static+set}" = set; then
 
4368
  enableval="$enable_static"
 
4369
  p=${PACKAGE-default}
 
4370
case $enableval in
 
4371
yes) enable_static=yes ;;
 
4372
no) enable_static=no ;;
 
4373
*)
 
4374
  enable_static=no
 
4375
  # Look at the argument we got.  We use all the common list separators.
 
4376
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4377
  for pkg in $enableval; do
 
4378
    if test "X$pkg" = "X$p"; then
 
4379
      enable_static=yes
 
4380
    fi
 
4381
  done
 
4382
  IFS="$ac_save_ifs"
 
4383
  ;;
 
4384
esac
 
4385
else
 
4386
  enable_static=yes
 
4387
fi;
 
4388
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4389
if test "${enable_fast_install+set}" = set; then
 
4390
  enableval="$enable_fast_install"
 
4391
  p=${PACKAGE-default}
 
4392
case $enableval in
 
4393
yes) enable_fast_install=yes ;;
 
4394
no) enable_fast_install=no ;;
 
4395
*)
 
4396
  enable_fast_install=no
 
4397
  # Look at the argument we got.  We use all the common list separators.
 
4398
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4399
  for pkg in $enableval; do
 
4400
    if test "X$pkg" = "X$p"; then
 
4401
      enable_fast_install=yes
 
4402
    fi
 
4403
  done
 
4404
  IFS="$ac_save_ifs"
 
4405
  ;;
 
4406
esac
 
4407
else
 
4408
  enable_fast_install=yes
 
4409
fi;
 
4410
 
 
4411
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4412
if test "${with_gnu_ld+set}" = set; then
 
4413
  withval="$with_gnu_ld"
 
4414
  test "$withval" = no || with_gnu_ld=yes
 
4415
else
 
4416
  with_gnu_ld=no
 
4417
fi;
 
4418
ac_prog=ld
 
4419
if test "$GCC" = yes; then
 
4420
  # Check if gcc -print-prog-name=ld gives a path.
 
4421
  echo "$as_me:4421: checking for ld used by GCC" >&5
 
4422
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
4423
  case $host in
 
4424
  *-*-mingw*)
 
4425
    # gcc leaves a trailing carriage return which upsets mingw
 
4426
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4427
  *)
 
4428
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4429
  esac
 
4430
  case $ac_prog in
 
4431
    # Accept absolute paths.
 
4432
    [\\/]* | [A-Za-z]:[\\/]*)
 
4433
      re_direlt='/[^/][^/]*/\.\./'
 
4434
      # Canonicalize the path of ld
 
4435
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4436
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4437
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4438
      done
 
4439
      test -z "$LD" && LD="$ac_prog"
 
4440
      ;;
 
4441
  "")
 
4442
    # If it fails, then pretend we aren't using GCC.
 
4443
    ac_prog=ld
 
4444
    ;;
 
4445
  *)
 
4446
    # If it is relative, then search for the first ld in PATH.
 
4447
    with_gnu_ld=unknown
 
4448
    ;;
 
4449
  esac
 
4450
elif test "$with_gnu_ld" = yes; then
 
4451
  echo "$as_me:4451: checking for GNU ld" >&5
 
4452
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4453
else
 
4454
  echo "$as_me:4454: checking for non-GNU ld" >&5
 
4455
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4456
fi
 
4457
if test "${lt_cv_path_LD+set}" = set; then
 
4458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4459
else
 
4460
  if test -z "$LD"; then
 
4461
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
4462
  for ac_dir in $PATH; do
 
4463
    test -z "$ac_dir" && ac_dir=.
 
4464
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4465
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4466
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4467
      # but apparently some GNU ld's only accept -v.
 
4468
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4469
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
4470
        test "$with_gnu_ld" != no && break
 
4471
      else
 
4472
        test "$with_gnu_ld" != yes && break
 
4473
      fi
 
4474
    fi
 
4475
  done
 
4476
  IFS="$ac_save_ifs"
 
4477
else
 
4478
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4479
fi
 
4480
fi
 
4481
 
 
4482
LD="$lt_cv_path_LD"
 
4483
if test -n "$LD"; then
 
4484
  echo "$as_me:4484: result: $LD" >&5
 
4485
echo "${ECHO_T}$LD" >&6
 
4486
else
 
4487
  echo "$as_me:4487: result: no" >&5
 
4488
echo "${ECHO_T}no" >&6
 
4489
fi
 
4490
test -z "$LD" && { { echo "$as_me:4490: error: no acceptable ld found in \$PATH" >&5
 
4491
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4492
   { (exit 1); exit 1; }; }
 
4493
echo "$as_me:4493: checking if the linker ($LD) is GNU ld" >&5
 
4494
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4495
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4497
else
 
4498
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4499
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
4500
  lt_cv_prog_gnu_ld=yes
 
4501
else
 
4502
  lt_cv_prog_gnu_ld=no
 
4503
fi
 
4504
fi
 
4505
echo "$as_me:4505: result: $lt_cv_prog_gnu_ld" >&5
 
4506
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4507
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4508
 
 
4509
echo "$as_me:4509: checking for $LD option to reload object files" >&5
 
4510
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4511
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4513
else
 
4514
  lt_cv_ld_reload_flag='-r'
 
4515
fi
 
4516
echo "$as_me:4516: result: $lt_cv_ld_reload_flag" >&5
 
4517
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4518
reload_flag=$lt_cv_ld_reload_flag
 
4519
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
4520
 
 
4521
echo "$as_me:4521: checking for BSD-compatible nm" >&5
 
4522
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4523
if test "${lt_cv_path_NM+set}" = set; then
 
4524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4525
else
 
4526
  if test -n "$NM"; then
 
4527
  # Let the user override the test.
 
4528
  lt_cv_path_NM="$NM"
 
4529
else
 
4530
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
4531
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4532
    test -z "$ac_dir" && ac_dir=.
 
4533
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
4534
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
4535
      # Check to see if the nm accepts a BSD-compat flag.
 
4536
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4537
      #   nm: unknown option "B" ignored
 
4538
      # Tru64's nm complains that /dev/null is an invalid object file
 
4539
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
4540
        lt_cv_path_NM="$tmp_nm -B"
 
4541
        break
 
4542
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
4543
        lt_cv_path_NM="$tmp_nm -p"
 
4544
        break
 
4545
      else
 
4546
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4547
        continue # so that we can try to find one that supports BSD flags
 
4548
      fi
 
4549
    fi
 
4550
  done
 
4551
  IFS="$ac_save_ifs"
 
4552
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4553
fi
 
4554
fi
 
4555
 
 
4556
NM="$lt_cv_path_NM"
 
4557
echo "$as_me:4557: result: $NM" >&5
 
4558
echo "${ECHO_T}$NM" >&6
 
4559
 
 
4560
echo "$as_me:4560: checking whether ln -s works" >&5
 
4561
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4562
LN_S=$as_ln_s
 
4563
if test "$LN_S" = "ln -s"; then
 
4564
  echo "$as_me:4564: result: yes" >&5
 
4565
echo "${ECHO_T}yes" >&6
 
4566
else
 
4567
  echo "$as_me:4567: result: no, using $LN_S" >&5
 
4568
echo "${ECHO_T}no, using $LN_S" >&6
 
4569
fi
 
4570
 
 
4571
echo "$as_me:4571: checking how to recognise dependant libraries" >&5
 
4572
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
4573
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4575
else
 
4576
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4577
lt_cv_file_magic_test_file=
 
4578
lt_cv_deplibs_check_method='unknown'
 
4579
# Need to set the preceding variable on all platforms that support
 
4580
# interlibrary dependencies.
 
4581
# 'none' -- dependencies not supported.
 
4582
# `unknown' -- same as none, but documents that we really don't know.
 
4583
# 'pass_all' -- all dependencies passed with no checks.
 
4584
# 'test_compile' -- check by making test program.
 
4585
# ['file_magic [regex]'] -- check by looking for files in library path
 
4586
# which responds to the $file_magic_cmd with a given egrep regex.
 
4587
# If you have `file' or equivalent on your system and you're not sure
 
4588
# whether `pass_all' will *always* work, you probably want this one.
 
4589
 
 
4590
case $host_os in
 
4591
aix4* | aix5*)
 
4592
  lt_cv_deplibs_check_method=pass_all
 
4593
  ;;
 
4594
 
 
4595
beos*)
 
4596
  lt_cv_deplibs_check_method=pass_all
 
4597
  ;;
 
4598
 
 
4599
bsdi4*)
 
4600
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4601
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4602
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4603
  ;;
 
4604
 
 
4605
cygwin* | mingw* | pw32*)
 
4606
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4607
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4608
  ;;
 
4609
 
 
4610
darwin* | rhapsody*)
 
4611
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
4612
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4613
  case "$host_os" in
 
4614
  rhapsody* | darwin1.012)
 
4615
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
4616
    ;;
 
4617
  *) # Darwin 1.3 on
 
4618
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
4619
    ;;
 
4620
  esac
 
4621
  ;;
 
4622
 
 
4623
freebsd*)
 
4624
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4625
    case $host_cpu in
 
4626
    i*86 )
 
4627
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4628
      # Let's accept both of them until this is cleared up.
 
4629
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4630
      lt_cv_file_magic_cmd=/usr/bin/file
 
4631
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4632
      ;;
 
4633
    esac
 
4634
  else
 
4635
    lt_cv_deplibs_check_method=pass_all
 
4636
  fi
 
4637
  ;;
 
4638
 
 
4639
gnu*)
 
4640
  lt_cv_deplibs_check_method=pass_all
 
4641
  ;;
 
4642
 
 
4643
hpux10.20*|hpux11*)
 
4644
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4645
  lt_cv_file_magic_cmd=/usr/bin/file
 
4646
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4647
  ;;
 
4648
 
 
4649
irix5* | irix6*)
 
4650
  case $host_os in
 
4651
  irix5*)
 
4652
    # this will be overridden with pass_all, but let us keep it just in case
 
4653
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
4654
    ;;
 
4655
  *)
 
4656
    case $LD in
 
4657
    *-32|*"-32 ") libmagic=32-bit;;
 
4658
    *-n32|*"-n32 ") libmagic=N32;;
 
4659
    *-64|*"-64 ") libmagic=64-bit;;
 
4660
    *) libmagic=never-match;;
 
4661
    esac
 
4662
    # this will be overridden with pass_all, but let us keep it just in case
 
4663
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
4664
    ;;
 
4665
  esac
 
4666
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
4667
  lt_cv_deplibs_check_method=pass_all
 
4668
  ;;
 
4669
 
 
4670
# This must be Linux ELF.
 
4671
linux-gnu*)
 
4672
  case $host_cpu in
 
4673
  alpha* | i*86 | powerpc* | sparc* | ia64* )
 
4674
    lt_cv_deplibs_check_method=pass_all ;;
 
4675
  *)
 
4676
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
4677
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
4678
  esac
 
4679
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4680
  ;;
 
4681
 
 
4682
netbsd*)
 
4683
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4684
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
4685
  else
 
4686
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
4687
  fi
 
4688
  ;;
 
4689
 
 
4690
newos6*)
 
4691
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4692
  lt_cv_file_magic_cmd=/usr/bin/file
 
4693
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4694
  ;;
 
4695
 
 
4696
#### local change for Sleepycat DB:
 
4697
# Add in the QNX support from QNX.
 
4698
nto-qnx)
 
4699
  lt_cv_deplibs_check_method=pass_all
 
4700
  ;;
 
4701
 
 
4702
osf3* | osf4* | osf5*)
 
4703
  # this will be overridden with pass_all, but let us keep it just in case
 
4704
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
4705
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4706
  lt_cv_deplibs_check_method=pass_all
 
4707
  ;;
 
4708
 
 
4709
sco3.2v5*)
 
4710
  lt_cv_deplibs_check_method=pass_all
 
4711
  ;;
 
4712
 
 
4713
solaris*)
 
4714
  lt_cv_deplibs_check_method=pass_all
 
4715
  lt_cv_file_magic_test_file=/lib/libc.so
 
4716
  ;;
 
4717
 
 
4718
sysv5uw[78]* | sysv4*uw2*)
 
4719
  lt_cv_deplibs_check_method=pass_all
 
4720
  ;;
 
4721
 
 
4722
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4723
  case $host_vendor in
 
4724
  motorola)
 
4725
    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]'
 
4726
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4727
    ;;
 
4728
  ncr)
 
4729
    lt_cv_deplibs_check_method=pass_all
 
4730
    ;;
 
4731
  sequent)
 
4732
    lt_cv_file_magic_cmd='/bin/file'
 
4733
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4734
    ;;
 
4735
  sni)
 
4736
    lt_cv_file_magic_cmd='/bin/file'
 
4737
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4738
    lt_cv_file_magic_test_file=/lib/libc.so
 
4739
    ;;
 
4740
  esac
 
4741
  ;;
 
4742
esac
 
4743
 
 
4744
fi
 
4745
echo "$as_me:4745: result: $lt_cv_deplibs_check_method" >&5
 
4746
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4747
file_magic_cmd=$lt_cv_file_magic_cmd
 
4748
deplibs_check_method=$lt_cv_deplibs_check_method
 
4749
 
 
4750
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4751
echo "$as_me:4751: checking command to parse $NM output" >&5
 
4752
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
4753
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4755
else
 
4756
 
 
4757
# These are sane defaults that work on at least a few old systems.
 
4758
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4759
 
 
4760
# Character class describing NM global symbol codes.
 
4761
symcode='[BCDEGRST]'
 
4762
 
 
4763
# Regexp to match symbols that can be accessed directly from C.
 
4764
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
4765
 
 
4766
# Transform the above into a raw symbol and a C symbol.
 
4767
symxfrm='\1 \2\3 \3'
 
4768
 
 
4769
# Transform an extracted symbol line into a proper C declaration
 
4770
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
4771
 
 
4772
# Define system-specific variables.
 
4773
case $host_os in
 
4774
aix*)
 
4775
  symcode='[BCDT]'
 
4776
  ;;
 
4777
cygwin* | mingw* | pw32*)
 
4778
  symcode='[ABCDGISTW]'
 
4779
  ;;
 
4780
hpux*) # Its linker distinguishes data from code symbols
 
4781
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4782
  ;;
 
4783
irix*)
 
4784
  symcode='[BCDEGRST]'
 
4785
  ;;
 
4786
solaris* | sysv5*)
 
4787
  symcode='[BDT]'
 
4788
  ;;
 
4789
sysv4)
 
4790
  symcode='[DFNSTU]'
 
4791
  ;;
 
4792
esac
 
4793
 
 
4794
# Handle CRLF in mingw tool chain
 
4795
opt_cr=
 
4796
case $host_os in
 
4797
mingw*)
 
4798
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4799
  ;;
 
4800
esac
 
4801
 
 
4802
# If we're using GNU nm, then use its standard symbol codes.
 
4803
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
4804
  symcode='[ABCDGISTW]'
 
4805
fi
 
4806
 
 
4807
# Try without a prefix undercore, then with it.
 
4808
for ac_symprfx in "" "_"; do
 
4809
 
 
4810
  # Write the raw and C identifiers.
 
4811
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4812
 
 
4813
  # Check to see that the pipe works correctly.
 
4814
  pipe_works=no
 
4815
  rm -f conftest*
 
4816
  cat > conftest.$ac_ext <<EOF
 
4817
#ifdef __cplusplus
 
4818
extern "C" {
 
4819
#endif
 
4820
char nm_test_var;
 
4821
void nm_test_func(){}
 
4822
#ifdef __cplusplus
 
4823
}
 
4824
#endif
 
4825
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4826
EOF
 
4827
 
 
4828
  if { (eval echo "$as_me:4828: \"$ac_compile\"") >&5
 
4829
  (eval $ac_compile) 2>&5
 
4830
  ac_status=$?
 
4831
  echo "$as_me:4831: \$? = $ac_status" >&5
 
4832
  (exit $ac_status); }; then
 
4833
    # Now try to grab the symbols.
 
4834
    nlist=conftest.nm
 
4835
    if { (eval echo "$as_me:4835: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4836
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4837
  ac_status=$?
 
4838
  echo "$as_me:4838: \$? = $ac_status" >&5
 
4839
  (exit $ac_status); } && test -s "$nlist"; then
 
4840
      # Try sorting and uniquifying the output.
 
4841
      if sort "$nlist" | uniq > "$nlist"T; then
 
4842
        mv -f "$nlist"T "$nlist"
 
4843
      else
 
4844
        rm -f "$nlist"T
 
4845
      fi
 
4846
 
 
4847
      # Make sure that we snagged all the symbols we need.
 
4848
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
4849
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
4850
          cat <<EOF > conftest.$ac_ext
 
4851
#ifdef __cplusplus
 
4852
extern "C" {
 
4853
#endif
 
4854
 
 
4855
EOF
 
4856
          # Now generate the symbol file.
 
4857
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
4858
 
 
4859
          cat <<EOF >> conftest.$ac_ext
 
4860
#if defined (__STDC__) && __STDC__
 
4861
# define lt_ptr_t void *
 
4862
#else
 
4863
# define lt_ptr_t char *
 
4864
# define const
 
4865
#endif
 
4866
 
 
4867
/* The mapping between symbol names and symbols. */
 
4868
const struct {
 
4869
  const char *name;
 
4870
  lt_ptr_t address;
 
4871
}
 
4872
lt_preloaded_symbols[] =
 
4873
{
 
4874
EOF
 
4875
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
4876
          cat <<\EOF >> conftest.$ac_ext
 
4877
  {0, (lt_ptr_t) 0}
 
4878
};
 
4879
 
 
4880
#ifdef __cplusplus
 
4881
}
 
4882
#endif
 
4883
EOF
 
4884
          # Now try linking the two files.
 
4885
          mv conftest.$ac_objext conftstm.$ac_objext
 
4886
          save_LIBS="$LIBS"
 
4887
          save_CFLAGS="$CFLAGS"
 
4888
          LIBS="conftstm.$ac_objext"
 
4889
          CFLAGS="$CFLAGS$no_builtin_flag"
 
4890
          if { (eval echo "$as_me:4890: \"$ac_link\"") >&5
 
4891
  (eval $ac_link) 2>&5
 
4892
  ac_status=$?
 
4893
  echo "$as_me:4893: \$? = $ac_status" >&5
 
4894
  (exit $ac_status); } && test -s conftest; then
 
4895
            pipe_works=yes
 
4896
          fi
 
4897
          LIBS="$save_LIBS"
 
4898
          CFLAGS="$save_CFLAGS"
 
4899
        else
 
4900
          echo "cannot find nm_test_func in $nlist" >&5
 
4901
        fi
 
4902
      else
 
4903
        echo "cannot find nm_test_var in $nlist" >&5
 
4904
      fi
 
4905
    else
 
4906
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4907
    fi
 
4908
  else
 
4909
    echo "$progname: failed program was:" >&5
 
4910
    cat conftest.$ac_ext >&5
 
4911
  fi
 
4912
  rm -f conftest* conftst*
 
4913
 
 
4914
  # Do not use the global_symbol_pipe unless it works.
 
4915
  if test "$pipe_works" = yes; then
 
4916
    break
 
4917
  else
 
4918
    lt_cv_sys_global_symbol_pipe=
 
4919
  fi
 
4920
done
 
4921
 
 
4922
fi
 
4923
 
 
4924
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
4925
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4926
  global_symbol_to_cdecl=
 
4927
else
 
4928
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
4929
fi
 
4930
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
 
4931
  echo "$as_me:4931: result: failed" >&5
 
4932
echo "${ECHO_T}failed" >&6
 
4933
else
 
4934
  echo "$as_me:4934: result: ok" >&5
 
4935
echo "${ECHO_T}ok" >&6
 
4936
fi
 
4937
 
 
4938
ac_ext=c
 
4939
ac_cpp='$CPP $CPPFLAGS'
 
4940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4941
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4942
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4943
echo "$as_me:4943: checking how to run the C preprocessor" >&5
 
4944
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4945
# On Suns, sometimes $CPP names a directory.
 
4946
if test -n "$CPP" && test -d "$CPP"; then
 
4947
  CPP=
 
4948
fi
 
4949
if test -z "$CPP"; then
 
4950
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4952
else
 
4953
      # Double quotes because CPP needs to be expanded
 
4954
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4955
    do
 
4956
      # break 2 since there is a loop in there.
 
4957
      ac_preproc_ok=false
 
4958
for ac_c_preproc_warn_flag in '' yes
 
4959
do
 
4960
  # Use a header file that comes with gcc, so configuring glibc
 
4961
  # with a fresh cross-compiler works.
 
4962
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4963
  # not just through cpp. "Syntax error" is here to catch this case.
 
4964
  cat >conftest.$ac_ext <<_ACEOF
 
4965
#line 4965 "configure"
 
4966
#include "confdefs.h"
 
4967
#include <assert.h>
 
4968
                     Syntax error
 
4969
_ACEOF
 
4970
if { (eval echo "$as_me:4970: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4971
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4972
  ac_status=$?
 
4973
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4974
  rm -f conftest.er1
 
4975
  cat conftest.err >&5
 
4976
  echo "$as_me:4976: \$? = $ac_status" >&5
 
4977
  (exit $ac_status); } >/dev/null; then
 
4978
  if test -s conftest.err; then
 
4979
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4980
  else
 
4981
    ac_cpp_err=
 
4982
  fi
 
4983
else
 
4984
  ac_cpp_err=yes
 
4985
fi
 
4986
if test -z "$ac_cpp_err"; then
 
4987
  :
 
4988
else
 
4989
  echo "$as_me: failed program was:" >&5
 
4990
  cat conftest.$ac_ext >&5
 
4991
  # Broken: fails on valid input.
 
4992
continue
 
4993
fi
 
4994
rm -f conftest.err conftest.$ac_ext
 
4995
 
 
4996
  # OK, works on sane cases.  Now check whether non-existent headers
 
4997
  # can be detected and how.
 
4998
  cat >conftest.$ac_ext <<_ACEOF
 
4999
#line 4999 "configure"
 
5000
#include "confdefs.h"
 
5001
#include <ac_nonexistent.h>
 
5002
_ACEOF
 
5003
if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5004
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5005
  ac_status=$?
 
5006
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5007
  rm -f conftest.er1
 
5008
  cat conftest.err >&5
 
5009
  echo "$as_me:5009: \$? = $ac_status" >&5
 
5010
  (exit $ac_status); } >/dev/null; then
 
5011
  if test -s conftest.err; then
 
5012
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5013
  else
 
5014
    ac_cpp_err=
 
5015
  fi
 
5016
else
 
5017
  ac_cpp_err=yes
 
5018
fi
 
5019
if test -z "$ac_cpp_err"; then
 
5020
  # Broken: success on invalid input.
 
5021
continue
 
5022
else
 
5023
  echo "$as_me: failed program was:" >&5
 
5024
  cat conftest.$ac_ext >&5
 
5025
  # Passes both tests.
 
5026
ac_preproc_ok=:
 
5027
break
 
5028
fi
 
5029
rm -f conftest.err conftest.$ac_ext
 
5030
 
 
5031
done
 
5032
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5033
rm -f conftest.err conftest.$ac_ext
 
5034
if $ac_preproc_ok; then
 
5035
  break 2
 
5036
fi
 
5037
 
 
5038
    done
 
5039
    ac_cv_prog_CPP=$CPP
 
5040
 
 
5041
fi
 
5042
  CPP=$ac_cv_prog_CPP
 
5043
else
 
5044
  ac_cv_prog_CPP=$CPP
 
5045
fi
 
5046
echo "$as_me:5046: result: $CPP" >&5
 
5047
echo "${ECHO_T}$CPP" >&6
 
5048
ac_preproc_ok=false
 
5049
for ac_c_preproc_warn_flag in '' yes
 
5050
do
 
5051
  # Use a header file that comes with gcc, so configuring glibc
 
5052
  # with a fresh cross-compiler works.
 
5053
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5054
  # not just through cpp. "Syntax error" is here to catch this case.
 
5055
  cat >conftest.$ac_ext <<_ACEOF
 
5056
#line 5056 "configure"
 
5057
#include "confdefs.h"
 
5058
#include <assert.h>
 
5059
                     Syntax error
 
5060
_ACEOF
 
5061
if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5062
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5063
  ac_status=$?
 
5064
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5065
  rm -f conftest.er1
 
5066
  cat conftest.err >&5
 
5067
  echo "$as_me:5067: \$? = $ac_status" >&5
 
5068
  (exit $ac_status); } >/dev/null; then
 
5069
  if test -s conftest.err; then
 
5070
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5071
  else
 
5072
    ac_cpp_err=
 
5073
  fi
 
5074
else
 
5075
  ac_cpp_err=yes
 
5076
fi
 
5077
if test -z "$ac_cpp_err"; then
 
5078
  :
 
5079
else
 
5080
  echo "$as_me: failed program was:" >&5
 
5081
  cat conftest.$ac_ext >&5
 
5082
  # Broken: fails on valid input.
 
5083
continue
 
5084
fi
 
5085
rm -f conftest.err conftest.$ac_ext
 
5086
 
 
5087
  # OK, works on sane cases.  Now check whether non-existent headers
 
5088
  # can be detected and how.
 
5089
  cat >conftest.$ac_ext <<_ACEOF
 
5090
#line 5090 "configure"
 
5091
#include "confdefs.h"
 
5092
#include <ac_nonexistent.h>
 
5093
_ACEOF
 
5094
if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5095
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5096
  ac_status=$?
 
5097
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5098
  rm -f conftest.er1
 
5099
  cat conftest.err >&5
 
5100
  echo "$as_me:5100: \$? = $ac_status" >&5
 
5101
  (exit $ac_status); } >/dev/null; then
 
5102
  if test -s conftest.err; then
 
5103
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5104
  else
 
5105
    ac_cpp_err=
 
5106
  fi
 
5107
else
 
5108
  ac_cpp_err=yes
 
5109
fi
 
5110
if test -z "$ac_cpp_err"; then
 
5111
  # Broken: success on invalid input.
 
5112
continue
 
5113
else
 
5114
  echo "$as_me: failed program was:" >&5
 
5115
  cat conftest.$ac_ext >&5
 
5116
  # Passes both tests.
 
5117
ac_preproc_ok=:
 
5118
break
 
5119
fi
 
5120
rm -f conftest.err conftest.$ac_ext
 
5121
 
 
5122
done
 
5123
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5124
rm -f conftest.err conftest.$ac_ext
 
5125
if $ac_preproc_ok; then
 
5126
  :
 
5127
else
 
5128
  { { echo "$as_me:5128: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
5129
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
5130
   { (exit 1); exit 1; }; }
 
5131
fi
 
5132
 
 
5133
ac_ext=c
 
5134
ac_cpp='$CPP $CPPFLAGS'
 
5135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5138
 
 
5139
for ac_header in dlfcn.h
 
5140
do
 
5141
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
 
5142
echo "$as_me:5142: checking for $ac_header" >&5
 
5143
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5144
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
5145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5146
else
 
5147
  cat >conftest.$ac_ext <<_ACEOF
 
5148
#line 5148 "configure"
 
5149
#include "confdefs.h"
 
5150
#include <$ac_header>
 
5151
_ACEOF
 
5152
if { (eval echo "$as_me:5152: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5153
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5154
  ac_status=$?
 
5155
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5156
  rm -f conftest.er1
 
5157
  cat conftest.err >&5
 
5158
  echo "$as_me:5158: \$? = $ac_status" >&5
 
5159
  (exit $ac_status); } >/dev/null; then
 
5160
  if test -s conftest.err; then
 
5161
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5162
  else
 
5163
    ac_cpp_err=
 
5164
  fi
 
5165
else
 
5166
  ac_cpp_err=yes
 
5167
fi
 
5168
if test -z "$ac_cpp_err"; then
 
5169
  eval "$ac_ac_Header=yes"
 
5170
else
 
5171
  echo "$as_me: failed program was:" >&5
 
5172
  cat conftest.$ac_ext >&5
 
5173
  eval "$ac_ac_Header=no"
 
5174
fi
 
5175
rm -f conftest.err conftest.$ac_ext
 
5176
fi
 
5177
echo "$as_me:5177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
 
5178
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
 
5179
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
 
5180
  cat >>confdefs.h <<EOF
 
5181
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
 
5182
EOF
 
5183
 
 
5184
fi
 
5185
done
 
5186
 
 
5187
# Only perform the check for file, if the check method requires it
 
5188
case $deplibs_check_method in
 
5189
file_magic*)
 
5190
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5191
    echo "$as_me:5191: checking for ${ac_tool_prefix}file" >&5
 
5192
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5193
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5195
else
 
5196
  case $MAGIC_CMD in
 
5197
  /*)
 
5198
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5199
  ;;
 
5200
  ?:/*)
 
5201
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
5202
  ;;
 
5203
  *)
 
5204
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
5205
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5206
  ac_dummy="/usr/bin:$PATH"
 
5207
  for ac_dir in $ac_dummy; do
 
5208
    test -z "$ac_dir" && ac_dir=.
 
5209
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5210
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5211
      if test -n "$file_magic_test_file"; then
 
5212
        case $deplibs_check_method in
 
5213
        "file_magic "*)
 
5214
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5215
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5216
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5217
            egrep "$file_magic_regex" > /dev/null; then
 
5218
            :
 
5219
          else
 
5220
            cat <<EOF 1>&2
 
5221
 
 
5222
*** Warning: the command libtool uses to detect shared libraries,
 
5223
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5224
*** The result is that libtool may fail to recognize shared libraries
 
5225
*** as such.  This will affect the creation of libtool libraries that
 
5226
*** depend on shared libraries, but programs linked with such libtool
 
5227
*** libraries will work regardless of this problem.  Nevertheless, you
 
5228
*** may want to report the problem to your system manager and/or to
 
5229
*** bug-libtool@gnu.org
 
5230
 
 
5231
EOF
 
5232
          fi ;;
 
5233
        esac
 
5234
      fi
 
5235
      break
 
5236
    fi
 
5237
  done
 
5238
  IFS="$ac_save_ifs"
 
5239
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
5240
  ;;
 
5241
esac
 
5242
fi
 
5243
 
 
5244
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5245
if test -n "$MAGIC_CMD"; then
 
5246
  echo "$as_me:5246: result: $MAGIC_CMD" >&5
 
5247
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5248
else
 
5249
  echo "$as_me:5249: result: no" >&5
 
5250
echo "${ECHO_T}no" >&6
 
5251
fi
 
5252
 
 
5253
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5254
  if test -n "$ac_tool_prefix"; then
 
5255
    echo "$as_me:5255: checking for file" >&5
 
5256
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5257
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5259
else
 
5260
  case $MAGIC_CMD in
 
5261
  /*)
 
5262
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5263
  ;;
 
5264
  ?:/*)
 
5265
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
5266
  ;;
 
5267
  *)
 
5268
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
5269
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5270
  ac_dummy="/usr/bin:$PATH"
 
5271
  for ac_dir in $ac_dummy; do
 
5272
    test -z "$ac_dir" && ac_dir=.
 
5273
    if test -f $ac_dir/file; then
 
5274
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5275
      if test -n "$file_magic_test_file"; then
 
5276
        case $deplibs_check_method in
 
5277
        "file_magic "*)
 
5278
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5279
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5280
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5281
            egrep "$file_magic_regex" > /dev/null; then
 
5282
            :
 
5283
          else
 
5284
            cat <<EOF 1>&2
 
5285
 
 
5286
*** Warning: the command libtool uses to detect shared libraries,
 
5287
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5288
*** The result is that libtool may fail to recognize shared libraries
 
5289
*** as such.  This will affect the creation of libtool libraries that
 
5290
*** depend on shared libraries, but programs linked with such libtool
 
5291
*** libraries will work regardless of this problem.  Nevertheless, you
 
5292
*** may want to report the problem to your system manager and/or to
 
5293
*** bug-libtool@gnu.org
 
5294
 
 
5295
EOF
 
5296
          fi ;;
 
5297
        esac
 
5298
      fi
 
5299
      break
 
5300
    fi
 
5301
  done
 
5302
  IFS="$ac_save_ifs"
 
5303
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
5304
  ;;
 
5305
esac
 
5306
fi
 
5307
 
 
5308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5309
if test -n "$MAGIC_CMD"; then
 
5310
  echo "$as_me:5310: result: $MAGIC_CMD" >&5
 
5311
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5312
else
 
5313
  echo "$as_me:5313: result: no" >&5
 
5314
echo "${ECHO_T}no" >&6
 
5315
fi
 
5316
 
 
5317
  else
 
5318
    MAGIC_CMD=:
 
5319
  fi
 
5320
fi
 
5321
 
 
5322
  fi
 
5323
  ;;
 
5324
esac
 
5325
 
 
5326
if test -n "$ac_tool_prefix"; then
 
5327
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5328
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5329
echo "$as_me:5329: checking for $ac_word" >&5
 
5330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5331
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5333
else
 
5334
  if test -n "$RANLIB"; then
 
5335
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5336
else
 
5337
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5338
ac_dummy="$PATH"
 
5339
for ac_dir in $ac_dummy; do
 
5340
  IFS=$ac_save_IFS
 
5341
  test -z "$ac_dir" && ac_dir=.
 
5342
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5343
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5344
echo "$as_me:5344: found $ac_dir/$ac_word" >&5
 
5345
break
 
5346
done
 
5347
 
 
5348
fi
 
5349
fi
 
5350
RANLIB=$ac_cv_prog_RANLIB
 
5351
if test -n "$RANLIB"; then
 
5352
  echo "$as_me:5352: result: $RANLIB" >&5
 
5353
echo "${ECHO_T}$RANLIB" >&6
 
5354
else
 
5355
  echo "$as_me:5355: result: no" >&5
 
5356
echo "${ECHO_T}no" >&6
 
5357
fi
 
5358
 
 
5359
fi
 
5360
if test -z "$ac_cv_prog_RANLIB"; then
 
5361
  ac_ct_RANLIB=$RANLIB
 
5362
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5363
set dummy ranlib; ac_word=$2
 
5364
echo "$as_me:5364: checking for $ac_word" >&5
 
5365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5366
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5368
else
 
5369
  if test -n "$ac_ct_RANLIB"; then
 
5370
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5371
else
 
5372
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5373
ac_dummy="$PATH"
 
5374
for ac_dir in $ac_dummy; do
 
5375
  IFS=$ac_save_IFS
 
5376
  test -z "$ac_dir" && ac_dir=.
 
5377
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5378
ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5379
echo "$as_me:5379: found $ac_dir/$ac_word" >&5
 
5380
break
 
5381
done
 
5382
 
 
5383
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5384
fi
 
5385
fi
 
5386
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5387
if test -n "$ac_ct_RANLIB"; then
 
5388
  echo "$as_me:5388: result: $ac_ct_RANLIB" >&5
 
5389
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5390
else
 
5391
  echo "$as_me:5391: result: no" >&5
 
5392
echo "${ECHO_T}no" >&6
 
5393
fi
 
5394
 
 
5395
  RANLIB=$ac_ct_RANLIB
 
5396
else
 
5397
  RANLIB="$ac_cv_prog_RANLIB"
 
5398
fi
 
5399
 
 
5400
if test -n "$ac_tool_prefix"; then
 
5401
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5402
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5403
echo "$as_me:5403: checking for $ac_word" >&5
 
5404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5405
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5407
else
 
5408
  if test -n "$STRIP"; then
 
5409
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5410
else
 
5411
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5412
ac_dummy="$PATH"
 
5413
for ac_dir in $ac_dummy; do
 
5414
  IFS=$ac_save_IFS
 
5415
  test -z "$ac_dir" && ac_dir=.
 
5416
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5417
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5418
echo "$as_me:5418: found $ac_dir/$ac_word" >&5
 
5419
break
 
5420
done
 
5421
 
 
5422
fi
 
5423
fi
 
5424
STRIP=$ac_cv_prog_STRIP
 
5425
if test -n "$STRIP"; then
 
5426
  echo "$as_me:5426: result: $STRIP" >&5
 
5427
echo "${ECHO_T}$STRIP" >&6
 
5428
else
 
5429
  echo "$as_me:5429: result: no" >&5
 
5430
echo "${ECHO_T}no" >&6
 
5431
fi
 
5432
 
 
5433
fi
 
5434
if test -z "$ac_cv_prog_STRIP"; then
 
5435
  ac_ct_STRIP=$STRIP
 
5436
  # Extract the first word of "strip", so it can be a program name with args.
 
5437
set dummy strip; ac_word=$2
 
5438
echo "$as_me:5438: checking for $ac_word" >&5
 
5439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5440
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5442
else
 
5443
  if test -n "$ac_ct_STRIP"; then
 
5444
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5445
else
 
5446
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5447
ac_dummy="$PATH"
 
5448
for ac_dir in $ac_dummy; do
 
5449
  IFS=$ac_save_IFS
 
5450
  test -z "$ac_dir" && ac_dir=.
 
5451
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5452
ac_cv_prog_ac_ct_STRIP="strip"
 
5453
echo "$as_me:5453: found $ac_dir/$ac_word" >&5
 
5454
break
 
5455
done
 
5456
 
 
5457
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5458
fi
 
5459
fi
 
5460
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5461
if test -n "$ac_ct_STRIP"; then
 
5462
  echo "$as_me:5462: result: $ac_ct_STRIP" >&5
 
5463
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5464
else
 
5465
  echo "$as_me:5465: result: no" >&5
 
5466
echo "${ECHO_T}no" >&6
 
5467
fi
 
5468
 
 
5469
  STRIP=$ac_ct_STRIP
 
5470
else
 
5471
  STRIP="$ac_cv_prog_STRIP"
 
5472
fi
 
5473
 
 
5474
enable_dlopen=no
 
5475
enable_win32_dll=no
 
5476
 
 
5477
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5478
if test "${enable_libtool_lock+set}" = set; then
 
5479
  enableval="$enable_libtool_lock"
 
5480
 
 
5481
fi;
 
5482
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5483
 
 
5484
# Some flags need to be propagated to the compiler or linker for good
 
5485
# libtool support.
 
5486
case $host in
 
5487
*-*-irix6*)
 
5488
  # Find out which ABI we are using.
 
5489
  echo '#line 5489 "configure"' > conftest.$ac_ext
 
5490
  if { (eval echo "$as_me:5490: \"$ac_compile\"") >&5
 
5491
  (eval $ac_compile) 2>&5
 
5492
  ac_status=$?
 
5493
  echo "$as_me:5493: \$? = $ac_status" >&5
 
5494
  (exit $ac_status); }; then
 
5495
    case `/usr/bin/file conftest.$ac_objext` in
 
5496
    *32-bit*)
 
5497
      LD="${LD-ld} -32"
 
5498
      ;;
 
5499
    *N32*)
 
5500
      LD="${LD-ld} -n32"
 
5501
      ;;
 
5502
    *64-bit*)
 
5503
      LD="${LD-ld} -64"
 
5504
      ;;
 
5505
    esac
 
5506
  fi
 
5507
  rm -rf conftest*
 
5508
  ;;
 
5509
 
 
5510
*-*-sco3.2v5*)
 
5511
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5512
  SAVE_CFLAGS="$CFLAGS"
 
5513
  CFLAGS="$CFLAGS -belf"
 
5514
  echo "$as_me:5514: checking whether the C compiler needs -belf" >&5
 
5515
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5516
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5518
else
 
5519
 
 
5520
     ac_ext=c
 
5521
ac_cpp='$CPP $CPPFLAGS'
 
5522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5525
 
 
5526
     cat >conftest.$ac_ext <<_ACEOF
 
5527
#line 5527 "configure"
 
5528
#include "confdefs.h"
 
5529
 
 
5530
int
 
5531
main ()
 
5532
{
 
5533
 
 
5534
  ;
 
5535
  return 0;
 
5536
}
 
5537
_ACEOF
 
5538
rm -f conftest.$ac_objext conftest$ac_exeext
 
5539
if { (eval echo "$as_me:5539: \"$ac_link\"") >&5
 
5540
  (eval $ac_link) 2>&5
 
5541
  ac_status=$?
 
5542
  echo "$as_me:5542: \$? = $ac_status" >&5
 
5543
  (exit $ac_status); } &&
 
5544
         { ac_try='test -s conftest$ac_exeext'
 
5545
  { (eval echo "$as_me:5545: \"$ac_try\"") >&5
 
5546
  (eval $ac_try) 2>&5
 
5547
  ac_status=$?
 
5548
  echo "$as_me:5548: \$? = $ac_status" >&5
 
5549
  (exit $ac_status); }; }; then
 
5550
  lt_cv_cc_needs_belf=yes
 
5551
else
 
5552
  echo "$as_me: failed program was:" >&5
 
5553
cat conftest.$ac_ext >&5
 
5554
lt_cv_cc_needs_belf=no
 
5555
fi
 
5556
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5557
     ac_ext=c
 
5558
ac_cpp='$CPP $CPPFLAGS'
 
5559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5562
 
 
5563
fi
 
5564
echo "$as_me:5564: result: $lt_cv_cc_needs_belf" >&5
 
5565
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5566
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5567
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5568
    CFLAGS="$SAVE_CFLAGS"
 
5569
  fi
 
5570
  ;;
 
5571
 
 
5572
esac
 
5573
 
 
5574
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5575
# metacharacters that are still active within double-quoted strings.
 
5576
Xsed='sed -e s/^X//'
 
5577
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5578
 
 
5579
# Same as above, but do not quote variable references.
 
5580
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5581
 
 
5582
# Sed substitution to delay expansion of an escaped shell variable in a
 
5583
# double_quote_subst'ed string.
 
5584
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5585
 
 
5586
# Constants:
 
5587
rm="rm -f"
 
5588
 
 
5589
# Global variables:
 
5590
default_ofile=libtool
 
5591
can_build_shared=yes
 
5592
 
 
5593
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5594
# which needs '.lib').
 
5595
libext=a
 
5596
ltmain="$ac_aux_dir/ltmain.sh"
 
5597
ofile="$default_ofile"
 
5598
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5599
need_locks="$enable_libtool_lock"
 
5600
 
 
5601
old_CC="$CC"
 
5602
old_CFLAGS="$CFLAGS"
 
5603
 
 
5604
# Set sane defaults for various variables
 
5605
test -z "$AR" && AR=ar
 
5606
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5607
test -z "$AS" && AS=as
 
5608
test -z "$CC" && CC=cc
 
5609
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5610
test -z "$LD" && LD=ld
 
5611
test -z "$LN_S" && LN_S="ln -s"
 
5612
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5613
test -z "$NM" && NM=nm
 
5614
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5615
test -z "$RANLIB" && RANLIB=:
 
5616
test -z "$STRIP" && STRIP=:
 
5617
test -z "$ac_objext" && ac_objext=o
 
5618
 
 
5619
if test x"$host" != x"$build"; then
 
5620
  ac_tool_prefix=${host_alias}-
 
5621
else
 
5622
  ac_tool_prefix=
 
5623
fi
 
5624
 
 
5625
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
5626
case $host_os in
 
5627
linux-gnu*) ;;
 
5628
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
5629
esac
 
5630
 
 
5631
case $host_os in
 
5632
aix3*)
 
5633
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5634
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5635
  # vanish in a puff of smoke.
 
5636
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5637
    COLLECT_NAMES=
 
5638
    export COLLECT_NAMES
 
5639
  fi
 
5640
  ;;
 
5641
esac
 
5642
 
 
5643
# Determine commands to create old-style static archives.
 
5644
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5645
old_postinstall_cmds='chmod 644 $oldlib'
 
5646
old_postuninstall_cmds=
 
5647
 
 
5648
if test -n "$RANLIB"; then
 
5649
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5650
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5651
fi
 
5652
 
 
5653
# Allow CC to be a program name with arguments.
 
5654
set dummy $CC
 
5655
compiler="$2"
 
5656
 
 
5657
## FIXME: this should be a separate macro
 
5658
##
 
5659
echo "$as_me:5659: checking for objdir" >&5
 
5660
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5661
rm -f .libs 2>/dev/null
 
5662
mkdir .libs 2>/dev/null
 
5663
if test -d .libs; then
 
5664
  objdir=.libs
 
5665
else
 
5666
  # MS-DOS does not allow filenames that begin with a dot.
 
5667
  objdir=_libs
 
5668
fi
 
5669
rmdir .libs 2>/dev/null
 
5670
echo "$as_me:5670: result: $objdir" >&5
 
5671
echo "${ECHO_T}$objdir" >&6
 
5672
##
 
5673
## END FIXME
 
5674
 
 
5675
## FIXME: this should be a separate macro
 
5676
##
 
5677
 
 
5678
# Check whether --with-pic or --without-pic was given.
 
5679
if test "${with_pic+set}" = set; then
 
5680
  withval="$with_pic"
 
5681
  pic_mode="$withval"
 
5682
else
 
5683
  pic_mode=default
 
5684
fi;
 
5685
test -z "$pic_mode" && pic_mode=default
 
5686
 
 
5687
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
5688
# in isolation, and that seeing it set (from the cache) indicates that
 
5689
# the associated values are set (in the cache) correctly too.
 
5690
echo "$as_me:5690: checking for $compiler option to produce PIC" >&5
 
5691
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5692
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
5693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5694
else
 
5695
   lt_cv_prog_cc_pic=
 
5696
  lt_cv_prog_cc_shlib=
 
5697
  lt_cv_prog_cc_wl=
 
5698
  lt_cv_prog_cc_static=
 
5699
  lt_cv_prog_cc_no_builtin=
 
5700
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
5701
 
 
5702
  if test "$GCC" = yes; then
 
5703
    lt_cv_prog_cc_wl='-Wl,'
 
5704
    lt_cv_prog_cc_static='-static'
 
5705
 
 
5706
    case $host_os in
 
5707
    aix*)
 
5708
      # Below there is a dirty hack to force normal static linking with -ldl
 
5709
      # The problem is because libdl dynamically linked with both libc and
 
5710
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
5711
      # list by gcc. This cause undefined symbols with -static flags.
 
5712
      # This hack allows C programs to be linked with "-static -ldl", but
 
5713
      # we not sure about C++ programs.
 
5714
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
5715
      ;;
 
5716
    amigaos*)
 
5717
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5718
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5719
      # like `-m68040'.
 
5720
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
5721
      ;;
 
5722
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
5723
      # PIC is the default for these OSes.
 
5724
      ;;
 
5725
    darwin* | rhapsody*)
 
5726
      # PIC is the default on this platform
 
5727
      # Common symbols not allowed in MH_DYLIB files
 
5728
      lt_cv_prog_cc_pic='-fno-common'
 
5729
      ;;
 
5730
    cygwin* | mingw* | pw32* | os2*)
 
5731
      # This hack is so that the source file can tell whether it is being
 
5732
      # built for inclusion in a dll (and should export symbols for example).
 
5733
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5734
      ;;
 
5735
    sysv4*MP*)
 
5736
      if test -d /usr/nec; then
 
5737
         lt_cv_prog_cc_pic=-Kconform_pic
 
5738
      fi
 
5739
      ;;
 
5740
    *)
 
5741
      lt_cv_prog_cc_pic='-fPIC'
 
5742
      ;;
 
5743
    esac
 
5744
  else
 
5745
    # PORTME Check for PIC flags for the system compiler.
 
5746
    case $host_os in
 
5747
    aix3* | aix4* | aix5*)
 
5748
      # All AIX code is PIC.
 
5749
      if test "$host_cpu" = ia64; then
 
5750
        # AIX 5 now supports IA64 processor
 
5751
        lt_cv_prog_cc_static='-Bstatic'
 
5752
        lt_cv_prog_cc_wl='-Wl,'
 
5753
      else
 
5754
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
5755
      fi
 
5756
      ;;
 
5757
 
 
5758
    hpux9* | hpux10* | hpux11*)
 
5759
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
5760
      lt_cv_prog_cc_wl='-Wl,'
 
5761
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
5762
      lt_cv_prog_cc_pic='+Z'
 
5763
      ;;
 
5764
 
 
5765
    irix5* | irix6*)
 
5766
      lt_cv_prog_cc_wl='-Wl,'
 
5767
      lt_cv_prog_cc_static='-non_shared'
 
5768
      # PIC (with -KPIC) is the default.
 
5769
      ;;
 
5770
 
 
5771
    cygwin* | mingw* | pw32* | os2*)
 
5772
      # This hack is so that the source file can tell whether it is being
 
5773
      # built for inclusion in a dll (and should export symbols for example).
 
5774
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5775
      ;;
 
5776
 
 
5777
    newsos6)
 
5778
      lt_cv_prog_cc_pic='-KPIC'
 
5779
      lt_cv_prog_cc_static='-Bstatic'
 
5780
      ;;
 
5781
 
 
5782
    osf3* | osf4* | osf5*)
 
5783
      # All OSF/1 code is PIC.
 
5784
      lt_cv_prog_cc_wl='-Wl,'
 
5785
      lt_cv_prog_cc_static='-non_shared'
 
5786
      ;;
 
5787
 
 
5788
    sco3.2v5*)
 
5789
      lt_cv_prog_cc_pic='-Kpic'
 
5790
      lt_cv_prog_cc_static='-dn'
 
5791
      lt_cv_prog_cc_shlib='-belf'
 
5792
      ;;
 
5793
 
 
5794
    solaris*)
 
5795
      lt_cv_prog_cc_pic='-KPIC'
 
5796
      lt_cv_prog_cc_static='-Bstatic'
 
5797
      lt_cv_prog_cc_wl='-Wl,'
 
5798
      ;;
 
5799
 
 
5800
    sunos4*)
 
5801
      lt_cv_prog_cc_pic='-PIC'
 
5802
      lt_cv_prog_cc_static='-Bstatic'
 
5803
      lt_cv_prog_cc_wl='-Qoption ld '
 
5804
      ;;
 
5805
 
 
5806
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5807
      lt_cv_prog_cc_pic='-KPIC'
 
5808
      lt_cv_prog_cc_static='-Bstatic'
 
5809
      if test "x$host_vendor" = xsni; then
 
5810
        lt_cv_prog_cc_wl='-LD'
 
5811
      else
 
5812
        lt_cv_prog_cc_wl='-Wl,'
 
5813
      fi
 
5814
      ;;
 
5815
 
 
5816
    uts4*)
 
5817
      lt_cv_prog_cc_pic='-pic'
 
5818
      lt_cv_prog_cc_static='-Bstatic'
 
5819
      ;;
 
5820
 
 
5821
    sysv4*MP*)
 
5822
      if test -d /usr/nec ;then
 
5823
        lt_cv_prog_cc_pic='-Kconform_pic'
 
5824
        lt_cv_prog_cc_static='-Bstatic'
 
5825
      fi
 
5826
      ;;
 
5827
 
 
5828
    *)
 
5829
      lt_cv_prog_cc_can_build_shared=no
 
5830
      ;;
 
5831
    esac
 
5832
  fi
 
5833
 
 
5834
fi
 
5835
 
 
5836
if test -z "$lt_cv_prog_cc_pic"; then
 
5837
  echo "$as_me:5837: result: none" >&5
 
5838
echo "${ECHO_T}none" >&6
 
5839
else
 
5840
  echo "$as_me:5840: result: $lt_cv_prog_cc_pic" >&5
 
5841
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
5842
 
 
5843
  # Check to make sure the pic_flag actually works.
 
5844
  echo "$as_me:5844: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
5845
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
5846
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
5847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5848
else
 
5849
      save_CFLAGS="$CFLAGS"
 
5850
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
5851
    cat >conftest.$ac_ext <<_ACEOF
 
5852
#line 5852 "configure"
 
5853
#include "confdefs.h"
 
5854
 
 
5855
int
 
5856
main ()
 
5857
{
 
5858
 
 
5859
  ;
 
5860
  return 0;
 
5861
}
 
5862
_ACEOF
 
5863
rm -f conftest.$ac_objext
 
5864
if { (eval echo "$as_me:5864: \"$ac_compile\"") >&5
 
5865
  (eval $ac_compile) 2>&5
 
5866
  ac_status=$?
 
5867
  echo "$as_me:5867: \$? = $ac_status" >&5
 
5868
  (exit $ac_status); } &&
 
5869
         { ac_try='test -s conftest.$ac_objext'
 
5870
  { (eval echo "$as_me:5870: \"$ac_try\"") >&5
 
5871
  (eval $ac_try) 2>&5
 
5872
  ac_status=$?
 
5873
  echo "$as_me:5873: \$? = $ac_status" >&5
 
5874
  (exit $ac_status); }; }; then
 
5875
        case $host_os in
 
5876
      hpux9* | hpux10* | hpux11*)
 
5877
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
5878
        # they create non-PIC objects.  So, if there were any warnings, we
 
5879
        # assume that PIC is not supported.
 
5880
        if test -s conftest.err; then
 
5881
          lt_cv_prog_cc_pic_works=no
 
5882
        else
 
5883
          lt_cv_prog_cc_pic_works=yes
 
5884
        fi
 
5885
        ;;
 
5886
      *)
 
5887
        lt_cv_prog_cc_pic_works=yes
 
5888
        ;;
 
5889
      esac
 
5890
 
 
5891
else
 
5892
  echo "$as_me: failed program was:" >&5
 
5893
cat conftest.$ac_ext >&5
 
5894
      lt_cv_prog_cc_pic_works=no
 
5895
 
 
5896
fi
 
5897
rm -f conftest.$ac_objext conftest.$ac_ext
 
5898
    CFLAGS="$save_CFLAGS"
 
5899
 
 
5900
fi
 
5901
 
 
5902
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
5903
    lt_cv_prog_cc_pic=
 
5904
    lt_cv_prog_cc_can_build_shared=no
 
5905
  else
 
5906
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
5907
  fi
 
5908
 
 
5909
  echo "$as_me:5909: result: $lt_cv_prog_cc_pic_works" >&5
 
5910
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
5911
fi
 
5912
##
 
5913
## END FIXME
 
5914
 
 
5915
# Check for any special shared library compilation flags.
 
5916
if test -n "$lt_cv_prog_cc_shlib"; then
 
5917
  { echo "$as_me:5917: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
5918
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
5919
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5920
  else
 
5921
   { echo "$as_me:5921: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5922
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5923
    lt_cv_prog_cc_can_build_shared=no
 
5924
  fi
 
5925
fi
 
5926
 
 
5927
## FIXME: this should be a separate macro
 
5928
##
 
5929
echo "$as_me:5929: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
5930
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
5931
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
5932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5933
else
 
5934
    lt_cv_prog_cc_static_works=no
 
5935
  save_LDFLAGS="$LDFLAGS"
 
5936
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
5937
  cat >conftest.$ac_ext <<_ACEOF
 
5938
#line 5938 "configure"
 
5939
#include "confdefs.h"
 
5940
 
 
5941
int
 
5942
main ()
 
5943
{
 
5944
 
 
5945
  ;
 
5946
  return 0;
 
5947
}
 
5948
_ACEOF
 
5949
rm -f conftest.$ac_objext conftest$ac_exeext
 
5950
if { (eval echo "$as_me:5950: \"$ac_link\"") >&5
 
5951
  (eval $ac_link) 2>&5
 
5952
  ac_status=$?
 
5953
  echo "$as_me:5953: \$? = $ac_status" >&5
 
5954
  (exit $ac_status); } &&
 
5955
         { ac_try='test -s conftest$ac_exeext'
 
5956
  { (eval echo "$as_me:5956: \"$ac_try\"") >&5
 
5957
  (eval $ac_try) 2>&5
 
5958
  ac_status=$?
 
5959
  echo "$as_me:5959: \$? = $ac_status" >&5
 
5960
  (exit $ac_status); }; }; then
 
5961
  lt_cv_prog_cc_static_works=yes
 
5962
else
 
5963
  echo "$as_me: failed program was:" >&5
 
5964
cat conftest.$ac_ext >&5
 
5965
fi
 
5966
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5967
  LDFLAGS="$save_LDFLAGS"
 
5968
 
 
5969
fi
 
5970
 
 
5971
# Belt *and* braces to stop my trousers falling down:
 
5972
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
5973
echo "$as_me:5973: result: $lt_cv_prog_cc_static_works" >&5
 
5974
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
5975
 
 
5976
pic_flag="$lt_cv_prog_cc_pic"
 
5977
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
5978
wl="$lt_cv_prog_cc_wl"
 
5979
link_static_flag="$lt_cv_prog_cc_static"
 
5980
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
5981
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
5982
##
 
5983
## END FIXME
 
5984
 
 
5985
## FIXME: this should be a separate macro
 
5986
##
 
5987
# Check to see if options -o and -c are simultaneously supported by compiler
 
5988
echo "$as_me:5988: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5989
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5990
if test "${lt_cv_compiler_c_o+set}" = set; then
 
5991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5992
else
 
5993
 
 
5994
$rm -r conftest 2>/dev/null
 
5995
mkdir conftest
 
5996
cd conftest
 
5997
echo "int some_variable = 0;" > conftest.$ac_ext
 
5998
mkdir out
 
5999
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
6000
# that will create temporary files in the current directory regardless of
 
6001
# the output directory.  Thus, making CWD read-only will cause this test
 
6002
# to fail, enabling locking or at least warning the user not to do parallel
 
6003
# builds.
 
6004
chmod -w .
 
6005
save_CFLAGS="$CFLAGS"
 
6006
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
6007
compiler_c_o=no
 
6008
if { (eval echo configure:6008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
6009
  # The compiler can only warn and ignore the option if not recognized
 
6010
  # So say no if there are warnings
 
6011
  if test -s out/conftest.err; then
 
6012
    lt_cv_compiler_c_o=no
 
6013
  else
 
6014
    lt_cv_compiler_c_o=yes
 
6015
  fi
 
6016
else
 
6017
  # Append any errors to the config.log.
 
6018
  cat out/conftest.err 1>&5
 
6019
  lt_cv_compiler_c_o=no
 
6020
fi
 
6021
CFLAGS="$save_CFLAGS"
 
6022
chmod u+w .
 
6023
$rm conftest* out/*
 
6024
rmdir out
 
6025
cd ..
 
6026
rmdir conftest
 
6027
$rm -r conftest 2>/dev/null
 
6028
 
 
6029
fi
 
6030
 
 
6031
compiler_c_o=$lt_cv_compiler_c_o
 
6032
echo "$as_me:6032: result: $compiler_c_o" >&5
 
6033
echo "${ECHO_T}$compiler_c_o" >&6
 
6034
 
 
6035
if test x"$compiler_c_o" = x"yes"; then
 
6036
  # Check to see if we can write to a .lo
 
6037
  echo "$as_me:6037: checking if $compiler supports -c -o file.lo" >&5
 
6038
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
6039
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
6040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6041
else
 
6042
 
 
6043
  lt_cv_compiler_o_lo=no
 
6044
  save_CFLAGS="$CFLAGS"
 
6045
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
6046
  cat >conftest.$ac_ext <<_ACEOF
 
6047
#line 6047 "configure"
 
6048
#include "confdefs.h"
 
6049
 
 
6050
int
 
6051
main ()
 
6052
{
 
6053
int some_variable = 0;
 
6054
  ;
 
6055
  return 0;
 
6056
}
 
6057
_ACEOF
 
6058
rm -f conftest.$ac_objext
 
6059
if { (eval echo "$as_me:6059: \"$ac_compile\"") >&5
 
6060
  (eval $ac_compile) 2>&5
 
6061
  ac_status=$?
 
6062
  echo "$as_me:6062: \$? = $ac_status" >&5
 
6063
  (exit $ac_status); } &&
 
6064
         { ac_try='test -s conftest.$ac_objext'
 
6065
  { (eval echo "$as_me:6065: \"$ac_try\"") >&5
 
6066
  (eval $ac_try) 2>&5
 
6067
  ac_status=$?
 
6068
  echo "$as_me:6068: \$? = $ac_status" >&5
 
6069
  (exit $ac_status); }; }; then
 
6070
      # The compiler can only warn and ignore the option if not recognized
 
6071
    # So say no if there are warnings
 
6072
    if test -s conftest.err; then
 
6073
      lt_cv_compiler_o_lo=no
 
6074
    else
 
6075
      lt_cv_compiler_o_lo=yes
 
6076
    fi
 
6077
 
 
6078
else
 
6079
  echo "$as_me: failed program was:" >&5
 
6080
cat conftest.$ac_ext >&5
 
6081
fi
 
6082
rm -f conftest.$ac_objext conftest.$ac_ext
 
6083
  CFLAGS="$save_CFLAGS"
 
6084
 
 
6085
fi
 
6086
 
 
6087
  compiler_o_lo=$lt_cv_compiler_o_lo
 
6088
  echo "$as_me:6088: result: $compiler_c_lo" >&5
 
6089
echo "${ECHO_T}$compiler_c_lo" >&6
 
6090
else
 
6091
  compiler_o_lo=no
 
6092
fi
 
6093
##
 
6094
## END FIXME
 
6095
 
 
6096
## FIXME: this should be a separate macro
 
6097
##
 
6098
# Check to see if we can do hard links to lock some files if needed
 
6099
hard_links="nottested"
 
6100
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
6101
  # do not overwrite the value of need_locks provided by the user
 
6102
  echo "$as_me:6102: checking if we can lock with hard links" >&5
 
6103
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6104
  hard_links=yes
 
6105
  $rm conftest*
 
6106
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6107
  touch conftest.a
 
6108
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6109
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6110
  echo "$as_me:6110: result: $hard_links" >&5
 
6111
echo "${ECHO_T}$hard_links" >&6
 
6112
  if test "$hard_links" = no; then
 
6113
    { echo "$as_me:6113: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6114
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6115
    need_locks=warn
 
6116
  fi
 
6117
else
 
6118
  need_locks=no
 
6119
fi
 
6120
##
 
6121
## END FIXME
 
6122
 
 
6123
## FIXME: this should be a separate macro
 
6124
##
 
6125
if test "$GCC" = yes; then
 
6126
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
6127
  echo "$as_me:6127: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6128
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6129
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6130
  save_CFLAGS="$CFLAGS"
 
6131
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
6132
  compiler_rtti_exceptions=no
 
6133
  cat >conftest.$ac_ext <<_ACEOF
 
6134
#line 6134 "configure"
 
6135
#include "confdefs.h"
 
6136
 
 
6137
int
 
6138
main ()
 
6139
{
 
6140
int some_variable = 0;
 
6141
  ;
 
6142
  return 0;
 
6143
}
 
6144
_ACEOF
 
6145
rm -f conftest.$ac_objext
 
6146
if { (eval echo "$as_me:6146: \"$ac_compile\"") >&5
 
6147
  (eval $ac_compile) 2>&5
 
6148
  ac_status=$?
 
6149
  echo "$as_me:6149: \$? = $ac_status" >&5
 
6150
  (exit $ac_status); } &&
 
6151
         { ac_try='test -s conftest.$ac_objext'
 
6152
  { (eval echo "$as_me:6152: \"$ac_try\"") >&5
 
6153
  (eval $ac_try) 2>&5
 
6154
  ac_status=$?
 
6155
  echo "$as_me:6155: \$? = $ac_status" >&5
 
6156
  (exit $ac_status); }; }; then
 
6157
      # The compiler can only warn and ignore the option if not recognized
 
6158
    # So say no if there are warnings
 
6159
    if test -s conftest.err; then
 
6160
      compiler_rtti_exceptions=no
 
6161
    else
 
6162
      compiler_rtti_exceptions=yes
 
6163
    fi
 
6164
 
 
6165
else
 
6166
  echo "$as_me: failed program was:" >&5
 
6167
cat conftest.$ac_ext >&5
 
6168
fi
 
6169
rm -f conftest.$ac_objext conftest.$ac_ext
 
6170
  CFLAGS="$save_CFLAGS"
 
6171
  echo "$as_me:6171: result: $compiler_rtti_exceptions" >&5
 
6172
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
6173
 
 
6174
  if test "$compiler_rtti_exceptions" = "yes"; then
 
6175
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
6176
  else
 
6177
    no_builtin_flag=' -fno-builtin'
 
6178
  fi
 
6179
fi
 
6180
##
 
6181
## END FIXME
 
6182
 
 
6183
## FIXME: this should be a separate macro
 
6184
##
 
6185
# See if the linker supports building shared libraries.
 
6186
echo "$as_me:6186: checking whether the linker ($LD) supports shared libraries" >&5
 
6187
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6188
 
 
6189
allow_undefined_flag=
 
6190
no_undefined_flag=
 
6191
need_lib_prefix=unknown
 
6192
need_version=unknown
 
6193
# when you set need_version to no, make sure it does not cause -set_version
 
6194
# flags to be left without arguments
 
6195
archive_cmds=
 
6196
archive_expsym_cmds=
 
6197
old_archive_from_new_cmds=
 
6198
old_archive_from_expsyms_cmds=
 
6199
export_dynamic_flag_spec=
 
6200
whole_archive_flag_spec=
 
6201
thread_safe_flag_spec=
 
6202
hardcode_into_libs=no
 
6203
hardcode_libdir_flag_spec=
 
6204
hardcode_libdir_separator=
 
6205
hardcode_direct=no
 
6206
hardcode_minus_L=no
 
6207
hardcode_shlibpath_var=unsupported
 
6208
runpath_var=
 
6209
link_all_deplibs=unknown
 
6210
always_export_symbols=no
 
6211
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6212
# include_expsyms should be a list of space-separated symbols to be *always*
 
6213
# included in the symbol list
 
6214
include_expsyms=
 
6215
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
6216
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6217
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6218
# as well as any symbol that contains `d'.
 
6219
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6220
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6221
# platforms (ab)use it in PIC code, but their linkers get confused if
 
6222
# the symbol is explicitly referenced.  Since portable code cannot
 
6223
# rely on this symbol name, it's probably fine to never include it in
 
6224
# preloaded symbol tables.
 
6225
extract_expsyms_cmds=
 
6226
 
 
6227
case $host_os in
 
6228
cygwin* | mingw* | pw32* )
 
6229
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6230
  # When not using gcc, we currently assume that we are using
 
6231
  # Microsoft Visual C++.
 
6232
  if test "$GCC" != yes; then
 
6233
    with_gnu_ld=no
 
6234
  fi
 
6235
  ;;
 
6236
 
 
6237
esac
 
6238
 
 
6239
ld_shlibs=yes
 
6240
if test "$with_gnu_ld" = yes; then
 
6241
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
6242
  wlarc='${wl}'
 
6243
 
 
6244
  # See if GNU ld supports shared libraries.
 
6245
  case $host_os in
 
6246
  aix3* | aix4* | aix5*)
 
6247
    # On AIX, the GNU linker is very broken
 
6248
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
6249
    ld_shlibs=no
 
6250
    cat <<EOF 1>&2
 
6251
 
 
6252
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6253
*** to be unable to reliably create shared libraries on AIX.
 
6254
*** Therefore, libtool is disabling shared libraries support.  If you
 
6255
*** really care for shared libraries, you may want to modify your PATH
 
6256
*** so that a non-GNU linker is found, and then restart.
 
6257
 
 
6258
EOF
 
6259
    ;;
 
6260
 
 
6261
  amigaos*)
 
6262
    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)'
 
6263
    hardcode_libdir_flag_spec='-L$libdir'
 
6264
    hardcode_minus_L=yes
 
6265
 
 
6266
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6267
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
6268
    # to version 4, is to share data among multiple programs linked
 
6269
    # with the same dynamic library.  Since this doesn't match the
 
6270
    # behavior of shared libraries on other platforms, we can use
 
6271
    # them.
 
6272
    ld_shlibs=no
 
6273
    ;;
 
6274
 
 
6275
  beos*)
 
6276
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6277
      allow_undefined_flag=unsupported
 
6278
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6279
      # support --undefined.  This deserves some investigation.  FIXME
 
6280
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6281
    else
 
6282
      ld_shlibs=no
 
6283
    fi
 
6284
    ;;
 
6285
 
 
6286
  cygwin* | mingw* | pw32*)
 
6287
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6288
    # no search path for DLLs.
 
6289
    hardcode_libdir_flag_spec='-L$libdir'
 
6290
    allow_undefined_flag=unsupported
 
6291
    always_export_symbols=yes
 
6292
 
 
6293
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
6294
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
6295
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
6296
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
6297
      else $CC -o impgen impgen.c ; fi)~
 
6298
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
6299
 
 
6300
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
6301
 
 
6302
    # cygwin and mingw dlls have different entry points and sets of symbols
 
6303
    # to exclude.
 
6304
    # FIXME: what about values for MSVC?
 
6305
    dll_entry=__cygwin_dll_entry@12
 
6306
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
6307
    case $host_os in
 
6308
    mingw*)
 
6309
      # mingw values
 
6310
      dll_entry=_DllMainCRTStartup@12
 
6311
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
6312
      ;;
 
6313
    esac
 
6314
 
 
6315
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
6316
    # of the two symbol sets.
 
6317
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
6318
 
 
6319
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
6320
    # can override, but on older systems we have to supply one (in ltdll.c)
 
6321
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
6322
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
6323
      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~
 
6324
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
6325
    else
 
6326
      ltdll_obj=
 
6327
      ltdll_cmds=
 
6328
    fi
 
6329
 
 
6330
    # Extract the symbol export list from an `--export-all' def file,
 
6331
    # then regenerate the def file from the symbol export list, so that
 
6332
    # the compiled dll only exports the symbol export list.
 
6333
    # Be careful not to strip the DATA tag left be newer dlltools.
 
6334
    export_symbols_cmds="$ltdll_cmds"'
 
6335
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
6336
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
6337
 
 
6338
    # If the export-symbols file already is a .def file (1st line
 
6339
    # is EXPORTS), use it as is.
 
6340
    # If DATA tags from a recent dlltool are present, honour them!
 
6341
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
6342
        cp $export_symbols $output_objdir/$soname-def;
 
6343
      else
 
6344
        echo EXPORTS > $output_objdir/$soname-def;
 
6345
        _lt_hint=1;
 
6346
        cat $export_symbols | while read symbol; do
 
6347
         set dummy \$symbol;
 
6348
         case \$# in
 
6349
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
6350
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
6351
         esac;
 
6352
         _lt_hint=`expr 1 + \$_lt_hint`;
 
6353
        done;
 
6354
      fi~
 
6355
      '"$ltdll_cmds"'
 
6356
      $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~
 
6357
      $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~
 
6358
      $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~
 
6359
      $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~
 
6360
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
6361
    ;;
 
6362
 
 
6363
  netbsd*)
 
6364
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6365
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6366
      wlarc=
 
6367
    else
 
6368
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6369
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6370
    fi
 
6371
    ;;
 
6372
 
 
6373
  solaris* | sysv5*)
 
6374
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
6375
      ld_shlibs=no
 
6376
      cat <<EOF 1>&2
 
6377
 
 
6378
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6379
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6380
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6381
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6382
*** your PATH or compiler configuration so that the native linker is
 
6383
*** used, and then restart.
 
6384
 
 
6385
EOF
 
6386
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6387
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6388
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6389
    else
 
6390
      ld_shlibs=no
 
6391
    fi
 
6392
    ;;
 
6393
 
 
6394
  sunos4*)
 
6395
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6396
    wlarc=
 
6397
    hardcode_direct=yes
 
6398
    hardcode_shlibpath_var=no
 
6399
    ;;
 
6400
 
 
6401
  *)
 
6402
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6403
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6404
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6405
    else
 
6406
      ld_shlibs=no
 
6407
    fi
 
6408
    ;;
 
6409
  esac
 
6410
 
 
6411
  if test "$ld_shlibs" = yes; then
 
6412
    runpath_var=LD_RUN_PATH
 
6413
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6414
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6415
    case $host_os in
 
6416
    cygwin* | mingw* | pw32*)
 
6417
      # dlltool doesn't understand --whole-archive et. al.
 
6418
      whole_archive_flag_spec=
 
6419
      ;;
 
6420
    *)
 
6421
      # ancient GNU ld didn't support --whole-archive et. al.
 
6422
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
6423
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6424
      else
 
6425
        whole_archive_flag_spec=
 
6426
      fi
 
6427
      ;;
 
6428
    esac
 
6429
  fi
 
6430
else
 
6431
  # PORTME fill in a description of your system's linker (not GNU ld)
 
6432
  case $host_os in
 
6433
  aix3*)
 
6434
    allow_undefined_flag=unsupported
 
6435
    always_export_symbols=yes
 
6436
    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'
 
6437
    # Note: this linker hardcodes the directories in LIBPATH if there
 
6438
    # are no directories specified by -L.
 
6439
    hardcode_minus_L=yes
 
6440
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6441
      # Neither direct hardcoding nor static linking is supported with a
 
6442
      # broken collect2.
 
6443
      hardcode_direct=unsupported
 
6444
    fi
 
6445
    ;;
 
6446
 
 
6447
  aix4* | aix5*)
 
6448
    # When large executables or shared objects are built, AIX ld can
 
6449
    # have problems creating the table of contents.  If linking a library
 
6450
    # or program results in "error TOC overflow" add -mminimal-toc to
 
6451
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6452
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6453
 
 
6454
    archive_cmds=''
 
6455
    hardcode_libdir_separator=':'
 
6456
    if test "$GCC" = yes; then
 
6457
      collect2name=`${CC} -print-prog-name=collect2`
 
6458
      if test -f "$collect2name" && \
 
6459
         strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6460
      then
 
6461
        # We have reworked collect2
 
6462
        hardcode_direct=yes
 
6463
      else
 
6464
        # We have old collect2
 
6465
        hardcode_direct=unsupported
 
6466
        # It fails to find uninstalled libraries when the uninstalled
 
6467
        # path is not listed in the libpath.  Setting hardcode_minus_L
 
6468
        # to unsupported forces relinking
 
6469
        hardcode_minus_L=yes
 
6470
        hardcode_libdir_flag_spec='-L$libdir'
 
6471
        hardcode_libdir_separator=
 
6472
      fi
 
6473
      shared_flag='-shared'
 
6474
    else
 
6475
      if test "$host_cpu" = ia64; then
 
6476
        shared_flag='-G'
 
6477
      else
 
6478
        shared_flag='${wl}-bM:SRE'
 
6479
      fi
 
6480
      hardcode_direct=yes
 
6481
    fi
 
6482
 
 
6483
    if test "$host_cpu" = ia64; then
 
6484
      # On IA64, the linker does run time linking by default, so we don't
 
6485
      # have to do anything special.
 
6486
      aix_use_runtimelinking=no
 
6487
      exp_sym_flag='-Bexport'
 
6488
      no_entry_flag=""
 
6489
    else
 
6490
      # Test if we are trying to use run time linking, or normal AIX style linking.
 
6491
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
 
6492
      aix_use_runtimelinking=no
 
6493
      for ld_flag in $LDFLAGS; do
 
6494
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
 
6495
          aix_use_runtimelinking=yes
 
6496
          break
 
6497
        fi
 
6498
      done
 
6499
      exp_sym_flag='-bexport'
 
6500
      no_entry_flag='-bnoentry'
 
6501
    fi
 
6502
    # It seems that -bexpall can do strange things, so it is better to
 
6503
    # generate a list of symbols to export.
 
6504
    always_export_symbols=yes
 
6505
    if test "$aix_use_runtimelinking" = yes; then
 
6506
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6507
      allow_undefined_flag=' -Wl,-G'
 
6508
      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6509
    else
 
6510
      if test "$host_cpu" = ia64; then
 
6511
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6512
       allow_undefined_flag="-znodefs"
 
6513
        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 \${wl}$exp_sym_flag:\$export_symbols"
 
6514
      else
 
6515
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6516
        # Warning - without using the other run time loading flags, -berok will
 
6517
        #           link without error, but may produce a broken library.
 
6518
        allow_undefined_flag='${wl}-berok"
 
6519
        # This is a bit strange, but is similar to how AIX traditionally builds
 
6520
        # it's shared libraries.
 
6521
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
6522
      fi
 
6523
    fi
 
6524
    ;;
 
6525
 
 
6526
  amigaos*)
 
6527
    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)'
 
6528
    hardcode_libdir_flag_spec='-L$libdir'
 
6529
    hardcode_minus_L=yes
 
6530
    # see comment about different semantics on the GNU ld section
 
6531
    ld_shlibs=no
 
6532
    ;;
 
6533
 
 
6534
  cygwin* | mingw* | pw32*)
 
6535
    # When not using gcc, we currently assume that we are using
 
6536
    # Microsoft Visual C++.
 
6537
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6538
    # no search path for DLLs.
 
6539
    hardcode_libdir_flag_spec=' '
 
6540
    allow_undefined_flag=unsupported
 
6541
    # Tell ltmain to make .lib files, not .a files.
 
6542
    libext=lib
 
6543
    # FIXME: Setting linknames here is a bad hack.
 
6544
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6545
    # The linker will automatically build a .lib file if we build a DLL.
 
6546
    old_archive_from_new_cmds='true'
 
6547
    # FIXME: Should let the user specify the lib program.
 
6548
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6549
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6550
    ;;
 
6551
 
 
6552
  darwin* | rhapsody*)
 
6553
    allow_undefined_flag='-undefined suppress'
 
6554
    # FIXME: Relying on posixy $() will cause problems for
 
6555
    #        cross-compilation, but unfortunately the echo tests do not
 
6556
    #        yet detect zsh echo's removal of \ escapes.
 
6557
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
 
6558
    # We need to add '_' to the symbols in $export_symbols first
 
6559
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
6560
    hardcode_direct=yes
 
6561
    hardcode_shlibpath_var=no
 
6562
    whole_archive_flag_spec='-all_load $convenience'
 
6563
    ;;
 
6564
 
 
6565
  freebsd1*)
 
6566
    ld_shlibs=no
 
6567
    ;;
 
6568
 
 
6569
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6570
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6571
  # does not break anything, and helps significantly (at the cost of a little
 
6572
  # extra space).
 
6573
  freebsd2.2*)
 
6574
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6575
    hardcode_libdir_flag_spec='-R$libdir'
 
6576
    hardcode_direct=yes
 
6577
    hardcode_shlibpath_var=no
 
6578
    ;;
 
6579
 
 
6580
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6581
  freebsd2*)
 
6582
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6583
    hardcode_direct=yes
 
6584
    hardcode_minus_L=yes
 
6585
    hardcode_shlibpath_var=no
 
6586
    ;;
 
6587
 
 
6588
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6589
  freebsd*)
 
6590
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6591
    hardcode_libdir_flag_spec='-R$libdir'
 
6592
    hardcode_direct=yes
 
6593
    hardcode_shlibpath_var=no
 
6594
    ;;
 
6595
 
 
6596
  hpux9* | hpux10* | hpux11*)
 
6597
    case $host_os in
 
6598
    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' ;;
 
6599
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
6600
    esac
 
6601
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6602
    hardcode_libdir_separator=:
 
6603
    hardcode_direct=yes
 
6604
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
6605
                         # location of the library.
 
6606
    export_dynamic_flag_spec='${wl}-E'
 
6607
    ;;
 
6608
 
 
6609
  irix5* | irix6*)
 
6610
    if test "$GCC" = yes; then
 
6611
      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'
 
6612
    else
 
6613
      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'
 
6614
    fi
 
6615
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6616
    hardcode_libdir_separator=:
 
6617
    link_all_deplibs=yes
 
6618
    ;;
 
6619
 
 
6620
  netbsd*)
 
6621
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6622
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6623
    else
 
6624
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6625
    fi
 
6626
    hardcode_libdir_flag_spec='-R$libdir'
 
6627
    hardcode_direct=yes
 
6628
    hardcode_shlibpath_var=no
 
6629
    ;;
 
6630
 
 
6631
  newsos6)
 
6632
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 
6633
    hardcode_direct=yes
 
6634
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6635
    hardcode_libdir_separator=:
 
6636
    hardcode_shlibpath_var=no
 
6637
    ;;
 
6638
 
 
6639
  openbsd*)
 
6640
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6641
    hardcode_libdir_flag_spec='-R$libdir'
 
6642
    hardcode_direct=yes
 
6643
    hardcode_shlibpath_var=no
 
6644
    ;;
 
6645
 
 
6646
  os2*)
 
6647
    hardcode_libdir_flag_spec='-L$libdir'
 
6648
    hardcode_minus_L=yes
 
6649
    allow_undefined_flag=unsupported
 
6650
    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'
 
6651
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6652
    ;;
 
6653
 
 
6654
  osf3*)
 
6655
    if test "$GCC" = yes; then
 
6656
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6657
      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'
 
6658
    else
 
6659
      allow_undefined_flag=' -expect_unresolved \*'
 
6660
      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'
 
6661
    fi
 
6662
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6663
    hardcode_libdir_separator=:
 
6664
    ;;
 
6665
 
 
6666
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
6667
    if test "$GCC" = yes; then
 
6668
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6669
      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'
 
6670
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6671
    else
 
6672
      allow_undefined_flag=' -expect_unresolved \*'
 
6673
      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'
 
6674
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6675
      $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'
 
6676
 
 
6677
      #Both c and cxx compiler support -rpath directly
 
6678
      hardcode_libdir_flag_spec='-rpath $libdir'
 
6679
    fi
 
6680
    hardcode_libdir_separator=:
 
6681
    ;;
 
6682
 
 
6683
  sco3.2v5*)
 
6684
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6685
    hardcode_shlibpath_var=no
 
6686
    runpath_var=LD_RUN_PATH
 
6687
    hardcode_runpath_var=yes
 
6688
    ;;
 
6689
 
 
6690
  solaris*)
 
6691
    no_undefined_flag=' -z defs'
 
6692
    # $CC -shared without GNU ld will not create a library from C++
 
6693
    # object files and a static libstdc++, better avoid it by now
 
6694
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6695
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6696
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6697
    hardcode_libdir_flag_spec='-R$libdir'
 
6698
    hardcode_shlibpath_var=no
 
6699
    case $host_os in
 
6700
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6701
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6702
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6703
    esac
 
6704
    link_all_deplibs=yes
 
6705
    ;;
 
6706
 
 
6707
  sunos4*)
 
6708
    if test "x$host_vendor" = xsequent; then
 
6709
      # Use $CC to link under sequent, because it throws in some extra .o
 
6710
      # files that make .init and .fini sections work.
 
6711
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6712
    else
 
6713
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6714
    fi
 
6715
    hardcode_libdir_flag_spec='-L$libdir'
 
6716
    hardcode_direct=yes
 
6717
    hardcode_minus_L=yes
 
6718
    hardcode_shlibpath_var=no
 
6719
    ;;
 
6720
 
 
6721
  sysv4)
 
6722
    if test "x$host_vendor" = xsno; then
 
6723
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
 
6724
      hardcode_direct=yes # is this really true???
 
6725
    else
 
6726
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6727
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6728
    fi
 
6729
    runpath_var='LD_RUN_PATH'
 
6730
    hardcode_shlibpath_var=no
 
6731
    ;;
 
6732
 
 
6733
  sysv4.3*)
 
6734
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6735
    hardcode_shlibpath_var=no
 
6736
    export_dynamic_flag_spec='-Bexport'
 
6737
    ;;
 
6738
 
 
6739
  sysv5*)
 
6740
    no_undefined_flag=' -z text'
 
6741
    # $CC -shared without GNU ld will not create a library from C++
 
6742
    # object files and a static libstdc++, better avoid it by now
 
6743
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6744
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6745
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6746
    hardcode_libdir_flag_spec=
 
6747
    hardcode_shlibpath_var=no
 
6748
    runpath_var='LD_RUN_PATH'
 
6749
    ;;
 
6750
 
 
6751
  uts4*)
 
6752
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6753
    hardcode_libdir_flag_spec='-L$libdir'
 
6754
    hardcode_shlibpath_var=no
 
6755
    ;;
 
6756
 
 
6757
  dgux*)
 
6758
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6759
    hardcode_libdir_flag_spec='-L$libdir'
 
6760
    hardcode_shlibpath_var=no
 
6761
    ;;
 
6762
 
 
6763
  sysv4*MP*)
 
6764
    if test -d /usr/nec; then
 
6765
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6766
      hardcode_shlibpath_var=no
 
6767
      runpath_var=LD_RUN_PATH
 
6768
      hardcode_runpath_var=yes
 
6769
      ld_shlibs=yes
 
6770
    fi
 
6771
    ;;
 
6772
 
 
6773
  sysv4.2uw2*)
 
6774
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6775
    hardcode_direct=yes
 
6776
    hardcode_minus_L=no
 
6777
    hardcode_shlibpath_var=no
 
6778
    hardcode_runpath_var=yes
 
6779
    runpath_var=LD_RUN_PATH
 
6780
    ;;
 
6781
 
 
6782
  sysv5uw7* | unixware7*)
 
6783
    no_undefined_flag='${wl}-z ${wl}text'
 
6784
    if test "$GCC" = yes; then
 
6785
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6786
    else
 
6787
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6788
    fi
 
6789
    runpath_var='LD_RUN_PATH'
 
6790
    hardcode_shlibpath_var=no
 
6791
    ;;
 
6792
 
 
6793
  *)
 
6794
    ld_shlibs=no
 
6795
    ;;
 
6796
  esac
 
6797
fi
 
6798
echo "$as_me:6798: result: $ld_shlibs" >&5
 
6799
echo "${ECHO_T}$ld_shlibs" >&6
 
6800
test "$ld_shlibs" = no && can_build_shared=no
 
6801
##
 
6802
## END FIXME
 
6803
 
 
6804
## FIXME: this should be a separate macro
 
6805
##
 
6806
# Check hardcoding attributes.
 
6807
echo "$as_me:6807: checking how to hardcode library paths into programs" >&5
 
6808
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6809
hardcode_action=
 
6810
if test -n "$hardcode_libdir_flag_spec" || \
 
6811
   test -n "$runpath_var"; then
 
6812
 
 
6813
  # We can hardcode non-existant directories.
 
6814
  if test "$hardcode_direct" != no &&
 
6815
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
6816
     # have to relink, otherwise we might link with an installed library
 
6817
     # when we should be linking with a yet-to-be-installed one
 
6818
     ## test "$hardcode_shlibpath_var" != no &&
 
6819
     test "$hardcode_minus_L" != no; then
 
6820
    # Linking always hardcodes the temporary library directory.
 
6821
    hardcode_action=relink
 
6822
  else
 
6823
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
6824
    hardcode_action=immediate
 
6825
  fi
 
6826
else
 
6827
  # We cannot hardcode anything, or else we can only hardcode existing
 
6828
  # directories.
 
6829
  hardcode_action=unsupported
 
6830
fi
 
6831
echo "$as_me:6831: result: $hardcode_action" >&5
 
6832
echo "${ECHO_T}$hardcode_action" >&6
 
6833
##
 
6834
## END FIXME
 
6835
 
 
6836
## FIXME: this should be a separate macro
 
6837
##
 
6838
striplib=
 
6839
old_striplib=
 
6840
echo "$as_me:6840: checking whether stripping libraries is possible" >&5
 
6841
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6842
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6843
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6844
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6845
  echo "$as_me:6845: result: yes" >&5
 
6846
echo "${ECHO_T}yes" >&6
 
6847
else
 
6848
  echo "$as_me:6848: result: no" >&5
 
6849
echo "${ECHO_T}no" >&6
 
6850
fi
 
6851
##
 
6852
## END FIXME
 
6853
 
 
6854
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6855
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6856
 
 
6857
## FIXME: this should be a separate macro
 
6858
##
 
6859
# PORTME Fill in your ld.so characteristics
 
6860
echo "$as_me:6860: checking dynamic linker characteristics" >&5
 
6861
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6862
library_names_spec=
 
6863
libname_spec='lib$name'
 
6864
soname_spec=
 
6865
postinstall_cmds=
 
6866
postuninstall_cmds=
 
6867
finish_cmds=
 
6868
finish_eval=
 
6869
shlibpath_var=
 
6870
shlibpath_overrides_runpath=unknown
 
6871
version_type=none
 
6872
dynamic_linker="$host_os ld.so"
 
6873
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6874
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6875
 
 
6876
case $host_os in
 
6877
aix3*)
 
6878
  version_type=linux
 
6879
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
6880
  shlibpath_var=LIBPATH
 
6881
 
 
6882
  # AIX has no versioning support, so we append a major version to the name.
 
6883
  soname_spec='${libname}${release}.so$major'
 
6884
  ;;
 
6885
 
 
6886
aix4* | aix5*)
 
6887
  version_type=linux
 
6888
  if test "$host_cpu" = ia64; then
 
6889
    # AIX 5 supports IA64
 
6890
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
6891
    shlibpath_var=LD_LIBRARY_PATH
 
6892
  else
 
6893
    # With GCC up to 2.95.x, collect2 would create an import file
 
6894
    # for dependence libraries.  The import file would start with
 
6895
    # the line `#! .'.  This would cause the generated library to
 
6896
    # depend on `.', always an invalid library.  This was fixed in
 
6897
    # development snapshots of GCC prior to 3.0.
 
6898
    case $host_os in
 
6899
       aix4 | aix4.[01] | aix4.[01].*)
 
6900
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6901
           echo ' yes '
 
6902
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6903
        :
 
6904
      else
 
6905
        can_build_shared=no
 
6906
      fi
 
6907
      ;;
 
6908
    esac
 
6909
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
6910
    # soname into executable. Probably we can add versioning support to
 
6911
    # collect2, so additional links can be useful in future.
 
6912
    if test "$aix_use_runtimelinking" = yes; then
 
6913
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
 
6914
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
 
6915
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6916
    else
 
6917
      # We preserve .a as extension for shared libraries through AIX4.2
 
6918
      # and later when we are not doing run time linking.
 
6919
      library_names_spec='${libname}${release}.a $libname.a'
 
6920
      soname_spec='${libname}${release}.so$major'
 
6921
    fi
 
6922
    shlibpath_var=LIBPATH
 
6923
    deplibs_check_method=pass_all
 
6924
  fi
 
6925
  ;;
 
6926
 
 
6927
amigaos*)
 
6928
  library_names_spec='$libname.ixlibrary $libname.a'
 
6929
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6930
  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'
 
6931
  ;;
 
6932
 
 
6933
beos*)
 
6934
  library_names_spec='${libname}.so'
 
6935
  dynamic_linker="$host_os ld.so"
 
6936
  shlibpath_var=LIBRARY_PATH
 
6937
  ;;
 
6938
 
 
6939
bsdi4*)
 
6940
  version_type=linux
 
6941
  need_version=no
 
6942
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6943
  soname_spec='${libname}${release}.so$major'
 
6944
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6945
  shlibpath_var=LD_LIBRARY_PATH
 
6946
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6947
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6948
  export_dynamic_flag_spec=-rdynamic
 
6949
  # the default ld.so.conf also contains /usr/contrib/lib and
 
6950
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6951
  # libtool to hard-code these into programs
 
6952
  ;;
 
6953
 
 
6954
cygwin* | mingw* | pw32*)
 
6955
  version_type=windows
 
6956
  need_version=no
 
6957
  need_lib_prefix=no
 
6958
  case $GCC,$host_os in
 
6959
  yes,cygwin*)
 
6960
    library_names_spec='$libname.dll.a'
 
6961
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6962
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
6963
      dldir=$destdir/`dirname \$dlpath`~
 
6964
      test -d \$dldir || mkdir -p \$dldir~
 
6965
      $install_prog .libs/$dlname \$dldir/$dlname'
 
6966
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
6967
      dlpath=$dir/\$dldll~
 
6968
       $rm \$dlpath'
 
6969
    ;;
 
6970
  yes,mingw*)
 
6971
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6972
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
6973
    ;;
 
6974
  yes,pw32*)
 
6975
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
6976
    ;;
 
6977
  *)
 
6978
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
6979
    ;;
 
6980
  esac
 
6981
  dynamic_linker='Win32 ld.exe'
 
6982
  # FIXME: first we should search . and the directory the executable is in
 
6983
  shlibpath_var=PATH
 
6984
  ;;
 
6985
 
 
6986
darwin* | rhapsody*)
 
6987
  dynamic_linker="$host_os dyld"
 
6988
  version_type=darwin
 
6989
  need_lib_prefix=no
 
6990
  need_version=no
 
6991
  # FIXME: Relying on posixy $() will cause problems for
 
6992
  #        cross-compilation, but unfortunately the echo tests do not
 
6993
  #        yet detect zsh echo's removal of \ escapes.
 
6994
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
6995
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6996
  shlibpath_overrides_runpath=yes
 
6997
  shlibpath_var=DYLD_LIBRARY_PATH
 
6998
  ;;
 
6999
 
 
7000
freebsd1*)
 
7001
  dynamic_linker=no
 
7002
  ;;
 
7003
 
 
7004
freebsd*)
 
7005
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7006
  version_type=freebsd-$objformat
 
7007
  case $version_type in
 
7008
    freebsd-elf*)
 
7009
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
7010
      need_version=no
 
7011
      need_lib_prefix=no
 
7012
      ;;
 
7013
    freebsd-*)
 
7014
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
7015
      need_version=yes
 
7016
      ;;
 
7017
  esac
 
7018
  shlibpath_var=LD_LIBRARY_PATH
 
7019
  case $host_os in
 
7020
  freebsd2*)
 
7021
    shlibpath_overrides_runpath=yes
 
7022
    ;;
 
7023
  *)
 
7024
    shlibpath_overrides_runpath=no
 
7025
    hardcode_into_libs=yes
 
7026
    ;;
 
7027
  esac
 
7028
  ;;
 
7029
 
 
7030
gnu*)
 
7031
  version_type=linux
 
7032
  need_lib_prefix=no
 
7033
  need_version=no
 
7034
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
7035
  soname_spec='${libname}${release}.so$major'
 
7036
  shlibpath_var=LD_LIBRARY_PATH
 
7037
  hardcode_into_libs=yes
 
7038
  ;;
 
7039
 
 
7040
hpux9* | hpux10* | hpux11*)
 
7041
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7042
  # link against other versions.
 
7043
  dynamic_linker="$host_os dld.sl"
 
7044
  version_type=sunos
 
7045
  need_lib_prefix=no
 
7046
  need_version=no
 
7047
  shlibpath_var=SHLIB_PATH
 
7048
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7049
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
7050
  soname_spec='${libname}${release}.sl$major'
 
7051
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7052
  postinstall_cmds='chmod 555 $lib'
 
7053
  ;;
 
7054
 
 
7055
irix5* | irix6*)
 
7056
  version_type=irix
 
7057
  need_lib_prefix=no
 
7058
  need_version=no
 
7059
  soname_spec='${libname}${release}.so$major'
 
7060
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
7061
  case $host_os in
 
7062
  irix5*)
 
7063
    libsuff= shlibsuff=
 
7064
    ;;
 
7065
  *)
 
7066
    case $LD in # libtool.m4 will add one of these switches to LD
 
7067
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
7068
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7069
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7070
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7071
    esac
 
7072
    ;;
 
7073
  esac
 
7074
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7075
  shlibpath_overrides_runpath=no
 
7076
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7077
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7078
  ;;
 
7079
 
 
7080
# No shared lib support for Linux oldld, aout, or coff.
 
7081
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
7082
  dynamic_linker=no
 
7083
  ;;
 
7084
 
 
7085
# This must be Linux ELF.
 
7086
linux-gnu*)
 
7087
  version_type=linux
 
7088
  need_lib_prefix=no
 
7089
  need_version=no
 
7090
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7091
  soname_spec='${libname}${release}.so$major'
 
7092
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7093
  shlibpath_var=LD_LIBRARY_PATH
 
7094
  shlibpath_overrides_runpath=no
 
7095
  # This implies no fast_install, which is unacceptable.
 
7096
  # Some rework will be needed to allow for fast_install
 
7097
  # before this can be enabled.
 
7098
  hardcode_into_libs=yes
 
7099
 
 
7100
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7101
  # powerpc, because MkLinux only supported shared libraries with the
 
7102
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7103
  # most powerpc-linux boxes support dynamic linking these days and
 
7104
  # people can always --disable-shared, the test was removed, and we
 
7105
  # assume the GNU/Linux dynamic linker is in use.
 
7106
  dynamic_linker='GNU/Linux ld.so'
 
7107
  ;;
 
7108
 
 
7109
netbsd*)
 
7110
  version_type=sunos
 
7111
  need_lib_prefix=no
 
7112
  need_version=no
 
7113
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7114
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7115
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7116
    dynamic_linker='NetBSD (a.out) ld.so'
 
7117
  else
 
7118
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
7119
    soname_spec='${libname}${release}.so$major'
 
7120
    dynamic_linker='NetBSD ld.elf_so'
 
7121
  fi
 
7122
  shlibpath_var=LD_LIBRARY_PATH
 
7123
  shlibpath_overrides_runpath=yes
 
7124
  hardcode_into_libs=yes
 
7125
  ;;
 
7126
 
 
7127
newsos6)
 
7128
  version_type=linux
 
7129
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7130
  shlibpath_var=LD_LIBRARY_PATH
 
7131
  shlibpath_overrides_runpath=yes
 
7132
  ;;
 
7133
 
 
7134
openbsd*)
 
7135
  version_type=sunos
 
7136
  if test "$with_gnu_ld" = yes; then
 
7137
    need_lib_prefix=no
 
7138
    need_version=no
 
7139
  fi
 
7140
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7141
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7142
  shlibpath_var=LD_LIBRARY_PATH
 
7143
  ;;
 
7144
 
 
7145
os2*)
 
7146
  libname_spec='$name'
 
7147
  need_lib_prefix=no
 
7148
  library_names_spec='$libname.dll $libname.a'
 
7149
  dynamic_linker='OS/2 ld.exe'
 
7150
  shlibpath_var=LIBPATH
 
7151
  ;;
 
7152
 
 
7153
osf3* | osf4* | osf5*)
 
7154
  version_type=osf
 
7155
  need_version=no
 
7156
  soname_spec='${libname}${release}.so'
 
7157
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
7158
  shlibpath_var=LD_LIBRARY_PATH
 
7159
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7160
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7161
  ;;
 
7162
 
 
7163
sco3.2v5*)
 
7164
  version_type=osf
 
7165
  soname_spec='${libname}${release}.so$major'
 
7166
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7167
  shlibpath_var=LD_LIBRARY_PATH
 
7168
  ;;
 
7169
 
 
7170
solaris*)
 
7171
  version_type=linux
 
7172
  need_lib_prefix=no
 
7173
  need_version=no
 
7174
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7175
  soname_spec='${libname}${release}.so$major'
 
7176
  shlibpath_var=LD_LIBRARY_PATH
 
7177
  shlibpath_overrides_runpath=yes
 
7178
  hardcode_into_libs=yes
 
7179
  # ldd complains unless libraries are executable
 
7180
  postinstall_cmds='chmod +x $lib'
 
7181
  ;;
 
7182
 
 
7183
sunos4*)
 
7184
  version_type=sunos
 
7185
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7186
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7187
  shlibpath_var=LD_LIBRARY_PATH
 
7188
  shlibpath_overrides_runpath=yes
 
7189
  if test "$with_gnu_ld" = yes; then
 
7190
    need_lib_prefix=no
 
7191
  fi
 
7192
  need_version=yes
 
7193
  ;;
 
7194
 
 
7195
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7196
  version_type=linux
 
7197
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7198
  soname_spec='${libname}${release}.so$major'
 
7199
  shlibpath_var=LD_LIBRARY_PATH
 
7200
  case $host_vendor in
 
7201
    sni)
 
7202
      shlibpath_overrides_runpath=no
 
7203
      ;;
 
7204
    motorola)
 
7205
      need_lib_prefix=no
 
7206
      need_version=no
 
7207
      shlibpath_overrides_runpath=no
 
7208
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7209
      ;;
 
7210
  esac
 
7211
  ;;
 
7212
 
 
7213
uts4*)
 
7214
  version_type=linux
 
7215
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7216
  soname_spec='${libname}${release}.so$major'
 
7217
  shlibpath_var=LD_LIBRARY_PATH
 
7218
  ;;
 
7219
 
 
7220
dgux*)
 
7221
  version_type=linux
 
7222
  need_lib_prefix=no
 
7223
  need_version=no
 
7224
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7225
  soname_spec='${libname}${release}.so$major'
 
7226
  shlibpath_var=LD_LIBRARY_PATH
 
7227
  ;;
 
7228
 
 
7229
sysv4*MP*)
 
7230
  if test -d /usr/nec ;then
 
7231
    version_type=linux
 
7232
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
7233
    soname_spec='$libname.so.$major'
 
7234
    shlibpath_var=LD_LIBRARY_PATH
 
7235
  fi
 
7236
  ;;
 
7237
 
 
7238
#### local change for Sleepycat DB:
 
7239
# Add in the QNX support from QNX.
 
7240
nto-qnx)
 
7241
  version_type=linux
 
7242
  need_lib_prefix=no
 
7243
  need_version=no
 
7244
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7245
  soname_spec='${libname}${release}.so$major'
 
7246
  shlibpath_var=LD_LIBRARY_PATH
 
7247
  shlibpath_overrides_runpath=yes
 
7248
  ;;
 
7249
 
 
7250
*)
 
7251
  dynamic_linker=no
 
7252
  ;;
 
7253
esac
 
7254
echo "$as_me:7254: result: $dynamic_linker" >&5
 
7255
echo "${ECHO_T}$dynamic_linker" >&6
 
7256
test "$dynamic_linker" = no && can_build_shared=no
 
7257
##
 
7258
## END FIXME
 
7259
 
 
7260
## FIXME: this should be a separate macro
 
7261
##
 
7262
# Report the final consequences.
 
7263
echo "$as_me:7263: checking if libtool supports shared libraries" >&5
 
7264
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
7265
echo "$as_me:7265: result: $can_build_shared" >&5
 
7266
echo "${ECHO_T}$can_build_shared" >&6
 
7267
##
 
7268
## END FIXME
 
7269
 
 
7270
if test "$hardcode_action" = relink; then
 
7271
  # Fast installation is not supported
 
7272
  enable_fast_install=no
 
7273
elif test "$shlibpath_overrides_runpath" = yes ||
 
7274
     test "$enable_shared" = no; then
 
7275
  # Fast installation is not necessary
 
7276
  enable_fast_install=needless
 
7277
fi
 
7278
 
 
7279
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7280
if test "$GCC" = yes; then
 
7281
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7282
fi
 
7283
 
 
7284
if test "x$enable_dlopen" != xyes; then
 
7285
  enable_dlopen=unknown
 
7286
  enable_dlopen_self=unknown
 
7287
  enable_dlopen_self_static=unknown
 
7288
else
 
7289
  lt_cv_dlopen=no
 
7290
  lt_cv_dlopen_libs=
 
7291
 
 
7292
  case $host_os in
 
7293
  beos*)
 
7294
    lt_cv_dlopen="load_add_on"
 
7295
    lt_cv_dlopen_libs=
 
7296
    lt_cv_dlopen_self=yes
 
7297
    ;;
 
7298
 
 
7299
  cygwin* | mingw* | pw32*)
 
7300
    lt_cv_dlopen="LoadLibrary"
 
7301
    lt_cv_dlopen_libs=
 
7302
   ;;
 
7303
 
 
7304
  *)
 
7305
    echo "$as_me:7305: checking for dlopen in -ldl" >&5
 
7306
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7307
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7309
else
 
7310
  ac_check_lib_save_LIBS=$LIBS
 
7311
LIBS="-ldl  $LIBS"
 
7312
cat >conftest.$ac_ext <<_ACEOF
 
7313
#line 7313 "configure"
 
7314
#include "confdefs.h"
 
7315
 
 
7316
/* Override any gcc2 internal prototype to avoid an error.  */
 
7317
#ifdef __cplusplus
 
7318
extern "C"
 
7319
#endif
 
7320
/* We use char because int might match the return type of a gcc2
 
7321
   builtin and then its argument prototype would still apply.  */
 
7322
char dlopen ();
 
7323
int
 
7324
main ()
 
7325
{
 
7326
dlopen ();
 
7327
  ;
 
7328
  return 0;
 
7329
}
 
7330
_ACEOF
 
7331
rm -f conftest.$ac_objext conftest$ac_exeext
 
7332
if { (eval echo "$as_me:7332: \"$ac_link\"") >&5
 
7333
  (eval $ac_link) 2>&5
 
7334
  ac_status=$?
 
7335
  echo "$as_me:7335: \$? = $ac_status" >&5
 
7336
  (exit $ac_status); } &&
 
7337
         { ac_try='test -s conftest$ac_exeext'
 
7338
  { (eval echo "$as_me:7338: \"$ac_try\"") >&5
 
7339
  (eval $ac_try) 2>&5
 
7340
  ac_status=$?
 
7341
  echo "$as_me:7341: \$? = $ac_status" >&5
 
7342
  (exit $ac_status); }; }; then
 
7343
  ac_cv_lib_dl_dlopen=yes
 
7344
else
 
7345
  echo "$as_me: failed program was:" >&5
 
7346
cat conftest.$ac_ext >&5
 
7347
ac_cv_lib_dl_dlopen=no
 
7348
fi
 
7349
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7350
LIBS=$ac_check_lib_save_LIBS
 
7351
fi
 
7352
echo "$as_me:7352: result: $ac_cv_lib_dl_dlopen" >&5
 
7353
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7354
if test $ac_cv_lib_dl_dlopen = yes; then
 
7355
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7356
else
 
7357
  echo "$as_me:7357: checking for dlopen" >&5
 
7358
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7359
if test "${ac_cv_func_dlopen+set}" = set; then
 
7360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7361
else
 
7362
  cat >conftest.$ac_ext <<_ACEOF
 
7363
#line 7363 "configure"
 
7364
#include "confdefs.h"
 
7365
/* System header to define __stub macros and hopefully few prototypes,
 
7366
    which can conflict with char dlopen (); below.  */
 
7367
#include <assert.h>
 
7368
/* Override any gcc2 internal prototype to avoid an error.  */
 
7369
#ifdef __cplusplus
 
7370
extern "C"
 
7371
#endif
 
7372
/* We use char because int might match the return type of a gcc2
 
7373
   builtin and then its argument prototype would still apply.  */
 
7374
char dlopen ();
 
7375
char (*f) ();
 
7376
 
 
7377
int
 
7378
main ()
 
7379
{
 
7380
/* The GNU C library defines this for functions which it implements
 
7381
    to always fail with ENOSYS.  Some functions are actually named
 
7382
    something starting with __ and the normal name is an alias.  */
 
7383
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
7384
choke me
 
7385
#else
 
7386
f = dlopen;
 
7387
#endif
 
7388
 
 
7389
  ;
 
7390
  return 0;
 
7391
}
 
7392
_ACEOF
 
7393
rm -f conftest.$ac_objext conftest$ac_exeext
 
7394
if { (eval echo "$as_me:7394: \"$ac_link\"") >&5
 
7395
  (eval $ac_link) 2>&5
 
7396
  ac_status=$?
 
7397
  echo "$as_me:7397: \$? = $ac_status" >&5
 
7398
  (exit $ac_status); } &&
 
7399
         { ac_try='test -s conftest$ac_exeext'
 
7400
  { (eval echo "$as_me:7400: \"$ac_try\"") >&5
 
7401
  (eval $ac_try) 2>&5
 
7402
  ac_status=$?
 
7403
  echo "$as_me:7403: \$? = $ac_status" >&5
 
7404
  (exit $ac_status); }; }; then
 
7405
  ac_cv_func_dlopen=yes
 
7406
else
 
7407
  echo "$as_me: failed program was:" >&5
 
7408
cat conftest.$ac_ext >&5
 
7409
ac_cv_func_dlopen=no
 
7410
fi
 
7411
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7412
fi
 
7413
echo "$as_me:7413: result: $ac_cv_func_dlopen" >&5
 
7414
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7415
if test $ac_cv_func_dlopen = yes; then
 
7416
  lt_cv_dlopen="dlopen"
 
7417
else
 
7418
  echo "$as_me:7418: checking for shl_load" >&5
 
7419
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7420
if test "${ac_cv_func_shl_load+set}" = set; then
 
7421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7422
else
 
7423
  cat >conftest.$ac_ext <<_ACEOF
 
7424
#line 7424 "configure"
 
7425
#include "confdefs.h"
 
7426
/* System header to define __stub macros and hopefully few prototypes,
 
7427
    which can conflict with char shl_load (); below.  */
 
7428
#include <assert.h>
 
7429
/* Override any gcc2 internal prototype to avoid an error.  */
 
7430
#ifdef __cplusplus
 
7431
extern "C"
 
7432
#endif
 
7433
/* We use char because int might match the return type of a gcc2
 
7434
   builtin and then its argument prototype would still apply.  */
 
7435
char shl_load ();
 
7436
char (*f) ();
 
7437
 
 
7438
int
 
7439
main ()
 
7440
{
 
7441
/* The GNU C library defines this for functions which it implements
 
7442
    to always fail with ENOSYS.  Some functions are actually named
 
7443
    something starting with __ and the normal name is an alias.  */
 
7444
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7445
choke me
 
7446
#else
 
7447
f = shl_load;
 
7448
#endif
 
7449
 
 
7450
  ;
 
7451
  return 0;
 
7452
}
 
7453
_ACEOF
 
7454
rm -f conftest.$ac_objext conftest$ac_exeext
 
7455
if { (eval echo "$as_me:7455: \"$ac_link\"") >&5
 
7456
  (eval $ac_link) 2>&5
 
7457
  ac_status=$?
 
7458
  echo "$as_me:7458: \$? = $ac_status" >&5
 
7459
  (exit $ac_status); } &&
 
7460
         { ac_try='test -s conftest$ac_exeext'
 
7461
  { (eval echo "$as_me:7461: \"$ac_try\"") >&5
 
7462
  (eval $ac_try) 2>&5
 
7463
  ac_status=$?
 
7464
  echo "$as_me:7464: \$? = $ac_status" >&5
 
7465
  (exit $ac_status); }; }; then
 
7466
  ac_cv_func_shl_load=yes
 
7467
else
 
7468
  echo "$as_me: failed program was:" >&5
 
7469
cat conftest.$ac_ext >&5
 
7470
ac_cv_func_shl_load=no
 
7471
fi
 
7472
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7473
fi
 
7474
echo "$as_me:7474: result: $ac_cv_func_shl_load" >&5
 
7475
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7476
if test $ac_cv_func_shl_load = yes; then
 
7477
  lt_cv_dlopen="shl_load"
 
7478
else
 
7479
  echo "$as_me:7479: checking for dlopen in -lsvld" >&5
 
7480
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
7481
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
7482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7483
else
 
7484
  ac_check_lib_save_LIBS=$LIBS
 
7485
LIBS="-lsvld  $LIBS"
 
7486
cat >conftest.$ac_ext <<_ACEOF
 
7487
#line 7487 "configure"
 
7488
#include "confdefs.h"
 
7489
 
 
7490
/* Override any gcc2 internal prototype to avoid an error.  */
 
7491
#ifdef __cplusplus
 
7492
extern "C"
 
7493
#endif
 
7494
/* We use char because int might match the return type of a gcc2
 
7495
   builtin and then its argument prototype would still apply.  */
 
7496
char dlopen ();
 
7497
int
 
7498
main ()
 
7499
{
 
7500
dlopen ();
 
7501
  ;
 
7502
  return 0;
 
7503
}
 
7504
_ACEOF
 
7505
rm -f conftest.$ac_objext conftest$ac_exeext
 
7506
if { (eval echo "$as_me:7506: \"$ac_link\"") >&5
 
7507
  (eval $ac_link) 2>&5
 
7508
  ac_status=$?
 
7509
  echo "$as_me:7509: \$? = $ac_status" >&5
 
7510
  (exit $ac_status); } &&
 
7511
         { ac_try='test -s conftest$ac_exeext'
 
7512
  { (eval echo "$as_me:7512: \"$ac_try\"") >&5
 
7513
  (eval $ac_try) 2>&5
 
7514
  ac_status=$?
 
7515
  echo "$as_me:7515: \$? = $ac_status" >&5
 
7516
  (exit $ac_status); }; }; then
 
7517
  ac_cv_lib_svld_dlopen=yes
 
7518
else
 
7519
  echo "$as_me: failed program was:" >&5
 
7520
cat conftest.$ac_ext >&5
 
7521
ac_cv_lib_svld_dlopen=no
 
7522
fi
 
7523
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7524
LIBS=$ac_check_lib_save_LIBS
 
7525
fi
 
7526
echo "$as_me:7526: result: $ac_cv_lib_svld_dlopen" >&5
 
7527
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
7528
if test $ac_cv_lib_svld_dlopen = yes; then
 
7529
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
7530
else
 
7531
  echo "$as_me:7531: checking for shl_load in -ldld" >&5
 
7532
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7533
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7535
else
 
7536
  ac_check_lib_save_LIBS=$LIBS
 
7537
LIBS="-ldld  $LIBS"
 
7538
cat >conftest.$ac_ext <<_ACEOF
 
7539
#line 7539 "configure"
 
7540
#include "confdefs.h"
 
7541
 
 
7542
/* Override any gcc2 internal prototype to avoid an error.  */
 
7543
#ifdef __cplusplus
 
7544
extern "C"
 
7545
#endif
 
7546
/* We use char because int might match the return type of a gcc2
 
7547
   builtin and then its argument prototype would still apply.  */
 
7548
char shl_load ();
 
7549
int
 
7550
main ()
 
7551
{
 
7552
shl_load ();
 
7553
  ;
 
7554
  return 0;
 
7555
}
 
7556
_ACEOF
 
7557
rm -f conftest.$ac_objext conftest$ac_exeext
 
7558
if { (eval echo "$as_me:7558: \"$ac_link\"") >&5
 
7559
  (eval $ac_link) 2>&5
 
7560
  ac_status=$?
 
7561
  echo "$as_me:7561: \$? = $ac_status" >&5
 
7562
  (exit $ac_status); } &&
 
7563
         { ac_try='test -s conftest$ac_exeext'
 
7564
  { (eval echo "$as_me:7564: \"$ac_try\"") >&5
 
7565
  (eval $ac_try) 2>&5
 
7566
  ac_status=$?
 
7567
  echo "$as_me:7567: \$? = $ac_status" >&5
 
7568
  (exit $ac_status); }; }; then
 
7569
  ac_cv_lib_dld_shl_load=yes
 
7570
else
 
7571
  echo "$as_me: failed program was:" >&5
 
7572
cat conftest.$ac_ext >&5
 
7573
ac_cv_lib_dld_shl_load=no
 
7574
fi
 
7575
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7576
LIBS=$ac_check_lib_save_LIBS
 
7577
fi
 
7578
echo "$as_me:7578: result: $ac_cv_lib_dld_shl_load" >&5
 
7579
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7580
if test $ac_cv_lib_dld_shl_load = yes; then
 
7581
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
7582
fi
 
7583
 
 
7584
fi
 
7585
 
 
7586
fi
 
7587
 
 
7588
fi
 
7589
 
 
7590
fi
 
7591
 
 
7592
    ;;
 
7593
  esac
 
7594
 
 
7595
  if test "x$lt_cv_dlopen" != xno; then
 
7596
    enable_dlopen=yes
 
7597
  else
 
7598
    enable_dlopen=no
 
7599
  fi
 
7600
 
 
7601
  case $lt_cv_dlopen in
 
7602
  dlopen)
 
7603
    save_CPPFLAGS="$CPPFLAGS"
 
7604
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
7605
 
 
7606
    save_LDFLAGS="$LDFLAGS"
 
7607
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
7608
 
 
7609
    save_LIBS="$LIBS"
 
7610
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
7611
 
 
7612
    echo "$as_me:7612: checking whether a program can dlopen itself" >&5
 
7613
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
7614
if test "${lt_cv_dlopen_self+set}" = set; then
 
7615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7616
else
 
7617
          if test "$cross_compiling" = yes; then :
 
7618
  lt_cv_dlopen_self=cross
 
7619
else
 
7620
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7621
  lt_status=$lt_dlunknown
 
7622
  cat > conftest.$ac_ext <<EOF
 
7623
#line 7623 "configure"
 
7624
#include "confdefs.h"
 
7625
 
 
7626
#if HAVE_DLFCN_H
 
7627
#include <dlfcn.h>
 
7628
#endif
 
7629
 
 
7630
#include <stdio.h>
 
7631
 
 
7632
#ifdef RTLD_GLOBAL
 
7633
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7634
#else
 
7635
#  ifdef DL_GLOBAL
 
7636
#    define LT_DLGLOBAL         DL_GLOBAL
 
7637
#  else
 
7638
#    define LT_DLGLOBAL         0
 
7639
#  endif
 
7640
#endif
 
7641
 
 
7642
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7643
   find out it does not work in some platform. */
 
7644
#ifndef LT_DLLAZY_OR_NOW
 
7645
#  ifdef RTLD_LAZY
 
7646
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7647
#  else
 
7648
#    ifdef DL_LAZY
 
7649
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7650
#    else
 
7651
#      ifdef RTLD_NOW
 
7652
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7653
#      else
 
7654
#        ifdef DL_NOW
 
7655
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7656
#        else
 
7657
#          define LT_DLLAZY_OR_NOW      0
 
7658
#        endif
 
7659
#      endif
 
7660
#    endif
 
7661
#  endif
 
7662
#endif
 
7663
 
 
7664
#ifdef __cplusplus
 
7665
extern "C" void exit (int);
 
7666
#endif
 
7667
 
 
7668
void fnord() { int i=42;}
 
7669
int main ()
 
7670
{
 
7671
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7672
  int status = $lt_dlunknown;
 
7673
 
 
7674
  if (self)
 
7675
    {
 
7676
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7677
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7678
      /* dlclose (self); */
 
7679
    }
 
7680
 
 
7681
    exit (status);
 
7682
}
 
7683
EOF
 
7684
  if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
 
7685
  (eval $ac_link) 2>&5
 
7686
  ac_status=$?
 
7687
  echo "$as_me:7687: \$? = $ac_status" >&5
 
7688
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7689
    (./conftest; exit; ) 2>/dev/null
 
7690
    lt_status=$?
 
7691
    case x$lt_status in
 
7692
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
7693
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
7694
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
7695
    esac
 
7696
  else :
 
7697
    # compilation failed
 
7698
    lt_cv_dlopen_self=no
 
7699
  fi
 
7700
fi
 
7701
rm -fr conftest*
 
7702
 
 
7703
fi
 
7704
echo "$as_me:7704: result: $lt_cv_dlopen_self" >&5
 
7705
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
7706
 
 
7707
    if test "x$lt_cv_dlopen_self" = xyes; then
 
7708
      LDFLAGS="$LDFLAGS $link_static_flag"
 
7709
      echo "$as_me:7709: checking whether a statically linked program can dlopen itself" >&5
 
7710
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
7711
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
7712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7713
else
 
7714
          if test "$cross_compiling" = yes; then :
 
7715
  lt_cv_dlopen_self_static=cross
 
7716
else
 
7717
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7718
  lt_status=$lt_dlunknown
 
7719
  cat > conftest.$ac_ext <<EOF
 
7720
#line 7720 "configure"
 
7721
#include "confdefs.h"
 
7722
 
 
7723
#if HAVE_DLFCN_H
 
7724
#include <dlfcn.h>
 
7725
#endif
 
7726
 
 
7727
#include <stdio.h>
 
7728
 
 
7729
#ifdef RTLD_GLOBAL
 
7730
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7731
#else
 
7732
#  ifdef DL_GLOBAL
 
7733
#    define LT_DLGLOBAL         DL_GLOBAL
 
7734
#  else
 
7735
#    define LT_DLGLOBAL         0
 
7736
#  endif
 
7737
#endif
 
7738
 
 
7739
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7740
   find out it does not work in some platform. */
 
7741
#ifndef LT_DLLAZY_OR_NOW
 
7742
#  ifdef RTLD_LAZY
 
7743
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7744
#  else
 
7745
#    ifdef DL_LAZY
 
7746
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7747
#    else
 
7748
#      ifdef RTLD_NOW
 
7749
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7750
#      else
 
7751
#        ifdef DL_NOW
 
7752
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7753
#        else
 
7754
#          define LT_DLLAZY_OR_NOW      0
 
7755
#        endif
 
7756
#      endif
 
7757
#    endif
 
7758
#  endif
 
7759
#endif
 
7760
 
 
7761
#ifdef __cplusplus
 
7762
extern "C" void exit (int);
 
7763
#endif
 
7764
 
 
7765
void fnord() { int i=42;}
 
7766
int main ()
 
7767
{
 
7768
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7769
  int status = $lt_dlunknown;
 
7770
 
 
7771
  if (self)
 
7772
    {
 
7773
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7774
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7775
      /* dlclose (self); */
 
7776
    }
 
7777
 
 
7778
    exit (status);
 
7779
}
 
7780
EOF
 
7781
  if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
 
7782
  (eval $ac_link) 2>&5
 
7783
  ac_status=$?
 
7784
  echo "$as_me:7784: \$? = $ac_status" >&5
 
7785
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7786
    (./conftest; exit; ) 2>/dev/null
 
7787
    lt_status=$?
 
7788
    case x$lt_status in
 
7789
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
7790
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
7791
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
7792
    esac
 
7793
  else :
 
7794
    # compilation failed
 
7795
    lt_cv_dlopen_self_static=no
 
7796
  fi
 
7797
fi
 
7798
rm -fr conftest*
 
7799
 
 
7800
fi
 
7801
echo "$as_me:7801: result: $lt_cv_dlopen_self_static" >&5
 
7802
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
7803
    fi
 
7804
 
 
7805
    CPPFLAGS="$save_CPPFLAGS"
 
7806
    LDFLAGS="$save_LDFLAGS"
 
7807
    LIBS="$save_LIBS"
 
7808
    ;;
 
7809
  esac
 
7810
 
 
7811
  case $lt_cv_dlopen_self in
 
7812
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
7813
  *) enable_dlopen_self=unknown ;;
 
7814
  esac
 
7815
 
 
7816
  case $lt_cv_dlopen_self_static in
 
7817
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
7818
  *) enable_dlopen_self_static=unknown ;;
 
7819
  esac
 
7820
fi
 
7821
 
 
7822
## FIXME: this should be a separate macro
 
7823
##
 
7824
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7825
  case $archive_cmds in
 
7826
  *'~'*)
 
7827
    # FIXME: we may have to deal with multi-command sequences.
 
7828
    ;;
 
7829
  '$CC '*)
 
7830
    # Test whether the compiler implicitly links with -lc since on some
 
7831
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7832
    # to ld, don't add -lc before -lgcc.
 
7833
    echo "$as_me:7833: checking whether -lc should be explicitly linked in" >&5
 
7834
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7835
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
7836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7837
else
 
7838
  $rm conftest*
 
7839
    echo 'static int dummy;' > conftest.$ac_ext
 
7840
 
 
7841
    if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
 
7842
  (eval $ac_compile) 2>&5
 
7843
  ac_status=$?
 
7844
  echo "$as_me:7844: \$? = $ac_status" >&5
 
7845
  (exit $ac_status); }; then
 
7846
      soname=conftest
 
7847
      lib=conftest
 
7848
      libobjs=conftest.$ac_objext
 
7849
      deplibs=
 
7850
      wl=$lt_cv_prog_cc_wl
 
7851
      compiler_flags=-v
 
7852
      linker_flags=-v
 
7853
      verstring=
 
7854
      output_objdir=.
 
7855
      libname=conftest
 
7856
      save_allow_undefined_flag=$allow_undefined_flag
 
7857
      allow_undefined_flag=
 
7858
      if { (eval echo "$as_me:7858: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7859
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7860
  ac_status=$?
 
7861
  echo "$as_me:7861: \$? = $ac_status" >&5
 
7862
  (exit $ac_status); }
 
7863
      then
 
7864
        lt_cv_archive_cmds_need_lc=no
 
7865
      else
 
7866
        lt_cv_archive_cmds_need_lc=yes
 
7867
      fi
 
7868
      allow_undefined_flag=$save_allow_undefined_flag
 
7869
    else
 
7870
      cat conftest.err 1>&5
 
7871
    fi
 
7872
fi
 
7873
 
 
7874
    echo "$as_me:7874: result: $lt_cv_archive_cmds_need_lc" >&5
 
7875
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7876
    ;;
 
7877
  esac
 
7878
fi
 
7879
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7880
##
 
7881
## END FIXME
 
7882
 
 
7883
## FIXME: this should be a separate macro
 
7884
##
 
7885
# The second clause should only fire when bootstrapping the
 
7886
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7887
# with your package, and you will get complaints that there are
 
7888
# no rules to generate ltmain.sh.
 
7889
if test -f "$ltmain"; then
 
7890
  :
 
7891
else
 
7892
  # If there is no Makefile yet, we rely on a make rule to execute
 
7893
  # `config.status --recheck' to rerun these tests and create the
 
7894
  # libtool script then.
 
7895
  test -f Makefile && make "$ltmain"
 
7896
fi
 
7897
 
 
7898
if test -f "$ltmain"; then
 
7899
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7900
  $rm -f "${ofile}T"
 
7901
 
 
7902
  echo creating $ofile
 
7903
 
 
7904
  # Now quote all the things that may contain metacharacters while being
 
7905
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7906
  # variables and quote the copies for generation of the libtool script.
 
7907
  for var in echo old_CC old_CFLAGS \
 
7908
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7909
    reload_flag reload_cmds wl \
 
7910
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7911
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7912
    library_names_spec soname_spec \
 
7913
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7914
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7915
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7916
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7917
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7918
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7919
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7920
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7921
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7922
 
 
7923
    case $var in
 
7924
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7925
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7926
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7927
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7928
    postinstall_cmds | postuninstall_cmds | \
 
7929
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7930
      # Double-quote double-evaled strings.
 
7931
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7932
      ;;
 
7933
    *)
 
7934
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7935
      ;;
 
7936
    esac
 
7937
  done
 
7938
 
 
7939
  cat <<__EOF__ > "${ofile}T"
 
7940
#! $SHELL
 
7941
 
 
7942
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7943
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7944
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7945
#
 
7946
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7947
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7948
#
 
7949
# This program is free software; you can redistribute it and/or modify
 
7950
# it under the terms of the GNU General Public License as published by
 
7951
# the Free Software Foundation; either version 2 of the License, or
 
7952
# (at your option) any later version.
 
7953
#
 
7954
# This program is distributed in the hope that it will be useful, but
 
7955
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7956
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7957
# General Public License for more details.
 
7958
#
 
7959
# You should have received a copy of the GNU General Public License
 
7960
# along with this program; if not, write to the Free Software
 
7961
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7962
#
 
7963
# As a special exception to the GNU General Public License, if you
 
7964
# distribute this file as part of a program that contains a
 
7965
# configuration script generated by Autoconf, you may include it under
 
7966
# the same distribution terms that you use for the rest of that program.
 
7967
 
 
7968
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
7969
Xsed="sed -e s/^X//"
 
7970
 
 
7971
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
7972
# if CDPATH is set.
 
7973
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7974
 
 
7975
# ### BEGIN LIBTOOL CONFIG
 
7976
 
 
7977
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
7978
 
 
7979
# Shell to use when invoking shell scripts.
 
7980
SHELL=$lt_SHELL
 
7981
 
 
7982
# Whether or not to build shared libraries.
 
7983
build_libtool_libs=$enable_shared
 
7984
 
 
7985
# Whether or not to add -lc for building shared libraries.
 
7986
build_libtool_need_lc=$need_lc
 
7987
 
 
7988
# Whether or not to build static libraries.
 
7989
build_old_libs=$enable_static
 
7990
 
 
7991
# Whether or not to optimize for fast installation.
 
7992
fast_install=$enable_fast_install
 
7993
 
 
7994
# The host system.
 
7995
host_alias=$host_alias
 
7996
host=$host
 
7997
 
 
7998
# An echo program that does not interpret backslashes.
 
7999
echo=$lt_echo
 
8000
 
 
8001
# The archiver.
 
8002
AR=$lt_AR
 
8003
AR_FLAGS=$lt_AR_FLAGS
 
8004
 
 
8005
# The default C compiler.
 
8006
CC=$lt_CC
 
8007
 
 
8008
# Is the compiler the GNU C compiler?
 
8009
with_gcc=$GCC
 
8010
 
 
8011
# The linker used to build libraries.
 
8012
LD=$lt_LD
 
8013
 
 
8014
# Whether we need hard or soft links.
 
8015
LN_S=$lt_LN_S
 
8016
 
 
8017
# A BSD-compatible nm program.
 
8018
NM=$lt_NM
 
8019
 
 
8020
# A symbol stripping program
 
8021
STRIP=$STRIP
 
8022
 
 
8023
# Used to examine libraries when file_magic_cmd begins "file"
 
8024
MAGIC_CMD=$MAGIC_CMD
 
8025
 
 
8026
# Used on cygwin: DLL creation program.
 
8027
DLLTOOL="$DLLTOOL"
 
8028
 
 
8029
# Used on cygwin: object dumper.
 
8030
OBJDUMP="$OBJDUMP"
 
8031
 
 
8032
# Used on cygwin: assembler.
 
8033
AS="$AS"
 
8034
 
 
8035
# The name of the directory that contains temporary libtool files.
 
8036
objdir=$objdir
 
8037
 
 
8038
# How to create reloadable object files.
 
8039
reload_flag=$lt_reload_flag
 
8040
reload_cmds=$lt_reload_cmds
 
8041
 
 
8042
# How to pass a linker flag through the compiler.
 
8043
wl=$lt_wl
 
8044
 
 
8045
# Object file suffix (normally "o").
 
8046
objext="$ac_objext"
 
8047
 
 
8048
# Old archive suffix (normally "a").
 
8049
libext="$libext"
 
8050
 
 
8051
# Executable file suffix (normally "").
 
8052
exeext="$exeext"
 
8053
 
 
8054
# Additional compiler flags for building library objects.
 
8055
pic_flag=$lt_pic_flag
 
8056
pic_mode=$pic_mode
 
8057
 
 
8058
# Does compiler simultaneously support -c and -o options?
 
8059
compiler_c_o=$lt_compiler_c_o
 
8060
 
 
8061
# Can we write directly to a .lo ?
 
8062
compiler_o_lo=$lt_compiler_o_lo
 
8063
 
 
8064
# Must we lock files when doing compilation ?
 
8065
need_locks=$lt_need_locks
 
8066
 
 
8067
# Do we need the lib prefix for modules?
 
8068
need_lib_prefix=$need_lib_prefix
 
8069
 
 
8070
# Do we need a version for libraries?
 
8071
need_version=$need_version
 
8072
 
 
8073
# Whether dlopen is supported.
 
8074
dlopen_support=$enable_dlopen
 
8075
 
 
8076
# Whether dlopen of programs is supported.
 
8077
dlopen_self=$enable_dlopen_self
 
8078
 
 
8079
# Whether dlopen of statically linked programs is supported.
 
8080
dlopen_self_static=$enable_dlopen_self_static
 
8081
 
 
8082
# Compiler flag to prevent dynamic linking.
 
8083
link_static_flag=$lt_link_static_flag
 
8084
 
 
8085
# Compiler flag to turn off builtin functions.
 
8086
no_builtin_flag=$lt_no_builtin_flag
 
8087
 
 
8088
# Compiler flag to allow reflexive dlopens.
 
8089
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8090
 
 
8091
# Compiler flag to generate shared objects directly from archives.
 
8092
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8093
 
 
8094
# Compiler flag to generate thread-safe objects.
 
8095
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8096
 
 
8097
# Library versioning type.
 
8098
version_type=$version_type
 
8099
 
 
8100
# Format of library name prefix.
 
8101
libname_spec=$lt_libname_spec
 
8102
 
 
8103
# List of archive names.  First name is the real one, the rest are links.
 
8104
# The last name is the one that the linker finds with -lNAME.
 
8105
library_names_spec=$lt_library_names_spec
 
8106
 
 
8107
# The coded name of the library, if different from the real name.
 
8108
soname_spec=$lt_soname_spec
 
8109
 
 
8110
# Commands used to build and install an old-style archive.
 
8111
RANLIB=$lt_RANLIB
 
8112
old_archive_cmds=$lt_old_archive_cmds
 
8113
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8114
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8115
 
 
8116
# Create an old-style archive from a shared archive.
 
8117
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8118
 
 
8119
# Create a temporary old-style archive to link instead of a shared archive.
 
8120
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8121
 
 
8122
# Commands used to build and install a shared archive.
 
8123
archive_cmds=$lt_archive_cmds
 
8124
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8125
postinstall_cmds=$lt_postinstall_cmds
 
8126
postuninstall_cmds=$lt_postuninstall_cmds
 
8127
 
 
8128
# Commands to strip libraries.
 
8129
old_striplib=$lt_old_striplib
 
8130
striplib=$lt_striplib
 
8131
 
 
8132
# Method to check whether dependent libraries are shared objects.
 
8133
deplibs_check_method=$lt_deplibs_check_method
 
8134
 
 
8135
# Command to use when deplibs_check_method == file_magic.
 
8136
file_magic_cmd=$lt_file_magic_cmd
 
8137
 
 
8138
# Flag that allows shared libraries with undefined symbols to be built.
 
8139
allow_undefined_flag=$lt_allow_undefined_flag
 
8140
 
 
8141
# Flag that forces no undefined symbols.
 
8142
no_undefined_flag=$lt_no_undefined_flag
 
8143
 
 
8144
# Commands used to finish a libtool library installation in a directory.
 
8145
finish_cmds=$lt_finish_cmds
 
8146
 
 
8147
# Same as above, but a single script fragment to be evaled but not shown.
 
8148
finish_eval=$lt_finish_eval
 
8149
 
 
8150
# Take the output of nm and produce a listing of raw symbols and C names.
 
8151
global_symbol_pipe=$lt_global_symbol_pipe
 
8152
 
 
8153
# Transform the output of nm in a proper C declaration
 
8154
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
8155
 
 
8156
# This is the shared library runtime path variable.
 
8157
runpath_var=$runpath_var
 
8158
 
 
8159
# This is the shared library path variable.
 
8160
shlibpath_var=$shlibpath_var
 
8161
 
 
8162
# Is shlibpath searched before the hard-coded library search path?
 
8163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8164
 
 
8165
# How to hardcode a shared library path into an executable.
 
8166
hardcode_action=$hardcode_action
 
8167
 
 
8168
# Whether we should hardcode library paths into libraries.
 
8169
hardcode_into_libs=$hardcode_into_libs
 
8170
 
 
8171
# Flag to hardcode \$libdir into a binary during linking.
 
8172
# This must work even if \$libdir does not exist.
 
8173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8174
 
 
8175
# Whether we need a single -rpath flag with a separated argument.
 
8176
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8177
 
 
8178
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
8179
# resulting binary.
 
8180
hardcode_direct=$hardcode_direct
 
8181
 
 
8182
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8183
# resulting binary.
 
8184
hardcode_minus_L=$hardcode_minus_L
 
8185
 
 
8186
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8187
# the resulting binary.
 
8188
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8189
 
 
8190
# Variables whose values should be saved in libtool wrapper scripts and
 
8191
# restored at relink time.
 
8192
variables_saved_for_relink="$variables_saved_for_relink"
 
8193
 
 
8194
# Whether libtool must link a program against all its dependency libraries.
 
8195
link_all_deplibs=$link_all_deplibs
 
8196
 
 
8197
# Compile-time system search path for libraries
 
8198
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8199
 
 
8200
# Run-time system search path for libraries
 
8201
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8202
 
 
8203
# Fix the shell variable \$srcfile for the compiler.
 
8204
fix_srcfile_path="$fix_srcfile_path"
 
8205
 
 
8206
# Set to yes if exported symbols are required.
 
8207
always_export_symbols=$always_export_symbols
 
8208
 
 
8209
# The commands to list exported symbols.
 
8210
export_symbols_cmds=$lt_export_symbols_cmds
 
8211
 
 
8212
# The commands to extract the exported symbol list from a shared archive.
 
8213
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
8214
 
 
8215
# Symbols that should not be listed in the preloaded symbols.
 
8216
exclude_expsyms=$lt_exclude_expsyms
 
8217
 
 
8218
# Symbols that must always be exported.
 
8219
include_expsyms=$lt_include_expsyms
 
8220
 
 
8221
# ### END LIBTOOL CONFIG
 
8222
 
 
8223
__EOF__
 
8224
 
 
8225
  case $host_os in
 
8226
  aix3*)
 
8227
    cat <<\EOF >> "${ofile}T"
 
8228
 
 
8229
# AIX sometimes has problems with the GCC collect2 program.  For some
 
8230
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
8231
# vanish in a puff of smoke.
 
8232
if test "X${COLLECT_NAMES+set}" != Xset; then
 
8233
  COLLECT_NAMES=
 
8234
  export COLLECT_NAMES
 
8235
fi
 
8236
EOF
 
8237
    ;;
 
8238
  esac
 
8239
 
 
8240
  case $host_os in
 
8241
  cygwin* | mingw* | pw32* | os2*)
 
8242
    cat <<'EOF' >> "${ofile}T"
 
8243
      # This is a source program that is used to create dlls on Windows
 
8244
      # Don't remove nor modify the starting and closing comments
 
8245
# /* ltdll.c starts here */
 
8246
# #define WIN32_LEAN_AND_MEAN
 
8247
# #include <windows.h>
 
8248
# #undef WIN32_LEAN_AND_MEAN
 
8249
# #include <stdio.h>
 
8250
#
 
8251
# #ifndef __CYGWIN__
 
8252
# #  ifdef __CYGWIN32__
 
8253
# #    define __CYGWIN__ __CYGWIN32__
 
8254
# #  endif
 
8255
# #endif
 
8256
#
 
8257
# #ifdef __cplusplus
 
8258
# extern "C" {
 
8259
# #endif
 
8260
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
8261
# #ifdef __cplusplus
 
8262
# }
 
8263
# #endif
 
8264
#
 
8265
# #ifdef __CYGWIN__
 
8266
# #include <cygwin/cygwin_dll.h>
 
8267
# DECLARE_CYGWIN_DLL( DllMain );
 
8268
# #endif
 
8269
# HINSTANCE __hDllInstance_base;
 
8270
#
 
8271
# BOOL APIENTRY
 
8272
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
8273
# {
 
8274
#   __hDllInstance_base = hInst;
 
8275
#   return TRUE;
 
8276
# }
 
8277
# /* ltdll.c ends here */
 
8278
        # This is a source program that is used to create import libraries
 
8279
        # on Windows for dlls which lack them. Don't remove nor modify the
 
8280
        # starting and closing comments
 
8281
# /* impgen.c starts here */
 
8282
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
8283
#
 
8284
#  This file is part of GNU libtool.
 
8285
#
 
8286
#  This program is free software; you can redistribute it and/or modify
 
8287
#  it under the terms of the GNU General Public License as published by
 
8288
#  the Free Software Foundation; either version 2 of the License, or
 
8289
#  (at your option) any later version.
 
8290
#
 
8291
#  This program is distributed in the hope that it will be useful,
 
8292
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8293
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
8294
#  GNU General Public License for more details.
 
8295
#
 
8296
#  You should have received a copy of the GNU General Public License
 
8297
#  along with this program; if not, write to the Free Software
 
8298
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8299
#  */
 
8300
#
 
8301
# #include <stdio.h>            /* for printf() */
 
8302
# #include <unistd.h>           /* for open(), lseek(), read() */
 
8303
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
8304
# #include <string.h>           /* for strdup() */
 
8305
#
 
8306
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
8307
# #ifndef O_BINARY
 
8308
# #define O_BINARY 0
 
8309
# #endif
 
8310
#
 
8311
# static unsigned int
 
8312
# pe_get16 (fd, offset)
 
8313
#      int fd;
 
8314
#      int offset;
 
8315
# {
 
8316
#   unsigned char b[2];
 
8317
#   lseek (fd, offset, SEEK_SET);
 
8318
#   read (fd, b, 2);
 
8319
#   return b[0] + (b[1]<<8);
 
8320
# }
 
8321
#
 
8322
# static unsigned int
 
8323
# pe_get32 (fd, offset)
 
8324
#     int fd;
 
8325
#     int offset;
 
8326
# {
 
8327
#   unsigned char b[4];
 
8328
#   lseek (fd, offset, SEEK_SET);
 
8329
#   read (fd, b, 4);
 
8330
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8331
# }
 
8332
#
 
8333
# static unsigned int
 
8334
# pe_as32 (ptr)
 
8335
#      void *ptr;
 
8336
# {
 
8337
#   unsigned char *b = ptr;
 
8338
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8339
# }
 
8340
#
 
8341
# int
 
8342
# main (argc, argv)
 
8343
#     int argc;
 
8344
#     char *argv[];
 
8345
# {
 
8346
#     int dll;
 
8347
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
8348
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
8349
#     unsigned long name_rvas, nexp;
 
8350
#     unsigned char *expdata, *erva;
 
8351
#     char *filename, *dll_name;
 
8352
#
 
8353
#     filename = argv[1];
 
8354
#
 
8355
#     dll = open(filename, O_RDONLY|O_BINARY);
 
8356
#     if (dll < 1)
 
8357
#       return 1;
 
8358
#
 
8359
#     dll_name = filename;
 
8360
#
 
8361
#     for (i=0; filename[i]; i++)
 
8362
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
8363
#           dll_name = filename + i +1;
 
8364
#
 
8365
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
8366
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
8367
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
8368
#
 
8369
#     if (num_entries < 1) /* no exports */
 
8370
#       return 1;
 
8371
#
 
8372
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
8373
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
8374
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
8375
#     secptr = (pe_header_offset + 4 + 20 +
 
8376
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
8377
#
 
8378
#     expptr = 0;
 
8379
#     for (i = 0; i < nsections; i++)
 
8380
#     {
 
8381
#       char sname[8];
 
8382
#       unsigned long secptr1 = secptr + 40 * i;
 
8383
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
8384
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
8385
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
8386
#       lseek(dll, secptr1, SEEK_SET);
 
8387
#       read(dll, sname, 8);
 
8388
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
8389
#       {
 
8390
#           expptr = fptr + (export_rva - vaddr);
 
8391
#           if (export_rva + export_size > vaddr + vsize)
 
8392
#               export_size = vsize - (export_rva - vaddr);
 
8393
#           break;
 
8394
#       }
 
8395
#     }
 
8396
#
 
8397
#     expdata = (unsigned char*)malloc(export_size);
 
8398
#     lseek (dll, expptr, SEEK_SET);
 
8399
#     read (dll, expdata, export_size);
 
8400
#     erva = expdata - export_rva;
 
8401
#
 
8402
#     nexp = pe_as32 (expdata+24);
 
8403
#     name_rvas = pe_as32 (expdata+32);
 
8404
#
 
8405
#     printf ("EXPORTS\n");
 
8406
#     for (i = 0; i<nexp; i++)
 
8407
#     {
 
8408
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
8409
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
8410
#     }
 
8411
#
 
8412
#     return 0;
 
8413
# }
 
8414
# /* impgen.c ends here */
 
8415
 
 
8416
EOF
 
8417
    ;;
 
8418
  esac
 
8419
 
 
8420
  # We use sed instead of cat because bash on DJGPP gets confused if
 
8421
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
8422
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
8423
  # is reportedly fixed, but why not run on old versions too?
 
8424
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
8425
 
 
8426
  mv -f "${ofile}T" "$ofile" || \
 
8427
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
8428
  chmod +x "$ofile"
 
8429
fi
 
8430
##
 
8431
## END FIXME
 
8432
 
 
8433
# This can be used to rebuild libtool when needed
 
8434
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
8435
 
 
8436
# Always use our own libtool.
 
8437
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8438
 
 
8439
# Prevent multiple expansion
 
8440
 
 
8441
LIBTOOL="\$(SHELL) ./libtool"
 
8442
SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
 
8443
SOFLAGS="-rpath \$(libdir)"
 
8444
 
 
8445
SAVE_CC="${MAKEFILE_CC}"
 
8446
SAVE_CXX="${MAKEFILE_CXX}"
 
8447
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
 
8448
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
 
8449
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
 
8450
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
 
8451
 
 
8452
SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
 
8453
INSTALLER="\$(LIBTOOL) --mode=install cp"
 
8454
 
 
8455
# Configure for shared libraries, static libraries, or both.  If both are
 
8456
# configured, build the utilities and example programs with shared versions.
 
8457
#
 
8458
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
 
8459
# instead of .o
 
8460
if test "$enable_shared" = "no"; then
 
8461
        DEFAULT_LIB="\$(libdb)"
 
8462
        DEFAULT_LIB_CXX="\$(libcxx)"
 
8463
        DEFAULT_INSTALL="install_static"
 
8464
        POSTLINK="@true"
 
8465
        o=".o"
 
8466
fi
 
8467
if test "$enable_shared" = "yes"; then
 
8468
        DEFAULT_LIB="\$(libso_target)"
 
8469
        DEFAULT_LIB_CXX="\$(libxso_target)"
 
8470
        DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared"
 
8471
        POSTLINK="\$(LIBTOOL) --mode=execute true"
 
8472
        o=".lo"
 
8473
fi
 
8474
 
 
8475
# Optional C++ API.
 
8476
if test "$db_cv_cxx" = "yes"; then
 
8477
        if test "$enable_shared" = "no"; then
 
8478
                DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx"
 
8479
        fi
 
8480
        if test "$enable_shared" = "yes"; then
 
8481
                ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
 
8482
                DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared_cxx"
 
8483
        fi
 
8484
 
 
8485
        # Fill in C++ library for Embedix.
 
8486
        EMBEDIX_ECD_CXX='<OPTION db-extra>\
 
8487
        TYPE=bool\
 
8488
        DEFAULT_VALUE=1\
 
8489
        PROMPT=Include BerkeleyDB C++ library?\
 
8490
        <KEEPLIST>\
 
8491
                /usr/include/db_cxx.h\
 
8492
                /usr/lib/libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
 
8493
        </KEEPLIST>\
 
8494
        <PROVIDES>\
 
8495
                libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
 
8496
        </PROVIDES>\
 
8497
        <REQUIRES>\
 
8498
                ld-linux.so.2\
 
8499
                libc.so.6\
 
8500
        </REQUIRES>\
 
8501
        STATIC_SIZE=0\
 
8502
        STORAGE_SIZE=523612\
 
8503
        STARTUP_TIME=0\
 
8504
        </OPTION>'
 
8505
fi
 
8506
 
 
8507
# Optional Java API.
 
8508
if test "$db_cv_java" = "yes"; then
 
8509
        # Java requires shared libraries.
 
8510
        if test "$enable_shared" = "no"; then
 
8511
                { { echo "$as_me:8511: error: Java requires shared libraries" >&5
 
8512
echo "$as_me: error: Java requires shared libraries" >&2;}
 
8513
   { (exit 1); exit 1; }; }
 
8514
        fi
 
8515
 
 
8516
        if test -n "$ac_tool_prefix"; then
 
8517
  # Extract the first word of "${ac_tool_prefix}javac", so it can be a program name with args.
 
8518
set dummy ${ac_tool_prefix}javac; ac_word=$2
 
8519
echo "$as_me:8519: checking for $ac_word" >&5
 
8520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8521
if test "${ac_cv_prog_JAVAC+set}" = set; then
 
8522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8523
else
 
8524
  if test -n "$JAVAC"; then
 
8525
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
 
8526
else
 
8527
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
8528
ac_dummy="$PATH"
 
8529
for ac_dir in $ac_dummy; do
 
8530
  IFS=$ac_save_IFS
 
8531
  test -z "$ac_dir" && ac_dir=.
 
8532
  $as_executable_p "$ac_dir/$ac_word" || continue
 
8533
ac_cv_prog_JAVAC="${ac_tool_prefix}javac"
 
8534
echo "$as_me:8534: found $ac_dir/$ac_word" >&5
 
8535
break
 
8536
done
 
8537
 
 
8538
fi
 
8539
fi
 
8540
JAVAC=$ac_cv_prog_JAVAC
 
8541
if test -n "$JAVAC"; then
 
8542
  echo "$as_me:8542: result: $JAVAC" >&5
 
8543
echo "${ECHO_T}$JAVAC" >&6
 
8544
else
 
8545
  echo "$as_me:8545: result: no" >&5
 
8546
echo "${ECHO_T}no" >&6
 
8547
fi
 
8548
 
 
8549
fi
 
8550
if test -z "$ac_cv_prog_JAVAC"; then
 
8551
  ac_ct_JAVAC=$JAVAC
 
8552
  # Extract the first word of "javac", so it can be a program name with args.
 
8553
set dummy javac; ac_word=$2
 
8554
echo "$as_me:8554: checking for $ac_word" >&5
 
8555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8556
if test "${ac_cv_prog_ac_ct_JAVAC+set}" = set; then
 
8557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8558
else
 
8559
  if test -n "$ac_ct_JAVAC"; then
 
8560
  ac_cv_prog_ac_ct_JAVAC="$ac_ct_JAVAC" # Let the user override the test.
 
8561
else
 
8562
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
8563
ac_dummy="$PATH"
 
8564
for ac_dir in $ac_dummy; do
 
8565
  IFS=$ac_save_IFS
 
8566
  test -z "$ac_dir" && ac_dir=.
 
8567
  $as_executable_p "$ac_dir/$ac_word" || continue
 
8568
ac_cv_prog_ac_ct_JAVAC="javac"
 
8569
echo "$as_me:8569: found $ac_dir/$ac_word" >&5
 
8570
break
 
8571
done
 
8572
 
 
8573
  test -z "$ac_cv_prog_ac_ct_JAVAC" && ac_cv_prog_ac_ct_JAVAC="nojavac"
 
8574
fi
 
8575
fi
 
8576
ac_ct_JAVAC=$ac_cv_prog_ac_ct_JAVAC
 
8577
if test -n "$ac_ct_JAVAC"; then
 
8578
  echo "$as_me:8578: result: $ac_ct_JAVAC" >&5
 
8579
echo "${ECHO_T}$ac_ct_JAVAC" >&6
 
8580
else
 
8581
  echo "$as_me:8581: result: no" >&5
 
8582
echo "${ECHO_T}no" >&6
 
8583
fi
 
8584
 
 
8585
  JAVAC=$ac_ct_JAVAC
 
8586
else
 
8587
  JAVAC="$ac_cv_prog_JAVAC"
 
8588
fi
 
8589
 
 
8590
        if test "$JAVAC" = "nojavac"; then
 
8591
                { { echo "$as_me:8591: error: no javac compiler in PATH" >&5
 
8592
echo "$as_me: error: no javac compiler in PATH" >&2;}
 
8593
   { (exit 1); exit 1; }; }
 
8594
        fi
 
8595
        if test -n "$ac_tool_prefix"; then
 
8596
  # Extract the first word of "${ac_tool_prefix}jar", so it can be a program name with args.
 
8597
set dummy ${ac_tool_prefix}jar; ac_word=$2
 
8598
echo "$as_me:8598: checking for $ac_word" >&5
 
8599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8600
if test "${ac_cv_prog_JAR+set}" = set; then
 
8601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8602
else
 
8603
  if test -n "$JAR"; then
 
8604
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
 
8605
else
 
8606
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
8607
ac_dummy="$PATH"
 
8608
for ac_dir in $ac_dummy; do
 
8609
  IFS=$ac_save_IFS
 
8610
  test -z "$ac_dir" && ac_dir=.
 
8611
  $as_executable_p "$ac_dir/$ac_word" || continue
 
8612
ac_cv_prog_JAR="${ac_tool_prefix}jar"
 
8613
echo "$as_me:8613: found $ac_dir/$ac_word" >&5
 
8614
break
 
8615
done
 
8616
 
 
8617
fi
 
8618
fi
 
8619
JAR=$ac_cv_prog_JAR
 
8620
if test -n "$JAR"; then
 
8621
  echo "$as_me:8621: result: $JAR" >&5
 
8622
echo "${ECHO_T}$JAR" >&6
 
8623
else
 
8624
  echo "$as_me:8624: result: no" >&5
 
8625
echo "${ECHO_T}no" >&6
 
8626
fi
 
8627
 
 
8628
fi
 
8629
if test -z "$ac_cv_prog_JAR"; then
 
8630
  ac_ct_JAR=$JAR
 
8631
  # Extract the first word of "jar", so it can be a program name with args.
 
8632
set dummy jar; ac_word=$2
 
8633
echo "$as_me:8633: checking for $ac_word" >&5
 
8634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8635
if test "${ac_cv_prog_ac_ct_JAR+set}" = set; then
 
8636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8637
else
 
8638
  if test -n "$ac_ct_JAR"; then
 
8639
  ac_cv_prog_ac_ct_JAR="$ac_ct_JAR" # Let the user override the test.
 
8640
else
 
8641
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
8642
ac_dummy="$PATH"
 
8643
for ac_dir in $ac_dummy; do
 
8644
  IFS=$ac_save_IFS
 
8645
  test -z "$ac_dir" && ac_dir=.
 
8646
  $as_executable_p "$ac_dir/$ac_word" || continue
 
8647
ac_cv_prog_ac_ct_JAR="jar"
 
8648
echo "$as_me:8648: found $ac_dir/$ac_word" >&5
 
8649
break
 
8650
done
 
8651
 
 
8652
  test -z "$ac_cv_prog_ac_ct_JAR" && ac_cv_prog_ac_ct_JAR="nojar"
 
8653
fi
 
8654
fi
 
8655
ac_ct_JAR=$ac_cv_prog_ac_ct_JAR
 
8656
if test -n "$ac_ct_JAR"; then
 
8657
  echo "$as_me:8657: result: $ac_ct_JAR" >&5
 
8658
echo "${ECHO_T}$ac_ct_JAR" >&6
 
8659
else
 
8660
  echo "$as_me:8660: result: no" >&5
 
8661
echo "${ECHO_T}no" >&6
 
8662
fi
 
8663
 
 
8664
  JAR=$ac_ct_JAR
 
8665
else
 
8666
  JAR="$ac_cv_prog_JAR"
 
8667
fi
 
8668
 
 
8669
        if test "$JAR" = "nojar"; then
 
8670
                { { echo "$as_me:8670: error: no jar utility in PATH" >&5
 
8671
echo "$as_me: error: no jar utility in PATH" >&2;}
 
8672
   { (exit 1); exit 1; }; }
 
8673
        fi
 
8674
        # Extract the first word of "javac", so it can be a program name with args.
 
8675
set dummy javac; ac_word=$2
 
8676
echo "$as_me:8676: checking for $ac_word" >&5
 
8677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8678
if test "${ac_cv_path_JAVACABS+set}" = set; then
 
8679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8680
else
 
8681
  case $JAVACABS in
 
8682
  [\\/]* | ?:[\\/]*)
 
8683
  ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a path.
 
8684
  ;;
 
8685
  *)
 
8686
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
8687
ac_dummy="$PATH"
 
8688
for ac_dir in $ac_dummy; do
 
8689
  IFS=$ac_save_IFS
 
8690
  test -z "$ac_dir" && ac_dir=.
 
8691
  if $as_executable_p "$ac_dir/$ac_word"; then
 
8692
   ac_cv_path_JAVACABS="$ac_dir/$ac_word"
 
8693
   echo "$as_me:8693: found $ac_dir/$ac_word" >&5
 
8694
   break
 
8695
fi
 
8696
done
 
8697
 
 
8698
  test -z "$ac_cv_path_JAVACABS" && ac_cv_path_JAVACABS="nojavac"
 
8699
  ;;
 
8700
esac
 
8701
fi
 
8702
JAVACABS=$ac_cv_path_JAVACABS
 
8703
 
 
8704
if test -n "$JAVACABS"; then
 
8705
  echo "$as_me:8705: result: $JAVACABS" >&5
 
8706
echo "${ECHO_T}$JAVACABS" >&6
 
8707
else
 
8708
  echo "$as_me:8708: result: no" >&5
 
8709
echo "${ECHO_T}no" >&6
 
8710
fi
 
8711
 
 
8712
        ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libjso_target)"
 
8713
        ADDITIONAL_LANG="$ADDITIONAL_LANG java"
 
8714
        DEFAULT_INSTALL="${DEFAULT_INSTALL} install_java"
 
8715
 
 
8716
# find the include directory relative to the javac executable
 
8717
        while ls -ld "$JAVACABS" 2>/dev/null | grep " -> " >/dev/null; do
 
8718
                echo "$as_me:8718: checking symlink for $JAVACABS" >&5
 
8719
echo $ECHO_N "checking symlink for $JAVACABS... $ECHO_C" >&6
 
8720
                JAVACLINK=`ls -ld $JAVACABS | sed 's/.* -> //'`
 
8721
                case "$JAVACLINK" in
 
8722
                /*) JAVACABS="$JAVACLINK";;
 
8723
# 'X' avoids triggering unwanted echo options.
 
8724
                *) JAVACABS=`echo "X$JAVACABS" | sed -e 's/^X//' -e 's:[^/]*$::'`"$JAVACLINK";;
 
8725
                esac
 
8726
                echo "$as_me:8726: result: $JAVACABS" >&5
 
8727
echo "${ECHO_T}$JAVACABS" >&6
 
8728
        done
 
8729
        JTOPDIR=`echo "$JAVACABS" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
 
8730
        case "$host_os" in
 
8731
                darwin*)        JTOPDIR=`echo "$JTOPDIR" | sed -e s:/[^/]*$::'`
 
8732
                                JNIHEADERDIR="$JTOPDIR/Headers";;
 
8733
                *)              JNIHEADERDIR="$JTOPDIR/include";;
 
8734
        esac
 
8735
        if test -f "$JNIHEADERDIR/jni.h"; then
 
8736
                CPPFLAGS="$CPPFLAGSS -I$JNIHEADERDIR"
 
8737
        else
 
8738
                JTOPDIR=`echo "$JTOPDIR" | sed -e 's:/[^/]*$::'`
 
8739
                if test -f "$JTOPDIR/include/jni.h"; then
 
8740
                        CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include"
 
8741
                else
 
8742
                        { { echo "$as_me:8742: error: cannot find java include files" >&5
 
8743
echo "$as_me: error: cannot find java include files" >&2;}
 
8744
   { (exit 1); exit 1; }; }
 
8745
                fi
 
8746
        fi
 
8747
 
 
8748
# get the likely subdirectories for system specific java includes
 
8749
        case "$host_os" in
 
8750
        solaris*)       JINCSUBDIRS="solaris";;
 
8751
        linux*)         JINCSUBDIRS="linux genunix";;
 
8752
        *)              JINCSUBDIRS="genunix";;
 
8753
        esac
 
8754
 
 
8755
        for JINCSUBDIR in $JINCSUBDIRS
 
8756
        do
 
8757
                if test -d "$JTOPDIR/include/$JINCSUBDIR"; then
 
8758
                        CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include/$JINCSUBDIR"
 
8759
                fi
 
8760
        done
 
8761
else
 
8762
        JAVAC=nojavac
 
8763
fi
 
8764
 
 
8765
# Optional RPC client/server.
 
8766
if test "$db_cv_rpc" = "yes"; then
 
8767
        cat >>confdefs.h <<\EOF
 
8768
#define HAVE_RPC 1
 
8769
EOF
 
8770
 
 
8771
        RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
 
8772
        ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
 
8773
 
 
8774
        EMBEDIX_ECD_RPC="/usr/bin/berkeley_db_svc"
 
8775
 
 
8776
        case "$host_os" in
 
8777
        hpux*)
 
8778
                echo "$as_me:8778: checking for svc_run" >&5
 
8779
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
 
8780
if test "${ac_cv_func_svc_run+set}" = set; then
 
8781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8782
else
 
8783
  cat >conftest.$ac_ext <<_ACEOF
 
8784
#line 8784 "configure"
 
8785
#include "confdefs.h"
 
8786
/* System header to define __stub macros and hopefully few prototypes,
 
8787
    which can conflict with char svc_run (); below.  */
 
8788
#include <assert.h>
 
8789
/* Override any gcc2 internal prototype to avoid an error.  */
 
8790
#ifdef __cplusplus
 
8791
extern "C"
 
8792
#endif
 
8793
/* We use char because int might match the return type of a gcc2
 
8794
   builtin and then its argument prototype would still apply.  */
 
8795
char svc_run ();
 
8796
char (*f) ();
 
8797
 
 
8798
int
 
8799
main ()
 
8800
{
 
8801
/* The GNU C library defines this for functions which it implements
 
8802
    to always fail with ENOSYS.  Some functions are actually named
 
8803
    something starting with __ and the normal name is an alias.  */
 
8804
#if defined (__stub_svc_run) || defined (__stub___svc_run)
 
8805
choke me
 
8806
#else
 
8807
f = svc_run;
 
8808
#endif
 
8809
 
 
8810
  ;
 
8811
  return 0;
 
8812
}
 
8813
_ACEOF
 
8814
rm -f conftest.$ac_objext conftest$ac_exeext
 
8815
if { (eval echo "$as_me:8815: \"$ac_link\"") >&5
 
8816
  (eval $ac_link) 2>&5
 
8817
  ac_status=$?
 
8818
  echo "$as_me:8818: \$? = $ac_status" >&5
 
8819
  (exit $ac_status); } &&
 
8820
         { ac_try='test -s conftest$ac_exeext'
 
8821
  { (eval echo "$as_me:8821: \"$ac_try\"") >&5
 
8822
  (eval $ac_try) 2>&5
 
8823
  ac_status=$?
 
8824
  echo "$as_me:8824: \$? = $ac_status" >&5
 
8825
  (exit $ac_status); }; }; then
 
8826
  ac_cv_func_svc_run=yes
 
8827
else
 
8828
  echo "$as_me: failed program was:" >&5
 
8829
cat conftest.$ac_ext >&5
 
8830
ac_cv_func_svc_run=no
 
8831
fi
 
8832
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8833
fi
 
8834
echo "$as_me:8834: result: $ac_cv_func_svc_run" >&5
 
8835
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
 
8836
if test $ac_cv_func_svc_run = yes; then
 
8837
  :
 
8838
else
 
8839
  echo "$as_me:8839: checking for svc_run in -lnsl" >&5
 
8840
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
 
8841
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
 
8842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8843
else
 
8844
  ac_check_lib_save_LIBS=$LIBS
 
8845
LIBS="-lnsl  $LIBS"
 
8846
cat >conftest.$ac_ext <<_ACEOF
 
8847
#line 8847 "configure"
 
8848
#include "confdefs.h"
 
8849
 
 
8850
/* Override any gcc2 internal prototype to avoid an error.  */
 
8851
#ifdef __cplusplus
 
8852
extern "C"
 
8853
#endif
 
8854
/* We use char because int might match the return type of a gcc2
 
8855
   builtin and then its argument prototype would still apply.  */
 
8856
char svc_run ();
 
8857
int
 
8858
main ()
 
8859
{
 
8860
svc_run ();
 
8861
  ;
 
8862
  return 0;
 
8863
}
 
8864
_ACEOF
 
8865
rm -f conftest.$ac_objext conftest$ac_exeext
 
8866
if { (eval echo "$as_me:8866: \"$ac_link\"") >&5
 
8867
  (eval $ac_link) 2>&5
 
8868
  ac_status=$?
 
8869
  echo "$as_me:8869: \$? = $ac_status" >&5
 
8870
  (exit $ac_status); } &&
 
8871
         { ac_try='test -s conftest$ac_exeext'
 
8872
  { (eval echo "$as_me:8872: \"$ac_try\"") >&5
 
8873
  (eval $ac_try) 2>&5
 
8874
  ac_status=$?
 
8875
  echo "$as_me:8875: \$? = $ac_status" >&5
 
8876
  (exit $ac_status); }; }; then
 
8877
  ac_cv_lib_nsl_svc_run=yes
 
8878
else
 
8879
  echo "$as_me: failed program was:" >&5
 
8880
cat conftest.$ac_ext >&5
 
8881
ac_cv_lib_nsl_svc_run=no
 
8882
fi
 
8883
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8884
LIBS=$ac_check_lib_save_LIBS
 
8885
fi
 
8886
echo "$as_me:8886: result: $ac_cv_lib_nsl_svc_run" >&5
 
8887
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
 
8888
if test $ac_cv_lib_nsl_svc_run = yes; then
 
8889
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
 
8890
fi
 
8891
 
 
8892
fi
 
8893
;;
 
8894
        solaris*)
 
8895
                echo "$as_me:8895: checking for svc_run" >&5
 
8896
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
 
8897
if test "${ac_cv_func_svc_run+set}" = set; then
 
8898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8899
else
 
8900
  cat >conftest.$ac_ext <<_ACEOF
 
8901
#line 8901 "configure"
 
8902
#include "confdefs.h"
 
8903
/* System header to define __stub macros and hopefully few prototypes,
 
8904
    which can conflict with char svc_run (); below.  */
 
8905
#include <assert.h>
 
8906
/* Override any gcc2 internal prototype to avoid an error.  */
 
8907
#ifdef __cplusplus
 
8908
extern "C"
 
8909
#endif
 
8910
/* We use char because int might match the return type of a gcc2
 
8911
   builtin and then its argument prototype would still apply.  */
 
8912
char svc_run ();
 
8913
char (*f) ();
 
8914
 
 
8915
int
 
8916
main ()
 
8917
{
 
8918
/* The GNU C library defines this for functions which it implements
 
8919
    to always fail with ENOSYS.  Some functions are actually named
 
8920
    something starting with __ and the normal name is an alias.  */
 
8921
#if defined (__stub_svc_run) || defined (__stub___svc_run)
 
8922
choke me
 
8923
#else
 
8924
f = svc_run;
 
8925
#endif
 
8926
 
 
8927
  ;
 
8928
  return 0;
 
8929
}
 
8930
_ACEOF
 
8931
rm -f conftest.$ac_objext conftest$ac_exeext
 
8932
if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
 
8933
  (eval $ac_link) 2>&5
 
8934
  ac_status=$?
 
8935
  echo "$as_me:8935: \$? = $ac_status" >&5
 
8936
  (exit $ac_status); } &&
 
8937
         { ac_try='test -s conftest$ac_exeext'
 
8938
  { (eval echo "$as_me:8938: \"$ac_try\"") >&5
 
8939
  (eval $ac_try) 2>&5
 
8940
  ac_status=$?
 
8941
  echo "$as_me:8941: \$? = $ac_status" >&5
 
8942
  (exit $ac_status); }; }; then
 
8943
  ac_cv_func_svc_run=yes
 
8944
else
 
8945
  echo "$as_me: failed program was:" >&5
 
8946
cat conftest.$ac_ext >&5
 
8947
ac_cv_func_svc_run=no
 
8948
fi
 
8949
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8950
fi
 
8951
echo "$as_me:8951: result: $ac_cv_func_svc_run" >&5
 
8952
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
 
8953
if test $ac_cv_func_svc_run = yes; then
 
8954
  :
 
8955
else
 
8956
 
 
8957
echo "$as_me:8957: checking for svc_run in -lnsl" >&5
 
8958
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
 
8959
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
 
8960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8961
else
 
8962
  ac_check_lib_save_LIBS=$LIBS
 
8963
LIBS="-lnsl  $LIBS"
 
8964
cat >conftest.$ac_ext <<_ACEOF
 
8965
#line 8965 "configure"
 
8966
#include "confdefs.h"
 
8967
 
 
8968
/* Override any gcc2 internal prototype to avoid an error.  */
 
8969
#ifdef __cplusplus
 
8970
extern "C"
 
8971
#endif
 
8972
/* We use char because int might match the return type of a gcc2
 
8973
   builtin and then its argument prototype would still apply.  */
 
8974
char svc_run ();
 
8975
int
 
8976
main ()
 
8977
{
 
8978
svc_run ();
 
8979
  ;
 
8980
  return 0;
 
8981
}
 
8982
_ACEOF
 
8983
rm -f conftest.$ac_objext conftest$ac_exeext
 
8984
if { (eval echo "$as_me:8984: \"$ac_link\"") >&5
 
8985
  (eval $ac_link) 2>&5
 
8986
  ac_status=$?
 
8987
  echo "$as_me:8987: \$? = $ac_status" >&5
 
8988
  (exit $ac_status); } &&
 
8989
         { ac_try='test -s conftest$ac_exeext'
 
8990
  { (eval echo "$as_me:8990: \"$ac_try\"") >&5
 
8991
  (eval $ac_try) 2>&5
 
8992
  ac_status=$?
 
8993
  echo "$as_me:8993: \$? = $ac_status" >&5
 
8994
  (exit $ac_status); }; }; then
 
8995
  ac_cv_lib_nsl_svc_run=yes
 
8996
else
 
8997
  echo "$as_me: failed program was:" >&5
 
8998
cat conftest.$ac_ext >&5
 
8999
ac_cv_lib_nsl_svc_run=no
 
9000
fi
 
9001
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9002
LIBS=$ac_check_lib_save_LIBS
 
9003
fi
 
9004
echo "$as_me:9004: result: $ac_cv_lib_nsl_svc_run" >&5
 
9005
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
 
9006
if test $ac_cv_lib_nsl_svc_run = yes; then
 
9007
  cat >>confdefs.h <<EOF
 
9008
#define HAVE_LIBNSL 1
 
9009
EOF
 
9010
 
 
9011
  LIBS="-lnsl $LIBS"
 
9012
 
 
9013
fi
 
9014
 
 
9015
fi
 
9016
;;
 
9017
        esac
 
9018
fi
 
9019
 
 
9020
if test "$db_cv_tcl" = "yes"; then
 
9021
        if test "$enable_shared" = "no"; then
 
9022
                { { echo "$as_me:9022: error: Tcl requires shared libraries" >&5
 
9023
echo "$as_me: error: Tcl requires shared libraries" >&2;}
 
9024
   { (exit 1); exit 1; }; }
 
9025
        fi
 
9026
 
 
9027
        if test "${ac_cv_c_tclconfig+set}" = set; then
 
9028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9029
else
 
9030
 
 
9031
            # First check to see if --with-tclconfig was specified.
 
9032
            if test "${with_tclconfig}" != no; then
 
9033
                if test -f "${with_tclconfig}/tclConfig.sh" ; then
 
9034
                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
 
9035
                else
 
9036
                    { { echo "$as_me:9036: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
 
9037
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
 
9038
   { (exit 1); exit 1; }; }
 
9039
                fi
 
9040
            fi
 
9041
 
 
9042
            # check in a few common install locations
 
9043
            if test x"${ac_cv_c_tclconfig}" = x ; then
 
9044
                for i in `ls -d /usr/local/lib 2>/dev/null` ; do
 
9045
                    if test -f "$i/tclConfig.sh" ; then
 
9046
                        ac_cv_c_tclconfig=`(cd $i; pwd)`
 
9047
                        break
 
9048
                    fi
 
9049
                done
 
9050
            fi
 
9051
 
 
9052
fi
 
9053
 
 
9054
        if test x"${ac_cv_c_tclconfig}" = x ; then
 
9055
            TCL_BIN_DIR="# no Tcl configs found"
 
9056
            { { echo "$as_me:9056: error: can't find Tcl configuration definitions" >&5
 
9057
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
 
9058
   { (exit 1); exit 1; }; }
 
9059
        else
 
9060
            TCL_BIN_DIR=${ac_cv_c_tclconfig}
 
9061
        fi
 
9062
 
 
9063
        echo "$as_me:9063: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
 
9064
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
 
9065
 
 
9066
        if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
 
9067
                echo "$as_me:9067: result: loading" >&5
 
9068
echo "${ECHO_T}loading" >&6
 
9069
                . $TCL_BIN_DIR/tclConfig.sh
 
9070
        else
 
9071
                echo "$as_me:9071: result: file not found" >&5
 
9072
echo "${ECHO_T}file not found" >&6
 
9073
        fi
 
9074
 
 
9075
        #
 
9076
        # The eval is required to do the TCL_DBGX substitution in the
 
9077
        # TCL_LIB_FILE variable
 
9078
        #
 
9079
        eval TCL_LIB_FILE="${TCL_LIB_FILE}"
 
9080
        eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
 
9081
        eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
 
9082
 
 
9083
        TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
 
9084
 
 
9085
        if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
 
9086
                TCFLAGS="-I$TCL_PREFIX/include"
 
9087
        fi
 
9088
 
 
9089
        LIBS="$LIBS $TCL_LIB_SPEC $TCL_LIBS"
 
9090
 
 
9091
        ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libtso_target)"
 
9092
        DEFAULT_INSTALL="${DEFAULT_INSTALL} install_tcl"
 
9093
fi
 
9094
 
 
9095
# Optional DB 1.85 compatibility API.
 
9096
if test "$db_cv_compat185" = "yes"; then
 
9097
        ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
 
9098
        ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
 
9099
fi
 
9100
 
 
9101
# Optional utilities.
 
9102
if test "$db_cv_dump185" = "yes"; then
 
9103
        ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
 
9104
fi
 
9105
 
 
9106
# test servers, example programs.
 
9107
# Include -lpthread if the library exists.
 
9108
echo "$as_me:9108: checking for sched_yield in -lrt" >&5
 
9109
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
 
9110
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
 
9111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9112
else
 
9113
  ac_check_lib_save_LIBS=$LIBS
 
9114
LIBS="-lrt  $LIBS"
 
9115
cat >conftest.$ac_ext <<_ACEOF
 
9116
#line 9116 "configure"
 
9117
#include "confdefs.h"
 
9118
 
 
9119
/* Override any gcc2 internal prototype to avoid an error.  */
 
9120
#ifdef __cplusplus
 
9121
extern "C"
 
9122
#endif
 
9123
/* We use char because int might match the return type of a gcc2
 
9124
   builtin and then its argument prototype would still apply.  */
 
9125
char sched_yield ();
 
9126
int
 
9127
main ()
 
9128
{
 
9129
sched_yield ();
 
9130
  ;
 
9131
  return 0;
 
9132
}
 
9133
_ACEOF
 
9134
rm -f conftest.$ac_objext conftest$ac_exeext
 
9135
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
 
9136
  (eval $ac_link) 2>&5
 
9137
  ac_status=$?
 
9138
  echo "$as_me:9138: \$? = $ac_status" >&5
 
9139
  (exit $ac_status); } &&
 
9140
         { ac_try='test -s conftest$ac_exeext'
 
9141
  { (eval echo "$as_me:9141: \"$ac_try\"") >&5
 
9142
  (eval $ac_try) 2>&5
 
9143
  ac_status=$?
 
9144
  echo "$as_me:9144: \$? = $ac_status" >&5
 
9145
  (exit $ac_status); }; }; then
 
9146
  ac_cv_lib_rt_sched_yield=yes
 
9147
else
 
9148
  echo "$as_me: failed program was:" >&5
 
9149
cat conftest.$ac_ext >&5
 
9150
ac_cv_lib_rt_sched_yield=no
 
9151
fi
 
9152
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9153
LIBS=$ac_check_lib_save_LIBS
 
9154
fi
 
9155
echo "$as_me:9155: result: $ac_cv_lib_rt_sched_yield" >&5
 
9156
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
 
9157
if test $ac_cv_lib_rt_sched_yield = yes; then
 
9158
  TEST_LIBS="-lrt $TEST_LIBS"
 
9159
fi
 
9160
 
 
9161
echo "$as_me:9161: checking for pthread_create in -lpthread" >&5
 
9162
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
9163
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
9164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9165
else
 
9166
  ac_check_lib_save_LIBS=$LIBS
 
9167
LIBS="-lpthread  $LIBS"
 
9168
cat >conftest.$ac_ext <<_ACEOF
 
9169
#line 9169 "configure"
 
9170
#include "confdefs.h"
 
9171
 
 
9172
/* Override any gcc2 internal prototype to avoid an error.  */
 
9173
#ifdef __cplusplus
 
9174
extern "C"
 
9175
#endif
 
9176
/* We use char because int might match the return type of a gcc2
 
9177
   builtin and then its argument prototype would still apply.  */
 
9178
char pthread_create ();
 
9179
int
 
9180
main ()
 
9181
{
 
9182
pthread_create ();
 
9183
  ;
 
9184
  return 0;
 
9185
}
 
9186
_ACEOF
 
9187
rm -f conftest.$ac_objext conftest$ac_exeext
 
9188
if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
 
9189
  (eval $ac_link) 2>&5
 
9190
  ac_status=$?
 
9191
  echo "$as_me:9191: \$? = $ac_status" >&5
 
9192
  (exit $ac_status); } &&
 
9193
         { ac_try='test -s conftest$ac_exeext'
 
9194
  { (eval echo "$as_me:9194: \"$ac_try\"") >&5
 
9195
  (eval $ac_try) 2>&5
 
9196
  ac_status=$?
 
9197
  echo "$as_me:9197: \$? = $ac_status" >&5
 
9198
  (exit $ac_status); }; }; then
 
9199
  ac_cv_lib_pthread_pthread_create=yes
 
9200
else
 
9201
  echo "$as_me: failed program was:" >&5
 
9202
cat conftest.$ac_ext >&5
 
9203
ac_cv_lib_pthread_pthread_create=no
 
9204
fi
 
9205
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9206
LIBS=$ac_check_lib_save_LIBS
 
9207
fi
 
9208
echo "$as_me:9208: result: $ac_cv_lib_pthread_pthread_create" >&5
 
9209
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
9210
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
9211
  TEST_LIBS="-lpthread $TEST_LIBS"
 
9212
fi
 
9213
 
 
9214
# Checks for system/compiler characteristics.
 
9215
echo "$as_me:9215: checking whether byte ordering is bigendian" >&5
 
9216
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
9217
if test "${ac_cv_c_bigendian+set}" = set; then
 
9218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9219
else
 
9220
  ac_cv_c_bigendian=unknown
 
9221
# See if sys/param.h defines the BYTE_ORDER macro.
 
9222
cat >conftest.$ac_ext <<_ACEOF
 
9223
#line 9223 "configure"
 
9224
#include "confdefs.h"
 
9225
#include <sys/types.h>
 
9226
#include <sys/param.h>
 
9227
 
 
9228
int
 
9229
main ()
 
9230
{
 
9231
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
9232
 bogus endian macros
 
9233
#endif
 
9234
 
 
9235
  ;
 
9236
  return 0;
 
9237
}
 
9238
_ACEOF
 
9239
rm -f conftest.$ac_objext
 
9240
if { (eval echo "$as_me:9240: \"$ac_compile\"") >&5
 
9241
  (eval $ac_compile) 2>&5
 
9242
  ac_status=$?
 
9243
  echo "$as_me:9243: \$? = $ac_status" >&5
 
9244
  (exit $ac_status); } &&
 
9245
         { ac_try='test -s conftest.$ac_objext'
 
9246
  { (eval echo "$as_me:9246: \"$ac_try\"") >&5
 
9247
  (eval $ac_try) 2>&5
 
9248
  ac_status=$?
 
9249
  echo "$as_me:9249: \$? = $ac_status" >&5
 
9250
  (exit $ac_status); }; }; then
 
9251
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
9252
cat >conftest.$ac_ext <<_ACEOF
 
9253
#line 9253 "configure"
 
9254
#include "confdefs.h"
 
9255
#include <sys/types.h>
 
9256
#include <sys/param.h>
 
9257
 
 
9258
int
 
9259
main ()
 
9260
{
 
9261
#if BYTE_ORDER != BIG_ENDIAN
 
9262
 not big endian
 
9263
#endif
 
9264
 
 
9265
  ;
 
9266
  return 0;
 
9267
}
 
9268
_ACEOF
 
9269
rm -f conftest.$ac_objext
 
9270
if { (eval echo "$as_me:9270: \"$ac_compile\"") >&5
 
9271
  (eval $ac_compile) 2>&5
 
9272
  ac_status=$?
 
9273
  echo "$as_me:9273: \$? = $ac_status" >&5
 
9274
  (exit $ac_status); } &&
 
9275
         { ac_try='test -s conftest.$ac_objext'
 
9276
  { (eval echo "$as_me:9276: \"$ac_try\"") >&5
 
9277
  (eval $ac_try) 2>&5
 
9278
  ac_status=$?
 
9279
  echo "$as_me:9279: \$? = $ac_status" >&5
 
9280
  (exit $ac_status); }; }; then
 
9281
  ac_cv_c_bigendian=yes
 
9282
else
 
9283
  echo "$as_me: failed program was:" >&5
 
9284
cat conftest.$ac_ext >&5
 
9285
ac_cv_c_bigendian=no
 
9286
fi
 
9287
rm -f conftest.$ac_objext conftest.$ac_ext
 
9288
else
 
9289
  echo "$as_me: failed program was:" >&5
 
9290
cat conftest.$ac_ext >&5
 
9291
fi
 
9292
rm -f conftest.$ac_objext conftest.$ac_ext
 
9293
if test $ac_cv_c_bigendian = unknown; then
 
9294
if test "$cross_compiling" = yes; then
 
9295
  { { echo "$as_me:9295: error: cannot run test program while cross compiling" >&5
 
9296
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
9297
   { (exit 1); exit 1; }; }
 
9298
else
 
9299
  cat >conftest.$ac_ext <<_ACEOF
 
9300
#line 9300 "configure"
 
9301
#include "confdefs.h"
 
9302
int
 
9303
main ()
 
9304
{
 
9305
  /* Are we little or big endian?  From Harbison&Steele.  */
 
9306
  union
 
9307
  {
 
9308
    long l;
 
9309
    char c[sizeof (long)];
 
9310
  } u;
 
9311
  u.l = 1;
 
9312
  exit (u.c[sizeof (long) - 1] == 1);
 
9313
}
 
9314
_ACEOF
 
9315
rm -f conftest$ac_exeext
 
9316
if { (eval echo "$as_me:9316: \"$ac_link\"") >&5
 
9317
  (eval $ac_link) 2>&5
 
9318
  ac_status=$?
 
9319
  echo "$as_me:9319: \$? = $ac_status" >&5
 
9320
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9321
  { (eval echo "$as_me:9321: \"$ac_try\"") >&5
 
9322
  (eval $ac_try) 2>&5
 
9323
  ac_status=$?
 
9324
  echo "$as_me:9324: \$? = $ac_status" >&5
 
9325
  (exit $ac_status); }; }; then
 
9326
  ac_cv_c_bigendian=no
 
9327
else
 
9328
  echo "$as_me: program exited with status $ac_status" >&5
 
9329
echo "$as_me: failed program was:" >&5
 
9330
cat conftest.$ac_ext >&5
 
9331
ac_cv_c_bigendian=yes
 
9332
fi
 
9333
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
9334
fi
 
9335
fi
 
9336
fi
 
9337
echo "$as_me:9337: result: $ac_cv_c_bigendian" >&5
 
9338
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
9339
if test $ac_cv_c_bigendian = yes; then
 
9340
 
 
9341
cat >>confdefs.h <<\EOF
 
9342
#define WORDS_BIGENDIAN 1
 
9343
EOF
 
9344
 
 
9345
fi
 
9346
 
 
9347
echo "$as_me:9347: checking for $CC option to accept ANSI C" >&5
 
9348
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
9349
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
9350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9351
else
 
9352
  ac_cv_prog_cc_stdc=no
 
9353
ac_save_CC=$CC
 
9354
cat >conftest.$ac_ext <<_ACEOF
 
9355
#line 9355 "configure"
 
9356
#include "confdefs.h"
 
9357
#include <stdarg.h>
 
9358
#include <stdio.h>
 
9359
#include <sys/types.h>
 
9360
#include <sys/stat.h>
 
9361
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
9362
struct buf { int x; };
 
9363
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
9364
static char *e (p, i)
 
9365
     char **p;
 
9366
     int i;
 
9367
{
 
9368
  return p[i];
 
9369
}
 
9370
static char *f (char * (*g) (char **, int), char **p, ...)
 
9371
{
 
9372
  char *s;
 
9373
  va_list v;
 
9374
  va_start (v,p);
 
9375
  s = g (p, va_arg (v,int));
 
9376
  va_end (v);
 
9377
  return s;
 
9378
}
 
9379
int test (int i, double x);
 
9380
struct s1 {int (*f) (int a);};
 
9381
struct s2 {int (*f) (double a);};
 
9382
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
9383
int argc;
 
9384
char **argv;
 
9385
int
 
9386
main ()
 
9387
{
 
9388
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
9389
  ;
 
9390
  return 0;
 
9391
}
 
9392
_ACEOF
 
9393
# Don't try gcc -ansi; that turns off useful extensions and
 
9394
# breaks some systems' header files.
 
9395
# AIX                   -qlanglvl=ansi
 
9396
# Ultrix and OSF/1      -std1
 
9397
# HP-UX 10.20 and later -Ae
 
9398
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
9399
# SVR4                  -Xc -D__EXTENSIONS__
 
9400
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
9401
do
 
9402
  CC="$ac_save_CC $ac_arg"
 
9403
  rm -f conftest.$ac_objext
 
9404
if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
 
9405
  (eval $ac_compile) 2>&5
 
9406
  ac_status=$?
 
9407
  echo "$as_me:9407: \$? = $ac_status" >&5
 
9408
  (exit $ac_status); } &&
 
9409
         { ac_try='test -s conftest.$ac_objext'
 
9410
  { (eval echo "$as_me:9410: \"$ac_try\"") >&5
 
9411
  (eval $ac_try) 2>&5
 
9412
  ac_status=$?
 
9413
  echo "$as_me:9413: \$? = $ac_status" >&5
 
9414
  (exit $ac_status); }; }; then
 
9415
  ac_cv_prog_cc_stdc=$ac_arg
 
9416
break
 
9417
else
 
9418
  echo "$as_me: failed program was:" >&5
 
9419
cat conftest.$ac_ext >&5
 
9420
fi
 
9421
rm -f conftest.$ac_objext
 
9422
done
 
9423
rm -f conftest.$ac_ext conftest.$ac_objext
 
9424
CC=$ac_save_CC
 
9425
 
 
9426
fi
 
9427
 
 
9428
case "x$ac_cv_prog_cc_stdc" in
 
9429
  x|xno)
 
9430
    echo "$as_me:9430: result: none needed" >&5
 
9431
echo "${ECHO_T}none needed" >&6 ;;
 
9432
  *)
 
9433
    echo "$as_me:9433: result: $ac_cv_prog_cc_stdc" >&5
 
9434
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
9435
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
9436
esac
 
9437
 
 
9438
echo "$as_me:9438: checking for an ANSI C-conforming const" >&5
 
9439
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
9440
if test "${ac_cv_c_const+set}" = set; then
 
9441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9442
else
 
9443
  cat >conftest.$ac_ext <<_ACEOF
 
9444
#line 9444 "configure"
 
9445
#include "confdefs.h"
 
9446
 
 
9447
int
 
9448
main ()
 
9449
{
 
9450
/* FIXME: Include the comments suggested by Paul. */
 
9451
#ifndef __cplusplus
 
9452
  /* Ultrix mips cc rejects this.  */
 
9453
  typedef int charset[2];
 
9454
  const charset x;
 
9455
  /* SunOS 4.1.1 cc rejects this.  */
 
9456
  char const *const *ccp;
 
9457
  char **p;
 
9458
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
9459
  struct point {int x, y;};
 
9460
  static struct point const zero = {0,0};
 
9461
  /* AIX XL C 1.02.0.0 rejects this.
 
9462
     It does not let you subtract one const X* pointer from another in
 
9463
     an arm of an if-expression whose if-part is not a constant
 
9464
     expression */
 
9465
  const char *g = "string";
 
9466
  ccp = &g + (g ? g-g : 0);
 
9467
  /* HPUX 7.0 cc rejects these. */
 
9468
  ++ccp;
 
9469
  p = (char**) ccp;
 
9470
  ccp = (char const *const *) p;
 
9471
  { /* SCO 3.2v4 cc rejects this.  */
 
9472
    char *t;
 
9473
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
9474
 
 
9475
    *t++ = 0;
 
9476
  }
 
9477
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
9478
    int x[] = {25, 17};
 
9479
    const int *foo = &x[0];
 
9480
    ++foo;
 
9481
  }
 
9482
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
9483
    typedef const int *iptr;
 
9484
    iptr p = 0;
 
9485
    ++p;
 
9486
  }
 
9487
  { /* AIX XL C 1.02.0.0 rejects this saying
 
9488
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
9489
    struct s { int j; const int *ap[3]; };
 
9490
    struct s *b; b->j = 5;
 
9491
  }
 
9492
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
9493
    const int foo = 10;
 
9494
  }
 
9495
#endif
 
9496
 
 
9497
  ;
 
9498
  return 0;
 
9499
}
 
9500
_ACEOF
 
9501
rm -f conftest.$ac_objext
 
9502
if { (eval echo "$as_me:9502: \"$ac_compile\"") >&5
 
9503
  (eval $ac_compile) 2>&5
 
9504
  ac_status=$?
 
9505
  echo "$as_me:9505: \$? = $ac_status" >&5
 
9506
  (exit $ac_status); } &&
 
9507
         { ac_try='test -s conftest.$ac_objext'
 
9508
  { (eval echo "$as_me:9508: \"$ac_try\"") >&5
 
9509
  (eval $ac_try) 2>&5
 
9510
  ac_status=$?
 
9511
  echo "$as_me:9511: \$? = $ac_status" >&5
 
9512
  (exit $ac_status); }; }; then
 
9513
  ac_cv_c_const=yes
 
9514
else
 
9515
  echo "$as_me: failed program was:" >&5
 
9516
cat conftest.$ac_ext >&5
 
9517
ac_cv_c_const=no
 
9518
fi
 
9519
rm -f conftest.$ac_objext conftest.$ac_ext
 
9520
fi
 
9521
echo "$as_me:9521: result: $ac_cv_c_const" >&5
 
9522
echo "${ECHO_T}$ac_cv_c_const" >&6
 
9523
if test $ac_cv_c_const = no; then
 
9524
 
 
9525
cat >>confdefs.h <<\EOF
 
9526
#define const
 
9527
EOF
 
9528
 
 
9529
fi
 
9530
 
 
9531
# Checks for include files, structures.
 
9532
echo "$as_me:9532: checking whether stat file-mode macros are broken" >&5
 
9533
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
 
9534
if test "${ac_cv_header_stat_broken+set}" = set; then
 
9535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9536
else
 
9537
  cat >conftest.$ac_ext <<_ACEOF
 
9538
#line 9538 "configure"
 
9539
#include "confdefs.h"
 
9540
#include <sys/types.h>
 
9541
#include <sys/stat.h>
 
9542
 
 
9543
#if defined(S_ISBLK) && defined(S_IFDIR)
 
9544
# if S_ISBLK (S_IFDIR)
 
9545
You lose.
 
9546
# endif
 
9547
#endif
 
9548
 
 
9549
#if defined(S_ISBLK) && defined(S_IFCHR)
 
9550
# if S_ISBLK (S_IFCHR)
 
9551
You lose.
 
9552
# endif
 
9553
#endif
 
9554
 
 
9555
#if defined(S_ISLNK) && defined(S_IFREG)
 
9556
# if S_ISLNK (S_IFREG)
 
9557
You lose.
 
9558
# endif
 
9559
#endif
 
9560
 
 
9561
#if defined(S_ISSOCK) && defined(S_IFREG)
 
9562
# if S_ISSOCK (S_IFREG)
 
9563
You lose.
 
9564
# endif
 
9565
#endif
 
9566
 
 
9567
_ACEOF
 
9568
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9569
  egrep "You lose" >/dev/null 2>&1; then
 
9570
  ac_cv_header_stat_broken=yes
 
9571
else
 
9572
  ac_cv_header_stat_broken=no
 
9573
fi
 
9574
rm -f conftest*
 
9575
 
 
9576
fi
 
9577
echo "$as_me:9577: result: $ac_cv_header_stat_broken" >&5
 
9578
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
9579
if test $ac_cv_header_stat_broken = yes; then
 
9580
 
 
9581
cat >>confdefs.h <<\EOF
 
9582
#define STAT_MACROS_BROKEN 1
 
9583
EOF
 
9584
 
 
9585
fi
 
9586
 
 
9587
echo "$as_me:9587: checking whether time.h and sys/time.h may both be included" >&5
 
9588
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
9589
if test "${ac_cv_header_time+set}" = set; then
 
9590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9591
else
 
9592
  cat >conftest.$ac_ext <<_ACEOF
 
9593
#line 9593 "configure"
 
9594
#include "confdefs.h"
 
9595
#include <sys/types.h>
 
9596
#include <sys/time.h>
 
9597
#include <time.h>
 
9598
 
 
9599
int
 
9600
main ()
 
9601
{
 
9602
struct tm *tp;
 
9603
  ;
 
9604
  return 0;
 
9605
}
 
9606
_ACEOF
 
9607
rm -f conftest.$ac_objext
 
9608
if { (eval echo "$as_me:9608: \"$ac_compile\"") >&5
 
9609
  (eval $ac_compile) 2>&5
 
9610
  ac_status=$?
 
9611
  echo "$as_me:9611: \$? = $ac_status" >&5
 
9612
  (exit $ac_status); } &&
 
9613
         { ac_try='test -s conftest.$ac_objext'
 
9614
  { (eval echo "$as_me:9614: \"$ac_try\"") >&5
 
9615
  (eval $ac_try) 2>&5
 
9616
  ac_status=$?
 
9617
  echo "$as_me:9617: \$? = $ac_status" >&5
 
9618
  (exit $ac_status); }; }; then
 
9619
  ac_cv_header_time=yes
 
9620
else
 
9621
  echo "$as_me: failed program was:" >&5
 
9622
cat conftest.$ac_ext >&5
 
9623
ac_cv_header_time=no
 
9624
fi
 
9625
rm -f conftest.$ac_objext conftest.$ac_ext
 
9626
fi
 
9627
echo "$as_me:9627: result: $ac_cv_header_time" >&5
 
9628
echo "${ECHO_T}$ac_cv_header_time" >&6
 
9629
if test $ac_cv_header_time = yes; then
 
9630
 
 
9631
cat >>confdefs.h <<\EOF
 
9632
#define TIME_WITH_SYS_TIME 1
 
9633
EOF
 
9634
 
 
9635
fi
 
9636
 
 
9637
ac_header_dirent=no
 
9638
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
9639
  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
 
9640
echo "$as_me:9640: checking for $ac_hdr that defines DIR" >&5
 
9641
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
9642
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
9643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9644
else
 
9645
  cat >conftest.$ac_ext <<_ACEOF
 
9646
#line 9646 "configure"
 
9647
#include "confdefs.h"
 
9648
#include <sys/types.h>
 
9649
#include <$ac_hdr>
 
9650
 
 
9651
int
 
9652
main ()
 
9653
{
 
9654
DIR *dirp = 0;
 
9655
  ;
 
9656
  return 0;
 
9657
}
 
9658
_ACEOF
 
9659
rm -f conftest.$ac_objext
 
9660
if { (eval echo "$as_me:9660: \"$ac_compile\"") >&5
 
9661
  (eval $ac_compile) 2>&5
 
9662
  ac_status=$?
 
9663
  echo "$as_me:9663: \$? = $ac_status" >&5
 
9664
  (exit $ac_status); } &&
 
9665
         { ac_try='test -s conftest.$ac_objext'
 
9666
  { (eval echo "$as_me:9666: \"$ac_try\"") >&5
 
9667
  (eval $ac_try) 2>&5
 
9668
  ac_status=$?
 
9669
  echo "$as_me:9669: \$? = $ac_status" >&5
 
9670
  (exit $ac_status); }; }; then
 
9671
  eval "$ac_ac_Header=yes"
 
9672
else
 
9673
  echo "$as_me: failed program was:" >&5
 
9674
cat conftest.$ac_ext >&5
 
9675
eval "$ac_ac_Header=no"
 
9676
fi
 
9677
rm -f conftest.$ac_objext conftest.$ac_ext
 
9678
fi
 
9679
echo "$as_me:9679: result: `eval echo '${'$ac_ac_Header'}'`" >&5
 
9680
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
 
9681
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
 
9682
  cat >>confdefs.h <<EOF
 
9683
#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
 
9684
EOF
 
9685
 
 
9686
ac_header_dirent=$ac_hdr; break
 
9687
fi
 
9688
 
 
9689
done
 
9690
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
9691
if test $ac_header_dirent = dirent.h; then
 
9692
  echo "$as_me:9692: checking for opendir in -ldir" >&5
 
9693
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
 
9694
if test "${ac_cv_lib_dir_opendir+set}" = set; then
 
9695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9696
else
 
9697
  ac_check_lib_save_LIBS=$LIBS
 
9698
LIBS="-ldir  $LIBS"
 
9699
cat >conftest.$ac_ext <<_ACEOF
 
9700
#line 9700 "configure"
 
9701
#include "confdefs.h"
 
9702
 
 
9703
/* Override any gcc2 internal prototype to avoid an error.  */
 
9704
#ifdef __cplusplus
 
9705
extern "C"
 
9706
#endif
 
9707
/* We use char because int might match the return type of a gcc2
 
9708
   builtin and then its argument prototype would still apply.  */
 
9709
char opendir ();
 
9710
int
 
9711
main ()
 
9712
{
 
9713
opendir ();
 
9714
  ;
 
9715
  return 0;
 
9716
}
 
9717
_ACEOF
 
9718
rm -f conftest.$ac_objext conftest$ac_exeext
 
9719
if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
 
9720
  (eval $ac_link) 2>&5
 
9721
  ac_status=$?
 
9722
  echo "$as_me:9722: \$? = $ac_status" >&5
 
9723
  (exit $ac_status); } &&
 
9724
         { ac_try='test -s conftest$ac_exeext'
 
9725
  { (eval echo "$as_me:9725: \"$ac_try\"") >&5
 
9726
  (eval $ac_try) 2>&5
 
9727
  ac_status=$?
 
9728
  echo "$as_me:9728: \$? = $ac_status" >&5
 
9729
  (exit $ac_status); }; }; then
 
9730
  ac_cv_lib_dir_opendir=yes
 
9731
else
 
9732
  echo "$as_me: failed program was:" >&5
 
9733
cat conftest.$ac_ext >&5
 
9734
ac_cv_lib_dir_opendir=no
 
9735
fi
 
9736
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9737
LIBS=$ac_check_lib_save_LIBS
 
9738
fi
 
9739
echo "$as_me:9739: result: $ac_cv_lib_dir_opendir" >&5
 
9740
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
 
9741
if test $ac_cv_lib_dir_opendir = yes; then
 
9742
  LIBS="$LIBS -ldir"
 
9743
fi
 
9744
 
 
9745
else
 
9746
  echo "$as_me:9746: checking for opendir in -lx" >&5
 
9747
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
 
9748
if test "${ac_cv_lib_x_opendir+set}" = set; then
 
9749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9750
else
 
9751
  ac_check_lib_save_LIBS=$LIBS
 
9752
LIBS="-lx  $LIBS"
 
9753
cat >conftest.$ac_ext <<_ACEOF
 
9754
#line 9754 "configure"
 
9755
#include "confdefs.h"
 
9756
 
 
9757
/* Override any gcc2 internal prototype to avoid an error.  */
 
9758
#ifdef __cplusplus
 
9759
extern "C"
 
9760
#endif
 
9761
/* We use char because int might match the return type of a gcc2
 
9762
   builtin and then its argument prototype would still apply.  */
 
9763
char opendir ();
 
9764
int
 
9765
main ()
 
9766
{
 
9767
opendir ();
 
9768
  ;
 
9769
  return 0;
 
9770
}
 
9771
_ACEOF
 
9772
rm -f conftest.$ac_objext conftest$ac_exeext
 
9773
if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
 
9774
  (eval $ac_link) 2>&5
 
9775
  ac_status=$?
 
9776
  echo "$as_me:9776: \$? = $ac_status" >&5
 
9777
  (exit $ac_status); } &&
 
9778
         { ac_try='test -s conftest$ac_exeext'
 
9779
  { (eval echo "$as_me:9779: \"$ac_try\"") >&5
 
9780
  (eval $ac_try) 2>&5
 
9781
  ac_status=$?
 
9782
  echo "$as_me:9782: \$? = $ac_status" >&5
 
9783
  (exit $ac_status); }; }; then
 
9784
  ac_cv_lib_x_opendir=yes
 
9785
else
 
9786
  echo "$as_me: failed program was:" >&5
 
9787
cat conftest.$ac_ext >&5
 
9788
ac_cv_lib_x_opendir=no
 
9789
fi
 
9790
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9791
LIBS=$ac_check_lib_save_LIBS
 
9792
fi
 
9793
echo "$as_me:9793: result: $ac_cv_lib_x_opendir" >&5
 
9794
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
 
9795
if test $ac_cv_lib_x_opendir = yes; then
 
9796
  LIBS="$LIBS -lx"
 
9797
fi
 
9798
 
 
9799
fi
 
9800
 
 
9801
for ac_header in sys/select.h
 
9802
do
 
9803
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
 
9804
echo "$as_me:9804: checking for $ac_header" >&5
 
9805
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9806
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
9807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9808
else
 
9809
  cat >conftest.$ac_ext <<_ACEOF
 
9810
#line 9810 "configure"
 
9811
#include "confdefs.h"
 
9812
#include <$ac_header>
 
9813
_ACEOF
 
9814
if { (eval echo "$as_me:9814: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9815
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9816
  ac_status=$?
 
9817
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9818
  rm -f conftest.er1
 
9819
  cat conftest.err >&5
 
9820
  echo "$as_me:9820: \$? = $ac_status" >&5
 
9821
  (exit $ac_status); } >/dev/null; then
 
9822
  if test -s conftest.err; then
 
9823
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9824
  else
 
9825
    ac_cpp_err=
 
9826
  fi
 
9827
else
 
9828
  ac_cpp_err=yes
 
9829
fi
 
9830
if test -z "$ac_cpp_err"; then
 
9831
  eval "$ac_ac_Header=yes"
 
9832
else
 
9833
  echo "$as_me: failed program was:" >&5
 
9834
  cat conftest.$ac_ext >&5
 
9835
  eval "$ac_ac_Header=no"
 
9836
fi
 
9837
rm -f conftest.err conftest.$ac_ext
 
9838
fi
 
9839
echo "$as_me:9839: result: `eval echo '${'$ac_ac_Header'}'`" >&5
 
9840
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
 
9841
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
 
9842
  cat >>confdefs.h <<EOF
 
9843
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
 
9844
EOF
 
9845
 
 
9846
fi
 
9847
done
 
9848
 
 
9849
for ac_header in sys/time.h
 
9850
do
 
9851
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
 
9852
echo "$as_me:9852: checking for $ac_header" >&5
 
9853
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9854
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
9855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9856
else
 
9857
  cat >conftest.$ac_ext <<_ACEOF
 
9858
#line 9858 "configure"
 
9859
#include "confdefs.h"
 
9860
#include <$ac_header>
 
9861
_ACEOF
 
9862
if { (eval echo "$as_me:9862: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9863
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9864
  ac_status=$?
 
9865
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9866
  rm -f conftest.er1
 
9867
  cat conftest.err >&5
 
9868
  echo "$as_me:9868: \$? = $ac_status" >&5
 
9869
  (exit $ac_status); } >/dev/null; then
 
9870
  if test -s conftest.err; then
 
9871
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9872
  else
 
9873
    ac_cpp_err=
 
9874
  fi
 
9875
else
 
9876
  ac_cpp_err=yes
 
9877
fi
 
9878
if test -z "$ac_cpp_err"; then
 
9879
  eval "$ac_ac_Header=yes"
 
9880
else
 
9881
  echo "$as_me: failed program was:" >&5
 
9882
  cat conftest.$ac_ext >&5
 
9883
  eval "$ac_ac_Header=no"
 
9884
fi
 
9885
rm -f conftest.err conftest.$ac_ext
 
9886
fi
 
9887
echo "$as_me:9887: result: `eval echo '${'$ac_ac_Header'}'`" >&5
 
9888
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
 
9889
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
 
9890
  cat >>confdefs.h <<EOF
 
9891
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
 
9892
EOF
 
9893
 
 
9894
fi
 
9895
done
 
9896
 
 
9897
echo "$as_me:9897: checking for ANSI C header files" >&5
 
9898
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
9899
if test "${ac_cv_header_stdc+set}" = set; then
 
9900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9901
else
 
9902
  cat >conftest.$ac_ext <<_ACEOF
 
9903
#line 9903 "configure"
 
9904
#include "confdefs.h"
 
9905
#include <stdlib.h>
 
9906
#include <stdarg.h>
 
9907
#include <string.h>
 
9908
#include <float.h>
 
9909
 
 
9910
_ACEOF
 
9911
if { (eval echo "$as_me:9911: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9912
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9913
  ac_status=$?
 
9914
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9915
  rm -f conftest.er1
 
9916
  cat conftest.err >&5
 
9917
  echo "$as_me:9917: \$? = $ac_status" >&5
 
9918
  (exit $ac_status); } >/dev/null; then
 
9919
  if test -s conftest.err; then
 
9920
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9921
  else
 
9922
    ac_cpp_err=
 
9923
  fi
 
9924
else
 
9925
  ac_cpp_err=yes
 
9926
fi
 
9927
if test -z "$ac_cpp_err"; then
 
9928
  ac_cv_header_stdc=yes
 
9929
else
 
9930
  echo "$as_me: failed program was:" >&5
 
9931
  cat conftest.$ac_ext >&5
 
9932
  ac_cv_header_stdc=no
 
9933
fi
 
9934
rm -f conftest.err conftest.$ac_ext
 
9935
 
 
9936
if test $ac_cv_header_stdc = yes; then
 
9937
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
9938
  cat >conftest.$ac_ext <<_ACEOF
 
9939
#line 9939 "configure"
 
9940
#include "confdefs.h"
 
9941
#include <string.h>
 
9942
 
 
9943
_ACEOF
 
9944
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9945
  egrep "memchr" >/dev/null 2>&1; then
 
9946
  :
 
9947
else
 
9948
  ac_cv_header_stdc=no
 
9949
fi
 
9950
rm -f conftest*
 
9951
 
 
9952
fi
 
9953
 
 
9954
if test $ac_cv_header_stdc = yes; then
 
9955
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
9956
  cat >conftest.$ac_ext <<_ACEOF
 
9957
#line 9957 "configure"
 
9958
#include "confdefs.h"
 
9959
#include <stdlib.h>
 
9960
 
 
9961
_ACEOF
 
9962
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9963
  egrep "free" >/dev/null 2>&1; then
 
9964
  :
 
9965
else
 
9966
  ac_cv_header_stdc=no
 
9967
fi
 
9968
rm -f conftest*
 
9969
 
 
9970
fi
 
9971
 
 
9972
if test $ac_cv_header_stdc = yes; then
 
9973
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
9974
  if test "$cross_compiling" = yes; then
 
9975
  :
 
9976
else
 
9977
  cat >conftest.$ac_ext <<_ACEOF
 
9978
#line 9978 "configure"
 
9979
#include "confdefs.h"
 
9980
#include <ctype.h>
 
9981
#if ((' ' & 0x0FF) == 0x020)
 
9982
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
9983
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
9984
#else
 
9985
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
9986
                     || ('j' <= (c) && (c) <= 'r') \
 
9987
                     || ('s' <= (c) && (c) <= 'z'))
 
9988
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
9989
#endif
 
9990
 
 
9991
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
9992
int
 
9993
main ()
 
9994
{
 
9995
  int i;
 
9996
  for (i = 0; i < 256; i++)
 
9997
    if (XOR (islower (i), ISLOWER (i))
 
9998
        || toupper (i) != TOUPPER (i))
 
9999
      exit(2);
 
10000
  exit (0);
 
10001
}
 
10002
_ACEOF
 
10003
rm -f conftest$ac_exeext
 
10004
if { (eval echo "$as_me:10004: \"$ac_link\"") >&5
 
10005
  (eval $ac_link) 2>&5
 
10006
  ac_status=$?
 
10007
  echo "$as_me:10007: \$? = $ac_status" >&5
 
10008
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10009
  { (eval echo "$as_me:10009: \"$ac_try\"") >&5
 
10010
  (eval $ac_try) 2>&5
 
10011
  ac_status=$?
 
10012
  echo "$as_me:10012: \$? = $ac_status" >&5
 
10013
  (exit $ac_status); }; }; then
 
10014
  :
 
10015
else
 
10016
  echo "$as_me: program exited with status $ac_status" >&5
 
10017
echo "$as_me: failed program was:" >&5
 
10018
cat conftest.$ac_ext >&5
 
10019
ac_cv_header_stdc=no
 
10020
fi
 
10021
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10022
fi
 
10023
fi
 
10024
fi
 
10025
echo "$as_me:10025: result: $ac_cv_header_stdc" >&5
 
10026
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
10027
if test $ac_cv_header_stdc = yes; then
 
10028
 
 
10029
cat >>confdefs.h <<\EOF
 
10030
#define STDC_HEADERS 1
 
10031
EOF
 
10032
 
 
10033
fi
 
10034
 
 
10035
for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
 
10036
do
 
10037
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
 
10038
echo "$as_me:10038: checking for $ac_header" >&5
 
10039
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10040
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
10041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10042
else
 
10043
  cat >conftest.$ac_ext <<_ACEOF
 
10044
#line 10044 "configure"
 
10045
#include "confdefs.h"
 
10046
#include <$ac_header>
 
10047
_ACEOF
 
10048
if { (eval echo "$as_me:10048: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10049
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10050
  ac_status=$?
 
10051
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10052
  rm -f conftest.er1
 
10053
  cat conftest.err >&5
 
10054
  echo "$as_me:10054: \$? = $ac_status" >&5
 
10055
  (exit $ac_status); } >/dev/null; then
 
10056
  if test -s conftest.err; then
 
10057
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10058
  else
 
10059
    ac_cpp_err=
 
10060
  fi
 
10061
else
 
10062
  ac_cpp_err=yes
 
10063
fi
 
10064
if test -z "$ac_cpp_err"; then
 
10065
  eval "$ac_ac_Header=yes"
 
10066
else
 
10067
  echo "$as_me: failed program was:" >&5
 
10068
  cat conftest.$ac_ext >&5
 
10069
  eval "$ac_ac_Header=no"
 
10070
fi
 
10071
rm -f conftest.err conftest.$ac_ext
 
10072
fi
 
10073
echo "$as_me:10073: result: `eval echo '${'$ac_ac_Header'}'`" >&5
 
10074
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
 
10075
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
 
10076
  cat >>confdefs.h <<EOF
 
10077
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
 
10078
EOF
 
10079
 
 
10080
fi
 
10081
done
 
10082
 
 
10083
echo "$as_me:10083: checking for struct stat.st_blksize" >&5
 
10084
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
 
10085
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
 
10086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10087
else
 
10088
  cat >conftest.$ac_ext <<_ACEOF
 
10089
#line 10089 "configure"
 
10090
#include "confdefs.h"
 
10091
$ac_includes_default
 
10092
int
 
10093
main ()
 
10094
{
 
10095
struct stat foo;
 
10096
foo.st_blksize;
 
10097
  ;
 
10098
  return 0;
 
10099
}
 
10100
_ACEOF
 
10101
rm -f conftest.$ac_objext
 
10102
if { (eval echo "$as_me:10102: \"$ac_compile\"") >&5
 
10103
  (eval $ac_compile) 2>&5
 
10104
  ac_status=$?
 
10105
  echo "$as_me:10105: \$? = $ac_status" >&5
 
10106
  (exit $ac_status); } &&
 
10107
         { ac_try='test -s conftest.$ac_objext'
 
10108
  { (eval echo "$as_me:10108: \"$ac_try\"") >&5
 
10109
  (eval $ac_try) 2>&5
 
10110
  ac_status=$?
 
10111
  echo "$as_me:10111: \$? = $ac_status" >&5
 
10112
  (exit $ac_status); }; }; then
 
10113
  ac_cv_member_struct_stat_st_blksize=yes
 
10114
else
 
10115
  echo "$as_me: failed program was:" >&5
 
10116
cat conftest.$ac_ext >&5
 
10117
ac_cv_member_struct_stat_st_blksize=no
 
10118
fi
 
10119
rm -f conftest.$ac_objext conftest.$ac_ext
 
10120
fi
 
10121
echo "$as_me:10121: result: $ac_cv_member_struct_stat_st_blksize" >&5
 
10122
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
 
10123
if test $ac_cv_member_struct_stat_st_blksize = yes; then
 
10124
 
 
10125
cat >>confdefs.h <<EOF
 
10126
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
 
10127
EOF
 
10128
 
 
10129
fi
 
10130
 
 
10131
# Check for C types.
 
10132
 
 
10133
echo "$as_me:10133: checking for mode_t" >&5
 
10134
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
 
10135
if test "${ac_cv_type_mode_t+set}" = set; then
 
10136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10137
else
 
10138
  cat >conftest.$ac_ext <<_ACEOF
 
10139
#line 10139 "configure"
 
10140
#include "confdefs.h"
 
10141
$ac_includes_default
 
10142
int
 
10143
main ()
 
10144
{
 
10145
if ((mode_t *) 0)
 
10146
  return 0;
 
10147
if (sizeof (mode_t))
 
10148
  return 0;
 
10149
  ;
 
10150
  return 0;
 
10151
}
 
10152
_ACEOF
 
10153
rm -f conftest.$ac_objext
 
10154
if { (eval echo "$as_me:10154: \"$ac_compile\"") >&5
 
10155
  (eval $ac_compile) 2>&5
 
10156
  ac_status=$?
 
10157
  echo "$as_me:10157: \$? = $ac_status" >&5
 
10158
  (exit $ac_status); } &&
 
10159
         { ac_try='test -s conftest.$ac_objext'
 
10160
  { (eval echo "$as_me:10160: \"$ac_try\"") >&5
 
10161
  (eval $ac_try) 2>&5
 
10162
  ac_status=$?
 
10163
  echo "$as_me:10163: \$? = $ac_status" >&5
 
10164
  (exit $ac_status); }; }; then
 
10165
  ac_cv_type_mode_t=yes
 
10166
else
 
10167
  echo "$as_me: failed program was:" >&5
 
10168
cat conftest.$ac_ext >&5
 
10169
ac_cv_type_mode_t=no
 
10170
fi
 
10171
rm -f conftest.$ac_objext conftest.$ac_ext
 
10172
fi
 
10173
echo "$as_me:10173: result: $ac_cv_type_mode_t" >&5
 
10174
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
 
10175
if test $ac_cv_type_mode_t = yes; then
 
10176
  :
 
10177
else
 
10178
 
 
10179
cat >>confdefs.h <<EOF
 
10180
#define mode_t int
 
10181
EOF
 
10182
 
 
10183
fi
 
10184
 
 
10185
echo "$as_me:10185: checking for off_t" >&5
 
10186
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
10187
if test "${ac_cv_type_off_t+set}" = set; then
 
10188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10189
else
 
10190
  cat >conftest.$ac_ext <<_ACEOF
 
10191
#line 10191 "configure"
 
10192
#include "confdefs.h"
 
10193
$ac_includes_default
 
10194
int
 
10195
main ()
 
10196
{
 
10197
if ((off_t *) 0)
 
10198
  return 0;
 
10199
if (sizeof (off_t))
 
10200
  return 0;
 
10201
  ;
 
10202
  return 0;
 
10203
}
 
10204
_ACEOF
 
10205
rm -f conftest.$ac_objext
 
10206
if { (eval echo "$as_me:10206: \"$ac_compile\"") >&5
 
10207
  (eval $ac_compile) 2>&5
 
10208
  ac_status=$?
 
10209
  echo "$as_me:10209: \$? = $ac_status" >&5
 
10210
  (exit $ac_status); } &&
 
10211
         { ac_try='test -s conftest.$ac_objext'
 
10212
  { (eval echo "$as_me:10212: \"$ac_try\"") >&5
 
10213
  (eval $ac_try) 2>&5
 
10214
  ac_status=$?
 
10215
  echo "$as_me:10215: \$? = $ac_status" >&5
 
10216
  (exit $ac_status); }; }; then
 
10217
  ac_cv_type_off_t=yes
 
10218
else
 
10219
  echo "$as_me: failed program was:" >&5
 
10220
cat conftest.$ac_ext >&5
 
10221
ac_cv_type_off_t=no
 
10222
fi
 
10223
rm -f conftest.$ac_objext conftest.$ac_ext
 
10224
fi
 
10225
echo "$as_me:10225: result: $ac_cv_type_off_t" >&5
 
10226
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
10227
if test $ac_cv_type_off_t = yes; then
 
10228
  :
 
10229
else
 
10230
 
 
10231
cat >>confdefs.h <<EOF
 
10232
#define off_t long
 
10233
EOF
 
10234
 
 
10235
fi
 
10236
 
 
10237
echo "$as_me:10237: checking for pid_t" >&5
 
10238
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
10239
if test "${ac_cv_type_pid_t+set}" = set; then
 
10240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10241
else
 
10242
  cat >conftest.$ac_ext <<_ACEOF
 
10243
#line 10243 "configure"
 
10244
#include "confdefs.h"
 
10245
$ac_includes_default
 
10246
int
 
10247
main ()
 
10248
{
 
10249
if ((pid_t *) 0)
 
10250
  return 0;
 
10251
if (sizeof (pid_t))
 
10252
  return 0;
 
10253
  ;
 
10254
  return 0;
 
10255
}
 
10256
_ACEOF
 
10257
rm -f conftest.$ac_objext
 
10258
if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
 
10259
  (eval $ac_compile) 2>&5
 
10260
  ac_status=$?
 
10261
  echo "$as_me:10261: \$? = $ac_status" >&5
 
10262
  (exit $ac_status); } &&
 
10263
         { ac_try='test -s conftest.$ac_objext'
 
10264
  { (eval echo "$as_me:10264: \"$ac_try\"") >&5
 
10265
  (eval $ac_try) 2>&5
 
10266
  ac_status=$?
 
10267
  echo "$as_me:10267: \$? = $ac_status" >&5
 
10268
  (exit $ac_status); }; }; then
 
10269
  ac_cv_type_pid_t=yes
 
10270
else
 
10271
  echo "$as_me: failed program was:" >&5
 
10272
cat conftest.$ac_ext >&5
 
10273
ac_cv_type_pid_t=no
 
10274
fi
 
10275
rm -f conftest.$ac_objext conftest.$ac_ext
 
10276
fi
 
10277
echo "$as_me:10277: result: $ac_cv_type_pid_t" >&5
 
10278
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
10279
if test $ac_cv_type_pid_t = yes; then
 
10280
  :
 
10281
else
 
10282
 
 
10283
cat >>confdefs.h <<EOF
 
10284
#define pid_t int
 
10285
EOF
 
10286
 
 
10287
fi
 
10288
 
 
10289
echo "$as_me:10289: checking for size_t" >&5
 
10290
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
10291
if test "${ac_cv_type_size_t+set}" = set; then
 
10292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10293
else
 
10294
  cat >conftest.$ac_ext <<_ACEOF
 
10295
#line 10295 "configure"
 
10296
#include "confdefs.h"
 
10297
$ac_includes_default
 
10298
int
 
10299
main ()
 
10300
{
 
10301
if ((size_t *) 0)
 
10302
  return 0;
 
10303
if (sizeof (size_t))
 
10304
  return 0;
 
10305
  ;
 
10306
  return 0;
 
10307
}
 
10308
_ACEOF
 
10309
rm -f conftest.$ac_objext
 
10310
if { (eval echo "$as_me:10310: \"$ac_compile\"") >&5
 
10311
  (eval $ac_compile) 2>&5
 
10312
  ac_status=$?
 
10313
  echo "$as_me:10313: \$? = $ac_status" >&5
 
10314
  (exit $ac_status); } &&
 
10315
         { ac_try='test -s conftest.$ac_objext'
 
10316
  { (eval echo "$as_me:10316: \"$ac_try\"") >&5
 
10317
  (eval $ac_try) 2>&5
 
10318
  ac_status=$?
 
10319
  echo "$as_me:10319: \$? = $ac_status" >&5
 
10320
  (exit $ac_status); }; }; then
 
10321
  ac_cv_type_size_t=yes
 
10322
else
 
10323
  echo "$as_me: failed program was:" >&5
 
10324
cat conftest.$ac_ext >&5
 
10325
ac_cv_type_size_t=no
 
10326
fi
 
10327
rm -f conftest.$ac_objext conftest.$ac_ext
 
10328
fi
 
10329
echo "$as_me:10329: result: $ac_cv_type_size_t" >&5
 
10330
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
10331
if test $ac_cv_type_size_t = yes; then
 
10332
  :
 
10333
else
 
10334
 
 
10335
cat >>confdefs.h <<EOF
 
10336
#define size_t unsigned
 
10337
EOF
 
10338
 
 
10339
fi
 
10340
 
 
10341
echo "$as_me:10341: checking for u_char" >&5
 
10342
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
 
10343
if test "${db_cv_uchar+set}" = set; then
 
10344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10345
else
 
10346
 
 
10347
cat >conftest.$ac_ext <<_ACEOF
 
10348
#line 10348 "configure"
 
10349
#include "confdefs.h"
 
10350
#include <sys/types.h>
 
10351
int
 
10352
main ()
 
10353
{
 
10354
u_char foo;
 
10355
  ;
 
10356
  return 0;
 
10357
}
 
10358
_ACEOF
 
10359
rm -f conftest.$ac_objext
 
10360
if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
 
10361
  (eval $ac_compile) 2>&5
 
10362
  ac_status=$?
 
10363
  echo "$as_me:10363: \$? = $ac_status" >&5
 
10364
  (exit $ac_status); } &&
 
10365
         { ac_try='test -s conftest.$ac_objext'
 
10366
  { (eval echo "$as_me:10366: \"$ac_try\"") >&5
 
10367
  (eval $ac_try) 2>&5
 
10368
  ac_status=$?
 
10369
  echo "$as_me:10369: \$? = $ac_status" >&5
 
10370
  (exit $ac_status); }; }; then
 
10371
  db_cv_uchar=yes
 
10372
else
 
10373
  echo "$as_me: failed program was:" >&5
 
10374
cat conftest.$ac_ext >&5
 
10375
db_cv_uchar=no
 
10376
fi
 
10377
rm -f conftest.$ac_objext conftest.$ac_ext
 
10378
fi
 
10379
echo "$as_me:10379: result: $db_cv_uchar" >&5
 
10380
echo "${ECHO_T}$db_cv_uchar" >&6
 
10381
if test "$db_cv_uchar" = no; then
 
10382
        u_char_decl="typedef unsigned char u_char;"
 
10383
fi
 
10384
 
 
10385
echo "$as_me:10385: checking for u_short" >&5
 
10386
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
 
10387
if test "${db_cv_ushort+set}" = set; then
 
10388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10389
else
 
10390
 
 
10391
cat >conftest.$ac_ext <<_ACEOF
 
10392
#line 10392 "configure"
 
10393
#include "confdefs.h"
 
10394
#include <sys/types.h>
 
10395
int
 
10396
main ()
 
10397
{
 
10398
u_short foo;
 
10399
  ;
 
10400
  return 0;
 
10401
}
 
10402
_ACEOF
 
10403
rm -f conftest.$ac_objext
 
10404
if { (eval echo "$as_me:10404: \"$ac_compile\"") >&5
 
10405
  (eval $ac_compile) 2>&5
 
10406
  ac_status=$?
 
10407
  echo "$as_me:10407: \$? = $ac_status" >&5
 
10408
  (exit $ac_status); } &&
 
10409
         { ac_try='test -s conftest.$ac_objext'
 
10410
  { (eval echo "$as_me:10410: \"$ac_try\"") >&5
 
10411
  (eval $ac_try) 2>&5
 
10412
  ac_status=$?
 
10413
  echo "$as_me:10413: \$? = $ac_status" >&5
 
10414
  (exit $ac_status); }; }; then
 
10415
  db_cv_ushort=yes
 
10416
else
 
10417
  echo "$as_me: failed program was:" >&5
 
10418
cat conftest.$ac_ext >&5
 
10419
db_cv_ushort=no
 
10420
fi
 
10421
rm -f conftest.$ac_objext conftest.$ac_ext
 
10422
fi
 
10423
echo "$as_me:10423: result: $db_cv_ushort" >&5
 
10424
echo "${ECHO_T}$db_cv_ushort" >&6
 
10425
if test "$db_cv_ushort" = no; then
 
10426
        u_short_decl="typedef unsigned short u_short;"
 
10427
fi
 
10428
 
 
10429
echo "$as_me:10429: checking for u_int" >&5
 
10430
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
 
10431
if test "${db_cv_uint+set}" = set; then
 
10432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10433
else
 
10434
 
 
10435
cat >conftest.$ac_ext <<_ACEOF
 
10436
#line 10436 "configure"
 
10437
#include "confdefs.h"
 
10438
#include <sys/types.h>
 
10439
int
 
10440
main ()
 
10441
{
 
10442
u_int foo;
 
10443
  ;
 
10444
  return 0;
 
10445
}
 
10446
_ACEOF
 
10447
rm -f conftest.$ac_objext
 
10448
if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
 
10449
  (eval $ac_compile) 2>&5
 
10450
  ac_status=$?
 
10451
  echo "$as_me:10451: \$? = $ac_status" >&5
 
10452
  (exit $ac_status); } &&
 
10453
         { ac_try='test -s conftest.$ac_objext'
 
10454
  { (eval echo "$as_me:10454: \"$ac_try\"") >&5
 
10455
  (eval $ac_try) 2>&5
 
10456
  ac_status=$?
 
10457
  echo "$as_me:10457: \$? = $ac_status" >&5
 
10458
  (exit $ac_status); }; }; then
 
10459
  db_cv_uint=yes
 
10460
else
 
10461
  echo "$as_me: failed program was:" >&5
 
10462
cat conftest.$ac_ext >&5
 
10463
db_cv_uint=no
 
10464
fi
 
10465
rm -f conftest.$ac_objext conftest.$ac_ext
 
10466
fi
 
10467
echo "$as_me:10467: result: $db_cv_uint" >&5
 
10468
echo "${ECHO_T}$db_cv_uint" >&6
 
10469
if test "$db_cv_uint" = no; then
 
10470
        u_int_decl="typedef unsigned int u_int;"
 
10471
fi
 
10472
 
 
10473
echo "$as_me:10473: checking for u_long" >&5
 
10474
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
 
10475
if test "${db_cv_ulong+set}" = set; then
 
10476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10477
else
 
10478
 
 
10479
cat >conftest.$ac_ext <<_ACEOF
 
10480
#line 10480 "configure"
 
10481
#include "confdefs.h"
 
10482
#include <sys/types.h>
 
10483
int
 
10484
main ()
 
10485
{
 
10486
u_long foo;
 
10487
  ;
 
10488
  return 0;
 
10489
}
 
10490
_ACEOF
 
10491
rm -f conftest.$ac_objext
 
10492
if { (eval echo "$as_me:10492: \"$ac_compile\"") >&5
 
10493
  (eval $ac_compile) 2>&5
 
10494
  ac_status=$?
 
10495
  echo "$as_me:10495: \$? = $ac_status" >&5
 
10496
  (exit $ac_status); } &&
 
10497
         { ac_try='test -s conftest.$ac_objext'
 
10498
  { (eval echo "$as_me:10498: \"$ac_try\"") >&5
 
10499
  (eval $ac_try) 2>&5
 
10500
  ac_status=$?
 
10501
  echo "$as_me:10501: \$? = $ac_status" >&5
 
10502
  (exit $ac_status); }; }; then
 
10503
  db_cv_ulong=yes
 
10504
else
 
10505
  echo "$as_me: failed program was:" >&5
 
10506
cat conftest.$ac_ext >&5
 
10507
db_cv_ulong=no
 
10508
fi
 
10509
rm -f conftest.$ac_objext conftest.$ac_ext
 
10510
fi
 
10511
echo "$as_me:10511: result: $db_cv_ulong" >&5
 
10512
echo "${ECHO_T}$db_cv_ulong" >&6
 
10513
if test "$db_cv_ulong" = no; then
 
10514
        u_long_decl="typedef unsigned long u_long;"
 
10515
fi
 
10516
 
 
10517
# DB/Vi use specific integer sizes.
 
10518
 
 
10519
echo "$as_me:10519: checking for u_int8_t" >&5
 
10520
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
 
10521
if test "${db_cv_uint8+set}" = set; then
 
10522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10523
else
 
10524
 
 
10525
cat >conftest.$ac_ext <<_ACEOF
 
10526
#line 10526 "configure"
 
10527
#include "confdefs.h"
 
10528
#include <sys/types.h>
 
10529
int
 
10530
main ()
 
10531
{
 
10532
u_int8_t foo;
 
10533
  ;
 
10534
  return 0;
 
10535
}
 
10536
_ACEOF
 
10537
rm -f conftest.$ac_objext
 
10538
if { (eval echo "$as_me:10538: \"$ac_compile\"") >&5
 
10539
  (eval $ac_compile) 2>&5
 
10540
  ac_status=$?
 
10541
  echo "$as_me:10541: \$? = $ac_status" >&5
 
10542
  (exit $ac_status); } &&
 
10543
         { ac_try='test -s conftest.$ac_objext'
 
10544
  { (eval echo "$as_me:10544: \"$ac_try\"") >&5
 
10545
  (eval $ac_try) 2>&5
 
10546
  ac_status=$?
 
10547
  echo "$as_me:10547: \$? = $ac_status" >&5
 
10548
  (exit $ac_status); }; }; then
 
10549
  db_cv_uint8=yes
 
10550
else
 
10551
  echo "$as_me: failed program was:" >&5
 
10552
cat conftest.$ac_ext >&5
 
10553
if test "$cross_compiling" = yes; then
 
10554
  { { echo "$as_me:10554: error: cannot run test program while cross compiling" >&5
 
10555
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10556
   { (exit 1); exit 1; }; }
 
10557
else
 
10558
  cat >conftest.$ac_ext <<_ACEOF
 
10559
#line 10559 "configure"
 
10560
#include "confdefs.h"
 
10561
main(){exit(sizeof(unsigned char) != 1);}
 
10562
_ACEOF
 
10563
rm -f conftest$ac_exeext
 
10564
if { (eval echo "$as_me:10564: \"$ac_link\"") >&5
 
10565
  (eval $ac_link) 2>&5
 
10566
  ac_status=$?
 
10567
  echo "$as_me:10567: \$? = $ac_status" >&5
 
10568
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10569
  { (eval echo "$as_me:10569: \"$ac_try\"") >&5
 
10570
  (eval $ac_try) 2>&5
 
10571
  ac_status=$?
 
10572
  echo "$as_me:10572: \$? = $ac_status" >&5
 
10573
  (exit $ac_status); }; }; then
 
10574
  db_cv_uint8="unsigned char"
 
10575
else
 
10576
  echo "$as_me: program exited with status $ac_status" >&5
 
10577
echo "$as_me: failed program was:" >&5
 
10578
cat conftest.$ac_ext >&5
 
10579
db_cv_uint8=no
 
10580
fi
 
10581
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10582
fi
 
10583
fi
 
10584
rm -f conftest.$ac_objext conftest.$ac_ext
 
10585
fi
 
10586
echo "$as_me:10586: result: $db_cv_uint8" >&5
 
10587
echo "${ECHO_T}$db_cv_uint8" >&6
 
10588
if test "$db_cv_uint8" = no; then
 
10589
        { { echo "$as_me:10589: error: No unsigned 8-bit integral type." >&5
 
10590
echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
 
10591
   { (exit 1); exit 1; }; }
 
10592
fi
 
10593
if test "$db_cv_uint8" != yes; then
 
10594
        u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
 
10595
fi
 
10596
 
 
10597
echo "$as_me:10597: checking for u_int16_t" >&5
 
10598
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
 
10599
if test "${db_cv_uint16+set}" = set; then
 
10600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10601
else
 
10602
 
 
10603
cat >conftest.$ac_ext <<_ACEOF
 
10604
#line 10604 "configure"
 
10605
#include "confdefs.h"
 
10606
#include <sys/types.h>
 
10607
int
 
10608
main ()
 
10609
{
 
10610
u_int16_t foo;
 
10611
  ;
 
10612
  return 0;
 
10613
}
 
10614
_ACEOF
 
10615
rm -f conftest.$ac_objext
 
10616
if { (eval echo "$as_me:10616: \"$ac_compile\"") >&5
 
10617
  (eval $ac_compile) 2>&5
 
10618
  ac_status=$?
 
10619
  echo "$as_me:10619: \$? = $ac_status" >&5
 
10620
  (exit $ac_status); } &&
 
10621
         { ac_try='test -s conftest.$ac_objext'
 
10622
  { (eval echo "$as_me:10622: \"$ac_try\"") >&5
 
10623
  (eval $ac_try) 2>&5
 
10624
  ac_status=$?
 
10625
  echo "$as_me:10625: \$? = $ac_status" >&5
 
10626
  (exit $ac_status); }; }; then
 
10627
  db_cv_uint16=yes
 
10628
else
 
10629
  echo "$as_me: failed program was:" >&5
 
10630
cat conftest.$ac_ext >&5
 
10631
if test "$cross_compiling" = yes; then
 
10632
  { { echo "$as_me:10632: error: cannot run test program while cross compiling" >&5
 
10633
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10634
   { (exit 1); exit 1; }; }
 
10635
else
 
10636
  cat >conftest.$ac_ext <<_ACEOF
 
10637
#line 10637 "configure"
 
10638
#include "confdefs.h"
 
10639
main(){exit(sizeof(unsigned short) != 2);}
 
10640
_ACEOF
 
10641
rm -f conftest$ac_exeext
 
10642
if { (eval echo "$as_me:10642: \"$ac_link\"") >&5
 
10643
  (eval $ac_link) 2>&5
 
10644
  ac_status=$?
 
10645
  echo "$as_me:10645: \$? = $ac_status" >&5
 
10646
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10647
  { (eval echo "$as_me:10647: \"$ac_try\"") >&5
 
10648
  (eval $ac_try) 2>&5
 
10649
  ac_status=$?
 
10650
  echo "$as_me:10650: \$? = $ac_status" >&5
 
10651
  (exit $ac_status); }; }; then
 
10652
  db_cv_uint16="unsigned short"
 
10653
else
 
10654
  echo "$as_me: program exited with status $ac_status" >&5
 
10655
echo "$as_me: failed program was:" >&5
 
10656
cat conftest.$ac_ext >&5
 
10657
if test "$cross_compiling" = yes; then
 
10658
  { { echo "$as_me:10658: error: cannot run test program while cross compiling" >&5
 
10659
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10660
   { (exit 1); exit 1; }; }
 
10661
else
 
10662
  cat >conftest.$ac_ext <<_ACEOF
 
10663
#line 10663 "configure"
 
10664
#include "confdefs.h"
 
10665
main(){exit(sizeof(unsigned int) != 2);}
 
10666
_ACEOF
 
10667
rm -f conftest$ac_exeext
 
10668
if { (eval echo "$as_me:10668: \"$ac_link\"") >&5
 
10669
  (eval $ac_link) 2>&5
 
10670
  ac_status=$?
 
10671
  echo "$as_me:10671: \$? = $ac_status" >&5
 
10672
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10673
  { (eval echo "$as_me:10673: \"$ac_try\"") >&5
 
10674
  (eval $ac_try) 2>&5
 
10675
  ac_status=$?
 
10676
  echo "$as_me:10676: \$? = $ac_status" >&5
 
10677
  (exit $ac_status); }; }; then
 
10678
  db_cv_uint16="unsigned int"
 
10679
else
 
10680
  echo "$as_me: program exited with status $ac_status" >&5
 
10681
echo "$as_me: failed program was:" >&5
 
10682
cat conftest.$ac_ext >&5
 
10683
db_cv_uint16=no
 
10684
fi
 
10685
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10686
fi
 
10687
fi
 
10688
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10689
fi
 
10690
fi
 
10691
rm -f conftest.$ac_objext conftest.$ac_ext
 
10692
fi
 
10693
echo "$as_me:10693: result: $db_cv_uint16" >&5
 
10694
echo "${ECHO_T}$db_cv_uint16" >&6
 
10695
if test "$db_cv_uint16" = no; then
 
10696
        { { echo "$as_me:10696: error: No unsigned 16-bit integral type." >&5
 
10697
echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
 
10698
   { (exit 1); exit 1; }; }
 
10699
fi
 
10700
if test "$db_cv_uint16" != yes; then
 
10701
        u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
 
10702
fi
 
10703
 
 
10704
echo "$as_me:10704: checking for int16_t" >&5
 
10705
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
 
10706
if test "${db_cv_int16+set}" = set; then
 
10707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10708
else
 
10709
 
 
10710
cat >conftest.$ac_ext <<_ACEOF
 
10711
#line 10711 "configure"
 
10712
#include "confdefs.h"
 
10713
#include <sys/types.h>
 
10714
int
 
10715
main ()
 
10716
{
 
10717
int16_t foo;
 
10718
  ;
 
10719
  return 0;
 
10720
}
 
10721
_ACEOF
 
10722
rm -f conftest.$ac_objext
 
10723
if { (eval echo "$as_me:10723: \"$ac_compile\"") >&5
 
10724
  (eval $ac_compile) 2>&5
 
10725
  ac_status=$?
 
10726
  echo "$as_me:10726: \$? = $ac_status" >&5
 
10727
  (exit $ac_status); } &&
 
10728
         { ac_try='test -s conftest.$ac_objext'
 
10729
  { (eval echo "$as_me:10729: \"$ac_try\"") >&5
 
10730
  (eval $ac_try) 2>&5
 
10731
  ac_status=$?
 
10732
  echo "$as_me:10732: \$? = $ac_status" >&5
 
10733
  (exit $ac_status); }; }; then
 
10734
  db_cv_int16=yes
 
10735
else
 
10736
  echo "$as_me: failed program was:" >&5
 
10737
cat conftest.$ac_ext >&5
 
10738
if test "$cross_compiling" = yes; then
 
10739
  { { echo "$as_me:10739: error: cannot run test program while cross compiling" >&5
 
10740
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10741
   { (exit 1); exit 1; }; }
 
10742
else
 
10743
  cat >conftest.$ac_ext <<_ACEOF
 
10744
#line 10744 "configure"
 
10745
#include "confdefs.h"
 
10746
main(){exit(sizeof(short) != 2);}
 
10747
_ACEOF
 
10748
rm -f conftest$ac_exeext
 
10749
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
 
10750
  (eval $ac_link) 2>&5
 
10751
  ac_status=$?
 
10752
  echo "$as_me:10752: \$? = $ac_status" >&5
 
10753
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10754
  { (eval echo "$as_me:10754: \"$ac_try\"") >&5
 
10755
  (eval $ac_try) 2>&5
 
10756
  ac_status=$?
 
10757
  echo "$as_me:10757: \$? = $ac_status" >&5
 
10758
  (exit $ac_status); }; }; then
 
10759
  db_cv_int16="short"
 
10760
else
 
10761
  echo "$as_me: program exited with status $ac_status" >&5
 
10762
echo "$as_me: failed program was:" >&5
 
10763
cat conftest.$ac_ext >&5
 
10764
if test "$cross_compiling" = yes; then
 
10765
  { { echo "$as_me:10765: error: cannot run test program while cross compiling" >&5
 
10766
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10767
   { (exit 1); exit 1; }; }
 
10768
else
 
10769
  cat >conftest.$ac_ext <<_ACEOF
 
10770
#line 10770 "configure"
 
10771
#include "confdefs.h"
 
10772
main(){exit(sizeof(int) != 2);}
 
10773
_ACEOF
 
10774
rm -f conftest$ac_exeext
 
10775
if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
 
10776
  (eval $ac_link) 2>&5
 
10777
  ac_status=$?
 
10778
  echo "$as_me:10778: \$? = $ac_status" >&5
 
10779
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10780
  { (eval echo "$as_me:10780: \"$ac_try\"") >&5
 
10781
  (eval $ac_try) 2>&5
 
10782
  ac_status=$?
 
10783
  echo "$as_me:10783: \$? = $ac_status" >&5
 
10784
  (exit $ac_status); }; }; then
 
10785
  db_cv_int16="int"
 
10786
else
 
10787
  echo "$as_me: program exited with status $ac_status" >&5
 
10788
echo "$as_me: failed program was:" >&5
 
10789
cat conftest.$ac_ext >&5
 
10790
db_cv_int16=no
 
10791
fi
 
10792
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10793
fi
 
10794
fi
 
10795
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10796
fi
 
10797
fi
 
10798
rm -f conftest.$ac_objext conftest.$ac_ext
 
10799
fi
 
10800
echo "$as_me:10800: result: $db_cv_int16" >&5
 
10801
echo "${ECHO_T}$db_cv_int16" >&6
 
10802
if test "$db_cv_int16" = no; then
 
10803
        { { echo "$as_me:10803: error: No signed 16-bit integral type." >&5
 
10804
echo "$as_me: error: No signed 16-bit integral type." >&2;}
 
10805
   { (exit 1); exit 1; }; }
 
10806
fi
 
10807
if test "$db_cv_int16" != yes; then
 
10808
        int16_decl="typedef $db_cv_int16 int16_t;"
 
10809
fi
 
10810
 
 
10811
echo "$as_me:10811: checking for u_int32_t" >&5
 
10812
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
 
10813
if test "${db_cv_uint32+set}" = set; then
 
10814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10815
else
 
10816
 
 
10817
cat >conftest.$ac_ext <<_ACEOF
 
10818
#line 10818 "configure"
 
10819
#include "confdefs.h"
 
10820
#include <sys/types.h>
 
10821
int
 
10822
main ()
 
10823
{
 
10824
u_int32_t foo;
 
10825
  ;
 
10826
  return 0;
 
10827
}
 
10828
_ACEOF
 
10829
rm -f conftest.$ac_objext
 
10830
if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
 
10831
  (eval $ac_compile) 2>&5
 
10832
  ac_status=$?
 
10833
  echo "$as_me:10833: \$? = $ac_status" >&5
 
10834
  (exit $ac_status); } &&
 
10835
         { ac_try='test -s conftest.$ac_objext'
 
10836
  { (eval echo "$as_me:10836: \"$ac_try\"") >&5
 
10837
  (eval $ac_try) 2>&5
 
10838
  ac_status=$?
 
10839
  echo "$as_me:10839: \$? = $ac_status" >&5
 
10840
  (exit $ac_status); }; }; then
 
10841
  db_cv_uint32=yes
 
10842
else
 
10843
  echo "$as_me: failed program was:" >&5
 
10844
cat conftest.$ac_ext >&5
 
10845
if test "$cross_compiling" = yes; then
 
10846
  { { echo "$as_me:10846: error: cannot run test program while cross compiling" >&5
 
10847
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10848
   { (exit 1); exit 1; }; }
 
10849
else
 
10850
  cat >conftest.$ac_ext <<_ACEOF
 
10851
#line 10851 "configure"
 
10852
#include "confdefs.h"
 
10853
main(){exit(sizeof(unsigned int) != 4);}
 
10854
_ACEOF
 
10855
rm -f conftest$ac_exeext
 
10856
if { (eval echo "$as_me:10856: \"$ac_link\"") >&5
 
10857
  (eval $ac_link) 2>&5
 
10858
  ac_status=$?
 
10859
  echo "$as_me:10859: \$? = $ac_status" >&5
 
10860
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10861
  { (eval echo "$as_me:10861: \"$ac_try\"") >&5
 
10862
  (eval $ac_try) 2>&5
 
10863
  ac_status=$?
 
10864
  echo "$as_me:10864: \$? = $ac_status" >&5
 
10865
  (exit $ac_status); }; }; then
 
10866
  db_cv_uint32="unsigned int"
 
10867
else
 
10868
  echo "$as_me: program exited with status $ac_status" >&5
 
10869
echo "$as_me: failed program was:" >&5
 
10870
cat conftest.$ac_ext >&5
 
10871
if test "$cross_compiling" = yes; then
 
10872
  { { echo "$as_me:10872: error: cannot run test program while cross compiling" >&5
 
10873
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10874
   { (exit 1); exit 1; }; }
 
10875
else
 
10876
  cat >conftest.$ac_ext <<_ACEOF
 
10877
#line 10877 "configure"
 
10878
#include "confdefs.h"
 
10879
main(){exit(sizeof(unsigned long) != 4);}
 
10880
_ACEOF
 
10881
rm -f conftest$ac_exeext
 
10882
if { (eval echo "$as_me:10882: \"$ac_link\"") >&5
 
10883
  (eval $ac_link) 2>&5
 
10884
  ac_status=$?
 
10885
  echo "$as_me:10885: \$? = $ac_status" >&5
 
10886
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10887
  { (eval echo "$as_me:10887: \"$ac_try\"") >&5
 
10888
  (eval $ac_try) 2>&5
 
10889
  ac_status=$?
 
10890
  echo "$as_me:10890: \$? = $ac_status" >&5
 
10891
  (exit $ac_status); }; }; then
 
10892
  db_cv_uint32="unsigned long"
 
10893
else
 
10894
  echo "$as_me: program exited with status $ac_status" >&5
 
10895
echo "$as_me: failed program was:" >&5
 
10896
cat conftest.$ac_ext >&5
 
10897
db_cv_uint32=no
 
10898
fi
 
10899
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10900
fi
 
10901
fi
 
10902
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
10903
fi
 
10904
fi
 
10905
rm -f conftest.$ac_objext conftest.$ac_ext
 
10906
fi
 
10907
echo "$as_me:10907: result: $db_cv_uint32" >&5
 
10908
echo "${ECHO_T}$db_cv_uint32" >&6
 
10909
if test "$db_cv_uint32" = no; then
 
10910
        { { echo "$as_me:10910: error: No unsigned 32-bit integral type." >&5
 
10911
echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
 
10912
   { (exit 1); exit 1; }; }
 
10913
fi
 
10914
if test "$db_cv_uint32" != yes; then
 
10915
        u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
 
10916
fi
 
10917
 
 
10918
echo "$as_me:10918: checking for int32_t" >&5
 
10919
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
 
10920
if test "${db_cv_int32+set}" = set; then
 
10921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10922
else
 
10923
 
 
10924
cat >conftest.$ac_ext <<_ACEOF
 
10925
#line 10925 "configure"
 
10926
#include "confdefs.h"
 
10927
#include <sys/types.h>
 
10928
int
 
10929
main ()
 
10930
{
 
10931
int32_t foo;
 
10932
  ;
 
10933
  return 0;
 
10934
}
 
10935
_ACEOF
 
10936
rm -f conftest.$ac_objext
 
10937
if { (eval echo "$as_me:10937: \"$ac_compile\"") >&5
 
10938
  (eval $ac_compile) 2>&5
 
10939
  ac_status=$?
 
10940
  echo "$as_me:10940: \$? = $ac_status" >&5
 
10941
  (exit $ac_status); } &&
 
10942
         { ac_try='test -s conftest.$ac_objext'
 
10943
  { (eval echo "$as_me:10943: \"$ac_try\"") >&5
 
10944
  (eval $ac_try) 2>&5
 
10945
  ac_status=$?
 
10946
  echo "$as_me:10946: \$? = $ac_status" >&5
 
10947
  (exit $ac_status); }; }; then
 
10948
  db_cv_int32=yes
 
10949
else
 
10950
  echo "$as_me: failed program was:" >&5
 
10951
cat conftest.$ac_ext >&5
 
10952
if test "$cross_compiling" = yes; then
 
10953
  { { echo "$as_me:10953: error: cannot run test program while cross compiling" >&5
 
10954
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10955
   { (exit 1); exit 1; }; }
 
10956
else
 
10957
  cat >conftest.$ac_ext <<_ACEOF
 
10958
#line 10958 "configure"
 
10959
#include "confdefs.h"
 
10960
main(){exit(sizeof(int) != 4);}
 
10961
_ACEOF
 
10962
rm -f conftest$ac_exeext
 
10963
if { (eval echo "$as_me:10963: \"$ac_link\"") >&5
 
10964
  (eval $ac_link) 2>&5
 
10965
  ac_status=$?
 
10966
  echo "$as_me:10966: \$? = $ac_status" >&5
 
10967
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10968
  { (eval echo "$as_me:10968: \"$ac_try\"") >&5
 
10969
  (eval $ac_try) 2>&5
 
10970
  ac_status=$?
 
10971
  echo "$as_me:10971: \$? = $ac_status" >&5
 
10972
  (exit $ac_status); }; }; then
 
10973
  db_cv_int32="int"
 
10974
else
 
10975
  echo "$as_me: program exited with status $ac_status" >&5
 
10976
echo "$as_me: failed program was:" >&5
 
10977
cat conftest.$ac_ext >&5
 
10978
if test "$cross_compiling" = yes; then
 
10979
  { { echo "$as_me:10979: error: cannot run test program while cross compiling" >&5
 
10980
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
10981
   { (exit 1); exit 1; }; }
 
10982
else
 
10983
  cat >conftest.$ac_ext <<_ACEOF
 
10984
#line 10984 "configure"
 
10985
#include "confdefs.h"
 
10986
main(){exit(sizeof(long) != 4);}
 
10987
_ACEOF
 
10988
rm -f conftest$ac_exeext
 
10989
if { (eval echo "$as_me:10989: \"$ac_link\"") >&5
 
10990
  (eval $ac_link) 2>&5
 
10991
  ac_status=$?
 
10992
  echo "$as_me:10992: \$? = $ac_status" >&5
 
10993
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10994
  { (eval echo "$as_me:10994: \"$ac_try\"") >&5
 
10995
  (eval $ac_try) 2>&5
 
10996
  ac_status=$?
 
10997
  echo "$as_me:10997: \$? = $ac_status" >&5
 
10998
  (exit $ac_status); }; }; then
 
10999
  db_cv_int32="long"
 
11000
else
 
11001
  echo "$as_me: program exited with status $ac_status" >&5
 
11002
echo "$as_me: failed program was:" >&5
 
11003
cat conftest.$ac_ext >&5
 
11004
db_cv_int32=no
 
11005
fi
 
11006
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11007
fi
 
11008
fi
 
11009
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11010
fi
 
11011
fi
 
11012
rm -f conftest.$ac_objext conftest.$ac_ext
 
11013
fi
 
11014
echo "$as_me:11014: result: $db_cv_int32" >&5
 
11015
echo "${ECHO_T}$db_cv_int32" >&6
 
11016
if test "$db_cv_int32" = no; then
 
11017
        { { echo "$as_me:11017: error: No signed 32-bit integral type." >&5
 
11018
echo "$as_me: error: No signed 32-bit integral type." >&2;}
 
11019
   { (exit 1); exit 1; }; }
 
11020
fi
 
11021
if test "$db_cv_int32" != yes; then
 
11022
        int32_decl="typedef $db_cv_int32 int32_t;"
 
11023
fi
 
11024
 
 
11025
# Check for ssize_t -- if none exists, find a signed integral type that's
 
11026
# the same size as a size_t.  Prefer int over long, because it read/write
 
11027
# and others historically returned an int.
 
11028
 
 
11029
echo "$as_me:11029: checking for ssize_t" >&5
 
11030
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
 
11031
if test "${db_cv_ssize_t+set}" = set; then
 
11032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11033
else
 
11034
 
 
11035
cat >conftest.$ac_ext <<_ACEOF
 
11036
#line 11036 "configure"
 
11037
#include "confdefs.h"
 
11038
#include <sys/types.h>
 
11039
int
 
11040
main ()
 
11041
{
 
11042
ssize_t foo;
 
11043
  ;
 
11044
  return 0;
 
11045
}
 
11046
_ACEOF
 
11047
rm -f conftest.$ac_objext
 
11048
if { (eval echo "$as_me:11048: \"$ac_compile\"") >&5
 
11049
  (eval $ac_compile) 2>&5
 
11050
  ac_status=$?
 
11051
  echo "$as_me:11051: \$? = $ac_status" >&5
 
11052
  (exit $ac_status); } &&
 
11053
         { ac_try='test -s conftest.$ac_objext'
 
11054
  { (eval echo "$as_me:11054: \"$ac_try\"") >&5
 
11055
  (eval $ac_try) 2>&5
 
11056
  ac_status=$?
 
11057
  echo "$as_me:11057: \$? = $ac_status" >&5
 
11058
  (exit $ac_status); }; }; then
 
11059
  db_cv_ssize_t=yes
 
11060
else
 
11061
  echo "$as_me: failed program was:" >&5
 
11062
cat conftest.$ac_ext >&5
 
11063
if test "$cross_compiling" = yes; then
 
11064
  { { echo "$as_me:11064: error: cannot run test program while cross compiling" >&5
 
11065
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11066
   { (exit 1); exit 1; }; }
 
11067
else
 
11068
  cat >conftest.$ac_ext <<_ACEOF
 
11069
#line 11069 "configure"
 
11070
#include "confdefs.h"
 
11071
 
 
11072
        #include <sys/types.h>
 
11073
        main(){exit(sizeof(size_t) != sizeof(int));}
 
11074
_ACEOF
 
11075
rm -f conftest$ac_exeext
 
11076
if { (eval echo "$as_me:11076: \"$ac_link\"") >&5
 
11077
  (eval $ac_link) 2>&5
 
11078
  ac_status=$?
 
11079
  echo "$as_me:11079: \$? = $ac_status" >&5
 
11080
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11081
  { (eval echo "$as_me:11081: \"$ac_try\"") >&5
 
11082
  (eval $ac_try) 2>&5
 
11083
  ac_status=$?
 
11084
  echo "$as_me:11084: \$? = $ac_status" >&5
 
11085
  (exit $ac_status); }; }; then
 
11086
  db_cv_ssize_t="int"
 
11087
else
 
11088
  echo "$as_me: program exited with status $ac_status" >&5
 
11089
echo "$as_me: failed program was:" >&5
 
11090
cat conftest.$ac_ext >&5
 
11091
if test "$cross_compiling" = yes; then
 
11092
  { { echo "$as_me:11092: error: cannot run test program while cross compiling" >&5
 
11093
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11094
   { (exit 1); exit 1; }; }
 
11095
else
 
11096
  cat >conftest.$ac_ext <<_ACEOF
 
11097
#line 11097 "configure"
 
11098
#include "confdefs.h"
 
11099
 
 
11100
        #include <sys/types.h>
 
11101
        main(){exit(sizeof(size_t) != sizeof(long long));}
 
11102
_ACEOF
 
11103
rm -f conftest$ac_exeext
 
11104
if { (eval echo "$as_me:11104: \"$ac_link\"") >&5
 
11105
  (eval $ac_link) 2>&5
 
11106
  ac_status=$?
 
11107
  echo "$as_me:11107: \$? = $ac_status" >&5
 
11108
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11109
  { (eval echo "$as_me:11109: \"$ac_try\"") >&5
 
11110
  (eval $ac_try) 2>&5
 
11111
  ac_status=$?
 
11112
  echo "$as_me:11112: \$? = $ac_status" >&5
 
11113
  (exit $ac_status); }; }; then
 
11114
  db_cv_ssize_t="long long"
 
11115
else
 
11116
  echo "$as_me: program exited with status $ac_status" >&5
 
11117
echo "$as_me: failed program was:" >&5
 
11118
cat conftest.$ac_ext >&5
 
11119
if test "$cross_compiling" = yes; then
 
11120
  { { echo "$as_me:11120: error: cannot run test program while cross compiling" >&5
 
11121
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11122
   { (exit 1); exit 1; }; }
 
11123
else
 
11124
  cat >conftest.$ac_ext <<_ACEOF
 
11125
#line 11125 "configure"
 
11126
#include "confdefs.h"
 
11127
 
 
11128
        #include <sys/types.h>
 
11129
        main(){exit(sizeof(size_t) != sizeof(long));}
 
11130
_ACEOF
 
11131
rm -f conftest$ac_exeext
 
11132
if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
 
11133
  (eval $ac_link) 2>&5
 
11134
  ac_status=$?
 
11135
  echo "$as_me:11135: \$? = $ac_status" >&5
 
11136
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11137
  { (eval echo "$as_me:11137: \"$ac_try\"") >&5
 
11138
  (eval $ac_try) 2>&5
 
11139
  ac_status=$?
 
11140
  echo "$as_me:11140: \$? = $ac_status" >&5
 
11141
  (exit $ac_status); }; }; then
 
11142
  db_cv_ssize_t="long"
 
11143
else
 
11144
  echo "$as_me: program exited with status $ac_status" >&5
 
11145
echo "$as_me: failed program was:" >&5
 
11146
cat conftest.$ac_ext >&5
 
11147
db_cv_ssize_t="int"
 
11148
fi
 
11149
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11150
fi
 
11151
fi
 
11152
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11153
fi
 
11154
fi
 
11155
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11156
fi
 
11157
fi
 
11158
rm -f conftest.$ac_objext conftest.$ac_ext
 
11159
fi
 
11160
echo "$as_me:11160: result: $db_cv_ssize_t" >&5
 
11161
echo "${ECHO_T}$db_cv_ssize_t" >&6
 
11162
if test "$db_cv_ssize_t" != yes; then
 
11163
        ssize_t_decl="typedef $db_cv_ssize_t ssize_t;"
 
11164
fi
 
11165
 
 
11166
# Find the largest integral type.
 
11167
 
 
11168
echo "$as_me:11168: checking for largest integral type" >&5
 
11169
echo $ECHO_N "checking for largest integral type... $ECHO_C" >&6
 
11170
if test "${db_cv_align_t+set}" = set; then
 
11171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11172
else
 
11173
 
 
11174
cat >conftest.$ac_ext <<_ACEOF
 
11175
#line 11175 "configure"
 
11176
#include "confdefs.h"
 
11177
#include <sys/types.h>
 
11178
int
 
11179
main ()
 
11180
{
 
11181
long long foo;
 
11182
  ;
 
11183
  return 0;
 
11184
}
 
11185
_ACEOF
 
11186
rm -f conftest.$ac_objext
 
11187
if { (eval echo "$as_me:11187: \"$ac_compile\"") >&5
 
11188
  (eval $ac_compile) 2>&5
 
11189
  ac_status=$?
 
11190
  echo "$as_me:11190: \$? = $ac_status" >&5
 
11191
  (exit $ac_status); } &&
 
11192
         { ac_try='test -s conftest.$ac_objext'
 
11193
  { (eval echo "$as_me:11193: \"$ac_try\"") >&5
 
11194
  (eval $ac_try) 2>&5
 
11195
  ac_status=$?
 
11196
  echo "$as_me:11196: \$? = $ac_status" >&5
 
11197
  (exit $ac_status); }; }; then
 
11198
  db_cv_align_t="unsigned long long"
 
11199
else
 
11200
  echo "$as_me: failed program was:" >&5
 
11201
cat conftest.$ac_ext >&5
 
11202
db_cv_align_t="unsigned long"
 
11203
fi
 
11204
rm -f conftest.$ac_objext conftest.$ac_ext
 
11205
fi
 
11206
echo "$as_me:11206: result: $db_cv_align_t" >&5
 
11207
echo "${ECHO_T}$db_cv_align_t" >&6
 
11208
db_align_t_decl="typedef $db_cv_align_t db_align_t;"
 
11209
 
 
11210
# Find the integral type which is the same size as a pointer.
 
11211
 
 
11212
echo "$as_me:11212: checking for integral type equal to pointer size" >&5
 
11213
echo $ECHO_N "checking for integral type equal to pointer size... $ECHO_C" >&6
 
11214
if test "${db_cv_alignp_t+set}" = set; then
 
11215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11216
else
 
11217
 
 
11218
db_cv_alignp_t=$db_cv_align_t
 
11219
if test "$cross_compiling" = yes; then
 
11220
  { { echo "$as_me:11220: error: cannot run test program while cross compiling" >&5
 
11221
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11222
   { (exit 1); exit 1; }; }
 
11223
else
 
11224
  cat >conftest.$ac_ext <<_ACEOF
 
11225
#line 11225 "configure"
 
11226
#include "confdefs.h"
 
11227
main(){exit(sizeof(unsigned int) != sizeof(char *));}
 
11228
_ACEOF
 
11229
rm -f conftest$ac_exeext
 
11230
if { (eval echo "$as_me:11230: \"$ac_link\"") >&5
 
11231
  (eval $ac_link) 2>&5
 
11232
  ac_status=$?
 
11233
  echo "$as_me:11233: \$? = $ac_status" >&5
 
11234
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11235
  { (eval echo "$as_me:11235: \"$ac_try\"") >&5
 
11236
  (eval $ac_try) 2>&5
 
11237
  ac_status=$?
 
11238
  echo "$as_me:11238: \$? = $ac_status" >&5
 
11239
  (exit $ac_status); }; }; then
 
11240
  db_cv_alignp_t="unsigned int"
 
11241
else
 
11242
  echo "$as_me: program exited with status $ac_status" >&5
 
11243
echo "$as_me: failed program was:" >&5
 
11244
cat conftest.$ac_ext >&5
 
11245
fi
 
11246
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11247
fi
 
11248
if test "$cross_compiling" = yes; then
 
11249
  { { echo "$as_me:11249: error: cannot run test program while cross compiling" >&5
 
11250
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11251
   { (exit 1); exit 1; }; }
 
11252
else
 
11253
  cat >conftest.$ac_ext <<_ACEOF
 
11254
#line 11254 "configure"
 
11255
#include "confdefs.h"
 
11256
main(){exit(sizeof(unsigned long) != sizeof(char *));}
 
11257
_ACEOF
 
11258
rm -f conftest$ac_exeext
 
11259
if { (eval echo "$as_me:11259: \"$ac_link\"") >&5
 
11260
  (eval $ac_link) 2>&5
 
11261
  ac_status=$?
 
11262
  echo "$as_me:11262: \$? = $ac_status" >&5
 
11263
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11264
  { (eval echo "$as_me:11264: \"$ac_try\"") >&5
 
11265
  (eval $ac_try) 2>&5
 
11266
  ac_status=$?
 
11267
  echo "$as_me:11267: \$? = $ac_status" >&5
 
11268
  (exit $ac_status); }; }; then
 
11269
  db_cv_alignp_t="unsigned long"
 
11270
else
 
11271
  echo "$as_me: program exited with status $ac_status" >&5
 
11272
echo "$as_me: failed program was:" >&5
 
11273
cat conftest.$ac_ext >&5
 
11274
fi
 
11275
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11276
fi
 
11277
if test "$cross_compiling" = yes; then
 
11278
  { { echo "$as_me:11278: error: cannot run test program while cross compiling" >&5
 
11279
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11280
   { (exit 1); exit 1; }; }
 
11281
else
 
11282
  cat >conftest.$ac_ext <<_ACEOF
 
11283
#line 11283 "configure"
 
11284
#include "confdefs.h"
 
11285
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
 
11286
_ACEOF
 
11287
rm -f conftest$ac_exeext
 
11288
if { (eval echo "$as_me:11288: \"$ac_link\"") >&5
 
11289
  (eval $ac_link) 2>&5
 
11290
  ac_status=$?
 
11291
  echo "$as_me:11291: \$? = $ac_status" >&5
 
11292
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11293
  { (eval echo "$as_me:11293: \"$ac_try\"") >&5
 
11294
  (eval $ac_try) 2>&5
 
11295
  ac_status=$?
 
11296
  echo "$as_me:11296: \$? = $ac_status" >&5
 
11297
  (exit $ac_status); }; }; then
 
11298
  db_cv_alignp_t="unsigned long long"
 
11299
else
 
11300
  echo "$as_me: program exited with status $ac_status" >&5
 
11301
echo "$as_me: failed program was:" >&5
 
11302
cat conftest.$ac_ext >&5
 
11303
fi
 
11304
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11305
fi
 
11306
fi
 
11307
echo "$as_me:11307: result: $db_cv_alignp_t" >&5
 
11308
echo "${ECHO_T}$db_cv_alignp_t" >&6
 
11309
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"
 
11310
 
 
11311
# Check for ANSI C exit success/failure values.
 
11312
cat >conftest.$ac_ext <<_ACEOF
 
11313
#line 11313 "configure"
 
11314
#include "confdefs.h"
 
11315
 
 
11316
    #include <stdlib.h>
 
11317
    #ifdef EXIT_SUCCESS
 
11318
    yes
 
11319
    #endif
 
11320
_ACEOF
 
11321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11322
  egrep "yes" >/dev/null 2>&1; then
 
11323
 
 
11324
    cat >>confdefs.h <<\EOF
 
11325
#define HAVE_EXIT_SUCCESS 1
 
11326
EOF
 
11327
 
 
11328
fi
 
11329
rm -f conftest*
 
11330
 
 
11331
# Check for mutexes.  We do this here because it changes $LIBS.
 
11332
 
 
11333
# Mutexes we don't test for, but want the #defines to exist for
 
11334
# other ports.
 
11335
 
 
11336
echo "$as_me:11336: checking for mutexes" >&5
 
11337
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
 
11338
if test "${db_cv_mutex+set}" = set; then
 
11339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11340
else
 
11341
 
 
11342
db_cv_mutex=no
 
11343
 
 
11344
orig_libs=$LIBS
 
11345
 
 
11346
# User-specified POSIX mutexes.
 
11347
#
 
11348
# Assume that -lpthread exists when the user specifies POSIX mutexes.  (I
 
11349
# only expect this option to be used on Solaris, which has -lpthread.)
 
11350
if test "$db_cv_posixmutexes" = yes; then
 
11351
        db_cv_mutex="posix_only"
 
11352
fi
 
11353
 
 
11354
# User-specified UI mutexes.
 
11355
#
 
11356
# Assume that -lthread exists when the user specifies UI mutexes.  (I only
 
11357
# expect this option to be used on Solaris, which has -lthread.)
 
11358
if test "$db_cv_uimutexes" = yes; then
 
11359
        db_cv_mutex="ui_only"
 
11360
fi
 
11361
 
 
11362
# LWP threads: _lwp_XXX
 
11363
#
 
11364
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
 
11365
# on Solaris.  There are two reasons: the Solaris C library has UI/POSIX
 
11366
# interface stubs, but they're broken, configuring them for inter-process
 
11367
# mutexes doesn't return an error, but it doesn't work either.  Second,
 
11368
# there's a bug in SunOS 5.7 where applications get pwrite, not pwrite64,
 
11369
# if they load the C library before the appropriate threads library, e.g.,
 
11370
# tclsh using dlopen to load the DB library.  Anyway, by using LWP threads
 
11371
# we avoid answering lots of user questions, not to mention the bugs.
 
11372
if test "$db_cv_mutex" = no; then
 
11373
if test "$cross_compiling" = yes; then
 
11374
  { { echo "$as_me:11374: error: cannot run test program while cross compiling" >&5
 
11375
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11376
   { (exit 1); exit 1; }; }
 
11377
else
 
11378
  cat >conftest.$ac_ext <<_ACEOF
 
11379
#line 11379 "configure"
 
11380
#include "confdefs.h"
 
11381
 
 
11382
#include <synch.h>
 
11383
main(){
 
11384
        static lwp_mutex_t mi = SHAREDMUTEX;
 
11385
        static lwp_cond_t ci = SHAREDCV;
 
11386
        lwp_mutex_t mutex = mi;
 
11387
        lwp_cond_t cond = ci;
 
11388
        exit (
 
11389
        _lwp_mutex_lock(&mutex) ||
 
11390
        _lwp_mutex_unlock(&mutex));
 
11391
}
 
11392
_ACEOF
 
11393
rm -f conftest$ac_exeext
 
11394
if { (eval echo "$as_me:11394: \"$ac_link\"") >&5
 
11395
  (eval $ac_link) 2>&5
 
11396
  ac_status=$?
 
11397
  echo "$as_me:11397: \$? = $ac_status" >&5
 
11398
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11399
  { (eval echo "$as_me:11399: \"$ac_try\"") >&5
 
11400
  (eval $ac_try) 2>&5
 
11401
  ac_status=$?
 
11402
  echo "$as_me:11402: \$? = $ac_status" >&5
 
11403
  (exit $ac_status); }; }; then
 
11404
  db_cv_mutex="Solaris/lwp"
 
11405
else
 
11406
  echo "$as_me: program exited with status $ac_status" >&5
 
11407
echo "$as_me: failed program was:" >&5
 
11408
cat conftest.$ac_ext >&5
 
11409
fi
 
11410
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11411
fi
 
11412
fi
 
11413
 
 
11414
# UI threads: thr_XXX
 
11415
#
 
11416
# Try with and without the -lthread library.
 
11417
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
 
11418
LIBS="-lthread $LIBS"
 
11419
if test "$cross_compiling" = yes; then
 
11420
  { { echo "$as_me:11420: error: cannot run test program while cross compiling" >&5
 
11421
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11422
   { (exit 1); exit 1; }; }
 
11423
else
 
11424
  cat >conftest.$ac_ext <<_ACEOF
 
11425
#line 11425 "configure"
 
11426
#include "confdefs.h"
 
11427
 
 
11428
#include <thread.h>
 
11429
#include <synch.h>
 
11430
main(){
 
11431
        mutex_t mutex;
 
11432
        cond_t cond;
 
11433
        int type = USYNC_PROCESS;
 
11434
        exit (
 
11435
        mutex_init(&mutex, type, NULL) ||
 
11436
        cond_init(&cond, type, NULL) ||
 
11437
        mutex_lock(&mutex) ||
 
11438
        mutex_unlock(&mutex));
 
11439
}
 
11440
_ACEOF
 
11441
rm -f conftest$ac_exeext
 
11442
if { (eval echo "$as_me:11442: \"$ac_link\"") >&5
 
11443
  (eval $ac_link) 2>&5
 
11444
  ac_status=$?
 
11445
  echo "$as_me:11445: \$? = $ac_status" >&5
 
11446
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11447
  { (eval echo "$as_me:11447: \"$ac_try\"") >&5
 
11448
  (eval $ac_try) 2>&5
 
11449
  ac_status=$?
 
11450
  echo "$as_me:11450: \$? = $ac_status" >&5
 
11451
  (exit $ac_status); }; }; then
 
11452
  db_cv_mutex="UI/threads/library"
 
11453
else
 
11454
  echo "$as_me: program exited with status $ac_status" >&5
 
11455
echo "$as_me: failed program was:" >&5
 
11456
cat conftest.$ac_ext >&5
 
11457
fi
 
11458
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11459
fi
 
11460
LIBS="$orig_libs"
 
11461
fi
 
11462
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
 
11463
if test "$cross_compiling" = yes; then
 
11464
  { { echo "$as_me:11464: error: cannot run test program while cross compiling" >&5
 
11465
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11466
   { (exit 1); exit 1; }; }
 
11467
else
 
11468
  cat >conftest.$ac_ext <<_ACEOF
 
11469
#line 11469 "configure"
 
11470
#include "confdefs.h"
 
11471
 
 
11472
#include <thread.h>
 
11473
#include <synch.h>
 
11474
main(){
 
11475
        mutex_t mutex;
 
11476
        cond_t cond;
 
11477
        int type = USYNC_PROCESS;
 
11478
        exit (
 
11479
        mutex_init(&mutex, type, NULL) ||
 
11480
        cond_init(&cond, type, NULL) ||
 
11481
        mutex_lock(&mutex) ||
 
11482
        mutex_unlock(&mutex));
 
11483
}
 
11484
_ACEOF
 
11485
rm -f conftest$ac_exeext
 
11486
if { (eval echo "$as_me:11486: \"$ac_link\"") >&5
 
11487
  (eval $ac_link) 2>&5
 
11488
  ac_status=$?
 
11489
  echo "$as_me:11489: \$? = $ac_status" >&5
 
11490
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11491
  { (eval echo "$as_me:11491: \"$ac_try\"") >&5
 
11492
  (eval $ac_try) 2>&5
 
11493
  ac_status=$?
 
11494
  echo "$as_me:11494: \$? = $ac_status" >&5
 
11495
  (exit $ac_status); }; }; then
 
11496
  db_cv_mutex="UI/threads"
 
11497
else
 
11498
  echo "$as_me: program exited with status $ac_status" >&5
 
11499
echo "$as_me: failed program was:" >&5
 
11500
cat conftest.$ac_ext >&5
 
11501
fi
 
11502
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11503
fi
 
11504
fi
 
11505
if test "$db_cv_mutex" = "ui_only"; then
 
11506
        { { echo "$as_me:11506: error: unable to find UI mutex interfaces" >&5
 
11507
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
 
11508
   { (exit 1); exit 1; }; }
 
11509
fi
 
11510
 
 
11511
# POSIX.1 pthreads: pthread_XXX
 
11512
#
 
11513
# Try with and without the -lpthread library.
 
11514
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
 
11515
if test "$cross_compiling" = yes; then
 
11516
  { { echo "$as_me:11516: error: cannot run test program while cross compiling" >&5
 
11517
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11518
   { (exit 1); exit 1; }; }
 
11519
else
 
11520
  cat >conftest.$ac_ext <<_ACEOF
 
11521
#line 11521 "configure"
 
11522
#include "confdefs.h"
 
11523
 
 
11524
#include <pthread.h>
 
11525
main(){
 
11526
        pthread_cond_t cond;
 
11527
        pthread_mutex_t mutex;
 
11528
        pthread_condattr_t condattr;
 
11529
        pthread_mutexattr_t mutexattr;
 
11530
        exit (
 
11531
        pthread_condattr_init(&condattr) ||
 
11532
        pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
 
11533
        pthread_mutexattr_init(&mutexattr) ||
 
11534
        pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
 
11535
        pthread_cond_init(&cond, &condattr) ||
 
11536
        pthread_mutex_init(&mutex, &mutexattr) ||
 
11537
        pthread_mutex_lock(&mutex) ||
 
11538
        pthread_mutex_unlock(&mutex) ||
 
11539
        pthread_mutex_destroy(&mutex) ||
 
11540
        pthread_cond_destroy(&cond) ||
 
11541
        pthread_condattr_destroy(&condattr) ||
 
11542
        pthread_mutexattr_destroy(&mutexattr));
 
11543
}
 
11544
_ACEOF
 
11545
rm -f conftest$ac_exeext
 
11546
if { (eval echo "$as_me:11546: \"$ac_link\"") >&5
 
11547
  (eval $ac_link) 2>&5
 
11548
  ac_status=$?
 
11549
  echo "$as_me:11549: \$? = $ac_status" >&5
 
11550
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11551
  { (eval echo "$as_me:11551: \"$ac_try\"") >&5
 
11552
  (eval $ac_try) 2>&5
 
11553
  ac_status=$?
 
11554
  echo "$as_me:11554: \$? = $ac_status" >&5
 
11555
  (exit $ac_status); }; }; then
 
11556
  db_cv_mutex="POSIX/pthreads"
 
11557
else
 
11558
  echo "$as_me: program exited with status $ac_status" >&5
 
11559
echo "$as_me: failed program was:" >&5
 
11560
cat conftest.$ac_ext >&5
 
11561
fi
 
11562
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11563
fi
 
11564
fi
 
11565
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
 
11566
LIBS="-lpthread $LIBS"
 
11567
if test "$cross_compiling" = yes; then
 
11568
  { { echo "$as_me:11568: error: cannot run test program while cross compiling" >&5
 
11569
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11570
   { (exit 1); exit 1; }; }
 
11571
else
 
11572
  cat >conftest.$ac_ext <<_ACEOF
 
11573
#line 11573 "configure"
 
11574
#include "confdefs.h"
 
11575
 
 
11576
#include <pthread.h>
 
11577
main(){
 
11578
        pthread_cond_t cond;
 
11579
        pthread_mutex_t mutex;
 
11580
        pthread_condattr_t condattr;
 
11581
        pthread_mutexattr_t mutexattr;
 
11582
        exit (
 
11583
        pthread_condattr_init(&condattr) ||
 
11584
        pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
 
11585
        pthread_mutexattr_init(&mutexattr) ||
 
11586
        pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
 
11587
        pthread_cond_init(&cond, &condattr) ||
 
11588
        pthread_mutex_init(&mutex, &mutexattr) ||
 
11589
        pthread_mutex_lock(&mutex) ||
 
11590
        pthread_mutex_unlock(&mutex) ||
 
11591
        pthread_mutex_destroy(&mutex) ||
 
11592
        pthread_cond_destroy(&cond) ||
 
11593
        pthread_condattr_destroy(&condattr) ||
 
11594
        pthread_mutexattr_destroy(&mutexattr));
 
11595
}
 
11596
_ACEOF
 
11597
rm -f conftest$ac_exeext
 
11598
if { (eval echo "$as_me:11598: \"$ac_link\"") >&5
 
11599
  (eval $ac_link) 2>&5
 
11600
  ac_status=$?
 
11601
  echo "$as_me:11601: \$? = $ac_status" >&5
 
11602
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11603
  { (eval echo "$as_me:11603: \"$ac_try\"") >&5
 
11604
  (eval $ac_try) 2>&5
 
11605
  ac_status=$?
 
11606
  echo "$as_me:11606: \$? = $ac_status" >&5
 
11607
  (exit $ac_status); }; }; then
 
11608
  db_cv_mutex="POSIX/pthreads/library"
 
11609
else
 
11610
  echo "$as_me: program exited with status $ac_status" >&5
 
11611
echo "$as_me: failed program was:" >&5
 
11612
cat conftest.$ac_ext >&5
 
11613
fi
 
11614
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11615
fi
 
11616
LIBS="$orig_libs"
 
11617
fi
 
11618
if test "$db_cv_mutex" = "posix_only"; then
 
11619
        { { echo "$as_me:11619: error: unable to find POSIX mutex interfaces" >&5
 
11620
echo "$as_me: error: unable to find POSIX mutex interfaces" >&2;}
 
11621
   { (exit 1); exit 1; }; }
 
11622
fi
 
11623
 
 
11624
# msemaphore: HPPA only
 
11625
# Try HPPA before general msem test, it needs special alignment.
 
11626
if test "$db_cv_mutex" = no; then
 
11627
if test "$cross_compiling" = yes; then
 
11628
  { { echo "$as_me:11628: error: cannot run test program while cross compiling" >&5
 
11629
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11630
   { (exit 1); exit 1; }; }
 
11631
else
 
11632
  cat >conftest.$ac_ext <<_ACEOF
 
11633
#line 11633 "configure"
 
11634
#include "confdefs.h"
 
11635
 
 
11636
#include <sys/mman.h>
 
11637
main(){
 
11638
#if defined(__hppa)
 
11639
        typedef msemaphore tsl_t;
 
11640
        msemaphore x;
 
11641
        msem_init(&x, 0);
 
11642
        msem_lock(&x, 0);
 
11643
        msem_unlock(&x, 0);
 
11644
        exit(0);
 
11645
#else
 
11646
        exit(1);
 
11647
#endif
 
11648
}
 
11649
_ACEOF
 
11650
rm -f conftest$ac_exeext
 
11651
if { (eval echo "$as_me:11651: \"$ac_link\"") >&5
 
11652
  (eval $ac_link) 2>&5
 
11653
  ac_status=$?
 
11654
  echo "$as_me:11654: \$? = $ac_status" >&5
 
11655
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11656
  { (eval echo "$as_me:11656: \"$ac_try\"") >&5
 
11657
  (eval $ac_try) 2>&5
 
11658
  ac_status=$?
 
11659
  echo "$as_me:11659: \$? = $ac_status" >&5
 
11660
  (exit $ac_status); }; }; then
 
11661
  db_cv_mutex="HP/msem_init"
 
11662
else
 
11663
  echo "$as_me: program exited with status $ac_status" >&5
 
11664
echo "$as_me: failed program was:" >&5
 
11665
cat conftest.$ac_ext >&5
 
11666
fi
 
11667
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11668
fi
 
11669
fi
 
11670
 
 
11671
# msemaphore: AIX, OSF/1
 
11672
if test "$db_cv_mutex" = no; then
 
11673
if test "$cross_compiling" = yes; then
 
11674
  { { echo "$as_me:11674: error: cannot run test program while cross compiling" >&5
 
11675
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11676
   { (exit 1); exit 1; }; }
 
11677
else
 
11678
  cat >conftest.$ac_ext <<_ACEOF
 
11679
#line 11679 "configure"
 
11680
#include "confdefs.h"
 
11681
 
 
11682
#include <sys/types.h>
 
11683
#include <sys/mman.h>;
 
11684
main(){
 
11685
        typedef msemaphore tsl_t;
 
11686
        msemaphore x;
 
11687
        msem_init(&x, 0);
 
11688
        msem_lock(&x, 0);
 
11689
        msem_unlock(&x, 0);
 
11690
        exit(0);
 
11691
}
 
11692
_ACEOF
 
11693
rm -f conftest$ac_exeext
 
11694
if { (eval echo "$as_me:11694: \"$ac_link\"") >&5
 
11695
  (eval $ac_link) 2>&5
 
11696
  ac_status=$?
 
11697
  echo "$as_me:11697: \$? = $ac_status" >&5
 
11698
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11699
  { (eval echo "$as_me:11699: \"$ac_try\"") >&5
 
11700
  (eval $ac_try) 2>&5
 
11701
  ac_status=$?
 
11702
  echo "$as_me:11702: \$? = $ac_status" >&5
 
11703
  (exit $ac_status); }; }; then
 
11704
  db_cv_mutex="UNIX/msem_init"
 
11705
else
 
11706
  echo "$as_me: program exited with status $ac_status" >&5
 
11707
echo "$as_me: failed program was:" >&5
 
11708
cat conftest.$ac_ext >&5
 
11709
fi
 
11710
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11711
fi
 
11712
fi
 
11713
 
 
11714
# ReliantUNIX
 
11715
if test "$db_cv_mutex" = no; then
 
11716
LIBS="$LIBS -lmproc"
 
11717
cat >conftest.$ac_ext <<_ACEOF
 
11718
#line 11718 "configure"
 
11719
#include "confdefs.h"
 
11720
#include <ulocks.h>
 
11721
int
 
11722
main ()
 
11723
{
 
11724
typedef spinlock_t tsl_t;
 
11725
spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
 
11726
  ;
 
11727
  return 0;
 
11728
}
 
11729
_ACEOF
 
11730
rm -f conftest.$ac_objext conftest$ac_exeext
 
11731
if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
 
11732
  (eval $ac_link) 2>&5
 
11733
  ac_status=$?
 
11734
  echo "$as_me:11734: \$? = $ac_status" >&5
 
11735
  (exit $ac_status); } &&
 
11736
         { ac_try='test -s conftest$ac_exeext'
 
11737
  { (eval echo "$as_me:11737: \"$ac_try\"") >&5
 
11738
  (eval $ac_try) 2>&5
 
11739
  ac_status=$?
 
11740
  echo "$as_me:11740: \$? = $ac_status" >&5
 
11741
  (exit $ac_status); }; }; then
 
11742
  db_cv_mutex="ReliantUNIX/initspin"
 
11743
else
 
11744
  echo "$as_me: failed program was:" >&5
 
11745
cat conftest.$ac_ext >&5
 
11746
fi
 
11747
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11748
LIBS="$orig_libs"
 
11749
fi
 
11750
 
 
11751
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
 
11752
if test "$db_cv_mutex" = no; then
 
11753
if test "$cross_compiling" = yes; then
 
11754
  { { echo "$as_me:11754: error: cannot run test program while cross compiling" >&5
 
11755
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11756
   { (exit 1); exit 1; }; }
 
11757
else
 
11758
  cat >conftest.$ac_ext <<_ACEOF
 
11759
#line 11759 "configure"
 
11760
#include "confdefs.h"
 
11761
 
 
11762
main(){
 
11763
#if defined(__USLC__)
 
11764
        exit(0);
 
11765
#endif
 
11766
        exit(1);
 
11767
}
 
11768
_ACEOF
 
11769
rm -f conftest$ac_exeext
 
11770
if { (eval echo "$as_me:11770: \"$ac_link\"") >&5
 
11771
  (eval $ac_link) 2>&5
 
11772
  ac_status=$?
 
11773
  echo "$as_me:11773: \$? = $ac_status" >&5
 
11774
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11775
  { (eval echo "$as_me:11775: \"$ac_try\"") >&5
 
11776
  (eval $ac_try) 2>&5
 
11777
  ac_status=$?
 
11778
  echo "$as_me:11778: \$? = $ac_status" >&5
 
11779
  (exit $ac_status); }; }; then
 
11780
  db_cv_mutex="SCO/x86/cc-assembly"
 
11781
else
 
11782
  echo "$as_me: program exited with status $ac_status" >&5
 
11783
echo "$as_me: failed program was:" >&5
 
11784
cat conftest.$ac_ext >&5
 
11785
fi
 
11786
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11787
fi
 
11788
fi
 
11789
 
 
11790
# abilock_t: SGI
 
11791
if test "$db_cv_mutex" = no; then
 
11792
cat >conftest.$ac_ext <<_ACEOF
 
11793
#line 11793 "configure"
 
11794
#include "confdefs.h"
 
11795
#include <abi_mutex.h>
 
11796
int
 
11797
main ()
 
11798
{
 
11799
typedef abilock_t tsl_t;
 
11800
abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
 
11801
  ;
 
11802
  return 0;
 
11803
}
 
11804
_ACEOF
 
11805
rm -f conftest.$ac_objext conftest$ac_exeext
 
11806
if { (eval echo "$as_me:11806: \"$ac_link\"") >&5
 
11807
  (eval $ac_link) 2>&5
 
11808
  ac_status=$?
 
11809
  echo "$as_me:11809: \$? = $ac_status" >&5
 
11810
  (exit $ac_status); } &&
 
11811
         { ac_try='test -s conftest$ac_exeext'
 
11812
  { (eval echo "$as_me:11812: \"$ac_try\"") >&5
 
11813
  (eval $ac_try) 2>&5
 
11814
  ac_status=$?
 
11815
  echo "$as_me:11815: \$? = $ac_status" >&5
 
11816
  (exit $ac_status); }; }; then
 
11817
  db_cv_mutex="SGI/init_lock"
 
11818
else
 
11819
  echo "$as_me: failed program was:" >&5
 
11820
cat conftest.$ac_ext >&5
 
11821
fi
 
11822
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11823
fi
 
11824
 
 
11825
# sema_t: Solaris
 
11826
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
 
11827
# turn this test on, unless we find some other platform that uses the old
 
11828
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
 
11829
if test "$db_cv_mutex" = DOESNT_WORK; then
 
11830
cat >conftest.$ac_ext <<_ACEOF
 
11831
#line 11831 "configure"
 
11832
#include "confdefs.h"
 
11833
#include <synch.h>
 
11834
int
 
11835
main ()
 
11836
{
 
11837
typedef sema_t tsl_t;
 
11838
 sema_t x;
 
11839
 sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
 
11840
  ;
 
11841
  return 0;
 
11842
}
 
11843
_ACEOF
 
11844
rm -f conftest.$ac_objext conftest$ac_exeext
 
11845
if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
 
11846
  (eval $ac_link) 2>&5
 
11847
  ac_status=$?
 
11848
  echo "$as_me:11848: \$? = $ac_status" >&5
 
11849
  (exit $ac_status); } &&
 
11850
         { ac_try='test -s conftest$ac_exeext'
 
11851
  { (eval echo "$as_me:11851: \"$ac_try\"") >&5
 
11852
  (eval $ac_try) 2>&5
 
11853
  ac_status=$?
 
11854
  echo "$as_me:11854: \$? = $ac_status" >&5
 
11855
  (exit $ac_status); }; }; then
 
11856
  db_cv_mutex="UNIX/sema_init"
 
11857
else
 
11858
  echo "$as_me: failed program was:" >&5
 
11859
cat conftest.$ac_ext >&5
 
11860
fi
 
11861
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11862
fi
 
11863
 
 
11864
# _lock_try/_lock_clear: Solaris
 
11865
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
 
11866
# undocumented _lock_try _lock_clear function calls instead of either the
 
11867
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
 
11868
# problems in those interfaces in some releases of the Solaris C library.
 
11869
if test "$db_cv_mutex" = no; then
 
11870
cat >conftest.$ac_ext <<_ACEOF
 
11871
#line 11871 "configure"
 
11872
#include "confdefs.h"
 
11873
#include <sys/machlock.h>
 
11874
int
 
11875
main ()
 
11876
{
 
11877
typedef lock_t tsl_t;
 
11878
 lock_t x;
 
11879
 _lock_try(&x); _lock_clear(&x);
 
11880
  ;
 
11881
  return 0;
 
11882
}
 
11883
_ACEOF
 
11884
rm -f conftest.$ac_objext conftest$ac_exeext
 
11885
if { (eval echo "$as_me:11885: \"$ac_link\"") >&5
 
11886
  (eval $ac_link) 2>&5
 
11887
  ac_status=$?
 
11888
  echo "$as_me:11888: \$? = $ac_status" >&5
 
11889
  (exit $ac_status); } &&
 
11890
         { ac_try='test -s conftest$ac_exeext'
 
11891
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
 
11892
  (eval $ac_try) 2>&5
 
11893
  ac_status=$?
 
11894
  echo "$as_me:11894: \$? = $ac_status" >&5
 
11895
  (exit $ac_status); }; }; then
 
11896
  db_cv_mutex="Solaris/_lock_try"
 
11897
else
 
11898
  echo "$as_me: failed program was:" >&5
 
11899
cat conftest.$ac_ext >&5
 
11900
fi
 
11901
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11902
fi
 
11903
 
 
11904
# _check_lock/_clear_lock: AIX
 
11905
if test "$db_cv_mutex" = no; then
 
11906
cat >conftest.$ac_ext <<_ACEOF
 
11907
#line 11907 "configure"
 
11908
#include "confdefs.h"
 
11909
#include <sys/atomic_op.h>
 
11910
int
 
11911
main ()
 
11912
{
 
11913
int x; _check_lock(&x,0,1); _clear_lock(&x,0);
 
11914
  ;
 
11915
  return 0;
 
11916
}
 
11917
_ACEOF
 
11918
rm -f conftest.$ac_objext conftest$ac_exeext
 
11919
if { (eval echo "$as_me:11919: \"$ac_link\"") >&5
 
11920
  (eval $ac_link) 2>&5
 
11921
  ac_status=$?
 
11922
  echo "$as_me:11922: \$? = $ac_status" >&5
 
11923
  (exit $ac_status); } &&
 
11924
         { ac_try='test -s conftest$ac_exeext'
 
11925
  { (eval echo "$as_me:11925: \"$ac_try\"") >&5
 
11926
  (eval $ac_try) 2>&5
 
11927
  ac_status=$?
 
11928
  echo "$as_me:11928: \$? = $ac_status" >&5
 
11929
  (exit $ac_status); }; }; then
 
11930
  db_cv_mutex="AIX/_check_lock"
 
11931
else
 
11932
  echo "$as_me: failed program was:" >&5
 
11933
cat conftest.$ac_ext >&5
 
11934
fi
 
11935
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11936
fi
 
11937
 
 
11938
# Alpha/gcc: OSF/1
 
11939
if test "$db_cv_mutex" = no; then
 
11940
if test "$cross_compiling" = yes; then
 
11941
  { { echo "$as_me:11941: error: cannot run test program while cross compiling" >&5
 
11942
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11943
   { (exit 1); exit 1; }; }
 
11944
else
 
11945
  cat >conftest.$ac_ext <<_ACEOF
 
11946
#line 11946 "configure"
 
11947
#include "confdefs.h"
 
11948
main(){
 
11949
#if defined(__alpha)
 
11950
#if defined(__GNUC__)
 
11951
exit(0);
 
11952
#endif
 
11953
#endif
 
11954
exit(1);}
 
11955
_ACEOF
 
11956
rm -f conftest$ac_exeext
 
11957
if { (eval echo "$as_me:11957: \"$ac_link\"") >&5
 
11958
  (eval $ac_link) 2>&5
 
11959
  ac_status=$?
 
11960
  echo "$as_me:11960: \$? = $ac_status" >&5
 
11961
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11962
  { (eval echo "$as_me:11962: \"$ac_try\"") >&5
 
11963
  (eval $ac_try) 2>&5
 
11964
  ac_status=$?
 
11965
  echo "$as_me:11965: \$? = $ac_status" >&5
 
11966
  (exit $ac_status); }; }; then
 
11967
  db_cv_mutex="ALPHA/gcc-assembly"
 
11968
else
 
11969
  echo "$as_me: program exited with status $ac_status" >&5
 
11970
echo "$as_me: failed program was:" >&5
 
11971
cat conftest.$ac_ext >&5
 
11972
fi
 
11973
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
11974
fi
 
11975
fi
 
11976
 
 
11977
# PaRisc/gcc: HP/UX
 
11978
if test "$db_cv_mutex" = no; then
 
11979
if test "$cross_compiling" = yes; then
 
11980
  { { echo "$as_me:11980: error: cannot run test program while cross compiling" >&5
 
11981
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
11982
   { (exit 1); exit 1; }; }
 
11983
else
 
11984
  cat >conftest.$ac_ext <<_ACEOF
 
11985
#line 11985 "configure"
 
11986
#include "confdefs.h"
 
11987
main(){
 
11988
#if defined(__hppa)
 
11989
#if defined(__GNUC__)
 
11990
exit(0);
 
11991
#endif
 
11992
#endif
 
11993
exit(1);}
 
11994
_ACEOF
 
11995
rm -f conftest$ac_exeext
 
11996
if { (eval echo "$as_me:11996: \"$ac_link\"") >&5
 
11997
  (eval $ac_link) 2>&5
 
11998
  ac_status=$?
 
11999
  echo "$as_me:11999: \$? = $ac_status" >&5
 
12000
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12001
  { (eval echo "$as_me:12001: \"$ac_try\"") >&5
 
12002
  (eval $ac_try) 2>&5
 
12003
  ac_status=$?
 
12004
  echo "$as_me:12004: \$? = $ac_status" >&5
 
12005
  (exit $ac_status); }; }; then
 
12006
  db_cv_mutex="HPPA/gcc-assembly"
 
12007
else
 
12008
  echo "$as_me: program exited with status $ac_status" >&5
 
12009
echo "$as_me: failed program was:" >&5
 
12010
cat conftest.$ac_ext >&5
 
12011
fi
 
12012
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12013
fi
 
12014
fi
 
12015
 
 
12016
# PPC/gcc:
 
12017
if test "$db_cv_mutex" = no; then
 
12018
if test "$cross_compiling" = yes; then
 
12019
  { { echo "$as_me:12019: error: cannot run test program while cross compiling" >&5
 
12020
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12021
   { (exit 1); exit 1; }; }
 
12022
else
 
12023
  cat >conftest.$ac_ext <<_ACEOF
 
12024
#line 12024 "configure"
 
12025
#include "confdefs.h"
 
12026
main(){
 
12027
#if defined(__powerpc__) || defined(__ppc__)
 
12028
#if defined(__GNUC__)
 
12029
exit(0);
 
12030
#endif
 
12031
#endif
 
12032
exit(1);}
 
12033
_ACEOF
 
12034
rm -f conftest$ac_exeext
 
12035
if { (eval echo "$as_me:12035: \"$ac_link\"") >&5
 
12036
  (eval $ac_link) 2>&5
 
12037
  ac_status=$?
 
12038
  echo "$as_me:12038: \$? = $ac_status" >&5
 
12039
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12040
  { (eval echo "$as_me:12040: \"$ac_try\"") >&5
 
12041
  (eval $ac_try) 2>&5
 
12042
  ac_status=$?
 
12043
  echo "$as_me:12043: \$? = $ac_status" >&5
 
12044
  (exit $ac_status); }; }; then
 
12045
  db_cv_mutex="PPC/gcc-assembly"
 
12046
else
 
12047
  echo "$as_me: program exited with status $ac_status" >&5
 
12048
echo "$as_me: failed program was:" >&5
 
12049
cat conftest.$ac_ext >&5
 
12050
fi
 
12051
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12052
fi
 
12053
fi
 
12054
 
 
12055
# Sparc/gcc: SunOS, Solaris
 
12056
if test "$db_cv_mutex" = no; then
 
12057
if test "$cross_compiling" = yes; then
 
12058
  { { echo "$as_me:12058: error: cannot run test program while cross compiling" >&5
 
12059
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12060
   { (exit 1); exit 1; }; }
 
12061
else
 
12062
  cat >conftest.$ac_ext <<_ACEOF
 
12063
#line 12063 "configure"
 
12064
#include "confdefs.h"
 
12065
main(){
 
12066
#if defined(__sparc__)
 
12067
#if defined(__GNUC__)
 
12068
        exit(0);
 
12069
#endif
 
12070
#endif
 
12071
        exit(1);
 
12072
}
 
12073
_ACEOF
 
12074
rm -f conftest$ac_exeext
 
12075
if { (eval echo "$as_me:12075: \"$ac_link\"") >&5
 
12076
  (eval $ac_link) 2>&5
 
12077
  ac_status=$?
 
12078
  echo "$as_me:12078: \$? = $ac_status" >&5
 
12079
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12080
  { (eval echo "$as_me:12080: \"$ac_try\"") >&5
 
12081
  (eval $ac_try) 2>&5
 
12082
  ac_status=$?
 
12083
  echo "$as_me:12083: \$? = $ac_status" >&5
 
12084
  (exit $ac_status); }; }; then
 
12085
  db_cv_mutex="Sparc/gcc-assembly"
 
12086
else
 
12087
  echo "$as_me: program exited with status $ac_status" >&5
 
12088
echo "$as_me: failed program was:" >&5
 
12089
cat conftest.$ac_ext >&5
 
12090
fi
 
12091
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12092
fi
 
12093
fi
 
12094
 
 
12095
# 68K/gcc: SunOS
 
12096
if test "$db_cv_mutex" = no; then
 
12097
if test "$cross_compiling" = yes; then
 
12098
  { { echo "$as_me:12098: error: cannot run test program while cross compiling" >&5
 
12099
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12100
   { (exit 1); exit 1; }; }
 
12101
else
 
12102
  cat >conftest.$ac_ext <<_ACEOF
 
12103
#line 12103 "configure"
 
12104
#include "confdefs.h"
 
12105
main(){
 
12106
#if (defined(mc68020) || defined(sun3))
 
12107
#if defined(__GNUC__)
 
12108
        exit(0);
 
12109
#endif
 
12110
#endif
 
12111
        exit(1);
 
12112
}
 
12113
_ACEOF
 
12114
rm -f conftest$ac_exeext
 
12115
if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
 
12116
  (eval $ac_link) 2>&5
 
12117
  ac_status=$?
 
12118
  echo "$as_me:12118: \$? = $ac_status" >&5
 
12119
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12120
  { (eval echo "$as_me:12120: \"$ac_try\"") >&5
 
12121
  (eval $ac_try) 2>&5
 
12122
  ac_status=$?
 
12123
  echo "$as_me:12123: \$? = $ac_status" >&5
 
12124
  (exit $ac_status); }; }; then
 
12125
  db_cv_mutex="68K/gcc-assembly"
 
12126
else
 
12127
  echo "$as_me: program exited with status $ac_status" >&5
 
12128
echo "$as_me: failed program was:" >&5
 
12129
cat conftest.$ac_ext >&5
 
12130
fi
 
12131
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12132
fi
 
12133
fi
 
12134
 
 
12135
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
 
12136
if test "$db_cv_mutex" = no; then
 
12137
if test "$cross_compiling" = yes; then
 
12138
  { { echo "$as_me:12138: error: cannot run test program while cross compiling" >&5
 
12139
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12140
   { (exit 1); exit 1; }; }
 
12141
else
 
12142
  cat >conftest.$ac_ext <<_ACEOF
 
12143
#line 12143 "configure"
 
12144
#include "confdefs.h"
 
12145
main(){
 
12146
#if defined(i386) || defined(__i386__)
 
12147
#if defined(__GNUC__)
 
12148
        exit(0);
 
12149
#endif
 
12150
#endif
 
12151
        exit(1);
 
12152
}
 
12153
_ACEOF
 
12154
rm -f conftest$ac_exeext
 
12155
if { (eval echo "$as_me:12155: \"$ac_link\"") >&5
 
12156
  (eval $ac_link) 2>&5
 
12157
  ac_status=$?
 
12158
  echo "$as_me:12158: \$? = $ac_status" >&5
 
12159
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12160
  { (eval echo "$as_me:12160: \"$ac_try\"") >&5
 
12161
  (eval $ac_try) 2>&5
 
12162
  ac_status=$?
 
12163
  echo "$as_me:12163: \$? = $ac_status" >&5
 
12164
  (exit $ac_status); }; }; then
 
12165
  db_cv_mutex="x86/gcc-assembly"
 
12166
else
 
12167
  echo "$as_me: program exited with status $ac_status" >&5
 
12168
echo "$as_me: failed program was:" >&5
 
12169
cat conftest.$ac_ext >&5
 
12170
fi
 
12171
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12172
fi
 
12173
fi
 
12174
 
 
12175
# ia86/gcc: Linux
 
12176
if test "$db_cv_mutex" = no; then
 
12177
if test "$cross_compiling" = yes; then
 
12178
  { { echo "$as_me:12178: error: cannot run test program while cross compiling" >&5
 
12179
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12180
   { (exit 1); exit 1; }; }
 
12181
else
 
12182
  cat >conftest.$ac_ext <<_ACEOF
 
12183
#line 12183 "configure"
 
12184
#include "confdefs.h"
 
12185
main(){
 
12186
#if defined(__ia64)
 
12187
#if defined(__GNUC__)
 
12188
        exit(0);
 
12189
#endif
 
12190
#endif
 
12191
        exit(1);
 
12192
}
 
12193
_ACEOF
 
12194
rm -f conftest$ac_exeext
 
12195
if { (eval echo "$as_me:12195: \"$ac_link\"") >&5
 
12196
  (eval $ac_link) 2>&5
 
12197
  ac_status=$?
 
12198
  echo "$as_me:12198: \$? = $ac_status" >&5
 
12199
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12200
  { (eval echo "$as_me:12200: \"$ac_try\"") >&5
 
12201
  (eval $ac_try) 2>&5
 
12202
  ac_status=$?
 
12203
  echo "$as_me:12203: \$? = $ac_status" >&5
 
12204
  (exit $ac_status); }; }; then
 
12205
  db_cv_mutex="ia64/gcc-assembly"
 
12206
else
 
12207
  echo "$as_me: program exited with status $ac_status" >&5
 
12208
echo "$as_me: failed program was:" >&5
 
12209
cat conftest.$ac_ext >&5
 
12210
fi
 
12211
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12212
fi
 
12213
fi
 
12214
 
 
12215
# uts/cc: UTS
 
12216
if test "$db_cv_mutex" = no; then
 
12217
if test "$cross_compiling" = yes; then
 
12218
  { { echo "$as_me:12218: error: cannot run test program while cross compiling" >&5
 
12219
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12220
   { (exit 1); exit 1; }; }
 
12221
else
 
12222
  cat >conftest.$ac_ext <<_ACEOF
 
12223
#line 12223 "configure"
 
12224
#include "confdefs.h"
 
12225
main(){
 
12226
#if defined(_UTS)
 
12227
        exit(0);
 
12228
#endif
 
12229
        exit(1);
 
12230
}
 
12231
_ACEOF
 
12232
rm -f conftest$ac_exeext
 
12233
if { (eval echo "$as_me:12233: \"$ac_link\"") >&5
 
12234
  (eval $ac_link) 2>&5
 
12235
  ac_status=$?
 
12236
  echo "$as_me:12236: \$? = $ac_status" >&5
 
12237
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12238
  { (eval echo "$as_me:12238: \"$ac_try\"") >&5
 
12239
  (eval $ac_try) 2>&5
 
12240
  ac_status=$?
 
12241
  echo "$as_me:12241: \$? = $ac_status" >&5
 
12242
  (exit $ac_status); }; }; then
 
12243
  db_cv_mutex="UTS/cc-assembly"
 
12244
else
 
12245
  echo "$as_me: program exited with status $ac_status" >&5
 
12246
echo "$as_me: failed program was:" >&5
 
12247
cat conftest.$ac_ext >&5
 
12248
fi
 
12249
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12250
fi
 
12251
fi
 
12252
 
 
12253
fi
 
12254
echo "$as_me:12254: result: $db_cv_mutex" >&5
 
12255
echo "${ECHO_T}$db_cv_mutex" >&6
 
12256
 
 
12257
if test "$db_cv_mutex" = no; then
 
12258
        { echo "$as_me:12258: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
 
12259
echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
 
12260
        ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
 
12261
else
 
12262
        cat >>confdefs.h <<\EOF
 
12263
#define HAVE_MUTEX_THREADS 1
 
12264
EOF
 
12265
 
 
12266
fi
 
12267
 
 
12268
case "$db_cv_mutex" in
 
12269
68K/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12270
                        cat >>confdefs.h <<\EOF
 
12271
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
 
12272
EOF
 
12273
 
 
12274
;;
 
12275
AIX/_check_lock)        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12276
                        cat >>confdefs.h <<\EOF
 
12277
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
 
12278
EOF
 
12279
 
 
12280
;;
 
12281
ALPHA/gcc-assembly)     ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12282
                        cat >>confdefs.h <<\EOF
 
12283
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
 
12284
EOF
 
12285
 
 
12286
;;
 
12287
HP/msem_init)           ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12288
                        cat >>confdefs.h <<\EOF
 
12289
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
 
12290
EOF
 
12291
 
 
12292
;;
 
12293
HPPA/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12294
                        cat >>confdefs.h <<\EOF
 
12295
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
 
12296
EOF
 
12297
 
 
12298
;;
 
12299
ia64/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12300
                        cat >>confdefs.h <<\EOF
 
12301
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
 
12302
EOF
 
12303
 
 
12304
;;
 
12305
POSIX/pthreads)         ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
 
12306
                        cat >>confdefs.h <<\EOF
 
12307
#define HAVE_MUTEX_PTHREADS 1
 
12308
EOF
 
12309
 
 
12310
;;
 
12311
POSIX/pthreads/library) LIBS="-lpthread $LIBS"
 
12312
                        ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
 
12313
                        cat >>confdefs.h <<\EOF
 
12314
#define HAVE_MUTEX_PTHREADS 1
 
12315
EOF
 
12316
 
 
12317
;;
 
12318
PPC/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12319
                        cat >>confdefs.h <<\EOF
 
12320
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
 
12321
EOF
 
12322
 
 
12323
;;
 
12324
ReliantUNIX/initspin)   LIBS="$LIBS -lmproc"
 
12325
                        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12326
                        cat >>confdefs.h <<\EOF
 
12327
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
 
12328
EOF
 
12329
 
 
12330
;;
 
12331
SCO/x86/cc-assembly)    ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12332
                        cat >>confdefs.h <<\EOF
 
12333
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
 
12334
EOF
 
12335
 
 
12336
;;
 
12337
SGI/init_lock)          ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12338
                        cat >>confdefs.h <<\EOF
 
12339
#define HAVE_MUTEX_SGI_INIT_LOCK 1
 
12340
EOF
 
12341
 
 
12342
;;
 
12343
Solaris/_lock_try)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12344
                        cat >>confdefs.h <<\EOF
 
12345
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
 
12346
EOF
 
12347
 
 
12348
;;
 
12349
Solaris/lwp)            ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
 
12350
                        cat >>confdefs.h <<\EOF
 
12351
#define HAVE_MUTEX_SOLARIS_LWP 1
 
12352
EOF
 
12353
 
 
12354
;;
 
12355
Sparc/gcc-assembly)     ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12356
                        cat >>confdefs.h <<\EOF
 
12357
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
 
12358
EOF
 
12359
 
 
12360
;;
 
12361
UI/threads)             ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
 
12362
                        cat >>confdefs.h <<\EOF
 
12363
#define HAVE_MUTEX_UI_THREADS 1
 
12364
EOF
 
12365
 
 
12366
;;
 
12367
UI/threads/library)     LIBS="-lthread $LIBS"
 
12368
                        ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
 
12369
                        cat >>confdefs.h <<\EOF
 
12370
#define HAVE_MUTEX_UI_THREADS 1
 
12371
EOF
 
12372
 
 
12373
;;
 
12374
UNIX/msem_init)         ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12375
                        cat >>confdefs.h <<\EOF
 
12376
#define HAVE_MUTEX_MSEM_INIT 1
 
12377
EOF
 
12378
 
 
12379
;;
 
12380
UNIX/sema_init)         ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12381
                        cat >>confdefs.h <<\EOF
 
12382
#define HAVE_MUTEX_SEMA_INIT 1
 
12383
EOF
 
12384
 
 
12385
;;
 
12386
UTS/cc-assembly)        ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
 
12387
                        cat >>confdefs.h <<\EOF
 
12388
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
 
12389
EOF
 
12390
 
 
12391
;;
 
12392
x86/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 
12393
                        cat >>confdefs.h <<\EOF
 
12394
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
 
12395
EOF
 
12396
 
 
12397
;;
 
12398
esac
 
12399
 
 
12400
# Checks for system functions for which we have replacements.
 
12401
#
 
12402
# XXX
 
12403
# The only portable getcwd call is getcwd(char *, size_t), where the
 
12404
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
 
12405
# deleted getwd().
 
12406
 
 
12407
for ac_func in getcwd getopt memcmp memcpy memmove
 
12408
do
 
12409
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12410
echo "$as_me:12410: checking for $ac_func" >&5
 
12411
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12412
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12414
else
 
12415
  cat >conftest.$ac_ext <<_ACEOF
 
12416
#line 12416 "configure"
 
12417
#include "confdefs.h"
 
12418
/* System header to define __stub macros and hopefully few prototypes,
 
12419
    which can conflict with char $ac_func (); below.  */
 
12420
#include <assert.h>
 
12421
/* Override any gcc2 internal prototype to avoid an error.  */
 
12422
#ifdef __cplusplus
 
12423
extern "C"
 
12424
#endif
 
12425
/* We use char because int might match the return type of a gcc2
 
12426
   builtin and then its argument prototype would still apply.  */
 
12427
char $ac_func ();
 
12428
char (*f) ();
 
12429
 
 
12430
int
 
12431
main ()
 
12432
{
 
12433
/* The GNU C library defines this for functions which it implements
 
12434
    to always fail with ENOSYS.  Some functions are actually named
 
12435
    something starting with __ and the normal name is an alias.  */
 
12436
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12437
choke me
 
12438
#else
 
12439
f = $ac_func;
 
12440
#endif
 
12441
 
 
12442
  ;
 
12443
  return 0;
 
12444
}
 
12445
_ACEOF
 
12446
rm -f conftest.$ac_objext conftest$ac_exeext
 
12447
if { (eval echo "$as_me:12447: \"$ac_link\"") >&5
 
12448
  (eval $ac_link) 2>&5
 
12449
  ac_status=$?
 
12450
  echo "$as_me:12450: \$? = $ac_status" >&5
 
12451
  (exit $ac_status); } &&
 
12452
         { ac_try='test -s conftest$ac_exeext'
 
12453
  { (eval echo "$as_me:12453: \"$ac_try\"") >&5
 
12454
  (eval $ac_try) 2>&5
 
12455
  ac_status=$?
 
12456
  echo "$as_me:12456: \$? = $ac_status" >&5
 
12457
  (exit $ac_status); }; }; then
 
12458
  eval "$ac_ac_var=yes"
 
12459
else
 
12460
  echo "$as_me: failed program was:" >&5
 
12461
cat conftest.$ac_ext >&5
 
12462
eval "$ac_ac_var=no"
 
12463
fi
 
12464
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12465
fi
 
12466
echo "$as_me:12466: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12467
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12468
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12469
  cat >>confdefs.h <<EOF
 
12470
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12471
EOF
 
12472
 
 
12473
else
 
12474
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
12475
fi
 
12476
done
 
12477
 
 
12478
for ac_func in raise snprintf strcasecmp strerror vsnprintf
 
12479
do
 
12480
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12481
echo "$as_me:12481: checking for $ac_func" >&5
 
12482
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12483
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12485
else
 
12486
  cat >conftest.$ac_ext <<_ACEOF
 
12487
#line 12487 "configure"
 
12488
#include "confdefs.h"
 
12489
/* System header to define __stub macros and hopefully few prototypes,
 
12490
    which can conflict with char $ac_func (); below.  */
 
12491
#include <assert.h>
 
12492
/* Override any gcc2 internal prototype to avoid an error.  */
 
12493
#ifdef __cplusplus
 
12494
extern "C"
 
12495
#endif
 
12496
/* We use char because int might match the return type of a gcc2
 
12497
   builtin and then its argument prototype would still apply.  */
 
12498
char $ac_func ();
 
12499
char (*f) ();
 
12500
 
 
12501
int
 
12502
main ()
 
12503
{
 
12504
/* The GNU C library defines this for functions which it implements
 
12505
    to always fail with ENOSYS.  Some functions are actually named
 
12506
    something starting with __ and the normal name is an alias.  */
 
12507
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12508
choke me
 
12509
#else
 
12510
f = $ac_func;
 
12511
#endif
 
12512
 
 
12513
  ;
 
12514
  return 0;
 
12515
}
 
12516
_ACEOF
 
12517
rm -f conftest.$ac_objext conftest$ac_exeext
 
12518
if { (eval echo "$as_me:12518: \"$ac_link\"") >&5
 
12519
  (eval $ac_link) 2>&5
 
12520
  ac_status=$?
 
12521
  echo "$as_me:12521: \$? = $ac_status" >&5
 
12522
  (exit $ac_status); } &&
 
12523
         { ac_try='test -s conftest$ac_exeext'
 
12524
  { (eval echo "$as_me:12524: \"$ac_try\"") >&5
 
12525
  (eval $ac_try) 2>&5
 
12526
  ac_status=$?
 
12527
  echo "$as_me:12527: \$? = $ac_status" >&5
 
12528
  (exit $ac_status); }; }; then
 
12529
  eval "$ac_ac_var=yes"
 
12530
else
 
12531
  echo "$as_me: failed program was:" >&5
 
12532
cat conftest.$ac_ext >&5
 
12533
eval "$ac_ac_var=no"
 
12534
fi
 
12535
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12536
fi
 
12537
echo "$as_me:12537: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12538
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12539
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12540
  cat >>confdefs.h <<EOF
 
12541
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12542
EOF
 
12543
 
 
12544
else
 
12545
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
12546
fi
 
12547
done
 
12548
 
 
12549
# XXX
 
12550
# Nasty hack.  AC_REPLACE_FUNCS added entries of the form xxx.o to the
 
12551
# LIBOBJS variable.  They have to be xxx.lo if we are building shared
 
12552
# libraries.  Use sed, configure already requires it.
 
12553
tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`"
 
12554
LIBOBJS="$tmp"
 
12555
 
 
12556
# Check for system functions we optionally use.
 
12557
 
 
12558
for ac_func in _fstati64 getuid pstat_getdynamic sched_yield select strtoul
 
12559
do
 
12560
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12561
echo "$as_me:12561: checking for $ac_func" >&5
 
12562
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12563
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12565
else
 
12566
  cat >conftest.$ac_ext <<_ACEOF
 
12567
#line 12567 "configure"
 
12568
#include "confdefs.h"
 
12569
/* System header to define __stub macros and hopefully few prototypes,
 
12570
    which can conflict with char $ac_func (); below.  */
 
12571
#include <assert.h>
 
12572
/* Override any gcc2 internal prototype to avoid an error.  */
 
12573
#ifdef __cplusplus
 
12574
extern "C"
 
12575
#endif
 
12576
/* We use char because int might match the return type of a gcc2
 
12577
   builtin and then its argument prototype would still apply.  */
 
12578
char $ac_func ();
 
12579
char (*f) ();
 
12580
 
 
12581
int
 
12582
main ()
 
12583
{
 
12584
/* The GNU C library defines this for functions which it implements
 
12585
    to always fail with ENOSYS.  Some functions are actually named
 
12586
    something starting with __ and the normal name is an alias.  */
 
12587
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12588
choke me
 
12589
#else
 
12590
f = $ac_func;
 
12591
#endif
 
12592
 
 
12593
  ;
 
12594
  return 0;
 
12595
}
 
12596
_ACEOF
 
12597
rm -f conftest.$ac_objext conftest$ac_exeext
 
12598
if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
 
12599
  (eval $ac_link) 2>&5
 
12600
  ac_status=$?
 
12601
  echo "$as_me:12601: \$? = $ac_status" >&5
 
12602
  (exit $ac_status); } &&
 
12603
         { ac_try='test -s conftest$ac_exeext'
 
12604
  { (eval echo "$as_me:12604: \"$ac_try\"") >&5
 
12605
  (eval $ac_try) 2>&5
 
12606
  ac_status=$?
 
12607
  echo "$as_me:12607: \$? = $ac_status" >&5
 
12608
  (exit $ac_status); }; }; then
 
12609
  eval "$ac_ac_var=yes"
 
12610
else
 
12611
  echo "$as_me: failed program was:" >&5
 
12612
cat conftest.$ac_ext >&5
 
12613
eval "$ac_ac_var=no"
 
12614
fi
 
12615
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12616
fi
 
12617
echo "$as_me:12617: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12618
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12619
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12620
  cat >>confdefs.h <<EOF
 
12621
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12622
EOF
 
12623
 
 
12624
fi
 
12625
done
 
12626
 
 
12627
for ac_func in sysconf yield
 
12628
do
 
12629
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12630
echo "$as_me:12630: checking for $ac_func" >&5
 
12631
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12632
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12634
else
 
12635
  cat >conftest.$ac_ext <<_ACEOF
 
12636
#line 12636 "configure"
 
12637
#include "confdefs.h"
 
12638
/* System header to define __stub macros and hopefully few prototypes,
 
12639
    which can conflict with char $ac_func (); below.  */
 
12640
#include <assert.h>
 
12641
/* Override any gcc2 internal prototype to avoid an error.  */
 
12642
#ifdef __cplusplus
 
12643
extern "C"
 
12644
#endif
 
12645
/* We use char because int might match the return type of a gcc2
 
12646
   builtin and then its argument prototype would still apply.  */
 
12647
char $ac_func ();
 
12648
char (*f) ();
 
12649
 
 
12650
int
 
12651
main ()
 
12652
{
 
12653
/* The GNU C library defines this for functions which it implements
 
12654
    to always fail with ENOSYS.  Some functions are actually named
 
12655
    something starting with __ and the normal name is an alias.  */
 
12656
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12657
choke me
 
12658
#else
 
12659
f = $ac_func;
 
12660
#endif
 
12661
 
 
12662
  ;
 
12663
  return 0;
 
12664
}
 
12665
_ACEOF
 
12666
rm -f conftest.$ac_objext conftest$ac_exeext
 
12667
if { (eval echo "$as_me:12667: \"$ac_link\"") >&5
 
12668
  (eval $ac_link) 2>&5
 
12669
  ac_status=$?
 
12670
  echo "$as_me:12670: \$? = $ac_status" >&5
 
12671
  (exit $ac_status); } &&
 
12672
         { ac_try='test -s conftest$ac_exeext'
 
12673
  { (eval echo "$as_me:12673: \"$ac_try\"") >&5
 
12674
  (eval $ac_try) 2>&5
 
12675
  ac_status=$?
 
12676
  echo "$as_me:12676: \$? = $ac_status" >&5
 
12677
  (exit $ac_status); }; }; then
 
12678
  eval "$ac_ac_var=yes"
 
12679
else
 
12680
  echo "$as_me: failed program was:" >&5
 
12681
cat conftest.$ac_ext >&5
 
12682
eval "$ac_ac_var=no"
 
12683
fi
 
12684
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12685
fi
 
12686
echo "$as_me:12686: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12687
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12688
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12689
  cat >>confdefs.h <<EOF
 
12690
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12691
EOF
 
12692
 
 
12693
fi
 
12694
done
 
12695
 
 
12696
# Pread/pwrite.
 
12697
#
 
12698
# HP-UX has pread/pwrite, but it doesn't work with bigfile support.
 
12699
case "$host_os" in
 
12700
hpux*)
 
12701
        { echo "$as_me:12701: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
 
12702
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
 
12703
*)
 
12704
 
 
12705
for ac_func in pread pwrite
 
12706
do
 
12707
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12708
echo "$as_me:12708: checking for $ac_func" >&5
 
12709
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12710
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12712
else
 
12713
  cat >conftest.$ac_ext <<_ACEOF
 
12714
#line 12714 "configure"
 
12715
#include "confdefs.h"
 
12716
/* System header to define __stub macros and hopefully few prototypes,
 
12717
    which can conflict with char $ac_func (); below.  */
 
12718
#include <assert.h>
 
12719
/* Override any gcc2 internal prototype to avoid an error.  */
 
12720
#ifdef __cplusplus
 
12721
extern "C"
 
12722
#endif
 
12723
/* We use char because int might match the return type of a gcc2
 
12724
   builtin and then its argument prototype would still apply.  */
 
12725
char $ac_func ();
 
12726
char (*f) ();
 
12727
 
 
12728
int
 
12729
main ()
 
12730
{
 
12731
/* The GNU C library defines this for functions which it implements
 
12732
    to always fail with ENOSYS.  Some functions are actually named
 
12733
    something starting with __ and the normal name is an alias.  */
 
12734
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12735
choke me
 
12736
#else
 
12737
f = $ac_func;
 
12738
#endif
 
12739
 
 
12740
  ;
 
12741
  return 0;
 
12742
}
 
12743
_ACEOF
 
12744
rm -f conftest.$ac_objext conftest$ac_exeext
 
12745
if { (eval echo "$as_me:12745: \"$ac_link\"") >&5
 
12746
  (eval $ac_link) 2>&5
 
12747
  ac_status=$?
 
12748
  echo "$as_me:12748: \$? = $ac_status" >&5
 
12749
  (exit $ac_status); } &&
 
12750
         { ac_try='test -s conftest$ac_exeext'
 
12751
  { (eval echo "$as_me:12751: \"$ac_try\"") >&5
 
12752
  (eval $ac_try) 2>&5
 
12753
  ac_status=$?
 
12754
  echo "$as_me:12754: \$? = $ac_status" >&5
 
12755
  (exit $ac_status); }; }; then
 
12756
  eval "$ac_ac_var=yes"
 
12757
else
 
12758
  echo "$as_me: failed program was:" >&5
 
12759
cat conftest.$ac_ext >&5
 
12760
eval "$ac_ac_var=no"
 
12761
fi
 
12762
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12763
fi
 
12764
echo "$as_me:12764: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12765
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12766
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12767
  cat >>confdefs.h <<EOF
 
12768
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12769
EOF
 
12770
 
 
12771
fi
 
12772
done
 
12773
 
 
12774
esac
 
12775
 
 
12776
# Check for fcntl(2) to deny child process access to file descriptors.
 
12777
echo "$as_me:12777: checking for fcntl/F_SETFD" >&5
 
12778
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
 
12779
if test "${db_cv_fcntl_f_setfd+set}" = set; then
 
12780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12781
else
 
12782
 
 
12783
if test "$cross_compiling" = yes; then
 
12784
  { { echo "$as_me:12784: error: cannot run test program while cross compiling" >&5
 
12785
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12786
   { (exit 1); exit 1; }; }
 
12787
else
 
12788
  cat >conftest.$ac_ext <<_ACEOF
 
12789
#line 12789 "configure"
 
12790
#include "confdefs.h"
 
12791
 
 
12792
#include <sys/types.h>
 
12793
#include <fcntl.h>
 
12794
main(){exit(fcntl(1, F_SETFD, 1) == -1);}
 
12795
_ACEOF
 
12796
rm -f conftest$ac_exeext
 
12797
if { (eval echo "$as_me:12797: \"$ac_link\"") >&5
 
12798
  (eval $ac_link) 2>&5
 
12799
  ac_status=$?
 
12800
  echo "$as_me:12800: \$? = $ac_status" >&5
 
12801
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12802
  { (eval echo "$as_me:12802: \"$ac_try\"") >&5
 
12803
  (eval $ac_try) 2>&5
 
12804
  ac_status=$?
 
12805
  echo "$as_me:12805: \$? = $ac_status" >&5
 
12806
  (exit $ac_status); }; }; then
 
12807
  db_cv_fcntl_f_setfd=yes
 
12808
else
 
12809
  echo "$as_me: program exited with status $ac_status" >&5
 
12810
echo "$as_me: failed program was:" >&5
 
12811
cat conftest.$ac_ext >&5
 
12812
db_cv_fcntl_f_setfd=no
 
12813
fi
 
12814
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12815
fi
 
12816
fi
 
12817
echo "$as_me:12817: result: $db_cv_fcntl_f_setfd" >&5
 
12818
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
 
12819
if test "$db_cv_fcntl_f_setfd" = yes; then
 
12820
        cat >>confdefs.h <<\EOF
 
12821
#define HAVE_FCNTL_F_SETFD 1
 
12822
EOF
 
12823
 
 
12824
fi
 
12825
 
 
12826
# A/UX has a broken getopt(3).
 
12827
case "$host_os" in
 
12828
aux*)   ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
 
12829
esac
 
12830
 
 
12831
# Checks for system functions for which we don't have replacements.
 
12832
# We require qsort(3).
 
12833
 
 
12834
for ac_func in qsort
 
12835
do
 
12836
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
12837
echo "$as_me:12837: checking for $ac_func" >&5
 
12838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12839
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
12840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12841
else
 
12842
  cat >conftest.$ac_ext <<_ACEOF
 
12843
#line 12843 "configure"
 
12844
#include "confdefs.h"
 
12845
/* System header to define __stub macros and hopefully few prototypes,
 
12846
    which can conflict with char $ac_func (); below.  */
 
12847
#include <assert.h>
 
12848
/* Override any gcc2 internal prototype to avoid an error.  */
 
12849
#ifdef __cplusplus
 
12850
extern "C"
 
12851
#endif
 
12852
/* We use char because int might match the return type of a gcc2
 
12853
   builtin and then its argument prototype would still apply.  */
 
12854
char $ac_func ();
 
12855
char (*f) ();
 
12856
 
 
12857
int
 
12858
main ()
 
12859
{
 
12860
/* The GNU C library defines this for functions which it implements
 
12861
    to always fail with ENOSYS.  Some functions are actually named
 
12862
    something starting with __ and the normal name is an alias.  */
 
12863
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12864
choke me
 
12865
#else
 
12866
f = $ac_func;
 
12867
#endif
 
12868
 
 
12869
  ;
 
12870
  return 0;
 
12871
}
 
12872
_ACEOF
 
12873
rm -f conftest.$ac_objext conftest$ac_exeext
 
12874
if { (eval echo "$as_me:12874: \"$ac_link\"") >&5
 
12875
  (eval $ac_link) 2>&5
 
12876
  ac_status=$?
 
12877
  echo "$as_me:12877: \$? = $ac_status" >&5
 
12878
  (exit $ac_status); } &&
 
12879
         { ac_try='test -s conftest$ac_exeext'
 
12880
  { (eval echo "$as_me:12880: \"$ac_try\"") >&5
 
12881
  (eval $ac_try) 2>&5
 
12882
  ac_status=$?
 
12883
  echo "$as_me:12883: \$? = $ac_status" >&5
 
12884
  (exit $ac_status); }; }; then
 
12885
  eval "$ac_ac_var=yes"
 
12886
else
 
12887
  echo "$as_me: failed program was:" >&5
 
12888
cat conftest.$ac_ext >&5
 
12889
eval "$ac_ac_var=no"
 
12890
fi
 
12891
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12892
fi
 
12893
echo "$as_me:12893: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
12894
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
12895
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
12896
  cat >>confdefs.h <<EOF
 
12897
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
12898
EOF
 
12899
 
 
12900
else
 
12901
  { { echo "$as_me:12901: error: No qsort library function." >&5
 
12902
echo "$as_me: error: No qsort library function." >&2;}
 
12903
   { (exit 1); exit 1; }; }
 
12904
fi
 
12905
done
 
12906
 
 
12907
# Some versions of sprintf return a pointer to the first argument instead
 
12908
# of a character count.  We assume that the return value of snprintf and
 
12909
# vsprintf etc. will be the same as sprintf, and check the easy one.
 
12910
echo "$as_me:12910: checking for int type sprintf return value" >&5
 
12911
echo $ECHO_N "checking for int type sprintf return value... $ECHO_C" >&6
 
12912
if test "${db_cv_sprintf_count+set}" = set; then
 
12913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12914
else
 
12915
 
 
12916
if test "$cross_compiling" = yes; then
 
12917
  { { echo "$as_me:12917: error: cannot run test program while cross compiling" >&5
 
12918
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
 
12919
   { (exit 1); exit 1; }; }
 
12920
else
 
12921
  cat >conftest.$ac_ext <<_ACEOF
 
12922
#line 12922 "configure"
 
12923
#include "confdefs.h"
 
12924
main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
 
12925
_ACEOF
 
12926
rm -f conftest$ac_exeext
 
12927
if { (eval echo "$as_me:12927: \"$ac_link\"") >&5
 
12928
  (eval $ac_link) 2>&5
 
12929
  ac_status=$?
 
12930
  echo "$as_me:12930: \$? = $ac_status" >&5
 
12931
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12932
  { (eval echo "$as_me:12932: \"$ac_try\"") >&5
 
12933
  (eval $ac_try) 2>&5
 
12934
  ac_status=$?
 
12935
  echo "$as_me:12935: \$? = $ac_status" >&5
 
12936
  (exit $ac_status); }; }; then
 
12937
  db_cv_sprintf_count=yes
 
12938
else
 
12939
  echo "$as_me: program exited with status $ac_status" >&5
 
12940
echo "$as_me: failed program was:" >&5
 
12941
cat conftest.$ac_ext >&5
 
12942
db_cv_sprintf_count=no
 
12943
fi
 
12944
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
 
12945
fi
 
12946
fi
 
12947
echo "$as_me:12947: result: $db_cv_sprintf_count" >&5
 
12948
echo "${ECHO_T}$db_cv_sprintf_count" >&6
 
12949
if test "$db_cv_sprintf_count" = no; then
 
12950
        cat >>confdefs.h <<\EOF
 
12951
#define SPRINTF_RET_CHARPNT 1
 
12952
EOF
 
12953
 
 
12954
fi
 
12955
 
 
12956
# You can't build C++ with big-file support on HP-UX, the include files
 
12957
# are wrong.  On Solaris 8, the <fcntl.h> included with big-file support
 
12958
# is not compatible with C++.
 
12959
largefile_ok=yes
 
12960
case "$host_os" in
 
12961
solaris2.8|hpux*)
 
12962
        if test "$db_cv_cxx" = "yes"; then
 
12963
{ echo "$as_me:12963: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
 
12964
echo "$as_me: WARNING: Large file and C++ API support are incompatible on HP-UX" >&2;}
 
12965
{ echo "$as_me:12965: WARNING: and Solaris 8; large file support has been turned off." >&5
 
12966
echo "$as_me: WARNING: and Solaris 8; large file support has been turned off." >&2;}
 
12967
                largefile_ok=no
 
12968
        fi;;
 
12969
esac
 
12970
if test "$largefile_ok" = yes; then
 
12971
        # Check whether --enable-largefile or --disable-largefile was given.
 
12972
if test "${enable_largefile+set}" = set; then
 
12973
  enableval="$enable_largefile"
 
12974
 
 
12975
fi;
 
12976
if test "$enable_largefile" != no; then
 
12977
 
 
12978
  echo "$as_me:12978: checking for special C compiler options needed for large files" >&5
 
12979
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
 
12980
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
12981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12982
else
 
12983
  ac_cv_sys_largefile_CC=no
 
12984
     if test "$GCC" != yes; then
 
12985
       ac_save_CC=$CC
 
12986
       while :; do
 
12987
         # IRIX 6.2 and later do not support large files by default,
 
12988
         # so use the C compiler's -n32 option if that helps.
 
12989
         cat >conftest.$ac_ext <<_ACEOF
 
12990
#line 12990 "configure"
 
12991
#include "confdefs.h"
 
12992
#include <sys/types.h>
 
12993
 /* Check that off_t can represent 2**63 - 1 correctly.
 
12994
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
12995
    since some C++ compilers masquerading as C compilers
 
12996
    incorrectly reject 9223372036854775807.  */
 
12997
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
12998
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
12999
                       && LARGE_OFF_T % 2147483647 == 1)
 
13000
                      ? 1 : -1];
 
13001
int
 
13002
main ()
 
13003
{
 
13004
 
 
13005
  ;
 
13006
  return 0;
 
13007
}
 
13008
_ACEOF
 
13009
         rm -f conftest.$ac_objext
 
13010
if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5
 
13011
  (eval $ac_compile) 2>&5
 
13012
  ac_status=$?
 
13013
  echo "$as_me:13013: \$? = $ac_status" >&5
 
13014
  (exit $ac_status); } &&
 
13015
         { ac_try='test -s conftest.$ac_objext'
 
13016
  { (eval echo "$as_me:13016: \"$ac_try\"") >&5
 
13017
  (eval $ac_try) 2>&5
 
13018
  ac_status=$?
 
13019
  echo "$as_me:13019: \$? = $ac_status" >&5
 
13020
  (exit $ac_status); }; }; then
 
13021
  break
 
13022
else
 
13023
  echo "$as_me: failed program was:" >&5
 
13024
cat conftest.$ac_ext >&5
 
13025
fi
 
13026
rm -f conftest.$ac_objext
 
13027
         CC="$CC -n32"
 
13028
         rm -f conftest.$ac_objext
 
13029
if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5
 
13030
  (eval $ac_compile) 2>&5
 
13031
  ac_status=$?
 
13032
  echo "$as_me:13032: \$? = $ac_status" >&5
 
13033
  (exit $ac_status); } &&
 
13034
         { ac_try='test -s conftest.$ac_objext'
 
13035
  { (eval echo "$as_me:13035: \"$ac_try\"") >&5
 
13036
  (eval $ac_try) 2>&5
 
13037
  ac_status=$?
 
13038
  echo "$as_me:13038: \$? = $ac_status" >&5
 
13039
  (exit $ac_status); }; }; then
 
13040
  ac_cv_sys_largefile_CC=' -n32'; break
 
13041
else
 
13042
  echo "$as_me: failed program was:" >&5
 
13043
cat conftest.$ac_ext >&5
 
13044
fi
 
13045
rm -f conftest.$ac_objext
 
13046
         break
 
13047
       done
 
13048
       CC=$ac_save_CC
 
13049
       rm -f conftest.$ac_ext
 
13050
    fi
 
13051
fi
 
13052
echo "$as_me:13052: result: $ac_cv_sys_largefile_CC" >&5
 
13053
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
13054
  if test "$ac_cv_sys_largefile_CC" != no; then
 
13055
    CC=$CC$ac_cv_sys_largefile_CC
 
13056
  fi
 
13057
 
 
13058
  echo "$as_me:13058: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
13059
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
 
13060
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
13061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13062
else
 
13063
  while :; do
 
13064
  ac_cv_sys_file_offset_bits=no
 
13065
  cat >conftest.$ac_ext <<_ACEOF
 
13066
#line 13066 "configure"
 
13067
#include "confdefs.h"
 
13068
#include <sys/types.h>
 
13069
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13070
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13071
    since some C++ compilers masquerading as C compilers
 
13072
    incorrectly reject 9223372036854775807.  */
 
13073
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13074
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13075
                       && LARGE_OFF_T % 2147483647 == 1)
 
13076
                      ? 1 : -1];
 
13077
int
 
13078
main ()
 
13079
{
 
13080
 
 
13081
  ;
 
13082
  return 0;
 
13083
}
 
13084
_ACEOF
 
13085
rm -f conftest.$ac_objext
 
13086
if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
 
13087
  (eval $ac_compile) 2>&5
 
13088
  ac_status=$?
 
13089
  echo "$as_me:13089: \$? = $ac_status" >&5
 
13090
  (exit $ac_status); } &&
 
13091
         { ac_try='test -s conftest.$ac_objext'
 
13092
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
 
13093
  (eval $ac_try) 2>&5
 
13094
  ac_status=$?
 
13095
  echo "$as_me:13095: \$? = $ac_status" >&5
 
13096
  (exit $ac_status); }; }; then
 
13097
  break
 
13098
else
 
13099
  echo "$as_me: failed program was:" >&5
 
13100
cat conftest.$ac_ext >&5
 
13101
fi
 
13102
rm -f conftest.$ac_objext conftest.$ac_ext
 
13103
  cat >conftest.$ac_ext <<_ACEOF
 
13104
#line 13104 "configure"
 
13105
#include "confdefs.h"
 
13106
#define _FILE_OFFSET_BITS 64
 
13107
#include <sys/types.h>
 
13108
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13109
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13110
    since some C++ compilers masquerading as C compilers
 
13111
    incorrectly reject 9223372036854775807.  */
 
13112
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13113
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13114
                       && LARGE_OFF_T % 2147483647 == 1)
 
13115
                      ? 1 : -1];
 
13116
int
 
13117
main ()
 
13118
{
 
13119
 
 
13120
  ;
 
13121
  return 0;
 
13122
}
 
13123
_ACEOF
 
13124
rm -f conftest.$ac_objext
 
13125
if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
 
13126
  (eval $ac_compile) 2>&5
 
13127
  ac_status=$?
 
13128
  echo "$as_me:13128: \$? = $ac_status" >&5
 
13129
  (exit $ac_status); } &&
 
13130
         { ac_try='test -s conftest.$ac_objext'
 
13131
  { (eval echo "$as_me:13131: \"$ac_try\"") >&5
 
13132
  (eval $ac_try) 2>&5
 
13133
  ac_status=$?
 
13134
  echo "$as_me:13134: \$? = $ac_status" >&5
 
13135
  (exit $ac_status); }; }; then
 
13136
  ac_cv_sys_file_offset_bits=64; break
 
13137
else
 
13138
  echo "$as_me: failed program was:" >&5
 
13139
cat conftest.$ac_ext >&5
 
13140
fi
 
13141
rm -f conftest.$ac_objext conftest.$ac_ext
 
13142
  break
 
13143
done
 
13144
fi
 
13145
echo "$as_me:13145: result: $ac_cv_sys_file_offset_bits" >&5
 
13146
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
 
13147
if test "$ac_cv_sys_file_offset_bits" != no; then
 
13148
 
 
13149
cat >>confdefs.h <<EOF
 
13150
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
13151
EOF
 
13152
 
 
13153
fi
 
13154
rm -f conftest*
 
13155
  echo "$as_me:13155: checking for _LARGE_FILES value needed for large files" >&5
 
13156
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
 
13157
if test "${ac_cv_sys_large_files+set}" = set; then
 
13158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13159
else
 
13160
  while :; do
 
13161
  ac_cv_sys_large_files=no
 
13162
  cat >conftest.$ac_ext <<_ACEOF
 
13163
#line 13163 "configure"
 
13164
#include "confdefs.h"
 
13165
#include <sys/types.h>
 
13166
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13167
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13168
    since some C++ compilers masquerading as C compilers
 
13169
    incorrectly reject 9223372036854775807.  */
 
13170
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13171
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13172
                       && LARGE_OFF_T % 2147483647 == 1)
 
13173
                      ? 1 : -1];
 
13174
int
 
13175
main ()
 
13176
{
 
13177
 
 
13178
  ;
 
13179
  return 0;
 
13180
}
 
13181
_ACEOF
 
13182
rm -f conftest.$ac_objext
 
13183
if { (eval echo "$as_me:13183: \"$ac_compile\"") >&5
 
13184
  (eval $ac_compile) 2>&5
 
13185
  ac_status=$?
 
13186
  echo "$as_me:13186: \$? = $ac_status" >&5
 
13187
  (exit $ac_status); } &&
 
13188
         { ac_try='test -s conftest.$ac_objext'
 
13189
  { (eval echo "$as_me:13189: \"$ac_try\"") >&5
 
13190
  (eval $ac_try) 2>&5
 
13191
  ac_status=$?
 
13192
  echo "$as_me:13192: \$? = $ac_status" >&5
 
13193
  (exit $ac_status); }; }; then
 
13194
  break
 
13195
else
 
13196
  echo "$as_me: failed program was:" >&5
 
13197
cat conftest.$ac_ext >&5
 
13198
fi
 
13199
rm -f conftest.$ac_objext conftest.$ac_ext
 
13200
  cat >conftest.$ac_ext <<_ACEOF
 
13201
#line 13201 "configure"
 
13202
#include "confdefs.h"
 
13203
#define _LARGE_FILES 1
 
13204
#include <sys/types.h>
 
13205
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13206
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13207
    since some C++ compilers masquerading as C compilers
 
13208
    incorrectly reject 9223372036854775807.  */
 
13209
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13210
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13211
                       && LARGE_OFF_T % 2147483647 == 1)
 
13212
                      ? 1 : -1];
 
13213
int
 
13214
main ()
 
13215
{
 
13216
 
 
13217
  ;
 
13218
  return 0;
 
13219
}
 
13220
_ACEOF
 
13221
rm -f conftest.$ac_objext
 
13222
if { (eval echo "$as_me:13222: \"$ac_compile\"") >&5
 
13223
  (eval $ac_compile) 2>&5
 
13224
  ac_status=$?
 
13225
  echo "$as_me:13225: \$? = $ac_status" >&5
 
13226
  (exit $ac_status); } &&
 
13227
         { ac_try='test -s conftest.$ac_objext'
 
13228
  { (eval echo "$as_me:13228: \"$ac_try\"") >&5
 
13229
  (eval $ac_try) 2>&5
 
13230
  ac_status=$?
 
13231
  echo "$as_me:13231: \$? = $ac_status" >&5
 
13232
  (exit $ac_status); }; }; then
 
13233
  ac_cv_sys_large_files=1; break
 
13234
else
 
13235
  echo "$as_me: failed program was:" >&5
 
13236
cat conftest.$ac_ext >&5
 
13237
fi
 
13238
rm -f conftest.$ac_objext conftest.$ac_ext
 
13239
  break
 
13240
done
 
13241
fi
 
13242
echo "$as_me:13242: result: $ac_cv_sys_large_files" >&5
 
13243
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
 
13244
if test "$ac_cv_sys_large_files" != no; then
 
13245
 
 
13246
cat >>confdefs.h <<EOF
 
13247
#define _LARGE_FILES $ac_cv_sys_large_files
 
13248
EOF
 
13249
 
 
13250
fi
 
13251
rm -f conftest*
 
13252
fi
 
13253
 
 
13254
fi
 
13255
 
 
13256
# Figure out how to create shared regions.
 
13257
#
 
13258
# First, we look for mmap.
 
13259
#
 
13260
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
 
13261
#
 
13262
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
 
13263
# is defined in the C library) but does not support munmap(2).  Don't
 
13264
# try to use mmap if we can't find munmap.
 
13265
#
 
13266
# Ultrix has mmap(2), but it doesn't work.
 
13267
mmap_ok=no
 
13268
case "$host_os" in
 
13269
bsdi3*|bsdi4.0)
 
13270
        { echo "$as_me:13270: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
 
13271
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
 
13272
        mmap_ok=yes
 
13273
 
 
13274
for ac_func in mmap munmap
 
13275
do
 
13276
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
13277
echo "$as_me:13277: checking for $ac_func" >&5
 
13278
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13279
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
13280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13281
else
 
13282
  cat >conftest.$ac_ext <<_ACEOF
 
13283
#line 13283 "configure"
 
13284
#include "confdefs.h"
 
13285
/* System header to define __stub macros and hopefully few prototypes,
 
13286
    which can conflict with char $ac_func (); below.  */
 
13287
#include <assert.h>
 
13288
/* Override any gcc2 internal prototype to avoid an error.  */
 
13289
#ifdef __cplusplus
 
13290
extern "C"
 
13291
#endif
 
13292
/* We use char because int might match the return type of a gcc2
 
13293
   builtin and then its argument prototype would still apply.  */
 
13294
char $ac_func ();
 
13295
char (*f) ();
 
13296
 
 
13297
int
 
13298
main ()
 
13299
{
 
13300
/* The GNU C library defines this for functions which it implements
 
13301
    to always fail with ENOSYS.  Some functions are actually named
 
13302
    something starting with __ and the normal name is an alias.  */
 
13303
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13304
choke me
 
13305
#else
 
13306
f = $ac_func;
 
13307
#endif
 
13308
 
 
13309
  ;
 
13310
  return 0;
 
13311
}
 
13312
_ACEOF
 
13313
rm -f conftest.$ac_objext conftest$ac_exeext
 
13314
if { (eval echo "$as_me:13314: \"$ac_link\"") >&5
 
13315
  (eval $ac_link) 2>&5
 
13316
  ac_status=$?
 
13317
  echo "$as_me:13317: \$? = $ac_status" >&5
 
13318
  (exit $ac_status); } &&
 
13319
         { ac_try='test -s conftest$ac_exeext'
 
13320
  { (eval echo "$as_me:13320: \"$ac_try\"") >&5
 
13321
  (eval $ac_try) 2>&5
 
13322
  ac_status=$?
 
13323
  echo "$as_me:13323: \$? = $ac_status" >&5
 
13324
  (exit $ac_status); }; }; then
 
13325
  eval "$ac_ac_var=yes"
 
13326
else
 
13327
  echo "$as_me: failed program was:" >&5
 
13328
cat conftest.$ac_ext >&5
 
13329
eval "$ac_ac_var=no"
 
13330
fi
 
13331
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13332
fi
 
13333
echo "$as_me:13333: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
13334
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
13335
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
13336
  cat >>confdefs.h <<EOF
 
13337
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
13338
EOF
 
13339
 
 
13340
else
 
13341
  mmap_ok=no
 
13342
fi
 
13343
done
 
13344
;;
 
13345
ultrix*)
 
13346
        { echo "$as_me:13346: WARNING: mmap(2) interface ignored on Ultrix." >&5
 
13347
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
 
13348
*)
 
13349
        mmap_ok=yes
 
13350
 
 
13351
for ac_func in mlock munlock
 
13352
do
 
13353
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
13354
echo "$as_me:13354: checking for $ac_func" >&5
 
13355
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13356
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
13357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13358
else
 
13359
  cat >conftest.$ac_ext <<_ACEOF
 
13360
#line 13360 "configure"
 
13361
#include "confdefs.h"
 
13362
/* System header to define __stub macros and hopefully few prototypes,
 
13363
    which can conflict with char $ac_func (); below.  */
 
13364
#include <assert.h>
 
13365
/* Override any gcc2 internal prototype to avoid an error.  */
 
13366
#ifdef __cplusplus
 
13367
extern "C"
 
13368
#endif
 
13369
/* We use char because int might match the return type of a gcc2
 
13370
   builtin and then its argument prototype would still apply.  */
 
13371
char $ac_func ();
 
13372
char (*f) ();
 
13373
 
 
13374
int
 
13375
main ()
 
13376
{
 
13377
/* The GNU C library defines this for functions which it implements
 
13378
    to always fail with ENOSYS.  Some functions are actually named
 
13379
    something starting with __ and the normal name is an alias.  */
 
13380
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13381
choke me
 
13382
#else
 
13383
f = $ac_func;
 
13384
#endif
 
13385
 
 
13386
  ;
 
13387
  return 0;
 
13388
}
 
13389
_ACEOF
 
13390
rm -f conftest.$ac_objext conftest$ac_exeext
 
13391
if { (eval echo "$as_me:13391: \"$ac_link\"") >&5
 
13392
  (eval $ac_link) 2>&5
 
13393
  ac_status=$?
 
13394
  echo "$as_me:13394: \$? = $ac_status" >&5
 
13395
  (exit $ac_status); } &&
 
13396
         { ac_try='test -s conftest$ac_exeext'
 
13397
  { (eval echo "$as_me:13397: \"$ac_try\"") >&5
 
13398
  (eval $ac_try) 2>&5
 
13399
  ac_status=$?
 
13400
  echo "$as_me:13400: \$? = $ac_status" >&5
 
13401
  (exit $ac_status); }; }; then
 
13402
  eval "$ac_ac_var=yes"
 
13403
else
 
13404
  echo "$as_me: failed program was:" >&5
 
13405
cat conftest.$ac_ext >&5
 
13406
eval "$ac_ac_var=no"
 
13407
fi
 
13408
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13409
fi
 
13410
echo "$as_me:13410: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
13411
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
13412
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
13413
  cat >>confdefs.h <<EOF
 
13414
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
13415
EOF
 
13416
 
 
13417
fi
 
13418
done
 
13419
 
 
13420
for ac_func in mmap munmap
 
13421
do
 
13422
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
13423
echo "$as_me:13423: checking for $ac_func" >&5
 
13424
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13425
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
13426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13427
else
 
13428
  cat >conftest.$ac_ext <<_ACEOF
 
13429
#line 13429 "configure"
 
13430
#include "confdefs.h"
 
13431
/* System header to define __stub macros and hopefully few prototypes,
 
13432
    which can conflict with char $ac_func (); below.  */
 
13433
#include <assert.h>
 
13434
/* Override any gcc2 internal prototype to avoid an error.  */
 
13435
#ifdef __cplusplus
 
13436
extern "C"
 
13437
#endif
 
13438
/* We use char because int might match the return type of a gcc2
 
13439
   builtin and then its argument prototype would still apply.  */
 
13440
char $ac_func ();
 
13441
char (*f) ();
 
13442
 
 
13443
int
 
13444
main ()
 
13445
{
 
13446
/* The GNU C library defines this for functions which it implements
 
13447
    to always fail with ENOSYS.  Some functions are actually named
 
13448
    something starting with __ and the normal name is an alias.  */
 
13449
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13450
choke me
 
13451
#else
 
13452
f = $ac_func;
 
13453
#endif
 
13454
 
 
13455
  ;
 
13456
  return 0;
 
13457
}
 
13458
_ACEOF
 
13459
rm -f conftest.$ac_objext conftest$ac_exeext
 
13460
if { (eval echo "$as_me:13460: \"$ac_link\"") >&5
 
13461
  (eval $ac_link) 2>&5
 
13462
  ac_status=$?
 
13463
  echo "$as_me:13463: \$? = $ac_status" >&5
 
13464
  (exit $ac_status); } &&
 
13465
         { ac_try='test -s conftest$ac_exeext'
 
13466
  { (eval echo "$as_me:13466: \"$ac_try\"") >&5
 
13467
  (eval $ac_try) 2>&5
 
13468
  ac_status=$?
 
13469
  echo "$as_me:13469: \$? = $ac_status" >&5
 
13470
  (exit $ac_status); }; }; then
 
13471
  eval "$ac_ac_var=yes"
 
13472
else
 
13473
  echo "$as_me: failed program was:" >&5
 
13474
cat conftest.$ac_ext >&5
 
13475
eval "$ac_ac_var=no"
 
13476
fi
 
13477
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13478
fi
 
13479
echo "$as_me:13479: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
13480
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
13481
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
13482
  cat >>confdefs.h <<EOF
 
13483
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
13484
EOF
 
13485
 
 
13486
else
 
13487
  mmap_ok=no
 
13488
fi
 
13489
done
 
13490
;;
 
13491
esac
 
13492
 
 
13493
# Second, we look for shmget.
 
13494
#
 
13495
# SunOS has the shmget(2) interfaces, but there appears to be a missing
 
13496
# #include <debug/debug.h> file, so we ignore them.
 
13497
shmget_ok=no
 
13498
case "$host_os" in
 
13499
sunos*)
 
13500
        { echo "$as_me:13500: WARNING: shmget(2) interface ignored on SunOS." >&5
 
13501
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
 
13502
*)
 
13503
        shmget_ok=yes
 
13504
 
 
13505
for ac_func in shmget
 
13506
do
 
13507
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
 
13508
echo "$as_me:13508: checking for $ac_func" >&5
 
13509
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13510
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
13511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13512
else
 
13513
  cat >conftest.$ac_ext <<_ACEOF
 
13514
#line 13514 "configure"
 
13515
#include "confdefs.h"
 
13516
/* System header to define __stub macros and hopefully few prototypes,
 
13517
    which can conflict with char $ac_func (); below.  */
 
13518
#include <assert.h>
 
13519
/* Override any gcc2 internal prototype to avoid an error.  */
 
13520
#ifdef __cplusplus
 
13521
extern "C"
 
13522
#endif
 
13523
/* We use char because int might match the return type of a gcc2
 
13524
   builtin and then its argument prototype would still apply.  */
 
13525
char $ac_func ();
 
13526
char (*f) ();
 
13527
 
 
13528
int
 
13529
main ()
 
13530
{
 
13531
/* The GNU C library defines this for functions which it implements
 
13532
    to always fail with ENOSYS.  Some functions are actually named
 
13533
    something starting with __ and the normal name is an alias.  */
 
13534
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13535
choke me
 
13536
#else
 
13537
f = $ac_func;
 
13538
#endif
 
13539
 
 
13540
  ;
 
13541
  return 0;
 
13542
}
 
13543
_ACEOF
 
13544
rm -f conftest.$ac_objext conftest$ac_exeext
 
13545
if { (eval echo "$as_me:13545: \"$ac_link\"") >&5
 
13546
  (eval $ac_link) 2>&5
 
13547
  ac_status=$?
 
13548
  echo "$as_me:13548: \$? = $ac_status" >&5
 
13549
  (exit $ac_status); } &&
 
13550
         { ac_try='test -s conftest$ac_exeext'
 
13551
  { (eval echo "$as_me:13551: \"$ac_try\"") >&5
 
13552
  (eval $ac_try) 2>&5
 
13553
  ac_status=$?
 
13554
  echo "$as_me:13554: \$? = $ac_status" >&5
 
13555
  (exit $ac_status); }; }; then
 
13556
  eval "$ac_ac_var=yes"
 
13557
else
 
13558
  echo "$as_me: failed program was:" >&5
 
13559
cat conftest.$ac_ext >&5
 
13560
eval "$ac_ac_var=no"
 
13561
fi
 
13562
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13563
fi
 
13564
echo "$as_me:13564: result: `eval echo '${'$ac_ac_var'}'`" >&5
 
13565
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
 
13566
if test `eval echo '${'$ac_ac_var'}'` = yes; then
 
13567
  cat >>confdefs.h <<EOF
 
13568
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
 
13569
EOF
 
13570
 
 
13571
else
 
13572
  shmget_ok=no
 
13573
fi
 
13574
done
 
13575
;;
 
13576
esac
 
13577
 
 
13578
# We require either mmap/munmap(2) or shmget(2).
 
13579
if test "$mmap_ok" = no -a "$shmget_ok" = no; then
 
13580
        { echo "$as_me:13580: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
 
13581
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
 
13582
fi
 
13583
 
 
13584
# Initial output file list.
 
13585
CREATE_LIST="Makefile
 
13586
    include.tcl:$srcdir/../test/include.tcl
 
13587
    db_int.h:$srcdir/../include/db_int.in"
 
13588
 
 
13589
# Create the db.h file -- append the global function prototypes to the
 
13590
# file.  If the user has requested unique names, use the file that does
 
13591
# DB_VERSION_UNIQUE_NAME substitution.
 
13592
if test "$db_cv_uniquename" = "yes"; then
 
13593
    CREATE_LIST="${CREATE_LIST}
 
13594
    db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_uext.in"
 
13595
else
 
13596
    CREATE_LIST="${CREATE_LIST}
 
13597
    db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_ext.in"
 
13598
fi
 
13599
 
 
13600
# Create the function prototype include files.  If the user has requested
 
13601
# unique names, use the files that do DB_VERSION_UNIQUE_NAME substitution.
 
13602
if test "$db_cv_uniquename" = "yes"; then
 
13603
    CREATE_LIST="${CREATE_LIST}
 
13604
    db_ext.h:$srcdir/../include_auto/db_ext.in
 
13605
    btree_ext.h:$srcdir/../include_auto/btree_ext.in
 
13606
    clib_ext.h:$srcdir/../include_auto/clib_ext.in
 
13607
    common_ext.h:$srcdir/../include_auto/common_ext.in
 
13608
    db_server.h:$srcdir/../include_auto/db_server.in
 
13609
    env_ext.h:$srcdir/../include_auto/env_ext.in
 
13610
    hash_ext.h:$srcdir/../include_auto/hash_ext.in
 
13611
    lock_ext.h:$srcdir/../include_auto/lock_ext.in
 
13612
    log_ext.h:$srcdir/../include_auto/log_ext.in
 
13613
    mp_ext.h:$srcdir/../include_auto/mp_ext.in
 
13614
    mutex_ext.h:$srcdir/../include_auto/mutex_ext.in
 
13615
    os_ext.h:$srcdir/../include_auto/os_ext.in
 
13616
    qam_ext.h:$srcdir/../include_auto/qam_ext.in
 
13617
    rpc_client_ext.h:$srcdir/../include_auto/rpc_client_ext.in
 
13618
    rpc_server_ext.h:$srcdir/../include_auto/rpc_server_ext.in
 
13619
    tcl_ext.h:$srcdir/../include_auto/tcl_ext.in
 
13620
    txn_ext.h:$srcdir/../include_auto/txn_ext.in
 
13621
    xa_ext.h:$srcdir/../include_auto/xa_ext.in"
 
13622
fi
 
13623
if test "$db_cv_compat185" = "yes"; then
 
13624
        if test "$db_cv_uniquename" = "yes"; then
 
13625
                CREATE_LIST="${CREATE_LIST}
 
13626
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_uext.in
 
13627
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_uext.in"
 
13628
        else
 
13629
                CREATE_LIST="${CREATE_LIST}
 
13630
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_ext.in
 
13631
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_ext.in"
 
13632
        fi
 
13633
fi
 
13634
if test "$db_cv_embedix" = "yes"; then
 
13635
        CREATE_LIST="${CREATE_LIST} db.ecd:../dist/db.ecd.in"
 
13636
fi
 
13637
if test "$db_cv_rpm" = "yes"; then
 
13638
        CREATE_LIST="${CREATE_LIST} db.spec:../dist/db.spec.in"
 
13639
fi
 
13640
 
 
13641
ac_config_files="$ac_config_files ${CREATE_LIST}"
 
13642
 
 
13643
cat >confcache <<\_ACEOF
 
13644
# This file is a shell script that caches the results of configure
 
13645
# tests run on this system so they can be shared between configure
 
13646
# scripts and configure runs, see configure's option --config-cache.
 
13647
# It is not useful on other systems.  If it contains results you don't
 
13648
# want to keep, you may remove or edit it.
 
13649
#
 
13650
# config.status only pays attention to the cache file if you give it
 
13651
# the --recheck option to rerun configure.
 
13652
#
 
13653
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
13654
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13655
# following values.
 
13656
 
 
13657
_ACEOF
 
13658
 
 
13659
# The following way of writing the cache mishandles newlines in values,
 
13660
# but we know of no workaround that is simple, portable, and efficient.
 
13661
# So, don't put newlines in cache variables' values.
 
13662
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13663
# and sets the high bit in the cache file unless we assign to the vars.
 
13664
{
 
13665
  (set) 2>&1 |
 
13666
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
13667
    *ac_space=\ *)
 
13668
      # `set' does not quote correctly, so add quotes (double-quote
 
13669
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13670
      sed -n \
 
13671
        "s/'/'\\\\''/g;
 
13672
          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13673
      ;;
 
13674
    *)
 
13675
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13676
      sed -n \
 
13677
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
13678
      ;;
 
13679
    esac;
 
13680
} |
 
13681
  sed '
 
13682
     t clear
 
13683
     : clear
 
13684
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13685
     t end
 
13686
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13687
     : end' >>confcache
 
13688
if cmp -s $cache_file confcache; then :; else
 
13689
  if test -w $cache_file; then
 
13690
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
13691
    cat confcache >$cache_file
 
13692
  else
 
13693
    echo "not updating unwritable cache $cache_file"
 
13694
  fi
 
13695
fi
 
13696
rm -f confcache
 
13697
 
 
13698
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13699
# Let make expand exec_prefix.
 
13700
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13701
 
 
13702
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
13703
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
13704
# trailing colons and then remove the whole line if VPATH becomes empty
 
13705
# (actually we leave an empty line to preserve line numbers).
 
13706
if test "x$srcdir" = x.; then
 
13707
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
13708
s/:*\$(srcdir):*/:/;
 
13709
s/:*\${srcdir}:*/:/;
 
13710
s/:*@srcdir@:*/:/;
 
13711
s/^\([^=]*=[    ]*\):*/\1/;
 
13712
s/:*$//;
 
13713
s/^[^=]*=[      ]*$//;
 
13714
}'
 
13715
fi
 
13716
 
 
13717
DEFS=-DHAVE_CONFIG_H
 
13718
 
 
13719
: ${CONFIG_STATUS=./config.status}
 
13720
ac_clean_files_save=$ac_clean_files
 
13721
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13722
{ echo "$as_me:13722: creating $CONFIG_STATUS" >&5
 
13723
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13724
cat >$CONFIG_STATUS <<_ACEOF
 
13725
#! $SHELL
 
13726
# Generated automatically by configure.
 
13727
# Run this file to recreate the current configuration.
 
13728
# Compiler output produced by configure, useful for debugging
 
13729
# configure, is in config.log if it exists.
 
13730
 
 
13731
debug=false
 
13732
SHELL=\${CONFIG_SHELL-$SHELL}
 
13733
ac_cs_invocation="\$0 \$@"
 
13734
 
 
13735
_ACEOF
 
13736
 
 
13737
cat >>$CONFIG_STATUS <<\_ACEOF
 
13738
# Be Bourne compatible
 
13739
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13740
  emulate sh
 
13741
  NULLCMD=:
 
13742
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
13743
  set -o posix
 
13744
fi
 
13745
 
 
13746
# Name of the executable.
 
13747
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
13748
 
 
13749
if expr a : '\(a\)' >/dev/null 2>&1; then
 
13750
  as_expr=expr
 
13751
else
 
13752
  as_expr=false
 
13753
fi
 
13754
 
 
13755
rm -f conf$$ conf$$.exe conf$$.file
 
13756
echo >conf$$.file
 
13757
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13758
  # We could just check for DJGPP; but this test a) works b) is more generic
 
13759
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
13760
  if test -f conf$$.exe; then
 
13761
    # Don't use ln at all; we don't have any links
 
13762
    as_ln_s='cp -p'
 
13763
  else
 
13764
    as_ln_s='ln -s'
 
13765
  fi
 
13766
elif ln conf$$.file conf$$ 2>/dev/null; then
 
13767
  as_ln_s=ln
 
13768
else
 
13769
  as_ln_s='cp -p'
 
13770
fi
 
13771
rm -f conf$$ conf$$.exe conf$$.file
 
13772
 
 
13773
as_executable_p="test -f"
 
13774
 
 
13775
# Support unset when possible.
 
13776
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
13777
  as_unset=unset
 
13778
else
 
13779
  as_unset=false
 
13780
fi
 
13781
 
 
13782
# NLS nuisances.
 
13783
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
13784
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
13785
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
13786
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
13787
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
13788
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
13789
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
13790
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
13791
 
 
13792
# IFS
 
13793
# We need space, tab and new line, in precisely that order.
 
13794
as_nl='
 
13795
'
 
13796
IFS="   $as_nl"
 
13797
 
 
13798
# CDPATH.
 
13799
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
13800
 
 
13801
exec 6>&1
 
13802
 
 
13803
_ACEOF
 
13804
 
 
13805
# Files that config.status was made for.
 
13806
if test -n "$ac_config_files"; then
 
13807
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
13808
fi
 
13809
 
 
13810
if test -n "$ac_config_headers"; then
 
13811
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
13812
fi
 
13813
 
 
13814
if test -n "$ac_config_links"; then
 
13815
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
13816
fi
 
13817
 
 
13818
if test -n "$ac_config_commands"; then
 
13819
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
13820
fi
 
13821
 
 
13822
cat >>$CONFIG_STATUS <<\EOF
 
13823
 
 
13824
ac_cs_usage="\
 
13825
\`$as_me' instantiates files from templates according to the
 
13826
current configuration.
 
13827
 
 
13828
Usage: $0 [OPTIONS] [FILE]...
 
13829
 
 
13830
  -h, --help       print this help, then exit
 
13831
  -V, --version    print version number, then exit
 
13832
  -d, --debug      don't remove temporary files
 
13833
      --recheck    update $as_me by reconfiguring in the same conditions
 
13834
  --file=FILE[:TEMPLATE]
 
13835
                   instantiate the configuration file FILE
 
13836
  --header=FILE[:TEMPLATE]
 
13837
                   instantiate the configuration header FILE
 
13838
 
 
13839
Configuration files:
 
13840
$config_files
 
13841
 
 
13842
Configuration headers:
 
13843
$config_headers
 
13844
 
 
13845
Report bugs to <bug-autoconf@gnu.org>."
 
13846
EOF
 
13847
 
 
13848
cat >>$CONFIG_STATUS <<EOF
 
13849
ac_cs_version="\\
 
13850
config.status
 
13851
configured by $0, generated by GNU Autoconf 2.50,
 
13852
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
13853
 
 
13854
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
13855
Free Software Foundation, Inc.
 
13856
This config.status script is free software; the Free Software Foundation
 
13857
gives unlimited permission to copy, distribute and modify it."
 
13858
srcdir=$srcdir
 
13859
INSTALL="$INSTALL"
 
13860
EOF
 
13861
 
 
13862
cat >>$CONFIG_STATUS <<\EOF
 
13863
# If no file are specified by the user, then we need to provide default
 
13864
# value.  By we need to know if files were specified by the user.
 
13865
ac_need_defaults=:
 
13866
while test $# != 0
 
13867
do
 
13868
  case $1 in
 
13869
  --*=*)
 
13870
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
13871
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
13872
    shift
 
13873
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
13874
    shift
 
13875
    ;;
 
13876
  -*);;
 
13877
  *) # This is not an option, so the user has probably given explicit
 
13878
     # arguments.
 
13879
     ac_need_defaults=false;;
 
13880
  esac
 
13881
 
 
13882
  case $1 in
 
13883
  # Handling of the options.
 
13884
EOF
 
13885
cat >>$CONFIG_STATUS <<EOF
 
13886
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13887
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
13888
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
13889
EOF
 
13890
cat >>$CONFIG_STATUS <<\EOF
 
13891
  --version | --vers* | -V )
 
13892
    echo "$ac_cs_version"; exit 0 ;;
 
13893
  --he | --h)
 
13894
    # Conflict between --help and --header
 
13895
    { { echo "$as_me:13895: error: ambiguous option: $1
 
13896
Try \`$0 --help' for more information." >&5
 
13897
echo "$as_me: error: ambiguous option: $1
 
13898
Try \`$0 --help' for more information." >&2;}
 
13899
   { (exit 1); exit 1; }; };;
 
13900
  --help | --hel | -h )
 
13901
    echo "$ac_cs_usage"; exit 0 ;;
 
13902
  --debug | --d* | -d )
 
13903
    debug=: ;;
 
13904
  --file | --fil | --fi | --f )
 
13905
    shift
 
13906
    CONFIG_FILES="$CONFIG_FILES $1"
 
13907
    ac_need_defaults=false;;
 
13908
  --header | --heade | --head | --hea )
 
13909
    shift
 
13910
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
13911
    ac_need_defaults=false;;
 
13912
 
 
13913
  # Handling of arguments.
 
13914
  '${CREATE_LIST}' ) CONFIG_FILES="$CONFIG_FILES ${CREATE_LIST}" ;;
 
13915
  'db_config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
 
13916
 
 
13917
  # This is an error.
 
13918
  -*) { { echo "$as_me:13918: error: unrecognized option: $1
 
13919
Try \`$0 --help' for more information." >&5
 
13920
echo "$as_me: error: unrecognized option: $1
 
13921
Try \`$0 --help' for more information." >&2;}
 
13922
   { (exit 1); exit 1; }; } ;;
 
13923
  *) { { echo "$as_me:13923: error: invalid argument: $1" >&5
 
13924
echo "$as_me: error: invalid argument: $1" >&2;}
 
13925
   { (exit 1); exit 1; }; };;
 
13926
  esac
 
13927
  shift
 
13928
done
 
13929
 
 
13930
exec 5>>config.log
 
13931
cat >&5 << _ACEOF
 
13932
 
 
13933
## ----------------------- ##
 
13934
## Running config.status.  ##
 
13935
## ----------------------- ##
 
13936
 
 
13937
This file was extended by $as_me 2.50, executed with
 
13938
  > $ac_cs_invocation
 
13939
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13940
 
 
13941
_ACEOF
 
13942
EOF
 
13943
 
 
13944
cat >>$CONFIG_STATUS <<\EOF
 
13945
# If the user did not use the arguments to specify the items to instantiate,
 
13946
# then the envvar interface is used.  Set only those that are not.
 
13947
# We use the long form for the default assignment because of an extremely
 
13948
# bizarre bug on SunOS 4.1.3.
 
13949
if $ac_need_defaults; then
 
13950
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13951
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13952
fi
 
13953
 
 
13954
# Create a temporary directory, and hook for its removal unless debugging.
 
13955
$debug ||
 
13956
{
 
13957
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
13958
  trap '{ (exit $?); exit $?; }' 1 2 13 15
 
13959
}
 
13960
 
 
13961
# Create a (secure) tmp directory for tmp files.
 
13962
: ${TMPDIR=/tmp}
 
13963
{
 
13964
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
13965
  test -n "$tmp" && test -d "$tmp"
 
13966
}  ||
 
13967
{
 
13968
  tmp=$TMPDIR/cs$$-$RANDOM
 
13969
  (umask 077 && mkdir $tmp)
 
13970
} ||
 
13971
{
 
13972
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
13973
   { (exit 1); exit 1; }
 
13974
}
 
13975
 
 
13976
EOF
 
13977
 
 
13978
cat >>$CONFIG_STATUS <<EOF
 
13979
 
 
13980
#
 
13981
# CONFIG_FILES section.
 
13982
#
 
13983
 
 
13984
# No need to generate the scripts if there are no CONFIG_FILES.
 
13985
# This happens for instance when ./config.status config.h
 
13986
if test -n "\$CONFIG_FILES"; then
 
13987
  # Protect against being on the right side of a sed subst in config.status.
 
13988
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
13989
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
13990
s,@SHELL@,$SHELL,;t t
 
13991
s,@exec_prefix@,$exec_prefix,;t t
 
13992
s,@prefix@,$prefix,;t t
 
13993
s,@program_transform_name@,$program_transform_name,;t t
 
13994
s,@bindir@,$bindir,;t t
 
13995
s,@sbindir@,$sbindir,;t t
 
13996
s,@libexecdir@,$libexecdir,;t t
 
13997
s,@datadir@,$datadir,;t t
 
13998
s,@sysconfdir@,$sysconfdir,;t t
 
13999
s,@sharedstatedir@,$sharedstatedir,;t t
 
14000
s,@localstatedir@,$localstatedir,;t t
 
14001
s,@libdir@,$libdir,;t t
 
14002
s,@includedir@,$includedir,;t t
 
14003
s,@oldincludedir@,$oldincludedir,;t t
 
14004
s,@infodir@,$infodir,;t t
 
14005
s,@mandir@,$mandir,;t t
 
14006
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
14007
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
14008
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
14009
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
14010
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
14011
s,@ECHO_C@,$ECHO_C,;t t
 
14012
s,@ECHO_N@,$ECHO_N,;t t
 
14013
s,@ECHO_T@,$ECHO_T,;t t
 
14014
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
14015
s,@DEFS@,$DEFS,;t t
 
14016
s,@LIBS@,$LIBS,;t t
 
14017
s,@build@,$build,;t t
 
14018
s,@build_cpu@,$build_cpu,;t t
 
14019
s,@build_vendor@,$build_vendor,;t t
 
14020
s,@build_os@,$build_os,;t t
 
14021
s,@host@,$host,;t t
 
14022
s,@host_cpu@,$host_cpu,;t t
 
14023
s,@host_vendor@,$host_vendor,;t t
 
14024
s,@host_os@,$host_os,;t t
 
14025
s,@ADDITIONAL_INCS@,$ADDITIONAL_INCS,;t t
 
14026
s,@ADDITIONAL_LANG@,$ADDITIONAL_LANG,;t t
 
14027
s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
 
14028
s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
 
14029
s,@ADDITIONAL_PROGS@,$ADDITIONAL_PROGS,;t t
 
14030
s,@BUILD_TARGET@,$BUILD_TARGET,;t t
 
14031
s,@CFLAGS@,$CFLAGS,;t t
 
14032
s,@CONFIGURATION_ARGS@,$CONFIGURATION_ARGS,;t t
 
14033
s,@CONFIGURATION_PATH@,$CONFIGURATION_PATH,;t t
 
14034
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
14035
s,@CXX@,$CXX,;t t
 
14036
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
14037
s,@DEFAULT_INSTALL@,$DEFAULT_INSTALL,;t t
 
14038
s,@DEFAULT_LIB@,$DEFAULT_LIB,;t t
 
14039
s,@DEFAULT_LIB_CXX@,$DEFAULT_LIB_CXX,;t t
 
14040
s,@EMBEDIX_ECD_CXX@,$EMBEDIX_ECD_CXX,;t t
 
14041
s,@EMBEDIX_ECD_RPC@,$EMBEDIX_ECD_RPC,;t t
 
14042
s,@EMBEDIX_ROOT@,$EMBEDIX_ROOT,;t t
 
14043
s,@INSTALLER@,$INSTALLER,;t t
 
14044
s,@INSTALL_LIBS@,$INSTALL_LIBS,;t t
 
14045
s,@INSTALL_TARGET@,$INSTALL_TARGET,;t t
 
14046
s,@JAR@,$JAR,;t t
 
14047
s,@JAVAC@,$JAVAC,;t t
 
14048
s,@JAVACFLAGS@,$JAVACFLAGS,;t t
 
14049
s,@LDFLAGS@,$LDFLAGS,;t t
 
14050
s,@LIBJSO_LIBS@,$LIBJSO_LIBS,;t t
 
14051
s,@LIBSO_LIBS@,$LIBSO_LIBS,;t t
 
14052
s,@LIBTOOL@,$LIBTOOL,;t t
 
14053
s,@LIBTSO_LIBS@,$LIBTSO_LIBS,;t t
 
14054
s,@LIBXSO_LIBS@,$LIBXSO_LIBS,;t t
 
14055
s,@MAKEFILE_CC@,$MAKEFILE_CC,;t t
 
14056
s,@MAKEFILE_CCLINK@,$MAKEFILE_CCLINK,;t t
 
14057
s,@MAKEFILE_CXX@,$MAKEFILE_CXX,;t t
 
14058
s,@MAKEFILE_CXXLINK@,$MAKEFILE_CXXLINK,;t t
 
14059
s,@POSTLINK@,$POSTLINK,;t t
 
14060
s,@RPC_CLIENT_OBJS@,$RPC_CLIENT_OBJS,;t t
 
14061
s,@RPM_POST_INSTALL@,$RPM_POST_INSTALL,;t t
 
14062
s,@RPM_POST_UNINSTALL@,$RPM_POST_UNINSTALL,;t t
 
14063
s,@SOFLAGS@,$SOFLAGS,;t t
 
14064
s,@SOLINK@,$SOLINK,;t t
 
14065
s,@SOSUFFIX@,$SOSUFFIX,;t t
 
14066
s,@TEST_LIBS@,$TEST_LIBS,;t t
 
14067
s,@db_cv_path_embedix_install@,$db_cv_path_embedix_install,;t t
 
14068
s,@db_cv_path_rpm_archive@,$db_cv_path_rpm_archive,;t t
 
14069
s,@o@,$o,;t t
 
14070
s,@DB_VERSION_MAJOR@,$DB_VERSION_MAJOR,;t t
 
14071
s,@DB_VERSION_MINOR@,$DB_VERSION_MINOR,;t t
 
14072
s,@DB_VERSION_PATCH@,$DB_VERSION_PATCH,;t t
 
14073
s,@DB_VERSION_UNIQUE_NAME@,$DB_VERSION_UNIQUE_NAME,;t t
 
14074
s,@DB_VERSION_STRING@,$DB_VERSION_STRING,;t t
 
14075
s,@db_cv_path_ar@,$db_cv_path_ar,;t t
 
14076
s,@ac_ct_db_cv_path_ar@,$ac_ct_db_cv_path_ar,;t t
 
14077
s,@db_cv_path_chmod@,$db_cv_path_chmod,;t t
 
14078
s,@ac_ct_db_cv_path_chmod@,$ac_ct_db_cv_path_chmod,;t t
 
14079
s,@db_cv_path_cp@,$db_cv_path_cp,;t t
 
14080
s,@ac_ct_db_cv_path_cp@,$ac_ct_db_cv_path_cp,;t t
 
14081
s,@path_ldconfig@,$path_ldconfig,;t t
 
14082
s,@ac_ct_path_ldconfig@,$ac_ct_path_ldconfig,;t t
 
14083
s,@db_cv_path_ldconfig@,$db_cv_path_ldconfig,;t t
 
14084
s,@db_cv_path_ln@,$db_cv_path_ln,;t t
 
14085
s,@ac_ct_db_cv_path_ln@,$ac_ct_db_cv_path_ln,;t t
 
14086
s,@db_cv_path_mkdir@,$db_cv_path_mkdir,;t t
 
14087
s,@ac_ct_db_cv_path_mkdir@,$ac_ct_db_cv_path_mkdir,;t t
 
14088
s,@path_ranlib@,$path_ranlib,;t t
 
14089
s,@ac_ct_path_ranlib@,$ac_ct_path_ranlib,;t t
 
14090
s,@db_cv_path_ranlib@,$db_cv_path_ranlib,;t t
 
14091
s,@db_cv_path_rm@,$db_cv_path_rm,;t t
 
14092
s,@ac_ct_db_cv_path_rm@,$ac_ct_db_cv_path_rm,;t t
 
14093
s,@db_cv_path_rpm@,$db_cv_path_rpm,;t t
 
14094
s,@ac_ct_db_cv_path_rpm@,$ac_ct_db_cv_path_rpm,;t t
 
14095
s,@path_sh@,$path_sh,;t t
 
14096
s,@ac_ct_path_sh@,$ac_ct_path_sh,;t t
 
14097
s,@db_cv_path_sh@,$db_cv_path_sh,;t t
 
14098
s,@path_strip@,$path_strip,;t t
 
14099
s,@ac_ct_path_strip@,$ac_ct_path_strip,;t t
 
14100
s,@db_cv_path_strip@,$db_cv_path_strip,;t t
 
14101
s,@db_cv_path_kill@,$db_cv_path_kill,;t t
 
14102
s,@ac_ct_db_cv_path_kill@,$ac_ct_db_cv_path_kill,;t t
 
14103
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
14104
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
14105
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
14106
s,@CC@,$CC,;t t
 
14107
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
14108
s,@EXEEXT@,$EXEEXT,;t t
 
14109
s,@OBJEXT@,$OBJEXT,;t t
 
14110
s,@CCC@,$CCC,;t t
 
14111
s,@ac_ct_CCC@,$ac_ct_CCC,;t t
 
14112
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
14113
s,@LN_S@,$LN_S,;t t
 
14114
s,@ECHO@,$ECHO,;t t
 
14115
s,@RANLIB@,$RANLIB,;t t
 
14116
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
14117
s,@STRIP@,$STRIP,;t t
 
14118
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
14119
s,@CPP@,$CPP,;t t
 
14120
s,@ac_ct_JAVAC@,$ac_ct_JAVAC,;t t
 
14121
s,@ac_ct_JAR@,$ac_ct_JAR,;t t
 
14122
s,@JAVACABS@,$JAVACABS,;t t
 
14123
s,@TCFLAGS@,$TCFLAGS,;t t
 
14124
s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
 
14125
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
 
14126
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
 
14127
s,@TCL_TCLSH@,$TCL_TCLSH,;t t
 
14128
s,@u_char_decl@,$u_char_decl,;t t
 
14129
s,@u_short_decl@,$u_short_decl,;t t
 
14130
s,@u_int_decl@,$u_int_decl,;t t
 
14131
s,@u_long_decl@,$u_long_decl,;t t
 
14132
s,@u_int8_decl@,$u_int8_decl,;t t
 
14133
s,@u_int16_decl@,$u_int16_decl,;t t
 
14134
s,@int16_decl@,$int16_decl,;t t
 
14135
s,@u_int32_decl@,$u_int32_decl,;t t
 
14136
s,@int32_decl@,$int32_decl,;t t
 
14137
s,@ssize_t_decl@,$ssize_t_decl,;t t
 
14138
s,@db_align_t_decl@,$db_align_t_decl,;t t
 
14139
s,@db_alignp_t_decl@,$db_alignp_t_decl,;t t
 
14140
s,@LIBOBJS@,$LIBOBJS,;t t
 
14141
CEOF
 
14142
 
 
14143
EOF
 
14144
 
 
14145
  cat >>$CONFIG_STATUS <<\EOF
 
14146
  # Split the substitutions into bite-sized pieces for seds with
 
14147
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
14148
  ac_max_sed_lines=48
 
14149
  ac_sed_frag=1 # Number of current file.
 
14150
  ac_beg=1 # First line for current file.
 
14151
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
14152
  ac_more_lines=:
 
14153
  ac_sed_cmds=
 
14154
  while $ac_more_lines; do
 
14155
    if test $ac_beg -gt 1; then
 
14156
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
14157
    else
 
14158
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
14159
    fi
 
14160
    if test ! -s $tmp/subs.frag; then
 
14161
      ac_more_lines=false
 
14162
    else
 
14163
      # The purpose of the label and of the branching condition is to
 
14164
      # speed up the sed processing (if there are no `@' at all, there
 
14165
      # is no need to browse any of the substitutions).
 
14166
      # These are the two extra sed commands mentioned above.
 
14167
      (echo ':t
 
14168
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
14169
      if test -z "$ac_sed_cmds"; then
 
14170
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
14171
      else
 
14172
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
14173
      fi
 
14174
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
14175
      ac_beg=$ac_end
 
14176
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
14177
    fi
 
14178
  done
 
14179
  if test -z "$ac_sed_cmds"; then
 
14180
    ac_sed_cmds=cat
 
14181
  fi
 
14182
fi # test -n "$CONFIG_FILES"
 
14183
 
 
14184
EOF
 
14185
cat >>$CONFIG_STATUS <<\EOF
 
14186
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
14187
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
14188
  case $ac_file in
 
14189
  - | *:- | *:-:* ) # input from stdin
 
14190
        cat >$tmp/stdin
 
14191
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14192
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14193
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14194
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14195
  * )   ac_file_in=$ac_file.in ;;
 
14196
  esac
 
14197
 
 
14198
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
14199
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14200
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14201
         X"$ac_file" : 'X\(//\)$' \| \
 
14202
         X"$ac_file" : 'X\(/\)' \| \
 
14203
         .     : '\(.\)' 2>/dev/null ||
 
14204
echo X"$ac_file" |
 
14205
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14206
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14207
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14208
          /^X\(\/\).*/{ s//\1/; q; }
 
14209
          s/.*/./; q'`
 
14210
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
14211
    { case "$ac_dir" in
 
14212
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
14213
  *)                      as_incr_dir=.;;
 
14214
esac
 
14215
as_dummy="$ac_dir"
 
14216
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
14217
  case $as_mkdir_dir in
 
14218
    # Skip DOS drivespec
 
14219
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
14220
    *)
 
14221
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
14222
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
14223
    ;;
 
14224
  esac
 
14225
done; }
 
14226
 
 
14227
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
 
14228
    # A "../" for each directory in $ac_dir_suffix.
 
14229
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
14230
  else
 
14231
    ac_dir_suffix= ac_dots=
 
14232
  fi
 
14233
 
 
14234
  case $srcdir in
 
14235
  .)  ac_srcdir=.
 
14236
      if test -z "$ac_dots"; then
 
14237
         ac_top_srcdir=.
 
14238
      else
 
14239
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
 
14240
      fi ;;
 
14241
  [\\/]* | ?:[\\/]* )
 
14242
      ac_srcdir=$srcdir$ac_dir_suffix;
 
14243
      ac_top_srcdir=$srcdir ;;
 
14244
  *) # Relative path.
 
14245
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
 
14246
    ac_top_srcdir=$ac_dots$srcdir ;;
 
14247
  esac
 
14248
 
 
14249
  case $INSTALL in
 
14250
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14251
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
14252
  esac
 
14253
 
 
14254
  if test x"$ac_file" != x-; then
 
14255
    { echo "$as_me:14255: creating $ac_file" >&5
 
14256
echo "$as_me: creating $ac_file" >&6;}
 
14257
    rm -f "$ac_file"
 
14258
  fi
 
14259
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14260
  # use $as_me), people would be surprised to read:
 
14261
  #    /* config.h.  Generated automatically by config.status.  */
 
14262
  configure_input="Generated automatically from `echo $ac_file_in |
 
14263
                                                 sed 's,.*/,,'` by configure."
 
14264
 
 
14265
  # First look for the input files in the build tree, otherwise in the
 
14266
  # src tree.
 
14267
  ac_file_inputs=`IFS=:
 
14268
    for f in $ac_file_in; do
 
14269
      case $f in
 
14270
      -) echo $tmp/stdin ;;
 
14271
      [\\/$]*)
 
14272
         # Absolute (can't be DOS-style, as IFS=:)
 
14273
         test -f "$f" || { { echo "$as_me:14273: error: cannot find input file: $f" >&5
 
14274
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14275
   { (exit 1); exit 1; }; }
 
14276
         echo $f;;
 
14277
      *) # Relative
 
14278
         if test -f "$f"; then
 
14279
           # Build tree
 
14280
           echo $f
 
14281
         elif test -f "$srcdir/$f"; then
 
14282
           # Source tree
 
14283
           echo $srcdir/$f
 
14284
         else
 
14285
           # /dev/null tree
 
14286
           { { echo "$as_me:14286: error: cannot find input file: $f" >&5
 
14287
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14288
   { (exit 1); exit 1; }; }
 
14289
         fi;;
 
14290
      esac
 
14291
    done` || { (exit 1); exit 1; }
 
14292
EOF
 
14293
cat >>$CONFIG_STATUS <<EOF
 
14294
  sed "$ac_vpsub
 
14295
$extrasub
 
14296
EOF
 
14297
cat >>$CONFIG_STATUS <<\EOF
 
14298
:t
 
14299
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14300
s,@configure_input@,$configure_input,;t t
 
14301
s,@srcdir@,$ac_srcdir,;t t
 
14302
s,@top_srcdir@,$ac_top_srcdir,;t t
 
14303
s,@INSTALL@,$ac_INSTALL,;t t
 
14304
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
14305
  rm -f $tmp/stdin
 
14306
  if test x"$ac_file" != x-; then
 
14307
    mv $tmp/out $ac_file
 
14308
  else
 
14309
    cat $tmp/out
 
14310
    rm -f $tmp/out
 
14311
  fi
 
14312
 
 
14313
done
 
14314
EOF
 
14315
cat >>$CONFIG_STATUS <<\EOF
 
14316
 
 
14317
#
 
14318
# CONFIG_HEADER section.
 
14319
#
 
14320
 
 
14321
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
14322
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
14323
#
 
14324
# ac_d sets the value in "#define NAME VALUE" lines.
 
14325
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
14326
ac_dB='[        ].*$,\1#\2'
 
14327
ac_dC=' '
 
14328
ac_dD=',;t'
 
14329
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
14330
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
14331
ac_uB='$,\1#\2define\3'
 
14332
ac_uC=' '
 
14333
ac_uD=',;t'
 
14334
 
 
14335
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
14336
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
14337
  case $ac_file in
 
14338
  - | *:- | *:-:* ) # input from stdin
 
14339
        cat >$tmp/stdin
 
14340
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14341
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14342
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14343
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14344
  * )   ac_file_in=$ac_file.in ;;
 
14345
  esac
 
14346
 
 
14347
  test x"$ac_file" != x- && { echo "$as_me:14347: creating $ac_file" >&5
 
14348
echo "$as_me: creating $ac_file" >&6;}
 
14349
 
 
14350
  # First look for the input files in the build tree, otherwise in the
 
14351
  # src tree.
 
14352
  ac_file_inputs=`IFS=:
 
14353
    for f in $ac_file_in; do
 
14354
      case $f in
 
14355
      -) echo $tmp/stdin ;;
 
14356
      [\\/$]*)
 
14357
         # Absolute (can't be DOS-style, as IFS=:)
 
14358
         test -f "$f" || { { echo "$as_me:14358: error: cannot find input file: $f" >&5
 
14359
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14360
   { (exit 1); exit 1; }; }
 
14361
         echo $f;;
 
14362
      *) # Relative
 
14363
         if test -f "$f"; then
 
14364
           # Build tree
 
14365
           echo $f
 
14366
         elif test -f "$srcdir/$f"; then
 
14367
           # Source tree
 
14368
           echo $srcdir/$f
 
14369
         else
 
14370
           # /dev/null tree
 
14371
           { { echo "$as_me:14371: error: cannot find input file: $f" >&5
 
14372
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14373
   { (exit 1); exit 1; }; }
 
14374
         fi;;
 
14375
      esac
 
14376
    done` || { (exit 1); exit 1; }
 
14377
  # Remove the trailing spaces.
 
14378
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
14379
 
 
14380
EOF
 
14381
 
 
14382
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
14383
# `conftest.undefs', that substitutes the proper values into
 
14384
# config.h.in to produce config.h.  The first handles `#define'
 
14385
# templates, and the second `#undef' templates.
 
14386
# And first: Protect against being on the right side of a sed subst in
 
14387
# config.status.  Protect against being in an unquoted here document
 
14388
# in config.status.
 
14389
rm -f conftest.defines conftest.undefs
 
14390
# Using a here document instead of a string reduces the quoting nightmare.
 
14391
# Putting comments in sed scripts is not portable.
 
14392
#
 
14393
# `end' is used to avoid that the second main sed command (meant for
 
14394
# 0-ary CPP macros) applies to n-ary macro definitions.
 
14395
# See the Autoconf documentation for `clear'.
 
14396
cat >confdef2sed.sed <<\EOF
 
14397
s/[\\&,]/\\&/g
 
14398
s,[\\$`],\\&,g
 
14399
t clear
 
14400
: clear
 
14401
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
14402
t end
 
14403
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
14404
: end
 
14405
EOF
 
14406
# If some macros were called several times there might be several times
 
14407
# the same #defines, which is useless.  Nevertheless, we may not want to
 
14408
# sort them, since we want the *last* AC-DEFINE to be honored.
 
14409
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
14410
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
14411
rm -f confdef2sed.sed
 
14412
 
 
14413
# This sed command replaces #undef with comments.  This is necessary, for
 
14414
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
14415
# on some systems where configure will not decide to define it.
 
14416
cat >>conftest.undefs <<\EOF
 
14417
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
14418
EOF
 
14419
 
 
14420
# Break up conftest.defines because some shells have a limit on the size
 
14421
# of here documents, and old seds have small limits too (100 cmds).
 
14422
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
14423
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
14424
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
14425
echo '  :' >>$CONFIG_STATUS
 
14426
rm -f conftest.tail
 
14427
while grep . conftest.defines >/dev/null
 
14428
do
 
14429
  # Write a limited-size here document to $tmp/defines.sed.
 
14430
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
14431
  # Speed up: don't consider the non `#define' lines.
 
14432
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
14433
  # Work around the forget-to-reset-the-flag bug.
 
14434
  echo 't clr' >>$CONFIG_STATUS
 
14435
  echo ': clr' >>$CONFIG_STATUS
 
14436
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
14437
  echo 'CEOF
 
14438
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
14439
  rm -f $tmp/in
 
14440
  mv $tmp/out $tmp/in
 
14441
' >>$CONFIG_STATUS
 
14442
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
14443
  rm -f conftest.defines
 
14444
  mv conftest.tail conftest.defines
 
14445
done
 
14446
rm -f conftest.defines
 
14447
echo '  fi # egrep' >>$CONFIG_STATUS
 
14448
echo >>$CONFIG_STATUS
 
14449
 
 
14450
# Break up conftest.undefs because some shells have a limit on the size
 
14451
# of here documents, and old seds have small limits too (100 cmds).
 
14452
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
14453
rm -f conftest.tail
 
14454
while grep . conftest.undefs >/dev/null
 
14455
do
 
14456
  # Write a limited-size here document to $tmp/undefs.sed.
 
14457
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
14458
  # Speed up: don't consider the non `#undef'
 
14459
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
14460
  # Work around the forget-to-reset-the-flag bug.
 
14461
  echo 't clr' >>$CONFIG_STATUS
 
14462
  echo ': clr' >>$CONFIG_STATUS
 
14463
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
14464
  echo 'CEOF
 
14465
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
14466
  rm -f $tmp/in
 
14467
  mv $tmp/out $tmp/in
 
14468
' >>$CONFIG_STATUS
 
14469
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
14470
  rm -f conftest.undefs
 
14471
  mv conftest.tail conftest.undefs
 
14472
done
 
14473
rm -f conftest.undefs
 
14474
 
 
14475
cat >>$CONFIG_STATUS <<\EOF
 
14476
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14477
  # use $as_me), people would be surprised to read:
 
14478
  #    /* config.h.  Generated automatically by config.status.  */
 
14479
  if test x"$ac_file" = x-; then
 
14480
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
14481
  else
 
14482
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
14483
  fi
 
14484
  cat $tmp/in >>$tmp/config.h
 
14485
  rm -f $tmp/in
 
14486
  if test x"$ac_file" != x-; then
 
14487
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
14488
      { echo "$as_me:14488: $ac_file is unchanged" >&5
 
14489
echo "$as_me: $ac_file is unchanged" >&6;}
 
14490
    else
 
14491
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14492
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14493
         X"$ac_file" : 'X\(//\)$' \| \
 
14494
         X"$ac_file" : 'X\(/\)' \| \
 
14495
         .     : '\(.\)' 2>/dev/null ||
 
14496
echo X"$ac_file" |
 
14497
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14498
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14499
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14500
          /^X\(\/\).*/{ s//\1/; q; }
 
14501
          s/.*/./; q'`
 
14502
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
14503
        { case "$ac_dir" in
 
14504
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
14505
  *)                      as_incr_dir=.;;
 
14506
esac
 
14507
as_dummy="$ac_dir"
 
14508
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
14509
  case $as_mkdir_dir in
 
14510
    # Skip DOS drivespec
 
14511
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
14512
    *)
 
14513
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
14514
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
14515
    ;;
 
14516
  esac
 
14517
done; }
 
14518
 
 
14519
      fi
 
14520
      rm -f $ac_file
 
14521
      mv $tmp/config.h $ac_file
 
14522
    fi
 
14523
  else
 
14524
    cat $tmp/config.h
 
14525
    rm -f $tmp/config.h
 
14526
  fi
 
14527
done
 
14528
EOF
 
14529
 
 
14530
cat >>$CONFIG_STATUS <<\EOF
 
14531
 
 
14532
{ (exit 0); exit 0; }
 
14533
EOF
 
14534
chmod +x $CONFIG_STATUS
 
14535
ac_clean_files=$ac_clean_files_save
 
14536
 
 
14537
# configure is writing to config.log, and then calls config.status.
 
14538
# config.status does its own redirection, appending to config.log.
 
14539
# Unfortunately, on DOS this fails, as config.log is still kept open
 
14540
# by configure, so config.status won't be able to write to it; its
 
14541
# output is simply discarded.  So we exec the FD to /dev/null,
 
14542
# effectively closing config.log, so it can be properly (re)opened and
 
14543
# appended to by config.status.  When coming back to configure, we
 
14544
# need to make the FD available again.
 
14545
if test "$no_create" != yes; then
 
14546
  ac_cs_success=:
 
14547
  exec 5>/dev/null
 
14548
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
14549
  exec 5>>config.log
 
14550
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
14551
  # would make configure fail if this is the last instruction.
 
14552
  $ac_cs_success || { (exit 1); exit 1; }
 
14553
fi
 
14554