Debian Codegraph @

dist/configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Berkeley DB 5.3.28.
4 #
5 # Report bugs to <Oracle Technology Network Berkeley DB forum>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and Oracle Technology
250 $0: Network Berkeley DB forum about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='Berkeley DB'
572 PACKAGE_TARNAME='db-5.3.28'
573 PACKAGE_VERSION='5.3.28'
574 PACKAGE_STRING='Berkeley DB 5.3.28'
575 PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
576 PACKAGE_URL=''
577
578 ac_unique_file="../src/db/db.c"
579 enable_option_checking=no
580 ac_default_prefix=/usr/local/BerkeleyDB.5.3
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='LTLIBOBJS
618 db_seq_decl
619 UINT64_FMT
620 INT64_FMT
621 TCL_TCLSH
622 TCL_SRC_DIR
623 TCL_LIB_FILE
624 TCL_INCLUDE_SPEC
625 TCL_BIN_DIR
626 LIBOBJS
627 LISTPROBES_COMMAND
628 LISTPROBES_DEPENDENCY
629 DTRACE_CPP
630 db_threadid_t_decl
631 thread_h_decl
632 uintptr_t_decl
633 uintmax_t_decl
634 ssize_t_decl
635 time_t_decl
636 size_t_decl
637 pid_t_decl
638 off_t_decl
639 FILE_t_decl
640 int64_decl
641 u_int64_decl
642 int32_decl
643 u_int32_decl
644 int16_decl
645 u_int16_decl
646 u_int8_decl
647 u_long_decl
648 u_int_decl
649 u_short_decl
650 u_char_decl
651 unistd_h_decl
652 stddef_h_decl
653 stdint_h_decl
654 inttypes_h_decl
655 TLS_defn
656 TLS_decl
657 WSTRING_decl
658 _ACJNI_JAVAC
659 uudecode
660 JAVA
661 JAVAC
662 JMODSUFFIX
663 MODSUFFIX
664 SOSUFFIX
665 CPP
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 AWK
673 RANLIB
674 STRIP
675 ac_ct_AR
676 AR
677 DLLTOOL
678 OBJDUMP
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LD
684 FGREP
685 EGREP
686 GREP
687 cxx_have_stdheaders
688 CXXCPP
689 ac_ct_CXX
690 CCC
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CC
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 db_cv_path_sh
699 PERL
700 SED
701 STAP
702 MV
703 RM
704 MKDIR
705 LN
706 KILL
707 CP
708 CHMOD
709 DB_VERSION_UNIQUE_NAME
710 DB_VERSION_FULL_STRING
711 DB_VERSION_STRING
712 DB_VERSION_PATCH
713 DB_VERSION_MINOR
714 DB_VERSION_MAJOR
715 DB_VERSION_RELEASE
716 DB_VERSION_FAMILY
717 platform_footer
718 platform_header
719 topdir
720 subdir_cmd
721 o
722 db_int_def
723 TEST_LIBS
724 SWIGCFLAGS
725 SQL_LIBS
726 SQL_FLAGS
727 SOFLAGS
728 REPLACEMENT_OBJS
729 PRINTLOG_OBJS
730 POSTLINK
731 OSDIR
732 MAKEFILE_XSOLINK
733 MAKEFILE_SOLINK
734 MAKEFILE_CXXLINK
735 MAKEFILE_CXX
736 MAKEFILE_CCLINK
737 MAKEFILE_CC
738 LIBXSO_LIBS
739 LIBTSO_MODULE
740 LIBTSO_MODSUFFIX
741 LIBTSO_LIBS
742 LIBTOOL
743 LIBSO_LIBS
744 LIBJSO_LIBS
745 LIBCSO_LIBS
746 LDFLAGS
747 JAVACFLAGS
748 JAR
749 INSTALL_TARGET
750 INSTALL_LIBS_EXTRA
751 INSTALL_LIBS
752 INSTALLER
753 FINAL_OBJS
754 DTRACE
755 DEFAULT_LIB_TCL
756 DEFAULT_LIB_STL
757 DEFAULT_LIB_SQLITE
758 DEFAULT_LIB_SQL
759 DEFAULT_LIB_CXX
760 DEFAULT_LIB
761 DB_STRUCT_ALIGN8
762 DB_PROTO2
763 DB_PROTO1
764 DB_CONST
765 CXXFLAGS
766 CXX
767 CRYPTO_OBJS
768 CPPFLAGS
769 CONFIGURATION_PATH
770 CONFIGURATION_ARGS
771 CFLAGS
772 BUILD_TARGET
773 ADDITIONAL_PROGS
774 ADDITIONAL_OBJS
775 ADDITIONAL_LANG
776 ADDITIONAL_INCS
777 host_os
778 host_vendor
779 host_cpu
780 host
781 build_os
782 build_vendor
783 build_cpu
784 build
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_smallbuild
827 enable_atomicsupport
828 enable_bigfile
829 enable_compression
830 enable_hash
831 enable_heap
832 enable_mutexsupport
833 enable_log_checksum
834 enable_partition
835 enable_queue
836 enable_replication
837 enable_statistics
838 enable_verify
839 enable_compat185
840 enable_cxx
841 enable_debug
842 enable_debug_rop
843 enable_debug_wop
844 enable_diagnostic
845 enable_dump185
846 enable_java
847 enable_mingw
848 enable_o_direct
849 enable_posixmutexes
850 enable_pthread_self
851 enable_pthread_api
852 enable_rpc
853 enable_sql
854 enable_sql_compat
855 enable_jdbc
856 with_jdbc
857 enable_amalgamation
858 enable_sql_codegen
859 enable_stl
860 enable_tcl
861 enable_test
862 enable_localization
863 enable_stripped_messages
864 enable_dbm
865 enable_dtrace
866 enable_systemtap
867 enable_perfmon_statistics
868 enable_uimutexes
869 enable_umrw
870 enable_atomicfileread
871 enable_cryptography
872 with_cryptography
873 with_mutex
874 with_mutexalign
875 with_stacksize
876 with_tcl
877 with_uniquename
878 enable_readline
879 enable_shared
880 enable_static
881 with_pic
882 enable_fast_install
883 with_gnu_ld
884 with_sysroot
885 enable_libtool_lock
886 enable_largefile
887 '
888 ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 CXX
897 CXXFLAGS
898 CCC
899 CXXCPP
900 CPP'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
960 fi
961
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1031
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1067
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1072
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1102
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1176
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1235
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1251
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1285
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1288 ;;
1289
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1299
1300 *)
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 ;;
1307
1308 esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1314 fi
1315
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1322 fi
1323
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1329 do
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used" >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures Berkeley DB 5.3.28 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root
1492 [DATAROOTDIR/doc/db-5.3.28]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1497 _ACEOF
1498
1499 cat <<\_ACEOF
1500
1501 Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505
1506 System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of Berkeley DB 5.3.28:";;
1515 esac
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-smallbuild Build small footprint version of the library.
1523 --disable-atomicsupport Do not build any native atomic operation support.
1524 --disable-bigfile Obsolete; use --disable-largefile instead.
1525 --disable-compression Do not build compression support.
1526 --disable-hash Do not build Hash access method.
1527 --disable-heap Do not build Heap access method.
1528 --disable-mutexsupport Do not build any mutex support.
1529 --disable-log_checksum Disable log checksums.
1530 --disable-partition Do not build partitioned database support.
1531 --disable-queue Do not build Queue access method.
1532 --disable-replication Do not build database replication support.
1533 --disable-statistics Do not build statistics support.
1534 --disable-verify Do not build database verification support.
1535 --enable-compat185 Build DB 1.85 compatibility API.
1536 --enable-cxx Build C++ API.
1537 --enable-debug Build a debugging version.
1538 --enable-debug_rop Build a version that logs read operations.
1539 --enable-debug_wop Build a version that logs write operations.
1540 --enable-diagnostic Build a version with run-time diagnostics.
1541 --enable-dump185 Build db_dump185(1) to dump 1.85 databases.
1542 --enable-java Build Java API.
1543 --enable-mingw Build Berkeley DB for MinGW.
1544 --enable-o_direct Enable the O_DIRECT flag for direct I/O.
1545 --enable-posixmutexes Force use of POSIX standard mutexes.
1546
1547 --enable-sql Build the SQL API.
1548 --enable-sql_compat Build a drop-in replacement sqlite3 library.
1549 --enable-jdbc Build BDB SQL JDBC library.
1550 --enable-amalgamation Build a SQL amalgamation instead of building files
1551 separately.
1552 --enable-sql_codegen Build the SQL-to-C code generation tool.
1553 --enable-stl Build STL API.
1554 --enable-tcl Build Tcl API.
1555 --enable-test Configure to run the test suite.
1556 --enable-localization Configure to enable localization.
1557 --enable-stripped_messages
1558 Configure to enable stripped messages.
1559 --enable-dbm Configure to enable the historic dbm interface.
1560 --enable-dtrace Configure to build in dtrace static probes
1561 --enable-systemtap Configure to use systemtap to emulate dtrace static
1562 probes
1563 --enable-perfmon-statistics
1564 Configure to build in performance monitoring of
1565 statistics values [default=no].
1566 --enable-uimutexes Force use of Unix International mutexes.
1567 --enable-umrw Mask harmless uninitialized memory read/writes.
1568 --enable-atomicfileread Indicate that the platform reads and writes files
1569 atomically.
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --disable-largefile omit support for large files
1576
1577 Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-jdbc=DIR Specify source directory of JDBC.
1581 --with-cryptography=yes|no|ipp
1582 Build database cryptography support [default=yes].
1583 --with-mutex=MUTEX Select non-default mutex implementation.
1584 --with-mutexalign=ALIGNMENT
1585 Obsolete; use DbEnv::mutex_set_align instead.
1586 --with-stacksize=SIZE Set the stack size for Berkeley DB threads.
1587 --with-tcl=DIR Directory location of tclConfig.sh.
1588 --with-uniquename=NAME Build a uniquely named library.
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-sysroot=DIR Search for dependent libraries within DIR
1593 (or the compiler's sysroot if not specified).
1594
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1603 CXX C++ compiler command
1604 CXXFLAGS C++ compiler flags
1605 CXXCPP C++ preprocessor
1606 CPP C preprocessor
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 Report bugs to <Oracle Technology Network Berkeley DB forum>.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 Berkeley DB configure 5.3.28
1675 generated by GNU Autoconf 2.68
1676
1677 Copyright (C) 2010 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_cxx_try_compile
1763
1764 # ac_fn_cxx_try_cpp LINENO
1765 # ------------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_cpp ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } > conftest.i && {
1786 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1787 test ! -s conftest.err
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795 fi
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1798
1799 } # ac_fn_cxx_try_cpp
1800
1801 # ac_fn_c_try_link LINENO
1802 # -----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_link ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext conftest$ac_exeext
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest$ac_exeext && {
1827 test "$cross_compiling" = yes ||
1828 $as_test_x conftest$ac_exeext
1829 }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839 # interfere with the next link command; also delete a directory that is
1840 # left behind by Apple's compiler. We do this before executing the actions.
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_c_try_link
1846
1847 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists and can be compiled using the include files in
1850 # INCLUDES, setting the cache variable VAR accordingly.
1851 ac_fn_c_check_header_compile ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_header_compile
1877
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } > conftest.i && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1912
1913 } # ac_fn_c_try_cpp
1914
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1919 ac_fn_c_try_run ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>&5
1930 ac_status=$?
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933 { { case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_try") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; }; }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: program exited with status $ac_status" >&5
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=$ac_status
1950 fi
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_run
1956
1957 # ac_fn_c_check_func LINENO FUNC VAR
1958 # ----------------------------------
1959 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1960 ac_fn_c_check_func ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1972 #define $2 innocuous_$2
1973
1974 /* System header to define __stub macros and hopefully few prototypes,
1975 which can conflict with char $2 (); below.
1976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977 <limits.h> exists even on freestanding compilers. */
1978
1979 #ifdef __STDC__
1980 # include <limits.h>
1981 #else
1982 # include <assert.h>
1983 #endif
1984
1985 #undef $2
1986
1987 /* Override any GCC internal prototype to avoid an error.
1988 Use char because int might match the return type of a GCC
1989 builtin and then its argument prototype would still apply. */
1990 #ifdef __cplusplus
1991 extern "C"
1992 #endif
1993 char $2 ();
1994 /* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997 #if defined __stub_$2 || defined __stub___$2
1998 choke me
1999 #endif
2000
2001 int
2002 main ()
2003 {
2004 return $2 ();
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_link "$LINENO"; then :
2010 eval "$3=yes"
2011 else
2012 eval "$3=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext \
2015 conftest$ac_exeext conftest.$ac_ext
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_func
2023
2024 # ac_fn_cxx_try_link LINENO
2025 # -------------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_cxx_try_link ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 rm -f conftest.$ac_objext conftest$ac_exeext
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && {
2047 test -z "$ac_cxx_werror_flag" ||
2048 test ! -s conftest.err
2049 } && test -s conftest$ac_exeext && {
2050 test "$cross_compiling" = yes ||
2051 $as_test_x conftest$ac_exeext
2052 }; then :
2053 ac_retval=0
2054 else
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 ac_retval=1
2059 fi
2060 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2061 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2062 # interfere with the next link command; also delete a directory that is
2063 # left behind by Apple's compiler. We do this before executing the actions.
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2067
2068 } # ac_fn_cxx_try_link
2069
2070 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2071 # -------------------------------------------------------
2072 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2073 # the include files in INCLUDES and setting the cache variable VAR
2074 # accordingly.
2075 ac_fn_c_check_header_mongrel ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if eval \${$3+:} false; then :
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 fi
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 else
2088 # Is the header compilable?
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2090 $as_echo_n "checking $2 usability... " >&6; }
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 #include <$2>
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_header_compiler=yes
2098 else
2099 ac_header_compiler=no
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2103 $as_echo "$ac_header_compiler" >&6; }
2104
2105 # Is the header present?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2107 $as_echo_n "checking $2 presence... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 #include <$2>
2111 _ACEOF
2112 if ac_fn_c_try_cpp "$LINENO"; then :
2113 ac_header_preproc=yes
2114 else
2115 ac_header_preproc=no
2116 fi
2117 rm -f conftest.err conftest.i conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2119 $as_echo "$ac_header_preproc" >&6; }
2120
2121 # So? What about this header?
2122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2123 yes:no: )
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2125 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128 ;;
2129 no:yes:* )
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2131 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2133 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2135 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2137 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140 ( $as_echo "## ---------------------------------------------------------- ##
2141 ## Report this to Oracle Technology Network Berkeley DB forum ##
2142 ## ---------------------------------------------------------- ##"
2143 ) | sed "s/^/$as_me: WARNING: /" >&2
2144 ;;
2145 esac
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=\$ac_header_compiler"
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159 } # ac_fn_c_check_header_mongrel
2160
2161 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2162 # ----------------------------------------------------
2163 # Tries to find if the field MEMBER exists in type AGGR, after including
2164 # INCLUDES, setting cache variable VAR accordingly.
2165 ac_fn_c_check_member ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2169 $as_echo_n "checking for $2.$3... " >&6; }
2170 if eval \${$4+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $5
2176 int
2177 main ()
2178 {
2179 static $2 ac_aggr;
2180 if (ac_aggr.$3)
2181 return 0;
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 eval "$4=yes"
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $5
2192 int
2193 main ()
2194 {
2195 static $2 ac_aggr;
2196 if (sizeof ac_aggr.$3)
2197 return 0;
2198 ;
2199 return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 eval "$4=yes"
2204 else
2205 eval "$4=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 eval ac_res=\$$4
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215
2216 } # ac_fn_c_check_member
2217
2218 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2219 # --------------------------------------------
2220 # Tries to find the compile-time value of EXPR in a program that includes
2221 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2222 # computed
2223 ac_fn_c_compute_int ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if test "$cross_compiling" = yes; then
2227 # Depending upon the size, compute the lo and hi bounds.
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 $4
2231 int
2232 main ()
2233 {
2234 static int test_array [1 - 2 * !(($2) >= 0)];
2235 test_array [0] = 0
2236
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 ac_lo=0 ac_mid=0
2243 while :; do
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 test_array [0] = 0
2252
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 ac_hi=$ac_mid; break
2259 else
2260 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2261 if test $ac_lo -le $ac_mid; then
2262 ac_lo= ac_hi=
2263 break
2264 fi
2265 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $4
2273 int
2274 main ()
2275 {
2276 static int test_array [1 - 2 * !(($2) < 0)];
2277 test_array [0] = 0
2278
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_hi=-1 ac_mid=-1
2285 while :; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $4
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2293 test_array [0] = 0
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 ac_lo=$ac_mid; break
2301 else
2302 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2303 if test $ac_mid -le $ac_hi; then
2304 ac_lo= ac_hi=
2305 break
2306 fi
2307 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2308 fi
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 done
2311 else
2312 ac_lo= ac_hi=
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 # Binary search between lo and hi bounds.
2318 while test "x$ac_lo" != "x$ac_hi"; do
2319 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2322 $4
2323 int
2324 main ()
2325 {
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 test_array [0] = 0
2328
2329 ;
2330 return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_hi=$ac_mid
2335 else
2336 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 case $ac_lo in #((
2341 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2342 '') ac_retval=1 ;;
2343 esac
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $4
2348 static long int longval () { return $2; }
2349 static unsigned long int ulongval () { return $2; }
2350 #include <stdio.h>
2351 #include <stdlib.h>
2352 int
2353 main ()
2354 {
2355
2356 FILE *f = fopen ("conftest.val", "w");
2357 if (! f)
2358 return 1;
2359 if (($2) < 0)
2360 {
2361 long int i = longval ();
2362 if (i != ($2))
2363 return 1;
2364 fprintf (f, "%ld", i);
2365 }
2366 else
2367 {
2368 unsigned long int i = ulongval ();
2369 if (i != ($2))
2370 return 1;
2371 fprintf (f, "%lu", i);
2372 }
2373 /* Do not output a trailing newline, as this causes \r\n confusion
2374 on some platforms. */
2375 return ferror (f) || fclose (f) != 0;
2376
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_run "$LINENO"; then :
2382 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2383 else
2384 ac_retval=1
2385 fi
2386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2387 conftest.$ac_objext conftest.beam conftest.$ac_ext
2388 rm -f conftest.val
2389
2390 fi
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 as_fn_set_status $ac_retval
2393
2394 } # ac_fn_c_compute_int
2395
2396 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2397 # -------------------------------------------
2398 # Tests whether TYPE exists after having included INCLUDES, setting cache
2399 # variable VAR accordingly.
2400 ac_fn_c_check_type ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2404 $as_echo_n "checking for $2... " >&6; }
2405 if eval \${$3+:} false; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $4
2412 int
2413 main ()
2414 {
2415 if (sizeof ($2))
2416 return 0;
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2424 $4
2425 int
2426 main ()
2427 {
2428 if (sizeof (($2)))
2429 return 0;
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435
2436 else
2437 eval "$3=yes"
2438 fi
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447
2448 } # ac_fn_c_check_type
2449 cat >config.log <<_ACEOF
2450 This file contains any messages produced by compilers while
2451 running configure, to aid debugging if configure makes a mistake.
2452
2453 It was created by Berkeley DB $as_me 5.3.28, which was
2454 generated by GNU Autoconf 2.68. Invocation command line was
2455
2456 $ $0 $@
2457
2458 _ACEOF
2459 exec 5>>config.log
2460 {
2461 cat <<_ASUNAME
2462 ## --------- ##
2463 ## Platform. ##
2464 ## --------- ##
2465
2466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2471
2472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2474
2475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2482
2483 _ASUNAME
2484
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 $as_echo "PATH: $as_dir"
2491 done
2492 IFS=$as_save_IFS
2493
2494 } >&5
2495
2496 cat >&5 <<_ACEOF
2497
2498
2499 ## ----------- ##
2500 ## Core tests. ##
2501 ## ----------- ##
2502
2503 _ACEOF
2504
2505
2506 # Keep a trace of the command line.
2507 # Strip out --no-create and --no-recursion so they do not pile up.
2508 # Strip out --silent because we don't want to record it for future runs.
2509 # Also quote any args containing shell meta-characters.
2510 # Make two passes to allow for proper duplicate-argument suppression.
2511 ac_configure_args=
2512 ac_configure_args0=
2513 ac_configure_args1=
2514 ac_must_keep_next=false
2515 for ac_pass in 1 2
2516 do
2517 for ac_arg
2518 do
2519 case $ac_arg in
2520 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2522 | -silent | --silent | --silen | --sile | --sil)
2523 continue ;;
2524 *\'*)
2525 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 esac
2527 case $ac_pass in
2528 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2529 2)
2530 as_fn_append ac_configure_args1 " '$ac_arg'"
2531 if test $ac_must_keep_next = true; then
2532 ac_must_keep_next=false # Got value, back to normal.
2533 else
2534 case $ac_arg in
2535 *=* | --config-cache | -C | -disable-* | --disable-* \
2536 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2537 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2538 | -with-* | --with-* | -without-* | --without-* | --x)
2539 case "$ac_configure_args0 " in
2540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2541 esac
2542 ;;
2543 -* ) ac_must_keep_next=true ;;
2544 esac
2545 fi
2546 as_fn_append ac_configure_args " '$ac_arg'"
2547 ;;
2548 esac
2549 done
2550 done
2551 { ac_configure_args0=; unset ac_configure_args0;}
2552 { ac_configure_args1=; unset ac_configure_args1;}
2553
2554 # When interrupted or exit'd, cleanup temporary files, and complete
2555 # config.log. We remove comments because anyway the quotes in there
2556 # would cause problems or look ugly.
2557 # WARNING: Use '\'' to represent an apostrophe within the trap.
2558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2559 trap 'exit_status=$?
2560 # Save into config.log some information that might help in debugging.
2561 {
2562 echo
2563
2564 $as_echo "## ---------------- ##
2565 ## Cache variables. ##
2566 ## ---------------- ##"
2567 echo
2568 # The following way of writing the cache mishandles newlines in values,
2569 (
2570 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2571 eval ac_val=\$$ac_var
2572 case $ac_val in #(
2573 *${as_nl}*)
2574 case $ac_var in #(
2575 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2576 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2577 esac
2578 case $ac_var in #(
2579 _ | IFS | as_nl) ;; #(
2580 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2581 *) { eval $ac_var=; unset $ac_var;} ;;
2582 esac ;;
2583 esac
2584 done
2585 (set) 2>&1 |
2586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2587 *${as_nl}ac_space=\ *)
2588 sed -n \
2589 "s/'\''/'\''\\\\'\'''\''/g;
2590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2591 ;; #(
2592 *)
2593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2594 ;;
2595 esac |
2596 sort
2597 )
2598 echo
2599
2600 $as_echo "## ----------------- ##
2601 ## Output variables. ##
2602 ## ----------------- ##"
2603 echo
2604 for ac_var in $ac_subst_vars
2605 do
2606 eval ac_val=\$$ac_var
2607 case $ac_val in
2608 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 esac
2610 $as_echo "$ac_var='\''$ac_val'\''"
2611 done | sort
2612 echo
2613
2614 if test -n "$ac_subst_files"; then
2615 $as_echo "## ------------------- ##
2616 ## File substitutions. ##
2617 ## ------------------- ##"
2618 echo
2619 for ac_var in $ac_subst_files
2620 do
2621 eval ac_val=\$$ac_var
2622 case $ac_val in
2623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624 esac
2625 $as_echo "$ac_var='\''$ac_val'\''"
2626 done | sort
2627 echo
2628 fi
2629
2630 if test -s confdefs.h; then
2631 $as_echo "## ----------- ##
2632 ## confdefs.h. ##
2633 ## ----------- ##"
2634 echo
2635 cat confdefs.h
2636 echo
2637 fi
2638 test "$ac_signal" != 0 &&
2639 $as_echo "$as_me: caught signal $ac_signal"
2640 $as_echo "$as_me: exit $exit_status"
2641 } >&5
2642 rm -f core *.core core.conftest.* &&
2643 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2644 exit $exit_status
2645 ' 0
2646 for ac_signal in 1 2 13 15; do
2647 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2648 done
2649 ac_signal=0
2650
2651 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2652 rm -f -r conftest* confdefs.h
2653
2654 $as_echo "/* confdefs.h */" > confdefs.h
2655
2656 # Predefined preprocessor variables.
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_NAME "$PACKAGE_NAME"
2660 _ACEOF
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2664 _ACEOF
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2668 _ACEOF
2669
2670 cat >>confdefs.h <<_ACEOF
2671 #define PACKAGE_STRING "$PACKAGE_STRING"
2672 _ACEOF
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2676 _ACEOF
2677
2678 cat >>confdefs.h <<_ACEOF
2679 #define PACKAGE_URL "$PACKAGE_URL"
2680 _ACEOF
2681
2682
2683 # Let the site file select an alternate cache file if it wants to.
2684 # Prefer an explicitly selected file to automatically selected ones.
2685 ac_site_file1=NONE
2686 ac_site_file2=NONE
2687 if test -n "$CONFIG_SITE"; then
2688 # We do not want a PATH search for config.site.
2689 case $CONFIG_SITE in #((
2690 -*) ac_site_file1=./$CONFIG_SITE;;
2691 */*) ac_site_file1=$CONFIG_SITE;;
2692 *) ac_site_file1=./$CONFIG_SITE;;
2693 esac
2694 elif test "x$prefix" != xNONE; then
2695 ac_site_file1=$prefix/share/config.site
2696 ac_site_file2=$prefix/etc/config.site
2697 else
2698 ac_site_file1=$ac_default_prefix/share/config.site
2699 ac_site_file2=$ac_default_prefix/etc/config.site
2700 fi
2701 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2702 do
2703 test "x$ac_site_file" = xNONE && continue
2704 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2707 sed 's/^/| /' "$ac_site_file" >&5
2708 . "$ac_site_file" \
2709 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 as_fn_error $? "failed to load site script $ac_site_file
2712 See \`config.log' for more details" "$LINENO" 5; }
2713 fi
2714 done
2715
2716 if test -r "$cache_file"; then
2717 # Some versions of bash will fail to source /dev/null (special files
2718 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2719 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2721 $as_echo "$as_me: loading cache $cache_file" >&6;}
2722 case $cache_file in
2723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2724 *) . "./$cache_file";;
2725 esac
2726 fi
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2729 $as_echo "$as_me: creating cache $cache_file" >&6;}
2730 >$cache_file
2731 fi
2732
2733 # Check that the precious variables saved in the cache have kept the same
2734 # value.
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738 eval ac_new_set=\$ac_env_${ac_var}_set
2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740 eval ac_new_val=\$ac_env_${ac_var}_value
2741 case $ac_old_set,$ac_new_set in
2742 set,)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2744 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2746 ,set)
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2748 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2750 ,);;
2751 *)
2752 if test "x$ac_old_val" != "x$ac_new_val"; then
2753 # differences in whitespace do not lead to failure.
2754 ac_old_val_w=`echo x $ac_old_val`
2755 ac_new_val_w=`echo x $ac_new_val`
2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2759 ac_cache_corrupted=:
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2763 eval $ac_var=\$ac_old_val
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2766 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2768 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2769 fi;;
2770 esac
2771 # Pass precious variables to config.status.
2772 if test "$ac_new_set" = set; then
2773 case $ac_new_val in
2774 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 *) ac_arg=$ac_var=$ac_new_val ;;
2776 esac
2777 case " $ac_configure_args " in
2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2780 esac
2781 fi
2782 done
2783 if $ac_cache_corrupted; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2788 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 fi
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800
2801
2802 ac_config_headers="$ac_config_headers db_config.h:config.hin"
2803
2804
2805
2806
2807 # We're going to pass options through to SQLite, don't check them first.
2808
2809
2810
2811 # Configure setup.
2812 ac_aux_dir=
2813 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2814 if test -f "$ac_dir/install-sh"; then
2815 ac_aux_dir=$ac_dir
2816 ac_install_sh="$ac_aux_dir/install-sh -c"
2817 break
2818 elif test -f "$ac_dir/install.sh"; then
2819 ac_aux_dir=$ac_dir
2820 ac_install_sh="$ac_aux_dir/install.sh -c"
2821 break
2822 elif test -f "$ac_dir/shtool"; then
2823 ac_aux_dir=$ac_dir
2824 ac_install_sh="$ac_aux_dir/shtool install -c"
2825 break
2826 fi
2827 done
2828 if test -z "$ac_aux_dir"; then
2829 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2830 fi
2831
2832 # These three variables are undocumented and unsupported,
2833 # and are intended to be withdrawn in a future Autoconf release.
2834 # They can cause serious problems if a builder's source tree is in a directory
2835 # whose full name contains unusual characters.
2836 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2837 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2838 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2839
2840
2841 # Make sure we can run config.sub.
2842 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2843 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2844
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2846 $as_echo_n "checking build system type... " >&6; }
2847 if ${ac_cv_build+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 ac_build_alias=$build_alias
2851 test "x$ac_build_alias" = x &&
2852 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2853 test "x$ac_build_alias" = x &&
2854 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2855 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2857
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2860 $as_echo "$ac_cv_build" >&6; }
2861 case $ac_cv_build in
2862 *-*-*) ;;
2863 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2864 esac
2865 build=$ac_cv_build
2866 ac_save_IFS=$IFS; IFS='-'
2867 set x $ac_cv_build
2868 shift
2869 build_cpu=$1
2870 build_vendor=$2
2871 shift; shift
2872 # Remember, the first character of IFS is used to create $*,
2873 # except with old shells:
2874 build_os=$*
2875 IFS=$ac_save_IFS
2876 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2877
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2880 $as_echo_n "checking host system type... " >&6; }
2881 if ${ac_cv_host+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test "x$host_alias" = x; then
2885 ac_cv_host=$ac_cv_build
2886 else
2887 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2888 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2889 fi
2890
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2893 $as_echo "$ac_cv_host" >&6; }
2894 case $ac_cv_host in
2895 *-*-*) ;;
2896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2897 esac
2898 host=$ac_cv_host
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_host
2901 shift
2902 host_cpu=$1
2903 host_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 host_os=$*
2908 IFS=$ac_save_IFS
2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2910
2911
2912 test "$program_prefix" != NONE &&
2913 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE &&
2916 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2921
2922
2923 # Don't build in the dist directory.
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building in the top-level or dist directories" >&5
2925 $as_echo_n "checking if building in the top-level or dist directories... " >&6; }
2926 if test -f configure.ac ; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928 $as_echo "yes" >&6; }
2929 as_fn_error $? "\
2930 Berkeley DB should not be built in the \"dist\" directory. \
2931 Change directory to the build_unix directory and run ../dist/configure \
2932 from there." "$LINENO" 5
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936
2937 topdir=`echo "$srcdir/.." | sed 's,/dist/\.\.,,'`
2938 # Substitution variables. BDB additions need to be documented.
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000 # The Windows public header has two extra symbols we need to remove.
3001
3002
3003
3004 # Set the default installation location.
3005
3006
3007 # Configure the version information.
3008
3009 DB_VERSION_FAMILY="11"
3010
3011 DB_VERSION_RELEASE="2"
3012
3013 DB_VERSION_MAJOR="5"
3014
3015 DB_VERSION_MINOR="3"
3016
3017 DB_VERSION_PATCH="28"
3018
3019 DB_VERSION_STRING='"Berkeley DB 5.3.28: (September 9, 2013)"'
3020
3021 DB_VERSION_FULL_STRING='"Berkeley DB 11g Release 2, library version 11.2.5.3.28: (September 9, 2013)"'
3022
3023
3024 # Process all options before using them.
3025
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-smallbuild option specified" >&5
3028 $as_echo_n "checking if --enable-smallbuild option specified... " >&6; }
3029 # Check whether --enable-smallbuild was given.
3030 if test "${enable_smallbuild+set}" = set; then :
3031 enableval=$enable_smallbuild; db_cv_smallbuild="$enable_smallbuild"
3032 else
3033 db_cv_smallbuild="no"
3034 fi
3035
3036 case "$db_cv_smallbuild" in
3037 yes) db_cv_build_full="no";;
3038 *) db_cv_build_full="yes";;
3039 esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_smallbuild" >&5
3041 $as_echo "$db_cv_smallbuild" >&6; }
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-atomicsupport option specified" >&5
3044 $as_echo_n "checking if --disable-atomicsupport option specified... " >&6; }
3045 # Check whether --enable-atomicsupport was given.
3046 if test "${enable_atomicsupport+set}" = set; then :
3047 enableval=$enable_atomicsupport;
3048 else
3049 enableval="yes"
3050 fi
3051
3052 db_cv_build_atomicsupport="$enableval"
3053 case "$enableval" in
3054 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; };;
3056 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; };;
3058 esac
3059
3060 # --enable-bigfile was the configuration option that Berkeley DB used before
3061 # autoconf 2.50 was released (which had --enable-largefile integrated in).
3062 # Check whether --enable-bigfile was given.
3063 if test "${enable_bigfile+set}" = set; then :
3064 enableval=$enable_bigfile; as_fn_error $? "--enable-bigfile no longer supported, use --enable-largefile" "$LINENO" 5
3065 fi
3066
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-compression option specified" >&5
3069 $as_echo_n "checking if --disable-compression option specified... " >&6; }
3070 # Check whether --enable-compression was given.
3071 if test "${enable_compression+set}" = set; then :
3072 enableval=$enable_compression;
3073 else
3074 enableval=$db_cv_build_full
3075 fi
3076
3077 db_cv_build_compression="$enableval"
3078 case "$enableval" in
3079 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080 $as_echo "yes" >&6; };;
3081 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; };;
3083 esac
3084
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-hash option specified" >&5
3086 $as_echo_n "checking if --disable-hash option specified... " >&6; }
3087 # Check whether --enable-hash was given.
3088 if test "${enable_hash+set}" = set; then :
3089 enableval=$enable_hash;
3090 else
3091 enableval=$db_cv_build_full
3092 fi
3093
3094 db_cv_build_hash="$enableval"
3095 case "$enableval" in
3096 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; };;
3098 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; };;
3100 esac
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-heap option specified" >&5
3103 $as_echo_n "checking if --disable-heap option specified... " >&6; }
3104 # Check whether --enable-heap was given.
3105 if test "${enable_heap+set}" = set; then :
3106 enableval=$enable_heap;
3107 else
3108 enableval=$db_cv_build_full
3109 fi
3110
3111 db_cv_build_heap="$enableval"
3112 case "$enableval" in
3113 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; };;
3115 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; };;
3117 esac
3118
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-mutexsupport option specified" >&5
3120 $as_echo_n "checking if --disable-mutexsupport option specified... " >&6; }
3121 # Check whether --enable-mutexsupport was given.
3122 if test "${enable_mutexsupport+set}" = set; then :
3123 enableval=$enable_mutexsupport;
3124 else
3125 enableval="yes"
3126 fi
3127
3128 db_cv_build_mutexsupport="$enableval"
3129 case "$enableval" in
3130 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; };;
3132 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; };;
3134 esac
3135
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-log_checksum option specified" >&5
3137 $as_echo_n "checking if --disable-log_checksum option specified... " >&6; }
3138 # Check whether --enable-log_checksum was given.
3139 if test "${enable_log_checksum+set}" = set; then :
3140 enableval=$enable_log_checksum; case "$enableval" in
3141 no | yes) db_cv_log_checksum="$enableval" ;;
3142 *) db_cv_log_checksum="yes" ;;
3143 esac
3144 else
3145 db_cv_log_checksum="yes"
3146 fi
3147
3148 case "$db_cv_log_checksum" in
3149 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; };;
3151 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; };;
3153 esac
3154
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-partition option specified" >&5
3157 $as_echo_n "checking if --disable-partition option specified... " >&6; }
3158 # Check whether --enable-partition was given.
3159 if test "${enable_partition+set}" = set; then :
3160 enableval=$enable_partition;
3161 else
3162 enableval=$db_cv_build_full
3163 fi
3164
3165 db_cv_build_partition="$enableval"
3166 case "$enableval" in
3167 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168 $as_echo "yes" >&6; };;
3169 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; };;
3171 esac
3172
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-queue option specified" >&5
3174 $as_echo_n "checking if --disable-queue option specified... " >&6; }
3175 # Check whether --enable-queue was given.
3176 if test "${enable_queue+set}" = set; then :
3177 enableval=$enable_queue;
3178 else
3179 enableval=$db_cv_build_full
3180 fi
3181
3182 db_cv_build_queue="$enableval"
3183 case "$enableval" in
3184 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; };;
3186 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; };;
3188 esac
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-replication option specified" >&5
3191 $as_echo_n "checking if --disable-replication option specified... " >&6; }
3192 # Check whether --enable-replication was given.
3193 if test "${enable_replication+set}" = set; then :
3194 enableval=$enable_replication;
3195 else
3196 enableval=$db_cv_build_full
3197 fi
3198
3199 db_cv_build_replication="$enableval"
3200 case "$enableval" in
3201 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; };;
3203 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; };;
3205 esac
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-statistics option specified" >&5
3208 $as_echo_n "checking if --disable-statistics option specified... " >&6; }
3209 # Check whether --enable-statistics was given.
3210 if test "${enable_statistics+set}" = set; then :
3211 enableval=$enable_statistics;
3212 else
3213 enableval=$db_cv_build_full
3214 fi
3215
3216 db_cv_build_statistics="$enableval"
3217 case "$enableval" in
3218 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; };;
3220 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; };;
3222 esac
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-verify option specified" >&5
3225 $as_echo_n "checking if --disable-verify option specified... " >&6; }
3226 # Check whether --enable-verify was given.
3227 if test "${enable_verify+set}" = set; then :
3228 enableval=$enable_verify;
3229 else
3230 enableval=$db_cv_build_full
3231 fi
3232
3233 db_cv_build_verify="$enableval"
3234 case "$enableval" in
3235 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; };;
3237 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; };;
3239 esac
3240
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-compat185 option specified" >&5
3242 $as_echo_n "checking if --enable-compat185 option specified... " >&6; }
3243 # Check whether --enable-compat185 was given.
3244 if test "${enable_compat185+set}" = set; then :
3245 enableval=$enable_compat185; db_cv_compat185="$enable_compat185"
3246 else
3247 db_cv_compat185="no"
3248 fi
3249
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_compat185" >&5
3251 $as_echo "$db_cv_compat185" >&6; }
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-cxx option specified" >&5
3254 $as_echo_n "checking if --enable-cxx option specified... " >&6; }
3255 # Check whether --enable-cxx was given.
3256 if test "${enable_cxx+set}" = set; then :
3257 enableval=$enable_cxx; db_cv_cxx="$enable_cxx"
3258 else
3259 db_cv_cxx="no"
3260 fi
3261
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_cxx" >&5
3263 $as_echo "$db_cv_cxx" >&6; }
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug option specified" >&5
3266 $as_echo_n "checking if --enable-debug option specified... " >&6; }
3267 # Check whether --enable-debug was given.
3268 if test "${enable_debug+set}" = set; then :
3269 enableval=$enable_debug; db_cv_debug="$enable_debug"
3270 else
3271 db_cv_debug="no"
3272 fi
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug" >&5
3275 $as_echo "$db_cv_debug" >&6; }
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_rop option specified" >&5
3278 $as_echo_n "checking if --enable-debug_rop option specified... " >&6; }
3279 # Check whether --enable-debug_rop was given.
3280 if test "${enable_debug_rop+set}" = set; then :
3281 enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop"
3282 else
3283 db_cv_debug_rop="no"
3284 fi
3285
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_rop" >&5
3287 $as_echo "$db_cv_debug_rop" >&6; }
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_wop option specified" >&5
3290 $as_echo_n "checking if --enable-debug_wop option specified... " >&6; }
3291 # Check whether --enable-debug_wop was given.
3292 if test "${enable_debug_wop+set}" = set; then :
3293 enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop"
3294 else
3295 db_cv_debug_wop="no"
3296 fi
3297
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_wop" >&5
3299 $as_echo "$db_cv_debug_wop" >&6; }
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-diagnostic option specified" >&5
3302 $as_echo_n "checking if --enable-diagnostic option specified... " >&6; }
3303 # Check whether --enable-diagnostic was given.
3304 if test "${enable_diagnostic+set}" = set; then :
3305 enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic"
3306 else
3307 db_cv_diagnostic="no"
3308 fi
3309
3310 if test "$db_cv_diagnostic" = "yes"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_diagnostic" >&5
3312 $as_echo "$db_cv_diagnostic" >&6; }
3313 fi
3314 if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_rop" = "yes"; then
3315 db_cv_diagnostic="yes"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: by --enable-debug_rop" >&5
3317 $as_echo "by --enable-debug_rop" >&6; }
3318 fi
3319 if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_wop" = "yes"; then
3320 db_cv_diagnostic="yes"
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: by --enable-debug_wop" >&5
3322 $as_echo "by --enable-debug_wop" >&6; }
3323 fi
3324 if test "$db_cv_diagnostic" = "no"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_diagnostic" >&5
3326 $as_echo "$db_cv_diagnostic" >&6; }
3327 fi
3328
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-dump185 option specified" >&5
3330 $as_echo_n "checking if --enable-dump185 option specified... " >&6; }
3331 # Check whether --enable-dump185 was given.
3332 if test "${enable_dump185+set}" = set; then :
3333 enableval=$enable_dump185; db_cv_dump185="$enable_dump185"
3334 else
3335 db_cv_dump185="no"
3336 fi
3337
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_dump185" >&5
3339 $as_echo "$db_cv_dump185" >&6; }
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-java option specified" >&5
3342 $as_echo_n "checking if --enable-java option specified... " >&6; }
3343 # Check whether --enable-java was given.
3344 if test "${enable_java+set}" = set; then :
3345 enableval=$enable_java; db_cv_java="$enable_java"
3346 else
3347 db_cv_java="no"
3348 fi
3349
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_java" >&5
3351 $as_echo "$db_cv_java" >&6; }
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-mingw option specified" >&5
3354 $as_echo_n "checking if --enable-mingw option specified... " >&6; }
3355 # Check whether --enable-mingw was given.
3356 if test "${enable_mingw+set}" = set; then :
3357 enableval=$enable_mingw; db_cv_mingw="$enable_mingw"
3358 else
3359 db_cv_mingw="no"
3360 fi
3361
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mingw" >&5
3363 $as_echo "$db_cv_mingw" >&6; }
3364
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-o_direct option specified" >&5
3366 $as_echo_n "checking if --enable-o_direct option specified... " >&6; }
3367 # Check whether --enable-o_direct was given.
3368 if test "${enable_o_direct+set}" = set; then :
3369 enableval=$enable_o_direct; db_cv_o_direct="$enable_o_direct"
3370 else
3371 db_cv_o_direct="no"
3372 fi
3373
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_o_direct" >&5
3375 $as_echo "$db_cv_o_direct" >&6; }
3376
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-posixmutexes option specified" >&5
3378 $as_echo_n "checking if --enable-posixmutexes option specified... " >&6; }
3379 # Check whether --enable-posixmutexes was given.
3380 if test "${enable_posixmutexes+set}" = set; then :
3381 enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes"
3382 else
3383 db_cv_posixmutexes="no"
3384 fi
3385
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_posixmutexes" >&5
3387 $as_echo "$db_cv_posixmutexes" >&6; }
3388
3389 # Check whether --enable-pthread_self was given.
3390 if test "${enable_pthread_self+set}" = set; then :
3391 enableval=$enable_pthread_self; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthread_self is now always enabled" >&5
3392 $as_echo "$as_me: WARNING: --enable-pthread_self is now always enabled" >&2;}
3393 fi
3394
3395
3396 # Check whether --enable-pthread_api was given.
3397 if test "${enable_pthread_api+set}" = set; then :
3398 enableval=$enable_pthread_api; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthread_api is now always enabled" >&5
3399 $as_echo "$as_me: WARNING: --enable-pthread_api is now always enabled" >&2;}
3400 fi
3401
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-rpc option specified" >&5
3404 $as_echo_n "checking if --enable-rpc option specified... " >&6; }
3405 # Check whether --enable-rpc was given.
3406 if test "${enable_rpc+set}" = set; then :
3407 enableval=$enable_rpc; as_fn_error $? "RPC support has been removed from Berkeley DB." "$LINENO" 5
3408
3409 else
3410 db_cv_rpc="no"
3411 fi
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_rpc" >&5
3414 $as_echo "$db_cv_rpc" >&6; }
3415
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-sql option specified" >&5
3417 $as_echo_n "checking if --enable-sql option specified... " >&6; }
3418 # Check whether --enable-sql was given.
3419 if test "${enable_sql+set}" = set; then :
3420 enableval=$enable_sql; db_cv_sql="$enable_sql"
3421 else
3422 db_cv_sql="no"
3423 fi
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_sql" >&5
3426 $as_echo "$db_cv_sql" >&6; }
3427
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-sql_compat option specified" >&5
3429 $as_echo_n "checking if --enable-sql_compat option specified... " >&6; }
3430 # Check whether --enable-sql_compat was given.
3431 if test "${enable_sql_compat+set}" = set; then :
3432 enableval=$enable_sql_compat; db_cv_sql_compat="$enable_sql_compat"
3433 else
3434 db_cv_sql_compat="no"
3435 fi
3436
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_sql_compat" >&5
3438 $as_echo "$db_cv_sql_compat" >&6; }
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-jdbc option specified" >&5
3441 $as_echo_n "checking if --enable-jdbc option specified... " >&6; }
3442 # Check whether --enable-jdbc was given.
3443 if test "${enable_jdbc+set}" = set; then :
3444 enableval=$enable_jdbc; db_cv_jdbc="$enable_jdbc"
3445 else
3446 db_cv_jdbc="no"
3447 fi
3448
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_jdbc" >&5
3450 $as_echo "$db_cv_jdbc" >&6; }
3451
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-jdbc=DIR option specified" >&5
3453 $as_echo_n "checking if --with-jdbc=DIR option specified... " >&6; }
3454
3455 # Check whether --with-jdbc was given.
3456 if test "${with_jdbc+set}" = set; then :
3457 withval=$with_jdbc; with_jdbc="$withval"
3458 else
3459 with_jdbc="no"
3460 fi
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jdbc" >&5
3463 $as_echo "$with_jdbc" >&6; }
3464 if test "$with_jdbc" != "no"; then
3465 db_cv_jdbc="yes"
3466 fi
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-amalgamation option specified" >&5
3469 $as_echo_n "checking if --enable-amalgamation option specified... " >&6; }
3470 # Check whether --enable-amalgamation was given.
3471 if test "${enable_amalgamation+set}" = set; then :
3472 enableval=$enable_amalgamation; db_cv_sql_amalgamation="$enable_amalgamation"
3473 else
3474 db_cv_sql_amalgamation="no"
3475 fi
3476
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_sql_amalgamation" >&5
3478 $as_echo "$db_cv_sql_amalgamation" >&6; }
3479
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-sql_codegen option specified" >&5
3481 $as_echo_n "checking if --enable-sql_codegen option specified... " >&6; }
3482 # Check whether --enable-sql_codegen was given.
3483 if test "${enable_sql_codegen+set}" = set; then :
3484 enableval=$enable_sql_codegen; db_cv_sql_codegen="$enable_sql_codegen"
3485 else
3486 db_cv_sql_codegen="no"
3487 fi
3488
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_sql_codegen" >&5
3490 $as_echo "$db_cv_sql_codegen" >&6; }
3491
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-stl option specified" >&5
3493 $as_echo_n "checking if --enable-stl option specified... " >&6; }
3494 # Check whether --enable-stl was given.
3495 if test "${enable_stl+set}" = set; then :
3496 enableval=$enable_stl; db_cv_stl="$enable_stl"
3497 else
3498 db_cv_stl="no"
3499 fi
3500
3501 if test "$db_cv_stl" = "yes" -a "$db_cv_cxx" = "no"; then
3502 db_cv_cxx="yes"
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_stl" >&5
3505 $as_echo "$db_cv_stl" >&6; }
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-tcl option specified" >&5
3508 $as_echo_n "checking if --enable-tcl option specified... " >&6; }
3509 # Check whether --enable-tcl was given.
3510 if test "${enable_tcl+set}" = set; then :
3511 enableval=$enable_tcl; db_cv_tcl="$enable_tcl"
3512 else
3513 db_cv_tcl="no"
3514 fi
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_tcl" >&5
3517 $as_echo "$db_cv_tcl" >&6; }
3518
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-test option specified" >&5
3520 $as_echo_n "checking if --enable-test option specified... " >&6; }
3521 # Check whether --enable-test was given.
3522 if test "${enable_test+set}" = set; then :
3523 enableval=$enable_test; db_cv_test="$enable_test"
3524 else
3525 db_cv_test="no"
3526 fi
3527
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_test" >&5
3529 $as_echo "$db_cv_test" >&6; }
3530
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-localization option specified" >&5
3532 $as_echo_n "checking if --enable-localization option specified... " >&6; }
3533 # Check whether --enable-localization was given.
3534 if test "${enable_localization+set}" = set; then :
3535 enableval=$enable_localization; db_cv_localization="$enable_localization"
3536 else
3537 db_cv_localization="no"
3538 fi
3539
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_localization" >&5
3541 $as_echo "$db_cv_localization" >&6; }
3542
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-stripped_messages option specified" >&5
3544 $as_echo_n "checking if --enable-stripped_messages option specified... " >&6; }
3545 # Check whether --enable-stripped_messages was given.
3546 if test "${enable_stripped_messages+set}" = set; then :
3547 enableval=$enable_stripped_messages; db_cv_stripped_messages="$enable_stripped_messages"
3548 else
3549 db_cv_stripped_messages="no"
3550 fi
3551
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_stripped_messages" >&5
3553 $as_echo "$db_cv_stripped_messages" >&6; }
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-dbm option specified" >&5
3556 $as_echo_n "checking if --enable-dbm option specified... " >&6; }
3557 # Check whether --enable-dbm was given.
3558 if test "${enable_dbm+set}" = set; then :
3559 enableval=$enable_dbm; db_cv_dbm="$enable_dbm"
3560 else
3561 db_cv_dbm="$db_cv_test"
3562 fi
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_dbm" >&5
3565 $as_echo "$db_cv_dbm" >&6; }
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-dtrace option specified" >&5
3568 $as_echo_n "checking if --enable-dtrace option specified... " >&6; }
3569 # Check whether --enable-dtrace was given.
3570 if test "${enable_dtrace+set}" = set; then :
3571 enableval=$enable_dtrace; db_cv_dtrace="$enable_dtrace"
3572 else
3573 db_cv_dtrace="no"
3574 fi
3575
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_dtrace" >&5
3577 $as_echo "$db_cv_dtrace" >&6; }
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-systemtap option specified" >&5
3580 $as_echo_n "checking if --enable-systemtap option specified... " >&6; }
3581 # Check whether --enable-systemtap was given.
3582 if test "${enable_systemtap+set}" = set; then :
3583 enableval=$enable_systemtap; db_cv_systemtap="$enable_systemtap"
3584 else
3585 db_cv_systemtap="no"
3586 fi
3587
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_systemtap" >&5
3589 $as_echo "$db_cv_systemtap" >&6; }
3590
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-perfmon-statistics option specified" >&5
3592 $as_echo_n "checking if --enable-perfmon-statistics option specified... " >&6; }
3593 # Check whether --enable-perfmon_statistics was given.
3594 if test "${enable_perfmon_statistics+set}" = set; then :
3595 enableval=$enable_perfmon_statistics; db_cv_perfmon_statistics="$enable_perfmon_statistics"
3596 else
3597 db_cv_perfmon_statistics="no"
3598 fi
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_perfmon_statistics" >&5
3601 $as_echo "$db_cv_perfmon_statistics" >&6; }
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-uimutexes option specified" >&5
3604 $as_echo_n "checking if --enable-uimutexes option specified... " >&6; }
3605 # Check whether --enable-uimutexes was given.
3606 if test "${enable_uimutexes+set}" = set; then :
3607 enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes"
3608 else
3609 db_cv_uimutexes="no"
3610 fi
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uimutexes" >&5
3613 $as_echo "$db_cv_uimutexes" >&6; }
3614
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-umrw option specified" >&5
3616 $as_echo_n "checking if --enable-umrw option specified... " >&6; }
3617 # Check whether --enable-umrw was given.
3618 if test "${enable_umrw+set}" = set; then :
3619 enableval=$enable_umrw; db_cv_umrw="$enable_umrw"
3620 else
3621 db_cv_umrw="no"
3622 fi
3623
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_umrw" >&5
3625 $as_echo "$db_cv_umrw" >&6; }
3626
3627 # Solaris, AI/X, OS/X and other BSD-derived systems default to POSIX-conforming
3628 # disk i/o: A single read or write call is atomic. Other systems do not
3629 # guarantee atomicity; in particular Linux and Microsoft Windows.
3630 atomicfileread="no"
3631 case "$host_os" in
3632 solaris* | aix* | bsdi3* | freebsd* | darwin*)
3633 atomicfileread="yes";;
3634 esac
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-atomicfileread option specified" >&5
3636 $as_echo_n "checking if --enable-atomicfileread option specified... " >&6; }
3637 # Check whether --enable-atomicfileread was given.
3638 if test "${enable_atomicfileread+set}" = set; then :
3639 enableval=$enable_atomicfileread; db_cv_atomicfileread="$enable_atomicfileread"
3640 else
3641 db_cv_atomicfileread=$atomicfileread
3642 fi
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_atomicfileread" >&5
3645 $as_echo "$db_cv_atomicfileread" >&6; }
3646 if test "$db_cv_atomicfileread" = "yes"; then
3647 $as_echo "#define HAVE_ATOMICFILEREAD 1" >>confdefs.h
3648
3649
3650 fi
3651
3652 # Cryptography support.
3653 # Until Berkeley DB 5.0, this was a simple yes/no decision.
3654 # With the addition of support for Intel Integrated Performance Primitives (ipp)
3655 # things are more complex. There are now three options:
3656 # 1) don't build cryptography (no)
3657 # 2) build using the built-in software implementation (yes)
3658 # 3) build using the Intel IPP implementation (ipp)
3659 # We handle this by making the primary configuration method:
3660 # --with-cryptography={yes|no|ipp}
3661 # which defaults to yes. The old enable/disable-cryptography argument is still
3662 # supported for backwards compatibility.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-cryptography option specified" >&5
3664 $as_echo_n "checking if --with-cryptography option specified... " >&6; }
3665 # Check whether --enable-cryptography was given.
3666 if test "${enable_cryptography+set}" = set; then :
3667 enableval=$enable_cryptography;
3668 else
3669 enableval=$db_cv_build_full
3670 fi
3671
3672 enable_cryptography="$enableval"
3673
3674 # Check whether --with-cryptography was given.
3675 if test "${with_cryptography+set}" = set; then :
3676 withval=$with_cryptography;
3677 else
3678 with_cryptography=$enable_cryptography
3679 fi
3680
3681 case "$with_cryptography" in
3682 yes|no|ipp) ;;
3683 *) as_fn_error $? "unknown --with-cryptography argument \'$with_cryptography\'" "$LINENO" 5 ;;
3684 esac
3685 db_cv_build_cryptography="$with_cryptography"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_build_cryptography" >&5
3687 $as_echo "$db_cv_build_cryptography" >&6; }
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-mutex=MUTEX option specified" >&5
3690 $as_echo_n "checking if --with-mutex=MUTEX option specified... " >&6; }
3691
3692 # Check whether --with-mutex was given.
3693 if test "${with_mutex+set}" = set; then :
3694 withval=$with_mutex; with_mutex="$withval"
3695 else
3696 with_mutex="no"
3697 fi
3698
3699 if test "$with_mutex" = "yes"; then
3700 as_fn_error $? "--with-mutex requires a mutex name argument" "$LINENO" 5
3701 fi
3702 if test "$with_mutex" != "no"; then
3703 db_cv_mutex="$with_mutex"
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mutex" >&5
3706 $as_echo "$with_mutex" >&6; }
3707
3708 # --with-mutexalign=ALIGNMENT was the configuration option that Berkeley DB
3709 # used before the DbEnv::mutex_set_align method was added.
3710
3711 # Check whether --with-mutexalign was given.
3712 if test "${with_mutexalign+set}" = set; then :
3713 withval=$with_mutexalign; as_fn_error $? "--with-mutexalign no longer supported, use DbEnv::mutex_set_align" "$LINENO" 5
3714 fi
3715
3716
3717
3718 # Check whether --with-stacksize was given.
3719 if test "${with_stacksize+set}" = set; then :
3720 withval=$with_stacksize; with_stacksize="$withval"
3721 else
3722 with_stacksize="no"
3723 fi
3724
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-tcl=DIR option specified" >&5
3727 $as_echo_n "checking if --with-tcl=DIR option specified... " >&6; }
3728
3729 # Check whether --with-tcl was given.
3730 if test "${with_tcl+set}" = set; then :
3731 withval=$with_tcl; with_tclconfig="$withval"
3732 else
3733 with_tclconfig="no"
3734 fi
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tclconfig" >&5
3737 $as_echo "$with_tclconfig" >&6; }
3738 if test "$with_tclconfig" != "no"; then
3739 db_cv_tcl="yes"
3740 fi
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-uniquename=NAME option specified" >&5
3743 $as_echo_n "checking if --with-uniquename=NAME option specified... " >&6; }
3744
3745 # Check whether --with-uniquename was given.
3746 if test "${with_uniquename+set}" = set; then :
3747 withval=$with_uniquename; with_uniquename="$withval"
3748 else
3749 with_uniquename="no"
3750 fi
3751
3752 if test "$with_uniquename" = "no"; then
3753 db_cv_uniquename="no"
3754 DB_VERSION_UNIQUE_NAME=""
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_uniquename" >&5
3756 $as_echo "$with_uniquename" >&6; }
3757 else
3758 db_cv_uniquename="yes"
3759 if test "$with_uniquename" = "yes"; then
3760 DB_VERSION_UNIQUE_NAME="_5003"
3761 else
3762 DB_VERSION_UNIQUE_NAME="$with_uniquename"
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB_VERSION_UNIQUE_NAME" >&5
3765 $as_echo "$DB_VERSION_UNIQUE_NAME" >&6; }
3766 fi
3767
3768 # Undocumented option used for the dbsql command line tool (to match SQLite).
3769 # Check whether --enable-readline was given.
3770 if test "${enable_readline+set}" = set; then :
3771 enableval=$enable_readline; with_readline=$enableval
3772 else
3773 with_readline=no
3774 fi
3775
3776
3777 # --enable-sql_compat implies --enable-sql
3778 if test "$db_cv_sql_compat" = "yes" -a "$db_cv_sql" = "no"; then
3779 db_cv_sql=$db_cv_sql_compat
3780 fi
3781
3782 # --enable-jdbc implies --enable-sql
3783 if test "$db_cv_jdbc" = "yes" -a "$db_cv_sql" = "no"; then
3784 db_cv_sql=$db_cv_jdbc
3785 fi
3786
3787 # Testing requires Tcl.
3788 if test "$db_cv_test" = "yes" -a "$db_cv_tcl" = "no"; then
3789 as_fn_error $? "--enable-test requires --enable-tcl" "$LINENO" 5
3790 fi
3791
3792 # Set some #defines based on configuration options.
3793 if test "$db_cv_diagnostic" = "yes"; then
3794 $as_echo "#define DIAGNOSTIC 1" >>confdefs.h
3795
3796
3797 fi
3798 if test "$db_cv_debug_rop" = "yes"; then
3799 $as_echo "#define DEBUG_ROP 1" >>confdefs.h
3800
3801
3802 fi
3803 if test "$db_cv_debug_wop" = "yes"; then
3804 $as_echo "#define DEBUG_WOP 1" >>confdefs.h
3805
3806
3807 fi
3808 if test "$db_cv_umrw" = "yes"; then
3809 $as_echo "#define UMRW 1" >>confdefs.h
3810
3811
3812
3813 fi
3814 if test "$db_cv_test" = "yes"; then
3815 $as_echo "#define CONFIG_TEST 1" >>confdefs.h
3816
3817
3818 fi
3819
3820
3821 $as_echo "#define HAVE_UPGRADE_SUPPORT 1" >>confdefs.h
3822
3823
3824 # Check for programs used in building and installation.
3825
3826
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}chmod; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_prog_CHMOD+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$CHMOD"; then
3836 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_CHMOD="${ac_tool_prefix}chmod"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi
3854 fi
3855 CHMOD=$ac_cv_prog_CHMOD
3856 if test -n "$CHMOD"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3858 $as_echo "$CHMOD" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 fi
3863
3864
3865 fi
3866 if test -z "$ac_cv_prog_CHMOD"; then
3867 ac_ct_CHMOD=$CHMOD
3868 # Extract the first word of "chmod", so it can be a program name with args.
3869 set dummy chmod; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_ac_ct_CHMOD+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$ac_ct_CHMOD"; then
3876 ac_cv_prog_ac_ct_CHMOD="$ac_ct_CHMOD" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_ac_ct_CHMOD="chmod"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3892
3893 fi
3894 fi
3895 ac_ct_CHMOD=$ac_cv_prog_ac_ct_CHMOD
3896 if test -n "$ac_ct_CHMOD"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CHMOD" >&5
3898 $as_echo "$ac_ct_CHMOD" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3903
3904 if test "x$ac_ct_CHMOD" = x; then
3905 CHMOD="none"
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908 yes:)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911 ac_tool_warned=yes ;;
3912 esac
3913 CHMOD=$ac_ct_CHMOD
3914 fi
3915 else
3916 CHMOD="$ac_cv_prog_CHMOD"
3917 fi
3918
3919 test "$CHMOD" = "none" && as_fn_error $? "No chmod utility found." "$LINENO" 5
3920
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}cp; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_prog_CP+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -n "$CP"; then
3930 ac_cv_prog_CP="$CP" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_prog_CP="${ac_tool_prefix}cp"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi
3948 fi
3949 CP=$ac_cv_prog_CP
3950 if test -n "$CP"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3952 $as_echo "$CP" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 if test -z "$ac_cv_prog_CP"; then
3961 ac_ct_CP=$CP
3962 # Extract the first word of "cp", so it can be a program name with args.
3963 set dummy cp; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if ${ac_cv_prog_ac_ct_CP+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$ac_ct_CP"; then
3970 ac_cv_prog_ac_ct_CP="$ac_ct_CP" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_ac_ct_CP="cp"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 ac_ct_CP=$ac_cv_prog_ac_ct_CP
3990 if test -n "$ac_ct_CP"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CP" >&5
3992 $as_echo "$ac_ct_CP" >&6; }
3993 else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998 if test "x$ac_ct_CP" = x; then
3999 CP="none"
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002 yes:)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4006 esac
4007 CP=$ac_ct_CP
4008 fi
4009 else
4010 CP="$ac_cv_prog_CP"
4011 fi
4012
4013 test "$CP" = "none" && as_fn_error $? "No cp utility found." "$LINENO" 5
4014
4015 # The Tcl test suite requires a kill utility.
4016 if test "$db_cv_test" = "yes"; then
4017 if test -n "$ac_tool_prefix"; then
4018 # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
4019 set dummy ${ac_tool_prefix}kill; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_KILL+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$KILL"; then
4026 ac_cv_prog_KILL="$KILL" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_KILL="${ac_tool_prefix}kill"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 KILL=$ac_cv_prog_KILL
4046 if test -n "$KILL"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4048 $as_echo "$KILL" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054
4055 fi
4056 if test -z "$ac_cv_prog_KILL"; then
4057 ac_ct_KILL=$KILL
4058 # Extract the first word of "kill", so it can be a program name with args.
4059 set dummy kill; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if ${ac_cv_prog_ac_ct_KILL+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$ac_ct_KILL"; then
4066 ac_cv_prog_ac_ct_KILL="$ac_ct_KILL" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_ac_ct_KILL="kill"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 ac_ct_KILL=$ac_cv_prog_ac_ct_KILL
4086 if test -n "$ac_ct_KILL"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_KILL" >&5
4088 $as_echo "$ac_ct_KILL" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 fi
4093
4094 if test "x$ac_ct_KILL" = x; then
4095 KILL="none"
4096 else
4097 case $cross_compiling:$ac_tool_warned in
4098 yes:)
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101 ac_tool_warned=yes ;;
4102 esac
4103 KILL=$ac_ct_KILL
4104 fi
4105 else
4106 KILL="$ac_cv_prog_KILL"
4107 fi
4108
4109 test "$KILL" = "none" && as_fn_error $? "No kill utility found." "$LINENO" 5
4110 fi
4111
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}ln; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_LN+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$LN"; then
4121 ac_cv_prog_LN="$LN" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_prog_LN="${ac_tool_prefix}ln"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 LN=$ac_cv_prog_LN
4141 if test -n "$LN"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4143 $as_echo "$LN" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$ac_cv_prog_LN"; then
4152 ac_ct_LN=$LN
4153 # Extract the first word of "ln", so it can be a program name with args.
4154 set dummy ln; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_ac_ct_LN+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -n "$ac_ct_LN"; then
4161 ac_cv_prog_ac_ct_LN="$ac_ct_LN" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170 ac_cv_prog_ac_ct_LN="ln"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174 done
4175 done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 ac_ct_LN=$ac_cv_prog_ac_ct_LN
4181 if test -n "$ac_ct_LN"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LN" >&5
4183 $as_echo "$ac_ct_LN" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189 if test "x$ac_ct_LN" = x; then
4190 LN="none"
4191 else
4192 case $cross_compiling:$ac_tool_warned in
4193 yes:)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198 LN=$ac_ct_LN
4199 fi
4200 else
4201 LN="$ac_cv_prog_LN"
4202 fi
4203
4204 test "$LN" = "none" && as_fn_error $? "No ln utility found." "$LINENO" 5
4205
4206 if test -n "$ac_tool_prefix"; then
4207 # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
4208 set dummy ${ac_tool_prefix}mkdir; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_MKDIR+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$MKDIR"; then
4215 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_MKDIR="${ac_tool_prefix}mkdir"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 MKDIR=$ac_cv_prog_MKDIR
4235 if test -n "$MKDIR"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4237 $as_echo "$MKDIR" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244 fi
4245 if test -z "$ac_cv_prog_MKDIR"; then
4246 ac_ct_MKDIR=$MKDIR
4247 # Extract the first word of "mkdir", so it can be a program name with args.
4248 set dummy mkdir; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_ac_ct_MKDIR+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -n "$ac_ct_MKDIR"; then
4255 ac_cv_prog_ac_ct_MKDIR="$ac_ct_MKDIR" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_ac_ct_MKDIR="mkdir"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 ac_ct_MKDIR=$ac_cv_prog_ac_ct_MKDIR
4275 if test -n "$ac_ct_MKDIR"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDIR" >&5
4277 $as_echo "$ac_ct_MKDIR" >&6; }
4278 else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283 if test "x$ac_ct_MKDIR" = x; then
4284 MKDIR="none"
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 MKDIR=$ac_ct_MKDIR
4293 fi
4294 else
4295 MKDIR="$ac_cv_prog_MKDIR"
4296 fi
4297
4298 test "$MKDIR" = "none" && as_fn_error $? "No mkdir utility found." "$LINENO" 5
4299
4300 if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
4302 set dummy ${ac_tool_prefix}rm; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_RM+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$RM"; then
4309 ac_cv_prog_RM="$RM" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_RM="${ac_tool_prefix}rm"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 RM=$ac_cv_prog_RM
4329 if test -n "$RM"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4331 $as_echo "$RM" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$ac_cv_prog_RM"; then
4340 ac_ct_RM=$RM
4341 # Extract the first word of "rm", so it can be a program name with args.
4342 set dummy rm; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_ac_ct_RM+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$ac_ct_RM"; then
4349 ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_ac_ct_RM="rm"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 ac_ct_RM=$ac_cv_prog_ac_ct_RM
4369 if test -n "$ac_ct_RM"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RM" >&5
4371 $as_echo "$ac_ct_RM" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377 if test "x$ac_ct_RM" = x; then
4378 RM="none"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 RM=$ac_ct_RM
4387 fi
4388 else
4389 RM="$ac_cv_prog_RM"
4390 fi
4391
4392 test "$RM" = "none" && as_fn_error $? "No rm utility found." "$LINENO" 5
4393
4394 # We always want to force removes, and libtool assumes the same.
4395 RM="$RM -f"
4396
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}mv", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}mv; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_MV+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$MV"; then
4406 ac_cv_prog_MV="$MV" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_MV="${ac_tool_prefix}mv"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 MV=$ac_cv_prog_MV
4426 if test -n "$MV"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4428 $as_echo "$MV" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 fi
4436 if test -z "$ac_cv_prog_MV"; then
4437 ac_ct_MV=$MV
4438 # Extract the first word of "mv", so it can be a program name with args.
4439 set dummy mv; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_MV+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_MV"; then
4446 ac_cv_prog_ac_ct_MV="$ac_ct_MV" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_MV="mv"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_MV=$ac_cv_prog_ac_ct_MV
4466 if test -n "$ac_ct_MV"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MV" >&5
4468 $as_echo "$ac_ct_MV" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474 if test "x$ac_ct_MV" = x; then
4475 MV="none"
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478 yes:)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4482 esac
4483 MV=$ac_ct_MV
4484 fi
4485 else
4486 MV="$ac_cv_prog_MV"
4487 fi
4488
4489 test "$MV" = "none" && as_fn_error $? "No mv utility found." "$LINENO" 5
4490
4491 if test "$db_cv_systemtap" = "yes" -o "$db_cv_dtrace" = "yes"; then
4492 if test -n "$ac_tool_prefix"; then
4493 # Extract the first word of "${ac_tool_prefix}stap", so it can be a program name with args.
4494 set dummy ${ac_tool_prefix}stap; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_prog_STAP+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -n "$STAP"; then
4501 ac_cv_prog_STAP="$STAP" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_STAP="${ac_tool_prefix}stap"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518 fi
4519 fi
4520 STAP=$ac_cv_prog_STAP
4521 if test -n "$STAP"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAP" >&5
4523 $as_echo "$STAP" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4527 fi
4528
4529
4530 fi
4531 if test -z "$ac_cv_prog_STAP"; then
4532 ac_ct_STAP=$STAP
4533 # Extract the first word of "stap", so it can be a program name with args.
4534 set dummy stap; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_ac_ct_STAP+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$ac_ct_STAP"; then
4541 ac_cv_prog_ac_ct_STAP="$ac_ct_STAP" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_ac_ct_STAP="stap"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 ac_ct_STAP=$ac_cv_prog_ac_ct_STAP
4561 if test -n "$ac_ct_STAP"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STAP" >&5
4563 $as_echo "$ac_ct_STAP" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569 if test "x$ac_ct_STAP" = x; then
4570 STAP="none"
4571 else
4572 case $cross_compiling:$ac_tool_warned in
4573 yes:)
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576 ac_tool_warned=yes ;;
4577 esac
4578 STAP=$ac_ct_STAP
4579 fi
4580 else
4581 STAP="$ac_cv_prog_STAP"
4582 fi
4583
4584 test "$STAP" = "none" -a "$db_cv_systemtap" = "yes" && \
4585 as_fn_error $? "No stap utility found." "$LINENO" 5
4586 db_cv_dtrace=yes
4587 fi
4588
4589 if test "$db_cv_dtrace" = "yes"; then
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}dtrace", so it can be a program name with args.
4592 set dummy ${ac_tool_prefix}dtrace; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_DTRACE+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$DTRACE"; then
4599 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_DTRACE="${ac_tool_prefix}dtrace"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 DTRACE=$ac_cv_prog_DTRACE
4619 if test -n "$DTRACE"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
4621 $as_echo "$DTRACE" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 fi
4629 if test -z "$ac_cv_prog_DTRACE"; then
4630 ac_ct_DTRACE=$DTRACE
4631 # Extract the first word of "dtrace", so it can be a program name with args.
4632 set dummy dtrace; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_DTRACE+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$ac_ct_DTRACE"; then
4639 ac_cv_prog_ac_ct_DTRACE="$ac_ct_DTRACE" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_prog_ac_ct_DTRACE="dtrace"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 ac_ct_DTRACE=$ac_cv_prog_ac_ct_DTRACE
4659 if test -n "$ac_ct_DTRACE"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTRACE" >&5
4661 $as_echo "$ac_ct_DTRACE" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667 if test "x$ac_ct_DTRACE" = x; then
4668 DTRACE="none"
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4675 esac
4676 DTRACE=$ac_ct_DTRACE
4677 fi
4678 else
4679 DTRACE="$ac_cv_prog_DTRACE"
4680 fi
4681
4682 test "$DTRACE" = "none" && as_fn_error $? "No dtrace utility found." "$LINENO" 5
4683 # Sed and perl are needed only if events are added after building
4684 # the distribution; if either is missing it is not an error for now.
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}sed; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_SED+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$SED"; then
4694 ac_cv_prog_SED="$SED" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_SED="${ac_tool_prefix}sed"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 SED=$ac_cv_prog_SED
4714 if test -n "$SED"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4716 $as_echo "$SED" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 fi
4724 if test -z "$ac_cv_prog_SED"; then
4725 ac_ct_SED=$SED
4726 # Extract the first word of "sed", so it can be a program name with args.
4727 set dummy sed; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$ac_ct_SED"; then
4734 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_ac_ct_SED="sed"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4754 if test -n "$ac_ct_SED"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4756 $as_echo "$ac_ct_SED" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762 if test "x$ac_ct_SED" = x; then
4763 SED="none"
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771 SED=$ac_ct_SED
4772 fi
4773 else
4774 SED="$ac_cv_prog_SED"
4775 fi
4776
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}perl; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_PERL+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$PERL"; then
4786 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_PERL="${ac_tool_prefix}perl"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 PERL=$ac_cv_prog_PERL
4806 if test -n "$PERL"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4808 $as_echo "$PERL" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815 fi
4816 if test -z "$ac_cv_prog_PERL"; then
4817 ac_ct_PERL=$PERL
4818 # Extract the first word of "perl", so it can be a program name with args.
4819 set dummy perl; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if ${ac_cv_prog_ac_ct_PERL+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$ac_ct_PERL"; then
4826 ac_cv_prog_ac_ct_PERL="$ac_ct_PERL" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_ac_ct_PERL="perl"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 ac_ct_PERL=$ac_cv_prog_ac_ct_PERL
4846 if test -n "$ac_ct_PERL"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PERL" >&5
4848 $as_echo "$ac_ct_PERL" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854 if test "x$ac_ct_PERL" = x; then
4855 PERL="none"
4856 else
4857 case $cross_compiling:$ac_tool_warned in
4858 yes:)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863 PERL=$ac_ct_PERL
4864 fi
4865 else
4866 PERL="$ac_cv_prog_PERL"
4867 fi
4868
4869 fi
4870
4871 # We need a complete path for sh, because some make utility implementations get
4872 # upset if SHELL is set to just the command name. Don't use the SHELL variable
4873 # here because the user likely has the SHELL variable set to something other
4874 # than the Bourne shell, which is what Make wants.
4875 if test -n "$ac_tool_prefix"; then
4876 # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
4877 set dummy ${ac_tool_prefix}sh; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_db_cv_path_sh+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 case $db_cv_path_sh in
4884 [\\/]* | ?:[\\/]*)
4885 ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
4886 ;;
4887 *)
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 ;;
4904 esac
4905 fi
4906 db_cv_path_sh=$ac_cv_path_db_cv_path_sh
4907 if test -n "$db_cv_path_sh"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_path_sh" >&5
4909 $as_echo "$db_cv_path_sh" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 fi
4917 if test -z "$ac_cv_path_db_cv_path_sh"; then
4918 ac_pt_db_cv_path_sh=$db_cv_path_sh
4919 # Extract the first word of "sh", so it can be a program name with args.
4920 set dummy sh; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_path_ac_pt_db_cv_path_sh+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 case $ac_pt_db_cv_path_sh in
4927 [\\/]* | ?:[\\/]*)
4928 ac_cv_path_ac_pt_db_cv_path_sh="$ac_pt_db_cv_path_sh" # Let the user override the test with a path.
4929 ;;
4930 *)
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_path_ac_pt_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 ;;
4947 esac
4948 fi
4949 ac_pt_db_cv_path_sh=$ac_cv_path_ac_pt_db_cv_path_sh
4950 if test -n "$ac_pt_db_cv_path_sh"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_db_cv_path_sh" >&5
4952 $as_echo "$ac_pt_db_cv_path_sh" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958 if test "x$ac_pt_db_cv_path_sh" = x; then
4959 db_cv_path_sh="none"
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 db_cv_path_sh=$ac_pt_db_cv_path_sh
4968 fi
4969 else
4970 db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
4971 fi
4972
4973 test "$db_cv_path_sh" = "none" && as_fn_error $? "No sh utility found." "$LINENO" 5
4974
4975 # Don't strip the binaries if --enable-debug was specified.
4976 if test "$db_cv_debug" = yes; then
4977 STRIP=":"
4978 fi
4979 # Find a good install program. We prefer a C program (faster),
4980 # so one script is as good as another. But avoid the broken or
4981 # incompatible versions:
4982 # SysV /etc/install, /usr/sbin/install
4983 # SunOS /usr/etc/install
4984 # IRIX /sbin/install
4985 # AIX /bin/install
4986 # AmigaOS /C/install, which installs bootblocks on floppy discs
4987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4990 # OS/2's system install, which has a completely different semantic
4991 # ./install, which can be erroneously created by make from ./install.sh.
4992 # Reject install programs that cannot install multiple files.
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4994 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4995 if test -z "$INSTALL"; then
4996 if ${ac_cv_path_install+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 # Account for people who put trailing slashes in PATH elements.
5005 case $as_dir/ in #((
5006 ./ | .// | /[cC]/* | \
5007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5008 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5009 /usr/ucb/* ) ;;
5010 *)
5011 # OSF1 and SCO ODT 3.0 have their own names for install.
5012 # Don't use installbsd from OSF since it installs stuff as root
5013 # by default.
5014 for ac_prog in ginstall scoinst install; do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5017 if test $ac_prog = install &&
5018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5019 # AIX install. It has an incompatible calling convention.
5020 :
5021 elif test $ac_prog = install &&
5022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5023 # program-specific install script used by HP pwplus--don't use.
5024 :
5025 else
5026 rm -rf conftest.one conftest.two conftest.dir
5027 echo one > conftest.one
5028 echo two > conftest.two
5029 mkdir conftest.dir
5030 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5031 test -s conftest.one && test -s conftest.two &&
5032 test -s conftest.dir/conftest.one &&
5033 test -s conftest.dir/conftest.two
5034 then
5035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5036 break 3
5037 fi
5038 fi
5039 fi
5040 done
5041 done
5042 ;;
5043 esac
5044
5045 done
5046 IFS=$as_save_IFS
5047
5048 rm -rf conftest.one conftest.two conftest.dir
5049
5050 fi
5051 if test "${ac_cv_path_install+set}" = set; then
5052 INSTALL=$ac_cv_path_install
5053 else
5054 # As a last resort, use the slow shell script. Don't cache a
5055 # value for INSTALL within a source directory, because that will
5056 # break other packages using the cache if that directory is
5057 # removed, or if the value is a relative name.
5058 INSTALL=$ac_install_sh
5059 fi
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5062 $as_echo "$INSTALL" >&6; }
5063
5064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5065 # It thinks the first close brace ends the variable substitution.
5066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5067
5068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5069
5070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5071
5072
5073 BUILD_TARGET="library_build"
5074 INSTALL_TARGET="library_install"
5075
5076 # Respect the environment LIBS settings
5077 LIBSO_LIBS="$LIBS"
5078
5079 # This is where we handle stuff that autoconf can't handle: compiler,
5080 # preprocessor and load flags, libraries that the standard tests don't
5081 # look for.
5082 #
5083 # There are additional libraries we need for some compiler/architecture
5084 # combinations.
5085 #
5086 # Some architectures require DB to be compiled with special flags and/or
5087 # libraries for threaded applications
5088 #
5089 # The makefile CC may be different than the CC used in config testing,
5090 # because the makefile CC may be set to use $(LIBTOOL).
5091 #
5092 # Don't override anything if it's already set from the environment.
5093 optimize_flag="-O"
5094 extra_cflags=""
5095
5096 case "$host_os" in
5097 aix4.3.*|aix[5-9]*)
5098 case "$host_os" in
5099 aix4.3.*)
5100 CPPFLAGS="$CPPFLAGS -D_LINUX_SOURCE_COMPAT";;
5101 esac
5102 # IBM's XLC compilers (at least versions 7/8/9) generate incorrect code
5103 # when ordinary optimization is enabled because they make strong
5104 # assumptions about the types held at each memory location, and some
5105 # Berkeley DB code violates those assumptions. [#16141]
5106 extra_cflags=" -qalias=noansi"
5107 optimize_flag="-O2"
5108 CC=${CC-"xlc_r"}
5109 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
5110 LDFLAGS="$LDFLAGS -Wl,-brtl";;
5111 bsdi3*) CC=${CC-"shlicc2"}
5112 LIBSO_LIBS="$LIBSO_LIBS -lipc";;
5113 cygwin*)
5114 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
5115 freebsd*)
5116 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
5117 LDFLAGS="$LDFLAGS -pthread";;
5118 gnu*|k*bsd*-gnu|linux*)
5119 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
5120 hpux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
5121 irix*) optimize_flag="-O2"
5122 CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
5123 mpeix*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5124 LIBSO_LIBS="$LIBSO_LIBS -lsocket -lsvipc";;
5125 osf*) CPPFLAGS="$CPPFLAGS -pthread";;
5126 *qnx*) qnx_build="yes"
5127 $as_echo "#define HAVE_QNX 1" >>confdefs.h
5128
5129 ;;
5130 solaris*)
5131 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ";;
5132 esac
5133
5134 # Set CFLAGS/CXXFLAGS. We MUST set the flags before we call autoconf
5135 # compiler configuration macros, because if we don't, they set CFLAGS
5136 # to no optimization and -g, which isn't what we want.
5137 #
5138 # If the user wants a debugging environment, add -g the their compiler flags
5139 # and don't automatically optimize. If you want to compile with a different
5140 # set of flags, specify CFLAGS in the environment before configuring.
5141 if test "$db_cv_debug" = "yes"; then
5142 $as_echo "#define DEBUG 1" >>confdefs.h
5143
5144
5145
5146 CFLAGS="-g $CFLAGS"
5147 else
5148 CFLAGS=${CFLAGS-$optimize_flag}
5149 fi
5150
5151 CFLAGS="$CFLAGS$extra_cflags"
5152 CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
5153
5154 # The default compiler is cc (NOT gcc), the default CFLAGS is as specified
5155 # above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
5156 # for any compiler other than gcc.
5157 ac_ext=c
5158 ac_cpp='$CPP $CPPFLAGS'
5159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162 if test -n "$ac_tool_prefix"; then
5163 for ac_prog in cc gcc
5164 do
5165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_CC+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 CC=$ac_cv_prog_CC
5193 if test -n "$CC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5195 $as_echo "$CC" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 test -n "$CC" && break
5203 done
5204 fi
5205 if test -z "$CC"; then
5206 ac_ct_CC=$CC
5207 for ac_prog in cc gcc
5208 do
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$ac_ct_CC"; then
5217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_CC="$ac_prog"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5237 if test -n "$ac_ct_CC"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5239 $as_echo "$ac_ct_CC" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245
5246 test -n "$ac_ct_CC" && break
5247 done
5248
5249 if test "x$ac_ct_CC" = x; then
5250 CC=""
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 CC=$ac_ct_CC
5259 fi
5260 fi
5261
5262
5263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5265 as_fn_error $? "no acceptable C compiler found in \$PATH
5266 See \`config.log' for more details" "$LINENO" 5; }
5267
5268 # Provide some information about the compiler.
5269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5270 set X $ac_compile
5271 ac_compiler=$2
5272 for ac_option in --version -v -V -qversion; do
5273 { { ac_try="$ac_compiler $ac_option >&5"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279 $as_echo "$ac_try_echo"; } >&5
5280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5281 ac_status=$?
5282 if test -s conftest.err; then
5283 sed '10a\
5284 ... rest of stderr output deleted ...
5285 10q' conftest.err >conftest.er1
5286 cat conftest.er1 >&5
5287 fi
5288 rm -f conftest.er1 conftest.err
5289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5290 test $ac_status = 0; }
5291 done
5292
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295
5296 int
5297 main ()
5298 {
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 ac_clean_files_save=$ac_clean_files
5305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5306 # Try to create an executable without -o first, disregard a.out.
5307 # It will help us diagnose broken compilers, and finding out an intuition
5308 # of exeext.
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5310 $as_echo_n "checking whether the C compiler works... " >&6; }
5311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5312
5313 # The possible output files:
5314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5315
5316 ac_rmfiles=
5317 for ac_file in $ac_files
5318 do
5319 case $ac_file in
5320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5322 esac
5323 done
5324 rm -f $ac_rmfiles
5325
5326 if { { ac_try="$ac_link_default"
5327 case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330 esac
5331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5332 $as_echo "$ac_try_echo"; } >&5
5333 (eval "$ac_link_default") 2>&5
5334 ac_status=$?
5335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5336 test $ac_status = 0; }; then :
5337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5340 # so that the user can short-circuit this test for compilers unknown to
5341 # Autoconf.
5342 for ac_file in $ac_files ''
5343 do
5344 test -f "$ac_file" || continue
5345 case $ac_file in
5346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5347 ;;
5348 [ab].out )
5349 # We found the default executable, but exeext='' is most
5350 # certainly right.
5351 break;;
5352 *.* )
5353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5354 then :; else
5355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5356 fi
5357 # We set ac_cv_exeext here because the later test for it is not
5358 # safe: cross compilers may not add the suffix if given an `-o'
5359 # argument, so we may need to know it at that point already.
5360 # Even if this section looks crufty: it has the advantage of
5361 # actually working.
5362 break;;
5363 * )
5364 break;;
5365 esac
5366 done
5367 test "$ac_cv_exeext" = no && ac_cv_exeext=
5368
5369 else
5370 ac_file=''
5371 fi
5372 if test -z "$ac_file"; then :
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 $as_echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5380 as_fn_error 77 "C compiler cannot create executables
5381 See \`config.log' for more details" "$LINENO" 5; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5387 $as_echo_n "checking for C compiler default output file name... " >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5389 $as_echo "$ac_file" >&6; }
5390 ac_exeext=$ac_cv_exeext
5391
5392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5393 ac_clean_files=$ac_clean_files_save
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5395 $as_echo_n "checking for suffix of executables... " >&6; }
5396 if { { ac_try="$ac_link"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5402 $as_echo "$ac_try_echo"; } >&5
5403 (eval "$ac_link") 2>&5
5404 ac_status=$?
5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406 test $ac_status = 0; }; then :
5407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5409 # work properly (i.e., refer to `conftest.exe'), while it won't with
5410 # `rm'.
5411 for ac_file in conftest.exe conftest conftest.*; do
5412 test -f "$ac_file" || continue
5413 case $ac_file in
5414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5416 break;;
5417 * ) break;;
5418 esac
5419 done
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5424 See \`config.log' for more details" "$LINENO" 5; }
5425 fi
5426 rm -f conftest conftest$ac_cv_exeext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5428 $as_echo "$ac_cv_exeext" >&6; }
5429
5430 rm -f conftest.$ac_ext
5431 EXEEXT=$ac_cv_exeext
5432 ac_exeext=$EXEEXT
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <stdio.h>
5436 int
5437 main ()
5438 {
5439 FILE *f = fopen ("conftest.out", "w");
5440 return ferror (f) || fclose (f) != 0;
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 ac_clean_files="$ac_clean_files conftest.out"
5447 # Check that the compiler produces executables we can run. If not, either
5448 # the compiler is broken, or we cross compile.
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5450 $as_echo_n "checking whether we are cross compiling... " >&6; }
5451 if test "$cross_compiling" != yes; then
5452 { { ac_try="$ac_link"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5458 $as_echo "$ac_try_echo"; } >&5
5459 (eval "$ac_link") 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 if { ac_try='./conftest$ac_cv_exeext'
5464 { { case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_try") 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; }; then
5474 cross_compiling=no
5475 else
5476 if test "$cross_compiling" = maybe; then
5477 cross_compiling=yes
5478 else
5479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5481 as_fn_error $? "cannot run C compiled programs.
5482 If you meant to cross compile, use \`--host'.
5483 See \`config.log' for more details" "$LINENO" 5; }
5484 fi
5485 fi
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5488 $as_echo "$cross_compiling" >&6; }
5489
5490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5491 ac_clean_files=$ac_clean_files_save
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5493 $as_echo_n "checking for suffix of object files... " >&6; }
5494 if ${ac_cv_objext+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499
5500 int
5501 main ()
5502 {
5503
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.o conftest.obj
5509 if { { ac_try="$ac_compile"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5515 $as_echo "$ac_try_echo"; } >&5
5516 (eval "$ac_compile") 2>&5
5517 ac_status=$?
5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 test $ac_status = 0; }; then :
5520 for ac_file in conftest.o conftest.obj conftest.*; do
5521 test -f "$ac_file" || continue;
5522 case $ac_file in
5523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5525 break;;
5526 esac
5527 done
5528 else
5529 $as_echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 as_fn_error $? "cannot compute suffix of object files: cannot compile
5535 See \`config.log' for more details" "$LINENO" 5; }
5536 fi
5537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5540 $as_echo "$ac_cv_objext" >&6; }
5541 OBJEXT=$ac_cv_objext
5542 ac_objext=$OBJEXT
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5545 if ${ac_cv_c_compiler_gnu+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550
5551 int
5552 main ()
5553 {
5554 #ifndef __GNUC__
5555 choke me
5556 #endif
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_compiler_gnu=yes
5564 else
5565 ac_compiler_gnu=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5573 if test $ac_compiler_gnu = yes; then
5574 GCC=yes
5575 else
5576 GCC=
5577 fi
5578 ac_test_CFLAGS=${CFLAGS+set}
5579 ac_save_CFLAGS=$CFLAGS
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5582 if ${ac_cv_prog_cc_g+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 ac_save_c_werror_flag=$ac_c_werror_flag
5586 ac_c_werror_flag=yes
5587 ac_cv_prog_cc_g=no
5588 CFLAGS="-g"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591
5592 int
5593 main ()
5594 {
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_cv_prog_cc_g=yes
5602 else
5603 CFLAGS=""
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616
5617 else
5618 ac_c_werror_flag=$ac_save_c_werror_flag
5619 CFLAGS="-g"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_prog_cc_g=yes
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_c_werror_flag=$ac_save_c_werror_flag
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5642 $as_echo "$ac_cv_prog_cc_g" >&6; }
5643 if test "$ac_test_CFLAGS" = set; then
5644 CFLAGS=$ac_save_CFLAGS
5645 elif test $ac_cv_prog_cc_g = yes; then
5646 if test "$GCC" = yes; then
5647 CFLAGS="-g -O2"
5648 else
5649 CFLAGS="-g"
5650 fi
5651 else
5652 if test "$GCC" = yes; then
5653 CFLAGS="-O2"
5654 else
5655 CFLAGS=
5656 fi
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5660 if ${ac_cv_prog_cc_c89+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 ac_cv_prog_cc_c89=no
5664 ac_save_CC=$CC
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <stdarg.h>
5668 #include <stdio.h>
5669 #include <sys/types.h>
5670 #include <sys/stat.h>
5671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5672 struct buf { int x; };
5673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5674 static char *e (p, i)
5675 char **p;
5676 int i;
5677 {
5678 return p[i];
5679 }
5680 static char *f (char * (*g) (char **, int), char **p, ...)
5681 {
5682 char *s;
5683 va_list v;
5684 va_start (v,p);
5685 s = g (p, va_arg (v,int));
5686 va_end (v);
5687 return s;
5688 }
5689
5690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5691 function prototypes and stuff, but not '\xHH' hex character constants.
5692 These don't provoke an error unfortunately, instead are silently treated
5693 as 'x'. The following induces an error, until -std is added to get
5694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5695 array size at least. It's necessary to write '\x00'==0 to get something
5696 that's true only with -std. */
5697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5698
5699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5700 inside strings and character constants. */
5701 #define FOO(x) 'x'
5702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5703
5704 int test (int i, double x);
5705 struct s1 {int (*f) (int a);};
5706 struct s2 {int (*f) (double a);};
5707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5708 int argc;
5709 char **argv;
5710 int
5711 main ()
5712 {
5713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5720 do
5721 CC="$ac_save_CC $ac_arg"
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 ac_cv_prog_cc_c89=$ac_arg
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext
5726 test "x$ac_cv_prog_cc_c89" != "xno" && break
5727 done
5728 rm -f conftest.$ac_ext
5729 CC=$ac_save_CC
5730
5731 fi
5732 # AC_CACHE_VAL
5733 case "x$ac_cv_prog_cc_c89" in
5734 x)
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5736 $as_echo "none needed" >&6; } ;;
5737 xno)
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5739 $as_echo "unsupported" >&6; } ;;
5740 *)
5741 CC="$CC $ac_cv_prog_cc_c89"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5744 esac
5745 if test "x$ac_cv_prog_cc_c89" != xno; then :
5746
5747 fi
5748
5749 ac_ext=c
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756 # We know what compiler we're going to use, now. Set per-compiler flags.
5757 if test "$GCC" = "yes"; then
5758 # Use -O3 if we're using gcc, unless we're doing a small build, in
5759 # which case we use -Os alone. The code size for -O3 is quite a
5760 # bit larger than -O2: a compromise is "-Os -finline-functions",
5761 # it's smaller and explicitly inlining the functions helps Berkeley
5762 # DB.
5763 CFLAGS="$CFLAGS "
5764 if test "$db_cv_smallbuild" = "yes"; then
5765 CFLAGS=`echo "$CFLAGS" | sed 's/-O /-Os /g'`
5766 else
5767 CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O3 /g'`
5768 fi
5769 else
5770 case "$host_os" in
5771 hpux11.0*) ;;
5772 hpux11*) CPPFLAGS="$CPPFLAGS -mt"
5773 test "$host_cpu" = "ia64" &&
5774 CFLAGS="$CFLAGS +u1";;
5775 esac
5776 fi
5777
5778 # Check for "const" and "inline" keywords.
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5781 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5782 if ${ac_cv_c_const+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787
5788 int
5789 main ()
5790 {
5791 /* FIXME: Include the comments suggested by Paul. */
5792 #ifndef __cplusplus
5793 /* Ultrix mips cc rejects this. */
5794 typedef int charset[2];
5795 const charset cs;
5796 /* SunOS 4.1.1 cc rejects this. */
5797 char const *const *pcpcc;
5798 char **ppc;
5799 /* NEC SVR4.0.2 mips cc rejects this. */
5800 struct point {int x, y;};
5801 static struct point const zero = {0,0};
5802 /* AIX XL C 1.02.0.0 rejects this.
5803 It does not let you subtract one const X* pointer from another in
5804 an arm of an if-expression whose if-part is not a constant
5805 expression */
5806 const char *g = "string";
5807 pcpcc = &g + (g ? g-g : 0);
5808 /* HPUX 7.0 cc rejects these. */
5809 ++pcpcc;
5810 ppc = (char**) pcpcc;
5811 pcpcc = (char const *const *) ppc;
5812 { /* SCO 3.2v4 cc rejects this. */
5813 char *t;
5814 char const *s = 0 ? (char *) 0 : (char const *) 0;
5815
5816 *t++ = 0;
5817 if (s) return 0;
5818 }
5819 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5820 int x[] = {25, 17};
5821 const int *foo = &x[0];
5822 ++foo;
5823 }
5824 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5825 typedef const int *iptr;
5826 iptr p = 0;
5827 ++p;
5828 }
5829 { /* AIX XL C 1.02.0.0 rejects this saying
5830 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5831 struct s { int j; const int *ap[3]; };
5832 struct s *b; b->j = 5;
5833 }
5834 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5835 const int foo = 10;
5836 if (!foo) return 0;
5837 }
5838 return !cs[0] && !zero.x;
5839 #endif
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 ac_cv_c_const=yes
5847 else
5848 ac_cv_c_const=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5853 $as_echo "$ac_cv_c_const" >&6; }
5854 if test $ac_cv_c_const = no; then
5855
5856 $as_echo "#define const /**/" >>confdefs.h
5857
5858 fi
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5861 $as_echo_n "checking for inline... " >&6; }
5862 if ${ac_cv_c_inline+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 ac_cv_c_inline=no
5866 for ac_kw in inline __inline__ __inline; do
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #ifndef __cplusplus
5870 typedef int foo_t;
5871 static $ac_kw foo_t static_foo () {return 0; }
5872 $ac_kw foo_t foo () {return 0; }
5873 #endif
5874
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877 ac_cv_c_inline=$ac_kw
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 test "$ac_cv_c_inline" != no && break
5881 done
5882
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5885 $as_echo "$ac_cv_c_inline" >&6; }
5886
5887 case $ac_cv_c_inline in
5888 inline | yes) ;;
5889 *)
5890 case $ac_cv_c_inline in
5891 no) ac_val=;;
5892 *) ac_val=$ac_cv_c_inline;;
5893 esac
5894 cat >>confdefs.h <<_ACEOF
5895 #ifndef __cplusplus
5896 #define inline $ac_val
5897 #endif
5898 _ACEOF
5899 ;;
5900 esac
5901
5902
5903 # We use prototypes and the keyword "const" in db.h which doesn't include
5904 # db_config.h, so we have to figure out what to do there.
5905 #
5906 # There is an autoconf AC_C_PROTOTYPES macro, but as all it does is define
5907 # db_config.h variables, it doesn't help us.
5908 #
5909 # We don't have much choice, we look at internal autoconf variables.
5910 if test "$ac_cv_c_const" != "yes"; then
5911 DB_CONST="#define const"
5912 fi
5913
5914 # We use alignment attributes in db.h - figure out if the compiler supports
5915 # them.
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC aligned attribute" >&5
5917 $as_echo_n "checking for GCC aligned attribute... " >&6; }
5918 if ${db_cv_aligned_attribute+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924
5925 int
5926 main ()
5927 {
5928 __attribute__ ((aligned (8))) int i;
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934 db_cv_aligned_attribute=yes
5935 else
5936 db_cv_aligned_attribute=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_aligned_attribute" >&5
5941 $as_echo "$db_cv_aligned_attribute" >&6; }
5942 if test "$db_cv_aligned_attribute" = "yes"; then
5943 DB_STRUCT_ALIGN8="__attribute__ ((aligned (8)))"
5944 fi
5945
5946 # Clear __P, some other systems use it too.
5947 DB_PROTO1="#undef __P"
5948 if test "$ac_cv_prog_cc_c89" = "no"; then
5949 DB_PROTO2="#define __P(protos) ()"
5950 else
5951 DB_PROTO2="#define __P(protos) protos"
5952 fi
5953
5954 # Because of shared library building, the ${CC} used for config tests
5955 # may be different than the ${CC} we want to put in the Makefile.
5956 # The latter is known as ${MAKEFILE_CC} in this script.
5957 MAKEFILE_CC="${CC}"
5958 MAKEFILE_CCLINK="${CC}"
5959 MAKEFILE_CXX="nocxx"
5960 MAKEFILE_CXXLINK="nocxx"
5961
5962 # See if we need the C++ compiler at all. If so, we'd like to find one that
5963 # interoperates with the C compiler we chose. Since we prefered cc over gcc,
5964 # we'll also prefer the vendor's compiler over g++/gcc. If we're wrong, the
5965 # user can set CC and CXX in their environment before running configure.
5966 #
5967 # AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
5968 # first choices.
5969 if test "$db_cv_cxx" = "yes"; then
5970 if test "$GCC" != "yes"; then
5971 case "$host_os" in
5972 aix*) if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_CCC+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$CCC"; then
5981 ac_cv_prog_CCC="$CCC" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 CCC=$ac_cv_prog_CCC
6001 if test -n "$CCC"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5
6003 $as_echo "$CCC" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_CCC"; then
6012 ac_ct_CCC=$CCC
6013 # Extract the first word of "xlC_r", so it can be a program name with args.
6014 set dummy xlC_r; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_CCC+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_CCC"; then
6021 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_ac_ct_CCC="xlC_r"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
6041 if test -n "$ac_ct_CCC"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5
6043 $as_echo "$ac_ct_CCC" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 if test "x$ac_ct_CCC" = x; then
6050 CCC=""
6051 else
6052 case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058 CCC=$ac_ct_CCC
6059 fi
6060 else
6061 CCC="$ac_cv_prog_CCC"
6062 fi
6063
6064 LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
6065 LIBSO_LIBS="-lC_r $LIBSO_LIBS";;
6066 hpux*) if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}aCC; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_CCC+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$CCC"; then
6075 ac_cv_prog_CCC="$CCC" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_prog_CCC="${ac_tool_prefix}aCC"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 CCC=$ac_cv_prog_CCC
6095 if test -n "$CCC"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5
6097 $as_echo "$CCC" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103
6104 fi
6105 if test -z "$ac_cv_prog_CCC"; then
6106 ac_ct_CCC=$CCC
6107 # Extract the first word of "aCC", so it can be a program name with args.
6108 set dummy aCC; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_CCC+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$ac_ct_CCC"; then
6115 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_ac_ct_CCC="aCC"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
6135 if test -n "$ac_ct_CCC"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5
6137 $as_echo "$ac_ct_CCC" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143 if test "x$ac_ct_CCC" = x; then
6144 CCC=""
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147 yes:)
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6151 esac
6152 CCC=$ac_ct_CCC
6153 fi
6154 else
6155 CCC="$ac_cv_prog_CCC"
6156 fi
6157 ;;
6158 irix*) if test -n "$ac_tool_prefix"; then
6159 # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
6160 set dummy ${ac_tool_prefix}CC; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_prog_CCC+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 if test -n "$CCC"; then
6167 ac_cv_prog_CCC="$CCC" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_CCC="${ac_tool_prefix}CC"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180 done
6181 done
6182 IFS=$as_save_IFS
6183
6184 fi
6185 fi
6186 CCC=$ac_cv_prog_CCC
6187 if test -n "$CCC"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5
6189 $as_echo "$CCC" >&6; }
6190 else
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6193 fi
6194
6195
6196 fi
6197 if test -z "$ac_cv_prog_CCC"; then
6198 ac_ct_CCC=$CCC
6199 # Extract the first word of "CC", so it can be a program name with args.
6200 set dummy CC; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_ac_ct_CCC+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test -n "$ac_ct_CCC"; then
6207 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_ac_ct_CCC="CC"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220 done
6221 done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
6227 if test -n "$ac_ct_CCC"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5
6229 $as_echo "$ac_ct_CCC" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235 if test "x$ac_ct_CCC" = x; then
6236 CCC=""
6237 else
6238 case $cross_compiling:$ac_tool_warned in
6239 yes:)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242 ac_tool_warned=yes ;;
6243 esac
6244 CCC=$ac_ct_CCC
6245 fi
6246 else
6247 CCC="$ac_cv_prog_CCC"
6248 fi
6249 ;;
6250 osf*) if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}cxx; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_CCC+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if test -n "$CCC"; then
6259 ac_cv_prog_CCC="$CCC" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_CCC="${ac_tool_prefix}cxx"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 CCC=$ac_cv_prog_CCC
6279 if test -n "$CCC"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5
6281 $as_echo "$CCC" >&6; }
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_CCC"; then
6290 ac_ct_CCC=$CCC
6291 # Extract the first word of "cxx", so it can be a program name with args.
6292 set dummy cxx; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_CCC+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$ac_ct_CCC"; then
6299 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_CCC="cxx"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
6319 if test -n "$ac_ct_CCC"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5
6321 $as_echo "$ac_ct_CCC" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327 if test "x$ac_ct_CCC" = x; then
6328 CCC=""
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 CCC=$ac_ct_CCC
6337 fi
6338 else
6339 CCC="$ac_cv_prog_CCC"
6340 fi
6341
6342 CXXFLAGS="$CXXFLAGS -D__USE_STD_IOSTREAM"
6343 test -d /usr/include.dtk &&
6344 CXXFLAGS="$CXXFLAGS -I/usr/include.dtk";;
6345 solaris*) if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}CC; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_CCC+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$CCC"; then
6354 ac_cv_prog_CCC="$CCC" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_CCC="${ac_tool_prefix}CC"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 CCC=$ac_cv_prog_CCC
6374 if test -n "$CCC"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCC" >&5
6376 $as_echo "$CCC" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_CCC"; then
6385 ac_ct_CCC=$CCC
6386 # Extract the first word of "CC", so it can be a program name with args.
6387 set dummy CC; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_CCC+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_CCC"; then
6394 ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_CCC="CC"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
6414 if test -n "$ac_ct_CCC"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCC" >&5
6416 $as_echo "$ac_ct_CCC" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422 if test "x$ac_ct_CCC" = x; then
6423 CCC=""
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 CCC=$ac_ct_CCC
6432 fi
6433 else
6434 CCC="$ac_cv_prog_CCC"
6435 fi
6436 ;;
6437 esac
6438 fi
6439 ac_ext=cpp
6440 ac_cpp='$CXXCPP $CPPFLAGS'
6441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6444 if test -z "$CXX"; then
6445 if test -n "$CCC"; then
6446 CXX=$CCC
6447 else
6448 if test -n "$ac_tool_prefix"; then
6449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6450 do
6451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_CXX+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$CXX"; then
6459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 CXX=$ac_cv_prog_CXX
6479 if test -n "$CXX"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6481 $as_echo "$CXX" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 test -n "$CXX" && break
6489 done
6490 fi
6491 if test -z "$CXX"; then
6492 ac_ct_CXX=$CXX
6493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6494 do
6495 # Extract the first word of "$ac_prog", so it can be a program name with args.
6496 set dummy $ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$ac_ct_CXX"; then
6503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_CXX="$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6523 if test -n "$ac_ct_CXX"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6525 $as_echo "$ac_ct_CXX" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 test -n "$ac_ct_CXX" && break
6533 done
6534
6535 if test "x$ac_ct_CXX" = x; then
6536 CXX="g++"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 CXX=$ac_ct_CXX
6545 fi
6546 fi
6547
6548 fi
6549 fi
6550 # Provide some information about the compiler.
6551 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6552 set X $ac_compile
6553 ac_compiler=$2
6554 for ac_option in --version -v -V -qversion; do
6555 { { ac_try="$ac_compiler $ac_option >&5"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6561 $as_echo "$ac_try_echo"; } >&5
6562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6563 ac_status=$?
6564 if test -s conftest.err; then
6565 sed '10a\
6566 ... rest of stderr output deleted ...
6567 10q' conftest.err >conftest.er1
6568 cat conftest.er1 >&5
6569 fi
6570 rm -f conftest.er1 conftest.err
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }
6573 done
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6576 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6577 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582
6583 int
6584 main ()
6585 {
6586 #ifndef __GNUC__
6587 choke me
6588 #endif
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_cxx_try_compile "$LINENO"; then :
6595 ac_compiler_gnu=yes
6596 else
6597 ac_compiler_gnu=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6604 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6605 if test $ac_compiler_gnu = yes; then
6606 GXX=yes
6607 else
6608 GXX=
6609 fi
6610 ac_test_CXXFLAGS=${CXXFLAGS+set}
6611 ac_save_CXXFLAGS=$CXXFLAGS
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6613 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6614 if ${ac_cv_prog_cxx_g+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6618 ac_cxx_werror_flag=yes
6619 ac_cv_prog_cxx_g=no
6620 CXXFLAGS="-g"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623
6624 int
6625 main ()
6626 {
6627
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_cxx_try_compile "$LINENO"; then :
6633 ac_cv_prog_cxx_g=yes
6634 else
6635 CXXFLAGS=""
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638
6639 int
6640 main ()
6641 {
6642
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_cxx_try_compile "$LINENO"; then :
6648
6649 else
6650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6651 CXXFLAGS="-g"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_cxx_try_compile "$LINENO"; then :
6664 ac_cv_prog_cxx_g=yes
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6674 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6675 if test "$ac_test_CXXFLAGS" = set; then
6676 CXXFLAGS=$ac_save_CXXFLAGS
6677 elif test $ac_cv_prog_cxx_g = yes; then
6678 if test "$GXX" = yes; then
6679 CXXFLAGS="-g -O2"
6680 else
6681 CXXFLAGS="-g"
6682 fi
6683 else
6684 if test "$GXX" = yes; then
6685 CXXFLAGS="-O2"
6686 else
6687 CXXFLAGS=
6688 fi
6689 fi
6690 ac_ext=c
6691 ac_cpp='$CPP $CPPFLAGS'
6692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695
6696 ###### WORKAROUND: SEE SR #7938
6697 ac_ext=cpp
6698 ac_cpp='$CXXCPP $CPPFLAGS'
6699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6703 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6704 if test -z "$CXXCPP"; then
6705 if ${ac_cv_prog_CXXCPP+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 # Double quotes because CXXCPP needs to be expanded
6709 for CXXCPP in "$CXX -E" "/lib/cpp"
6710 do
6711 ac_preproc_ok=false
6712 for ac_cxx_preproc_warn_flag in '' yes
6713 do
6714 # Use a header file that comes with gcc, so configuring glibc
6715 # with a fresh cross-compiler works.
6716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717 # <limits.h> exists even on freestanding compilers.
6718 # On the NeXT, cc -E runs the code through the compiler's parser,
6719 # not just through cpp. "Syntax error" is here to catch this case.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #ifdef __STDC__
6723 # include <limits.h>
6724 #else
6725 # include <assert.h>
6726 #endif
6727 Syntax error
6728 _ACEOF
6729 if ac_fn_cxx_try_cpp "$LINENO"; then :
6730
6731 else
6732 # Broken: fails on valid input.
6733 continue
6734 fi
6735 rm -f conftest.err conftest.i conftest.$ac_ext
6736
6737 # OK, works on sane cases. Now check whether nonexistent headers
6738 # can be detected and how.
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <ac_nonexistent.h>
6742 _ACEOF
6743 if ac_fn_cxx_try_cpp "$LINENO"; then :
6744 # Broken: success on invalid input.
6745 continue
6746 else
6747 # Passes both tests.
6748 ac_preproc_ok=:
6749 break
6750 fi
6751 rm -f conftest.err conftest.i conftest.$ac_ext
6752
6753 done
6754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755 rm -f conftest.i conftest.err conftest.$ac_ext
6756 if $ac_preproc_ok; then :
6757 break
6758 fi
6759
6760 done
6761 ac_cv_prog_CXXCPP=$CXXCPP
6762
6763 fi
6764 CXXCPP=$ac_cv_prog_CXXCPP
6765 else
6766 ac_cv_prog_CXXCPP=$CXXCPP
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6769 $as_echo "$CXXCPP" >&6; }
6770 ac_preproc_ok=false
6771 for ac_cxx_preproc_warn_flag in '' yes
6772 do
6773 # Use a header file that comes with gcc, so configuring glibc
6774 # with a fresh cross-compiler works.
6775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6776 # <limits.h> exists even on freestanding compilers.
6777 # On the NeXT, cc -E runs the code through the compiler's parser,
6778 # not just through cpp. "Syntax error" is here to catch this case.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #ifdef __STDC__
6782 # include <limits.h>
6783 #else
6784 # include <assert.h>
6785 #endif
6786 Syntax error
6787 _ACEOF
6788 if ac_fn_cxx_try_cpp "$LINENO"; then :
6789
6790 else
6791 # Broken: fails on valid input.
6792 continue
6793 fi
6794 rm -f conftest.err conftest.i conftest.$ac_ext
6795
6796 # OK, works on sane cases. Now check whether nonexistent headers
6797 # can be detected and how.
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 #include <ac_nonexistent.h>
6801 _ACEOF
6802 if ac_fn_cxx_try_cpp "$LINENO"; then :
6803 # Broken: success on invalid input.
6804 continue
6805 else
6806 # Passes both tests.
6807 ac_preproc_ok=:
6808 break
6809 fi
6810 rm -f conftest.err conftest.i conftest.$ac_ext
6811
6812 done
6813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6814 rm -f conftest.i conftest.err conftest.$ac_ext
6815 if $ac_preproc_ok; then :
6816
6817 else
6818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6820 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6821 See \`config.log' for more details" "$LINENO" 5; }
6822 fi
6823
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829
6830 ###############################
6831
6832
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ supports the ISO C++ standard includes" >&5
6835 $as_echo_n "checking whether C++ supports the ISO C++ standard includes... " >&6; }
6836
6837 ac_ext=cpp
6838 ac_cpp='$CXXCPP $CPPFLAGS'
6839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6842
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <iostream>
6846 int
6847 main ()
6848 {
6849 std::ostream *o; return 0;
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_cxx_try_compile "$LINENO"; then :
6855 db_cv_cxx_have_stdheaders=yes
6856 else
6857 db_cv_cxx_have_stdheaders=no
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_cxx_have_stdheaders" >&5
6867 $as_echo "$db_cv_cxx_have_stdheaders" >&6; }
6868 if test "$db_cv_cxx_have_stdheaders" = yes; then
6869 cxx_have_stdheaders="#define HAVE_CXX_STDHEADERS 1"
6870 fi
6871 MAKEFILE_CXX="${CXX}"
6872 MAKEFILE_CXXLINK="${CXX}"
6873 fi
6874
6875 # Do some gcc specific configuration.
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc version 2.96" >&5
6878 $as_echo_n "checking whether we are using gcc version 2.96... " >&6; }
6879 if ${db_cv_gcc_2_96+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882
6883 db_cv_gcc_2_96=no
6884 if test "$GCC" = "yes"; then
6885 GCC_VERSION=`${MAKEFILE_CC} --version`
6886 case ${GCC_VERSION} in
6887 2.96*)
6888 db_cv_gcc_2_96=yes;;
6889 esac
6890 fi
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_gcc_2_96" >&5
6893 $as_echo "$db_cv_gcc_2_96" >&6; }
6894 if test "$db_cv_gcc_2_96" = "yes"; then
6895 CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
6896 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
6898 $as_echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
6900 $as_echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
6901 fi
6902
6903 # We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
6904 # and OpenUNIX releases. We can't make the test until we know which compiler
6905 # we're using.
6906 case "$host_os" in
6907 sysv5UnixWare*|sysv5OpenUNIX8*)
6908 if test "$GCC" == "yes"; then
6909 CPPFLAGS="$CPPFLAGS -pthread"
6910 LDFLAGS="$LDFLAGS -pthread"
6911 else
6912 CPPFLAGS="$CPPFLAGS -Kthread"
6913 LDFLAGS="$LDFLAGS -Kthread"
6914 fi;;
6915 esac
6916
6917 # Export our compiler preferences for the libtool configuration.
6918 export CC CCC
6919 CCC=$CXX
6920
6921 # Libtool configuration.
6922 case `pwd` in
6923 *\ * | *\ *)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6925 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6926 esac
6927
6928
6929
6930 macro_version='2.4'
6931 macro_revision='1.3293'
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 ltmain="$ac_aux_dir/ltmain.sh"
6946
6947 # Backslashify metacharacters that are still active within
6948 # double-quoted strings.
6949 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6950
6951 # Same as above, but do not quote variable references.
6952 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6953
6954 # Sed substitution to delay expansion of an escaped shell variable in a
6955 # double_quote_subst'ed string.
6956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6957
6958 # Sed substitution to delay expansion of an escaped single quote.
6959 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6960
6961 # Sed substitution to avoid accidental globbing in evaled expressions
6962 no_glob_subst='s/\*/\\\*/g'
6963
6964 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6965 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6966 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6969 $as_echo_n "checking how to print strings... " >&6; }
6970 # Test print first, because it will be a builtin if present.
6971 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6972 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6973 ECHO='print -r --'
6974 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6975 ECHO='printf %s\n'
6976 else
6977 # Use this function as a fallback that always works.
6978 func_fallback_echo ()
6979 {
6980 eval 'cat <<_LTECHO_EOF
6981 $1
6982 _LTECHO_EOF'
6983 }
6984 ECHO='func_fallback_echo'
6985 fi
6986
6987 # func_echo_all arg...
6988 # Invoke $ECHO with all args, space-separated.
6989 func_echo_all ()
6990 {
6991 $ECHO ""
6992 }
6993
6994 case "$ECHO" in
6995 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6996 $as_echo "printf" >&6; } ;;
6997 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6998 $as_echo "print -r" >&6; } ;;
6999 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7000 $as_echo "cat" >&6; } ;;
7001 esac
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7017 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7018 if ${ac_cv_path_SED+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7022 for ac_i in 1 2 3 4 5 6 7; do
7023 ac_script="$ac_script$as_nl$ac_script"
7024 done
7025 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7026 { ac_script=; unset ac_script;}
7027 if test -z "$SED"; then
7028 ac_path_SED_found=false
7029 # Loop through the user's path and test for each of PROGNAME-LIST
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_prog in sed gsed; do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7038 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7039 # Check for GNU ac_path_SED and select it if it is found.
7040 # Check for GNU $ac_path_SED
7041 case `"$ac_path_SED" --version 2>&1` in
7042 *GNU*)
7043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7044 *)
7045 ac_count=0
7046 $as_echo_n 0123456789 >"conftest.in"
7047 while :
7048 do
7049 cat "conftest.in" "conftest.in" >"conftest.tmp"
7050 mv "conftest.tmp" "conftest.in"
7051 cp "conftest.in" "conftest.nl"
7052 $as_echo '' >> "conftest.nl"
7053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055 as_fn_arith $ac_count + 1 && ac_count=$as_val
7056 if test $ac_count -gt ${ac_path_SED_max-0}; then
7057 # Best one so far, save it but keep looking for a better one
7058 ac_cv_path_SED="$ac_path_SED"
7059 ac_path_SED_max=$ac_count
7060 fi
7061 # 10*(2^10) chars as input seems more than enough
7062 test $ac_count -gt 10 && break
7063 done
7064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7065 esac
7066
7067 $ac_path_SED_found && break 3
7068 done
7069 done
7070 done
7071 IFS=$as_save_IFS
7072 if test -z "$ac_cv_path_SED"; then
7073 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7074 fi
7075 else
7076 ac_cv_path_SED=$SED
7077 fi
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7081 $as_echo "$ac_cv_path_SED" >&6; }
7082 SED="$ac_cv_path_SED"
7083 rm -f conftest.sed
7084
7085 test -z "$SED" && SED=sed
7086 Xsed="$SED -e 1s/^X//"
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7100 if ${ac_cv_path_GREP+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -z "$GREP"; then
7104 ac_path_GREP_found=false
7105 # Loop through the user's path and test for each of PROGNAME-LIST
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_prog in grep ggrep; do
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7115 # Check for GNU ac_path_GREP and select it if it is found.
7116 # Check for GNU $ac_path_GREP
7117 case `"$ac_path_GREP" --version 2>&1` in
7118 *GNU*)
7119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7120 *)
7121 ac_count=0
7122 $as_echo_n 0123456789 >"conftest.in"
7123 while :
7124 do
7125 cat "conftest.in" "conftest.in" >"conftest.tmp"
7126 mv "conftest.tmp" "conftest.in"
7127 cp "conftest.in" "conftest.nl"
7128 $as_echo 'GREP' >> "conftest.nl"
7129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7131 as_fn_arith $ac_count + 1 && ac_count=$as_val
7132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7133 # Best one so far, save it but keep looking for a better one
7134 ac_cv_path_GREP="$ac_path_GREP"
7135 ac_path_GREP_max=$ac_count
7136 fi
7137 # 10*(2^10) chars as input seems more than enough
7138 test $ac_count -gt 10 && break
7139 done
7140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7141 esac
7142
7143 $ac_path_GREP_found && break 3
7144 done
7145 done
7146 done
7147 IFS=$as_save_IFS
7148 if test -z "$ac_cv_path_GREP"; then
7149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7150 fi
7151 else
7152 ac_cv_path_GREP=$GREP
7153 fi
7154
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7157 $as_echo "$ac_cv_path_GREP" >&6; }
7158 GREP="$ac_cv_path_GREP"
7159
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7162 $as_echo_n "checking for egrep... " >&6; }
7163 if ${ac_cv_path_EGREP+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7167 then ac_cv_path_EGREP="$GREP -E"
7168 else
7169 if test -z "$EGREP"; then
7170 ac_path_EGREP_found=false
7171 # Loop through the user's path and test for each of PROGNAME-LIST
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_prog in egrep; do
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7181 # Check for GNU ac_path_EGREP and select it if it is found.
7182 # Check for GNU $ac_path_EGREP
7183 case `"$ac_path_EGREP" --version 2>&1` in
7184 *GNU*)
7185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7186 *)
7187 ac_count=0
7188 $as_echo_n 0123456789 >"conftest.in"
7189 while :
7190 do
7191 cat "conftest.in" "conftest.in" >"conftest.tmp"
7192 mv "conftest.tmp" "conftest.in"
7193 cp "conftest.in" "conftest.nl"
7194 $as_echo 'EGREP' >> "conftest.nl"
7195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7197 as_fn_arith $ac_count + 1 && ac_count=$as_val
7198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7199 # Best one so far, save it but keep looking for a better one
7200 ac_cv_path_EGREP="$ac_path_EGREP"
7201 ac_path_EGREP_max=$ac_count
7202 fi
7203 # 10*(2^10) chars as input seems more than enough
7204 test $ac_count -gt 10 && break
7205 done
7206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7207 esac
7208
7209 $ac_path_EGREP_found && break 3
7210 done
7211 done
7212 done
7213 IFS=$as_save_IFS
7214 if test -z "$ac_cv_path_EGREP"; then
7215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7216 fi
7217 else
7218 ac_cv_path_EGREP=$EGREP
7219 fi
7220
7221 fi
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7224 $as_echo "$ac_cv_path_EGREP" >&6; }
7225 EGREP="$ac_cv_path_EGREP"
7226
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7229 $as_echo_n "checking for fgrep... " >&6; }
7230 if ${ac_cv_path_FGREP+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7234 then ac_cv_path_FGREP="$GREP -F"
7235 else
7236 if test -z "$FGREP"; then
7237 ac_path_FGREP_found=false
7238 # Loop through the user's path and test for each of PROGNAME-LIST
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_prog in fgrep; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7247 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7248 # Check for GNU ac_path_FGREP and select it if it is found.
7249 # Check for GNU $ac_path_FGREP
7250 case `"$ac_path_FGREP" --version 2>&1` in
7251 *GNU*)
7252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7253 *)
7254 ac_count=0
7255 $as_echo_n 0123456789 >"conftest.in"
7256 while :
7257 do
7258 cat "conftest.in" "conftest.in" >"conftest.tmp"
7259 mv "conftest.tmp" "conftest.in"
7260 cp "conftest.in" "conftest.nl"
7261 $as_echo 'FGREP' >> "conftest.nl"
7262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7264 as_fn_arith $ac_count + 1 && ac_count=$as_val
7265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7266 # Best one so far, save it but keep looking for a better one
7267 ac_cv_path_FGREP="$ac_path_FGREP"
7268 ac_path_FGREP_max=$ac_count
7269 fi
7270 # 10*(2^10) chars as input seems more than enough
7271 test $ac_count -gt 10 && break
7272 done
7273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7274 esac
7275
7276 $ac_path_FGREP_found && break 3
7277 done
7278 done
7279 done
7280 IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_FGREP"; then
7282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7283 fi
7284 else
7285 ac_cv_path_FGREP=$FGREP
7286 fi
7287
7288 fi
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7291 $as_echo "$ac_cv_path_FGREP" >&6; }
7292 FGREP="$ac_cv_path_FGREP"
7293
7294
7295 test -z "$GREP" && GREP=grep
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --with-gnu-ld was given.
7316 if test "${with_gnu_ld+set}" = set; then :
7317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7318 else
7319 with_gnu_ld=no
7320 fi
7321
7322 ac_prog=ld
7323 if test "$GCC" = yes; then
7324 # Check if gcc -print-prog-name=ld gives a path.
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7326 $as_echo_n "checking for ld used by $CC... " >&6; }
7327 case $host in
7328 *-*-mingw*)
7329 # gcc leaves a trailing carriage return which upsets mingw
7330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7331 *)
7332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7333 esac
7334 case $ac_prog in
7335 # Accept absolute paths.
7336 [\\/]* | ?:[\\/]*)
7337 re_direlt='/[^/][^/]*/\.\./'
7338 # Canonicalize the pathname of ld
7339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7342 done
7343 test -z "$LD" && LD="$ac_prog"
7344 ;;
7345 "")
7346 # If it fails, then pretend we aren't using GCC.
7347 ac_prog=ld
7348 ;;
7349 *)
7350 # If it is relative, then search for the first ld in PATH.
7351 with_gnu_ld=unknown
7352 ;;
7353 esac
7354 elif test "$with_gnu_ld" = yes; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7356 $as_echo_n "checking for GNU ld... " >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7359 $as_echo_n "checking for non-GNU ld... " >&6; }
7360 fi
7361 if ${lt_cv_path_LD+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -z "$LD"; then
7365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7366 for ac_dir in $PATH; do
7367 IFS="$lt_save_ifs"
7368 test -z "$ac_dir" && ac_dir=.
7369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7370 lt_cv_path_LD="$ac_dir/$ac_prog"
7371 # Check to see if the program is GNU ld. I'd rather use --version,
7372 # but apparently some variants of GNU ld only accept -v.
7373 # Break only if it was the GNU/non-GNU ld that we prefer.
7374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7375 *GNU* | *'with BFD'*)
7376 test "$with_gnu_ld" != no && break
7377 ;;
7378 *)
7379 test "$with_gnu_ld" != yes && break
7380 ;;
7381 esac
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 else
7386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7387 fi
7388 fi
7389
7390 LD="$lt_cv_path_LD"
7391 if test -n "$LD"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7393 $as_echo "$LD" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7400 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7401 if ${lt_cv_prog_gnu_ld+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7405 case `$LD -v 2>&1 </dev/null` in
7406 *GNU* | *'with BFD'*)
7407 lt_cv_prog_gnu_ld=yes
7408 ;;
7409 *)
7410 lt_cv_prog_gnu_ld=no
7411 ;;
7412 esac
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7415 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7416 with_gnu_ld=$lt_cv_prog_gnu_ld
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7427 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7428 if ${lt_cv_path_NM+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$NM"; then
7432 # Let the user override the test.
7433 lt_cv_path_NM="$NM"
7434 else
7435 lt_nm_to_check="${ac_tool_prefix}nm"
7436 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7437 lt_nm_to_check="$lt_nm_to_check nm"
7438 fi
7439 for lt_tmp_nm in $lt_nm_to_check; do
7440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7442 IFS="$lt_save_ifs"
7443 test -z "$ac_dir" && ac_dir=.
7444 tmp_nm="$ac_dir/$lt_tmp_nm"
7445 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7446 # Check to see if the nm accepts a BSD-compat flag.
7447 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7448 # nm: unknown option "B" ignored
7449 # Tru64's nm complains that /dev/null is an invalid object file
7450 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7451 */dev/null* | *'Invalid file or object type'*)
7452 lt_cv_path_NM="$tmp_nm -B"
7453 break
7454 ;;
7455 *)
7456 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7457 */dev/null*)
7458 lt_cv_path_NM="$tmp_nm -p"
7459 break
7460 ;;
7461 *)
7462 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7463 continue # so that we can try to find one that supports BSD flags
7464 ;;
7465 esac
7466 ;;
7467 esac
7468 fi
7469 done
7470 IFS="$lt_save_ifs"
7471 done
7472 : ${lt_cv_path_NM=no}
7473 fi
7474 fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7476 $as_echo "$lt_cv_path_NM" >&6; }
7477 if test "$lt_cv_path_NM" != "no"; then
7478 NM="$lt_cv_path_NM"
7479 else
7480 # Didn't find any BSD compatible name lister, look for dumpbin.
7481 if test -n "$DUMPBIN"; then :
7482 # Let the user override the test.
7483 else
7484 if test -n "$ac_tool_prefix"; then
7485 for ac_prog in dumpbin "link -dump"
7486 do
7487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_DUMPBIN+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$DUMPBIN"; then
7495 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 DUMPBIN=$ac_cv_prog_DUMPBIN
7515 if test -n "$DUMPBIN"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7517 $as_echo "$DUMPBIN" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523
7524 test -n "$DUMPBIN" && break
7525 done
7526 fi
7527 if test -z "$DUMPBIN"; then
7528 ac_ct_DUMPBIN=$DUMPBIN
7529 for ac_prog in dumpbin "link -dump"
7530 do
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532 set dummy $ac_prog; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$ac_ct_DUMPBIN"; then
7539 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7559 if test -n "$ac_ct_DUMPBIN"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7561 $as_echo "$ac_ct_DUMPBIN" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 test -n "$ac_ct_DUMPBIN" && break
7569 done
7570
7571 if test "x$ac_ct_DUMPBIN" = x; then
7572 DUMPBIN=":"
7573 else
7574 case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580 DUMPBIN=$ac_ct_DUMPBIN
7581 fi
7582 fi
7583
7584 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7585 *COFF*)
7586 DUMPBIN="$DUMPBIN -symbols"
7587 ;;
7588 *)
7589 DUMPBIN=:
7590 ;;
7591 esac
7592 fi
7593
7594 if test "$DUMPBIN" != ":"; then
7595 NM="$DUMPBIN"
7596 fi
7597 fi
7598 test -z "$NM" && NM=nm
7599
7600
7601
7602
7603
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7606 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7607 if ${lt_cv_nm_interface+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 lt_cv_nm_interface="BSD nm"
7611 echo "int some_variable = 0;" > conftest.$ac_ext
7612 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7613 (eval "$ac_compile" 2>conftest.err)
7614 cat conftest.err >&5
7615 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7616 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7617 cat conftest.err >&5
7618 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7619 cat conftest.out >&5
7620 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7621 lt_cv_nm_interface="MS dumpbin"
7622 fi
7623 rm -f conftest*
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7626 $as_echo "$lt_cv_nm_interface" >&6; }
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7629 $as_echo_n "checking whether ln -s works... " >&6; }
7630 LN_S=$as_ln_s
7631 if test "$LN_S" = "ln -s"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7633 $as_echo "yes" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7636 $as_echo "no, using $LN_S" >&6; }
7637 fi
7638
7639 # find the maximum length of command line arguments
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7641 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7642 if ${lt_cv_sys_max_cmd_len+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 i=0
7646 teststring="ABCD"
7647
7648 case $build_os in
7649 msdosdjgpp*)
7650 # On DJGPP, this test can blow up pretty badly due to problems in libc
7651 # (any single argument exceeding 2000 bytes causes a buffer overrun
7652 # during glob expansion). Even if it were fixed, the result of this
7653 # check would be larger than it should be.
7654 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7655 ;;
7656
7657 gnu*)
7658 # Under GNU Hurd, this test is not required because there is
7659 # no limit to the length of command line arguments.
7660 # Libtool will interpret -1 as no limit whatsoever
7661 lt_cv_sys_max_cmd_len=-1;
7662 ;;
7663
7664 cygwin* | mingw* | cegcc*)
7665 # On Win9x/ME, this test blows up -- it succeeds, but takes
7666 # about 5 minutes as the teststring grows exponentially.
7667 # Worse, since 9x/ME are not pre-emptively multitasking,
7668 # you end up with a "frozen" computer, even though with patience
7669 # the test eventually succeeds (with a max line length of 256k).
7670 # Instead, let's just punt: use the minimum linelength reported by
7671 # all of the supported platforms: 8192 (on NT/2K/XP).
7672 lt_cv_sys_max_cmd_len=8192;
7673 ;;
7674
7675 mint*)
7676 # On MiNT this can take a long time and run out of memory.
7677 lt_cv_sys_max_cmd_len=8192;
7678 ;;
7679
7680 amigaos*)
7681 # On AmigaOS with pdksh, this test takes hours, literally.
7682 # So we just punt and use a minimum line length of 8192.
7683 lt_cv_sys_max_cmd_len=8192;
7684 ;;
7685
7686 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7687 # This has been around since 386BSD, at least. Likely further.
7688 if test -x /sbin/sysctl; then
7689 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7690 elif test -x /usr/sbin/sysctl; then
7691 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7692 else
7693 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7694 fi
7695 # And add a safety zone
7696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7698 ;;
7699
7700 interix*)
7701 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7702 lt_cv_sys_max_cmd_len=196608
7703 ;;
7704
7705 osf*)
7706 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7707 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7708 # nice to cause kernel panics so lets avoid the loop below.
7709 # First set a reasonable default.
7710 lt_cv_sys_max_cmd_len=16384
7711 #
7712 if test -x /sbin/sysconfig; then
7713 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7714 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7715 esac
7716 fi
7717 ;;
7718 sco3.2v5*)
7719 lt_cv_sys_max_cmd_len=102400
7720 ;;
7721 sysv5* | sco5v6* | sysv4.2uw2*)
7722 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7723 if test -n "$kargmax"; then
7724 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7725 else
7726 lt_cv_sys_max_cmd_len=32768
7727 fi
7728 ;;
7729 *)
7730 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7731 if test -n "$lt_cv_sys_max_cmd_len"; then
7732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7734 else
7735 # Make teststring a little bigger before we do anything with it.
7736 # a 1K string should be a reasonable start.
7737 for i in 1 2 3 4 5 6 7 8 ; do
7738 teststring=$teststring$teststring
7739 done
7740 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7741 # If test is not a shell built-in, we'll probably end up computing a
7742 # maximum length that is only half of the actual maximum length, but
7743 # we can't tell.
7744 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7745 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7746 test $i != 17 # 1/2 MB should be enough
7747 do
7748 i=`expr $i + 1`
7749 teststring=$teststring$teststring
7750 done
7751 # Only check the string length outside the loop.
7752 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7753 teststring=
7754 # Add a significant safety factor because C++ compilers can tack on
7755 # massive amounts of additional arguments before passing them to the
7756 # linker. It appears as though 1/2 is a usable value.
7757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7758 fi
7759 ;;
7760 esac
7761
7762 fi
7763
7764 if test -n $lt_cv_sys_max_cmd_len ; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7766 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7769 $as_echo "none" >&6; }
7770 fi
7771 max_cmd_len=$lt_cv_sys_max_cmd_len
7772
7773
7774
7775
7776
7777
7778 : ${CP="cp -f"}
7779 : ${MV="mv -f"}
7780 : ${RM="rm -f"}
7781
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7783 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7784 # Try some XSI features
7785 xsi_shell=no
7786 ( _lt_dummy="a/b/c"
7787 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7788 = c,a/b,b/c, \
7789 && eval 'test $(( 1 + 1 )) -eq 2 \
7790 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7791 && xsi_shell=yes
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7793 $as_echo "$xsi_shell" >&6; }
7794
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7797 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7798 lt_shell_append=no
7799 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7800 >/dev/null 2>&1 \
7801 && lt_shell_append=yes
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7803 $as_echo "$lt_shell_append" >&6; }
7804
7805
7806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7807 lt_unset=unset
7808 else
7809 lt_unset=false
7810 fi
7811
7812
7813
7814
7815
7816 # test EBCDIC or ASCII
7817 case `echo X|tr X '\101'` in
7818 A) # ASCII based system
7819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7820 lt_SP2NL='tr \040 \012'
7821 lt_NL2SP='tr \015\012 \040\040'
7822 ;;
7823 *) # EBCDIC based system
7824 lt_SP2NL='tr \100 \n'
7825 lt_NL2SP='tr \r\n \100\100'
7826 ;;
7827 esac
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7838 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7839 if ${lt_cv_to_host_file_cmd+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 case $host in
7843 *-*-mingw* )
7844 case $build in
7845 *-*-mingw* ) # actually msys
7846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7847 ;;
7848 *-*-cygwin* )
7849 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7850 ;;
7851 * ) # otherwise, assume *nix
7852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7853 ;;
7854 esac
7855 ;;
7856 *-*-cygwin* )
7857 case $build in
7858 *-*-mingw* ) # actually msys
7859 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7860 ;;
7861 *-*-cygwin* )
7862 lt_cv_to_host_file_cmd=func_convert_file_noop
7863 ;;
7864 * ) # otherwise, assume *nix
7865 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7866 ;;
7867 esac
7868 ;;
7869 * ) # unhandled hosts (and "normal" native builds)
7870 lt_cv_to_host_file_cmd=func_convert_file_noop
7871 ;;
7872 esac
7873
7874 fi
7875
7876 to_host_file_cmd=$lt_cv_to_host_file_cmd
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7878 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7879
7880
7881
7882
7883
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7885 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7886 if ${lt_cv_to_tool_file_cmd+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 #assume ordinary cross tools, or native build.
7890 lt_cv_to_tool_file_cmd=func_convert_file_noop
7891 case $host in
7892 *-*-mingw* )
7893 case $build in
7894 *-*-mingw* ) # actually msys
7895 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7896 ;;
7897 esac
7898 ;;
7899 esac
7900
7901 fi
7902
7903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7905 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7906
7907
7908
7909
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7912 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7913 if ${lt_cv_ld_reload_flag+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 lt_cv_ld_reload_flag='-r'
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7919 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7920 reload_flag=$lt_cv_ld_reload_flag
7921 case $reload_flag in
7922 "" | " "*) ;;
7923 *) reload_flag=" $reload_flag" ;;
7924 esac
7925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7926 case $host_os in
7927 cygwin* | mingw* | pw32* | cegcc*)
7928 if test "$GCC" != yes; then
7929 reload_cmds=false
7930 fi
7931 ;;
7932 darwin*)
7933 if test "$GCC" = yes; then
7934 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7935 else
7936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7937 fi
7938 ;;
7939 esac
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 if test -n "$ac_tool_prefix"; then
7950 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7951 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_OBJDUMP+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$OBJDUMP"; then
7958 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 OBJDUMP=$ac_cv_prog_OBJDUMP
7978 if test -n "$OBJDUMP"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7980 $as_echo "$OBJDUMP" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987 fi
7988 if test -z "$ac_cv_prog_OBJDUMP"; then
7989 ac_ct_OBJDUMP=$OBJDUMP
7990 # Extract the first word of "objdump", so it can be a program name with args.
7991 set dummy objdump; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$ac_ct_OBJDUMP"; then
7998 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi
8016 fi
8017 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8018 if test -n "$ac_ct_OBJDUMP"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8020 $as_echo "$ac_ct_OBJDUMP" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026 if test "x$ac_ct_OBJDUMP" = x; then
8027 OBJDUMP="false"
8028 else
8029 case $cross_compiling:$ac_tool_warned in
8030 yes:)
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033 ac_tool_warned=yes ;;
8034 esac
8035 OBJDUMP=$ac_ct_OBJDUMP
8036 fi
8037 else
8038 OBJDUMP="$ac_cv_prog_OBJDUMP"
8039 fi
8040
8041 test -z "$OBJDUMP" && OBJDUMP=objdump
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8052 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8053 if ${lt_cv_deplibs_check_method+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 lt_cv_file_magic_cmd='$MAGIC_CMD'
8057 lt_cv_file_magic_test_file=
8058 lt_cv_deplibs_check_method='unknown'
8059 # Need to set the preceding variable on all platforms that support
8060 # interlibrary dependencies.
8061 # 'none' -- dependencies not supported.
8062 # `unknown' -- same as none, but documents that we really don't know.
8063 # 'pass_all' -- all dependencies passed with no checks.
8064 # 'test_compile' -- check by making test program.
8065 # 'file_magic [[regex]]' -- check by looking for files in library path
8066 # which responds to the $file_magic_cmd with a given extended regex.
8067 # If you have `file' or equivalent on your system and you're not sure
8068 # whether `pass_all' will *always* work, you probably want this one.
8069
8070 case $host_os in
8071 aix[4-9]*)
8072 lt_cv_deplibs_check_method=pass_all
8073 ;;
8074
8075 beos*)
8076 lt_cv_deplibs_check_method=pass_all
8077 ;;
8078
8079 bsdi[45]*)
8080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8081 lt_cv_file_magic_cmd='/usr/bin/file -L'
8082 lt_cv_file_magic_test_file=/shlib/libc.so
8083 ;;
8084
8085 cygwin*)
8086 # func_win32_libid is a shell function defined in ltmain.sh
8087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8088 lt_cv_file_magic_cmd='func_win32_libid'
8089 ;;
8090
8091 mingw* | pw32*)
8092 # Base MSYS/MinGW do not provide the 'file' command needed by
8093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8094 # unless we find 'file', for example because we are cross-compiling.
8095 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8096 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8098 lt_cv_file_magic_cmd='func_win32_libid'
8099 else
8100 # Keep this pattern in sync with the one in func_win32_libid.
8101 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8102 lt_cv_file_magic_cmd='$OBJDUMP -f'
8103 fi
8104 ;;
8105
8106 cegcc*)
8107 # use the weaker test based on 'objdump'. See mingw*.
8108 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8109 lt_cv_file_magic_cmd='$OBJDUMP -f'
8110 ;;
8111
8112 darwin* | rhapsody*)
8113 lt_cv_deplibs_check_method=pass_all
8114 ;;
8115
8116 freebsd* | dragonfly*)
8117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8118 case $host_cpu in
8119 i*86 )
8120 # Not sure whether the presence of OpenBSD here was a mistake.
8121 # Let's accept both of them until this is cleared up.
8122 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8123 lt_cv_file_magic_cmd=/usr/bin/file
8124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8125 ;;
8126 esac
8127 else
8128 lt_cv_deplibs_check_method=pass_all
8129 fi
8130 ;;
8131
8132 gnu*)
8133 lt_cv_deplibs_check_method=pass_all
8134 ;;
8135
8136 haiku*)
8137 lt_cv_deplibs_check_method=pass_all
8138 ;;
8139
8140 hpux10.20* | hpux11*)
8141 lt_cv_file_magic_cmd=/usr/bin/file
8142 case $host_cpu in
8143 ia64*)
8144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8146 ;;
8147 hppa*64*)
8148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8150 ;;
8151 *)
8152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8154 ;;
8155 esac
8156 ;;
8157
8158 interix[3-9]*)
8159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8161 ;;
8162
8163 irix5* | irix6* | nonstopux*)
8164 case $LD in
8165 *-32|*"-32 ") libmagic=32-bit;;
8166 *-n32|*"-n32 ") libmagic=N32;;
8167 *-64|*"-64 ") libmagic=64-bit;;
8168 *) libmagic=never-match;;
8169 esac
8170 lt_cv_deplibs_check_method=pass_all
8171 ;;
8172
8173 # This must be Linux ELF.
8174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8175 lt_cv_deplibs_check_method=pass_all
8176 ;;
8177
8178 netbsd*)
8179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8181 else
8182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8183 fi
8184 ;;
8185
8186 newos6*)
8187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8188 lt_cv_file_magic_cmd=/usr/bin/file
8189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8190 ;;
8191
8192 *nto* | *qnx*)
8193 lt_cv_deplibs_check_method=pass_all
8194 ;;
8195
8196 openbsd*)
8197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8199 else
8200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8201 fi
8202 ;;
8203
8204 osf3* | osf4* | osf5*)
8205 lt_cv_deplibs_check_method=pass_all
8206 ;;
8207
8208 rdos*)
8209 lt_cv_deplibs_check_method=pass_all
8210 ;;
8211
8212 solaris*)
8213 lt_cv_deplibs_check_method=pass_all
8214 ;;
8215
8216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8217 lt_cv_deplibs_check_method=pass_all
8218 ;;
8219
8220 sysv4 | sysv4.3*)
8221 case $host_vendor in
8222 motorola)
8223 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]'
8224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8225 ;;
8226 ncr)
8227 lt_cv_deplibs_check_method=pass_all
8228 ;;
8229 sequent)
8230 lt_cv_file_magic_cmd='/bin/file'
8231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8232 ;;
8233 sni)
8234 lt_cv_file_magic_cmd='/bin/file'
8235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8236 lt_cv_file_magic_test_file=/lib/libc.so
8237 ;;
8238 siemens)
8239 lt_cv_deplibs_check_method=pass_all
8240 ;;
8241 pc)
8242 lt_cv_deplibs_check_method=pass_all
8243 ;;
8244 esac
8245 ;;
8246
8247 tpf*)
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
8250 esac
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8254 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8255
8256 file_magic_glob=
8257 want_nocaseglob=no
8258 if test "$build" = "$host"; then
8259 case $host_os in
8260 mingw* | pw32*)
8261 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8262 want_nocaseglob=yes
8263 else
8264 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8265 fi
8266 ;;
8267 esac
8268 fi
8269
8270 file_magic_cmd=$lt_cv_file_magic_cmd
8271 deplibs_check_method=$lt_cv_deplibs_check_method
8272 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_DLLTOOL+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$DLLTOOL"; then
8304 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 DLLTOOL=$ac_cv_prog_DLLTOOL
8324 if test -n "$DLLTOOL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8326 $as_echo "$DLLTOOL" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_DLLTOOL"; then
8335 ac_ct_DLLTOOL=$DLLTOOL
8336 # Extract the first word of "dlltool", so it can be a program name with args.
8337 set dummy dlltool; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$ac_ct_DLLTOOL"; then
8344 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8364 if test -n "$ac_ct_DLLTOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8366 $as_echo "$ac_ct_DLLTOOL" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372 if test "x$ac_ct_DLLTOOL" = x; then
8373 DLLTOOL="false"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 DLLTOOL=$ac_ct_DLLTOOL
8382 fi
8383 else
8384 DLLTOOL="$ac_cv_prog_DLLTOOL"
8385 fi
8386
8387 test -z "$DLLTOOL" && DLLTOOL=dlltool
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8399 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8400 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 lt_cv_sharedlib_from_linklib_cmd='unknown'
8404
8405 case $host_os in
8406 cygwin* | mingw* | pw32* | cegcc*)
8407 # two different shell functions defined in ltmain.sh
8408 # decide which to use based on capabilities of $DLLTOOL
8409 case `$DLLTOOL --help 2>&1` in
8410 *--identify-strict*)
8411 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8412 ;;
8413 *)
8414 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8415 ;;
8416 esac
8417 ;;
8418 *)
8419 # fallback: assume linklib IS sharedlib
8420 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8421 ;;
8422 esac
8423
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8426 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8427 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8428 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8429
8430
8431
8432
8433
8434
8435
8436 if test -n "$ac_tool_prefix"; then
8437 for ac_prog in ar
8438 do
8439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_AR+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$AR"; then
8447 ac_cv_prog_AR="$AR" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460 done
8461 done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 AR=$ac_cv_prog_AR
8467 if test -n "$AR"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8469 $as_echo "$AR" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 test -n "$AR" && break
8477 done
8478 fi
8479 if test -z "$AR"; then
8480 ac_ct_AR=$AR
8481 for ac_prog in ar
8482 do
8483 # Extract the first word of "$ac_prog", so it can be a program name with args.
8484 set dummy $ac_prog; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$ac_ct_AR"; then
8491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_ac_ct_AR="$ac_prog"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8511 if test -n "$ac_ct_AR"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8513 $as_echo "$ac_ct_AR" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 test -n "$ac_ct_AR" && break
8521 done
8522
8523 if test "x$ac_ct_AR" = x; then
8524 AR="false"
8525 else
8526 case $cross_compiling:$ac_tool_warned in
8527 yes:)
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8530 ac_tool_warned=yes ;;
8531 esac
8532 AR=$ac_ct_AR
8533 fi
8534 fi
8535
8536 : ${AR=ar}
8537 : ${AR_FLAGS=cru}
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8550 $as_echo_n "checking for archiver @FILE support... " >&6; }
8551 if ${lt_cv_ar_at_file+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_ar_at_file=no
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557
8558 int
8559 main ()
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 echo conftest.$ac_objext > conftest.lst
8568 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8570 (eval $lt_ar_try) 2>&5
8571 ac_status=$?
8572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8573 test $ac_status = 0; }
8574 if test "$ac_status" -eq 0; then
8575 # Ensure the archiver fails upon bogus file names.
8576 rm -f conftest.$ac_objext libconftest.a
8577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8578 (eval $lt_ar_try) 2>&5
8579 ac_status=$?
8580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 test $ac_status = 0; }
8582 if test "$ac_status" -ne 0; then
8583 lt_cv_ar_at_file=@
8584 fi
8585 fi
8586 rm -f conftest.* libconftest.a
8587
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8593 $as_echo "$lt_cv_ar_at_file" >&6; }
8594
8595 if test "x$lt_cv_ar_at_file" = xno; then
8596 archiver_list_spec=
8597 else
8598 archiver_list_spec=$lt_cv_ar_at_file
8599 fi
8600
8601
8602
8603
8604
8605
8606
8607 if test -n "$ac_tool_prefix"; then
8608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8609 set dummy ${ac_tool_prefix}strip; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_prog_STRIP+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 if test -n "$STRIP"; then
8616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8617 else
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629 done
8630 done
8631 IFS=$as_save_IFS
8632
8633 fi
8634 fi
8635 STRIP=$ac_cv_prog_STRIP
8636 if test -n "$STRIP"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8638 $as_echo "$STRIP" >&6; }
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643
8644
8645 fi
8646 if test -z "$ac_cv_prog_STRIP"; then
8647 ac_ct_STRIP=$STRIP
8648 # Extract the first word of "strip", so it can be a program name with args.
8649 set dummy strip; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test -n "$ac_ct_STRIP"; then
8656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_ac_ct_STRIP="strip"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669 done
8670 done
8671 IFS=$as_save_IFS
8672
8673 fi
8674 fi
8675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8676 if test -n "$ac_ct_STRIP"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8678 $as_echo "$ac_ct_STRIP" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684 if test "x$ac_ct_STRIP" = x; then
8685 STRIP=":"
8686 else
8687 case $cross_compiling:$ac_tool_warned in
8688 yes:)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8691 ac_tool_warned=yes ;;
8692 esac
8693 STRIP=$ac_ct_STRIP
8694 fi
8695 else
8696 STRIP="$ac_cv_prog_STRIP"
8697 fi
8698
8699 test -z "$STRIP" && STRIP=:
8700
8701
8702
8703
8704
8705
8706 if test -n "$ac_tool_prefix"; then
8707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if ${ac_cv_prog_RANLIB+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 if test -n "$RANLIB"; then
8715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8727 fi
8728 done
8729 done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 RANLIB=$ac_cv_prog_RANLIB
8735 if test -n "$RANLIB"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8737 $as_echo "$RANLIB" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8741 fi
8742
8743
8744 fi
8745 if test -z "$ac_cv_prog_RANLIB"; then
8746 ac_ct_RANLIB=$RANLIB
8747 # Extract the first word of "ranlib", so it can be a program name with args.
8748 set dummy ranlib; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 if test -n "$ac_ct_RANLIB"; then
8755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_prog_ac_ct_RANLIB="ranlib"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768 done
8769 done
8770 IFS=$as_save_IFS
8771
8772 fi
8773 fi
8774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8775 if test -n "$ac_ct_RANLIB"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8777 $as_echo "$ac_ct_RANLIB" >&6; }
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782
8783 if test "x$ac_ct_RANLIB" = x; then
8784 RANLIB=":"
8785 else
8786 case $cross_compiling:$ac_tool_warned in
8787 yes:)
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8790 ac_tool_warned=yes ;;
8791 esac
8792 RANLIB=$ac_ct_RANLIB
8793 fi
8794 else
8795 RANLIB="$ac_cv_prog_RANLIB"
8796 fi
8797
8798 test -z "$RANLIB" && RANLIB=:
8799
8800
8801
8802
8803
8804
8805 # Determine commands to create old-style static archives.
8806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8807 old_postinstall_cmds='chmod 644 $oldlib'
8808 old_postuninstall_cmds=
8809
8810 if test -n "$RANLIB"; then
8811 case $host_os in
8812 openbsd*)
8813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8814 ;;
8815 *)
8816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8817 ;;
8818 esac
8819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8820 fi
8821
8822 case $host_os in
8823 darwin*)
8824 lock_old_archive_extraction=yes ;;
8825 *)
8826 lock_old_archive_extraction=no ;;
8827 esac
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849 for ac_prog in gawk mawk nawk awk
8850 do
8851 # Extract the first word of "$ac_prog", so it can be a program name with args.
8852 set dummy $ac_prog; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_prog_AWK+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 if test -n "$AWK"; then
8859 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8860 else
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
8866 for ac_exec_ext in '' $ac_executable_extensions; do
8867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8868 ac_cv_prog_AWK="$ac_prog"
8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8870 break 2
8871 fi
8872 done
8873 done
8874 IFS=$as_save_IFS
8875
8876 fi
8877 fi
8878 AWK=$ac_cv_prog_AWK
8879 if test -n "$AWK"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8881 $as_echo "$AWK" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886
8887
8888 test -n "$AWK" && break
8889 done
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 # If no C compiler was specified, use CC.
8910 LTCC=${LTCC-"$CC"}
8911
8912 # If no C compiler flags were specified, use CFLAGS.
8913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8914
8915 # Allow CC to be a program name with arguments.
8916 compiler=$CC
8917
8918
8919 # Check for command to grab the raw symbol name followed by C symbol from nm.
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8921 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8922 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925
8926 # These are sane defaults that work on at least a few old systems.
8927 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8928
8929 # Character class describing NM global symbol codes.
8930 symcode='[BCDEGRST]'
8931
8932 # Regexp to match symbols that can be accessed directly from C.
8933 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8934
8935 # Define system-specific variables.
8936 case $host_os in
8937 aix*)
8938 symcode='[BCDT]'
8939 ;;
8940 cygwin* | mingw* | pw32* | cegcc*)
8941 symcode='[ABCDGISTW]'
8942 ;;
8943 hpux*)
8944 if test "$host_cpu" = ia64; then
8945 symcode='[ABCDEGRST]'
8946 fi
8947 ;;
8948 irix* | nonstopux*)
8949 symcode='[BCDEGRST]'
8950 ;;
8951 osf*)
8952 symcode='[BCDEGQRST]'
8953 ;;
8954 solaris*)
8955 symcode='[BDRT]'
8956 ;;
8957 sco3.2v5*)
8958 symcode='[DT]'
8959 ;;
8960 sysv4.2uw2*)
8961 symcode='[DT]'
8962 ;;
8963 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8964 symcode='[ABDT]'
8965 ;;
8966 sysv4)
8967 symcode='[DFNSTU]'
8968 ;;
8969 esac
8970
8971 # If we're using GNU nm, then use its standard symbol codes.
8972 case `$NM -V 2>&1` in
8973 *GNU* | *'with BFD'*)
8974 symcode='[ABCDGIRSTW]' ;;
8975 esac
8976
8977 # Transform an extracted symbol line into a proper C declaration.
8978 # Some systems (esp. on ia64) link data and code symbols differently,
8979 # so use this general approach.
8980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8981
8982 # Transform an extracted symbol line into symbol name and symbol address
8983 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8984 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8985
8986 # Handle CRLF in mingw tool chain
8987 opt_cr=
8988 case $build_os in
8989 mingw*)
8990 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8991 ;;
8992 esac
8993
8994 # Try without a prefix underscore, then with it.
8995 for ac_symprfx in "" "_"; do
8996
8997 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8998 symxfrm="\\1 $ac_symprfx\\2 \\2"
8999
9000 # Write the raw and C identifiers.
9001 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9002 # Fake it for dumpbin and say T for any non-static function
9003 # and D for any global variable.
9004 # Also find C++ and __fastcall symbols from MSVC++,
9005 # which start with @ or ?.
9006 lt_cv_sys_global_symbol_pipe="$AWK '"\
9007 " {last_section=section; section=\$ 3};"\
9008 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9009 " \$ 0!~/External *\|/{next};"\
9010 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9011 " {if(hide[section]) next};"\
9012 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9013 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9014 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9015 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9016 " ' prfx=^$ac_symprfx"
9017 else
9018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9019 fi
9020 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9021
9022 # Check to see that the pipe works correctly.
9023 pipe_works=no
9024
9025 rm -f conftest*
9026 cat > conftest.$ac_ext <<_LT_EOF
9027 #ifdef __cplusplus
9028 extern "C" {
9029 #endif
9030 char nm_test_var;
9031 void nm_test_func(void);
9032 void nm_test_func(void){}
9033 #ifdef __cplusplus
9034 }
9035 #endif
9036 int main(){nm_test_var='a';nm_test_func();return(0);}
9037 _LT_EOF
9038
9039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9040 (eval $ac_compile) 2>&5
9041 ac_status=$?
9042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9043 test $ac_status = 0; }; then
9044 # Now try to grab the symbols.
9045 nlist=conftest.nm
9046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9047 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9048 ac_status=$?
9049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9050 test $ac_status = 0; } && test -s "$nlist"; then
9051 # Try sorting and uniquifying the output.
9052 if sort "$nlist" | uniq > "$nlist"T; then
9053 mv -f "$nlist"T "$nlist"
9054 else
9055 rm -f "$nlist"T
9056 fi
9057
9058 # Make sure that we snagged all the symbols we need.
9059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9060 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9061 cat <<_LT_EOF > conftest.$ac_ext
9062 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9063 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9064 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9065 relocations are performed -- see ld's documentation on pseudo-relocs. */
9066 # define LT_DLSYM_CONST
9067 #elif defined(__osf__)
9068 /* This system does not cope well with relocations in const data. */
9069 # define LT_DLSYM_CONST
9070 #else
9071 # define LT_DLSYM_CONST const
9072 #endif
9073
9074 #ifdef __cplusplus
9075 extern "C" {
9076 #endif
9077
9078 _LT_EOF
9079 # Now generate the symbol file.
9080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9081
9082 cat <<_LT_EOF >> conftest.$ac_ext
9083
9084 /* The mapping between symbol names and symbols. */
9085 LT_DLSYM_CONST struct {
9086 const char *name;
9087 void *address;
9088 }
9089 lt__PROGRAM__LTX_preloaded_symbols[] =
9090 {
9091 { "@PROGRAM@", (void *) 0 },
9092 _LT_EOF
9093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9094 cat <<\_LT_EOF >> conftest.$ac_ext
9095 {0, (void *) 0}
9096 };
9097
9098 /* This works around a problem in FreeBSD linker */
9099 #ifdef FREEBSD_WORKAROUND
9100 static const void *lt_preloaded_setup() {
9101 return lt__PROGRAM__LTX_preloaded_symbols;
9102 }
9103 #endif
9104
9105 #ifdef __cplusplus
9106 }
9107 #endif
9108 _LT_EOF
9109 # Now try linking the two files.
9110 mv conftest.$ac_objext conftstm.$ac_objext
9111 lt_globsym_save_LIBS=$LIBS
9112 lt_globsym_save_CFLAGS=$CFLAGS
9113 LIBS="conftstm.$ac_objext"
9114 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9116 (eval $ac_link) 2>&5
9117 ac_status=$?
9118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9119 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9120 pipe_works=yes
9121 fi
9122 LIBS=$lt_globsym_save_LIBS
9123 CFLAGS=$lt_globsym_save_CFLAGS
9124 else
9125 echo "cannot find nm_test_func in $nlist" >&5
9126 fi
9127 else
9128 echo "cannot find nm_test_var in $nlist" >&5
9129 fi
9130 else
9131 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9132 fi
9133 else
9134 echo "$progname: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9136 fi
9137 rm -rf conftest* conftst*
9138
9139 # Do not use the global_symbol_pipe unless it works.
9140 if test "$pipe_works" = yes; then
9141 break
9142 else
9143 lt_cv_sys_global_symbol_pipe=
9144 fi
9145 done
9146
9147 fi
9148
9149 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9150 lt_cv_sys_global_symbol_to_cdecl=
9151 fi
9152 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9154 $as_echo "failed" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9157 $as_echo "ok" >&6; }
9158 fi
9159
9160 # Response file support.
9161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9162 nm_file_list_spec='@'
9163 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9164 nm_file_list_spec='@'
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9194 $as_echo_n "checking for sysroot... " >&6; }
9195
9196 # Check whether --with-sysroot was given.
9197 if test "${with_sysroot+set}" = set; then :
9198 withval=$with_sysroot;
9199 else
9200 with_sysroot=no
9201 fi
9202
9203
9204 lt_sysroot=
9205 case ${with_sysroot} in #(
9206 yes)
9207 if test "$GCC" = yes; then
9208 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9209 fi
9210 ;; #(
9211 /*)
9212 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9213 ;; #(
9214 no|'')
9215 ;; #(
9216 *)
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9218 $as_echo "${with_sysroot}" >&6; }
9219 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9220 ;;
9221 esac
9222
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9224 $as_echo "${lt_sysroot:-no}" >&6; }
9225
9226
9227
9228
9229
9230 # Check whether --enable-libtool-lock was given.
9231 if test "${enable_libtool_lock+set}" = set; then :
9232 enableval=$enable_libtool_lock;
9233 fi
9234
9235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9236
9237 # Some flags need to be propagated to the compiler or linker for good
9238 # libtool support.
9239 case $host in
9240 ia64-*-hpux*)
9241 # Find out which ABI we are using.
9242 echo 'int i;' > conftest.$ac_ext
9243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9244 (eval $ac_compile) 2>&5
9245 ac_status=$?
9246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9247 test $ac_status = 0; }; then
9248 case `/usr/bin/file conftest.$ac_objext` in
9249 *ELF-32*)
9250 HPUX_IA64_MODE="32"
9251 ;;
9252 *ELF-64*)
9253 HPUX_IA64_MODE="64"
9254 ;;
9255 esac
9256 fi
9257 rm -rf conftest*
9258 ;;
9259 *-*-irix6*)
9260 # Find out which ABI we are using.
9261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9263 (eval $ac_compile) 2>&5
9264 ac_status=$?
9265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9266 test $ac_status = 0; }; then
9267 if test "$lt_cv_prog_gnu_ld" = yes; then
9268 case `/usr/bin/file conftest.$ac_objext` in
9269 *32-bit*)
9270 LD="${LD-ld} -melf32bsmip"
9271 ;;
9272 *N32*)
9273 LD="${LD-ld} -melf32bmipn32"
9274 ;;
9275 *64-bit*)
9276 LD="${LD-ld} -melf64bmip"
9277 ;;
9278 esac
9279 else
9280 case `/usr/bin/file conftest.$ac_objext` in
9281 *32-bit*)
9282 LD="${LD-ld} -32"
9283 ;;
9284 *N32*)
9285 LD="${LD-ld} -n32"
9286 ;;
9287 *64-bit*)
9288 LD="${LD-ld} -64"
9289 ;;
9290 esac
9291 fi
9292 fi
9293 rm -rf conftest*
9294 ;;
9295
9296 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9297 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9298 # Find out which ABI we are using.
9299 echo 'int i;' > conftest.$ac_ext
9300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9301 (eval $ac_compile) 2>&5
9302 ac_status=$?
9303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304 test $ac_status = 0; }; then
9305 case `/usr/bin/file conftest.o` in
9306 *32-bit*)
9307 case $host in
9308 x86_64-*kfreebsd*-gnu)
9309 LD="${LD-ld} -m elf_i386_fbsd"
9310 ;;
9311 x86_64-*linux*)
9312 LD="${LD-ld} -m elf_i386"
9313 ;;
9314 ppc64-*linux*|powerpc64-*linux*)
9315 LD="${LD-ld} -m elf32ppclinux"
9316 ;;
9317 s390x-*linux*)
9318 LD="${LD-ld} -m elf_s390"
9319 ;;
9320 sparc64-*linux*)
9321 LD="${LD-ld} -m elf32_sparc"
9322 ;;
9323 esac
9324 ;;
9325 *64-bit*)
9326 case $host in
9327 x86_64-*kfreebsd*-gnu)
9328 LD="${LD-ld} -m elf_x86_64_fbsd"
9329 ;;
9330 x86_64-*linux*)
9331 LD="${LD-ld} -m elf_x86_64"
9332 ;;
9333 ppc*-*linux*|powerpc*-*linux*)
9334 LD="${LD-ld} -m elf64ppc"
9335 ;;
9336 s390*-*linux*|s390*-*tpf*)
9337 LD="${LD-ld} -m elf64_s390"
9338 ;;
9339 sparc*-*linux*)
9340 LD="${LD-ld} -m elf64_sparc"
9341 ;;
9342 esac
9343 ;;
9344 esac
9345 fi
9346 rm -rf conftest*
9347 ;;
9348
9349 *-*-sco3.2v5*)
9350 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9351 SAVE_CFLAGS="$CFLAGS"
9352 CFLAGS="$CFLAGS -belf"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9354 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9355 if ${lt_cv_cc_needs_belf+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 ac_ext=c
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 int
9368 main ()
9369 {
9370
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 lt_cv_cc_needs_belf=yes
9377 else
9378 lt_cv_cc_needs_belf=no
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 ac_ext=c
9383 ac_cpp='$CPP $CPPFLAGS'
9384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9387
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9390 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9393 CFLAGS="$SAVE_CFLAGS"
9394 fi
9395 ;;
9396 sparc*-*solaris*)
9397 # Find out which ABI we are using.
9398 echo 'int i;' > conftest.$ac_ext
9399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9400 (eval $ac_compile) 2>&5
9401 ac_status=$?
9402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9403 test $ac_status = 0; }; then
9404 case `/usr/bin/file conftest.o` in
9405 *64-bit*)
9406 case $lt_cv_prog_gnu_ld in
9407 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9408 *)
9409 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9410 LD="${LD-ld} -64"
9411 fi
9412 ;;
9413 esac
9414 ;;
9415 esac
9416 fi
9417 rm -rf conftest*
9418 ;;
9419 esac
9420
9421 need_locks="$enable_libtool_lock"
9422
9423 if test -n "$ac_tool_prefix"; then
9424 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9425 set dummy ${ac_tool_prefix}mt; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 if test -n "$MANIFEST_TOOL"; then
9432 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9433 else
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9436 do
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9444 fi
9445 done
9446 done
9447 IFS=$as_save_IFS
9448
9449 fi
9450 fi
9451 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9452 if test -n "$MANIFEST_TOOL"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9454 $as_echo "$MANIFEST_TOOL" >&6; }
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9458 fi
9459
9460
9461 fi
9462 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9463 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9464 # Extract the first word of "mt", so it can be a program name with args.
9465 set dummy mt; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 if test -n "$ac_ct_MANIFEST_TOOL"; then
9472 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9473 else
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9476 do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9484 fi
9485 done
9486 done
9487 IFS=$as_save_IFS
9488
9489 fi
9490 fi
9491 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9492 if test -n "$ac_ct_MANIFEST_TOOL"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9494 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 fi
9499
9500 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9501 MANIFEST_TOOL=":"
9502 else
9503 case $cross_compiling:$ac_tool_warned in
9504 yes:)
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507 ac_tool_warned=yes ;;
9508 esac
9509 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9510 fi
9511 else
9512 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9513 fi
9514
9515 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9517 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9518 if ${lt_cv_path_mainfest_tool+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 lt_cv_path_mainfest_tool=no
9522 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9523 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9524 cat conftest.err >&5
9525 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9526 lt_cv_path_mainfest_tool=yes
9527 fi
9528 rm -f conftest*
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9531 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9532 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9533 MANIFEST_TOOL=:
9534 fi
9535
9536
9537
9538
9539
9540
9541 case $host_os in
9542 rhapsody* | darwin*)
9543 if test -n "$ac_tool_prefix"; then
9544 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9545 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 if test -n "$DSYMUTIL"; then
9552 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9553 else
9554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in $PATH
9556 do
9557 IFS=$as_save_IFS
9558 test -z "$as_dir" && as_dir=.
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563 break 2
9564 fi
9565 done
9566 done
9567 IFS=$as_save_IFS
9568
9569 fi
9570 fi
9571 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9572 if test -n "$DSYMUTIL"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9574 $as_echo "$DSYMUTIL" >&6; }
9575 else
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9578 fi
9579
9580
9581 fi
9582 if test -z "$ac_cv_prog_DSYMUTIL"; then
9583 ac_ct_DSYMUTIL=$DSYMUTIL
9584 # Extract the first word of "dsymutil", so it can be a program name with args.
9585 set dummy dsymutil; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 if test -n "$ac_ct_DSYMUTIL"; then
9592 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9593 else
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9596 do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605 done
9606 done
9607 IFS=$as_save_IFS
9608
9609 fi
9610 fi
9611 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9612 if test -n "$ac_ct_DSYMUTIL"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9614 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619
9620 if test "x$ac_ct_DSYMUTIL" = x; then
9621 DSYMUTIL=":"
9622 else
9623 case $cross_compiling:$ac_tool_warned in
9624 yes:)
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9627 ac_tool_warned=yes ;;
9628 esac
9629 DSYMUTIL=$ac_ct_DSYMUTIL
9630 fi
9631 else
9632 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9633 fi
9634
9635 if test -n "$ac_tool_prefix"; then
9636 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9637 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_prog_NMEDIT+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test -n "$NMEDIT"; then
9644 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9645 else
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9648 do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657 done
9658 done
9659 IFS=$as_save_IFS
9660
9661 fi
9662 fi
9663 NMEDIT=$ac_cv_prog_NMEDIT
9664 if test -n "$NMEDIT"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9666 $as_echo "$NMEDIT" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9670 fi
9671
9672
9673 fi
9674 if test -z "$ac_cv_prog_NMEDIT"; then
9675 ac_ct_NMEDIT=$NMEDIT
9676 # Extract the first word of "nmedit", so it can be a program name with args.
9677 set dummy nmedit; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 if test -n "$ac_ct_NMEDIT"; then
9684 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9704 if test -n "$ac_ct_NMEDIT"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9706 $as_echo "$ac_ct_NMEDIT" >&6; }
9707 else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711
9712 if test "x$ac_ct_NMEDIT" = x; then
9713 NMEDIT=":"
9714 else
9715 case $cross_compiling:$ac_tool_warned in
9716 yes:)
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9719 ac_tool_warned=yes ;;
9720 esac
9721 NMEDIT=$ac_ct_NMEDIT
9722 fi
9723 else
9724 NMEDIT="$ac_cv_prog_NMEDIT"
9725 fi
9726
9727 if test -n "$ac_tool_prefix"; then
9728 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9729 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_prog_LIPO+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 if test -n "$LIPO"; then
9736 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9737 else
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9740 do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749 done
9750 done
9751 IFS=$as_save_IFS
9752
9753 fi
9754 fi
9755 LIPO=$ac_cv_prog_LIPO
9756 if test -n "$LIPO"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9758 $as_echo "$LIPO" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9762 fi
9763
9764
9765 fi
9766 if test -z "$ac_cv_prog_LIPO"; then
9767 ac_ct_LIPO=$LIPO
9768 # Extract the first word of "lipo", so it can be a program name with args.
9769 set dummy lipo; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 if test -n "$ac_ct_LIPO"; then
9776 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9777 else
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9780 do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785 ac_cv_prog_ac_ct_LIPO="lipo"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9788 fi
9789 done
9790 done
9791 IFS=$as_save_IFS
9792
9793 fi
9794 fi
9795 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9796 if test -n "$ac_ct_LIPO"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9798 $as_echo "$ac_ct_LIPO" >&6; }
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9802 fi
9803
9804 if test "x$ac_ct_LIPO" = x; then
9805 LIPO=":"
9806 else
9807 case $cross_compiling:$ac_tool_warned in
9808 yes:)
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9811 ac_tool_warned=yes ;;
9812 esac
9813 LIPO=$ac_ct_LIPO
9814 fi
9815 else
9816 LIPO="$ac_cv_prog_LIPO"
9817 fi
9818
9819 if test -n "$ac_tool_prefix"; then
9820 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9821 set dummy ${ac_tool_prefix}otool; ac_word=$2
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 $as_echo_n "checking for $ac_word... " >&6; }
9824 if ${ac_cv_prog_OTOOL+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 if test -n "$OTOOL"; then
9828 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9829 else
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH
9832 do
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9840 fi
9841 done
9842 done
9843 IFS=$as_save_IFS
9844
9845 fi
9846 fi
9847 OTOOL=$ac_cv_prog_OTOOL
9848 if test -n "$OTOOL"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9850 $as_echo "$OTOOL" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9854 fi
9855
9856
9857 fi
9858 if test -z "$ac_cv_prog_OTOOL"; then
9859 ac_ct_OTOOL=$OTOOL
9860 # Extract the first word of "otool", so it can be a program name with args.
9861 set dummy otool; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 if test -n "$ac_ct_OTOOL"; then
9868 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_prog_ac_ct_OTOOL="otool"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881 done
9882 done
9883 IFS=$as_save_IFS
9884
9885 fi
9886 fi
9887 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9888 if test -n "$ac_ct_OTOOL"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9890 $as_echo "$ac_ct_OTOOL" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896 if test "x$ac_ct_OTOOL" = x; then
9897 OTOOL=":"
9898 else
9899 case $cross_compiling:$ac_tool_warned in
9900 yes:)
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9903 ac_tool_warned=yes ;;
9904 esac
9905 OTOOL=$ac_ct_OTOOL
9906 fi
9907 else
9908 OTOOL="$ac_cv_prog_OTOOL"
9909 fi
9910
9911 if test -n "$ac_tool_prefix"; then
9912 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9913 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_prog_OTOOL64+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 if test -n "$OTOOL64"; then
9920 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9924 do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9929 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933 done
9934 done
9935 IFS=$as_save_IFS
9936
9937 fi
9938 fi
9939 OTOOL64=$ac_cv_prog_OTOOL64
9940 if test -n "$OTOOL64"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9942 $as_echo "$OTOOL64" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947
9948
9949 fi
9950 if test -z "$ac_cv_prog_OTOOL64"; then
9951 ac_ct_OTOOL64=$OTOOL64
9952 # Extract the first word of "otool64", so it can be a program name with args.
9953 set dummy otool64; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 if test -n "$ac_ct_OTOOL64"; then
9960 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_prog_ac_ct_OTOOL64="otool64"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9972 fi
9973 done
9974 done
9975 IFS=$as_save_IFS
9976
9977 fi
9978 fi
9979 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9980 if test -n "$ac_ct_OTOOL64"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9982 $as_echo "$ac_ct_OTOOL64" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987
9988 if test "x$ac_ct_OTOOL64" = x; then
9989 OTOOL64=":"
9990 else
9991 case $cross_compiling:$ac_tool_warned in
9992 yes:)
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9995 ac_tool_warned=yes ;;
9996 esac
9997 OTOOL64=$ac_ct_OTOOL64
9998 fi
9999 else
10000 OTOOL64="$ac_cv_prog_OTOOL64"
10001 fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10030 $as_echo_n "checking for -single_module linker flag... " >&6; }
10031 if ${lt_cv_apple_cc_single_mod+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 lt_cv_apple_cc_single_mod=no
10035 if test -z "${LT_MULTI_MODULE}"; then
10036 # By default we will add the -single_module flag. You can override
10037 # by either setting the environment variable LT_MULTI_MODULE
10038 # non-empty at configure time, or by adding -multi_module to the
10039 # link flags.
10040 rm -rf libconftest.dylib*
10041 echo "int foo(void){return 1;}" > conftest.c
10042 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10043 -dynamiclib -Wl,-single_module conftest.c" >&5
10044 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10045 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10046 _lt_result=$?
10047 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10048 lt_cv_apple_cc_single_mod=yes
10049 else
10050 cat conftest.err >&5
10051 fi
10052 rm -rf libconftest.dylib*
10053 rm -f conftest.*
10054 fi
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10057 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10059 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10060 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 lt_cv_ld_exported_symbols_list=no
10064 save_LDFLAGS=$LDFLAGS
10065 echo "_main" > conftest.sym
10066 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069
10070 int
10071 main ()
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"; then :
10079 lt_cv_ld_exported_symbols_list=yes
10080 else
10081 lt_cv_ld_exported_symbols_list=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LDFLAGS="$save_LDFLAGS"
10086
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10089 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10091 $as_echo_n "checking for -force_load linker flag... " >&6; }
10092 if ${lt_cv_ld_force_load+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 lt_cv_ld_force_load=no
10096 cat > conftest.c << _LT_EOF
10097 int forced_loaded() { return 2;}
10098 _LT_EOF
10099 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10100 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10101 echo "$AR cru libconftest.a conftest.o" >&5
10102 $AR cru libconftest.a conftest.o 2>&5
10103 echo "$RANLIB libconftest.a" >&5
10104 $RANLIB libconftest.a 2>&5
10105 cat > conftest.c << _LT_EOF
10106 int main() { return 0;}
10107 _LT_EOF
10108 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10109 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10110 _lt_result=$?
10111 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10112 lt_cv_ld_force_load=yes
10113 else
10114 cat conftest.err >&5
10115 fi
10116 rm -f conftest.err libconftest.a conftest conftest.c
10117 rm -rf conftest.dSYM
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10121 $as_echo "$lt_cv_ld_force_load" >&6; }
10122 case $host_os in
10123 rhapsody* | darwin1.[012])
10124 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10125 darwin1.*)
10126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10127 darwin*) # darwin 5.x on
10128 # if running on 10.5 or later, the deployment target defaults
10129 # to the OS version, if on x86, and 10.4, the deployment
10130 # target defaults to 10.4. Don't you love it?
10131 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10132 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10134 10.[012]*)
10135 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10136 10.*)
10137 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10138 esac
10139 ;;
10140 esac
10141 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10142 _lt_dar_single_mod='$single_module'
10143 fi
10144 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10145 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10146 else
10147 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10148 fi
10149 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10150 _lt_dsymutil='~$DSYMUTIL $lib || :'
10151 else
10152 _lt_dsymutil=
10153 fi
10154 ;;
10155 esac
10156
10157 ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10163 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10164 # On Suns, sometimes $CPP names a directory.
10165 if test -n "$CPP" && test -d "$CPP"; then
10166 CPP=
10167 fi
10168 if test -z "$CPP"; then
10169 if ${ac_cv_prog_CPP+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 # Double quotes because CPP needs to be expanded
10173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10174 do
10175 ac_preproc_ok=false
10176 for ac_c_preproc_warn_flag in '' yes
10177 do
10178 # Use a header file that comes with gcc, so configuring glibc
10179 # with a fresh cross-compiler works.
10180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10181 # <limits.h> exists even on freestanding compilers.
10182 # On the NeXT, cc -E runs the code through the compiler's parser,
10183 # not just through cpp. "Syntax error" is here to catch this case.
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 #ifdef __STDC__
10187 # include <limits.h>
10188 #else
10189 # include <assert.h>
10190 #endif
10191 Syntax error
10192 _ACEOF
10193 if ac_fn_c_try_cpp "$LINENO"; then :
10194
10195 else
10196 # Broken: fails on valid input.
10197 continue
10198 fi
10199 rm -f conftest.err conftest.i conftest.$ac_ext
10200
10201 # OK, works on sane cases. Now check whether nonexistent headers
10202 # can be detected and how.
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 #include <ac_nonexistent.h>
10206 _ACEOF
10207 if ac_fn_c_try_cpp "$LINENO"; then :
10208 # Broken: success on invalid input.
10209 continue
10210 else
10211 # Passes both tests.
10212 ac_preproc_ok=:
10213 break
10214 fi
10215 rm -f conftest.err conftest.i conftest.$ac_ext
10216
10217 done
10218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10219 rm -f conftest.i conftest.err conftest.$ac_ext
10220 if $ac_preproc_ok; then :
10221 break
10222 fi
10223
10224 done
10225 ac_cv_prog_CPP=$CPP
10226
10227 fi
10228 CPP=$ac_cv_prog_CPP
10229 else
10230 ac_cv_prog_CPP=$CPP
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10233 $as_echo "$CPP" >&6; }
10234 ac_preproc_ok=false
10235 for ac_c_preproc_warn_flag in '' yes
10236 do
10237 # Use a header file that comes with gcc, so configuring glibc
10238 # with a fresh cross-compiler works.
10239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240 # <limits.h> exists even on freestanding compilers.
10241 # On the NeXT, cc -E runs the code through the compiler's parser,
10242 # not just through cpp. "Syntax error" is here to catch this case.
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #ifdef __STDC__
10246 # include <limits.h>
10247 #else
10248 # include <assert.h>
10249 #endif
10250 Syntax error
10251 _ACEOF
10252 if ac_fn_c_try_cpp "$LINENO"; then :
10253
10254 else
10255 # Broken: fails on valid input.
10256 continue
10257 fi
10258 rm -f conftest.err conftest.i conftest.$ac_ext
10259
10260 # OK, works on sane cases. Now check whether nonexistent headers
10261 # can be detected and how.
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <ac_nonexistent.h>
10265 _ACEOF
10266 if ac_fn_c_try_cpp "$LINENO"; then :
10267 # Broken: success on invalid input.
10268 continue
10269 else
10270 # Passes both tests.
10271 ac_preproc_ok=:
10272 break
10273 fi
10274 rm -f conftest.err conftest.i conftest.$ac_ext
10275
10276 done
10277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10278 rm -f conftest.i conftest.err conftest.$ac_ext
10279 if $ac_preproc_ok; then :
10280
10281 else
10282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10284 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10285 See \`config.log' for more details" "$LINENO" 5; }
10286 fi
10287
10288 ac_ext=c
10289 ac_cpp='$CPP $CPPFLAGS'
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293
10294
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10296 $as_echo_n "checking for ANSI C header files... " >&6; }
10297 if ${ac_cv_header_stdc+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 #include <stdlib.h>
10303 #include <stdarg.h>
10304 #include <string.h>
10305 #include <float.h>
10306
10307 int
10308 main ()
10309 {
10310
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 ac_cv_header_stdc=yes
10317 else
10318 ac_cv_header_stdc=no
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321
10322 if test $ac_cv_header_stdc = yes; then
10323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <string.h>
10327
10328 _ACEOF
10329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10330 $EGREP "memchr" >/dev/null 2>&1; then :
10331
10332 else
10333 ac_cv_header_stdc=no
10334 fi
10335 rm -f conftest*
10336
10337 fi
10338
10339 if test $ac_cv_header_stdc = yes; then
10340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #include <stdlib.h>
10344
10345 _ACEOF
10346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10347 $EGREP "free" >/dev/null 2>&1; then :
10348
10349 else
10350 ac_cv_header_stdc=no
10351 fi
10352 rm -f conftest*
10353
10354 fi
10355
10356 if test $ac_cv_header_stdc = yes; then
10357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10358 if test "$cross_compiling" = yes; then :
10359 :
10360 else
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 #include <ctype.h>
10364 #include <stdlib.h>
10365 #if ((' ' & 0x0FF) == 0x020)
10366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10368 #else
10369 # define ISLOWER(c) \
10370 (('a' <= (c) && (c) <= 'i') \
10371 || ('j' <= (c) && (c) <= 'r') \
10372 || ('s' <= (c) && (c) <= 'z'))
10373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10374 #endif
10375
10376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10377 int
10378 main ()
10379 {
10380 int i;
10381 for (i = 0; i < 256; i++)
10382 if (XOR (islower (i), ISLOWER (i))
10383 || toupper (i) != TOUPPER (i))
10384 return 2;
10385 return 0;
10386 }
10387 _ACEOF
10388 if ac_fn_c_try_run "$LINENO"; then :
10389
10390 else
10391 ac_cv_header_stdc=no
10392 fi
10393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10394 conftest.$ac_objext conftest.beam conftest.$ac_ext
10395 fi
10396
10397 fi
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10400 $as_echo "$ac_cv_header_stdc" >&6; }
10401 if test $ac_cv_header_stdc = yes; then
10402
10403 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10404
10405 fi
10406
10407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10409 inttypes.h stdint.h unistd.h
10410 do :
10411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10412 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10413 "
10414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10415 cat >>confdefs.h <<_ACEOF
10416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10417 _ACEOF
10418
10419 fi
10420
10421 done
10422
10423
10424 for ac_header in dlfcn.h
10425 do :
10426 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10427 "
10428 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_DLFCN_H 1
10431 _ACEOF
10432
10433 fi
10434
10435 done
10436
10437
10438
10439 func_stripname_cnf ()
10440 {
10441 case ${2} in
10442 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10443 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10444 esac
10445 } # func_stripname_cnf
10446
10447
10448
10449
10450
10451 # Set options
10452
10453
10454
10455 enable_dlopen=no
10456
10457
10458 enable_win32_dll=no
10459
10460
10461 # Check whether --enable-shared was given.
10462 if test "${enable_shared+set}" = set; then :
10463 enableval=$enable_shared; p=${PACKAGE-default}
10464 case $enableval in
10465 yes) enable_shared=yes ;;
10466 no) enable_shared=no ;;
10467 *)
10468 enable_shared=no
10469 # Look at the argument we got. We use all the common list separators.
10470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10471 for pkg in $enableval; do
10472 IFS="$lt_save_ifs"
10473 if test "X$pkg" = "X$p"; then
10474 enable_shared=yes
10475 fi
10476 done
10477 IFS="$lt_save_ifs"
10478 ;;
10479 esac
10480 else
10481 enable_shared=yes
10482 fi
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492 # Check whether --enable-static was given.
10493 if test "${enable_static+set}" = set; then :
10494 enableval=$enable_static; p=${PACKAGE-default}
10495 case $enableval in
10496 yes) enable_static=yes ;;
10497 no) enable_static=no ;;
10498 *)
10499 enable_static=no
10500 # Look at the argument we got. We use all the common list separators.
10501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10502 for pkg in $enableval; do
10503 IFS="$lt_save_ifs"
10504 if test "X$pkg" = "X$p"; then
10505 enable_static=yes
10506 fi
10507 done
10508 IFS="$lt_save_ifs"
10509 ;;
10510 esac
10511 else
10512 enable_static=yes
10513 fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524 # Check whether --with-pic was given.
10525 if test "${with_pic+set}" = set; then :
10526 withval=$with_pic; pic_mode="$withval"
10527 else
10528 pic_mode=default
10529 fi
10530
10531
10532 test -z "$pic_mode" && pic_mode=default
10533
10534
10535
10536
10537
10538
10539
10540 # Check whether --enable-fast-install was given.
10541 if test "${enable_fast_install+set}" = set; then :
10542 enableval=$enable_fast_install; p=${PACKAGE-default}
10543 case $enableval in
10544 yes) enable_fast_install=yes ;;
10545 no) enable_fast_install=no ;;
10546 *)
10547 enable_fast_install=no
10548 # Look at the argument we got. We use all the common list separators.
10549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10550 for pkg in $enableval; do
10551 IFS="$lt_save_ifs"
10552 if test "X$pkg" = "X$p"; then
10553 enable_fast_install=yes
10554 fi
10555 done
10556 IFS="$lt_save_ifs"
10557 ;;
10558 esac
10559 else
10560 enable_fast_install=yes
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 # This can be used to rebuild libtool when needed
10574 LIBTOOL_DEPS="$ltmain"
10575
10576 # Always use our own libtool.
10577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604 test -z "$LN_S" && LN_S="ln -s"
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619 if test -n "${ZSH_VERSION+set}" ; then
10620 setopt NO_GLOB_SUBST
10621 fi
10622
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10624 $as_echo_n "checking for objdir... " >&6; }
10625 if ${lt_cv_objdir+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 rm -f .libs 2>/dev/null
10629 mkdir .libs 2>/dev/null
10630 if test -d .libs; then
10631 lt_cv_objdir=.libs
10632 else
10633 # MS-DOS does not allow filenames that begin with a dot.
10634 lt_cv_objdir=_libs
10635 fi
10636 rmdir .libs 2>/dev/null
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10639 $as_echo "$lt_cv_objdir" >&6; }
10640 objdir=$lt_cv_objdir
10641
10642
10643
10644
10645
10646 cat >>confdefs.h <<_ACEOF
10647 #define LT_OBJDIR "$lt_cv_objdir/"
10648 _ACEOF
10649
10650
10651
10652
10653 case $host_os in
10654 aix3*)
10655 # AIX sometimes has problems with the GCC collect2 program. For some
10656 # reason, if we set the COLLECT_NAMES environment variable, the problems
10657 # vanish in a puff of smoke.
10658 if test "X${COLLECT_NAMES+set}" != Xset; then
10659 COLLECT_NAMES=
10660 export COLLECT_NAMES
10661 fi
10662 ;;
10663 esac
10664
10665 # Global variables:
10666 ofile=libtool
10667 can_build_shared=yes
10668
10669 # All known linkers require a `.a' archive for static linking (except MSVC,
10670 # which needs '.lib').
10671 libext=a
10672
10673 with_gnu_ld="$lt_cv_prog_gnu_ld"
10674
10675 old_CC="$CC"
10676 old_CFLAGS="$CFLAGS"
10677
10678 # Set sane defaults for various variables
10679 test -z "$CC" && CC=cc
10680 test -z "$LTCC" && LTCC=$CC
10681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10682 test -z "$LD" && LD=ld
10683 test -z "$ac_objext" && ac_objext=o
10684
10685 for cc_temp in $compiler""; do
10686 case $cc_temp in
10687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10689 \-*) ;;
10690 *) break;;
10691 esac
10692 done
10693 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10694
10695
10696 # Only perform the check for file, if the check method requires it
10697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10698 case $deplibs_check_method in
10699 file_magic*)
10700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10702 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10703 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 case $MAGIC_CMD in
10707 [\\/*] | ?:[\\/]*)
10708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10709 ;;
10710 *)
10711 lt_save_MAGIC_CMD="$MAGIC_CMD"
10712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10714 for ac_dir in $ac_dummy; do
10715 IFS="$lt_save_ifs"
10716 test -z "$ac_dir" && ac_dir=.
10717 if test -f $ac_dir/${ac_tool_prefix}file; then
10718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10719 if test -n "$file_magic_test_file"; then
10720 case $deplibs_check_method in
10721 "file_magic "*)
10722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10725 $EGREP "$file_magic_regex" > /dev/null; then
10726 :
10727 else
10728 cat <<_LT_EOF 1>&2
10729
10730 *** Warning: the command libtool uses to detect shared libraries,
10731 *** $file_magic_cmd, produces output that libtool cannot recognize.
10732 *** The result is that libtool may fail to recognize shared libraries
10733 *** as such. This will affect the creation of libtool libraries that
10734 *** depend on shared libraries, but programs linked with such libtool
10735 *** libraries will work regardless of this problem. Nevertheless, you
10736 *** may want to report the problem to your system manager and/or to
10737 *** [email protected]
10738
10739 _LT_EOF
10740 fi ;;
10741 esac
10742 fi
10743 break
10744 fi
10745 done
10746 IFS="$lt_save_ifs"
10747 MAGIC_CMD="$lt_save_MAGIC_CMD"
10748 ;;
10749 esac
10750 fi
10751
10752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10753 if test -n "$MAGIC_CMD"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10755 $as_echo "$MAGIC_CMD" >&6; }
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10759 fi
10760
10761
10762
10763
10764
10765 if test -z "$lt_cv_path_MAGIC_CMD"; then
10766 if test -n "$ac_tool_prefix"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10768 $as_echo_n "checking for file... " >&6; }
10769 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 case $MAGIC_CMD in
10773 [\\/*] | ?:[\\/]*)
10774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10775 ;;
10776 *)
10777 lt_save_MAGIC_CMD="$MAGIC_CMD"
10778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10780 for ac_dir in $ac_dummy; do
10781 IFS="$lt_save_ifs"
10782 test -z "$ac_dir" && ac_dir=.
10783 if test -f $ac_dir/file; then
10784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10785 if test -n "$file_magic_test_file"; then
10786 case $deplibs_check_method in
10787 "file_magic "*)
10788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10791 $EGREP "$file_magic_regex" > /dev/null; then
10792 :
10793 else
10794 cat <<_LT_EOF 1>&2
10795
10796 *** Warning: the command libtool uses to detect shared libraries,
10797 *** $file_magic_cmd, produces output that libtool cannot recognize.
10798 *** The result is that libtool may fail to recognize shared libraries
10799 *** as such. This will affect the creation of libtool libraries that
10800 *** depend on shared libraries, but programs linked with such libtool
10801 *** libraries will work regardless of this problem. Nevertheless, you
10802 *** may want to report the problem to your system manager and/or to
10803 *** [email protected]
10804
10805 _LT_EOF
10806 fi ;;
10807 esac
10808 fi
10809 break
10810 fi
10811 done
10812 IFS="$lt_save_ifs"
10813 MAGIC_CMD="$lt_save_MAGIC_CMD"
10814 ;;
10815 esac
10816 fi
10817
10818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10819 if test -n "$MAGIC_CMD"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10821 $as_echo "$MAGIC_CMD" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828 else
10829 MAGIC_CMD=:
10830 fi
10831 fi
10832
10833 fi
10834 ;;
10835 esac
10836
10837 # Use C for the default configuration in the libtool script
10838
10839 lt_save_CC="$CC"
10840 ac_ext=c
10841 ac_cpp='$CPP $CPPFLAGS'
10842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10845
10846
10847 # Source file extension for C test sources.
10848 ac_ext=c
10849
10850 # Object file extension for compiled C test sources.
10851 objext=o
10852 objext=$objext
10853
10854 # Code to be used in simple compile tests
10855 lt_simple_compile_test_code="int some_variable = 0;"
10856
10857 # Code to be used in simple link tests
10858 lt_simple_link_test_code='int main(){return(0);}'
10859
10860
10861
10862
10863
10864
10865
10866 # If no C compiler was specified, use CC.
10867 LTCC=${LTCC-"$CC"}
10868
10869 # If no C compiler flags were specified, use CFLAGS.
10870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10871
10872 # Allow CC to be a program name with arguments.
10873 compiler=$CC
10874
10875 # Save the default compiler, since it gets overwritten when the other
10876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10877 compiler_DEFAULT=$CC
10878
10879 # save warnings/boilerplate of simple test code
10880 ac_outfile=conftest.$ac_objext
10881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_compiler_boilerplate=`cat conftest.err`
10884 $RM conftest*
10885
10886 ac_outfile=conftest.$ac_objext
10887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10889 _lt_linker_boilerplate=`cat conftest.err`
10890 $RM -r conftest*
10891
10892
10893 ## CAVEAT EMPTOR:
10894 ## There is no encapsulation within the following macros, do not change
10895 ## the running order or otherwise move them around unless you know exactly
10896 ## what you are doing...
10897 if test -n "$compiler"; then
10898
10899 lt_prog_compiler_no_builtin_flag=
10900
10901 if test "$GCC" = yes; then
10902 case $cc_basename in
10903 nvcc*)
10904 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10905 *)
10906 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10907 esac
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10910 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10911 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 lt_cv_prog_compiler_rtti_exceptions=no
10915 ac_outfile=conftest.$ac_objext
10916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10917 lt_compiler_flag="-fno-rtti -fno-exceptions"
10918 # Insert the option either (1) after the last *FLAGS variable, or
10919 # (2) before a word containing "conftest.", or (3) at the end.
10920 # Note that $ac_compile itself does not contain backslashes and begins
10921 # with a dollar sign (not a hyphen), so the echo should work correctly.
10922 # The option is referenced via a variable to avoid confusing sed.
10923 lt_compile=`echo "$ac_compile" | $SED \
10924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10926 -e 's:$: $lt_compiler_flag:'`
10927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10928 (eval "$lt_compile" 2>conftest.err)
10929 ac_status=$?
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 if (exit $ac_status) && test -s "$ac_outfile"; then
10933 # The compiler can only warn and ignore the option if not recognized
10934 # So say no if there are warnings other than the usual output.
10935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10938 lt_cv_prog_compiler_rtti_exceptions=yes
10939 fi
10940 fi
10941 $RM conftest*
10942
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10945 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10946
10947 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10948 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10949 else
10950 :
10951 fi
10952
10953 fi
10954
10955
10956
10957
10958
10959
10960 lt_prog_compiler_wl=
10961 lt_prog_compiler_pic=
10962 lt_prog_compiler_static=
10963
10964
10965 if test "$GCC" = yes; then
10966 lt_prog_compiler_wl='-Wl,'
10967 lt_prog_compiler_static='-static'
10968
10969 case $host_os in
10970 aix*)
10971 # All AIX code is PIC.
10972 if test "$host_cpu" = ia64; then
10973 # AIX 5 now supports IA64 processor
10974 lt_prog_compiler_static='-Bstatic'
10975 fi
10976 ;;
10977
10978 amigaos*)
10979 case $host_cpu in
10980 powerpc)
10981 # see comment about AmigaOS4 .so support
10982 lt_prog_compiler_pic='-fPIC'
10983 ;;
10984 m68k)
10985 # FIXME: we need at least 68020 code to build shared libraries, but
10986 # adding the `-m68020' flag to GCC prevents building anything better,
10987 # like `-m68040'.
10988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10989 ;;
10990 esac
10991 ;;
10992
10993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10994 # PIC is the default for these OSes.
10995 ;;
10996
10997 mingw* | cygwin* | pw32* | os2* | cegcc*)
10998 # This hack is so that the source file can tell whether it is being
10999 # built for inclusion in a dll (and should export symbols for example).
11000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11001 # (--disable-auto-import) libraries
11002 lt_prog_compiler_pic='-DDLL_EXPORT'
11003 ;;
11004
11005 darwin* | rhapsody*)
11006 # PIC is the default on this platform
11007 # Common symbols not allowed in MH_DYLIB files
11008 lt_prog_compiler_pic='-fno-common'
11009 ;;
11010
11011 haiku*)
11012 # PIC is the default for Haiku.
11013 # The "-static" flag exists, but is broken.
11014 lt_prog_compiler_static=
11015 ;;
11016
11017 hpux*)
11018 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11019 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11020 # sets the default TLS model and affects inlining.
11021 case $host_cpu in
11022 hppa*64*)
11023 # +Z the default
11024 ;;
11025 *)
11026 lt_prog_compiler_pic='-fPIC'
11027 ;;
11028 esac
11029 ;;
11030
11031 interix[3-9]*)
11032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11033 # Instead, we relocate shared libraries at runtime.
11034 ;;
11035
11036 msdosdjgpp*)
11037 # Just because we use GCC doesn't mean we suddenly get shared libraries
11038 # on systems that don't support them.
11039 lt_prog_compiler_can_build_shared=no
11040 enable_shared=no
11041 ;;
11042
11043 *nto* | *qnx*)
11044 # QNX uses GNU C++, but need to define -shared option too, otherwise
11045 # it will coredump.
11046 lt_prog_compiler_pic='-fPIC -shared'
11047 ;;
11048
11049 sysv4*MP*)
11050 if test -d /usr/nec; then
11051 lt_prog_compiler_pic=-Kconform_pic
11052 fi
11053 ;;
11054
11055 *)
11056 lt_prog_compiler_pic='-fPIC'
11057 ;;
11058 esac
11059
11060 case $cc_basename in
11061 nvcc*) # Cuda Compiler Driver 2.2
11062 lt_prog_compiler_wl='-Xlinker '
11063 lt_prog_compiler_pic='-Xcompiler -fPIC'
11064 ;;
11065 esac
11066 else
11067 # PORTME Check for flag to pass linker flags through the system compiler.
11068 case $host_os in
11069 aix*)
11070 lt_prog_compiler_wl='-Wl,'
11071 if test "$host_cpu" = ia64; then
11072 # AIX 5 now supports IA64 processor
11073 lt_prog_compiler_static='-Bstatic'
11074 else
11075 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11076 fi
11077 ;;
11078
11079 mingw* | cygwin* | pw32* | os2* | cegcc*)
11080 # This hack is so that the source file can tell whether it is being
11081 # built for inclusion in a dll (and should export symbols for example).
11082 lt_prog_compiler_pic='-DDLL_EXPORT'
11083 ;;
11084
11085 hpux9* | hpux10* | hpux11*)
11086 lt_prog_compiler_wl='-Wl,'
11087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11088 # not for PA HP-UX.
11089 case $host_cpu in
11090 hppa*64*|ia64*)
11091 # +Z the default
11092 ;;
11093 *)
11094 lt_prog_compiler_pic='+Z'
11095 ;;
11096 esac
11097 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11098 lt_prog_compiler_static='${wl}-a ${wl}archive'
11099 ;;
11100
11101 irix5* | irix6* | nonstopux*)
11102 lt_prog_compiler_wl='-Wl,'
11103 # PIC (with -KPIC) is the default.
11104 lt_prog_compiler_static='-non_shared'
11105 ;;
11106
11107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11108 case $cc_basename in
11109 # old Intel for x86_64 which still supported -KPIC.
11110 ecc*)
11111 lt_prog_compiler_wl='-Wl,'
11112 lt_prog_compiler_pic='-KPIC'
11113 lt_prog_compiler_static='-static'
11114 ;;
11115 # icc used to be incompatible with GCC.
11116 # ICC 10 doesn't accept -KPIC any more.
11117 icc* | ifort*)
11118 lt_prog_compiler_wl='-Wl,'
11119 lt_prog_compiler_pic='-fPIC'
11120 lt_prog_compiler_static='-static'
11121 ;;
11122 # Lahey Fortran 8.1.
11123 lf95*)
11124 lt_prog_compiler_wl='-Wl,'
11125 lt_prog_compiler_pic='--shared'
11126 lt_prog_compiler_static='--static'
11127 ;;
11128 nagfor*)
11129 # NAG Fortran compiler
11130 lt_prog_compiler_wl='-Wl,-Wl,,'
11131 lt_prog_compiler_pic='-PIC'
11132 lt_prog_compiler_static='-Bstatic'
11133 ;;
11134 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11135 # Portland Group compilers (*not* the Pentium gcc compiler,
11136 # which looks to be a dead project)
11137 lt_prog_compiler_wl='-Wl,'
11138 lt_prog_compiler_pic='-fpic'
11139 lt_prog_compiler_static='-Bstatic'
11140 ;;
11141 ccc*)
11142 lt_prog_compiler_wl='-Wl,'
11143 # All Alpha code is PIC.
11144 lt_prog_compiler_static='-non_shared'
11145 ;;
11146 xl* | bgxl* | bgf* | mpixl*)
11147 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11148 lt_prog_compiler_wl='-Wl,'
11149 lt_prog_compiler_pic='-qpic'
11150 lt_prog_compiler_static='-qstaticlink'
11151 ;;
11152 *)
11153 case `$CC -V 2>&1 | sed 5q` in
11154 *Sun\ F* | *Sun*Fortran*)
11155 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11156 lt_prog_compiler_pic='-KPIC'
11157 lt_prog_compiler_static='-Bstatic'
11158 lt_prog_compiler_wl=''
11159 ;;
11160 *Sun\ C*)
11161 # Sun C 5.9
11162 lt_prog_compiler_pic='-KPIC'
11163 lt_prog_compiler_static='-Bstatic'
11164 lt_prog_compiler_wl='-Wl,'
11165 ;;
11166 esac
11167 ;;
11168 esac
11169 ;;
11170
11171 newsos6)
11172 lt_prog_compiler_pic='-KPIC'
11173 lt_prog_compiler_static='-Bstatic'
11174 ;;
11175
11176 *nto* | *qnx*)
11177 # QNX uses GNU C++, but need to define -shared option too, otherwise
11178 # it will coredump.
11179 lt_prog_compiler_pic='-fPIC -shared'
11180 ;;
11181
11182 osf3* | osf4* | osf5*)
11183 lt_prog_compiler_wl='-Wl,'
11184 # All OSF/1 code is PIC.
11185 lt_prog_compiler_static='-non_shared'
11186 ;;
11187
11188 rdos*)
11189 lt_prog_compiler_static='-non_shared'
11190 ;;
11191
11192 solaris*)
11193 lt_prog_compiler_pic='-KPIC'
11194 lt_prog_compiler_static='-Bstatic'
11195 case $cc_basename in
11196 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11197 lt_prog_compiler_wl='-Qoption ld ';;
11198 *)
11199 lt_prog_compiler_wl='-Wl,';;
11200 esac
11201 ;;
11202
11203 sunos4*)
11204 lt_prog_compiler_wl='-Qoption ld '
11205 lt_prog_compiler_pic='-PIC'
11206 lt_prog_compiler_static='-Bstatic'
11207 ;;
11208
11209 sysv4 | sysv4.2uw2* | sysv4.3*)
11210 lt_prog_compiler_wl='-Wl,'
11211 lt_prog_compiler_pic='-KPIC'
11212 lt_prog_compiler_static='-Bstatic'
11213 ;;
11214
11215 sysv4*MP*)
11216 if test -d /usr/nec ;then
11217 lt_prog_compiler_pic='-Kconform_pic'
11218 lt_prog_compiler_static='-Bstatic'
11219 fi
11220 ;;
11221
11222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11223 lt_prog_compiler_wl='-Wl,'
11224 lt_prog_compiler_pic='-KPIC'
11225 lt_prog_compiler_static='-Bstatic'
11226 ;;
11227
11228 unicos*)
11229 lt_prog_compiler_wl='-Wl,'
11230 lt_prog_compiler_can_build_shared=no
11231 ;;
11232
11233 uts4*)
11234 lt_prog_compiler_pic='-pic'
11235 lt_prog_compiler_static='-Bstatic'
11236 ;;
11237
11238 *)
11239 lt_prog_compiler_can_build_shared=no
11240 ;;
11241 esac
11242 fi
11243
11244 case $host_os in
11245 # For platforms which do not support PIC, -DPIC is meaningless:
11246 *djgpp*)
11247 lt_prog_compiler_pic=
11248 ;;
11249 *)
11250 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11251 ;;
11252 esac
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11255 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11256 if ${lt_cv_prog_compiler_pic+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11262 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11263 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11264
11265 #
11266 # Check to make sure the PIC flag actually works.
11267 #
11268 if test -n "$lt_prog_compiler_pic"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11270 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11271 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 lt_cv_prog_compiler_pic_works=no
11275 ac_outfile=conftest.$ac_objext
11276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11277 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11278 # Insert the option either (1) after the last *FLAGS variable, or
11279 # (2) before a word containing "conftest.", or (3) at the end.
11280 # Note that $ac_compile itself does not contain backslashes and begins
11281 # with a dollar sign (not a hyphen), so the echo should work correctly.
11282 # The option is referenced via a variable to avoid confusing sed.
11283 lt_compile=`echo "$ac_compile" | $SED \
11284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11286 -e 's:$: $lt_compiler_flag:'`
11287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11288 (eval "$lt_compile" 2>conftest.err)
11289 ac_status=$?
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 if (exit $ac_status) && test -s "$ac_outfile"; then
11293 # The compiler can only warn and ignore the option if not recognized
11294 # So say no if there are warnings other than the usual output.
11295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11298 lt_cv_prog_compiler_pic_works=yes
11299 fi
11300 fi
11301 $RM conftest*
11302
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11305 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11306
11307 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11308 case $lt_prog_compiler_pic in
11309 "" | " "*) ;;
11310 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11311 esac
11312 else
11313 lt_prog_compiler_pic=
11314 lt_prog_compiler_can_build_shared=no
11315 fi
11316
11317 fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 #
11330 # Check to make sure the static flag actually works.
11331 #
11332 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11334 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11335 if ${lt_cv_prog_compiler_static_works+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 lt_cv_prog_compiler_static_works=no
11339 save_LDFLAGS="$LDFLAGS"
11340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11343 # The linker can only warn and ignore the option if not recognized
11344 # So say no if there are warnings
11345 if test -s conftest.err; then
11346 # Append any errors to the config.log.
11347 cat conftest.err 1>&5
11348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11350 if diff conftest.exp conftest.er2 >/dev/null; then
11351 lt_cv_prog_compiler_static_works=yes
11352 fi
11353 else
11354 lt_cv_prog_compiler_static_works=yes
11355 fi
11356 fi
11357 $RM -r conftest*
11358 LDFLAGS="$save_LDFLAGS"
11359
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11362 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11363
11364 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11365 :
11366 else
11367 lt_prog_compiler_static=
11368 fi
11369
11370
11371
11372
11373
11374
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11378 if ${lt_cv_prog_compiler_c_o+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 lt_cv_prog_compiler_c_o=no
11382 $RM -r conftest 2>/dev/null
11383 mkdir conftest
11384 cd conftest
11385 mkdir out
11386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11387
11388 lt_compiler_flag="-o out/conftest2.$ac_objext"
11389 # Insert the option either (1) after the last *FLAGS variable, or
11390 # (2) before a word containing "conftest.", or (3) at the end.
11391 # Note that $ac_compile itself does not contain backslashes and begins
11392 # with a dollar sign (not a hyphen), so the echo should work correctly.
11393 lt_compile=`echo "$ac_compile" | $SED \
11394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11396 -e 's:$: $lt_compiler_flag:'`
11397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11398 (eval "$lt_compile" 2>out/conftest.err)
11399 ac_status=$?
11400 cat out/conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11403 then
11404 # The compiler can only warn and ignore the option if not recognized
11405 # So say no if there are warnings
11406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11409 lt_cv_prog_compiler_c_o=yes
11410 fi
11411 fi
11412 chmod u+w . 2>&5
11413 $RM conftest*
11414 # SGI C++ compiler will create directory out/ii_files/ for
11415 # template instantiation
11416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11417 $RM out/* && rmdir out
11418 cd ..
11419 $RM -r conftest
11420 $RM conftest*
11421
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11425
11426
11427
11428
11429
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11432 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11433 if ${lt_cv_prog_compiler_c_o+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 lt_cv_prog_compiler_c_o=no
11437 $RM -r conftest 2>/dev/null
11438 mkdir conftest
11439 cd conftest
11440 mkdir out
11441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11442
11443 lt_compiler_flag="-o out/conftest2.$ac_objext"
11444 # Insert the option either (1) after the last *FLAGS variable, or
11445 # (2) before a word containing "conftest.", or (3) at the end.
11446 # Note that $ac_compile itself does not contain backslashes and begins
11447 # with a dollar sign (not a hyphen), so the echo should work correctly.
11448 lt_compile=`echo "$ac_compile" | $SED \
11449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11451 -e 's:$: $lt_compiler_flag:'`
11452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11453 (eval "$lt_compile" 2>out/conftest.err)
11454 ac_status=$?
11455 cat out/conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11458 then
11459 # The compiler can only warn and ignore the option if not recognized
11460 # So say no if there are warnings
11461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11464 lt_cv_prog_compiler_c_o=yes
11465 fi
11466 fi
11467 chmod u+w . 2>&5
11468 $RM conftest*
11469 # SGI C++ compiler will create directory out/ii_files/ for
11470 # template instantiation
11471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11472 $RM out/* && rmdir out
11473 cd ..
11474 $RM -r conftest
11475 $RM conftest*
11476
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11479 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11480
11481
11482
11483
11484 hard_links="nottested"
11485 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11486 # do not overwrite the value of need_locks provided by the user
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11488 $as_echo_n "checking if we can lock with hard links... " >&6; }
11489 hard_links=yes
11490 $RM conftest*
11491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11492 touch conftest.a
11493 ln conftest.a conftest.b 2>&5 || hard_links=no
11494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11496 $as_echo "$hard_links" >&6; }
11497 if test "$hard_links" = no; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11499 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11500 need_locks=warn
11501 fi
11502 else
11503 need_locks=no
11504 fi
11505
11506
11507
11508
11509
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11513
11514 runpath_var=
11515 allow_undefined_flag=
11516 always_export_symbols=no
11517 archive_cmds=
11518 archive_expsym_cmds=
11519 compiler_needs_object=no
11520 enable_shared_with_static_runtimes=no
11521 export_dynamic_flag_spec=
11522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11523 hardcode_automatic=no
11524 hardcode_direct=no
11525 hardcode_direct_absolute=no
11526 hardcode_libdir_flag_spec=
11527 hardcode_libdir_flag_spec_ld=
11528 hardcode_libdir_separator=
11529 hardcode_minus_L=no
11530 hardcode_shlibpath_var=unsupported
11531 inherit_rpath=no
11532 link_all_deplibs=unknown
11533 module_cmds=
11534 module_expsym_cmds=
11535 old_archive_from_new_cmds=
11536 old_archive_from_expsyms_cmds=
11537 thread_safe_flag_spec=
11538 whole_archive_flag_spec=
11539 # include_expsyms should be a list of space-separated symbols to be *always*
11540 # included in the symbol list
11541 include_expsyms=
11542 # exclude_expsyms can be an extended regexp of symbols to exclude
11543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11545 # as well as any symbol that contains `d'.
11546 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11548 # platforms (ab)use it in PIC code, but their linkers get confused if
11549 # the symbol is explicitly referenced. Since portable code cannot
11550 # rely on this symbol name, it's probably fine to never include it in
11551 # preloaded symbol tables.
11552 # Exclude shared library initialization/finalization symbols.
11553 extract_expsyms_cmds=
11554
11555 case $host_os in
11556 cygwin* | mingw* | pw32* | cegcc*)
11557 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11558 # When not using gcc, we currently assume that we are using
11559 # Microsoft Visual C++.
11560 if test "$GCC" != yes; then
11561 with_gnu_ld=no
11562 fi
11563 ;;
11564 interix*)
11565 # we just hope/assume this is gcc and not c89 (= MSVC++)
11566 with_gnu_ld=yes
11567 ;;
11568 openbsd*)
11569 with_gnu_ld=no
11570 ;;
11571 esac
11572
11573 ld_shlibs=yes
11574
11575 # On some targets, GNU ld is compatible enough with the native linker
11576 # that we're better off using the native interface for both.
11577 lt_use_gnu_ld_interface=no
11578 if test "$with_gnu_ld" = yes; then
11579 case $host_os in
11580 aix*)
11581 # The AIX port of GNU ld has always aspired to compatibility
11582 # with the native linker. However, as the warning in the GNU ld
11583 # block says, versions before 2.19.5* couldn't really create working
11584 # shared libraries, regardless of the interface used.
11585 case `$LD -v 2>&1` in
11586 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11587 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11588 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11589 *)
11590 lt_use_gnu_ld_interface=yes
11591 ;;
11592 esac
11593 ;;
11594 *)
11595 lt_use_gnu_ld_interface=yes
11596 ;;
11597 esac
11598 fi
11599
11600 if test "$lt_use_gnu_ld_interface" = yes; then
11601 # If archive_cmds runs LD, not CC, wlarc should be empty
11602 wlarc='${wl}'
11603
11604 # Set some defaults for GNU ld with shared library support. These
11605 # are reset later if shared libraries are not supported. Putting them
11606 # here allows them to be overridden if necessary.
11607 runpath_var=LD_RUN_PATH
11608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11609 export_dynamic_flag_spec='${wl}--export-dynamic'
11610 # ancient GNU ld didn't support --whole-archive et. al.
11611 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11612 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11613 else
11614 whole_archive_flag_spec=
11615 fi
11616 supports_anon_versioning=no
11617 case `$LD -v 2>&1` in
11618 *GNU\ gold*) supports_anon_versioning=yes ;;
11619 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11622 *\ 2.11.*) ;; # other 2.11 versions
11623 *) supports_anon_versioning=yes ;;
11624 esac
11625
11626 # See if GNU ld supports shared libraries.
11627 case $host_os in
11628 aix[3-9]*)
11629 # On AIX/PPC, the GNU linker is very broken
11630 if test "$host_cpu" != ia64; then
11631 ld_shlibs=no
11632 cat <<_LT_EOF 1>&2
11633
11634 *** Warning: the GNU linker, at least up to release 2.19, is reported
11635 *** to be unable to reliably create shared libraries on AIX.
11636 *** Therefore, libtool is disabling shared libraries support. If you
11637 *** really care for shared libraries, you may want to install binutils
11638 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11639 *** You will then need to restart the configuration process.
11640
11641 _LT_EOF
11642 fi
11643 ;;
11644
11645 amigaos*)
11646 case $host_cpu in
11647 powerpc)
11648 # see comment about AmigaOS4 .so support
11649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11650 archive_expsym_cmds=''
11651 ;;
11652 m68k)
11653 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)'
11654 hardcode_libdir_flag_spec='-L$libdir'
11655 hardcode_minus_L=yes
11656 ;;
11657 esac
11658 ;;
11659
11660 beos*)
11661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11662 allow_undefined_flag=unsupported
11663 # Joseph Beckenbach <[email protected]> says some releases of gcc
11664 # support --undefined. This deserves some investigation. FIXME
11665 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11666 else
11667 ld_shlibs=no
11668 fi
11669 ;;
11670
11671 cygwin* | mingw* | pw32* | cegcc*)
11672 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11673 # as there is no search path for DLLs.
11674 hardcode_libdir_flag_spec='-L$libdir'
11675 export_dynamic_flag_spec='${wl}--export-all-symbols'
11676 allow_undefined_flag=unsupported
11677 always_export_symbols=no
11678 enable_shared_with_static_runtimes=yes
11679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11680 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11681
11682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11684 # If the export-symbols file already is a .def file (1st line
11685 # is EXPORTS), use it as is; otherwise, prepend...
11686 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11687 cp $export_symbols $output_objdir/$soname.def;
11688 else
11689 echo EXPORTS > $output_objdir/$soname.def;
11690 cat $export_symbols >> $output_objdir/$soname.def;
11691 fi~
11692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11693 else
11694 ld_shlibs=no
11695 fi
11696 ;;
11697
11698 haiku*)
11699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700 link_all_deplibs=yes
11701 ;;
11702
11703 interix[3-9]*)
11704 hardcode_direct=no
11705 hardcode_shlibpath_var=no
11706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11707 export_dynamic_flag_spec='${wl}-E'
11708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11709 # Instead, shared libraries are loaded at an image base (0x10000000 by
11710 # default) and relocated if they conflict, which is a slow very memory
11711 # consuming and fragmenting process. To avoid this, we pick a random,
11712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11715 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11716 ;;
11717
11718 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11719 tmp_diet=no
11720 if test "$host_os" = linux-dietlibc; then
11721 case $cc_basename in
11722 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11723 esac
11724 fi
11725 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11726 && test "$tmp_diet" = no
11727 then
11728 tmp_addflag=' $pic_flag'
11729 tmp_sharedflag='-shared'
11730 case $cc_basename,$host_cpu in
11731 pgcc*) # Portland Group C compiler
11732 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11733 tmp_addflag=' $pic_flag'
11734 ;;
11735 pgf77* | pgf90* | pgf95* | pgfortran*)
11736 # Portland Group f77 and f90 compilers
11737 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11738 tmp_addflag=' $pic_flag -Mnomain' ;;
11739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11740 tmp_addflag=' -i_dynamic' ;;
11741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11742 tmp_addflag=' -i_dynamic -nofor_main' ;;
11743 ifc* | ifort*) # Intel Fortran compiler
11744 tmp_addflag=' -nofor_main' ;;
11745 lf95*) # Lahey Fortran 8.1
11746 whole_archive_flag_spec=
11747 tmp_sharedflag='--shared' ;;
11748 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11749 tmp_sharedflag='-qmkshrobj'
11750 tmp_addflag= ;;
11751 nvcc*) # Cuda Compiler Driver 2.2
11752 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11753 compiler_needs_object=yes
11754 ;;
11755 esac
11756 case `$CC -V 2>&1 | sed 5q` in
11757 *Sun\ C*) # Sun C 5.9
11758 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11759 compiler_needs_object=yes
11760 tmp_sharedflag='-G' ;;
11761 *Sun\ F*) # Sun Fortran 8.3
11762 tmp_sharedflag='-G' ;;
11763 esac
11764 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11765
11766 if test "x$supports_anon_versioning" = xyes; then
11767 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11769 echo "local: *; };" >> $output_objdir/$libname.ver~
11770 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11771 fi
11772
11773 case $cc_basename in
11774 xlf* | bgf* | bgxlf* | mpixlf*)
11775 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11776 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11777 hardcode_libdir_flag_spec=
11778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11779 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11780 if test "x$supports_anon_versioning" = xyes; then
11781 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11783 echo "local: *; };" >> $output_objdir/$libname.ver~
11784 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11785 fi
11786 ;;
11787 esac
11788 else
11789 ld_shlibs=no
11790 fi
11791 ;;
11792
11793 netbsd*)
11794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11796 wlarc=
11797 else
11798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11799 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11800 fi
11801 ;;
11802
11803 solaris*)
11804 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11805 ld_shlibs=no
11806 cat <<_LT_EOF 1>&2
11807
11808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11809 *** create shared libraries on Solaris systems. Therefore, libtool
11810 *** is disabling shared libraries support. We urge you to upgrade GNU
11811 *** binutils to release 2.9.1 or newer. Another option is to modify
11812 *** your PATH or compiler configuration so that the native linker is
11813 *** used, and then restart.
11814
11815 _LT_EOF
11816 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11819 else
11820 ld_shlibs=no
11821 fi
11822 ;;
11823
11824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11825 case `$LD -v 2>&1` in
11826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11827 ld_shlibs=no
11828 cat <<_LT_EOF 1>&2
11829
11830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11831 *** reliably create shared libraries on SCO systems. Therefore, libtool
11832 *** is disabling shared libraries support. We urge you to upgrade GNU
11833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11834 *** your PATH or compiler configuration so that the native linker is
11835 *** used, and then restart.
11836
11837 _LT_EOF
11838 ;;
11839 *)
11840 # For security reasons, it is highly recommended that you always
11841 # use absolute paths for naming shared libraries, and exclude the
11842 # DT_RUNPATH tag from executables and libraries. But doing so
11843 # requires that you compile everything twice, which is a pain.
11844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11848 else
11849 ld_shlibs=no
11850 fi
11851 ;;
11852 esac
11853 ;;
11854
11855 sunos4*)
11856 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11857 wlarc=
11858 hardcode_direct=yes
11859 hardcode_shlibpath_var=no
11860 ;;
11861
11862 *)
11863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11864 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11865 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11866 else
11867 ld_shlibs=no
11868 fi
11869 ;;
11870 esac
11871
11872 if test "$ld_shlibs" = no; then
11873 runpath_var=
11874 hardcode_libdir_flag_spec=
11875 export_dynamic_flag_spec=
11876 whole_archive_flag_spec=
11877 fi
11878 else
11879 # PORTME fill in a description of your system's linker (not GNU ld)
11880 case $host_os in
11881 aix3*)
11882 allow_undefined_flag=unsupported
11883 always_export_symbols=yes
11884 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'
11885 # Note: this linker hardcodes the directories in LIBPATH if there
11886 # are no directories specified by -L.
11887 hardcode_minus_L=yes
11888 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11889 # Neither direct hardcoding nor static linking is supported with a
11890 # broken collect2.
11891 hardcode_direct=unsupported
11892 fi
11893 ;;
11894
11895 aix[4-9]*)
11896 if test "$host_cpu" = ia64; then
11897 # On IA64, the linker does run time linking by default, so we don't
11898 # have to do anything special.
11899 aix_use_runtimelinking=no
11900 exp_sym_flag='-Bexport'
11901 no_entry_flag=""
11902 else
11903 # If we're using GNU nm, then we don't want the "-C" option.
11904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11905 # Also, AIX nm treats weak defined symbols like other global
11906 # defined symbols, whereas GNU nm marks them as "W".
11907 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11908 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11909 else
11910 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11911 fi
11912 aix_use_runtimelinking=no
11913
11914 # Test if we are trying to use run time linking or normal
11915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11916 # need to do runtime linking.
11917 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11918 for ld_flag in $LDFLAGS; do
11919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11920 aix_use_runtimelinking=yes
11921 break
11922 fi
11923 done
11924 ;;
11925 esac
11926
11927 exp_sym_flag='-bexport'
11928 no_entry_flag='-bnoentry'
11929 fi
11930
11931 # When large executables or shared objects are built, AIX ld can
11932 # have problems creating the table of contents. If linking a library
11933 # or program results in "error TOC overflow" add -mminimal-toc to
11934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11936
11937 archive_cmds=''
11938 hardcode_direct=yes
11939 hardcode_direct_absolute=yes
11940 hardcode_libdir_separator=':'
11941 link_all_deplibs=yes
11942 file_list_spec='${wl}-f,'
11943
11944 if test "$GCC" = yes; then
11945 case $host_os in aix4.[012]|aix4.[012].*)
11946 # We only want to do this on AIX 4.2 and lower, the check
11947 # below for broken collect2 doesn't work under 4.3+
11948 collect2name=`${CC} -print-prog-name=collect2`
11949 if test -f "$collect2name" &&
11950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11951 then
11952 # We have reworked collect2
11953 :
11954 else
11955 # We have old collect2
11956 hardcode_direct=unsupported
11957 # It fails to find uninstalled libraries when the uninstalled
11958 # path is not listed in the libpath. Setting hardcode_minus_L
11959 # to unsupported forces relinking
11960 hardcode_minus_L=yes
11961 hardcode_libdir_flag_spec='-L$libdir'
11962 hardcode_libdir_separator=
11963 fi
11964 ;;
11965 esac
11966 shared_flag='-shared'
11967 if test "$aix_use_runtimelinking" = yes; then
11968 shared_flag="$shared_flag "'${wl}-G'
11969 fi
11970 else
11971 # not using gcc
11972 if test "$host_cpu" = ia64; then
11973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11974 # chokes on -Wl,-G. The following line is correct:
11975 shared_flag='-G'
11976 else
11977 if test "$aix_use_runtimelinking" = yes; then
11978 shared_flag='${wl}-G'
11979 else
11980 shared_flag='${wl}-bM:SRE'
11981 fi
11982 fi
11983 fi
11984
11985 export_dynamic_flag_spec='${wl}-bexpall'
11986 # It seems that -bexpall does not export symbols beginning with
11987 # underscore (_), so it is better to generate a list of symbols to export.
11988 always_export_symbols=yes
11989 if test "$aix_use_runtimelinking" = yes; then
11990 # Warning - without using the other runtime loading flags (-brtl),
11991 # -berok will link without error, but may produce a broken library.
11992 allow_undefined_flag='-berok'
11993 # Determine the default libpath from the value encoded in an
11994 # empty executable.
11995 if test "${lt_cv_aix_libpath+set}" = set; then
11996 aix_libpath=$lt_cv_aix_libpath
11997 else
11998 if ${lt_cv_aix_libpath_+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003
12004 int
12005 main ()
12006 {
12007
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_link "$LINENO"; then :
12013
12014 lt_aix_libpath_sed='
12015 /Import File Strings/,/^$/ {
12016 /^0/ {
12017 s/^0 *\([^ ]*\) *$/\1/
12018 p
12019 }
12020 }'
12021 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12022 # Check for a 64-bit object if we didn't find anything.
12023 if test -z "$lt_cv_aix_libpath_"; then
12024 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12025 fi
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 if test -z "$lt_cv_aix_libpath_"; then
12030 lt_cv_aix_libpath_="/usr/lib:/lib"
12031 fi
12032
12033 fi
12034
12035 aix_libpath=$lt_cv_aix_libpath_
12036 fi
12037
12038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12039 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12040 else
12041 if test "$host_cpu" = ia64; then
12042 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12043 allow_undefined_flag="-z nodefs"
12044 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12045 else
12046 # Determine the default libpath from the value encoded in an
12047 # empty executable.
12048 if test "${lt_cv_aix_libpath+set}" = set; then
12049 aix_libpath=$lt_cv_aix_libpath
12050 else
12051 if ${lt_cv_aix_libpath_+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056
12057 int
12058 main ()
12059 {
12060
12061 ;
12062 return 0;
12063 }
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066
12067 lt_aix_libpath_sed='
12068 /Import File Strings/,/^$/ {
12069 /^0/ {
12070 s/^0 *\([^ ]*\) *$/\1/
12071 p
12072 }
12073 }'
12074 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12075 # Check for a 64-bit object if we didn't find anything.
12076 if test -z "$lt_cv_aix_libpath_"; then
12077 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12078 fi
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 if test -z "$lt_cv_aix_libpath_"; then
12083 lt_cv_aix_libpath_="/usr/lib:/lib"
12084 fi
12085
12086 fi
12087
12088 aix_libpath=$lt_cv_aix_libpath_
12089 fi
12090
12091 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12092 # Warning - without using the other run time loading flags,
12093 # -berok will link without error, but may produce a broken library.
12094 no_undefined_flag=' ${wl}-bernotok'
12095 allow_undefined_flag=' ${wl}-berok'
12096 if test "$with_gnu_ld" = yes; then
12097 # We only use this code for GNU lds that support --whole-archive.
12098 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12099 else
12100 # Exported symbols can be pulled into shared objects from archives
12101 whole_archive_flag_spec='$convenience'
12102 fi
12103 archive_cmds_need_lc=yes
12104 # This is similar to how AIX traditionally builds its shared libraries.
12105 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12106 fi
12107 fi
12108 ;;
12109
12110 amigaos*)
12111 case $host_cpu in
12112 powerpc)
12113 # see comment about AmigaOS4 .so support
12114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115 archive_expsym_cmds=''
12116 ;;
12117 m68k)
12118 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)'
12119 hardcode_libdir_flag_spec='-L$libdir'
12120 hardcode_minus_L=yes
12121 ;;
12122 esac
12123 ;;
12124
12125 bsdi[45]*)
12126 export_dynamic_flag_spec=-rdynamic
12127 ;;
12128
12129 cygwin* | mingw* | pw32* | cegcc*)
12130 # When not using gcc, we currently assume that we are using
12131 # Microsoft Visual C++.
12132 # hardcode_libdir_flag_spec is actually meaningless, as there is
12133 # no search path for DLLs.
12134 case $cc_basename in
12135 cl*)
12136 # Native MSVC
12137 hardcode_libdir_flag_spec=' '
12138 allow_undefined_flag=unsupported
12139 always_export_symbols=yes
12140 file_list_spec='@'
12141 # Tell ltmain to make .lib files, not .a files.
12142 libext=lib
12143 # Tell ltmain to make .dll files, not .so files.
12144 shrext_cmds=".dll"
12145 # FIXME: Setting linknames here is a bad hack.
12146 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12147 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12148 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12149 else
12150 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12151 fi~
12152 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12153 linknames='
12154 # The linker will not automatically build a static lib if we build a DLL.
12155 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12156 enable_shared_with_static_runtimes=yes
12157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12158 # Don't use ranlib
12159 old_postinstall_cmds='chmod 644 $oldlib'
12160 postlink_cmds='lt_outputfile="@OUTPUT@"~
12161 lt_tool_outputfile="@TOOL_OUTPUT@"~
12162 case $lt_outputfile in
12163 *.exe|*.EXE) ;;
12164 *)
12165 lt_outputfile="$lt_outputfile.exe"
12166 lt_tool_outputfile="$lt_tool_outputfile.exe"
12167 ;;
12168 esac~
12169 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12170 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12171 $RM "$lt_outputfile.manifest";
12172 fi'
12173 ;;
12174 *)
12175 # Assume MSVC wrapper
12176 hardcode_libdir_flag_spec=' '
12177 allow_undefined_flag=unsupported
12178 # Tell ltmain to make .lib files, not .a files.
12179 libext=lib
12180 # Tell ltmain to make .dll files, not .so files.
12181 shrext_cmds=".dll"
12182 # FIXME: Setting linknames here is a bad hack.
12183 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12184 # The linker will automatically build a .lib file if we build a DLL.
12185 old_archive_from_new_cmds='true'
12186 # FIXME: Should let the user specify the lib program.
12187 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12188 enable_shared_with_static_runtimes=yes
12189 ;;
12190 esac
12191 ;;
12192
12193 darwin* | rhapsody*)
12194
12195
12196 archive_cmds_need_lc=no
12197 hardcode_direct=no
12198 hardcode_automatic=yes
12199 hardcode_shlibpath_var=unsupported
12200 if test "$lt_cv_ld_force_load" = "yes"; then
12201 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12202 else
12203 whole_archive_flag_spec=''
12204 fi
12205 link_all_deplibs=yes
12206 allow_undefined_flag="$_lt_dar_allow_undefined"
12207 case $cc_basename in
12208 ifort*) _lt_dar_can_shared=yes ;;
12209 *) _lt_dar_can_shared=$GCC ;;
12210 esac
12211 if test "$_lt_dar_can_shared" = "yes"; then
12212 output_verbose_link_cmd=func_echo_all
12213 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12214 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12215 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12216 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12217
12218 else
12219 ld_shlibs=no
12220 fi
12221
12222 ;;
12223
12224 dgux*)
12225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12226 hardcode_libdir_flag_spec='-L$libdir'
12227 hardcode_shlibpath_var=no
12228 ;;
12229
12230 freebsd1*)
12231 ld_shlibs=no
12232 ;;
12233
12234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12235 # support. Future versions do this automatically, but an explicit c++rt0.o
12236 # does not break anything, and helps significantly (at the cost of a little
12237 # extra space).
12238 freebsd2.2*)
12239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12240 hardcode_libdir_flag_spec='-R$libdir'
12241 hardcode_direct=yes
12242 hardcode_shlibpath_var=no
12243 ;;
12244
12245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12246 freebsd2*)
12247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12248 hardcode_direct=yes
12249 hardcode_minus_L=yes
12250 hardcode_shlibpath_var=no
12251 ;;
12252
12253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12254 freebsd* | dragonfly*)
12255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12256 hardcode_libdir_flag_spec='-R$libdir'
12257 hardcode_direct=yes
12258 hardcode_shlibpath_var=no
12259 ;;
12260
12261 hpux9*)
12262 if test "$GCC" = yes; then
12263 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12264 else
12265 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'
12266 fi
12267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12268 hardcode_libdir_separator=:
12269 hardcode_direct=yes
12270
12271 # hardcode_minus_L: Not really in the search PATH,
12272 # but as the default location of the library.
12273 hardcode_minus_L=yes
12274 export_dynamic_flag_spec='${wl}-E'
12275 ;;
12276
12277 hpux10*)
12278 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12279 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12280 else
12281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12282 fi
12283 if test "$with_gnu_ld" = no; then
12284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12285 hardcode_libdir_flag_spec_ld='+b $libdir'
12286 hardcode_libdir_separator=:
12287 hardcode_direct=yes
12288 hardcode_direct_absolute=yes
12289 export_dynamic_flag_spec='${wl}-E'
12290 # hardcode_minus_L: Not really in the search PATH,
12291 # but as the default location of the library.
12292 hardcode_minus_L=yes
12293 fi
12294 ;;
12295
12296 hpux11*)
12297 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12298 case $host_cpu in
12299 hppa*64*)
12300 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 ;;
12302 ia64*)
12303 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12304 ;;
12305 *)
12306 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12307 ;;
12308 esac
12309 else
12310 case $host_cpu in
12311 hppa*64*)
12312 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 ;;
12314 ia64*)
12315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12316 ;;
12317 *)
12318
12319 # Older versions of the 11.00 compiler do not understand -b yet
12320 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12322 $as_echo_n "checking if $CC understands -b... " >&6; }
12323 if ${lt_cv_prog_compiler__b+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 lt_cv_prog_compiler__b=no
12327 save_LDFLAGS="$LDFLAGS"
12328 LDFLAGS="$LDFLAGS -b"
12329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12331 # The linker can only warn and ignore the option if not recognized
12332 # So say no if there are warnings
12333 if test -s conftest.err; then
12334 # Append any errors to the config.log.
12335 cat conftest.err 1>&5
12336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12338 if diff conftest.exp conftest.er2 >/dev/null; then
12339 lt_cv_prog_compiler__b=yes
12340 fi
12341 else
12342 lt_cv_prog_compiler__b=yes
12343 fi
12344 fi
12345 $RM -r conftest*
12346 LDFLAGS="$save_LDFLAGS"
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12350 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12351
12352 if test x"$lt_cv_prog_compiler__b" = xyes; then
12353 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12354 else
12355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12356 fi
12357
12358 ;;
12359 esac
12360 fi
12361 if test "$with_gnu_ld" = no; then
12362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12363 hardcode_libdir_separator=:
12364
12365 case $host_cpu in
12366 hppa*64*|ia64*)
12367 hardcode_direct=no
12368 hardcode_shlibpath_var=no
12369 ;;
12370 *)
12371 hardcode_direct=yes
12372 hardcode_direct_absolute=yes
12373 export_dynamic_flag_spec='${wl}-E'
12374
12375 # hardcode_minus_L: Not really in the search PATH,
12376 # but as the default location of the library.
12377 hardcode_minus_L=yes
12378 ;;
12379 esac
12380 fi
12381 ;;
12382
12383 irix5* | irix6* | nonstopux*)
12384 if test "$GCC" = yes; then
12385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12386 # Try to use the -exported_symbol ld option, if it does not
12387 # work, assume that -exports_file does not work either and
12388 # implicitly export all symbols.
12389 # This should be the same for all languages, so no per-tag cache variable.
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12391 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12392 if ${lt_cv_irix_exported_symbol+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 save_LDFLAGS="$LDFLAGS"
12396 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399 int foo (void) { return 0; }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 lt_cv_irix_exported_symbol=yes
12403 else
12404 lt_cv_irix_exported_symbol=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LDFLAGS="$save_LDFLAGS"
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12411 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12412 if test "$lt_cv_irix_exported_symbol" = yes; then
12413 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12414 fi
12415 else
12416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12418 fi
12419 archive_cmds_need_lc='no'
12420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12421 hardcode_libdir_separator=:
12422 inherit_rpath=yes
12423 link_all_deplibs=yes
12424 ;;
12425
12426 netbsd*)
12427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12429 else
12430 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12431 fi
12432 hardcode_libdir_flag_spec='-R$libdir'
12433 hardcode_direct=yes
12434 hardcode_shlibpath_var=no
12435 ;;
12436
12437 newsos6)
12438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12439 hardcode_direct=yes
12440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12441 hardcode_libdir_separator=:
12442 hardcode_shlibpath_var=no
12443 ;;
12444
12445 *nto* | *qnx*)
12446 ;;
12447
12448 openbsd*)
12449 if test -f /usr/libexec/ld.so; then
12450 hardcode_direct=yes
12451 hardcode_shlibpath_var=no
12452 hardcode_direct_absolute=yes
12453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12457 export_dynamic_flag_spec='${wl}-E'
12458 else
12459 case $host_os in
12460 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12462 hardcode_libdir_flag_spec='-R$libdir'
12463 ;;
12464 *)
12465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12467 ;;
12468 esac
12469 fi
12470 else
12471 ld_shlibs=no
12472 fi
12473 ;;
12474
12475 os2*)
12476 hardcode_libdir_flag_spec='-L$libdir'
12477 hardcode_minus_L=yes
12478 allow_undefined_flag=unsupported
12479 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'
12480 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12481 ;;
12482
12483 osf3*)
12484 if test "$GCC" = yes; then
12485 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12486 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12487 else
12488 allow_undefined_flag=' -expect_unresolved \*'
12489 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12490 fi
12491 archive_cmds_need_lc='no'
12492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12493 hardcode_libdir_separator=:
12494 ;;
12495
12496 osf4* | osf5*) # as osf3* with the addition of -msym flag
12497 if test "$GCC" = yes; then
12498 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12499 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12501 else
12502 allow_undefined_flag=' -expect_unresolved \*'
12503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12504 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12505 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12506
12507 # Both c and cxx compiler support -rpath directly
12508 hardcode_libdir_flag_spec='-rpath $libdir'
12509 fi
12510 archive_cmds_need_lc='no'
12511 hardcode_libdir_separator=:
12512 ;;
12513
12514 solaris*)
12515 no_undefined_flag=' -z defs'
12516 if test "$GCC" = yes; then
12517 wlarc='${wl}'
12518 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12520 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12521 else
12522 case `$CC -V 2>&1` in
12523 *"Compilers 5.0"*)
12524 wlarc=''
12525 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12528 ;;
12529 *)
12530 wlarc='${wl}'
12531 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12533 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12534 ;;
12535 esac
12536 fi
12537 hardcode_libdir_flag_spec='-R$libdir'
12538 hardcode_shlibpath_var=no
12539 case $host_os in
12540 solaris2.[0-5] | solaris2.[0-5].*) ;;
12541 *)
12542 # The compiler driver will combine and reorder linker options,
12543 # but understands `-z linker_flag'. GCC discards it without `$wl',
12544 # but is careful enough not to reorder.
12545 # Supported since Solaris 2.6 (maybe 2.5.1?)
12546 if test "$GCC" = yes; then
12547 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12548 else
12549 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12550 fi
12551 ;;
12552 esac
12553 link_all_deplibs=yes
12554 ;;
12555
12556 sunos4*)
12557 if test "x$host_vendor" = xsequent; then
12558 # Use $CC to link under sequent, because it throws in some extra .o
12559 # files that make .init and .fini sections work.
12560 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12561 else
12562 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12563 fi
12564 hardcode_libdir_flag_spec='-L$libdir'
12565 hardcode_direct=yes
12566 hardcode_minus_L=yes
12567 hardcode_shlibpath_var=no
12568 ;;
12569
12570 sysv4)
12571 case $host_vendor in
12572 sni)
12573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_direct=yes # is this really true???
12575 ;;
12576 siemens)
12577 ## LD is ld it makes a PLAMLIB
12578 ## CC just makes a GrossModule.
12579 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12580 reload_cmds='$CC -r -o $output$reload_objs'
12581 hardcode_direct=no
12582 ;;
12583 motorola)
12584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12585 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12586 ;;
12587 esac
12588 runpath_var='LD_RUN_PATH'
12589 hardcode_shlibpath_var=no
12590 ;;
12591
12592 sysv4.3*)
12593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12594 hardcode_shlibpath_var=no
12595 export_dynamic_flag_spec='-Bexport'
12596 ;;
12597
12598 sysv4*MP*)
12599 if test -d /usr/nec; then
12600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12601 hardcode_shlibpath_var=no
12602 runpath_var=LD_RUN_PATH
12603 hardcode_runpath_var=yes
12604 ld_shlibs=yes
12605 fi
12606 ;;
12607
12608 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12609 no_undefined_flag='${wl}-z,text'
12610 archive_cmds_need_lc=no
12611 hardcode_shlibpath_var=no
12612 runpath_var='LD_RUN_PATH'
12613
12614 if test "$GCC" = yes; then
12615 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12617 else
12618 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620 fi
12621 ;;
12622
12623 sysv5* | sco3.2v5* | sco5v6*)
12624 # Note: We can NOT use -z defs as we might desire, because we do not
12625 # link with -lc, and that would cause any symbols used from libc to
12626 # always be unresolved, which means just about no library would
12627 # ever link correctly. If we're not using GNU ld we use -z text
12628 # though, which does catch some bad symbols but isn't as heavy-handed
12629 # as -z defs.
12630 no_undefined_flag='${wl}-z,text'
12631 allow_undefined_flag='${wl}-z,nodefs'
12632 archive_cmds_need_lc=no
12633 hardcode_shlibpath_var=no
12634 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12635 hardcode_libdir_separator=':'
12636 link_all_deplibs=yes
12637 export_dynamic_flag_spec='${wl}-Bexport'
12638 runpath_var='LD_RUN_PATH'
12639
12640 if test "$GCC" = yes; then
12641 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12643 else
12644 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646 fi
12647 ;;
12648
12649 uts4*)
12650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_shlibpath_var=no
12653 ;;
12654
12655 *)
12656 ld_shlibs=no
12657 ;;
12658 esac
12659
12660 if test x$host_vendor = xsni; then
12661 case $host in
12662 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12663 export_dynamic_flag_spec='${wl}-Blargedynsym'
12664 ;;
12665 esac
12666 fi
12667 fi
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12670 $as_echo "$ld_shlibs" >&6; }
12671 test "$ld_shlibs" = no && can_build_shared=no
12672
12673 with_gnu_ld=$with_gnu_ld
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 #
12690 # Do we need to explicitly link libc?
12691 #
12692 case "x$archive_cmds_need_lc" in
12693 x|xyes)
12694 # Assume -lc should be added
12695 archive_cmds_need_lc=yes
12696
12697 if test "$enable_shared" = yes && test "$GCC" = yes; then
12698 case $archive_cmds in
12699 *'~'*)
12700 # FIXME: we may have to deal with multi-command sequences.
12701 ;;
12702 '$CC '*)
12703 # Test whether the compiler implicitly links with -lc since on some
12704 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12705 # to ld, don't add -lc before -lgcc.
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12707 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12708 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 $RM conftest*
12712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12715 (eval $ac_compile) 2>&5
12716 ac_status=$?
12717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718 test $ac_status = 0; } 2>conftest.err; then
12719 soname=conftest
12720 lib=conftest
12721 libobjs=conftest.$ac_objext
12722 deplibs=
12723 wl=$lt_prog_compiler_wl
12724 pic_flag=$lt_prog_compiler_pic
12725 compiler_flags=-v
12726 linker_flags=-v
12727 verstring=
12728 output_objdir=.
12729 libname=conftest
12730 lt_save_allow_undefined_flag=$allow_undefined_flag
12731 allow_undefined_flag=
12732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12733 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12734 ac_status=$?
12735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736 test $ac_status = 0; }
12737 then
12738 lt_cv_archive_cmds_need_lc=no
12739 else
12740 lt_cv_archive_cmds_need_lc=yes
12741 fi
12742 allow_undefined_flag=$lt_save_allow_undefined_flag
12743 else
12744 cat conftest.err 1>&5
12745 fi
12746 $RM conftest*
12747
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12750 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12751 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12752 ;;
12753 esac
12754 fi
12755 ;;
12756 esac
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12915 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12916
12917 if test "$GCC" = yes; then
12918 case $host_os in
12919 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12920 *) lt_awk_arg="/^libraries:/" ;;
12921 esac
12922 case $host_os in
12923 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12924 *) lt_sed_strip_eq="s,=/,/,g" ;;
12925 esac
12926 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12927 case $lt_search_path_spec in
12928 *\;*)
12929 # if the path contains ";" then we assume it to be the separator
12930 # otherwise default to the standard path separator (i.e. ":") - it is
12931 # assumed that no part of a normal pathname contains ";" but that should
12932 # okay in the real world where ";" in dirpaths is itself problematic.
12933 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12934 ;;
12935 *)
12936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12937 ;;
12938 esac
12939 # Ok, now we have the path, separated by spaces, we can step through it
12940 # and add multilib dir if necessary.
12941 lt_tmp_lt_search_path_spec=
12942 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12943 for lt_sys_path in $lt_search_path_spec; do
12944 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12946 else
12947 test -d "$lt_sys_path" && \
12948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12949 fi
12950 done
12951 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12952 BEGIN {RS=" "; FS="/|\n";} {
12953 lt_foo="";
12954 lt_count=0;
12955 for (lt_i = NF; lt_i > 0; lt_i--) {
12956 if ($lt_i != "" && $lt_i != ".") {
12957 if ($lt_i == "..") {
12958 lt_count++;
12959 } else {
12960 if (lt_count == 0) {
12961 lt_foo="/" $lt_i lt_foo;
12962 } else {
12963 lt_count--;
12964 }
12965 }
12966 }
12967 }
12968 if (lt_foo != "") { lt_freq[lt_foo]++; }
12969 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12970 }'`
12971 # AWK program above erroneously prepends '/' to C:/dos/paths
12972 # for these hosts.
12973 case $host_os in
12974 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12975 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12976 esac
12977 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12978 else
12979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12980 fi
12981 library_names_spec=
12982 libname_spec='lib$name'
12983 soname_spec=
12984 shrext_cmds=".so"
12985 postinstall_cmds=
12986 postuninstall_cmds=
12987 finish_cmds=
12988 finish_eval=
12989 shlibpath_var=
12990 shlibpath_overrides_runpath=unknown
12991 version_type=none
12992 dynamic_linker="$host_os ld.so"
12993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12994 need_lib_prefix=unknown
12995 hardcode_into_libs=no
12996
12997 # when you set need_version to no, make sure it does not cause -set_version
12998 # flags to be left without arguments
12999 need_version=unknown
13000
13001 case $host_os in
13002 aix3*)
13003 version_type=linux
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13005 shlibpath_var=LIBPATH
13006
13007 # AIX 3 has no versioning support, so we append a major version to the name.
13008 soname_spec='${libname}${release}${shared_ext}$major'
13009 ;;
13010
13011 aix[4-9]*)
13012 version_type=linux
13013 need_lib_prefix=no
13014 need_version=no
13015 hardcode_into_libs=yes
13016 if test "$host_cpu" = ia64; then
13017 # AIX 5 supports IA64
13018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 else
13021 # With GCC up to 2.95.x, collect2 would create an import file
13022 # for dependence libraries. The import file would start with
13023 # the line `#! .'. This would cause the generated library to
13024 # depend on `.', always an invalid library. This was fixed in
13025 # development snapshots of GCC prior to 3.0.
13026 case $host_os in
13027 aix4 | aix4.[01] | aix4.[01].*)
13028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13029 echo ' yes '
13030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13031 :
13032 else
13033 can_build_shared=no
13034 fi
13035 ;;
13036 esac
13037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13038 # soname into executable. Probably we can add versioning support to
13039 # collect2, so additional links can be useful in future.
13040 if test "$aix_use_runtimelinking" = yes; then
13041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13042 # instead of lib<name>.a to let people know that these are not
13043 # typical AIX shared libraries.
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 else
13046 # We preserve .a as extension for shared libraries through AIX4.2
13047 # and later when we are not doing run time linking.
13048 library_names_spec='${libname}${release}.a $libname.a'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 fi
13051 shlibpath_var=LIBPATH
13052 fi
13053 ;;
13054
13055 amigaos*)
13056 case $host_cpu in
13057 powerpc)
13058 # Since July 2007 AmigaOS4 officially supports .so libraries.
13059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 ;;
13062 m68k)
13063 library_names_spec='$libname.ixlibrary $libname.a'
13064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13065 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13066 ;;
13067 esac
13068 ;;
13069
13070 beos*)
13071 library_names_spec='${libname}${shared_ext}'
13072 dynamic_linker="$host_os ld.so"
13073 shlibpath_var=LIBRARY_PATH
13074 ;;
13075
13076 bsdi[45]*)
13077 version_type=linux
13078 need_version=no
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13085 # the default ld.so.conf also contains /usr/contrib/lib and
13086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13087 # libtool to hard-code these into programs
13088 ;;
13089
13090 cygwin* | mingw* | pw32* | cegcc*)
13091 version_type=windows
13092 shrext_cmds=".dll"
13093 need_version=no
13094 need_lib_prefix=no
13095
13096 case $GCC,$cc_basename in
13097 yes,*)
13098 # gcc
13099 library_names_spec='$libname.dll.a'
13100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13101 postinstall_cmds='base_file=`basename \${file}`~
13102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13103 dldir=$destdir/`dirname \$dlpath`~
13104 test -d \$dldir || mkdir -p \$dldir~
13105 $install_prog $dir/$dlname \$dldir/$dlname~
13106 chmod a+x \$dldir/$dlname~
13107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13109 fi'
13110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13111 dlpath=$dir/\$dldll~
13112 $RM \$dlpath'
13113 shlibpath_overrides_runpath=yes
13114
13115 case $host_os in
13116 cygwin*)
13117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13118 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119
13120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13121 ;;
13122 mingw* | cegcc*)
13123 # MinGW DLLs use traditional 'lib' prefix
13124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13125 ;;
13126 pw32*)
13127 # pw32 DLLs use 'pw' prefix rather than 'lib'
13128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13129 ;;
13130 esac
13131 dynamic_linker='Win32 ld.exe'
13132 ;;
13133
13134 *,cl*)
13135 # Native MSVC
13136 libname_spec='$name'
13137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13138 library_names_spec='${libname}.dll.lib'
13139
13140 case $build_os in
13141 mingw*)
13142 sys_lib_search_path_spec=
13143 lt_save_ifs=$IFS
13144 IFS=';'
13145 for lt_path in $LIB
13146 do
13147 IFS=$lt_save_ifs
13148 # Let DOS variable expansion print the short 8.3 style file name.
13149 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13150 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13151 done
13152 IFS=$lt_save_ifs
13153 # Convert to MSYS style.
13154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13155 ;;
13156 cygwin*)
13157 # Convert to unix form, then to dos form, then back to unix form
13158 # but this time dos style (no spaces!) so that the unix form looks
13159 # like /cygdrive/c/PROGRA~1:/cygdr...
13160 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13161 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13162 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13163 ;;
13164 *)
13165 sys_lib_search_path_spec="$LIB"
13166 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13167 # It is most probably a Windows format PATH.
13168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13169 else
13170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13171 fi
13172 # FIXME: find the short name or the path components, as spaces are
13173 # common. (e.g. "Program Files" -> "PROGRA~1")
13174 ;;
13175 esac
13176
13177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13178 postinstall_cmds='base_file=`basename \${file}`~
13179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13180 dldir=$destdir/`dirname \$dlpath`~
13181 test -d \$dldir || mkdir -p \$dldir~
13182 $install_prog $dir/$dlname \$dldir/$dlname'
13183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13184 dlpath=$dir/\$dldll~
13185 $RM \$dlpath'
13186 shlibpath_overrides_runpath=yes
13187 dynamic_linker='Win32 link.exe'
13188 ;;
13189
13190 *)
13191 # Assume MSVC wrapper
13192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13193 dynamic_linker='Win32 ld.exe'
13194 ;;
13195 esac
13196 # FIXME: first we should search . and the directory the executable is in
13197 shlibpath_var=PATH
13198 ;;
13199
13200 darwin* | rhapsody*)
13201 dynamic_linker="$host_os dyld"
13202 version_type=darwin
13203 need_lib_prefix=no
13204 need_version=no
13205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13206 soname_spec='${libname}${release}${major}$shared_ext'
13207 shlibpath_overrides_runpath=yes
13208 shlibpath_var=DYLD_LIBRARY_PATH
13209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13210
13211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13213 ;;
13214
13215 dgux*)
13216 version_type=linux
13217 need_lib_prefix=no
13218 need_version=no
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 shlibpath_var=LD_LIBRARY_PATH
13222 ;;
13223
13224 freebsd1*)
13225 dynamic_linker=no
13226 ;;
13227
13228 freebsd* | dragonfly*)
13229 # DragonFly does not have aout. When/if they implement a new
13230 # versioning mechanism, adjust this.
13231 if test -x /usr/bin/objformat; then
13232 objformat=`/usr/bin/objformat`
13233 else
13234 case $host_os in
13235 freebsd[123]*) objformat=aout ;;
13236 *) objformat=elf ;;
13237 esac
13238 fi
13239 version_type=freebsd-$objformat
13240 case $version_type in
13241 freebsd-elf*)
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13243 need_version=no
13244 need_lib_prefix=no
13245 ;;
13246 freebsd-*)
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13248 need_version=yes
13249 ;;
13250 esac
13251 shlibpath_var=LD_LIBRARY_PATH
13252 case $host_os in
13253 freebsd2*)
13254 shlibpath_overrides_runpath=yes
13255 ;;
13256 freebsd3.[01]* | freebsdelf3.[01]*)
13257 shlibpath_overrides_runpath=yes
13258 hardcode_into_libs=yes
13259 ;;
13260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13262 shlibpath_overrides_runpath=no
13263 hardcode_into_libs=yes
13264 ;;
13265 *) # from 4.6 on, and DragonFly
13266 shlibpath_overrides_runpath=yes
13267 hardcode_into_libs=yes
13268 ;;
13269 esac
13270 ;;
13271
13272 gnu*)
13273 version_type=linux
13274 need_lib_prefix=no
13275 need_version=no
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 hardcode_into_libs=yes
13280 ;;
13281
13282 haiku*)
13283 version_type=linux
13284 need_lib_prefix=no
13285 need_version=no
13286 dynamic_linker="$host_os runtime_loader"
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LIBRARY_PATH
13290 shlibpath_overrides_runpath=yes
13291 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13292 hardcode_into_libs=yes
13293 ;;
13294
13295 hpux9* | hpux10* | hpux11*)
13296 # Give a soname corresponding to the major version so that dld.sl refuses to
13297 # link against other versions.
13298 version_type=sunos
13299 need_lib_prefix=no
13300 need_version=no
13301 case $host_cpu in
13302 ia64*)
13303 shrext_cmds='.so'
13304 hardcode_into_libs=yes
13305 dynamic_linker="$host_os dld.so"
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13309 soname_spec='${libname}${release}${shared_ext}$major'
13310 if test "X$HPUX_IA64_MODE" = X32; then
13311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13312 else
13313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13314 fi
13315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316 ;;
13317 hppa*64*)
13318 shrext_cmds='.sl'
13319 hardcode_into_libs=yes
13320 dynamic_linker="$host_os dld.sl"
13321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13327 ;;
13328 *)
13329 shrext_cmds='.sl'
13330 dynamic_linker="$host_os dld.sl"
13331 shlibpath_var=SHLIB_PATH
13332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 ;;
13336 esac
13337 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13338 postinstall_cmds='chmod 555 $lib'
13339 # or fails outright, so override atomically:
13340 install_override_mode=555
13341 ;;
13342
13343 interix[3-9]*)
13344 version_type=linux
13345 need_lib_prefix=no
13346 need_version=no
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
13349 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=no
13352 hardcode_into_libs=yes
13353 ;;
13354
13355 irix5* | irix6* | nonstopux*)
13356 case $host_os in
13357 nonstopux*) version_type=nonstopux ;;
13358 *)
13359 if test "$lt_cv_prog_gnu_ld" = yes; then
13360 version_type=linux
13361 else
13362 version_type=irix
13363 fi ;;
13364 esac
13365 need_lib_prefix=no
13366 need_version=no
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13369 case $host_os in
13370 irix5* | nonstopux*)
13371 libsuff= shlibsuff=
13372 ;;
13373 *)
13374 case $LD in # libtool.m4 will add one of these switches to LD
13375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13376 libsuff= shlibsuff= libmagic=32-bit;;
13377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13378 libsuff=32 shlibsuff=N32 libmagic=N32;;
13379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13380 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13381 *) libsuff= shlibsuff= libmagic=never-match;;
13382 esac
13383 ;;
13384 esac
13385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13386 shlibpath_overrides_runpath=no
13387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13389 hardcode_into_libs=yes
13390 ;;
13391
13392 # No shared lib support for Linux oldld, aout, or coff.
13393 linux*oldld* | linux*aout* | linux*coff*)
13394 dynamic_linker=no
13395 ;;
13396
13397 # This must be Linux ELF.
13398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13399 version_type=linux
13400 need_lib_prefix=no
13401 need_version=no
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=no
13407
13408 # Some binutils ld are patched to set DT_RUNPATH
13409 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 lt_cv_shlibpath_overrides_runpath=no
13413 save_LDFLAGS=$LDFLAGS
13414 save_libdir=$libdir
13415 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13416 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419
13420 int
13421 main ()
13422 {
13423
13424 ;
13425 return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13430 lt_cv_shlibpath_overrides_runpath=yes
13431 fi
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LDFLAGS=$save_LDFLAGS
13436 libdir=$save_libdir
13437
13438 fi
13439
13440 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13441
13442 # This implies no fast_install, which is unacceptable.
13443 # Some rework will be needed to allow for fast_install
13444 # before this can be enabled.
13445 hardcode_into_libs=yes
13446
13447 # Append ld.so.conf contents to the search path
13448 if test -f /etc/ld.so.conf; then
13449 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13450 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13451 fi
13452
13453 # We used to test for /lib/ld.so.1 and disable shared libraries on
13454 # powerpc, because MkLinux only supported shared libraries with the
13455 # GNU dynamic linker. Since this was broken with cross compilers,
13456 # most powerpc-linux boxes support dynamic linking these days and
13457 # people can always --disable-shared, the test was removed, and we
13458 # assume the GNU/Linux dynamic linker is in use.
13459 dynamic_linker='GNU/Linux ld.so'
13460 ;;
13461
13462 netbsd*)
13463 version_type=sunos
13464 need_lib_prefix=no
13465 need_version=no
13466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13469 dynamic_linker='NetBSD (a.out) ld.so'
13470 else
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 dynamic_linker='NetBSD ld.elf_so'
13474 fi
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 hardcode_into_libs=yes
13478 ;;
13479
13480 newsos6)
13481 version_type=linux
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 ;;
13486
13487 *nto* | *qnx*)
13488 version_type=qnx
13489 need_lib_prefix=no
13490 need_version=no
13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492 soname_spec='${libname}${release}${shared_ext}$major'
13493 shlibpath_var=LD_LIBRARY_PATH
13494 shlibpath_overrides_runpath=no
13495 hardcode_into_libs=yes
13496 dynamic_linker='ldqnx.so'
13497 ;;
13498
13499 openbsd*)
13500 version_type=sunos
13501 sys_lib_dlsearch_path_spec="/usr/lib"
13502 need_lib_prefix=no
13503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13504 case $host_os in
13505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13506 *) need_version=no ;;
13507 esac
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13512 case $host_os in
13513 openbsd2.[89] | openbsd2.[89].*)
13514 shlibpath_overrides_runpath=no
13515 ;;
13516 *)
13517 shlibpath_overrides_runpath=yes
13518 ;;
13519 esac
13520 else
13521 shlibpath_overrides_runpath=yes
13522 fi
13523 ;;
13524
13525 os2*)
13526 libname_spec='$name'
13527 shrext_cmds=".dll"
13528 need_lib_prefix=no
13529 library_names_spec='$libname${shared_ext} $libname.a'
13530 dynamic_linker='OS/2 ld.exe'
13531 shlibpath_var=LIBPATH
13532 ;;
13533
13534 osf3* | osf4* | osf5*)
13535 version_type=osf
13536 need_lib_prefix=no
13537 need_version=no
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13543 ;;
13544
13545 rdos*)
13546 dynamic_linker=no
13547 ;;
13548
13549 solaris*)
13550 version_type=linux
13551 need_lib_prefix=no
13552 need_version=no
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=yes
13557 hardcode_into_libs=yes
13558 # ldd complains unless libraries are executable
13559 postinstall_cmds='chmod +x $lib'
13560 ;;
13561
13562 sunos4*)
13563 version_type=sunos
13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 shlibpath_overrides_runpath=yes
13568 if test "$with_gnu_ld" = yes; then
13569 need_lib_prefix=no
13570 fi
13571 need_version=yes
13572 ;;
13573
13574 sysv4 | sysv4.3*)
13575 version_type=linux
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 case $host_vendor in
13580 sni)
13581 shlibpath_overrides_runpath=no
13582 need_lib_prefix=no
13583 runpath_var=LD_RUN_PATH
13584 ;;
13585 siemens)
13586 need_lib_prefix=no
13587 ;;
13588 motorola)
13589 need_lib_prefix=no
13590 need_version=no
13591 shlibpath_overrides_runpath=no
13592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13593 ;;
13594 esac
13595 ;;
13596
13597 sysv4*MP*)
13598 if test -d /usr/nec ;then
13599 version_type=linux
13600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13601 soname_spec='$libname${shared_ext}.$major'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 fi
13604 ;;
13605
13606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13607 version_type=freebsd-elf
13608 need_lib_prefix=no
13609 need_version=no
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 shlibpath_overrides_runpath=yes
13614 hardcode_into_libs=yes
13615 if test "$with_gnu_ld" = yes; then
13616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13617 else
13618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13619 case $host_os in
13620 sco3.2v5*)
13621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13622 ;;
13623 esac
13624 fi
13625 sys_lib_dlsearch_path_spec='/usr/lib'
13626 ;;
13627
13628 tpf*)
13629 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13630 version_type=linux
13631 need_lib_prefix=no
13632 need_version=no
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 shlibpath_overrides_runpath=no
13636 hardcode_into_libs=yes
13637 ;;
13638
13639 uts4*)
13640 version_type=linux
13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642 soname_spec='${libname}${release}${shared_ext}$major'
13643 shlibpath_var=LD_LIBRARY_PATH
13644 ;;
13645
13646 *)
13647 dynamic_linker=no
13648 ;;
13649 esac
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13651 $as_echo "$dynamic_linker" >&6; }
13652 test "$dynamic_linker" = no && can_build_shared=no
13653
13654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13655 if test "$GCC" = yes; then
13656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13657 fi
13658
13659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13661 fi
13662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13664 fi
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13758 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13759 hardcode_action=
13760 if test -n "$hardcode_libdir_flag_spec" ||
13761 test -n "$runpath_var" ||
13762 test "X$hardcode_automatic" = "Xyes" ; then
13763
13764 # We can hardcode non-existent directories.
13765 if test "$hardcode_direct" != no &&
13766 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13767 # have to relink, otherwise we might link with an installed library
13768 # when we should be linking with a yet-to-be-installed one
13769 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13770 test "$hardcode_minus_L" != no; then
13771 # Linking always hardcodes the temporary library directory.
13772 hardcode_action=relink
13773 else
13774 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13775 hardcode_action=immediate
13776 fi
13777 else
13778 # We cannot hardcode anything, or else we can only hardcode existing
13779 # directories.
13780 hardcode_action=unsupported
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13783 $as_echo "$hardcode_action" >&6; }
13784
13785 if test "$hardcode_action" = relink ||
13786 test "$inherit_rpath" = yes; then
13787 # Fast installation is not supported
13788 enable_fast_install=no
13789 elif test "$shlibpath_overrides_runpath" = yes ||
13790 test "$enable_shared" = no; then
13791 # Fast installation is not necessary
13792 enable_fast_install=needless
13793 fi
13794
13795
13796
13797
13798
13799
13800 if test "x$enable_dlopen" != xyes; then
13801 enable_dlopen=unknown
13802 enable_dlopen_self=unknown
13803 enable_dlopen_self_static=unknown
13804 else
13805 lt_cv_dlopen=no
13806 lt_cv_dlopen_libs=
13807
13808 case $host_os in
13809 beos*)
13810 lt_cv_dlopen="load_add_on"
13811 lt_cv_dlopen_libs=
13812 lt_cv_dlopen_self=yes
13813 ;;
13814
13815 mingw* | pw32* | cegcc*)
13816 lt_cv_dlopen="LoadLibrary"
13817 lt_cv_dlopen_libs=
13818 ;;
13819
13820 cygwin*)
13821 lt_cv_dlopen="dlopen"
13822 lt_cv_dlopen_libs=
13823 ;;
13824
13825 darwin*)
13826 # if libdl is installed we need to link against it
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13829 if ${ac_cv_lib_dl_dlopen+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-ldl $LIBS"
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836
13837 /* Override any GCC internal prototype to avoid an error.
13838 Use char because int might match the return type of a GCC
13839 builtin and then its argument prototype would still apply. */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 char dlopen ();
13844 int
13845 main ()
13846 {
13847 return dlopen ();
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 ac_cv_lib_dl_dlopen=yes
13854 else
13855 ac_cv_lib_dl_dlopen=no
13856 fi
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13865 else
13866
13867 lt_cv_dlopen="dyld"
13868 lt_cv_dlopen_libs=
13869 lt_cv_dlopen_self=yes
13870
13871 fi
13872
13873 ;;
13874
13875 *)
13876 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13877 if test "x$ac_cv_func_shl_load" = xyes; then :
13878 lt_cv_dlopen="shl_load"
13879 else
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13882 if ${ac_cv_lib_dld_shl_load+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-ldld $LIBS"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char shl_load ();
13897 int
13898 main ()
13899 {
13900 return shl_load ();
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_lib_dld_shl_load=yes
13907 else
13908 ac_cv_lib_dld_shl_load=no
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13913 fi
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13915 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13916 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13918 else
13919 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13920 if test "x$ac_cv_func_dlopen" = xyes; then :
13921 lt_cv_dlopen="dlopen"
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13925 if ${ac_cv_lib_dl_dlopen+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-ldl $LIBS"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936 #ifdef __cplusplus
13937 extern "C"
13938 #endif
13939 char dlopen ();
13940 int
13941 main ()
13942 {
13943 return dlopen ();
13944 ;
13945 return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_lib_dl_dlopen=yes
13950 else
13951 ac_cv_lib_dl_dlopen=no
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13964 if ${ac_cv_lib_svld_dlopen+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 ac_check_lib_save_LIBS=$LIBS
13968 LIBS="-lsvld $LIBS"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 char dlopen ();
13979 int
13980 main ()
13981 {
13982 return dlopen ();
13983 ;
13984 return 0;
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"; then :
13988 ac_cv_lib_svld_dlopen=yes
13989 else
13990 ac_cv_lib_svld_dlopen=no
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 LIBS=$ac_check_lib_save_LIBS
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14000 else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14003 if ${ac_cv_lib_dld_dld_link+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ldld $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char dld_link ();
14018 int
14019 main ()
14020 {
14021 return dld_link ();
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_lib_dld_dld_link=yes
14028 else
14029 ac_cv_lib_dld_dld_link=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14036 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14037 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14039 fi
14040
14041
14042 fi
14043
14044
14045 fi
14046
14047
14048 fi
14049
14050
14051 fi
14052
14053
14054 fi
14055
14056 ;;
14057 esac
14058
14059 if test "x$lt_cv_dlopen" != xno; then
14060 enable_dlopen=yes
14061 else
14062 enable_dlopen=no
14063 fi
14064
14065 case $lt_cv_dlopen in
14066 dlopen)
14067 save_CPPFLAGS="$CPPFLAGS"
14068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14069
14070 save_LDFLAGS="$LDFLAGS"
14071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14072
14073 save_LIBS="$LIBS"
14074 LIBS="$lt_cv_dlopen_libs $LIBS"
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14077 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14078 if ${lt_cv_dlopen_self+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 if test "$cross_compiling" = yes; then :
14082 lt_cv_dlopen_self=cross
14083 else
14084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14085 lt_status=$lt_dlunknown
14086 cat > conftest.$ac_ext <<_LT_EOF
14087 #line $LINENO "configure"
14088 #include "confdefs.h"
14089
14090 #if HAVE_DLFCN_H
14091 #include <dlfcn.h>
14092 #endif
14093
14094 #include <stdio.h>
14095
14096 #ifdef RTLD_GLOBAL
14097 # define LT_DLGLOBAL RTLD_GLOBAL
14098 #else
14099 # ifdef DL_GLOBAL
14100 # define LT_DLGLOBAL DL_GLOBAL
14101 # else
14102 # define LT_DLGLOBAL 0
14103 # endif
14104 #endif
14105
14106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14107 find out it does not work in some platform. */
14108 #ifndef LT_DLLAZY_OR_NOW
14109 # ifdef RTLD_LAZY
14110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14111 # else
14112 # ifdef DL_LAZY
14113 # define LT_DLLAZY_OR_NOW DL_LAZY
14114 # else
14115 # ifdef RTLD_NOW
14116 # define LT_DLLAZY_OR_NOW RTLD_NOW
14117 # else
14118 # ifdef DL_NOW
14119 # define LT_DLLAZY_OR_NOW DL_NOW
14120 # else
14121 # define LT_DLLAZY_OR_NOW 0
14122 # endif
14123 # endif
14124 # endif
14125 # endif
14126 #endif
14127
14128 /* When -fvisbility=hidden is used, assume the code has been annotated
14129 correspondingly for the symbols needed. */
14130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14131 int fnord () __attribute__((visibility("default")));
14132 #endif
14133
14134 int fnord () { return 42; }
14135 int main ()
14136 {
14137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14138 int status = $lt_dlunknown;
14139
14140 if (self)
14141 {
14142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14143 else
14144 {
14145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14146 else puts (dlerror ());
14147 }
14148 /* dlclose (self); */
14149 }
14150 else
14151 puts (dlerror ());
14152
14153 return status;
14154 }
14155 _LT_EOF
14156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14157 (eval $ac_link) 2>&5
14158 ac_status=$?
14159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14161 (./conftest; exit; ) >&5 2>/dev/null
14162 lt_status=$?
14163 case x$lt_status in
14164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14166 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14167 esac
14168 else :
14169 # compilation failed
14170 lt_cv_dlopen_self=no
14171 fi
14172 fi
14173 rm -fr conftest*
14174
14175
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14178 $as_echo "$lt_cv_dlopen_self" >&6; }
14179
14180 if test "x$lt_cv_dlopen_self" = xyes; then
14181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14183 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14184 if ${lt_cv_dlopen_self_static+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test "$cross_compiling" = yes; then :
14188 lt_cv_dlopen_self_static=cross
14189 else
14190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14191 lt_status=$lt_dlunknown
14192 cat > conftest.$ac_ext <<_LT_EOF
14193 #line $LINENO "configure"
14194 #include "confdefs.h"
14195
14196 #if HAVE_DLFCN_H
14197 #include <dlfcn.h>
14198 #endif
14199
14200 #include <stdio.h>
14201
14202 #ifdef RTLD_GLOBAL
14203 # define LT_DLGLOBAL RTLD_GLOBAL
14204 #else
14205 # ifdef DL_GLOBAL
14206 # define LT_DLGLOBAL DL_GLOBAL
14207 # else
14208 # define LT_DLGLOBAL 0
14209 # endif
14210 #endif
14211
14212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14213 find out it does not work in some platform. */
14214 #ifndef LT_DLLAZY_OR_NOW
14215 # ifdef RTLD_LAZY
14216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14217 # else
14218 # ifdef DL_LAZY
14219 # define LT_DLLAZY_OR_NOW DL_LAZY
14220 # else
14221 # ifdef RTLD_NOW
14222 # define LT_DLLAZY_OR_NOW RTLD_NOW
14223 # else
14224 # ifdef DL_NOW
14225 # define LT_DLLAZY_OR_NOW DL_NOW
14226 # else
14227 # define LT_DLLAZY_OR_NOW 0
14228 # endif
14229 # endif
14230 # endif
14231 # endif
14232 #endif
14233
14234 /* When -fvisbility=hidden is used, assume the code has been annotated
14235 correspondingly for the symbols needed. */
14236 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14237 int fnord () __attribute__((visibility("default")));
14238 #endif
14239
14240 int fnord () { return 42; }
14241 int main ()
14242 {
14243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14244 int status = $lt_dlunknown;
14245
14246 if (self)
14247 {
14248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14249 else
14250 {
14251 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14252 else puts (dlerror ());
14253 }
14254 /* dlclose (self); */
14255 }
14256 else
14257 puts (dlerror ());
14258
14259 return status;
14260 }
14261 _LT_EOF
14262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14263 (eval $ac_link) 2>&5
14264 ac_status=$?
14265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14266 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14267 (./conftest; exit; ) >&5 2>/dev/null
14268 lt_status=$?
14269 case x$lt_status in
14270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14273 esac
14274 else :
14275 # compilation failed
14276 lt_cv_dlopen_self_static=no
14277 fi
14278 fi
14279 rm -fr conftest*
14280
14281
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14285 fi
14286
14287 CPPFLAGS="$save_CPPFLAGS"
14288 LDFLAGS="$save_LDFLAGS"
14289 LIBS="$save_LIBS"
14290 ;;
14291 esac
14292
14293 case $lt_cv_dlopen_self in
14294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14295 *) enable_dlopen_self=unknown ;;
14296 esac
14297
14298 case $lt_cv_dlopen_self_static in
14299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14300 *) enable_dlopen_self_static=unknown ;;
14301 esac
14302 fi
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320 striplib=
14321 old_striplib=
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328 $as_echo "yes" >&6; }
14329 else
14330 # FIXME - insert some real tests, host_os isn't really good enough
14331 case $host_os in
14332 darwin*)
14333 if test -n "$STRIP" ; then
14334 striplib="$STRIP -x"
14335 old_striplib="$STRIP -S"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338 else
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341 fi
14342 ;;
14343 *)
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14346 ;;
14347 esac
14348 fi
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361 # Report which library types will actually be built
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14365 $as_echo "$can_build_shared" >&6; }
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14368 $as_echo_n "checking whether to build shared libraries... " >&6; }
14369 test "$can_build_shared" = "no" && enable_shared=no
14370
14371 # On AIX, shared libraries and static libraries use the same namespace, and
14372 # are all built from PIC.
14373 case $host_os in
14374 aix3*)
14375 test "$enable_shared" = yes && enable_static=no
14376 if test -n "$RANLIB"; then
14377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14378 postinstall_cmds='$RANLIB $lib'
14379 fi
14380 ;;
14381
14382 aix[4-9]*)
14383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14384 test "$enable_shared" = yes && enable_static=no
14385 fi
14386 ;;
14387 esac
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14389 $as_echo "$enable_shared" >&6; }
14390
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14392 $as_echo_n "checking whether to build static libraries... " >&6; }
14393 # Make sure either enable_shared or enable_static is yes.
14394 test "$enable_shared" = yes || enable_static=yes
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14396 $as_echo "$enable_static" >&6; }
14397
14398
14399
14400
14401 fi
14402 ac_ext=c
14403 ac_cpp='$CPP $CPPFLAGS'
14404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407
14408 CC="$lt_save_CC"
14409
14410 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14411 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14412 (test "X$CXX" != "Xg++"))) ; then
14413 ac_ext=cpp
14414 ac_cpp='$CXXCPP $CPPFLAGS'
14415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14419 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14420 if test -z "$CXXCPP"; then
14421 if ${ac_cv_prog_CXXCPP+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 # Double quotes because CXXCPP needs to be expanded
14425 for CXXCPP in "$CXX -E" "/lib/cpp"
14426 do
14427 ac_preproc_ok=false
14428 for ac_cxx_preproc_warn_flag in '' yes
14429 do
14430 # Use a header file that comes with gcc, so configuring glibc
14431 # with a fresh cross-compiler works.
14432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14433 # <limits.h> exists even on freestanding compilers.
14434 # On the NeXT, cc -E runs the code through the compiler's parser,
14435 # not just through cpp. "Syntax error" is here to catch this case.
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 #ifdef __STDC__
14439 # include <limits.h>
14440 #else
14441 # include <assert.h>
14442 #endif
14443 Syntax error
14444 _ACEOF
14445 if ac_fn_cxx_try_cpp "$LINENO"; then :
14446
14447 else
14448 # Broken: fails on valid input.
14449 continue
14450 fi
14451 rm -f conftest.err conftest.i conftest.$ac_ext
14452
14453 # OK, works on sane cases. Now check whether nonexistent headers
14454 # can be detected and how.
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <ac_nonexistent.h>
14458 _ACEOF
14459 if ac_fn_cxx_try_cpp "$LINENO"; then :
14460 # Broken: success on invalid input.
14461 continue
14462 else
14463 # Passes both tests.
14464 ac_preproc_ok=:
14465 break
14466 fi
14467 rm -f conftest.err conftest.i conftest.$ac_ext
14468
14469 done
14470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14471 rm -f conftest.i conftest.err conftest.$ac_ext
14472 if $ac_preproc_ok; then :
14473 break
14474 fi
14475
14476 done
14477 ac_cv_prog_CXXCPP=$CXXCPP
14478
14479 fi
14480 CXXCPP=$ac_cv_prog_CXXCPP
14481 else
14482 ac_cv_prog_CXXCPP=$CXXCPP
14483 fi
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14485 $as_echo "$CXXCPP" >&6; }
14486 ac_preproc_ok=false
14487 for ac_cxx_preproc_warn_flag in '' yes
14488 do
14489 # Use a header file that comes with gcc, so configuring glibc
14490 # with a fresh cross-compiler works.
14491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 # <limits.h> exists even on freestanding compilers.
14493 # On the NeXT, cc -E runs the code through the compiler's parser,
14494 # not just through cpp. "Syntax error" is here to catch this case.
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 #ifdef __STDC__
14498 # include <limits.h>
14499 #else
14500 # include <assert.h>
14501 #endif
14502 Syntax error
14503 _ACEOF
14504 if ac_fn_cxx_try_cpp "$LINENO"; then :
14505
14506 else
14507 # Broken: fails on valid input.
14508 continue
14509 fi
14510 rm -f conftest.err conftest.i conftest.$ac_ext
14511
14512 # OK, works on sane cases. Now check whether nonexistent headers
14513 # can be detected and how.
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <ac_nonexistent.h>
14517 _ACEOF
14518 if ac_fn_cxx_try_cpp "$LINENO"; then :
14519 # Broken: success on invalid input.
14520 continue
14521 else
14522 # Passes both tests.
14523 ac_preproc_ok=:
14524 break
14525 fi
14526 rm -f conftest.err conftest.i conftest.$ac_ext
14527
14528 done
14529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14530 rm -f conftest.i conftest.err conftest.$ac_ext
14531 if $ac_preproc_ok; then :
14532
14533 else
14534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14536 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14537 See \`config.log' for more details" "$LINENO" 5; }
14538 fi
14539
14540 ac_ext=c
14541 ac_cpp='$CPP $CPPFLAGS'
14542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14545
14546 else
14547 _lt_caught_CXX_error=yes
14548 fi
14549
14550 ac_ext=cpp
14551 ac_cpp='$CXXCPP $CPPFLAGS'
14552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14555
14556 archive_cmds_need_lc_CXX=no
14557 allow_undefined_flag_CXX=
14558 always_export_symbols_CXX=no
14559 archive_expsym_cmds_CXX=
14560 compiler_needs_object_CXX=no
14561 export_dynamic_flag_spec_CXX=
14562 hardcode_direct_CXX=no
14563 hardcode_direct_absolute_CXX=no
14564 hardcode_libdir_flag_spec_CXX=
14565 hardcode_libdir_flag_spec_ld_CXX=
14566 hardcode_libdir_separator_CXX=
14567 hardcode_minus_L_CXX=no
14568 hardcode_shlibpath_var_CXX=unsupported
14569 hardcode_automatic_CXX=no
14570 inherit_rpath_CXX=no
14571 module_cmds_CXX=
14572 module_expsym_cmds_CXX=
14573 link_all_deplibs_CXX=unknown
14574 old_archive_cmds_CXX=$old_archive_cmds
14575 reload_flag_CXX=$reload_flag
14576 reload_cmds_CXX=$reload_cmds
14577 no_undefined_flag_CXX=
14578 whole_archive_flag_spec_CXX=
14579 enable_shared_with_static_runtimes_CXX=no
14580
14581 # Source file extension for C++ test sources.
14582 ac_ext=cpp
14583
14584 # Object file extension for compiled C++ test sources.
14585 objext=o
14586 objext_CXX=$objext
14587
14588 # No sense in running all these tests if we already determined that
14589 # the CXX compiler isn't working. Some variables (like enable_shared)
14590 # are currently assumed to apply to all compilers on this platform,
14591 # and will be corrupted by setting them based on a non-working compiler.
14592 if test "$_lt_caught_CXX_error" != yes; then
14593 # Code to be used in simple compile tests
14594 lt_simple_compile_test_code="int some_variable = 0;"
14595
14596 # Code to be used in simple link tests
14597 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14598
14599 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14600
14601
14602
14603
14604
14605
14606 # If no C compiler was specified, use CC.
14607 LTCC=${LTCC-"$CC"}
14608
14609 # If no C compiler flags were specified, use CFLAGS.
14610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14611
14612 # Allow CC to be a program name with arguments.
14613 compiler=$CC
14614
14615
14616 # save warnings/boilerplate of simple test code
14617 ac_outfile=conftest.$ac_objext
14618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14620 _lt_compiler_boilerplate=`cat conftest.err`
14621 $RM conftest*
14622
14623 ac_outfile=conftest.$ac_objext
14624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14626 _lt_linker_boilerplate=`cat conftest.err`
14627 $RM -r conftest*
14628
14629
14630 # Allow CC to be a program name with arguments.
14631 lt_save_CC=$CC
14632 lt_save_CFLAGS=$CFLAGS
14633 lt_save_LD=$LD
14634 lt_save_GCC=$GCC
14635 GCC=$GXX
14636 lt_save_with_gnu_ld=$with_gnu_ld
14637 lt_save_path_LD=$lt_cv_path_LD
14638 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14639 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14640 else
14641 $as_unset lt_cv_prog_gnu_ld
14642 fi
14643 if test -n "${lt_cv_path_LDCXX+set}"; then
14644 lt_cv_path_LD=$lt_cv_path_LDCXX
14645 else
14646 $as_unset lt_cv_path_LD
14647 fi
14648 test -z "${LDCXX+set}" || LD=$LDCXX
14649 CC=${CXX-"c++"}
14650 CFLAGS=$CXXFLAGS
14651 compiler=$CC
14652 compiler_CXX=$CC
14653 for cc_temp in $compiler""; do
14654 case $cc_temp in
14655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14657 \-*) ;;
14658 *) break;;
14659 esac
14660 done
14661 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14662
14663
14664 if test -n "$compiler"; then
14665 # We don't want -fno-exception when compiling C++ code, so set the
14666 # no_builtin_flag separately
14667 if test "$GXX" = yes; then
14668 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14669 else
14670 lt_prog_compiler_no_builtin_flag_CXX=
14671 fi
14672
14673 if test "$GXX" = yes; then
14674 # Set up default GNU C++ configuration
14675
14676
14677
14678 # Check whether --with-gnu-ld was given.
14679 if test "${with_gnu_ld+set}" = set; then :
14680 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14681 else
14682 with_gnu_ld=no
14683 fi
14684
14685 ac_prog=ld
14686 if test "$GCC" = yes; then
14687 # Check if gcc -print-prog-name=ld gives a path.
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14689 $as_echo_n "checking for ld used by $CC... " >&6; }
14690 case $host in
14691 *-*-mingw*)
14692 # gcc leaves a trailing carriage return which upsets mingw
14693 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14694 *)
14695 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14696 esac
14697 case $ac_prog in
14698 # Accept absolute paths.
14699 [\\/]* | ?:[\\/]*)
14700 re_direlt='/[^/][^/]*/\.\./'
14701 # Canonicalize the pathname of ld
14702 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14703 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14704 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14705 done
14706 test -z "$LD" && LD="$ac_prog"
14707 ;;
14708 "")
14709 # If it fails, then pretend we aren't using GCC.
14710 ac_prog=ld
14711 ;;
14712 *)
14713 # If it is relative, then search for the first ld in PATH.
14714 with_gnu_ld=unknown
14715 ;;
14716 esac
14717 elif test "$with_gnu_ld" = yes; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14719 $as_echo_n "checking for GNU ld... " >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14722 $as_echo_n "checking for non-GNU ld... " >&6; }
14723 fi
14724 if ${lt_cv_path_LD+:} false; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 if test -z "$LD"; then
14728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14729 for ac_dir in $PATH; do
14730 IFS="$lt_save_ifs"
14731 test -z "$ac_dir" && ac_dir=.
14732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14733 lt_cv_path_LD="$ac_dir/$ac_prog"
14734 # Check to see if the program is GNU ld. I'd rather use --version,
14735 # but apparently some variants of GNU ld only accept -v.
14736 # Break only if it was the GNU/non-GNU ld that we prefer.
14737 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14738 *GNU* | *'with BFD'*)
14739 test "$with_gnu_ld" != no && break
14740 ;;
14741 *)
14742 test "$with_gnu_ld" != yes && break
14743 ;;
14744 esac
14745 fi
14746 done
14747 IFS="$lt_save_ifs"
14748 else
14749 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14750 fi
14751 fi
14752
14753 LD="$lt_cv_path_LD"
14754 if test -n "$LD"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14756 $as_echo "$LD" >&6; }
14757 else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14760 fi
14761 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14763 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14764 if ${lt_cv_prog_gnu_ld+:} false; then :
14765 $as_echo_n "(cached) " >&6
14766 else
14767 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14768 case `$LD -v 2>&1 </dev/null` in
14769 *GNU* | *'with BFD'*)
14770 lt_cv_prog_gnu_ld=yes
14771 ;;
14772 *)
14773 lt_cv_prog_gnu_ld=no
14774 ;;
14775 esac
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14778 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14779 with_gnu_ld=$lt_cv_prog_gnu_ld
14780
14781
14782
14783
14784
14785
14786
14787 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14788 # archiving commands below assume that GNU ld is being used.
14789 if test "$with_gnu_ld" = yes; then
14790 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792
14793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14795
14796 # If archive_cmds runs LD, not CC, wlarc should be empty
14797 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14798 # investigate it a little bit more. (MM)
14799 wlarc='${wl}'
14800
14801 # ancient GNU ld didn't support --whole-archive et. al.
14802 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14803 $GREP 'no-whole-archive' > /dev/null; then
14804 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14805 else
14806 whole_archive_flag_spec_CXX=
14807 fi
14808 else
14809 with_gnu_ld=no
14810 wlarc=
14811
14812 # A generic and very simple default shared library creation
14813 # command for GNU C++ for the case where it uses the native
14814 # linker, instead of GNU ld. If possible, this setting should
14815 # overridden to take advantage of the native linker features on
14816 # the platform it is being used on.
14817 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14818 fi
14819
14820 # Commands to make compiler produce verbose output that lists
14821 # what "hidden" libraries, object files and flags are used when
14822 # linking a shared library.
14823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14824
14825 else
14826 GXX=no
14827 with_gnu_ld=no
14828 wlarc=
14829 fi
14830
14831 # PORTME: fill in a description of your system's C++ link characteristics
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14834 ld_shlibs_CXX=yes
14835 case $host_os in
14836 aix3*)
14837 # FIXME: insert proper C++ library support
14838 ld_shlibs_CXX=no
14839 ;;
14840 aix[4-9]*)
14841 if test "$host_cpu" = ia64; then
14842 # On IA64, the linker does run time linking by default, so we don't
14843 # have to do anything special.
14844 aix_use_runtimelinking=no
14845 exp_sym_flag='-Bexport'
14846 no_entry_flag=""
14847 else
14848 aix_use_runtimelinking=no
14849
14850 # Test if we are trying to use run time linking or normal
14851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14852 # need to do runtime linking.
14853 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14854 for ld_flag in $LDFLAGS; do
14855 case $ld_flag in
14856 *-brtl*)
14857 aix_use_runtimelinking=yes
14858 break
14859 ;;
14860 esac
14861 done
14862 ;;
14863 esac
14864
14865 exp_sym_flag='-bexport'
14866 no_entry_flag='-bnoentry'
14867 fi
14868
14869 # When large executables or shared objects are built, AIX ld can
14870 # have problems creating the table of contents. If linking a library
14871 # or program results in "error TOC overflow" add -mminimal-toc to
14872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14874
14875 archive_cmds_CXX=''
14876 hardcode_direct_CXX=yes
14877 hardcode_direct_absolute_CXX=yes
14878 hardcode_libdir_separator_CXX=':'
14879 link_all_deplibs_CXX=yes
14880 file_list_spec_CXX='${wl}-f,'
14881
14882 if test "$GXX" = yes; then
14883 case $host_os in aix4.[012]|aix4.[012].*)
14884 # We only want to do this on AIX 4.2 and lower, the check
14885 # below for broken collect2 doesn't work under 4.3+
14886 collect2name=`${CC} -print-prog-name=collect2`
14887 if test -f "$collect2name" &&
14888 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14889 then
14890 # We have reworked collect2
14891 :
14892 else
14893 # We have old collect2
14894 hardcode_direct_CXX=unsupported
14895 # It fails to find uninstalled libraries when the uninstalled
14896 # path is not listed in the libpath. Setting hardcode_minus_L
14897 # to unsupported forces relinking
14898 hardcode_minus_L_CXX=yes
14899 hardcode_libdir_flag_spec_CXX='-L$libdir'
14900 hardcode_libdir_separator_CXX=
14901 fi
14902 esac
14903 shared_flag='-shared'
14904 if test "$aix_use_runtimelinking" = yes; then
14905 shared_flag="$shared_flag "'${wl}-G'
14906 fi
14907 else
14908 # not using gcc
14909 if test "$host_cpu" = ia64; then
14910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14911 # chokes on -Wl,-G. The following line is correct:
14912 shared_flag='-G'
14913 else
14914 if test "$aix_use_runtimelinking" = yes; then
14915 shared_flag='${wl}-G'
14916 else
14917 shared_flag='${wl}-bM:SRE'
14918 fi
14919 fi
14920 fi
14921
14922 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14923 # It seems that -bexpall does not export symbols beginning with
14924 # underscore (_), so it is better to generate a list of symbols to
14925 # export.
14926 always_export_symbols_CXX=yes
14927 if test "$aix_use_runtimelinking" = yes; then
14928 # Warning - without using the other runtime loading flags (-brtl),
14929 # -berok will link without error, but may produce a broken library.
14930 allow_undefined_flag_CXX='-berok'
14931 # Determine the default libpath from the value encoded in an empty
14932 # executable.
14933 if test "${lt_cv_aix_libpath+set}" = set; then
14934 aix_libpath=$lt_cv_aix_libpath
14935 else
14936 if ${lt_cv_aix_libpath__CXX+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 int
14943 main ()
14944 {
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_cxx_try_link "$LINENO"; then :
14951
14952 lt_aix_libpath_sed='
14953 /Import File Strings/,/^$/ {
14954 /^0/ {
14955 s/^0 *\([^ ]*\) *$/\1/
14956 p
14957 }
14958 }'
14959 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14960 # Check for a 64-bit object if we didn't find anything.
14961 if test -z "$lt_cv_aix_libpath__CXX"; then
14962 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14963 fi
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14967 if test -z "$lt_cv_aix_libpath__CXX"; then
14968 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14969 fi
14970
14971 fi
14972
14973 aix_libpath=$lt_cv_aix_libpath__CXX
14974 fi
14975
14976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14977
14978 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14979 else
14980 if test "$host_cpu" = ia64; then
14981 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14982 allow_undefined_flag_CXX="-z nodefs"
14983 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14984 else
14985 # Determine the default libpath from the value encoded in an
14986 # empty executable.
14987 if test "${lt_cv_aix_libpath+set}" = set; then
14988 aix_libpath=$lt_cv_aix_libpath
14989 else
14990 if ${lt_cv_aix_libpath__CXX+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995
14996 int
14997 main ()
14998 {
14999
15000 ;
15001 return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_cxx_try_link "$LINENO"; then :
15005
15006 lt_aix_libpath_sed='
15007 /Import File Strings/,/^$/ {
15008 /^0/ {
15009 s/^0 *\([^ ]*\) *$/\1/
15010 p
15011 }
15012 }'
15013 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014 # Check for a 64-bit object if we didn't find anything.
15015 if test -z "$lt_cv_aix_libpath__CXX"; then
15016 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017 fi
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
15021 if test -z "$lt_cv_aix_libpath__CXX"; then
15022 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15023 fi
15024
15025 fi
15026
15027 aix_libpath=$lt_cv_aix_libpath__CXX
15028 fi
15029
15030 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15031 # Warning - without using the other run time loading flags,
15032 # -berok will link without error, but may produce a broken library.
15033 no_undefined_flag_CXX=' ${wl}-bernotok'
15034 allow_undefined_flag_CXX=' ${wl}-berok'
15035 if test "$with_gnu_ld" = yes; then
15036 # We only use this code for GNU lds that support --whole-archive.
15037 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15038 else
15039 # Exported symbols can be pulled into shared objects from archives
15040 whole_archive_flag_spec_CXX='$convenience'
15041 fi
15042 archive_cmds_need_lc_CXX=yes
15043 # This is similar to how AIX traditionally builds its shared
15044 # libraries.
15045 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15046 fi
15047 fi
15048 ;;
15049
15050 beos*)
15051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15052 allow_undefined_flag_CXX=unsupported
15053 # Joseph Beckenbach <[email protected]> says some releases of gcc
15054 # support --undefined. This deserves some investigation. FIXME
15055 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 else
15057 ld_shlibs_CXX=no
15058 fi
15059 ;;
15060
15061 chorus*)
15062 case $cc_basename in
15063 *)
15064 # FIXME: insert proper C++ library support
15065 ld_shlibs_CXX=no
15066 ;;
15067 esac
15068 ;;
15069
15070 cygwin* | mingw* | pw32* | cegcc*)
15071 case $GXX,$cc_basename in
15072 ,cl* | no,cl*)
15073 # Native MSVC
15074 # hardcode_libdir_flag_spec is actually meaningless, as there is
15075 # no search path for DLLs.
15076 hardcode_libdir_flag_spec_CXX=' '
15077 allow_undefined_flag_CXX=unsupported
15078 always_export_symbols_CXX=yes
15079 file_list_spec_CXX='@'
15080 # Tell ltmain to make .lib files, not .a files.
15081 libext=lib
15082 # Tell ltmain to make .dll files, not .so files.
15083 shrext_cmds=".dll"
15084 # FIXME: Setting linknames here is a bad hack.
15085 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15086 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15087 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15088 else
15089 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15090 fi~
15091 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15092 linknames='
15093 # The linker will not automatically build a static lib if we build a DLL.
15094 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15095 enable_shared_with_static_runtimes_CXX=yes
15096 # Don't use ranlib
15097 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15098 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15099 lt_tool_outputfile="@TOOL_OUTPUT@"~
15100 case $lt_outputfile in
15101 *.exe|*.EXE) ;;
15102 *)
15103 lt_outputfile="$lt_outputfile.exe"
15104 lt_tool_outputfile="$lt_tool_outputfile.exe"
15105 ;;
15106 esac~
15107 func_to_tool_file "$lt_outputfile"~
15108 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15109 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15110 $RM "$lt_outputfile.manifest";
15111 fi'
15112 ;;
15113 *)
15114 # g++
15115 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15116 # as there is no search path for DLLs.
15117 hardcode_libdir_flag_spec_CXX='-L$libdir'
15118 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15119 allow_undefined_flag_CXX=unsupported
15120 always_export_symbols_CXX=no
15121 enable_shared_with_static_runtimes_CXX=yes
15122
15123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15124 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15125 # If the export-symbols file already is a .def file (1st line
15126 # is EXPORTS), use it as is; otherwise, prepend...
15127 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15128 cp $export_symbols $output_objdir/$soname.def;
15129 else
15130 echo EXPORTS > $output_objdir/$soname.def;
15131 cat $export_symbols >> $output_objdir/$soname.def;
15132 fi~
15133 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15134 else
15135 ld_shlibs_CXX=no
15136 fi
15137 ;;
15138 esac
15139 ;;
15140 darwin* | rhapsody*)
15141
15142
15143 archive_cmds_need_lc_CXX=no
15144 hardcode_direct_CXX=no
15145 hardcode_automatic_CXX=yes
15146 hardcode_shlibpath_var_CXX=unsupported
15147 if test "$lt_cv_ld_force_load" = "yes"; then
15148 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15149 else
15150 whole_archive_flag_spec_CXX=''
15151 fi
15152 link_all_deplibs_CXX=yes
15153 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15154 case $cc_basename in
15155 ifort*) _lt_dar_can_shared=yes ;;
15156 *) _lt_dar_can_shared=$GCC ;;
15157 esac
15158 if test "$_lt_dar_can_shared" = "yes"; then
15159 output_verbose_link_cmd=func_echo_all
15160 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15161 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15162 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15163 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15164 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15165 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15166 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15167 fi
15168
15169 else
15170 ld_shlibs_CXX=no
15171 fi
15172
15173 ;;
15174
15175 dgux*)
15176 case $cc_basename in
15177 ec++*)
15178 # FIXME: insert proper C++ library support
15179 ld_shlibs_CXX=no
15180 ;;
15181 ghcx*)
15182 # Green Hills C++ Compiler
15183 # FIXME: insert proper C++ library support
15184 ld_shlibs_CXX=no
15185 ;;
15186 *)
15187 # FIXME: insert proper C++ library support
15188 ld_shlibs_CXX=no
15189 ;;
15190 esac
15191 ;;
15192
15193 freebsd[12]*)
15194 # C++ shared libraries reported to be fairly broken before
15195 # switch to ELF
15196 ld_shlibs_CXX=no
15197 ;;
15198
15199 freebsd-elf*)
15200 archive_cmds_need_lc_CXX=no
15201 ;;
15202
15203 freebsd* | dragonfly*)
15204 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15205 # conventions
15206 ld_shlibs_CXX=yes
15207 ;;
15208
15209 gnu*)
15210 ;;
15211
15212 haiku*)
15213 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15214 link_all_deplibs_CXX=yes
15215 ;;
15216
15217 hpux9*)
15218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15219 hardcode_libdir_separator_CXX=:
15220 export_dynamic_flag_spec_CXX='${wl}-E'
15221 hardcode_direct_CXX=yes
15222 hardcode_minus_L_CXX=yes # Not in the search PATH,
15223 # but as the default
15224 # location of the library.
15225
15226 case $cc_basename in
15227 CC*)
15228 # FIXME: insert proper C++ library support
15229 ld_shlibs_CXX=no
15230 ;;
15231 aCC*)
15232 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15233 # Commands to make compiler produce verbose output that lists
15234 # what "hidden" libraries, object files and flags are used when
15235 # linking a shared library.
15236 #
15237 # There doesn't appear to be a way to prevent this compiler from
15238 # explicitly linking system object files so we need to strip them
15239 # from the output so that they don't get included in the library
15240 # dependencies.
15241 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15242 ;;
15243 *)
15244 if test "$GXX" = yes; then
15245 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15246 else
15247 # FIXME: insert proper C++ library support
15248 ld_shlibs_CXX=no
15249 fi
15250 ;;
15251 esac
15252 ;;
15253
15254 hpux10*|hpux11*)
15255 if test $with_gnu_ld = no; then
15256 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15257 hardcode_libdir_separator_CXX=:
15258
15259 case $host_cpu in
15260 hppa*64*|ia64*)
15261 ;;
15262 *)
15263 export_dynamic_flag_spec_CXX='${wl}-E'
15264 ;;
15265 esac
15266 fi
15267 case $host_cpu in
15268 hppa*64*|ia64*)
15269 hardcode_direct_CXX=no
15270 hardcode_shlibpath_var_CXX=no
15271 ;;
15272 *)
15273 hardcode_direct_CXX=yes
15274 hardcode_direct_absolute_CXX=yes
15275 hardcode_minus_L_CXX=yes # Not in the search PATH,
15276 # but as the default
15277 # location of the library.
15278 ;;
15279 esac
15280
15281 case $cc_basename in
15282 CC*)
15283 # FIXME: insert proper C++ library support
15284 ld_shlibs_CXX=no
15285 ;;
15286 aCC*)
15287 case $host_cpu in
15288 hppa*64*)
15289 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15290 ;;
15291 ia64*)
15292 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15293 ;;
15294 *)
15295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15296 ;;
15297 esac
15298 # Commands to make compiler produce verbose output that lists
15299 # what "hidden" libraries, object files and flags are used when
15300 # linking a shared library.
15301 #
15302 # There doesn't appear to be a way to prevent this compiler from
15303 # explicitly linking system object files so we need to strip them
15304 # from the output so that they don't get included in the library
15305 # dependencies.
15306 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15307 ;;
15308 *)
15309 if test "$GXX" = yes; then
15310 if test $with_gnu_ld = no; then
15311 case $host_cpu in
15312 hppa*64*)
15313 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15314 ;;
15315 ia64*)
15316 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15317 ;;
15318 *)
15319 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15320 ;;
15321 esac
15322 fi
15323 else
15324 # FIXME: insert proper C++ library support
15325 ld_shlibs_CXX=no
15326 fi
15327 ;;
15328 esac
15329 ;;
15330
15331 interix[3-9]*)
15332 hardcode_direct_CXX=no
15333 hardcode_shlibpath_var_CXX=no
15334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15335 export_dynamic_flag_spec_CXX='${wl}-E'
15336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15337 # Instead, shared libraries are loaded at an image base (0x10000000 by
15338 # default) and relocated if they conflict, which is a slow very memory
15339 # consuming and fragmenting process. To avoid this, we pick a random,
15340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15342 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15343 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15344 ;;
15345 irix5* | irix6*)
15346 case $cc_basename in
15347 CC*)
15348 # SGI C++
15349 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15350
15351 # Archives containing C++ object files must be created using
15352 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15353 # necessary to make sure instantiated templates are included
15354 # in the archive.
15355 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15356 ;;
15357 *)
15358 if test "$GXX" = yes; then
15359 if test "$with_gnu_ld" = no; then
15360 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15361 else
15362 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15363 fi
15364 fi
15365 link_all_deplibs_CXX=yes
15366 ;;
15367 esac
15368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator_CXX=:
15370 inherit_rpath_CXX=yes
15371 ;;
15372
15373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15374 case $cc_basename in
15375 KCC*)
15376 # Kuck and Associates, Inc. (KAI) C++ Compiler
15377
15378 # KCC will only create a shared library if the output file
15379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15380 # to its proper name (with version) after linking.
15381 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15382 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15383 # Commands to make compiler produce verbose output that lists
15384 # what "hidden" libraries, object files and flags are used when
15385 # linking a shared library.
15386 #
15387 # There doesn't appear to be a way to prevent this compiler from
15388 # explicitly linking system object files so we need to strip them
15389 # from the output so that they don't get included in the library
15390 # dependencies.
15391 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15392
15393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15395
15396 # Archives containing C++ object files must be created using
15397 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15398 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15399 ;;
15400 icpc* | ecpc* )
15401 # Intel C++
15402 with_gnu_ld=yes
15403 # version 8.0 and above of icpc choke on multiply defined symbols
15404 # if we add $predep_objects and $postdep_objects, however 7.1 and
15405 # earlier do not add the objects themselves.
15406 case `$CC -V 2>&1` in
15407 *"Version 7."*)
15408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15410 ;;
15411 *) # Version 8.0 or newer
15412 tmp_idyn=
15413 case $host_cpu in
15414 ia64*) tmp_idyn=' -i_dynamic';;
15415 esac
15416 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15417 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15418 ;;
15419 esac
15420 archive_cmds_need_lc_CXX=no
15421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15423 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15424 ;;
15425 pgCC* | pgcpp*)
15426 # Portland Group C++ compiler
15427 case `$CC -V` in
15428 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15429 prelink_cmds_CXX='tpldir=Template.dir~
15430 rm -rf $tpldir~
15431 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15432 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15433 old_archive_cmds_CXX='tpldir=Template.dir~
15434 rm -rf $tpldir~
15435 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15436 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15437 $RANLIB $oldlib'
15438 archive_cmds_CXX='tpldir=Template.dir~
15439 rm -rf $tpldir~
15440 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15441 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15442 archive_expsym_cmds_CXX='tpldir=Template.dir~
15443 rm -rf $tpldir~
15444 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15445 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15446 ;;
15447 *) # Version 6 and above use weak symbols
15448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15449 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15450 ;;
15451 esac
15452
15453 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15455 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15456 ;;
15457 cxx*)
15458 # Compaq C++
15459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15461
15462 runpath_var=LD_RUN_PATH
15463 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15464 hardcode_libdir_separator_CXX=:
15465
15466 # Commands to make compiler produce verbose output that lists
15467 # what "hidden" libraries, object files and flags are used when
15468 # linking a shared library.
15469 #
15470 # There doesn't appear to be a way to prevent this compiler from
15471 # explicitly linking system object files so we need to strip them
15472 # from the output so that they don't get included in the library
15473 # dependencies.
15474 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15475 ;;
15476 xl* | mpixl* | bgxl*)
15477 # IBM XL 8.0 on PPC, with GNU ld
15478 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15480 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481 if test "x$supports_anon_versioning" = xyes; then
15482 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15484 echo "local: *; };" >> $output_objdir/$libname.ver~
15485 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15486 fi
15487 ;;
15488 *)
15489 case `$CC -V 2>&1 | sed 5q` in
15490 *Sun\ C*)
15491 # Sun C++ 5.9
15492 no_undefined_flag_CXX=' -zdefs'
15493 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15494 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15495 hardcode_libdir_flag_spec_CXX='-R$libdir'
15496 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15497 compiler_needs_object_CXX=yes
15498
15499 # Not sure whether something based on
15500 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15501 # would be better.
15502 output_verbose_link_cmd='func_echo_all'
15503
15504 # Archives containing C++ object files must be created using
15505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15506 # necessary to make sure instantiated templates are included
15507 # in the archive.
15508 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15509 ;;
15510 esac
15511 ;;
15512 esac
15513 ;;
15514
15515 lynxos*)
15516 # FIXME: insert proper C++ library support
15517 ld_shlibs_CXX=no
15518 ;;
15519
15520 m88k*)
15521 # FIXME: insert proper C++ library support
15522 ld_shlibs_CXX=no
15523 ;;
15524
15525 mvs*)
15526 case $cc_basename in
15527 cxx*)
15528 # FIXME: insert proper C++ library support
15529 ld_shlibs_CXX=no
15530 ;;
15531 *)
15532 # FIXME: insert proper C++ library support
15533 ld_shlibs_CXX=no
15534 ;;
15535 esac
15536 ;;
15537
15538 netbsd*)
15539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15540 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15541 wlarc=
15542 hardcode_libdir_flag_spec_CXX='-R$libdir'
15543 hardcode_direct_CXX=yes
15544 hardcode_shlibpath_var_CXX=no
15545 fi
15546 # Workaround some broken pre-1.5 toolchains
15547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15548 ;;
15549
15550 *nto* | *qnx*)
15551 ld_shlibs_CXX=yes
15552 ;;
15553
15554 openbsd2*)
15555 # C++ shared libraries are fairly broken
15556 ld_shlibs_CXX=no
15557 ;;
15558
15559 openbsd*)
15560 if test -f /usr/libexec/ld.so; then
15561 hardcode_direct_CXX=yes
15562 hardcode_shlibpath_var_CXX=no
15563 hardcode_direct_absolute_CXX=yes
15564 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15567 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15568 export_dynamic_flag_spec_CXX='${wl}-E'
15569 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15570 fi
15571 output_verbose_link_cmd=func_echo_all
15572 else
15573 ld_shlibs_CXX=no
15574 fi
15575 ;;
15576
15577 osf3* | osf4* | osf5*)
15578 case $cc_basename in
15579 KCC*)
15580 # Kuck and Associates, Inc. (KAI) C++ Compiler
15581
15582 # KCC will only create a shared library if the output file
15583 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15584 # to its proper name (with version) after linking.
15585 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15586
15587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15588 hardcode_libdir_separator_CXX=:
15589
15590 # Archives containing C++ object files must be created using
15591 # the KAI C++ compiler.
15592 case $host in
15593 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15594 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15595 esac
15596 ;;
15597 RCC*)
15598 # Rational C++ 2.4.1
15599 # FIXME: insert proper C++ library support
15600 ld_shlibs_CXX=no
15601 ;;
15602 cxx*)
15603 case $host in
15604 osf3*)
15605 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15606 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15608 ;;
15609 *)
15610 allow_undefined_flag_CXX=' -expect_unresolved \*'
15611 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15612 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15613 echo "-hidden">> $lib.exp~
15614 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
15615 $RM $lib.exp'
15616 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15617 ;;
15618 esac
15619
15620 hardcode_libdir_separator_CXX=:
15621
15622 # Commands to make compiler produce verbose output that lists
15623 # what "hidden" libraries, object files and flags are used when
15624 # linking a shared library.
15625 #
15626 # There doesn't appear to be a way to prevent this compiler from
15627 # explicitly linking system object files so we need to strip them
15628 # from the output so that they don't get included in the library
15629 # dependencies.
15630 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15631 ;;
15632 *)
15633 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15635 case $host in
15636 osf3*)
15637 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15638 ;;
15639 *)
15640 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15641 ;;
15642 esac
15643
15644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15645 hardcode_libdir_separator_CXX=:
15646
15647 # Commands to make compiler produce verbose output that lists
15648 # what "hidden" libraries, object files and flags are used when
15649 # linking a shared library.
15650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15651
15652 else
15653 # FIXME: insert proper C++ library support
15654 ld_shlibs_CXX=no
15655 fi
15656 ;;
15657 esac
15658 ;;
15659
15660 psos*)
15661 # FIXME: insert proper C++ library support
15662 ld_shlibs_CXX=no
15663 ;;
15664
15665 sunos4*)
15666 case $cc_basename in
15667 CC*)
15668 # Sun C++ 4.x
15669 # FIXME: insert proper C++ library support
15670 ld_shlibs_CXX=no
15671 ;;
15672 lcc*)
15673 # Lucid
15674 # FIXME: insert proper C++ library support
15675 ld_shlibs_CXX=no
15676 ;;
15677 *)
15678 # FIXME: insert proper C++ library support
15679 ld_shlibs_CXX=no
15680 ;;
15681 esac
15682 ;;
15683
15684 solaris*)
15685 case $cc_basename in
15686 CC* | sunCC*)
15687 # Sun C++ 4.2, 5.x and Centerline C++
15688 archive_cmds_need_lc_CXX=yes
15689 no_undefined_flag_CXX=' -zdefs'
15690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15691 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15692 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15693
15694 hardcode_libdir_flag_spec_CXX='-R$libdir'
15695 hardcode_shlibpath_var_CXX=no
15696 case $host_os in
15697 solaris2.[0-5] | solaris2.[0-5].*) ;;
15698 *)
15699 # The compiler driver will combine and reorder linker options,
15700 # but understands `-z linker_flag'.
15701 # Supported since Solaris 2.6 (maybe 2.5.1?)
15702 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15703 ;;
15704 esac
15705 link_all_deplibs_CXX=yes
15706
15707 output_verbose_link_cmd='func_echo_all'
15708
15709 # Archives containing C++ object files must be created using
15710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15711 # necessary to make sure instantiated templates are included
15712 # in the archive.
15713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15714 ;;
15715 gcx*)
15716 # Green Hills C++ Compiler
15717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15718
15719 # The C++ compiler must be used to create the archive.
15720 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15721 ;;
15722 *)
15723 # GNU C++ compiler with Solaris linker
15724 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15725 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15726 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15727 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15728 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15729 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15730
15731 # Commands to make compiler produce verbose output that lists
15732 # what "hidden" libraries, object files and flags are used when
15733 # linking a shared library.
15734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15735 else
15736 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15737 # platform.
15738 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15739 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15740 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15741
15742 # Commands to make compiler produce verbose output that lists
15743 # what "hidden" libraries, object files and flags are used when
15744 # linking a shared library.
15745 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15746 fi
15747
15748 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15749 case $host_os in
15750 solaris2.[0-5] | solaris2.[0-5].*) ;;
15751 *)
15752 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15753 ;;
15754 esac
15755 fi
15756 ;;
15757 esac
15758 ;;
15759
15760 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15761 no_undefined_flag_CXX='${wl}-z,text'
15762 archive_cmds_need_lc_CXX=no
15763 hardcode_shlibpath_var_CXX=no
15764 runpath_var='LD_RUN_PATH'
15765
15766 case $cc_basename in
15767 CC*)
15768 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15769 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15770 ;;
15771 *)
15772 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 ;;
15775 esac
15776 ;;
15777
15778 sysv5* | sco3.2v5* | sco5v6*)
15779 # Note: We can NOT use -z defs as we might desire, because we do not
15780 # link with -lc, and that would cause any symbols used from libc to
15781 # always be unresolved, which means just about no library would
15782 # ever link correctly. If we're not using GNU ld we use -z text
15783 # though, which does catch some bad symbols but isn't as heavy-handed
15784 # as -z defs.
15785 no_undefined_flag_CXX='${wl}-z,text'
15786 allow_undefined_flag_CXX='${wl}-z,nodefs'
15787 archive_cmds_need_lc_CXX=no
15788 hardcode_shlibpath_var_CXX=no
15789 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15790 hardcode_libdir_separator_CXX=':'
15791 link_all_deplibs_CXX=yes
15792 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15793 runpath_var='LD_RUN_PATH'
15794
15795 case $cc_basename in
15796 CC*)
15797 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15798 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15800 '"$old_archive_cmds_CXX"
15801 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15802 '"$reload_cmds_CXX"
15803 ;;
15804 *)
15805 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15806 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 ;;
15808 esac
15809 ;;
15810
15811 tandem*)
15812 case $cc_basename in
15813 NCC*)
15814 # NonStop-UX NCC 3.20
15815 # FIXME: insert proper C++ library support
15816 ld_shlibs_CXX=no
15817 ;;
15818 *)
15819 # FIXME: insert proper C++ library support
15820 ld_shlibs_CXX=no
15821 ;;
15822 esac
15823 ;;
15824
15825 vxworks*)
15826 # FIXME: insert proper C++ library support
15827 ld_shlibs_CXX=no
15828 ;;
15829
15830 *)
15831 # FIXME: insert proper C++ library support
15832 ld_shlibs_CXX=no
15833 ;;
15834 esac
15835
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15837 $as_echo "$ld_shlibs_CXX" >&6; }
15838 test "$ld_shlibs_CXX" = no && can_build_shared=no
15839
15840 GCC_CXX="$GXX"
15841 LD_CXX="$LD"
15842
15843 ## CAVEAT EMPTOR:
15844 ## There is no encapsulation within the following macros, do not change
15845 ## the running order or otherwise move them around unless you know exactly
15846 ## what you are doing...
15847 # Dependencies to place before and after the object being linked:
15848 predep_objects_CXX=
15849 postdep_objects_CXX=
15850 predeps_CXX=
15851 postdeps_CXX=
15852 compiler_lib_search_path_CXX=
15853
15854 cat > conftest.$ac_ext <<_LT_EOF
15855 class Foo
15856 {
15857 public:
15858 Foo (void) { a = 0; }
15859 private:
15860 int a;
15861 };
15862 _LT_EOF
15863
15864
15865 _lt_libdeps_save_CFLAGS=$CFLAGS
15866 case "$CC $CFLAGS " in #(
15867 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15868 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15869 esac
15870
15871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15872 (eval $ac_compile) 2>&5
15873 ac_status=$?
15874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875 test $ac_status = 0; }; then
15876 # Parse the compiler output and extract the necessary
15877 # objects, libraries and library flags.
15878
15879 # Sentinel used to keep track of whether or not we are before
15880 # the conftest object file.
15881 pre_test_object_deps_done=no
15882
15883 for p in `eval "$output_verbose_link_cmd"`; do
15884 case ${prev}${p} in
15885
15886 -L* | -R* | -l*)
15887 # Some compilers place space between "-{L,R}" and the path.
15888 # Remove the space.
15889 if test $p = "-L" ||
15890 test $p = "-R"; then
15891 prev=$p
15892 continue
15893 fi
15894
15895 # Expand the sysroot to ease extracting the directories later.
15896 if test -z "$prev"; then
15897 case $p in
15898 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15899 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15900 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15901 esac
15902 fi
15903 case $p in
15904 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15905 esac
15906 if test "$pre_test_object_deps_done" = no; then
15907 case ${prev} in
15908 -L | -R)
15909 # Internal compiler library paths should come after those
15910 # provided the user. The postdeps already come after the
15911 # user supplied libs so there is no need to process them.
15912 if test -z "$compiler_lib_search_path_CXX"; then
15913 compiler_lib_search_path_CXX="${prev}${p}"
15914 else
15915 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15916 fi
15917 ;;
15918 # The "-l" case would never come before the object being
15919 # linked, so don't bother handling this case.
15920 esac
15921 else
15922 if test -z "$postdeps_CXX"; then
15923 postdeps_CXX="${prev}${p}"
15924 else
15925 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15926 fi
15927 fi
15928 prev=
15929 ;;
15930
15931 *.lto.$objext) ;; # Ignore GCC LTO objects
15932 *.$objext)
15933 # This assumes that the test object file only shows up
15934 # once in the compiler output.
15935 if test "$p" = "conftest.$objext"; then
15936 pre_test_object_deps_done=yes
15937 continue
15938 fi
15939
15940 if test "$pre_test_object_deps_done" = no; then
15941 if test -z "$predep_objects_CXX"; then
15942 predep_objects_CXX="$p"
15943 else
15944 predep_objects_CXX="$predep_objects_CXX $p"
15945 fi
15946 else
15947 if test -z "$postdep_objects_CXX"; then
15948 postdep_objects_CXX="$p"
15949 else
15950 postdep_objects_CXX="$postdep_objects_CXX $p"
15951 fi
15952 fi
15953 ;;
15954
15955 *) ;; # Ignore the rest.
15956
15957 esac
15958 done
15959
15960 # Clean up.
15961 rm -f a.out a.exe
15962 else
15963 echo "libtool.m4: error: problem compiling CXX test program"
15964 fi
15965
15966 $RM -f confest.$objext
15967 CFLAGS=$_lt_libdeps_save_CFLAGS
15968
15969 # PORTME: override above test on systems where it is broken
15970 case $host_os in
15971 interix[3-9]*)
15972 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15973 # hack all around it, let's just trust "g++" to DTRT.
15974 predep_objects_CXX=
15975 postdep_objects_CXX=
15976 postdeps_CXX=
15977 ;;
15978
15979 linux*)
15980 case `$CC -V 2>&1 | sed 5q` in
15981 *Sun\ C*)
15982 # Sun C++ 5.9
15983
15984 # The more standards-conforming stlport4 library is
15985 # incompatible with the Cstd library. Avoid specifying
15986 # it if it's in CXXFLAGS. Ignore libCrun as
15987 # -library=stlport4 depends on it.
15988 case " $CXX $CXXFLAGS " in
15989 *" -library=stlport4 "*)
15990 solaris_use_stlport4=yes
15991 ;;
15992 esac
15993
15994 if test "$solaris_use_stlport4" != yes; then
15995 postdeps_CXX='-library=Cstd -library=Crun'
15996 fi
15997 ;;
15998 esac
15999 ;;
16000
16001 solaris*)
16002 case $cc_basename in
16003 CC* | sunCC*)
16004 # The more standards-conforming stlport4 library is
16005 # incompatible with the Cstd library. Avoid specifying
16006 # it if it's in CXXFLAGS. Ignore libCrun as
16007 # -library=stlport4 depends on it.
16008 case " $CXX $CXXFLAGS " in
16009 *" -library=stlport4 "*)
16010 solaris_use_stlport4=yes
16011 ;;
16012 esac
16013
16014 # Adding this requires a known-good setup of shared libraries for
16015 # Sun compiler versions before 5.6, else PIC objects from an old
16016 # archive will be linked into the output, leading to subtle bugs.
16017 if test "$solaris_use_stlport4" != yes; then
16018 postdeps_CXX='-library=Cstd -library=Crun'
16019 fi
16020 ;;
16021 esac
16022 ;;
16023 esac
16024
16025
16026 case " $postdeps_CXX " in
16027 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16028 esac
16029 compiler_lib_search_dirs_CXX=
16030 if test -n "${compiler_lib_search_path_CXX}"; then
16031 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16032 fi
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064 lt_prog_compiler_wl_CXX=
16065 lt_prog_compiler_pic_CXX=
16066 lt_prog_compiler_static_CXX=
16067
16068
16069 # C++ specific cases for pic, static, wl, etc.
16070 if test "$GXX" = yes; then
16071 lt_prog_compiler_wl_CXX='-Wl,'
16072 lt_prog_compiler_static_CXX='-static'
16073
16074 case $host_os in
16075 aix*)
16076 # All AIX code is PIC.
16077 if test "$host_cpu" = ia64; then
16078 # AIX 5 now supports IA64 processor
16079 lt_prog_compiler_static_CXX='-Bstatic'
16080 fi
16081 ;;
16082
16083 amigaos*)
16084 case $host_cpu in
16085 powerpc)
16086 # see comment about AmigaOS4 .so support
16087 lt_prog_compiler_pic_CXX='-fPIC'
16088 ;;
16089 m68k)
16090 # FIXME: we need at least 68020 code to build shared libraries, but
16091 # adding the `-m68020' flag to GCC prevents building anything better,
16092 # like `-m68040'.
16093 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16094 ;;
16095 esac
16096 ;;
16097
16098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16099 # PIC is the default for these OSes.
16100 ;;
16101 mingw* | cygwin* | os2* | pw32* | cegcc*)
16102 # This hack is so that the source file can tell whether it is being
16103 # built for inclusion in a dll (and should export symbols for example).
16104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16105 # (--disable-auto-import) libraries
16106 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16107 ;;
16108 darwin* | rhapsody*)
16109 # PIC is the default on this platform
16110 # Common symbols not allowed in MH_DYLIB files
16111 lt_prog_compiler_pic_CXX='-fno-common'
16112 ;;
16113 *djgpp*)
16114 # DJGPP does not support shared libraries at all
16115 lt_prog_compiler_pic_CXX=
16116 ;;
16117 haiku*)
16118 # PIC is the default for Haiku.
16119 # The "-static" flag exists, but is broken.
16120 lt_prog_compiler_static_CXX=
16121 ;;
16122 interix[3-9]*)
16123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16124 # Instead, we relocate shared libraries at runtime.
16125 ;;
16126 sysv4*MP*)
16127 if test -d /usr/nec; then
16128 lt_prog_compiler_pic_CXX=-Kconform_pic
16129 fi
16130 ;;
16131 hpux*)
16132 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16133 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16134 # sets the default TLS model and affects inlining.
16135 case $host_cpu in
16136 hppa*64*)
16137 ;;
16138 *)
16139 lt_prog_compiler_pic_CXX='-fPIC'
16140 ;;
16141 esac
16142 ;;
16143 *qnx* | *nto*)
16144 # QNX uses GNU C++, but need to define -shared option too, otherwise
16145 # it will coredump.
16146 lt_prog_compiler_pic_CXX='-fPIC -shared'
16147 ;;
16148 *)
16149 lt_prog_compiler_pic_CXX='-fPIC'
16150 ;;
16151 esac
16152 else
16153 case $host_os in
16154 aix[4-9]*)
16155 # All AIX code is PIC.
16156 if test "$host_cpu" = ia64; then
16157 # AIX 5 now supports IA64 processor
16158 lt_prog_compiler_static_CXX='-Bstatic'
16159 else
16160 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16161 fi
16162 ;;
16163 chorus*)
16164 case $cc_basename in
16165 cxch68*)
16166 # Green Hills C++ Compiler
16167 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16168 ;;
16169 esac
16170 ;;
16171 mingw* | cygwin* | os2* | pw32* | cegcc*)
16172 # This hack is so that the source file can tell whether it is being
16173 # built for inclusion in a dll (and should export symbols for example).
16174 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16175 ;;
16176 dgux*)
16177 case $cc_basename in
16178 ec++*)
16179 lt_prog_compiler_pic_CXX='-KPIC'
16180 ;;
16181 ghcx*)
16182 # Green Hills C++ Compiler
16183 lt_prog_compiler_pic_CXX='-pic'
16184 ;;
16185 *)
16186 ;;
16187 esac
16188 ;;
16189 freebsd* | dragonfly*)
16190 # FreeBSD uses GNU C++
16191 ;;
16192 hpux9* | hpux10* | hpux11*)
16193 case $cc_basename in
16194 CC*)
16195 lt_prog_compiler_wl_CXX='-Wl,'
16196 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16197 if test "$host_cpu" != ia64; then
16198 lt_prog_compiler_pic_CXX='+Z'
16199 fi
16200 ;;
16201 aCC*)
16202 lt_prog_compiler_wl_CXX='-Wl,'
16203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16204 case $host_cpu in
16205 hppa*64*|ia64*)
16206 # +Z the default
16207 ;;
16208 *)
16209 lt_prog_compiler_pic_CXX='+Z'
16210 ;;
16211 esac
16212 ;;
16213 *)
16214 ;;
16215 esac
16216 ;;
16217 interix*)
16218 # This is c89, which is MS Visual C++ (no shared libs)
16219 # Anyone wants to do a port?
16220 ;;
16221 irix5* | irix6* | nonstopux*)
16222 case $cc_basename in
16223 CC*)
16224 lt_prog_compiler_wl_CXX='-Wl,'
16225 lt_prog_compiler_static_CXX='-non_shared'
16226 # CC pic flag -KPIC is the default.
16227 ;;
16228 *)
16229 ;;
16230 esac
16231 ;;
16232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16233 case $cc_basename in
16234 KCC*)
16235 # KAI C++ Compiler
16236 lt_prog_compiler_wl_CXX='--backend -Wl,'
16237 lt_prog_compiler_pic_CXX='-fPIC'
16238 ;;
16239 ecpc* )
16240 # old Intel C++ for x86_64 which still supported -KPIC.
16241 lt_prog_compiler_wl_CXX='-Wl,'
16242 lt_prog_compiler_pic_CXX='-KPIC'
16243 lt_prog_compiler_static_CXX='-static'
16244 ;;
16245 icpc* )
16246 # Intel C++, used to be incompatible with GCC.
16247 # ICC 10 doesn't accept -KPIC any more.
16248 lt_prog_compiler_wl_CXX='-Wl,'
16249 lt_prog_compiler_pic_CXX='-fPIC'
16250 lt_prog_compiler_static_CXX='-static'
16251 ;;
16252 pgCC* | pgcpp*)
16253 # Portland Group C++ compiler
16254 lt_prog_compiler_wl_CXX='-Wl,'
16255 lt_prog_compiler_pic_CXX='-fpic'
16256 lt_prog_compiler_static_CXX='-Bstatic'
16257 ;;
16258 cxx*)
16259 # Compaq C++
16260 # Make sure the PIC flag is empty. It appears that all Alpha
16261 # Linux and Compaq Tru64 Unix objects are PIC.
16262 lt_prog_compiler_pic_CXX=
16263 lt_prog_compiler_static_CXX='-non_shared'
16264 ;;
16265 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16266 # IBM XL 8.0, 9.0 on PPC and BlueGene
16267 lt_prog_compiler_wl_CXX='-Wl,'
16268 lt_prog_compiler_pic_CXX='-qpic'
16269 lt_prog_compiler_static_CXX='-qstaticlink'
16270 ;;
16271 *)
16272 case `$CC -V 2>&1 | sed 5q` in
16273 *Sun\ C*)
16274 # Sun C++ 5.9
16275 lt_prog_compiler_pic_CXX='-KPIC'
16276 lt_prog_compiler_static_CXX='-Bstatic'
16277 lt_prog_compiler_wl_CXX='-Qoption ld '
16278 ;;
16279 esac
16280 ;;
16281 esac
16282 ;;
16283 lynxos*)
16284 ;;
16285 m88k*)
16286 ;;
16287 mvs*)
16288 case $cc_basename in
16289 cxx*)
16290 lt_prog_compiler_pic_CXX='-W c,exportall'
16291 ;;
16292 *)
16293 ;;
16294 esac
16295 ;;
16296 netbsd*)
16297 ;;
16298 *qnx* | *nto*)
16299 # QNX uses GNU C++, but need to define -shared option too, otherwise
16300 # it will coredump.
16301 lt_prog_compiler_pic_CXX='-fPIC -shared'
16302 ;;
16303 osf3* | osf4* | osf5*)
16304 case $cc_basename in
16305 KCC*)
16306 lt_prog_compiler_wl_CXX='--backend -Wl,'
16307 ;;
16308 RCC*)
16309 # Rational C++ 2.4.1
16310 lt_prog_compiler_pic_CXX='-pic'
16311 ;;
16312 cxx*)
16313 # Digital/Compaq C++
16314 lt_prog_compiler_wl_CXX='-Wl,'
16315 # Make sure the PIC flag is empty. It appears that all Alpha
16316 # Linux and Compaq Tru64 Unix objects are PIC.
16317 lt_prog_compiler_pic_CXX=
16318 lt_prog_compiler_static_CXX='-non_shared'
16319 ;;
16320 *)
16321 ;;
16322 esac
16323 ;;
16324 psos*)
16325 ;;
16326 solaris*)
16327 case $cc_basename in
16328 CC* | sunCC*)
16329 # Sun C++ 4.2, 5.x and Centerline C++
16330 lt_prog_compiler_pic_CXX='-KPIC'
16331 lt_prog_compiler_static_CXX='-Bstatic'
16332 lt_prog_compiler_wl_CXX='-Qoption ld '
16333 ;;
16334 gcx*)
16335 # Green Hills C++ Compiler
16336 lt_prog_compiler_pic_CXX='-PIC'
16337 ;;
16338 *)
16339 ;;
16340 esac
16341 ;;
16342 sunos4*)
16343 case $cc_basename in
16344 CC*)
16345 # Sun C++ 4.x
16346 lt_prog_compiler_pic_CXX='-pic'
16347 lt_prog_compiler_static_CXX='-Bstatic'
16348 ;;
16349 lcc*)
16350 # Lucid
16351 lt_prog_compiler_pic_CXX='-pic'
16352 ;;
16353 *)
16354 ;;
16355 esac
16356 ;;
16357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16358 case $cc_basename in
16359 CC*)
16360 lt_prog_compiler_wl_CXX='-Wl,'
16361 lt_prog_compiler_pic_CXX='-KPIC'
16362 lt_prog_compiler_static_CXX='-Bstatic'
16363 ;;
16364 esac
16365 ;;
16366 tandem*)
16367 case $cc_basename in
16368 NCC*)
16369 # NonStop-UX NCC 3.20
16370 lt_prog_compiler_pic_CXX='-KPIC'
16371 ;;
16372 *)
16373 ;;
16374 esac
16375 ;;
16376 vxworks*)
16377 ;;
16378 *)
16379 lt_prog_compiler_can_build_shared_CXX=no
16380 ;;
16381 esac
16382 fi
16383
16384 case $host_os in
16385 # For platforms which do not support PIC, -DPIC is meaningless:
16386 *djgpp*)
16387 lt_prog_compiler_pic_CXX=
16388 ;;
16389 *)
16390 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16391 ;;
16392 esac
16393
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16395 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16396 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16397 $as_echo_n "(cached) " >&6
16398 else
16399 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16400 fi
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16402 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16403 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16404
16405 #
16406 # Check to make sure the PIC flag actually works.
16407 #
16408 if test -n "$lt_prog_compiler_pic_CXX"; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16411 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 lt_cv_prog_compiler_pic_works_CXX=no
16415 ac_outfile=conftest.$ac_objext
16416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16417 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16418 # Insert the option either (1) after the last *FLAGS variable, or
16419 # (2) before a word containing "conftest.", or (3) at the end.
16420 # Note that $ac_compile itself does not contain backslashes and begins
16421 # with a dollar sign (not a hyphen), so the echo should work correctly.
16422 # The option is referenced via a variable to avoid confusing sed.
16423 lt_compile=`echo "$ac_compile" | $SED \
16424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426 -e 's:$: $lt_compiler_flag:'`
16427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16428 (eval "$lt_compile" 2>conftest.err)
16429 ac_status=$?
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 if (exit $ac_status) && test -s "$ac_outfile"; then
16433 # The compiler can only warn and ignore the option if not recognized
16434 # So say no if there are warnings other than the usual output.
16435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16438 lt_cv_prog_compiler_pic_works_CXX=yes
16439 fi
16440 fi
16441 $RM conftest*
16442
16443 fi
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16445 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16446
16447 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16448 case $lt_prog_compiler_pic_CXX in
16449 "" | " "*) ;;
16450 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16451 esac
16452 else
16453 lt_prog_compiler_pic_CXX=
16454 lt_prog_compiler_can_build_shared_CXX=no
16455 fi
16456
16457 fi
16458
16459
16460
16461
16462
16463 #
16464 # Check to make sure the static flag actually works.
16465 #
16466 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16469 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 lt_cv_prog_compiler_static_works_CXX=no
16473 save_LDFLAGS="$LDFLAGS"
16474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16477 # The linker can only warn and ignore the option if not recognized
16478 # So say no if there are warnings
16479 if test -s conftest.err; then
16480 # Append any errors to the config.log.
16481 cat conftest.err 1>&5
16482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16484 if diff conftest.exp conftest.er2 >/dev/null; then
16485 lt_cv_prog_compiler_static_works_CXX=yes
16486 fi
16487 else
16488 lt_cv_prog_compiler_static_works_CXX=yes
16489 fi
16490 fi
16491 $RM -r conftest*
16492 LDFLAGS="$save_LDFLAGS"
16493
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16496 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16497
16498 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16499 :
16500 else
16501 lt_prog_compiler_static_CXX=
16502 fi
16503
16504
16505
16506
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16509 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 lt_cv_prog_compiler_c_o_CXX=no
16513 $RM -r conftest 2>/dev/null
16514 mkdir conftest
16515 cd conftest
16516 mkdir out
16517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16518
16519 lt_compiler_flag="-o out/conftest2.$ac_objext"
16520 # Insert the option either (1) after the last *FLAGS variable, or
16521 # (2) before a word containing "conftest.", or (3) at the end.
16522 # Note that $ac_compile itself does not contain backslashes and begins
16523 # with a dollar sign (not a hyphen), so the echo should work correctly.
16524 lt_compile=`echo "$ac_compile" | $SED \
16525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16527 -e 's:$: $lt_compiler_flag:'`
16528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16529 (eval "$lt_compile" 2>out/conftest.err)
16530 ac_status=$?
16531 cat out/conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16534 then
16535 # The compiler can only warn and ignore the option if not recognized
16536 # So say no if there are warnings
16537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16540 lt_cv_prog_compiler_c_o_CXX=yes
16541 fi
16542 fi
16543 chmod u+w . 2>&5
16544 $RM conftest*
16545 # SGI C++ compiler will create directory out/ii_files/ for
16546 # template instantiation
16547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16548 $RM out/* && rmdir out
16549 cd ..
16550 $RM -r conftest
16551 $RM conftest*
16552
16553 fi
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16555 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16556
16557
16558
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16561 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 lt_cv_prog_compiler_c_o_CXX=no
16565 $RM -r conftest 2>/dev/null
16566 mkdir conftest
16567 cd conftest
16568 mkdir out
16569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16570
16571 lt_compiler_flag="-o out/conftest2.$ac_objext"
16572 # Insert the option either (1) after the last *FLAGS variable, or
16573 # (2) before a word containing "conftest.", or (3) at the end.
16574 # Note that $ac_compile itself does not contain backslashes and begins
16575 # with a dollar sign (not a hyphen), so the echo should work correctly.
16576 lt_compile=`echo "$ac_compile" | $SED \
16577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16579 -e 's:$: $lt_compiler_flag:'`
16580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16581 (eval "$lt_compile" 2>out/conftest.err)
16582 ac_status=$?
16583 cat out/conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16586 then
16587 # The compiler can only warn and ignore the option if not recognized
16588 # So say no if there are warnings
16589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16592 lt_cv_prog_compiler_c_o_CXX=yes
16593 fi
16594 fi
16595 chmod u+w . 2>&5
16596 $RM conftest*
16597 # SGI C++ compiler will create directory out/ii_files/ for
16598 # template instantiation
16599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16600 $RM out/* && rmdir out
16601 cd ..
16602 $RM -r conftest
16603 $RM conftest*
16604
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16607 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16608
16609
16610
16611
16612 hard_links="nottested"
16613 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16614 # do not overwrite the value of need_locks provided by the user
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16616 $as_echo_n "checking if we can lock with hard links... " >&6; }
16617 hard_links=yes
16618 $RM conftest*
16619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16620 touch conftest.a
16621 ln conftest.a conftest.b 2>&5 || hard_links=no
16622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16624 $as_echo "$hard_links" >&6; }
16625 if test "$hard_links" = no; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16627 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16628 need_locks=warn
16629 fi
16630 else
16631 need_locks=no
16632 fi
16633
16634
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16637 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16638
16639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16640 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16641 case $host_os in
16642 aix[4-9]*)
16643 # If we're using GNU nm, then we don't want the "-C" option.
16644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16645 # Also, AIX nm treats weak defined symbols like other global defined
16646 # symbols, whereas GNU nm marks them as "W".
16647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16648 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16649 else
16650 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16651 fi
16652 ;;
16653 pw32*)
16654 export_symbols_cmds_CXX="$ltdll_cmds"
16655 ;;
16656 cygwin* | mingw* | cegcc*)
16657 case $cc_basename in
16658 cl*) ;;
16659 *)
16660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16661 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16662 ;;
16663 esac
16664 ;;
16665 *)
16666 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16667 ;;
16668 esac
16669
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16671 $as_echo "$ld_shlibs_CXX" >&6; }
16672 test "$ld_shlibs_CXX" = no && can_build_shared=no
16673
16674 with_gnu_ld_CXX=$with_gnu_ld
16675
16676
16677
16678
16679
16680
16681 #
16682 # Do we need to explicitly link libc?
16683 #
16684 case "x$archive_cmds_need_lc_CXX" in
16685 x|xyes)
16686 # Assume -lc should be added
16687 archive_cmds_need_lc_CXX=yes
16688
16689 if test "$enable_shared" = yes && test "$GCC" = yes; then
16690 case $archive_cmds_CXX in
16691 *'~'*)
16692 # FIXME: we may have to deal with multi-command sequences.
16693 ;;
16694 '$CC '*)
16695 # Test whether the compiler implicitly links with -lc since on some
16696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16697 # to ld, don't add -lc before -lgcc.
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16700 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 $RM conftest*
16704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16705
16706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16707 (eval $ac_compile) 2>&5
16708 ac_status=$?
16709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16710 test $ac_status = 0; } 2>conftest.err; then
16711 soname=conftest
16712 lib=conftest
16713 libobjs=conftest.$ac_objext
16714 deplibs=
16715 wl=$lt_prog_compiler_wl_CXX
16716 pic_flag=$lt_prog_compiler_pic_CXX
16717 compiler_flags=-v
16718 linker_flags=-v
16719 verstring=
16720 output_objdir=.
16721 libname=conftest
16722 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16723 allow_undefined_flag_CXX=
16724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16725 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726 ac_status=$?
16727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16728 test $ac_status = 0; }
16729 then
16730 lt_cv_archive_cmds_need_lc_CXX=no
16731 else
16732 lt_cv_archive_cmds_need_lc_CXX=yes
16733 fi
16734 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16735 else
16736 cat conftest.err 1>&5
16737 fi
16738 $RM conftest*
16739
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16742 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16743 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16744 ;;
16745 esac
16746 fi
16747 ;;
16748 esac
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16814 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16815
16816 library_names_spec=
16817 libname_spec='lib$name'
16818 soname_spec=
16819 shrext_cmds=".so"
16820 postinstall_cmds=
16821 postuninstall_cmds=
16822 finish_cmds=
16823 finish_eval=
16824 shlibpath_var=
16825 shlibpath_overrides_runpath=unknown
16826 version_type=none
16827 dynamic_linker="$host_os ld.so"
16828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16829 need_lib_prefix=unknown
16830 hardcode_into_libs=no
16831
16832 # when you set need_version to no, make sure it does not cause -set_version
16833 # flags to be left without arguments
16834 need_version=unknown
16835
16836 case $host_os in
16837 aix3*)
16838 version_type=linux
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16840 shlibpath_var=LIBPATH
16841
16842 # AIX 3 has no versioning support, so we append a major version to the name.
16843 soname_spec='${libname}${release}${shared_ext}$major'
16844 ;;
16845
16846 aix[4-9]*)
16847 version_type=linux
16848 need_lib_prefix=no
16849 need_version=no
16850 hardcode_into_libs=yes
16851 if test "$host_cpu" = ia64; then
16852 # AIX 5 supports IA64
16853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 else
16856 # With GCC up to 2.95.x, collect2 would create an import file
16857 # for dependence libraries. The import file would start with
16858 # the line `#! .'. This would cause the generated library to
16859 # depend on `.', always an invalid library. This was fixed in
16860 # development snapshots of GCC prior to 3.0.
16861 case $host_os in
16862 aix4 | aix4.[01] | aix4.[01].*)
16863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16864 echo ' yes '
16865 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16866 :
16867 else
16868 can_build_shared=no
16869 fi
16870 ;;
16871 esac
16872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16873 # soname into executable. Probably we can add versioning support to
16874 # collect2, so additional links can be useful in future.
16875 if test "$aix_use_runtimelinking" = yes; then
16876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16877 # instead of lib<name>.a to let people know that these are not
16878 # typical AIX shared libraries.
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880 else
16881 # We preserve .a as extension for shared libraries through AIX4.2
16882 # and later when we are not doing run time linking.
16883 library_names_spec='${libname}${release}.a $libname.a'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 fi
16886 shlibpath_var=LIBPATH
16887 fi
16888 ;;
16889
16890 amigaos*)
16891 case $host_cpu in
16892 powerpc)
16893 # Since July 2007 AmigaOS4 officially supports .so libraries.
16894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 ;;
16897 m68k)
16898 library_names_spec='$libname.ixlibrary $libname.a'
16899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16900 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16901 ;;
16902 esac
16903 ;;
16904
16905 beos*)
16906 library_names_spec='${libname}${shared_ext}'
16907 dynamic_linker="$host_os ld.so"
16908 shlibpath_var=LIBRARY_PATH
16909 ;;
16910
16911 bsdi[45]*)
16912 version_type=linux
16913 need_version=no
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915 soname_spec='${libname}${release}${shared_ext}$major'
16916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16920 # the default ld.so.conf also contains /usr/contrib/lib and
16921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16922 # libtool to hard-code these into programs
16923 ;;
16924
16925 cygwin* | mingw* | pw32* | cegcc*)
16926 version_type=windows
16927 shrext_cmds=".dll"
16928 need_version=no
16929 need_lib_prefix=no
16930
16931 case $GCC,$cc_basename in
16932 yes,*)
16933 # gcc
16934 library_names_spec='$libname.dll.a'
16935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16936 postinstall_cmds='base_file=`basename \${file}`~
16937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16938 dldir=$destdir/`dirname \$dlpath`~
16939 test -d \$dldir || mkdir -p \$dldir~
16940 $install_prog $dir/$dlname \$dldir/$dlname~
16941 chmod a+x \$dldir/$dlname~
16942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16944 fi'
16945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16946 dlpath=$dir/\$dldll~
16947 $RM \$dlpath'
16948 shlibpath_overrides_runpath=yes
16949
16950 case $host_os in
16951 cygwin*)
16952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16954
16955 ;;
16956 mingw* | cegcc*)
16957 # MinGW DLLs use traditional 'lib' prefix
16958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16959 ;;
16960 pw32*)
16961 # pw32 DLLs use 'pw' prefix rather than 'lib'
16962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16963 ;;
16964 esac
16965 dynamic_linker='Win32 ld.exe'
16966 ;;
16967
16968 *,cl*)
16969 # Native MSVC
16970 libname_spec='$name'
16971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16972 library_names_spec='${libname}.dll.lib'
16973
16974 case $build_os in
16975 mingw*)
16976 sys_lib_search_path_spec=
16977 lt_save_ifs=$IFS
16978 IFS=';'
16979 for lt_path in $LIB
16980 do
16981 IFS=$lt_save_ifs
16982 # Let DOS variable expansion print the short 8.3 style file name.
16983 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16984 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16985 done
16986 IFS=$lt_save_ifs
16987 # Convert to MSYS style.
16988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16989 ;;
16990 cygwin*)
16991 # Convert to unix form, then to dos form, then back to unix form
16992 # but this time dos style (no spaces!) so that the unix form looks
16993 # like /cygdrive/c/PROGRA~1:/cygdr...
16994 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16995 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16996 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16997 ;;
16998 *)
16999 sys_lib_search_path_spec="$LIB"
17000 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17001 # It is most probably a Windows format PATH.
17002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17003 else
17004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17005 fi
17006 # FIXME: find the short name or the path components, as spaces are
17007 # common. (e.g. "Program Files" -> "PROGRA~1")
17008 ;;
17009 esac
17010
17011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17012 postinstall_cmds='base_file=`basename \${file}`~
17013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17014 dldir=$destdir/`dirname \$dlpath`~
17015 test -d \$dldir || mkdir -p \$dldir~
17016 $install_prog $dir/$dlname \$dldir/$dlname'
17017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17018 dlpath=$dir/\$dldll~
17019 $RM \$dlpath'
17020 shlibpath_overrides_runpath=yes
17021 dynamic_linker='Win32 link.exe'
17022 ;;
17023
17024 *)
17025 # Assume MSVC wrapper
17026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 dynamic_linker='Win32 ld.exe'
17028 ;;
17029 esac
17030 # FIXME: first we should search . and the directory the executable is in
17031 shlibpath_var=PATH
17032 ;;
17033
17034 darwin* | rhapsody*)
17035 dynamic_linker="$host_os dyld"
17036 version_type=darwin
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040 soname_spec='${libname}${release}${major}$shared_ext'
17041 shlibpath_overrides_runpath=yes
17042 shlibpath_var=DYLD_LIBRARY_PATH
17043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17044
17045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17046 ;;
17047
17048 dgux*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 ;;
17056
17057 freebsd1*)
17058 dynamic_linker=no
17059 ;;
17060
17061 freebsd* | dragonfly*)
17062 # DragonFly does not have aout. When/if they implement a new
17063 # versioning mechanism, adjust this.
17064 if test -x /usr/bin/objformat; then
17065 objformat=`/usr/bin/objformat`
17066 else
17067 case $host_os in
17068 freebsd[123]*) objformat=aout ;;
17069 *) objformat=elf ;;
17070 esac
17071 fi
17072 version_type=freebsd-$objformat
17073 case $version_type in
17074 freebsd-elf*)
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 need_version=no
17077 need_lib_prefix=no
17078 ;;
17079 freebsd-*)
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17081 need_version=yes
17082 ;;
17083 esac
17084 shlibpath_var=LD_LIBRARY_PATH
17085 case $host_os in
17086 freebsd2*)
17087 shlibpath_overrides_runpath=yes
17088 ;;
17089 freebsd3.[01]* | freebsdelf3.[01]*)
17090 shlibpath_overrides_runpath=yes
17091 hardcode_into_libs=yes
17092 ;;
17093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17095 shlibpath_overrides_runpath=no
17096 hardcode_into_libs=yes
17097 ;;
17098 *) # from 4.6 on, and DragonFly
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 ;;
17102 esac
17103 ;;
17104
17105 gnu*)
17106 version_type=linux
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 hardcode_into_libs=yes
17113 ;;
17114
17115 haiku*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 dynamic_linker="$host_os runtime_loader"
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LIBRARY_PATH
17123 shlibpath_overrides_runpath=yes
17124 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17125 hardcode_into_libs=yes
17126 ;;
17127
17128 hpux9* | hpux10* | hpux11*)
17129 # Give a soname corresponding to the major version so that dld.sl refuses to
17130 # link against other versions.
17131 version_type=sunos
17132 need_lib_prefix=no
17133 need_version=no
17134 case $host_cpu in
17135 ia64*)
17136 shrext_cmds='.so'
17137 hardcode_into_libs=yes
17138 dynamic_linker="$host_os dld.so"
17139 shlibpath_var=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17143 if test "X$HPUX_IA64_MODE" = X32; then
17144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17145 else
17146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17147 fi
17148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17149 ;;
17150 hppa*64*)
17151 shrext_cmds='.sl'
17152 hardcode_into_libs=yes
17153 dynamic_linker="$host_os dld.sl"
17154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17160 ;;
17161 *)
17162 shrext_cmds='.sl'
17163 dynamic_linker="$host_os dld.sl"
17164 shlibpath_var=SHLIB_PATH
17165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 ;;
17169 esac
17170 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17171 postinstall_cmds='chmod 555 $lib'
17172 # or fails outright, so override atomically:
17173 install_override_mode=555
17174 ;;
17175
17176 interix[3-9]*)
17177 version_type=linux
17178 need_lib_prefix=no
17179 need_version=no
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17183 shlibpath_var=LD_LIBRARY_PATH
17184 shlibpath_overrides_runpath=no
17185 hardcode_into_libs=yes
17186 ;;
17187
17188 irix5* | irix6* | nonstopux*)
17189 case $host_os in
17190 nonstopux*) version_type=nonstopux ;;
17191 *)
17192 if test "$lt_cv_prog_gnu_ld" = yes; then
17193 version_type=linux
17194 else
17195 version_type=irix
17196 fi ;;
17197 esac
17198 need_lib_prefix=no
17199 need_version=no
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17202 case $host_os in
17203 irix5* | nonstopux*)
17204 libsuff= shlibsuff=
17205 ;;
17206 *)
17207 case $LD in # libtool.m4 will add one of these switches to LD
17208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17209 libsuff= shlibsuff= libmagic=32-bit;;
17210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17211 libsuff=32 shlibsuff=N32 libmagic=N32;;
17212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17214 *) libsuff= shlibsuff= libmagic=never-match;;
17215 esac
17216 ;;
17217 esac
17218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17219 shlibpath_overrides_runpath=no
17220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17222 hardcode_into_libs=yes
17223 ;;
17224
17225 # No shared lib support for Linux oldld, aout, or coff.
17226 linux*oldld* | linux*aout* | linux*coff*)
17227 dynamic_linker=no
17228 ;;
17229
17230 # This must be Linux ELF.
17231 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17232 version_type=linux
17233 need_lib_prefix=no
17234 need_version=no
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=no
17240
17241 # Some binutils ld are patched to set DT_RUNPATH
17242 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 lt_cv_shlibpath_overrides_runpath=no
17246 save_LDFLAGS=$LDFLAGS
17247 save_libdir=$libdir
17248 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17249 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17252
17253 int
17254 main ()
17255 {
17256
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_cxx_try_link "$LINENO"; then :
17262 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17263 lt_cv_shlibpath_overrides_runpath=yes
17264 fi
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LDFLAGS=$save_LDFLAGS
17269 libdir=$save_libdir
17270
17271 fi
17272
17273 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17274
17275 # This implies no fast_install, which is unacceptable.
17276 # Some rework will be needed to allow for fast_install
17277 # before this can be enabled.
17278 hardcode_into_libs=yes
17279
17280 # Append ld.so.conf contents to the search path
17281 if test -f /etc/ld.so.conf; then
17282 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17284 fi
17285
17286 # We used to test for /lib/ld.so.1 and disable shared libraries on
17287 # powerpc, because MkLinux only supported shared libraries with the
17288 # GNU dynamic linker. Since this was broken with cross compilers,
17289 # most powerpc-linux boxes support dynamic linking these days and
17290 # people can always --disable-shared, the test was removed, and we
17291 # assume the GNU/Linux dynamic linker is in use.
17292 dynamic_linker='GNU/Linux ld.so'
17293 ;;
17294
17295 netbsd*)
17296 version_type=sunos
17297 need_lib_prefix=no
17298 need_version=no
17299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17302 dynamic_linker='NetBSD (a.out) ld.so'
17303 else
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 dynamic_linker='NetBSD ld.elf_so'
17307 fi
17308 shlibpath_var=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath=yes
17310 hardcode_into_libs=yes
17311 ;;
17312
17313 newsos6)
17314 version_type=linux
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath=yes
17318 ;;
17319
17320 *nto* | *qnx*)
17321 version_type=qnx
17322 need_lib_prefix=no
17323 need_version=no
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=no
17328 hardcode_into_libs=yes
17329 dynamic_linker='ldqnx.so'
17330 ;;
17331
17332 openbsd*)
17333 version_type=sunos
17334 sys_lib_dlsearch_path_spec="/usr/lib"
17335 need_lib_prefix=no
17336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17337 case $host_os in
17338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17339 *) need_version=no ;;
17340 esac
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17345 case $host_os in
17346 openbsd2.[89] | openbsd2.[89].*)
17347 shlibpath_overrides_runpath=no
17348 ;;
17349 *)
17350 shlibpath_overrides_runpath=yes
17351 ;;
17352 esac
17353 else
17354 shlibpath_overrides_runpath=yes
17355 fi
17356 ;;
17357
17358 os2*)
17359 libname_spec='$name'
17360 shrext_cmds=".dll"
17361 need_lib_prefix=no
17362 library_names_spec='$libname${shared_ext} $libname.a'
17363 dynamic_linker='OS/2 ld.exe'
17364 shlibpath_var=LIBPATH
17365 ;;
17366
17367 osf3* | osf4* | osf5*)
17368 version_type=osf
17369 need_lib_prefix=no
17370 need_version=no
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17376 ;;
17377
17378 rdos*)
17379 dynamic_linker=no
17380 ;;
17381
17382 solaris*)
17383 version_type=linux
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17390 hardcode_into_libs=yes
17391 # ldd complains unless libraries are executable
17392 postinstall_cmds='chmod +x $lib'
17393 ;;
17394
17395 sunos4*)
17396 version_type=sunos
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 if test "$with_gnu_ld" = yes; then
17402 need_lib_prefix=no
17403 fi
17404 need_version=yes
17405 ;;
17406
17407 sysv4 | sysv4.3*)
17408 version_type=linux
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 case $host_vendor in
17413 sni)
17414 shlibpath_overrides_runpath=no
17415 need_lib_prefix=no
17416 runpath_var=LD_RUN_PATH
17417 ;;
17418 siemens)
17419 need_lib_prefix=no
17420 ;;
17421 motorola)
17422 need_lib_prefix=no
17423 need_version=no
17424 shlibpath_overrides_runpath=no
17425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17426 ;;
17427 esac
17428 ;;
17429
17430 sysv4*MP*)
17431 if test -d /usr/nec ;then
17432 version_type=linux
17433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17434 soname_spec='$libname${shared_ext}.$major'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 fi
17437 ;;
17438
17439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17440 version_type=freebsd-elf
17441 need_lib_prefix=no
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=yes
17447 hardcode_into_libs=yes
17448 if test "$with_gnu_ld" = yes; then
17449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17450 else
17451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17452 case $host_os in
17453 sco3.2v5*)
17454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17455 ;;
17456 esac
17457 fi
17458 sys_lib_dlsearch_path_spec='/usr/lib'
17459 ;;
17460
17461 tpf*)
17462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17463 version_type=linux
17464 need_lib_prefix=no
17465 need_version=no
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=no
17469 hardcode_into_libs=yes
17470 ;;
17471
17472 uts4*)
17473 version_type=linux
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 ;;
17478
17479 *)
17480 dynamic_linker=no
17481 ;;
17482 esac
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17484 $as_echo "$dynamic_linker" >&6; }
17485 test "$dynamic_linker" = no && can_build_shared=no
17486
17487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17488 if test "$GCC" = yes; then
17489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17490 fi
17491
17492 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17494 fi
17495 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17496 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17497 fi
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17538 hardcode_action_CXX=
17539 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17540 test -n "$runpath_var_CXX" ||
17541 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17542
17543 # We can hardcode non-existent directories.
17544 if test "$hardcode_direct_CXX" != no &&
17545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17546 # have to relink, otherwise we might link with an installed library
17547 # when we should be linking with a yet-to-be-installed one
17548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17549 test "$hardcode_minus_L_CXX" != no; then
17550 # Linking always hardcodes the temporary library directory.
17551 hardcode_action_CXX=relink
17552 else
17553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17554 hardcode_action_CXX=immediate
17555 fi
17556 else
17557 # We cannot hardcode anything, or else we can only hardcode existing
17558 # directories.
17559 hardcode_action_CXX=unsupported
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17562 $as_echo "$hardcode_action_CXX" >&6; }
17563
17564 if test "$hardcode_action_CXX" = relink ||
17565 test "$inherit_rpath_CXX" = yes; then
17566 # Fast installation is not supported
17567 enable_fast_install=no
17568 elif test "$shlibpath_overrides_runpath" = yes ||
17569 test "$enable_shared" = no; then
17570 # Fast installation is not necessary
17571 enable_fast_install=needless
17572 fi
17573
17574
17575
17576
17577
17578
17579
17580 fi # test -n "$compiler"
17581
17582 CC=$lt_save_CC
17583 CFLAGS=$lt_save_CFLAGS
17584 LDCXX=$LD
17585 LD=$lt_save_LD
17586 GCC=$lt_save_GCC
17587 with_gnu_ld=$lt_save_with_gnu_ld
17588 lt_cv_path_LDCXX=$lt_cv_path_LD
17589 lt_cv_path_LD=$lt_save_path_LD
17590 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17591 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17592 fi # test "$_lt_caught_CXX_error" != yes
17593
17594 ac_ext=c
17595 ac_cpp='$CPP $CPPFLAGS'
17596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612 ac_config_commands="$ac_config_commands libtool"
17613
17614
17615
17616
17617 # Only expand once:
17618
17619
17620
17621 SOFLAGS="-rpath \$(libdir)"
17622
17623 # Set SOSUFFIX and friends
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOSUFFIX from libtool" >&5
17626 $as_echo_n "checking SOSUFFIX from libtool... " >&6; }
17627 module=no
17628
17629 versuffix=""
17630 release=""
17631 libname=libfoo
17632 eval _SOSUFFIX=\"$shrext_cmds\"
17633 if test "$_SOSUFFIX" = "" ; then
17634 _SOSUFFIX=".so"
17635 if test "$enable_shared" != "yes"; then
17636 if test "$_SOSUFFIX_MESSAGE" = ""; then
17637 _SOSUFFIX_MESSAGE=yes
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5
17639 $as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5
17641 $as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;}
17642 fi
17643 fi
17644 fi
17645
17646 SOSUFFIX=$_SOSUFFIX
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOSUFFIX" >&5
17648 $as_echo "$SOSUFFIX" >&6; }
17649
17650
17651
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MODSUFFIX from libtool" >&5
17653 $as_echo_n "checking MODSUFFIX from libtool... " >&6; }
17654 module=yes
17655
17656 versuffix=""
17657 release=""
17658 libname=libfoo
17659 eval _SOSUFFIX=\"$shrext_cmds\"
17660 if test "$_SOSUFFIX" = "" ; then
17661 _SOSUFFIX=".so"
17662 if test "$enable_shared" != "yes"; then
17663 if test "$_SOSUFFIX_MESSAGE" = ""; then
17664 _SOSUFFIX_MESSAGE=yes
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5
17666 $as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5
17668 $as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;}
17669 fi
17670 fi
17671 fi
17672
17673 MODSUFFIX=$_SOSUFFIX
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODSUFFIX" >&5
17675 $as_echo "$MODSUFFIX" >&6; }
17676
17677
17678
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JMODSUFFIX from libtool" >&5
17680 $as_echo_n "checking JMODSUFFIX from libtool... " >&6; }
17681 module=yes
17682
17683 versuffix=""
17684 release=""
17685 libname=libfoo
17686 eval _SOSUFFIX=\"$shrext_cmds\"
17687 if test "$_SOSUFFIX" = "" ; then
17688 _SOSUFFIX=".so"
17689 if test "$enable_shared" != "yes"; then
17690 if test "$_SOSUFFIX_MESSAGE" = ""; then
17691 _SOSUFFIX_MESSAGE=yes
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtool may not know about this architecture." >&5
17693 $as_echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&5
17695 $as_echo "$as_me: WARNING: assuming $_SOSUFFIX suffix for dynamic libraries." >&2;}
17696 fi
17697 fi
17698 fi
17699
17700 if test `uname` = "Darwin"; then
17701 JMODSUFFIX=".jnilib"
17702 else
17703 JMODSUFFIX=$_SOSUFFIX
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JMODSUFFIX" >&5
17706 $as_echo "$JMODSUFFIX" >&6; }
17707
17708
17709
17710 LIBTOOL="./libtool"
17711
17712 INSTALLER="\$(LIBTOOL) --mode=install cp -p"
17713
17714 MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
17715 MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
17716 MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
17717 MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
17718 MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
17719 MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
17720
17721
17722 case "$host_os" in
17723 cygwin* | mingw*)
17724 MAKEFILE_SOLINK="$MAKEFILE_SOLINK -no-undefined"
17725 MAKEFILE_XSOLINK="$MAKEFILE_XSOLINK -no-undefined";;
17726 esac
17727
17728 case "$host_os" in
17729 darwin*)
17730 LIBTSO_MODULE=""
17731 LIBTSO_MODSUFFIX=".dylib";;
17732 *qnx*)
17733 LIBTSO_MODULE=""
17734 LIBTSO_MODSUFFIX=$MODSUFFIX;;
17735 *)
17736 LIBTSO_MODULE="-module"
17737 LIBTSO_MODSUFFIX=$MODSUFFIX;;
17738 esac
17739
17740 if test "$enable_static" = "yes"; then
17741 test "$AR" = "false" && as_fn_error $? "No ar utility found." "$LINENO" 5
17742 fi
17743
17744 # C API.
17745 if test "$enable_shared" = "no"; then
17746 DEFAULT_LIB="\$(libdb_version)"
17747 POSTLINK=": "
17748 o=".o"
17749 else
17750 DEFAULT_LIB="\$(libso_target)"
17751 POSTLINK="\$(LIBTOOL) --mode=execute true"
17752 o=".lo"
17753 fi
17754 INSTALL_LIBS="$DEFAULT_LIB"
17755 if test "$enable_static" = "yes"; then
17756 INSTALL_LIBS="$INSTALL_LIBS \$(libdb)"
17757 fi
17758
17759 # Optional C++ API.
17760 if test "$db_cv_cxx" = "yes"; then
17761 if test "$enable_shared" = "no"; then
17762 DEFAULT_LIB_CXX="\$(libcxx_version)"
17763 fi
17764 if test "$enable_shared" = "yes"; then
17765 DEFAULT_LIB_CXX="\$(libxso_target)"
17766 fi
17767 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
17768 if test "$enable_static" = "yes"; then
17769 INSTALL_LIBS="$INSTALL_LIBS \$(libcxx)"
17770 fi
17771 fi
17772
17773 # Optional Java API / JDBC.
17774 if test "$db_cv_java" = "yes" -o "$db_cv_jdbc" = "yes"; then
17775 # BDB Java API requires shared libraries.
17776 if test "$db_cv_java" = "yes" -a "$enable_shared" = "no"; then
17777 as_fn_error $? "Java requires shared libraries" "$LINENO" 5
17778 fi
17779
17780 # A classpath that includes . is needed to check for Java
17781 # Since Cygwin uses Windows' javac, we need Windows path separators
17782 case "$host_os" in
17783 cygwin*) CLASSPATH=".;$CLASSPATH";;
17784 *) CLASSPATH=".:$CLASSPATH";;
17785 esac
17786 export CLASSPATH
17787
17788
17789 if test "x$JAVAPREFIX" = x; then
17790 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
17791 do
17792 # Extract the first word of "$ac_prog", so it can be a program name with args.
17793 set dummy $ac_prog; ac_word=$2
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17795 $as_echo_n "checking for $ac_word... " >&6; }
17796 if ${ac_cv_prog_JAVAC+:} false; then :
17797 $as_echo_n "(cached) " >&6
17798 else
17799 if test -n "$JAVAC"; then
17800 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
17801 else
17802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17803 for as_dir in $PATH
17804 do
17805 IFS=$as_save_IFS
17806 test -z "$as_dir" && as_dir=.
17807 for ac_exec_ext in '' $ac_executable_extensions; do
17808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17809 ac_cv_prog_JAVAC="$ac_prog"
17810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17811 break 2
17812 fi
17813 done
17814 done
17815 IFS=$as_save_IFS
17816
17817 fi
17818 fi
17819 JAVAC=$ac_cv_prog_JAVAC
17820 if test -n "$JAVAC"; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
17822 $as_echo "$JAVAC" >&6; }
17823 else
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17825 $as_echo "no" >&6; }
17826 fi
17827
17828
17829 test -n "$JAVAC" && break
17830 done
17831
17832 else
17833 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
17834 do
17835 # Extract the first word of "$ac_prog", so it can be a program name with args.
17836 set dummy $ac_prog; ac_word=$2
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17838 $as_echo_n "checking for $ac_word... " >&6; }
17839 if ${ac_cv_prog_JAVAC+:} false; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17842 if test -n "$JAVAC"; then
17843 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
17844 else
17845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17846 for as_dir in $PATH
17847 do
17848 IFS=$as_save_IFS
17849 test -z "$as_dir" && as_dir=.
17850 for ac_exec_ext in '' $ac_executable_extensions; do
17851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17852 ac_cv_prog_JAVAC="$ac_prog"
17853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17854 break 2
17855 fi
17856 done
17857 done
17858 IFS=$as_save_IFS
17859
17860 fi
17861 fi
17862 JAVAC=$ac_cv_prog_JAVAC
17863 if test -n "$JAVAC"; then
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
17865 $as_echo "$JAVAC" >&6; }
17866 else
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868 $as_echo "no" >&6; }
17869 fi
17870
17871
17872 test -n "$JAVAC" && break
17873 done
17874 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
17875
17876 fi
17877 test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
17880 $as_echo_n "checking if $JAVAC works... " >&6; }
17881 if ${ac_cv_prog_javac_works+:} false; then :
17882 $as_echo_n "(cached) " >&6
17883 else
17884
17885 JAVA_TEST=Test.java
17886 CLASS_TEST=Test.class
17887 cat << \EOF > $JAVA_TEST
17888 /* #line 17888 "configure" */
17889 public class Test {
17890 }
17891 EOF
17892 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
17893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17897 test $ac_status = 0; }; } >/dev/null 2>&1; then
17898 ac_cv_prog_javac_works=yes
17899 else
17900 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
17901 echo "configure: failed program was:" >&5
17902 cat $JAVA_TEST >&5
17903 fi
17904 rm -f $JAVA_TEST $CLASS_TEST
17905
17906 fi
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
17908 $as_echo "$ac_cv_prog_javac_works" >&6; }
17909
17910
17911
17912 if test "x$JAVAPREFIX" = x; then
17913 test "x$JAR" = x && for ac_prog in jar$EXEEXT
17914 do
17915 # Extract the first word of "$ac_prog", so it can be a program name with args.
17916 set dummy $ac_prog; ac_word=$2
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17918 $as_echo_n "checking for $ac_word... " >&6; }
17919 if ${ac_cv_prog_JAR+:} false; then :
17920 $as_echo_n "(cached) " >&6
17921 else
17922 if test -n "$JAR"; then
17923 ac_cv_prog_JAR="$JAR" # Let the user override the test.
17924 else
17925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17926 for as_dir in $PATH
17927 do
17928 IFS=$as_save_IFS
17929 test -z "$as_dir" && as_dir=.
17930 for ac_exec_ext in '' $ac_executable_extensions; do
17931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17932 ac_cv_prog_JAR="$ac_prog"
17933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17934 break 2
17935 fi
17936 done
17937 done
17938 IFS=$as_save_IFS
17939
17940 fi
17941 fi
17942 JAR=$ac_cv_prog_JAR
17943 if test -n "$JAR"; then
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
17945 $as_echo "$JAR" >&6; }
17946 else
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948 $as_echo "no" >&6; }
17949 fi
17950
17951
17952 test -n "$JAR" && break
17953 done
17954
17955 else
17956 test "x$JAR" = x && for ac_prog in jar
17957 do
17958 # Extract the first word of "$ac_prog", so it can be a program name with args.
17959 set dummy $ac_prog; ac_word=$2
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17961 $as_echo_n "checking for $ac_word... " >&6; }
17962 if ${ac_cv_prog_JAR+:} false; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 if test -n "$JAR"; then
17966 ac_cv_prog_JAR="$JAR" # Let the user override the test.
17967 else
17968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17969 for as_dir in $PATH
17970 do
17971 IFS=$as_save_IFS
17972 test -z "$as_dir" && as_dir=.
17973 for ac_exec_ext in '' $ac_executable_extensions; do
17974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17975 ac_cv_prog_JAR="$ac_prog"
17976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17977 break 2
17978 fi
17979 done
17980 done
17981 IFS=$as_save_IFS
17982
17983 fi
17984 fi
17985 JAR=$ac_cv_prog_JAR
17986 if test -n "$JAR"; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
17988 $as_echo "$JAR" >&6; }
17989 else
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992 fi
17993
17994
17995 test -n "$JAR" && break
17996 done
17997 test -n "$JAR" || JAR="$JAVAPREFIX"
17998
17999 fi
18000 test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5
18001
18002
18003 if test x$JAVAPREFIX = x; then
18004 test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
18005 do
18006 # Extract the first word of "$ac_prog", so it can be a program name with args.
18007 set dummy $ac_prog; ac_word=$2
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18009 $as_echo_n "checking for $ac_word... " >&6; }
18010 if ${ac_cv_prog_JAVA+:} false; then :
18011 $as_echo_n "(cached) " >&6
18012 else
18013 if test -n "$JAVA"; then
18014 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
18015 else
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017 for as_dir in $PATH
18018 do
18019 IFS=$as_save_IFS
18020 test -z "$as_dir" && as_dir=.
18021 for ac_exec_ext in '' $ac_executable_extensions; do
18022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18023 ac_cv_prog_JAVA="$ac_prog"
18024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18025 break 2
18026 fi
18027 done
18028 done
18029 IFS=$as_save_IFS
18030
18031 fi
18032 fi
18033 JAVA=$ac_cv_prog_JAVA
18034 if test -n "$JAVA"; then
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
18036 $as_echo "$JAVA" >&6; }
18037 else
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039 $as_echo "no" >&6; }
18040 fi
18041
18042
18043 test -n "$JAVA" && break
18044 done
18045
18046 else
18047 test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
18048 do
18049 # Extract the first word of "$ac_prog", so it can be a program name with args.
18050 set dummy $ac_prog; ac_word=$2
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18052 $as_echo_n "checking for $ac_word... " >&6; }
18053 if ${ac_cv_prog_JAVA+:} false; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 if test -n "$JAVA"; then
18057 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
18058 else
18059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18060 for as_dir in $PATH
18061 do
18062 IFS=$as_save_IFS
18063 test -z "$as_dir" && as_dir=.
18064 for ac_exec_ext in '' $ac_executable_extensions; do
18065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18066 ac_cv_prog_JAVA="$ac_prog"
18067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18068 break 2
18069 fi
18070 done
18071 done
18072 IFS=$as_save_IFS
18073
18074 fi
18075 fi
18076 JAVA=$ac_cv_prog_JAVA
18077 if test -n "$JAVA"; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
18079 $as_echo "$JAVA" >&6; }
18080 else
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18083 fi
18084
18085
18086 test -n "$JAVA" && break
18087 done
18088 test -n "$JAVA" || JAVA="$JAVAPREFIX"
18089
18090 fi
18091 test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
18092
18093 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
18094 set dummy uudecode$EXEEXT; ac_word=$2
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18096 $as_echo_n "checking for $ac_word... " >&6; }
18097 if ${ac_cv_prog_uudecode+:} false; then :
18098 $as_echo_n "(cached) " >&6
18099 else
18100 if test -n "$uudecode"; then
18101 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
18102 else
18103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18104 for as_dir in $PATH
18105 do
18106 IFS=$as_save_IFS
18107 test -z "$as_dir" && as_dir=.
18108 for ac_exec_ext in '' $ac_executable_extensions; do
18109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18110 ac_cv_prog_uudecode="yes"
18111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18112 break 2
18113 fi
18114 done
18115 done
18116 IFS=$as_save_IFS
18117
18118 fi
18119 fi
18120 uudecode=$ac_cv_prog_uudecode
18121 if test -n "$uudecode"; then
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
18123 $as_echo "$uudecode" >&6; }
18124 else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126 $as_echo "no" >&6; }
18127 fi
18128
18129
18130 if test x$uudecode = xyes; then
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
18132 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
18133 if ${ac_cv_prog_uudecode_base64+:} false; then :
18134 $as_echo_n "(cached) " >&6
18135 else
18136
18137 cat << \EOF > Test.uue
18138 begin-base64 644 Test.class
18139 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
18140 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
18141 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
18142 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
18143 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
18144 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
18145 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
18146 ====
18147 EOF
18148 if uudecode$EXEEXT Test.uue; then
18149 ac_cv_prog_uudecode_base64=yes
18150 else
18151 echo "configure: 18151: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
18152 echo "configure: failed file was:" >&5
18153 cat Test.uue >&5
18154 ac_cv_prog_uudecode_base64=no
18155 fi
18156 rm -f Test.uue
18157 fi
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
18159 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
18160 fi
18161 if test x$ac_cv_prog_uudecode_base64 != xyes; then
18162 rm -f Test.class
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
18164 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
18165 if test x$ac_cv_prog_javac_works = xno; then
18166 as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
18167 fi
18168 if test x$ac_cv_prog_javac_works = x; then
18169
18170 if test "x$JAVAPREFIX" = x; then
18171 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
18172 do
18173 # Extract the first word of "$ac_prog", so it can be a program name with args.
18174 set dummy $ac_prog; ac_word=$2
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18176 $as_echo_n "checking for $ac_word... " >&6; }
18177 if ${ac_cv_prog_JAVAC+:} false; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180 if test -n "$JAVAC"; then
18181 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
18182 else
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18185 do
18186 IFS=$as_save_IFS
18187 test -z "$as_dir" && as_dir=.
18188 for ac_exec_ext in '' $ac_executable_extensions; do
18189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18190 ac_cv_prog_JAVAC="$ac_prog"
18191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192 break 2
18193 fi
18194 done
18195 done
18196 IFS=$as_save_IFS
18197
18198 fi
18199 fi
18200 JAVAC=$ac_cv_prog_JAVAC
18201 if test -n "$JAVAC"; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
18203 $as_echo "$JAVAC" >&6; }
18204 else
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18207 fi
18208
18209
18210 test -n "$JAVAC" && break
18211 done
18212
18213 else
18214 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
18215 do
18216 # Extract the first word of "$ac_prog", so it can be a program name with args.
18217 set dummy $ac_prog; ac_word=$2
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18219 $as_echo_n "checking for $ac_word... " >&6; }
18220 if ${ac_cv_prog_JAVAC+:} false; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 if test -n "$JAVAC"; then
18224 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
18225 else
18226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227 for as_dir in $PATH
18228 do
18229 IFS=$as_save_IFS
18230 test -z "$as_dir" && as_dir=.
18231 for ac_exec_ext in '' $ac_executable_extensions; do
18232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18233 ac_cv_prog_JAVAC="$ac_prog"
18234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18235 break 2
18236 fi
18237 done
18238 done
18239 IFS=$as_save_IFS
18240
18241 fi
18242 fi
18243 JAVAC=$ac_cv_prog_JAVAC
18244 if test -n "$JAVAC"; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
18246 $as_echo "$JAVAC" >&6; }
18247 else
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249 $as_echo "no" >&6; }
18250 fi
18251
18252
18253 test -n "$JAVAC" && break
18254 done
18255 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
18256
18257 fi
18258 test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
18261 $as_echo_n "checking if $JAVAC works... " >&6; }
18262 if ${ac_cv_prog_javac_works+:} false; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18265
18266 JAVA_TEST=Test.java
18267 CLASS_TEST=Test.class
18268 cat << \EOF > $JAVA_TEST
18269 /* #line 18269 "configure" */
18270 public class Test {
18271 }
18272 EOF
18273 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
18274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18278 test $ac_status = 0; }; } >/dev/null 2>&1; then
18279 ac_cv_prog_javac_works=yes
18280 else
18281 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
18282 echo "configure: failed program was:" >&5
18283 cat $JAVA_TEST >&5
18284 fi
18285 rm -f $JAVA_TEST $CLASS_TEST
18286
18287 fi
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
18289 $as_echo "$ac_cv_prog_javac_works" >&6; }
18290
18291
18292 fi
18293 fi
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
18295 $as_echo_n "checking if $JAVA works... " >&6; }
18296 if ${ac_cv_prog_java_works+:} false; then :
18297 $as_echo_n "(cached) " >&6
18298 else
18299
18300 JAVA_TEST=Test.java
18301 CLASS_TEST=Test.class
18302 TEST=Test
18303 cat << \EOF > $JAVA_TEST
18304 /* [#]line 18304 "configure" */
18305 public class Test {
18306 public static void main (String args[]) {
18307 System.exit (0);
18308 } }
18309 EOF
18310 if test x$ac_cv_prog_uudecode_base64 != xyes; then
18311 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
18312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18313 (eval $ac_try) 2>&5
18314 ac_status=$?
18315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18316 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
18317 :
18318 else
18319 echo "configure: failed program was:" >&5
18320 cat $JAVA_TEST >&5
18321 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
18322 fi
18323 fi
18324 if { ac_try='$JAVA $JAVAFLAGS $TEST'
18325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18329 test $ac_status = 0; }; } >/dev/null 2>&1; then
18330 ac_cv_prog_java_works=yes
18331 else
18332 echo "configure: failed program was:" >&5
18333 cat $JAVA_TEST >&5
18334 as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
18335 fi
18336 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
18337
18338 fi
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
18340 $as_echo "$ac_cv_prog_java_works" >&6; }
18341
18342
18343
18344
18345
18346 JNI_INCLUDE_DIRS=""
18347
18348 test "x$JAVAC" = x && as_fn_error $? "'$JAVAC' undefined" "$LINENO" 5
18349 # Extract the first word of "$JAVAC", so it can be a program name with args.
18350 set dummy $JAVAC; ac_word=$2
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18352 $as_echo_n "checking for $ac_word... " >&6; }
18353 if ${ac_cv_path__ACJNI_JAVAC+:} false; then :
18354 $as_echo_n "(cached) " >&6
18355 else
18356 case $_ACJNI_JAVAC in
18357 [\\/]* | ?:[\\/]*)
18358 ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
18359 ;;
18360 *)
18361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $PATH
18363 do
18364 IFS=$as_save_IFS
18365 test -z "$as_dir" && as_dir=.
18366 for ac_exec_ext in '' $ac_executable_extensions; do
18367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18368 ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
18369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18370 break 2
18371 fi
18372 done
18373 done
18374 IFS=$as_save_IFS
18375
18376 test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
18377 ;;
18378 esac
18379 fi
18380 _ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
18381 if test -n "$_ACJNI_JAVAC"; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5
18383 $as_echo "$_ACJNI_JAVAC" >&6; }
18384 else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18387 fi
18388
18389
18390 test ! -x "$_ACJNI_JAVAC" && as_fn_error $? "$JAVAC could not be found in path" "$LINENO" 5
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute path of $JAVAC" >&5
18392 $as_echo_n "checking absolute path of $JAVAC... " >&6; }
18393 case "$_ACJNI_JAVAC" in
18394 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5
18395 $as_echo "$_ACJNI_JAVAC" >&6; };;
18396 *) as_fn_error $? "$_ACJNI_JAVAC is not an absolute path name" "$LINENO" 5;;
18397 esac
18398
18399
18400 # find the include directory relative to the javac executable
18401 _cur=""$_ACJNI_JAVAC""
18402 while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5
18404 $as_echo_n "checking symlink for $_cur... " >&6; }
18405 _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
18406 case "$_slink" in
18407 /*) _cur="$_slink";;
18408 # 'X' avoids triggering unwanted echo options.
18409 *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
18410 esac
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5
18412 $as_echo "$_cur" >&6; }
18413 done
18414 _ACJNI_FOLLOWED="$_cur"
18415
•18416 _JTOPDIR=`echo "$_ACJNI_JAVAC" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
18417 case "$host_os" in
18418 darwin*) _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
18419 _JINC="$_JTOPDIR/Headers";;
18420 *) _JINC="$_JTOPDIR/include";;
18421 esac
18422
18423 # If we find jni.h in /usr/include, then it's not a java-only tree, so
18424 # don't add /usr/include or subdirectories to the list of includes.
18425 # An extra -I/usr/include can foul things up with newer gcc's.
18426 #
18427 # If we don't find jni.h, just keep going. Hopefully javac knows where
18428 # to find its include files, even if we can't.
18429 if test -r "$_JINC/jni.h"; then
18430 if test "$_JINC" != "/usr/include"; then
18431 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
18432 fi
18433 else
18434 _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
18435 if test -r "$_JTOPDIR/include/jni.h"; then
18436 if test "$_JTOPDIR" != "/usr"; then
18437 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
18438 fi
18439 fi
18440 fi
18441
18442 # get the likely subdirectories for system specific java includes
18443 if test "$_JTOPDIR" != "/usr"; then
18444 case "$host_os" in
18445 aix*) _JNI_INC_SUBDIRS="aix";;
18446 bsdi*) _JNI_INC_SUBDIRS="bsdos";;
18447 cygwin*) _JNI_INC_SUBDIRS="win32";;
18448 freebsd*) _JNI_INC_SUBDIRS="freebsd";;
18449 hp*) _JNI_INC_SUBDIRS="hp-ux";;
18450 linux*) _JNI_INC_SUBDIRS="linux genunix";;
18451 osf*) _JNI_INC_SUBDIRS="alpha";;
18452 solaris*) _JNI_INC_SUBDIRS="solaris";;
18453 *) _JNI_INC_SUBDIRS="genunix";;
18454 esac
18455 fi
18456
18457 # add any subdirectories that are present
18458 for _JINCSUBDIR in $_JNI_INC_SUBDIRS
18459 do
18460 if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
18461 JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
18462 fi
18463 done
18464
18465
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking java version" >&5
18467 $as_echo_n "checking java version... " >&6; }
18468 case "$JAVA" in
18469 *kaffe* )
18470 JAVA_VERSION=`$JAVA -version 2>&1 |
18471 sed -e '/Java Version:/!d' -e 's/.*Java Version: \([^ ]*\)[ ]*/\1/'` ;;
18472 * ) JAVA_VERSION=`$JAVA -version 2>&1 |
18473 sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;;
18474 esac
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_VERSION" >&5
18476 $as_echo "$JAVA_VERSION" >&6; }
18477 case "$JAVA_VERSION" in
18478 1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;;
18479 * )
18480 as_fn_error $? "Java version 1.3 or higher required, got $JAVA_VERSION" "$LINENO" 5 ;;
18481 esac
18482
18483 # Because of the code that SWIG generates to cast between pointers and
18484 # integers, we need to add the flag "-fno-strict-aliasing" to the gcc
18485 # command line when compiling the JNI code. This is documented in
18486 # [#14953] and at http://www.swig.org/Doc1.3/Java.html
18487 if test "${GCC}" = "yes"; then
18488 SWIGCFLAGS="-fno-strict-aliasing"
18489 fi
18490
18491 for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
18492 do
18493 CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
18494 done
18495
18496 if test "$db_cv_java" = "yes"; then
18497 ADDITIONAL_LANG="$ADDITIONAL_LANG java"
18498 INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
18499 fi
18500 else
18501 JAVAC=nojavac
18502 fi
18503
18504 # MinGW support.
18505 if test "$db_cv_mingw" = "yes"; then
18506 OSDIR=os_windows
18507 PATH_SEPARATOR="\\\\/:"
18508
18509 $as_echo "#define DB_WIN32 1" >>confdefs.h
18510
18511 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18512
18513 else
18514 OSDIR=os
18515 PATH_SEPARATOR="/"
18516 $as_echo "#define HAVE_SYSTEM_INCLUDE_FILES 1" >>confdefs.h
18517
18518 fi
18519
18520 # Optional SQL API.
18521 if test "$db_cv_sql" = "yes"; then
18522 ADDITIONAL_INCS="$ADDITIONAL_INCS dbsql.h"
18523 ADDITIONAL_PROGS="$ADDITIONAL_PROGS dbsql"
18524
18525 # Link against libdl, if found. It is only needed for the load
18526 # extension, but shouldn't hurt.
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
18528 $as_echo_n "checking for main in -ldl... " >&6; }
18529 if ${ac_cv_lib_dl_main+:} false; then :
18530 $as_echo_n "(cached) " >&6
18531 else
18532 ac_check_lib_save_LIBS=$LIBS
18533 LIBS="-ldl $LIBS"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536
18537
18538 int
18539 main ()
18540 {
18541 return main ();
18542 ;
18543 return 0;
18544 }
18545 _ACEOF
18546 if ac_fn_c_try_link "$LINENO"; then :
18547 ac_cv_lib_dl_main=yes
18548 else
18549 ac_cv_lib_dl_main=no
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553 LIBS=$ac_check_lib_save_LIBS
18554 fi
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
18556 $as_echo "$ac_cv_lib_dl_main" >&6; }
18557 if test "x$ac_cv_lib_dl_main" = xyes; then :
18558 SQL_LIBS="$SQL_LIBS -ldl"
18559 fi
18560 ac_cv_lib_dl=ac_cv_lib_dl_main
18561
18562
18563 # Link against libedit or readline for command-line editing.
18564 if test x"$with_readline" != xno; then
18565 header=readline.h
18566 for rl_lib in edit readline; do
18567 found="yes"
18568 save_LIBS=""
18569 LIBS=""
18570 { ac_cv_search_tgetent=; unset ac_cv_search_tgetent;}
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
18572 $as_echo_n "checking for library containing tgetent... " >&6; }
18573 if ${ac_cv_search_tgetent+:} false; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 ac_func_search_save_LIBS=$LIBS
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 char tgetent ();
18587 int
18588 main ()
18589 {
18590 return tgetent ();
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 for ac_lib in '' $rl_lib ncurses curses termcap; do
18596 if test -z "$ac_lib"; then
18597 ac_res="none required"
18598 else
18599 ac_res=-l$ac_lib
18600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18601 fi
18602 if ac_fn_c_try_link "$LINENO"; then :
18603 ac_cv_search_tgetent=$ac_res
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext
18607 if ${ac_cv_search_tgetent+:} false; then :
18608 break
18609 fi
18610 done
18611 if ${ac_cv_search_tgetent+:} false; then :
18612
18613 else
18614 ac_cv_search_tgetent=no
18615 fi
18616 rm conftest.$ac_ext
18617 LIBS=$ac_func_search_save_LIBS
18618 fi
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
18620 $as_echo "$ac_cv_search_tgetent" >&6; }
18621 ac_res=$ac_cv_search_tgetent
18622 if test "$ac_res" != no; then :
18623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18624 term_LIBS="$LIBS"
18625 else
18626 term_LIBS=""
18627 fi
18628
18629 as_ac_Lib=`$as_echo "ac_cv_lib_$rl_lib''_readline" | $as_tr_sh`
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -l$rl_lib" >&5
18631 $as_echo_n "checking for readline in -l$rl_lib... " >&6; }
18632 if eval \${$as_ac_Lib+:} false; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-l$rl_lib $LIBS"
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18639
18640 /* Override any GCC internal prototype to avoid an error.
18641 Use char because int might match the return type of a GCC
18642 builtin and then its argument prototype would still apply. */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 char readline ();
18647 int
18648 main ()
18649 {
18650 return readline ();
18651 ;
18652 return 0;
18653 }
18654 _ACEOF
18655 if ac_fn_c_try_link "$LINENO"; then :
18656 eval "$as_ac_Lib=yes"
18657 else
18658 eval "$as_ac_Lib=no"
18659 fi
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18663 fi
18664 eval ac_res=\$$as_ac_Lib
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18666 $as_echo "$ac_res" >&6; }
18667 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18668 SQL_LIBS="$SQL_LIBS -l$rl_lib $term_LIBS"
18669 else
18670 found="no"
18671 fi
18672
18673 LIBS="$save_LIBS"
18674 test "$found" = "yes" && break
18675 done
18676
18677 if test x"$rl_lib" = xedit; then
18678 header="editline/readline.h"
18679 fi
18680
18681 if test "$found" = "yes"; then
18682 as_ac_Header=`$as_echo "ac_cv_header_$header" | $as_tr_sh`
18683 ac_fn_c_check_header_mongrel "$LINENO" "$header" "$as_ac_Header" "$ac_includes_default"
18684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18685 found="yes"
18686 else
18687
18688 found="no"
18689 if test "$cross_compiling" != yes; then
18690 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
18691 for subdir in include include/readline; do
18692 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/$header" | $as_tr_sh`
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/$header" >&5
18694 $as_echo_n "checking for $dir/$subdir/$header... " >&6; }
18695 if eval \${$as_ac_File+:} false; then :
18696 $as_echo_n "(cached) " >&6
18697 else
18698 test "$cross_compiling" = yes &&
18699 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18700 if test -r "$dir/$subdir/$header"; then
18701 eval "$as_ac_File=yes"
18702 else
18703 eval "$as_ac_File=no"
18704 fi
18705 fi
18706 eval ac_res=\$$as_ac_File
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18708 $as_echo "$ac_res" >&6; }
18709 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18710 found=yes
18711 fi
18712
18713 if test "$found" = "yes"; then
18714 SQL_FLAGS="$SQL_FLAGS -I$dir/$subdir"
18715 break
18716 fi
18717 done
18718 test "$found" = "yes" && break
18719 done
18720 fi
18721 fi
18722
18723
18724 fi
18725 fi
18726
18727 if test "$enable_shared" = "no"; then
18728 DEFAULT_LIB_SQL="\$(libsql_version)"
18729 else
18730 DEFAULT_LIB_SQL="\$(libsqlso_target)"
18731 fi
18732 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_SQL"
18733 if test "$enable_static" = "yes"; then
18734 INSTALL_LIBS="$INSTALL_LIBS \$(libsql)"
18735 fi
18736
18737 if test "$db_cv_test" = "yes"; then
18738 subdirs="$subdirs sql"
18739 ADDITIONAL_LANG="$ADDITIONAL_LANG sql-test"
18740 fi
18741
18742 if test "$db_cv_jdbc" = "yes"; then
18743 subdirs="$subdirs jdbc"
18744 ADDITIONAL_LANG="$ADDITIONAL_LANG jdbc"
18745 fi
18746
18747 if test "$db_cv_debug" = "yes"; then
18748 SQL_FLAGS="$SQL_FLAGS -DSQLITE_DEBUG=1"
18749 fi
18750
18751 if test "$db_cv_build_cryptography" = "yes"; then
18752 SQL_FLAGS="$SQL_FLAGS"
18753 fi
18754 fi
18755
18756 if test "$db_cv_sql_compat" = "yes"; then
18757 if test "$enable_shared" = "no"; then
18758 DEFAULT_LIB_SQLITE="\$(libsqlite)"
18759 else
18760 DEFAULT_LIB_SQLITE="\$(libsqliteso_target)"
18761 fi
18762
18763 ADDITIONAL_INCS="$ADDITIONAL_INCS \$(langdir)/sql/generated/sqlite3.h"
18764 ADDITIONAL_PROGS="$ADDITIONAL_PROGS sqlite3"
18765 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_SQLITE"
18766
18767 # This is different to the other libraries: we need to be very
18768 # careful not to delete an existing installation of SQLite unless
18769 # we are installing over it.
18770 if test "$enable_shared" = "yes"; then
18771 INSTALL_LIBS_EXTRA="$INSTALL_LIBS_EXTRA \$(libsqliteso)"
18772 fi
18773 if test "$enable_static" = "yes"; then
18774 INSTALL_LIBS="$INSTALL_LIBS \$(libsqlite)"
18775 fi
18776 fi
18777
18778 # Optional SQL code generation tool.
18779 if test "$db_cv_sql_codegen" = "yes"; then
18780 ADDITIONAL_PROGS="$ADDITIONAL_PROGS db_sql_codegen"
18781 fi
18782
18783 # Optional STL API.
18784 if test "$db_cv_stl" = "yes"; then
18785
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports templates for STL" >&5
18787 $as_echo_n "checking whether the C++ compiler supports templates for STL... " >&6; }
18788
18789 ac_ext=cpp
18790 ac_cpp='$CXXCPP $CPPFLAGS'
18791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18794
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18797 #include <iostream>
18798 #include <string>
18799 #include <vector>
18800
18801 using std::string;
18802 using std::vector;
18803 namespace dbstl_configure_test {
18804
18805 template<typename T1, typename T2 = int>
18806 class MyClass
18807 {
18808 public:
18809 explicit MyClass(int i) { imem = i;}
18810
18811 MyClass(const T1& t1, const T2& t2, int i)
18812 {
18813 mem1 = t1;
18814 mem2 = t2;
18815 imem = i;
18816 }
18817
18818 template <typename T3>
18819 T2 templ_mem_func(T1 t1, T3 t3)
18820 {
18821 mem2 = t1;
18822 T3 t32 = t3;
18823 T2 t2;
18824 return t2;
18825 }
18826
18827 double templ_mem_func(T1 t1, double t3)
18828 {
18829 mem1 = t1;
18830 double t32 = t3;
18831 return t3;
18832 }
18833
18834 template <typename ReturnType, typename T7, typename T8>
18835 ReturnType templ_mem_func(T7, T8);
18836
18837 operator T1() const {return mem1;}
18838 private:
18839 T1 mem1;
18840 T2 mem2;
18841 int imem;
18842 };
18843
18844 template<typename T1, typename T2>
18845 template <typename ReturnType, typename T7, typename T8>
18846 ReturnType MyClass<T1, T2>::templ_mem_func(T7, T8)
18847 {
18848 ReturnType rt;
18849 return rt;
18850 }
18851
18852 template<>
18853 class MyClass<double, float>
18854 {
18855 public:
18856 explicit MyClass(int i) { imem = i;}
18857
18858 MyClass(const double& t1, const float& t2, int i)
18859 {
18860 mem1 = t1;
18861 mem2 = t2;
18862 imem = i;
18863 }
18864
18865 template <typename T3>
18866 float templ_mem_func(double t1, T3 t3)
18867 {
18868 mem2 = t1;
18869 T3 t32 = t3;
18870 float t2;
18871 return t2;
18872 }
18873
18874 double templ_mem_func(double t1, double t3)
18875 {
18876 mem1 = t1;
18877 double t32 = t3;
18878 return t3;
18879 }
18880
18881 template <typename ReturnType, typename T7, typename T8>
18882 ReturnType templ_mem_func(T7, T8);
18883
18884 operator double() const {return mem1;}
18885 private:
18886 double mem1;
18887 float mem2;
18888 int imem;
18889 };
18890
18891 template <typename ReturnType, typename T7, typename T8>
18892 ReturnType MyClass<double, float>::templ_mem_func(T7, T8)
18893 {
18894 ReturnType rt;
18895 return rt;
18896 }
18897
18898 template <typename T1, typename T2>
18899 class MyClass2 {
18900 public:
18901 MyClass2(const T1& t1, const T2&t2){}
18902 };
18903
18904 // partial specialization: both template parameters have same type
18905 template <typename T>
18906 class MyClass2<T,T> {
18907 public:
18908 MyClass2(const T& t1, const T&t2){}
18909 };
18910
18911 // partial specialization: second type is int
18912 template <typename T>
18913 class MyClass2<T,int> {
18914 public:
18915 MyClass2(const T& t1, const int&t2){}
18916 };
18917
18918 // partial specialization: both template parameters are pointer types
18919 template <typename T1, typename T2>
18920 class MyClass2<T1*,T2*> {
18921 public:
18922 MyClass2(const T1* t1, const T2*t2){}
18923 };
18924
18925 template <typename T>
18926 class MyClass2<T*,T*> {
18927 public:
18928 MyClass2(const T* t1, const T*t2){}
18929 };
18930
18931 template <typename T4, typename T5>
18932 int part_spec_func(T4 t4, T5 t5)
18933 {
18934 // Zero Initialization should work.
18935 T4 t44 = T4();
18936 T5 t55 = T5();
18937
18938 t44 = t4;
18939 t55 = t5;
18940 }
18941
18942 template <typename T4>
18943 int part_spec_func(T4 t4, std::vector<T4> t55)
18944 {
18945 T4 t44 = t4;
18946 std::vector<T4> abc = t55;
18947 }
18948
18949 // maximum of two int values
18950 inline int const& max (int const& a, int const& b)
18951 {
18952 return a<b?b:a;
18953 }
18954
18955 // maximum of two values of any type
18956 template <typename T1, typename T2>
18957 inline T2 const max (T1 const& a, T2 const& b)
18958 {
18959 return a<b?b:a;
18960 }
18961 // maximum of two values of any type
18962 template <typename T>
18963 inline T const& max (T const& a, T const& b)
18964 {
18965 return a<b?b:a;
18966 }
18967
18968 // maximum of three values of any type
18969 template <typename T>
18970 inline T const& max (T const& a, T const& b, T const& c)
18971 {
18972 return max (max(a,b), c);
18973 }
18974
18975 template <typename T>
18976 class Base {
18977 public:
18978 void exit2(){}
18979 Base(){}
18980 };
18981
18982 template <typename T>
18983 class Derived : public Base<T> {
18984 public:
18985 // Call Base<T>() explicitly here, otherwise can't access it.
18986 // Kind of like this->.
18987 Derived() : Base<T>(){}
18988
18989 void foo() {
18990 this->exit2();
18991 }
18992 };
18993
18994 } // dbstl_configure_test
18995
18996 using namespace dbstl_configure_test;
18997 int
18998 main ()
18999 {
19000
19001 char cc = 'a';
19002 int i = 4;
19003 double pi = 3.14;
19004 float gold = 0.618;
19005
19006 MyClass2<int,float> mif(i, gold); // uses MyClass2<T1,T2>
19007 MyClass2<float,float> mff(gold, gold); // uses MyClass2<T,T>
19008 MyClass2<float,int> mfi(gold, i); // uses MyClass2<T,int>
19009 MyClass2<int*,float*> mp(&i, &gold); // uses MyClass2<T1*,T2*>
19010 MyClass2<int*,int*> m(&i, &i); // uses MyClass2<T*, T*>
19011
19012 MyClass<char> obj1(i);
19013 obj1.templ_mem_func(cc, pi);
19014 obj1.templ_mem_func(cc, gold);
19015 obj1.templ_mem_func(i, pi);
19016 obj1.templ_mem_func(cc, cc);
19017 char ch = (char)obj1;
19018
19019 string str1("abc"), str2("def");
19020 MyClass<const char*, std::string> obj2(str1.c_str(), str2, i);
19021 obj2.templ_mem_func("klm", str2);
19022 obj2.templ_mem_func("hij", pi);
19023
19024 // Use j to help distinguish, otherwise unable to use the one defined
19025 // outside of class body.
19026 int j = obj2.templ_mem_func<int, char, char>(cc, cc);
19027 // Call explicitly.
19028 obj2.templ_mem_func<int, float, double>(gold, pi);
19029 const char *pch = (const char*)obj2;
19030
19031 MyClass<double, float> obj3(pi, gold, i);
19032 obj3.templ_mem_func(pi, i);
19033 obj3.templ_mem_func(pi, str1);
19034 obj3.templ_mem_func(pi, pi);
19035 obj3.templ_mem_func(cc, pi);
19036 obj3.templ_mem_func(cc, cc);
19037 double tmpd = (double)obj3;
19038
19039 MyClass<double, float> obj4(i);
19040 obj4.templ_mem_func(pi, i);
19041 obj4.templ_mem_func(pi, str1);
19042 obj4.templ_mem_func(pi, pi);
19043 obj4.templ_mem_func(gold, pi);
19044 tmpd = (double)obj4;
19045
19046 // Function template partial specialization.
19047 part_spec_func(pi, gold);
19048 part_spec_func(gold, i);
19049 part_spec_func(str1, str2);
19050 std::vector<std::string> strv;
19051 part_spec_func(str1, strv);
19052 std::vector<double> dblv;
19053 part_spec_func(pi, dblv);
19054
19055 // Function template overloads and explicit call and deduction.
19056 dbstl_configure_test::max(7, 42, 68); // calls the template for three arguments
19057 dbstl_configure_test::max(7.0, 42.0); // calls max<double> (by argument deduction)
19058 dbstl_configure_test::max('a', 'b'); // calls max<char> (by argument deduction)
19059 dbstl_configure_test::max(7, 42.0);
19060 dbstl_configure_test::max<double>(4,4.2); // instantiate T as double
19061 dbstl_configure_test::max(7, 42); // calls the nontemplate for two ints
19062 dbstl_configure_test::max<>(7, 42); // calls max<int> (by argument deduction)
19063 dbstl_configure_test::max<double, double>(7, 42); // calls max<double> (no argument deduction)
19064 dbstl_configure_test::max('a', 42.7); // calls the nontemplate for two ints
19065
19066 Base<double> bobj;
19067 bobj.exit2();
19068 // Using this-> to access base class members.
19069 Derived<double> dobj;
19070 dobj.foo();
19071 dobj.exit2();
19072
19073 ;
19074 return 0;
19075 }
19076 _ACEOF
19077 if ac_fn_cxx_try_compile "$LINENO"; then :
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19079 $as_echo "yes" >&6; }
19080 else
19081 as_fn_error $? "no" "$LINENO" 5
19082 fi
19083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084 ac_ext=c
19085 ac_cpp='$CPP $CPPFLAGS'
19086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19089
19090
19091
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ supports the wstring class" >&5
19093 $as_echo_n "checking whether C++ supports the wstring class... " >&6; }
19094
19095 ac_ext=cpp
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19100
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19103 #include <string>
19104 std::wstring ws; ws.find_first_of(ws);
19105 int
19106 main ()
19107 {
19108
19109 ;
19110 return 0;
19111 },
19112 WSTRING_decl="#define HAVE_WSTRING 1" ; AC_MSG_RESULT(yes),
19113 WSTRING_decl="#undef HAVE_WSTRING" ; AC_MSG_RESULT(no)
19114 _ACEOF
19115 if ac_fn_cxx_try_link "$LINENO"; then :
19116
19117 fi
19118 rm -f core conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
19120 ac_ext=c
19121 ac_cpp='$CPP $CPPFLAGS'
19122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125
19126
19127
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
19129 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
19130
19131
19132 ac_cv_tls=none
19133
19134 ac_ext=cpp
19135 ac_cpp='$CXXCPP $CPPFLAGS'
19136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19139
19140 ax_tls_keywords="__thread __declspec(thread) __declspec(__thread)"
19141 for ax_tls_decl_keyword in $ax_tls_keywords ""; do
19142 for ax_tls_defn_keyword in $ax_tls_keywords ""; do
19143 test -z "$ax_tls_decl_keyword" &&
19144 test -z "$ax_tls_defn_keyword" && continue
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 template <typename T>class TLSClass {
19148 public: static $ax_tls_decl_keyword T *tlsvar;
19149 };
19150 class TLSClass2 {
19151 public: static $ax_tls_decl_keyword int tlsvar;
19152 };
19153 template<typename T> $ax_tls_defn_keyword T* TLSClass<T>::tlsvar = NULL;
19154 $ax_tls_defn_keyword int TLSClass2::tlsvar = 1;
19155 static $ax_tls_decl_keyword int x = 0;
19156 int
19157 main ()
19158 {
19159 TLSClass<int>::tlsvar = NULL; TLSClass2::tlsvar = 1;
19160 ;
19161 return 0;
19162 }
19163 _ACEOF
19164 if ac_fn_cxx_try_compile "$LINENO"; then :
19165 ac_cv_tls=modifier ; break
19166 fi
19167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 done
19169 test "$ac_cv_tls" = none || break
19170 done
19171 ac_ext=c
19172 ac_cpp='$CPP $CPPFLAGS'
19173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19176
19177 if test "$ac_cv_tls" = "none" ; then
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <stdlib.h>
19181 #include <pthread.h>
19182
19183 static pthread_once_t once_control_ = PTHREAD_ONCE_INIT;
19184 static pthread_key_t key;
19185
19186 static void init_once(void) {
19187 pthread_key_create(&key, NULL);
19188 }
19189 static void *get_tls() {
19190 return (void *)pthread_getspecific(&key);
19191 }
19192 static void set_tls(void *p) {
19193 pthread_setspecific(&key, p);
19194 }
19195 int
19196 main ()
19197 {
19198
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_c_try_compile "$LINENO"; then :
19204 ac_cv_tls=pthread
19205 fi
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 fi
19208
19209 case "$ac_cv_tls" in
19210 none) break ;;
19211 pthread)
19212 TLS_decl="#define HAVE_PTHREAD_TLS"
19213 TLS_defn="" ;;
19214 modifier)
19215 TLS_decl="#define TLS_DECL_MODIFIER $ax_tls_decl_keyword"
19216 TLS_defn="#define TLS_DEFN_MODIFIER $ax_tls_defn_keyword" ;;
19217 esac
19218
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
19220 $as_echo "$ac_cv_tls" >&6; }
19221
19222 if test "$enable_shared" = "no"; then
19223 DEFAULT_LIB_STL="\$(libstl_version)"
19224 fi
19225 if test "$enable_shared" = "yes"; then
19226 DEFAULT_LIB_STL="\$(libstlso_target)"
19227 fi
19228 ADDITIONAL_INCS="$ADDITIONAL_INCS dbstl_common.h"
19229 for f in dbstl_set.h dbstl_vector.h dbstl_exception.h dbstl_map.h dbstl_utility.h dbstl_dbc.h dbstl_dbt.h dbstl_base_iterator.h dbstl_container.h dbstl_element_ref.h dbstl_inner_utility.h dbstl_resource_manager.h ; do
19230 ADDITIONAL_INCS="$ADDITIONAL_INCS \$(topdir)/lang/cxx/stl/$f"
19231 done
19232 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_STL"
19233 if test "$enable_static" = "yes"; then
19234 INSTALL_LIBS="$INSTALL_LIBS \$(libstl)"
19235 fi
19236 fi
19237
19238 # Checks for include files, structures, C types.
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19240 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19241 if ${ac_cv_header_stat_broken+:} false; then :
19242 $as_echo_n "(cached) " >&6
19243 else
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246 #include <sys/types.h>
19247 #include <sys/stat.h>
19248
19249 #if defined S_ISBLK && defined S_IFDIR
19250 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19251 #endif
19252
19253 #if defined S_ISBLK && defined S_IFCHR
19254 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19255 #endif
19256
19257 #if defined S_ISLNK && defined S_IFREG
19258 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19259 #endif
19260
19261 #if defined S_ISSOCK && defined S_IFREG
19262 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19263 #endif
19264
19265 _ACEOF
19266 if ac_fn_c_try_compile "$LINENO"; then :
19267 ac_cv_header_stat_broken=no
19268 else
19269 ac_cv_header_stat_broken=yes
19270 fi
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 fi
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19274 $as_echo "$ac_cv_header_stat_broken" >&6; }
19275 if test $ac_cv_header_stat_broken = yes; then
19276
19277 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19278
19279 fi
19280
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19282 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19283 if ${ac_cv_header_time+:} false; then :
19284 $as_echo_n "(cached) " >&6
19285 else
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288 #include <sys/types.h>
19289 #include <sys/time.h>
19290 #include <time.h>
19291
19292 int
19293 main ()
19294 {
19295 if ((struct tm *) 0)
19296 return 0;
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_compile "$LINENO"; then :
19302 ac_cv_header_time=yes
19303 else
19304 ac_cv_header_time=no
19305 fi
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19309 $as_echo "$ac_cv_header_time" >&6; }
19310 if test $ac_cv_header_time = yes; then
19311
19312 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19313
19314 fi
19315
19316 ac_header_dirent=no
19317 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19318 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19320 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19321 if eval \${$as_ac_Header+:} false; then :
19322 $as_echo_n "(cached) " >&6
19323 else
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19326 #include <sys/types.h>
19327 #include <$ac_hdr>
19328
19329 int
19330 main ()
19331 {
19332 if ((DIR *) 0)
19333 return 0;
19334 ;
19335 return 0;
19336 }
19337 _ACEOF
19338 if ac_fn_c_try_compile "$LINENO"; then :
19339 eval "$as_ac_Header=yes"
19340 else
19341 eval "$as_ac_Header=no"
19342 fi
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 fi
19345 eval ac_res=\$$as_ac_Header
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19349 cat >>confdefs.h <<_ACEOF
19350 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19351 _ACEOF
19352
19353 ac_header_dirent=$ac_hdr; break
19354 fi
19355
19356 done
19357 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19358 if test $ac_header_dirent = dirent.h; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19360 $as_echo_n "checking for library containing opendir... " >&6; }
19361 if ${ac_cv_search_opendir+:} false; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364 ac_func_search_save_LIBS=$LIBS
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19371 #ifdef __cplusplus
19372 extern "C"
19373 #endif
19374 char opendir ();
19375 int
19376 main ()
19377 {
19378 return opendir ();
19379 ;
19380 return 0;
19381 }
19382 _ACEOF
19383 for ac_lib in '' dir; do
19384 if test -z "$ac_lib"; then
19385 ac_res="none required"
19386 else
19387 ac_res=-l$ac_lib
19388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19389 fi
19390 if ac_fn_c_try_link "$LINENO"; then :
19391 ac_cv_search_opendir=$ac_res
19392 fi
19393 rm -f core conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext
19395 if ${ac_cv_search_opendir+:} false; then :
19396 break
19397 fi
19398 done
19399 if ${ac_cv_search_opendir+:} false; then :
19400
19401 else
19402 ac_cv_search_opendir=no
19403 fi
19404 rm conftest.$ac_ext
19405 LIBS=$ac_func_search_save_LIBS
19406 fi
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19408 $as_echo "$ac_cv_search_opendir" >&6; }
19409 ac_res=$ac_cv_search_opendir
19410 if test "$ac_res" != no; then :
19411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19412
19413 fi
19414
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19417 $as_echo_n "checking for library containing opendir... " >&6; }
19418 if ${ac_cv_search_opendir+:} false; then :
19419 $as_echo_n "(cached) " >&6
19420 else
19421 ac_func_search_save_LIBS=$LIBS
19422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423 /* end confdefs.h. */
19424
19425 /* Override any GCC internal prototype to avoid an error.
19426 Use char because int might match the return type of a GCC
19427 builtin and then its argument prototype would still apply. */
19428 #ifdef __cplusplus
19429 extern "C"
19430 #endif
19431 char opendir ();
19432 int
19433 main ()
19434 {
19435 return opendir ();
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 for ac_lib in '' x; do
19441 if test -z "$ac_lib"; then
19442 ac_res="none required"
19443 else
19444 ac_res=-l$ac_lib
19445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19446 fi
19447 if ac_fn_c_try_link "$LINENO"; then :
19448 ac_cv_search_opendir=$ac_res
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext
19452 if ${ac_cv_search_opendir+:} false; then :
19453 break
19454 fi
19455 done
19456 if ${ac_cv_search_opendir+:} false; then :
19457
19458 else
19459 ac_cv_search_opendir=no
19460 fi
19461 rm conftest.$ac_ext
19462 LIBS=$ac_func_search_save_LIBS
19463 fi
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19465 $as_echo "$ac_cv_search_opendir" >&6; }
19466 ac_res=$ac_cv_search_opendir
19467 if test "$ac_res" != no; then :
19468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19469
19470 fi
19471
19472 fi
19473
19474 for ac_header in execinfo.h sys/select.h sys/socket.h sys/time.h
19475 do :
19476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19479 cat >>confdefs.h <<_ACEOF
19480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19481 _ACEOF
19482
19483 fi
19484
19485 done
19486
19487 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
19488 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
19489
19490 cat >>confdefs.h <<_ACEOF
19491 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19492 _ACEOF
19493
19494
19495 fi
19496
19497
19498
19499 # db.h includes <sys/types.h> and <stdio.h>, not the other default includes
19500 # autoconf usually includes. For that reason, we specify a set of includes
19501 # for all type checking tests. [#5060]
19502 #
19503 # C99 says types should be in <stdint.h>; include <stdint.h> if it exists.
19504 #
19505 # Some systems have types in <stddef.h>; include <stddef.h> if it exists.
19506 #
19507 # IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found
19508 # in <sys/types.h>; include <inttypes.h> if it exists.
19509 db_includes="#include <sys/types.h>"
19510
19511 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19512 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19513
19514 db_includes="$db_includes
19515 #include <inttypes.h>"
19516 inttypes_h_decl="#include <inttypes.h>"
19517 fi
19518
19519
19520
19521 # IRIX has stdint.h that is only available when using c99 (i.e. __c99
19522 # is defined). Problem with having it in a public header is that a c++
19523 # compiler cannot #include <db.h> if db.h #includes stdint.h, so we
19524 # need to check that stdint.h is available for all cases. Also the
19525 # IRIX compiler does not exit with a non-zero exit code when it sees
19526 # #error, so we actually need to use the header for the compiler to fail.
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19529 $as_echo_n "checking for stdint.h... " >&6; }
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532
19533 #include <stdint.h>
19534 int main() {
19535 uint_least8_t x=0;
19536 return x;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_compile "$LINENO"; then :
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 $as_echo "yes" >&6; }
19542 if test "$db_cv_cxx" = "yes"; then
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stdint.h can be used by C++" >&5
19544 $as_echo_n "checking if stdint.h can be used by C++... " >&6; }
19545 ac_ext=cpp
19546 ac_cpp='$CXXCPP $CPPFLAGS'
19547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19550
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553 #include <stdint.h>
19554 int main() {
19555 uint_least8_t x=0;
19556 return x;
19557 }
19558 _ACEOF
19559 if ac_fn_cxx_try_compile "$LINENO"; then :
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19561 $as_echo "yes" >&6; }
19562 stdint_h_decl="#include <stdint.h>"
19563 db_includes="$db_includes
19564 #include <stdint.h>"
19565
19566 else
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568 $as_echo "no" >&6; }
19569 stdint_h_decl="#ifndef __cplusplus
19570 #include <stdint.h>
19571 #endif"
19572 db_includes="$db_includes
19573 #ifndef __cplusplus
19574 #include <stdint.h>
19575 #endif"
19576
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579 ac_ext=c
19580 ac_cpp='$CPP $CPPFLAGS'
19581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584
19585 else
19586 stdint_h_decl="#include <stdint.h>"
19587 db_includes="$db_includes
19588 #include <stdint.h>"
19589 fi
19590 else
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 $as_echo "no" >&6; }
19593 fi
19594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595
19596
19597 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
19598 if test "x$ac_cv_header_stddef_h" = xyes; then :
19599
19600 db_includes="$db_includes
19601 #include <stddef.h>"
19602 stddef_h_decl="#include <stddef.h>"
19603 fi
19604
19605
19606
19607 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19608 if test "x$ac_cv_header_unistd_h" = xyes; then :
19609
19610 db_includes="$db_includes
19611 #include <unistd.h>"
19612 unistd_h_decl="#include <unistd.h>"
19613 fi
19614
19615
19616 db_includes="$db_includes
19617 #include <stdio.h>"
19618
19619 # We need to know the sizes of various objects on this system.
19620 # The cast to long int works around a bug in the HP C Compiler
19621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19623 # This bug is HP SR number 8606223364.
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
19625 $as_echo_n "checking size of char... " >&6; }
19626 if ${ac_cv_sizeof_char+:} false; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$db_includes
19630 "; then :
19631
19632 else
19633 if test "$ac_cv_type_char" = yes; then
19634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19636 as_fn_error 77 "cannot compute sizeof (char)
19637 See \`config.log' for more details" "$LINENO" 5; }
19638 else
19639 ac_cv_sizeof_char=0
19640 fi
19641 fi
19642
19643 fi
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
19645 $as_echo "$ac_cv_sizeof_char" >&6; }
19646
19647
19648
19649 cat >>confdefs.h <<_ACEOF
19650 #define SIZEOF_CHAR $ac_cv_sizeof_char
19651 _ACEOF
19652
19653
19654 # The cast to long int works around a bug in the HP C Compiler
19655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19657 # This bug is HP SR number 8606223364.
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
19659 $as_echo_n "checking size of unsigned char... " >&6; }
19660 if ${ac_cv_sizeof_unsigned_char+:} false; then :
19661 $as_echo_n "(cached) " >&6
19662 else
19663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$db_includes
19664 "; then :
19665
19666 else
19667 if test "$ac_cv_type_unsigned_char" = yes; then
19668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19670 as_fn_error 77 "cannot compute sizeof (unsigned char)
19671 See \`config.log' for more details" "$LINENO" 5; }
19672 else
19673 ac_cv_sizeof_unsigned_char=0
19674 fi
19675 fi
19676
19677 fi
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
19679 $as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
19680
19681
19682
19683 cat >>confdefs.h <<_ACEOF
19684 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
19685 _ACEOF
19686
19687
19688 # The cast to long int works around a bug in the HP C Compiler
19689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19691 # This bug is HP SR number 8606223364.
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19693 $as_echo_n "checking size of short... " >&6; }
19694 if ${ac_cv_sizeof_short+:} false; then :
19695 $as_echo_n "(cached) " >&6
19696 else
19697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$db_includes
19698 "; then :
19699
19700 else
19701 if test "$ac_cv_type_short" = yes; then
19702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19704 as_fn_error 77 "cannot compute sizeof (short)
19705 See \`config.log' for more details" "$LINENO" 5; }
19706 else
19707 ac_cv_sizeof_short=0
19708 fi
19709 fi
19710
19711 fi
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19713 $as_echo "$ac_cv_sizeof_short" >&6; }
19714
19715
19716
19717 cat >>confdefs.h <<_ACEOF
19718 #define SIZEOF_SHORT $ac_cv_sizeof_short
19719 _ACEOF
19720
19721
19722 # The cast to long int works around a bug in the HP C Compiler
19723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19725 # This bug is HP SR number 8606223364.
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
19727 $as_echo_n "checking size of unsigned short... " >&6; }
19728 if ${ac_cv_sizeof_unsigned_short+:} false; then :
19729 $as_echo_n "(cached) " >&6
19730 else
19731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$db_includes
19732 "; then :
19733
19734 else
19735 if test "$ac_cv_type_unsigned_short" = yes; then
19736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19738 as_fn_error 77 "cannot compute sizeof (unsigned short)
19739 See \`config.log' for more details" "$LINENO" 5; }
19740 else
19741 ac_cv_sizeof_unsigned_short=0
19742 fi
19743 fi
19744
19745 fi
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
19747 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
19748
19749
19750
19751 cat >>confdefs.h <<_ACEOF
19752 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
19753 _ACEOF
19754
19755
19756 # The cast to long int works around a bug in the HP C Compiler
19757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19759 # This bug is HP SR number 8606223364.
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19761 $as_echo_n "checking size of int... " >&6; }
19762 if ${ac_cv_sizeof_int+:} false; then :
19763 $as_echo_n "(cached) " >&6
19764 else
19765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$db_includes
19766 "; then :
19767
19768 else
19769 if test "$ac_cv_type_int" = yes; then
19770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19772 as_fn_error 77 "cannot compute sizeof (int)
19773 See \`config.log' for more details" "$LINENO" 5; }
19774 else
19775 ac_cv_sizeof_int=0
19776 fi
19777 fi
19778
19779 fi
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19781 $as_echo "$ac_cv_sizeof_int" >&6; }
19782
19783
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define SIZEOF_INT $ac_cv_sizeof_int
19787 _ACEOF
19788
19789
19790 # The cast to long int works around a bug in the HP C Compiler
19791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19793 # This bug is HP SR number 8606223364.
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19795 $as_echo_n "checking size of unsigned int... " >&6; }
19796 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19797 $as_echo_n "(cached) " >&6
19798 else
19799 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$db_includes
19800 "; then :
19801
19802 else
19803 if test "$ac_cv_type_unsigned_int" = yes; then
19804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19806 as_fn_error 77 "cannot compute sizeof (unsigned int)
19807 See \`config.log' for more details" "$LINENO" 5; }
19808 else
19809 ac_cv_sizeof_unsigned_int=0
19810 fi
19811 fi
19812
19813 fi
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19815 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19816
19817
19818
19819 cat >>confdefs.h <<_ACEOF
19820 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19821 _ACEOF
19822
19823
19824 # The cast to long int works around a bug in the HP C Compiler
19825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19827 # This bug is HP SR number 8606223364.
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19829 $as_echo_n "checking size of long... " >&6; }
19830 if ${ac_cv_sizeof_long+:} false; then :
19831 $as_echo_n "(cached) " >&6
19832 else
19833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$db_includes
19834 "; then :
19835
19836 else
19837 if test "$ac_cv_type_long" = yes; then
19838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19840 as_fn_error 77 "cannot compute sizeof (long)
19841 See \`config.log' for more details" "$LINENO" 5; }
19842 else
19843 ac_cv_sizeof_long=0
19844 fi
19845 fi
19846
19847 fi
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19849 $as_echo "$ac_cv_sizeof_long" >&6; }
19850
19851
19852
19853 cat >>confdefs.h <<_ACEOF
19854 #define SIZEOF_LONG $ac_cv_sizeof_long
19855 _ACEOF
19856
19857
19858 # The cast to long int works around a bug in the HP C Compiler
19859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19861 # This bug is HP SR number 8606223364.
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
19863 $as_echo_n "checking size of unsigned long... " >&6; }
19864 if ${ac_cv_sizeof_unsigned_long+:} false; then :
19865 $as_echo_n "(cached) " >&6
19866 else
19867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$db_includes
19868 "; then :
19869
19870 else
19871 if test "$ac_cv_type_unsigned_long" = yes; then
19872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19874 as_fn_error 77 "cannot compute sizeof (unsigned long)
19875 See \`config.log' for more details" "$LINENO" 5; }
19876 else
19877 ac_cv_sizeof_unsigned_long=0
19878 fi
19879 fi
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
19883 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
19884
19885
19886
19887 cat >>confdefs.h <<_ACEOF
19888 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19889 _ACEOF
19890
19891
19892 # The cast to long int works around a bug in the HP C Compiler
19893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19895 # This bug is HP SR number 8606223364.
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
19897 $as_echo_n "checking size of long long... " >&6; }
19898 if ${ac_cv_sizeof_long_long+:} false; then :
19899 $as_echo_n "(cached) " >&6
19900 else
19901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$db_includes
19902 "; then :
19903
19904 else
19905 if test "$ac_cv_type_long_long" = yes; then
19906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19908 as_fn_error 77 "cannot compute sizeof (long long)
19909 See \`config.log' for more details" "$LINENO" 5; }
19910 else
19911 ac_cv_sizeof_long_long=0
19912 fi
19913 fi
19914
19915 fi
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
19917 $as_echo "$ac_cv_sizeof_long_long" >&6; }
19918
19919
19920
19921 cat >>confdefs.h <<_ACEOF
19922 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19923 _ACEOF
19924
19925
19926 # The cast to long int works around a bug in the HP C Compiler
19927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19929 # This bug is HP SR number 8606223364.
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
19931 $as_echo_n "checking size of unsigned long long... " >&6; }
19932 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
19933 $as_echo_n "(cached) " >&6
19934 else
19935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$db_includes
19936 "; then :
19937
19938 else
19939 if test "$ac_cv_type_unsigned_long_long" = yes; then
19940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19942 as_fn_error 77 "cannot compute sizeof (unsigned long long)
19943 See \`config.log' for more details" "$LINENO" 5; }
19944 else
19945 ac_cv_sizeof_unsigned_long_long=0
19946 fi
19947 fi
19948
19949 fi
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
19951 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
19952
19953
19954
19955 cat >>confdefs.h <<_ACEOF
19956 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
19957 _ACEOF
19958
19959
19960 # The cast to long int works around a bug in the HP C Compiler
19961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19963 # This bug is HP SR number 8606223364.
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19965 $as_echo_n "checking size of char *... " >&6; }
19966 if ${ac_cv_sizeof_char_p+:} false; then :
19967 $as_echo_n "(cached) " >&6
19968 else
19969 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$db_includes
19970 "; then :
19971
19972 else
19973 if test "$ac_cv_type_char_p" = yes; then
19974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19976 as_fn_error 77 "cannot compute sizeof (char *)
19977 See \`config.log' for more details" "$LINENO" 5; }
19978 else
19979 ac_cv_sizeof_char_p=0
19980 fi
19981 fi
19982
19983 fi
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19985 $as_echo "$ac_cv_sizeof_char_p" >&6; }
19986
19987
19988
19989 cat >>confdefs.h <<_ACEOF
19990 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19991 _ACEOF
19992
19993
19994
19995 # We look for u_char, u_short, u_int, u_long -- if we can't find them,
19996 # we create our own.
19997
19998 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$db_includes
19999 "
20000 if test "x$ac_cv_type_u_char" = xyes; then :
20001
20002 else
20003 u_char_decl="typedef unsigned char u_char;"
20004 fi
20005
20006
20007
20008 ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$db_includes
20009 "
20010 if test "x$ac_cv_type_u_short" = xyes; then :
20011
20012 else
20013 u_short_decl="typedef unsigned short u_short;"
20014 fi
20015
20016
20017
20018 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$db_includes
20019 "
20020 if test "x$ac_cv_type_u_int" = xyes; then :
20021
20022 else
20023 u_int_decl="typedef unsigned int u_int;"
20024 fi
20025
20026
20027
20028 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$db_includes
20029 "
20030 if test "x$ac_cv_type_u_long" = xyes; then :
20031
20032 else
20033 u_long_decl="typedef unsigned long u_long;"
20034 fi
20035
20036
20037 # We look for fixed-size variants of u_char, u_short, u_int, u_long as well.
20038
20039 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$db_includes
20040 "
20041 if test "x$ac_cv_type_u_int8_t" = xyes; then :
20042
20043 else
20044
20045 case "1" in
20046 "$ac_cv_sizeof_unsigned_int")
20047 u_int8_decl="typedef unsigned int u_int8_t;";;
20048 "$ac_cv_sizeof_unsigned_char")
20049 u_int8_decl="typedef unsigned char u_int8_t;";;
20050 "$ac_cv_sizeof_unsigned_short")
20051 u_int8_decl="typedef unsigned short u_int8_t;";;
20052 "$ac_cv_sizeof_unsigned_long")
20053 u_int8_decl="typedef unsigned long u_int8_t;";;
20054 "$ac_cv_sizeof_unsigned_long_long")
20055 u_int8_decl="typedef unsigned long long u_int8_t;";;
20056 *)
20057 if test "" != "notfatal"; then
20058 as_fn_error $? "No unsigned 1-byte integral type" "$LINENO" 5
20059 fi;;
20060 esac
20061 fi
20062
20063
20064
20065 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$db_includes
20066 "
20067 if test "x$ac_cv_type_u_int16_t" = xyes; then :
20068
20069 else
20070
20071 case "2" in
20072 "$ac_cv_sizeof_unsigned_int")
20073 u_int16_decl="typedef unsigned int u_int16_t;";;
20074 "$ac_cv_sizeof_unsigned_char")
20075 u_int16_decl="typedef unsigned char u_int16_t;";;
20076 "$ac_cv_sizeof_unsigned_short")
20077 u_int16_decl="typedef unsigned short u_int16_t;";;
20078 "$ac_cv_sizeof_unsigned_long")
20079 u_int16_decl="typedef unsigned long u_int16_t;";;
20080 "$ac_cv_sizeof_unsigned_long_long")
20081 u_int16_decl="typedef unsigned long long u_int16_t;";;
20082 *)
20083 if test "" != "notfatal"; then
20084 as_fn_error $? "No unsigned 2-byte integral type" "$LINENO" 5
20085 fi;;
20086 esac
20087 fi
20088
20089
20090
20091 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$db_includes
20092 "
20093 if test "x$ac_cv_type_int16_t" = xyes; then :
20094
20095 else
20096
20097 case "2" in
20098 "$ac_cv_sizeof_int")
20099 int16_decl="typedef int int16_t;";;
20100 "$ac_cv_sizeof_char")
20101 int16_decl="typedef char int16_t;";;
20102 "$ac_cv_sizeof_short")
20103 int16_decl="typedef short int16_t;";;
20104 "$ac_cv_sizeof_long")
20105 int16_decl="typedef long int16_t;";;
20106 "$ac_cv_sizeof_long_long")
20107 int16_decl="typedef long long int16_t;";;
20108 *)
20109 if test "" != "notfatal"; then
20110 as_fn_error $? "No signed 2-byte integral type" "$LINENO" 5
20111 fi;;
20112 esac
20113 fi
20114
20115
20116
20117 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$db_includes
20118 "
20119 if test "x$ac_cv_type_u_int32_t" = xyes; then :
20120
20121 else
20122
20123 case "4" in
20124 "$ac_cv_sizeof_unsigned_int")
20125 u_int32_decl="typedef unsigned int u_int32_t;";;
20126 "$ac_cv_sizeof_unsigned_char")
20127 u_int32_decl="typedef unsigned char u_int32_t;";;
20128 "$ac_cv_sizeof_unsigned_short")
20129 u_int32_decl="typedef unsigned short u_int32_t;";;
20130 "$ac_cv_sizeof_unsigned_long")
20131 u_int32_decl="typedef unsigned long u_int32_t;";;
20132 "$ac_cv_sizeof_unsigned_long_long")
20133 u_int32_decl="typedef unsigned long long u_int32_t;";;
20134 *)
20135 if test "" != "notfatal"; then
20136 as_fn_error $? "No unsigned 4-byte integral type" "$LINENO" 5
20137 fi;;
20138 esac
20139 fi
20140
20141
20142
20143 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$db_includes
20144 "
20145 if test "x$ac_cv_type_int32_t" = xyes; then :
20146
20147 else
20148
20149 case "4" in
20150 "$ac_cv_sizeof_int")
20151 int32_decl="typedef int int32_t;";;
20152 "$ac_cv_sizeof_char")
20153 int32_decl="typedef char int32_t;";;
20154 "$ac_cv_sizeof_short")
20155 int32_decl="typedef short int32_t;";;
20156 "$ac_cv_sizeof_long")
20157 int32_decl="typedef long int32_t;";;
20158 "$ac_cv_sizeof_long_long")
20159 int32_decl="typedef long long int32_t;";;
20160 *)
20161 if test "" != "notfatal"; then
20162 as_fn_error $? "No signed 4-byte integral type" "$LINENO" 5
20163 fi;;
20164 esac
20165 fi
20166
20167
20168
20169 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$db_includes
20170 "
20171 if test "x$ac_cv_type_u_int64_t" = xyes; then :
20172
20173 else
20174
20175 case "8" in
20176 "$ac_cv_sizeof_unsigned_int")
20177 u_int64_decl="typedef unsigned int u_int64_t;";;
20178 "$ac_cv_sizeof_unsigned_char")
20179 u_int64_decl="typedef unsigned char u_int64_t;";;
20180 "$ac_cv_sizeof_unsigned_short")
20181 u_int64_decl="typedef unsigned short u_int64_t;";;
20182 "$ac_cv_sizeof_unsigned_long")
20183 u_int64_decl="typedef unsigned long u_int64_t;";;
20184 "$ac_cv_sizeof_unsigned_long_long")
20185 u_int64_decl="typedef unsigned long long u_int64_t;";;
20186 *)
20187 if test "notfatal" != "notfatal"; then
20188 as_fn_error $? "No unsigned 8-byte integral type" "$LINENO" 5
20189 fi;;
20190 esac
20191 fi
20192
20193
20194
20195 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$db_includes
20196 "
20197 if test "x$ac_cv_type_int64_t" = xyes; then :
20198
20199 else
20200
20201 case "8" in
20202 "$ac_cv_sizeof_int")
20203 int64_decl="typedef int int64_t;";;
20204 "$ac_cv_sizeof_char")
20205 int64_decl="typedef char int64_t;";;
20206 "$ac_cv_sizeof_short")
20207 int64_decl="typedef short int64_t;";;
20208 "$ac_cv_sizeof_long")
20209 int64_decl="typedef long int64_t;";;
20210 "$ac_cv_sizeof_long_long")
20211 int64_decl="typedef long long int64_t;";;
20212 *)
20213 if test "notfatal" != "notfatal"; then
20214 as_fn_error $? "No signed 8-byte integral type" "$LINENO" 5
20215 fi;;
20216 esac
20217 fi
20218
20219
20220 # No currently autoconf'd systems lack FILE, off_t pid_t, size_t, time_t.
20221 #
20222 # We require them, we don't try to substitute our own if we can't find them.
20223
20224 as_ac_Type=`$as_echo "ac_cv_type_FILE *" | $as_tr_sh`
20225 ac_fn_c_check_type "$LINENO" "FILE *" "$as_ac_Type" "$db_includes
20226 "
20227 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
20228
20229 else
20230 as_fn_error $? "No FILE type." "$LINENO" 5
20231 fi
20232
20233
20234 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$db_includes
20235 "
20236 if test "x$ac_cv_type_off_t" = xyes; then :
20237
20238 else
20239 as_fn_error $? "No off_t type." "$LINENO" 5
20240 fi
20241
20242
20243 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$db_includes
20244 "
20245 if test "x$ac_cv_type_pid_t" = xyes; then :
20246
20247 else
20248 as_fn_error $? "No pid_t type." "$LINENO" 5
20249 fi
20250
20251
20252 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$db_includes
20253 "
20254 if test "x$ac_cv_type_size_t" = xyes; then :
20255
20256 else
20257 as_fn_error $? "No size_t type." "$LINENO" 5
20258 fi
20259
20260
20261 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$db_includes
20262 "
20263 if test "x$ac_cv_type_time_t" = xyes; then :
20264
20265 else
20266 as_fn_error $? "No time_t type." "$LINENO" 5
20267 fi
20268
20269
20270 # Check for ssize_t -- if none exists, find a signed integral type that's
20271 # the same size as a size_t.
20272 # The cast to long int works around a bug in the HP C Compiler
20273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20275 # This bug is HP SR number 8606223364.
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20277 $as_echo_n "checking size of size_t... " >&6; }
20278 if ${ac_cv_sizeof_size_t+:} false; then :
20279 $as_echo_n "(cached) " >&6
20280 else
20281 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$db_includes
20282 "; then :
20283
20284 else
20285 if test "$ac_cv_type_size_t" = yes; then
20286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20288 as_fn_error 77 "cannot compute sizeof (size_t)
20289 See \`config.log' for more details" "$LINENO" 5; }
20290 else
20291 ac_cv_sizeof_size_t=0
20292 fi
20293 fi
20294
20295 fi
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20297 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20298
20299
20300
20301 cat >>confdefs.h <<_ACEOF
20302 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20303 _ACEOF
20304
20305
20306
20307 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$db_includes
20308 "
20309 if test "x$ac_cv_type_ssize_t" = xyes; then :
20310
20311 else
20312
20313 case "$ac_cv_sizeof_size_t" in
20314 "$ac_cv_sizeof_int")
20315 ssize_t_decl="typedef int ssize_t;";;
20316 "$ac_cv_sizeof_char")
20317 ssize_t_decl="typedef char ssize_t;";;
20318 "$ac_cv_sizeof_short")
20319 ssize_t_decl="typedef short ssize_t;";;
20320 "$ac_cv_sizeof_long")
20321 ssize_t_decl="typedef long ssize_t;";;
20322 "$ac_cv_sizeof_long_long")
20323 ssize_t_decl="typedef long long ssize_t;";;
20324 *)
20325 if test "" != "notfatal"; then
20326 as_fn_error $? "No signed $ac_cv_sizeof_size_t-byte integral type" "$LINENO" 5
20327 fi;;
20328 esac
20329 fi
20330
20331
20332 # Check for uintmax_t -- if none exists, find the largest unsigned integral
20333 # type available.
20334
20335 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20336 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20337
20338 else
20339 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$db_includes
20340 "
20341 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
20342 uintmax_t_decl="typedef unsigned long long uintmax_t;"
20343 else
20344 uintmax_t_decl="typedef unsigned long uintmax_t;"
20345 fi
20346
20347 fi
20348
20349
20350 # Check for uintptr_t -- if none exists, find an integral type which is
20351 # the same size as a pointer.
20352
20353 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20354 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20355
20356 else
20357
20358 case "$ac_cv_sizeof_char_p" in
20359 "$ac_cv_sizeof_unsigned_int")
20360 uintptr_t_decl="typedef unsigned int uintptr_t;";;
20361 "$ac_cv_sizeof_unsigned_char")
20362 uintptr_t_decl="typedef unsigned char uintptr_t;";;
20363 "$ac_cv_sizeof_unsigned_short")
20364 uintptr_t_decl="typedef unsigned short uintptr_t;";;
20365 "$ac_cv_sizeof_unsigned_long")
20366 uintptr_t_decl="typedef unsigned long uintptr_t;";;
20367 "$ac_cv_sizeof_unsigned_long_long")
20368 uintptr_t_decl="typedef unsigned long long uintptr_t;";;
20369 *)
20370 if test "" != "notfatal"; then
20371 as_fn_error $? "No unsigned $ac_cv_sizeof_char_p-byte integral type" "$LINENO" 5
20372 fi;;
20373 esac
20374 fi
20375
20376
20377
20378 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$db_includes
20379 #ifdef HAVE_SYS_SOCKET_H
20380 #include <sys/socket.h>
20381 #endif
20382 "
20383 if test "x$ac_cv_type_socklen_t" = xyes; then :
20384
20385 else
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20387 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20388 if ${db_cv_socklen_t_equiv+:} false; then :
20389 $as_echo_n "(cached) " >&6
20390 else
20391 # Systems have either "struct sockaddr *" or
20392 # "void *" as the second argument to getpeername
20393 db_cv_socklen_t_equiv=
20394 for arg2 in "struct sockaddr" void; do
20395 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20398 $db_includes
20399 #ifdef HAVE_SYS_SOCKET_H
20400 #include <sys/socket.h>
20401 #endif
20402 int getpeername (int, $arg2 *, $t *);
20403 int
20404 main ()
20405 {
20406 $t len;
20407 getpeername (0, 0, &len);
20408 ;
20409 return 0;
20410 }
20411 _ACEOF
20412 if ac_fn_c_try_compile "$LINENO"; then :
20413 db_cv_socklen_t_equiv="$t"
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 test "$db_cv_socklen_t_equiv" != "" && break
20417 done
20418 test "$db_cv_socklen_t_equiv" != "" && break
20419 done
20420
20421 fi
20422
20423 if test "$db_cv_socklen_t_equiv" = ""; then
20424 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20425 fi
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_socklen_t_equiv" >&5
20427 $as_echo "$db_cv_socklen_t_equiv" >&6; }
20428
20429 cat >>confdefs.h <<_ACEOF
20430 #define socklen_t $db_cv_socklen_t_equiv
20431 _ACEOF
20432
20433 fi
20434
20435
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C exit success/failure values" >&5
20438 $as_echo_n "checking for ANSI C exit success/failure values... " >&6; }
20439 if ${db_cv_exit_defines+:} false; then :
20440 $as_echo_n "(cached) " >&6
20441 else
20442
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20445 #include <stdlib.h>
20446 int
20447 main ()
20448 {
20449 return (EXIT_SUCCESS);
20450 ;
20451 return 0;
20452 }
20453 _ACEOF
20454 if ac_fn_c_try_compile "$LINENO"; then :
20455 db_cv_exit_defines=yes
20456 else
20457 db_cv_exit_defines=no
20458 fi
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 fi
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_exit_defines" >&5
20462 $as_echo "$db_cv_exit_defines" >&6; }
20463 if test "$db_cv_exit_defines" = "yes"; then
20464 $as_echo "#define HAVE_EXIT_SUCCESS 1" >>confdefs.h
20465
20466
20467 fi
20468
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt optreset variable" >&5
20470 $as_echo_n "checking for getopt optreset variable... " >&6; }
20471 if ${db_cv_optreset+:} false; then :
20472 $as_echo_n "(cached) " >&6
20473 else
20474
20475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20476 /* end confdefs.h. */
20477 #include <unistd.h>
20478 int
20479 main ()
20480 {
20481 extern int optreset; optreset = 1;
20482 ;
20483 return 0;
20484 }
20485 _ACEOF
20486 if ac_fn_c_try_link "$LINENO"; then :
20487 db_cv_optreset=yes
20488 else
20489 db_cv_optreset=no
20490 fi
20491 rm -f core conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20493 fi
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_optreset" >&5
20495 $as_echo "$db_cv_optreset" >&6; }
20496 if test "$db_cv_optreset" = "yes"; then
20497 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
20498
20499
20500 fi
20501
20502 # Check for mutexes.
20503 # We do this first because it changes $LIBSO_LIBS.
20504
20505
20506 # Mutexes we don't test for, but want the #defines to exist for other ports.
20507
20508
20509
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutexes" >&5
20511 $as_echo_n "checking for mutexes... " >&6; }
20512 if ${db_cv_mutex+:} false; then :
20513 $as_echo_n "(cached) " >&6
20514 else
20515
20516
20517 orig_libs=$LIBS
20518
20519 db_cv_mutex=no
20520
20521 # Mutexes can be disabled.
20522 if test "$db_cv_build_mutexsupport" = no; then
20523 db_cv_mutex=disabled;
20524 fi
20525
20526 # User-specified Win32 mutexes (MinGW build)
20527 if test "$db_cv_mingw" = yes; then
20528 db_cv_mutex=win32/gcc
20529 fi
20530
20531 if test "$db_cv_mutex" = no; then
20532 # Check for the availability of POSIX or UI mutexes; also check
20533 # whether the user has specified POSIX with --enable-posixmutexes.
20534 #
20535 # There are two different reasons to specify mutexes: First, the
20536 # application is already using one type of mutex and doesn't want
20537 # to mix-and-match (for example, on Solaris, which has POSIX, UI
20538 # and LWP mutexes). Second, the application's POSIX pthreads
20539 # mutexes don't support inter-process locking, but the application
20540 # wants to use them anyway (for example, some Linux and *BSD systems).
20541 #
20542 # Test for POSIX threads before testing for UI/LWP threads, they are
20543 # the Sun-recommended choice on Solaris. Also, there are Linux systems
20544 # that support a UI compatibility mode, and applications are more
20545 # likely to be written for POSIX threads than UI threads.
20546 if test "$db_cv_posixmutexes" = yes; then
20547 db_cv_mutex=posix_only;
20548 fi
20549 if test "$db_cv_uimutexes" = yes; then
20550 db_cv_mutex=ui_only;
20551 fi
20552
20553 # POSIX.1 pthreads: pthread_XXX
20554 #
20555 # If we find POSIX pthreads mutexes but not the full interface,
20556 # try to configure for just intra-process support.
20557 case "$host_os" in
20558 darwin*)
20559 # Mac OS 10.7 Lion has broken pthread_*_setpshared() calls.
20560 # Most BSD-like operating systems have pointers in their mutex
20561 # and condition variables, and cannot be shared between
20562 # proceses. Earlier Mac OS releases correctly returned EINVAL
20563 # from *_setpshared(PTHREAD_PROCESS_SHARED), but 10.7 returns
20564 # success. Since we can't trust those calls anymore we now
20565 # avoid these probes for multiprocess pthreads.
20566 ;;
20567 *)
20568 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then
20569 LIBS="$LIBS -lpthread"
20570
20571 if test "$cross_compiling" = yes; then :
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574
20575 #include <stdlib.h>
20576 #include <pthread.h>
20577 int
20578 main ()
20579 {
20580
20581 pthread_cond_t cond;
20582 pthread_mutex_t mutex;
20583 pthread_condattr_t condattr;
20584 pthread_mutexattr_t mutexattr;
20585 exit (
20586 pthread_condattr_init(&condattr) ||
20587 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
20588 pthread_mutexattr_init(&mutexattr) ||
20589 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
20590 pthread_cond_init(&cond, &condattr) ||
20591 pthread_mutex_init(&mutex, &mutexattr) ||
20592 pthread_mutex_lock(&mutex) ||
20593 pthread_mutex_unlock(&mutex) ||
20594 pthread_mutex_destroy(&mutex) ||
20595 pthread_cond_destroy(&cond) ||
20596 pthread_condattr_destroy(&condattr) ||
20597 pthread_mutexattr_destroy(&mutexattr));
20598
20599 ;
20600 return 0;
20601 }
20602 _ACEOF
20603 if ac_fn_c_try_link "$LINENO"; then :
20604 db_cv_mutex="POSIX/pthreads/library"
20605 fi
20606 rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20608 else
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20611
20612 #include <stdlib.h>
20613 #include <pthread.h>
20614 main() {
20615 pthread_cond_t cond;
20616 pthread_mutex_t mutex;
20617 pthread_condattr_t condattr;
20618 pthread_mutexattr_t mutexattr;
20619 exit (
20620 pthread_condattr_init(&condattr) ||
20621 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
20622 pthread_mutexattr_init(&mutexattr) ||
20623 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
20624 pthread_cond_init(&cond, &condattr) ||
20625 pthread_mutex_init(&mutex, &mutexattr) ||
20626 pthread_mutex_lock(&mutex) ||
20627 pthread_mutex_unlock(&mutex) ||
20628 pthread_mutex_destroy(&mutex) ||
20629 pthread_cond_destroy(&cond) ||
20630 pthread_condattr_destroy(&condattr) ||
20631 pthread_mutexattr_destroy(&mutexattr));
20632 }
20633 _ACEOF
20634 if ac_fn_c_try_run "$LINENO"; then :
20635 db_cv_mutex="POSIX/pthreads/library"
20636 fi
20637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20638 conftest.$ac_objext conftest.beam conftest.$ac_ext
20639 fi
20640
20641
20642 if test "$cross_compiling" = yes; then :
20643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20644 /* end confdefs.h. */
20645
20646 #include <stdlib.h>
20647 #include <pthread.h>
20648 int
20649 main ()
20650 {
20651
20652 pthread_cond_t cond;
20653 pthread_condattr_t condattr;
20654 exit(pthread_condattr_init(&condattr) ||
20655 pthread_cond_init(&cond, &condattr));
20656
20657 ;
20658 return 0;
20659 }
20660 _ACEOF
20661 if ac_fn_c_try_link "$LINENO"; then :
20662 db_cv_pthread_condinit_dupgood="yes"
20663 else
20664 db_cv_pthread_condinit_dupgood="no"
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668 else
20669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h. */
20671
20672 #include <stdlib.h>
20673 #include <pthread.h>
20674 main() {
20675 pthread_cond_t cond;
20676 pthread_condattr_t condattr;
20677 exit(pthread_condattr_init(&condattr) ||
20678 pthread_cond_init(&cond, &condattr) ||
20679 pthread_cond_init(&cond, &condattr));
20680 }
20681 _ACEOF
20682 if ac_fn_c_try_run "$LINENO"; then :
20683 db_cv_pthread_condinit_dupgood="yes"
20684 else
20685 db_cv_pthread_condinit_dupgood="no"
20686 fi
20687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20688 conftest.$ac_objext conftest.beam conftest.$ac_ext
20689 fi
20690
20691
20692 if test "$cross_compiling" = yes; then :
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h. */
20695
20696 #include <stdlib.h>
20697 #include <pthread.h>
20698 int
20699 main ()
20700 {
20701
20702 pthread_rwlock_t rwlock;
20703 pthread_rwlockattr_t rwlockattr;
20704 exit(pthread_rwlockattr_init(&rwlockattr) ||
20705 pthread_rwlock_init(&rwlock, &rwlockattr));
20706
20707 ;
20708 return 0;
20709 }
20710 _ACEOF
20711 if ac_fn_c_try_link "$LINENO"; then :
20712 db_cv_pthread_rwlockinit_dupgood="yes"
20713 else
20714 db_cv_pthread_rwlockinit_dupgood="no"
20715 fi
20716 rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
20718 else
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721
20722 #include <stdlib.h>
20723 #include <pthread.h>
20724 main() {
20725 pthread_rwlock_t rwlock;
20726 pthread_rwlockattr_t rwlockattr;
20727 exit(pthread_rwlockattr_init(&rwlockattr) ||
20728 pthread_rwlock_init(&rwlock, &rwlockattr) ||
20729 pthread_rwlock_init(&rwlock, &rwlockattr));
20730 }
20731 _ACEOF
20732 if ac_fn_c_try_run "$LINENO"; then :
20733 db_cv_pthread_rwlockinit_dupgood="yes"
20734 else
20735 db_cv_pthread_rwlockinit_dupgood="no"
20736 fi
20737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20738 conftest.$ac_objext conftest.beam conftest.$ac_ext
20739 fi
20740
20741 LIBS="$orig_libs"
20742 fi
20743 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then
20744
20745 if test "$cross_compiling" = yes; then :
20746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20748
20749 #include <stdlib.h>
20750 #include <pthread.h>
20751 int
20752 main ()
20753 {
20754
20755 pthread_cond_t cond;
20756 pthread_mutex_t mutex;
20757 pthread_condattr_t condattr;
20758 pthread_mutexattr_t mutexattr;
20759 exit (
20760 pthread_condattr_init(&condattr) ||
20761 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
20762 pthread_mutexattr_init(&mutexattr) ||
20763 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
20764 pthread_cond_init(&cond, &condattr) ||
20765 pthread_mutex_init(&mutex, &mutexattr) ||
20766 pthread_mutex_lock(&mutex) ||
20767 pthread_mutex_unlock(&mutex) ||
20768 pthread_mutex_destroy(&mutex) ||
20769 pthread_cond_destroy(&cond) ||
20770 pthread_condattr_destroy(&condattr) ||
20771 pthread_mutexattr_destroy(&mutexattr));
20772
20773 ;
20774 return 0;
20775 }
20776 _ACEOF
20777 if ac_fn_c_try_link "$LINENO"; then :
20778 db_cv_mutex="POSIX/pthreads"
20779 fi
20780 rm -f core conftest.err conftest.$ac_objext \
20781 conftest$ac_exeext conftest.$ac_ext
20782 else
20783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20785
20786 #include <stdlib.h>
20787 #include <pthread.h>
20788 main() {
20789 pthread_cond_t cond;
20790 pthread_mutex_t mutex;
20791 pthread_condattr_t condattr;
20792 pthread_mutexattr_t mutexattr;
20793 exit (
20794 pthread_condattr_init(&condattr) ||
20795 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
20796 pthread_mutexattr_init(&mutexattr) ||
20797 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
20798 pthread_cond_init(&cond, &condattr) ||
20799 pthread_mutex_init(&mutex, &mutexattr) ||
20800 pthread_mutex_lock(&mutex) ||
20801 pthread_mutex_unlock(&mutex) ||
20802 pthread_mutex_destroy(&mutex) ||
20803 pthread_cond_destroy(&cond) ||
20804 pthread_condattr_destroy(&condattr) ||
20805 pthread_mutexattr_destroy(&mutexattr));
20806 }
20807 _ACEOF
20808 if ac_fn_c_try_run "$LINENO"; then :
20809 db_cv_mutex="POSIX/pthreads"
20810 fi
20811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20812 conftest.$ac_objext conftest.beam conftest.$ac_ext
20813 fi
20814
20815
20816 if test "$cross_compiling" = yes; then :
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20819
20820 #include <stdlib.h>
20821 #include <pthread.h>
20822 int
20823 main ()
20824 {
20825
20826 pthread_cond_t cond;
20827 pthread_condattr_t condattr;
20828 exit(pthread_condattr_init(&condattr) ||
20829 pthread_cond_init(&cond, &condattr));
20830
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 if ac_fn_c_try_link "$LINENO"; then :
20836 db_cv_pthread_condinit_dupgood="yes"
20837 else
20838 db_cv_pthread_condinit_dupgood="no"
20839 fi
20840 rm -f core conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20842 else
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20845
20846 #include <stdlib.h>
20847 #include <pthread.h>
20848 main() {
20849 pthread_cond_t cond;
20850 pthread_condattr_t condattr;
20851 exit(pthread_condattr_init(&condattr) ||
20852 pthread_cond_init(&cond, &condattr) ||
20853 pthread_cond_init(&cond, &condattr));
20854 }
20855 _ACEOF
20856 if ac_fn_c_try_run "$LINENO"; then :
20857 db_cv_pthread_condinit_dupgood="yes"
20858 else
20859 db_cv_pthread_condinit_dupgood="no"
20860 fi
20861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20862 conftest.$ac_objext conftest.beam conftest.$ac_ext
20863 fi
20864
20865
20866 if test "$cross_compiling" = yes; then :
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869
20870 #include <stdlib.h>
20871 #include <pthread.h>
20872 int
20873 main ()
20874 {
20875
20876 pthread_rwlock_t rwlock;
20877 pthread_rwlockattr_t rwlockattr;
20878 exit(pthread_rwlockattr_init(&rwlockattr) ||
20879 pthread_rwlock_init(&rwlock, &rwlockattr));
20880
20881 ;
20882 return 0;
20883 }
20884 _ACEOF
20885 if ac_fn_c_try_link "$LINENO"; then :
20886 db_cv_pthread_rwlockinit_dupgood="yes"
20887 else
20888 db_cv_pthread_rwlockinit_dupgood="no"
20889 fi
20890 rm -f core conftest.err conftest.$ac_objext \
20891 conftest$ac_exeext conftest.$ac_ext
20892 else
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20895
20896 #include <stdlib.h>
20897 #include <pthread.h>
20898 main() {
20899 pthread_rwlock_t rwlock;
20900 pthread_rwlockattr_t rwlockattr;
20901 exit(pthread_rwlockattr_init(&rwlockattr) ||
20902 pthread_rwlock_init(&rwlock, &rwlockattr) ||
20903 pthread_rwlock_init(&rwlock, &rwlockattr));
20904 }
20905 _ACEOF
20906 if ac_fn_c_try_run "$LINENO"; then :
20907 db_cv_pthread_rwlockinit_dupgood="yes"
20908 else
20909 db_cv_pthread_rwlockinit_dupgood="no"
20910 fi
20911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20912 conftest.$ac_objext conftest.beam conftest.$ac_ext
20913 fi
20914
20915 fi
20916 ;;
20917 esac
20918 # We probe for private pthreads only when the user has asked for posix
20919 # mutexes and we don't have a multiprocess pthreads library available.
20920 if test "$db_cv_mutex" = posix_only; then
20921
20922 if test "$cross_compiling" = yes; then :
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925
20926 #include <stdlib.h>
20927 #include <pthread.h>
20928 int
20929 main ()
20930 {
20931
20932 pthread_cond_t cond;
20933 pthread_mutex_t mutex;
20934 pthread_condattr_t condattr;
20935 pthread_mutexattr_t mutexattr;
20936 exit (
20937 pthread_condattr_init(&condattr) ||
20938 pthread_mutexattr_init(&mutexattr) ||
20939 pthread_cond_init(&cond, &condattr) ||
20940 pthread_mutex_init(&mutex, &mutexattr) ||
20941 pthread_mutex_lock(&mutex) ||
20942 pthread_mutex_unlock(&mutex) ||
20943 pthread_mutex_destroy(&mutex) ||
20944 pthread_cond_destroy(&cond) ||
20945 pthread_condattr_destroy(&condattr) ||
20946 pthread_mutexattr_destroy(&mutexattr));
20947
20948 ;
20949 return 0;
20950 }
20951 _ACEOF
20952 if ac_fn_c_try_link "$LINENO"; then :
20953 db_cv_mutex="POSIX/pthreads/private"
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20957 else
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960
20961 #include <stdlib.h>
20962 #include <pthread.h>
20963 main() {
20964 pthread_cond_t cond;
20965 pthread_mutex_t mutex;
20966 pthread_condattr_t condattr;
20967 pthread_mutexattr_t mutexattr;
20968 exit (
20969 pthread_condattr_init(&condattr) ||
20970 pthread_mutexattr_init(&mutexattr) ||
20971 pthread_cond_init(&cond, &condattr) ||
20972 pthread_mutex_init(&mutex, &mutexattr) ||
20973 pthread_mutex_lock(&mutex) ||
20974 pthread_mutex_unlock(&mutex) ||
20975 pthread_mutex_destroy(&mutex) ||
20976 pthread_cond_destroy(&cond) ||
20977 pthread_condattr_destroy(&condattr) ||
20978 pthread_mutexattr_destroy(&mutexattr));
20979 }
20980 _ACEOF
20981 if ac_fn_c_try_run "$LINENO"; then :
20982 db_cv_mutex="POSIX/pthreads/private"
20983 fi
20984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20985 conftest.$ac_objext conftest.beam conftest.$ac_ext
20986 fi
20987
20988
20989 if test "$cross_compiling" = yes; then :
20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h. */
20992
20993 #include <stdlib.h>
20994 #include <pthread.h>
20995 int
20996 main ()
20997 {
20998
20999 pthread_cond_t cond;
21000 pthread_condattr_t condattr;
21001 exit(pthread_condattr_init(&condattr) ||
21002 pthread_cond_init(&cond, &condattr));
21003
21004 ;
21005 return 0;
21006 }
21007 _ACEOF
21008 if ac_fn_c_try_link "$LINENO"; then :
21009 db_cv_pthread_condinit_dupgood="yes"
21010 else
21011 db_cv_pthread_condinit_dupgood="no"
21012 fi
21013 rm -f core conftest.err conftest.$ac_objext \
21014 conftest$ac_exeext conftest.$ac_ext
21015 else
21016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21017 /* end confdefs.h. */
21018
21019 #include <stdlib.h>
21020 #include <pthread.h>
21021 main() {
21022 pthread_cond_t cond;
21023 pthread_condattr_t condattr;
21024 exit(pthread_condattr_init(&condattr) ||
21025 pthread_cond_init(&cond, &condattr) ||
21026 pthread_cond_init(&cond, &condattr));
21027 }
21028 _ACEOF
21029 if ac_fn_c_try_run "$LINENO"; then :
21030 db_cv_pthread_condinit_dupgood="yes"
21031 else
21032 db_cv_pthread_condinit_dupgood="no"
21033 fi
21034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21035 conftest.$ac_objext conftest.beam conftest.$ac_ext
21036 fi
21037
21038
21039 if test "$cross_compiling" = yes; then :
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21042
21043 #include <stdlib.h>
21044 #include <pthread.h>
21045 int
21046 main ()
21047 {
21048
21049 pthread_rwlock_t rwlock;
21050 pthread_rwlockattr_t rwlockattr;
21051 exit(pthread_rwlockattr_init(&rwlockattr) ||
21052 pthread_rwlock_init(&rwlock, &rwlockattr));
21053
21054 ;
21055 return 0;
21056 }
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 db_cv_pthread_rwlockinit_dupgood="yes"
21060 else
21061 db_cv_pthread_rwlockinit_dupgood="no"
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21065 else
21066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21067 /* end confdefs.h. */
21068
21069 #include <stdlib.h>
21070 #include <pthread.h>
21071 main() {
21072 pthread_rwlock_t rwlock;
21073 pthread_rwlockattr_t rwlockattr;
21074 exit(pthread_rwlockattr_init(&rwlockattr) ||
21075 pthread_rwlock_init(&rwlock, &rwlockattr) ||
21076 pthread_rwlock_init(&rwlock, &rwlockattr));
21077 }
21078 _ACEOF
21079 if ac_fn_c_try_run "$LINENO"; then :
21080 db_cv_pthread_rwlockinit_dupgood="yes"
21081 else
21082 db_cv_pthread_rwlockinit_dupgood="no"
21083 fi
21084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21085 conftest.$ac_objext conftest.beam conftest.$ac_ext
21086 fi
21087
21088 fi
21089 if test "$db_cv_mutex" = posix_only; then
21090 LIBS="$LIBS -lpthread"
21091
21092 if test "$cross_compiling" = yes; then :
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21095
21096 #include <stdlib.h>
21097 #include <pthread.h>
21098 int
21099 main ()
21100 {
21101
21102 pthread_cond_t cond;
21103 pthread_mutex_t mutex;
21104 pthread_condattr_t condattr;
21105 pthread_mutexattr_t mutexattr;
21106 exit (
21107 pthread_condattr_init(&condattr) ||
21108 pthread_mutexattr_init(&mutexattr) ||
21109 pthread_cond_init(&cond, &condattr) ||
21110 pthread_mutex_init(&mutex, &mutexattr) ||
21111 pthread_mutex_lock(&mutex) ||
21112 pthread_mutex_unlock(&mutex) ||
21113 pthread_mutex_destroy(&mutex) ||
21114 pthread_cond_destroy(&cond) ||
21115 pthread_condattr_destroy(&condattr) ||
21116 pthread_mutexattr_destroy(&mutexattr));
21117
21118 ;
21119 return 0;
21120 }
21121 _ACEOF
21122 if ac_fn_c_try_link "$LINENO"; then :
21123 db_cv_mutex="POSIX/pthreads/library/private"
21124 fi
21125 rm -f core conftest.err conftest.$ac_objext \
21126 conftest$ac_exeext conftest.$ac_ext
21127 else
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21130
21131 #include <stdlib.h>
21132 #include <pthread.h>
21133 main() {
21134 pthread_cond_t cond;
21135 pthread_mutex_t mutex;
21136 pthread_condattr_t condattr;
21137 pthread_mutexattr_t mutexattr;
21138 exit (
21139 pthread_condattr_init(&condattr) ||
21140 pthread_mutexattr_init(&mutexattr) ||
21141 pthread_cond_init(&cond, &condattr) ||
21142 pthread_mutex_init(&mutex, &mutexattr) ||
21143 pthread_mutex_lock(&mutex) ||
21144 pthread_mutex_unlock(&mutex) ||
21145 pthread_mutex_destroy(&mutex) ||
21146 pthread_cond_destroy(&cond) ||
21147 pthread_condattr_destroy(&condattr) ||
21148 pthread_mutexattr_destroy(&mutexattr));
21149 }
21150 _ACEOF
21151 if ac_fn_c_try_run "$LINENO"; then :
21152 db_cv_mutex="POSIX/pthreads/library/private"
21153 fi
21154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21155 conftest.$ac_objext conftest.beam conftest.$ac_ext
21156 fi
21157
21158
21159 if test "$cross_compiling" = yes; then :
21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h. */
21162
21163 #include <stdlib.h>
21164 #include <pthread.h>
21165 int
21166 main ()
21167 {
21168
21169 pthread_cond_t cond;
21170 pthread_condattr_t condattr;
21171 exit(pthread_condattr_init(&condattr) ||
21172 pthread_cond_init(&cond, &condattr));
21173
21174 ;
21175 return 0;
21176 }
21177 _ACEOF
21178 if ac_fn_c_try_link "$LINENO"; then :
21179 db_cv_pthread_condinit_dupgood="yes"
21180 else
21181 db_cv_pthread_condinit_dupgood="no"
21182 fi
21183 rm -f core conftest.err conftest.$ac_objext \
21184 conftest$ac_exeext conftest.$ac_ext
21185 else
21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187 /* end confdefs.h. */
21188
21189 #include <stdlib.h>
21190 #include <pthread.h>
21191 main() {
21192 pthread_cond_t cond;
21193 pthread_condattr_t condattr;
21194 exit(pthread_condattr_init(&condattr) ||
21195 pthread_cond_init(&cond, &condattr) ||
21196 pthread_cond_init(&cond, &condattr));
21197 }
21198 _ACEOF
21199 if ac_fn_c_try_run "$LINENO"; then :
21200 db_cv_pthread_condinit_dupgood="yes"
21201 else
21202 db_cv_pthread_condinit_dupgood="no"
21203 fi
21204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21205 conftest.$ac_objext conftest.beam conftest.$ac_ext
21206 fi
21207
21208
21209 if test "$cross_compiling" = yes; then :
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211 /* end confdefs.h. */
21212
21213 #include <stdlib.h>
21214 #include <pthread.h>
21215 int
21216 main ()
21217 {
21218
21219 pthread_rwlock_t rwlock;
21220 pthread_rwlockattr_t rwlockattr;
21221 exit(pthread_rwlockattr_init(&rwlockattr) ||
21222 pthread_rwlock_init(&rwlock, &rwlockattr));
21223
21224 ;
21225 return 0;
21226 }
21227 _ACEOF
21228 if ac_fn_c_try_link "$LINENO"; then :
21229 db_cv_pthread_rwlockinit_dupgood="yes"
21230 else
21231 db_cv_pthread_rwlockinit_dupgood="no"
21232 fi
21233 rm -f core conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21235 else
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238
21239 #include <stdlib.h>
21240 #include <pthread.h>
21241 main() {
21242 pthread_rwlock_t rwlock;
21243 pthread_rwlockattr_t rwlockattr;
21244 exit(pthread_rwlockattr_init(&rwlockattr) ||
21245 pthread_rwlock_init(&rwlock, &rwlockattr) ||
21246 pthread_rwlock_init(&rwlock, &rwlockattr));
21247 }
21248 _ACEOF
21249 if ac_fn_c_try_run "$LINENO"; then :
21250 db_cv_pthread_rwlockinit_dupgood="yes"
21251 else
21252 db_cv_pthread_rwlockinit_dupgood="no"
21253 fi
21254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21255 conftest.$ac_objext conftest.beam conftest.$ac_ext
21256 fi
21257
21258 LIBS="$orig_libs"
21259 fi
21260 if test "$db_cv_mutex" = posix_only; then
21261 as_fn_error $? "unable to find POSIX 1003.1 mutex interfaces" "$LINENO" 5
21262 fi
21263
21264 # LWP threads: _lwp_XXX
21265 if test "$db_cv_mutex" = no; then
21266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21267 /* end confdefs.h. */
21268
21269 #include <synch.h>
21270 int
21271 main ()
21272 {
21273
21274 static lwp_mutex_t mi = SHAREDMUTEX;
21275 static lwp_cond_t ci = SHAREDCV;
21276 lwp_mutex_t mutex = mi;
21277 lwp_cond_t cond = ci;
21278 exit (
21279 _lwp_mutex_lock(&mutex) ||
21280 _lwp_mutex_unlock(&mutex));
21281
21282 ;
21283 return 0;
21284 }
21285 _ACEOF
21286 if ac_fn_c_try_link "$LINENO"; then :
21287 db_cv_mutex=Solaris/lwp
21288 fi
21289 rm -f core conftest.err conftest.$ac_objext \
21290 conftest$ac_exeext conftest.$ac_ext
21291 fi
21292
21293 # UI threads: thr_XXX
21294 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then
21295 LIBS="$LIBS -lthread"
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h. */
21298
21299 #include <thread.h>
21300 #include <synch.h>
21301 int
21302 main ()
21303 {
21304
21305 mutex_t mutex;
21306 cond_t cond;
21307 int type = USYNC_PROCESS;
21308 exit (
21309 mutex_init(&mutex, type, NULL) ||
21310 cond_init(&cond, type, NULL) ||
21311 mutex_lock(&mutex) ||
21312 mutex_unlock(&mutex));
21313
21314 ;
21315 return 0;
21316 }
21317 _ACEOF
21318 if ac_fn_c_try_link "$LINENO"; then :
21319 db_cv_mutex=UI/threads/library
21320 fi
21321 rm -f core conftest.err conftest.$ac_objext \
21322 conftest$ac_exeext conftest.$ac_ext
21323 LIBS="$orig_libs"
21324 fi
21325 if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then
21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21328
21329 #include <thread.h>
21330 #include <synch.h>
21331 int
21332 main ()
21333 {
21334
21335 mutex_t mutex;
21336 cond_t cond;
21337 int type = USYNC_PROCESS;
21338 exit (
21339 mutex_init(&mutex, type, NULL) ||
21340 cond_init(&cond, type, NULL) ||
21341 mutex_lock(&mutex) ||
21342 mutex_unlock(&mutex));
21343
21344 ;
21345 return 0;
21346 }
21347 _ACEOF
21348 if ac_fn_c_try_link "$LINENO"; then :
21349 db_cv_mutex=UI/threads
21350 fi
21351 rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21353 fi
21354 if test "$db_cv_mutex" = ui_only; then
21355 as_fn_error $? "unable to find UI mutex interfaces" "$LINENO" 5
21356 fi
21357
21358 # We're done testing for pthreads-style mutexes. Next, check for
21359 # test-and-set mutexes. Check first for hybrid implementations,
21360 # because we check for them even if we've already found a
21361 # pthreads-style mutex and they're the most common architectures
21362 # anyway.
21363 #
21364 # x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h. */
21367
21368 int
21369 main ()
21370 {
21371
21372 #if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
21373 exit(0);
21374 #else
21375 FAIL TO COMPILE/LINK
21376 #endif
21377
21378 ;
21379 return 0;
21380 }
21381 _ACEOF
21382 if ac_fn_c_try_compile "$LINENO"; then :
21383 db_cv_mutex="$db_cv_mutex/x86/gcc-assembly"
21384 fi
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386
21387 # x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
21388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21389 /* end confdefs.h. */
21390
21391 int
21392 main ()
21393 {
21394
21395 #if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
21396 exit(0);
21397 #else
21398 FAIL TO COMPILE/LINK
21399 #endif
21400
21401 ;
21402 return 0;
21403 }
21404 _ACEOF
21405 if ac_fn_c_try_compile "$LINENO"; then :
21406 db_cv_mutex="$db_cv_mutex/x86_64/gcc-assembly"
21407 fi
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409
21410 # Solaris is one of the systems where we can configure hybrid mutexes.
21411 # However, we require the membar_enter function for that, and only newer
21412 # Solaris releases have it. Check to see if we can configure hybrids.
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21415
21416 #include <sys/atomic.h>
21417 #include <sys/machlock.h>
21418 int
21419 main ()
21420 {
21421
21422 typedef lock_t tsl_t;
21423 lock_t x;
21424 _lock_try(&x);
21425 _lock_clear(&x);
21426 membar_enter();
21427
21428 ;
21429 return 0;
21430 }
21431 _ACEOF
21432 if ac_fn_c_try_link "$LINENO"; then :
21433 db_cv_mutex="$db_cv_mutex/Solaris/_lock_try/membar"
21434 fi
21435 rm -f core conftest.err conftest.$ac_objext \
21436 conftest$ac_exeext conftest.$ac_ext
21437
21438 # Sparc/gcc: SunOS, Solaris, ultrasparc assembler support
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21441
21442 int
21443 main ()
21444 {
21445
21446 #if defined(__sparc__) && defined(__GNUC__)
21447 asm volatile ("membar #StoreStore|#StoreLoad|#LoadStore");
21448 exit(0);
21449 #else
21450 FAIL TO COMPILE/LINK
21451 #endif
21452
21453 ;
21454 return 0;
21455 }
21456 _ACEOF
21457 if ac_fn_c_try_compile "$LINENO"; then :
21458 db_cv_mutex="$db_cv_mutex/Sparc/gcc-assembly"
21459 fi
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461
21462 # We're done testing for any hybrid mutex implementations. If we did
21463 # not find a pthreads-style mutex, but did find a test-and-set mutex,
21464 # we set db_cv_mutex to "no/XXX" -- clean that up.
21465 db_cv_mutex=`echo $db_cv_mutex | sed 's/^no\///'`
21466 fi
21467
21468 # If we still don't have a mutex implementation yet, continue testing for a
21469 # test-and-set mutex implementation.
21470
21471 # _lock_try/_lock_clear: Solaris
21472 # On Solaris systems without other mutex interfaces, DB uses the undocumented
21473 # _lock_try _lock_clear function calls instead of either the sema_trywait(3T)
21474 # or sema_wait(3T) function calls. This is because of problems in those
21475 # interfaces in some releases of the Solaris C library.
21476 if test "$db_cv_mutex" = no; then
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21479
21480 #include <sys/atomic.h>
21481 #include <sys/machlock.h>
21482 int
21483 main ()
21484 {
21485
21486 typedef lock_t tsl_t;
21487 lock_t x;
21488 _lock_try(&x);
21489 _lock_clear(&x);
21490
21491 ;
21492 return 0;
21493 }
21494 _ACEOF
21495 if ac_fn_c_try_link "$LINENO"; then :
21496 db_cv_mutex=Solaris/_lock_try
21497 fi
21498 rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21500 fi
21501
21502 # msemaphore: HPPA only
21503 # Try HPPA before general msem test, it needs special alignment.
21504 if test "$db_cv_mutex" = no; then
21505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21507
21508 #include <sys/mman.h>
21509 int
21510 main ()
21511 {
21512
21513 #if defined(__hppa)
21514 typedef msemaphore tsl_t;
21515 msemaphore x;
21516 msem_init(&x, 0);
21517 msem_lock(&x, 0);
21518 msem_unlock(&x, 0);
21519 exit(0);
21520 #else
21521 FAIL TO COMPILE/LINK
21522 #endif
21523
21524 ;
21525 return 0;
21526 }
21527 _ACEOF
21528 if ac_fn_c_try_link "$LINENO"; then :
21529 db_cv_mutex=HP/msem_init
21530 fi
21531 rm -f core conftest.err conftest.$ac_objext \
21532 conftest$ac_exeext conftest.$ac_ext
21533 fi
21534
21535 # msemaphore: AIX, OSF/1
21536 if test "$db_cv_mutex" = no; then
21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h. */
21539
21540 #include <sys/types.h>
21541 #include <sys/mman.h>
21542 int
21543 main ()
21544 {
21545
21546 typedef msemaphore tsl_t;
21547 msemaphore x;
21548 msem_init(&x, 0);
21549 msem_lock(&x, 0);
21550 msem_unlock(&x, 0);
21551 exit(0);
21552
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_c_try_link "$LINENO"; then :
21558 db_cv_mutex=UNIX/msem_init
21559 fi
21560 rm -f core conftest.err conftest.$ac_objext \
21561 conftest$ac_exeext conftest.$ac_ext
21562 fi
21563
21564 # ReliantUNIX
21565 if test "$db_cv_mutex" = no; then
21566 LIBS="$LIBS -lmproc"
21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21569
21570 #include <ulocks.h>
21571 int
21572 main ()
21573 {
21574
21575 typedef spinlock_t tsl_t;
21576 spinlock_t x;
21577 initspin(&x, 1);
21578 cspinlock(&x);
21579 spinunlock(&x);
21580
21581 ;
21582 return 0;
21583 }
21584 _ACEOF
21585 if ac_fn_c_try_link "$LINENO"; then :
21586 db_cv_mutex=ReliantUNIX/initspin
21587 fi
21588 rm -f core conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590 LIBS="$orig_libs"
21591 fi
21592
21593 # SCO: UnixWare has threads in libthread, but OpenServer doesn't.
21594 if test "$db_cv_mutex" = no; then
21595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h. */
21597
21598 int
21599 main ()
21600 {
21601
21602 #if defined(__USLC__)
21603 exit(0);
21604 #else
21605 FAIL TO COMPILE/LINK
21606 #endif
21607
21608 ;
21609 return 0;
21610 }
21611 _ACEOF
21612 if ac_fn_c_try_compile "$LINENO"; then :
21613 db_cv_mutex=SCO/x86/cc-assembly
21614 fi
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 fi
21617
21618 # abilock_t: SGI
21619 if test "$db_cv_mutex" = no; then
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21622
21623 #include <abi_mutex.h>
21624 int
21625 main ()
21626 {
21627
21628 typedef abilock_t tsl_t;
21629 abilock_t x;
21630 init_lock(&x);
21631 acquire_lock(&x);
21632 release_lock(&x);
21633
21634 ;
21635 return 0;
21636 }
21637 _ACEOF
21638 if ac_fn_c_try_link "$LINENO"; then :
21639 db_cv_mutex=SGI/init_lock
21640 fi
21641 rm -f core conftest.err conftest.$ac_objext \
21642 conftest$ac_exeext conftest.$ac_ext
21643 fi
21644
21645 # sema_t: Solaris
21646 # The sema_XXX calls do not work on Solaris 5.5. I see no reason to ever
21647 # turn this test on, unless we find some other platform that uses the old
21648 # POSIX.1 interfaces.
21649 if test "$db_cv_mutex" = DOESNT_WORK; then
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21652
21653 #include <synch.h>
21654 int
21655 main ()
21656 {
21657
21658 typedef sema_t tsl_t;
21659 sema_t x;
21660 sema_init(&x, 1, USYNC_PROCESS, NULL);
21661 sema_wait(&x);
21662 sema_post(&x);
21663
21664 ;
21665 return 0;
21666 }
21667 _ACEOF
21668 if ac_fn_c_try_link "$LINENO"; then :
21669 db_cv_mutex=UNIX/sema_init
21670 fi
21671 rm -f core conftest.err conftest.$ac_objext \
21672 conftest$ac_exeext conftest.$ac_ext
21673 fi
21674
21675 # _check_lock/_clear_lock: AIX
21676 if test "$db_cv_mutex" = no; then
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h. */
21679
21680 #include <sys/atomic_op.h>
21681 int
21682 main ()
21683 {
21684
21685 int x;
21686 _check_lock(&x,0,1);
21687 _clear_lock(&x,0);
21688
21689 ;
21690 return 0;
21691 }
21692 _ACEOF
21693 if ac_fn_c_try_link "$LINENO"; then :
21694 db_cv_mutex=AIX/_check_lock
21695 fi
21696 rm -f core conftest.err conftest.$ac_objext \
21697 conftest$ac_exeext conftest.$ac_ext
21698 fi
21699
21700 # _spin_lock_try/_spin_unlock: Apple/Darwin
21701 if test "$db_cv_mutex" = no; then
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21704
21705 int
21706 main ()
21707 {
21708
21709 int x;
21710 _spin_lock_try(&x);
21711 _spin_unlock(&x);
21712
21713 ;
21714 return 0;
21715 }
21716 _ACEOF
21717 if ac_fn_c_try_link "$LINENO"; then :
21718 db_cv_mutex=Darwin/_spin_lock_try
21719 fi
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21722 fi
21723
21724 # Tru64/cc
21725 if test "$db_cv_mutex" = no; then
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21728
21729 int
21730 main ()
21731 {
21732
21733 #if defined(__alpha) && defined(__DECC)
21734 exit(0);
21735 #else
21736 FAIL TO COMPILE/LINK
21737 #endif
21738
21739 ;
21740 return 0;
21741 }
21742 _ACEOF
21743 if ac_fn_c_try_compile "$LINENO"; then :
21744 db_cv_mutex=Tru64/cc-assembly
21745 fi
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 fi
21748
21749 # Alpha/gcc
21750 if test "$db_cv_mutex" = no; then
21751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h. */
21753
21754 int
21755 main ()
21756 {
21757
21758 #if defined(__alpha) && defined(__GNUC__)
21759 exit(0);
21760 #else
21761 FAIL TO COMPILE/LINK
21762 #endif
21763
21764 ;
21765 return 0;
21766 }
21767 _ACEOF
21768 if ac_fn_c_try_compile "$LINENO"; then :
21769 db_cv_mutex=ALPHA/gcc-assembly
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 fi
21773
21774 # ARM/gcc: Linux
21775 if test "$db_cv_mutex" = no; then
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21778
21779 int
21780 main ()
21781 {
21782
21783 #if defined(__arm__) && defined(__GNUC__)
21784 exit(0);
21785 #else
21786 FAIL TO COMPILE/LINK
21787 #endif
21788
21789 ;
21790 return 0;
21791 }
21792 _ACEOF
21793 if ac_fn_c_try_compile "$LINENO"; then :
21794 db_cv_mutex=ARM/gcc-assembly
21795 fi
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 fi
21798
21799 # MIPS/gcc: Linux
21800 if test "$db_cv_mutex" = no; then
21801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21802 /* end confdefs.h. */
21803
21804 int
21805 main ()
21806 {
21807
21808 #if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
21809 exit(0);
21810 #else
21811 FAIL TO COMPILE/LINK
21812 #endif
21813
21814 ;
21815 return 0;
21816 }
21817 _ACEOF
21818 if ac_fn_c_try_compile "$LINENO"; then :
21819 db_cv_mutex=MIPS/gcc-assembly
21820 fi
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 fi
21823
21824 # PaRisc/gcc: HP/UX
21825 if test "$db_cv_mutex" = no; then
21826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21828
21829 int
21830 main ()
21831 {
21832
21833 #if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
21834 exit(0);
21835 #else
21836 FAIL TO COMPILE/LINK
21837 #endif
21838
21839 ;
21840 return 0;
21841 }
21842 _ACEOF
21843 if ac_fn_c_try_compile "$LINENO"; then :
21844 db_cv_mutex=HPPA/gcc-assembly
21845 fi
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 fi
21848
21849 # PPC/gcc:
21850 if test "$db_cv_mutex" = no; then
21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21853
21854 int
21855 main ()
21856 {
21857
21858 #if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
21859 exit(0);
21860 #else
21861 FAIL TO COMPILE/LINK
21862 #endif
21863
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 if ac_fn_c_try_compile "$LINENO"; then :
21869 db_cv_mutex=PPC/gcc-assembly
21870 fi
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 fi
21873
21874 # 68K/gcc: SunOS
21875 if test "$db_cv_mutex" = no; then
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21878
21879 int
21880 main ()
21881 {
21882
21883 #if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
21884 exit(0);
21885 #else
21886 FAIL TO COMPILE/LINK
21887 #endif
21888
21889 ;
21890 return 0;
21891 }
21892 _ACEOF
21893 if ac_fn_c_try_compile "$LINENO"; then :
21894 db_cv_mutex=68K/gcc-assembly
21895 fi
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 fi
21898
21899 # S390/cc: IBM OS/390 Unix
21900 if test "$db_cv_mutex" = no; then
21901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902 /* end confdefs.h. */
21903
21904 int
21905 main ()
21906 {
21907
21908 #if defined(__MVS__) && defined(__IBMC__)
21909 exit(0);
21910 #else
21911 FAIL TO COMPILE/LINK
21912 #endif
21913
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 if ac_fn_c_try_compile "$LINENO"; then :
21919 db_cv_mutex=S390/cc-assembly
21920 fi
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922 fi
21923
21924 # S390/gcc: Linux
21925 if test "$db_cv_mutex" = no; then
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21928
21929 int
21930 main ()
21931 {
21932
21933 #if defined(__s390__) && defined(__GNUC__)
21934 exit(0);
21935 #else
21936 FAIL TO COMPILE/LINK
21937 #endif
21938
21939 ;
21940 return 0;
21941 }
21942 _ACEOF
21943 if ac_fn_c_try_compile "$LINENO"; then :
21944 db_cv_mutex=S390/gcc-assembly
21945 fi
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 fi
21948
21949 # ia64/gcc: Linux
21950 if test "$db_cv_mutex" = no; then
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21953
21954 int
21955 main ()
21956 {
21957
21958 #if defined(__ia64) && defined(__GNUC__)
21959 exit(0);
21960 #else
21961 FAIL TO COMPILE/LINK
21962 #endif
21963
21964 ;
21965 return 0;
21966 }
21967 _ACEOF
21968 if ac_fn_c_try_compile "$LINENO"; then :
21969 db_cv_mutex=ia64/gcc-assembly
21970 fi
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972 fi
21973
21974 # uts/cc: UTS
21975 if test "$db_cv_mutex" = no; then
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21978
21979 int
21980 main ()
21981 {
21982
21983 #if defined(_UTS)
21984 exit(0);
21985 #else
21986 FAIL TO COMPILE/LINK
21987 #endif
21988
21989 ;
21990 return 0;
21991 }
21992 _ACEOF
21993 if ac_fn_c_try_compile "$LINENO"; then :
21994 db_cv_mutex=UTS/cc-assembly
21995 fi
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 fi
21998
21999 # UNIX fcntl system call mutexes.
22000 # Note that fcntl mutexes are no longer supported as of 4.8. This code has been
22001 # left in place in case there is some system that we are not aware of that
22002 # only uses fcntl mutexes. In that case, contact Oracle for support.
22003 if test "$db_cv_mutex" = no; then
22004 db_cv_mutex=UNIX/fcntl
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22007
22008 #include <fcntl.h>
22009 int
22010 main ()
22011 {
22012
22013 struct flock l;
22014 l.l_whence = SEEK_SET;
22015 l.l_start = 10;
22016 l.l_len = 1;
22017 l.l_type = F_WRLCK;
22018 fcntl(0, F_SETLK, &l);
22019
22020 ;
22021 return 0;
22022 }
22023 _ACEOF
22024 if ac_fn_c_try_link "$LINENO"; then :
22025 db_cv_mutex=UNIX/fcntl
22026 fi
22027 rm -f core conftest.err conftest.$ac_objext \
22028 conftest$ac_exeext conftest.$ac_ext
22029 fi
22030
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mutex" >&5
22033 $as_echo "$db_cv_mutex" >&6; }
22034
22035 # Configure a pthreads-style mutex implementation.
22036 hybrid=pthread
22037 case "$db_cv_mutex" in
22038 POSIX/pthreads/private*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22039 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h
22040
22041 if test "$db_cv_pthread_condinit_dupgood" = "yes"; then
22042 $as_echo "#define HAVE_PTHREAD_COND_REINIT_OKAY 1" >>confdefs.h
22043
22044 fi
22045 if test "$db_cv_pthread_rwlockinit_dupgood" = "yes"; then
22046 $as_echo "#define HAVE_PTHREAD_RWLOCK_REINIT_OKAY 1" >>confdefs.h
22047
22048 fi
22049 $as_echo "#define HAVE_MUTEX_THREAD_ONLY 1" >>confdefs.h
22050
22051 ;;
22052 POSIX/pthreads/library/private*)
22053 ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22054 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h
22055
22056 if test "$db_cv_pthread_condinit_dupgood" = "yes"; then
22057 $as_echo "#define HAVE_PTHREAD_COND_REINIT_OKAY 1" >>confdefs.h
22058
22059 fi
22060 if test "$db_cv_pthread_rwlockinit_dupgood" = "yes"; then
22061 $as_echo "#define HAVE_PTHREAD_RWLOCK_REINIT_OKAY 1" >>confdefs.h
22062
22063 fi
22064 $as_echo "#define HAVE_MUTEX_THREAD_ONLY 1" >>confdefs.h
22065 ;;
22066 POSIX/pthreads/library*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22067 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h
22068
22069 if test "$db_cv_pthread_condinit_dupgood" = "yes"; then
22070 $as_echo "#define HAVE_PTHREAD_COND_REINIT_OKAY 1" >>confdefs.h
22071
22072 fi
22073 if test "$db_cv_pthread_rwlockinit_dupgood" = "yes"; then
22074 $as_echo "#define HAVE_PTHREAD_RWLOCK_REINIT_OKAY 1" >>confdefs.h
22075
22076 fi;;
22077 POSIX/pthreads*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22078 $as_echo "#define HAVE_MUTEX_PTHREADS 1" >>confdefs.h
22079
22080
22081 if test "$db_cv_pthread_condinit_dupgood" = "yes"; then
22082 $as_echo "#define HAVE_PTHREAD_COND_REINIT_OKAY 1" >>confdefs.h
22083
22084 fi
22085 if test "$db_cv_pthread_rwlockinit_dupgood" = "yes"; then
22086 $as_echo "#define HAVE_PTHREAD_RWLOCK_REINIT_OKAY 1" >>confdefs.h
22087
22088 fi
22089
22090 ;;
22091 Solaris/lwp*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22092 $as_echo "#define HAVE_MUTEX_SOLARIS_LWP 1" >>confdefs.h
22093
22094 ;;
22095 UI/threads/library*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22096 $as_echo "#define HAVE_MUTEX_UI_THREADS 1" >>confdefs.h
22097 ;;
22098 *) hybrid=no;;
22099 UI/threads*) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
22100 $as_echo "#define HAVE_MUTEX_UI_THREADS 1" >>confdefs.h
22101
22102 ;;
22103 esac
22104
22105 # Configure a test-and-set mutex implementation.
22106 case "$db_cv_mutex" in
22107 68K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22108 $as_echo "#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1" >>confdefs.h
22109
22110 ;;
22111 AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22112 $as_echo "#define HAVE_MUTEX_AIX_CHECK_LOCK 1" >>confdefs.h
22113
22114 ;;
22115 Darwin/_spin_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22116 $as_echo "#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1" >>confdefs.h
22117
22118 ;;
22119 ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22120 $as_echo "#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1" >>confdefs.h
22121
22122 ;;
22123 ARM/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22124 $as_echo "#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1" >>confdefs.h
22125
22126 ;;
22127 HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22128 $as_echo "#define HAVE_MUTEX_HPPA_MSEM_INIT 1" >>confdefs.h
22129
22130 ;;
22131 HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22132 $as_echo "#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1" >>confdefs.h
22133
22134 ;;
22135 ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22136 $as_echo "#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1" >>confdefs.h
22137
22138 ;;
22139 MIPS/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22140 $as_echo "#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1" >>confdefs.h
22141
22142 ;;
22143 PPC/gcc-assembly)
22144 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22145 $as_echo "#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1" >>confdefs.h
22146
22147 ;;
22148 ReliantUNIX/initspin) LIBSO_LIBS="$LIBSO_LIBS -lmproc"
22149 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22150 $as_echo "#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1" >>confdefs.h
22151
22152 ;;
22153 S390/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22154 $as_echo "#define HAVE_MUTEX_S390_CC_ASSEMBLY 1" >>confdefs.h
22155
22156 ;;
22157 S390/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22158 $as_echo "#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1" >>confdefs.h
22159
22160 ;;
22161 SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22162 $as_echo "#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1" >>confdefs.h
22163
22164 ;;
22165 SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22166 $as_echo "#define HAVE_MUTEX_SGI_INIT_LOCK 1" >>confdefs.h
22167
22168 ;;
22169 Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22170 $as_echo "#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1" >>confdefs.h
22171
22172 ;;
22173 *Solaris/_lock_try/membar)
22174 hybrid="$hybrid/tas"
22175 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22176 $as_echo "#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1" >>confdefs.h
22177
22178 ;;
22179 *Sparc/gcc-assembly) hybrid="$hybrid/tas"
22180 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22181 $as_echo "#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1" >>confdefs.h
22182
22183 ;;
22184 Tru64/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22185 $as_echo "#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1" >>confdefs.h
22186
22187 ;;
22188 UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22189 $as_echo "#define HAVE_MUTEX_MSEM_INIT 1" >>confdefs.h
22190
22191 ;;
22192 UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22193 $as_echo "#define HAVE_MUTEX_SEMA_INIT 1" >>confdefs.h
22194
22195 ;;
22196 UTS/cc-assembly) ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
22197 $as_echo "#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1" >>confdefs.h
22198
22199 ;;
22200 *x86/gcc-assembly) hybrid="$hybrid/tas"
22201 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22202 $as_echo "#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1" >>confdefs.h
22203
22204 ;;
22205 *x86_64/gcc-assembly) hybrid="$hybrid/tas"
22206 ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
22207 $as_echo "#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1" >>confdefs.h
22208
22209 ;;
22210 esac
22211
22212 # Configure the remaining special cases.
22213 case "$db_cv_mutex" in
22214 UNIX/fcntl) as_fn_error $? "Support for FCNTL mutexes was removed in BDB 4.8." "$LINENO" 5
22215 ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
22216 $as_echo "#define HAVE_MUTEX_FCNTL 1" >>confdefs.h
22217
22218 ;;
22219 win32) ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
22220 $as_echo "#define HAVE_MUTEX_WIN32 1" >>confdefs.h
22221
22222 ;;
22223 win32/gcc) ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
22224 $as_echo "#define HAVE_MUTEX_WIN32_GCC 1" >>confdefs.h
22225
22226 ;;
22227 esac
22228
22229 # Mutexes may not have been found, or may have been disabled.
22230 case "$db_cv_mutex" in
22231 disabled)
22232 ;;
22233 *)
22234 # Test to see if mutexes have been found by checking the list of
22235 # additional objects for a mutex implementation.
22236 case "$ADDITIONAL_OBJS" in
22237 *mut_pthread*|*mut_tas*|*mut_win32*)
22238 $as_echo "#define HAVE_MUTEX_SUPPORT 1" >>confdefs.h
22239
22240
22241
22242 # Shared latches are required in 4.8, and are implemented using
22243 # mutexes if we don't have a native implementation.
22244 # This macro may be removed in a future release.
22245
22246 $as_echo "#define HAVE_SHARED_LATCHES 1" >>confdefs.h
22247 ;;
22248 *)
22249 as_fn_error $? "Unable to find a mutex implementation" "$LINENO" 5;;
22250 esac
22251 esac
22252
22253 # We may have found both a pthreads-style mutex implementation as well as a
22254 # test-and-set, in which case configure for the hybrid.
22255 if test "$hybrid" = pthread/tas; then
22256 $as_echo "#define HAVE_MUTEX_HYBRID 1" >>confdefs.h
22257
22258
22259 fi
22260
22261 # The mutex selection may require specific declarations -- we fill in most of
22262 # them above, but here are the common ones.
22263 #
22264 # The mutex selection may tell us what kind of thread package we're using,
22265 # which we use to figure out the thread type.
22266 #
22267 # If we're configured for the POSIX pthread API, then force the thread ID type
22268 # and include function, regardless of the mutex selection. Ditto for the
22269 # (default) Solaris lwp mutexes, because they don't have a way to return the
22270 # thread ID.
22271 #
22272 # Try and link with a threads library if possible. The problem is the Solaris
22273 # C library has UI/POSIX interface stubs, but they're broken, configuring them
22274 # for inter-process mutexes doesn't return an error, but it doesn't work either.
22275 # For that reason always add -lpthread if we're using pthread calls or mutexes
22276 # and there's a pthread library.
22277 #
22278 # We can't depend on any specific call existing (pthread_create, for example),
22279 # as it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
22280
22281
22282
22283 db_threadid_t_decl=notset
22284
22285 case "$db_cv_mutex" in
22286 UI/threads*)
22287 thread_h_decl="#include <thread.h>"
22288 db_threadid_t_decl="typedef thread_t db_threadid_t;"
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lthread" >&5
22290 $as_echo_n "checking for main in -lthread... " >&6; }
22291 if ${ac_cv_lib_thread_main+:} false; then :
22292 $as_echo_n "(cached) " >&6
22293 else
22294 ac_check_lib_save_LIBS=$LIBS
22295 LIBS="-lthread $LIBS"
22296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22297 /* end confdefs.h. */
22298
22299
22300 int
22301 main ()
22302 {
22303 return main ();
22304 ;
22305 return 0;
22306 }
22307 _ACEOF
22308 if ac_fn_c_try_link "$LINENO"; then :
22309 ac_cv_lib_thread_main=yes
22310 else
22311 ac_cv_lib_thread_main=no
22312 fi
22313 rm -f core conftest.err conftest.$ac_objext \
22314 conftest$ac_exeext conftest.$ac_ext
22315 LIBS=$ac_check_lib_save_LIBS
22316 fi
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_main" >&5
22318 $as_echo "$ac_cv_lib_thread_main" >&6; }
22319 if test "x$ac_cv_lib_thread_main" = xyes; then :
22320 LIBSO_LIBS="$LIBSO_LIBS -lthread"
22321 fi
22322 ac_cv_lib_thread=ac_cv_lib_thread_main
22323 ;;
22324 *)
22325 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22326 if test "x$ac_cv_header_pthread_h" = xyes; then :
22327 ac_cv_header_pthread_h=yes
22328 fi
22329
22330
22331 if test "$ac_cv_header_pthread_h" = "yes" ; then
22332 thread_h_decl="#include <pthread.h>"
22333 db_threadid_t_decl="typedef pthread_t db_threadid_t;"
22334 fi
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
22336 $as_echo_n "checking for main in -lpthread... " >&6; }
22337 if ${ac_cv_lib_pthread_main+:} false; then :
22338 $as_echo_n "(cached) " >&6
22339 else
22340 ac_check_lib_save_LIBS=$LIBS
22341 LIBS="-lpthread $LIBS"
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22344
22345
22346 int
22347 main ()
22348 {
22349 return main ();
22350 ;
22351 return 0;
22352 }
22353 _ACEOF
22354 if ac_fn_c_try_link "$LINENO"; then :
22355 ac_cv_lib_pthread_main=yes
22356 else
22357 ac_cv_lib_pthread_main=no
22358 fi
22359 rm -f core conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
22361 LIBS=$ac_check_lib_save_LIBS
22362 fi
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
22364 $as_echo "$ac_cv_lib_pthread_main" >&6; }
22365 if test "x$ac_cv_lib_pthread_main" = xyes; then :
22366 LIBSO_LIBS="$LIBSO_LIBS -lpthread"
22367 fi
22368 ac_cv_lib_pthread=ac_cv_lib_pthread_main
22369 ;;
22370 esac
22371
22372 # We need to know if the thread ID type will fit into an integral type and we
22373 # can compare it for equality and generally treat it like an int, or if it's a
22374 # non-integral type and we have to treat it like a structure or other untyped
22375 # block of bytes. For example, MVS typedef's pthread_t to a structure.
22376
22377 if test "$db_threadid_t_decl" = notset; then
22378 db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
22379 $as_echo "#define HAVE_SIMPLE_THREAD_TYPE 1" >>confdefs.h
22380
22381 else
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <sys/types.h>
22385 $thread_h_decl
22386 int
22387 main ()
22388 {
22389
22390 $db_threadid_t_decl
22391 db_threadid_t a;
22392 a = 0;
22393
22394 ;
22395 return 0;
22396 }
22397 _ACEOF
22398 if ac_fn_c_try_compile "$LINENO"; then :
22399 $as_echo "#define HAVE_SIMPLE_THREAD_TYPE 1" >>confdefs.h
22400
22401 fi
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 fi
22404
22405 # There are 3 classes of mutexes:
22406 #
22407 # 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
22408 # 2: Mutexes that must be destroyed, but which don't hold permanent system
22409 # resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
22410 # 3: Mutexes that must be destroyed, even after the process is gone, for
22411 # example, pthread mutexes on QNX and binary semaphores on VxWorks.
22412 #
22413 # DB cannot currently distinguish between #2 and #3 because DB does not know
22414 # if the application is running environment recovery as part of startup and
22415 # does not need to do cleanup, or if the environment is being removed and/or
22416 # recovered in a loop in the application, and so does need to clean up. If
22417 # we get it wrong, we're going to call the mutex destroy routine on a random
22418 # piece of memory, which usually works, but just might drop core. For now,
22419 # we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
22420 # have a better solution or reason to solve this in a general way -- so far,
22421 # the places we've needed to handle this are few.
22422
22423
22424 case "$host_os$db_cv_mutex" in
22425 *qnx*POSIX/pthread*|openedition*POSIX/pthread*)
22426 $as_echo "#define HAVE_MUTEX_SYSTEM_RESOURCES 1" >>confdefs.h
22427 ;;
22428 esac
22429
22430 # Check for native (system call or instruction set) support for
22431 # atomic increment, decrement, and compare & exchange.
22432
22433 # Probe for native atomic operations
22434 # gcc/x86{,_64} inline asm
22435 # solaris atomic_* library calls
22436
22437
22438
22439
22440
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic operations" >&5
22442 $as_echo_n "checking for atomic operations... " >&6; }
22443 if ${db_cv_atomic+:} false; then :
22444 $as_echo_n "(cached) " >&6
22445 else
22446
22447 db_cv_atomic=no
22448 # atomic operations can be disabled via --disable-atomicsupport
22449 if test "$db_cv_build_atomicsupport" = no; then
22450 db_cv_atomic=disabled
22451 fi
22452
22453 # The MinGW build uses the Windows API for atomic operations
22454 if test "$db_cv_mingw" = yes; then
22455 db_cv_atomic=mingw
22456 fi
22457
22458 if test "$db_cv_atomic" = no; then
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461
22462 int
22463 main ()
22464 {
22465
22466 #if ((defined(i386) || defined(__i386__)) && defined(__GNUC__))
22467 exit(0);
22468 #elif ((defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__))
22469 exit(0);
22470 #else
22471 FAIL TO COMPILE/LINK
22472 #endif
22473
22474 ;
22475 return 0;
22476 }
22477 _ACEOF
22478 if ac_fn_c_try_compile "$LINENO"; then :
22479 db_cv_atomic="x86/gcc-assembly"
22480 fi
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483
22484 if test "$db_cv_atomic" = no; then
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h. */
22487
22488 #include <sys/atomic.h>
22489 int
22490 main ()
22491 {
22492
22493 volatile unsigned val = 1;
22494 exit (atomic_inc_uint_nv(&val) != 2 ||
22495 atomic_dec_uint_nv(&val) != 1 ||
22496 atomic_cas_32(&val, 1, 3) != 3);
22497
22498 ;
22499 return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_link "$LINENO"; then :
22503 db_cv_atomic="solaris/atomic"
22504 fi
22505 rm -f core conftest.err conftest.$ac_objext \
22506 conftest$ac_exeext conftest.$ac_ext
22507 fi
22508
22509 fi
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_atomic" >&5
22511 $as_echo "$db_cv_atomic" >&6; }
22512
22513 case "$db_cv_atomic" in
22514 x86/gcc-assembly)
22515 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h
22516
22517 $as_echo "#define HAVE_ATOMIC_X86_GCC_ASSEMBLY 1" >>confdefs.h
22518
22519 ;;
22520
22521 solaris/atomic)
22522 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h
22523
22524 $as_echo "#define HAVE_ATOMIC_SOLARIS 1" >>confdefs.h
22525
22526 ;;
22527 mingw)
22528 $as_echo "#define HAVE_ATOMIC_SUPPORT 1" >>confdefs.h
22529
22530 ;;
22531 esac
22532
22533
22534 # Check for os-specific event support for performance monitoring such as
22535 # DTrace or SystemTap.
22536
22537
22538
22539
22540
22541
22542 if test "$db_cv_systemtap" = "yes" ; then
22543 if test "$DTRACE" != "dtrace"; then
22544 as_fn_error $? "The dtrace program is missing; is systemtap v1.1 or better installed?" "$LINENO" 5
22545 fi
22546 db_cv_dtrace="yes"
22547 fi
22548 if test "$db_cv_dtrace" = "yes" ; then
22549 db_cv_perfmon="yes"
22550 fi
22551
22552
22553 DTRACE_CPP=-C
22554 if test "$db_cv_perfmon" = "yes" ; then
22555 if test "$DTRACE" = "dtrace" ; then
22556 for ac_header in sys/sdt.h
22557 do :
22558 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
22559 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_SYS_SDT_H 1
22562 _ACEOF
22563
22564 fi
22565
22566 done
22567
22568 # Generate the DTrace provider header file. This is duplicated
22569 # in Makefile.in, to allow custom events to be added.
22570 if test "$STAP" = "stap"; then
22571 # Linux DTrace support may have a bug with dtrace -C -h
22572 # The preprocessing isn't needed for -h on Linux,
22573 # so skip the unnecessary preprocessing.
22574 DTRACE_CPP=
22575 fi
22576 # The OS X version of dtrace prints a spurious line here.
22577 if ! dtrace -h $DTRACE_CPP -I../util/dtrace -s ../dist/db_provider.d; then
22578 as_fn_error $? "Could not build db_provider.d: dtrace -h failed" "$LINENO" 5
22579 fi
22580 $RM db_provider.h.tmp
22581 if ! mv db_provider.h db_provider.h.tmp ; then
22582 as_fn_error $? "Could not build db_provider.d: mv failed" "$LINENO" 5
22583 elif ! sed -e \
22584 '/^#define[ ]*BDB_[A-Z_]*(.*)/y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' \
22585 db_provider.h.tmp > db_provider.h ; then
22586 as_fn_error $? "Could not build db_provider.d: sed failed" "$LINENO" 5
22587 fi
22588
22589 # DTrace on Solaris needs to post-process .o files to both
22590 # generate an additional .o as well as resolving the
22591 # __dtrace___bdb___<xxx> symbols before putting them into
22592 # libraries; Mac OS X does not. Treat a failing dtrace -G
22593 # command as the indicator sign that dtrace -G is unnecessary.
22594 # If it is needed then create an empty .c file to be a
22595 # placeholder for the PIC & non-PIC versions of the dtrace -G
22596 # output file. The root of this .c file must be the same as
22597 # the root of the .d file -- i.e. db_provider -- for the
22598 # dtrace -G lines at the end of Makefile.in to work correctly.
22599 $RM db_provider.o
22600 if dtrace -G $DTRACE_CPP -I../util/dtrace -s ../dist/db_provider.d 2> /dev/null && \
22601 test -f db_provider.o ; then
22602 FINAL_OBJS="$FINAL_OBJS db_provider${o}"
22603 rm -f db_provider.c
22604 echo "" > db_provider.c
22605 fi
22606 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
22607
22608 else
22609 as_fn_error $? "No supported performance utility found." "$LINENO" 5
22610 fi
22611 $as_echo "#define HAVE_PERFMON 1" >>confdefs.h
22612
22613 if test "$db_cv_perfmon_statistics" != "no" ; then
22614 $as_echo "#define HAVE_PERFMON_STATISTICS 1" >>confdefs.h
22615
22616 fi
22617 # The method by which probes are listed depends on the underlying
22618 # implementation; Linux's emulation of DTrace still uses the stap
22619 # command at runtime.
22620
22621
22622 if test "$STAP" = "stap"; then
22623 LISTPROBES_DEPENDENCY=.libs/libdb-$DB_VERSION_MAJOR.$DB_VERSION_MINOR$SOSUFFIX
22624 LISTPROBES_COMMAND="stap -l 'process(\"$LISTPROBES_DEPENDENCY\").mark(\"*\")'"
22625 elif test "$DTRACE" = "dtrace" ; then
22626 LISTPROBES_DEPENDENCY=db_load
22627 LISTPROBES_COMMAND=" # Run a simple command which uses the library without needing any setup.
22628 sleep 1 | dtrace -l -n 'bdb\$\$target:::' -c '.libs/db_load dummy.db'"
22629 fi
22630 elif test "$db_cv_perfmon_statistics" = "yes" ; then
22631 as_fn_error $? "Enabling perfmon statistics requires --enable-dtrace" "$LINENO" 5
22632 fi
22633
22634
22635 # Test for various functions/libraries -- do tests that change library values
22636 # first.
22637 #
22638 # Update LIBS, so we're testing against the current list of libraries.
22639 LIBS="$LIBSO_LIBS"
22640
22641 # The yield function on Solaris is almost certainly pthread_yield (LWP threads
22642 # or POSIX pthreads), or thr_yield (UI threads). There's an outside chance it
22643 # is sched_yield() though, only available in -lrt on Solaris.
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
22645 $as_echo_n "checking for library containing sched_yield... " >&6; }
22646 if ${ac_cv_search_sched_yield+:} false; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 ac_func_search_save_LIBS=$LIBS
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h. */
22652
22653 /* Override any GCC internal prototype to avoid an error.
22654 Use char because int might match the return type of a GCC
22655 builtin and then its argument prototype would still apply. */
22656 #ifdef __cplusplus
22657 extern "C"
22658 #endif
22659 char sched_yield ();
22660 int
22661 main ()
22662 {
22663 return sched_yield ();
22664 ;
22665 return 0;
22666 }
22667 _ACEOF
22668 for ac_lib in '' rt; do
22669 if test -z "$ac_lib"; then
22670 ac_res="none required"
22671 else
22672 ac_res=-l$ac_lib
22673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22674 fi
22675 if ac_fn_c_try_link "$LINENO"; then :
22676 ac_cv_search_sched_yield=$ac_res
22677 fi
22678 rm -f core conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext
22680 if ${ac_cv_search_sched_yield+:} false; then :
22681 break
22682 fi
22683 done
22684 if ${ac_cv_search_sched_yield+:} false; then :
22685
22686 else
22687 ac_cv_search_sched_yield=no
22688 fi
22689 rm conftest.$ac_ext
22690 LIBS=$ac_func_search_save_LIBS
22691 fi
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
22693 $as_echo "$ac_cv_search_sched_yield" >&6; }
22694 ac_res=$ac_cv_search_sched_yield
22695 if test "$ac_res" != no; then :
22696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22697
22698 fi
22699
22700
22701 # The Berkeley DB library calls fdatasync, only available in -lrt on Solaris.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22703 $as_echo_n "checking for library containing fdatasync... " >&6; }
22704 if ${ac_cv_search_fdatasync+:} false; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 ac_func_search_save_LIBS=$LIBS
22708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22709 /* end confdefs.h. */
22710
22711 /* Override any GCC internal prototype to avoid an error.
22712 Use char because int might match the return type of a GCC
22713 builtin and then its argument prototype would still apply. */
22714 #ifdef __cplusplus
22715 extern "C"
22716 #endif
22717 char fdatasync ();
22718 int
22719 main ()
22720 {
22721 return fdatasync ();
22722 ;
22723 return 0;
22724 }
22725 _ACEOF
22726 for ac_lib in '' rt; do
22727 if test -z "$ac_lib"; then
22728 ac_res="none required"
22729 else
22730 ac_res=-l$ac_lib
22731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22732 fi
22733 if ac_fn_c_try_link "$LINENO"; then :
22734 ac_cv_search_fdatasync=$ac_res
22735 fi
22736 rm -f core conftest.err conftest.$ac_objext \
22737 conftest$ac_exeext
22738 if ${ac_cv_search_fdatasync+:} false; then :
22739 break
22740 fi
22741 done
22742 if ${ac_cv_search_fdatasync+:} false; then :
22743
22744 else
22745 ac_cv_search_fdatasync=no
22746 fi
22747 rm conftest.$ac_ext
22748 LIBS=$ac_func_search_save_LIBS
22749 fi
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22751 $as_echo "$ac_cv_search_fdatasync" >&6; }
22752 ac_res=$ac_cv_search_fdatasync
22753 if test "$ac_res" != no; then :
22754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22755
22756 fi
22757
22758
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
22760 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
22761 if ${ac_cv_search_getaddrinfo+:} false; then :
22762 $as_echo_n "(cached) " >&6
22763 else
22764 ac_func_search_save_LIBS=$LIBS
22765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766 /* end confdefs.h. */
22767
22768 /* Override any GCC internal prototype to avoid an error.
22769 Use char because int might match the return type of a GCC
22770 builtin and then its argument prototype would still apply. */
22771 #ifdef __cplusplus
22772 extern "C"
22773 #endif
22774 char getaddrinfo ();
22775 int
22776 main ()
22777 {
22778 return getaddrinfo ();
22779 ;
22780 return 0;
22781 }
22782 _ACEOF
22783 for ac_lib in '' nsl socket; do
22784 if test -z "$ac_lib"; then
22785 ac_res="none required"
22786 else
22787 ac_res=-l$ac_lib
22788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22789 fi
22790 if ac_fn_c_try_link "$LINENO"; then :
22791 ac_cv_search_getaddrinfo=$ac_res
22792 fi
22793 rm -f core conftest.err conftest.$ac_objext \
22794 conftest$ac_exeext
22795 if ${ac_cv_search_getaddrinfo+:} false; then :
22796 break
22797 fi
22798 done
22799 if ${ac_cv_search_getaddrinfo+:} false; then :
22800
22801 else
22802 ac_cv_search_getaddrinfo=no
22803 fi
22804 rm conftest.$ac_ext
22805 LIBS=$ac_func_search_save_LIBS
22806 fi
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
22808 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
22809 ac_res=$ac_cv_search_getaddrinfo
22810 if test "$ac_res" != no; then :
22811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22812
22813 fi
22814
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
22816 $as_echo_n "checking for library containing hstrerror... " >&6; }
22817 if ${ac_cv_search_hstrerror+:} false; then :
22818 $as_echo_n "(cached) " >&6
22819 else
22820 ac_func_search_save_LIBS=$LIBS
22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822 /* end confdefs.h. */
22823
22824 /* Override any GCC internal prototype to avoid an error.
22825 Use char because int might match the return type of a GCC
22826 builtin and then its argument prototype would still apply. */
22827 #ifdef __cplusplus
22828 extern "C"
22829 #endif
22830 char hstrerror ();
22831 int
22832 main ()
22833 {
22834 return hstrerror ();
22835 ;
22836 return 0;
22837 }
22838 _ACEOF
22839 for ac_lib in '' resolv; do
22840 if test -z "$ac_lib"; then
22841 ac_res="none required"
22842 else
22843 ac_res=-l$ac_lib
22844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22845 fi
22846 if ac_fn_c_try_link "$LINENO"; then :
22847 ac_cv_search_hstrerror=$ac_res
22848 fi
22849 rm -f core conftest.err conftest.$ac_objext \
22850 conftest$ac_exeext
22851 if ${ac_cv_search_hstrerror+:} false; then :
22852 break
22853 fi
22854 done
22855 if ${ac_cv_search_hstrerror+:} false; then :
22856
22857 else
22858 ac_cv_search_hstrerror=no
22859 fi
22860 rm conftest.$ac_ext
22861 LIBS=$ac_func_search_save_LIBS
22862 fi
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
22864 $as_echo "$ac_cv_search_hstrerror" >&6; }
22865 ac_res=$ac_cv_search_hstrerror
22866 if test "$ac_res" != no; then :
22867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22868
22869 fi
22870
22871
22872 # Those tests updated LIBS, update our internal list.
22873 LIBSO_LIBS="$LIBS"
22874
22875 # !!!
22876 # We could be more exact about whether these libraries are needed, but don't
22877 # bother -- if they exist, we load them, it's only the test programs anyway.
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
22879 $as_echo_n "checking for main in -lm... " >&6; }
22880 if ${ac_cv_lib_m_main+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 ac_check_lib_save_LIBS=$LIBS
22884 LIBS="-lm $LIBS"
22885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886 /* end confdefs.h. */
22887
22888
22889 int
22890 main ()
22891 {
22892 return main ();
22893 ;
22894 return 0;
22895 }
22896 _ACEOF
22897 if ac_fn_c_try_link "$LINENO"; then :
22898 ac_cv_lib_m_main=yes
22899 else
22900 ac_cv_lib_m_main=no
22901 fi
22902 rm -f core conftest.err conftest.$ac_objext \
22903 conftest$ac_exeext conftest.$ac_ext
22904 LIBS=$ac_check_lib_save_LIBS
22905 fi
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
22907 $as_echo "$ac_cv_lib_m_main" >&6; }
22908 if test "x$ac_cv_lib_m_main" = xyes; then :
22909 TEST_LIBS="$TEST_LIBS -lm"
22910 fi
22911 ac_cv_lib_m=ac_cv_lib_m_main
22912
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22914 $as_echo_n "checking for main in -lnsl... " >&6; }
22915 if ${ac_cv_lib_nsl_main+:} false; then :
22916 $as_echo_n "(cached) " >&6
22917 else
22918 ac_check_lib_save_LIBS=$LIBS
22919 LIBS="-lnsl $LIBS"
22920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921 /* end confdefs.h. */
22922
22923
22924 int
22925 main ()
22926 {
22927 return main ();
22928 ;
22929 return 0;
22930 }
22931 _ACEOF
22932 if ac_fn_c_try_link "$LINENO"; then :
22933 ac_cv_lib_nsl_main=yes
22934 else
22935 ac_cv_lib_nsl_main=no
22936 fi
22937 rm -f core conftest.err conftest.$ac_objext \
22938 conftest$ac_exeext conftest.$ac_ext
22939 LIBS=$ac_check_lib_save_LIBS
22940 fi
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22942 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22943 if test "x$ac_cv_lib_nsl_main" = xyes; then :
22944 TEST_LIBS="$TEST_LIBS -lnsl"
22945 fi
22946 ac_cv_lib_nsl=ac_cv_lib_nsl_main
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22949 $as_echo_n "checking for main in -lsocket... " >&6; }
22950 if ${ac_cv_lib_socket_main+:} false; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 ac_check_lib_save_LIBS=$LIBS
22954 LIBS="-lsocket $LIBS"
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22957
22958
22959 int
22960 main ()
22961 {
22962 return main ();
22963 ;
22964 return 0;
22965 }
22966 _ACEOF
22967 if ac_fn_c_try_link "$LINENO"; then :
22968 ac_cv_lib_socket_main=yes
22969 else
22970 ac_cv_lib_socket_main=no
22971 fi
22972 rm -f core conftest.err conftest.$ac_objext \
22973 conftest$ac_exeext conftest.$ac_ext
22974 LIBS=$ac_check_lib_save_LIBS
22975 fi
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22977 $as_echo "$ac_cv_lib_socket_main" >&6; }
22978 if test "x$ac_cv_lib_socket_main" = xyes; then :
22979 TEST_LIBS="$TEST_LIBS -lsocket"
22980 fi
22981 ac_cv_lib_socket=ac_cv_lib_socket_main
22982
22983
22984 # Checks for system functions for which we have replacements.
22985 #
22986 # The only portable getcwd call is getcwd(char *, size_t), where the
22987 # buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
22988 # deleted getwd().
22989 ac_fn_c_check_func "$LINENO" "abort" "ac_cv_func_abort"
22990 if test "x$ac_cv_func_abort" = xyes; then :
22991 $as_echo "#define HAVE_ABORT 1" >>confdefs.h
22992
22993 else
22994 case " $LIBOBJS " in
22995 *" abort.$ac_objext "* ) ;;
22996 *) LIBOBJS="$LIBOBJS abort.$ac_objext"
22997 ;;
22998 esac
22999
23000 fi
23001
23002 ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
23003 if test "x$ac_cv_func_atoi" = xyes; then :
23004 $as_echo "#define HAVE_ATOI 1" >>confdefs.h
23005
23006 else
23007 case " $LIBOBJS " in
23008 *" atoi.$ac_objext "* ) ;;
23009 *) LIBOBJS="$LIBOBJS atoi.$ac_objext"
23010 ;;
23011 esac
23012
23013 fi
23014
23015 ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
23016 if test "x$ac_cv_func_atol" = xyes; then :
23017 $as_echo "#define HAVE_ATOL 1" >>confdefs.h
23018
23019 else
23020 case " $LIBOBJS " in
23021 *" atol.$ac_objext "* ) ;;
23022 *) LIBOBJS="$LIBOBJS atol.$ac_objext"
23023 ;;
23024 esac
23025
23026 fi
23027
23028 ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
23029 if test "x$ac_cv_func_bsearch" = xyes; then :
23030 $as_echo "#define HAVE_BSEARCH 1" >>confdefs.h
23031
23032 else
23033 case " $LIBOBJS " in
23034 *" bsearch.$ac_objext "* ) ;;
23035 *) LIBOBJS="$LIBOBJS bsearch.$ac_objext"
23036 ;;
23037 esac
23038
23039 fi
23040
23041 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
23042 if test "x$ac_cv_func_getcwd" = xyes; then :
23043 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
23044
23045 else
23046 case " $LIBOBJS " in
23047 *" getcwd.$ac_objext "* ) ;;
23048 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
23049 ;;
23050 esac
23051
23052 fi
23053
23054 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
23055 if test "x$ac_cv_func_getenv" = xyes; then :
23056 $as_echo "#define HAVE_GETENV 1" >>confdefs.h
23057
23058 else
23059 case " $LIBOBJS " in
23060 *" getenv.$ac_objext "* ) ;;
23061 *) LIBOBJS="$LIBOBJS getenv.$ac_objext"
23062 ;;
23063 esac
23064
23065 fi
23066
23067 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
23068 if test "x$ac_cv_func_getopt" = xyes; then :
23069 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
23070
23071 else
23072 case " $LIBOBJS " in
23073 *" getopt.$ac_objext "* ) ;;
23074 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
23075 ;;
23076 esac
23077
23078 fi
23079
23080 ac_fn_c_check_func "$LINENO" "isalpha" "ac_cv_func_isalpha"
23081 if test "x$ac_cv_func_isalpha" = xyes; then :
23082 $as_echo "#define HAVE_ISALPHA 1" >>confdefs.h
23083
23084 else
23085 case " $LIBOBJS " in
23086 *" isalpha.$ac_objext "* ) ;;
23087 *) LIBOBJS="$LIBOBJS isalpha.$ac_objext"
23088 ;;
23089 esac
23090
23091 fi
23092
23093 ac_fn_c_check_func "$LINENO" "isdigit" "ac_cv_func_isdigit"
23094 if test "x$ac_cv_func_isdigit" = xyes; then :
23095 $as_echo "#define HAVE_ISDIGIT 1" >>confdefs.h
23096
23097 else
23098 case " $LIBOBJS " in
23099 *" isdigit.$ac_objext "* ) ;;
23100 *) LIBOBJS="$LIBOBJS isdigit.$ac_objext"
23101 ;;
23102 esac
23103
23104 fi
23105
23106 ac_fn_c_check_func "$LINENO" "isprint" "ac_cv_func_isprint"
23107 if test "x$ac_cv_func_isprint" = xyes; then :
23108 $as_echo "#define HAVE_ISPRINT 1" >>confdefs.h
23109
23110 else
23111 case " $LIBOBJS " in
23112 *" isprint.$ac_objext "* ) ;;
23113 *) LIBOBJS="$LIBOBJS isprint.$ac_objext"
23114 ;;
23115 esac
23116
23117 fi
23118
23119 ac_fn_c_check_func "$LINENO" "isspace" "ac_cv_func_isspace"
23120 if test "x$ac_cv_func_isspace" = xyes; then :
23121 $as_echo "#define HAVE_ISSPACE 1" >>confdefs.h
23122
23123 else
23124 case " $LIBOBJS " in
23125 *" isspace.$ac_objext "* ) ;;
23126 *) LIBOBJS="$LIBOBJS isspace.$ac_objext"
23127 ;;
23128 esac
23129
23130 fi
23131
23132 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
23133 if test "x$ac_cv_func_memcmp" = xyes; then :
23134 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
23135
23136 else
23137 case " $LIBOBJS " in
23138 *" memcmp.$ac_objext "* ) ;;
23139 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23140 ;;
23141 esac
23142
23143 fi
23144
23145 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
23146 if test "x$ac_cv_func_memcpy" = xyes; then :
23147 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
23148
23149 else
23150 case " $LIBOBJS " in
23151 *" memcpy.$ac_objext "* ) ;;
23152 *) LIBOBJS="$LIBOBJS memcpy.$ac_objext"
23153 ;;
23154 esac
23155
23156 fi
23157
23158 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
23159 if test "x$ac_cv_func_memmove" = xyes; then :
23160 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
23161
23162 else
23163 case " $LIBOBJS " in
23164 *" memmove.$ac_objext "* ) ;;
23165 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
23166 ;;
23167 esac
23168
23169 fi
23170
23171 ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
23172 if test "x$ac_cv_func_printf" = xyes; then :
23173 $as_echo "#define HAVE_PRINTF 1" >>confdefs.h
23174
23175 else
23176 case " $LIBOBJS " in
23177 *" printf.$ac_objext "* ) ;;
23178 *) LIBOBJS="$LIBOBJS printf.$ac_objext"
23179 ;;
23180 esac
23181
23182 fi
23183
23184 ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
23185 if test "x$ac_cv_func_qsort" = xyes; then :
23186 $as_echo "#define HAVE_QSORT 1" >>confdefs.h
23187
23188 else
23189 case " $LIBOBJS " in
23190 *" qsort.$ac_objext "* ) ;;
23191 *) LIBOBJS="$LIBOBJS qsort.$ac_objext"
23192 ;;
23193 esac
23194
23195 fi
23196
23197 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
23198 if test "x$ac_cv_func_raise" = xyes; then :
23199 $as_echo "#define HAVE_RAISE 1" >>confdefs.h
23200
23201 else
23202 case " $LIBOBJS " in
23203 *" raise.$ac_objext "* ) ;;
23204 *) LIBOBJS="$LIBOBJS raise.$ac_objext"
23205 ;;
23206 esac
23207
23208 fi
23209
23210 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
23211 if test "x$ac_cv_func_rand" = xyes; then :
23212 $as_echo "#define HAVE_RAND 1" >>confdefs.h
23213
23214 else
23215 case " $LIBOBJS " in
23216 *" rand.$ac_objext "* ) ;;
23217 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
23218 ;;
23219 esac
23220
23221 fi
23222
23223 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23224 if test "x$ac_cv_func_strcasecmp" = xyes; then :
23225 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
23226
23227 else
23228 case " $LIBOBJS " in
23229 *" strcasecmp.$ac_objext "* ) ;;
23230 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
23231 ;;
23232 esac
23233
23234 fi
23235
23236 ac_fn_c_check_func "$LINENO" "strcat" "ac_cv_func_strcat"
23237 if test "x$ac_cv_func_strcat" = xyes; then :
23238 $as_echo "#define HAVE_STRCAT 1" >>confdefs.h
23239
23240 else
23241 case " $LIBOBJS " in
23242 *" strcat.$ac_objext "* ) ;;
23243 *) LIBOBJS="$LIBOBJS strcat.$ac_objext"
23244 ;;
23245 esac
23246
23247 fi
23248
23249 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
23250 if test "x$ac_cv_func_strchr" = xyes; then :
23251 $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
23252
23253 else
23254 case " $LIBOBJS " in
23255 *" strchr.$ac_objext "* ) ;;
23256 *) LIBOBJS="$LIBOBJS strchr.$ac_objext"
23257 ;;
23258 esac
23259
23260 fi
23261
23262 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
23263 if test "x$ac_cv_func_strdup" = xyes; then :
23264 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
23265
23266 else
23267 case " $LIBOBJS " in
23268 *" strdup.$ac_objext "* ) ;;
23269 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
23270 ;;
23271 esac
23272
23273 fi
23274
23275 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
23276 if test "x$ac_cv_func_strerror" = xyes; then :
23277 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
23278
23279 else
23280 case " $LIBOBJS " in
23281 *" strerror.$ac_objext "* ) ;;
23282 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
23283 ;;
23284 esac
23285
23286 fi
23287
23288 ac_fn_c_check_func "$LINENO" "strncat" "ac_cv_func_strncat"
23289 if test "x$ac_cv_func_strncat" = xyes; then :
23290 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
23291
23292 else
23293 case " $LIBOBJS " in
23294 *" strncat.$ac_objext "* ) ;;
23295 *) LIBOBJS="$LIBOBJS strncat.$ac_objext"
23296 ;;
23297 esac
23298
23299 fi
23300
23301 ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
23302 if test "x$ac_cv_func_strncmp" = xyes; then :
23303 $as_echo "#define HAVE_STRNCMP 1" >>confdefs.h
23304
23305 else
23306 case " $LIBOBJS " in
23307 *" strncmp.$ac_objext "* ) ;;
23308 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
23309 ;;
23310 esac
23311
23312 fi
23313
23314 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
23315 if test "x$ac_cv_func_strrchr" = xyes; then :
23316 $as_echo "#define HAVE_STRRCHR 1" >>confdefs.h
23317
23318 else
23319 case " $LIBOBJS " in
23320 *" strrchr.$ac_objext "* ) ;;
23321 *) LIBOBJS="$LIBOBJS strrchr.$ac_objext"
23322 ;;
23323 esac
23324
23325 fi
23326
23327 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
23328 if test "x$ac_cv_func_strsep" = xyes; then :
23329 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
23330
23331 else
23332 case " $LIBOBJS " in
23333 *" strsep.$ac_objext "* ) ;;
23334 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
23335 ;;
23336 esac
23337
23338 fi
23339
23340 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
23341 if test "x$ac_cv_func_strtol" = xyes; then :
23342 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
23343
23344 else
23345 case " $LIBOBJS " in
23346 *" strtol.$ac_objext "* ) ;;
23347 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
23348 ;;
23349 esac
23350
23351 fi
23352
23353 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
23354 if test "x$ac_cv_func_strtoul" = xyes; then :
23355 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
23356
23357 else
23358 case " $LIBOBJS " in
23359 *" strtoul.$ac_objext "* ) ;;
23360 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
23361 ;;
23362 esac
23363
23364 fi
23365
23366
23367
23368 # Check for system functions we optionally use.
23369 for ac_func in \
23370 _fstati64 backtrace backtrace_symbols directio fchmod fclose\
23371 fcntl fdatasync fgetc fgets fopen fwrite getgid\
23372 getrusage getuid hstrerror mprotect pstat_getdynamic\
23373 pthread_self pthread_yield random sched_yield select setgid setuid\
23374 sigaction snprintf stat sysconf vsnprintf yield
23375 do :
23376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23379 cat >>confdefs.h <<_ACEOF
23380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23381 _ACEOF
23382
23383 fi
23384 done
23385
23386
23387
23388
23389 for ac_func in gettimeofday localtime time strftime
23390 do :
23391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23394 cat >>confdefs.h <<_ACEOF
23395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23396 _ACEOF
23397
23398 fi
23399 done
23400
23401
23402 # AIX 4.3 will link applications with calls to clock_gettime, but the
23403 # calls always fail.
23404 case "$host_os" in
23405 aix4.3.*)
23406 ;;
23407 *)
23408 for ac_func in clock_gettime
23409 do :
23410 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
23411 if test "x$ac_cv_func_clock_gettime" = xyes; then :
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_CLOCK_GETTIME 1
23414 _ACEOF
23415
23416 fi
23417 done
23418 ;;
23419 esac
23420
23421 # clock_gettime -- monotonic clocks.
23422 # Check to see if we can get a monotonic clock. We actually try and
23423 # run the program if possible, because we don't trust the #define's
23424 # existence to mean the clock really exists.
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime monotonic clock" >&5
23426 $as_echo_n "checking for clock_gettime monotonic clock... " >&6; }
23427 if ${db_cv_clock_monotonic+:} false; then :
23428 $as_echo_n "(cached) " >&6
23429 else
23430
23431 if test "$cross_compiling" = yes; then :
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23434
23435 #include <sys/time.h>
23436 int
23437 main ()
23438 {
23439
23440 struct timespec t;
23441 clock_gettime(CLOCK_MONOTONIC, &t);
23442
23443 ;
23444 return 0;
23445 }
23446 _ACEOF
23447 if ac_fn_c_try_link "$LINENO"; then :
23448 db_cv_clock_monotonic=yes
23449 else
23450 db_cv_clock_monotonic=no
23451 fi
23452 rm -f core conftest.err conftest.$ac_objext \
23453 conftest$ac_exeext conftest.$ac_ext
23454 else
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23457
23458 #include <sys/time.h>
23459 main() {
23460 struct timespec t;
23461 return (clock_gettime(CLOCK_MONOTONIC, &t) != 0);
23462 }
23463 _ACEOF
23464 if ac_fn_c_try_run "$LINENO"; then :
23465 db_cv_clock_monotonic=yes
23466 else
23467 db_cv_clock_monotonic=no
23468 fi
23469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23470 conftest.$ac_objext conftest.beam conftest.$ac_ext
23471 fi
23472
23473
23474 fi
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_clock_monotonic" >&5
23476 $as_echo "$db_cv_clock_monotonic" >&6; }
23477 if test "$db_cv_clock_monotonic" = "yes"; then
23478 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
23479
23480
23481 fi
23482
23483 # ctime_r --
23484 #
23485 # There are two versions of ctime_r, one of which takes a buffer length as a
23486 # third argument, and one which only takes two arguments. (There is also a
23487 # difference in return values and the type of the 3rd argument, but we handle
23488 # those problems in the code itself.)
23489 for ac_func in ctime_r
23490 do :
23491 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
23492 if test "x$ac_cv_func_ctime_r" = xyes; then :
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_CTIME_R 1
23495 _ACEOF
23496
23497 fi
23498 done
23499
23500 if test "$ac_cv_func_ctime_r" = "yes"; then
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 or 3 argument version of ctime_r" >&5
23502 $as_echo_n "checking for 2 or 3 argument version of ctime_r... " >&6; }
23503 if ${db_cv_ctime_r_3arg+:} false; then :
23504 $as_echo_n "(cached) " >&6
23505 else
23506
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h. */
23509
23510 #include <time.h>
23511 int
23512 main ()
23513 {
23514
23515 ctime_r(NULL, NULL, 100);
23516
23517 ;
23518 return 0;
23519 }
23520 _ACEOF
23521 if ac_fn_c_try_link "$LINENO"; then :
23522 db_cv_ctime_r_3arg="3-argument"
23523 else
23524 db_cv_ctime_r_3arg="2-argument"
23525 fi
23526 rm -f core conftest.err conftest.$ac_objext \
23527 conftest$ac_exeext conftest.$ac_ext
23528 fi
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_ctime_r_3arg" >&5
23530 $as_echo "$db_cv_ctime_r_3arg" >&6; }
23531 fi
23532 if test "$db_cv_ctime_r_3arg" = "3-argument"; then
23533 $as_echo "#define HAVE_CTIME_R_3ARG 1" >>confdefs.h
23534
23535
23536 fi
23537
23538
23539 # Ftruncate.
23540 # We've run into a problem with ftruncate on Alpha/Tru64, the issue is that
23541 # after a truncate the last page of the file mmaps as all zeros. So just don't
23542 # use ftruncate.
23543 case "$host_os" in
23544 osf*)
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ftruncate ignored on $host_os-$host_vendor." >&5
23546 $as_echo "$as_me: WARNING: ftruncate ignored on $host_os-$host_vendor." >&2;};;
23547 *)
23548 for ac_func in ftruncate
23549 do :
23550 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
23551 if test "x$ac_cv_func_ftruncate" = xyes; then :
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_FTRUNCATE 1
23554 _ACEOF
23555
23556 fi
23557 done
23558 ;;
23559 esac
23560
23561 # Pread/pwrite.
23562 # HP-UX has pread/pwrite, but it doesn't work with largefile support.
23563 # NCR's version of System V R 4.3 has pread/pwrite symbols, but no support.
23564 case "$host_os-$host_vendor" in
23565 hpux*|sysv4.3*-ncr)
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&5
23567 $as_echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&2;};;
23568 *)
23569 for ac_func in pread pwrite
23570 do :
23571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23572 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23573 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23574 cat >>confdefs.h <<_ACEOF
23575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23576 _ACEOF
23577
23578 fi
23579 done
23580 ;;
23581 esac
23582
23583 # Check for getaddrinfo; do the test explicitly instead of using AC_CHECK_FUNCS
23584 # because <netdb.h> isn't a standard include file.
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
23586 $as_echo_n "checking for getaddrinfo... " >&6; }
23587 if ${db_cv_getaddrinfo+:} false; then :
23588 $as_echo_n "(cached) " >&6
23589 else
23590
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593
23594 #include <sys/types.h>
23595 #include <netdb.h>
23596 int
23597 main ()
23598 {
23599
23600 getaddrinfo(0, 0, 0, 0);
23601
23602 ;
23603 return 0;
23604 }
23605 _ACEOF
23606 if ac_fn_c_try_link "$LINENO"; then :
23607 db_cv_getaddrinfo=yes
23608 else
23609 db_cv_getaddrinfo=no
23610 fi
23611 rm -f core conftest.err conftest.$ac_objext \
23612 conftest$ac_exeext conftest.$ac_ext
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_getaddrinfo" >&5
23615 $as_echo "$db_cv_getaddrinfo" >&6; }
23616 if test "$db_cv_getaddrinfo" = "yes"; then
23617 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
23618
23619
23620 fi
23621
23622 # Check for the fcntl F_SETFD flag to deny child process access to file
23623 # descriptors.
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl/F_SETFD" >&5
23625 $as_echo_n "checking for fcntl/F_SETFD... " >&6; }
23626 if ${db_cv_fcntl_f_setfd+:} false; then :
23627 $as_echo_n "(cached) " >&6
23628 else
23629
23630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h. */
23632
23633 #include <sys/types.h>
23634 #include <fcntl.h>
23635 int
23636 main ()
23637 {
23638
23639 fcntl(1, F_SETFD, 1);
23640
23641 ;
23642 return 0;
23643 }
23644 _ACEOF
23645 if ac_fn_c_try_link "$LINENO"; then :
23646 db_cv_fcntl_f_setfd=yes
23647 else
23648 db_cv_fcntl_f_setfd=no
23649 fi
23650 rm -f core conftest.err conftest.$ac_objext \
23651 conftest$ac_exeext conftest.$ac_ext
23652 fi
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_fcntl_f_setfd" >&5
23654 $as_echo "$db_cv_fcntl_f_setfd" >&6; }
23655 if test "$db_cv_fcntl_f_setfd" = "yes"; then
23656 $as_echo "#define HAVE_FCNTL_F_SETFD 1" >>confdefs.h
23657
23658
23659 fi
23660
23661 # A/UX has a broken getopt(3).
23662 case "$host_os" in
23663 aux*) case " $LIBOBJS " in
23664 *" getopt.$ac_objext "* ) ;;
23665 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
23666 ;;
23667 esac
23668 ;;
23669 esac
23670
23671 # Linux has a broken O_DIRECT flag, but you can't detect it at configure time.
23672 # Linux and SGI require buffer alignment we may not match, otherwise writes
23673 # will fail. Default to not using the O_DIRECT flag.
23674 if test "$db_cv_o_direct" = "yes"; then
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open/O_DIRECT" >&5
23676 $as_echo_n "checking for open/O_DIRECT... " >&6; }
23677 if ${db_cv_open_o_direct+:} false; then :
23678 $as_echo_n "(cached) " >&6
23679 else
23680
23681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h. */
23683
23684 #include <sys/types.h>
23685 #include <fcntl.h>
23686 int
23687 main ()
23688 {
23689
23690 open("a", O_RDONLY | O_DIRECT, 0);
23691
23692 ;
23693 return 0;
23694 }
23695 _ACEOF
23696 if ac_fn_c_try_link "$LINENO"; then :
23697 db_cv_open_o_direct=yes
23698 else
23699 db_cv_open_o_direct=no
23700 fi
23701 rm -f core conftest.err conftest.$ac_objext \
23702 conftest$ac_exeext conftest.$ac_ext
23703 fi
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_open_o_direct" >&5
23705 $as_echo "$db_cv_open_o_direct" >&6; }
23706 if test \
23707 "$db_cv_o_direct" = "yes" -a "$db_cv_open_o_direct" = "yes"; then
23708 $as_echo "#define HAVE_O_DIRECT 1" >>confdefs.h
23709
23710
23711 fi
23712 fi
23713
23714 # Check for largefile support.
23715 # Check whether --enable-largefile was given.
23716 if test "${enable_largefile+set}" = set; then :
23717 enableval=$enable_largefile;
23718 fi
23719
23720 if test "$enable_largefile" != no; then
23721
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
23723 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
23724 if ${ac_cv_sys_largefile_CC+:} false; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 ac_cv_sys_largefile_CC=no
23728 if test "$GCC" != yes; then
23729 ac_save_CC=$CC
23730 while :; do
23731 # IRIX 6.2 and later do not support large files by default,
23732 # so use the C compiler's -n32 option if that helps.
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23735 #include <sys/types.h>
23736 /* Check that off_t can represent 2**63 - 1 correctly.
23737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23738 since some C++ compilers masquerading as C compilers
23739 incorrectly reject 9223372036854775807. */
23740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23742 && LARGE_OFF_T % 2147483647 == 1)
23743 ? 1 : -1];
23744 int
23745 main ()
23746 {
23747
23748 ;
23749 return 0;
23750 }
23751 _ACEOF
23752 if ac_fn_c_try_compile "$LINENO"; then :
23753 break
23754 fi
23755 rm -f core conftest.err conftest.$ac_objext
23756 CC="$CC -n32"
23757 if ac_fn_c_try_compile "$LINENO"; then :
23758 ac_cv_sys_largefile_CC=' -n32'; break
23759 fi
23760 rm -f core conftest.err conftest.$ac_objext
23761 break
23762 done
23763 CC=$ac_save_CC
23764 rm -f conftest.$ac_ext
23765 fi
23766 fi
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
23768 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
23769 if test "$ac_cv_sys_largefile_CC" != no; then
23770 CC=$CC$ac_cv_sys_largefile_CC
23771 fi
23772
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23774 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
23775 if ${ac_cv_sys_file_offset_bits+:} false; then :
23776 $as_echo_n "(cached) " >&6
23777 else
23778 while :; do
23779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23780 /* end confdefs.h. */
23781 #include <sys/types.h>
23782 /* Check that off_t can represent 2**63 - 1 correctly.
23783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23784 since some C++ compilers masquerading as C compilers
23785 incorrectly reject 9223372036854775807. */
23786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23788 && LARGE_OFF_T % 2147483647 == 1)
23789 ? 1 : -1];
23790 int
23791 main ()
23792 {
23793
23794 ;
23795 return 0;
23796 }
23797 _ACEOF
23798 if ac_fn_c_try_compile "$LINENO"; then :
23799 ac_cv_sys_file_offset_bits=no; break
23800 fi
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23803 /* end confdefs.h. */
23804 #define _FILE_OFFSET_BITS 64
23805 #include <sys/types.h>
23806 /* Check that off_t can represent 2**63 - 1 correctly.
23807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23808 since some C++ compilers masquerading as C compilers
23809 incorrectly reject 9223372036854775807. */
23810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23812 && LARGE_OFF_T % 2147483647 == 1)
23813 ? 1 : -1];
23814 int
23815 main ()
23816 {
23817
23818 ;
23819 return 0;
23820 }
23821 _ACEOF
23822 if ac_fn_c_try_compile "$LINENO"; then :
23823 ac_cv_sys_file_offset_bits=64; break
23824 fi
23825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 ac_cv_sys_file_offset_bits=unknown
23827 break
23828 done
23829 fi
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
23831 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
23832 case $ac_cv_sys_file_offset_bits in #(
23833 no | unknown) ;;
23834 *)
23835 cat >>confdefs.h <<_ACEOF
23836 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23837 _ACEOF
23838 ;;
23839 esac
23840 rm -rf conftest*
23841 if test $ac_cv_sys_file_offset_bits = unknown; then
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
23843 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
23844 if ${ac_cv_sys_large_files+:} false; then :
23845 $as_echo_n "(cached) " >&6
23846 else
23847 while :; do
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23850 #include <sys/types.h>
23851 /* Check that off_t can represent 2**63 - 1 correctly.
23852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23853 since some C++ compilers masquerading as C compilers
23854 incorrectly reject 9223372036854775807. */
23855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23857 && LARGE_OFF_T % 2147483647 == 1)
23858 ? 1 : -1];
23859 int
23860 main ()
23861 {
23862
23863 ;
23864 return 0;
23865 }
23866 _ACEOF
23867 if ac_fn_c_try_compile "$LINENO"; then :
23868 ac_cv_sys_large_files=no; break
23869 fi
23870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23873 #define _LARGE_FILES 1
23874 #include <sys/types.h>
23875 /* Check that off_t can represent 2**63 - 1 correctly.
23876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23877 since some C++ compilers masquerading as C compilers
23878 incorrectly reject 9223372036854775807. */
23879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23881 && LARGE_OFF_T % 2147483647 == 1)
23882 ? 1 : -1];
23883 int
23884 main ()
23885 {
23886
23887 ;
23888 return 0;
23889 }
23890 _ACEOF
23891 if ac_fn_c_try_compile "$LINENO"; then :
23892 ac_cv_sys_large_files=1; break
23893 fi
23894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895 ac_cv_sys_large_files=unknown
23896 break
23897 done
23898 fi
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
23900 $as_echo "$ac_cv_sys_large_files" >&6; }
23901 case $ac_cv_sys_large_files in #(
23902 no | unknown) ;;
23903 *)
23904 cat >>confdefs.h <<_ACEOF
23905 #define _LARGE_FILES $ac_cv_sys_large_files
23906 _ACEOF
23907 ;;
23908 esac
23909 rm -rf conftest*
23910 fi
23911 fi
23912
23913
23914 # Figure out how to create shared regions.
23915 #
23916 # First, we look for mmap.
23917 #
23918 # BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
23919 #
23920 # Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
23921 # is defined in the C library) but does not support munmap(2). Don't
23922 # try to use mmap if we can't find munmap.
23923 #
23924 # Ultrix has mmap(2), but it doesn't work.
23925 mmap_ok=no
23926 case "$host_os" in
23927 bsdi3*|bsdi4.0)
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5
23929 $as_echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;}
23930 mmap_ok=yes
23931 for ac_func in mmap munmap
23932 do :
23933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23936 cat >>confdefs.h <<_ACEOF
23937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23938 _ACEOF
23939
23940 else
23941 mmap_ok=no
23942 fi
23943 done
23944 ;;
23945 ultrix*)
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
23947 $as_echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
23948 *)
23949 mmap_ok=yes
23950 for ac_func in mlock munlock
23951 do :
23952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23955 cat >>confdefs.h <<_ACEOF
23956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23957 _ACEOF
23958
23959 fi
23960 done
23961
23962 for ac_func in mmap munmap
23963 do :
23964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23967 cat >>confdefs.h <<_ACEOF
23968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23969 _ACEOF
23970
23971 else
23972 mmap_ok=no
23973 fi
23974 done
23975 ;;
23976 esac
23977
23978 # Second, we look for shmget.
23979 #
23980 # SunOS has the shmget(2) interfaces, but there appears to be a missing
23981 # #include <debug/debug.h> file, so we ignore them.
23982 shmget_ok=no
23983 case "$host_os" in
23984 sunos*)
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
23986 $as_echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
23987 *)
23988 shmget_ok=yes
23989 for ac_func in shmget
23990 do :
23991 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget"
23992 if test "x$ac_cv_func_shmget" = xyes; then :
23993 cat >>confdefs.h <<_ACEOF
23994 #define HAVE_SHMGET 1
23995 _ACEOF
23996
23997 else
23998 shmget_ok=no
23999 fi
24000 done
24001
24002
24003 # Check for shmctl to lock down shared memory segments.
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmctl" >&5
24005 $as_echo_n "checking for shmctl... " >&6; }
24006 if ${db_cv_shmctl_shm_lock+:} false; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24012
24013 #include <sys/types.h>
24014 #include <sys/ipc.h>
24015 #include <sys/shm.h>
24016 #include <stdio.h>
24017 int
24018 main ()
24019 {
24020
24021 shmctl(0, SHM_LOCK, NULL);
24022
24023 ;
24024 return 0;
24025 }
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 db_cv_shmctl_shm_lock=yes
24029 else
24030 db_cv_shmctl_shm_lock=no
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_shmctl_shm_lock" >&5
24036 $as_echo "$db_cv_shmctl_shm_lock" >&6; }
24037 if test "$db_cv_shmctl_shm_lock" = "yes"; then
24038 $as_echo "#define HAVE_SHMCTL_SHM_LOCK 1" >>confdefs.h
24039
24040
24041 fi;;
24042 esac
24043
24044 # We require either mmap/munmap(2) or shmget(2).
24045 if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
24047 $as_echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
24048 fi
24049
24050 # Optional Tcl support.
24051 if test "$db_cv_tcl" = "yes"; then
24052
24053
24054 if ${ac_cv_c_tclconfig+:} false; then :
24055 $as_echo_n "(cached) " >&6
24056 else
24057
24058
24059 # First check to see if --with-tclconfig was specified.
24060 if test "${with_tclconfig}" != no; then
24061 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24062 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24063 else
24064 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
24065 fi
24066 fi
24067
24068 # check in a few common install locations
24069 if test x"${ac_cv_c_tclconfig}" = x ; then
24070 for i in `ls -d /usr/local/lib 2>/dev/null` ; do
24071 if test -f "$i/tclConfig.sh" ; then
24072 ac_cv_c_tclconfig=`(cd $i; pwd)`
24073 break
24074 fi
24075 done
24076 fi
24077
24078
24079 fi
24080
24081
24082 if test x"${ac_cv_c_tclconfig}" = x ; then
24083 TCL_BIN_DIR="# no Tcl configs found"
24084 as_fn_error $? "can't find Tcl configuration definitions" "$LINENO" 5
24085 else
24086 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24087 fi
24088
24089
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
24091 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
24092
24093 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
24095 $as_echo "loading" >&6; }
24096 . $TCL_BIN_DIR/tclConfig.sh
24097 else
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
24099 $as_echo "file not found" >&6; }
24100 fi
24101
24102 # DB requires at least version 8.5.
24103 if test ${TCL_MAJOR_VERSION} -lt 8 \
24104 -o ${TCL_MAJOR_VERSION} -eq 8 -a ${TCL_MINOR_VERSION} -lt 5; then
24105 as_fn_error $? "Berkeley DB requires Tcl version 8.5 or better." "$LINENO" 5
24106 fi
24107
24108 # The eval is required to do substitution (for example, the TCL_DBGX
24109 # substitution in the TCL_LIB_FILE variable.
24110 eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\""
24111 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24112 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24113 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24114
24115 #
24116 # If the DB Tcl library isn't loaded with the Tcl spec and library
24117 # flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
24118 # load time. [#4843] Furthermore, with Tcl 8.3, the link flags
24119 # given by the Tcl spec are insufficient for our use. [#5779],[#17109]
24120 #
24121 case "$host_os" in
24122 aix*)
24123 LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
24124 LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
24125 esac
24126
24127
24128
24129
24130
24131
24132 TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
24133
24134
24135 if test "$enable_shared" = "no"; then
24136 DEFAULT_LIB_TCL="\$(libtcl_version)"
24137 fi
24138 if test "$enable_shared" = "yes"; then
24139 DEFAULT_LIB_TCL="\$(libtso_target)"
24140 fi
24141 INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_TCL"
24142 if test "$enable_static" = "yes"; then
24143 INSTALL_LIBS="$INSTALL_LIBS \$(libtcl)"
24144 fi
24145
24146 fi
24147
24148 # Optional sequence code.
24149
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integral type support for sequences" >&5
24151 $as_echo_n "checking for 64-bit integral type support for sequences... " >&6; }
24152
24153 db_cv_build_sequence="yes"
24154
24155 # Have to have found 64-bit types to support sequences. If we don't
24156 # find the native types, we try and create our own.
24157 if test "$ac_cv_type_int64_t" = "no" -a -z "$int64_decl"; then
24158 db_cv_build_sequence="no"
24159 fi
24160 if test "$ac_cv_type_uint64_t" = "no" -a -z "$u_int64_decl"; then
24161 db_cv_build_sequence="no"
24162 fi
24163
24164 # Figure out what type is the right size, and set the format.
24165
24166
24167 db_cv_seq_type="no"
24168 if test "$db_cv_build_sequence" = "yes" -a\
24169 "$ac_cv_sizeof_long" -eq "8"; then
24170 db_cv_seq_type="long"
24171 db_cv_seq_fmt='"%ld"'
24172 db_cv_seq_ufmt='"%lu"'
24173 INT64_FMT='#define INT64_FMT "%ld"'
24174 UINT64_FMT='#define UINT64_FMT "%lu"'
24175 else if test "$db_cv_build_sequence" = "yes" -a\
24176 "$ac_cv_sizeof_long_long" -eq "8"; then
24177 db_cv_seq_type="long long"
24178 db_cv_seq_fmt='"%lld"'
24179 db_cv_seq_ufmt='"%llu"'
24180 INT64_FMT='#define INT64_FMT "%lld"'
24181 UINT64_FMT='#define UINT64_FMT "%llu"'
24182 else
24183 db_cv_build_sequence="no"
24184 fi
24185 fi
24186
24187 # Test to see if we can declare variables of the appropriate size
24188 # and format them. If we're cross-compiling, all we get is a link
24189 # test, which won't test for the appropriate printf format strings.
24190 if test "$db_cv_build_sequence" = "yes"; then
24191 if test "$cross_compiling" = yes; then :
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24194
24195 int
24196 main ()
24197 {
24198
24199 $db_cv_seq_type l;
24200 unsigned $db_cv_seq_type u;
24201 char buf[100];
24202
24203 buf[0] = 'a';
24204 l = 9223372036854775807LL;
24205 (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
24206 if (strcmp(buf, "9223372036854775807"))
24207 return (1);
24208 u = 18446744073709551615ULL;
24209 (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
24210 if (strcmp(buf, "18446744073709551615"))
24211 return (1);
24212 return (0);
24213
24214 ;
24215 return 0;
24216 }
24217 _ACEOF
24218 if ac_fn_c_try_link "$LINENO"; then :
24219
24220 else
24221 db_cv_build_sequence="no"
24222 fi
24223 rm -f core conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
24225 else
24226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24227 /* end confdefs.h. */
24228
24229 main() {
24230 $db_cv_seq_type l;
24231 unsigned $db_cv_seq_type u;
24232 char buf[100];
24233
24234 buf[0] = 'a';
24235 l = 9223372036854775807LL;
24236 (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
24237 if (strcmp(buf, "9223372036854775807"))
24238 return (1);
24239 u = 18446744073709551615ULL;
24240 (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
24241 if (strcmp(buf, "18446744073709551615"))
24242 return (1);
24243 return (0);
24244 }
24245 _ACEOF
24246 if ac_fn_c_try_run "$LINENO"; then :
24247
24248 else
24249 db_cv_build_sequence="no"
24250 fi
24251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24252 conftest.$ac_objext conftest.beam conftest.$ac_ext
24253 fi
24254
24255 fi
24256 if test "$db_cv_build_sequence" = "yes"; then
24257
24258 db_seq_decl="typedef $db_cv_seq_type db_seq_t;";
24259
24260 $as_echo "#define HAVE_64BIT_TYPES 1" >>confdefs.h
24261
24262
24263 else
24264 # It still has to compile, but it won't run.
24265 db_seq_decl="typedef int db_seq_t;";
24266 fi
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_build_sequence" >&5
24268 $as_echo "$db_cv_build_sequence" >&6; }
24269
24270
24271 # Detect whether a large mmap() supports automatically extending the accessible
24272 # region after growing the underlying file.
24273
24274
24275
24276
24277
24278 if test "$mmap_ok" = "yes" ; then
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing a file under an mmap region" >&5
24280 $as_echo_n "checking for growing a file under an mmap region... " >&6; }
24281
24282 db_cv_mmap_extend="no"
24283
24284 if test "$cross_compiling" = yes; then :
24285 db_cv_mmap_extend="no"
24286 else
24287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24288 /* end confdefs.h. */
24289
24290 /*
24291 * Most mmap() implemenations allow you to map in a region which is much
24292 * larger than the underlying file. Only the second less than the actual
24293 * file size is accessible -- a SIGSEV typically results when attemping
24294 * a memory reference between EOF and the end of the mapped region.
24295 * One can extend the file to allow references into higher-addressed
24296 * sections of the region. However this automatic extension of the
24297 * addressible memory is beyond what POSIX requires. This function detects
24298 * whether mmap supports this automatic extension. If not (e.g. cygwin)
24299 * then the entire (hopefully sparse) file will need to be written before
24300 * the first mmap.
24301 */
24302 /* Not all these includes are needed, but the minimal set varies from
24303 * system to system.
24304 */
24305 #include <stdio.h>
24306 #include <string.h>
24307 #include <sys/types.h>
24308 #include <sys/stat.h>
24309 #include <fcntl.h>
24310 #include <sys/mman.h>
24311 #include <signal.h>
24312
24313 #define TEST_MMAP_BUFSIZE (16 * 1024)
24314 #define TEST_MMAP_EXTENDSIZE (16 * 1024 * 1024)
24315 #ifndef MAP_FAILED
24316 #define MAP_FAILED (-1)
24317 #endif
24318
24319 int catch_sig(sig)
24320 int sig;
24321 {
24322 exit(1);
24323 }
24324
24325 main() {
24326 const char *underlying;
24327 unsigned gapsize;
24328 char *base;
24329 int count, fd, i, mode, open_flags, ret, total_size;
24330 char buf[TEST_MMAP_BUFSIZE];
24331
24332 gapsize = 1024;
24333 underlying = ".mmap_config";
24334 (void) unlink(underlying);
24335
24336 open_flags = O_CREAT | O_TRUNC | O_RDWR;
24337 mode = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
24338
24339 if ((fd = open(underlying, open_flags, mode)) < 0) {
24340 perror("open");
24341 return (1);
24342 }
24343
24344 total_size = TEST_MMAP_EXTENDSIZE;
24345
24346 memset(buf, 0, sizeof(buf));
24347 if ((count = write(fd, buf, sizeof(buf))) != sizeof(buf)) {
24348 perror("initial write");
24349 return (2);
24350 }
24351
24352 if ((base = mmap(NULL, total_size,
24353 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) {
24354 perror("mmap");
24355 return (3);
24356 }
24357
24358 /* Extend the file with just 1 byte */
24359 if (lseek(fd, total_size - 1, SEEK_SET) < 0 ||
24360 (count = write(fd, buf, 1)) != 1) {
24361 perror("extending write");
24362 return (4);
24363 }
24364
24365 (void) signal(SIGSEGV, catch_sig);
24366 (void) signal(SIGBUS, catch_sig);
24367
24368 for (i = sizeof(buf); i < total_size; i += gapsize)
24369 base[i] = 'A';
24370
24371 close(fd);
24372 (void) unlink(underlying);
24373 return (0);
24374 }
24375 _ACEOF
24376 if ac_fn_c_try_run "$LINENO"; then :
24377 db_cv_mmap_extend="yes"
24378 else
24379 db_cv_mmap_extend="no"
24380 fi
24381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24382 conftest.$ac_objext conftest.beam conftest.$ac_ext
24383 fi
24384
24385
24386
24387 if test "$db_cv_mmap_extend" = yes; then
24388 $as_echo "#define HAVE_MMAP_EXTEND 1" >>confdefs.h
24389
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mmap_extend" >&5
24392 $as_echo "$db_cv_mmap_extend" >&6; }
24393 fi
24394
24395
24396 # Optional DB 1.85 compatibility API.
24397 if test "$db_cv_compat185" = "yes"; then
24398 ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
24399
24400 ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
24401 fi
24402
24403 # Optional utilities.
24404 if test "$db_cv_dump185" = "yes"; then
24405 ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
24406 fi
24407
24408 # Log checksums can be disabled to increase performance
24409 if test "$db_cv_log_checksum" = "yes"; then
24410 $as_echo "#define HAVE_LOG_CHECKSUM 1" >>confdefs.h
24411
24412
24413 fi
24414
24415 # You can disable pieces of functionality to save space.
24416 #
24417 # Btree is always configured: it is the standard method, and Hash off-page
24418 # duplicates require it.
24419 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_OBJS)"
24420
24421 # Compression can be disabled.
24422 if test "$db_cv_build_compression" = "yes"; then
24423 $as_echo "#define HAVE_COMPRESSION 1" >>confdefs.h
24424
24425
24426 fi
24427
24428 # Partitioning can be disabled.
24429 if test "$db_cv_build_partition" = "yes"; then
24430 $as_echo "#define HAVE_PARTITION 1" >>confdefs.h
24431
24432
24433 fi
24434
24435 # Hash can be disabled.
24436 if test "$db_cv_build_hash" = "yes"; then
24437 $as_echo "#define HAVE_HASH 1" >>confdefs.h
24438
24439
24440 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_OBJS)"
24441 if test "$db_cv_build_verify" = "yes"; then
24442 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_VRFY_OBJS)"
24443 fi
24444 else
24445 ADDITIONAL_OBJS="$ADDITIONAL_OBJS hash_stub${o}"
24446 fi
24447
24448 # Heap can be disabled.
24449 if test "$db_cv_build_heap" = "yes"; then
24450 $as_echo "#define HAVE_HEAP 1" >>confdefs.h
24451
24452
24453 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HEAP_OBJS)"
24454 if test "$db_cv_build_verify" = "yes"; then
24455 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HEAP_VRFY_OBJS)"
24456 fi
24457 else
24458 ADDITIONAL_OBJS="$ADDITIONAL_OBJS heap_stub${o}"
24459 fi
24460
24461 # Queue can be disabled.
24462 if test "$db_cv_build_queue" = "yes"; then
24463 $as_echo "#define HAVE_QUEUE 1" >>confdefs.h
24464
24465
24466 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_OBJS)"
24467 if test "$db_cv_build_verify" = "yes"; then
24468 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_VRFY_OBJS)"
24469 fi
24470 else
24471 ADDITIONAL_OBJS="$ADDITIONAL_OBJS qam_stub${o}"
24472 fi
24473
24474 # Replication can be disabled.
24475 if test "$db_cv_build_replication" = "yes"; then
24476 $as_echo "#define HAVE_REPLICATION 1" >>confdefs.h
24477
24478
24479 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REP_OBJS)"
24480
24481 # If we're building replication and detected POSIX threads, build the
24482 # replication manager.
24483
24484
24485 if test "$ac_cv_header_pthread_h" = yes -a "$db_cv_mingw" != "yes"; then
24486 $as_echo "#define HAVE_REPLICATION_THREADS 1" >>confdefs.h
24487
24488
24489 if test "$with_stacksize" != "no"; then
24490
24491 cat >>confdefs.h <<_ACEOF
24492 #define DB_STACKSIZE $with_stacksize
24493 _ACEOF
24494
24495 fi
24496
24497 # Solaris requires the socket and nsl libraries to build the
24498 # replication manager. Don't add nsl regardless of the OS,
24499 # it causes RPC to fail on AIX 4.3.3.
24500 case "$host_os" in
24501 solaris*)
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
24503 $as_echo_n "checking for main in -lnsl... " >&6; }
24504 if ${ac_cv_lib_nsl_main+:} false; then :
24505 $as_echo_n "(cached) " >&6
24506 else
24507 ac_check_lib_save_LIBS=$LIBS
24508 LIBS="-lnsl $LIBS"
24509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24510 /* end confdefs.h. */
24511
24512
24513 int
24514 main ()
24515 {
24516 return main ();
24517 ;
24518 return 0;
24519 }
24520 _ACEOF
24521 if ac_fn_c_try_link "$LINENO"; then :
24522 ac_cv_lib_nsl_main=yes
24523 else
24524 ac_cv_lib_nsl_main=no
24525 fi
24526 rm -f core conftest.err conftest.$ac_objext \
24527 conftest$ac_exeext conftest.$ac_ext
24528 LIBS=$ac_check_lib_save_LIBS
24529 fi
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
24531 $as_echo "$ac_cv_lib_nsl_main" >&6; }
24532 if test "x$ac_cv_lib_nsl_main" = xyes; then :
24533 LIBSO_LIBS="$LIBSO_LIBS -lnsl"
24534 fi
24535 ac_cv_lib_nsl=ac_cv_lib_nsl_main
24536
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
24538 $as_echo_n "checking for main in -lsocket... " >&6; }
24539 if ${ac_cv_lib_socket_main+:} false; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 ac_check_lib_save_LIBS=$LIBS
24543 LIBS="-lsocket $LIBS"
24544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24545 /* end confdefs.h. */
24546
24547
24548 int
24549 main ()
24550 {
24551 return main ();
24552 ;
24553 return 0;
24554 }
24555 _ACEOF
24556 if ac_fn_c_try_link "$LINENO"; then :
24557 ac_cv_lib_socket_main=yes
24558 else
24559 ac_cv_lib_socket_main=no
24560 fi
24561 rm -f core conftest.err conftest.$ac_objext \
24562 conftest$ac_exeext conftest.$ac_ext
24563 LIBS=$ac_check_lib_save_LIBS
24564 fi
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
24566 $as_echo "$ac_cv_lib_socket_main" >&6; }
24567 if test "x$ac_cv_lib_socket_main" = xyes; then :
24568 LIBSO_LIBS="$LIBSO_LIBS -lsocket"
24569 fi
24570 ac_cv_lib_socket=ac_cv_lib_socket_main
24571 ;;
24572 esac
24573 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REPMGR_OBJS)"
24574 else
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replication manager is not supported." >&5
24576 $as_echo "$as_me: WARNING: Replication manager is not supported." >&2;}
24577 ADDITIONAL_OBJS="$ADDITIONAL_OBJS repmgr_stub${o}"
24578 fi
24579 else
24580 ADDITIONAL_OBJS="$ADDITIONAL_OBJS rep_stub${o} repmgr_stub${o}"
24581 fi
24582
24583 # The statistics code can be disabled.
24584 if test "$db_cv_build_statistics" = "yes"; then
24585 $as_echo "#define HAVE_STATISTICS 1" >>confdefs.h
24586
24587
24588 fi
24589
24590 # The verification code can be disabled.
24591 if test "$db_cv_build_verify" = "yes"; then
24592 $as_echo "#define HAVE_VERIFY 1" >>confdefs.h
24593
24594
24595 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_VRFY_OBJS) \$(LOG_VRFY_OBJS)"
24596 else
24597 ADDITIONAL_OBJS="$ADDITIONAL_OBJS db_vrfy_stub${o} log_verify_stub${o}"
24598 fi
24599
24600 # The crypto code can be disabled.
24601 if test -d "$topdir/src/crypto" -a "$db_cv_build_cryptography" != "no"; then
24602 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
24603
24604
24605
24606 CRYPTO_OBJS="\$(CRYPTO_OBJS)"
24607
24608 if test "$db_cv_build_cryptography" = "ipp"; then
24609 ac_fn_c_check_header_mongrel "$LINENO" "ippcp.h" "ac_cv_header_ippcp_h" "$ac_includes_default"
24610 if test "x$ac_cv_header_ippcp_h" = xyes; then :
24611
24612 else
24613 as_fn_error $? "\
24614 The 'ippcp.h' header file required for IPP cryptography support was not found \
24615 in the configured include path." "$LINENO" 5
24616 fi
24617
24618
24619 $as_echo "#define HAVE_CRYPTO_IPP 1" >>confdefs.h
24620
24621
24622 fi
24623 else
24624 CRYPTO_OBJS="crypto_stub${o}"
24625 fi
24626
24627 # The mutex code can be disabled, and if there aren't any mutexes, then there's
24628 # no reason to include the locking code.
24629 if test "$db_cv_build_mutexsupport" = "yes"; then
24630 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(LOCK_OBJS) \$(MUTEX_OBJS)"
24631 else
24632 ADDITIONAL_OBJS="$ADDITIONAL_OBJS lock_stub${o} mut_stub${o}"
24633 fi
24634
24635 # If DIAGNOSTIC is defined, include the log print routines in the library
24636 # itself, various diagnostic modes use them.
24637 if test "$db_cv_diagnostic" = "yes"; then
24638 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(PRINT_OBJS)"
24639 PRINTLOG_OBJS=""
24640 else
24641 PRINTLOG_OBJS="\$(PRINT_OBJS)"
24642 fi
24643
24644 # If building for QNX, we need additional OS files.
24645 if test "$qnx_build" = "yes"; then
24646 ADDITIONAL_OBJS="$ADDITIONAL_OBJS os_qnx_fsync${o} os_qnx_open${o}"
24647 fi
24648
24649 # The DBM API can be disabled.
24650 if test "$db_cv_dbm" = "yes"; then
24651 $as_echo "#define HAVE_DBM 1" >>confdefs.h
24652
24653
24654 ADDITIONAL_OBJS="$ADDITIONAL_OBJS dbm${o} hsearch${o}"
24655 fi
24656
24657 # The output and error messages can be stripped.
24658 if test "$db_cv_stripped_messages" = "yes"; then
24659 $as_echo "#define HAVE_STRIPPED_MESSAGES 1" >>confdefs.h
24660
24661
24662 fi
24663
24664 # The output and error messages can be localized.
24665 if test "$db_cv_localization" = "yes"; then
24666 $as_echo "#define HAVE_LOCALIZATION 1" >>confdefs.h
24667
24668
24669 fi
24670
24671 # We need to add the additional object files into the Makefile with the correct
24672 # suffix. We can't use $LTLIBOBJS itself, because that variable has $U encoded
24673 # in it for automake, and that's not what we want. See SR #7227 for additional
24674 # information.
24675 #
24676 # XXX: I'm not sure this is correct.
24677 REPLACEMENT_OBJS=`echo "$LIBOBJS" |
24678 sed "s,\.[^.]* ,$o ,g;s,\.[^.]*$,$o,"`
24679
24680 # This is necessary so that .o files in LIBOBJS are also built via
24681 # the ANSI2KNR-filtering rules.
24682 LIBOBJS=`echo "$LIBOBJS" |
24683 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
24684 LTLIBOBJS=`echo "$LIBOBJS" |
24685 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
24686
24687
24688 # Initial output file list.
24689 CREATE_LIST="Makefile
24690 db_cxx.h:$topdir/src/dbinc/db_cxx.in
24691 db_int.h:$topdir/src/dbinc/db_int.in
24692 clib_port.h:$topdir/dist/clib_port.in
24693 include.tcl:$topdir/test/tcl/include.tcl"
24694
24695 # Create the db.h file from a source file, a list of global function
24696 # prototypes, and, if configured for unique names, a list of #defines
24697 # to do DB_VERSION_UNIQUE_NAME substitution.
24698 if test "$db_cv_uniquename" = "yes"; then
24699 CREATE_LIST="$CREATE_LIST
24700 db.h:$topdir/src/dbinc/db.in:$topdir/src/dbinc_auto/api_flags.in:$topdir/src/dbinc_auto/ext_def.in:$topdir/src/dbinc_auto/ext_prot.in"
24701 else
24702 CREATE_LIST="$CREATE_LIST
24703 db.h:$topdir/src/dbinc/db.in:$topdir/src/dbinc_auto/api_flags.in:$topdir/src/dbinc_auto/ext_prot.in"
24704 fi
24705
24706 # If configured for unique names, create the db_int_uext.h file (which
24707 # does the DB_VERSION_UNIQUE_NAME substitution), which is included by
24708 # the db_int.h file.
24709 if test "$db_cv_uniquename" = "yes"; then
24710 CREATE_LIST="$CREATE_LIST
24711 db_int_def.h:$topdir/src/dbinc_auto/int_def.in"
24712 db_int_def='#include "db_int_def.h"'
24713 fi
24714
24715 # Create the db_185.h and db185_int.h files from source files, a list of
24716 # global function prototypes, and, if configured for unique names, a list
24717 # of #defines to do DB_VERSION_UNIQUE_NAME substitution.
24718 if test "$db_cv_compat185" = "yes"; then
24719 if test "$db_cv_uniquename" = "yes"; then
24720 CREATE_LIST="$CREATE_LIST
24721 db_185.h:$topdir/src/dbinc/db_185.in:$topdir/src/dbinc_auto/ext_185_def.in:$topdir/src/dbinc_auto/ext_185_prot.in
24722 db185_int.h:$topdir/lang/db185/db185_int.in:$topdir/src/dbinc_auto/ext_185_def.in:$topdir/src/dbinc_auto/ext_185_prot.in"
24723 else
24724 CREATE_LIST="$CREATE_LIST
24725 db_185.h:$topdir/src/dbinc/db_185.in:$topdir/src/dbinc_auto/ext_185_prot.in
24726 db185_int.h:$topdir/lang/db185/db185_int.in:$topdir/src/dbinc_auto/ext_185_prot.in"
24727 fi
24728 fi
24729
24730 if test "$db_cv_stl" = "yes"; then
24731 CREATE_LIST="$CREATE_LIST
24732 dbstl_common.h:$topdir/lang/cxx/stl/dbstl_common.in"
24733 fi
24734
24735 if test "x$subdirs" != "x"; then
24736 subdir_cmd="@for d in ${subdirs}; do (cd \$\$d && \${MAKE} \$@) ; done"
24737 fi
24738
24739 ac_config_files="$ac_config_files $CREATE_LIST"
24740
24741 cat >confcache <<\_ACEOF
24742 # This file is a shell script that caches the results of configure
24743 # tests run on this system so they can be shared between configure
24744 # scripts and configure runs, see configure's option --config-cache.
24745 # It is not useful on other systems. If it contains results you don't
24746 # want to keep, you may remove or edit it.
24747 #
24748 # config.status only pays attention to the cache file if you give it
24749 # the --recheck option to rerun configure.
24750 #
24751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24753 # following values.
24754
24755 _ACEOF
24756
24757 # The following way of writing the cache mishandles newlines in values,
24758 # but we know of no workaround that is simple, portable, and efficient.
24759 # So, we kill variables containing newlines.
24760 # Ultrix sh set writes to stderr and can't be redirected directly,
24761 # and sets the high bit in the cache file unless we assign to the vars.
24762 (
24763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24764 eval ac_val=\$$ac_var
24765 case $ac_val in #(
24766 *${as_nl}*)
24767 case $ac_var in #(
24768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24770 esac
24771 case $ac_var in #(
24772 _ | IFS | as_nl) ;; #(
24773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24774 *) { eval $ac_var=; unset $ac_var;} ;;
24775 esac ;;
24776 esac
24777 done
24778
24779 (set) 2>&1 |
24780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24781 *${as_nl}ac_space=\ *)
24782 # `set' does not quote correctly, so add quotes: double-quote
24783 # substitution turns \\\\ into \\, and sed turns \\ into \.
24784 sed -n \
24785 "s/'/'\\\\''/g;
24786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24787 ;; #(
24788 *)
24789 # `set' quotes correctly as required by POSIX, so do not add quotes.
24790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24791 ;;
24792 esac |
24793 sort
24794 ) |
24795 sed '
24796 /^ac_cv_env_/b end
24797 t clear
24798 :clear
24799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24800 t end
24801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24802 :end' >>confcache
24803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24804 if test -w "$cache_file"; then
24805 if test "x$cache_file" != "x/dev/null"; then
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24807 $as_echo "$as_me: updating cache $cache_file" >&6;}
24808 if test ! -f "$cache_file" || test -h "$cache_file"; then
24809 cat confcache >"$cache_file"
24810 else
24811 case $cache_file in #(
24812 */* | ?:*)
24813 mv -f confcache "$cache_file"$$ &&
24814 mv -f "$cache_file"$$ "$cache_file" ;; #(
24815 *)
24816 mv -f confcache "$cache_file" ;;
24817 esac
24818 fi
24819 fi
24820 else
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24822 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24823 fi
24824 fi
24825 rm -f confcache
24826
24827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24828 # Let make expand exec_prefix.
24829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24830
24831 DEFS=-DHAVE_CONFIG_H
24832
24833 ac_libobjs=
24834 ac_ltlibobjs=
24835 U=
24836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24837 # 1. Remove the extension, and $U if already installed.
24838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24841 # will be set to the directory where LIBOBJS objects are built.
24842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24844 done
24845 LIBOBJS=$ac_libobjs
24846
24847 LTLIBOBJS=$ac_ltlibobjs
24848
24849
24850
24851 : "${CONFIG_STATUS=./config.status}"
24852 ac_write_fail=0
24853 ac_clean_files_save=$ac_clean_files
24854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24856 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24857 as_write_fail=0
24858 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24859 #! $SHELL
24860 # Generated by $as_me.
24861 # Run this file to recreate the current configuration.
24862 # Compiler output produced by configure, useful for debugging
24863 # configure, is in config.log if it exists.
24864
24865 debug=false
24866 ac_cs_recheck=false
24867 ac_cs_silent=false
24868
24869 SHELL=\${CONFIG_SHELL-$SHELL}
24870 export SHELL
24871 _ASEOF
24872 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24873 ## -------------------- ##
24874 ## M4sh Initialization. ##
24875 ## -------------------- ##
24876
24877 # Be more Bourne compatible
24878 DUALCASE=1; export DUALCASE # for MKS sh
24879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24880 emulate sh
24881 NULLCMD=:
24882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24883 # is contrary to our usage. Disable this feature.
24884 alias -g '${1+"$@"}'='"$@"'
24885 setopt NO_GLOB_SUBST
24886 else
24887 case `(set -o) 2>/dev/null` in #(
24888 *posix*) :
24889 set -o posix ;; #(
24890 *) :
24891 ;;
24892 esac
24893 fi
24894
24895
24896 as_nl='
24897 '
24898 export as_nl
24899 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24900 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24903 # Prefer a ksh shell builtin over an external printf program on Solaris,
24904 # but without wasting forks for bash or zsh.
24905 if test -z "$BASH_VERSION$ZSH_VERSION" \
24906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24907 as_echo='print -r --'
24908 as_echo_n='print -rn --'
24909 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24910 as_echo='printf %s\n'
24911 as_echo_n='printf %s'
24912 else
24913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24915 as_echo_n='/usr/ucb/echo -n'
24916 else
24917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24918 as_echo_n_body='eval
24919 arg=$1;
24920 case $arg in #(
24921 *"$as_nl"*)
24922 expr "X$arg" : "X\\(.*\\)$as_nl";
24923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24924 esac;
24925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24926 '
24927 export as_echo_n_body
24928 as_echo_n='sh -c $as_echo_n_body as_echo'
24929 fi
24930 export as_echo_body
24931 as_echo='sh -c $as_echo_body as_echo'
24932 fi
24933
24934 # The user is always right.
24935 if test "${PATH_SEPARATOR+set}" != set; then
24936 PATH_SEPARATOR=:
24937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24939 PATH_SEPARATOR=';'
24940 }
24941 fi
24942
24943
24944 # IFS
24945 # We need space, tab and new line, in precisely that order. Quoting is
24946 # there to prevent editors from complaining about space-tab.
24947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24948 # splitting by setting IFS to empty value.)
24949 IFS=" "" $as_nl"
24950
24951 # Find who we are. Look in the path if we contain no directory separator.
24952 as_myself=
24953 case $0 in #((
24954 *[\\/]* ) as_myself=$0 ;;
24955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956 for as_dir in $PATH
24957 do
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
24960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24961 done
24962 IFS=$as_save_IFS
24963
24964 ;;
24965 esac
24966 # We did not find ourselves, most probably we were run as `sh COMMAND'
24967 # in which case we are not to be found in the path.
24968 if test "x$as_myself" = x; then
24969 as_myself=$0
24970 fi
24971 if test ! -f "$as_myself"; then
24972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24973 exit 1
24974 fi
24975
24976 # Unset variables that we do not need and which cause bugs (e.g. in
24977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24978 # suppresses any "Segmentation fault" message there. '((' could
24979 # trigger a bug in pdksh 5.2.14.
24980 for as_var in BASH_ENV ENV MAIL MAILPATH
24981 do eval test x\${$as_var+set} = xset \
24982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24983 done
24984 PS1='$ '
24985 PS2='> '
24986 PS4='+ '
24987
24988 # NLS nuisances.
24989 LC_ALL=C
24990 export LC_ALL
24991 LANGUAGE=C
24992 export LANGUAGE
24993
24994 # CDPATH.
24995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24996
24997
24998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24999 # ----------------------------------------
25000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25002 # script with STATUS, using 1 if that was 0.
25003 as_fn_error ()
25004 {
25005 as_status=$1; test $as_status -eq 0 && as_status=1
25006 if test "$4"; then
25007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25009 fi
25010 $as_echo "$as_me: error: $2" >&2
25011 as_fn_exit $as_status
25012 } # as_fn_error
25013
25014
25015 # as_fn_set_status STATUS
25016 # -----------------------
25017 # Set $? to STATUS, without forking.
25018 as_fn_set_status ()
25019 {
25020 return $1
25021 } # as_fn_set_status
25022
25023 # as_fn_exit STATUS
25024 # -----------------
25025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25026 as_fn_exit ()
25027 {
25028 set +e
25029 as_fn_set_status $1
25030 exit $1
25031 } # as_fn_exit
25032
25033 # as_fn_unset VAR
25034 # ---------------
25035 # Portably unset VAR.
25036 as_fn_unset ()
25037 {
25038 { eval $1=; unset $1;}
25039 }
25040 as_unset=as_fn_unset
25041 # as_fn_append VAR VALUE
25042 # ----------------------
25043 # Append the text in VALUE to the end of the definition contained in VAR. Take
25044 # advantage of any shell optimizations that allow amortized linear growth over
25045 # repeated appends, instead of the typical quadratic growth present in naive
25046 # implementations.
25047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25048 eval 'as_fn_append ()
25049 {
25050 eval $1+=\$2
25051 }'
25052 else
25053 as_fn_append ()
25054 {
25055 eval $1=\$$1\$2
25056 }
25057 fi # as_fn_append
25058
25059 # as_fn_arith ARG...
25060 # ------------------
25061 # Perform arithmetic evaluation on the ARGs, and store the result in the
25062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25063 # must be portable across $(()) and expr.
25064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25065 eval 'as_fn_arith ()
25066 {
25067 as_val=$(( $* ))
25068 }'
25069 else
25070 as_fn_arith ()
25071 {
25072 as_val=`expr "$@" || test $? -eq 1`
25073 }
25074 fi # as_fn_arith
25075
25076
25077 if expr a : '\(a\)' >/dev/null 2>&1 &&
25078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25079 as_expr=expr
25080 else
25081 as_expr=false
25082 fi
25083
25084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25085 as_basename=basename
25086 else
25087 as_basename=false
25088 fi
25089
25090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25091 as_dirname=dirname
25092 else
25093 as_dirname=false
25094 fi
25095
25096 as_me=`$as_basename -- "$0" ||
25097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25098 X"$0" : 'X\(//\)$' \| \
25099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25100 $as_echo X/"$0" |
25101 sed '/^.*\/\([^/][^/]*\)\/*$/{
25102 s//\1/
25103 q
25104 }
25105 /^X\/\(\/\/\)$/{
25106 s//\1/
25107 q
25108 }
25109 /^X\/\(\/\).*/{
25110 s//\1/
25111 q
25112 }
25113 s/.*/./; q'`
25114
25115 # Avoid depending upon Character Ranges.
25116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25119 as_cr_digits='0123456789'
25120 as_cr_alnum=$as_cr_Letters$as_cr_digits
25121
25122 ECHO_C= ECHO_N= ECHO_T=
25123 case `echo -n x` in #(((((
25124 -n*)
25125 case `echo 'xy\c'` in
25126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25127 xy) ECHO_C='\c';;
25128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25129 ECHO_T=' ';;
25130 esac;;
25131 *)
25132 ECHO_N='-n';;
25133 esac
25134
25135 rm -f conf$$ conf$$.exe conf$$.file
25136 if test -d conf$$.dir; then
25137 rm -f conf$$.dir/conf$$.file
25138 else
25139 rm -f conf$$.dir
25140 mkdir conf$$.dir 2>/dev/null
25141 fi
25142 if (echo >conf$$.file) 2>/dev/null; then
25143 if ln -s conf$$.file conf$$ 2>/dev/null; then
25144 as_ln_s='ln -s'
25145 # ... but there are two gotchas:
25146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25148 # In both cases, we have to default to `cp -p'.
25149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25150 as_ln_s='cp -p'
25151 elif ln conf$$.file conf$$ 2>/dev/null; then
25152 as_ln_s=ln
25153 else
25154 as_ln_s='cp -p'
25155 fi
25156 else
25157 as_ln_s='cp -p'
25158 fi
25159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25160 rmdir conf$$.dir 2>/dev/null
25161
25162
25163 # as_fn_mkdir_p
25164 # -------------
25165 # Create "$as_dir" as a directory, including parents if necessary.
25166 as_fn_mkdir_p ()
25167 {
25168
25169 case $as_dir in #(
25170 -*) as_dir=./$as_dir;;
25171 esac
25172 test -d "$as_dir" || eval $as_mkdir_p || {
25173 as_dirs=
25174 while :; do
25175 case $as_dir in #(
25176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25177 *) as_qdir=$as_dir;;
25178 esac
25179 as_dirs="'$as_qdir' $as_dirs"
25180 as_dir=`$as_dirname -- "$as_dir" ||
25181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25182 X"$as_dir" : 'X\(//\)[^/]' \| \
25183 X"$as_dir" : 'X\(//\)$' \| \
25184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25185 $as_echo X"$as_dir" |
25186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25187 s//\1/
25188 q
25189 }
25190 /^X\(\/\/\)[^/].*/{
25191 s//\1/
25192 q
25193 }
25194 /^X\(\/\/\)$/{
25195 s//\1/
25196 q
25197 }
25198 /^X\(\/\).*/{
25199 s//\1/
25200 q
25201 }
25202 s/.*/./; q'`
25203 test -d "$as_dir" && break
25204 done
25205 test -z "$as_dirs" || eval "mkdir $as_dirs"
25206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25207
25208
25209 } # as_fn_mkdir_p
25210 if mkdir -p . 2>/dev/null; then
25211 as_mkdir_p='mkdir -p "$as_dir"'
25212 else
25213 test -d ./-p && rmdir ./-p
25214 as_mkdir_p=false
25215 fi
25216
25217 if test -x / >/dev/null 2>&1; then
25218 as_test_x='test -x'
25219 else
25220 if ls -dL / >/dev/null 2>&1; then
25221 as_ls_L_option=L
25222 else
25223 as_ls_L_option=
25224 fi
25225 as_test_x='
25226 eval sh -c '\''
25227 if test -d "$1"; then
25228 test -d "$1/.";
25229 else
25230 case $1 in #(
25231 -*)set "./$1";;
25232 esac;
25233 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25234 ???[sx]*):;;*)false;;esac;fi
25235 '\'' sh
25236 '
25237 fi
25238 as_executable_p=$as_test_x
25239
25240 # Sed expression to map a string onto a valid CPP name.
25241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25242
25243 # Sed expression to map a string onto a valid variable name.
25244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25245
25246
25247 exec 6>&1
25248 ## ----------------------------------- ##
25249 ## Main body of $CONFIG_STATUS script. ##
25250 ## ----------------------------------- ##
25251 _ASEOF
25252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25253
25254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25255 # Save the log message, to keep $0 and so on meaningful, and to
25256 # report actual input values of CONFIG_FILES etc. instead of their
25257 # values after options handling.
25258 ac_log="
25259 This file was extended by Berkeley DB $as_me 5.3.28, which was
25260 generated by GNU Autoconf 2.68. Invocation command line was
25261
25262 CONFIG_FILES = $CONFIG_FILES
25263 CONFIG_HEADERS = $CONFIG_HEADERS
25264 CONFIG_LINKS = $CONFIG_LINKS
25265 CONFIG_COMMANDS = $CONFIG_COMMANDS
25266 $ $0 $@
25267
25268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25269 "
25270
25271 _ACEOF
25272
25273 case $ac_config_files in *"
25274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25275 esac
25276
25277 case $ac_config_headers in *"
25278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25279 esac
25280
25281
25282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25283 # Files that config.status was made for.
25284 config_files="$ac_config_files"
25285 config_headers="$ac_config_headers"
25286 config_commands="$ac_config_commands"
25287
25288 _ACEOF
25289
25290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25291 ac_cs_usage="\
25292 \`$as_me' instantiates files and other configuration actions
25293 from templates according to the current configuration. Unless the files
25294 and actions are specified as TAGs, all are instantiated by default.
25295
25296 Usage: $0 [OPTION]... [TAG]...
25297
25298 -h, --help print this help, then exit
25299 -V, --version print version number and configuration settings, then exit
25300 --config print configuration, then exit
25301 -q, --quiet, --silent
25302 do not print progress messages
25303 -d, --debug don't remove temporary files
25304 --recheck update $as_me by reconfiguring in the same conditions
25305 --file=FILE[:TEMPLATE]
25306 instantiate the configuration file FILE
25307 --header=FILE[:TEMPLATE]
25308 instantiate the configuration header FILE
25309
25310 Configuration files:
25311 $config_files
25312
25313 Configuration headers:
25314 $config_headers
25315
25316 Configuration commands:
25317 $config_commands
25318
25319 Report bugs to <Oracle Technology Network Berkeley DB forum>."
25320
25321 _ACEOF
25322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25323 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25324 ac_cs_version="\\
25325 Berkeley DB config.status 5.3.28
25326 configured by $0, generated by GNU Autoconf 2.68,
25327 with options \\"\$ac_cs_config\\"
25328
25329 Copyright (C) 2010 Free Software Foundation, Inc.
25330 This config.status script is free software; the Free Software Foundation
25331 gives unlimited permission to copy, distribute and modify it."
25332
25333 ac_pwd='$ac_pwd'
25334 srcdir='$srcdir'
25335 INSTALL='$INSTALL'
25336 AWK='$AWK'
25337 test -n "\$AWK" || AWK=awk
25338 _ACEOF
25339
25340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25341 # The default lists apply if the user does not specify any file.
25342 ac_need_defaults=:
25343 while test $# != 0
25344 do
25345 case $1 in
25346 --*=?*)
25347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25349 ac_shift=:
25350 ;;
25351 --*=)
25352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25353 ac_optarg=
25354 ac_shift=:
25355 ;;
25356 *)
25357 ac_option=$1
25358 ac_optarg=$2
25359 ac_shift=shift
25360 ;;
25361 esac
25362
25363 case $ac_option in
25364 # Handling of the options.
25365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25366 ac_cs_recheck=: ;;
25367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25368 $as_echo "$ac_cs_version"; exit ;;
25369 --config | --confi | --conf | --con | --co | --c )
25370 $as_echo "$ac_cs_config"; exit ;;
25371 --debug | --debu | --deb | --de | --d | -d )
25372 debug=: ;;
25373 --file | --fil | --fi | --f )
25374 $ac_shift
25375 case $ac_optarg in
25376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25377 '') as_fn_error $? "missing file argument" ;;
25378 esac
25379 as_fn_append CONFIG_FILES " '$ac_optarg'"
25380 ac_need_defaults=false;;
25381 --header | --heade | --head | --hea )
25382 $ac_shift
25383 case $ac_optarg in
25384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25385 esac
25386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25387 ac_need_defaults=false;;
25388 --he | --h)
25389 # Conflict between --help and --header
25390 as_fn_error $? "ambiguous option: \`$1'
25391 Try \`$0 --help' for more information.";;
25392 --help | --hel | -h )
25393 $as_echo "$ac_cs_usage"; exit ;;
25394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25396 ac_cs_silent=: ;;
25397
25398 # This is an error.
25399 -*) as_fn_error $? "unrecognized option: \`$1'
25400 Try \`$0 --help' for more information." ;;
25401
25402 *) as_fn_append ac_config_targets " $1"
25403 ac_need_defaults=false ;;
25404
25405 esac
25406 shift
25407 done
25408
25409 ac_configure_extra_args=
25410
25411 if $ac_cs_silent; then
25412 exec 6>/dev/null
25413 ac_configure_extra_args="$ac_configure_extra_args --silent"
25414 fi
25415
25416 _ACEOF
25417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25418 if \$ac_cs_recheck; then
25419 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25420 shift
25421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25422 CONFIG_SHELL='$SHELL'
25423 export CONFIG_SHELL
25424 exec "\$@"
25425 fi
25426
25427 _ACEOF
25428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25429 exec 5>>config.log
25430 {
25431 echo
25432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25433 ## Running $as_me. ##
25434 _ASBOX
25435 $as_echo "$ac_log"
25436 } >&5
25437
25438 _ACEOF
25439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25440 #
25441 # INIT-COMMANDS
25442 #
25443
25444
25445 # The HP-UX ksh and POSIX shell print the target directory to stdout
25446 # if CDPATH is set.
25447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25448
25449 sed_quote_subst='$sed_quote_subst'
25450 double_quote_subst='$double_quote_subst'
25451 delay_variable_subst='$delay_variable_subst'
25452 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25453 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25454 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25456 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25457 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25458 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25459 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25460 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25461 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25462 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25463 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25464 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25465 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25466 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25467 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25468 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25469 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25470 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25471 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25472 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25473 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25474 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25475 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25476 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25477 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25478 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25479 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25480 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25481 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25482 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25483 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25484 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25485 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25486 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25487 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25488 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25489 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25490 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25491 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25492 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25493 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25494 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25495 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25496 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25497 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25498 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25499 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25500 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25501 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25502 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25503 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25504 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25505 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25506 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25507 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25508 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25509 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25510 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25511 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25512 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25513 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25514 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25515 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25516 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25517 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25518 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25519 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25520 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25521 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25522 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25523 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25524 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25525 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25526 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25527 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25528 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25529 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25530 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25531 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25532 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25533 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25534 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25535 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25536 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25537 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25538 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25539 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25540 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25541 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25542 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25543 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25544 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25545 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25546 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25547 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25548 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25549 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25550 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25551 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25552 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25553 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25554 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25555 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25556 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25557 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25558 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25559 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25560 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25561 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25562 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25563 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25564 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25565 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25566 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25567 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25568 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25569 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25570 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25571 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25572 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25573 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25574 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25575 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25576 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25577 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25578 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25579 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25580 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25581 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25582 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25583 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25584 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25585 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25586 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25587 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25588 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25589 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25590 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25591 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25592 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25593 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25594 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25595 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25596 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25597 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25598 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25599 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25600 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25601 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25602 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25603 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25604 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25605 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25606 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25607 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25608 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25609 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25610 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25611 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25612 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25613 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25614 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25615 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25616 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25617 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25618 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25619 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25620 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25621 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25622 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25623 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25624 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25625 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25626 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25627 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25628 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25629 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25630 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25631 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25632 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25633 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25634 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25635 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25636 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25637
25638 LTCC='$LTCC'
25639 LTCFLAGS='$LTCFLAGS'
25640 compiler='$compiler_DEFAULT'
25641
25642 # A function that is used when there is no print builtin or printf.
25643 func_fallback_echo ()
25644 {
25645 eval 'cat <<_LTECHO_EOF
25646 \$1
25647 _LTECHO_EOF'
25648 }
25649
25650 # Quote evaled strings.
25651 for var in SHELL \
25652 ECHO \
25653 SED \
25654 GREP \
25655 EGREP \
25656 FGREP \
25657 LD \
25658 NM \
25659 LN_S \
25660 lt_SP2NL \
25661 lt_NL2SP \
25662 reload_flag \
25663 OBJDUMP \
25664 deplibs_check_method \
25665 file_magic_cmd \
25666 file_magic_glob \
25667 want_nocaseglob \
25668 DLLTOOL \
25669 sharedlib_from_linklib_cmd \
25670 AR \
25671 AR_FLAGS \
25672 archiver_list_spec \
25673 STRIP \
25674 RANLIB \
25675 CC \
25676 CFLAGS \
25677 compiler \
25678 lt_cv_sys_global_symbol_pipe \
25679 lt_cv_sys_global_symbol_to_cdecl \
25680 lt_cv_sys_global_symbol_to_c_name_address \
25681 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25682 nm_file_list_spec \
25683 lt_prog_compiler_no_builtin_flag \
25684 lt_prog_compiler_pic \
25685 lt_prog_compiler_wl \
25686 lt_prog_compiler_static \
25687 lt_cv_prog_compiler_c_o \
25688 need_locks \
25689 MANIFEST_TOOL \
25690 DSYMUTIL \
25691 NMEDIT \
25692 LIPO \
25693 OTOOL \
25694 OTOOL64 \
25695 shrext_cmds \
25696 export_dynamic_flag_spec \
25697 whole_archive_flag_spec \
25698 compiler_needs_object \
25699 with_gnu_ld \
25700 allow_undefined_flag \
25701 no_undefined_flag \
25702 hardcode_libdir_flag_spec \
25703 hardcode_libdir_flag_spec_ld \
25704 hardcode_libdir_separator \
25705 exclude_expsyms \
25706 include_expsyms \
25707 file_list_spec \
25708 variables_saved_for_relink \
25709 libname_spec \
25710 library_names_spec \
25711 soname_spec \
25712 install_override_mode \
25713 finish_eval \
25714 old_striplib \
25715 striplib \
25716 compiler_lib_search_dirs \
25717 predep_objects \
25718 postdep_objects \
25719 predeps \
25720 postdeps \
25721 compiler_lib_search_path \
25722 LD_CXX \
25723 reload_flag_CXX \
25724 compiler_CXX \
25725 lt_prog_compiler_no_builtin_flag_CXX \
25726 lt_prog_compiler_pic_CXX \
25727 lt_prog_compiler_wl_CXX \
25728 lt_prog_compiler_static_CXX \
25729 lt_cv_prog_compiler_c_o_CXX \
25730 export_dynamic_flag_spec_CXX \
25731 whole_archive_flag_spec_CXX \
25732 compiler_needs_object_CXX \
25733 with_gnu_ld_CXX \
25734 allow_undefined_flag_CXX \
25735 no_undefined_flag_CXX \
25736 hardcode_libdir_flag_spec_CXX \
25737 hardcode_libdir_flag_spec_ld_CXX \
25738 hardcode_libdir_separator_CXX \
25739 exclude_expsyms_CXX \
25740 include_expsyms_CXX \
25741 file_list_spec_CXX \
25742 compiler_lib_search_dirs_CXX \
25743 predep_objects_CXX \
25744 postdep_objects_CXX \
25745 predeps_CXX \
25746 postdeps_CXX \
25747 compiler_lib_search_path_CXX; do
25748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25749 *[\\\\\\\`\\"\\\$]*)
25750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25751 ;;
25752 *)
25753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25754 ;;
25755 esac
25756 done
25757
25758 # Double-quote double-evaled strings.
25759 for var in reload_cmds \
25760 old_postinstall_cmds \
25761 old_postuninstall_cmds \
25762 old_archive_cmds \
25763 extract_expsyms_cmds \
25764 old_archive_from_new_cmds \
25765 old_archive_from_expsyms_cmds \
25766 archive_cmds \
25767 archive_expsym_cmds \
25768 module_cmds \
25769 module_expsym_cmds \
25770 export_symbols_cmds \
25771 prelink_cmds \
25772 postlink_cmds \
25773 postinstall_cmds \
25774 postuninstall_cmds \
25775 finish_cmds \
25776 sys_lib_search_path_spec \
25777 sys_lib_dlsearch_path_spec \
25778 reload_cmds_CXX \
25779 old_archive_cmds_CXX \
25780 old_archive_from_new_cmds_CXX \
25781 old_archive_from_expsyms_cmds_CXX \
25782 archive_cmds_CXX \
25783 archive_expsym_cmds_CXX \
25784 module_cmds_CXX \
25785 module_expsym_cmds_CXX \
25786 export_symbols_cmds_CXX \
25787 prelink_cmds_CXX \
25788 postlink_cmds_CXX; do
25789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25790 *[\\\\\\\`\\"\\\$]*)
25791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25792 ;;
25793 *)
25794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25795 ;;
25796 esac
25797 done
25798
25799 ac_aux_dir='$ac_aux_dir'
25800 xsi_shell='$xsi_shell'
25801 lt_shell_append='$lt_shell_append'
25802
25803 # See if we are running on zsh, and set the options which allow our
25804 # commands through without removal of \ escapes INIT.
25805 if test -n "\${ZSH_VERSION+set}" ; then
25806 setopt NO_GLOB_SUBST
25807 fi
25808
25809
25810 PACKAGE='$PACKAGE'
25811 VERSION='$VERSION'
25812 TIMESTAMP='$TIMESTAMP'
25813 RM='$RM'
25814 ofile='$ofile'
25815
25816
25817
25818
25819
25820
25821 _ACEOF
25822
25823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25824
25825 # Handling of arguments.
25826 for ac_config_target in $ac_config_targets
25827 do
25828 case $ac_config_target in
25829 "db_config.h") CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
25830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25831 "$CREATE_LIST") CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
25832
25833 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25834 esac
25835 done
25836
25837
25838 # If the user did not use the arguments to specify the items to instantiate,
25839 # then the envvar interface is used. Set only those that are not.
25840 # We use the long form for the default assignment because of an extremely
25841 # bizarre bug on SunOS 4.1.3.
25842 if $ac_need_defaults; then
25843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25846 fi
25847
25848 # Have a temporary directory for convenience. Make it in the build tree
25849 # simply because there is no reason against having it here, and in addition,
25850 # creating and moving files from /tmp can sometimes cause problems.
25851 # Hook for its removal unless debugging.
25852 # Note that there is a small window in which the directory will not be cleaned:
25853 # after its creation but before its name has been assigned to `$tmp'.
25854 $debug ||
25855 {
25856 tmp= ac_tmp=
25857 trap 'exit_status=$?
25858 : "${ac_tmp:=$tmp}"
25859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25860 ' 0
25861 trap 'as_fn_exit 1' 1 2 13 15
25862 }
25863 # Create a (secure) tmp directory for tmp files.
25864
25865 {
25866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25867 test -d "$tmp"
25868 } ||
25869 {
25870 tmp=./conf$$-$RANDOM
25871 (umask 077 && mkdir "$tmp")
25872 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25873 ac_tmp=$tmp
25874
25875 # Set up the scripts for CONFIG_FILES section.
25876 # No need to generate them if there are no CONFIG_FILES.
25877 # This happens for instance with `./config.status config.h'.
25878 if test -n "$CONFIG_FILES"; then
25879
25880
25881 ac_cr=`echo X | tr X '\015'`
25882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25883 # But we know of no other shell where ac_cr would be empty at this
25884 # point, so we can use a bashism as a fallback.
25885 if test "x$ac_cr" = x; then
25886 eval ac_cr=\$\'\\r\'
25887 fi
25888 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25890 ac_cs_awk_cr='\\r'
25891 else
25892 ac_cs_awk_cr=$ac_cr
25893 fi
25894
25895 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25896 _ACEOF
25897
25898
25899 {
25900 echo "cat >conf$$subs.awk <<_ACEOF" &&
25901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25902 echo "_ACEOF"
25903 } >conf$$subs.sh ||
25904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25906 ac_delim='%!_!# '
25907 for ac_last_try in false false false false false :; do
25908 . ./conf$$subs.sh ||
25909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25910
25911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25912 if test $ac_delim_n = $ac_delim_num; then
25913 break
25914 elif $ac_last_try; then
25915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25916 else
25917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25918 fi
25919 done
25920 rm -f conf$$subs.sh
25921
25922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25923 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25924 _ACEOF
25925 sed -n '
25926 h
25927 s/^/S["/; s/!.*/"]=/
25928 p
25929 g
25930 s/^[^!]*!//
25931 :repl
25932 t repl
25933 s/'"$ac_delim"'$//
25934 t delim
25935 :nl
25936 h
25937 s/\(.\{148\}\)..*/\1/
25938 t more1
25939 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25940 p
25941 n
25942 b repl
25943 :more1
25944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25945 p
25946 g
25947 s/.\{148\}//
25948 t nl
25949 :delim
25950 h
25951 s/\(.\{148\}\)..*/\1/
25952 t more2
25953 s/["\\]/\\&/g; s/^/"/; s/$/"/
25954 p
25955 b
25956 :more2
25957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25958 p
25959 g
25960 s/.\{148\}//
25961 t delim
25962 ' <conf$$subs.awk | sed '
25963 /^[^""]/{
25964 N
25965 s/\n//
25966 }
25967 ' >>$CONFIG_STATUS || ac_write_fail=1
25968 rm -f conf$$subs.awk
25969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25970 _ACAWK
25971 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25972 for (key in S) S_is_set[key] = 1
25973 FS = ""
25974
25975 }
25976 {
25977 line = $ 0
25978 nfields = split(line, field, "@")
25979 substed = 0
25980 len = length(field[1])
25981 for (i = 2; i < nfields; i++) {
25982 key = field[i]
25983 keylen = length(key)
25984 if (S_is_set[key]) {
25985 value = S[key]
25986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25987 len += length(value) + length(field[++i])
25988 substed = 1
25989 } else
25990 len += 1 + keylen
25991 }
25992
25993 print line
25994 }
25995
25996 _ACAWK
25997 _ACEOF
25998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25999 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26001 else
26002 cat
26003 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26005 _ACEOF
26006
26007 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26008 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26009 # trailing colons and then remove the whole line if VPATH becomes empty
26010 # (actually we leave an empty line to preserve line numbers).
26011 if test "x$srcdir" = x.; then
26012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26013 h
26014 s///
26015 s/^/:/
26016 s/[ ]*$/:/
26017 s/:\$(srcdir):/:/g
26018 s/:\${srcdir}:/:/g
26019 s/:@srcdir@:/:/g
26020 s/^:*//
26021 s/:*$//
26022 x
26023 s/\(=[ ]*\).*/\1/
26024 G
26025 s/\n//
26026 s/^[^=]*=[ ]*$//
26027 }'
26028 fi
26029
26030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26031 fi # test -n "$CONFIG_FILES"
26032
26033 # Set up the scripts for CONFIG_HEADERS section.
26034 # No need to generate them if there are no CONFIG_HEADERS.
26035 # This happens for instance with `./config.status Makefile'.
26036 if test -n "$CONFIG_HEADERS"; then
26037 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26038 BEGIN {
26039 _ACEOF
26040
26041 # Transform confdefs.h into an awk script `defines.awk', embedded as
26042 # here-document in config.status, that substitutes the proper values into
26043 # config.h.in to produce config.h.
26044
26045 # Create a delimiter string that does not exist in confdefs.h, to ease
26046 # handling of long lines.
26047 ac_delim='%!_!# '
26048 for ac_last_try in false false :; do
26049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26050 if test -z "$ac_tt"; then
26051 break
26052 elif $ac_last_try; then
26053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26054 else
26055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26056 fi
26057 done
26058
26059 # For the awk script, D is an array of macro values keyed by name,
26060 # likewise P contains macro parameters if any. Preserve backslash
26061 # newline sequences.
26062
26063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26064 sed -n '
26065 s/.\{148\}/&'"$ac_delim"'/g
26066 t rset
26067 :rset
26068 s/^[ ]*#[ ]*define[ ][ ]*/ /
26069 t def
26070 d
26071 :def
26072 s/\\$//
26073 t bsnl
26074 s/["\\]/\\&/g
26075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26076 D["\1"]=" \3"/p
26077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26078 d
26079 :bsnl
26080 s/["\\]/\\&/g
26081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26082 D["\1"]=" \3\\\\\\n"\\/p
26083 t cont
26084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26085 t cont
26086 d
26087 :cont
26088 n
26089 s/.\{148\}/&'"$ac_delim"'/g
26090 t clear
26091 :clear
26092 s/\\$//
26093 t bsnlc
26094 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26095 d
26096 :bsnlc
26097 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26098 b cont
26099 ' <confdefs.h | sed '
26100 s/'"$ac_delim"'/"\\\
26101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26102
26103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26104 for (key in D) D_is_set[key] = 1
26105 FS = ""
26106 }
26107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26108 line = \$ 0
26109 split(line, arg, " ")
26110 if (arg[1] == "#") {
26111 defundef = arg[2]
26112 mac1 = arg[3]
26113 } else {
26114 defundef = substr(arg[1], 2)
26115 mac1 = arg[2]
26116 }
26117 split(mac1, mac2, "(") #)
26118 macro = mac2[1]
26119 prefix = substr(line, 1, index(line, defundef) - 1)
26120 if (D_is_set[macro]) {
26121 # Preserve the white space surrounding the "#".
26122 print prefix "define", macro P[macro] D[macro]
26123 next
26124 } else {
26125 # Replace #undef with comments. This is necessary, for example,
26126 # in the case of _POSIX_SOURCE, which is predefined and required
26127 # on some systems where configure will not decide to define it.
26128 if (defundef == "undef") {
26129 print "/*", prefix defundef, macro, "*/"
26130 next
26131 }
26132 }
26133 }
26134 { print }
26135 _ACAWK
26136 _ACEOF
26137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26139 fi # test -n "$CONFIG_HEADERS"
26140
26141
26142 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26143 shift
26144 for ac_tag
26145 do
26146 case $ac_tag in
26147 :[FHLC]) ac_mode=$ac_tag; continue;;
26148 esac
26149 case $ac_mode$ac_tag in
26150 :[FHL]*:*);;
26151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26152 :[FH]-) ac_tag=-:-;;
26153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26154 esac
26155 ac_save_IFS=$IFS
26156 IFS=:
26157 set x $ac_tag
26158 IFS=$ac_save_IFS
26159 shift
26160 ac_file=$1
26161 shift
26162
26163 case $ac_mode in
26164 :L) ac_source=$1;;
26165 :[FH])
26166 ac_file_inputs=
26167 for ac_f
26168 do
26169 case $ac_f in
26170 -) ac_f="$ac_tmp/stdin";;
26171 *) # Look for the file first in the build tree, then in the source tree
26172 # (if the path is not absolute). The absolute path cannot be DOS-style,
26173 # because $ac_f cannot contain `:'.
26174 test -f "$ac_f" ||
26175 case $ac_f in
26176 [\\/$]*) false;;
26177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26178 esac ||
26179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26180 esac
26181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26182 as_fn_append ac_file_inputs " '$ac_f'"
26183 done
26184
26185 # Let's still pretend it is `configure' which instantiates (i.e., don't
26186 # use $as_me), people would be surprised to read:
26187 # /* config.h. Generated by config.status. */
26188 configure_input='Generated from '`
26189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26190 `' by configure.'
26191 if test x"$ac_file" != x-; then
26192 configure_input="$ac_file. $configure_input"
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26194 $as_echo "$as_me: creating $ac_file" >&6;}
26195 fi
26196 # Neutralize special characters interpreted by sed in replacement strings.
26197 case $configure_input in #(
26198 *\&* | *\|* | *\\* )
26199 ac_sed_conf_input=`$as_echo "$configure_input" |
26200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26201 *) ac_sed_conf_input=$configure_input;;
26202 esac
26203
26204 case $ac_tag in
26205 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26207 esac
26208 ;;
26209 esac
26210
26211 ac_dir=`$as_dirname -- "$ac_file" ||
26212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26213 X"$ac_file" : 'X\(//\)[^/]' \| \
26214 X"$ac_file" : 'X\(//\)$' \| \
26215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26216 $as_echo X"$ac_file" |
26217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26218 s//\1/
26219 q
26220 }
26221 /^X\(\/\/\)[^/].*/{
26222 s//\1/
26223 q
26224 }
26225 /^X\(\/\/\)$/{
26226 s//\1/
26227 q
26228 }
26229 /^X\(\/\).*/{
26230 s//\1/
26231 q
26232 }
26233 s/.*/./; q'`
26234 as_dir="$ac_dir"; as_fn_mkdir_p
26235 ac_builddir=.
26236
26237 case "$ac_dir" in
26238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26239 *)
26240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26241 # A ".." for each directory in $ac_dir_suffix.
26242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26243 case $ac_top_builddir_sub in
26244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26246 esac ;;
26247 esac
26248 ac_abs_top_builddir=$ac_pwd
26249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26250 # for backward compatibility:
26251 ac_top_builddir=$ac_top_build_prefix
26252
26253 case $srcdir in
26254 .) # We are building in place.
26255 ac_srcdir=.
26256 ac_top_srcdir=$ac_top_builddir_sub
26257 ac_abs_top_srcdir=$ac_pwd ;;
26258 [\\/]* | ?:[\\/]* ) # Absolute name.
26259 ac_srcdir=$srcdir$ac_dir_suffix;
26260 ac_top_srcdir=$srcdir
26261 ac_abs_top_srcdir=$srcdir ;;
26262 *) # Relative name.
26263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26264 ac_top_srcdir=$ac_top_build_prefix$srcdir
26265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26266 esac
26267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26268
26269
26270 case $ac_mode in
26271 :F)
26272 #
26273 # CONFIG_FILE
26274 #
26275
26276 case $INSTALL in
26277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26279 esac
26280 _ACEOF
26281
26282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26283 # If the template does not know about datarootdir, expand it.
26284 # FIXME: This hack should be removed a few years after 2.60.
26285 ac_datarootdir_hack=; ac_datarootdir_seen=
26286 ac_sed_dataroot='
26287 /datarootdir/ {
26288 p
26289 q
26290 }
26291 /@datadir@/p
26292 /@docdir@/p
26293 /@infodir@/p
26294 /@localedir@/p
26295 /@mandir@/p'
26296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26297 *datarootdir*) ac_datarootdir_seen=yes;;
26298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26301 _ACEOF
26302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26303 ac_datarootdir_hack='
26304 s&@datadir@&$datadir&g
26305 s&@docdir@&$docdir&g
26306 s&@infodir@&$infodir&g
26307 s&@localedir@&$localedir&g
26308 s&@mandir@&$mandir&g
26309 s&\\\${datarootdir}&$datarootdir&g' ;;
26310 esac
26311 _ACEOF
26312
26313 # Neutralize VPATH when `$srcdir' = `.'.
26314 # Shell code in configure.ac might set extrasub.
26315 # FIXME: do we really want to maintain this feature?
26316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26317 ac_sed_extra="$ac_vpsub
26318 $extrasub
26319 _ACEOF
26320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26321 :t
26322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26323 s|@configure_input@|$ac_sed_conf_input|;t t
26324 s&@top_builddir@&$ac_top_builddir_sub&;t t
26325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26326 s&@srcdir@&$ac_srcdir&;t t
26327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26328 s&@top_srcdir@&$ac_top_srcdir&;t t
26329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26330 s&@builddir@&$ac_builddir&;t t
26331 s&@abs_builddir@&$ac_abs_builddir&;t t
26332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26333 s&@INSTALL@&$ac_INSTALL&;t t
26334 $ac_datarootdir_hack
26335 "
26336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26338
26339 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26342 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26344 which seems to be undefined. Please make sure it is defined" >&5
26345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26346 which seems to be undefined. Please make sure it is defined" >&2;}
26347
26348 rm -f "$ac_tmp/stdin"
26349 case $ac_file in
26350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26352 esac \
26353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26354 ;;
26355 :H)
26356 #
26357 # CONFIG_HEADER
26358 #
26359 if test x"$ac_file" != x-; then
26360 {
26361 $as_echo "/* $configure_input */" \
26362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26363 } >"$ac_tmp/config.h" \
26364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26367 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26368 else
26369 rm -f "$ac_file"
26370 mv "$ac_tmp/config.h" "$ac_file" \
26371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26372 fi
26373 else
26374 $as_echo "/* $configure_input */" \
26375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26376 || as_fn_error $? "could not create -" "$LINENO" 5
26377 fi
26378 ;;
26379
26380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26381 $as_echo "$as_me: executing $ac_file commands" >&6;}
26382 ;;
26383 esac
26384
26385
26386 case $ac_file$ac_mode in
26387 "libtool":C)
26388
26389 # See if we are running on zsh, and set the options which allow our
26390 # commands through without removal of \ escapes.
26391 if test -n "${ZSH_VERSION+set}" ; then
26392 setopt NO_GLOB_SUBST
26393 fi
26394
26395 cfgfile="${ofile}T"
26396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26397 $RM "$cfgfile"
26398
26399 cat <<_LT_EOF >> "$cfgfile"
26400 #! $SHELL
26401
26402 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26403 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26406 #
26407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26408 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
26409 # Inc.
26410 # Written by Gordon Matzigkeit, 1996
26411 #
26412 # This file is part of GNU Libtool.
26413 #
26414 # GNU Libtool is free software; you can redistribute it and/or
26415 # modify it under the terms of the GNU General Public License as
26416 # published by the Free Software Foundation; either version 2 of
26417 # the License, or (at your option) any later version.
26418 #
26419 # As a special exception to the GNU General Public License,
26420 # if you distribute this file as part of a program or library that
26421 # is built using GNU Libtool, you may include this file under the
26422 # same distribution terms that you use for the rest of that program.
26423 #
26424 # GNU Libtool is distributed in the hope that it will be useful,
26425 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26426 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26427 # GNU General Public License for more details.
26428 #
26429 # You should have received a copy of the GNU General Public License
26430 # along with GNU Libtool; see the file COPYING. If not, a copy
26431 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26432 # obtained by writing to the Free Software Foundation, Inc.,
26433 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26434
26435
26436 # The names of the tagged configurations supported by this script.
26437 available_tags="CXX "
26438
26439 # ### BEGIN LIBTOOL CONFIG
26440
26441 # Which release of libtool.m4 was used?
26442 macro_version=$macro_version
26443 macro_revision=$macro_revision
26444
26445 # Whether or not to build shared libraries.
26446 build_libtool_libs=$enable_shared
26447
26448 # Whether or not to build static libraries.
26449 build_old_libs=$enable_static
26450
26451 # What type of objects to build.
26452 pic_mode=$pic_mode
26453
26454 # Whether or not to optimize for fast installation.
26455 fast_install=$enable_fast_install
26456
26457 # Shell to use when invoking shell scripts.
26458 SHELL=$lt_SHELL
26459
26460 # An echo program that protects backslashes.
26461 ECHO=$lt_ECHO
26462
26463 # The host system.
26464 host_alias=$host_alias
26465 host=$host
26466 host_os=$host_os
26467
26468 # The build system.
26469 build_alias=$build_alias
26470 build=$build
26471 build_os=$build_os
26472
26473 # A sed program that does not truncate output.
26474 SED=$lt_SED
26475
26476 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26477 Xsed="\$SED -e 1s/^X//"
26478
26479 # A grep program that handles long lines.
26480 GREP=$lt_GREP
26481
26482 # An ERE matcher.
26483 EGREP=$lt_EGREP
26484
26485 # A literal string matcher.
26486 FGREP=$lt_FGREP
26487
26488 # A BSD- or MS-compatible name lister.
26489 NM=$lt_NM
26490
26491 # Whether we need soft or hard links.
26492 LN_S=$lt_LN_S
26493
26494 # What is the maximum length of a command?
26495 max_cmd_len=$max_cmd_len
26496
26497 # Object file suffix (normally "o").
26498 objext=$ac_objext
26499
26500 # Executable file suffix (normally "").
26501 exeext=$exeext
26502
26503 # whether the shell understands "unset".
26504 lt_unset=$lt_unset
26505
26506 # turn spaces into newlines.
26507 SP2NL=$lt_lt_SP2NL
26508
26509 # turn newlines into spaces.
26510 NL2SP=$lt_lt_NL2SP
26511
26512 # convert \$build file names to \$host format.
26513 to_host_file_cmd=$lt_cv_to_host_file_cmd
26514
26515 # convert \$build files to toolchain format.
26516 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26517
26518 # An object symbol dumper.
26519 OBJDUMP=$lt_OBJDUMP
26520
26521 # Method to check whether dependent libraries are shared objects.
26522 deplibs_check_method=$lt_deplibs_check_method
26523
26524 # Command to use when deplibs_check_method = "file_magic".
26525 file_magic_cmd=$lt_file_magic_cmd
26526
26527 # How to find potential files when deplibs_check_method = "file_magic".
26528 file_magic_glob=$lt_file_magic_glob
26529
26530 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26531 want_nocaseglob=$lt_want_nocaseglob
26532
26533 # DLL creation program.
26534 DLLTOOL=$lt_DLLTOOL
26535
26536 # Command to associate shared and link libraries.
26537 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26538
26539 # The archiver.
26540 AR=$lt_AR
26541
26542 # Flags to create an archive.
26543 AR_FLAGS=$lt_AR_FLAGS
26544
26545 # How to feed a file listing to the archiver.
26546 archiver_list_spec=$lt_archiver_list_spec
26547
26548 # A symbol stripping program.
26549 STRIP=$lt_STRIP
26550
26551 # Commands used to install an old-style archive.
26552 RANLIB=$lt_RANLIB
26553 old_postinstall_cmds=$lt_old_postinstall_cmds
26554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26555
26556 # Whether to use a lock for old archive extraction.
26557 lock_old_archive_extraction=$lock_old_archive_extraction
26558
26559 # A C compiler.
26560 LTCC=$lt_CC
26561
26562 # LTCC compiler flags.
26563 LTCFLAGS=$lt_CFLAGS
26564
26565 # Take the output of nm and produce a listing of raw symbols and C names.
26566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26567
26568 # Transform the output of nm in a proper C declaration.
26569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26570
26571 # Transform the output of nm in a C name address pair.
26572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26573
26574 # Transform the output of nm in a C name address pair when lib prefix is needed.
26575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26576
26577 # Specify filename containing input files for \$NM.
26578 nm_file_list_spec=$lt_nm_file_list_spec
26579
26580 # The root where to search for dependent libraries,and in which our libraries should be installed.
26581 lt_sysroot=$lt_sysroot
26582
26583 # The name of the directory that contains temporary libtool files.
26584 objdir=$objdir
26585
26586 # Used to examine libraries when file_magic_cmd begins with "file".
26587 MAGIC_CMD=$MAGIC_CMD
26588
26589 # Must we lock files when doing compilation?
26590 need_locks=$lt_need_locks
26591
26592 # Manifest tool.
26593 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26594
26595 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26596 DSYMUTIL=$lt_DSYMUTIL
26597
26598 # Tool to change global to local symbols on Mac OS X.
26599 NMEDIT=$lt_NMEDIT
26600
26601 # Tool to manipulate fat objects and archives on Mac OS X.
26602 LIPO=$lt_LIPO
26603
26604 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26605 OTOOL=$lt_OTOOL
26606
26607 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26608 OTOOL64=$lt_OTOOL64
26609
26610 # Old archive suffix (normally "a").
26611 libext=$libext
26612
26613 # Shared library suffix (normally ".so").
26614 shrext_cmds=$lt_shrext_cmds
26615
26616 # The commands to extract the exported symbol list from a shared archive.
26617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26618
26619 # Variables whose values should be saved in libtool wrapper scripts and
26620 # restored at link time.
26621 variables_saved_for_relink=$lt_variables_saved_for_relink
26622
26623 # Do we need the "lib" prefix for modules?
26624 need_lib_prefix=$need_lib_prefix
26625
26626 # Do we need a version for libraries?
26627 need_version=$need_version
26628
26629 # Library versioning type.
26630 version_type=$version_type
26631
26632 # Shared library runtime path variable.
26633 runpath_var=$runpath_var
26634
26635 # Shared library path variable.
26636 shlibpath_var=$shlibpath_var
26637
26638 # Is shlibpath searched before the hard-coded library search path?
26639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26640
26641 # Format of library name prefix.
26642 libname_spec=$lt_libname_spec
26643
26644 # List of archive names. First name is the real one, the rest are links.
26645 # The last name is the one that the linker finds with -lNAME
26646 library_names_spec=$lt_library_names_spec
26647
26648 # The coded name of the library, if different from the real name.
26649 soname_spec=$lt_soname_spec
26650
26651 # Permission mode override for installation of shared libraries.
26652 install_override_mode=$lt_install_override_mode
26653
26654 # Command to use after installation of a shared archive.
26655 postinstall_cmds=$lt_postinstall_cmds
26656
26657 # Command to use after uninstallation of a shared archive.
26658 postuninstall_cmds=$lt_postuninstall_cmds
26659
26660 # Commands used to finish a libtool library installation in a directory.
26661 finish_cmds=$lt_finish_cmds
26662
26663 # As "finish_cmds", except a single script fragment to be evaled but
26664 # not shown.
26665 finish_eval=$lt_finish_eval
26666
26667 # Whether we should hardcode library paths into libraries.
26668 hardcode_into_libs=$hardcode_into_libs
26669
26670 # Compile-time system search path for libraries.
26671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26672
26673 # Run-time system search path for libraries.
26674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26675
26676 # Whether dlopen is supported.
26677 dlopen_support=$enable_dlopen
26678
26679 # Whether dlopen of programs is supported.
26680 dlopen_self=$enable_dlopen_self
26681
26682 # Whether dlopen of statically linked programs is supported.
26683 dlopen_self_static=$enable_dlopen_self_static
26684
26685 # Commands to strip libraries.
26686 old_striplib=$lt_old_striplib
26687 striplib=$lt_striplib
26688
26689
26690 # The linker used to build libraries.
26691 LD=$lt_LD
26692
26693 # How to create reloadable object files.
26694 reload_flag=$lt_reload_flag
26695 reload_cmds=$lt_reload_cmds
26696
26697 # Commands used to build an old-style archive.
26698 old_archive_cmds=$lt_old_archive_cmds
26699
26700 # A language specific compiler.
26701 CC=$lt_compiler
26702
26703 # Is the compiler the GNU compiler?
26704 with_gcc=$GCC
26705
26706 # Compiler flag to turn off builtin functions.
26707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26708
26709 # Additional compiler flags for building library objects.
26710 pic_flag=$lt_lt_prog_compiler_pic
26711
26712 # How to pass a linker flag through the compiler.
26713 wl=$lt_lt_prog_compiler_wl
26714
26715 # Compiler flag to prevent dynamic linking.
26716 link_static_flag=$lt_lt_prog_compiler_static
26717
26718 # Does compiler simultaneously support -c and -o options?
26719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26720
26721 # Whether or not to add -lc for building shared libraries.
26722 build_libtool_need_lc=$archive_cmds_need_lc
26723
26724 # Whether or not to disallow shared libs when runtime libs are static.
26725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26726
26727 # Compiler flag to allow reflexive dlopens.
26728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26729
26730 # Compiler flag to generate shared objects directly from archives.
26731 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26732
26733 # Whether the compiler copes with passing no objects directly.
26734 compiler_needs_object=$lt_compiler_needs_object
26735
26736 # Create an old-style archive from a shared archive.
26737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26738
26739 # Create a temporary old-style archive to link instead of a shared archive.
26740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26741
26742 # Commands used to build a shared archive.
26743 archive_cmds=$lt_archive_cmds
26744 archive_expsym_cmds=$lt_archive_expsym_cmds
26745
26746 # Commands used to build a loadable module if different from building
26747 # a shared archive.
26748 module_cmds=$lt_module_cmds
26749 module_expsym_cmds=$lt_module_expsym_cmds
26750
26751 # Whether we are building with GNU ld or not.
26752 with_gnu_ld=$lt_with_gnu_ld
26753
26754 # Flag that allows shared libraries with undefined symbols to be built.
26755 allow_undefined_flag=$lt_allow_undefined_flag
26756
26757 # Flag that enforces no undefined symbols.
26758 no_undefined_flag=$lt_no_undefined_flag
26759
26760 # Flag to hardcode \$libdir into a binary during linking.
26761 # This must work even if \$libdir does not exist
26762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26763
26764 # If ld is used when linking, flag to hardcode \$libdir into a binary
26765 # during linking. This must work even if \$libdir does not exist.
26766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26767
26768 # Whether we need a single "-rpath" flag with a separated argument.
26769 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26770
26771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26772 # DIR into the resulting binary.
26773 hardcode_direct=$hardcode_direct
26774
26775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26776 # DIR into the resulting binary and the resulting library dependency is
26777 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26778 # library is relocated.
26779 hardcode_direct_absolute=$hardcode_direct_absolute
26780
26781 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26782 # into the resulting binary.
26783 hardcode_minus_L=$hardcode_minus_L
26784
26785 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26786 # into the resulting binary.
26787 hardcode_shlibpath_var=$hardcode_shlibpath_var
26788
26789 # Set to "yes" if building a shared library automatically hardcodes DIR
26790 # into the library and all subsequent libraries and executables linked
26791 # against it.
26792 hardcode_automatic=$hardcode_automatic
26793
26794 # Set to yes if linker adds runtime paths of dependent libraries
26795 # to runtime path list.
26796 inherit_rpath=$inherit_rpath
26797
26798 # Whether libtool must link a program against all its dependency libraries.
26799 link_all_deplibs=$link_all_deplibs
26800
26801 # Set to "yes" if exported symbols are required.
26802 always_export_symbols=$always_export_symbols
26803
26804 # The commands to list exported symbols.
26805 export_symbols_cmds=$lt_export_symbols_cmds
26806
26807 # Symbols that should not be listed in the preloaded symbols.
26808 exclude_expsyms=$lt_exclude_expsyms
26809
26810 # Symbols that must always be exported.
26811 include_expsyms=$lt_include_expsyms
26812
26813 # Commands necessary for linking programs (against libraries) with templates.
26814 prelink_cmds=$lt_prelink_cmds
26815
26816 # Commands necessary for finishing linking programs.
26817 postlink_cmds=$lt_postlink_cmds
26818
26819 # Specify filename containing input files.
26820 file_list_spec=$lt_file_list_spec
26821
26822 # How to hardcode a shared library path into an executable.
26823 hardcode_action=$hardcode_action
26824
26825 # The directories searched by this compiler when creating a shared library.
26826 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26827
26828 # Dependencies to place before and after the objects being linked to
26829 # create a shared library.
26830 predep_objects=$lt_predep_objects
26831 postdep_objects=$lt_postdep_objects
26832 predeps=$lt_predeps
26833 postdeps=$lt_postdeps
26834
26835 # The library search path used internally by the compiler when linking
26836 # a shared library.
26837 compiler_lib_search_path=$lt_compiler_lib_search_path
26838
26839 # ### END LIBTOOL CONFIG
26840
26841 _LT_EOF
26842
26843 case $host_os in
26844 aix3*)
26845 cat <<\_LT_EOF >> "$cfgfile"
26846 # AIX sometimes has problems with the GCC collect2 program. For some
26847 # reason, if we set the COLLECT_NAMES environment variable, the problems
26848 # vanish in a puff of smoke.
26849 if test "X${COLLECT_NAMES+set}" != Xset; then
26850 COLLECT_NAMES=
26851 export COLLECT_NAMES
26852 fi
26853 _LT_EOF
26854 ;;
26855 esac
26856
26857
26858 ltmain="$ac_aux_dir/ltmain.sh"
26859
26860
26861 # We use sed instead of cat because bash on DJGPP gets confused if
26862 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26863 # text mode, it properly converts lines to CR/LF. This bash problem
26864 # is reportedly fixed, but why not run on old versions too?
26865 sed '$q' "$ltmain" >> "$cfgfile" \
26866 || (rm -f "$cfgfile"; exit 1)
26867
26868 if test x"$xsi_shell" = xyes; then
26869 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26870 func_dirname ()\
26871 {\
26872 \ case ${1} in\
26873 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26874 \ * ) func_dirname_result="${3}" ;;\
26875 \ esac\
26876 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26877 && mv -f "$cfgfile.tmp" "$cfgfile" \
26878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26879 test 0 -eq $? || _lt_function_replace_fail=:
26880
26881
26882 sed -e '/^func_basename ()$/,/^} # func_basename /c\
26883 func_basename ()\
26884 {\
26885 \ func_basename_result="${1##*/}"\
26886 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26887 && mv -f "$cfgfile.tmp" "$cfgfile" \
26888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26889 test 0 -eq $? || _lt_function_replace_fail=:
26890
26891
26892 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26893 func_dirname_and_basename ()\
26894 {\
26895 \ case ${1} in\
26896 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26897 \ * ) func_dirname_result="${3}" ;;\
26898 \ esac\
26899 \ func_basename_result="${1##*/}"\
26900 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
26901 && mv -f "$cfgfile.tmp" "$cfgfile" \
26902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26903 test 0 -eq $? || _lt_function_replace_fail=:
26904
26905
26906 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
26907 func_stripname ()\
26908 {\
26909 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
26910 \ # positional parameters, so assign one to ordinary parameter first.\
26911 \ func_stripname_result=${3}\
26912 \ func_stripname_result=${func_stripname_result#"${1}"}\
26913 \ func_stripname_result=${func_stripname_result%"${2}"}\
26914 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
26915 && mv -f "$cfgfile.tmp" "$cfgfile" \
26916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26917 test 0 -eq $? || _lt_function_replace_fail=:
26918
26919
26920 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
26921 func_split_long_opt ()\
26922 {\
26923 \ func_split_long_opt_name=${1%%=*}\
26924 \ func_split_long_opt_arg=${1#*=}\
26925 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
26926 && mv -f "$cfgfile.tmp" "$cfgfile" \
26927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26928 test 0 -eq $? || _lt_function_replace_fail=:
26929
26930
26931 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
26932 func_split_short_opt ()\
26933 {\
26934 \ func_split_short_opt_arg=${1#??}\
26935 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
26936 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
26937 && mv -f "$cfgfile.tmp" "$cfgfile" \
26938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26939 test 0 -eq $? || _lt_function_replace_fail=:
26940
26941
26942 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
26943 func_lo2o ()\
26944 {\
26945 \ case ${1} in\
26946 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
26947 \ *) func_lo2o_result=${1} ;;\
26948 \ esac\
26949 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
26950 && mv -f "$cfgfile.tmp" "$cfgfile" \
26951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26952 test 0 -eq $? || _lt_function_replace_fail=:
26953
26954
26955 sed -e '/^func_xform ()$/,/^} # func_xform /c\
26956 func_xform ()\
26957 {\
26958 func_xform_result=${1%.*}.lo\
26959 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
26960 && mv -f "$cfgfile.tmp" "$cfgfile" \
26961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26962 test 0 -eq $? || _lt_function_replace_fail=:
26963
26964
26965 sed -e '/^func_arith ()$/,/^} # func_arith /c\
26966 func_arith ()\
26967 {\
26968 func_arith_result=$(( $* ))\
26969 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
26970 && mv -f "$cfgfile.tmp" "$cfgfile" \
26971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26972 test 0 -eq $? || _lt_function_replace_fail=:
26973
26974
26975 sed -e '/^func_len ()$/,/^} # func_len /c\
26976 func_len ()\
26977 {\
26978 func_len_result=${#1}\
26979 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
26980 && mv -f "$cfgfile.tmp" "$cfgfile" \
26981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26982 test 0 -eq $? || _lt_function_replace_fail=:
26983
26984 fi
26985
26986 if test x"$lt_shell_append" = xyes; then
26987 sed -e '/^func_append ()$/,/^} # func_append /c\
26988 func_append ()\
26989 {\
26990 eval "${1}+=\\${2}"\
26991 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
26992 && mv -f "$cfgfile.tmp" "$cfgfile" \
26993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26994 test 0 -eq $? || _lt_function_replace_fail=:
26995
26996
26997 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
26998 func_append_quoted ()\
26999 {\
27000 \ func_quote_for_eval "${2}"\
27001 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27002 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27003 && mv -f "$cfgfile.tmp" "$cfgfile" \
27004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27005 test 0 -eq $? || _lt_function_replace_fail=:
27006
27007
27008 # Save a `func_append' function call where possible by direct use of '+='
27009 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27010 && mv -f "$cfgfile.tmp" "$cfgfile" \
27011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27012 test 0 -eq $? || _lt_function_replace_fail=:
27013 else
27014 # Save a `func_append' function call even when '+=' is not available
27015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27016 && mv -f "$cfgfile.tmp" "$cfgfile" \
27017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27018 test 0 -eq $? || _lt_function_replace_fail=:
27019 fi
27020
27021 if test x"$_lt_function_replace_fail" = x":"; then
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27023 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27024 fi
27025
27026
27027 mv -f "$cfgfile" "$ofile" ||
27028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27029 chmod +x "$ofile"
27030
27031
27032 cat <<_LT_EOF >> "$ofile"
27033
27034 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27035
27036 # The linker used to build libraries.
27037 LD=$lt_LD_CXX
27038
27039 # How to create reloadable object files.
27040 reload_flag=$lt_reload_flag_CXX
27041 reload_cmds=$lt_reload_cmds_CXX
27042
27043 # Commands used to build an old-style archive.
27044 old_archive_cmds=$lt_old_archive_cmds_CXX
27045
27046 # A language specific compiler.
27047 CC=$lt_compiler_CXX
27048
27049 # Is the compiler the GNU compiler?
27050 with_gcc=$GCC_CXX
27051
27052 # Compiler flag to turn off builtin functions.
27053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27054
27055 # Additional compiler flags for building library objects.
27056 pic_flag=$lt_lt_prog_compiler_pic_CXX
27057
27058 # How to pass a linker flag through the compiler.
27059 wl=$lt_lt_prog_compiler_wl_CXX
27060
27061 # Compiler flag to prevent dynamic linking.
27062 link_static_flag=$lt_lt_prog_compiler_static_CXX
27063
27064 # Does compiler simultaneously support -c and -o options?
27065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27066
27067 # Whether or not to add -lc for building shared libraries.
27068 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27069
27070 # Whether or not to disallow shared libs when runtime libs are static.
27071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27072
27073 # Compiler flag to allow reflexive dlopens.
27074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27075
27076 # Compiler flag to generate shared objects directly from archives.
27077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27078
27079 # Whether the compiler copes with passing no objects directly.
27080 compiler_needs_object=$lt_compiler_needs_object_CXX
27081
27082 # Create an old-style archive from a shared archive.
27083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27084
27085 # Create a temporary old-style archive to link instead of a shared archive.
27086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27087
27088 # Commands used to build a shared archive.
27089 archive_cmds=$lt_archive_cmds_CXX
27090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27091
27092 # Commands used to build a loadable module if different from building
27093 # a shared archive.
27094 module_cmds=$lt_module_cmds_CXX
27095 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27096
27097 # Whether we are building with GNU ld or not.
27098 with_gnu_ld=$lt_with_gnu_ld_CXX
27099
27100 # Flag that allows shared libraries with undefined symbols to be built.
27101 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27102
27103 # Flag that enforces no undefined symbols.
27104 no_undefined_flag=$lt_no_undefined_flag_CXX
27105
27106 # Flag to hardcode \$libdir into a binary during linking.
27107 # This must work even if \$libdir does not exist
27108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27109
27110 # If ld is used when linking, flag to hardcode \$libdir into a binary
27111 # during linking. This must work even if \$libdir does not exist.
27112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27113
27114 # Whether we need a single "-rpath" flag with a separated argument.
27115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27116
27117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27118 # DIR into the resulting binary.
27119 hardcode_direct=$hardcode_direct_CXX
27120
27121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27122 # DIR into the resulting binary and the resulting library dependency is
27123 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27124 # library is relocated.
27125 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27126
27127 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27128 # into the resulting binary.
27129 hardcode_minus_L=$hardcode_minus_L_CXX
27130
27131 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27132 # into the resulting binary.
27133 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27134
27135 # Set to "yes" if building a shared library automatically hardcodes DIR
27136 # into the library and all subsequent libraries and executables linked
27137 # against it.
27138 hardcode_automatic=$hardcode_automatic_CXX
27139
27140 # Set to yes if linker adds runtime paths of dependent libraries
27141 # to runtime path list.
27142 inherit_rpath=$inherit_rpath_CXX
27143
27144 # Whether libtool must link a program against all its dependency libraries.
27145 link_all_deplibs=$link_all_deplibs_CXX
27146
27147 # Set to "yes" if exported symbols are required.
27148 always_export_symbols=$always_export_symbols_CXX
27149
27150 # The commands to list exported symbols.
27151 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27152
27153 # Symbols that should not be listed in the preloaded symbols.
27154 exclude_expsyms=$lt_exclude_expsyms_CXX
27155
27156 # Symbols that must always be exported.
27157 include_expsyms=$lt_include_expsyms_CXX
27158
27159 # Commands necessary for linking programs (against libraries) with templates.
27160 prelink_cmds=$lt_prelink_cmds_CXX
27161
27162 # Commands necessary for finishing linking programs.
27163 postlink_cmds=$lt_postlink_cmds_CXX
27164
27165 # Specify filename containing input files.
27166 file_list_spec=$lt_file_list_spec_CXX
27167
27168 # How to hardcode a shared library path into an executable.
27169 hardcode_action=$hardcode_action_CXX
27170
27171 # The directories searched by this compiler when creating a shared library.
27172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27173
27174 # Dependencies to place before and after the objects being linked to
27175 # create a shared library.
27176 predep_objects=$lt_predep_objects_CXX
27177 postdep_objects=$lt_postdep_objects_CXX
27178 predeps=$lt_predeps_CXX
27179 postdeps=$lt_postdeps_CXX
27180
27181 # The library search path used internally by the compiler when linking
27182 # a shared library.
27183 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27184
27185 # ### END LIBTOOL TAG CONFIG: CXX
27186 _LT_EOF
27187
27188 ;;
27189
27190 esac
27191 done # for ac_tag
27192
27193
27194 as_fn_exit 0
27195 _ACEOF
27196 ac_clean_files=$ac_clean_files_save
27197
27198 test $ac_write_fail = 0 ||
27199 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27200
27201
27202 # configure is writing to config.log, and then calls config.status.
27203 # config.status does its own redirection, appending to config.log.
27204 # Unfortunately, on DOS this fails, as config.log is still kept open
27205 # by configure, so config.status won't be able to write to it; its
27206 # output is simply discarded. So we exec the FD to /dev/null,
27207 # effectively closing config.log, so it can be properly (re)opened and
27208 # appended to by config.status. When coming back to configure, we
27209 # need to make the FD available again.
27210 if test "$no_create" != yes; then
27211 ac_cs_success=:
27212 ac_config_status_args=
27213 test "$silent" = yes &&
27214 ac_config_status_args="$ac_config_status_args --quiet"
27215 exec 5>/dev/null
27216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27217 exec 5>>config.log
27218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27219 # would make configure fail if this is the last instruction.
27220 $ac_cs_success || as_fn_exit 1
27221 fi
27222 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27224 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27225 fi
27226
27227
27228 if test "$db_cv_sql" = "yes"; then
27229 # This command runs the configure script from the SQL tree.
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring the SQL API" >&5
27231 $as_echo "$as_me: Configuring the SQL API" >&6;}
27232
27233 # Setup the SQLite debug build.
27234 mkdir -p sql
27235 if test "$with_tclconfig" != "no"; then
27236 db_cv_sql_config_tclconfig="--with-tcl=$with_tclconfig"
27237 else
27238 db_cv_sql_config_tclconfig=
27239 fi
27240
27241 # Whitespace in path names causes libtool to generate an invalid
27242 # dependency_libs line in sql/libsqlite3.la.
27243 # Work around this on cygwin, which commonly has spaces in path names.
27244 case `pwd` in
27245 *\ * | *\ *)
27246 if cygpath -d "$PWD" > /dev/null 2>&1 ; then
27247 cd `cygpath -d "$PWD"`
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Changing current directory to $PWD to hide whitespace from libtool" >&5
27249 $as_echo "$as_me: WARNING: Changing current directory to $PWD to hide whitespace from libtool" >&2;}
27250 else
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Current bugs in libtool may prevent building the SQL API in \"$PWD\"; please use another working directory" >&5
27252 $as_echo "$as_me: WARNING: Current bugs in libtool may prevent building the SQL API in \"$PWD\"; please use another working directory" >&2;}
27253 fi
27254 ;;
27255 esac
27256
27257 # It would be nice to use AC_CONFIG_SUBDIRS here, but it does not allow for
27258 # tweaking of command line options, so hard code things instead.
27259 #
27260 # !!! BEGIN COPIED from autoconf distribution
27261 # Modified to not repeat CPPFLAGS or readline settings
27262
27263 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27264 # so they do not pile up.
27265 ac_sub_configure_args=
27266 ac_prev=
27267 eval "set x $ac_configure_args"
27268 shift
27269 for ac_arg
27270 do
27271 if test -n "$ac_prev"; then
27272 ac_prev=
27273 continue
27274 fi
27275 case $ac_arg in
27276 -cache-file | --cache-file | --cache-fil | --cache-fi \
27277 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27278 ac_prev=cache_file ;;
27279 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27280 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27281 | --c=*)
27282 ;;
27283 --config-cache | -C)
27284 ;;
27285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27286 ac_prev=srcdir ;;
27287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27288 ;;
27289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27290 ac_prev=prefix ;;
27291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27292 ;;
27293 --disable-option-checking)
27294 ;;
27295 CPPFLAGS=* | *readline*)
27296 ;;
27297 *)
27298 case $ac_arg in
27299 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27300 esac
27301 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27302 esac
27303 done
27304
27305 # Always prepend --prefix to ensure using the same prefix
27306 # in subdir configurations.
27307 ac_arg="--prefix=$prefix"
27308 case $ac_arg in
27309 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27310 esac
27311 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27312
27313 # Pass --silent
27314 if test "$silent" = yes; then
27315 ac_sub_configure_args="--silent $ac_sub_configure_args"
27316 fi
27317
27318 # Always prepend --disable-option-checking to silence warnings, since
27319 # different subdirs can have different --enable and --with options.
27320 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27321
27322 # !!! END COPIED from autoconf distribution
27323
27324 sqlite_dir=$srcdir/../lang/sql/sqlite
27325 (cd sql && eval "\$SHELL ../$sqlite_dir/configure --disable-option-checking $ac_sub_configure_args CPPFLAGS=\"-I.. $CPPFLAGS\" --enable-amalgamation=$db_cv_sql_amalgamation --enable-readline=$with_readline" && cat build_config.h >> config.h) || exit 1
27326
27327 # Configure JDBC if --enable-jdbc
27328 if test "$db_cv_jdbc" != "no"; then
27329
27330 # Deal with user-defined jdbc source path
27331 if test "$with_jdbc" != "no"; then
27332 jdbc_path="$with_jdbc"
27333 else
27334 jdbc_path="$srcdir/../lang/sql/jdbc"
27335 fi
27336
27337 if test ! -d $jdbc_path; then
27338 echo "Cannot find jdbc source in $jdbc_path."
27339 echo "Please check that path or use --with-jdbc to specify the source directory"
27340 exit 1
27341 fi
27342 jdbc_dir=`cd $jdbc_path && /bin/pwd`
27343
27344 # Transfer following setting to jdbc configure:
27345 # . --prefix
27346 # . --enable-shared/--disable-shared
27347 # . --enable-static/--disable-static
27348 # . CFLAGS, CPPFLAGS and LDFLAGS
27349 jdbc_args=""
27350 jdbc_flags=""
27351
27352 test "$prefix" != "" && jdbc_args="--prefix=$prefix --with-jardir=$prefix/jar"
27353 test "$enable_shared" != "" && jdbc_args="$jdbc_args --enable-shared=$enable_shared"
27354 test "$enable_static" != "" && jdbc_args="$jdbc_args --enable-static=$enable_static"
27355 test "$cross_compiling" = "yes" && jdbc_args="$jdbc_args --build=$build --host=$host "
27356
27357 # 1. The build directory is build_unix/jdbc, so the include paths are relative
27358 # to that.
27359 # 2. The JDBC driver does not accept CPPFLAGS. So we move the CPPFLAGS options
27360 # into CFLAGS for the JDBC driver.
27361 jdbc_flags="$jdbc_flags CFLAGS=\"-I.. -I../../src/dbinc -I../sql \
27362 -DHAVE_ERRNO_H -D_HAVE_SQLITE_CONFIG_H -DHAVE_SQLITE3_MALLOC \
27363 $CFLAGS $CPPFLAGS\""
27364 # Set LDFLAGS for JDBC driver
27365 test "$LDFLAGS" != "" && jdbc_flags="$jdbc_flags LDFLAGS=\"$LDFLAGS\""
27366
27367 # Copy ../lang/sql/jdbc to build_unix/
27368 test ! -d jdbc && cp -r $jdbc_dir .
27369
27370 # Set DBSQL LIB for Makefile.in
27371 BDB_LIB="..\/libdb-$DB_VERSION_MAJOR.$DB_VERSION_MINOR.la"
27372 test $enable_shared != "yes" && BDB_LIB='..\/libdb.a'
27373
27374 # Run the jdbc/configure
27375 cd jdbc
27376 test ! -e Makefile.in.tmp && mv Makefile.in Makefile.in.tmp
27377 sed "s/@BDB_LIB@/$BDB_LIB/g" Makefile.in.tmp > Makefile.in
27378 eval "\$SHELL ./configure --with-sqlite3=../../lang/sql/generated $jdbc_args $jdbc_flags"
27379 fi
27380
27381 fi