Merge remote-tracking branch 'origin/debian'
[hcoop/debian/courier-authlib.git] / libs / bdbobj / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for bdbobj 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
dd184caf 56 else
8d138742
CE
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
dd184caf 69 fi
8d138742
CE
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
b0322a85
CE
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
dd184caf 430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 432 as_expr=expr
433else
434 as_expr=false
435fi
436
dd184caf 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 438 as_basename=basename
439else
440 as_basename=false
441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
d9898ee8 448
dd184caf 449as_me=`$as_basename -- "$0" ||
d9898ee8 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
dd184caf 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 453$as_echo X/"$0" |
dd184caf 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
d9898ee8 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
dd184caf 509}
d9898ee8 510
b0322a85
CE
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
dd184caf 523
b0322a85
CE
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
dd184caf 527else
b0322a85
CE
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
dd184caf 530fi
b0322a85
CE
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
dd184caf 547fi
b0322a85
CE
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
dd184caf 550
b0322a85
CE
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
dd184caf 553else
b0322a85
CE
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
dd184caf 556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
dd184caf 560
b0322a85
CE
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 563
b0322a85
CE
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 566
b0322a85 567SHELL=${CONFIG_SHELL-/bin/sh}
dd184caf 568
569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
b0322a85
CE
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
d9898ee8 577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
b0322a85
CE
591PACKAGE_NAME='bdbobj'
592PACKAGE_TARNAME='bdbobj'
d9898ee8 593PACKAGE_VERSION='0.10'
b0322a85 594PACKAGE_STRING='bdbobj 0.10'
d9898ee8 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
b0322a85 598ac_unique_file="bdbobj.h"
d9898ee8 599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
b0322a85
CE
639FOUND_DB_FALSE
640FOUND_DB_TRUE
641LIBDB
8d138742 642CXXCPP
d50284c4 643LT_SYS_LIBRARY_PATH
8d138742
CE
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
b0322a85 649MANIFEST_TOOL
8d138742 650RANLIB
b0322a85 651ac_ct_AR
8d138742 652AR
b0322a85 653DLLTOOL
8d138742
CE
654OBJDUMP
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661SED
662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
670LIBTOOL
671am__fastdepCXX_FALSE
672am__fastdepCXX_TRUE
673CXXDEPMODE
674ac_ct_CXX
675CXXFLAGS
676CXX
677EGREP
678GREP
679CPP
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
b0322a85 683am__nodep
8d138742
CE
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
b0322a85
CE
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
8d138742
CE
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
dd184caf 726build_alias
8d138742
CE
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
b0322a85 754PACKAGE_URL
8d138742
CE
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
b0322a85 765enable_silent_rules
8d138742
CE
766enable_dependency_tracking
767enable_shared
768enable_static
769with_pic
770enable_fast_install
d50284c4 771with_aix_soname
8d138742 772with_gnu_ld
b0322a85 773with_sysroot
8d138742 774enable_libtool_lock
b0322a85 775enable_largefile
8d138742
CE
776'
777 ac_precious_vars='build_alias
dd184caf 778host_alias
779target_alias
dd184caf 780CC
781CFLAGS
782LDFLAGS
8d138742 783LIBS
dd184caf 784CPPFLAGS
785CPP
786CXX
787CXXFLAGS
788CCC
d50284c4 789LT_SYS_LIBRARY_PATH
8d138742 790CXXCPP'
dd184caf 791
d9898ee8 792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
8d138742
CE
796ac_unrecognized_opts=
797ac_unrecognized_sep=
d9898ee8 798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 820# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
dd184caf 824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
d9898ee8 826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
d9898ee8 829includedir='${prefix}/include'
830oldincludedir='/usr/include'
dd184caf 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
d9898ee8 840
841ac_prev=
dd184caf 842ac_dashdash=
d9898ee8 843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
dd184caf 847 eval $ac_prev=\$ac_option
d9898ee8 848 ac_prev=
849 continue
850 fi
851
dd184caf 852 case $ac_option in
b0322a85
CE
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
dd184caf 856 esac
d9898ee8 857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
dd184caf 860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
d9898ee8 863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
dd184caf 884 -datadir | --datadir | --datadi | --datad)
d9898ee8 885 ac_prev=datadir ;;
dd184caf 886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 887 datadir=$ac_optarg ;;
888
dd184caf 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
d9898ee8 896 -disable-* | --disable-*)
8d138742 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 898 # Reject names that are not valid shell variable names.
8d138742 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 900 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
dd184caf 911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
d9898ee8 921
922 -enable-* | --enable-*)
8d138742 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 924 # Reject names that are not valid shell variable names.
8d138742 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 926 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
dd184caf 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
d9898ee8 969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
dd184caf 993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
d9898ee8 998 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 999 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
dd184caf 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
d9898ee8 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
8d138742 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1128 # Reject names that are not valid shell variable names.
8d138742 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1130 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1141
1142 -without-* | --without-*)
8d138742 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1144 # Reject names that are not valid shell variable names.
8d138742 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1146 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
d9898ee8 1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
b0322a85
CE
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
d9898ee8 1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
b0322a85
CE
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
dd184caf 1187 eval $ac_envvar=\$ac_optarg
d9898ee8 1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
8d138742 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1203 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1204fi
1205
8d138742
CE
1206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
b0322a85 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
dd184caf 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
d9898ee8 1219do
dd184caf 1220 eval ac_val=\$$ac_var
8d138742
CE
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
d9898ee8 1228 case $ac_val in
dd184caf 1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1231 esac
b0322a85 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
d9898ee8 1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
dd184caf 1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1260 as_fn_error $? "working directory cannot be determined"
dd184caf 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1262 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1263
1264
d9898ee8 1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
dd184caf 1268 # Try the directory containing this script, then the parent directory.
8d138742
CE
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
dd184caf 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
d9898ee8 1292 srcdir=$ac_confdir
dd184caf 1293 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
dd184caf 1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1302fi
dd184caf 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
b0322a85 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
d9898ee8 1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
b0322a85 1331\`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
d9898ee8 1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
b0322a85 1345 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
d9898ee8 1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1353 [$ac_default_prefix]
d9898ee8 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1355 [PREFIX]
d9898ee8 1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
8d138742
CE
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
b0322a85 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
8d138742
CE
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
b0322a85 1401 short | recursive ) echo "Configuration of bdbobj 0.10:";;
d9898ee8 1402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
8d138742 1406 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
dd184caf 1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1420 --disable-largefile omit support for large files
d9898ee8 1421
1422Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1426 both]
d50284c4
CE
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
8d138742 1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d50284c4
CE
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
d9898ee8 1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
dd184caf 1439 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1441 you have headers in a nonstandard directory <include dir>
d9898ee8 1442 CPP C preprocessor
1443 CXX C++ compiler command
1444 CXXFLAGS C++ compiler flags
d50284c4
CE
1445 LT_SYS_LIBRARY_PATH
1446 User-defined run-time library search path.
d9898ee8 1447 CXXCPP C++ preprocessor
d9898ee8 1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to <courier-users@lists.sourceforge.net>.
1453_ACEOF
dd184caf 1454ac_status=$?
d9898ee8 1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
d9898ee8 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
d9898ee8 1463 ac_builddir=.
1464
dd184caf 1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
8d138742 1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1469 # A ".." for each directory in $ac_dir_suffix.
8d138742 1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
d9898ee8 1480
1481case $srcdir in
dd184caf 1482 .) # We are building in place.
d9898ee8 1483 ac_srcdir=.
dd184caf 1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1487 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1494esac
dd184caf 1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1505 else
8d138742 1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1509 done
1510fi
1511
dd184caf 1512test -n "$ac_init_help" && exit $ac_status
d9898ee8 1513if $ac_init_version; then
1514 cat <<\_ACEOF
b0322a85
CE
1515bdbobj configure 0.10
1516generated by GNU Autoconf 2.69
d9898ee8 1517
b0322a85 1518Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
dd184caf 1522 exit
d9898ee8 1523fi
d9898ee8 1524
b0322a85
CE
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
d9898ee8 1528
b0322a85
CE
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
d9898ee8 1533{
b0322a85
CE
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556else
1557 $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1559
b0322a85
CE
1560 ac_retval=1
1561fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_cpp LINENO
1568# ----------------------
1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_cpp ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_cpp
1603
1604# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607# the include files in INCLUDES and setting the cache variable VAR
1608# accordingly.
1609ac_fn_c_check_header_mongrel ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if eval \${$3+:} false; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617fi
1618eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621else
1622 # Is the header compilable?
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624$as_echo_n "checking $2 usability... " >&6; }
1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h. */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632else
1633 ac_header_compiler=no
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637$as_echo "$ac_header_compiler" >&6; }
1638
1639# Is the header present?
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641$as_echo_n "checking $2 presence... " >&6; }
1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h. */
1644#include <$2>
1645_ACEOF
1646if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648else
1649 ac_header_preproc=no
1650fi
1651rm -f conftest.err conftest.i conftest.$ac_ext
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653$as_echo "$ac_header_preproc" >&6; }
1654
1655# So? What about this header?
1656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ;;
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674( $as_echo "## -------------------------------------------------- ##
1675## Report this to courier-users@lists.sourceforge.net ##
1676## -------------------------------------------------- ##"
1677 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 ;;
1679esac
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684else
1685 eval "$3=\$ac_header_compiler"
1686fi
1687eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_mongrel
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists and can be compiled using the include files in
1740# INCLUDES, setting the cache variable VAR accordingly.
1741ac_fn_c_check_header_compile ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756else
1757 eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_header_compile
1767
1768# ac_fn_cxx_try_compile LINENO
1769# ----------------------------
1770# Try to compile conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_cxx_try_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1794 ac_retval=0
1795else
1796 $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800fi
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804} # ac_fn_cxx_try_compile
1805
1806# ac_fn_c_try_link LINENO
1807# -----------------------
1808# Try to link conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_link ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1814case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1834 }; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841fi
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850} # ac_fn_c_try_link
1851
1852# ac_fn_c_check_func LINENO FUNC VAR
1853# ----------------------------------
1854# Tests whether FUNC exists, setting the cache variable VAR accordingly
1855ac_fn_c_check_func ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867#define $2 innocuous_$2
1868
1869/* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1873
1874#ifdef __STDC__
1875# include <limits.h>
1876#else
1877# include <assert.h>
1878#endif
1879
1880#undef $2
1881
1882/* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1885#ifdef __cplusplus
1886extern "C"
1887#endif
1888char $2 ();
1889/* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892#if defined __stub_$2 || defined __stub___$2
1893choke me
1894#endif
1895
1896int
1897main ()
1898{
1899return $2 ();
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_link "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_func
1918
1919# ac_fn_cxx_try_cpp LINENO
1920# ------------------------
1921# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1922ac_fn_cxx_try_cpp ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_cpp conftest.$ac_ext"
1926case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } > conftest.i && {
1941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 }; then :
1944 ac_retval=0
1945else
1946 $as_echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1
1950fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954} # ac_fn_cxx_try_cpp
1955
1956# ac_fn_cxx_try_link LINENO
1957# -------------------------
1958# Try to link conftest.$ac_ext, and return whether this succeeded.
1959ac_fn_cxx_try_link ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1964case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967esac
1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969$as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1984 }; then :
1985 ac_retval=0
1986else
1987 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991fi
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
1999
2000} # ac_fn_cxx_try_link
2001
2002# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003# -------------------------------------------
2004# Tests whether TYPE exists after having included INCLUDES, setting cache
2005# variable VAR accordingly.
2006ac_fn_c_check_type ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041
2042else
2043 eval "$3=yes"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054} # ac_fn_c_check_type
2055cat >config.log <<_ACEOF
2056This file contains any messages produced by compilers while
2057running configure, to aid debugging if configure makes a mistake.
2058
2059It was created by bdbobj $as_me 0.10, which was
2060generated by GNU Autoconf 2.69. Invocation command line was
2061
2062 $ $0 $@
2063
2064_ACEOF
2065exec 5>>config.log
2066{
2067cat <<_ASUNAME
2068## --------- ##
2069## Platform. ##
2070## --------- ##
2071
2072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075uname -s = `(uname -s) 2>/dev/null || echo unknown`
d9898ee8 2076uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2080
2081/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2082/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2084/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2085/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2086/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2087/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2088
2089_ASUNAME
2090
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
b0322a85
CE
2096 $as_echo "PATH: $as_dir"
2097 done
dd184caf 2098IFS=$as_save_IFS
d9898ee8 2099
2100} >&5
2101
2102cat >&5 <<_ACEOF
2103
2104
2105## ----------- ##
2106## Core tests. ##
2107## ----------- ##
2108
2109_ACEOF
2110
2111
2112# Keep a trace of the command line.
2113# Strip out --no-create and --no-recursion so they do not pile up.
2114# Strip out --silent because we don't want to record it for future runs.
2115# Also quote any args containing shell meta-characters.
2116# Make two passes to allow for proper duplicate-argument suppression.
2117ac_configure_args=
2118ac_configure_args0=
2119ac_configure_args1=
d9898ee8 2120ac_must_keep_next=false
2121for ac_pass in 1 2
2122do
2123 for ac_arg
2124 do
2125 case $ac_arg in
2126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128 | -silent | --silent | --silen | --sile | --sil)
2129 continue ;;
dd184caf 2130 *\'*)
8d138742 2131 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2132 esac
2133 case $ac_pass in
b0322a85 2134 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2135 2)
b0322a85 2136 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2137 if test $ac_must_keep_next = true; then
2138 ac_must_keep_next=false # Got value, back to normal.
2139 else
2140 case $ac_arg in
2141 *=* | --config-cache | -C | -disable-* | --disable-* \
2142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144 | -with-* | --with-* | -without-* | --without-* | --x)
2145 case "$ac_configure_args0 " in
2146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147 esac
2148 ;;
2149 -* ) ac_must_keep_next=true ;;
2150 esac
2151 fi
b0322a85 2152 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2153 ;;
2154 esac
2155 done
2156done
b0322a85
CE
2157{ ac_configure_args0=; unset ac_configure_args0;}
2158{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2159
2160# When interrupted or exit'd, cleanup temporary files, and complete
2161# config.log. We remove comments because anyway the quotes in there
2162# would cause problems or look ugly.
dd184caf 2163# WARNING: Use '\'' to represent an apostrophe within the trap.
2164# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2165trap 'exit_status=$?
2166 # Save into config.log some information that might help in debugging.
2167 {
2168 echo
2169
b0322a85 2170 $as_echo "## ---------------- ##
d9898ee8 2171## Cache variables. ##
b0322a85 2172## ---------------- ##"
d9898ee8 2173 echo
2174 # The following way of writing the cache mishandles newlines in values,
dd184caf 2175(
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in #(
2179 *${as_nl}*)
2180 case $ac_var in #(
b0322a85 2181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2183 esac
2184 case $ac_var in #(
2185 _ | IFS | as_nl) ;; #(
8d138742 2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2187 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2188 esac ;;
2189 esac
2190 done
d9898ee8 2191 (set) 2>&1 |
dd184caf 2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
d9898ee8 2194 sed -n \
dd184caf 2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 ;; #(
d9898ee8 2198 *)
dd184caf 2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2200 ;;
dd184caf 2201 esac |
2202 sort
2203)
d9898ee8 2204 echo
2205
b0322a85 2206 $as_echo "## ----------------- ##
d9898ee8 2207## Output variables. ##
b0322a85 2208## ----------------- ##"
d9898ee8 2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
dd184caf 2212 eval ac_val=\$$ac_var
2213 case $ac_val in
8d138742 2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2215 esac
8d138742 2216 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
b0322a85 2221 $as_echo "## ------------------- ##
dd184caf 2222## File substitutions. ##
b0322a85 2223## ------------------- ##"
d9898ee8 2224 echo
2225 for ac_var in $ac_subst_files
2226 do
dd184caf 2227 eval ac_val=\$$ac_var
2228 case $ac_val in
8d138742 2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2230 esac
8d138742 2231 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2232 done | sort
2233 echo
2234 fi
2235
2236 if test -s confdefs.h; then
b0322a85 2237 $as_echo "## ----------- ##
d9898ee8 2238## confdefs.h. ##
b0322a85 2239## ----------- ##"
d9898ee8 2240 echo
dd184caf 2241 cat confdefs.h
d9898ee8 2242 echo
2243 fi
2244 test "$ac_signal" != 0 &&
8d138742
CE
2245 $as_echo "$as_me: caught signal $ac_signal"
2246 $as_echo "$as_me: exit $exit_status"
d9898ee8 2247 } >&5
dd184caf 2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2250 exit $exit_status
dd184caf 2251' 0
d9898ee8 2252for ac_signal in 1 2 13 15; do
b0322a85 2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2254done
2255ac_signal=0
2256
2257# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2258rm -f -r conftest* confdefs.h
d9898ee8 2259
b0322a85
CE
2260$as_echo "/* confdefs.h */" > confdefs.h
2261
d9898ee8 2262# Predefined preprocessor variables.
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_NAME "$PACKAGE_NAME"
2266_ACEOF
2267
d9898ee8 2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270_ACEOF
2271
d9898ee8 2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_VERSION "$PACKAGE_VERSION"
2274_ACEOF
2275
d9898ee8 2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_STRING "$PACKAGE_STRING"
2278_ACEOF
2279
d9898ee8 2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282_ACEOF
2283
b0322a85
CE
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_URL "$PACKAGE_URL"
2286_ACEOF
2287
d9898ee8 2288
2289# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2290# Prefer an explicitly selected file to automatically selected ones.
2291ac_site_file1=NONE
2292ac_site_file2=NONE
dd184caf 2293if test -n "$CONFIG_SITE"; then
b0322a85
CE
2294 # We do not want a PATH search for config.site.
2295 case $CONFIG_SITE in #((
2296 -*) ac_site_file1=./$CONFIG_SITE;;
2297 */*) ac_site_file1=$CONFIG_SITE;;
2298 *) ac_site_file1=./$CONFIG_SITE;;
2299 esac
dd184caf 2300elif test "x$prefix" != xNONE; then
8d138742
CE
2301 ac_site_file1=$prefix/share/config.site
2302 ac_site_file2=$prefix/etc/config.site
dd184caf 2303else
8d138742
CE
2304 ac_site_file1=$ac_default_prefix/share/config.site
2305 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2306fi
8d138742 2307for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2308do
8d138742 2309 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2312$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2313 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2314 . "$ac_site_file" \
2315 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317as_fn_error $? "failed to load site script $ac_site_file
2318See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2319 fi
2320done
2321
2322if test -r "$cache_file"; then
b0322a85
CE
2323 # Some versions of bash will fail to source /dev/null (special files
2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2327$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2328 case $cache_file in
dd184caf 2329 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330 *) . "./$cache_file";;
d9898ee8 2331 esac
2332 fi
2333else
b0322a85 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2335$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2336 >$cache_file
2337fi
2338
2339# Check that the precious variables saved in the cache have kept the same
2340# value.
2341ac_cache_corrupted=false
dd184caf 2342for ac_var in $ac_precious_vars; do
d9898ee8 2343 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2345 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2347 case $ac_old_set,$ac_new_set in
2348 set,)
b0322a85 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2351 ac_cache_corrupted=: ;;
2352 ,set)
b0322a85 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2355 ac_cache_corrupted=: ;;
2356 ,);;
2357 *)
2358 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2359 # differences in whitespace do not lead to failure.
2360 ac_old_val_w=`echo x $ac_old_val`
2361 ac_new_val_w=`echo x $ac_new_val`
2362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365 ac_cache_corrupted=:
2366 else
b0322a85 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369 eval $ac_var=\$ac_old_val
2370 fi
b0322a85 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2372$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2374$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2375 fi;;
2376 esac
2377 # Pass precious variables to config.status.
2378 if test "$ac_new_set" = set; then
2379 case $ac_new_val in
8d138742 2380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2381 *) ac_arg=$ac_var=$ac_new_val ;;
2382 esac
2383 case " $ac_configure_args " in
2384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2385 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2386 esac
2387 fi
2388done
2389if $ac_cache_corrupted; then
b0322a85 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2394 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2395fi
b0322a85
CE
2396## -------------------- ##
2397## Main body of script. ##
2398## -------------------- ##
d9898ee8 2399
dd184caf 2400ac_ext=c
2401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2405
2406
2407
2408>confdefs.h # Kill PACKAGE_ macros
2409
2410
d9898ee8 2411ac_aux_dir=
b0322a85 2412for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2413 if test -f "$ac_dir/install-sh"; then
d9898ee8 2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/install-sh -c"
2416 break
dd184caf 2417 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install.sh -c"
2420 break
dd184caf 2421 elif test -f "$ac_dir/shtool"; then
d9898ee8 2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/shtool install -c"
2424 break
2425 fi
2426done
2427if test -z "$ac_aux_dir"; then
b0322a85 2428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2429fi
dd184caf 2430
2431# These three variables are undocumented and unsupported,
2432# and are intended to be withdrawn in a future Autoconf release.
2433# They can cause serious problems if a builder's source tree is in a directory
2434# whose full name contains unusual characters.
2435ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438
d9898ee8 2439
d50284c4 2440am__api_version='1.15'
b0322a85 2441
d9898ee8 2442# Find a good install program. We prefer a C program (faster),
2443# so one script is as good as another. But avoid the broken or
2444# incompatible versions:
2445# SysV /etc/install, /usr/sbin/install
2446# SunOS /usr/etc/install
2447# IRIX /sbin/install
2448# AIX /bin/install
2449# AmigaOS /C/install, which installs bootblocks on floppy discs
2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453# OS/2's system install, which has a completely different semantic
2454# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2455# Reject install programs that cannot install multiple files.
b0322a85 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2457$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2458if test -z "$INSTALL"; then
b0322a85 2459if ${ac_cv_path_install+:} false; then :
8d138742 2460 $as_echo_n "(cached) " >&6
d9898ee8 2461else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
b0322a85
CE
2467 # Account for people who put trailing slashes in PATH elements.
2468case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
d9898ee8 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2472 /usr/ucb/* ) ;;
2473 *)
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2476 # by default.
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2479 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2483 :
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2487 :
2488 else
8d138742
CE
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2492 mkdir conftest.dir
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2497 then
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499 break 3
2500 fi
d9898ee8 2501 fi
2502 fi
2503 done
2504 done
2505 ;;
2506esac
8d138742 2507
b0322a85 2508 done
dd184caf 2509IFS=$as_save_IFS
d9898ee8 2510
8d138742 2511rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2512
2513fi
2514 if test "${ac_cv_path_install+set}" = set; then
2515 INSTALL=$ac_cv_path_install
2516 else
dd184caf 2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
d9898ee8 2519 # break other packages using the cache if that directory is
dd184caf 2520 # removed, or if the value is a relative name.
d9898ee8 2521 INSTALL=$ac_install_sh
2522 fi
2523fi
b0322a85 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2525$as_echo "$INSTALL" >&6; }
d9898ee8 2526
2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528# It thinks the first close brace ends the variable substitution.
2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
b0322a85 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2536$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2537# Reject unsafe characters in $srcdir or the absolute working directory
2538# name. Accept space and tab only in the latter.
2539am_lf='
2540'
2541case `pwd` in
2542 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2543 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2544esac
2545case $srcdir in
2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2547 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2548esac
2549
b0322a85 2550# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2551# arguments. Must try -L first in case configure is actually a
2552# symlink; some systems play weird games with the mod time of symlinks
2553# (eg FreeBSD returns the mod time of the symlink's containing
2554# directory).
2555if (
b0322a85
CE
2556 am_has_slept=no
2557 for am_try in 1 2; do
2558 echo "timestamp, slept: $am_has_slept" > conftest.file
2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560 if test "$*" = "X"; then
2561 # -L didn't work.
2562 set X `ls -t "$srcdir/configure" conftest.file`
2563 fi
2564 if test "$*" != "X $srcdir/configure conftest.file" \
2565 && test "$*" != "X conftest.file $srcdir/configure"; then
2566
2567 # If neither matched, then we have a broken ls. This can happen
2568 # if, for instance, CONFIG_SHELL is bash and it inherits a
2569 # broken ls alias from the environment. This has actually
2570 # happened. Such a system could not be considered "sane".
2571 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2572 alias in your environment" "$LINENO" 5
2573 fi
2574 if test "$2" = conftest.file || test $am_try -eq 2; then
2575 break
2576 fi
2577 # Just in case.
2578 sleep 1
2579 am_has_slept=yes
2580 done
d9898ee8 2581 test "$2" = conftest.file
2582 )
2583then
2584 # Ok.
2585 :
2586else
b0322a85
CE
2587 as_fn_error $? "newly created file is older than distributed files!
2588Check your system clock" "$LINENO" 5
d9898ee8 2589fi
b0322a85 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2591$as_echo "yes" >&6; }
b0322a85
CE
2592# If we didn't sleep, we still need to ensure time stamps of config.status and
2593# generated files are strictly newer.
2594am_sleep_pid=
2595if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2596 ( sleep 1 ) &
2597 am_sleep_pid=$!
2598fi
2599
2600rm -f conftest.file
2601
d9898ee8 2602test "$program_prefix" != NONE &&
dd184caf 2603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2604# Use a double $ so make ignores it.
2605test "$program_suffix" != NONE &&
dd184caf 2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2607# Double any \ or $.
d9898ee8 2608# By default was `s,x,x', remove it if useless.
8d138742
CE
2609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2611
d50284c4
CE
2612# Expand $ac_aux_dir to an absolute path.
2613am_aux_dir=`cd "$ac_aux_dir" && pwd`
d9898ee8 2614
8d138742
CE
2615if test x"${MISSING+set}" != xset; then
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619 *)
2620 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2621 esac
2622fi
d9898ee8 2623# Use eval to expand $SHELL
b0322a85
CE
2624if eval "$MISSING --is-lightweight"; then
2625 am_missing_run="$MISSING "
d9898ee8 2626else
2627 am_missing_run=
b0322a85
CE
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2629$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2630fi
2631
d50284c4 2632if test x"${install_sh+set}" != xset; then
8d138742
CE
2633 case $am_aux_dir in
2634 *\ * | *\ *)
2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636 *)
2637 install_sh="\${SHELL} $am_aux_dir/install-sh"
2638 esac
2639fi
2640
b0322a85
CE
2641# Installed binaries are usually stripped using 'strip' when the user
2642# run "make install-strip". However 'strip' might not be the right
8d138742 2643# tool to use in cross-compilation environments, therefore Automake
b0322a85 2644# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2645if test "$cross_compiling" != no; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2650$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2651if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2652 $as_echo_n "(cached) " >&6
2653else
2654 if test -n "$STRIP"; then
2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
b0322a85
CE
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2666 break 2
2667 fi
2668done
b0322a85 2669 done
8d138742
CE
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674STRIP=$ac_cv_prog_STRIP
2675if test -n "$STRIP"; then
b0322a85 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2677$as_echo "$STRIP" >&6; }
2678else
b0322a85 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2680$as_echo "no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$ac_cv_prog_STRIP"; then
2686 ac_ct_STRIP=$STRIP
2687 # Extract the first word of "strip", so it can be a program name with args.
2688set dummy strip; ac_word=$2
b0322a85 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2690$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2691if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2692 $as_echo_n "(cached) " >&6
2693else
2694 if test -n "$ac_ct_STRIP"; then
2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
b0322a85
CE
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2704 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2706 break 2
2707 fi
2708done
b0322a85 2709 done
8d138742
CE
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715if test -n "$ac_ct_STRIP"; then
b0322a85 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2717$as_echo "$ac_ct_STRIP" >&6; }
2718else
b0322a85 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2720$as_echo "no" >&6; }
2721fi
2722
2723 if test "x$ac_ct_STRIP" = x; then
2724 STRIP=":"
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727yes:)
b0322a85 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730ac_tool_warned=yes ;;
2731esac
2732 STRIP=$ac_ct_STRIP
2733 fi
2734else
2735 STRIP="$ac_cv_prog_STRIP"
2736fi
2737
d9898ee8 2738fi
8d138742 2739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2740
b0322a85 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2743if test -z "$MKDIR_P"; then
b0322a85 2744 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2745 $as_echo_n "(cached) " >&6
dd184caf 2746else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
b0322a85 2752 for ac_prog in mkdir gmkdir; do
dd184caf 2753 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2754 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2756 'mkdir (GNU coreutils) '* | \
2757 'mkdir (coreutils) '* | \
2758 'mkdir (fileutils) '4.1*)
2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2760 break 3;;
2761 esac
2762 done
2763 done
b0322a85 2764 done
dd184caf 2765IFS=$as_save_IFS
2766
2767fi
2768
b0322a85 2769 test -d ./--version && rmdir ./--version
dd184caf 2770 if test "${ac_cv_path_mkdir+set}" = set; then
2771 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2772 else
dd184caf 2773 # As a last resort, use the slow shell script. Don't cache a
2774 # value for MKDIR_P within a source directory, because that will
2775 # break other packages using the cache if that directory is
2776 # removed, or if the value is a relative name.
dd184caf 2777 MKDIR_P="$ac_install_sh -d"
d9898ee8 2778 fi
2779fi
b0322a85 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2781$as_echo "$MKDIR_P" >&6; }
dd184caf 2782
d9898ee8 2783for ac_prog in gawk mawk nawk awk
2784do
2785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2786set dummy $ac_prog; ac_word=$2
b0322a85 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2788$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2789if ${ac_cv_prog_AWK+:} false; then :
8d138742 2790 $as_echo_n "(cached) " >&6
d9898ee8 2791else
2792 if test -n "$AWK"; then
2793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
b0322a85
CE
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2802 ac_cv_prog_AWK="$ac_prog"
b0322a85 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2804 break 2
2805 fi
2806done
b0322a85 2807 done
dd184caf 2808IFS=$as_save_IFS
d9898ee8 2809
2810fi
2811fi
2812AWK=$ac_cv_prog_AWK
2813if test -n "$AWK"; then
b0322a85 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2815$as_echo "$AWK" >&6; }
d9898ee8 2816else
b0322a85 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2818$as_echo "no" >&6; }
d9898ee8 2819fi
2820
dd184caf 2821
d9898ee8 2822 test -n "$AWK" && break
2823done
2824
b0322a85 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2826$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2827set x ${MAKE-make}
2828ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2829if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2830 $as_echo_n "(cached) " >&6
d9898ee8 2831else
2832 cat >conftest.make <<\_ACEOF
dd184caf 2833SHELL = /bin/sh
d9898ee8 2834all:
dd184caf 2835 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2836_ACEOF
b0322a85 2837# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2838case `${MAKE-make} -f conftest.make 2>/dev/null` in
2839 *@@@%%%=?*=@@@%%%*)
2840 eval ac_cv_prog_make_${ac_make}_set=yes;;
2841 *)
2842 eval ac_cv_prog_make_${ac_make}_set=no;;
2843esac
d9898ee8 2844rm -f conftest.make
2845fi
dd184caf 2846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2848$as_echo "yes" >&6; }
d9898ee8 2849 SET_MAKE=
2850else
b0322a85 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2852$as_echo "no" >&6; }
d9898ee8 2853 SET_MAKE="MAKE=${MAKE-make}"
2854fi
2855
2856rm -rf .tst 2>/dev/null
2857mkdir .tst 2>/dev/null
2858if test -d .tst; then
2859 am__leading_dot=.
2860else
2861 am__leading_dot=_
2862fi
2863rmdir .tst 2>/dev/null
2864
b0322a85
CE
2865# Check whether --enable-silent-rules was given.
2866if test "${enable_silent_rules+set}" = set; then :
2867 enableval=$enable_silent_rules;
2868fi
2869
2870case $enable_silent_rules in # (((
2871 yes) AM_DEFAULT_VERBOSITY=0;;
2872 no) AM_DEFAULT_VERBOSITY=1;;
2873 *) AM_DEFAULT_VERBOSITY=1;;
2874esac
2875am_make=${MAKE-make}
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2877$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2878if ${am_cv_make_support_nested_variables+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 if $as_echo 'TRUE=$(BAR$(V))
2882BAR0=false
2883BAR1=true
2884V=1
2885am__doit:
2886 @$(TRUE)
2887.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2888 am_cv_make_support_nested_variables=yes
2889else
2890 am_cv_make_support_nested_variables=no
2891fi
2892fi
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2894$as_echo "$am_cv_make_support_nested_variables" >&6; }
2895if test $am_cv_make_support_nested_variables = yes; then
2896 AM_V='$(V)'
2897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2898else
2899 AM_V=$AM_DEFAULT_VERBOSITY
2900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2901fi
2902AM_BACKSLASH='\'
2903
dd184caf 2904if test "`cd $srcdir && pwd`" != "`pwd`"; then
2905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2906 # is not polluted with repeated "-I."
2907 am__isrc=' -I$(srcdir)'
2908 # test to see if srcdir already configured
2909 if test -f $srcdir/config.status; then
b0322a85 2910 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2911 fi
d9898ee8 2912fi
2913
2914# test whether we have cygpath
2915if test -z "$CYGPATH_W"; then
2916 if (cygpath --version) >/dev/null 2>/dev/null; then
2917 CYGPATH_W='cygpath -w'
2918 else
2919 CYGPATH_W=echo
2920 fi
2921fi
2922
2923
2924# Define the identity of the package.
b0322a85 2925 PACKAGE='bdbobj'
d9898ee8 2926 VERSION='0.10'
2927
2928
2929# Some tools Automake needs.
2930
2931ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932
2933
2934AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935
2936
2937AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938
2939
2940AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941
2942
2943MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2944
b0322a85
CE
2945# For better backward compatibility. To be removed once Automake 1.9.x
2946# dies out for good. For more background, see:
2947# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2949mkdir_p='$(MKDIR_P)'
2950
d50284c4
CE
2951# We need awk for the "check" target (and possibly the TAP driver). The
2952# system "awk" is bad on some platforms.
b0322a85
CE
2953# Always define AMTAR for backward compatibility. Yes, it's still used
2954# in the wild :-( We should find a proper way to deprecate it ...
2955AMTAR='$${TAR-tar}'
2956
d9898ee8 2957
b0322a85
CE
2958# We'll loop over all known methods to create a tar archive until one works.
2959_am_tools='gnutar pax cpio none'
2960
2961am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8d138742 2962
8d138742
CE
2963
2964
2965
2966
2967
d50284c4
CE
2968# POSIX will say in a future version that running "rm -f" with no argument
2969# is OK; and we want to be able to make that assumption in our Makefile
2970# recipes. So use an aggressive probe to check that the usage we want is
2971# actually supported "in the wild" to an acceptable degree.
2972# See automake bug#10828.
2973# To make any issue more visible, cause the running configure to be aborted
2974# by default if the 'rm' program in use doesn't match our expectations; the
2975# user can still override this though.
2976if rm -f && rm -fr && rm -rf; then : OK; else
2977 cat >&2 <<'END'
2978Oops!
2979
2980Your 'rm' program seems unable to run without file operands specified
2981on the command line, even when the '-f' option is present. This is contrary
2982to the behaviour of most rm programs out there, and not conforming with
2983the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2984
2985Please tell bug-automake@gnu.org about your system, including the value
2986of your $PATH and any error possibly output before this message. This
2987can help us improve future automake versions.
2988
2989END
2990 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2991 echo 'Configuration will proceed anyway, since you have set the' >&2
2992 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2993 echo >&2
2994 else
2995 cat >&2 <<'END'
2996Aborting the configuration process, to ensure you take notice of the issue.
2997
2998You can download and install GNU coreutils to get an 'rm' implementation
2999that behaves properly: <http://www.gnu.org/software/coreutils/>.
3000
3001If you want to complete the configuration process using your problematic
3002'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3003to "yes", and re-run configure.
3004
3005END
3006 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3007 fi
3008fi
3009
8d138742
CE
3010ac_config_headers="$ac_config_headers config.h"
3011
3012
3013DEPDIR="${am__leading_dot}deps"
3014
3015ac_config_commands="$ac_config_commands depfiles"
3016
3017
3018am_make=${MAKE-make}
3019cat > confinc << 'END'
3020am__doit:
3021 @echo this is the am__doit target
3022.PHONY: am__doit
3023END
3024# If we don't find an include directive, just comment out the code.
b0322a85 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742
CE
3026$as_echo_n "checking for style of include used by $am_make... " >&6; }
3027am__include="#"
3028am__quote=
3029_am_result=none
3030# First try GNU make style include.
3031echo "include confinc" > confmf
b0322a85 3032# Ignore all kinds of additional output from 'make'.
8d138742
CE
3033case `$am_make -s -f confmf 2> /dev/null` in #(
3034*the\ am__doit\ target*)
3035 am__include=include
3036 am__quote=
3037 _am_result=GNU
3038 ;;
3039esac
3040# Now try BSD make style include.
3041if test "$am__include" = "#"; then
3042 echo '.include "confinc"' > confmf
3043 case `$am_make -s -f confmf 2> /dev/null` in #(
3044 *the\ am__doit\ target*)
3045 am__include=.include
3046 am__quote="\""
3047 _am_result=BSD
3048 ;;
3049 esac
3050fi
3051
3052
b0322a85 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742
CE
3054$as_echo "$_am_result" >&6; }
3055rm -f confinc confmf
3056
3057# Check whether --enable-dependency-tracking was given.
b0322a85 3058if test "${enable_dependency_tracking+set}" = set; then :
8d138742
CE
3059 enableval=$enable_dependency_tracking;
3060fi
3061
3062if test "x$enable_dependency_tracking" != xno; then
3063 am_depcomp="$ac_aux_dir/depcomp"
3064 AMDEPBACKSLASH='\'
b0322a85 3065 am__nodep='_no'
8d138742
CE
3066fi
3067 if test "x$enable_dependency_tracking" != xno; then
3068 AMDEP_TRUE=
3069 AMDEP_FALSE='#'
d9898ee8 3070else
8d138742
CE
3071 AMDEP_TRUE='#'
3072 AMDEP_FALSE=
3073fi
3074
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3085$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3086if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
3087 $as_echo_n "(cached) " >&6
3088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
b0322a85
CE
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3101 break 2
3102 fi
3103done
b0322a85 3104 done
dd184caf 3105IFS=$as_save_IFS
d9898ee8 3106
3107fi
3108fi
8d138742
CE
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
b0322a85 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3112$as_echo "$CC" >&6; }
d9898ee8 3113else
b0322a85 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3115$as_echo "no" >&6; }
d9898ee8 3116fi
3117
dd184caf 3118
d9898ee8 3119fi
8d138742
CE
3120if test -z "$ac_cv_prog_CC"; then
3121 ac_ct_CC=$CC
3122 # Extract the first word of "gcc", so it can be a program name with args.
3123set dummy gcc; ac_word=$2
b0322a85 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3125$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3126if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3127 $as_echo_n "(cached) " >&6
d9898ee8 3128else
8d138742
CE
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
b0322a85
CE
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3139 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3141 break 2
3142 fi
3143done
b0322a85 3144 done
dd184caf 3145IFS=$as_save_IFS
d9898ee8 3146
d9898ee8 3147fi
3148fi
8d138742
CE
3149ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150if test -n "$ac_ct_CC"; then
b0322a85 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3152$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3153else
b0322a85 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3155$as_echo "no" >&6; }
d9898ee8 3156fi
3157
8d138742
CE
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
dd184caf 3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162yes:)
b0322a85 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3165ac_tool_warned=yes ;;
3166esac
8d138742 3167 CC=$ac_ct_CC
dd184caf 3168 fi
d9898ee8 3169else
8d138742 3170 CC="$ac_cv_prog_CC"
d9898ee8 3171fi
3172
3173if test -z "$CC"; then
dd184caf 3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3176set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3178$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3179if ${ac_cv_prog_CC+:} false; then :
8d138742 3180 $as_echo_n "(cached) " >&6
d9898ee8 3181else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
b0322a85
CE
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3192 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3194 break 2
3195 fi
3196done
b0322a85 3197 done
dd184caf 3198IFS=$as_save_IFS
d9898ee8 3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
b0322a85 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3205$as_echo "$CC" >&6; }
d9898ee8 3206else
b0322a85 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3208$as_echo "no" >&6; }
d9898ee8 3209fi
3210
d9898ee8 3211
dd184caf 3212 fi
d9898ee8 3213fi
3214if test -z "$CC"; then
3215 # Extract the first word of "cc", so it can be a program name with args.
3216set dummy cc; ac_word=$2
b0322a85 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3218$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3219if ${ac_cv_prog_CC+:} false; then :
8d138742 3220 $as_echo_n "(cached) " >&6
d9898ee8 3221else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
3225 ac_prog_rejected=no
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
b0322a85
CE
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3235 continue
3236 fi
3237 ac_cv_prog_CC="cc"
b0322a85 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3239 break 2
3240 fi
3241done
b0322a85 3242 done
dd184caf 3243IFS=$as_save_IFS
d9898ee8 3244
3245if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3248 shift
3249 if test $# != 0; then
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3253 shift
3254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255 fi
3256fi
3257fi
3258fi
3259CC=$ac_cv_prog_CC
3260if test -n "$CC"; then
b0322a85 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3262$as_echo "$CC" >&6; }
d9898ee8 3263else
b0322a85 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3265$as_echo "no" >&6; }
d9898ee8 3266fi
3267
dd184caf 3268
d9898ee8 3269fi
3270if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
dd184caf 3272 for ac_prog in cl.exe
d9898ee8 3273 do
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3277$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3278if ${ac_cv_prog_CC+:} false; then :
8d138742 3279 $as_echo_n "(cached) " >&6
d9898ee8 3280else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
b0322a85
CE
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3293 break 2
3294 fi
3295done
b0322a85 3296 done
dd184caf 3297IFS=$as_save_IFS
d9898ee8 3298
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
b0322a85 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3304$as_echo "$CC" >&6; }
d9898ee8 3305else
b0322a85 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3307$as_echo "no" >&6; }
d9898ee8 3308fi
3309
dd184caf 3310
d9898ee8 3311 test -n "$CC" && break
3312 done
3313fi
3314if test -z "$CC"; then
3315 ac_ct_CC=$CC
dd184caf 3316 for ac_prog in cl.exe
d9898ee8 3317do
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319set dummy $ac_prog; ac_word=$2
b0322a85 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3321$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3322if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3323 $as_echo_n "(cached) " >&6
d9898ee8 3324else
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
b0322a85
CE
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3335 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3337 break 2
3338 fi
3339done
b0322a85 3340 done
dd184caf 3341IFS=$as_save_IFS
d9898ee8 3342
3343fi
3344fi
3345ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346if test -n "$ac_ct_CC"; then
b0322a85 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3348$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3349else
b0322a85 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3351$as_echo "no" >&6; }
d9898ee8 3352fi
3353
dd184caf 3354
d9898ee8 3355 test -n "$ac_ct_CC" && break
3356done
3357
dd184caf 3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362yes:)
b0322a85 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3365ac_tool_warned=yes ;;
3366esac
3367 CC=$ac_ct_CC
3368 fi
d9898ee8 3369fi
3370
3371fi
3372
3373
b0322a85 3374test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3376as_fn_error $? "no acceptable C compiler found in \$PATH
3377See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3378
3379# Provide some information about the compiler.
b0322a85 3380$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3381set X $ac_compile
3382ac_compiler=$2
b0322a85
CE
3383for ac_option in --version -v -V -qversion; do
3384 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
b0322a85
CE
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3392 ac_status=$?
b0322a85
CE
3393 if test -s conftest.err; then
3394 sed '10a\
3395... rest of stderr output deleted ...
3396 10q' conftest.err >conftest.er1
3397 cat conftest.er1 >&5
3398 fi
3399 rm -f conftest.er1 conftest.err
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402done
d9898ee8 3403
b0322a85 3404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3405/* end confdefs.h. */
3406
3407int
3408main ()
3409{
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415ac_clean_files_save=$ac_clean_files
8d138742 3416ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3417# Try to create an executable without -o first, disregard a.out.
3418# It will help us diagnose broken compilers, and finding out an intuition
3419# of exeext.
b0322a85
CE
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3422ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424# The possible output files:
3425ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
dd184caf 3427ac_rmfiles=
3428for ac_file in $ac_files
3429do
3430 case $ac_file in
8d138742 3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433 esac
3434done
3435rm -f $ac_rmfiles
3436
b0322a85 3437if { { ac_try="$ac_link_default"
dd184caf 3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
b0322a85
CE
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
dd184caf 3444 (eval "$ac_link_default") 2>&5
d9898ee8 3445 ac_status=$?
b0322a85
CE
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
dd184caf 3448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450# in a Makefile. We should not override ac_cv_exeext if it was cached,
3451# so that the user can short-circuit this test for compilers unknown to
3452# Autoconf.
3453for ac_file in $ac_files ''
d9898ee8 3454do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
8d138742 3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3458 ;;
3459 [ab].out )
3460 # We found the default executable, but exeext='' is most
3461 # certainly right.
3462 break;;
3463 *.* )
b0322a85 3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3465 then :; else
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 fi
3468 # We set ac_cv_exeext here because the later test for it is not
3469 # safe: cross compilers may not add the suffix if given an `-o'
3470 # argument, so we may need to know it at that point already.
3471 # Even if this section looks crufty: it has the advantage of
3472 # actually working.
d9898ee8 3473 break;;
3474 * )
3475 break;;
3476 esac
3477done
dd184caf 3478test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
d9898ee8 3480else
dd184caf 3481 ac_file=''
3482fi
b0322a85
CE
3483if test -z "$ac_file"; then :
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486$as_echo "$as_me: failed program was:" >&5
d9898ee8 3487sed 's/^/| /' conftest.$ac_ext >&5
3488
b0322a85 3489{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3491as_fn_error 77 "C compiler cannot create executables
3492See \`config.log' for more details" "$LINENO" 5; }
3493else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495$as_echo "yes" >&6; }
d9898ee8 3496fi
b0322a85
CE
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498$as_echo_n "checking for C compiler default output file name... " >&6; }
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500$as_echo "$ac_file" >&6; }
d9898ee8 3501ac_exeext=$ac_cv_exeext
d9898ee8 3502
8d138742 3503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3504ac_clean_files=$ac_clean_files_save
b0322a85 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3506$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3507if { { ac_try="$ac_link"
dd184caf 3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
b0322a85
CE
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
dd184caf 3514 (eval "$ac_link") 2>&5
d9898ee8 3515 ac_status=$?
b0322a85
CE
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
d9898ee8 3518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3520# work properly (i.e., refer to `conftest.exe'), while it won't with
3521# `rm'.
3522for ac_file in conftest.exe conftest conftest.*; do
3523 test -f "$ac_file" || continue
3524 case $ac_file in
8d138742 3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3527 break;;
3528 * ) break;;
3529 esac
3530done
3531else
b0322a85 3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3534as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3536fi
b0322a85
CE
3537rm -f conftest conftest$ac_cv_exeext
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3539$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3540
3541rm -f conftest.$ac_ext
3542EXEEXT=$ac_cv_exeext
3543ac_exeext=$EXEEXT
b0322a85
CE
3544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h. */
3546#include <stdio.h>
3547int
3548main ()
3549{
3550FILE *f = fopen ("conftest.out", "w");
3551 return ferror (f) || fclose (f) != 0;
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557ac_clean_files="$ac_clean_files conftest.out"
3558# Check that the compiler produces executables we can run. If not, either
3559# the compiler is broken, or we cross compile.
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561$as_echo_n "checking whether we are cross compiling... " >&6; }
3562if test "$cross_compiling" != yes; then
3563 { { ac_try="$ac_link"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 if { ac_try='./conftest$ac_cv_exeext'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3585 cross_compiling=no
3586 else
3587 if test "$cross_compiling" = maybe; then
3588 cross_compiling=yes
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592as_fn_error $? "cannot run C compiled programs.
3593If you meant to cross compile, use \`--host'.
3594See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596 fi
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599$as_echo "$cross_compiling" >&6; }
3600
3601rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602ac_clean_files=$ac_clean_files_save
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3604$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3605if ${ac_cv_objext+:} false; then :
8d138742 3606 $as_echo_n "(cached) " >&6
d9898ee8 3607else
b0322a85 3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3609/* end confdefs.h. */
3610
3611int
3612main ()
3613{
3614
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619rm -f conftest.o conftest.obj
b0322a85 3620if { { ac_try="$ac_compile"
dd184caf 3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
b0322a85
CE
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
dd184caf 3627 (eval "$ac_compile") 2>&5
d9898ee8 3628 ac_status=$?
b0322a85
CE
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
dd184caf 3631 for ac_file in conftest.o conftest.obj conftest.*; do
3632 test -f "$ac_file" || continue;
d9898ee8 3633 case $ac_file in
8d138742 3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636 break;;
3637 esac
3638done
3639else
8d138742 3640 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3641sed 's/^/| /' conftest.$ac_ext >&5
3642
b0322a85 3643{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3645as_fn_error $? "cannot compute suffix of object files: cannot compile
3646See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3647fi
d9898ee8 3648rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649fi
b0322a85 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3651$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3652OBJEXT=$ac_cv_objext
3653ac_objext=$OBJEXT
b0322a85 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3655$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3656if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3657 $as_echo_n "(cached) " >&6
d9898ee8 3658else
b0322a85 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665#ifndef __GNUC__
3666 choke me
3667#endif
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
b0322a85 3673if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3674 ac_compiler_gnu=yes
3675else
b0322a85 3676 ac_compiler_gnu=no
d9898ee8 3677fi
dd184caf 3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3679ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680
3681fi
b0322a85 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3683$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684if test $ac_compiler_gnu = yes; then
3685 GCC=yes
3686else
3687 GCC=
3688fi
d9898ee8 3689ac_test_CFLAGS=${CFLAGS+set}
3690ac_save_CFLAGS=$CFLAGS
b0322a85 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3692$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3693if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3694 $as_echo_n "(cached) " >&6
d9898ee8 3695else
dd184caf 3696 ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3698 ac_cv_prog_cc_g=no
3699 CFLAGS="-g"
b0322a85 3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706
3707 ;
3708 return 0;
3709}
3710_ACEOF
b0322a85 3711if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3712 ac_cv_prog_cc_g=yes
3713else
b0322a85
CE
3714 CFLAGS=""
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3716/* end confdefs.h. */
3717
3718int
3719main ()
3720{
3721
3722 ;
3723 return 0;
3724}
3725_ACEOF
b0322a85 3726if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3727
b0322a85
CE
3728else
3729 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3730 CFLAGS="-g"
b0322a85 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3732/* end confdefs.h. */
3733
3734int
3735main ()
3736{
3737
3738 ;
3739 return 0;
3740}
3741_ACEOF
b0322a85 3742if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3743 ac_cv_prog_cc_g=yes
dd184caf 3744fi
dd184caf 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
dd184caf 3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3748fi
dd184caf 3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3751fi
b0322a85 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3753$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3754if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3761 fi
3762else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3767 fi
3768fi
b0322a85 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3771if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3772 $as_echo_n "(cached) " >&6
d9898ee8 3773else
dd184caf 3774 ac_cv_prog_cc_c89=no
d9898ee8 3775ac_save_CC=$CC
b0322a85 3776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3777/* end confdefs.h. */
3778#include <stdarg.h>
3779#include <stdio.h>
b0322a85 3780struct stat;
d9898ee8 3781/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3782struct buf { int x; };
3783FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784static char *e (p, i)
3785 char **p;
3786 int i;
3787{
3788 return p[i];
3789}
3790static char *f (char * (*g) (char **, int), char **p, ...)
3791{
3792 char *s;
3793 va_list v;
3794 va_start (v,p);
3795 s = g (p, va_arg (v,int));
3796 va_end (v);
3797 return s;
3798}
3799
3800/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3801 function prototypes and stuff, but not '\xHH' hex character constants.
3802 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3803 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3805 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3806 that's true only with -std. */
d9898ee8 3807int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3808
dd184caf 3809/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810 inside strings and character constants. */
3811#define FOO(x) 'x'
3812int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3813
d9898ee8 3814int test (int i, double x);
3815struct s1 {int (*f) (int a);};
3816struct s2 {int (*f) (double a);};
3817int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818int argc;
3819char **argv;
3820int
3821main ()
3822{
3823return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3824 ;
3825 return 0;
3826}
3827_ACEOF
dd184caf 3828for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3830do
3831 CC="$ac_save_CC $ac_arg"
b0322a85 3832 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3833 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3834fi
dd184caf 3835rm -f core conftest.err conftest.$ac_objext
3836 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3837done
dd184caf 3838rm -f conftest.$ac_ext
d9898ee8 3839CC=$ac_save_CC
3840
3841fi
dd184caf 3842# AC_CACHE_VAL
3843case "x$ac_cv_prog_cc_c89" in
3844 x)
b0322a85 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3846$as_echo "none needed" >&6; } ;;
dd184caf 3847 xno)
b0322a85 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3849$as_echo "unsupported" >&6; } ;;
d9898ee8 3850 *)
dd184caf 3851 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3853$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3854esac
b0322a85 3855if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3856
b0322a85 3857fi
d9898ee8 3858
d9898ee8 3859ac_ext=c
3860ac_cpp='$CPP $CPPFLAGS'
3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 3864
d50284c4
CE
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3871$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3872if ${am_cv_prog_cc_c_o+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874else
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886 # Make sure it works both with $CC and with simple cc.
3887 # Following AC_PROG_CC_C_O, we do the test twice because some
3888 # compilers refuse to overwrite an existing .o file with -o,
3889 # though they will create one.
3890 am_cv_prog_cc_c_o=yes
3891 for am_i in 1 2; do
3892 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3893 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } \
3897 && test -f conftest2.$ac_objext; then
3898 : OK
3899 else
3900 am_cv_prog_cc_c_o=no
3901 break
3902 fi
3903 done
3904 rm -f core conftest*
3905 unset am_i
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3908$as_echo "$am_cv_prog_cc_c_o" >&6; }
3909if test "$am_cv_prog_cc_c_o" != yes; then
3910 # Losing compiler, so override with the script.
3911 # FIXME: It is wrong to rewrite CC.
3912 # But if we don't then we get into trouble of one sort or another.
3913 # A longer-term fix would be to have automake use am__CC in this case,
3914 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3915 CC="$am_aux_dir/compile $CC"
3916fi
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
d9898ee8 3924depcc="$CC" am_compiler_list=
3925
b0322a85 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3927$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3928if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3929 $as_echo_n "(cached) " >&6
d9898ee8 3930else
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3935 # making a dummy file named 'D' -- because '-MD' means "put the output
3936 # in D".
3937 rm -rf conftest.dir
d9898ee8 3938 mkdir conftest.dir
3939 # Copy depcomp to subdir because otherwise we won't find it if we're
3940 # using a relative directory.
3941 cp "$am_depcomp" conftest.dir
3942 cd conftest.dir
3943 # We will build objects and dependencies in a subdirectory because
3944 # it helps to detect inapplicable dependency modes. For instance
3945 # both Tru64's cc and ICC support -MD to output dependencies as a
3946 # side effect of compilation, but ICC will put the dependencies in
3947 # the current directory while Tru64 will put them in the object
3948 # directory.
3949 mkdir sub
3950
3951 am_cv_CC_dependencies_compiler_type=none
3952 if test "$am_compiler_list" = ""; then
3953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954 fi
8d138742
CE
3955 am__universal=false
3956 case " $depcc " in #(
3957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3958 esac
3959
d9898ee8 3960 for depmode in $am_compiler_list; do
3961 # Setup a source with many dependencies, because some compilers
3962 # like to wrap large dependency lists on column 80 (with \), and
3963 # we should not choose a depcomp mode which is confused by this.
3964 #
3965 # We need to recreate these files for each test, as the compiler may
3966 # overwrite some of them when testing with obscure command lines.
3967 # This happens at least with the AIX C compiler.
3968 : > sub/conftest.c
3969 for i in 1 2 3 4 5 6; do
3970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3972 # Solaris 10 /bin/sh.
3973 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3974 done
3975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3976
b0322a85 3977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3978 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3979 # handle '-M -o', and we need to detect this. Also, some Intel
3980 # versions had trouble with output in subdirs.
8d138742
CE
3981 am__obj=sub/conftest.${OBJEXT-o}
3982 am__minus_obj="-o $am__obj"
d9898ee8 3983 case $depmode in
8d138742
CE
3984 gcc)
3985 # This depmode causes a compiler race in universal mode.
3986 test "$am__universal" = false || continue
3987 ;;
d9898ee8 3988 nosideeffect)
b0322a85
CE
3989 # After this tag, mechanisms are not by side-effect, so they'll
3990 # only be used when explicitly requested.
d9898ee8 3991 if test "x$enable_dependency_tracking" = xyes; then
3992 continue
3993 else
3994 break
3995 fi
3996 ;;
b0322a85
CE
3997 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3998 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3999 # not run yet. These depmodes are late enough in the game, and
4000 # so weak that their functioning should not be impacted.
4001 am__obj=conftest.${OBJEXT-o}
4002 am__minus_obj=
4003 ;;
d9898ee8 4004 none) break ;;
4005 esac
d9898ee8 4006 if depmode=$depmode \
8d138742 4007 source=sub/conftest.c object=$am__obj \
d9898ee8 4008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 4009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 4010 >/dev/null 2>conftest.err &&
dd184caf 4011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 4013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4015 # icc doesn't choke on unknown options, it will just issue warnings
4016 # or remarks (even with -Werror). So we grep stderr for any message
4017 # that says an option was ignored or not supported.
4018 # When given -MP, icc 7.0 and 7.1 complain thusly:
4019 # icc: Command line warning: ignoring option '-M'; no argument required
4020 # The diagnosis changed in icc 8.0:
4021 # icc: Command line remark: option '-MP' not supported
4022 if (grep 'ignoring option' conftest.err ||
4023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4024 am_cv_CC_dependencies_compiler_type=$depmode
4025 break
4026 fi
4027 fi
4028 done
4029
4030 cd ..
4031 rm -rf conftest.dir
4032else
4033 am_cv_CC_dependencies_compiler_type=none
4034fi
4035
4036fi
b0322a85 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 4038$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 4039CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4040
dd184caf 4041 if
d9898ee8 4042 test "x$enable_dependency_tracking" != xno \
4043 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4044 am__fastdepCC_TRUE=
4045 am__fastdepCC_FALSE='#'
4046else
4047 am__fastdepCC_TRUE='#'
4048 am__fastdepCC_FALSE=
4049fi
4050
4051
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742 4059$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 4060# On Suns, sometimes $CPP names a directory.
4061if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4063fi
4064if test -z "$CPP"; then
b0322a85 4065 if ${ac_cv_prog_CPP+:} false; then :
8d138742 4066 $as_echo_n "(cached) " >&6
d9898ee8 4067else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4070 do
4071 ac_preproc_ok=false
4072for ac_c_preproc_warn_flag in '' yes
4073do
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4081/* end confdefs.h. */
4082#ifdef __STDC__
4083# include <limits.h>
4084#else
4085# include <assert.h>
4086#endif
4087 Syntax error
4088_ACEOF
b0322a85 4089if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4090
b0322a85 4091else
d9898ee8 4092 # Broken: fails on valid input.
4093continue
4094fi
b0322a85 4095rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4096
dd184caf 4097 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4098 # can be detected and how.
b0322a85 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4100/* end confdefs.h. */
4101#include <ac_nonexistent.h>
4102_ACEOF
b0322a85 4103if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4104 # Broken: success on invalid input.
4105continue
4106else
d9898ee8 4107 # Passes both tests.
4108ac_preproc_ok=:
4109break
4110fi
b0322a85 4111rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4112
4113done
4114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
4115rm -f conftest.i conftest.err conftest.$ac_ext
4116if $ac_preproc_ok; then :
d9898ee8 4117 break
4118fi
4119
4120 done
4121 ac_cv_prog_CPP=$CPP
4122
4123fi
4124 CPP=$ac_cv_prog_CPP
4125else
4126 ac_cv_prog_CPP=$CPP
4127fi
b0322a85 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742 4129$as_echo "$CPP" >&6; }
d9898ee8 4130ac_preproc_ok=false
4131for ac_c_preproc_warn_flag in '' yes
4132do
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4140/* end confdefs.h. */
4141#ifdef __STDC__
4142# include <limits.h>
4143#else
4144# include <assert.h>
4145#endif
4146 Syntax error
4147_ACEOF
b0322a85 4148if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4149
b0322a85 4150else
d9898ee8 4151 # Broken: fails on valid input.
4152continue
4153fi
b0322a85 4154rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4155
dd184caf 4156 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4157 # can be detected and how.
b0322a85 4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4159/* end confdefs.h. */
4160#include <ac_nonexistent.h>
4161_ACEOF
b0322a85 4162if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4163 # Broken: success on invalid input.
4164continue
4165else
d9898ee8 4166 # Passes both tests.
4167ac_preproc_ok=:
4168break
4169fi
b0322a85 4170rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4171
4172done
4173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
4174rm -f conftest.i conftest.err conftest.$ac_ext
4175if $ac_preproc_ok; then :
4176
d9898ee8 4177else
b0322a85 4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 4179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
4180as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4181See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 4182fi
4183
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
b0322a85 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4192$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4193if ${ac_cv_path_GREP+:} false; then :
8d138742 4194 $as_echo_n "(cached) " >&6
dd184caf 4195else
8d138742 4196 if test -z "$GREP"; then
dd184caf 4197 ac_path_GREP_found=false
8d138742
CE
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
b0322a85 4204 for ac_prog in grep ggrep; do
8d138742
CE
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4207 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4208# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4209 # Check for GNU $ac_path_GREP
4210case `"$ac_path_GREP" --version 2>&1` in
4211*GNU*)
4212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213*)
4214 ac_count=0
8d138742 4215 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4216 while :
4217 do
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
8d138742 4221 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4224 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4225 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_GREP="$ac_path_GREP"
4228 ac_path_GREP_max=$ac_count
4229 fi
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234esac
4235
8d138742
CE
4236 $ac_path_GREP_found && break 3
4237 done
dd184caf 4238 done
b0322a85 4239 done
dd184caf 4240IFS=$as_save_IFS
8d138742 4241 if test -z "$ac_cv_path_GREP"; then
b0322a85 4242 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4243 fi
dd184caf 4244else
4245 ac_cv_path_GREP=$GREP
4246fi
4247
dd184caf 4248fi
b0322a85 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4250$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4251 GREP="$ac_cv_path_GREP"
4252
4253
b0322a85 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4255$as_echo_n "checking for egrep... " >&6; }
b0322a85 4256if ${ac_cv_path_EGREP+:} false; then :
8d138742 4257 $as_echo_n "(cached) " >&6
d9898ee8 4258else
dd184caf 4259 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4260 then ac_cv_path_EGREP="$GREP -E"
4261 else
8d138742 4262 if test -z "$EGREP"; then
dd184caf 4263 ac_path_EGREP_found=false
8d138742
CE
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
b0322a85 4270 for ac_prog in egrep; do
8d138742
CE
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4273 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4274# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4275 # Check for GNU $ac_path_EGREP
4276case `"$ac_path_EGREP" --version 2>&1` in
4277*GNU*)
4278 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279*)
4280 ac_count=0
8d138742 4281 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4282 while :
4283 do
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
8d138742 4287 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4288 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4290 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4291 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_EGREP="$ac_path_EGREP"
4294 ac_path_EGREP_max=$ac_count
d9898ee8 4295 fi
dd184caf 4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4298 done
4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300esac
4301
8d138742
CE
4302 $ac_path_EGREP_found && break 3
4303 done
dd184caf 4304 done
b0322a85 4305 done
dd184caf 4306IFS=$as_save_IFS
8d138742 4307 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4308 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4309 fi
dd184caf 4310else
4311 ac_cv_path_EGREP=$EGREP
4312fi
4313
dd184caf 4314 fi
d9898ee8 4315fi
b0322a85 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742 4317$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4318 EGREP="$ac_cv_path_EGREP"
d9898ee8 4319
4320
b0322a85 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 4322$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 4323if ${ac_cv_header_stdc+:} false; then :
8d138742 4324 $as_echo_n "(cached) " >&6
d9898ee8 4325else
b0322a85 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4327/* end confdefs.h. */
4328#include <stdlib.h>
4329#include <stdarg.h>
4330#include <string.h>
4331#include <float.h>
4332
4333int
4334main ()
4335{
4336
4337 ;
4338 return 0;
4339}
4340_ACEOF
b0322a85 4341if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4342 ac_cv_header_stdc=yes
4343else
b0322a85 4344 ac_cv_header_stdc=no
d9898ee8 4345fi
dd184caf 4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4347
4348if test $ac_cv_header_stdc = yes; then
4349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4351/* end confdefs.h. */
4352#include <string.h>
4353
4354_ACEOF
4355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4356 $EGREP "memchr" >/dev/null 2>&1; then :
4357
d9898ee8 4358else
4359 ac_cv_header_stdc=no
4360fi
4361rm -f conftest*
4362
4363fi
4364
4365if test $ac_cv_header_stdc = yes; then
4366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4368/* end confdefs.h. */
4369#include <stdlib.h>
4370
4371_ACEOF
4372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4373 $EGREP "free" >/dev/null 2>&1; then :
4374
d9898ee8 4375else
4376 ac_cv_header_stdc=no
4377fi
4378rm -f conftest*
4379
4380fi
4381
4382if test $ac_cv_header_stdc = yes; then
4383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 4384 if test "$cross_compiling" = yes; then :
d9898ee8 4385 :
4386else
b0322a85 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4388/* end confdefs.h. */
4389#include <ctype.h>
dd184caf 4390#include <stdlib.h>
d9898ee8 4391#if ((' ' & 0x0FF) == 0x020)
4392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4394#else
4395# define ISLOWER(c) \
4396 (('a' <= (c) && (c) <= 'i') \
4397 || ('j' <= (c) && (c) <= 'r') \
4398 || ('s' <= (c) && (c) <= 'z'))
4399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4400#endif
4401
4402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4403int
4404main ()
4405{
4406 int i;
4407 for (i = 0; i < 256; i++)
4408 if (XOR (islower (i), ISLOWER (i))
4409 || toupper (i) != TOUPPER (i))
dd184caf 4410 return 2;
4411 return 0;
d9898ee8 4412}
4413_ACEOF
b0322a85 4414if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 4415
b0322a85
CE
4416else
4417 ac_cv_header_stdc=no
d9898ee8 4418fi
b0322a85
CE
4419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4420 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 4421fi
dd184caf 4422
d9898ee8 4423fi
4424fi
b0322a85 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742 4426$as_echo "$ac_cv_header_stdc" >&6; }
d9898ee8 4427if test $ac_cv_header_stdc = yes; then
4428
b0322a85 4429$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 4430
4431fi
4432
4433# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 4434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
b0322a85
CE
4436do :
4437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4439"
4440if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d9898ee8 4441 cat >>confdefs.h <<_ACEOF
8d138742 4442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 4443_ACEOF
4444
4445fi
4446
4447done
4448
4449
8d138742 4450
b0322a85
CE
4451 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4452if test "x$ac_cv_header_minix_config_h" = xyes; then :
d9898ee8 4453 MINIX=yes
4454else
4455 MINIX=
4456fi
4457
4458
8d138742 4459 if test "$MINIX" = yes; then
d9898ee8 4460
b0322a85 4461$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d9898ee8 4462
4463
b0322a85 4464$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d9898ee8 4465
4466
b0322a85 4467$as_echo "#define _MINIX 1" >>confdefs.h
d9898ee8 4468
8d138742 4469 fi
d9898ee8 4470
8d138742 4471
b0322a85 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
8d138742 4473$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b0322a85 4474if ${ac_cv_safe_to_define___extensions__+:} false; then :
8d138742 4475 $as_echo_n "(cached) " >&6
d9898ee8 4476else
b0322a85 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4478/* end confdefs.h. */
4479
b0322a85
CE
4480# define __EXTENSIONS__ 1
4481 $ac_includes_default
d9898ee8 4482int
4483main ()
4484{
8d138742 4485
d9898ee8 4486 ;
4487 return 0;
4488}
4489_ACEOF
b0322a85 4490if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4491 ac_cv_safe_to_define___extensions__=yes
d9898ee8 4492else
b0322a85 4493 ac_cv_safe_to_define___extensions__=no
8d138742 4494fi
8d138742 4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4496fi
b0322a85 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
8d138742
CE
4498$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4499 test $ac_cv_safe_to_define___extensions__ = yes &&
b0322a85 4500 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
dd184caf 4501
b0322a85 4502 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
8d138742 4503
b0322a85 4504 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
8d138742 4505
b0322a85 4506 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8d138742 4507
b0322a85 4508 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
8d138742
CE
4509
4510
4511ac_ext=c
4512ac_cpp='$CPP $CPPFLAGS'
4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516if test -n "$ac_tool_prefix"; then
4517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4518set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4520$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4521if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$CC"; then
4525 ac_cv_prog_CC="$CC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
b0322a85
CE
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4534 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4536 break 2
4537 fi
dd184caf 4538done
b0322a85 4539 done
8d138742
CE
4540IFS=$as_save_IFS
4541
4542fi
4543fi
4544CC=$ac_cv_prog_CC
4545if test -n "$CC"; then
b0322a85 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4547$as_echo "$CC" >&6; }
dd184caf 4548else
b0322a85 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4550$as_echo "no" >&6; }
d9898ee8 4551fi
8d138742
CE
4552
4553
dd184caf 4554fi
8d138742
CE
4555if test -z "$ac_cv_prog_CC"; then
4556 ac_ct_CC=$CC
4557 # Extract the first word of "gcc", so it can be a program name with args.
4558set dummy gcc; ac_word=$2
b0322a85 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4560$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4561if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742
CE
4562 $as_echo_n "(cached) " >&6
4563else
4564 if test -n "$ac_ct_CC"; then
4565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
b0322a85
CE
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4574 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4576 break 2
4577 fi
4578done
b0322a85 4579 done
8d138742 4580IFS=$as_save_IFS
d9898ee8 4581
8d138742
CE
4582fi
4583fi
4584ac_ct_CC=$ac_cv_prog_ac_ct_CC
4585if test -n "$ac_ct_CC"; then
b0322a85 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742
CE
4587$as_echo "$ac_ct_CC" >&6; }
4588else
b0322a85 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4590$as_echo "no" >&6; }
dd184caf 4591fi
d9898ee8 4592
8d138742
CE
4593 if test "x$ac_ct_CC" = x; then
4594 CC=""
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597yes:)
b0322a85 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600ac_tool_warned=yes ;;
4601esac
4602 CC=$ac_ct_CC
4603 fi
d9898ee8 4604else
8d138742
CE
4605 CC="$ac_cv_prog_CC"
4606fi
4607
4608if test -z "$CC"; then
4609 if test -n "$ac_tool_prefix"; then
4610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4611set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4613$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4614if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4615 $as_echo_n "(cached) " >&6
4616else
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
b0322a85
CE
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4627 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4629 break 2
4630 fi
4631done
b0322a85 4632 done
dd184caf 4633IFS=$as_save_IFS
d9898ee8 4634
4635fi
4636fi
8d138742
CE
4637CC=$ac_cv_prog_CC
4638if test -n "$CC"; then
b0322a85 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4640$as_echo "$CC" >&6; }
d9898ee8 4641else
b0322a85 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4643$as_echo "no" >&6; }
d9898ee8 4644fi
4645
dd184caf 4646
8d138742
CE
4647 fi
4648fi
4649if test -z "$CC"; then
4650 # Extract the first word of "cc", so it can be a program name with args.
4651set dummy cc; ac_word=$2
b0322a85 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4653$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4654if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659else
4660 ac_prog_rejected=no
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
b0322a85
CE
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742
CE
4668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4669 ac_prog_rejected=yes
4670 continue
4671 fi
4672 ac_cv_prog_CC="cc"
b0322a85 4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4674 break 2
4675 fi
d9898ee8 4676done
b0322a85 4677 done
8d138742 4678IFS=$as_save_IFS
d9898ee8 4679
8d138742
CE
4680if test $ac_prog_rejected = yes; then
4681 # We found a bogon in the path, so make sure we never use it.
4682 set dummy $ac_cv_prog_CC
4683 shift
4684 if test $# != 0; then
4685 # We chose a different compiler from the bogus one.
4686 # However, it has the same basename, so the bogon will be chosen
4687 # first if we set CC to just the basename; use the full file name.
4688 shift
4689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4690 fi
4691fi
4692fi
4693fi
4694CC=$ac_cv_prog_CC
4695if test -n "$CC"; then
b0322a85 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742
CE
4697$as_echo "$CC" >&6; }
4698else
b0322a85 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4700$as_echo "no" >&6; }
4701fi
4702
4703
4704fi
4705if test -z "$CC"; then
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in cl.exe
d9898ee8 4708 do
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4712$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4713if ${ac_cv_prog_CC+:} false; then :
8d138742 4714 $as_echo_n "(cached) " >&6
d9898ee8 4715else
8d138742
CE
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
b0322a85
CE
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4728 break 2
4729 fi
4730done
b0322a85 4731 done
dd184caf 4732IFS=$as_save_IFS
d9898ee8 4733
4734fi
4735fi
8d138742
CE
4736CC=$ac_cv_prog_CC
4737if test -n "$CC"; then
b0322a85 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4739$as_echo "$CC" >&6; }
d9898ee8 4740else
b0322a85 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4742$as_echo "no" >&6; }
d9898ee8 4743fi
4744
dd184caf 4745
8d138742 4746 test -n "$CC" && break
d9898ee8 4747 done
4748fi
8d138742
CE
4749if test -z "$CC"; then
4750 ac_ct_CC=$CC
4751 for ac_prog in cl.exe
d9898ee8 4752do
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754set dummy $ac_prog; ac_word=$2
b0322a85 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4756$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4757if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 4758 $as_echo_n "(cached) " >&6
d9898ee8 4759else
8d138742
CE
4760 if test -n "$ac_ct_CC"; then
4761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
b0322a85
CE
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4770 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4772 break 2
4773 fi
4774done
b0322a85 4775 done
dd184caf 4776IFS=$as_save_IFS
d9898ee8 4777
4778fi
4779fi
8d138742
CE
4780ac_ct_CC=$ac_cv_prog_ac_ct_CC
4781if test -n "$ac_ct_CC"; then
b0322a85 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 4783$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4784else
b0322a85 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4786$as_echo "no" >&6; }
d9898ee8 4787fi
4788
dd184caf 4789
8d138742 4790 test -n "$ac_ct_CC" && break
d9898ee8 4791done
d9898ee8 4792
8d138742
CE
4793 if test "x$ac_ct_CC" = x; then
4794 CC=""
dd184caf 4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797yes:)
b0322a85 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4800ac_tool_warned=yes ;;
4801esac
8d138742 4802 CC=$ac_ct_CC
dd184caf 4803 fi
d9898ee8 4804fi
4805
dd184caf 4806fi
8d138742
CE
4807
4808
b0322a85 4809test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 4810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
4811as_fn_error $? "no acceptable C compiler found in \$PATH
4812See \`config.log' for more details" "$LINENO" 5; }
8d138742 4813
d9898ee8 4814# Provide some information about the compiler.
b0322a85 4815$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
4816set X $ac_compile
4817ac_compiler=$2
b0322a85
CE
4818for ac_option in --version -v -V -qversion; do
4819 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 4820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
b0322a85
CE
4824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825$as_echo "$ac_try_echo"; } >&5
4826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 4827 ac_status=$?
b0322a85
CE
4828 if test -s conftest.err; then
4829 sed '10a\
4830... rest of stderr output deleted ...
4831 10q' conftest.err >conftest.er1
4832 cat conftest.er1 >&5
4833 fi
4834 rm -f conftest.er1 conftest.err
4835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836 test $ac_status = 0; }
4837done
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 4840$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 4841if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 4842 $as_echo_n "(cached) " >&6
d9898ee8 4843else
b0322a85 4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4845/* end confdefs.h. */
4846
4847int
4848main ()
4849{
4850#ifndef __GNUC__
4851 choke me
4852#endif
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
b0322a85 4858if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4859 ac_compiler_gnu=yes
4860else
b0322a85 4861 ac_compiler_gnu=no
d9898ee8 4862fi
dd184caf 4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 4864ac_cv_c_compiler_gnu=$ac_compiler_gnu
d9898ee8 4865
4866fi
b0322a85 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
4868$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4869if test $ac_compiler_gnu = yes; then
4870 GCC=yes
d9898ee8 4871else
8d138742
CE
4872 GCC=
4873fi
4874ac_test_CFLAGS=${CFLAGS+set}
4875ac_save_CFLAGS=$CFLAGS
b0322a85 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 4877$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 4878if ${ac_cv_prog_cc_g+:} false; then :
8d138742
CE
4879 $as_echo_n "(cached) " >&6
4880else
4881 ac_save_c_werror_flag=$ac_c_werror_flag
4882 ac_c_werror_flag=yes
4883 ac_cv_prog_cc_g=no
4884 CFLAGS="-g"
b0322a85 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891
4892 ;
4893 return 0;
4894}
4895_ACEOF
b0322a85 4896if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4897 ac_cv_prog_cc_g=yes
d9898ee8 4898else
b0322a85
CE
4899 CFLAGS=""
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4901/* end confdefs.h. */
dd184caf 4902
d9898ee8 4903int
4904main ()
4905{
dd184caf 4906
d9898ee8 4907 ;
4908 return 0;
4909}
4910_ACEOF
b0322a85 4911if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4912
b0322a85
CE
4913else
4914 ac_c_werror_flag=$ac_save_c_werror_flag
8d138742 4915 CFLAGS="-g"
b0322a85 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4917/* end confdefs.h. */
dd184caf 4918
d9898ee8 4919int
4920main ()
4921{
dd184caf 4922
d9898ee8 4923 ;
4924 return 0;
4925}
4926_ACEOF
b0322a85 4927if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4928 ac_cv_prog_cc_g=yes
d9898ee8 4929fi
dd184caf 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931fi
dd184caf 4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4933fi
dd184caf 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 4935 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 4936fi
b0322a85 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742
CE
4938$as_echo "$ac_cv_prog_cc_g" >&6; }
4939if test "$ac_test_CFLAGS" = set; then
4940 CFLAGS=$ac_save_CFLAGS
4941elif test $ac_cv_prog_cc_g = yes; then
4942 if test "$GCC" = yes; then
4943 CFLAGS="-g -O2"
dd184caf 4944 else
8d138742 4945 CFLAGS="-g"
dd184caf 4946 fi
4947else
8d138742
CE
4948 if test "$GCC" = yes; then
4949 CFLAGS="-O2"
dd184caf 4950 else
8d138742 4951 CFLAGS=
dd184caf 4952 fi
4953fi
b0322a85 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 4955$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 4956if ${ac_cv_prog_cc_c89+:} false; then :
8d138742
CE
4957 $as_echo_n "(cached) " >&6
4958else
4959 ac_cv_prog_cc_c89=no
4960ac_save_CC=$CC
b0322a85 4961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
4962/* end confdefs.h. */
4963#include <stdarg.h>
4964#include <stdio.h>
b0322a85 4965struct stat;
8d138742
CE
4966/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4967struct buf { int x; };
4968FILE * (*rcsopen) (struct buf *, struct stat *, int);
4969static char *e (p, i)
4970 char **p;
4971 int i;
4972{
4973 return p[i];
4974}
4975static char *f (char * (*g) (char **, int), char **p, ...)
4976{
4977 char *s;
4978 va_list v;
4979 va_start (v,p);
4980 s = g (p, va_arg (v,int));
4981 va_end (v);
4982 return s;
4983}
4984
4985/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4986 function prototypes and stuff, but not '\xHH' hex character constants.
4987 These don't provoke an error unfortunately, instead are silently treated
4988 as 'x'. The following induces an error, until -std is added to get
4989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4990 array size at least. It's necessary to write '\x00'==0 to get something
4991 that's true only with -std. */
4992int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4993
4994/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4995 inside strings and character constants. */
4996#define FOO(x) 'x'
4997int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4998
4999int test (int i, double x);
5000struct s1 {int (*f) (int a);};
5001struct s2 {int (*f) (double a);};
5002int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5003int argc;
5004char **argv;
5005int
5006main ()
5007{
5008return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5015do
5016 CC="$ac_save_CC $ac_arg"
b0322a85 5017 if ac_fn_c_try_compile "$LINENO"; then :
8d138742 5018 ac_cv_prog_cc_c89=$ac_arg
8d138742 5019fi
8d138742
CE
5020rm -f core conftest.err conftest.$ac_objext
5021 test "x$ac_cv_prog_cc_c89" != "xno" && break
5022done
5023rm -f conftest.$ac_ext
5024CC=$ac_save_CC
5025
5026fi
5027# AC_CACHE_VAL
5028case "x$ac_cv_prog_cc_c89" in
5029 x)
b0322a85 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742
CE
5031$as_echo "none needed" >&6; } ;;
5032 xno)
b0322a85 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742
CE
5034$as_echo "unsupported" >&6; } ;;
5035 *)
5036 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742
CE
5038$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5039esac
b0322a85 5040if test "x$ac_cv_prog_cc_c89" != xno; then :
8d138742 5041
b0322a85 5042fi
8d138742 5043
d9898ee8 5044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
d50284c4
CE
5050ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5056$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5057if ${am_cv_prog_cc_c_o+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h. */
5062
5063int
5064main ()
5065{
5066
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071 # Make sure it works both with $CC and with simple cc.
5072 # Following AC_PROG_CC_C_O, we do the test twice because some
5073 # compilers refuse to overwrite an existing .o file with -o,
5074 # though they will create one.
5075 am_cv_prog_cc_c_o=yes
5076 for am_i in 1 2; do
5077 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5078 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } \
5082 && test -f conftest2.$ac_objext; then
5083 : OK
5084 else
5085 am_cv_prog_cc_c_o=no
5086 break
5087 fi
5088 done
5089 rm -f core conftest*
5090 unset am_i
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5093$as_echo "$am_cv_prog_cc_c_o" >&6; }
5094if test "$am_cv_prog_cc_c_o" != yes; then
5095 # Losing compiler, so override with the script.
5096 # FIXME: It is wrong to rewrite CC.
5097 # But if we don't then we get into trouble of one sort or another.
5098 # A longer-term fix would be to have automake use am__CC in this case,
5099 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5100 CC="$am_aux_dir/compile $CC"
5101fi
5102ac_ext=c
5103ac_cpp='$CPP $CPPFLAGS'
5104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107
5108
8d138742 5109depcc="$CC" am_compiler_list=
d9898ee8 5110
b0322a85 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 5112$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 5113if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 5114 $as_echo_n "(cached) " >&6
d9898ee8 5115else
5116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5117 # We make a subdir and do the tests there. Otherwise we can end up
5118 # making bogus files that we don't know about and never remove. For
5119 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
5120 # making a dummy file named 'D' -- because '-MD' means "put the output
5121 # in D".
5122 rm -rf conftest.dir
d9898ee8 5123 mkdir conftest.dir
5124 # Copy depcomp to subdir because otherwise we won't find it if we're
5125 # using a relative directory.
5126 cp "$am_depcomp" conftest.dir
5127 cd conftest.dir
5128 # We will build objects and dependencies in a subdirectory because
5129 # it helps to detect inapplicable dependency modes. For instance
5130 # both Tru64's cc and ICC support -MD to output dependencies as a
5131 # side effect of compilation, but ICC will put the dependencies in
5132 # the current directory while Tru64 will put them in the object
5133 # directory.
5134 mkdir sub
5135
8d138742 5136 am_cv_CC_dependencies_compiler_type=none
d9898ee8 5137 if test "$am_compiler_list" = ""; then
5138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139 fi
8d138742
CE
5140 am__universal=false
5141 case " $depcc " in #(
5142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5143 esac
5144
d9898ee8 5145 for depmode in $am_compiler_list; do
5146 # Setup a source with many dependencies, because some compilers
5147 # like to wrap large dependency lists on column 80 (with \), and
5148 # we should not choose a depcomp mode which is confused by this.
5149 #
5150 # We need to recreate these files for each test, as the compiler may
5151 # overwrite some of them when testing with obscure command lines.
5152 # This happens at least with the AIX C compiler.
5153 : > sub/conftest.c
5154 for i in 1 2 3 4 5 6; do
5155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
5156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5157 # Solaris 10 /bin/sh.
5158 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 5159 done
5160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161
b0322a85 5162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 5163 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
5164 # handle '-M -o', and we need to detect this. Also, some Intel
5165 # versions had trouble with output in subdirs.
8d138742
CE
5166 am__obj=sub/conftest.${OBJEXT-o}
5167 am__minus_obj="-o $am__obj"
d9898ee8 5168 case $depmode in
8d138742
CE
5169 gcc)
5170 # This depmode causes a compiler race in universal mode.
5171 test "$am__universal" = false || continue
5172 ;;
d9898ee8 5173 nosideeffect)
b0322a85
CE
5174 # After this tag, mechanisms are not by side-effect, so they'll
5175 # only be used when explicitly requested.
d9898ee8 5176 if test "x$enable_dependency_tracking" = xyes; then
5177 continue
5178 else
5179 break
5180 fi
5181 ;;
b0322a85
CE
5182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5183 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
5184 # not run yet. These depmodes are late enough in the game, and
5185 # so weak that their functioning should not be impacted.
5186 am__obj=conftest.${OBJEXT-o}
5187 am__minus_obj=
5188 ;;
d9898ee8 5189 none) break ;;
5190 esac
d9898ee8 5191 if depmode=$depmode \
8d138742 5192 source=sub/conftest.c object=$am__obj \
d9898ee8 5193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 5194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 5195 >/dev/null 2>conftest.err &&
dd184caf 5196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 5198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200 # icc doesn't choke on unknown options, it will just issue warnings
5201 # or remarks (even with -Werror). So we grep stderr for any message
5202 # that says an option was ignored or not supported.
5203 # When given -MP, icc 7.0 and 7.1 complain thusly:
5204 # icc: Command line warning: ignoring option '-M'; no argument required
5205 # The diagnosis changed in icc 8.0:
5206 # icc: Command line remark: option '-MP' not supported
5207 if (grep 'ignoring option' conftest.err ||
5208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8d138742 5209 am_cv_CC_dependencies_compiler_type=$depmode
d9898ee8 5210 break
5211 fi
5212 fi
5213 done
5214
5215 cd ..
5216 rm -rf conftest.dir
5217else
8d138742 5218 am_cv_CC_dependencies_compiler_type=none
d9898ee8 5219fi
5220
5221fi
b0322a85 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742
CE
5223$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5224CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
d9898ee8 5225
dd184caf 5226 if
d9898ee8 5227 test "x$enable_dependency_tracking" != xno \
8d138742
CE
5228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCC_TRUE=
5230 am__fastdepCC_FALSE='#'
d9898ee8 5231else
8d138742
CE
5232 am__fastdepCC_TRUE='#'
5233 am__fastdepCC_FALSE=
d9898ee8 5234fi
5235
5236
8d138742
CE
5237for ac_prog in gawk mawk nawk awk
5238do
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240set dummy $ac_prog; ac_word=$2
b0322a85 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5242$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5243if ${ac_cv_prog_AWK+:} false; then :
8d138742
CE
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test -n "$AWK"; then
5247 ac_cv_prog_AWK="$AWK" # Let the user override the test.
d9898ee8 5248else
d9898ee8 5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
b0322a85
CE
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5256 ac_cv_prog_AWK="$ac_prog"
b0322a85 5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5258 break 2
d9898ee8 5259 fi
d9898ee8 5260done
b0322a85 5261 done
8d138742 5262IFS=$as_save_IFS
d9898ee8 5263
8d138742
CE
5264fi
5265fi
5266AWK=$ac_cv_prog_AWK
5267if test -n "$AWK"; then
b0322a85 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742
CE
5269$as_echo "$AWK" >&6; }
5270else
b0322a85 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5272$as_echo "no" >&6; }
d9898ee8 5273fi
5274
d9898ee8 5275
8d138742
CE
5276 test -n "$AWK" && break
5277done
d9898ee8 5278
8d138742
CE
5279ac_ext=cpp
5280ac_cpp='$CXXCPP $CPPFLAGS'
5281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5284if test -z "$CXX"; then
5285 if test -n "$CCC"; then
5286 CXX=$CCC
5287 else
5288 if test -n "$ac_tool_prefix"; then
5289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5290 do
5291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5294$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5295if ${ac_cv_prog_CXX+:} false; then :
8d138742
CE
5296 $as_echo_n "(cached) " >&6
5297else
5298 if test -n "$CXX"; then
5299 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
b0322a85
CE
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5308 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
b0322a85 5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5310 break 2
5311 fi
5312done
b0322a85 5313 done
8d138742 5314IFS=$as_save_IFS
d9898ee8 5315
8d138742
CE
5316fi
5317fi
5318CXX=$ac_cv_prog_CXX
5319if test -n "$CXX"; then
b0322a85 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8d138742 5321$as_echo "$CXX" >&6; }
d9898ee8 5322else
b0322a85 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5324$as_echo "no" >&6; }
dd184caf 5325fi
5326
8d138742
CE
5327
5328 test -n "$CXX" && break
5329 done
d9898ee8 5330fi
8d138742
CE
5331if test -z "$CXX"; then
5332 ac_ct_CXX=$CXX
5333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5334do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336set dummy $ac_prog; ac_word=$2
b0322a85 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5338$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5339if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8d138742 5340 $as_echo_n "(cached) " >&6
d9898ee8 5341else
8d138742
CE
5342 if test -n "$ac_ct_CXX"; then
5343 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d9898ee8 5344else
8d138742
CE
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
b0322a85
CE
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5352 ac_cv_prog_ac_ct_CXX="$ac_prog"
b0322a85 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5354 break 2
5355 fi
5356done
b0322a85 5357 done
8d138742 5358IFS=$as_save_IFS
d9898ee8 5359
d9898ee8 5360fi
8d138742
CE
5361fi
5362ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5363if test -n "$ac_ct_CXX"; then
b0322a85 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8d138742 5365$as_echo "$ac_ct_CXX" >&6; }
d9898ee8 5366else
b0322a85 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5368$as_echo "no" >&6; }
d9898ee8 5369fi
d9898ee8 5370
5371
8d138742
CE
5372 test -n "$ac_ct_CXX" && break
5373done
d9898ee8 5374
8d138742
CE
5375 if test "x$ac_ct_CXX" = x; then
5376 CXX="g++"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379yes:)
b0322a85 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382ac_tool_warned=yes ;;
5383esac
5384 CXX=$ac_ct_CXX
d9898ee8 5385 fi
d9898ee8 5386fi
d9898ee8 5387
8d138742 5388 fi
d9898ee8 5389fi
8d138742 5390# Provide some information about the compiler.
b0322a85 5391$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8d138742
CE
5392set X $ac_compile
5393ac_compiler=$2
b0322a85
CE
5394for ac_option in --version -v -V -qversion; do
5395 { { ac_try="$ac_compiler $ac_option >&5"
8d138742
CE
5396case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399esac
b0322a85
CE
5400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5401$as_echo "$ac_try_echo"; } >&5
5402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8d138742 5403 ac_status=$?
b0322a85
CE
5404 if test -s conftest.err; then
5405 sed '10a\
5406... rest of stderr output deleted ...
5407 10q' conftest.err >conftest.er1
5408 cat conftest.er1 >&5
5409 fi
5410 rm -f conftest.er1 conftest.err
5411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412 test $ac_status = 0; }
5413done
d9898ee8 5414
b0322a85 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8d138742 5416$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
b0322a85 5417if ${ac_cv_cxx_compiler_gnu+:} false; then :
8d138742 5418 $as_echo_n "(cached) " >&6
d9898ee8 5419else
b0322a85 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5421/* end confdefs.h. */
d9898ee8 5422
8d138742
CE
5423int
5424main ()
5425{
5426#ifndef __GNUC__
5427 choke me
5428#endif
d9898ee8 5429
8d138742
CE
5430 ;
5431 return 0;
5432}
5433_ACEOF
b0322a85 5434if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
5435 ac_compiler_gnu=yes
5436else
b0322a85 5437 ac_compiler_gnu=no
8d138742 5438fi
8d138742
CE
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d9898ee8 5441
8d138742 5442fi
b0322a85 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8d138742
CE
5444$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5445if test $ac_compiler_gnu = yes; then
5446 GXX=yes
5447else
5448 GXX=
5449fi
5450ac_test_CXXFLAGS=${CXXFLAGS+set}
5451ac_save_CXXFLAGS=$CXXFLAGS
b0322a85 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8d138742 5453$as_echo_n "checking whether $CXX accepts -g... " >&6; }
b0322a85 5454if ${ac_cv_prog_cxx_g+:} false; then :
8d138742
CE
5455 $as_echo_n "(cached) " >&6
5456else
5457 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5458 ac_cxx_werror_flag=yes
5459 ac_cv_prog_cxx_g=no
5460 CXXFLAGS="-g"
b0322a85 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5462/* end confdefs.h. */
d9898ee8 5463
8d138742
CE
5464int
5465main ()
5466{
d9898ee8 5467
8d138742
CE
5468 ;
5469 return 0;
5470}
5471_ACEOF
b0322a85 5472if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
5473 ac_cv_prog_cxx_g=yes
5474else
b0322a85
CE
5475 CXXFLAGS=""
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5477/* end confdefs.h. */
d9898ee8 5478
8d138742
CE
5479int
5480main ()
5481{
d9898ee8 5482
8d138742
CE
5483 ;
5484 return 0;
5485}
5486_ACEOF
b0322a85 5487if ac_fn_cxx_try_compile "$LINENO"; then :
d9898ee8 5488
b0322a85
CE
5489else
5490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8d138742 5491 CXXFLAGS="-g"
b0322a85 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 5493/* end confdefs.h. */
5494
5495int
5496main ()
5497{
5498
5499 ;
5500 return 0;
5501}
5502_ACEOF
b0322a85 5503if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742 5504 ac_cv_prog_cxx_g=yes
d9898ee8 5505fi
8d138742
CE
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
8d138742
CE
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509fi
8d138742
CE
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5512fi
b0322a85 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8d138742
CE
5514$as_echo "$ac_cv_prog_cxx_g" >&6; }
5515if test "$ac_test_CXXFLAGS" = set; then
5516 CXXFLAGS=$ac_save_CXXFLAGS
5517elif test $ac_cv_prog_cxx_g = yes; then
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-g -O2"
5520 else
5521 CXXFLAGS="-g"
5522 fi
5523else
5524 if test "$GXX" = yes; then
5525 CXXFLAGS="-O2"
5526 else
5527 CXXFLAGS=
5528 fi
5529fi
5530ac_ext=c
d9898ee8 5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
8d138742 5536depcc="$CXX" am_compiler_list=
d9898ee8 5537
b0322a85 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 5539$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 5540if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8d138742
CE
5541 $as_echo_n "(cached) " >&6
5542else
5543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5544 # We make a subdir and do the tests there. Otherwise we can end up
5545 # making bogus files that we don't know about and never remove. For
5546 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
5547 # making a dummy file named 'D' -- because '-MD' means "put the output
5548 # in D".
5549 rm -rf conftest.dir
8d138742
CE
5550 mkdir conftest.dir
5551 # Copy depcomp to subdir because otherwise we won't find it if we're
5552 # using a relative directory.
5553 cp "$am_depcomp" conftest.dir
5554 cd conftest.dir
5555 # We will build objects and dependencies in a subdirectory because
5556 # it helps to detect inapplicable dependency modes. For instance
5557 # both Tru64's cc and ICC support -MD to output dependencies as a
5558 # side effect of compilation, but ICC will put the dependencies in
5559 # the current directory while Tru64 will put them in the object
5560 # directory.
5561 mkdir sub
d9898ee8 5562
8d138742
CE
5563 am_cv_CXX_dependencies_compiler_type=none
5564 if test "$am_compiler_list" = ""; then
5565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5566 fi
5567 am__universal=false
5568 case " $depcc " in #(
5569 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5570 esac
d9898ee8 5571
8d138742
CE
5572 for depmode in $am_compiler_list; do
5573 # Setup a source with many dependencies, because some compilers
5574 # like to wrap large dependency lists on column 80 (with \), and
5575 # we should not choose a depcomp mode which is confused by this.
5576 #
5577 # We need to recreate these files for each test, as the compiler may
5578 # overwrite some of them when testing with obscure command lines.
5579 # This happens at least with the AIX C compiler.
5580 : > sub/conftest.c
5581 for i in 1 2 3 4 5 6; do
5582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
5583 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5584 # Solaris 10 /bin/sh.
5585 echo '/* dummy */' > sub/conftst$i.h
8d138742
CE
5586 done
5587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d9898ee8 5588
b0322a85 5589 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 5590 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
5591 # handle '-M -o', and we need to detect this. Also, some Intel
5592 # versions had trouble with output in subdirs.
8d138742
CE
5593 am__obj=sub/conftest.${OBJEXT-o}
5594 am__minus_obj="-o $am__obj"
5595 case $depmode in
5596 gcc)
5597 # This depmode causes a compiler race in universal mode.
5598 test "$am__universal" = false || continue
5599 ;;
5600 nosideeffect)
b0322a85
CE
5601 # After this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested.
8d138742
CE
5603 if test "x$enable_dependency_tracking" = xyes; then
5604 continue
5605 else
5606 break
5607 fi
5608 ;;
b0322a85
CE
5609 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5610 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
5611 # not run yet. These depmodes are late enough in the game, and
5612 # so weak that their functioning should not be impacted.
5613 am__obj=conftest.${OBJEXT-o}
5614 am__minus_obj=
5615 ;;
5616 none) break ;;
5617 esac
5618 if depmode=$depmode \
5619 source=sub/conftest.c object=$am__obj \
5620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5622 >/dev/null 2>conftest.err &&
5623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627 # icc doesn't choke on unknown options, it will just issue warnings
5628 # or remarks (even with -Werror). So we grep stderr for any message
5629 # that says an option was ignored or not supported.
5630 # When given -MP, icc 7.0 and 7.1 complain thusly:
5631 # icc: Command line warning: ignoring option '-M'; no argument required
5632 # The diagnosis changed in icc 8.0:
5633 # icc: Command line remark: option '-MP' not supported
5634 if (grep 'ignoring option' conftest.err ||
5635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636 am_cv_CXX_dependencies_compiler_type=$depmode
5637 break
5638 fi
5639 fi
5640 done
d9898ee8 5641
8d138742
CE
5642 cd ..
5643 rm -rf conftest.dir
5644else
5645 am_cv_CXX_dependencies_compiler_type=none
5646fi
d9898ee8 5647
d9898ee8 5648fi
b0322a85 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8d138742
CE
5650$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5651CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 5652
8d138742
CE
5653 if
5654 test "x$enable_dependency_tracking" != xno \
5655 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5656 am__fastdepCXX_TRUE=
5657 am__fastdepCXX_FALSE='#'
5658else
5659 am__fastdepCXX_TRUE='#'
5660 am__fastdepCXX_FALSE=
d9898ee8 5661fi
dd184caf 5662
d9898ee8 5663
b0322a85
CE
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5665$as_echo_n "checking for library containing strerror... " >&6; }
5666if ${ac_cv_search_strerror+:} false; then :
8d138742 5667 $as_echo_n "(cached) " >&6
d9898ee8 5668else
b0322a85
CE
5669 ac_func_search_save_LIBS=$LIBS
5670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
d9898ee8 5672
b0322a85
CE
5673/* Override any GCC internal prototype to avoid an error.
5674 Use char because int might match the return type of a GCC
5675 builtin and then its argument prototype would still apply. */
5676#ifdef __cplusplus
5677extern "C"
5678#endif
5679char strerror ();
5680int
5681main ()
5682{
5683return strerror ();
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688for ac_lib in '' cposix; do
5689 if test -z "$ac_lib"; then
5690 ac_res="none required"
5691 else
5692 ac_res=-l$ac_lib
5693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5694 fi
5695 if ac_fn_c_try_link "$LINENO"; then :
5696 ac_cv_search_strerror=$ac_res
5697fi
5698rm -f core conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext
5700 if ${ac_cv_search_strerror+:} false; then :
5701 break
5702fi
5703done
5704if ${ac_cv_search_strerror+:} false; then :
5705
5706else
5707 ac_cv_search_strerror=no
5708fi
5709rm conftest.$ac_ext
5710LIBS=$ac_func_search_save_LIBS
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5713$as_echo "$ac_cv_search_strerror" >&6; }
5714ac_res=$ac_cv_search_strerror
5715if test "$ac_res" != no; then :
5716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5717
5718fi
5719
5720case `pwd` in
5721 *\ * | *\ *)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5723$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5724esac
5725
5726
5727
d50284c4
CE
5728macro_version='2.4.6'
5729macro_revision='2.4.6'
b0322a85
CE
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
d50284c4 5743ltmain=$ac_aux_dir/ltmain.sh
b0322a85
CE
5744
5745# Make sure we can run config.sub.
5746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5748
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5750$as_echo_n "checking build system type... " >&6; }
5751if ${ac_cv_build+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753else
5754 ac_build_alias=$build_alias
5755test "x$ac_build_alias" = x &&
5756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5757test "x$ac_build_alias" = x &&
5758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5761
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5764$as_echo "$ac_cv_build" >&6; }
8d138742
CE
5765case $ac_cv_build in
5766*-*-*) ;;
b0322a85 5767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8d138742
CE
5768esac
5769build=$ac_cv_build
5770ac_save_IFS=$IFS; IFS='-'
5771set x $ac_cv_build
5772shift
5773build_cpu=$1
5774build_vendor=$2
5775shift; shift
5776# Remember, the first character of IFS is used to create $*,
5777# except with old shells:
5778build_os=$*
5779IFS=$ac_save_IFS
5780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
dd184caf 5781
d9898ee8 5782
b0322a85 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 5784$as_echo_n "checking host system type... " >&6; }
b0322a85 5785if ${ac_cv_host+:} false; then :
8d138742 5786 $as_echo_n "(cached) " >&6
d9898ee8 5787else
8d138742
CE
5788 if test "x$host_alias" = x; then
5789 ac_cv_host=$ac_cv_build
5790else
5791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 5792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
d9898ee8 5793fi
5794
d9898ee8 5795fi
b0322a85 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742
CE
5797$as_echo "$ac_cv_host" >&6; }
5798case $ac_cv_host in
5799*-*-*) ;;
b0322a85 5800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8d138742
CE
5801esac
5802host=$ac_cv_host
5803ac_save_IFS=$IFS; IFS='-'
5804set x $ac_cv_host
5805shift
5806host_cpu=$1
5807host_vendor=$2
5808shift; shift
5809# Remember, the first character of IFS is used to create $*,
5810# except with old shells:
5811host_os=$*
5812IFS=$ac_save_IFS
5813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
d9898ee8 5814
5815
b0322a85
CE
5816# Backslashify metacharacters that are still active within
5817# double-quoted strings.
5818sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5819
5820# Same as above, but do not quote variable references.
5821double_quote_subst='s/\(["`\\]\)/\\\1/g'
5822
5823# Sed substitution to delay expansion of an escaped shell variable in a
5824# double_quote_subst'ed string.
5825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5826
5827# Sed substitution to delay expansion of an escaped single quote.
5828delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5829
5830# Sed substitution to avoid accidental globbing in evaled expressions
5831no_glob_subst='s/\*/\\\*/g'
5832
5833ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5834ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5836
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5838$as_echo_n "checking how to print strings... " >&6; }
5839# Test print first, because it will be a builtin if present.
5840if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5841 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5842 ECHO='print -r --'
5843elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5844 ECHO='printf %s\n'
5845else
5846 # Use this function as a fallback that always works.
5847 func_fallback_echo ()
5848 {
5849 eval 'cat <<_LTECHO_EOF
5850$1
5851_LTECHO_EOF'
5852 }
5853 ECHO='func_fallback_echo'
5854fi
5855
5856# func_echo_all arg...
5857# Invoke $ECHO with all args, space-separated.
5858func_echo_all ()
5859{
5860 $ECHO ""
5861}
5862
d50284c4 5863case $ECHO in
b0322a85
CE
5864 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5865$as_echo "printf" >&6; } ;;
5866 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5867$as_echo "print -r" >&6; } ;;
5868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5869$as_echo "cat" >&6; } ;;
5870esac
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 5886$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 5887if ${ac_cv_path_SED+:} false; then :
8d138742
CE
5888 $as_echo_n "(cached) " >&6
5889else
5890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5891 for ac_i in 1 2 3 4 5 6 7; do
5892 ac_script="$ac_script$as_nl$ac_script"
5893 done
5894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 5895 { ac_script=; unset ac_script;}
8d138742
CE
5896 if test -z "$SED"; then
5897 ac_path_SED_found=false
5898 # Loop through the user's path and test for each of PROGNAME-LIST
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
b0322a85 5904 for ac_prog in sed gsed; do
8d138742
CE
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5907 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
5908# Check for GNU ac_path_SED and select it if it is found.
5909 # Check for GNU $ac_path_SED
5910case `"$ac_path_SED" --version 2>&1` in
5911*GNU*)
5912 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5913*)
5914 ac_count=0
5915 $as_echo_n 0123456789 >"conftest.in"
5916 while :
5917 do
5918 cat "conftest.in" "conftest.in" >"conftest.tmp"
5919 mv "conftest.tmp" "conftest.in"
5920 cp "conftest.in" "conftest.nl"
5921 $as_echo '' >> "conftest.nl"
5922 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5924 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
5925 if test $ac_count -gt ${ac_path_SED_max-0}; then
5926 # Best one so far, save it but keep looking for a better one
5927 ac_cv_path_SED="$ac_path_SED"
5928 ac_path_SED_max=$ac_count
5929 fi
5930 # 10*(2^10) chars as input seems more than enough
5931 test $ac_count -gt 10 && break
5932 done
5933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5934esac
5935
5936 $ac_path_SED_found && break 3
5937 done
5938 done
b0322a85 5939 done
dd184caf 5940IFS=$as_save_IFS
8d138742 5941 if test -z "$ac_cv_path_SED"; then
b0322a85 5942 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8d138742 5943 fi
d9898ee8 5944else
8d138742 5945 ac_cv_path_SED=$SED
d9898ee8 5946fi
5947
d9898ee8 5948fi
b0322a85 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
5950$as_echo "$ac_cv_path_SED" >&6; }
5951 SED="$ac_cv_path_SED"
5952 rm -f conftest.sed
d9898ee8 5953
8d138742
CE
5954test -z "$SED" && SED=sed
5955Xsed="$SED -e 1s/^X//"
d9898ee8 5956
dd184caf 5957
d9898ee8 5958
d9898ee8 5959
5960
d9898ee8 5961
d9898ee8 5962
d9898ee8 5963
dd184caf 5964
d9898ee8 5965
d9898ee8 5966
b0322a85 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 5968$as_echo_n "checking for fgrep... " >&6; }
b0322a85 5969if ${ac_cv_path_FGREP+:} false; then :
8d138742 5970 $as_echo_n "(cached) " >&6
d9898ee8 5971else
8d138742
CE
5972 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5973 then ac_cv_path_FGREP="$GREP -F"
5974 else
5975 if test -z "$FGREP"; then
5976 ac_path_FGREP_found=false
5977 # Loop through the user's path and test for each of PROGNAME-LIST
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
b0322a85 5983 for ac_prog in fgrep; do
8d138742
CE
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5986 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
5987# Check for GNU ac_path_FGREP and select it if it is found.
5988 # Check for GNU $ac_path_FGREP
5989case `"$ac_path_FGREP" --version 2>&1` in
5990*GNU*)
5991 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5992*)
5993 ac_count=0
5994 $as_echo_n 0123456789 >"conftest.in"
5995 while :
5996 do
5997 cat "conftest.in" "conftest.in" >"conftest.tmp"
5998 mv "conftest.tmp" "conftest.in"
5999 cp "conftest.in" "conftest.nl"
6000 $as_echo 'FGREP' >> "conftest.nl"
6001 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 6003 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
6004 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6005 # Best one so far, save it but keep looking for a better one
6006 ac_cv_path_FGREP="$ac_path_FGREP"
6007 ac_path_FGREP_max=$ac_count
6008 fi
6009 # 10*(2^10) chars as input seems more than enough
6010 test $ac_count -gt 10 && break
6011 done
6012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6013esac
d9898ee8 6014
8d138742
CE
6015 $ac_path_FGREP_found && break 3
6016 done
6017 done
b0322a85 6018 done
8d138742
CE
6019IFS=$as_save_IFS
6020 if test -z "$ac_cv_path_FGREP"; then
b0322a85 6021 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d9898ee8 6022 fi
6023else
8d138742 6024 ac_cv_path_FGREP=$FGREP
d9898ee8 6025fi
6026
8d138742
CE
6027 fi
6028fi
b0322a85 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
6030$as_echo "$ac_cv_path_FGREP" >&6; }
6031 FGREP="$ac_cv_path_FGREP"
d9898ee8 6032
d9898ee8 6033
8d138742 6034test -z "$GREP" && GREP=grep
d9898ee8 6035
d9898ee8 6036
d9898ee8 6037
d9898ee8 6038
d9898ee8 6039
d9898ee8 6040
d9898ee8 6041
d9898ee8 6042
d9898ee8 6043
d9898ee8 6044
6045
6046
6047
ac40fd9e 6048
d9898ee8 6049
d9898ee8 6050
d9898ee8 6051
d9898ee8 6052
d9898ee8 6053
8d138742 6054# Check whether --with-gnu-ld was given.
b0322a85 6055if test "${with_gnu_ld+set}" = set; then :
d50284c4 6056 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8d138742
CE
6057else
6058 with_gnu_ld=no
6059fi
d9898ee8 6060
8d138742 6061ac_prog=ld
d50284c4 6062if test yes = "$GCC"; then
8d138742 6063 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742
CE
6065$as_echo_n "checking for ld used by $CC... " >&6; }
6066 case $host in
6067 *-*-mingw*)
d50284c4 6068 # gcc leaves a trailing carriage return, which upsets mingw
8d138742
CE
6069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6070 *)
6071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6072 esac
6073 case $ac_prog in
6074 # Accept absolute paths.
6075 [\\/]* | ?:[\\/]*)
6076 re_direlt='/[^/][^/]*/\.\./'
6077 # Canonicalize the pathname of ld
6078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6081 done
d50284c4 6082 test -z "$LD" && LD=$ac_prog
8d138742
CE
6083 ;;
6084 "")
6085 # If it fails, then pretend we aren't using GCC.
6086 ac_prog=ld
6087 ;;
6088 *)
6089 # If it is relative, then search for the first ld in PATH.
6090 with_gnu_ld=unknown
6091 ;;
6092 esac
d50284c4 6093elif test yes = "$with_gnu_ld"; then
b0322a85 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742
CE
6095$as_echo_n "checking for GNU ld... " >&6; }
6096else
b0322a85 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742
CE
6098$as_echo_n "checking for non-GNU ld... " >&6; }
6099fi
b0322a85 6100if ${lt_cv_path_LD+:} false; then :
8d138742
CE
6101 $as_echo_n "(cached) " >&6
6102else
6103 if test -z "$LD"; then
d50284c4 6104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742 6105 for ac_dir in $PATH; do
d50284c4 6106 IFS=$lt_save_ifs
8d138742
CE
6107 test -z "$ac_dir" && ac_dir=.
6108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 6109 lt_cv_path_LD=$ac_dir/$ac_prog
8d138742
CE
6110 # Check to see if the program is GNU ld. I'd rather use --version,
6111 # but apparently some variants of GNU ld only accept -v.
6112 # Break only if it was the GNU/non-GNU ld that we prefer.
6113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6114 *GNU* | *'with BFD'*)
d50284c4 6115 test no != "$with_gnu_ld" && break
8d138742
CE
6116 ;;
6117 *)
d50284c4 6118 test yes != "$with_gnu_ld" && break
8d138742
CE
6119 ;;
6120 esac
6121 fi
6122 done
d50284c4 6123 IFS=$lt_save_ifs
8d138742 6124else
d50284c4 6125 lt_cv_path_LD=$LD # Let the user override the test with a path.
8d138742
CE
6126fi
6127fi
d9898ee8 6128
d50284c4 6129LD=$lt_cv_path_LD
8d138742 6130if test -n "$LD"; then
b0322a85 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742
CE
6132$as_echo "$LD" >&6; }
6133else
b0322a85 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6135$as_echo "no" >&6; }
6136fi
b0322a85
CE
6137test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 6139$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 6140if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742
CE
6141 $as_echo_n "(cached) " >&6
6142else
6143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6144case `$LD -v 2>&1 </dev/null` in
d9898ee8 6145*GNU* | *'with BFD'*)
8d138742
CE
6146 lt_cv_prog_gnu_ld=yes
6147 ;;
6148*)
6149 lt_cv_prog_gnu_ld=no
6150 ;;
d9898ee8 6151esac
8d138742 6152fi
b0322a85 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742
CE
6154$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6155with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 6156
d9898ee8 6157
d9898ee8 6158
d9898ee8 6159
d9898ee8 6160
d9898ee8 6161
d9898ee8 6162
d9898ee8 6163
d9898ee8 6164
b0322a85 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 6166$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 6167if ${lt_cv_path_NM+:} false; then :
8d138742
CE
6168 $as_echo_n "(cached) " >&6
6169else
6170 if test -n "$NM"; then
6171 # Let the user override the test.
d50284c4 6172 lt_cv_path_NM=$NM
8d138742 6173else
d50284c4 6174 lt_nm_to_check=${ac_tool_prefix}nm
8d138742
CE
6175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6176 lt_nm_to_check="$lt_nm_to_check nm"
d9898ee8 6177 fi
8d138742 6178 for lt_tmp_nm in $lt_nm_to_check; do
d50284c4 6179 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742 6180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
d50284c4 6181 IFS=$lt_save_ifs
8d138742 6182 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
6183 tmp_nm=$ac_dir/$lt_tmp_nm
6184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8d138742 6185 # Check to see if the nm accepts a BSD-compat flag.
d50284c4 6186 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8d138742
CE
6187 # nm: unknown option "B" ignored
6188 # Tru64's nm complains that /dev/null is an invalid object file
d50284c4
CE
6189 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6190 case $build_os in
6191 mingw*) lt_bad_file=conftest.nm/nofile ;;
6192 *) lt_bad_file=/dev/null ;;
6193 esac
6194 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6195 *$lt_bad_file* | *'Invalid file or object type'*)
8d138742 6196 lt_cv_path_NM="$tmp_nm -B"
d50284c4 6197 break 2
8d138742
CE
6198 ;;
6199 *)
6200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6201 */dev/null*)
6202 lt_cv_path_NM="$tmp_nm -p"
d50284c4 6203 break 2
8d138742
CE
6204 ;;
6205 *)
6206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6207 continue # so that we can try to find one that supports BSD flags
6208 ;;
6209 esac
6210 ;;
6211 esac
6212 fi
6213 done
d50284c4 6214 IFS=$lt_save_ifs
8d138742
CE
6215 done
6216 : ${lt_cv_path_NM=no}
6217fi
6218fi
b0322a85 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742 6220$as_echo "$lt_cv_path_NM" >&6; }
d50284c4
CE
6221if test no != "$lt_cv_path_NM"; then
6222 NM=$lt_cv_path_NM
8d138742
CE
6223else
6224 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
6225 if test -n "$DUMPBIN"; then :
6226 # Let the user override the test.
6227 else
6228 if test -n "$ac_tool_prefix"; then
6229 for ac_prog in dumpbin "link -dump"
8d138742
CE
6230 do
6231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6234$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6235if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -n "$DUMPBIN"; then
6239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
b0322a85
CE
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6248 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6250 break 2
d9898ee8 6251 fi
6252done
b0322a85 6253 done
8d138742 6254IFS=$as_save_IFS
d9898ee8 6255
6256fi
d9898ee8 6257fi
8d138742
CE
6258DUMPBIN=$ac_cv_prog_DUMPBIN
6259if test -n "$DUMPBIN"; then
b0322a85 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 6261$as_echo "$DUMPBIN" >&6; }
d9898ee8 6262else
b0322a85 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6264$as_echo "no" >&6; }
d9898ee8 6265fi
6266
8d138742
CE
6267
6268 test -n "$DUMPBIN" && break
6269 done
6270fi
6271if test -z "$DUMPBIN"; then
6272 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 6273 for ac_prog in dumpbin "link -dump"
8d138742
CE
6274do
6275 # Extract the first word of "$ac_prog", so it can be a program name with args.
6276set dummy $ac_prog; ac_word=$2
b0322a85 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6278$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6279if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742 6280 $as_echo_n "(cached) " >&6
d9898ee8 6281else
8d138742
CE
6282 if test -n "$ac_ct_DUMPBIN"; then
6283 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d9898ee8 6284else
8d138742
CE
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
b0322a85
CE
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6292 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6294 break 2
6295 fi
6296done
b0322a85 6297 done
8d138742
CE
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6303if test -n "$ac_ct_DUMPBIN"; then
b0322a85 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
6305$as_echo "$ac_ct_DUMPBIN" >&6; }
6306else
b0322a85 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312 test -n "$ac_ct_DUMPBIN" && break
6313done
6314
6315 if test "x$ac_ct_DUMPBIN" = x; then
6316 DUMPBIN=":"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319yes:)
b0322a85 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322ac_tool_warned=yes ;;
6323esac
6324 DUMPBIN=$ac_ct_DUMPBIN
6325 fi
6326fi
6327
d50284c4 6328 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b0322a85 6329 *COFF*)
d50284c4 6330 DUMPBIN="$DUMPBIN -symbols -headers"
b0322a85
CE
6331 ;;
6332 *)
6333 DUMPBIN=:
6334 ;;
6335 esac
6336 fi
8d138742 6337
d50284c4
CE
6338 if test : != "$DUMPBIN"; then
6339 NM=$DUMPBIN
8d138742
CE
6340 fi
6341fi
6342test -z "$NM" && NM=nm
6343
6344
6345
6346
6347
6348
b0322a85 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 6350$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 6351if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
6352 $as_echo_n "(cached) " >&6
6353else
6354 lt_cv_nm_interface="BSD nm"
6355 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 6356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
6357 (eval "$ac_compile" 2>conftest.err)
6358 cat conftest.err >&5
b0322a85 6359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
6360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6361 cat conftest.err >&5
b0322a85 6362 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
6363 cat conftest.out >&5
6364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6365 lt_cv_nm_interface="MS dumpbin"
d9898ee8 6366 fi
8d138742
CE
6367 rm -f conftest*
6368fi
b0322a85 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742
CE
6370$as_echo "$lt_cv_nm_interface" >&6; }
6371
b0322a85 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742
CE
6373$as_echo_n "checking whether ln -s works... " >&6; }
6374LN_S=$as_ln_s
6375if test "$LN_S" = "ln -s"; then
b0322a85 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
6377$as_echo "yes" >&6; }
6378else
b0322a85 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742
CE
6380$as_echo "no, using $LN_S" >&6; }
6381fi
6382
6383# find the maximum length of command line arguments
b0322a85 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 6385$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 6386if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
6387 $as_echo_n "(cached) " >&6
6388else
6389 i=0
d50284c4 6390 teststring=ABCD
8d138742
CE
6391
6392 case $build_os in
6393 msdosdjgpp*)
6394 # On DJGPP, this test can blow up pretty badly due to problems in libc
6395 # (any single argument exceeding 2000 bytes causes a buffer overrun
6396 # during glob expansion). Even if it were fixed, the result of this
6397 # check would be larger than it should be.
6398 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6399 ;;
6400
6401 gnu*)
6402 # Under GNU Hurd, this test is not required because there is
6403 # no limit to the length of command line arguments.
6404 # Libtool will interpret -1 as no limit whatsoever
6405 lt_cv_sys_max_cmd_len=-1;
6406 ;;
6407
6408 cygwin* | mingw* | cegcc*)
6409 # On Win9x/ME, this test blows up -- it succeeds, but takes
6410 # about 5 minutes as the teststring grows exponentially.
6411 # Worse, since 9x/ME are not pre-emptively multitasking,
6412 # you end up with a "frozen" computer, even though with patience
6413 # the test eventually succeeds (with a max line length of 256k).
6414 # Instead, let's just punt: use the minimum linelength reported by
6415 # all of the supported platforms: 8192 (on NT/2K/XP).
6416 lt_cv_sys_max_cmd_len=8192;
6417 ;;
6418
b0322a85
CE
6419 mint*)
6420 # On MiNT this can take a long time and run out of memory.
6421 lt_cv_sys_max_cmd_len=8192;
6422 ;;
6423
8d138742
CE
6424 amigaos*)
6425 # On AmigaOS with pdksh, this test takes hours, literally.
6426 # So we just punt and use a minimum line length of 8192.
6427 lt_cv_sys_max_cmd_len=8192;
6428 ;;
6429
d50284c4 6430 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8d138742
CE
6431 # This has been around since 386BSD, at least. Likely further.
6432 if test -x /sbin/sysctl; then
6433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6434 elif test -x /usr/sbin/sysctl; then
6435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6436 else
6437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6438 fi
6439 # And add a safety zone
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6442 ;;
6443
6444 interix*)
6445 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6446 lt_cv_sys_max_cmd_len=196608
6447 ;;
6448
b0322a85
CE
6449 os2*)
6450 # The test takes a long time on OS/2.
6451 lt_cv_sys_max_cmd_len=8192
6452 ;;
6453
8d138742
CE
6454 osf*)
6455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6457 # nice to cause kernel panics so lets avoid the loop below.
6458 # First set a reasonable default.
6459 lt_cv_sys_max_cmd_len=16384
6460 #
6461 if test -x /sbin/sysconfig; then
6462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6464 esac
6465 fi
6466 ;;
6467 sco3.2v5*)
6468 lt_cv_sys_max_cmd_len=102400
6469 ;;
6470 sysv5* | sco5v6* | sysv4.2uw2*)
6471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6472 if test -n "$kargmax"; then
6473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6474 else
6475 lt_cv_sys_max_cmd_len=32768
6476 fi
6477 ;;
6478 *)
6479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
d50284c4
CE
6480 if test -n "$lt_cv_sys_max_cmd_len" && \
6481 test undefined != "$lt_cv_sys_max_cmd_len"; then
8d138742
CE
6482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6484 else
6485 # Make teststring a little bigger before we do anything with it.
6486 # a 1K string should be a reasonable start.
d50284c4 6487 for i in 1 2 3 4 5 6 7 8; do
8d138742
CE
6488 teststring=$teststring$teststring
6489 done
6490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6491 # If test is not a shell built-in, we'll probably end up computing a
6492 # maximum length that is only half of the actual maximum length, but
6493 # we can't tell.
d50284c4 6494 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b0322a85 6495 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d50284c4 6496 test 17 != "$i" # 1/2 MB should be enough
8d138742
CE
6497 do
6498 i=`expr $i + 1`
6499 teststring=$teststring$teststring
6500 done
6501 # Only check the string length outside the loop.
6502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6503 teststring=
6504 # Add a significant safety factor because C++ compilers can tack on
6505 # massive amounts of additional arguments before passing them to the
6506 # linker. It appears as though 1/2 is a usable value.
6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6508 fi
6509 ;;
6510 esac
6511
6512fi
6513
d50284c4 6514if test -n "$lt_cv_sys_max_cmd_len"; then
b0322a85 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
6516$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6517else
b0322a85 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742
CE
6519$as_echo "none" >&6; }
6520fi
6521max_cmd_len=$lt_cv_sys_max_cmd_len
6522
6523
6524
6525
6526
6527
6528: ${CP="cp -f"}
6529: ${MV="mv -f"}
6530: ${RM="rm -f"}
6531
8d138742
CE
6532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6533 lt_unset=unset
6534else
6535 lt_unset=false
6536fi
6537
6538
6539
6540
6541
6542# test EBCDIC or ASCII
6543case `echo X|tr X '\101'` in
6544 A) # ASCII based system
6545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6546 lt_SP2NL='tr \040 \012'
6547 lt_NL2SP='tr \015\012 \040\040'
6548 ;;
6549 *) # EBCDIC based system
6550 lt_SP2NL='tr \100 \n'
6551 lt_NL2SP='tr \r\n \100\100'
d9898ee8 6552 ;;
6553esac
6554
d9898ee8 6555
d9898ee8 6556
d9898ee8 6557
d9898ee8 6558
d9898ee8 6559
d9898ee8 6560
8d138742
CE
6561
6562
b0322a85
CE
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6564$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6565if ${lt_cv_to_host_file_cmd+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568 case $host in
6569 *-*-mingw* )
6570 case $build in
6571 *-*-mingw* ) # actually msys
6572 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6573 ;;
6574 *-*-cygwin* )
6575 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6576 ;;
6577 * ) # otherwise, assume *nix
6578 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6579 ;;
6580 esac
6581 ;;
6582 *-*-cygwin* )
6583 case $build in
6584 *-*-mingw* ) # actually msys
6585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6586 ;;
6587 *-*-cygwin* )
6588 lt_cv_to_host_file_cmd=func_convert_file_noop
6589 ;;
6590 * ) # otherwise, assume *nix
6591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6592 ;;
6593 esac
6594 ;;
6595 * ) # unhandled hosts (and "normal" native builds)
6596 lt_cv_to_host_file_cmd=func_convert_file_noop
6597 ;;
6598esac
6599
6600fi
6601
6602to_host_file_cmd=$lt_cv_to_host_file_cmd
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6604$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6605
6606
6607
6608
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6611$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6612if ${lt_cv_to_tool_file_cmd+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 #assume ordinary cross tools, or native build.
6616lt_cv_to_tool_file_cmd=func_convert_file_noop
6617case $host in
6618 *-*-mingw* )
6619 case $build in
6620 *-*-mingw* ) # actually msys
6621 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6622 ;;
6623 esac
6624 ;;
6625esac
6626
6627fi
6628
6629to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6631$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6632
6633
6634
6635
6636
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 6638$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 6639if ${lt_cv_ld_reload_flag+:} false; then :
8d138742
CE
6640 $as_echo_n "(cached) " >&6
6641else
6642 lt_cv_ld_reload_flag='-r'
6643fi
b0322a85 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
6645$as_echo "$lt_cv_ld_reload_flag" >&6; }
6646reload_flag=$lt_cv_ld_reload_flag
6647case $reload_flag in
6648"" | " "*) ;;
6649*) reload_flag=" $reload_flag" ;;
6650esac
6651reload_cmds='$LD$reload_flag -o $output$reload_objs'
6652case $host_os in
b0322a85 6653 cygwin* | mingw* | pw32* | cegcc*)
d50284c4 6654 if test yes != "$GCC"; then
b0322a85
CE
6655 reload_cmds=false
6656 fi
6657 ;;
8d138742 6658 darwin*)
d50284c4
CE
6659 if test yes = "$GCC"; then
6660 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8d138742
CE
6661 else
6662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6663 fi
6664 ;;
6665esac
6666
6667
6668
6669
6670
6671
6672
6673
d9898ee8 6674
6675if test -n "$ac_tool_prefix"; then
8d138742
CE
6676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6679$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6680if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 6681 $as_echo_n "(cached) " >&6
d9898ee8 6682else
8d138742
CE
6683 if test -n "$OBJDUMP"; then
6684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
b0322a85
CE
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6695 break 2
6696 fi
6697done
b0322a85 6698 done
dd184caf 6699IFS=$as_save_IFS
d9898ee8 6700
6701fi
6702fi
8d138742
CE
6703OBJDUMP=$ac_cv_prog_OBJDUMP
6704if test -n "$OBJDUMP"; then
b0322a85 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742 6706$as_echo "$OBJDUMP" >&6; }
d9898ee8 6707else
b0322a85 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6709$as_echo "no" >&6; }
d9898ee8 6710fi
6711
dd184caf 6712
d9898ee8 6713fi
8d138742
CE
6714if test -z "$ac_cv_prog_OBJDUMP"; then
6715 ac_ct_OBJDUMP=$OBJDUMP
6716 # Extract the first word of "objdump", so it can be a program name with args.
6717set dummy objdump; ac_word=$2
b0322a85 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6719$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6720if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 6721 $as_echo_n "(cached) " >&6
d9898ee8 6722else
8d138742
CE
6723 if test -n "$ac_ct_OBJDUMP"; then
6724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
b0322a85
CE
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6735 break 2
6736 fi
6737done
b0322a85 6738 done
dd184caf 6739IFS=$as_save_IFS
d9898ee8 6740
d9898ee8 6741fi
6742fi
8d138742
CE
6743ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6744if test -n "$ac_ct_OBJDUMP"; then
b0322a85 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 6746$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6747else
b0322a85 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6749$as_echo "no" >&6; }
d9898ee8 6750fi
6751
8d138742
CE
6752 if test "x$ac_ct_OBJDUMP" = x; then
6753 OBJDUMP="false"
dd184caf 6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
b0322a85 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6759ac_tool_warned=yes ;;
6760esac
8d138742 6761 OBJDUMP=$ac_ct_OBJDUMP
dd184caf 6762 fi
d9898ee8 6763else
8d138742 6764 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6765fi
6766
8d138742
CE
6767test -z "$OBJDUMP" && OBJDUMP=objdump
6768
6769
6770
6771
6772
6773
6774
6775
6776
b0322a85 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 6778$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 6779if ${lt_cv_deplibs_check_method+:} false; then :
8d138742
CE
6780 $as_echo_n "(cached) " >&6
6781else
6782 lt_cv_file_magic_cmd='$MAGIC_CMD'
6783lt_cv_file_magic_test_file=
6784lt_cv_deplibs_check_method='unknown'
6785# Need to set the preceding variable on all platforms that support
6786# interlibrary dependencies.
6787# 'none' -- dependencies not supported.
d50284c4 6788# 'unknown' -- same as none, but documents that we really don't know.
8d138742
CE
6789# 'pass_all' -- all dependencies passed with no checks.
6790# 'test_compile' -- check by making test program.
6791# 'file_magic [[regex]]' -- check by looking for files in library path
d50284c4
CE
6792# that responds to the $file_magic_cmd with a given extended regex.
6793# If you have 'file' or equivalent on your system and you're not sure
6794# whether 'pass_all' will *always* work, you probably want this one.
8d138742
CE
6795
6796case $host_os in
6797aix[4-9]*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800
6801beos*)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804
6805bsdi[45]*)
6806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6807 lt_cv_file_magic_cmd='/usr/bin/file -L'
6808 lt_cv_file_magic_test_file=/shlib/libc.so
6809 ;;
6810
6811cygwin*)
6812 # func_win32_libid is a shell function defined in ltmain.sh
6813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6814 lt_cv_file_magic_cmd='func_win32_libid'
6815 ;;
6816
6817mingw* | pw32*)
6818 # Base MSYS/MinGW do not provide the 'file' command needed by
6819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6820 # unless we find 'file', for example because we are cross-compiling.
d50284c4 6821 if ( file / ) >/dev/null 2>&1; then
8d138742
CE
6822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6823 lt_cv_file_magic_cmd='func_win32_libid'
6824 else
b0322a85
CE
6825 # Keep this pattern in sync with the one in func_win32_libid.
6826 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
6827 lt_cv_file_magic_cmd='$OBJDUMP -f'
6828 fi
6829 ;;
6830
b0322a85 6831cegcc*)
8d138742
CE
6832 # use the weaker test based on 'objdump'. See mingw*.
6833 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6834 lt_cv_file_magic_cmd='$OBJDUMP -f'
6835 ;;
6836
6837darwin* | rhapsody*)
6838 lt_cv_deplibs_check_method=pass_all
6839 ;;
6840
6841freebsd* | dragonfly*)
6842 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6843 case $host_cpu in
6844 i*86 )
6845 # Not sure whether the presence of OpenBSD here was a mistake.
6846 # Let's accept both of them until this is cleared up.
6847 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6848 lt_cv_file_magic_cmd=/usr/bin/file
6849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6850 ;;
6851 esac
6852 else
6853 lt_cv_deplibs_check_method=pass_all
6854 fi
6855 ;;
6856
b0322a85
CE
6857haiku*)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860
8d138742
CE
6861hpux10.20* | hpux11*)
6862 lt_cv_file_magic_cmd=/usr/bin/file
6863 case $host_cpu in
6864 ia64*)
6865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6866 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6867 ;;
6868 hppa*64*)
b0322a85 6869 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]'
8d138742
CE
6870 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6871 ;;
6872 *)
b0322a85 6873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
6874 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6875 ;;
6876 esac
6877 ;;
6878
6879interix[3-9]*)
6880 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6882 ;;
6883
6884irix5* | irix6* | nonstopux*)
6885 case $LD in
6886 *-32|*"-32 ") libmagic=32-bit;;
6887 *-n32|*"-n32 ") libmagic=N32;;
6888 *-64|*"-64 ") libmagic=64-bit;;
6889 *) libmagic=never-match;;
6890 esac
6891 lt_cv_deplibs_check_method=pass_all
6892 ;;
6893
b0322a85 6894# This must be glibc/ELF.
d50284c4 6895linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742
CE
6896 lt_cv_deplibs_check_method=pass_all
6897 ;;
6898
6899netbsd*)
6900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6902 else
6903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6904 fi
6905 ;;
6906
6907newos6*)
6908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6909 lt_cv_file_magic_cmd=/usr/bin/file
6910 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6911 ;;
6912
6913*nto* | *qnx*)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916
d50284c4
CE
6917openbsd* | bitrig*)
6918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742
CE
6919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6920 else
6921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6922 fi
6923 ;;
6924
6925osf3* | osf4* | osf5*)
6926 lt_cv_deplibs_check_method=pass_all
6927 ;;
6928
6929rdos*)
6930 lt_cv_deplibs_check_method=pass_all
6931 ;;
6932
6933solaris*)
6934 lt_cv_deplibs_check_method=pass_all
6935 ;;
6936
6937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6938 lt_cv_deplibs_check_method=pass_all
6939 ;;
6940
6941sysv4 | sysv4.3*)
6942 case $host_vendor in
6943 motorola)
6944 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]'
6945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6946 ;;
6947 ncr)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950 sequent)
6951 lt_cv_file_magic_cmd='/bin/file'
6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6953 ;;
6954 sni)
6955 lt_cv_file_magic_cmd='/bin/file'
6956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6957 lt_cv_file_magic_test_file=/lib/libc.so
6958 ;;
6959 siemens)
6960 lt_cv_deplibs_check_method=pass_all
6961 ;;
6962 pc)
6963 lt_cv_deplibs_check_method=pass_all
6964 ;;
6965 esac
6966 ;;
6967
6968tpf*)
6969 lt_cv_deplibs_check_method=pass_all
6970 ;;
d50284c4
CE
6971os2*)
6972 lt_cv_deplibs_check_method=pass_all
6973 ;;
8d138742
CE
6974esac
6975
6976fi
b0322a85 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8d138742 6978$as_echo "$lt_cv_deplibs_check_method" >&6; }
b0322a85
CE
6979
6980file_magic_glob=
6981want_nocaseglob=no
6982if test "$build" = "$host"; then
6983 case $host_os in
6984 mingw* | pw32*)
6985 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6986 want_nocaseglob=yes
6987 else
6988 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6989 fi
6990 ;;
6991 esac
6992fi
6993
8d138742
CE
6994file_magic_cmd=$lt_cv_file_magic_cmd
6995deplibs_check_method=$lt_cv_deplibs_check_method
6996test -z "$deplibs_check_method" && deplibs_check_method=unknown
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
b0322a85
CE
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
8d138742
CE
7017
7018
7019if test -n "$ac_tool_prefix"; then
b0322a85
CE
7020 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7021set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7023$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7024if ${ac_cv_prog_DLLTOOL+:} false; then :
8d138742
CE
7025 $as_echo_n "(cached) " >&6
7026else
b0322a85
CE
7027 if test -n "$DLLTOOL"; then
7028 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d9898ee8 7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
b0322a85
CE
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7039 break 2
7040 fi
7041done
b0322a85 7042 done
dd184caf 7043IFS=$as_save_IFS
d9898ee8 7044
7045fi
7046fi
b0322a85
CE
7047DLLTOOL=$ac_cv_prog_DLLTOOL
7048if test -n "$DLLTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7050$as_echo "$DLLTOOL" >&6; }
d9898ee8 7051else
b0322a85 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7053$as_echo "no" >&6; }
d9898ee8 7054fi
7055
dd184caf 7056
d9898ee8 7057fi
b0322a85
CE
7058if test -z "$ac_cv_prog_DLLTOOL"; then
7059 ac_ct_DLLTOOL=$DLLTOOL
7060 # Extract the first word of "dlltool", so it can be a program name with args.
7061set dummy dlltool; ac_word=$2
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7063$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7064if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8d138742 7065 $as_echo_n "(cached) " >&6
d9898ee8 7066else
b0322a85
CE
7067 if test -n "$ac_ct_DLLTOOL"; then
7068 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d9898ee8 7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
b0322a85
CE
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7079 break 2
7080 fi
7081done
b0322a85 7082 done
dd184caf 7083IFS=$as_save_IFS
d9898ee8 7084
d9898ee8 7085fi
7086fi
b0322a85
CE
7087ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7088if test -n "$ac_ct_DLLTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7090$as_echo "$ac_ct_DLLTOOL" >&6; }
d9898ee8 7091else
b0322a85 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7093$as_echo "no" >&6; }
d9898ee8 7094fi
7095
b0322a85
CE
7096 if test "x$ac_ct_DLLTOOL" = x; then
7097 DLLTOOL="false"
dd184caf 7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100yes:)
b0322a85 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7103ac_tool_warned=yes ;;
7104esac
b0322a85 7105 DLLTOOL=$ac_ct_DLLTOOL
dd184caf 7106 fi
d9898ee8 7107else
b0322a85 7108 DLLTOOL="$ac_cv_prog_DLLTOOL"
d9898ee8 7109fi
7110
b0322a85
CE
7111test -z "$DLLTOOL" && DLLTOOL=dlltool
7112
7113
7114
7115
7116
7117
7118
8d138742
CE
7119
7120
7121
b0322a85
CE
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7123$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7124if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126else
7127 lt_cv_sharedlib_from_linklib_cmd='unknown'
7128
7129case $host_os in
7130cygwin* | mingw* | pw32* | cegcc*)
d50284c4
CE
7131 # two different shell functions defined in ltmain.sh;
7132 # decide which one to use based on capabilities of $DLLTOOL
b0322a85
CE
7133 case `$DLLTOOL --help 2>&1` in
7134 *--identify-strict*)
7135 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7136 ;;
7137 *)
7138 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7139 ;;
7140 esac
7141 ;;
7142*)
7143 # fallback: assume linklib IS sharedlib
d50284c4 7144 lt_cv_sharedlib_from_linklib_cmd=$ECHO
b0322a85
CE
7145 ;;
7146esac
8d138742 7147
b0322a85
CE
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7150$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7151sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7152test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8d138742
CE
7153
7154
7155
7156
7157
7158
7159
7160if test -n "$ac_tool_prefix"; then
b0322a85
CE
7161 for ac_prog in ar
7162 do
7163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7166$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7167if ${ac_cv_prog_AR+:} false; then :
8d138742
CE
7168 $as_echo_n "(cached) " >&6
7169else
b0322a85
CE
7170 if test -n "$AR"; then
7171 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 7172else
7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
b0322a85
CE
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185 done
7186IFS=$as_save_IFS
7187
7188fi
7189fi
7190AR=$ac_cv_prog_AR
7191if test -n "$AR"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7193$as_echo "$AR" >&6; }
7194else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196$as_echo "no" >&6; }
7197fi
7198
7199
7200 test -n "$AR" && break
7201 done
7202fi
7203if test -z "$AR"; then
7204 ac_ct_AR=$AR
7205 for ac_prog in ar
7206do
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208set dummy $ac_prog; ac_word=$2
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
7211if ${ac_cv_prog_ac_ct_AR+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213else
7214 if test -n "$ac_ct_AR"; then
7215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_AR="$ac_prog"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7226 break 2
7227 fi
7228done
b0322a85
CE
7229 done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_AR=$ac_cv_prog_ac_ct_AR
7235if test -n "$ac_ct_AR"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7237$as_echo "$ac_ct_AR" >&6; }
7238else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
7241fi
7242
7243
7244 test -n "$ac_ct_AR" && break
7245done
7246
7247 if test "x$ac_ct_AR" = x; then
7248 AR="false"
7249 else
7250 case $cross_compiling:$ac_tool_warned in
7251yes:)
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254ac_tool_warned=yes ;;
7255esac
7256 AR=$ac_ct_AR
7257 fi
7258fi
7259
7260: ${AR=ar}
7261: ${AR_FLAGS=cru}
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7274$as_echo_n "checking for archiver @FILE support... " >&6; }
7275if ${lt_cv_ar_at_file+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 lt_cv_ar_at_file=no
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h. */
7281
7282int
7283main ()
7284{
7285
7286 ;
7287 return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"; then :
7291 echo conftest.$ac_objext > conftest.lst
7292 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7294 (eval $lt_ar_try) 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }
d50284c4 7298 if test 0 -eq "$ac_status"; then
b0322a85
CE
7299 # Ensure the archiver fails upon bogus file names.
7300 rm -f conftest.$ac_objext libconftest.a
7301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7302 (eval $lt_ar_try) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }
d50284c4 7306 if test 0 -ne "$ac_status"; then
b0322a85
CE
7307 lt_cv_ar_at_file=@
7308 fi
7309 fi
7310 rm -f conftest.* libconftest.a
7311
7312fi
7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7317$as_echo "$lt_cv_ar_at_file" >&6; }
7318
d50284c4 7319if test no = "$lt_cv_ar_at_file"; then
b0322a85
CE
7320 archiver_list_spec=
7321else
7322 archiver_list_spec=$lt_cv_ar_at_file
7323fi
7324
7325
7326
7327
7328
7329
7330
7331if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}strip; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_prog_STRIP+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338else
7339 if test -n "$STRIP"; then
7340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
d9898ee8 7353done
b0322a85 7354 done
dd184caf 7355IFS=$as_save_IFS
d9898ee8 7356
7357fi
7358fi
7359STRIP=$ac_cv_prog_STRIP
7360if test -n "$STRIP"; then
b0322a85 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 7362$as_echo "$STRIP" >&6; }
d9898ee8 7363else
b0322a85 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7365$as_echo "no" >&6; }
d9898ee8 7366fi
7367
dd184caf 7368
d9898ee8 7369fi
7370if test -z "$ac_cv_prog_STRIP"; then
7371 ac_ct_STRIP=$STRIP
7372 # Extract the first word of "strip", so it can be a program name with args.
7373set dummy strip; ac_word=$2
b0322a85 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7375$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7376if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 7377 $as_echo_n "(cached) " >&6
d9898ee8 7378else
7379 if test -n "$ac_ct_STRIP"; then
7380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
b0322a85
CE
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 7389 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7391 break 2
7392 fi
7393done
b0322a85 7394 done
dd184caf 7395IFS=$as_save_IFS
d9898ee8 7396
d9898ee8 7397fi
7398fi
7399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7400if test -n "$ac_ct_STRIP"; then
b0322a85 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 7402$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 7403else
b0322a85 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7405$as_echo "no" >&6; }
d9898ee8 7406fi
7407
dd184caf 7408 if test "x$ac_ct_STRIP" = x; then
7409 STRIP=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412yes:)
b0322a85 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7415ac_tool_warned=yes ;;
7416esac
7417 STRIP=$ac_ct_STRIP
7418 fi
d9898ee8 7419else
7420 STRIP="$ac_cv_prog_STRIP"
7421fi
7422
8d138742 7423test -z "$STRIP" && STRIP=:
d9898ee8 7424
d9898ee8 7425
8d138742
CE
7426
7427
7428
7429
7430if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7432set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7434$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7435if ${ac_cv_prog_RANLIB+:} false; then :
8d138742
CE
7436 $as_echo_n "(cached) " >&6
7437else
7438 if test -n "$RANLIB"; then
7439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
b0322a85
CE
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7450 break 2
7451 fi
7452done
b0322a85 7453 done
8d138742
CE
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458RANLIB=$ac_cv_prog_RANLIB
7459if test -n "$RANLIB"; then
b0322a85 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
7461$as_echo "$RANLIB" >&6; }
7462else
b0322a85 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7464$as_echo "no" >&6; }
7465fi
7466
7467
7468fi
7469if test -z "$ac_cv_prog_RANLIB"; then
7470 ac_ct_RANLIB=$RANLIB
7471 # Extract the first word of "ranlib", so it can be a program name with args.
7472set dummy ranlib; ac_word=$2
b0322a85 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7474$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7475if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
7476 $as_echo_n "(cached) " >&6
7477else
7478 if test -n "$ac_ct_RANLIB"; then
7479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
b0322a85
CE
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7488 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7490 break 2
7491 fi
7492done
b0322a85 7493 done
8d138742
CE
7494IFS=$as_save_IFS
7495
7496fi
7497fi
7498ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7499if test -n "$ac_ct_RANLIB"; then
b0322a85 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
7501$as_echo "$ac_ct_RANLIB" >&6; }
7502else
b0322a85 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7504$as_echo "no" >&6; }
7505fi
7506
7507 if test "x$ac_ct_RANLIB" = x; then
7508 RANLIB=":"
7509 else
7510 case $cross_compiling:$ac_tool_warned in
7511yes:)
b0322a85 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514ac_tool_warned=yes ;;
7515esac
7516 RANLIB=$ac_ct_RANLIB
7517 fi
7518else
7519 RANLIB="$ac_cv_prog_RANLIB"
7520fi
7521
d9898ee8 7522test -z "$RANLIB" && RANLIB=:
8d138742
CE
7523
7524
7525
7526
7527
d9898ee8 7528
7529# Determine commands to create old-style static archives.
ac40fd9e 7530old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7531old_postinstall_cmds='chmod 644 $oldlib'
7532old_postuninstall_cmds=
7533
7534if test -n "$RANLIB"; then
7535 case $host_os in
d50284c4 7536 bitrig* | openbsd*)
b0322a85 7537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d9898ee8 7538 ;;
7539 *)
b0322a85 7540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 7541 ;;
7542 esac
b0322a85 7543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 7544fi
7545
b0322a85
CE
7546case $host_os in
7547 darwin*)
7548 lock_old_archive_extraction=yes ;;
7549 *)
7550 lock_old_archive_extraction=no ;;
7551esac
7552
7553
7554
7555
7556
7557
d9898ee8 7558
7559
d9898ee8 7560
d9898ee8 7561
d9898ee8 7562
d9898ee8 7563
d9898ee8 7564
d9898ee8 7565
d9898ee8 7566
d9898ee8 7567
d9898ee8 7568
d9898ee8 7569
d9898ee8 7570
d9898ee8 7571
d9898ee8 7572
7573
dd184caf 7574
d9898ee8 7575
d9898ee8 7576
7577
d9898ee8 7578
d9898ee8 7579
d9898ee8 7580
8d138742
CE
7581
7582
7583
7584
7585
7586
7587
7588
d9898ee8 7589
7590
7591# If no C compiler was specified, use CC.
7592LTCC=${LTCC-"$CC"}
7593
7594# If no C compiler flags were specified, use CFLAGS.
7595LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7596
7597# Allow CC to be a program name with arguments.
7598compiler=$CC
7599
7600
8d138742 7601# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 7603$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 7604if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742
CE
7605 $as_echo_n "(cached) " >&6
7606else
d9898ee8 7607
8d138742
CE
7608# These are sane defaults that work on at least a few old systems.
7609# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 7610
8d138742
CE
7611# Character class describing NM global symbol codes.
7612symcode='[BCDEGRST]'
d9898ee8 7613
8d138742
CE
7614# Regexp to match symbols that can be accessed directly from C.
7615sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 7616
8d138742
CE
7617# Define system-specific variables.
7618case $host_os in
7619aix*)
7620 symcode='[BCDT]'
7621 ;;
7622cygwin* | mingw* | pw32* | cegcc*)
7623 symcode='[ABCDGISTW]'
7624 ;;
7625hpux*)
d50284c4 7626 if test ia64 = "$host_cpu"; then
8d138742
CE
7627 symcode='[ABCDEGRST]'
7628 fi
7629 ;;
7630irix* | nonstopux*)
7631 symcode='[BCDEGRST]'
7632 ;;
7633osf*)
7634 symcode='[BCDEGQRST]'
7635 ;;
7636solaris*)
7637 symcode='[BDRT]'
7638 ;;
7639sco3.2v5*)
7640 symcode='[DT]'
7641 ;;
7642sysv4.2uw2*)
7643 symcode='[DT]'
7644 ;;
7645sysv5* | sco5v6* | unixware* | OpenUNIX*)
7646 symcode='[ABDT]'
7647 ;;
7648sysv4)
7649 symcode='[DFNSTU]'
7650 ;;
7651esac
d9898ee8 7652
8d138742
CE
7653# If we're using GNU nm, then use its standard symbol codes.
7654case `$NM -V 2>&1` in
7655*GNU* | *'with BFD'*)
7656 symcode='[ABCDGIRSTW]' ;;
7657esac
d9898ee8 7658
d50284c4
CE
7659if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7660 # Gets list of data symbols to import.
7661 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7662 # Adjust the below global symbol transforms to fixup imported variables.
7663 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7664 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7665 lt_c_name_lib_hook="\
7666 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7667 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7668else
7669 # Disable hooks by default.
7670 lt_cv_sys_global_symbol_to_import=
7671 lt_cdecl_hook=
7672 lt_c_name_hook=
7673 lt_c_name_lib_hook=
7674fi
7675
8d138742
CE
7676# Transform an extracted symbol line into a proper C declaration.
7677# Some systems (esp. on ia64) link data and code symbols differently,
7678# so use this general approach.
d50284c4
CE
7679lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7680$lt_cdecl_hook\
7681" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7682" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 7683
8d138742 7684# Transform an extracted symbol line into symbol name and symbol address
d50284c4
CE
7685lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7686$lt_c_name_hook\
7687" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7688" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7689
7690# Transform an extracted symbol line into symbol name with lib prefix and
7691# symbol address.
7692lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7693$lt_c_name_lib_hook\
7694" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7695" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7696" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
d9898ee8 7697
8d138742
CE
7698# Handle CRLF in mingw tool chain
7699opt_cr=
7700case $build_os in
7701mingw*)
7702 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7703 ;;
7704esac
d9898ee8 7705
8d138742
CE
7706# Try without a prefix underscore, then with it.
7707for ac_symprfx in "" "_"; do
d9898ee8 7708
8d138742
CE
7709 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7710 symxfrm="\\1 $ac_symprfx\\2 \\2"
d9898ee8 7711
8d138742
CE
7712 # Write the raw and C identifiers.
7713 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
d50284c4
CE
7714 # Fake it for dumpbin and say T for any non-static function,
7715 # D for any global variable and I for any imported variable.
8d138742
CE
7716 # Also find C++ and __fastcall symbols from MSVC++,
7717 # which start with @ or ?.
7718 lt_cv_sys_global_symbol_pipe="$AWK '"\
7719" {last_section=section; section=\$ 3};"\
b0322a85 7720" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742 7721" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
d50284c4
CE
7722" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7723" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7724" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8d138742
CE
7725" \$ 0!~/External *\|/{next};"\
7726" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7727" {if(hide[section]) next};"\
d50284c4
CE
7728" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7729" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7730" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7731" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8d138742
CE
7732" ' prfx=^$ac_symprfx"
7733 else
7734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7735 fi
b0322a85 7736 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 7737
8d138742
CE
7738 # Check to see that the pipe works correctly.
7739 pipe_works=no
d9898ee8 7740
8d138742
CE
7741 rm -f conftest*
7742 cat > conftest.$ac_ext <<_LT_EOF
7743#ifdef __cplusplus
7744extern "C" {
7745#endif
7746char nm_test_var;
7747void nm_test_func(void);
7748void nm_test_func(void){}
7749#ifdef __cplusplus
7750}
7751#endif
7752int main(){nm_test_var='a';nm_test_func();return(0);}
7753_LT_EOF
d9898ee8 7754
b0322a85 7755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7756 (eval $ac_compile) 2>&5
7757 ac_status=$?
b0322a85
CE
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; }; then
8d138742
CE
7760 # Now try to grab the symbols.
7761 nlist=conftest.nm
b0322a85
CE
7762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7763 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8d138742 7764 ac_status=$?
b0322a85
CE
7765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
7767 # Try sorting and uniquifying the output.
7768 if sort "$nlist" | uniq > "$nlist"T; then
7769 mv -f "$nlist"T "$nlist"
7770 else
7771 rm -f "$nlist"T
d9898ee8 7772 fi
d9898ee8 7773
8d138742
CE
7774 # Make sure that we snagged all the symbols we need.
7775 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7776 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7777 cat <<_LT_EOF > conftest.$ac_ext
b0322a85 7778/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
d50284c4
CE
7779#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7780/* DATA imports from DLLs on WIN32 can't be const, because runtime
b0322a85
CE
7781 relocations are performed -- see ld's documentation on pseudo-relocs. */
7782# define LT_DLSYM_CONST
d50284c4 7783#elif defined __osf__
b0322a85
CE
7784/* This system does not cope well with relocations in const data. */
7785# define LT_DLSYM_CONST
7786#else
7787# define LT_DLSYM_CONST const
7788#endif
7789
8d138742
CE
7790#ifdef __cplusplus
7791extern "C" {
7792#endif
d9898ee8 7793
8d138742
CE
7794_LT_EOF
7795 # Now generate the symbol file.
7796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7797
8d138742 7798 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7799
8d138742 7800/* The mapping between symbol names and symbols. */
b0322a85 7801LT_DLSYM_CONST struct {
8d138742
CE
7802 const char *name;
7803 void *address;
7804}
7805lt__PROGRAM__LTX_preloaded_symbols[] =
7806{
7807 { "@PROGRAM@", (void *) 0 },
7808_LT_EOF
d50284c4 7809 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8d138742
CE
7810 cat <<\_LT_EOF >> conftest.$ac_ext
7811 {0, (void *) 0}
7812};
d9898ee8 7813
8d138742
CE
7814/* This works around a problem in FreeBSD linker */
7815#ifdef FREEBSD_WORKAROUND
7816static const void *lt_preloaded_setup() {
7817 return lt__PROGRAM__LTX_preloaded_symbols;
7818}
7819#endif
d9898ee8 7820
8d138742
CE
7821#ifdef __cplusplus
7822}
7823#endif
7824_LT_EOF
7825 # Now try linking the two files.
7826 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
7827 lt_globsym_save_LIBS=$LIBS
7828 lt_globsym_save_CFLAGS=$CFLAGS
d50284c4 7829 LIBS=conftstm.$ac_objext
8d138742 7830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
7832 (eval $ac_link) 2>&5
7833 ac_status=$?
b0322a85 7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 7835 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8d138742
CE
7836 pipe_works=yes
7837 fi
b0322a85
CE
7838 LIBS=$lt_globsym_save_LIBS
7839 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
7840 else
7841 echo "cannot find nm_test_func in $nlist" >&5
7842 fi
7843 else
7844 echo "cannot find nm_test_var in $nlist" >&5
d9898ee8 7845 fi
8d138742
CE
7846 else
7847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7848 fi
7849 else
7850 echo "$progname: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7852 fi
7853 rm -rf conftest* conftst*
d9898ee8 7854
8d138742 7855 # Do not use the global_symbol_pipe unless it works.
d50284c4 7856 if test yes = "$pipe_works"; then
8d138742 7857 break
d9898ee8 7858 else
8d138742
CE
7859 lt_cv_sys_global_symbol_pipe=
7860 fi
7861done
d9898ee8 7862
8d138742 7863fi
d9898ee8 7864
8d138742
CE
7865if test -z "$lt_cv_sys_global_symbol_pipe"; then
7866 lt_cv_sys_global_symbol_to_cdecl=
7867fi
7868if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742
CE
7870$as_echo "failed" >&6; }
7871else
b0322a85 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742
CE
7873$as_echo "ok" >&6; }
7874fi
d9898ee8 7875
b0322a85
CE
7876# Response file support.
7877if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7878 nm_file_list_spec='@'
7879elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7880 nm_file_list_spec='@'
7881fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
d9898ee8 7896
d9898ee8 7897
d50284c4
CE
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
d9898ee8 7908
d9898ee8 7909
ac40fd9e 7910
d9898ee8 7911
d9898ee8 7912
d9898ee8 7913
d9898ee8 7914
d9898ee8 7915
d9898ee8 7916
d9898ee8 7917
d9898ee8 7918
b0322a85
CE
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7920$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 7921
b0322a85
CE
7922# Check whether --with-sysroot was given.
7923if test "${with_sysroot+set}" = set; then :
7924 withval=$with_sysroot;
7925else
7926 with_sysroot=no
7927fi
d9898ee8 7928
d9898ee8 7929
b0322a85 7930lt_sysroot=
d50284c4 7931case $with_sysroot in #(
b0322a85 7932 yes)
d50284c4 7933 if test yes = "$GCC"; then
b0322a85
CE
7934 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7935 fi
7936 ;; #(
7937 /*)
7938 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7939 ;; #(
7940 no|'')
7941 ;; #(
7942 *)
d50284c4
CE
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7944$as_echo "$with_sysroot" >&6; }
b0322a85
CE
7945 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7946 ;;
7947esac
7948
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7950$as_echo "${lt_sysroot:-no}" >&6; }
d9898ee8 7951
d9898ee8 7952
d9898ee8 7953
d9898ee8 7954
d9898ee8 7955
d50284c4
CE
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7957$as_echo_n "checking for a working dd... " >&6; }
7958if ${ac_cv_path_lt_DD+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960else
7961 printf 0123456789abcdef0123456789abcdef >conftest.i
7962cat conftest.i conftest.i >conftest2.i
7963: ${lt_DD:=$DD}
7964if test -z "$lt_DD"; then
7965 ac_path_lt_DD_found=false
7966 # Loop through the user's path and test for each of PROGNAME-LIST
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_prog in dd; do
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7975 as_fn_executable_p "$ac_path_lt_DD" || continue
7976if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7977 cmp -s conftest.i conftest.out \
7978 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7979fi
7980 $ac_path_lt_DD_found && break 3
7981 done
7982 done
7983 done
7984IFS=$as_save_IFS
7985 if test -z "$ac_cv_path_lt_DD"; then
7986 :
7987 fi
7988else
7989 ac_cv_path_lt_DD=$lt_DD
7990fi
7991
7992rm -f conftest.i conftest2.i conftest.out
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7995$as_echo "$ac_cv_path_lt_DD" >&6; }
7996
7997
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7999$as_echo_n "checking how to truncate binary pipes... " >&6; }
8000if ${lt_cv_truncate_bin+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002else
8003 printf 0123456789abcdef0123456789abcdef >conftest.i
8004cat conftest.i conftest.i >conftest2.i
8005lt_cv_truncate_bin=
8006if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8007 cmp -s conftest.i conftest.out \
8008 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8009fi
8010rm -f conftest.i conftest2.i conftest.out
8011test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8012fi
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8014$as_echo "$lt_cv_truncate_bin" >&6; }
8015
8016
8017
8018
8019
8020
8021
8022# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8023func_cc_basename ()
8024{
8025 for cc_temp in $*""; do
8026 case $cc_temp in
8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8029 \-*) ;;
8030 *) break;;
8031 esac
8032 done
8033 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8034}
8035
8d138742 8036# Check whether --enable-libtool-lock was given.
b0322a85 8037if test "${enable_libtool_lock+set}" = set; then :
8d138742 8038 enableval=$enable_libtool_lock;
d9898ee8 8039fi
8040
d50284c4 8041test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d9898ee8 8042
8d138742
CE
8043# Some flags need to be propagated to the compiler or linker for good
8044# libtool support.
8045case $host in
8046ia64-*-hpux*)
d50284c4
CE
8047 # Find out what ABI is being produced by ac_compile, and set mode
8048 # options accordingly.
8d138742 8049 echo 'int i;' > conftest.$ac_ext
b0322a85 8050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
8051 (eval $ac_compile) 2>&5
8052 ac_status=$?
b0322a85
CE
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; }; then
8d138742
CE
8055 case `/usr/bin/file conftest.$ac_objext` in
8056 *ELF-32*)
d50284c4 8057 HPUX_IA64_MODE=32
8d138742
CE
8058 ;;
8059 *ELF-64*)
d50284c4 8060 HPUX_IA64_MODE=64
8d138742
CE
8061 ;;
8062 esac
8063 fi
8064 rm -rf conftest*
8065 ;;
8066*-*-irix6*)
d50284c4
CE
8067 # Find out what ABI is being produced by ac_compile, and set linker
8068 # options accordingly.
b0322a85
CE
8069 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
8071 (eval $ac_compile) 2>&5
8072 ac_status=$?
b0322a85
CE
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
d50284c4 8075 if test yes = "$lt_cv_prog_gnu_ld"; then
8d138742
CE
8076 case `/usr/bin/file conftest.$ac_objext` in
8077 *32-bit*)
8078 LD="${LD-ld} -melf32bsmip"
8079 ;;
8080 *N32*)
8081 LD="${LD-ld} -melf32bmipn32"
8082 ;;
8083 *64-bit*)
8084 LD="${LD-ld} -melf64bmip"
8085 ;;
8086 esac
8087 else
8088 case `/usr/bin/file conftest.$ac_objext` in
8089 *32-bit*)
8090 LD="${LD-ld} -32"
8091 ;;
8092 *N32*)
8093 LD="${LD-ld} -n32"
8094 ;;
8095 *64-bit*)
8096 LD="${LD-ld} -64"
8097 ;;
8098 esac
8099 fi
8100 fi
8101 rm -rf conftest*
8102 ;;
d9898ee8 8103
d50284c4
CE
8104mips64*-*linux*)
8105 # Find out what ABI is being produced by ac_compile, and set linker
8106 # options accordingly.
8107 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }; then
8113 emul=elf
8114 case `/usr/bin/file conftest.$ac_objext` in
8115 *32-bit*)
8116 emul="${emul}32"
8117 ;;
8118 *64-bit*)
8119 emul="${emul}64"
8120 ;;
8121 esac
8122 case `/usr/bin/file conftest.$ac_objext` in
8123 *MSB*)
8124 emul="${emul}btsmip"
8125 ;;
8126 *LSB*)
8127 emul="${emul}ltsmip"
8128 ;;
8129 esac
8130 case `/usr/bin/file conftest.$ac_objext` in
8131 *N32*)
8132 emul="${emul}n32"
8133 ;;
8134 esac
8135 LD="${LD-ld} -m $emul"
8136 fi
8137 rm -rf conftest*
8138 ;;
8139
8140x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8d138742 8141s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
d50284c4
CE
8142 # Find out what ABI is being produced by ac_compile, and set linker
8143 # options accordingly. Note that the listed cases only cover the
8144 # situations where additional linker options are needed (such as when
8145 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8146 # vice versa); the common cases where no linker options are needed do
8147 # not appear in the list.
8d138742 8148 echo 'int i;' > conftest.$ac_ext
b0322a85 8149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
8150 (eval $ac_compile) 2>&5
8151 ac_status=$?
b0322a85
CE
8152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8153 test $ac_status = 0; }; then
8d138742
CE
8154 case `/usr/bin/file conftest.o` in
8155 *32-bit*)
8156 case $host in
8157 x86_64-*kfreebsd*-gnu)
8158 LD="${LD-ld} -m elf_i386_fbsd"
8159 ;;
8160 x86_64-*linux*)
d50284c4
CE
8161 case `/usr/bin/file conftest.o` in
8162 *x86-64*)
8163 LD="${LD-ld} -m elf32_x86_64"
8164 ;;
8165 *)
8166 LD="${LD-ld} -m elf_i386"
8167 ;;
8168 esac
8169 ;;
8170 powerpc64le-*linux*)
8171 LD="${LD-ld} -m elf32lppclinux"
8d138742 8172 ;;
d50284c4 8173 powerpc64-*linux*)
8d138742
CE
8174 LD="${LD-ld} -m elf32ppclinux"
8175 ;;
8176 s390x-*linux*)
8177 LD="${LD-ld} -m elf_s390"
8178 ;;
8179 sparc64-*linux*)
8180 LD="${LD-ld} -m elf32_sparc"
8181 ;;
8182 esac
8183 ;;
8184 *64-bit*)
8185 case $host in
8186 x86_64-*kfreebsd*-gnu)
8187 LD="${LD-ld} -m elf_x86_64_fbsd"
8188 ;;
8189 x86_64-*linux*)
8190 LD="${LD-ld} -m elf_x86_64"
8191 ;;
d50284c4
CE
8192 powerpcle-*linux*)
8193 LD="${LD-ld} -m elf64lppc"
8194 ;;
8195 powerpc-*linux*)
8d138742
CE
8196 LD="${LD-ld} -m elf64ppc"
8197 ;;
8198 s390*-*linux*|s390*-*tpf*)
8199 LD="${LD-ld} -m elf64_s390"
8200 ;;
8201 sparc*-*linux*)
8202 LD="${LD-ld} -m elf64_sparc"
8203 ;;
8204 esac
8205 ;;
8206 esac
d9898ee8 8207 fi
8d138742
CE
8208 rm -rf conftest*
8209 ;;
8210
8211*-*-sco3.2v5*)
8212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
d50284c4 8213 SAVE_CFLAGS=$CFLAGS
8d138742 8214 CFLAGS="$CFLAGS -belf"
b0322a85 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 8216$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 8217if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 8218 $as_echo_n "(cached) " >&6
d9898ee8 8219else
8d138742
CE
8220 ac_ext=c
8221ac_cpp='$CPP $CPPFLAGS'
8222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8225
b0322a85 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8227/* end confdefs.h. */
d9898ee8 8228
8d138742
CE
8229int
8230main ()
8231{
d9898ee8 8232
8d138742
CE
8233 ;
8234 return 0;
8235}
8236_ACEOF
b0322a85 8237if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
8238 lt_cv_cc_needs_belf=yes
8239else
b0322a85 8240 lt_cv_cc_needs_belf=no
8d138742 8241fi
b0322a85
CE
8242rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
8244 ac_ext=c
8245ac_cpp='$CPP $CPPFLAGS'
8246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248ac_compiler_gnu=$ac_cv_c_compiler_gnu
8249
8250fi
b0322a85 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742 8252$as_echo "$lt_cv_cc_needs_belf" >&6; }
d50284c4 8253 if test yes != "$lt_cv_cc_needs_belf"; then
8d138742 8254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
d50284c4 8255 CFLAGS=$SAVE_CFLAGS
8d138742
CE
8256 fi
8257 ;;
b0322a85 8258*-*solaris*)
d50284c4
CE
8259 # Find out what ABI is being produced by ac_compile, and set linker
8260 # options accordingly.
8d138742 8261 echo 'int i;' > conftest.$ac_ext
b0322a85 8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
8263 (eval $ac_compile) 2>&5
8264 ac_status=$?
b0322a85
CE
8265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; }; then
8d138742
CE
8267 case `/usr/bin/file conftest.o` in
8268 *64-bit*)
8269 case $lt_cv_prog_gnu_ld in
b0322a85
CE
8270 yes*)
8271 case $host in
d50284c4 8272 i?86-*-solaris*|x86_64-*-solaris*)
b0322a85
CE
8273 LD="${LD-ld} -m elf_x86_64"
8274 ;;
8275 sparc*-*-solaris*)
8276 LD="${LD-ld} -m elf64_sparc"
8277 ;;
8278 esac
8279 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8280 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
d50284c4 8281 LD=${LD-ld}_sol2
b0322a85
CE
8282 fi
8283 ;;
8d138742
CE
8284 *)
8285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8286 LD="${LD-ld} -64"
8287 fi
8288 ;;
8289 esac
8290 ;;
d9898ee8 8291 esac
8d138742
CE
8292 fi
8293 rm -rf conftest*
8294 ;;
8295esac
d9898ee8 8296
d50284c4 8297need_locks=$enable_libtool_lock
d9898ee8 8298
b0322a85
CE
8299if test -n "$ac_tool_prefix"; then
8300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8301set dummy ${ac_tool_prefix}mt; ac_word=$2
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8303$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8304if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8d138742
CE
8305 $as_echo_n "(cached) " >&6
8306else
b0322a85
CE
8307 if test -n "$MANIFEST_TOOL"; then
8308 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8d138742
CE
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
b0322a85
CE
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8319 break 2
8320 fi
8321done
b0322a85 8322 done
8d138742 8323IFS=$as_save_IFS
d9898ee8 8324
8d138742
CE
8325fi
8326fi
b0322a85
CE
8327MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8328if test -n "$MANIFEST_TOOL"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8330$as_echo "$MANIFEST_TOOL" >&6; }
8d138742 8331else
b0322a85 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8333$as_echo "no" >&6; }
8334fi
d9898ee8 8335
d9898ee8 8336
8d138742 8337fi
b0322a85
CE
8338if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8339 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8340 # Extract the first word of "mt", so it can be a program name with args.
8341set dummy mt; ac_word=$2
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8343$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8344if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8d138742
CE
8345 $as_echo_n "(cached) " >&6
8346else
b0322a85
CE
8347 if test -n "$ac_ct_MANIFEST_TOOL"; then
8348 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8d138742
CE
8349else
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
b0322a85
CE
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8359 break 2
8360 fi
8361done
b0322a85 8362 done
8d138742 8363IFS=$as_save_IFS
d9898ee8 8364
8d138742
CE
8365fi
8366fi
b0322a85
CE
8367ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8368if test -n "$ac_ct_MANIFEST_TOOL"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8370$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8d138742 8371else
b0322a85 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8373$as_echo "no" >&6; }
8374fi
d9898ee8 8375
b0322a85
CE
8376 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8377 MANIFEST_TOOL=":"
8d138742
CE
8378 else
8379 case $cross_compiling:$ac_tool_warned in
8380yes:)
b0322a85 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383ac_tool_warned=yes ;;
8384esac
b0322a85 8385 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8d138742
CE
8386 fi
8387else
b0322a85
CE
8388 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8389fi
8390
8391test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8393$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8394if ${lt_cv_path_mainfest_tool+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396else
8397 lt_cv_path_mainfest_tool=no
8398 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8399 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8400 cat conftest.err >&5
8401 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8402 lt_cv_path_mainfest_tool=yes
8403 fi
8404 rm -f conftest*
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8407$as_echo "$lt_cv_path_mainfest_tool" >&6; }
d50284c4 8408if test yes != "$lt_cv_path_mainfest_tool"; then
b0322a85 8409 MANIFEST_TOOL=:
8d138742 8410fi
d9898ee8 8411
b0322a85
CE
8412
8413
8414
8415
8416
8417 case $host_os in
8418 rhapsody* | darwin*)
8d138742 8419 if test -n "$ac_tool_prefix"; then
b0322a85
CE
8420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8421set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8423$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8424if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
8425 $as_echo_n "(cached) " >&6
8426else
b0322a85
CE
8427 if test -n "$DSYMUTIL"; then
8428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8d138742
CE
8429else
8430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
b0322a85
CE
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8439 break 2
8440 fi
8441done
b0322a85 8442 done
8d138742 8443IFS=$as_save_IFS
d9898ee8 8444
8d138742
CE
8445fi
8446fi
b0322a85
CE
8447DSYMUTIL=$ac_cv_prog_DSYMUTIL
8448if test -n "$DSYMUTIL"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8450$as_echo "$DSYMUTIL" >&6; }
8d138742 8451else
b0322a85 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8453$as_echo "no" >&6; }
8454fi
d9898ee8 8455
d9898ee8 8456
8d138742 8457fi
b0322a85
CE
8458if test -z "$ac_cv_prog_DSYMUTIL"; then
8459 ac_ct_DSYMUTIL=$DSYMUTIL
8460 # Extract the first word of "dsymutil", so it can be a program name with args.
8461set dummy dsymutil; ac_word=$2
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 if test -n "$ac_ct_DSYMUTIL"; then
8468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485fi
8486fi
8487ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8488if test -n "$ac_ct_DSYMUTIL"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8490$as_echo "$ac_ct_DSYMUTIL" >&6; }
8491else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
8494fi
8495
8496 if test "x$ac_ct_DSYMUTIL" = x; then
8497 DSYMUTIL=":"
8498 else
8499 case $cross_compiling:$ac_tool_warned in
8500yes:)
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503ac_tool_warned=yes ;;
8504esac
8505 DSYMUTIL=$ac_ct_DSYMUTIL
8506 fi
8507else
8508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8509fi
8510
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8513set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
8516if ${ac_cv_prog_NMEDIT+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518else
8519 if test -n "$NMEDIT"; then
8520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8521else
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533done
8534 done
8535IFS=$as_save_IFS
8536
8537fi
8538fi
8539NMEDIT=$ac_cv_prog_NMEDIT
8540if test -n "$NMEDIT"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8542$as_echo "$NMEDIT" >&6; }
8543else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
8546fi
8547
8548
8549fi
8550if test -z "$ac_cv_prog_NMEDIT"; then
8551 ac_ct_NMEDIT=$NMEDIT
8552 # Extract the first word of "nmedit", so it can be a program name with args.
8553set dummy nmedit; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8557 $as_echo_n "(cached) " >&6
8d138742
CE
8558else
8559 if test -n "$ac_ct_NMEDIT"; then
8560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
b0322a85
CE
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8571 break 2
8572 fi
8573done
b0322a85 8574 done
8d138742 8575IFS=$as_save_IFS
d9898ee8 8576
8d138742
CE
8577fi
8578fi
8579ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8580if test -n "$ac_ct_NMEDIT"; then
b0322a85 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
8582$as_echo "$ac_ct_NMEDIT" >&6; }
8583else
b0322a85 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8585$as_echo "no" >&6; }
8586fi
d9898ee8 8587
8d138742
CE
8588 if test "x$ac_ct_NMEDIT" = x; then
8589 NMEDIT=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592yes:)
b0322a85 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595ac_tool_warned=yes ;;
8596esac
8597 NMEDIT=$ac_ct_NMEDIT
8598 fi
8599else
8600 NMEDIT="$ac_cv_prog_NMEDIT"
8601fi
d9898ee8 8602
8d138742
CE
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8605set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8607$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8608if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
8609 $as_echo_n "(cached) " >&6
8610else
8611 if test -n "$LIPO"; then
8612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
b0322a85
CE
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8623 break 2
8624 fi
8625done
b0322a85 8626 done
8d138742 8627IFS=$as_save_IFS
d9898ee8 8628
8d138742
CE
8629fi
8630fi
8631LIPO=$ac_cv_prog_LIPO
8632if test -n "$LIPO"; then
b0322a85 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
8634$as_echo "$LIPO" >&6; }
8635else
b0322a85 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8637$as_echo "no" >&6; }
8638fi
d9898ee8 8639
d9898ee8 8640
8d138742
CE
8641fi
8642if test -z "$ac_cv_prog_LIPO"; then
8643 ac_ct_LIPO=$LIPO
8644 # Extract the first word of "lipo", so it can be a program name with args.
8645set dummy lipo; ac_word=$2
b0322a85 8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8647$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8648if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742
CE
8649 $as_echo_n "(cached) " >&6
8650else
8651 if test -n "$ac_ct_LIPO"; then
8652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
b0322a85
CE
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8661 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8663 break 2
8664 fi
8665done
b0322a85 8666 done
8d138742 8667IFS=$as_save_IFS
d9898ee8 8668
8d138742
CE
8669fi
8670fi
8671ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8672if test -n "$ac_ct_LIPO"; then
b0322a85 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742
CE
8674$as_echo "$ac_ct_LIPO" >&6; }
8675else
b0322a85 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8677$as_echo "no" >&6; }
8678fi
d9898ee8 8679
8d138742
CE
8680 if test "x$ac_ct_LIPO" = x; then
8681 LIPO=":"
d9898ee8 8682 else
8d138742
CE
8683 case $cross_compiling:$ac_tool_warned in
8684yes:)
b0322a85 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687ac_tool_warned=yes ;;
8688esac
8689 LIPO=$ac_ct_LIPO
8690 fi
8691else
8692 LIPO="$ac_cv_prog_LIPO"
8693fi
d9898ee8 8694
8d138742
CE
8695 if test -n "$ac_tool_prefix"; then
8696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8697set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8699$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8700if ${ac_cv_prog_OTOOL+:} false; then :
8d138742
CE
8701 $as_echo_n "(cached) " >&6
8702else
8703 if test -n "$OTOOL"; then
8704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
b0322a85
CE
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8715 break 2
8716 fi
8717done
b0322a85 8718 done
8d138742 8719IFS=$as_save_IFS
d9898ee8 8720
8d138742
CE
8721fi
8722fi
8723OTOOL=$ac_cv_prog_OTOOL
8724if test -n "$OTOOL"; then
b0322a85 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742
CE
8726$as_echo "$OTOOL" >&6; }
8727else
b0322a85 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8729$as_echo "no" >&6; }
8730fi
d9898ee8 8731
d9898ee8 8732
8d138742
CE
8733fi
8734if test -z "$ac_cv_prog_OTOOL"; then
8735 ac_ct_OTOOL=$OTOOL
8736 # Extract the first word of "otool", so it can be a program name with args.
8737set dummy otool; ac_word=$2
b0322a85 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8739$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8740if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
8741 $as_echo_n "(cached) " >&6
8742else
8743 if test -n "$ac_ct_OTOOL"; then
8744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
b0322a85
CE
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8753 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8755 break 2
8756 fi
8757done
b0322a85 8758 done
8d138742 8759IFS=$as_save_IFS
d9898ee8 8760
8d138742
CE
8761fi
8762fi
8763ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8764if test -n "$ac_ct_OTOOL"; then
b0322a85 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742
CE
8766$as_echo "$ac_ct_OTOOL" >&6; }
8767else
b0322a85 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8769$as_echo "no" >&6; }
8770fi
d9898ee8 8771
8d138742
CE
8772 if test "x$ac_ct_OTOOL" = x; then
8773 OTOOL=":"
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776yes:)
b0322a85 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779ac_tool_warned=yes ;;
8780esac
8781 OTOOL=$ac_ct_OTOOL
8782 fi
8783else
8784 OTOOL="$ac_cv_prog_OTOOL"
8785fi
8786
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8789set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8791$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8792if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
8793 $as_echo_n "(cached) " >&6
8794else
8795 if test -n "$OTOOL64"; then
8796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8797else
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
b0322a85
CE
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8807 break 2
8808 fi
8809done
b0322a85 8810 done
8d138742
CE
8811IFS=$as_save_IFS
8812
8813fi
8814fi
8815OTOOL64=$ac_cv_prog_OTOOL64
8816if test -n "$OTOOL64"; then
b0322a85 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
8818$as_echo "$OTOOL64" >&6; }
8819else
b0322a85 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8821$as_echo "no" >&6; }
8822fi
8823
8824
8825fi
8826if test -z "$ac_cv_prog_OTOOL64"; then
8827 ac_ct_OTOOL64=$OTOOL64
8828 # Extract the first word of "otool64", so it can be a program name with args.
8829set dummy otool64; ac_word=$2
b0322a85 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8831$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8832if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
8833 $as_echo_n "(cached) " >&6
8834else
8835 if test -n "$ac_ct_OTOOL64"; then
8836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
b0322a85
CE
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8845 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8847 break 2
8848 fi
8849done
b0322a85 8850 done
8d138742
CE
8851IFS=$as_save_IFS
8852
8853fi
8854fi
8855ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8856if test -n "$ac_ct_OTOOL64"; then
b0322a85 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742
CE
8858$as_echo "$ac_ct_OTOOL64" >&6; }
8859else
b0322a85 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8861$as_echo "no" >&6; }
8862fi
8863
8864 if test "x$ac_ct_OTOOL64" = x; then
8865 OTOOL64=":"
8866 else
8867 case $cross_compiling:$ac_tool_warned in
8868yes:)
b0322a85 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871ac_tool_warned=yes ;;
8872esac
8873 OTOOL64=$ac_ct_OTOOL64
8874 fi
8875else
8876 OTOOL64="$ac_cv_prog_OTOOL64"
8877fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
b0322a85 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 8906$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 8907if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742
CE
8908 $as_echo_n "(cached) " >&6
8909else
8910 lt_cv_apple_cc_single_mod=no
d50284c4 8911 if test -z "$LT_MULTI_MODULE"; then
8d138742
CE
8912 # By default we will add the -single_module flag. You can override
8913 # by either setting the environment variable LT_MULTI_MODULE
8914 # non-empty at configure time, or by adding -multi_module to the
8915 # link flags.
8916 rm -rf libconftest.dylib*
8917 echo "int foo(void){return 1;}" > conftest.c
8918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8919-dynamiclib -Wl,-single_module conftest.c" >&5
8920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8922 _lt_result=$?
b0322a85
CE
8923 # If there is a non-empty error log, and "single_module"
8924 # appears in it, assume the flag caused a linker warning
8925 if test -s conftest.err && $GREP single_module conftest.err; then
8926 cat conftest.err >&5
8927 # Otherwise, if the output was created with a 0 exit code from
8928 # the compiler, it worked.
d50284c4 8929 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8d138742 8930 lt_cv_apple_cc_single_mod=yes
d9898ee8 8931 else
8d138742 8932 cat conftest.err >&5
d9898ee8 8933 fi
8d138742
CE
8934 rm -rf libconftest.dylib*
8935 rm -f conftest.*
d9898ee8 8936 fi
8d138742 8937fi
b0322a85 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 8939$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
8940
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 8942$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 8943if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
8944 $as_echo_n "(cached) " >&6
8945else
8946 lt_cv_ld_exported_symbols_list=no
8947 save_LDFLAGS=$LDFLAGS
8948 echo "_main" > conftest.sym
8949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 8951/* end confdefs.h. */
8952
8953int
8954main ()
8955{
8956
8957 ;
8958 return 0;
8959}
8960_ACEOF
b0322a85 8961if ac_fn_c_try_link "$LINENO"; then :
8d138742 8962 lt_cv_ld_exported_symbols_list=yes
d9898ee8 8963else
b0322a85 8964 lt_cv_ld_exported_symbols_list=no
d9898ee8 8965fi
b0322a85
CE
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
d50284c4 8968 LDFLAGS=$save_LDFLAGS
d9898ee8 8969
8d138742 8970fi
b0322a85 8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 8972$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8975$as_echo_n "checking for -force_load linker flag... " >&6; }
8976if ${lt_cv_ld_force_load+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978else
8979 lt_cv_ld_force_load=no
8980 cat > conftest.c << _LT_EOF
8981int forced_loaded() { return 2;}
8982_LT_EOF
8983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8985 echo "$AR cru libconftest.a conftest.o" >&5
8986 $AR cru libconftest.a conftest.o 2>&5
8987 echo "$RANLIB libconftest.a" >&5
8988 $RANLIB libconftest.a 2>&5
8989 cat > conftest.c << _LT_EOF
8990int main() { return 0;}
8991_LT_EOF
8992 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8993 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8994 _lt_result=$?
8995 if test -s conftest.err && $GREP force_load conftest.err; then
8996 cat conftest.err >&5
d50284c4 8997 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b0322a85
CE
8998 lt_cv_ld_force_load=yes
8999 else
9000 cat conftest.err >&5
9001 fi
9002 rm -f conftest.err libconftest.a conftest conftest.c
9003 rm -rf conftest.dSYM
9004
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9007$as_echo "$lt_cv_ld_force_load" >&6; }
8d138742
CE
9008 case $host_os in
9009 rhapsody* | darwin1.[012])
d50284c4 9010 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8d138742 9011 darwin1.*)
d50284c4 9012 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742
CE
9013 darwin*) # darwin 5.x on
9014 # if running on 10.5 or later, the deployment target defaults
9015 # to the OS version, if on x86, and 10.4, the deployment
9016 # target defaults to 10.4. Don't you love it?
9017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
d50284c4
CE
9019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9020 10.[012][,.]*)
9021 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742 9022 10.*)
d50284c4 9023 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8d138742
CE
9024 esac
9025 ;;
9026 esac
d50284c4 9027 if test yes = "$lt_cv_apple_cc_single_mod"; then
8d138742
CE
9028 _lt_dar_single_mod='$single_module'
9029 fi
d50284c4
CE
9030 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9031 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8d138742 9032 else
d50284c4 9033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8d138742 9034 fi
d50284c4 9035 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8d138742
CE
9036 _lt_dsymutil='~$DSYMUTIL $lib || :'
9037 else
9038 _lt_dsymutil=
9039 fi
9040 ;;
b0322a85 9041 esac
ac40fd9e 9042
d50284c4
CE
9043# func_munge_path_list VARIABLE PATH
9044# -----------------------------------
9045# VARIABLE is name of variable containing _space_ separated list of
9046# directories to be munged by the contents of PATH, which is string
9047# having a format:
9048# "DIR[:DIR]:"
9049# string "DIR[ DIR]" will be prepended to VARIABLE
9050# ":DIR[:DIR]"
9051# string "DIR[ DIR]" will be appended to VARIABLE
9052# "DIRP[:DIRP]::[DIRA:]DIRA"
9053# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9054# "DIRA[ DIRA]" will be appended to VARIABLE
9055# "DIR[:DIR]"
9056# VARIABLE will be replaced by "DIR[ DIR]"
9057func_munge_path_list ()
9058{
9059 case x$2 in
9060 x)
9061 ;;
9062 *:)
9063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9064 ;;
9065 x:*)
9066 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9067 ;;
9068 *::*)
9069 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9070 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9071 ;;
9072 *)
9073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9074 ;;
9075 esac
9076}
9077
b0322a85
CE
9078for ac_header in dlfcn.h
9079do :
9080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9081"
9082if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9083 cat >>confdefs.h <<_ACEOF
9084#define HAVE_DLFCN_H 1
9085_ACEOF
d9898ee8 9086
b0322a85 9087fi
d9898ee8 9088
8d138742 9089done
d9898ee8 9090
d9898ee8 9091
b0322a85
CE
9092
9093
9094func_stripname_cnf ()
9095{
d50284c4
CE
9096 case $2 in
9097 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9098 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
b0322a85
CE
9099 esac
9100} # func_stripname_cnf
d9898ee8 9101
d9898ee8 9102
d9898ee8 9103
d9898ee8 9104
d9898ee8 9105
8d138742 9106# Set options
d9898ee8 9107
d9898ee8 9108
d9898ee8 9109
8d138742 9110 enable_dlopen=no
d9898ee8 9111
d9898ee8 9112
8d138742 9113 enable_win32_dll=no
d9898ee8 9114
ac40fd9e 9115
8d138742 9116 # Check whether --enable-shared was given.
b0322a85 9117if test "${enable_shared+set}" = set; then :
8d138742
CE
9118 enableval=$enable_shared; p=${PACKAGE-default}
9119 case $enableval in
9120 yes) enable_shared=yes ;;
9121 no) enable_shared=no ;;
9122 *)
9123 enable_shared=no
9124 # Look at the argument we got. We use all the common list separators.
d50284c4 9125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 9126 for pkg in $enableval; do
d50284c4 9127 IFS=$lt_save_ifs
8d138742
CE
9128 if test "X$pkg" = "X$p"; then
9129 enable_shared=yes
9130 fi
9131 done
d50284c4 9132 IFS=$lt_save_ifs
8d138742
CE
9133 ;;
9134 esac
9135else
9136 enable_shared=yes
9137fi
d9898ee8 9138
d9898ee8 9139
d9898ee8 9140
d9898ee8 9141
d9898ee8 9142
d9898ee8 9143
d9898ee8 9144
d9898ee8 9145
d9898ee8 9146
8d138742 9147 # Check whether --enable-static was given.
b0322a85 9148if test "${enable_static+set}" = set; then :
8d138742
CE
9149 enableval=$enable_static; p=${PACKAGE-default}
9150 case $enableval in
9151 yes) enable_static=yes ;;
9152 no) enable_static=no ;;
9153 *)
9154 enable_static=no
9155 # Look at the argument we got. We use all the common list separators.
d50284c4 9156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 9157 for pkg in $enableval; do
d50284c4 9158 IFS=$lt_save_ifs
8d138742
CE
9159 if test "X$pkg" = "X$p"; then
9160 enable_static=yes
9161 fi
9162 done
d50284c4 9163 IFS=$lt_save_ifs
8d138742
CE
9164 ;;
9165 esac
d9898ee8 9166else
8d138742 9167 enable_static=yes
d9898ee8 9168fi
d9898ee8 9169
d9898ee8 9170
d9898ee8 9171
d9898ee8 9172
d9898ee8 9173
d9898ee8 9174
d9898ee8 9175
d9898ee8 9176
d9898ee8 9177
dd184caf 9178
8d138742 9179# Check whether --with-pic was given.
b0322a85
CE
9180if test "${with_pic+set}" = set; then :
9181 withval=$with_pic; lt_p=${PACKAGE-default}
9182 case $withval in
9183 yes|no) pic_mode=$withval ;;
9184 *)
9185 pic_mode=default
9186 # Look at the argument we got. We use all the common list separators.
d50284c4 9187 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
b0322a85 9188 for lt_pkg in $withval; do
d50284c4 9189 IFS=$lt_save_ifs
b0322a85
CE
9190 if test "X$lt_pkg" = "X$lt_p"; then
9191 pic_mode=yes
9192 fi
9193 done
d50284c4 9194 IFS=$lt_save_ifs
b0322a85
CE
9195 ;;
9196 esac
d9898ee8 9197else
8d138742
CE
9198 pic_mode=default
9199fi
d9898ee8 9200
d9898ee8 9201
d9898ee8 9202
d9898ee8 9203
d9898ee8 9204
d9898ee8 9205
d9898ee8 9206
d9898ee8 9207
8d138742 9208 # Check whether --enable-fast-install was given.
b0322a85 9209if test "${enable_fast_install+set}" = set; then :
8d138742
CE
9210 enableval=$enable_fast_install; p=${PACKAGE-default}
9211 case $enableval in
9212 yes) enable_fast_install=yes ;;
9213 no) enable_fast_install=no ;;
9214 *)
9215 enable_fast_install=no
9216 # Look at the argument we got. We use all the common list separators.
d50284c4 9217 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 9218 for pkg in $enableval; do
d50284c4 9219 IFS=$lt_save_ifs
8d138742
CE
9220 if test "X$pkg" = "X$p"; then
9221 enable_fast_install=yes
9222 fi
9223 done
d50284c4 9224 IFS=$lt_save_ifs
8d138742
CE
9225 ;;
9226 esac
d9898ee8 9227else
8d138742 9228 enable_fast_install=yes
d9898ee8 9229fi
dd184caf 9230
d9898ee8 9231
d9898ee8 9232
dd184caf 9233
d9898ee8 9234
d9898ee8 9235
d9898ee8 9236
d9898ee8 9237
d50284c4
CE
9238 shared_archive_member_spec=
9239case $host,$enable_shared in
9240power*-*-aix[5-9]*,yes)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9242$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9243
9244# Check whether --with-aix-soname was given.
9245if test "${with_aix_soname+set}" = set; then :
9246 withval=$with_aix_soname; case $withval in
9247 aix|svr4|both)
9248 ;;
9249 *)
9250 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9251 ;;
9252 esac
9253 lt_cv_with_aix_soname=$with_aix_soname
9254else
9255 if ${lt_cv_with_aix_soname+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257else
9258 lt_cv_with_aix_soname=aix
9259fi
9260
9261 with_aix_soname=$lt_cv_with_aix_soname
9262fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9265$as_echo "$with_aix_soname" >&6; }
9266 if test aix != "$with_aix_soname"; then
9267 # For the AIX way of multilib, we name the shared archive member
9268 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9269 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9270 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9271 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9272 if test 64 = "${OBJECT_MODE-32}"; then
9273 shared_archive_member_spec=shr_64
9274 else
9275 shared_archive_member_spec=shr
9276 fi
9277 fi
9278 ;;
9279*)
9280 with_aix_soname=aix
9281 ;;
9282esac
9283
9284
9285
9286
9287
9288
9289
d9898ee8 9290
d9898ee8 9291
dd184caf 9292
8d138742 9293# This can be used to rebuild libtool when needed
d50284c4 9294LIBTOOL_DEPS=$ltmain
d9898ee8 9295
8d138742
CE
9296# Always use our own libtool.
9297LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 9298
dd184caf 9299
d9898ee8 9300
d9898ee8 9301
dd184caf 9302
d9898ee8 9303
d9898ee8 9304
dd184caf 9305
d9898ee8 9306
9307
d9898ee8 9308
9309
d9898ee8 9310
9311
d9898ee8 9312
9313
d9898ee8 9314
9315
d9898ee8 9316
b0322a85
CE
9317
9318
9319
9320
9321
d9898ee8 9322
d9898ee8 9323
d9898ee8 9324
d9898ee8 9325
d9898ee8 9326
d9898ee8 9327
8d138742
CE
9328test -z "$LN_S" && LN_S="ln -s"
9329
9330
d9898ee8 9331
d9898ee8 9332
d9898ee8 9333
d9898ee8 9334
d9898ee8 9335
d9898ee8 9336
d9898ee8 9337
d9898ee8 9338
9339
8d138742
CE
9340
9341
9342
d50284c4 9343if test -n "${ZSH_VERSION+set}"; then
8d138742 9344 setopt NO_GLOB_SUBST
d9898ee8 9345fi
d9898ee8 9346
b0322a85 9347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 9348$as_echo_n "checking for objdir... " >&6; }
b0322a85 9349if ${lt_cv_objdir+:} false; then :
8d138742 9350 $as_echo_n "(cached) " >&6
d9898ee8 9351else
8d138742
CE
9352 rm -f .libs 2>/dev/null
9353mkdir .libs 2>/dev/null
9354if test -d .libs; then
9355 lt_cv_objdir=.libs
d9898ee8 9356else
8d138742
CE
9357 # MS-DOS does not allow filenames that begin with a dot.
9358 lt_cv_objdir=_libs
9359fi
9360rmdir .libs 2>/dev/null
9361fi
b0322a85 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
9363$as_echo "$lt_cv_objdir" >&6; }
9364objdir=$lt_cv_objdir
9365
9366
9367
9368
9369
9370cat >>confdefs.h <<_ACEOF
9371#define LT_OBJDIR "$lt_cv_objdir/"
9372_ACEOF
d9898ee8 9373
d9898ee8 9374
d9898ee8 9375
d9898ee8 9376
d9898ee8 9377case $host_os in
9378aix3*)
8d138742
CE
9379 # AIX sometimes has problems with the GCC collect2 program. For some
9380 # reason, if we set the COLLECT_NAMES environment variable, the problems
9381 # vanish in a puff of smoke.
d50284c4 9382 if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
9383 COLLECT_NAMES=
9384 export COLLECT_NAMES
d9898ee8 9385 fi
9386 ;;
d9898ee8 9387esac
d9898ee8 9388
8d138742
CE
9389# Global variables:
9390ofile=libtool
9391can_build_shared=yes
d9898ee8 9392
d50284c4 9393# All known linkers require a '.a' archive for static linking (except MSVC,
8d138742
CE
9394# which needs '.lib').
9395libext=a
d9898ee8 9396
d50284c4 9397with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 9398
d50284c4
CE
9399old_CC=$CC
9400old_CFLAGS=$CFLAGS
d9898ee8 9401
8d138742
CE
9402# Set sane defaults for various variables
9403test -z "$CC" && CC=cc
9404test -z "$LTCC" && LTCC=$CC
9405test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9406test -z "$LD" && LD=ld
9407test -z "$ac_objext" && ac_objext=o
d9898ee8 9408
d50284c4
CE
9409func_cc_basename $compiler
9410cc_basename=$func_cc_basename_result
d9898ee8 9411
d9898ee8 9412
8d138742
CE
9413# Only perform the check for file, if the check method requires it
9414test -z "$MAGIC_CMD" && MAGIC_CMD=file
9415case $deplibs_check_method in
9416file_magic*)
9417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 9419$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 9420if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
9421 $as_echo_n "(cached) " >&6
9422else
9423 case $MAGIC_CMD in
9424[\\/*] | ?:[\\/]*)
d50284c4 9425 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
9426 ;;
9427*)
d50284c4
CE
9428 lt_save_MAGIC_CMD=$MAGIC_CMD
9429 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
9430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9431 for ac_dir in $ac_dummy; do
d50284c4 9432 IFS=$lt_save_ifs
8d138742 9433 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
9434 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9435 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8d138742
CE
9436 if test -n "$file_magic_test_file"; then
9437 case $deplibs_check_method in
9438 "file_magic "*)
9439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 9440 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
9441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9442 $EGREP "$file_magic_regex" > /dev/null; then
9443 :
9444 else
9445 cat <<_LT_EOF 1>&2
d9898ee8 9446
8d138742
CE
9447*** Warning: the command libtool uses to detect shared libraries,
9448*** $file_magic_cmd, produces output that libtool cannot recognize.
9449*** The result is that libtool may fail to recognize shared libraries
9450*** as such. This will affect the creation of libtool libraries that
9451*** depend on shared libraries, but programs linked with such libtool
9452*** libraries will work regardless of this problem. Nevertheless, you
9453*** may want to report the problem to your system manager and/or to
9454*** bug-libtool@gnu.org
d9898ee8 9455
8d138742
CE
9456_LT_EOF
9457 fi ;;
9458 esac
9459 fi
9460 break
9461 fi
9462 done
d50284c4
CE
9463 IFS=$lt_save_ifs
9464 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
9465 ;;
9466esac
9467fi
d9898ee8 9468
d50284c4 9469MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 9470if test -n "$MAGIC_CMD"; then
b0322a85 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
9472$as_echo "$MAGIC_CMD" >&6; }
9473else
b0322a85 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
9475$as_echo "no" >&6; }
9476fi
d9898ee8 9477
d9898ee8 9478
d9898ee8 9479
d9898ee8 9480
d9898ee8 9481
8d138742
CE
9482if test -z "$lt_cv_path_MAGIC_CMD"; then
9483 if test -n "$ac_tool_prefix"; then
b0322a85 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 9485$as_echo_n "checking for file... " >&6; }
b0322a85 9486if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
9487 $as_echo_n "(cached) " >&6
9488else
9489 case $MAGIC_CMD in
9490[\\/*] | ?:[\\/]*)
d50284c4 9491 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
9492 ;;
9493*)
d50284c4
CE
9494 lt_save_MAGIC_CMD=$MAGIC_CMD
9495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
9496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9497 for ac_dir in $ac_dummy; do
d50284c4 9498 IFS=$lt_save_ifs
8d138742 9499 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
9500 if test -f "$ac_dir/file"; then
9501 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8d138742
CE
9502 if test -n "$file_magic_test_file"; then
9503 case $deplibs_check_method in
9504 "file_magic "*)
9505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 9506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
9507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9508 $EGREP "$file_magic_regex" > /dev/null; then
9509 :
9510 else
9511 cat <<_LT_EOF 1>&2
d9898ee8 9512
8d138742
CE
9513*** Warning: the command libtool uses to detect shared libraries,
9514*** $file_magic_cmd, produces output that libtool cannot recognize.
9515*** The result is that libtool may fail to recognize shared libraries
9516*** as such. This will affect the creation of libtool libraries that
9517*** depend on shared libraries, but programs linked with such libtool
9518*** libraries will work regardless of this problem. Nevertheless, you
9519*** may want to report the problem to your system manager and/or to
9520*** bug-libtool@gnu.org
d9898ee8 9521
8d138742
CE
9522_LT_EOF
9523 fi ;;
9524 esac
9525 fi
9526 break
9527 fi
9528 done
d50284c4
CE
9529 IFS=$lt_save_ifs
9530 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
9531 ;;
9532esac
9533fi
d9898ee8 9534
d50284c4 9535MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 9536if test -n "$MAGIC_CMD"; then
b0322a85 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
9538$as_echo "$MAGIC_CMD" >&6; }
9539else
b0322a85 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
9541$as_echo "no" >&6; }
9542fi
d9898ee8 9543
d9898ee8 9544
8d138742
CE
9545 else
9546 MAGIC_CMD=:
9547 fi
9548fi
d9898ee8 9549
8d138742
CE
9550 fi
9551 ;;
9552esac
d9898ee8 9553
8d138742 9554# Use C for the default configuration in the libtool script
d9898ee8 9555
d50284c4 9556lt_save_CC=$CC
8d138742
CE
9557ac_ext=c
9558ac_cpp='$CPP $CPPFLAGS'
9559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 9562
d9898ee8 9563
8d138742
CE
9564# Source file extension for C test sources.
9565ac_ext=c
d9898ee8 9566
8d138742
CE
9567# Object file extension for compiled C test sources.
9568objext=o
9569objext=$objext
d9898ee8 9570
8d138742
CE
9571# Code to be used in simple compile tests
9572lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 9573
8d138742
CE
9574# Code to be used in simple link tests
9575lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 9576
d9898ee8 9577
d9898ee8 9578
d9898ee8 9579
d9898ee8 9580
d9898ee8 9581
d9898ee8 9582
8d138742
CE
9583# If no C compiler was specified, use CC.
9584LTCC=${LTCC-"$CC"}
d9898ee8 9585
8d138742
CE
9586# If no C compiler flags were specified, use CFLAGS.
9587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 9588
8d138742
CE
9589# Allow CC to be a program name with arguments.
9590compiler=$CC
d9898ee8 9591
8d138742
CE
9592# Save the default compiler, since it gets overwritten when the other
9593# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9594compiler_DEFAULT=$CC
d9898ee8 9595
8d138742
CE
9596# save warnings/boilerplate of simple test code
9597ac_outfile=conftest.$ac_objext
9598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9600_lt_compiler_boilerplate=`cat conftest.err`
9601$RM conftest*
d9898ee8 9602
8d138742
CE
9603ac_outfile=conftest.$ac_objext
9604echo "$lt_simple_link_test_code" >conftest.$ac_ext
9605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9606_lt_linker_boilerplate=`cat conftest.err`
9607$RM -r conftest*
d9898ee8 9608
d9898ee8 9609
8d138742 9610if test -n "$compiler"; then
d9898ee8 9611
8d138742 9612lt_prog_compiler_no_builtin_flag=
d9898ee8 9613
d50284c4 9614if test yes = "$GCC"; then
b0322a85
CE
9615 case $cc_basename in
9616 nvcc*)
9617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9618 *)
9619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9620 esac
d9898ee8 9621
b0322a85 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 9623$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 9624if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
9625 $as_echo_n "(cached) " >&6
9626else
9627 lt_cv_prog_compiler_rtti_exceptions=no
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 9630 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
9631 # Insert the option either (1) after the last *FLAGS variable, or
9632 # (2) before a word containing "conftest.", or (3) at the end.
9633 # Note that $ac_compile itself does not contain backslashes and begins
9634 # with a dollar sign (not a hyphen), so the echo should work correctly.
9635 # The option is referenced via a variable to avoid confusing sed.
9636 lt_compile=`echo "$ac_compile" | $SED \
9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639 -e 's:$: $lt_compiler_flag:'`
b0322a85 9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9641 (eval "$lt_compile" 2>conftest.err)
9642 ac_status=$?
9643 cat conftest.err >&5
b0322a85 9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9645 if (exit $ac_status) && test -s "$ac_outfile"; then
9646 # The compiler can only warn and ignore the option if not recognized
9647 # So say no if there are warnings other than the usual output.
b0322a85 9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_rtti_exceptions=yes
9652 fi
9653 fi
9654 $RM conftest*
d9898ee8 9655
8d138742 9656fi
b0322a85 9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 9658$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 9659
d50284c4 9660if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8d138742
CE
9661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9662else
9663 :
9664fi
d9898ee8 9665
8d138742 9666fi
d9898ee8 9667
d9898ee8 9668
d9898ee8 9669
d9898ee8 9670
d9898ee8 9671
d9898ee8 9672
8d138742
CE
9673 lt_prog_compiler_wl=
9674lt_prog_compiler_pic=
9675lt_prog_compiler_static=
d9898ee8 9676
d9898ee8 9677
d50284c4 9678 if test yes = "$GCC"; then
8d138742
CE
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_static='-static'
d9898ee8 9681
8d138742
CE
9682 case $host_os in
9683 aix*)
9684 # All AIX code is PIC.
d50284c4 9685 if test ia64 = "$host_cpu"; then
8d138742
CE
9686 # AIX 5 now supports IA64 processor
9687 lt_prog_compiler_static='-Bstatic'
9688 fi
d50284c4 9689 lt_prog_compiler_pic='-fPIC'
8d138742 9690 ;;
d9898ee8 9691
8d138742
CE
9692 amigaos*)
9693 case $host_cpu in
9694 powerpc)
9695 # see comment about AmigaOS4 .so support
9696 lt_prog_compiler_pic='-fPIC'
9697 ;;
9698 m68k)
9699 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
9700 # adding the '-m68020' flag to GCC prevents building anything better,
9701 # like '-m68040'.
8d138742
CE
9702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9703 ;;
9704 esac
9705 ;;
d9898ee8 9706
8d138742
CE
9707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9708 # PIC is the default for these OSes.
9709 ;;
d9898ee8 9710
8d138742
CE
9711 mingw* | cygwin* | pw32* | os2* | cegcc*)
9712 # This hack is so that the source file can tell whether it is being
9713 # built for inclusion in a dll (and should export symbols for example).
9714 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9715 # (--disable-auto-import) libraries
9716 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
9717 case $host_os in
9718 os2*)
9719 lt_prog_compiler_static='$wl-static'
9720 ;;
9721 esac
8d138742 9722 ;;
d9898ee8 9723
8d138742
CE
9724 darwin* | rhapsody*)
9725 # PIC is the default on this platform
9726 # Common symbols not allowed in MH_DYLIB files
9727 lt_prog_compiler_pic='-fno-common'
9728 ;;
d9898ee8 9729
b0322a85
CE
9730 haiku*)
9731 # PIC is the default for Haiku.
9732 # The "-static" flag exists, but is broken.
9733 lt_prog_compiler_static=
9734 ;;
9735
8d138742
CE
9736 hpux*)
9737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9739 # sets the default TLS model and affects inlining.
9740 case $host_cpu in
9741 hppa*64*)
9742 # +Z the default
9743 ;;
9744 *)
9745 lt_prog_compiler_pic='-fPIC'
9746 ;;
9747 esac
9748 ;;
d9898ee8 9749
8d138742
CE
9750 interix[3-9]*)
9751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9752 # Instead, we relocate shared libraries at runtime.
9753 ;;
d9898ee8 9754
8d138742
CE
9755 msdosdjgpp*)
9756 # Just because we use GCC doesn't mean we suddenly get shared libraries
9757 # on systems that don't support them.
9758 lt_prog_compiler_can_build_shared=no
9759 enable_shared=no
9760 ;;
d9898ee8 9761
8d138742
CE
9762 *nto* | *qnx*)
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9764 # it will coredump.
9765 lt_prog_compiler_pic='-fPIC -shared'
9766 ;;
d9898ee8 9767
8d138742
CE
9768 sysv4*MP*)
9769 if test -d /usr/nec; then
9770 lt_prog_compiler_pic=-Kconform_pic
9771 fi
9772 ;;
d9898ee8 9773
8d138742
CE
9774 *)
9775 lt_prog_compiler_pic='-fPIC'
9776 ;;
9777 esac
b0322a85
CE
9778
9779 case $cc_basename in
9780 nvcc*) # Cuda Compiler Driver 2.2
9781 lt_prog_compiler_wl='-Xlinker '
9782 if test -n "$lt_prog_compiler_pic"; then
9783 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9784 fi
9785 ;;
9786 esac
8d138742
CE
9787 else
9788 # PORTME Check for flag to pass linker flags through the system compiler.
9789 case $host_os in
9790 aix*)
9791 lt_prog_compiler_wl='-Wl,'
d50284c4 9792 if test ia64 = "$host_cpu"; then
8d138742
CE
9793 # AIX 5 now supports IA64 processor
9794 lt_prog_compiler_static='-Bstatic'
9795 else
9796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9797 fi
9798 ;;
d9898ee8 9799
d50284c4
CE
9800 darwin* | rhapsody*)
9801 # PIC is the default on this platform
9802 # Common symbols not allowed in MH_DYLIB files
9803 lt_prog_compiler_pic='-fno-common'
9804 case $cc_basename in
9805 nagfor*)
9806 # NAG Fortran compiler
9807 lt_prog_compiler_wl='-Wl,-Wl,,'
9808 lt_prog_compiler_pic='-PIC'
9809 lt_prog_compiler_static='-Bstatic'
9810 ;;
9811 esac
9812 ;;
9813
8d138742
CE
9814 mingw* | cygwin* | pw32* | os2* | cegcc*)
9815 # This hack is so that the source file can tell whether it is being
9816 # built for inclusion in a dll (and should export symbols for example).
9817 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
9818 case $host_os in
9819 os2*)
9820 lt_prog_compiler_static='$wl-static'
9821 ;;
9822 esac
8d138742 9823 ;;
d9898ee8 9824
8d138742
CE
9825 hpux9* | hpux10* | hpux11*)
9826 lt_prog_compiler_wl='-Wl,'
9827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9828 # not for PA HP-UX.
9829 case $host_cpu in
9830 hppa*64*|ia64*)
9831 # +Z the default
9832 ;;
9833 *)
9834 lt_prog_compiler_pic='+Z'
9835 ;;
9836 esac
9837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
d50284c4 9838 lt_prog_compiler_static='$wl-a ${wl}archive'
8d138742 9839 ;;
d9898ee8 9840
8d138742
CE
9841 irix5* | irix6* | nonstopux*)
9842 lt_prog_compiler_wl='-Wl,'
9843 # PIC (with -KPIC) is the default.
9844 lt_prog_compiler_static='-non_shared'
9845 ;;
d9898ee8 9846
d50284c4 9847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742 9848 case $cc_basename in
d50284c4 9849 # old Intel for x86_64, which still supported -KPIC.
8d138742
CE
9850 ecc*)
9851 lt_prog_compiler_wl='-Wl,'
9852 lt_prog_compiler_pic='-KPIC'
9853 lt_prog_compiler_static='-static'
9854 ;;
9855 # icc used to be incompatible with GCC.
9856 # ICC 10 doesn't accept -KPIC any more.
9857 icc* | ifort*)
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_pic='-fPIC'
9860 lt_prog_compiler_static='-static'
9861 ;;
9862 # Lahey Fortran 8.1.
9863 lf95*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='--shared'
9866 lt_prog_compiler_static='--static'
9867 ;;
b0322a85
CE
9868 nagfor*)
9869 # NAG Fortran compiler
9870 lt_prog_compiler_wl='-Wl,-Wl,,'
9871 lt_prog_compiler_pic='-PIC'
9872 lt_prog_compiler_static='-Bstatic'
9873 ;;
d50284c4
CE
9874 tcc*)
9875 # Fabrice Bellard et al's Tiny C Compiler
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fPIC'
9878 lt_prog_compiler_static='-static'
9879 ;;
b0322a85 9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
9881 # Portland Group compilers (*not* the Pentium gcc compiler,
9882 # which looks to be a dead project)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-fpic'
9885 lt_prog_compiler_static='-Bstatic'
9886 ;;
9887 ccc*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # All Alpha code is PIC.
9890 lt_prog_compiler_static='-non_shared'
9891 ;;
b0322a85
CE
9892 xl* | bgxl* | bgf* | mpixl*)
9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-qpic'
9896 lt_prog_compiler_static='-qstaticlink'
9897 ;;
9898 *)
9899 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
9900 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl=''
9905 ;;
9906 *Sun\ F* | *Sun*Fortran*)
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_wl='-Qoption ld '
9910 ;;
8d138742
CE
9911 *Sun\ C*)
9912 # Sun C 5.9
9913 lt_prog_compiler_pic='-KPIC'
9914 lt_prog_compiler_static='-Bstatic'
9915 lt_prog_compiler_wl='-Wl,'
9916 ;;
b0322a85
CE
9917 *Intel*\ [CF]*Compiler*)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fPIC'
9920 lt_prog_compiler_static='-static'
9921 ;;
9922 *Portland\ Group*)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fpic'
8d138742 9925 lt_prog_compiler_static='-Bstatic'
8d138742
CE
9926 ;;
9927 esac
9928 ;;
9929 esac
9930 ;;
d9898ee8 9931
8d138742
CE
9932 newsos6)
9933 lt_prog_compiler_pic='-KPIC'
9934 lt_prog_compiler_static='-Bstatic'
9935 ;;
d9898ee8 9936
8d138742
CE
9937 *nto* | *qnx*)
9938 # QNX uses GNU C++, but need to define -shared option too, otherwise
9939 # it will coredump.
9940 lt_prog_compiler_pic='-fPIC -shared'
9941 ;;
d9898ee8 9942
8d138742
CE
9943 osf3* | osf4* | osf5*)
9944 lt_prog_compiler_wl='-Wl,'
9945 # All OSF/1 code is PIC.
9946 lt_prog_compiler_static='-non_shared'
9947 ;;
d9898ee8 9948
8d138742
CE
9949 rdos*)
9950 lt_prog_compiler_static='-non_shared'
9951 ;;
d9898ee8 9952
8d138742
CE
9953 solaris*)
9954 lt_prog_compiler_pic='-KPIC'
9955 lt_prog_compiler_static='-Bstatic'
9956 case $cc_basename in
b0322a85 9957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
9958 lt_prog_compiler_wl='-Qoption ld ';;
9959 *)
9960 lt_prog_compiler_wl='-Wl,';;
9961 esac
9962 ;;
d9898ee8 9963
8d138742
CE
9964 sunos4*)
9965 lt_prog_compiler_wl='-Qoption ld '
9966 lt_prog_compiler_pic='-PIC'
9967 lt_prog_compiler_static='-Bstatic'
9968 ;;
d9898ee8 9969
8d138742
CE
9970 sysv4 | sysv4.2uw2* | sysv4.3*)
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9974 ;;
d9898ee8 9975
8d138742 9976 sysv4*MP*)
d50284c4 9977 if test -d /usr/nec; then
8d138742
CE
9978 lt_prog_compiler_pic='-Kconform_pic'
9979 lt_prog_compiler_static='-Bstatic'
9980 fi
9981 ;;
d9898ee8 9982
8d138742
CE
9983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-KPIC'
9986 lt_prog_compiler_static='-Bstatic'
9987 ;;
d9898ee8 9988
8d138742
CE
9989 unicos*)
9990 lt_prog_compiler_wl='-Wl,'
9991 lt_prog_compiler_can_build_shared=no
9992 ;;
d9898ee8 9993
8d138742
CE
9994 uts4*)
9995 lt_prog_compiler_pic='-pic'
9996 lt_prog_compiler_static='-Bstatic'
9997 ;;
d9898ee8 9998
8d138742
CE
9999 *)
10000 lt_prog_compiler_can_build_shared=no
10001 ;;
10002 esac
10003 fi
d9898ee8 10004
8d138742 10005case $host_os in
d50284c4 10006 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
10007 *djgpp*)
10008 lt_prog_compiler_pic=
10009 ;;
10010 *)
10011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10012 ;;
10013esac
d9898ee8 10014
b0322a85
CE
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10016$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10017if ${lt_cv_prog_compiler_pic+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019else
10020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10023$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10024lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 10025
8d138742
CE
10026#
10027# Check to make sure the PIC flag actually works.
10028#
10029if test -n "$lt_prog_compiler_pic"; then
b0322a85 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 10031$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 10032if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
10033 $as_echo_n "(cached) " >&6
10034else
10035 lt_cv_prog_compiler_pic_works=no
10036 ac_outfile=conftest.$ac_objext
10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 10038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
10039 # Insert the option either (1) after the last *FLAGS variable, or
10040 # (2) before a word containing "conftest.", or (3) at the end.
10041 # Note that $ac_compile itself does not contain backslashes and begins
10042 # with a dollar sign (not a hyphen), so the echo should work correctly.
10043 # The option is referenced via a variable to avoid confusing sed.
10044 lt_compile=`echo "$ac_compile" | $SED \
10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10047 -e 's:$: $lt_compiler_flag:'`
b0322a85 10048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
10049 (eval "$lt_compile" 2>conftest.err)
10050 ac_status=$?
10051 cat conftest.err >&5
b0322a85 10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
10053 if (exit $ac_status) && test -s "$ac_outfile"; then
10054 # The compiler can only warn and ignore the option if not recognized
10055 # So say no if there are warnings other than the usual output.
b0322a85 10056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10059 lt_cv_prog_compiler_pic_works=yes
10060 fi
10061 fi
10062 $RM conftest*
d9898ee8 10063
8d138742 10064fi
b0322a85 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 10066$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 10067
d50284c4 10068if test yes = "$lt_cv_prog_compiler_pic_works"; then
8d138742
CE
10069 case $lt_prog_compiler_pic in
10070 "" | " "*) ;;
10071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10072 esac
10073else
10074 lt_prog_compiler_pic=
10075 lt_prog_compiler_can_build_shared=no
10076fi
d9898ee8 10077
8d138742 10078fi
d9898ee8 10079
10080
d9898ee8 10081
d9898ee8 10082
d9898ee8 10083
d9898ee8 10084
b0322a85
CE
10085
10086
10087
10088
10089
8d138742
CE
10090#
10091# Check to make sure the static flag actually works.
10092#
10093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 10095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 10096if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 10097 $as_echo_n "(cached) " >&6
d9898ee8 10098else
8d138742 10099 lt_cv_prog_compiler_static_works=no
d50284c4 10100 save_LDFLAGS=$LDFLAGS
8d138742
CE
10101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10104 # The linker can only warn and ignore the option if not recognized
10105 # So say no if there are warnings
10106 if test -s conftest.err; then
10107 # Append any errors to the config.log.
10108 cat conftest.err 1>&5
b0322a85 10109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
10110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10111 if diff conftest.exp conftest.er2 >/dev/null; then
10112 lt_cv_prog_compiler_static_works=yes
10113 fi
10114 else
10115 lt_cv_prog_compiler_static_works=yes
10116 fi
10117 fi
10118 $RM -r conftest*
d50284c4 10119 LDFLAGS=$save_LDFLAGS
d9898ee8 10120
8d138742 10121fi
b0322a85 10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 10123$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 10124
d50284c4 10125if test yes = "$lt_cv_prog_compiler_static_works"; then
8d138742
CE
10126 :
10127else
10128 lt_prog_compiler_static=
10129fi
d9898ee8 10130
10131
dd184caf 10132
d9898ee8 10133
d9898ee8 10134
d9898ee8 10135
d9898ee8 10136
b0322a85 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 10138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 10139if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
10140 $as_echo_n "(cached) " >&6
10141else
10142 lt_cv_prog_compiler_c_o=no
10143 $RM -r conftest 2>/dev/null
10144 mkdir conftest
10145 cd conftest
10146 mkdir out
10147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10148
8d138742
CE
10149 lt_compiler_flag="-o out/conftest2.$ac_objext"
10150 # Insert the option either (1) after the last *FLAGS variable, or
10151 # (2) before a word containing "conftest.", or (3) at the end.
10152 # Note that $ac_compile itself does not contain backslashes and begins
10153 # with a dollar sign (not a hyphen), so the echo should work correctly.
10154 lt_compile=`echo "$ac_compile" | $SED \
10155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10157 -e 's:$: $lt_compiler_flag:'`
b0322a85 10158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
10159 (eval "$lt_compile" 2>out/conftest.err)
10160 ac_status=$?
10161 cat out/conftest.err >&5
b0322a85 10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
10163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10164 then
10165 # The compiler can only warn and ignore the option if not recognized
10166 # So say no if there are warnings
b0322a85 10167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
10168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10170 lt_cv_prog_compiler_c_o=yes
10171 fi
10172 fi
10173 chmod u+w . 2>&5
10174 $RM conftest*
10175 # SGI C++ compiler will create directory out/ii_files/ for
10176 # template instantiation
10177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10178 $RM out/* && rmdir out
10179 cd ..
10180 $RM -r conftest
10181 $RM conftest*
d9898ee8 10182
8d138742 10183fi
b0322a85 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 10185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 10186
d9898ee8 10187
10188
10189
10190
d9898ee8 10191
b0322a85 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 10193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 10194if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
10195 $as_echo_n "(cached) " >&6
10196else
10197 lt_cv_prog_compiler_c_o=no
10198 $RM -r conftest 2>/dev/null
10199 mkdir conftest
10200 cd conftest
10201 mkdir out
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10203
8d138742
CE
10204 lt_compiler_flag="-o out/conftest2.$ac_objext"
10205 # Insert the option either (1) after the last *FLAGS variable, or
10206 # (2) before a word containing "conftest.", or (3) at the end.
10207 # Note that $ac_compile itself does not contain backslashes and begins
10208 # with a dollar sign (not a hyphen), so the echo should work correctly.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
b0322a85 10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
10214 (eval "$lt_compile" 2>out/conftest.err)
10215 ac_status=$?
10216 cat out/conftest.err >&5
b0322a85 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
10218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10219 then
10220 # The compiler can only warn and ignore the option if not recognized
10221 # So say no if there are warnings
b0322a85 10222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
10223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10225 lt_cv_prog_compiler_c_o=yes
10226 fi
10227 fi
10228 chmod u+w . 2>&5
10229 $RM conftest*
10230 # SGI C++ compiler will create directory out/ii_files/ for
10231 # template instantiation
10232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10233 $RM out/* && rmdir out
10234 cd ..
10235 $RM -r conftest
10236 $RM conftest*
d9898ee8 10237
8d138742 10238fi
b0322a85 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 10240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 10241
d9898ee8 10242
d9898ee8 10243
d9898ee8 10244
d50284c4
CE
10245hard_links=nottested
10246if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8d138742 10247 # do not overwrite the value of need_locks provided by the user
b0322a85 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
10249$as_echo_n "checking if we can lock with hard links... " >&6; }
10250 hard_links=yes
10251 $RM conftest*
10252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253 touch conftest.a
10254 ln conftest.a conftest.b 2>&5 || hard_links=no
10255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 10257$as_echo "$hard_links" >&6; }
d50284c4
CE
10258 if test no = "$hard_links"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10260$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8d138742
CE
10261 need_locks=warn
10262 fi
10263else
10264 need_locks=no
10265fi
d9898ee8 10266
d9898ee8 10267
d9898ee8 10268
10269
d9898ee8 10270
d9898ee8 10271
b0322a85 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 10273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 10274
8d138742
CE
10275 runpath_var=
10276 allow_undefined_flag=
10277 always_export_symbols=no
10278 archive_cmds=
10279 archive_expsym_cmds=
10280 compiler_needs_object=no
10281 enable_shared_with_static_runtimes=no
10282 export_dynamic_flag_spec=
10283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10284 hardcode_automatic=no
10285 hardcode_direct=no
10286 hardcode_direct_absolute=no
10287 hardcode_libdir_flag_spec=
8d138742
CE
10288 hardcode_libdir_separator=
10289 hardcode_minus_L=no
10290 hardcode_shlibpath_var=unsupported
10291 inherit_rpath=no
10292 link_all_deplibs=unknown
10293 module_cmds=
10294 module_expsym_cmds=
10295 old_archive_from_new_cmds=
10296 old_archive_from_expsyms_cmds=
10297 thread_safe_flag_spec=
10298 whole_archive_flag_spec=
10299 # include_expsyms should be a list of space-separated symbols to be *always*
10300 # included in the symbol list
10301 include_expsyms=
10302 # exclude_expsyms can be an extended regexp of symbols to exclude
d50284c4
CE
10303 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10304 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10305 # as well as any symbol that contains 'd'.
8d138742
CE
10306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10308 # platforms (ab)use it in PIC code, but their linkers get confused if
10309 # the symbol is explicitly referenced. Since portable code cannot
10310 # rely on this symbol name, it's probably fine to never include it in
10311 # preloaded symbol tables.
10312 # Exclude shared library initialization/finalization symbols.
10313 extract_expsyms_cmds=
dd184caf 10314
8d138742
CE
10315 case $host_os in
10316 cygwin* | mingw* | pw32* | cegcc*)
10317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10318 # When not using gcc, we currently assume that we are using
10319 # Microsoft Visual C++.
d50284c4 10320 if test yes != "$GCC"; then
8d138742
CE
10321 with_gnu_ld=no
10322 fi
d9898ee8 10323 ;;
8d138742
CE
10324 interix*)
10325 # we just hope/assume this is gcc and not c89 (= MSVC++)
10326 with_gnu_ld=yes
10327 ;;
d50284c4 10328 openbsd* | bitrig*)
8d138742 10329 with_gnu_ld=no
d9898ee8 10330 ;;
10331 esac
d9898ee8 10332
8d138742 10333 ld_shlibs=yes
b0322a85
CE
10334
10335 # On some targets, GNU ld is compatible enough with the native linker
10336 # that we're better off using the native interface for both.
10337 lt_use_gnu_ld_interface=no
d50284c4 10338 if test yes = "$with_gnu_ld"; then
b0322a85
CE
10339 case $host_os in
10340 aix*)
10341 # The AIX port of GNU ld has always aspired to compatibility
10342 # with the native linker. However, as the warning in the GNU ld
10343 # block says, versions before 2.19.5* couldn't really create working
10344 # shared libraries, regardless of the interface used.
10345 case `$LD -v 2>&1` in
10346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10349 *)
10350 lt_use_gnu_ld_interface=yes
10351 ;;
10352 esac
10353 ;;
10354 *)
10355 lt_use_gnu_ld_interface=yes
10356 ;;
10357 esac
10358 fi
10359
d50284c4 10360 if test yes = "$lt_use_gnu_ld_interface"; then
d9898ee8 10361 # If archive_cmds runs LD, not CC, wlarc should be empty
d50284c4 10362 wlarc='$wl'
d9898ee8 10363
8d138742
CE
10364 # Set some defaults for GNU ld with shared library support. These
10365 # are reset later if shared libraries are not supported. Putting them
10366 # here allows them to be overridden if necessary.
10367 runpath_var=LD_RUN_PATH
d50284c4
CE
10368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10369 export_dynamic_flag_spec='$wl--export-dynamic'
d9898ee8 10370 # ancient GNU ld didn't support --whole-archive et. al.
8d138742 10371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
d50284c4 10372 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d9898ee8 10373 else
8d138742 10374 whole_archive_flag_spec=
d9898ee8 10375 fi
8d138742 10376 supports_anon_versioning=no
d50284c4 10377 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b0322a85 10378 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
10379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10382 *\ 2.11.*) ;; # other 2.11 versions
10383 *) supports_anon_versioning=yes ;;
10384 esac
10385
10386 # See if GNU ld supports shared libraries.
10387 case $host_os in
10388 aix[3-9]*)
10389 # On AIX/PPC, the GNU linker is very broken
d50284c4 10390 if test ia64 != "$host_cpu"; then
8d138742
CE
10391 ld_shlibs=no
10392 cat <<_LT_EOF 1>&2
d9898ee8 10393
b0322a85 10394*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
10395*** to be unable to reliably create shared libraries on AIX.
10396*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
10397*** really care for shared libraries, you may want to install binutils
10398*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10399*** You will then need to restart the configuration process.
d9898ee8 10400
8d138742
CE
10401_LT_EOF
10402 fi
10403 ;;
d9898ee8 10404
8d138742
CE
10405 amigaos*)
10406 case $host_cpu in
10407 powerpc)
10408 # see comment about AmigaOS4 .so support
d50284c4 10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
10410 archive_expsym_cmds=''
10411 ;;
10412 m68k)
10413 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)'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_minus_L=yes
10416 ;;
d9898ee8 10417 esac
8d138742 10418 ;;
d9898ee8 10419
8d138742
CE
10420 beos*)
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 allow_undefined_flag=unsupported
10423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424 # support --undefined. This deserves some investigation. FIXME
d50284c4 10425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
10426 else
10427 ld_shlibs=no
10428 fi
10429 ;;
d9898ee8 10430
8d138742
CE
10431 cygwin* | mingw* | pw32* | cegcc*)
10432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10433 # as there is no search path for DLLs.
10434 hardcode_libdir_flag_spec='-L$libdir'
d50284c4 10435 export_dynamic_flag_spec='$wl--export-all-symbols'
8d138742
CE
10436 allow_undefined_flag=unsupported
10437 always_export_symbols=no
10438 enable_shared_with_static_runtimes=yes
b0322a85
CE
10439 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'
10440 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 10441
8d138742 10442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
10443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10444 # If the export-symbols file already is a .def file, use it as
10445 # is; otherwise, prepend EXPORTS...
10446 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10447 cp $export_symbols $output_objdir/$soname.def;
10448 else
10449 echo EXPORTS > $output_objdir/$soname.def;
10450 cat $export_symbols >> $output_objdir/$soname.def;
10451 fi~
10452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 10453 else
8d138742 10454 ld_shlibs=no
d9898ee8 10455 fi
8d138742 10456 ;;
d9898ee8 10457
b0322a85 10458 haiku*)
d50284c4 10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
10460 link_all_deplibs=yes
10461 ;;
10462
d50284c4
CE
10463 os2*)
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 allow_undefined_flag=unsupported
10467 shrext_cmds=.dll
10468 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10469 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10470 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10471 $ECHO EXPORTS >> $output_objdir/$libname.def~
10472 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10474 emximp -o $lib $output_objdir/$libname.def'
10475 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10476 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10477 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10478 $ECHO EXPORTS >> $output_objdir/$libname.def~
10479 prefix_cmds="$SED"~
10480 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10481 prefix_cmds="$prefix_cmds -e 1d";
10482 fi~
10483 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10484 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10485 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10486 emximp -o $lib $output_objdir/$libname.def'
10487 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10488 enable_shared_with_static_runtimes=yes
10489 ;;
10490
8d138742
CE
10491 interix[3-9]*)
10492 hardcode_direct=no
10493 hardcode_shlibpath_var=no
d50284c4
CE
10494 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10495 export_dynamic_flag_spec='$wl-E'
8d138742
CE
10496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10497 # Instead, shared libraries are loaded at an image base (0x10000000 by
10498 # default) and relocated if they conflict, which is a slow very memory
10499 # consuming and fragmenting process. To avoid this, we pick a random,
10500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
10502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10503 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'
8d138742
CE
10504 ;;
10505
b0322a85 10506 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742 10507 tmp_diet=no
d50284c4 10508 if test linux-dietlibc = "$host_os"; then
8d138742
CE
10509 case $cc_basename in
10510 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10511 esac
10512 fi
10513 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
d50284c4 10514 && test no = "$tmp_diet"
8d138742 10515 then
b0322a85 10516 tmp_addflag=' $pic_flag'
8d138742
CE
10517 tmp_sharedflag='-shared'
10518 case $cc_basename,$host_cpu in
10519 pgcc*) # Portland Group C compiler
d50284c4 10520 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'
8d138742
CE
10521 tmp_addflag=' $pic_flag'
10522 ;;
b0322a85
CE
10523 pgf77* | pgf90* | pgf95* | pgfortran*)
10524 # Portland Group f77 and f90 compilers
d50284c4 10525 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'
8d138742
CE
10526 tmp_addflag=' $pic_flag -Mnomain' ;;
10527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10528 tmp_addflag=' -i_dynamic' ;;
10529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10530 tmp_addflag=' -i_dynamic -nofor_main' ;;
10531 ifc* | ifort*) # Intel Fortran compiler
10532 tmp_addflag=' -nofor_main' ;;
10533 lf95*) # Lahey Fortran 8.1
10534 whole_archive_flag_spec=
10535 tmp_sharedflag='--shared' ;;
d50284c4
CE
10536 nagfor*) # NAGFOR 5.3
10537 tmp_sharedflag='-Wl,-shared' ;;
b0322a85 10538 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
10539 tmp_sharedflag='-qmkshrobj'
10540 tmp_addflag= ;;
b0322a85 10541 nvcc*) # Cuda Compiler Driver 2.2
d50284c4 10542 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'
b0322a85
CE
10543 compiler_needs_object=yes
10544 ;;
8d138742
CE
10545 esac
10546 case `$CC -V 2>&1 | sed 5q` in
10547 *Sun\ C*) # Sun C 5.9
d50284c4 10548 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'
8d138742
CE
10549 compiler_needs_object=yes
10550 tmp_sharedflag='-G' ;;
10551 *Sun\ F*) # Sun Fortran 8.3
10552 tmp_sharedflag='-G' ;;
10553 esac
d50284c4 10554 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742 10555
d50284c4 10556 if test yes = "$supports_anon_versioning"; then
8d138742 10557 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
10558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10559 echo "local: *; };" >> $output_objdir/$libname.ver~
10560 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742
CE
10561 fi
10562
10563 case $cc_basename in
d50284c4
CE
10564 tcc*)
10565 export_dynamic_flag_spec='-rdynamic'
10566 ;;
b0322a85 10567 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
10568 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10569 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
d50284c4 10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b0322a85 10571 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
d50284c4 10572 if test yes = "$supports_anon_versioning"; then
8d138742 10573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
10574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575 echo "local: *; };" >> $output_objdir/$libname.ver~
10576 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
10577 fi
10578 ;;
10579 esac
10580 else
10581 ld_shlibs=no
10582 fi
10583 ;;
10584
10585 netbsd*)
10586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10588 wlarc=
10589 else
d50284c4
CE
10590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10592 fi
10593 ;;
10594
10595 solaris*)
10596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10597 ld_shlibs=no
10598 cat <<_LT_EOF 1>&2
10599
10600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10601*** create shared libraries on Solaris systems. Therefore, libtool
10602*** is disabling shared libraries support. We urge you to upgrade GNU
10603*** binutils to release 2.9.1 or newer. Another option is to modify
10604*** your PATH or compiler configuration so that the native linker is
10605*** used, and then restart.
10606
10607_LT_EOF
10608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10611 else
10612 ld_shlibs=no
10613 fi
10614 ;;
10615
10616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10617 case `$LD -v 2>&1` in
10618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10619 ld_shlibs=no
10620 cat <<_LT_EOF 1>&2
10621
d50284c4 10622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8d138742
CE
10623*** reliably create shared libraries on SCO systems. Therefore, libtool
10624*** is disabling shared libraries support. We urge you to upgrade GNU
10625*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10626*** your PATH or compiler configuration so that the native linker is
10627*** used, and then restart.
10628
10629_LT_EOF
10630 ;;
10631 *)
10632 # For security reasons, it is highly recommended that you always
10633 # use absolute paths for naming shared libraries, and exclude the
10634 # DT_RUNPATH tag from executables and libraries. But doing so
10635 # requires that you compile everything twice, which is a pain.
10636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10640 else
10641 ld_shlibs=no
10642 fi
10643 ;;
10644 esac
10645 ;;
10646
10647 sunos4*)
10648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649 wlarc=
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10652 ;;
10653
10654 *)
10655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10658 else
10659 ld_shlibs=no
10660 fi
10661 ;;
10662 esac
10663
d50284c4 10664 if test no = "$ld_shlibs"; then
8d138742
CE
10665 runpath_var=
10666 hardcode_libdir_flag_spec=
10667 export_dynamic_flag_spec=
10668 whole_archive_flag_spec=
10669 fi
10670 else
10671 # PORTME fill in a description of your system's linker (not GNU ld)
10672 case $host_os in
10673 aix3*)
10674 allow_undefined_flag=unsupported
10675 always_export_symbols=yes
10676 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'
10677 # Note: this linker hardcodes the directories in LIBPATH if there
10678 # are no directories specified by -L.
10679 hardcode_minus_L=yes
d50284c4 10680 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8d138742
CE
10681 # Neither direct hardcoding nor static linking is supported with a
10682 # broken collect2.
10683 hardcode_direct=unsupported
10684 fi
10685 ;;
10686
10687 aix[4-9]*)
d50284c4 10688 if test ia64 = "$host_cpu"; then
8d138742
CE
10689 # On IA64, the linker does run time linking by default, so we don't
10690 # have to do anything special.
10691 aix_use_runtimelinking=no
10692 exp_sym_flag='-Bexport'
d50284c4 10693 no_entry_flag=
8d138742
CE
10694 else
10695 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
10696 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10697 # Without the "-l" option, or with the "-B" option, AIX nm treats
10698 # weak defined symbols like other global defined symbols, whereas
10699 # GNU nm marks them as "W".
10700 # While the 'weak' keyword is ignored in the Export File, we need
10701 # it in the Import File for the 'aix-soname' feature, so we have
10702 # to replace the "-B" option with "-P" for AIX nm.
8d138742 10703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 10704 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8d138742 10705 else
d50284c4 10706 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8d138742
CE
10707 fi
10708 aix_use_runtimelinking=no
10709
10710 # Test if we are trying to use run time linking or normal
10711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
10712 # have runtime linking enabled, and use it for executables.
10713 # For shared libraries, we enable/disable runtime linking
10714 # depending on the kind of the shared library created -
10715 # when "with_aix_soname,aix_use_runtimelinking" is:
10716 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10717 # "aix,yes" lib.so shared, rtl:yes, for executables
10718 # lib.a static archive
10719 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10720 # lib.a(lib.so.V) shared, rtl:no, for executables
10721 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10722 # lib.a(lib.so.V) shared, rtl:no
10723 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10724 # lib.a static archive
8d138742
CE
10725 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10726 for ld_flag in $LDFLAGS; do
d50284c4 10727 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8d138742
CE
10728 aix_use_runtimelinking=yes
10729 break
10730 fi
10731 done
d50284c4
CE
10732 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10733 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10734 # so we don't have lib.a shared libs to link our executables.
10735 # We have to force runtime linking in this case.
10736 aix_use_runtimelinking=yes
10737 LDFLAGS="$LDFLAGS -Wl,-brtl"
10738 fi
8d138742
CE
10739 ;;
10740 esac
10741
10742 exp_sym_flag='-bexport'
10743 no_entry_flag='-bnoentry'
10744 fi
10745
10746 # When large executables or shared objects are built, AIX ld can
10747 # have problems creating the table of contents. If linking a library
10748 # or program results in "error TOC overflow" add -mminimal-toc to
10749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10751
10752 archive_cmds=''
10753 hardcode_direct=yes
10754 hardcode_direct_absolute=yes
10755 hardcode_libdir_separator=':'
10756 link_all_deplibs=yes
d50284c4
CE
10757 file_list_spec='$wl-f,'
10758 case $with_aix_soname,$aix_use_runtimelinking in
10759 aix,*) ;; # traditional, no import file
10760 svr4,* | *,yes) # use import file
10761 # The Import File defines what to hardcode.
10762 hardcode_direct=no
10763 hardcode_direct_absolute=no
10764 ;;
10765 esac
8d138742 10766
d50284c4 10767 if test yes = "$GCC"; then
8d138742
CE
10768 case $host_os in aix4.[012]|aix4.[012].*)
10769 # We only want to do this on AIX 4.2 and lower, the check
10770 # below for broken collect2 doesn't work under 4.3+
d50284c4 10771 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
10772 if test -f "$collect2name" &&
10773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10774 then
10775 # We have reworked collect2
10776 :
10777 else
10778 # We have old collect2
10779 hardcode_direct=unsupported
10780 # It fails to find uninstalled libraries when the uninstalled
10781 # path is not listed in the libpath. Setting hardcode_minus_L
10782 # to unsupported forces relinking
10783 hardcode_minus_L=yes
10784 hardcode_libdir_flag_spec='-L$libdir'
10785 hardcode_libdir_separator=
10786 fi
10787 ;;
10788 esac
10789 shared_flag='-shared'
d50284c4
CE
10790 if test yes = "$aix_use_runtimelinking"; then
10791 shared_flag="$shared_flag "'$wl-G'
8d138742 10792 fi
d50284c4
CE
10793 # Need to ensure runtime linking is disabled for the traditional
10794 # shared library, or the linker may eventually find shared libraries
10795 # /with/ Import File - we do not want to mix them.
10796 shared_flag_aix='-shared'
10797 shared_flag_svr4='-shared $wl-G'
8d138742
CE
10798 else
10799 # not using gcc
d50284c4 10800 if test ia64 = "$host_cpu"; then
8d138742
CE
10801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10802 # chokes on -Wl,-G. The following line is correct:
10803 shared_flag='-G'
10804 else
d50284c4
CE
10805 if test yes = "$aix_use_runtimelinking"; then
10806 shared_flag='$wl-G'
8d138742 10807 else
d50284c4 10808 shared_flag='$wl-bM:SRE'
8d138742 10809 fi
d50284c4
CE
10810 shared_flag_aix='$wl-bM:SRE'
10811 shared_flag_svr4='$wl-G'
8d138742
CE
10812 fi
10813 fi
10814
d50284c4 10815 export_dynamic_flag_spec='$wl-bexpall'
8d138742
CE
10816 # It seems that -bexpall does not export symbols beginning with
10817 # underscore (_), so it is better to generate a list of symbols to export.
10818 always_export_symbols=yes
d50284c4 10819 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8d138742
CE
10820 # Warning - without using the other runtime loading flags (-brtl),
10821 # -berok will link without error, but may produce a broken library.
10822 allow_undefined_flag='-berok'
10823 # Determine the default libpath from the value encoded in an
10824 # empty executable.
d50284c4 10825 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
10826 aix_libpath=$lt_cv_aix_libpath
10827else
10828 if ${lt_cv_aix_libpath_+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830else
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10832/* end confdefs.h. */
d9898ee8 10833
10834int
10835main ()
10836{
10837
10838 ;
10839 return 0;
10840}
10841_ACEOF
b0322a85 10842if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10843
b0322a85
CE
10844 lt_aix_libpath_sed='
10845 /Import File Strings/,/^$/ {
10846 /^0/ {
10847 s/^0 *\([^ ]*\) *$/\1/
10848 p
10849 }
10850 }'
10851 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10852 # Check for a 64-bit object if we didn't find anything.
10853 if test -z "$lt_cv_aix_libpath_"; then
10854 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10855 fi
10856fi
10857rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 10860 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 10861 fi
dd184caf 10862
d9898ee8 10863fi
dd184caf 10864
b0322a85
CE
10865 aix_libpath=$lt_cv_aix_libpath_
10866fi
d9898ee8 10867
d50284c4
CE
10868 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10869 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d9898ee8 10870 else
d50284c4
CE
10871 if test ia64 = "$host_cpu"; then
10872 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8d138742 10873 allow_undefined_flag="-z nodefs"
d50284c4 10874 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"
8d138742
CE
10875 else
10876 # Determine the default libpath from the value encoded in an
10877 # empty executable.
d50284c4 10878 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
10879 aix_libpath=$lt_cv_aix_libpath
10880else
10881 if ${lt_cv_aix_libpath_+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 10885/* end confdefs.h. */
10886
10887int
10888main ()
10889{
10890
10891 ;
10892 return 0;
10893}
10894_ACEOF
b0322a85 10895if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10896
b0322a85
CE
10897 lt_aix_libpath_sed='
10898 /Import File Strings/,/^$/ {
10899 /^0/ {
10900 s/^0 *\([^ ]*\) *$/\1/
10901 p
10902 }
10903 }'
10904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10905 # Check for a 64-bit object if we didn't find anything.
10906 if test -z "$lt_cv_aix_libpath_"; then
10907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10908 fi
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 10913 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 10914 fi
dd184caf 10915
d9898ee8 10916fi
dd184caf 10917
b0322a85
CE
10918 aix_libpath=$lt_cv_aix_libpath_
10919fi
d9898ee8 10920
d50284c4 10921 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8d138742
CE
10922 # Warning - without using the other run time loading flags,
10923 # -berok will link without error, but may produce a broken library.
d50284c4
CE
10924 no_undefined_flag=' $wl-bernotok'
10925 allow_undefined_flag=' $wl-berok'
10926 if test yes = "$with_gnu_ld"; then
b0322a85 10927 # We only use this code for GNU lds that support --whole-archive.
d50284c4 10928 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
10929 else
10930 # Exported symbols can be pulled into shared objects from archives
10931 whole_archive_flag_spec='$convenience'
10932 fi
8d138742 10933 archive_cmds_need_lc=yes
d50284c4
CE
10934 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10935 # -brtl affects multiple linker settings, -berok does not and is overridden later
10936 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10937 if test svr4 != "$with_aix_soname"; then
10938 # This is similar to how AIX traditionally builds its shared libraries.
10939 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10940 fi
10941 if test aix != "$with_aix_soname"; then
10942 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10943 else
10944 # used by -dlpreopen to get the symbols
10945 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10946 fi
10947 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8d138742 10948 fi
d9898ee8 10949 fi
8d138742 10950 ;;
d9898ee8 10951
8d138742
CE
10952 amigaos*)
10953 case $host_cpu in
10954 powerpc)
10955 # see comment about AmigaOS4 .so support
d50284c4 10956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
10957 archive_expsym_cmds=''
10958 ;;
10959 m68k)
10960 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)'
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_minus_L=yes
10963 ;;
10964 esac
10965 ;;
d9898ee8 10966
8d138742
CE
10967 bsdi[45]*)
10968 export_dynamic_flag_spec=-rdynamic
10969 ;;
d9898ee8 10970
8d138742
CE
10971 cygwin* | mingw* | pw32* | cegcc*)
10972 # When not using gcc, we currently assume that we are using
10973 # Microsoft Visual C++.
10974 # hardcode_libdir_flag_spec is actually meaningless, as there is
10975 # no search path for DLLs.
b0322a85
CE
10976 case $cc_basename in
10977 cl*)
10978 # Native MSVC
10979 hardcode_libdir_flag_spec=' '
10980 allow_undefined_flag=unsupported
10981 always_export_symbols=yes
10982 file_list_spec='@'
10983 # Tell ltmain to make .lib files, not .a files.
10984 libext=lib
10985 # Tell ltmain to make .dll files, not .so files.
d50284c4 10986 shrext_cmds=.dll
b0322a85 10987 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
10988 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10989 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10990 cp "$export_symbols" "$output_objdir/$soname.def";
10991 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10992 else
10993 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10994 fi~
10995 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10996 linknames='
b0322a85
CE
10997 # The linker will not automatically build a static lib if we build a DLL.
10998 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10999 enable_shared_with_static_runtimes=yes
11000 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11002 # Don't use ranlib
11003 old_postinstall_cmds='chmod 644 $oldlib'
11004 postlink_cmds='lt_outputfile="@OUTPUT@"~
d50284c4
CE
11005 lt_tool_outputfile="@TOOL_OUTPUT@"~
11006 case $lt_outputfile in
11007 *.exe|*.EXE) ;;
11008 *)
11009 lt_outputfile=$lt_outputfile.exe
11010 lt_tool_outputfile=$lt_tool_outputfile.exe
11011 ;;
11012 esac~
11013 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11014 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11015 $RM "$lt_outputfile.manifest";
11016 fi'
b0322a85
CE
11017 ;;
11018 *)
11019 # Assume MSVC wrapper
11020 hardcode_libdir_flag_spec=' '
11021 allow_undefined_flag=unsupported
11022 # Tell ltmain to make .lib files, not .a files.
11023 libext=lib
11024 # Tell ltmain to make .dll files, not .so files.
d50284c4 11025 shrext_cmds=.dll
b0322a85
CE
11026 # FIXME: Setting linknames here is a bad hack.
11027 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11028 # The linker will automatically build a .lib file if we build a DLL.
11029 old_archive_from_new_cmds='true'
11030 # FIXME: Should let the user specify the lib program.
11031 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11032 enable_shared_with_static_runtimes=yes
11033 ;;
11034 esac
8d138742
CE
11035 ;;
11036
11037 darwin* | rhapsody*)
11038
11039
11040 archive_cmds_need_lc=no
11041 hardcode_direct=no
11042 hardcode_automatic=yes
11043 hardcode_shlibpath_var=unsupported
d50284c4
CE
11044 if test yes = "$lt_cv_ld_force_load"; then
11045 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\"`'
b0322a85
CE
11046
11047 else
11048 whole_archive_flag_spec=''
11049 fi
8d138742 11050 link_all_deplibs=yes
d50284c4 11051 allow_undefined_flag=$_lt_dar_allow_undefined
8d138742 11052 case $cc_basename in
d50284c4 11053 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742
CE
11054 *) _lt_dar_can_shared=$GCC ;;
11055 esac
d50284c4 11056 if test yes = "$_lt_dar_can_shared"; then
b0322a85 11057 output_verbose_link_cmd=func_echo_all
d50284c4
CE
11058 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11059 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11060 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"
11061 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"
8d138742
CE
11062
11063 else
11064 ld_shlibs=no
11065 fi
d9898ee8 11066
d9898ee8 11067 ;;
8d138742
CE
11068
11069 dgux*)
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_libdir_flag_spec='-L$libdir'
11072 hardcode_shlibpath_var=no
d9898ee8 11073 ;;
8d138742 11074
8d138742
CE
11075 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11076 # support. Future versions do this automatically, but an explicit c++rt0.o
11077 # does not break anything, and helps significantly (at the cost of a little
11078 # extra space).
11079 freebsd2.2*)
11080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11081 hardcode_libdir_flag_spec='-R$libdir'
11082 hardcode_direct=yes
11083 hardcode_shlibpath_var=no
11084 ;;
11085
11086 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 11087 freebsd2.*)
8d138742
CE
11088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_direct=yes
11090 hardcode_minus_L=yes
11091 hardcode_shlibpath_var=no
11092 ;;
11093
11094 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11095 freebsd* | dragonfly*)
b0322a85 11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11097 hardcode_libdir_flag_spec='-R$libdir'
11098 hardcode_direct=yes
11099 hardcode_shlibpath_var=no
11100 ;;
11101
11102 hpux9*)
d50284c4
CE
11103 if test yes = "$GCC"; then
11104 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d9898ee8 11105 else
d50284c4 11106 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d9898ee8 11107 fi
d50284c4 11108 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
11109 hardcode_libdir_separator=:
11110 hardcode_direct=yes
d9898ee8 11111
8d138742
CE
11112 # hardcode_minus_L: Not really in the search PATH,
11113 # but as the default location of the library.
11114 hardcode_minus_L=yes
d50284c4 11115 export_dynamic_flag_spec='$wl-E'
d9898ee8 11116 ;;
8d138742
CE
11117
11118 hpux10*)
d50284c4
CE
11119 if test yes,no = "$GCC,$with_gnu_ld"; then
11120 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11121 else
11122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11123 fi
d50284c4
CE
11124 if test no = "$with_gnu_ld"; then
11125 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
11126 hardcode_libdir_separator=:
11127 hardcode_direct=yes
11128 hardcode_direct_absolute=yes
d50284c4 11129 export_dynamic_flag_spec='$wl-E'
8d138742
CE
11130 # hardcode_minus_L: Not really in the search PATH,
11131 # but as the default location of the library.
11132 hardcode_minus_L=yes
11133 fi
d9898ee8 11134 ;;
d9898ee8 11135
8d138742 11136 hpux11*)
d50284c4 11137 if test yes,no = "$GCC,$with_gnu_ld"; then
d9898ee8 11138 case $host_cpu in
11139 hppa*64*)
d50284c4 11140 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11141 ;;
11142 ia64*)
d50284c4 11143 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11144 ;;
11145 *)
d50284c4 11146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11147 ;;
11148 esac
8d138742
CE
11149 else
11150 case $host_cpu in
11151 hppa*64*)
d50284c4 11152 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11153 ;;
8d138742 11154 ia64*)
d50284c4 11155 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11156 ;;
11157 *)
b0322a85
CE
11158
11159 # Older versions of the 11.00 compiler do not understand -b yet
11160 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11162$as_echo_n "checking if $CC understands -b... " >&6; }
11163if ${lt_cv_prog_compiler__b+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165else
11166 lt_cv_prog_compiler__b=no
d50284c4 11167 save_LDFLAGS=$LDFLAGS
b0322a85
CE
11168 LDFLAGS="$LDFLAGS -b"
11169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11171 # The linker can only warn and ignore the option if not recognized
11172 # So say no if there are warnings
11173 if test -s conftest.err; then
11174 # Append any errors to the config.log.
11175 cat conftest.err 1>&5
11176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11178 if diff conftest.exp conftest.er2 >/dev/null; then
11179 lt_cv_prog_compiler__b=yes
11180 fi
11181 else
11182 lt_cv_prog_compiler__b=yes
11183 fi
11184 fi
11185 $RM -r conftest*
d50284c4 11186 LDFLAGS=$save_LDFLAGS
b0322a85
CE
11187
11188fi
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11190$as_echo "$lt_cv_prog_compiler__b" >&6; }
11191
d50284c4
CE
11192if test yes = "$lt_cv_prog_compiler__b"; then
11193 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
11194else
11195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11196fi
11197
d9898ee8 11198 ;;
11199 esac
8d138742 11200 fi
d50284c4
CE
11201 if test no = "$with_gnu_ld"; then
11202 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742 11203 hardcode_libdir_separator=:
d9898ee8 11204
8d138742
CE
11205 case $host_cpu in
11206 hppa*64*|ia64*)
11207 hardcode_direct=no
11208 hardcode_shlibpath_var=no
11209 ;;
11210 *)
11211 hardcode_direct=yes
11212 hardcode_direct_absolute=yes
d50284c4 11213 export_dynamic_flag_spec='$wl-E'
8d138742
CE
11214
11215 # hardcode_minus_L: Not really in the search PATH,
11216 # but as the default location of the library.
11217 hardcode_minus_L=yes
ac40fd9e 11218 ;;
11219 esac
ac40fd9e 11220 fi
8d138742 11221 ;;
d9898ee8 11222
8d138742 11223 irix5* | irix6* | nonstopux*)
d50284c4
CE
11224 if test yes = "$GCC"; then
11225 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'
8d138742
CE
11226 # Try to use the -exported_symbol ld option, if it does not
11227 # work, assume that -exports_file does not work either and
11228 # implicitly export all symbols.
b0322a85
CE
11229 # This should be the same for all languages, so no per-tag cache variable.
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11231$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11232if ${lt_cv_irix_exported_symbol+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234else
d50284c4
CE
11235 save_LDFLAGS=$LDFLAGS
11236 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b0322a85
CE
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238/* end confdefs.h. */
11239int foo (void) { return 0; }
8d138742 11240_ACEOF
b0322a85
CE
11241if ac_fn_c_try_link "$LINENO"; then :
11242 lt_cv_irix_exported_symbol=yes
8d138742 11243else
b0322a85 11244 lt_cv_irix_exported_symbol=no
8d138742 11245fi
b0322a85
CE
11246rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
d50284c4 11248 LDFLAGS=$save_LDFLAGS
b0322a85
CE
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11251$as_echo "$lt_cv_irix_exported_symbol" >&6; }
d50284c4
CE
11252 if test yes = "$lt_cv_irix_exported_symbol"; then
11253 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'
b0322a85 11254 fi
8d138742 11255 else
d50284c4
CE
11256 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'
11257 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'
8d138742
CE
11258 fi
11259 archive_cmds_need_lc='no'
d50284c4 11260 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
11261 hardcode_libdir_separator=:
11262 inherit_rpath=yes
11263 link_all_deplibs=yes
11264 ;;
11265
d50284c4
CE
11266 linux*)
11267 case $cc_basename in
11268 tcc*)
11269 # Fabrice Bellard et al's Tiny C Compiler
11270 ld_shlibs=yes
11271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11272 ;;
11273 esac
11274 ;;
11275
8d138742
CE
11276 netbsd*)
11277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11279 else
11280 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11281 fi
11282 hardcode_libdir_flag_spec='-R$libdir'
11283 hardcode_direct=yes
11284 hardcode_shlibpath_var=no
11285 ;;
11286
11287 newsos6)
11288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289 hardcode_direct=yes
d50284c4 11290 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
11291 hardcode_libdir_separator=:
11292 hardcode_shlibpath_var=no
11293 ;;
d9898ee8 11294
8d138742
CE
11295 *nto* | *qnx*)
11296 ;;
d9898ee8 11297
d50284c4 11298 openbsd* | bitrig*)
8d138742
CE
11299 if test -f /usr/libexec/ld.so; then
11300 hardcode_direct=yes
11301 hardcode_shlibpath_var=no
11302 hardcode_direct_absolute=yes
d50284c4 11303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742 11304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d50284c4
CE
11305 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11306 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11307 export_dynamic_flag_spec='$wl-E'
d9898ee8 11308 else
d50284c4
CE
11309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11310 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d9898ee8 11311 fi
8d138742
CE
11312 else
11313 ld_shlibs=no
11314 fi
11315 ;;
d9898ee8 11316
8d138742
CE
11317 os2*)
11318 hardcode_libdir_flag_spec='-L$libdir'
11319 hardcode_minus_L=yes
11320 allow_undefined_flag=unsupported
d50284c4
CE
11321 shrext_cmds=.dll
11322 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11323 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11324 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11325 $ECHO EXPORTS >> $output_objdir/$libname.def~
11326 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11327 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11328 emximp -o $lib $output_objdir/$libname.def'
11329 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11330 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11331 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11332 $ECHO EXPORTS >> $output_objdir/$libname.def~
11333 prefix_cmds="$SED"~
11334 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11335 prefix_cmds="$prefix_cmds -e 1d";
11336 fi~
11337 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11338 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11339 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11340 emximp -o $lib $output_objdir/$libname.def'
11341 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11342 enable_shared_with_static_runtimes=yes
8d138742 11343 ;;
d9898ee8 11344
8d138742 11345 osf3*)
d50284c4
CE
11346 if test yes = "$GCC"; then
11347 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11348 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'
8d138742
CE
11349 else
11350 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 11351 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'
8d138742
CE
11352 fi
11353 archive_cmds_need_lc='no'
d50284c4 11354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
11355 hardcode_libdir_separator=:
11356 ;;
d9898ee8 11357
8d138742 11358 osf4* | osf5*) # as osf3* with the addition of -msym flag
d50284c4
CE
11359 if test yes = "$GCC"; then
11360 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11361 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'
11362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
11363 else
11364 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 11365 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'
8d138742 11366 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~
d50284c4 11367 $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'
d9898ee8 11368
8d138742
CE
11369 # Both c and cxx compiler support -rpath directly
11370 hardcode_libdir_flag_spec='-rpath $libdir'
11371 fi
11372 archive_cmds_need_lc='no'
11373 hardcode_libdir_separator=:
11374 ;;
d9898ee8 11375
8d138742
CE
11376 solaris*)
11377 no_undefined_flag=' -z defs'
d50284c4
CE
11378 if test yes = "$GCC"; then
11379 wlarc='$wl'
11380 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 11381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 11382 $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'
8d138742
CE
11383 else
11384 case `$CC -V 2>&1` in
11385 *"Compilers 5.0"*)
11386 wlarc=''
d50284c4 11387 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8d138742 11388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 11389 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8d138742
CE
11390 ;;
11391 *)
d50284c4
CE
11392 wlarc='$wl'
11393 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 11394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 11395 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
11396 ;;
11397 esac
11398 fi
11399 hardcode_libdir_flag_spec='-R$libdir'
11400 hardcode_shlibpath_var=no
11401 case $host_os in
11402 solaris2.[0-5] | solaris2.[0-5].*) ;;
11403 *)
11404 # The compiler driver will combine and reorder linker options,
d50284c4 11405 # but understands '-z linker_flag'. GCC discards it without '$wl',
8d138742
CE
11406 # but is careful enough not to reorder.
11407 # Supported since Solaris 2.6 (maybe 2.5.1?)
d50284c4
CE
11408 if test yes = "$GCC"; then
11409 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d9898ee8 11410 else
8d138742 11411 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 11412 fi
11413 ;;
8d138742
CE
11414 esac
11415 link_all_deplibs=yes
11416 ;;
d9898ee8 11417
8d138742 11418 sunos4*)
d50284c4 11419 if test sequent = "$host_vendor"; then
8d138742
CE
11420 # Use $CC to link under sequent, because it throws in some extra .o
11421 # files that make .init and .fini sections work.
d50284c4 11422 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11423 else
11424 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11425 fi
11426 hardcode_libdir_flag_spec='-L$libdir'
11427 hardcode_direct=yes
11428 hardcode_minus_L=yes
11429 hardcode_shlibpath_var=no
11430 ;;
d9898ee8 11431
8d138742
CE
11432 sysv4)
11433 case $host_vendor in
11434 sni)
11435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11436 hardcode_direct=yes # is this really true???
d9898ee8 11437 ;;
8d138742
CE
11438 siemens)
11439 ## LD is ld it makes a PLAMLIB
11440 ## CC just makes a GrossModule.
11441 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11442 reload_cmds='$CC -r -o $output$reload_objs'
11443 hardcode_direct=no
11444 ;;
11445 motorola)
11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 11448 ;;
8d138742
CE
11449 esac
11450 runpath_var='LD_RUN_PATH'
11451 hardcode_shlibpath_var=no
11452 ;;
d9898ee8 11453
8d138742
CE
11454 sysv4.3*)
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_shlibpath_var=no
11457 export_dynamic_flag_spec='-Bexport'
11458 ;;
d9898ee8 11459
8d138742
CE
11460 sysv4*MP*)
11461 if test -d /usr/nec; then
11462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463 hardcode_shlibpath_var=no
11464 runpath_var=LD_RUN_PATH
11465 hardcode_runpath_var=yes
11466 ld_shlibs=yes
11467 fi
11468 ;;
d9898ee8 11469
8d138742 11470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 11471 no_undefined_flag='$wl-z,text'
8d138742
CE
11472 archive_cmds_need_lc=no
11473 hardcode_shlibpath_var=no
11474 runpath_var='LD_RUN_PATH'
d9898ee8 11475
d50284c4
CE
11476 if test yes = "$GCC"; then
11477 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 11479 else
d50284c4
CE
11480 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11482 fi
11483 ;;
d9898ee8 11484
8d138742 11485 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 11486 # Note: We CANNOT use -z defs as we might desire, because we do not
8d138742
CE
11487 # link with -lc, and that would cause any symbols used from libc to
11488 # always be unresolved, which means just about no library would
11489 # ever link correctly. If we're not using GNU ld we use -z text
11490 # though, which does catch some bad symbols but isn't as heavy-handed
11491 # as -z defs.
d50284c4
CE
11492 no_undefined_flag='$wl-z,text'
11493 allow_undefined_flag='$wl-z,nodefs'
8d138742
CE
11494 archive_cmds_need_lc=no
11495 hardcode_shlibpath_var=no
d50284c4 11496 hardcode_libdir_flag_spec='$wl-R,$libdir'
8d138742
CE
11497 hardcode_libdir_separator=':'
11498 link_all_deplibs=yes
d50284c4 11499 export_dynamic_flag_spec='$wl-Bexport'
8d138742 11500 runpath_var='LD_RUN_PATH'
d9898ee8 11501
d50284c4
CE
11502 if test yes = "$GCC"; then
11503 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 11505 else
d50284c4
CE
11506 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
11508 fi
11509 ;;
d9898ee8 11510
8d138742
CE
11511 uts4*)
11512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513 hardcode_libdir_flag_spec='-L$libdir'
11514 hardcode_shlibpath_var=no
11515 ;;
d9898ee8 11516
8d138742
CE
11517 *)
11518 ld_shlibs=no
11519 ;;
11520 esac
d9898ee8 11521
d50284c4 11522 if test sni = "$host_vendor"; then
8d138742
CE
11523 case $host in
11524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d50284c4 11525 export_dynamic_flag_spec='$wl-Blargedynsym'
8d138742
CE
11526 ;;
11527 esac
11528 fi
11529 fi
d9898ee8 11530
b0322a85 11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742 11532$as_echo "$ld_shlibs" >&6; }
d50284c4 11533test no = "$ld_shlibs" && can_build_shared=no
d9898ee8 11534
8d138742 11535with_gnu_ld=$with_gnu_ld
d9898ee8 11536
d9898ee8 11537
d9898ee8 11538
d9898ee8 11539
d9898ee8 11540
d9898ee8 11541
d9898ee8 11542
d9898ee8 11543
d9898ee8 11544
8d138742
CE
11545
11546
11547
11548
11549
11550
11551#
11552# Do we need to explicitly link libc?
11553#
11554case "x$archive_cmds_need_lc" in
11555x|xyes)
11556 # Assume -lc should be added
11557 archive_cmds_need_lc=yes
11558
d50284c4 11559 if test yes,yes = "$GCC,$enable_shared"; then
8d138742
CE
11560 case $archive_cmds in
11561 *'~'*)
11562 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 11563 ;;
8d138742
CE
11564 '$CC '*)
11565 # Test whether the compiler implicitly links with -lc since on some
11566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11567 # to ld, don't add -lc before -lgcc.
b0322a85 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 11569$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
11570if ${lt_cv_archive_cmds_need_lc+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572else
11573 $RM conftest*
11574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 11575
b0322a85 11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
11577 (eval $ac_compile) 2>&5
11578 ac_status=$?
b0322a85
CE
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } 2>conftest.err; then
11581 soname=conftest
11582 lib=conftest
11583 libobjs=conftest.$ac_objext
11584 deplibs=
11585 wl=$lt_prog_compiler_wl
11586 pic_flag=$lt_prog_compiler_pic
11587 compiler_flags=-v
11588 linker_flags=-v
11589 verstring=
11590 output_objdir=.
11591 libname=conftest
11592 lt_save_allow_undefined_flag=$allow_undefined_flag
11593 allow_undefined_flag=
11594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
11595 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11596 ac_status=$?
b0322a85
CE
11597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598 test $ac_status = 0; }
11599 then
11600 lt_cv_archive_cmds_need_lc=no
11601 else
11602 lt_cv_archive_cmds_need_lc=yes
11603 fi
11604 allow_undefined_flag=$lt_save_allow_undefined_flag
11605 else
11606 cat conftest.err 1>&5
11607 fi
11608 $RM conftest*
11609
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11612$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11613 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ac40fd9e 11614 ;;
11615 esac
8d138742 11616 fi
d9898ee8 11617 ;;
11618esac
11619
11620
d9898ee8 11621
d9898ee8 11622
d9898ee8 11623
d9898ee8 11624
d9898ee8 11625
d9898ee8 11626
d9898ee8 11627
d9898ee8 11628
d9898ee8 11629
d9898ee8 11630
d9898ee8 11631
d9898ee8 11632
ac40fd9e 11633
d9898ee8 11634
d9898ee8 11635
d9898ee8 11636
d9898ee8 11637
d9898ee8 11638
d9898ee8 11639
d9898ee8 11640
d9898ee8 11641
d9898ee8 11642
d9898ee8 11643
d9898ee8 11644
d9898ee8 11645
d9898ee8 11646
d9898ee8 11647
d9898ee8 11648
d9898ee8 11649
d9898ee8 11650
d9898ee8 11651
ac40fd9e 11652
d9898ee8 11653
d9898ee8 11654
d9898ee8 11655
d9898ee8 11656
d9898ee8 11657
d9898ee8 11658
d9898ee8 11659
d9898ee8 11660
d9898ee8 11661
d9898ee8 11662
d9898ee8 11663
11664
d9898ee8 11665
d9898ee8 11666
d9898ee8 11667
d9898ee8 11668
d9898ee8 11669
d9898ee8 11670
d9898ee8 11671
d9898ee8 11672
d9898ee8 11673
d9898ee8 11674
d9898ee8 11675
d9898ee8 11676
d9898ee8 11677
d9898ee8 11678
d9898ee8 11679
d9898ee8 11680
d9898ee8 11681
d9898ee8 11682
d9898ee8 11683
d9898ee8 11684
d9898ee8 11685
d9898ee8 11686
d9898ee8 11687
d9898ee8 11688
d9898ee8 11689
d9898ee8 11690
d9898ee8 11691
d9898ee8 11692
d9898ee8 11693
d9898ee8 11694
d9898ee8 11695
d9898ee8 11696
d9898ee8 11697
d9898ee8 11698
d9898ee8 11699
d9898ee8 11700
d9898ee8 11701
d9898ee8 11702
d9898ee8 11703
d9898ee8 11704
d9898ee8 11705
d9898ee8 11706
d9898ee8 11707
d9898ee8 11708
d9898ee8 11709
d9898ee8 11710
d9898ee8 11711
d9898ee8 11712
d9898ee8 11713
d9898ee8 11714
d9898ee8 11715
d9898ee8 11716
d9898ee8 11717
d9898ee8 11718
d9898ee8 11719
d9898ee8 11720
d9898ee8 11721
d9898ee8 11722
d9898ee8 11723
d9898ee8 11724
d9898ee8 11725
d9898ee8 11726
d9898ee8 11727
d9898ee8 11728
d9898ee8 11729
d9898ee8 11730
d9898ee8 11731
d9898ee8 11732
d9898ee8 11733
d9898ee8 11734
d9898ee8 11735
d9898ee8 11736
d9898ee8 11737
d9898ee8 11738
d9898ee8 11739
d9898ee8 11740
d9898ee8 11741
d9898ee8 11742
d9898ee8 11743
d9898ee8 11744
d9898ee8 11745
d9898ee8 11746
d9898ee8 11747
d9898ee8 11748
d9898ee8 11749
d9898ee8 11750
d9898ee8 11751
d9898ee8 11752
d9898ee8 11753
d9898ee8 11754
d9898ee8 11755
d9898ee8 11756
d9898ee8 11757
d9898ee8 11758
d9898ee8 11759
d9898ee8 11760
d9898ee8 11761
11762
8d138742
CE
11763
11764
11765
11766
11767
11768
11769
11770
b0322a85 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
11772$as_echo_n "checking dynamic linker characteristics... " >&6; }
11773
d50284c4 11774if test yes = "$GCC"; then
8d138742 11775 case $host_os in
d50284c4
CE
11776 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11777 *) lt_awk_arg='/^libraries:/' ;;
8d138742 11778 esac
b0322a85 11779 case $host_os in
d50284c4
CE
11780 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11781 *) lt_sed_strip_eq='s|=/|/|g' ;;
b0322a85
CE
11782 esac
11783 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11784 case $lt_search_path_spec in
11785 *\;*)
8d138742
CE
11786 # if the path contains ";" then we assume it to be the separator
11787 # otherwise default to the standard path separator (i.e. ":") - it is
11788 # assumed that no part of a normal pathname contains ";" but that should
11789 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
11790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11791 ;;
11792 *)
11793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11794 ;;
11795 esac
8d138742 11796 # Ok, now we have the path, separated by spaces, we can step through it
d50284c4 11797 # and add multilib dir if necessary...
8d138742 11798 lt_tmp_lt_search_path_spec=
d50284c4
CE
11799 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11800 # ...but if some path component already ends with the multilib dir we assume
11801 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11802 case "$lt_multi_os_dir; $lt_search_path_spec " in
11803 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11804 lt_multi_os_dir=
11805 ;;
11806 esac
8d138742 11807 for lt_sys_path in $lt_search_path_spec; do
d50284c4
CE
11808 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11810 elif test -n "$lt_multi_os_dir"; then
8d138742
CE
11811 test -d "$lt_sys_path" && \
11812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11813 fi
11814 done
b0322a85 11815 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d50284c4
CE
11816BEGIN {RS = " "; FS = "/|\n";} {
11817 lt_foo = "";
11818 lt_count = 0;
8d138742
CE
11819 for (lt_i = NF; lt_i > 0; lt_i--) {
11820 if ($lt_i != "" && $lt_i != ".") {
11821 if ($lt_i == "..") {
11822 lt_count++;
11823 } else {
11824 if (lt_count == 0) {
d50284c4 11825 lt_foo = "/" $lt_i lt_foo;
8d138742
CE
11826 } else {
11827 lt_count--;
11828 }
11829 }
11830 }
11831 }
11832 if (lt_foo != "") { lt_freq[lt_foo]++; }
11833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11834}'`
b0322a85
CE
11835 # AWK program above erroneously prepends '/' to C:/dos/paths
11836 # for these hosts.
11837 case $host_os in
11838 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
d50284c4 11839 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b0322a85
CE
11840 esac
11841 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
11842else
11843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
d9898ee8 11844fi
8d138742
CE
11845library_names_spec=
11846libname_spec='lib$name'
11847soname_spec=
d50284c4 11848shrext_cmds=.so
8d138742
CE
11849postinstall_cmds=
11850postuninstall_cmds=
11851finish_cmds=
11852finish_eval=
11853shlibpath_var=
11854shlibpath_overrides_runpath=unknown
11855version_type=none
11856dynamic_linker="$host_os ld.so"
11857sys_lib_dlsearch_path_spec="/lib /usr/lib"
11858need_lib_prefix=unknown
11859hardcode_into_libs=no
d9898ee8 11860
8d138742
CE
11861# when you set need_version to no, make sure it does not cause -set_version
11862# flags to be left without arguments
11863need_version=unknown
d9898ee8 11864
d50284c4
CE
11865
11866
8d138742
CE
11867case $host_os in
11868aix3*)
b0322a85 11869 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
8d138742 11871 shlibpath_var=LIBPATH
d9898ee8 11872
8d138742 11873 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 11874 soname_spec='$libname$release$shared_ext$major'
8d138742 11875 ;;
d9898ee8 11876
8d138742 11877aix[4-9]*)
b0322a85 11878 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11879 need_lib_prefix=no
11880 need_version=no
11881 hardcode_into_libs=yes
d50284c4 11882 if test ia64 = "$host_cpu"; then
8d138742 11883 # AIX 5 supports IA64
d50284c4 11884 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
8d138742
CE
11885 shlibpath_var=LD_LIBRARY_PATH
11886 else
11887 # With GCC up to 2.95.x, collect2 would create an import file
11888 # for dependence libraries. The import file would start with
d50284c4
CE
11889 # the line '#! .'. This would cause the generated library to
11890 # depend on '.', always an invalid library. This was fixed in
8d138742
CE
11891 # development snapshots of GCC prior to 3.0.
11892 case $host_os in
11893 aix4 | aix4.[01] | aix4.[01].*)
11894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11895 echo ' yes '
d50284c4 11896 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
8d138742
CE
11897 :
11898 else
11899 can_build_shared=no
11900 fi
11901 ;;
11902 esac
d50284c4
CE
11903 # Using Import Files as archive members, it is possible to support
11904 # filename-based versioning of shared library archives on AIX. While
11905 # this would work for both with and without runtime linking, it will
11906 # prevent static linking of such archives. So we do filename-based
11907 # shared library versioning with .so extension only, which is used
11908 # when both runtime linking and shared linking is enabled.
11909 # Unfortunately, runtime linking may impact performance, so we do
11910 # not want this to be the default eventually. Also, we use the
11911 # versioned .so libs for executables only if there is the -brtl
11912 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11913 # To allow for filename-based versioning support, we need to create
11914 # libNAME.so.V as an archive file, containing:
11915 # *) an Import File, referring to the versioned filename of the
11916 # archive as well as the shared archive member, telling the
11917 # bitwidth (32 or 64) of that shared object, and providing the
11918 # list of exported symbols of that shared object, eventually
11919 # decorated with the 'weak' keyword
11920 # *) the shared object with the F_LOADONLY flag set, to really avoid
11921 # it being seen by the linker.
11922 # At run time we better use the real file rather than another symlink,
11923 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11924
11925 case $with_aix_soname,$aix_use_runtimelinking in
11926 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
8d138742
CE
11927 # soname into executable. Probably we can add versioning support to
11928 # collect2, so additional links can be useful in future.
d50284c4
CE
11929 aix,yes) # traditional libtool
11930 dynamic_linker='AIX unversionable lib.so'
8d138742
CE
11931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11932 # instead of lib<name>.a to let people know that these are not
11933 # typical AIX shared libraries.
d50284c4
CE
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11935 ;;
11936 aix,no) # traditional AIX only
11937 dynamic_linker='AIX lib.a(lib.so.V)'
8d138742
CE
11938 # We preserve .a as extension for shared libraries through AIX4.2
11939 # and later when we are not doing run time linking.
d50284c4
CE
11940 library_names_spec='$libname$release.a $libname.a'
11941 soname_spec='$libname$release$shared_ext$major'
11942 ;;
11943 svr4,*) # full svr4 only
11944 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11945 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11946 # We do not specify a path in Import Files, so LIBPATH fires.
11947 shlibpath_overrides_runpath=yes
11948 ;;
11949 *,yes) # both, prefer svr4
11950 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11951 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11952 # unpreferred sharedlib libNAME.a needs extra handling
11953 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11954 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11955 # We do not specify a path in Import Files, so LIBPATH fires.
11956 shlibpath_overrides_runpath=yes
11957 ;;
11958 *,no) # both, prefer aix
11959 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11960 library_names_spec='$libname$release.a $libname.a'
11961 soname_spec='$libname$release$shared_ext$major'
11962 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11963 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11964 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11965 ;;
11966 esac
8d138742
CE
11967 shlibpath_var=LIBPATH
11968 fi
11969 ;;
11970
11971amigaos*)
11972 case $host_cpu in
11973 powerpc)
11974 # Since July 2007 AmigaOS4 officially supports .so libraries.
11975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
11977 ;;
11978 m68k)
11979 library_names_spec='$libname.ixlibrary $libname.a'
11980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 11981 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
8d138742
CE
11982 ;;
11983 esac
11984 ;;
11985
11986beos*)
d50284c4 11987 library_names_spec='$libname$shared_ext'
8d138742
CE
11988 dynamic_linker="$host_os ld.so"
11989 shlibpath_var=LIBRARY_PATH
11990 ;;
11991
11992bsdi[45]*)
b0322a85 11993 version_type=linux # correct to gnu/linux during the next big refactor
8d138742 11994 need_version=no
d50284c4
CE
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11996 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12001 # the default ld.so.conf also contains /usr/contrib/lib and
12002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12003 # libtool to hard-code these into programs
12004 ;;
d9898ee8 12005
8d138742
CE
12006cygwin* | mingw* | pw32* | cegcc*)
12007 version_type=windows
d50284c4 12008 shrext_cmds=.dll
8d138742
CE
12009 need_version=no
12010 need_lib_prefix=no
d9898ee8 12011
b0322a85
CE
12012 case $GCC,$cc_basename in
12013 yes,*)
12014 # gcc
8d138742
CE
12015 library_names_spec='$libname.dll.a'
12016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
12017 postinstall_cmds='base_file=`basename \$file`~
12018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
8d138742
CE
12019 dldir=$destdir/`dirname \$dlpath`~
12020 test -d \$dldir || mkdir -p \$dldir~
12021 $install_prog $dir/$dlname \$dldir/$dlname~
12022 chmod a+x \$dldir/$dlname~
12023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12025 fi'
12026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12027 dlpath=$dir/\$dldll~
12028 $RM \$dlpath'
12029 shlibpath_overrides_runpath=yes
d9898ee8 12030
8d138742
CE
12031 case $host_os in
12032 cygwin*)
12033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 12034 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85
CE
12035
12036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
8d138742
CE
12037 ;;
12038 mingw* | cegcc*)
12039 # MinGW DLLs use traditional 'lib' prefix
d50284c4 12040 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
8d138742
CE
12041 ;;
12042 pw32*)
12043 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 12044 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
8d138742
CE
12045 ;;
12046 esac
b0322a85
CE
12047 dynamic_linker='Win32 ld.exe'
12048 ;;
12049
12050 *,cl*)
12051 # Native MSVC
12052 libname_spec='$name'
d50284c4
CE
12053 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12054 library_names_spec='$libname.dll.lib'
b0322a85
CE
12055
12056 case $build_os in
12057 mingw*)
12058 sys_lib_search_path_spec=
12059 lt_save_ifs=$IFS
12060 IFS=';'
12061 for lt_path in $LIB
12062 do
12063 IFS=$lt_save_ifs
12064 # Let DOS variable expansion print the short 8.3 style file name.
12065 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12066 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12067 done
12068 IFS=$lt_save_ifs
12069 # Convert to MSYS style.
12070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12071 ;;
12072 cygwin*)
12073 # Convert to unix form, then to dos form, then back to unix form
12074 # but this time dos style (no spaces!) so that the unix form looks
12075 # like /cygdrive/c/PROGRA~1:/cygdr...
12076 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12077 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12078 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12079 ;;
12080 *)
d50284c4 12081 sys_lib_search_path_spec=$LIB
b0322a85
CE
12082 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12083 # It is most probably a Windows format PATH.
12084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12085 else
12086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12087 fi
12088 # FIXME: find the short name or the path components, as spaces are
12089 # common. (e.g. "Program Files" -> "PROGRA~1")
12090 ;;
12091 esac
12092
12093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
12094 postinstall_cmds='base_file=`basename \$file`~
12095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
12096 dldir=$destdir/`dirname \$dlpath`~
12097 test -d \$dldir || mkdir -p \$dldir~
12098 $install_prog $dir/$dlname \$dldir/$dlname'
12099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12100 dlpath=$dir/\$dldll~
12101 $RM \$dlpath'
12102 shlibpath_overrides_runpath=yes
12103 dynamic_linker='Win32 link.exe'
8d138742 12104 ;;
d9898ee8 12105
8d138742 12106 *)
b0322a85 12107 # Assume MSVC wrapper
d50284c4 12108 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85 12109 dynamic_linker='Win32 ld.exe'
8d138742
CE
12110 ;;
12111 esac
8d138742
CE
12112 # FIXME: first we should search . and the directory the executable is in
12113 shlibpath_var=PATH
12114 ;;
d9898ee8 12115
8d138742
CE
12116darwin* | rhapsody*)
12117 dynamic_linker="$host_os dyld"
12118 version_type=darwin
12119 need_lib_prefix=no
12120 need_version=no
d50284c4
CE
12121 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12122 soname_spec='$libname$release$major$shared_ext'
8d138742
CE
12123 shlibpath_overrides_runpath=yes
12124 shlibpath_var=DYLD_LIBRARY_PATH
12125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d9898ee8 12126
8d138742
CE
12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12129 ;;
d9898ee8 12130
8d138742 12131dgux*)
b0322a85 12132 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12133 need_lib_prefix=no
12134 need_version=no
d50284c4
CE
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12137 shlibpath_var=LD_LIBRARY_PATH
12138 ;;
d9898ee8 12139
8d138742
CE
12140freebsd* | dragonfly*)
12141 # DragonFly does not have aout. When/if they implement a new
12142 # versioning mechanism, adjust this.
12143 if test -x /usr/bin/objformat; then
12144 objformat=`/usr/bin/objformat`
12145 else
12146 case $host_os in
b0322a85 12147 freebsd[23].*) objformat=aout ;;
8d138742
CE
12148 *) objformat=elf ;;
12149 esac
12150 fi
12151 version_type=freebsd-$objformat
12152 case $version_type in
12153 freebsd-elf*)
d50284c4
CE
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12156 need_version=no
12157 need_lib_prefix=no
12158 ;;
12159 freebsd-*)
d50284c4 12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8d138742
CE
12161 need_version=yes
12162 ;;
12163 esac
12164 shlibpath_var=LD_LIBRARY_PATH
12165 case $host_os in
b0322a85 12166 freebsd2.*)
8d138742
CE
12167 shlibpath_overrides_runpath=yes
12168 ;;
12169 freebsd3.[01]* | freebsdelf3.[01]*)
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 ;;
12173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12175 shlibpath_overrides_runpath=no
12176 hardcode_into_libs=yes
12177 ;;
12178 *) # from 4.6 on, and DragonFly
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12181 ;;
12182 esac
12183 ;;
d9898ee8 12184
b0322a85
CE
12185haiku*)
12186 version_type=linux # correct to gnu/linux during the next big refactor
12187 need_lib_prefix=no
12188 need_version=no
12189 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 soname_spec='$libname$release$shared_ext$major'
b0322a85 12192 shlibpath_var=LIBRARY_PATH
d50284c4 12193 shlibpath_overrides_runpath=no
b0322a85 12194 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
8d138742
CE
12195 hardcode_into_libs=yes
12196 ;;
d9898ee8 12197
8d138742
CE
12198hpux9* | hpux10* | hpux11*)
12199 # Give a soname corresponding to the major version so that dld.sl refuses to
12200 # link against other versions.
12201 version_type=sunos
12202 need_lib_prefix=no
12203 need_version=no
12204 case $host_cpu in
12205 ia64*)
12206 shrext_cmds='.so'
12207 hardcode_into_libs=yes
12208 dynamic_linker="$host_os dld.so"
12209 shlibpath_var=LD_LIBRARY_PATH
12210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12212 soname_spec='$libname$release$shared_ext$major'
12213 if test 32 = "$HPUX_IA64_MODE"; then
8d138742 12214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 12215 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
8d138742
CE
12216 else
12217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 12218 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
8d138742 12219 fi
8d138742
CE
12220 ;;
12221 hppa*64*)
12222 shrext_cmds='.sl'
12223 hardcode_into_libs=yes
12224 dynamic_linker="$host_os dld.sl"
12225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12231 ;;
12232 *)
12233 shrext_cmds='.sl'
12234 dynamic_linker="$host_os dld.sl"
12235 shlibpath_var=SHLIB_PATH
12236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12239 ;;
12240 esac
b0322a85 12241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
8d138742 12242 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
12243 # or fails outright, so override atomically:
12244 install_override_mode=555
8d138742 12245 ;;
d9898ee8 12246
8d138742 12247interix[3-9]*)
b0322a85 12248 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12249 need_lib_prefix=no
12250 need_version=no
d50284c4
CE
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12257 ;;
12258
12259irix5* | irix6* | nonstopux*)
12260 case $host_os in
12261 nonstopux*) version_type=nonstopux ;;
12262 *)
d50284c4 12263 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 12264 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12265 else
12266 version_type=irix
12267 fi ;;
d9898ee8 12268 esac
8d138742
CE
12269 need_lib_prefix=no
12270 need_version=no
d50284c4
CE
12271 soname_spec='$libname$release$shared_ext$major'
12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
8d138742
CE
12273 case $host_os in
12274 irix5* | nonstopux*)
12275 libsuff= shlibsuff=
12276 ;;
12277 *)
12278 case $LD in # libtool.m4 will add one of these switches to LD
12279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12280 libsuff= shlibsuff= libmagic=32-bit;;
12281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12282 libsuff=32 shlibsuff=N32 libmagic=N32;;
12283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12285 *) libsuff= shlibsuff= libmagic=never-match;;
12286 esac
12287 ;;
12288 esac
12289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12290 shlibpath_overrides_runpath=no
d50284c4
CE
12291 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12292 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
8d138742
CE
12293 hardcode_into_libs=yes
12294 ;;
d9898ee8 12295
8d138742
CE
12296# No shared lib support for Linux oldld, aout, or coff.
12297linux*oldld* | linux*aout* | linux*coff*)
12298 dynamic_linker=no
12299 ;;
d9898ee8 12300
d50284c4
CE
12301linux*android*)
12302 version_type=none # Android doesn't support versioned libraries.
12303 need_lib_prefix=no
12304 need_version=no
12305 library_names_spec='$libname$release$shared_ext'
12306 soname_spec='$libname$release$shared_ext'
12307 finish_cmds=
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310
12311 # This implies no fast_install, which is unacceptable.
12312 # Some rework will be needed to allow for fast_install
12313 # before this can be enabled.
12314 hardcode_into_libs=yes
12315
12316 dynamic_linker='Android linker'
12317 # Don't embed -rpath directories since the linker doesn't support them.
12318 hardcode_libdir_flag_spec='-L$libdir'
12319 ;;
12320
b0322a85 12321# This must be glibc/ELF.
d50284c4 12322linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 12323 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12324 need_lib_prefix=no
12325 need_version=no
d50284c4
CE
12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=no
b0322a85 12331
8d138742 12332 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
12333 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335else
12336 lt_cv_shlibpath_overrides_runpath=no
12337 save_LDFLAGS=$LDFLAGS
12338 save_libdir=$libdir
12339 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12340 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12342/* end confdefs.h. */
d9898ee8 12343
8d138742
CE
12344int
12345main ()
12346{
d9898ee8 12347
8d138742
CE
12348 ;
12349 return 0;
12350}
12351_ACEOF
b0322a85
CE
12352if ac_fn_c_try_link "$LINENO"; then :
12353 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12354 lt_cv_shlibpath_overrides_runpath=yes
8d138742 12355fi
b0322a85
CE
12356fi
12357rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LDFLAGS=$save_LDFLAGS
12360 libdir=$save_libdir
d9898ee8 12361
8d138742 12362fi
d9898ee8 12363
b0322a85 12364 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d9898ee8 12365
8d138742
CE
12366 # This implies no fast_install, which is unacceptable.
12367 # Some rework will be needed to allow for fast_install
12368 # before this can be enabled.
12369 hardcode_into_libs=yes
d9898ee8 12370
8d138742
CE
12371 # Add ABI-specific directories to the system library path.
12372 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 12373
d50284c4
CE
12374 # Ideally, we could use ldconfig to report *all* directores which are
12375 # searched for libraries, however this is still not possible. Aside from not
12376 # being certain /sbin/ldconfig is available, command
12377 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12378 # even though it is searched at run-time. Try to do the best guess by
12379 # appending ld.so.conf contents (and includes) to the search path.
8d138742 12380 if test -f /etc/ld.so.conf; then
b0322a85 12381 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' ' '`
8d138742
CE
12382 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12383 fi
d9898ee8 12384
8d138742
CE
12385 # We used to test for /lib/ld.so.1 and disable shared libraries on
12386 # powerpc, because MkLinux only supported shared libraries with the
12387 # GNU dynamic linker. Since this was broken with cross compilers,
12388 # most powerpc-linux boxes support dynamic linking these days and
12389 # people can always --disable-shared, the test was removed, and we
12390 # assume the GNU/Linux dynamic linker is in use.
12391 dynamic_linker='GNU/Linux ld.so'
12392 ;;
d9898ee8 12393
8d138742
CE
12394netbsd*)
12395 version_type=sunos
12396 need_lib_prefix=no
12397 need_version=no
12398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8d138742
CE
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12401 dynamic_linker='NetBSD (a.out) ld.so'
12402 else
d50284c4
CE
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12405 dynamic_linker='NetBSD ld.elf_so'
12406 fi
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=yes
12409 hardcode_into_libs=yes
12410 ;;
d9898ee8 12411
8d138742 12412newsos6)
b0322a85 12413 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes
12417 ;;
d9898ee8 12418
8d138742
CE
12419*nto* | *qnx*)
12420 version_type=qnx
12421 need_lib_prefix=no
12422 need_version=no
d50284c4
CE
12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12424 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=no
12427 hardcode_into_libs=yes
12428 dynamic_linker='ldqnx.so'
12429 ;;
d9898ee8 12430
d50284c4 12431openbsd* | bitrig*)
8d138742 12432 version_type=sunos
d50284c4 12433 sys_lib_dlsearch_path_spec=/usr/lib
8d138742 12434 need_lib_prefix=no
d50284c4
CE
12435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12436 need_version=no
8d138742 12437 else
d50284c4 12438 need_version=yes
8d138742 12439 fi
d50284c4
CE
12440 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12442 shlibpath_var=LD_LIBRARY_PATH
12443 shlibpath_overrides_runpath=yes
8d138742 12444 ;;
d9898ee8 12445
8d138742
CE
12446os2*)
12447 libname_spec='$name'
d50284c4
CE
12448 version_type=windows
12449 shrext_cmds=.dll
12450 need_version=no
8d138742 12451 need_lib_prefix=no
d50284c4
CE
12452 # OS/2 can only load a DLL with a base name of 8 characters or less.
12453 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12454 v=$($ECHO $release$versuffix | tr -d .-);
12455 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12456 $ECHO $n$v`$shared_ext'
12457 library_names_spec='${libname}_dll.$libext'
8d138742 12458 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
12459 shlibpath_var=BEGINLIBPATH
12460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12462 postinstall_cmds='base_file=`basename \$file`~
12463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12464 dldir=$destdir/`dirname \$dlpath`~
12465 test -d \$dldir || mkdir -p \$dldir~
12466 $install_prog $dir/$dlname \$dldir/$dlname~
12467 chmod a+x \$dldir/$dlname~
12468 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12469 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12470 fi'
12471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12472 dlpath=$dir/\$dldll~
12473 $RM \$dlpath'
8d138742 12474 ;;
d9898ee8 12475
8d138742
CE
12476osf3* | osf4* | osf5*)
12477 version_type=osf
12478 need_lib_prefix=no
12479 need_version=no
d50284c4
CE
12480 soname_spec='$libname$release$shared_ext$major'
12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
12482 shlibpath_var=LD_LIBRARY_PATH
12483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 12484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8d138742 12485 ;;
ac40fd9e 12486
8d138742
CE
12487rdos*)
12488 dynamic_linker=no
12489 ;;
d9898ee8 12490
8d138742 12491solaris*)
b0322a85 12492 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12493 need_lib_prefix=no
12494 need_version=no
d50284c4
CE
12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12496 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12497 shlibpath_var=LD_LIBRARY_PATH
12498 shlibpath_overrides_runpath=yes
12499 hardcode_into_libs=yes
12500 # ldd complains unless libraries are executable
12501 postinstall_cmds='chmod +x $lib'
12502 ;;
d9898ee8 12503
8d138742
CE
12504sunos4*)
12505 version_type=sunos
d50284c4 12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8d138742
CE
12507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes
d50284c4 12510 if test yes = "$with_gnu_ld"; then
8d138742
CE
12511 need_lib_prefix=no
12512 fi
12513 need_version=yes
12514 ;;
d9898ee8 12515
8d138742 12516sysv4 | sysv4.3*)
b0322a85 12517 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12520 shlibpath_var=LD_LIBRARY_PATH
12521 case $host_vendor in
12522 sni)
12523 shlibpath_overrides_runpath=no
12524 need_lib_prefix=no
12525 runpath_var=LD_RUN_PATH
d9898ee8 12526 ;;
8d138742
CE
12527 siemens)
12528 need_lib_prefix=no
d9898ee8 12529 ;;
8d138742
CE
12530 motorola)
12531 need_lib_prefix=no
12532 need_version=no
12533 shlibpath_overrides_runpath=no
12534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
d9898ee8 12535 ;;
8d138742
CE
12536 esac
12537 ;;
d9898ee8 12538
8d138742 12539sysv4*MP*)
d50284c4 12540 if test -d /usr/nec; then
b0322a85 12541 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
12542 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12543 soname_spec='$libname$shared_ext.$major'
8d138742
CE
12544 shlibpath_var=LD_LIBRARY_PATH
12545 fi
12546 ;;
d9898ee8 12547
8d138742 12548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 12549 version_type=sco
8d138742
CE
12550 need_lib_prefix=no
12551 need_version=no
d50284c4
CE
12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12553 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=yes
12556 hardcode_into_libs=yes
d50284c4 12557 if test yes = "$with_gnu_ld"; then
8d138742
CE
12558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12559 else
12560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12561 case $host_os in
12562 sco3.2v5*)
12563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12564 ;;
d9898ee8 12565 esac
12566 fi
8d138742
CE
12567 sys_lib_dlsearch_path_spec='/usr/lib'
12568 ;;
d9898ee8 12569
8d138742
CE
12570tpf*)
12571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 12572 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12573 need_lib_prefix=no
12574 need_version=no
d50284c4 12575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=no
12578 hardcode_into_libs=yes
12579 ;;
d9898ee8 12580
8d138742 12581uts4*)
b0322a85 12582 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
12585 shlibpath_var=LD_LIBRARY_PATH
12586 ;;
d9898ee8 12587
8d138742
CE
12588*)
12589 dynamic_linker=no
12590 ;;
12591esac
b0322a85 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 12593$as_echo "$dynamic_linker" >&6; }
d50284c4 12594test no = "$dynamic_linker" && can_build_shared=no
d9898ee8 12595
8d138742 12596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 12597if test yes = "$GCC"; then
8d138742 12598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d9898ee8 12599fi
d9898ee8 12600
d50284c4
CE
12601if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12602 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d9898ee8 12603fi
d50284c4
CE
12604
12605if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12606 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
d9898ee8 12607fi
d9898ee8 12608
d50284c4
CE
12609# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12610configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12611
12612# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12613func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12614
12615# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12616configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12617
12618
12619
12620
12621
12622
d9898ee8 12623
d9898ee8 12624
d9898ee8 12625
12626
d9898ee8 12627
d9898ee8 12628
d9898ee8 12629
12630
d9898ee8 12631
d9898ee8 12632
d9898ee8 12633
d9898ee8 12634
d9898ee8 12635
d9898ee8 12636
d9898ee8 12637
d9898ee8 12638
d9898ee8 12639
d9898ee8 12640
d9898ee8 12641
d9898ee8 12642
d9898ee8 12643
d9898ee8 12644
d9898ee8 12645
d9898ee8 12646
d9898ee8 12647
d9898ee8 12648
d9898ee8 12649
d9898ee8 12650
d9898ee8 12651
d9898ee8 12652
d9898ee8 12653
d9898ee8 12654
d9898ee8 12655
d9898ee8 12656
d9898ee8 12657
d9898ee8 12658
d9898ee8 12659
d9898ee8 12660
d9898ee8 12661
d9898ee8 12662
d9898ee8 12663
d9898ee8 12664
dd184caf 12665
dd184caf 12666
d9898ee8 12667
d9898ee8 12668
d9898ee8 12669
d9898ee8 12670
dd184caf 12671
dd184caf 12672
d9898ee8 12673
d9898ee8 12674
d9898ee8 12675
d9898ee8 12676
d9898ee8 12677
d9898ee8 12678
d9898ee8 12679
d9898ee8 12680
d9898ee8 12681
d9898ee8 12682
d9898ee8 12683
d9898ee8 12684
d9898ee8 12685
d9898ee8 12686
d9898ee8 12687
d9898ee8 12688
d9898ee8 12689
d9898ee8 12690
d9898ee8 12691
d9898ee8 12692
d9898ee8 12693
d9898ee8 12694
d9898ee8 12695
d9898ee8 12696
d9898ee8 12697
d9898ee8 12698
d9898ee8 12699
d9898ee8 12700
d9898ee8 12701
d9898ee8 12702
d9898ee8 12703
d9898ee8 12704
d9898ee8 12705
d9898ee8 12706
d9898ee8 12707
d9898ee8 12708
b0322a85
CE
12709
12710
12711
12712
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
12715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12716hardcode_action=
12717if test -n "$hardcode_libdir_flag_spec" ||
12718 test -n "$runpath_var" ||
d50284c4 12719 test yes = "$hardcode_automatic"; then
d9898ee8 12720
8d138742 12721 # We can hardcode non-existent directories.
d50284c4 12722 if test no != "$hardcode_direct" &&
8d138742
CE
12723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12724 # have to relink, otherwise we might link with an installed library
12725 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
12726 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12727 test no != "$hardcode_minus_L"; then
8d138742
CE
12728 # Linking always hardcodes the temporary library directory.
12729 hardcode_action=relink
12730 else
12731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12732 hardcode_action=immediate
d9898ee8 12733 fi
8d138742
CE
12734else
12735 # We cannot hardcode anything, or else we can only hardcode existing
12736 # directories.
12737 hardcode_action=unsupported
12738fi
b0322a85 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 12740$as_echo "$hardcode_action" >&6; }
d9898ee8 12741
d50284c4
CE
12742if test relink = "$hardcode_action" ||
12743 test yes = "$inherit_rpath"; then
8d138742
CE
12744 # Fast installation is not supported
12745 enable_fast_install=no
d50284c4
CE
12746elif test yes = "$shlibpath_overrides_runpath" ||
12747 test no = "$enable_shared"; then
8d138742
CE
12748 # Fast installation is not necessary
12749 enable_fast_install=needless
12750fi
d9898ee8 12751
d9898ee8 12752
d9898ee8 12753
d9898ee8 12754
ac40fd9e 12755
d9898ee8 12756
d50284c4 12757 if test yes != "$enable_dlopen"; then
8d138742
CE
12758 enable_dlopen=unknown
12759 enable_dlopen_self=unknown
12760 enable_dlopen_self_static=unknown
12761else
12762 lt_cv_dlopen=no
12763 lt_cv_dlopen_libs=
12764
12765 case $host_os in
12766 beos*)
d50284c4 12767 lt_cv_dlopen=load_add_on
8d138742
CE
12768 lt_cv_dlopen_libs=
12769 lt_cv_dlopen_self=yes
12770 ;;
d9898ee8 12771
8d138742 12772 mingw* | pw32* | cegcc*)
d50284c4 12773 lt_cv_dlopen=LoadLibrary
8d138742
CE
12774 lt_cv_dlopen_libs=
12775 ;;
d9898ee8 12776
8d138742 12777 cygwin*)
d50284c4 12778 lt_cv_dlopen=dlopen
8d138742
CE
12779 lt_cv_dlopen_libs=
12780 ;;
d9898ee8 12781
8d138742 12782 darwin*)
d50284c4 12783 # if libdl is installed we need to link against it
b0322a85 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12785$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12786if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12787 $as_echo_n "(cached) " >&6
12788else
12789 ac_check_lib_save_LIBS=$LIBS
12790LIBS="-ldl $LIBS"
b0322a85 12791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12792/* end confdefs.h. */
d9898ee8 12793
8d138742
CE
12794/* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797#ifdef __cplusplus
12798extern "C"
12799#endif
12800char dlopen ();
12801int
12802main ()
12803{
12804return dlopen ();
12805 ;
12806 return 0;
12807}
12808_ACEOF
b0322a85 12809if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12810 ac_cv_lib_dl_dlopen=yes
12811else
b0322a85 12812 ac_cv_lib_dl_dlopen=no
8d138742 12813fi
b0322a85
CE
12814rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12816LIBS=$ac_check_lib_save_LIBS
12817fi
b0322a85 12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12820if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 12821 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 12822else
d9898ee8 12823
d50284c4 12824 lt_cv_dlopen=dyld
8d138742
CE
12825 lt_cv_dlopen_libs=
12826 lt_cv_dlopen_self=yes
d9898ee8 12827
8d138742 12828fi
d9898ee8 12829
d9898ee8 12830 ;;
12831
d50284c4
CE
12832 tpf*)
12833 # Don't try to run any link tests for TPF. We know it's impossible
12834 # because TPF is a cross-compiler, and we know how we open DSOs.
12835 lt_cv_dlopen=dlopen
12836 lt_cv_dlopen_libs=
12837 lt_cv_dlopen_self=no
12838 ;;
12839
d9898ee8 12840 *)
b0322a85
CE
12841 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12842if test "x$ac_cv_func_shl_load" = xyes; then :
d50284c4 12843 lt_cv_dlopen=shl_load
8d138742 12844else
b0322a85 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 12846$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 12847if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
12848 $as_echo_n "(cached) " >&6
12849else
12850 ac_check_lib_save_LIBS=$LIBS
12851LIBS="-ldld $LIBS"
b0322a85 12852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12853/* end confdefs.h. */
d9898ee8 12854
8d138742
CE
12855/* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858#ifdef __cplusplus
12859extern "C"
12860#endif
12861char shl_load ();
12862int
12863main ()
12864{
12865return shl_load ();
12866 ;
12867 return 0;
12868}
12869_ACEOF
b0322a85 12870if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12871 ac_cv_lib_dld_shl_load=yes
12872else
b0322a85 12873 ac_cv_lib_dld_shl_load=no
8d138742 12874fi
b0322a85
CE
12875rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12877LIBS=$ac_check_lib_save_LIBS
12878fi
b0322a85 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 12880$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 12881if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d50284c4 12882 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
8d138742 12883else
b0322a85
CE
12884 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12885if test "x$ac_cv_func_dlopen" = xyes; then :
d50284c4 12886 lt_cv_dlopen=dlopen
8d138742 12887else
b0322a85 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12889$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12890if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12891 $as_echo_n "(cached) " >&6
12892else
12893 ac_check_lib_save_LIBS=$LIBS
12894LIBS="-ldl $LIBS"
b0322a85 12895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12896/* end confdefs.h. */
d9898ee8 12897
8d138742
CE
12898/* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char dlopen ();
12905int
12906main ()
12907{
12908return dlopen ();
12909 ;
12910 return 0;
12911}
12912_ACEOF
b0322a85 12913if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12914 ac_cv_lib_dl_dlopen=yes
12915else
b0322a85 12916 ac_cv_lib_dl_dlopen=no
8d138742 12917fi
b0322a85
CE
12918rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12920LIBS=$ac_check_lib_save_LIBS
12921fi
b0322a85 12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12923$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12924if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 12925 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 12926else
b0322a85 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 12928$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 12929if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
12930 $as_echo_n "(cached) " >&6
12931else
12932 ac_check_lib_save_LIBS=$LIBS
12933LIBS="-lsvld $LIBS"
b0322a85 12934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12935/* end confdefs.h. */
d9898ee8 12936
8d138742
CE
12937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940#ifdef __cplusplus
12941extern "C"
12942#endif
12943char dlopen ();
12944int
12945main ()
12946{
12947return dlopen ();
12948 ;
12949 return 0;
12950}
12951_ACEOF
b0322a85 12952if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12953 ac_cv_lib_svld_dlopen=yes
12954else
b0322a85 12955 ac_cv_lib_svld_dlopen=no
8d138742 12956fi
b0322a85
CE
12957rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12959LIBS=$ac_check_lib_save_LIBS
12960fi
b0322a85 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 12962$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 12963if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d50284c4 12964 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
8d138742 12965else
b0322a85 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 12967$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 12968if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
12969 $as_echo_n "(cached) " >&6
12970else
12971 ac_check_lib_save_LIBS=$LIBS
12972LIBS="-ldld $LIBS"
b0322a85 12973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12974/* end confdefs.h. */
12975
12976/* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12979#ifdef __cplusplus
12980extern "C"
12981#endif
12982char dld_link ();
12983int
12984main ()
12985{
12986return dld_link ();
12987 ;
12988 return 0;
12989}
12990_ACEOF
b0322a85 12991if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12992 ac_cv_lib_dld_dld_link=yes
12993else
b0322a85 12994 ac_cv_lib_dld_dld_link=no
8d138742 12995fi
b0322a85
CE
12996rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12998LIBS=$ac_check_lib_save_LIBS
12999fi
b0322a85 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 13001$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 13002if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d50284c4 13003 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
8d138742 13004fi
d9898ee8 13005
d9898ee8 13006
8d138742 13007fi
ac40fd9e 13008
d9898ee8 13009
8d138742 13010fi
d9898ee8 13011
d9898ee8 13012
8d138742 13013fi
d9898ee8 13014
d9898ee8 13015
8d138742 13016fi
d9898ee8 13017
d9898ee8 13018
d9898ee8 13019fi
13020
8d138742
CE
13021 ;;
13022 esac
d9898ee8 13023
d50284c4 13024 if test no = "$lt_cv_dlopen"; then
8d138742 13025 enable_dlopen=no
d50284c4
CE
13026 else
13027 enable_dlopen=yes
d9898ee8 13028 fi
8d138742
CE
13029
13030 case $lt_cv_dlopen in
13031 dlopen)
d50284c4
CE
13032 save_CPPFLAGS=$CPPFLAGS
13033 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8d138742 13034
d50284c4 13035 save_LDFLAGS=$LDFLAGS
8d138742
CE
13036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13037
d50284c4 13038 save_LIBS=$LIBS
8d138742
CE
13039 LIBS="$lt_cv_dlopen_libs $LIBS"
13040
b0322a85 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 13042$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 13043if ${lt_cv_dlopen_self+:} false; then :
8d138742 13044 $as_echo_n "(cached) " >&6
d9898ee8 13045else
d50284c4 13046 if test yes = "$cross_compiling"; then :
8d138742
CE
13047 lt_cv_dlopen_self=cross
13048else
13049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13050 lt_status=$lt_dlunknown
13051 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 13052#line $LINENO "configure"
8d138742 13053#include "confdefs.h"
d9898ee8 13054
8d138742
CE
13055#if HAVE_DLFCN_H
13056#include <dlfcn.h>
13057#endif
d9898ee8 13058
8d138742 13059#include <stdio.h>
d9898ee8 13060
8d138742
CE
13061#ifdef RTLD_GLOBAL
13062# define LT_DLGLOBAL RTLD_GLOBAL
13063#else
13064# ifdef DL_GLOBAL
13065# define LT_DLGLOBAL DL_GLOBAL
13066# else
13067# define LT_DLGLOBAL 0
13068# endif
13069#endif
d9898ee8 13070
8d138742
CE
13071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13072 find out it does not work in some platform. */
13073#ifndef LT_DLLAZY_OR_NOW
13074# ifdef RTLD_LAZY
13075# define LT_DLLAZY_OR_NOW RTLD_LAZY
13076# else
13077# ifdef DL_LAZY
13078# define LT_DLLAZY_OR_NOW DL_LAZY
13079# else
13080# ifdef RTLD_NOW
13081# define LT_DLLAZY_OR_NOW RTLD_NOW
13082# else
13083# ifdef DL_NOW
13084# define LT_DLLAZY_OR_NOW DL_NOW
13085# else
13086# define LT_DLLAZY_OR_NOW 0
13087# endif
13088# endif
13089# endif
13090# endif
13091#endif
d9898ee8 13092
d50284c4 13093/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 13094 correspondingly for the symbols needed. */
d50284c4 13095#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
13096int fnord () __attribute__((visibility("default")));
13097#endif
13098
13099int fnord () { return 42; }
8d138742
CE
13100int main ()
13101{
13102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13103 int status = $lt_dlunknown;
d9898ee8 13104
8d138742
CE
13105 if (self)
13106 {
13107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
13108 else
13109 {
13110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13111 else puts (dlerror ());
13112 }
8d138742
CE
13113 /* dlclose (self); */
13114 }
13115 else
13116 puts (dlerror ());
d9898ee8 13117
8d138742
CE
13118 return status;
13119}
13120_LT_EOF
b0322a85 13121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
13122 (eval $ac_link) 2>&5
13123 ac_status=$?
b0322a85 13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 13125 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
13126 (./conftest; exit; ) >&5 2>/dev/null
13127 lt_status=$?
13128 case x$lt_status in
13129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13132 esac
13133 else :
13134 # compilation failed
13135 lt_cv_dlopen_self=no
13136 fi
13137fi
13138rm -fr conftest*
d9898ee8 13139
d9898ee8 13140
8d138742 13141fi
b0322a85 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742
CE
13143$as_echo "$lt_cv_dlopen_self" >&6; }
13144
d50284c4 13145 if test yes = "$lt_cv_dlopen_self"; then
8d138742 13146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 13148$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 13149if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
13150 $as_echo_n "(cached) " >&6
13151else
d50284c4 13152 if test yes = "$cross_compiling"; then :
8d138742
CE
13153 lt_cv_dlopen_self_static=cross
13154else
13155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13156 lt_status=$lt_dlunknown
13157 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 13158#line $LINENO "configure"
8d138742
CE
13159#include "confdefs.h"
13160
13161#if HAVE_DLFCN_H
13162#include <dlfcn.h>
13163#endif
13164
13165#include <stdio.h>
d9898ee8 13166
8d138742
CE
13167#ifdef RTLD_GLOBAL
13168# define LT_DLGLOBAL RTLD_GLOBAL
13169#else
13170# ifdef DL_GLOBAL
13171# define LT_DLGLOBAL DL_GLOBAL
13172# else
13173# define LT_DLGLOBAL 0
13174# endif
13175#endif
d9898ee8 13176
8d138742
CE
13177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13178 find out it does not work in some platform. */
13179#ifndef LT_DLLAZY_OR_NOW
13180# ifdef RTLD_LAZY
13181# define LT_DLLAZY_OR_NOW RTLD_LAZY
13182# else
13183# ifdef DL_LAZY
13184# define LT_DLLAZY_OR_NOW DL_LAZY
13185# else
13186# ifdef RTLD_NOW
13187# define LT_DLLAZY_OR_NOW RTLD_NOW
13188# else
13189# ifdef DL_NOW
13190# define LT_DLLAZY_OR_NOW DL_NOW
13191# else
13192# define LT_DLLAZY_OR_NOW 0
13193# endif
13194# endif
13195# endif
13196# endif
13197#endif
d9898ee8 13198
d50284c4 13199/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 13200 correspondingly for the symbols needed. */
d50284c4 13201#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
13202int fnord () __attribute__((visibility("default")));
13203#endif
13204
13205int fnord () { return 42; }
8d138742
CE
13206int main ()
13207{
13208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13209 int status = $lt_dlunknown;
d9898ee8 13210
8d138742
CE
13211 if (self)
13212 {
13213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
13214 else
13215 {
13216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13217 else puts (dlerror ());
13218 }
8d138742
CE
13219 /* dlclose (self); */
13220 }
13221 else
13222 puts (dlerror ());
d9898ee8 13223
8d138742
CE
13224 return status;
13225}
13226_LT_EOF
b0322a85 13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
13228 (eval $ac_link) 2>&5
13229 ac_status=$?
b0322a85 13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 13231 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
13232 (./conftest; exit; ) >&5 2>/dev/null
13233 lt_status=$?
13234 case x$lt_status in
13235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13238 esac
13239 else :
13240 # compilation failed
13241 lt_cv_dlopen_self_static=no
13242 fi
13243fi
13244rm -fr conftest*
d9898ee8 13245
d9898ee8 13246
8d138742 13247fi
b0322a85 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
13249$as_echo "$lt_cv_dlopen_self_static" >&6; }
13250 fi
d9898ee8 13251
d50284c4
CE
13252 CPPFLAGS=$save_CPPFLAGS
13253 LDFLAGS=$save_LDFLAGS
13254 LIBS=$save_LIBS
8d138742
CE
13255 ;;
13256 esac
d9898ee8 13257
8d138742
CE
13258 case $lt_cv_dlopen_self in
13259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13260 *) enable_dlopen_self=unknown ;;
13261 esac
d9898ee8 13262
8d138742
CE
13263 case $lt_cv_dlopen_self_static in
13264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13265 *) enable_dlopen_self_static=unknown ;;
13266 esac
13267fi
d9898ee8 13268
d9898ee8 13269
d9898ee8 13270
d9898ee8 13271
d9898ee8 13272
d9898ee8 13273
d9898ee8 13274
d9898ee8 13275
d9898ee8 13276
d9898ee8 13277
d9898ee8 13278
d9898ee8 13279
d9898ee8 13280
d9898ee8 13281
d9898ee8 13282
d9898ee8 13283
d9898ee8 13284
8d138742
CE
13285striplib=
13286old_striplib=
b0322a85 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
13288$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13289if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
13293$as_echo "yes" >&6; }
13294else
13295# FIXME - insert some real tests, host_os isn't really good enough
13296 case $host_os in
13297 darwin*)
d50284c4 13298 if test -n "$STRIP"; then
8d138742
CE
13299 striplib="$STRIP -x"
13300 old_striplib="$STRIP -S"
b0322a85 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
13302$as_echo "yes" >&6; }
13303 else
b0322a85 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
13305$as_echo "no" >&6; }
13306 fi
13307 ;;
13308 *)
b0322a85 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
13310$as_echo "no" >&6; }
13311 ;;
13312 esac
13313fi
d9898ee8 13314
d9898ee8 13315
d9898ee8 13316
d9898ee8 13317
d9898ee8 13318
d9898ee8 13319
d9898ee8 13320
d9898ee8 13321
d9898ee8 13322
d9898ee8 13323
d9898ee8 13324
d9898ee8 13325
d50284c4 13326 # Report what library types will actually be built
b0322a85 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 13328$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 13330$as_echo "$can_build_shared" >&6; }
d9898ee8 13331
b0322a85 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742 13333$as_echo_n "checking whether to build shared libraries... " >&6; }
d50284c4 13334 test no = "$can_build_shared" && enable_shared=no
d9898ee8 13335
8d138742
CE
13336 # On AIX, shared libraries and static libraries use the same namespace, and
13337 # are all built from PIC.
13338 case $host_os in
13339 aix3*)
d50284c4 13340 test yes = "$enable_shared" && enable_static=no
8d138742
CE
13341 if test -n "$RANLIB"; then
13342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13343 postinstall_cmds='$RANLIB $lib'
13344 fi
13345 ;;
d9898ee8 13346
8d138742 13347 aix[4-9]*)
d50284c4
CE
13348 if test ia64 != "$host_cpu"; then
13349 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13350 yes,aix,yes) ;; # shared object as lib.so file only
13351 yes,svr4,*) ;; # shared object as lib.so archive member only
13352 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13353 esac
8d138742
CE
13354 fi
13355 ;;
13356 esac
b0322a85 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 13358$as_echo "$enable_shared" >&6; }
d9898ee8 13359
b0322a85 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
13361$as_echo_n "checking whether to build static libraries... " >&6; }
13362 # Make sure either enable_shared or enable_static is yes.
d50284c4 13363 test yes = "$enable_shared" || enable_static=yes
b0322a85 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 13365$as_echo "$enable_static" >&6; }
d9898ee8 13366
d9898ee8 13367
d9898ee8 13368
d9898ee8 13369
8d138742
CE
13370fi
13371ac_ext=c
13372ac_cpp='$CPP $CPPFLAGS'
13373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13375ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 13376
d50284c4 13377CC=$lt_save_CC
d9898ee8 13378
d50284c4
CE
13379 if test -n "$CXX" && ( test no != "$CXX" &&
13380 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13381 (test g++ != "$CXX"))); then
b0322a85
CE
13382 ac_ext=cpp
13383ac_cpp='$CXXCPP $CPPFLAGS'
13384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13388$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13389if test -z "$CXXCPP"; then
13390 if ${ac_cv_prog_CXXCPP+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392else
13393 # Double quotes because CXXCPP needs to be expanded
13394 for CXXCPP in "$CXX -E" "/lib/cpp"
13395 do
13396 ac_preproc_ok=false
13397for ac_cxx_preproc_warn_flag in '' yes
13398do
13399 # Use a header file that comes with gcc, so configuring glibc
13400 # with a fresh cross-compiler works.
13401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 # <limits.h> exists even on freestanding compilers.
13403 # On the NeXT, cc -E runs the code through the compiler's parser,
13404 # not just through cpp. "Syntax error" is here to catch this case.
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406/* end confdefs.h. */
13407#ifdef __STDC__
13408# include <limits.h>
13409#else
13410# include <assert.h>
13411#endif
13412 Syntax error
13413_ACEOF
13414if ac_fn_cxx_try_cpp "$LINENO"; then :
13415
13416else
13417 # Broken: fails on valid input.
13418continue
13419fi
13420rm -f conftest.err conftest.i conftest.$ac_ext
13421
13422 # OK, works on sane cases. Now check whether nonexistent headers
13423 # can be detected and how.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h. */
13426#include <ac_nonexistent.h>
13427_ACEOF
13428if ac_fn_cxx_try_cpp "$LINENO"; then :
13429 # Broken: success on invalid input.
13430continue
13431else
13432 # Passes both tests.
13433ac_preproc_ok=:
13434break
13435fi
13436rm -f conftest.err conftest.i conftest.$ac_ext
13437
13438done
13439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13440rm -f conftest.i conftest.err conftest.$ac_ext
13441if $ac_preproc_ok; then :
13442 break
13443fi
13444
13445 done
13446 ac_cv_prog_CXXCPP=$CXXCPP
13447
13448fi
13449 CXXCPP=$ac_cv_prog_CXXCPP
13450else
13451 ac_cv_prog_CXXCPP=$CXXCPP
13452fi
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13454$as_echo "$CXXCPP" >&6; }
13455ac_preproc_ok=false
13456for ac_cxx_preproc_warn_flag in '' yes
13457do
13458 # Use a header file that comes with gcc, so configuring glibc
13459 # with a fresh cross-compiler works.
13460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13461 # <limits.h> exists even on freestanding compilers.
13462 # On the NeXT, cc -E runs the code through the compiler's parser,
13463 # not just through cpp. "Syntax error" is here to catch this case.
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465/* end confdefs.h. */
13466#ifdef __STDC__
13467# include <limits.h>
13468#else
13469# include <assert.h>
13470#endif
13471 Syntax error
13472_ACEOF
13473if ac_fn_cxx_try_cpp "$LINENO"; then :
13474
13475else
13476 # Broken: fails on valid input.
13477continue
13478fi
13479rm -f conftest.err conftest.i conftest.$ac_ext
13480
13481 # OK, works on sane cases. Now check whether nonexistent headers
13482 # can be detected and how.
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h. */
13485#include <ac_nonexistent.h>
13486_ACEOF
13487if ac_fn_cxx_try_cpp "$LINENO"; then :
13488 # Broken: success on invalid input.
13489continue
13490else
13491 # Passes both tests.
13492ac_preproc_ok=:
13493break
13494fi
13495rm -f conftest.err conftest.i conftest.$ac_ext
13496
13497done
13498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13499rm -f conftest.i conftest.err conftest.$ac_ext
13500if $ac_preproc_ok; then :
13501
13502else
13503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13505as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13506See \`config.log' for more details" "$LINENO" 5; }
13507fi
13508
13509ac_ext=c
13510ac_cpp='$CPP $CPPFLAGS'
13511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513ac_compiler_gnu=$ac_cv_c_compiler_gnu
13514
13515else
13516 _lt_caught_CXX_error=yes
13517fi
d9898ee8 13518
8d138742
CE
13519ac_ext=cpp
13520ac_cpp='$CXXCPP $CPPFLAGS'
13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 13524
8d138742
CE
13525archive_cmds_need_lc_CXX=no
13526allow_undefined_flag_CXX=
13527always_export_symbols_CXX=no
13528archive_expsym_cmds_CXX=
13529compiler_needs_object_CXX=no
13530export_dynamic_flag_spec_CXX=
13531hardcode_direct_CXX=no
13532hardcode_direct_absolute_CXX=no
13533hardcode_libdir_flag_spec_CXX=
8d138742
CE
13534hardcode_libdir_separator_CXX=
13535hardcode_minus_L_CXX=no
13536hardcode_shlibpath_var_CXX=unsupported
13537hardcode_automatic_CXX=no
13538inherit_rpath_CXX=no
13539module_cmds_CXX=
13540module_expsym_cmds_CXX=
13541link_all_deplibs_CXX=unknown
13542old_archive_cmds_CXX=$old_archive_cmds
b0322a85
CE
13543reload_flag_CXX=$reload_flag
13544reload_cmds_CXX=$reload_cmds
8d138742
CE
13545no_undefined_flag_CXX=
13546whole_archive_flag_spec_CXX=
13547enable_shared_with_static_runtimes_CXX=no
d9898ee8 13548
8d138742
CE
13549# Source file extension for C++ test sources.
13550ac_ext=cpp
d9898ee8 13551
8d138742
CE
13552# Object file extension for compiled C++ test sources.
13553objext=o
13554objext_CXX=$objext
d9898ee8 13555
8d138742
CE
13556# No sense in running all these tests if we already determined that
13557# the CXX compiler isn't working. Some variables (like enable_shared)
13558# are currently assumed to apply to all compilers on this platform,
13559# and will be corrupted by setting them based on a non-working compiler.
d50284c4 13560if test yes != "$_lt_caught_CXX_error"; then
8d138742
CE
13561 # Code to be used in simple compile tests
13562 lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 13563
8d138742
CE
13564 # Code to be used in simple link tests
13565 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 13566
8d138742 13567 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
d9898ee8 13568
d9898ee8 13569
d9898ee8 13570
d9898ee8 13571
d9898ee8 13572
d9898ee8 13573
8d138742
CE
13574# If no C compiler was specified, use CC.
13575LTCC=${LTCC-"$CC"}
d9898ee8 13576
8d138742
CE
13577# If no C compiler flags were specified, use CFLAGS.
13578LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 13579
8d138742
CE
13580# Allow CC to be a program name with arguments.
13581compiler=$CC
d9898ee8 13582
d9898ee8 13583
8d138742
CE
13584 # save warnings/boilerplate of simple test code
13585 ac_outfile=conftest.$ac_objext
13586echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13587eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13588_lt_compiler_boilerplate=`cat conftest.err`
13589$RM conftest*
d9898ee8 13590
8d138742
CE
13591 ac_outfile=conftest.$ac_objext
13592echo "$lt_simple_link_test_code" >conftest.$ac_ext
13593eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13594_lt_linker_boilerplate=`cat conftest.err`
13595$RM -r conftest*
13596
13597
13598 # Allow CC to be a program name with arguments.
13599 lt_save_CC=$CC
b0322a85 13600 lt_save_CFLAGS=$CFLAGS
8d138742
CE
13601 lt_save_LD=$LD
13602 lt_save_GCC=$GCC
13603 GCC=$GXX
13604 lt_save_with_gnu_ld=$with_gnu_ld
13605 lt_save_path_LD=$lt_cv_path_LD
13606 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13607 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13608 else
13609 $as_unset lt_cv_prog_gnu_ld
13610 fi
13611 if test -n "${lt_cv_path_LDCXX+set}"; then
13612 lt_cv_path_LD=$lt_cv_path_LDCXX
13613 else
13614 $as_unset lt_cv_path_LD
13615 fi
13616 test -z "${LDCXX+set}" || LD=$LDCXX
13617 CC=${CXX-"c++"}
b0322a85 13618 CFLAGS=$CXXFLAGS
8d138742
CE
13619 compiler=$CC
13620 compiler_CXX=$CC
d50284c4
CE
13621 func_cc_basename $compiler
13622cc_basename=$func_cc_basename_result
d9898ee8 13623
d9898ee8 13624
8d138742
CE
13625 if test -n "$compiler"; then
13626 # We don't want -fno-exception when compiling C++ code, so set the
13627 # no_builtin_flag separately
d50284c4 13628 if test yes = "$GXX"; then
8d138742
CE
13629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13630 else
13631 lt_prog_compiler_no_builtin_flag_CXX=
13632 fi
d9898ee8 13633
d50284c4 13634 if test yes = "$GXX"; then
8d138742 13635 # Set up default GNU C++ configuration
d9898ee8 13636
d9898ee8 13637
d9898ee8 13638
8d138742 13639# Check whether --with-gnu-ld was given.
b0322a85 13640if test "${with_gnu_ld+set}" = set; then :
d50284c4 13641 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8d138742
CE
13642else
13643 with_gnu_ld=no
13644fi
d9898ee8 13645
8d138742 13646ac_prog=ld
d50284c4 13647if test yes = "$GCC"; then
8d138742 13648 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742
CE
13650$as_echo_n "checking for ld used by $CC... " >&6; }
13651 case $host in
13652 *-*-mingw*)
d50284c4 13653 # gcc leaves a trailing carriage return, which upsets mingw
8d138742
CE
13654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13655 *)
13656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13657 esac
13658 case $ac_prog in
13659 # Accept absolute paths.
13660 [\\/]* | ?:[\\/]*)
13661 re_direlt='/[^/][^/]*/\.\./'
13662 # Canonicalize the pathname of ld
13663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13666 done
d50284c4 13667 test -z "$LD" && LD=$ac_prog
8d138742
CE
13668 ;;
13669 "")
13670 # If it fails, then pretend we aren't using GCC.
13671 ac_prog=ld
13672 ;;
13673 *)
13674 # If it is relative, then search for the first ld in PATH.
13675 with_gnu_ld=unknown
13676 ;;
13677 esac
d50284c4 13678elif test yes = "$with_gnu_ld"; then
b0322a85 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742
CE
13680$as_echo_n "checking for GNU ld... " >&6; }
13681else
b0322a85 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742
CE
13683$as_echo_n "checking for non-GNU ld... " >&6; }
13684fi
b0322a85 13685if ${lt_cv_path_LD+:} false; then :
8d138742
CE
13686 $as_echo_n "(cached) " >&6
13687else
13688 if test -z "$LD"; then
d50284c4 13689 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742 13690 for ac_dir in $PATH; do
d50284c4 13691 IFS=$lt_save_ifs
8d138742
CE
13692 test -z "$ac_dir" && ac_dir=.
13693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 13694 lt_cv_path_LD=$ac_dir/$ac_prog
8d138742
CE
13695 # Check to see if the program is GNU ld. I'd rather use --version,
13696 # but apparently some variants of GNU ld only accept -v.
13697 # Break only if it was the GNU/non-GNU ld that we prefer.
13698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13699 *GNU* | *'with BFD'*)
d50284c4 13700 test no != "$with_gnu_ld" && break
8d138742
CE
13701 ;;
13702 *)
d50284c4 13703 test yes != "$with_gnu_ld" && break
8d138742
CE
13704 ;;
13705 esac
13706 fi
13707 done
d50284c4 13708 IFS=$lt_save_ifs
8d138742 13709else
d50284c4 13710 lt_cv_path_LD=$LD # Let the user override the test with a path.
8d138742
CE
13711fi
13712fi
d9898ee8 13713
d50284c4 13714LD=$lt_cv_path_LD
8d138742 13715if test -n "$LD"; then
b0322a85 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742
CE
13717$as_echo "$LD" >&6; }
13718else
b0322a85 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
13720$as_echo "no" >&6; }
13721fi
b0322a85
CE
13722test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 13724$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 13725if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742
CE
13726 $as_echo_n "(cached) " >&6
13727else
13728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13729case `$LD -v 2>&1 </dev/null` in
13730*GNU* | *'with BFD'*)
13731 lt_cv_prog_gnu_ld=yes
13732 ;;
13733*)
13734 lt_cv_prog_gnu_ld=no
13735 ;;
13736esac
13737fi
b0322a85 13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742
CE
13739$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13740with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 13741
d9898ee8 13742
d9898ee8 13743
d9898ee8 13744
d9898ee8 13745
d9898ee8 13746
d9898ee8 13747
8d138742
CE
13748 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13749 # archiving commands below assume that GNU ld is being used.
d50284c4
CE
13750 if test yes = "$with_gnu_ld"; then
13751 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13752 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'
d9898ee8 13753
d50284c4
CE
13754 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13755 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
d9898ee8 13756
8d138742
CE
13757 # If archive_cmds runs LD, not CC, wlarc should be empty
13758 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13759 # investigate it a little bit more. (MM)
d50284c4 13760 wlarc='$wl'
d9898ee8 13761
8d138742
CE
13762 # ancient GNU ld didn't support --whole-archive et. al.
13763 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13764 $GREP 'no-whole-archive' > /dev/null; then
d50284c4 13765 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742
CE
13766 else
13767 whole_archive_flag_spec_CXX=
13768 fi
13769 else
13770 with_gnu_ld=no
13771 wlarc=
13772
13773 # A generic and very simple default shared library creation
13774 # command for GNU C++ for the case where it uses the native
13775 # linker, instead of GNU ld. If possible, this setting should
13776 # overridden to take advantage of the native linker features on
13777 # the platform it is being used on.
13778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13779 fi
d9898ee8 13780
8d138742
CE
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
b0322a85 13784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
d9898ee8 13785
8d138742
CE
13786 else
13787 GXX=no
13788 with_gnu_ld=no
13789 wlarc=
13790 fi
d9898ee8 13791
8d138742 13792 # PORTME: fill in a description of your system's C++ link characteristics
b0322a85 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
13794$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13795 ld_shlibs_CXX=yes
13796 case $host_os in
13797 aix3*)
13798 # FIXME: insert proper C++ library support
13799 ld_shlibs_CXX=no
13800 ;;
13801 aix[4-9]*)
d50284c4 13802 if test ia64 = "$host_cpu"; then
8d138742
CE
13803 # On IA64, the linker does run time linking by default, so we don't
13804 # have to do anything special.
13805 aix_use_runtimelinking=no
13806 exp_sym_flag='-Bexport'
d50284c4 13807 no_entry_flag=
8d138742
CE
13808 else
13809 aix_use_runtimelinking=no
13810
13811 # Test if we are trying to use run time linking or normal
13812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
13813 # have runtime linking enabled, and use it for executables.
13814 # For shared libraries, we enable/disable runtime linking
13815 # depending on the kind of the shared library created -
13816 # when "with_aix_soname,aix_use_runtimelinking" is:
13817 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13818 # "aix,yes" lib.so shared, rtl:yes, for executables
13819 # lib.a static archive
13820 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13821 # lib.a(lib.so.V) shared, rtl:no, for executables
13822 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13823 # lib.a(lib.so.V) shared, rtl:no
13824 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13825 # lib.a static archive
8d138742
CE
13826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13827 for ld_flag in $LDFLAGS; do
13828 case $ld_flag in
13829 *-brtl*)
13830 aix_use_runtimelinking=yes
13831 break
13832 ;;
13833 esac
13834 done
d50284c4
CE
13835 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13836 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13837 # so we don't have lib.a shared libs to link our executables.
13838 # We have to force runtime linking in this case.
13839 aix_use_runtimelinking=yes
13840 LDFLAGS="$LDFLAGS -Wl,-brtl"
13841 fi
8d138742
CE
13842 ;;
13843 esac
d9898ee8 13844
8d138742
CE
13845 exp_sym_flag='-bexport'
13846 no_entry_flag='-bnoentry'
13847 fi
d9898ee8 13848
8d138742
CE
13849 # When large executables or shared objects are built, AIX ld can
13850 # have problems creating the table of contents. If linking a library
13851 # or program results in "error TOC overflow" add -mminimal-toc to
13852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13854
13855 archive_cmds_CXX=''
13856 hardcode_direct_CXX=yes
13857 hardcode_direct_absolute_CXX=yes
13858 hardcode_libdir_separator_CXX=':'
13859 link_all_deplibs_CXX=yes
d50284c4
CE
13860 file_list_spec_CXX='$wl-f,'
13861 case $with_aix_soname,$aix_use_runtimelinking in
13862 aix,*) ;; # no import file
13863 svr4,* | *,yes) # use import file
13864 # The Import File defines what to hardcode.
13865 hardcode_direct_CXX=no
13866 hardcode_direct_absolute_CXX=no
13867 ;;
13868 esac
8d138742 13869
d50284c4 13870 if test yes = "$GXX"; then
8d138742
CE
13871 case $host_os in aix4.[012]|aix4.[012].*)
13872 # We only want to do this on AIX 4.2 and lower, the check
13873 # below for broken collect2 doesn't work under 4.3+
d50284c4 13874 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
13875 if test -f "$collect2name" &&
13876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13877 then
13878 # We have reworked collect2
13879 :
13880 else
13881 # We have old collect2
13882 hardcode_direct_CXX=unsupported
13883 # It fails to find uninstalled libraries when the uninstalled
13884 # path is not listed in the libpath. Setting hardcode_minus_L
13885 # to unsupported forces relinking
13886 hardcode_minus_L_CXX=yes
13887 hardcode_libdir_flag_spec_CXX='-L$libdir'
13888 hardcode_libdir_separator_CXX=
13889 fi
13890 esac
13891 shared_flag='-shared'
d50284c4
CE
13892 if test yes = "$aix_use_runtimelinking"; then
13893 shared_flag=$shared_flag' $wl-G'
8d138742 13894 fi
d50284c4
CE
13895 # Need to ensure runtime linking is disabled for the traditional
13896 # shared library, or the linker may eventually find shared libraries
13897 # /with/ Import File - we do not want to mix them.
13898 shared_flag_aix='-shared'
13899 shared_flag_svr4='-shared $wl-G'
8d138742
CE
13900 else
13901 # not using gcc
d50284c4 13902 if test ia64 = "$host_cpu"; then
8d138742
CE
13903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13904 # chokes on -Wl,-G. The following line is correct:
13905 shared_flag='-G'
13906 else
d50284c4
CE
13907 if test yes = "$aix_use_runtimelinking"; then
13908 shared_flag='$wl-G'
8d138742 13909 else
d50284c4 13910 shared_flag='$wl-bM:SRE'
8d138742 13911 fi
d50284c4
CE
13912 shared_flag_aix='$wl-bM:SRE'
13913 shared_flag_svr4='$wl-G'
8d138742
CE
13914 fi
13915 fi
d9898ee8 13916
d50284c4 13917 export_dynamic_flag_spec_CXX='$wl-bexpall'
8d138742
CE
13918 # It seems that -bexpall does not export symbols beginning with
13919 # underscore (_), so it is better to generate a list of symbols to
13920 # export.
13921 always_export_symbols_CXX=yes
d50284c4 13922 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8d138742
CE
13923 # Warning - without using the other runtime loading flags (-brtl),
13924 # -berok will link without error, but may produce a broken library.
d50284c4
CE
13925 # The "-G" linker flag allows undefined symbols.
13926 no_undefined_flag_CXX='-bernotok'
8d138742
CE
13927 # Determine the default libpath from the value encoded in an empty
13928 # executable.
d50284c4 13929 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
13930 aix_libpath=$lt_cv_aix_libpath
13931else
13932 if ${lt_cv_aix_libpath__CXX+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13936/* end confdefs.h. */
d9898ee8 13937
8d138742
CE
13938int
13939main ()
13940{
d9898ee8 13941
8d138742
CE
13942 ;
13943 return 0;
13944}
13945_ACEOF
b0322a85 13946if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 13947
b0322a85
CE
13948 lt_aix_libpath_sed='
13949 /Import File Strings/,/^$/ {
13950 /^0/ {
13951 s/^0 *\([^ ]*\) *$/\1/
13952 p
13953 }
13954 }'
13955 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13956 # Check for a 64-bit object if we didn't find anything.
13957 if test -z "$lt_cv_aix_libpath__CXX"; then
13958 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959 fi
13960fi
13961rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 if test -z "$lt_cv_aix_libpath__CXX"; then
d50284c4 13964 lt_cv_aix_libpath__CXX=/usr/lib:/lib
b0322a85 13965 fi
d9898ee8 13966
8d138742 13967fi
d9898ee8 13968
b0322a85
CE
13969 aix_libpath=$lt_cv_aix_libpath__CXX
13970fi
d9898ee8 13971
d50284c4 13972 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
d9898ee8 13973
d50284c4 13974 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8d138742 13975 else
d50284c4
CE
13976 if test ia64 = "$host_cpu"; then
13977 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
8d138742 13978 allow_undefined_flag_CXX="-z nodefs"
d50284c4 13979 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"
8d138742
CE
13980 else
13981 # Determine the default libpath from the value encoded in an
13982 # empty executable.
d50284c4 13983 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
13984 aix_libpath=$lt_cv_aix_libpath
13985else
13986 if ${lt_cv_aix_libpath__CXX+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988else
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13990/* end confdefs.h. */
d9898ee8 13991
8d138742
CE
13992int
13993main ()
13994{
d9898ee8 13995
8d138742
CE
13996 ;
13997 return 0;
13998}
13999_ACEOF
b0322a85 14000if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 14001
b0322a85
CE
14002 lt_aix_libpath_sed='
14003 /Import File Strings/,/^$/ {
14004 /^0/ {
14005 s/^0 *\([^ ]*\) *$/\1/
14006 p
14007 }
14008 }'
14009 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14010 # Check for a 64-bit object if we didn't find anything.
14011 if test -z "$lt_cv_aix_libpath__CXX"; then
14012 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14013 fi
14014fi
14015rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 if test -z "$lt_cv_aix_libpath__CXX"; then
d50284c4 14018 lt_cv_aix_libpath__CXX=/usr/lib:/lib
b0322a85 14019 fi
d9898ee8 14020
8d138742 14021fi
d9898ee8 14022
b0322a85
CE
14023 aix_libpath=$lt_cv_aix_libpath__CXX
14024fi
d9898ee8 14025
d50284c4 14026 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
8d138742
CE
14027 # Warning - without using the other run time loading flags,
14028 # -berok will link without error, but may produce a broken library.
d50284c4
CE
14029 no_undefined_flag_CXX=' $wl-bernotok'
14030 allow_undefined_flag_CXX=' $wl-berok'
14031 if test yes = "$with_gnu_ld"; then
b0322a85 14032 # We only use this code for GNU lds that support --whole-archive.
d50284c4 14033 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
14034 else
14035 # Exported symbols can be pulled into shared objects from archives
14036 whole_archive_flag_spec_CXX='$convenience'
14037 fi
8d138742 14038 archive_cmds_need_lc_CXX=yes
d50284c4
CE
14039 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14040 # -brtl affects multiple linker settings, -berok does not and is overridden later
14041 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14042 if test svr4 != "$with_aix_soname"; then
14043 # This is similar to how AIX traditionally builds its shared
14044 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14045 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14046 fi
14047 if test aix != "$with_aix_soname"; then
14048 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14049 else
14050 # used by -dlpreopen to get the symbols
14051 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14052 fi
14053 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
8d138742
CE
14054 fi
14055 fi
14056 ;;
d9898ee8 14057
8d138742
CE
14058 beos*)
14059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14060 allow_undefined_flag_CXX=unsupported
14061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14062 # support --undefined. This deserves some investigation. FIXME
d50284c4 14063 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
14064 else
14065 ld_shlibs_CXX=no
14066 fi
14067 ;;
d9898ee8 14068
8d138742
CE
14069 chorus*)
14070 case $cc_basename in
14071 *)
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14074 ;;
14075 esac
14076 ;;
d9898ee8 14077
8d138742 14078 cygwin* | mingw* | pw32* | cegcc*)
b0322a85
CE
14079 case $GXX,$cc_basename in
14080 ,cl* | no,cl*)
14081 # Native MSVC
14082 # hardcode_libdir_flag_spec is actually meaningless, as there is
14083 # no search path for DLLs.
14084 hardcode_libdir_flag_spec_CXX=' '
14085 allow_undefined_flag_CXX=unsupported
14086 always_export_symbols_CXX=yes
14087 file_list_spec_CXX='@'
14088 # Tell ltmain to make .lib files, not .a files.
14089 libext=lib
14090 # Tell ltmain to make .dll files, not .so files.
d50284c4 14091 shrext_cmds=.dll
b0322a85 14092 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
14093 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14094 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14095 cp "$export_symbols" "$output_objdir/$soname.def";
14096 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14097 else
14098 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14099 fi~
14100 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14101 linknames='
b0322a85
CE
14102 # The linker will not automatically build a static lib if we build a DLL.
14103 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14104 enable_shared_with_static_runtimes_CXX=yes
14105 # Don't use ranlib
14106 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14107 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
d50284c4
CE
14108 lt_tool_outputfile="@TOOL_OUTPUT@"~
14109 case $lt_outputfile in
14110 *.exe|*.EXE) ;;
14111 *)
14112 lt_outputfile=$lt_outputfile.exe
14113 lt_tool_outputfile=$lt_tool_outputfile.exe
14114 ;;
14115 esac~
14116 func_to_tool_file "$lt_outputfile"~
14117 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14118 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14119 $RM "$lt_outputfile.manifest";
14120 fi'
b0322a85
CE
14121 ;;
14122 *)
14123 # g++
14124 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14125 # as there is no search path for DLLs.
14126 hardcode_libdir_flag_spec_CXX='-L$libdir'
d50284c4 14127 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
b0322a85
CE
14128 allow_undefined_flag_CXX=unsupported
14129 always_export_symbols_CXX=no
14130 enable_shared_with_static_runtimes_CXX=yes
14131
14132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
14133 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'
14134 # If the export-symbols file already is a .def file, use it as
14135 # is; otherwise, prepend EXPORTS...
14136 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14137 cp $export_symbols $output_objdir/$soname.def;
14138 else
14139 echo EXPORTS > $output_objdir/$soname.def;
14140 cat $export_symbols >> $output_objdir/$soname.def;
14141 fi~
14142 $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'
b0322a85
CE
14143 else
14144 ld_shlibs_CXX=no
14145 fi
14146 ;;
14147 esac
14148 ;;
8d138742 14149 darwin* | rhapsody*)
d9898ee8 14150
14151
8d138742
CE
14152 archive_cmds_need_lc_CXX=no
14153 hardcode_direct_CXX=no
14154 hardcode_automatic_CXX=yes
14155 hardcode_shlibpath_var_CXX=unsupported
d50284c4
CE
14156 if test yes = "$lt_cv_ld_force_load"; then
14157 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\"`'
b0322a85
CE
14158
14159 else
14160 whole_archive_flag_spec_CXX=''
14161 fi
8d138742 14162 link_all_deplibs_CXX=yes
d50284c4 14163 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
8d138742 14164 case $cc_basename in
d50284c4 14165 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742 14166 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 14167 esac
d50284c4 14168 if test yes = "$_lt_dar_can_shared"; then
b0322a85 14169 output_verbose_link_cmd=func_echo_all
d50284c4
CE
14170 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"
14171 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14172 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"
14173 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"
14174 if test yes != "$lt_cv_apple_cc_single_mod"; then
14175 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"
14176 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"
8d138742 14177 fi
d9898ee8 14178
8d138742
CE
14179 else
14180 ld_shlibs_CXX=no
14181 fi
d9898ee8 14182
8d138742 14183 ;;
d9898ee8 14184
d50284c4
CE
14185 os2*)
14186 hardcode_libdir_flag_spec_CXX='-L$libdir'
14187 hardcode_minus_L_CXX=yes
14188 allow_undefined_flag_CXX=unsupported
14189 shrext_cmds=.dll
14190 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14191 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14192 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14193 $ECHO EXPORTS >> $output_objdir/$libname.def~
14194 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14195 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14196 emximp -o $lib $output_objdir/$libname.def'
14197 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14200 $ECHO EXPORTS >> $output_objdir/$libname.def~
14201 prefix_cmds="$SED"~
14202 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14203 prefix_cmds="$prefix_cmds -e 1d";
14204 fi~
14205 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14206 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14207 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14208 emximp -o $lib $output_objdir/$libname.def'
14209 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14210 enable_shared_with_static_runtimes_CXX=yes
14211 ;;
14212
8d138742
CE
14213 dgux*)
14214 case $cc_basename in
14215 ec++*)
14216 # FIXME: insert proper C++ library support
14217 ld_shlibs_CXX=no
14218 ;;
14219 ghcx*)
14220 # Green Hills C++ Compiler
14221 # FIXME: insert proper C++ library support
14222 ld_shlibs_CXX=no
14223 ;;
14224 *)
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14227 ;;
14228 esac
14229 ;;
d9898ee8 14230
b0322a85 14231 freebsd2.*)
8d138742
CE
14232 # C++ shared libraries reported to be fairly broken before
14233 # switch to ELF
14234 ld_shlibs_CXX=no
14235 ;;
d9898ee8 14236
8d138742
CE
14237 freebsd-elf*)
14238 archive_cmds_need_lc_CXX=no
14239 ;;
d9898ee8 14240
8d138742
CE
14241 freebsd* | dragonfly*)
14242 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14243 # conventions
14244 ld_shlibs_CXX=yes
14245 ;;
d9898ee8 14246
b0322a85 14247 haiku*)
d50284c4 14248 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
14249 link_all_deplibs_CXX=yes
14250 ;;
14251
8d138742 14252 hpux9*)
d50284c4 14253 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
8d138742 14254 hardcode_libdir_separator_CXX=:
d50284c4 14255 export_dynamic_flag_spec_CXX='$wl-E'
8d138742
CE
14256 hardcode_direct_CXX=yes
14257 hardcode_minus_L_CXX=yes # Not in the search PATH,
14258 # but as the default
14259 # location of the library.
14260
14261 case $cc_basename in
14262 CC*)
14263 # FIXME: insert proper C++ library support
14264 ld_shlibs_CXX=no
14265 ;;
14266 aCC*)
d50284c4 14267 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742
CE
14268 # Commands to make compiler produce verbose output that lists
14269 # what "hidden" libraries, object files and flags are used when
14270 # linking a shared library.
14271 #
14272 # There doesn't appear to be a way to prevent this compiler from
14273 # explicitly linking system object files so we need to strip them
14274 # from the output so that they don't get included in the library
14275 # dependencies.
d50284c4 14276 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"'
8d138742
CE
14277 ;;
14278 *)
d50284c4
CE
14279 if test yes = "$GXX"; then
14280 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742
CE
14281 else
14282 # FIXME: insert proper C++ library support
14283 ld_shlibs_CXX=no
14284 fi
14285 ;;
14286 esac
14287 ;;
d9898ee8 14288
8d138742 14289 hpux10*|hpux11*)
d50284c4
CE
14290 if test no = "$with_gnu_ld"; then
14291 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
8d138742 14292 hardcode_libdir_separator_CXX=:
d9898ee8 14293
8d138742
CE
14294 case $host_cpu in
14295 hppa*64*|ia64*)
14296 ;;
14297 *)
d50284c4 14298 export_dynamic_flag_spec_CXX='$wl-E'
8d138742
CE
14299 ;;
14300 esac
14301 fi
14302 case $host_cpu in
14303 hppa*64*|ia64*)
14304 hardcode_direct_CXX=no
14305 hardcode_shlibpath_var_CXX=no
14306 ;;
14307 *)
14308 hardcode_direct_CXX=yes
14309 hardcode_direct_absolute_CXX=yes
14310 hardcode_minus_L_CXX=yes # Not in the search PATH,
14311 # but as the default
14312 # location of the library.
14313 ;;
14314 esac
d9898ee8 14315
8d138742
CE
14316 case $cc_basename in
14317 CC*)
14318 # FIXME: insert proper C++ library support
14319 ld_shlibs_CXX=no
14320 ;;
14321 aCC*)
14322 case $host_cpu in
14323 hppa*64*)
d50284c4 14324 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
14325 ;;
14326 ia64*)
d50284c4 14327 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
14328 ;;
14329 *)
d50284c4 14330 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
14331 ;;
14332 esac
14333 # Commands to make compiler produce verbose output that lists
14334 # what "hidden" libraries, object files and flags are used when
14335 # linking a shared library.
14336 #
14337 # There doesn't appear to be a way to prevent this compiler from
14338 # explicitly linking system object files so we need to strip them
14339 # from the output so that they don't get included in the library
14340 # dependencies.
d50284c4 14341 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"'
8d138742
CE
14342 ;;
14343 *)
d50284c4
CE
14344 if test yes = "$GXX"; then
14345 if test no = "$with_gnu_ld"; then
8d138742
CE
14346 case $host_cpu in
14347 hppa*64*)
d50284c4 14348 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
14349 ;;
14350 ia64*)
d50284c4 14351 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
14352 ;;
14353 *)
d50284c4 14354 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'
8d138742
CE
14355 ;;
14356 esac
14357 fi
14358 else
14359 # FIXME: insert proper C++ library support
14360 ld_shlibs_CXX=no
14361 fi
14362 ;;
14363 esac
14364 ;;
d9898ee8 14365
8d138742
CE
14366 interix[3-9]*)
14367 hardcode_direct_CXX=no
14368 hardcode_shlibpath_var_CXX=no
d50284c4
CE
14369 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14370 export_dynamic_flag_spec_CXX='$wl-E'
8d138742
CE
14371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14372 # Instead, shared libraries are loaded at an image base (0x10000000 by
14373 # default) and relocated if they conflict, which is a slow very memory
14374 # consuming and fragmenting process. To avoid this, we pick a random,
14375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
14377 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'
14378 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'
8d138742
CE
14379 ;;
14380 irix5* | irix6*)
14381 case $cc_basename in
14382 CC*)
14383 # SGI C++
d50284c4 14384 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'
8d138742
CE
14385
14386 # Archives containing C++ object files must be created using
14387 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14388 # necessary to make sure instantiated templates are included
14389 # in the archive.
14390 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14391 ;;
14392 *)
d50284c4
CE
14393 if test yes = "$GXX"; then
14394 if test no = "$with_gnu_ld"; then
14395 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'
8d138742 14396 else
d50284c4 14397 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'
8d138742
CE
14398 fi
14399 fi
14400 link_all_deplibs_CXX=yes
14401 ;;
14402 esac
d50284c4 14403 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
8d138742
CE
14404 hardcode_libdir_separator_CXX=:
14405 inherit_rpath_CXX=yes
14406 ;;
d9898ee8 14407
d50284c4 14408 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742
CE
14409 case $cc_basename in
14410 KCC*)
14411 # Kuck and Associates, Inc. (KAI) C++ Compiler
14412
14413 # KCC will only create a shared library if the output file
14414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14415 # to its proper name (with version) after linking.
d50284c4
CE
14416 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'
14417 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'
8d138742
CE
14418 # Commands to make compiler produce verbose output that lists
14419 # what "hidden" libraries, object files and flags are used when
14420 # linking a shared library.
14421 #
14422 # There doesn't appear to be a way to prevent this compiler from
14423 # explicitly linking system object files so we need to strip them
14424 # from the output so that they don't get included in the library
14425 # dependencies.
d50284c4 14426 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"'
8d138742 14427
d50284c4
CE
14428 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14429 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
8d138742
CE
14430
14431 # Archives containing C++ object files must be created using
14432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14434 ;;
14435 icpc* | ecpc* )
14436 # Intel C++
14437 with_gnu_ld=yes
14438 # version 8.0 and above of icpc choke on multiply defined symbols
14439 # if we add $predep_objects and $postdep_objects, however 7.1 and
14440 # earlier do not add the objects themselves.
14441 case `$CC -V 2>&1` in
14442 *"Version 7."*)
d50284c4
CE
14443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14444 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'
8d138742
CE
14445 ;;
14446 *) # Version 8.0 or newer
14447 tmp_idyn=
14448 case $host_cpu in
14449 ia64*) tmp_idyn=' -i_dynamic';;
14450 esac
d50284c4
CE
14451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14452 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'
8d138742
CE
14453 ;;
14454 esac
14455 archive_cmds_need_lc_CXX=no
d50284c4
CE
14456 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14457 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
8d138742
CE
14459 ;;
14460 pgCC* | pgcpp*)
14461 # Portland Group C++ compiler
14462 case `$CC -V` in
b0322a85 14463 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
8d138742 14464 prelink_cmds_CXX='tpldir=Template.dir~
d50284c4
CE
14465 rm -rf $tpldir~
14466 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14467 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8d138742 14468 old_archive_cmds_CXX='tpldir=Template.dir~
d50284c4
CE
14469 rm -rf $tpldir~
14470 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14471 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14472 $RANLIB $oldlib'
8d138742 14473 archive_cmds_CXX='tpldir=Template.dir~
d50284c4
CE
14474 rm -rf $tpldir~
14475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14476 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742 14477 archive_expsym_cmds_CXX='tpldir=Template.dir~
d50284c4
CE
14478 rm -rf $tpldir~
14479 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14480 $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'
8d138742 14481 ;;
b0322a85 14482 *) # Version 6 and above use weak symbols
d50284c4
CE
14483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14484 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'
8d138742
CE
14485 ;;
14486 esac
d9898ee8 14487
d50284c4
CE
14488 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14489 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14490 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'
8d138742
CE
14491 ;;
14492 cxx*)
14493 # Compaq C++
d50284c4
CE
14494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14495 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'
d9898ee8 14496
8d138742
CE
14497 runpath_var=LD_RUN_PATH
14498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14499 hardcode_libdir_separator_CXX=:
d9898ee8 14500
8d138742
CE
14501 # Commands to make compiler produce verbose output that lists
14502 # what "hidden" libraries, object files and flags are used when
14503 # linking a shared library.
14504 #
14505 # There doesn't appear to be a way to prevent this compiler from
14506 # explicitly linking system object files so we need to strip them
14507 # from the output so that they don't get included in the library
14508 # dependencies.
d50284c4 14509 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'
8d138742 14510 ;;
b0322a85 14511 xl* | mpixl* | bgxl*)
8d138742 14512 # IBM XL 8.0 on PPC, with GNU ld
d50284c4
CE
14513 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14514 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14515 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14516 if test yes = "$supports_anon_versioning"; then
8d138742 14517 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
14518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14519 echo "local: *; };" >> $output_objdir/$libname.ver~
14520 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742
CE
14521 fi
14522 ;;
14523 *)
14524 case `$CC -V 2>&1 | sed 5q` in
14525 *Sun\ C*)
14526 # Sun C++ 5.9
14527 no_undefined_flag_CXX=' -zdefs'
d50284c4
CE
14528 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14529 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'
8d138742 14530 hardcode_libdir_flag_spec_CXX='-R$libdir'
d50284c4 14531 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'
8d138742
CE
14532 compiler_needs_object_CXX=yes
14533
14534 # Not sure whether something based on
14535 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14536 # would be better.
b0322a85 14537 output_verbose_link_cmd='func_echo_all'
8d138742
CE
14538
14539 # Archives containing C++ object files must be created using
14540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14541 # necessary to make sure instantiated templates are included
14542 # in the archive.
14543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14544 ;;
14545 esac
14546 ;;
14547 esac
14548 ;;
d9898ee8 14549
8d138742
CE
14550 lynxos*)
14551 # FIXME: insert proper C++ library support
14552 ld_shlibs_CXX=no
14553 ;;
d9898ee8 14554
8d138742
CE
14555 m88k*)
14556 # FIXME: insert proper C++ library support
14557 ld_shlibs_CXX=no
14558 ;;
d9898ee8 14559
8d138742
CE
14560 mvs*)
14561 case $cc_basename in
14562 cxx*)
14563 # FIXME: insert proper C++ library support
14564 ld_shlibs_CXX=no
14565 ;;
14566 *)
14567 # FIXME: insert proper C++ library support
14568 ld_shlibs_CXX=no
14569 ;;
14570 esac
14571 ;;
d9898ee8 14572
8d138742
CE
14573 netbsd*)
14574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14575 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14576 wlarc=
14577 hardcode_libdir_flag_spec_CXX='-R$libdir'
14578 hardcode_direct_CXX=yes
14579 hardcode_shlibpath_var_CXX=no
14580 fi
14581 # Workaround some broken pre-1.5 toolchains
14582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14583 ;;
d9898ee8 14584
8d138742
CE
14585 *nto* | *qnx*)
14586 ld_shlibs_CXX=yes
14587 ;;
d9898ee8 14588
d50284c4 14589 openbsd* | bitrig*)
8d138742
CE
14590 if test -f /usr/libexec/ld.so; then
14591 hardcode_direct_CXX=yes
14592 hardcode_shlibpath_var_CXX=no
14593 hardcode_direct_absolute_CXX=yes
14594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
d50284c4
CE
14595 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14597 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14598 export_dynamic_flag_spec_CXX='$wl-E'
14599 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742 14600 fi
b0322a85 14601 output_verbose_link_cmd=func_echo_all
8d138742
CE
14602 else
14603 ld_shlibs_CXX=no
14604 fi
d9898ee8 14605 ;;
d9898ee8 14606
8d138742
CE
14607 osf3* | osf4* | osf5*)
14608 case $cc_basename in
14609 KCC*)
14610 # Kuck and Associates, Inc. (KAI) C++ Compiler
14611
14612 # KCC will only create a shared library if the output file
14613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14614 # to its proper name (with version) after linking.
d50284c4 14615 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'
8d138742 14616
d50284c4 14617 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
8d138742
CE
14618 hardcode_libdir_separator_CXX=:
14619
14620 # Archives containing C++ object files must be created using
14621 # the KAI C++ compiler.
14622 case $host in
14623 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14624 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14625 esac
14626 ;;
14627 RCC*)
14628 # Rational C++ 2.4.1
14629 # FIXME: insert proper C++ library support
14630 ld_shlibs_CXX=no
14631 ;;
14632 cxx*)
14633 case $host in
14634 osf3*)
d50284c4
CE
14635 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14636 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'
14637 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
8d138742
CE
14638 ;;
14639 *)
14640 allow_undefined_flag_CXX=' -expect_unresolved \*'
d50284c4 14641 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'
8d138742 14642 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
d50284c4
CE
14643 echo "-hidden">> $lib.exp~
14644 $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~
14645 $RM $lib.exp'
8d138742
CE
14646 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14647 ;;
14648 esac
d9898ee8 14649
8d138742 14650 hardcode_libdir_separator_CXX=:
d9898ee8 14651
8d138742
CE
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14655 #
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14659 # dependencies.
d50284c4 14660 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"'
8d138742
CE
14661 ;;
14662 *)
d50284c4
CE
14663 if test yes,no = "$GXX,$with_gnu_ld"; then
14664 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
8d138742
CE
14665 case $host in
14666 osf3*)
d50284c4 14667 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'
8d138742
CE
14668 ;;
14669 *)
d50284c4 14670 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'
8d138742
CE
14671 ;;
14672 esac
14673
d50284c4 14674 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
8d138742
CE
14675 hardcode_libdir_separator_CXX=:
14676
14677 # Commands to make compiler produce verbose output that lists
14678 # what "hidden" libraries, object files and flags are used when
14679 # linking a shared library.
b0322a85 14680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
14681
14682 else
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14685 fi
14686 ;;
14687 esac
14688 ;;
14689
14690 psos*)
14691 # FIXME: insert proper C++ library support
14692 ld_shlibs_CXX=no
14693 ;;
14694
14695 sunos4*)
14696 case $cc_basename in
14697 CC*)
14698 # Sun C++ 4.x
14699 # FIXME: insert proper C++ library support
14700 ld_shlibs_CXX=no
14701 ;;
14702 lcc*)
14703 # Lucid
14704 # FIXME: insert proper C++ library support
14705 ld_shlibs_CXX=no
14706 ;;
14707 *)
14708 # FIXME: insert proper C++ library support
14709 ld_shlibs_CXX=no
14710 ;;
14711 esac
14712 ;;
d9898ee8 14713
8d138742
CE
14714 solaris*)
14715 case $cc_basename in
b0322a85 14716 CC* | sunCC*)
8d138742
CE
14717 # Sun C++ 4.2, 5.x and Centerline C++
14718 archive_cmds_need_lc_CXX=yes
14719 no_undefined_flag_CXX=' -zdefs'
d50284c4 14720 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742 14721 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 14722 $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'
8d138742
CE
14723
14724 hardcode_libdir_flag_spec_CXX='-R$libdir'
14725 hardcode_shlibpath_var_CXX=no
14726 case $host_os in
14727 solaris2.[0-5] | solaris2.[0-5].*) ;;
14728 *)
14729 # The compiler driver will combine and reorder linker options,
d50284c4 14730 # but understands '-z linker_flag'.
8d138742
CE
14731 # Supported since Solaris 2.6 (maybe 2.5.1?)
14732 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14733 ;;
14734 esac
14735 link_all_deplibs_CXX=yes
d9898ee8 14736
b0322a85 14737 output_verbose_link_cmd='func_echo_all'
d9898ee8 14738
8d138742
CE
14739 # Archives containing C++ object files must be created using
14740 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14741 # necessary to make sure instantiated templates are included
14742 # in the archive.
14743 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14744 ;;
14745 gcx*)
14746 # Green Hills C++ Compiler
d50284c4 14747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8d138742
CE
14748
14749 # The C++ compiler must be used to create the archive.
14750 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14751 ;;
14752 *)
14753 # GNU C++ compiler with Solaris linker
d50284c4
CE
14754 if test yes,no = "$GXX,$with_gnu_ld"; then
14755 no_undefined_flag_CXX=' $wl-z ${wl}defs'
8d138742 14756 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
d50284c4 14757 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8d138742 14758 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 14759 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8d138742
CE
14760
14761 # Commands to make compiler produce verbose output that lists
14762 # what "hidden" libraries, object files and flags are used when
14763 # linking a shared library.
b0322a85 14764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742 14765 else
d50284c4 14766 # g++ 2.7 appears to require '-G' NOT '-shared' on this
8d138742 14767 # platform.
d50284c4 14768 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8d138742 14769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 14770 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8d138742
CE
14771
14772 # Commands to make compiler produce verbose output that lists
14773 # what "hidden" libraries, object files and flags are used when
14774 # linking a shared library.
b0322a85 14775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
14776 fi
14777
d50284c4 14778 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
8d138742
CE
14779 case $host_os in
14780 solaris2.[0-5] | solaris2.[0-5].*) ;;
14781 *)
d50284c4 14782 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
8d138742
CE
14783 ;;
14784 esac
14785 fi
14786 ;;
14787 esac
d9898ee8 14788 ;;
8d138742
CE
14789
14790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 14791 no_undefined_flag_CXX='$wl-z,text'
8d138742
CE
14792 archive_cmds_need_lc_CXX=no
14793 hardcode_shlibpath_var_CXX=no
14794 runpath_var='LD_RUN_PATH'
14795
14796 case $cc_basename in
14797 CC*)
d50284c4
CE
14798 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 14800 ;;
8d138742 14801 *)
d50284c4
CE
14802 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 14804 ;;
d9898ee8 14805 esac
14806 ;;
14807
8d138742 14808 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 14809 # Note: We CANNOT use -z defs as we might desire, because we do not
8d138742
CE
14810 # link with -lc, and that would cause any symbols used from libc to
14811 # always be unresolved, which means just about no library would
14812 # ever link correctly. If we're not using GNU ld we use -z text
14813 # though, which does catch some bad symbols but isn't as heavy-handed
14814 # as -z defs.
d50284c4
CE
14815 no_undefined_flag_CXX='$wl-z,text'
14816 allow_undefined_flag_CXX='$wl-z,nodefs'
8d138742
CE
14817 archive_cmds_need_lc_CXX=no
14818 hardcode_shlibpath_var_CXX=no
d50284c4 14819 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
8d138742
CE
14820 hardcode_libdir_separator_CXX=':'
14821 link_all_deplibs_CXX=yes
d50284c4 14822 export_dynamic_flag_spec_CXX='$wl-Bexport'
8d138742 14823 runpath_var='LD_RUN_PATH'
d9898ee8 14824
8d138742
CE
14825 case $cc_basename in
14826 CC*)
d50284c4
CE
14827 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85 14829 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
d50284c4 14830 '"$old_archive_cmds_CXX"
b0322a85 14831 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
d50284c4 14832 '"$reload_cmds_CXX"
8d138742
CE
14833 ;;
14834 *)
d50284c4
CE
14835 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
14837 ;;
14838 esac
ac40fd9e 14839 ;;
14840
8d138742
CE
14841 tandem*)
14842 case $cc_basename in
14843 NCC*)
14844 # NonStop-UX NCC 3.20
14845 # FIXME: insert proper C++ library support
14846 ld_shlibs_CXX=no
14847 ;;
14848 *)
14849 # FIXME: insert proper C++ library support
14850 ld_shlibs_CXX=no
14851 ;;
14852 esac
14853 ;;
14854
14855 vxworks*)
14856 # FIXME: insert proper C++ library support
14857 ld_shlibs_CXX=no
14858 ;;
14859
d9898ee8 14860 *)
8d138742
CE
14861 # FIXME: insert proper C++ library support
14862 ld_shlibs_CXX=no
14863 ;;
14864 esac
d9898ee8 14865
b0322a85 14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742 14867$as_echo "$ld_shlibs_CXX" >&6; }
d50284c4 14868 test no = "$ld_shlibs_CXX" && can_build_shared=no
d9898ee8 14869
d50284c4
CE
14870 GCC_CXX=$GXX
14871 LD_CXX=$LD
d9898ee8 14872
8d138742
CE
14873 ## CAVEAT EMPTOR:
14874 ## There is no encapsulation within the following macros, do not change
14875 ## the running order or otherwise move them around unless you know exactly
14876 ## what you are doing...
14877 # Dependencies to place before and after the object being linked:
14878predep_objects_CXX=
14879postdep_objects_CXX=
14880predeps_CXX=
14881postdeps_CXX=
14882compiler_lib_search_path_CXX=
d9898ee8 14883
8d138742
CE
14884cat > conftest.$ac_ext <<_LT_EOF
14885class Foo
14886{
14887public:
14888 Foo (void) { a = 0; }
14889private:
14890 int a;
14891};
14892_LT_EOF
d9898ee8 14893
b0322a85
CE
14894
14895_lt_libdeps_save_CFLAGS=$CFLAGS
14896case "$CC $CFLAGS " in #(
14897*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14898*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14899*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14900esac
14901
14902if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
14903 (eval $ac_compile) 2>&5
14904 ac_status=$?
b0322a85
CE
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }; then
8d138742
CE
14907 # Parse the compiler output and extract the necessary
14908 # objects, libraries and library flags.
d9898ee8 14909
8d138742
CE
14910 # Sentinel used to keep track of whether or not we are before
14911 # the conftest object file.
14912 pre_test_object_deps_done=no
d9898ee8 14913
8d138742 14914 for p in `eval "$output_verbose_link_cmd"`; do
d50284c4 14915 case $prev$p in
d9898ee8 14916
8d138742
CE
14917 -L* | -R* | -l*)
14918 # Some compilers place space between "-{L,R}" and the path.
14919 # Remove the space.
d50284c4
CE
14920 if test x-L = "$p" ||
14921 test x-R = "$p"; then
8d138742
CE
14922 prev=$p
14923 continue
8d138742 14924 fi
d9898ee8 14925
b0322a85
CE
14926 # Expand the sysroot to ease extracting the directories later.
14927 if test -z "$prev"; then
14928 case $p in
14929 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14930 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14931 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14932 esac
14933 fi
14934 case $p in
14935 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14936 esac
d50284c4
CE
14937 if test no = "$pre_test_object_deps_done"; then
14938 case $prev in
b0322a85 14939 -L | -R)
8d138742
CE
14940 # Internal compiler library paths should come after those
14941 # provided the user. The postdeps already come after the
14942 # user supplied libs so there is no need to process them.
14943 if test -z "$compiler_lib_search_path_CXX"; then
d50284c4 14944 compiler_lib_search_path_CXX=$prev$p
8d138742 14945 else
d50284c4 14946 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
8d138742
CE
14947 fi
14948 ;;
14949 # The "-l" case would never come before the object being
14950 # linked, so don't bother handling this case.
14951 esac
14952 else
14953 if test -z "$postdeps_CXX"; then
d50284c4 14954 postdeps_CXX=$prev$p
8d138742 14955 else
d50284c4 14956 postdeps_CXX="${postdeps_CXX} $prev$p"
8d138742
CE
14957 fi
14958 fi
b0322a85 14959 prev=
8d138742 14960 ;;
d9898ee8 14961
b0322a85 14962 *.lto.$objext) ;; # Ignore GCC LTO objects
8d138742
CE
14963 *.$objext)
14964 # This assumes that the test object file only shows up
14965 # once in the compiler output.
14966 if test "$p" = "conftest.$objext"; then
14967 pre_test_object_deps_done=yes
14968 continue
14969 fi
d9898ee8 14970
d50284c4 14971 if test no = "$pre_test_object_deps_done"; then
8d138742 14972 if test -z "$predep_objects_CXX"; then
d50284c4 14973 predep_objects_CXX=$p
8d138742
CE
14974 else
14975 predep_objects_CXX="$predep_objects_CXX $p"
14976 fi
14977 else
14978 if test -z "$postdep_objects_CXX"; then
d50284c4 14979 postdep_objects_CXX=$p
8d138742
CE
14980 else
14981 postdep_objects_CXX="$postdep_objects_CXX $p"
14982 fi
14983 fi
14984 ;;
d9898ee8 14985
8d138742
CE
14986 *) ;; # Ignore the rest.
14987
14988 esac
14989 done
14990
14991 # Clean up.
14992 rm -f a.out a.exe
d9898ee8 14993else
8d138742 14994 echo "libtool.m4: error: problem compiling CXX test program"
d9898ee8 14995fi
14996
8d138742 14997$RM -f confest.$objext
b0322a85 14998CFLAGS=$_lt_libdeps_save_CFLAGS
8d138742
CE
14999
15000# PORTME: override above test on systems where it is broken
d9898ee8 15001case $host_os in
8d138742
CE
15002interix[3-9]*)
15003 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15004 # hack all around it, let's just trust "g++" to DTRT.
15005 predep_objects_CXX=
15006 postdep_objects_CXX=
15007 postdeps_CXX=
15008 ;;
d9898ee8 15009esac
15010
d9898ee8 15011
8d138742
CE
15012case " $postdeps_CXX " in
15013*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15014esac
15015 compiler_lib_search_dirs_CXX=
15016if test -n "${compiler_lib_search_path_CXX}"; then
d50284c4 15017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
d9898ee8 15018fi
d9898ee8 15019
d9898ee8 15020
15021
d9898ee8 15022
d9898ee8 15023
d9898ee8 15024
15025
d9898ee8 15026
d9898ee8 15027
d9898ee8 15028
d9898ee8 15029
d9898ee8 15030
d9898ee8 15031
d9898ee8 15032
d9898ee8 15033
d9898ee8 15034
d9898ee8 15035
d9898ee8 15036
d9898ee8 15037
d9898ee8 15038
d9898ee8 15039
d9898ee8 15040
d9898ee8 15041
d9898ee8 15042
d9898ee8 15043
8d138742
CE
15044
15045
15046
15047
15048
15049
15050 lt_prog_compiler_wl_CXX=
15051lt_prog_compiler_pic_CXX=
15052lt_prog_compiler_static_CXX=
15053
8d138742
CE
15054
15055 # C++ specific cases for pic, static, wl, etc.
d50284c4 15056 if test yes = "$GXX"; then
8d138742
CE
15057 lt_prog_compiler_wl_CXX='-Wl,'
15058 lt_prog_compiler_static_CXX='-static'
15059
15060 case $host_os in
15061 aix*)
15062 # All AIX code is PIC.
d50284c4 15063 if test ia64 = "$host_cpu"; then
8d138742
CE
15064 # AIX 5 now supports IA64 processor
15065 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 15066 fi
d50284c4 15067 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 15068 ;;
15069
8d138742
CE
15070 amigaos*)
15071 case $host_cpu in
15072 powerpc)
15073 # see comment about AmigaOS4 .so support
15074 lt_prog_compiler_pic_CXX='-fPIC'
15075 ;;
15076 m68k)
15077 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
15078 # adding the '-m68020' flag to GCC prevents building anything better,
15079 # like '-m68040'.
8d138742
CE
15080 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15081 ;;
15082 esac
15083 ;;
d9898ee8 15084
8d138742
CE
15085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15086 # PIC is the default for these OSes.
15087 ;;
15088 mingw* | cygwin* | os2* | pw32* | cegcc*)
15089 # This hack is so that the source file can tell whether it is being
15090 # built for inclusion in a dll (and should export symbols for example).
15091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15092 # (--disable-auto-import) libraries
15093 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
d50284c4
CE
15094 case $host_os in
15095 os2*)
15096 lt_prog_compiler_static_CXX='$wl-static'
15097 ;;
15098 esac
8d138742
CE
15099 ;;
15100 darwin* | rhapsody*)
15101 # PIC is the default on this platform
15102 # Common symbols not allowed in MH_DYLIB files
15103 lt_prog_compiler_pic_CXX='-fno-common'
15104 ;;
15105 *djgpp*)
15106 # DJGPP does not support shared libraries at all
15107 lt_prog_compiler_pic_CXX=
15108 ;;
b0322a85
CE
15109 haiku*)
15110 # PIC is the default for Haiku.
15111 # The "-static" flag exists, but is broken.
15112 lt_prog_compiler_static_CXX=
15113 ;;
8d138742
CE
15114 interix[3-9]*)
15115 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15116 # Instead, we relocate shared libraries at runtime.
15117 ;;
15118 sysv4*MP*)
15119 if test -d /usr/nec; then
15120 lt_prog_compiler_pic_CXX=-Kconform_pic
15121 fi
15122 ;;
15123 hpux*)
15124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15126 # sets the default TLS model and affects inlining.
15127 case $host_cpu in
15128 hppa*64*)
d9898ee8 15129 ;;
8d138742
CE
15130 *)
15131 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 15132 ;;
15133 esac
15134 ;;
8d138742
CE
15135 *qnx* | *nto*)
15136 # QNX uses GNU C++, but need to define -shared option too, otherwise
15137 # it will coredump.
15138 lt_prog_compiler_pic_CXX='-fPIC -shared'
d9898ee8 15139 ;;
d9898ee8 15140 *)
8d138742 15141 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 15142 ;;
15143 esac
d9898ee8 15144 else
d9898ee8 15145 case $host_os in
8d138742
CE
15146 aix[4-9]*)
15147 # All AIX code is PIC.
d50284c4 15148 if test ia64 = "$host_cpu"; then
8d138742
CE
15149 # AIX 5 now supports IA64 processor
15150 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 15151 else
8d138742 15152 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
d9898ee8 15153 fi
8d138742
CE
15154 ;;
15155 chorus*)
15156 case $cc_basename in
15157 cxch68*)
15158 # Green Hills C++ Compiler
15159 # _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"
d9898ee8 15160 ;;
15161 esac
8d138742 15162 ;;
b0322a85
CE
15163 mingw* | cygwin* | os2* | pw32* | cegcc*)
15164 # This hack is so that the source file can tell whether it is being
15165 # built for inclusion in a dll (and should export symbols for example).
15166 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15167 ;;
8d138742
CE
15168 dgux*)
15169 case $cc_basename in
15170 ec++*)
15171 lt_prog_compiler_pic_CXX='-KPIC'
15172 ;;
15173 ghcx*)
15174 # Green Hills C++ Compiler
15175 lt_prog_compiler_pic_CXX='-pic'
15176 ;;
15177 *)
15178 ;;
15179 esac
15180 ;;
15181 freebsd* | dragonfly*)
15182 # FreeBSD uses GNU C++
15183 ;;
15184 hpux9* | hpux10* | hpux11*)
15185 case $cc_basename in
15186 CC*)
15187 lt_prog_compiler_wl_CXX='-Wl,'
d50284c4
CE
15188 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15189 if test ia64 != "$host_cpu"; then
8d138742
CE
15190 lt_prog_compiler_pic_CXX='+Z'
15191 fi
15192 ;;
15193 aCC*)
15194 lt_prog_compiler_wl_CXX='-Wl,'
d50284c4 15195 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
8d138742
CE
15196 case $host_cpu in
15197 hppa*64*|ia64*)
15198 # +Z the default
15199 ;;
15200 *)
15201 lt_prog_compiler_pic_CXX='+Z'
15202 ;;
15203 esac
15204 ;;
15205 *)
15206 ;;
15207 esac
15208 ;;
15209 interix*)
15210 # This is c89, which is MS Visual C++ (no shared libs)
15211 # Anyone wants to do a port?
15212 ;;
15213 irix5* | irix6* | nonstopux*)
15214 case $cc_basename in
15215 CC*)
15216 lt_prog_compiler_wl_CXX='-Wl,'
15217 lt_prog_compiler_static_CXX='-non_shared'
15218 # CC pic flag -KPIC is the default.
15219 ;;
15220 *)
15221 ;;
15222 esac
15223 ;;
d50284c4 15224 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742
CE
15225 case $cc_basename in
15226 KCC*)
15227 # KAI C++ Compiler
15228 lt_prog_compiler_wl_CXX='--backend -Wl,'
15229 lt_prog_compiler_pic_CXX='-fPIC'
15230 ;;
15231 ecpc* )
d50284c4 15232 # old Intel C++ for x86_64, which still supported -KPIC.
8d138742
CE
15233 lt_prog_compiler_wl_CXX='-Wl,'
15234 lt_prog_compiler_pic_CXX='-KPIC'
15235 lt_prog_compiler_static_CXX='-static'
15236 ;;
15237 icpc* )
15238 # Intel C++, used to be incompatible with GCC.
15239 # ICC 10 doesn't accept -KPIC any more.
15240 lt_prog_compiler_wl_CXX='-Wl,'
15241 lt_prog_compiler_pic_CXX='-fPIC'
15242 lt_prog_compiler_static_CXX='-static'
15243 ;;
15244 pgCC* | pgcpp*)
15245 # Portland Group C++ compiler
15246 lt_prog_compiler_wl_CXX='-Wl,'
15247 lt_prog_compiler_pic_CXX='-fpic'
15248 lt_prog_compiler_static_CXX='-Bstatic'
15249 ;;
15250 cxx*)
15251 # Compaq C++
15252 # Make sure the PIC flag is empty. It appears that all Alpha
15253 # Linux and Compaq Tru64 Unix objects are PIC.
15254 lt_prog_compiler_pic_CXX=
15255 lt_prog_compiler_static_CXX='-non_shared'
15256 ;;
b0322a85
CE
15257 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15258 # IBM XL 8.0, 9.0 on PPC and BlueGene
8d138742
CE
15259 lt_prog_compiler_wl_CXX='-Wl,'
15260 lt_prog_compiler_pic_CXX='-qpic'
15261 lt_prog_compiler_static_CXX='-qstaticlink'
15262 ;;
15263 *)
15264 case `$CC -V 2>&1 | sed 5q` in
15265 *Sun\ C*)
15266 # Sun C++ 5.9
15267 lt_prog_compiler_pic_CXX='-KPIC'
15268 lt_prog_compiler_static_CXX='-Bstatic'
15269 lt_prog_compiler_wl_CXX='-Qoption ld '
15270 ;;
15271 esac
15272 ;;
15273 esac
15274 ;;
15275 lynxos*)
15276 ;;
15277 m88k*)
15278 ;;
15279 mvs*)
15280 case $cc_basename in
15281 cxx*)
15282 lt_prog_compiler_pic_CXX='-W c,exportall'
15283 ;;
15284 *)
15285 ;;
15286 esac
15287 ;;
15288 netbsd*)
15289 ;;
15290 *qnx* | *nto*)
15291 # QNX uses GNU C++, but need to define -shared option too, otherwise
15292 # it will coredump.
15293 lt_prog_compiler_pic_CXX='-fPIC -shared'
15294 ;;
15295 osf3* | osf4* | osf5*)
15296 case $cc_basename in
15297 KCC*)
15298 lt_prog_compiler_wl_CXX='--backend -Wl,'
15299 ;;
15300 RCC*)
15301 # Rational C++ 2.4.1
15302 lt_prog_compiler_pic_CXX='-pic'
15303 ;;
15304 cxx*)
15305 # Digital/Compaq C++
15306 lt_prog_compiler_wl_CXX='-Wl,'
15307 # Make sure the PIC flag is empty. It appears that all Alpha
15308 # Linux and Compaq Tru64 Unix objects are PIC.
15309 lt_prog_compiler_pic_CXX=
15310 lt_prog_compiler_static_CXX='-non_shared'
15311 ;;
15312 *)
15313 ;;
15314 esac
15315 ;;
15316 psos*)
15317 ;;
15318 solaris*)
15319 case $cc_basename in
b0322a85 15320 CC* | sunCC*)
8d138742
CE
15321 # Sun C++ 4.2, 5.x and Centerline C++
15322 lt_prog_compiler_pic_CXX='-KPIC'
15323 lt_prog_compiler_static_CXX='-Bstatic'
15324 lt_prog_compiler_wl_CXX='-Qoption ld '
15325 ;;
15326 gcx*)
15327 # Green Hills C++ Compiler
15328 lt_prog_compiler_pic_CXX='-PIC'
15329 ;;
15330 *)
15331 ;;
15332 esac
15333 ;;
15334 sunos4*)
15335 case $cc_basename in
15336 CC*)
15337 # Sun C++ 4.x
15338 lt_prog_compiler_pic_CXX='-pic'
15339 lt_prog_compiler_static_CXX='-Bstatic'
15340 ;;
15341 lcc*)
15342 # Lucid
15343 lt_prog_compiler_pic_CXX='-pic'
15344 ;;
15345 *)
15346 ;;
15347 esac
15348 ;;
15349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15350 case $cc_basename in
15351 CC*)
15352 lt_prog_compiler_wl_CXX='-Wl,'
15353 lt_prog_compiler_pic_CXX='-KPIC'
15354 lt_prog_compiler_static_CXX='-Bstatic'
15355 ;;
d9898ee8 15356 esac
8d138742
CE
15357 ;;
15358 tandem*)
15359 case $cc_basename in
15360 NCC*)
15361 # NonStop-UX NCC 3.20
15362 lt_prog_compiler_pic_CXX='-KPIC'
15363 ;;
15364 *)
15365 ;;
15366 esac
15367 ;;
15368 vxworks*)
15369 ;;
15370 *)
15371 lt_prog_compiler_can_build_shared_CXX=no
15372 ;;
15373 esac
15374 fi
d9898ee8 15375
8d138742 15376case $host_os in
d50284c4 15377 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
15378 *djgpp*)
15379 lt_prog_compiler_pic_CXX=
15380 ;;
15381 *)
15382 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15383 ;;
15384esac
d9898ee8 15385
b0322a85
CE
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15387$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15388if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15389 $as_echo_n "(cached) " >&6
15390else
15391 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15392fi
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15394$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15395lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
d9898ee8 15396
8d138742
CE
15397#
15398# Check to make sure the PIC flag actually works.
15399#
15400if test -n "$lt_prog_compiler_pic_CXX"; then
b0322a85 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
8d138742 15402$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
b0322a85 15403if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
8d138742 15404 $as_echo_n "(cached) " >&6
d9898ee8 15405else
8d138742
CE
15406 lt_cv_prog_compiler_pic_works_CXX=no
15407 ac_outfile=conftest.$ac_objext
15408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 15409 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
15410 # Insert the option either (1) after the last *FLAGS variable, or
15411 # (2) before a word containing "conftest.", or (3) at the end.
15412 # Note that $ac_compile itself does not contain backslashes and begins
15413 # with a dollar sign (not a hyphen), so the echo should work correctly.
15414 # The option is referenced via a variable to avoid confusing sed.
15415 lt_compile=`echo "$ac_compile" | $SED \
15416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15418 -e 's:$: $lt_compiler_flag:'`
b0322a85 15419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
15420 (eval "$lt_compile" 2>conftest.err)
15421 ac_status=$?
15422 cat conftest.err >&5
b0322a85 15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
15424 if (exit $ac_status) && test -s "$ac_outfile"; then
15425 # The compiler can only warn and ignore the option if not recognized
15426 # So say no if there are warnings other than the usual output.
b0322a85 15427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
15428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_pic_works_CXX=yes
15431 fi
15432 fi
15433 $RM conftest*
dd184caf 15434
d9898ee8 15435fi
b0322a85 15436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
8d138742 15437$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
dd184caf 15438
d50284c4 15439if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
8d138742
CE
15440 case $lt_prog_compiler_pic_CXX in
15441 "" | " "*) ;;
15442 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15443 esac
d9898ee8 15444else
8d138742
CE
15445 lt_prog_compiler_pic_CXX=
15446 lt_prog_compiler_can_build_shared_CXX=no
d9898ee8 15447fi
dd184caf 15448
8d138742 15449fi
d9898ee8 15450
d9898ee8 15451
d9898ee8 15452
b0322a85
CE
15453
15454
8d138742
CE
15455#
15456# Check to make sure the static flag actually works.
15457#
15458wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
b0322a85 15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 15460$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 15461if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
8d138742
CE
15462 $as_echo_n "(cached) " >&6
15463else
15464 lt_cv_prog_compiler_static_works_CXX=no
d50284c4 15465 save_LDFLAGS=$LDFLAGS
8d138742
CE
15466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15469 # The linker can only warn and ignore the option if not recognized
15470 # So say no if there are warnings
15471 if test -s conftest.err; then
15472 # Append any errors to the config.log.
15473 cat conftest.err 1>&5
b0322a85 15474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
15475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476 if diff conftest.exp conftest.er2 >/dev/null; then
15477 lt_cv_prog_compiler_static_works_CXX=yes
15478 fi
15479 else
15480 lt_cv_prog_compiler_static_works_CXX=yes
15481 fi
15482 fi
15483 $RM -r conftest*
d50284c4 15484 LDFLAGS=$save_LDFLAGS
d9898ee8 15485
8d138742 15486fi
b0322a85 15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
8d138742 15488$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
d9898ee8 15489
d50284c4 15490if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
8d138742
CE
15491 :
15492else
15493 lt_prog_compiler_static_CXX=
15494fi
d9898ee8 15495
d9898ee8 15496
d9898ee8 15497
d9898ee8 15498
b0322a85 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 15500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 15501if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
15502 $as_echo_n "(cached) " >&6
15503else
15504 lt_cv_prog_compiler_c_o_CXX=no
15505 $RM -r conftest 2>/dev/null
15506 mkdir conftest
15507 cd conftest
15508 mkdir out
15509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15510
8d138742
CE
15511 lt_compiler_flag="-o out/conftest2.$ac_objext"
15512 # Insert the option either (1) after the last *FLAGS variable, or
15513 # (2) before a word containing "conftest.", or (3) at the end.
15514 # Note that $ac_compile itself does not contain backslashes and begins
15515 # with a dollar sign (not a hyphen), so the echo should work correctly.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
b0322a85 15520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
15521 (eval "$lt_compile" 2>out/conftest.err)
15522 ac_status=$?
15523 cat out/conftest.err >&5
b0322a85 15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
15525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15526 then
15527 # The compiler can only warn and ignore the option if not recognized
15528 # So say no if there are warnings
b0322a85 15529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
15530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15532 lt_cv_prog_compiler_c_o_CXX=yes
15533 fi
15534 fi
15535 chmod u+w . 2>&5
15536 $RM conftest*
15537 # SGI C++ compiler will create directory out/ii_files/ for
15538 # template instantiation
15539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15540 $RM out/* && rmdir out
15541 cd ..
15542 $RM -r conftest
15543 $RM conftest*
d9898ee8 15544
8d138742 15545fi
b0322a85 15546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 15547$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 15548
d9898ee8 15549
d9898ee8 15550
b0322a85 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 15552$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 15553if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
15554 $as_echo_n "(cached) " >&6
15555else
15556 lt_cv_prog_compiler_c_o_CXX=no
15557 $RM -r conftest 2>/dev/null
15558 mkdir conftest
15559 cd conftest
15560 mkdir out
15561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15562
8d138742
CE
15563 lt_compiler_flag="-o out/conftest2.$ac_objext"
15564 # Insert the option either (1) after the last *FLAGS variable, or
15565 # (2) before a word containing "conftest.", or (3) at the end.
15566 # Note that $ac_compile itself does not contain backslashes and begins
15567 # with a dollar sign (not a hyphen), so the echo should work correctly.
15568 lt_compile=`echo "$ac_compile" | $SED \
15569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15571 -e 's:$: $lt_compiler_flag:'`
b0322a85 15572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
15573 (eval "$lt_compile" 2>out/conftest.err)
15574 ac_status=$?
15575 cat out/conftest.err >&5
b0322a85 15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
15577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578 then
15579 # The compiler can only warn and ignore the option if not recognized
15580 # So say no if there are warnings
b0322a85 15581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
15582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15584 lt_cv_prog_compiler_c_o_CXX=yes
15585 fi
15586 fi
15587 chmod u+w . 2>&5
15588 $RM conftest*
15589 # SGI C++ compiler will create directory out/ii_files/ for
15590 # template instantiation
15591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15592 $RM out/* && rmdir out
15593 cd ..
15594 $RM -r conftest
15595 $RM conftest*
d9898ee8 15596
8d138742 15597fi
b0322a85 15598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 15599$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 15600
d9898ee8 15601
d9898ee8 15602
d9898ee8 15603
d50284c4
CE
15604hard_links=nottested
15605if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
8d138742 15606 # do not overwrite the value of need_locks provided by the user
b0322a85 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
15608$as_echo_n "checking if we can lock with hard links... " >&6; }
15609 hard_links=yes
15610 $RM conftest*
15611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15612 touch conftest.a
15613 ln conftest.a conftest.b 2>&5 || hard_links=no
15614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 15616$as_echo "$hard_links" >&6; }
d50284c4
CE
15617 if test no = "$hard_links"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15619$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8d138742
CE
15620 need_locks=warn
15621 fi
15622else
15623 need_locks=no
15624fi
d9898ee8 15625
d9898ee8 15626
d9898ee8 15627
b0322a85 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
15629$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15630
15631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 15632 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8d138742
CE
15633 case $host_os in
15634 aix[4-9]*)
15635 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
15636 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15637 # Without the "-l" option, or with the "-B" option, AIX nm treats
15638 # weak defined symbols like other global defined symbols, whereas
15639 # GNU nm marks them as "W".
15640 # While the 'weak' keyword is ignored in the Export File, we need
15641 # it in the Import File for the 'aix-soname' feature, so we have
15642 # to replace the "-B" option with "-P" for AIX nm.
8d138742 15643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 15644 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8d138742 15645 else
d50284c4 15646 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8d138742
CE
15647 fi
15648 ;;
15649 pw32*)
d50284c4 15650 export_symbols_cmds_CXX=$ltdll_cmds
b0322a85 15651 ;;
8d138742 15652 cygwin* | mingw* | cegcc*)
b0322a85
CE
15653 case $cc_basename in
15654 cl*)
15655 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15656 ;;
15657 *)
15658 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'
15659 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15660 ;;
15661 esac
15662 ;;
8d138742
CE
15663 *)
15664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 15665 ;;
8d138742 15666 esac
8d138742 15667
b0322a85 15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742 15669$as_echo "$ld_shlibs_CXX" >&6; }
d50284c4 15670test no = "$ld_shlibs_CXX" && can_build_shared=no
8d138742
CE
15671
15672with_gnu_ld_CXX=$with_gnu_ld
d9898ee8 15673
d9898ee8 15674
d9898ee8 15675
d9898ee8 15676
d9898ee8 15677
d9898ee8 15678
15679#
15680# Do we need to explicitly link libc?
15681#
8d138742 15682case "x$archive_cmds_need_lc_CXX" in
d9898ee8 15683x|xyes)
15684 # Assume -lc should be added
8d138742 15685 archive_cmds_need_lc_CXX=yes
d9898ee8 15686
d50284c4 15687 if test yes,yes = "$GCC,$enable_shared"; then
8d138742 15688 case $archive_cmds_CXX in
d9898ee8 15689 *'~'*)
15690 # FIXME: we may have to deal with multi-command sequences.
15691 ;;
15692 '$CC '*)
15693 # Test whether the compiler implicitly links with -lc since on some
15694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15695 # to ld, don't add -lc before -lgcc.
b0322a85 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 15697$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
15698if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700else
15701 $RM conftest*
15702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15703
b0322a85 15704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 15705 (eval $ac_compile) 2>&5
15706 ac_status=$?
b0322a85
CE
15707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15708 test $ac_status = 0; } 2>conftest.err; then
15709 soname=conftest
15710 lib=conftest
15711 libobjs=conftest.$ac_objext
15712 deplibs=
15713 wl=$lt_prog_compiler_wl_CXX
15714 pic_flag=$lt_prog_compiler_pic_CXX
15715 compiler_flags=-v
15716 linker_flags=-v
15717 verstring=
15718 output_objdir=.
15719 libname=conftest
15720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15721 allow_undefined_flag_CXX=
15722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742 15723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 15724 ac_status=$?
b0322a85
CE
15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 test $ac_status = 0; }
15727 then
15728 lt_cv_archive_cmds_need_lc_CXX=no
15729 else
15730 lt_cv_archive_cmds_need_lc_CXX=yes
15731 fi
15732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15733 else
15734 cat conftest.err 1>&5
15735 fi
15736 $RM conftest*
15737
15738fi
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15740$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
d9898ee8 15742 ;;
15743 esac
15744 fi
15745 ;;
15746esac
15747
8d138742
CE
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
b0322a85 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
15810$as_echo_n "checking dynamic linker characteristics... " >&6; }
15811
d9898ee8 15812library_names_spec=
15813libname_spec='lib$name'
15814soname_spec=
d50284c4 15815shrext_cmds=.so
d9898ee8 15816postinstall_cmds=
15817postuninstall_cmds=
15818finish_cmds=
15819finish_eval=
15820shlibpath_var=
15821shlibpath_overrides_runpath=unknown
15822version_type=none
15823dynamic_linker="$host_os ld.so"
15824sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 15825need_lib_prefix=unknown
15826hardcode_into_libs=no
15827
15828# when you set need_version to no, make sure it does not cause -set_version
15829# flags to be left without arguments
15830need_version=unknown
15831
d50284c4
CE
15832
15833
d9898ee8 15834case $host_os in
15835aix3*)
b0322a85 15836 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 15837 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d9898ee8 15838 shlibpath_var=LIBPATH
15839
15840 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 15841 soname_spec='$libname$release$shared_ext$major'
d9898ee8 15842 ;;
15843
8d138742 15844aix[4-9]*)
b0322a85 15845 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15846 need_lib_prefix=no
15847 need_version=no
15848 hardcode_into_libs=yes
d50284c4 15849 if test ia64 = "$host_cpu"; then
d9898ee8 15850 # AIX 5 supports IA64
d50284c4 15851 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d9898ee8 15852 shlibpath_var=LD_LIBRARY_PATH
15853 else
15854 # With GCC up to 2.95.x, collect2 would create an import file
15855 # for dependence libraries. The import file would start with
d50284c4
CE
15856 # the line '#! .'. This would cause the generated library to
15857 # depend on '.', always an invalid library. This was fixed in
d9898ee8 15858 # development snapshots of GCC prior to 3.0.
15859 case $host_os in
15860 aix4 | aix4.[01] | aix4.[01].*)
15861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15862 echo ' yes '
d50284c4 15863 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d9898ee8 15864 :
15865 else
15866 can_build_shared=no
15867 fi
15868 ;;
15869 esac
d50284c4
CE
15870 # Using Import Files as archive members, it is possible to support
15871 # filename-based versioning of shared library archives on AIX. While
15872 # this would work for both with and without runtime linking, it will
15873 # prevent static linking of such archives. So we do filename-based
15874 # shared library versioning with .so extension only, which is used
15875 # when both runtime linking and shared linking is enabled.
15876 # Unfortunately, runtime linking may impact performance, so we do
15877 # not want this to be the default eventually. Also, we use the
15878 # versioned .so libs for executables only if there is the -brtl
15879 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15880 # To allow for filename-based versioning support, we need to create
15881 # libNAME.so.V as an archive file, containing:
15882 # *) an Import File, referring to the versioned filename of the
15883 # archive as well as the shared archive member, telling the
15884 # bitwidth (32 or 64) of that shared object, and providing the
15885 # list of exported symbols of that shared object, eventually
15886 # decorated with the 'weak' keyword
15887 # *) the shared object with the F_LOADONLY flag set, to really avoid
15888 # it being seen by the linker.
15889 # At run time we better use the real file rather than another symlink,
15890 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15891
15892 case $with_aix_soname,$aix_use_runtimelinking in
15893 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d9898ee8 15894 # soname into executable. Probably we can add versioning support to
15895 # collect2, so additional links can be useful in future.
d50284c4
CE
15896 aix,yes) # traditional libtool
15897 dynamic_linker='AIX unversionable lib.so'
d9898ee8 15898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899 # instead of lib<name>.a to let people know that these are not
15900 # typical AIX shared libraries.
d50284c4
CE
15901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15902 ;;
15903 aix,no) # traditional AIX only
15904 dynamic_linker='AIX lib.a(lib.so.V)'
d9898ee8 15905 # We preserve .a as extension for shared libraries through AIX4.2
15906 # and later when we are not doing run time linking.
d50284c4
CE
15907 library_names_spec='$libname$release.a $libname.a'
15908 soname_spec='$libname$release$shared_ext$major'
15909 ;;
15910 svr4,*) # full svr4 only
15911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15913 # We do not specify a path in Import Files, so LIBPATH fires.
15914 shlibpath_overrides_runpath=yes
15915 ;;
15916 *,yes) # both, prefer svr4
15917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15919 # unpreferred sharedlib libNAME.a needs extra handling
15920 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15921 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15922 # We do not specify a path in Import Files, so LIBPATH fires.
15923 shlibpath_overrides_runpath=yes
15924 ;;
15925 *,no) # both, prefer aix
15926 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15927 library_names_spec='$libname$release.a $libname.a'
15928 soname_spec='$libname$release$shared_ext$major'
15929 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15930 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15931 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15932 ;;
15933 esac
d9898ee8 15934 shlibpath_var=LIBPATH
15935 fi
15936 ;;
15937
15938amigaos*)
8d138742
CE
15939 case $host_cpu in
15940 powerpc)
15941 # Since July 2007 AmigaOS4 officially supports .so libraries.
15942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 15943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
15944 ;;
15945 m68k)
15946 library_names_spec='$libname.ixlibrary $libname.a'
15947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 15948 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
8d138742
CE
15949 ;;
15950 esac
d9898ee8 15951 ;;
15952
15953beos*)
d50284c4 15954 library_names_spec='$libname$shared_ext'
d9898ee8 15955 dynamic_linker="$host_os ld.so"
15956 shlibpath_var=LIBRARY_PATH
15957 ;;
15958
15959bsdi[45]*)
b0322a85 15960 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15961 need_version=no
d50284c4
CE
15962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15963 soname_spec='$libname$release$shared_ext$major'
d9898ee8 15964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15965 shlibpath_var=LD_LIBRARY_PATH
15966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15968 # the default ld.so.conf also contains /usr/contrib/lib and
15969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15970 # libtool to hard-code these into programs
15971 ;;
15972
8d138742 15973cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 15974 version_type=windows
d50284c4 15975 shrext_cmds=.dll
d9898ee8 15976 need_version=no
15977 need_lib_prefix=no
15978
b0322a85
CE
15979 case $GCC,$cc_basename in
15980 yes,*)
15981 # gcc
d9898ee8 15982 library_names_spec='$libname.dll.a'
15983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
15984 postinstall_cmds='base_file=`basename \$file`~
15985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d9898ee8 15986 dldir=$destdir/`dirname \$dlpath`~
15987 test -d \$dldir || mkdir -p \$dldir~
15988 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
15989 chmod a+x \$dldir/$dlname~
15990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15992 fi'
d9898ee8 15993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15994 dlpath=$dir/\$dldll~
8d138742 15995 $RM \$dlpath'
d9898ee8 15996 shlibpath_overrides_runpath=yes
15997
15998 case $host_os in
15999 cygwin*)
16000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 16001 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85 16002
d9898ee8 16003 ;;
8d138742 16004 mingw* | cegcc*)
d9898ee8 16005 # MinGW DLLs use traditional 'lib' prefix
d50284c4 16006 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 16007 ;;
16008 pw32*)
16009 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 16010 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 16011 ;;
16012 esac
b0322a85
CE
16013 dynamic_linker='Win32 ld.exe'
16014 ;;
16015
16016 *,cl*)
16017 # Native MSVC
16018 libname_spec='$name'
d50284c4
CE
16019 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16020 library_names_spec='$libname.dll.lib'
b0322a85
CE
16021
16022 case $build_os in
16023 mingw*)
16024 sys_lib_search_path_spec=
16025 lt_save_ifs=$IFS
16026 IFS=';'
16027 for lt_path in $LIB
16028 do
16029 IFS=$lt_save_ifs
16030 # Let DOS variable expansion print the short 8.3 style file name.
16031 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16032 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16033 done
16034 IFS=$lt_save_ifs
16035 # Convert to MSYS style.
16036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16037 ;;
16038 cygwin*)
16039 # Convert to unix form, then to dos form, then back to unix form
16040 # but this time dos style (no spaces!) so that the unix form looks
16041 # like /cygdrive/c/PROGRA~1:/cygdr...
16042 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16043 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16044 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16045 ;;
16046 *)
d50284c4 16047 sys_lib_search_path_spec=$LIB
b0322a85
CE
16048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16049 # It is most probably a Windows format PATH.
16050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16051 else
16052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16053 fi
16054 # FIXME: find the short name or the path components, as spaces are
16055 # common. (e.g. "Program Files" -> "PROGRA~1")
16056 ;;
16057 esac
16058
16059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
16060 postinstall_cmds='base_file=`basename \$file`~
16061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
16062 dldir=$destdir/`dirname \$dlpath`~
16063 test -d \$dldir || mkdir -p \$dldir~
16064 $install_prog $dir/$dlname \$dldir/$dlname'
16065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16066 dlpath=$dir/\$dldll~
16067 $RM \$dlpath'
16068 shlibpath_overrides_runpath=yes
16069 dynamic_linker='Win32 link.exe'
d9898ee8 16070 ;;
16071
16072 *)
b0322a85 16073 # Assume MSVC wrapper
d50284c4 16074 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85 16075 dynamic_linker='Win32 ld.exe'
d9898ee8 16076 ;;
16077 esac
d9898ee8 16078 # FIXME: first we should search . and the directory the executable is in
16079 shlibpath_var=PATH
16080 ;;
16081
16082darwin* | rhapsody*)
16083 dynamic_linker="$host_os dyld"
16084 version_type=darwin
16085 need_lib_prefix=no
16086 need_version=no
d50284c4
CE
16087 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16088 soname_spec='$libname$release$major$shared_ext'
d9898ee8 16089 shlibpath_overrides_runpath=yes
16090 shlibpath_var=DYLD_LIBRARY_PATH
16091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 16092
d9898ee8 16093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16094 ;;
16095
16096dgux*)
b0322a85 16097 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 16098 need_lib_prefix=no
16099 need_version=no
d50284c4
CE
16100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16101 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16102 shlibpath_var=LD_LIBRARY_PATH
16103 ;;
16104
d9898ee8 16105freebsd* | dragonfly*)
16106 # DragonFly does not have aout. When/if they implement a new
16107 # versioning mechanism, adjust this.
16108 if test -x /usr/bin/objformat; then
16109 objformat=`/usr/bin/objformat`
16110 else
16111 case $host_os in
b0322a85 16112 freebsd[23].*) objformat=aout ;;
d9898ee8 16113 *) objformat=elf ;;
16114 esac
16115 fi
16116 version_type=freebsd-$objformat
16117 case $version_type in
16118 freebsd-elf*)
d50284c4
CE
16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16120 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16121 need_version=no
16122 need_lib_prefix=no
16123 ;;
16124 freebsd-*)
d50284c4 16125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 16126 need_version=yes
16127 ;;
16128 esac
16129 shlibpath_var=LD_LIBRARY_PATH
16130 case $host_os in
b0322a85 16131 freebsd2.*)
d9898ee8 16132 shlibpath_overrides_runpath=yes
16133 ;;
16134 freebsd3.[01]* | freebsdelf3.[01]*)
16135 shlibpath_overrides_runpath=yes
16136 hardcode_into_libs=yes
16137 ;;
16138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 ;;
ac40fd9e 16143 *) # from 4.6 on, and DragonFly
d9898ee8 16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 ;;
16147 esac
16148 ;;
16149
b0322a85
CE
16150haiku*)
16151 version_type=linux # correct to gnu/linux during the next big refactor
16152 need_lib_prefix=no
16153 need_version=no
16154 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
16155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16156 soname_spec='$libname$release$shared_ext$major'
b0322a85 16157 shlibpath_var=LIBRARY_PATH
d50284c4 16158 shlibpath_overrides_runpath=no
b0322a85 16159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 16160 hardcode_into_libs=yes
16161 ;;
16162
16163hpux9* | hpux10* | hpux11*)
16164 # Give a soname corresponding to the major version so that dld.sl refuses to
16165 # link against other versions.
16166 version_type=sunos
16167 need_lib_prefix=no
16168 need_version=no
16169 case $host_cpu in
16170 ia64*)
16171 shrext_cmds='.so'
16172 hardcode_into_libs=yes
16173 dynamic_linker="$host_os dld.so"
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16177 soname_spec='$libname$release$shared_ext$major'
16178 if test 32 = "$HPUX_IA64_MODE"; then
d9898ee8 16179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 16180 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
d9898ee8 16181 else
16182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 16183 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d9898ee8 16184 fi
d9898ee8 16185 ;;
8d138742
CE
16186 hppa*64*)
16187 shrext_cmds='.sl'
16188 hardcode_into_libs=yes
16189 dynamic_linker="$host_os dld.sl"
16190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16193 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
16194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16196 ;;
16197 *)
d9898ee8 16198 shrext_cmds='.sl'
16199 dynamic_linker="$host_os dld.sl"
16200 shlibpath_var=SHLIB_PATH
16201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
16202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16203 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16204 ;;
16205 esac
b0322a85 16206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 16207 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
16208 # or fails outright, so override atomically:
16209 install_override_mode=555
d9898ee8 16210 ;;
16211
ac40fd9e 16212interix[3-9]*)
b0322a85 16213 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 16214 need_lib_prefix=no
16215 need_version=no
d50284c4
CE
16216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16217 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16218 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=no
16221 hardcode_into_libs=yes
16222 ;;
16223
16224irix5* | irix6* | nonstopux*)
16225 case $host_os in
16226 nonstopux*) version_type=nonstopux ;;
16227 *)
d50284c4 16228 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 16229 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 16230 else
16231 version_type=irix
16232 fi ;;
16233 esac
16234 need_lib_prefix=no
16235 need_version=no
d50284c4
CE
16236 soname_spec='$libname$release$shared_ext$major'
16237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d9898ee8 16238 case $host_os in
16239 irix5* | nonstopux*)
16240 libsuff= shlibsuff=
16241 ;;
16242 *)
16243 case $LD in # libtool.m4 will add one of these switches to LD
16244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16245 libsuff= shlibsuff= libmagic=32-bit;;
16246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16247 libsuff=32 shlibsuff=N32 libmagic=N32;;
16248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16250 *) libsuff= shlibsuff= libmagic=never-match;;
16251 esac
16252 ;;
16253 esac
16254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16255 shlibpath_overrides_runpath=no
d50284c4
CE
16256 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16257 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d9898ee8 16258 hardcode_into_libs=yes
16259 ;;
16260
16261# No shared lib support for Linux oldld, aout, or coff.
16262linux*oldld* | linux*aout* | linux*coff*)
16263 dynamic_linker=no
16264 ;;
16265
d50284c4
CE
16266linux*android*)
16267 version_type=none # Android doesn't support versioned libraries.
16268 need_lib_prefix=no
16269 need_version=no
16270 library_names_spec='$libname$release$shared_ext'
16271 soname_spec='$libname$release$shared_ext'
16272 finish_cmds=
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=yes
16275
16276 # This implies no fast_install, which is unacceptable.
16277 # Some rework will be needed to allow for fast_install
16278 # before this can be enabled.
16279 hardcode_into_libs=yes
16280
16281 dynamic_linker='Android linker'
16282 # Don't embed -rpath directories since the linker doesn't support them.
16283 hardcode_libdir_flag_spec_CXX='-L$libdir'
16284 ;;
16285
b0322a85 16286# This must be glibc/ELF.
d50284c4 16287linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 16288 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 16289 need_lib_prefix=no
16290 need_version=no
d50284c4
CE
16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16292 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
b0322a85 16296
8d138742 16297 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
16298 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300else
16301 lt_cv_shlibpath_overrides_runpath=no
16302 save_LDFLAGS=$LDFLAGS
16303 save_libdir=$libdir
16304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16307/* end confdefs.h. */
16308
16309int
16310main ()
16311{
16312
16313 ;
16314 return 0;
16315}
16316_ACEOF
b0322a85
CE
16317if ac_fn_cxx_try_link "$LINENO"; then :
16318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16319 lt_cv_shlibpath_overrides_runpath=yes
8d138742 16320fi
b0322a85
CE
16321fi
16322rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 LDFLAGS=$save_LDFLAGS
16325 libdir=$save_libdir
8d138742
CE
16326
16327fi
16328
b0322a85 16329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 16330
d9898ee8 16331 # This implies no fast_install, which is unacceptable.
16332 # Some rework will be needed to allow for fast_install
16333 # before this can be enabled.
16334 hardcode_into_libs=yes
8d138742
CE
16335
16336 # Add ABI-specific directories to the system library path.
16337 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 16338
d50284c4
CE
16339 # Ideally, we could use ldconfig to report *all* directores which are
16340 # searched for libraries, however this is still not possible. Aside from not
16341 # being certain /sbin/ldconfig is available, command
16342 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16343 # even though it is searched at run-time. Try to do the best guess by
16344 # appending ld.so.conf contents (and includes) to the search path.
d9898ee8 16345 if test -f /etc/ld.so.conf; then
b0322a85 16346 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' ' '`
ac40fd9e 16347 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 16348 fi
16349
16350 # We used to test for /lib/ld.so.1 and disable shared libraries on
16351 # powerpc, because MkLinux only supported shared libraries with the
16352 # GNU dynamic linker. Since this was broken with cross compilers,
16353 # most powerpc-linux boxes support dynamic linking these days and
16354 # people can always --disable-shared, the test was removed, and we
16355 # assume the GNU/Linux dynamic linker is in use.
16356 dynamic_linker='GNU/Linux ld.so'
16357 ;;
16358
d9898ee8 16359netbsd*)
16360 version_type=sunos
16361 need_lib_prefix=no
16362 need_version=no
8d138742 16363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 16364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 16365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16366 dynamic_linker='NetBSD (a.out) ld.so'
16367 else
d50284c4
CE
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16370 dynamic_linker='NetBSD ld.elf_so'
16371 fi
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 hardcode_into_libs=yes
16375 ;;
16376
16377newsos6)
b0322a85 16378 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 16379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 ;;
16383
8d138742
CE
16384*nto* | *qnx*)
16385 version_type=qnx
d9898ee8 16386 need_lib_prefix=no
16387 need_version=no
d50284c4
CE
16388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16389 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16390 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
16391 shlibpath_overrides_runpath=no
16392 hardcode_into_libs=yes
16393 dynamic_linker='ldqnx.so'
d9898ee8 16394 ;;
16395
d50284c4 16396openbsd* | bitrig*)
d9898ee8 16397 version_type=sunos
d50284c4 16398 sys_lib_dlsearch_path_spec=/usr/lib
d9898ee8 16399 need_lib_prefix=no
d50284c4
CE
16400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16401 need_version=no
d9898ee8 16402 else
d50284c4 16403 need_version=yes
d9898ee8 16404 fi
d50284c4
CE
16405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
d9898ee8 16409 ;;
16410
16411os2*)
16412 libname_spec='$name'
d50284c4
CE
16413 version_type=windows
16414 shrext_cmds=.dll
16415 need_version=no
d9898ee8 16416 need_lib_prefix=no
d50284c4
CE
16417 # OS/2 can only load a DLL with a base name of 8 characters or less.
16418 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16419 v=$($ECHO $release$versuffix | tr -d .-);
16420 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16421 $ECHO $n$v`$shared_ext'
16422 library_names_spec='${libname}_dll.$libext'
d9898ee8 16423 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
16424 shlibpath_var=BEGINLIBPATH
16425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16427 postinstall_cmds='base_file=`basename \$file`~
16428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16429 dldir=$destdir/`dirname \$dlpath`~
16430 test -d \$dldir || mkdir -p \$dldir~
16431 $install_prog $dir/$dlname \$dldir/$dlname~
16432 chmod a+x \$dldir/$dlname~
16433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16435 fi'
16436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16437 dlpath=$dir/\$dldll~
16438 $RM \$dlpath'
d9898ee8 16439 ;;
16440
16441osf3* | osf4* | osf5*)
16442 version_type=osf
16443 need_lib_prefix=no
16444 need_version=no
d50284c4
CE
16445 soname_spec='$libname$release$shared_ext$major'
16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 16449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d9898ee8 16450 ;;
16451
ac40fd9e 16452rdos*)
16453 dynamic_linker=no
16454 ;;
16455
d9898ee8 16456solaris*)
b0322a85 16457 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 16458 need_lib_prefix=no
16459 need_version=no
d50284c4
CE
16460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16461 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 hardcode_into_libs=yes
16465 # ldd complains unless libraries are executable
16466 postinstall_cmds='chmod +x $lib'
16467 ;;
16468
16469sunos4*)
16470 version_type=sunos
d50284c4 16471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 16472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
d50284c4 16475 if test yes = "$with_gnu_ld"; then
d9898ee8 16476 need_lib_prefix=no
16477 fi
16478 need_version=yes
16479 ;;
16480
16481sysv4 | sysv4.3*)
b0322a85 16482 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
16483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16484 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16485 shlibpath_var=LD_LIBRARY_PATH
16486 case $host_vendor in
16487 sni)
16488 shlibpath_overrides_runpath=no
16489 need_lib_prefix=no
d9898ee8 16490 runpath_var=LD_RUN_PATH
16491 ;;
16492 siemens)
16493 need_lib_prefix=no
16494 ;;
16495 motorola)
16496 need_lib_prefix=no
16497 need_version=no
16498 shlibpath_overrides_runpath=no
16499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16500 ;;
16501 esac
16502 ;;
16503
16504sysv4*MP*)
d50284c4 16505 if test -d /usr/nec; then
b0322a85 16506 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
16507 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16508 soname_spec='$libname$shared_ext.$major'
d9898ee8 16509 shlibpath_var=LD_LIBRARY_PATH
16510 fi
16511 ;;
16512
16513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 16514 version_type=sco
d9898ee8 16515 need_lib_prefix=no
16516 need_version=no
d50284c4
CE
16517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16518 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16519 shlibpath_var=LD_LIBRARY_PATH
8d138742 16520 shlibpath_overrides_runpath=yes
d9898ee8 16521 hardcode_into_libs=yes
d50284c4 16522 if test yes = "$with_gnu_ld"; then
d9898ee8 16523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 16524 else
16525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 16526 case $host_os in
16527 sco3.2v5*)
16528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16529 ;;
16530 esac
16531 fi
16532 sys_lib_dlsearch_path_spec='/usr/lib'
16533 ;;
16534
8d138742
CE
16535tpf*)
16536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 16537 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
16538 need_lib_prefix=no
16539 need_version=no
d50284c4 16540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
16541 shlibpath_var=LD_LIBRARY_PATH
16542 shlibpath_overrides_runpath=no
16543 hardcode_into_libs=yes
16544 ;;
16545
d9898ee8 16546uts4*)
b0322a85 16547 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
16548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16549 soname_spec='$libname$release$shared_ext$major'
d9898ee8 16550 shlibpath_var=LD_LIBRARY_PATH
16551 ;;
16552
16553*)
16554 dynamic_linker=no
16555 ;;
16556esac
b0322a85 16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 16558$as_echo "$dynamic_linker" >&6; }
d50284c4 16559test no = "$dynamic_linker" && can_build_shared=no
d9898ee8 16560
16561variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 16562if test yes = "$GCC"; then
d9898ee8 16563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16564fi
16565
d50284c4
CE
16566if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16567 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
8d138742 16568fi
d50284c4
CE
16569
16570if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16571 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
8d138742
CE
16572fi
16573
d50284c4
CE
16574# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16575configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16576
16577# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16578func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16579
16580# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16581configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16582
16583
16584
8d138742
CE
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
d9898ee8 16619
b0322a85
CE
16620
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
16623$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16624hardcode_action_CXX=
16625if test -n "$hardcode_libdir_flag_spec_CXX" ||
16626 test -n "$runpath_var_CXX" ||
d50284c4 16627 test yes = "$hardcode_automatic_CXX"; then
8d138742
CE
16628
16629 # We can hardcode non-existent directories.
d50284c4 16630 if test no != "$hardcode_direct_CXX" &&
d9898ee8 16631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16632 # have to relink, otherwise we might link with an installed library
16633 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
16634 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16635 test no != "$hardcode_minus_L_CXX"; then
d9898ee8 16636 # Linking always hardcodes the temporary library directory.
8d138742 16637 hardcode_action_CXX=relink
d9898ee8 16638 else
16639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8d138742 16640 hardcode_action_CXX=immediate
d9898ee8 16641 fi
16642else
16643 # We cannot hardcode anything, or else we can only hardcode existing
16644 # directories.
8d138742 16645 hardcode_action_CXX=unsupported
d9898ee8 16646fi
b0322a85 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
8d138742 16648$as_echo "$hardcode_action_CXX" >&6; }
d9898ee8 16649
d50284c4
CE
16650if test relink = "$hardcode_action_CXX" ||
16651 test yes = "$inherit_rpath_CXX"; then
d9898ee8 16652 # Fast installation is not supported
16653 enable_fast_install=no
d50284c4
CE
16654elif test yes = "$shlibpath_overrides_runpath" ||
16655 test no = "$enable_shared"; then
d9898ee8 16656 # Fast installation is not necessary
16657 enable_fast_install=needless
16658fi
16659
16660
d9898ee8 16661
d9898ee8 16662
d9898ee8 16663
d9898ee8 16664
d9898ee8 16665
8d138742 16666 fi # test -n "$compiler"
d9898ee8 16667
8d138742 16668 CC=$lt_save_CC
b0322a85 16669 CFLAGS=$lt_save_CFLAGS
8d138742
CE
16670 LDCXX=$LD
16671 LD=$lt_save_LD
16672 GCC=$lt_save_GCC
16673 with_gnu_ld=$lt_save_with_gnu_ld
16674 lt_cv_path_LDCXX=$lt_cv_path_LD
16675 lt_cv_path_LD=$lt_save_path_LD
16676 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16677 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
d50284c4 16678fi # test yes != "$_lt_caught_CXX_error"
d9898ee8 16679
8d138742
CE
16680ac_ext=c
16681ac_cpp='$CPP $CPPFLAGS'
16682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16684ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 16685
d9898ee8 16686
d9898ee8 16687
d9898ee8 16688
d9898ee8 16689
d9898ee8 16690
d9898ee8 16691
d9898ee8 16692
d9898ee8 16693
d9898ee8 16694
d9898ee8 16695
d9898ee8 16696
d9898ee8 16697
b0322a85
CE
16698
16699
8d138742 16700 ac_config_commands="$ac_config_commands libtool"
d9898ee8 16701
d9898ee8 16702
d9898ee8 16703
d9898ee8 16704
8d138742 16705# Only expand once:
d9898ee8 16706
d9898ee8 16707
d9898ee8 16708
d9898ee8 16709
8d138742 16710saveLIBS="$LIBS"
b0322a85
CE
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
16712$as_echo_n "checking for dbopen in -ldb... " >&6; }
16713if ${ac_cv_lib_db_dbopen+:} false; then :
8d138742
CE
16714 $as_echo_n "(cached) " >&6
16715else
16716 ac_check_lib_save_LIBS=$LIBS
b0322a85
CE
16717LIBS="-ldb $LIBS"
16718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16719/* end confdefs.h. */
d9898ee8 16720
8d138742
CE
16721/* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16724#ifdef __cplusplus
16725extern "C"
16726#endif
b0322a85 16727char dbopen ();
8d138742
CE
16728int
16729main ()
16730{
b0322a85 16731return dbopen ();
8d138742
CE
16732 ;
16733 return 0;
16734}
16735_ACEOF
b0322a85
CE
16736if ac_fn_c_try_link "$LINENO"; then :
16737 ac_cv_lib_db_dbopen=yes
8d138742 16738else
b0322a85 16739 ac_cv_lib_db_dbopen=no
8d138742 16740fi
b0322a85
CE
16741rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
16743LIBS=$ac_check_lib_save_LIBS
16744fi
b0322a85
CE
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
16746$as_echo "$ac_cv_lib_db_dbopen" >&6; }
16747if test "x$ac_cv_lib_db_dbopen" = xyes; then :
16748 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16749else
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
16751$as_echo_n "checking for db_open in -ldb... " >&6; }
16752if ${ac_cv_lib_db_db_open+:} false; then :
8d138742
CE
16753 $as_echo_n "(cached) " >&6
16754else
b0322a85
CE
16755 ac_check_lib_save_LIBS=$LIBS
16756LIBS="-ldb $LIBS"
16757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16758/* end confdefs.h. */
d9898ee8 16759
8d138742
CE
16760/* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
16763#ifdef __cplusplus
16764extern "C"
16765#endif
b0322a85 16766char db_open ();
8d138742
CE
16767int
16768main ()
16769{
b0322a85 16770return db_open ();
8d138742
CE
16771 ;
16772 return 0;
16773}
16774_ACEOF
b0322a85
CE
16775if ac_fn_c_try_link "$LINENO"; then :
16776 ac_cv_lib_db_db_open=yes
8d138742 16777else
b0322a85 16778 ac_cv_lib_db_db_open=no
8d138742 16779fi
b0322a85
CE
16780rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782LIBS=$ac_check_lib_save_LIBS
8d138742 16783fi
b0322a85
CE
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
16785$as_echo "$ac_cv_lib_db_db_open" >&6; }
16786if test "x$ac_cv_lib_db_db_open" = xyes; then :
16787 LIBDB=-ldb ; LIBS="-ldb $LIBS"
8d138742 16788else
b0322a85
CE
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
16790$as_echo_n "checking for db_env_create in -ldb... " >&6; }
16791if ${ac_cv_lib_db_db_env_create+:} false; then :
8d138742
CE
16792 $as_echo_n "(cached) " >&6
16793else
b0322a85
CE
16794 ac_check_lib_save_LIBS=$LIBS
16795LIBS="-ldb $LIBS"
16796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16797/* end confdefs.h. */
d9898ee8 16798
8d138742
CE
16799/* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802#ifdef __cplusplus
16803extern "C"
16804#endif
b0322a85 16805char db_env_create ();
8d138742
CE
16806int
16807main ()
16808{
b0322a85 16809return db_env_create ();
8d138742
CE
16810 ;
16811 return 0;
16812}
16813_ACEOF
b0322a85
CE
16814if ac_fn_c_try_link "$LINENO"; then :
16815 ac_cv_lib_db_db_env_create=yes
8d138742 16816else
b0322a85 16817 ac_cv_lib_db_db_env_create=no
8d138742 16818fi
b0322a85
CE
16819rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821LIBS=$ac_check_lib_save_LIBS
16822fi
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
16824$as_echo "$ac_cv_lib_db_db_env_create" >&6; }
16825if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
16826 LIBDB=-ldb; LIBS="-ldb $LIBS"
8d138742 16827fi
b0322a85 16828
d9898ee8 16829
8d138742 16830fi
d9898ee8 16831
8d138742 16832fi
d9898ee8 16833
d9898ee8 16834
b0322a85
CE
16835FOUND_DB=0
16836ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
16837if test "x$ac_cv_func_dbopen" = xyes; then :
16838 FOUND_DB=1
8d138742 16839fi
d9898ee8 16840
b0322a85
CE
16841ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
16842if test "x$ac_cv_func_db_open" = xyes; then :
16843 FOUND_DB=1
8d138742 16844fi
d9898ee8 16845
b0322a85
CE
16846ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
16847if test "x$ac_cv_func_db_env_create" = xyes; then :
16848 FOUND_DB=1
16849fi
d9898ee8 16850
d9898ee8 16851
b0322a85 16852LIBS="$saveLIBS"
d9898ee8 16853
d9898ee8 16854
b0322a85
CE
16855
16856 if test "$FOUND_DB" != 0; then
16857 FOUND_DB_TRUE=
16858 FOUND_DB_FALSE='#'
8d138742 16859else
b0322a85
CE
16860 FOUND_DB_TRUE='#'
16861 FOUND_DB_FALSE=
8d138742 16862fi
d9898ee8 16863
b0322a85
CE
16864
16865
16866for ac_header in limits.h fcntl.h unistd.h
16867do :
16868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16869ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16870if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
16871 cat >>confdefs.h <<_ACEOF
16872#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16873_ACEOF
d9898ee8 16874
8d138742 16875fi
d9898ee8 16876
8d138742 16877done
d9898ee8 16878
d9898ee8 16879
b0322a85 16880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 16881$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 16882if ${ac_cv_c_const+:} false; then :
8d138742
CE
16883 $as_echo_n "(cached) " >&6
16884else
b0322a85 16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16886/* end confdefs.h. */
d9898ee8 16887
8d138742
CE
16888int
16889main ()
16890{
b0322a85 16891
8d138742 16892#ifndef __cplusplus
b0322a85 16893 /* Ultrix mips cc rejects this sort of thing. */
8d138742 16894 typedef int charset[2];
b0322a85 16895 const charset cs = { 0, 0 };
8d138742
CE
16896 /* SunOS 4.1.1 cc rejects this. */
16897 char const *const *pcpcc;
16898 char **ppc;
16899 /* NEC SVR4.0.2 mips cc rejects this. */
16900 struct point {int x, y;};
16901 static struct point const zero = {0,0};
16902 /* AIX XL C 1.02.0.0 rejects this.
16903 It does not let you subtract one const X* pointer from another in
16904 an arm of an if-expression whose if-part is not a constant
16905 expression */
16906 const char *g = "string";
16907 pcpcc = &g + (g ? g-g : 0);
16908 /* HPUX 7.0 cc rejects these. */
16909 ++pcpcc;
16910 ppc = (char**) pcpcc;
16911 pcpcc = (char const *const *) ppc;
b0322a85
CE
16912 { /* SCO 3.2v4 cc rejects this sort of thing. */
16913 char tx;
16914 char *t = &tx;
8d138742 16915 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 16916
8d138742
CE
16917 *t++ = 0;
16918 if (s) return 0;
16919 }
16920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16921 int x[] = {25, 17};
16922 const int *foo = &x[0];
16923 ++foo;
16924 }
16925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16926 typedef const int *iptr;
16927 iptr p = 0;
16928 ++p;
16929 }
b0322a85 16930 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 16931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
16932 struct s { int j; const int *ap[3]; } bx;
16933 struct s *b = &bx; b->j = 5;
8d138742
CE
16934 }
16935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16936 const int foo = 10;
16937 if (!foo) return 0;
16938 }
b0322a85
CE
16939 return !cs[0] && !zero.x;
16940#endif
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
16947 ac_cv_c_const=yes
16948else
b0322a85 16949 ac_cv_c_const=no
8d138742 16950fi
8d138742
CE
16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952fi
b0322a85 16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
16954$as_echo "$ac_cv_c_const" >&6; }
16955if test $ac_cv_c_const = no; then
d9898ee8 16956
b0322a85
CE
16957$as_echo "#define const /**/" >>confdefs.h
16958
16959fi
16960
16961ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16962if test "x$ac_cv_type_size_t" = xyes; then :
16963
16964else
16965
16966cat >>confdefs.h <<_ACEOF
16967#define size_t unsigned int
8d138742 16968_ACEOF
d9898ee8 16969
8d138742 16970fi
d9898ee8 16971
b0322a85
CE
16972# Check whether --enable-largefile was given.
16973if test "${enable_largefile+set}" = set; then :
16974 enableval=$enable_largefile;
16975fi
16976
16977if test "$enable_largefile" != no; then
16978
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16980$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16981if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742
CE
16982 $as_echo_n "(cached) " >&6
16983else
b0322a85
CE
16984 ac_cv_sys_largefile_CC=no
16985 if test "$GCC" != yes; then
16986 ac_save_CC=$CC
16987 while :; do
16988 # IRIX 6.2 and later do not support large files by default,
16989 # so use the C compiler's -n32 option if that helps.
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16991/* end confdefs.h. */
b0322a85
CE
16992#include <sys/types.h>
16993 /* Check that off_t can represent 2**63 - 1 correctly.
16994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16995 since some C++ compilers masquerading as C compilers
16996 incorrectly reject 9223372036854775807. */
16997#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16999 && LARGE_OFF_T % 2147483647 == 1)
17000 ? 1 : -1];
8d138742
CE
17001int
17002main ()
17003{
b0322a85 17004
8d138742
CE
17005 ;
17006 return 0;
17007}
17008_ACEOF
b0322a85
CE
17009 if ac_fn_c_try_compile "$LINENO"; then :
17010 break
17011fi
17012rm -f core conftest.err conftest.$ac_objext
17013 CC="$CC -n32"
17014 if ac_fn_c_try_compile "$LINENO"; then :
17015 ac_cv_sys_largefile_CC=' -n32'; break
17016fi
17017rm -f core conftest.err conftest.$ac_objext
17018 break
17019 done
17020 CC=$ac_save_CC
17021 rm -f conftest.$ac_ext
17022 fi
17023fi
17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17025$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17026 if test "$ac_cv_sys_largefile_CC" != no; then
17027 CC=$CC$ac_cv_sys_largefile_CC
17028 fi
17029
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17031$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17032if ${ac_cv_sys_file_offset_bits+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034else
17035 while :; do
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h. */
17038#include <sys/types.h>
17039 /* Check that off_t can represent 2**63 - 1 correctly.
17040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17041 since some C++ compilers masquerading as C compilers
17042 incorrectly reject 9223372036854775807. */
17043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17045 && LARGE_OFF_T % 2147483647 == 1)
17046 ? 1 : -1];
17047int
17048main ()
17049{
17050
17051 ;
17052 return 0;
17053}
8d138742 17054_ACEOF
b0322a85
CE
17055if ac_fn_c_try_compile "$LINENO"; then :
17056 ac_cv_sys_file_offset_bits=no; break
17057fi
17058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 17060/* end confdefs.h. */
b0322a85
CE
17061#define _FILE_OFFSET_BITS 64
17062#include <sys/types.h>
17063 /* Check that off_t can represent 2**63 - 1 correctly.
17064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17065 since some C++ compilers masquerading as C compilers
17066 incorrectly reject 9223372036854775807. */
17067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17069 && LARGE_OFF_T % 2147483647 == 1)
17070 ? 1 : -1];
8d138742
CE
17071int
17072main ()
17073{
b0322a85 17074
8d138742
CE
17075 ;
17076 return 0;
17077}
17078_ACEOF
b0322a85
CE
17079if ac_fn_c_try_compile "$LINENO"; then :
17080 ac_cv_sys_file_offset_bits=64; break
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 ac_cv_sys_file_offset_bits=unknown
17084 break
17085done
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17088$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17089case $ac_cv_sys_file_offset_bits in #(
17090 no | unknown) ;;
17091 *)
17092cat >>confdefs.h <<_ACEOF
17093#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17094_ACEOF
17095;;
8d138742 17096esac
b0322a85
CE
17097rm -rf conftest*
17098 if test $ac_cv_sys_file_offset_bits = unknown; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17100$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17101if ${ac_cv_sys_large_files+:} false; then :
17102 $as_echo_n "(cached) " >&6
8d138742 17103else
b0322a85
CE
17104 while :; do
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106/* end confdefs.h. */
17107#include <sys/types.h>
17108 /* Check that off_t can represent 2**63 - 1 correctly.
17109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17110 since some C++ compilers masquerading as C compilers
17111 incorrectly reject 9223372036854775807. */
17112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17114 && LARGE_OFF_T % 2147483647 == 1)
17115 ? 1 : -1];
17116int
17117main ()
17118{
d9898ee8 17119
b0322a85
CE
17120 ;
17121 return 0;
17122}
17123_ACEOF
17124if ac_fn_c_try_compile "$LINENO"; then :
17125 ac_cv_sys_large_files=no; break
8d138742 17126fi
8d138742 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h. */
17130#define _LARGE_FILES 1
17131#include <sys/types.h>
17132 /* Check that off_t can represent 2**63 - 1 correctly.
17133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17134 since some C++ compilers masquerading as C compilers
17135 incorrectly reject 9223372036854775807. */
17136#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17138 && LARGE_OFF_T % 2147483647 == 1)
17139 ? 1 : -1];
17140int
17141main ()
17142{
d9898ee8 17143
b0322a85
CE
17144 ;
17145 return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_compile "$LINENO"; then :
17149 ac_cv_sys_large_files=1; break
d9898ee8 17150fi
8d138742 17151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
17152 ac_cv_sys_large_files=unknown
17153 break
17154done
8d138742 17155fi
b0322a85
CE
17156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17157$as_echo "$ac_cv_sys_large_files" >&6; }
17158case $ac_cv_sys_large_files in #(
17159 no | unknown) ;;
17160 *)
8d138742 17161cat >>confdefs.h <<_ACEOF
b0322a85 17162#define _LARGE_FILES $ac_cv_sys_large_files
8d138742 17163_ACEOF
b0322a85
CE
17164;;
17165esac
17166rm -rf conftest*
17167 fi
d9898ee8 17168
d9898ee8 17169
b0322a85 17170fi
d9898ee8 17171
17172
8d138742
CE
17173ac_ext=cpp
17174ac_cpp='$CXXCPP $CPPFLAGS'
17175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 17178
b0322a85 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler needs -fhandle-exceptions" >&5
8d138742 17180$as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
b0322a85 17181if ${ac_cv_need_handlexceptions+:} false; then :
8d138742
CE
17182 $as_echo_n "(cached) " >&6
17183else
b0322a85 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 17185/* end confdefs.h. */
d9898ee8 17186
8d138742
CE
17187int
17188main ()
17189{
d9898ee8 17190
8d138742 17191throw;
d9898ee8 17192
8d138742
CE
17193 ;
17194 return 0;
17195}
17196_ACEOF
b0322a85 17197if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
17198 ac_cv_need_handlexceptions=no
17199else
b0322a85 17200 ac_cv_need_handlexceptions=yes
8d138742 17201fi
8d138742 17202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 17203
8d138742 17204fi
b0322a85 17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_handlexceptions" >&5
8d138742 17206$as_echo "$ac_cv_need_handlexceptions" >&6; }
d9898ee8 17207
8d138742
CE
17208if test "$ac_cv_need_handlexceptions" = "yes"
17209then
17210 case "$CXXFLAGS" in
17211 *handle-exceptions*)
17212 ;;
17213 *)
17214 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
17215 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
17216 ;;
17217 esac
17218fi
d9898ee8 17219
b0322a85
CE
17220if test "$GCC" = "yes"
17221then
17222 CFLAGS="-Wall $CFLAGS"
17223fi
17224
8d138742 17225ac_config_files="$ac_config_files Makefile"
d9898ee8 17226
8d138742
CE
17227cat >confcache <<\_ACEOF
17228# This file is a shell script that caches the results of configure
17229# tests run on this system so they can be shared between configure
17230# scripts and configure runs, see configure's option --config-cache.
17231# It is not useful on other systems. If it contains results you don't
17232# want to keep, you may remove or edit it.
17233#
17234# config.status only pays attention to the cache file if you give it
17235# the --recheck option to rerun configure.
17236#
17237# `ac_cv_env_foo' variables (set or unset) will be overridden when
17238# loading this file, other *unset* `ac_cv_foo' will be assigned the
17239# following values.
d9898ee8 17240
8d138742 17241_ACEOF
d9898ee8 17242
8d138742
CE
17243# The following way of writing the cache mishandles newlines in values,
17244# but we know of no workaround that is simple, portable, and efficient.
17245# So, we kill variables containing newlines.
17246# Ultrix sh set writes to stderr and can't be redirected directly,
17247# and sets the high bit in the cache file unless we assign to the vars.
17248(
17249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17250 eval ac_val=\$$ac_var
17251 case $ac_val in #(
17252 *${as_nl}*)
17253 case $ac_var in #(
b0322a85 17254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
17255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17256 esac
17257 case $ac_var in #(
17258 _ | IFS | as_nl) ;; #(
17259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 17260 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742 17261 esac ;;
d9898ee8 17262 esac
17263 done
17264
8d138742
CE
17265 (set) 2>&1 |
17266 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17267 *${as_nl}ac_space=\ *)
b0322a85
CE
17268 # `set' does not quote correctly, so add quotes: double-quote
17269 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
17270 sed -n \
17271 "s/'/'\\\\''/g;
17272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17273 ;; #(
17274 *)
17275 # `set' quotes correctly as required by POSIX, so do not add quotes.
17276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17277 ;;
17278 esac |
17279 sort
17280) |
17281 sed '
17282 /^ac_cv_env_/b end
17283 t clear
17284 :clear
17285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17286 t end
17287 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17288 :end' >>confcache
17289if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17290 if test -w "$cache_file"; then
b0322a85
CE
17291 if test "x$cache_file" != "x/dev/null"; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 17293$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
17294 if test ! -f "$cache_file" || test -h "$cache_file"; then
17295 cat confcache >"$cache_file"
17296 else
17297 case $cache_file in #(
17298 */* | ?:*)
17299 mv -f confcache "$cache_file"$$ &&
17300 mv -f "$cache_file"$$ "$cache_file" ;; #(
17301 *)
17302 mv -f confcache "$cache_file" ;;
17303 esac
17304 fi
17305 fi
8d138742 17306 else
b0322a85 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
17308$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17309 fi
17310fi
17311rm -f confcache
d9898ee8 17312
8d138742
CE
17313test "x$prefix" = xNONE && prefix=$ac_default_prefix
17314# Let make expand exec_prefix.
17315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 17316
8d138742 17317DEFS=-DHAVE_CONFIG_H
d9898ee8 17318
8d138742
CE
17319ac_libobjs=
17320ac_ltlibobjs=
d50284c4 17321U=
8d138742
CE
17322for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17323 # 1. Remove the extension, and $U if already installed.
17324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17325 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17327 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
17328 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17329 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
17330done
17331LIBOBJS=$ac_libobjs
d9898ee8 17332
8d138742 17333LTLIBOBJS=$ac_ltlibobjs
d9898ee8 17334
d9898ee8 17335
b0322a85
CE
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17337$as_echo_n "checking that generated files are newer than configure... " >&6; }
17338 if test -n "$am_sleep_pid"; then
17339 # Hide warnings about reused PIDs.
17340 wait $am_sleep_pid 2>/dev/null
17341 fi
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17343$as_echo "done" >&6; }
8d138742
CE
17344 if test -n "$EXEEXT"; then
17345 am__EXEEXT_TRUE=
17346 am__EXEEXT_FALSE='#'
17347else
17348 am__EXEEXT_TRUE='#'
17349 am__EXEEXT_FALSE=
17350fi
d9898ee8 17351
8d138742 17352if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
17353 as_fn_error $? "conditional \"AMDEP\" was never defined.
17354Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
17355fi
17356if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
17357 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17358Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
17359fi
17360if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
17361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17362Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
17363fi
17364if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
b0322a85
CE
17365 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17366Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 17367fi
b0322a85
CE
17368if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
17369 as_fn_error $? "conditional \"FOUND_DB\" was never defined.
17370Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 17371fi
d9898ee8 17372
b0322a85 17373: "${CONFIG_STATUS=./config.status}"
8d138742
CE
17374ac_write_fail=0
17375ac_clean_files_save=$ac_clean_files
17376ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 17378$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
17379as_write_fail=0
17380cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
17381#! $SHELL
17382# Generated by $as_me.
17383# Run this file to recreate the current configuration.
17384# Compiler output produced by configure, useful for debugging
17385# configure, is in config.log if it exists.
d9898ee8 17386
8d138742
CE
17387debug=false
17388ac_cs_recheck=false
17389ac_cs_silent=false
d9898ee8 17390
b0322a85
CE
17391SHELL=\${CONFIG_SHELL-$SHELL}
17392export SHELL
17393_ASEOF
17394cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17395## -------------------- ##
17396## M4sh Initialization. ##
17397## -------------------- ##
d9898ee8 17398
8d138742
CE
17399# Be more Bourne compatible
17400DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 17401if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
17402 emulate sh
17403 NULLCMD=:
17404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17405 # is contrary to our usage. Disable this feature.
17406 alias -g '${1+"$@"}'='"$@"'
17407 setopt NO_GLOB_SUBST
17408else
b0322a85
CE
17409 case `(set -o) 2>/dev/null` in #(
17410 *posix*) :
17411 set -o posix ;; #(
17412 *) :
17413 ;;
8d138742 17414esac
8d138742 17415fi
d9898ee8 17416
d9898ee8 17417
8d138742
CE
17418as_nl='
17419'
17420export as_nl
17421# Printing a long string crashes Solaris 7 /usr/bin/printf.
17422as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17424as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
17425# Prefer a ksh shell builtin over an external printf program on Solaris,
17426# but without wasting forks for bash or zsh.
17427if test -z "$BASH_VERSION$ZSH_VERSION" \
17428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17429 as_echo='print -r --'
17430 as_echo_n='print -rn --'
17431elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
17432 as_echo='printf %s\n'
17433 as_echo_n='printf %s'
17434else
17435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17437 as_echo_n='/usr/ucb/echo -n'
17438 else
17439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17440 as_echo_n_body='eval
17441 arg=$1;
b0322a85 17442 case $arg in #(
8d138742
CE
17443 *"$as_nl"*)
17444 expr "X$arg" : "X\\(.*\\)$as_nl";
17445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17446 esac;
17447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17448 '
17449 export as_echo_n_body
17450 as_echo_n='sh -c $as_echo_n_body as_echo'
17451 fi
17452 export as_echo_body
17453 as_echo='sh -c $as_echo_body as_echo'
17454fi
d9898ee8 17455
8d138742
CE
17456# The user is always right.
17457if test "${PATH_SEPARATOR+set}" != set; then
17458 PATH_SEPARATOR=:
17459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17461 PATH_SEPARATOR=';'
17462 }
17463fi
d9898ee8 17464
d9898ee8 17465
8d138742
CE
17466# IFS
17467# We need space, tab and new line, in precisely that order. Quoting is
17468# there to prevent editors from complaining about space-tab.
17469# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17470# splitting by setting IFS to empty value.)
17471IFS=" "" $as_nl"
d9898ee8 17472
8d138742 17473# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
17474as_myself=
17475case $0 in #((
8d138742
CE
17476 *[\\/]* ) as_myself=$0 ;;
17477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17478for as_dir in $PATH
17479do
17480 IFS=$as_save_IFS
17481 test -z "$as_dir" && as_dir=.
b0322a85
CE
17482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17483 done
8d138742 17484IFS=$as_save_IFS
d9898ee8 17485
8d138742
CE
17486 ;;
17487esac
17488# We did not find ourselves, most probably we were run as `sh COMMAND'
17489# in which case we are not to be found in the path.
17490if test "x$as_myself" = x; then
17491 as_myself=$0
17492fi
17493if test ! -f "$as_myself"; then
17494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 17495 exit 1
8d138742 17496fi
d9898ee8 17497
b0322a85
CE
17498# Unset variables that we do not need and which cause bugs (e.g. in
17499# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17500# suppresses any "Segmentation fault" message there. '((' could
17501# trigger a bug in pdksh 5.2.14.
17502for as_var in BASH_ENV ENV MAIL MAILPATH
17503do eval test x\${$as_var+set} = xset \
17504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
17505done
17506PS1='$ '
17507PS2='> '
17508PS4='+ '
d9898ee8 17509
8d138742
CE
17510# NLS nuisances.
17511LC_ALL=C
17512export LC_ALL
17513LANGUAGE=C
17514export LANGUAGE
d9898ee8 17515
b0322a85
CE
17516# CDPATH.
17517(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17518
17519
17520# as_fn_error STATUS ERROR [LINENO LOG_FD]
17521# ----------------------------------------
17522# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17523# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17524# script with STATUS, using 1 if that was 0.
17525as_fn_error ()
17526{
17527 as_status=$1; test $as_status -eq 0 && as_status=1
17528 if test "$4"; then
17529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17531 fi
17532 $as_echo "$as_me: error: $2" >&2
17533 as_fn_exit $as_status
17534} # as_fn_error
17535
17536
17537# as_fn_set_status STATUS
17538# -----------------------
17539# Set $? to STATUS, without forking.
17540as_fn_set_status ()
17541{
17542 return $1
17543} # as_fn_set_status
17544
17545# as_fn_exit STATUS
17546# -----------------
17547# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17548as_fn_exit ()
17549{
17550 set +e
17551 as_fn_set_status $1
17552 exit $1
17553} # as_fn_exit
17554
17555# as_fn_unset VAR
17556# ---------------
17557# Portably unset VAR.
17558as_fn_unset ()
17559{
17560 { eval $1=; unset $1;}
17561}
17562as_unset=as_fn_unset
17563# as_fn_append VAR VALUE
17564# ----------------------
17565# Append the text in VALUE to the end of the definition contained in VAR. Take
17566# advantage of any shell optimizations that allow amortized linear growth over
17567# repeated appends, instead of the typical quadratic growth present in naive
17568# implementations.
17569if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17570 eval 'as_fn_append ()
17571 {
17572 eval $1+=\$2
17573 }'
17574else
17575 as_fn_append ()
17576 {
17577 eval $1=\$$1\$2
17578 }
17579fi # as_fn_append
17580
17581# as_fn_arith ARG...
17582# ------------------
17583# Perform arithmetic evaluation on the ARGs, and store the result in the
17584# global $as_val. Take advantage of shells that can avoid forks. The arguments
17585# must be portable across $(()) and expr.
17586if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17587 eval 'as_fn_arith ()
17588 {
17589 as_val=$(( $* ))
17590 }'
17591else
17592 as_fn_arith ()
17593 {
17594 as_val=`expr "$@" || test $? -eq 1`
17595 }
17596fi # as_fn_arith
17597
17598
8d138742
CE
17599if expr a : '\(a\)' >/dev/null 2>&1 &&
17600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17601 as_expr=expr
17602else
17603 as_expr=false
17604fi
d9898ee8 17605
8d138742
CE
17606if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17607 as_basename=basename
17608else
17609 as_basename=false
17610fi
d9898ee8 17611
b0322a85
CE
17612if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17613 as_dirname=dirname
17614else
17615 as_dirname=false
17616fi
d9898ee8 17617
8d138742
CE
17618as_me=`$as_basename -- "$0" ||
17619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17620 X"$0" : 'X\(//\)$' \| \
17621 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17622$as_echo X/"$0" |
17623 sed '/^.*\/\([^/][^/]*\)\/*$/{
17624 s//\1/
17625 q
17626 }
17627 /^X\/\(\/\/\)$/{
17628 s//\1/
17629 q
17630 }
17631 /^X\/\(\/\).*/{
17632 s//\1/
17633 q
17634 }
17635 s/.*/./; q'`
d9898ee8 17636
b0322a85
CE
17637# Avoid depending upon Character Ranges.
17638as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17640as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17641as_cr_digits='0123456789'
17642as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 17643
8d138742 17644ECHO_C= ECHO_N= ECHO_T=
b0322a85 17645case `echo -n x` in #(((((
8d138742 17646-n*)
b0322a85 17647 case `echo 'xy\c'` in
8d138742 17648 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
17649 xy) ECHO_C='\c';;
17650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17651 ECHO_T=' ';;
8d138742
CE
17652 esac;;
17653*)
17654 ECHO_N='-n';;
17655esac
d9898ee8 17656
8d138742
CE
17657rm -f conf$$ conf$$.exe conf$$.file
17658if test -d conf$$.dir; then
17659 rm -f conf$$.dir/conf$$.file
17660else
17661 rm -f conf$$.dir
17662 mkdir conf$$.dir 2>/dev/null
17663fi
17664if (echo >conf$$.file) 2>/dev/null; then
17665 if ln -s conf$$.file conf$$ 2>/dev/null; then
17666 as_ln_s='ln -s'
17667 # ... but there are two gotchas:
17668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 17670 # In both cases, we have to default to `cp -pR'.
8d138742 17671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 17672 as_ln_s='cp -pR'
8d138742
CE
17673 elif ln conf$$.file conf$$ 2>/dev/null; then
17674 as_ln_s=ln
17675 else
b0322a85 17676 as_ln_s='cp -pR'
8d138742
CE
17677 fi
17678else
b0322a85 17679 as_ln_s='cp -pR'
8d138742
CE
17680fi
17681rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17682rmdir conf$$.dir 2>/dev/null
d9898ee8 17683
b0322a85
CE
17684
17685# as_fn_mkdir_p
17686# -------------
17687# Create "$as_dir" as a directory, including parents if necessary.
17688as_fn_mkdir_p ()
17689{
17690
17691 case $as_dir in #(
17692 -*) as_dir=./$as_dir;;
17693 esac
17694 test -d "$as_dir" || eval $as_mkdir_p || {
17695 as_dirs=
17696 while :; do
17697 case $as_dir in #(
17698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17699 *) as_qdir=$as_dir;;
17700 esac
17701 as_dirs="'$as_qdir' $as_dirs"
17702 as_dir=`$as_dirname -- "$as_dir" ||
17703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17704 X"$as_dir" : 'X\(//\)[^/]' \| \
17705 X"$as_dir" : 'X\(//\)$' \| \
17706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17707$as_echo X"$as_dir" |
17708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17709 s//\1/
17710 q
17711 }
17712 /^X\(\/\/\)[^/].*/{
17713 s//\1/
17714 q
17715 }
17716 /^X\(\/\/\)$/{
17717 s//\1/
17718 q
17719 }
17720 /^X\(\/\).*/{
17721 s//\1/
17722 q
17723 }
17724 s/.*/./; q'`
17725 test -d "$as_dir" && break
17726 done
17727 test -z "$as_dirs" || eval "mkdir $as_dirs"
17728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17729
17730
17731} # as_fn_mkdir_p
8d138742 17732if mkdir -p . 2>/dev/null; then
b0322a85 17733 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
17734else
17735 test -d ./-p && rmdir ./-p
17736 as_mkdir_p=false
17737fi
d9898ee8 17738
b0322a85
CE
17739
17740# as_fn_executable_p FILE
17741# -----------------------
17742# Test if FILE is an executable regular file.
17743as_fn_executable_p ()
17744{
17745 test -f "$1" && test -x "$1"
17746} # as_fn_executable_p
17747as_test_x='test -x'
17748as_executable_p=as_fn_executable_p
d9898ee8 17749
8d138742
CE
17750# Sed expression to map a string onto a valid CPP name.
17751as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17752
8d138742
CE
17753# Sed expression to map a string onto a valid variable name.
17754as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17755
d9898ee8 17756
8d138742 17757exec 6>&1
b0322a85
CE
17758## ----------------------------------- ##
17759## Main body of $CONFIG_STATUS script. ##
17760## ----------------------------------- ##
17761_ASEOF
17762test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 17763
b0322a85
CE
17764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
17766# report actual input values of CONFIG_FILES etc. instead of their
17767# values after options handling.
17768ac_log="
b0322a85
CE
17769This file was extended by bdbobj $as_me 0.10, which was
17770generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 17771
8d138742
CE
17772 CONFIG_FILES = $CONFIG_FILES
17773 CONFIG_HEADERS = $CONFIG_HEADERS
17774 CONFIG_LINKS = $CONFIG_LINKS
17775 CONFIG_COMMANDS = $CONFIG_COMMANDS
17776 $ $0 $@
d9898ee8 17777
8d138742
CE
17778on `(hostname || uname -n) 2>/dev/null | sed 1q`
17779"
d9898ee8 17780
8d138742 17781_ACEOF
d9898ee8 17782
8d138742
CE
17783case $ac_config_files in *"
17784"*) set x $ac_config_files; shift; ac_config_files=$*;;
17785esac
d9898ee8 17786
8d138742
CE
17787case $ac_config_headers in *"
17788"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17789esac
d9898ee8 17790
d9898ee8 17791
8d138742
CE
17792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793# Files that config.status was made for.
17794config_files="$ac_config_files"
17795config_headers="$ac_config_headers"
17796config_commands="$ac_config_commands"
d9898ee8 17797
8d138742 17798_ACEOF
d9898ee8 17799
8d138742
CE
17800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801ac_cs_usage="\
b0322a85
CE
17802\`$as_me' instantiates files and other configuration actions
17803from templates according to the current configuration. Unless the files
17804and actions are specified as TAGs, all are instantiated by default.
d9898ee8 17805
b0322a85 17806Usage: $0 [OPTION]... [TAG]...
d9898ee8 17807
8d138742
CE
17808 -h, --help print this help, then exit
17809 -V, --version print version number and configuration settings, then exit
b0322a85 17810 --config print configuration, then exit
8d138742
CE
17811 -q, --quiet, --silent
17812 do not print progress messages
17813 -d, --debug don't remove temporary files
17814 --recheck update $as_me by reconfiguring in the same conditions
17815 --file=FILE[:TEMPLATE]
17816 instantiate the configuration file FILE
17817 --header=FILE[:TEMPLATE]
17818 instantiate the configuration header FILE
d9898ee8 17819
8d138742
CE
17820Configuration files:
17821$config_files
d9898ee8 17822
8d138742
CE
17823Configuration headers:
17824$config_headers
d9898ee8 17825
8d138742
CE
17826Configuration commands:
17827$config_commands
d9898ee8 17828
b0322a85 17829Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 17830
8d138742
CE
17831_ACEOF
17832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 17833ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742 17834ac_cs_version="\\
b0322a85
CE
17835bdbobj config.status 0.10
17836configured by $0, generated by GNU Autoconf 2.69,
17837 with options \\"\$ac_cs_config\\"
d9898ee8 17838
b0322a85 17839Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
17840This config.status script is free software; the Free Software Foundation
17841gives unlimited permission to copy, distribute and modify it."
d9898ee8 17842
8d138742
CE
17843ac_pwd='$ac_pwd'
17844srcdir='$srcdir'
17845INSTALL='$INSTALL'
17846MKDIR_P='$MKDIR_P'
17847AWK='$AWK'
17848test -n "\$AWK" || AWK=awk
17849_ACEOF
d9898ee8 17850
8d138742
CE
17851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852# The default lists apply if the user does not specify any file.
17853ac_need_defaults=:
17854while test $# != 0
17855do
17856 case $1 in
b0322a85 17857 --*=?*)
8d138742
CE
17858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17860 ac_shift=:
17861 ;;
b0322a85
CE
17862 --*=)
17863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17864 ac_optarg=
17865 ac_shift=:
17866 ;;
8d138742
CE
17867 *)
17868 ac_option=$1
17869 ac_optarg=$2
17870 ac_shift=shift
17871 ;;
17872 esac
d9898ee8 17873
8d138742
CE
17874 case $ac_option in
17875 # Handling of the options.
17876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17877 ac_cs_recheck=: ;;
17878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17879 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
17880 --config | --confi | --conf | --con | --co | --c )
17881 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
17882 --debug | --debu | --deb | --de | --d | -d )
17883 debug=: ;;
17884 --file | --fil | --fi | --f )
17885 $ac_shift
17886 case $ac_optarg in
17887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 17888 '') as_fn_error $? "missing file argument" ;;
8d138742 17889 esac
b0322a85 17890 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
17891 ac_need_defaults=false;;
17892 --header | --heade | --head | --hea )
17893 $ac_shift
17894 case $ac_optarg in
17895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17896 esac
b0322a85 17897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
17898 ac_need_defaults=false;;
17899 --he | --h)
17900 # Conflict between --help and --header
b0322a85
CE
17901 as_fn_error $? "ambiguous option: \`$1'
17902Try \`$0 --help' for more information.";;
8d138742
CE
17903 --help | --hel | -h )
17904 $as_echo "$ac_cs_usage"; exit ;;
17905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17907 ac_cs_silent=: ;;
d9898ee8 17908
8d138742 17909 # This is an error.
b0322a85
CE
17910 -*) as_fn_error $? "unrecognized option: \`$1'
17911Try \`$0 --help' for more information." ;;
d9898ee8 17912
b0322a85 17913 *) as_fn_append ac_config_targets " $1"
8d138742 17914 ac_need_defaults=false ;;
d9898ee8 17915
8d138742
CE
17916 esac
17917 shift
17918done
d9898ee8 17919
8d138742 17920ac_configure_extra_args=
d9898ee8 17921
8d138742
CE
17922if $ac_cs_silent; then
17923 exec 6>/dev/null
17924 ac_configure_extra_args="$ac_configure_extra_args --silent"
17925fi
d9898ee8 17926
8d138742
CE
17927_ACEOF
17928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17929if \$ac_cs_recheck; then
b0322a85 17930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
17931 shift
17932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17933 CONFIG_SHELL='$SHELL'
17934 export CONFIG_SHELL
17935 exec "\$@"
17936fi
d9898ee8 17937
8d138742
CE
17938_ACEOF
17939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17940exec 5>>config.log
17941{
17942 echo
17943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17944## Running $as_me. ##
17945_ASBOX
17946 $as_echo "$ac_log"
17947} >&5
d9898ee8 17948
8d138742
CE
17949_ACEOF
17950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17951#
17952# INIT-COMMANDS
17953#
17954AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 17955
d9898ee8 17956
8d138742
CE
17957# The HP-UX ksh and POSIX shell print the target directory to stdout
17958# if CDPATH is set.
17959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 17960
8d138742
CE
17961sed_quote_subst='$sed_quote_subst'
17962double_quote_subst='$double_quote_subst'
17963delay_variable_subst='$delay_variable_subst'
b0322a85
CE
17964macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17965macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17966enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17967enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17968pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17969enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
d50284c4 17970shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
17971SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17972ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17973PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17974host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17975host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17976host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17977build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17978build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17979build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17980SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17981Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17982GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17983EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17984FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17985LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17986NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17987LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17988max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17989ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17990exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17991lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17992lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17993lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17994lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17995lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17996reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17997reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17998OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17999deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18000file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18001file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18002want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18003DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18004sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18005AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18006AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18007archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18008STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18009RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18010old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18011old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18012old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18013lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18014CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18015CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18016compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18017GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18018lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18019lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
d50284c4 18020lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
18021lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18022lt_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"`'
d50284c4 18023lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
18024nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18025lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
d50284c4 18026lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
18027objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18028MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18029lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18030lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18031lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18032lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18033lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18034need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18035MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18036DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18037NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18038LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18039OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18040OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18041libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18042shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18043extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18044archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18045enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18046export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18047whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18048compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18049old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18050old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18051archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18052archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18053module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18054module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18055with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18056allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18057no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18058hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18059hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18060hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18061hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18062hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18063hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18064hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18065inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18066link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18067always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18068export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18069exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18070include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18071prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18072postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18073file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18074variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18075need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18076need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18077version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18078runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18079shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18080shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18081libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18082library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18083soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18084install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18085postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18086postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18087finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18088finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18089hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18090sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
d50284c4
CE
18091configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18092configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
18093hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18094enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18095enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18096enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18097old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18098striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18099compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18100predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18101postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18102predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18103postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18104compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18105LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18106reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18107reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18108old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18109compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18110GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18111lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18112lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18113lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18114lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18115lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18116archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18117enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18118export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18119whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18120compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18121old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18124archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18125module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18126module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18127with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18128allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18129no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18130hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18131hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18132hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18133hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18134hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18135hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18136hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18137inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18138link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18139always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18140export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18142include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18143prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18144postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18145file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18146hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18147compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18148predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18149postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18150predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18151postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18152compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
8d138742
CE
18153
18154LTCC='$LTCC'
18155LTCFLAGS='$LTCFLAGS'
18156compiler='$compiler_DEFAULT'
18157
b0322a85
CE
18158# A function that is used when there is no print builtin or printf.
18159func_fallback_echo ()
18160{
18161 eval 'cat <<_LTECHO_EOF
18162\$1
18163_LTECHO_EOF'
18164}
18165
8d138742 18166# Quote evaled strings.
b0322a85
CE
18167for var in SHELL \
18168ECHO \
18169PATH_SEPARATOR \
18170SED \
8d138742
CE
18171GREP \
18172EGREP \
18173FGREP \
18174LD \
18175NM \
18176LN_S \
18177lt_SP2NL \
18178lt_NL2SP \
18179reload_flag \
18180OBJDUMP \
18181deplibs_check_method \
18182file_magic_cmd \
b0322a85
CE
18183file_magic_glob \
18184want_nocaseglob \
18185DLLTOOL \
18186sharedlib_from_linklib_cmd \
8d138742
CE
18187AR \
18188AR_FLAGS \
b0322a85 18189archiver_list_spec \
8d138742
CE
18190STRIP \
18191RANLIB \
18192CC \
18193CFLAGS \
18194compiler \
18195lt_cv_sys_global_symbol_pipe \
18196lt_cv_sys_global_symbol_to_cdecl \
d50284c4 18197lt_cv_sys_global_symbol_to_import \
8d138742
CE
18198lt_cv_sys_global_symbol_to_c_name_address \
18199lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d50284c4 18200lt_cv_nm_interface \
b0322a85 18201nm_file_list_spec \
d50284c4 18202lt_cv_truncate_bin \
8d138742 18203lt_prog_compiler_no_builtin_flag \
8d138742 18204lt_prog_compiler_pic \
b0322a85 18205lt_prog_compiler_wl \
8d138742
CE
18206lt_prog_compiler_static \
18207lt_cv_prog_compiler_c_o \
18208need_locks \
b0322a85 18209MANIFEST_TOOL \
8d138742
CE
18210DSYMUTIL \
18211NMEDIT \
18212LIPO \
18213OTOOL \
18214OTOOL64 \
18215shrext_cmds \
18216export_dynamic_flag_spec \
18217whole_archive_flag_spec \
18218compiler_needs_object \
18219with_gnu_ld \
18220allow_undefined_flag \
18221no_undefined_flag \
18222hardcode_libdir_flag_spec \
8d138742 18223hardcode_libdir_separator \
8d138742
CE
18224exclude_expsyms \
18225include_expsyms \
18226file_list_spec \
18227variables_saved_for_relink \
18228libname_spec \
18229library_names_spec \
18230soname_spec \
b0322a85 18231install_override_mode \
8d138742
CE
18232finish_eval \
18233old_striplib \
18234striplib \
18235compiler_lib_search_dirs \
18236predep_objects \
18237postdep_objects \
18238predeps \
18239postdeps \
18240compiler_lib_search_path \
18241LD_CXX \
b0322a85 18242reload_flag_CXX \
8d138742
CE
18243compiler_CXX \
18244lt_prog_compiler_no_builtin_flag_CXX \
8d138742 18245lt_prog_compiler_pic_CXX \
b0322a85 18246lt_prog_compiler_wl_CXX \
8d138742
CE
18247lt_prog_compiler_static_CXX \
18248lt_cv_prog_compiler_c_o_CXX \
18249export_dynamic_flag_spec_CXX \
18250whole_archive_flag_spec_CXX \
18251compiler_needs_object_CXX \
18252with_gnu_ld_CXX \
18253allow_undefined_flag_CXX \
18254no_undefined_flag_CXX \
18255hardcode_libdir_flag_spec_CXX \
8d138742 18256hardcode_libdir_separator_CXX \
8d138742
CE
18257exclude_expsyms_CXX \
18258include_expsyms_CXX \
18259file_list_spec_CXX \
18260compiler_lib_search_dirs_CXX \
18261predep_objects_CXX \
18262postdep_objects_CXX \
18263predeps_CXX \
18264postdeps_CXX \
18265compiler_lib_search_path_CXX; do
b0322a85 18266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 18267 *[\\\\\\\`\\"\\\$]*)
d50284c4 18268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
18269 ;;
18270 *)
18271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18272 ;;
18273 esac
18274done
d9898ee8 18275
8d138742
CE
18276# Double-quote double-evaled strings.
18277for var in reload_cmds \
18278old_postinstall_cmds \
18279old_postuninstall_cmds \
18280old_archive_cmds \
18281extract_expsyms_cmds \
18282old_archive_from_new_cmds \
18283old_archive_from_expsyms_cmds \
18284archive_cmds \
18285archive_expsym_cmds \
18286module_cmds \
18287module_expsym_cmds \
18288export_symbols_cmds \
18289prelink_cmds \
b0322a85 18290postlink_cmds \
8d138742
CE
18291postinstall_cmds \
18292postuninstall_cmds \
18293finish_cmds \
18294sys_lib_search_path_spec \
d50284c4
CE
18295configure_time_dlsearch_path \
18296configure_time_lt_sys_library_path \
b0322a85 18297reload_cmds_CXX \
8d138742
CE
18298old_archive_cmds_CXX \
18299old_archive_from_new_cmds_CXX \
18300old_archive_from_expsyms_cmds_CXX \
18301archive_cmds_CXX \
18302archive_expsym_cmds_CXX \
18303module_cmds_CXX \
18304module_expsym_cmds_CXX \
18305export_symbols_cmds_CXX \
b0322a85
CE
18306prelink_cmds_CXX \
18307postlink_cmds_CXX; do
18308 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 18309 *[\\\\\\\`\\"\\\$]*)
d50284c4 18310 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
18311 ;;
18312 *)
18313 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18314 ;;
18315 esac
18316done
d9898ee8 18317
8d138742 18318ac_aux_dir='$ac_aux_dir'
d9898ee8 18319
d50284c4 18320# See if we are running on zsh, and set the options that allow our
8d138742 18321# commands through without removal of \ escapes INIT.
d50284c4 18322if test -n "\${ZSH_VERSION+set}"; then
8d138742
CE
18323 setopt NO_GLOB_SUBST
18324fi
d9898ee8 18325
18326
8d138742
CE
18327 PACKAGE='$PACKAGE'
18328 VERSION='$VERSION'
8d138742
CE
18329 RM='$RM'
18330 ofile='$ofile'
d9898ee8 18331
18332
d9898ee8 18333
d9898ee8 18334
d9898ee8 18335
d9898ee8 18336
8d138742 18337_ACEOF
d9898ee8 18338
8d138742 18339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 18340
8d138742
CE
18341# Handling of arguments.
18342for ac_config_target in $ac_config_targets
18343do
18344 case $ac_config_target in
18345 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18346 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18347 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 18349
b0322a85 18350 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
18351 esac
18352done
d9898ee8 18353
d9898ee8 18354
8d138742
CE
18355# If the user did not use the arguments to specify the items to instantiate,
18356# then the envvar interface is used. Set only those that are not.
18357# We use the long form for the default assignment because of an extremely
18358# bizarre bug on SunOS 4.1.3.
18359if $ac_need_defaults; then
18360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18363fi
d9898ee8 18364
8d138742
CE
18365# Have a temporary directory for convenience. Make it in the build tree
18366# simply because there is no reason against having it here, and in addition,
18367# creating and moving files from /tmp can sometimes cause problems.
18368# Hook for its removal unless debugging.
18369# Note that there is a small window in which the directory will not be cleaned:
18370# after its creation but before its name has been assigned to `$tmp'.
18371$debug ||
18372{
b0322a85 18373 tmp= ac_tmp=
8d138742 18374 trap 'exit_status=$?
b0322a85
CE
18375 : "${ac_tmp:=$tmp}"
18376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 18377' 0
b0322a85 18378 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
18379}
18380# Create a (secure) tmp directory for tmp files.
d9898ee8 18381
8d138742
CE
18382{
18383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 18384 test -d "$tmp"
8d138742
CE
18385} ||
18386{
18387 tmp=./conf$$-$RANDOM
18388 (umask 077 && mkdir "$tmp")
b0322a85
CE
18389} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18390ac_tmp=$tmp
d9898ee8 18391
8d138742
CE
18392# Set up the scripts for CONFIG_FILES section.
18393# No need to generate them if there are no CONFIG_FILES.
18394# This happens for instance with `./config.status config.h'.
18395if test -n "$CONFIG_FILES"; then
d9898ee8 18396
18397
b0322a85
CE
18398ac_cr=`echo X | tr X '\015'`
18399# On cygwin, bash can eat \r inside `` if the user requested igncr.
18400# But we know of no other shell where ac_cr would be empty at this
18401# point, so we can use a bashism as a fallback.
18402if test "x$ac_cr" = x; then
18403 eval ac_cr=\$\'\\r\'
18404fi
8d138742
CE
18405ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18406if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18407 ac_cs_awk_cr='\\r'
18408else
18409 ac_cs_awk_cr=$ac_cr
18410fi
d9898ee8 18411
b0322a85 18412echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8d138742 18413_ACEOF
d9898ee8 18414
18415
8d138742
CE
18416{
18417 echo "cat >conf$$subs.awk <<_ACEOF" &&
18418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18419 echo "_ACEOF"
18420} >conf$$subs.sh ||
b0322a85
CE
18421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18422ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
18423ac_delim='%!_!# '
18424for ac_last_try in false false false false false :; do
18425 . ./conf$$subs.sh ||
b0322a85 18426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 18427
8d138742
CE
18428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18429 if test $ac_delim_n = $ac_delim_num; then
18430 break
18431 elif $ac_last_try; then
b0322a85 18432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
18433 else
18434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18435 fi
18436done
18437rm -f conf$$subs.sh
d9898ee8 18438
8d138742 18439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 18440cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
18441_ACEOF
18442sed -n '
18443h
18444s/^/S["/; s/!.*/"]=/
18445p
18446g
18447s/^[^!]*!//
18448:repl
18449t repl
18450s/'"$ac_delim"'$//
18451t delim
18452:nl
18453h
b0322a85 18454s/\(.\{148\}\)..*/\1/
8d138742
CE
18455t more1
18456s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18457p
18458n
18459b repl
18460:more1
18461s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18462p
18463g
18464s/.\{148\}//
18465t nl
18466:delim
18467h
b0322a85 18468s/\(.\{148\}\)..*/\1/
8d138742
CE
18469t more2
18470s/["\\]/\\&/g; s/^/"/; s/$/"/
18471p
18472b
18473:more2
18474s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18475p
18476g
18477s/.\{148\}//
18478t delim
18479' <conf$$subs.awk | sed '
18480/^[^""]/{
18481 N
18482 s/\n//
18483}
18484' >>$CONFIG_STATUS || ac_write_fail=1
18485rm -f conf$$subs.awk
18486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18487_ACAWK
b0322a85 18488cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
18489 for (key in S) S_is_set[key] = 1
18490 FS = "\a"
d9898ee8 18491
8d138742
CE
18492}
18493{
18494 line = $ 0
18495 nfields = split(line, field, "@")
18496 substed = 0
18497 len = length(field[1])
18498 for (i = 2; i < nfields; i++) {
18499 key = field[i]
18500 keylen = length(key)
18501 if (S_is_set[key]) {
18502 value = S[key]
18503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18504 len += length(value) + length(field[++i])
18505 substed = 1
18506 } else
18507 len += 1 + keylen
18508 }
d9898ee8 18509
8d138742
CE
18510 print line
18511}
d9898ee8 18512
8d138742
CE
18513_ACAWK
18514_ACEOF
18515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18518else
18519 cat
b0322a85
CE
18520fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 18522_ACEOF
d9898ee8 18523
b0322a85
CE
18524# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18525# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
18526# trailing colons and then remove the whole line if VPATH becomes empty
18527# (actually we leave an empty line to preserve line numbers).
18528if test "x$srcdir" = x.; then
b0322a85
CE
18529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18530h
18531s///
18532s/^/:/
18533s/[ ]*$/:/
18534s/:\$(srcdir):/:/g
18535s/:\${srcdir}:/:/g
18536s/:@srcdir@:/:/g
18537s/^:*//
8d138742 18538s/:*$//
b0322a85
CE
18539x
18540s/\(=[ ]*\).*/\1/
18541G
18542s/\n//
8d138742
CE
18543s/^[^=]*=[ ]*$//
18544}'
18545fi
d9898ee8 18546
8d138742
CE
18547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548fi # test -n "$CONFIG_FILES"
d9898ee8 18549
8d138742
CE
18550# Set up the scripts for CONFIG_HEADERS section.
18551# No need to generate them if there are no CONFIG_HEADERS.
18552# This happens for instance with `./config.status Makefile'.
18553if test -n "$CONFIG_HEADERS"; then
b0322a85 18554cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
18555BEGIN {
18556_ACEOF
d9898ee8 18557
8d138742
CE
18558# Transform confdefs.h into an awk script `defines.awk', embedded as
18559# here-document in config.status, that substitutes the proper values into
18560# config.h.in to produce config.h.
d9898ee8 18561
8d138742
CE
18562# Create a delimiter string that does not exist in confdefs.h, to ease
18563# handling of long lines.
18564ac_delim='%!_!# '
18565for ac_last_try in false false :; do
b0322a85
CE
18566 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18567 if test -z "$ac_tt"; then
8d138742
CE
18568 break
18569 elif $ac_last_try; then
b0322a85 18570 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
18571 else
18572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18573 fi
18574done
d9898ee8 18575
8d138742
CE
18576# For the awk script, D is an array of macro values keyed by name,
18577# likewise P contains macro parameters if any. Preserve backslash
18578# newline sequences.
d9898ee8 18579
8d138742
CE
18580ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18581sed -n '
18582s/.\{148\}/&'"$ac_delim"'/g
18583t rset
18584:rset
18585s/^[ ]*#[ ]*define[ ][ ]*/ /
18586t def
18587d
18588:def
18589s/\\$//
18590t bsnl
18591s/["\\]/\\&/g
18592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18593D["\1"]=" \3"/p
18594s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18595d
18596:bsnl
18597s/["\\]/\\&/g
18598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18599D["\1"]=" \3\\\\\\n"\\/p
18600t cont
18601s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18602t cont
18603d
18604:cont
18605n
18606s/.\{148\}/&'"$ac_delim"'/g
18607t clear
18608:clear
18609s/\\$//
18610t bsnlc
18611s/["\\]/\\&/g; s/^/"/; s/$/"/p
18612d
18613:bsnlc
18614s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18615b cont
18616' <confdefs.h | sed '
18617s/'"$ac_delim"'/"\\\
18618"/g' >>$CONFIG_STATUS || ac_write_fail=1
18619
18620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18621 for (key in D) D_is_set[key] = 1
18622 FS = "\a"
18623}
18624/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18625 line = \$ 0
18626 split(line, arg, " ")
18627 if (arg[1] == "#") {
18628 defundef = arg[2]
18629 mac1 = arg[3]
18630 } else {
18631 defundef = substr(arg[1], 2)
18632 mac1 = arg[2]
18633 }
18634 split(mac1, mac2, "(") #)
18635 macro = mac2[1]
18636 prefix = substr(line, 1, index(line, defundef) - 1)
18637 if (D_is_set[macro]) {
18638 # Preserve the white space surrounding the "#".
18639 print prefix "define", macro P[macro] D[macro]
18640 next
18641 } else {
18642 # Replace #undef with comments. This is necessary, for example,
18643 # in the case of _POSIX_SOURCE, which is predefined and required
18644 # on some systems where configure will not decide to define it.
18645 if (defundef == "undef") {
18646 print "/*", prefix defundef, macro, "*/"
18647 next
18648 }
18649 }
18650}
18651{ print }
18652_ACAWK
18653_ACEOF
18654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 18655 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 18656fi # test -n "$CONFIG_HEADERS"
d9898ee8 18657
18658
8d138742
CE
18659eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18660shift
18661for ac_tag
18662do
18663 case $ac_tag in
18664 :[FHLC]) ac_mode=$ac_tag; continue;;
18665 esac
18666 case $ac_mode$ac_tag in
18667 :[FHL]*:*);;
b0322a85 18668 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
18669 :[FH]-) ac_tag=-:-;;
18670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18671 esac
18672 ac_save_IFS=$IFS
18673 IFS=:
18674 set x $ac_tag
18675 IFS=$ac_save_IFS
18676 shift
18677 ac_file=$1
18678 shift
d9898ee8 18679
8d138742
CE
18680 case $ac_mode in
18681 :L) ac_source=$1;;
18682 :[FH])
18683 ac_file_inputs=
18684 for ac_f
18685 do
18686 case $ac_f in
b0322a85 18687 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
18688 *) # Look for the file first in the build tree, then in the source tree
18689 # (if the path is not absolute). The absolute path cannot be DOS-style,
18690 # because $ac_f cannot contain `:'.
18691 test -f "$ac_f" ||
18692 case $ac_f in
18693 [\\/$]*) false;;
18694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18695 esac ||
b0322a85 18696 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
18697 esac
18698 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 18699 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 18700 done
d9898ee8 18701
8d138742
CE
18702 # Let's still pretend it is `configure' which instantiates (i.e., don't
18703 # use $as_me), people would be surprised to read:
18704 # /* config.h. Generated by config.status. */
18705 configure_input='Generated from '`
18706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18707 `' by configure.'
18708 if test x"$ac_file" != x-; then
18709 configure_input="$ac_file. $configure_input"
b0322a85 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
18711$as_echo "$as_me: creating $ac_file" >&6;}
18712 fi
18713 # Neutralize special characters interpreted by sed in replacement strings.
18714 case $configure_input in #(
18715 *\&* | *\|* | *\\* )
18716 ac_sed_conf_input=`$as_echo "$configure_input" |
18717 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18718 *) ac_sed_conf_input=$configure_input;;
18719 esac
d9898ee8 18720
8d138742 18721 case $ac_tag in
b0322a85
CE
18722 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
18724 esac
18725 ;;
18726 esac
dd184caf 18727
8d138742
CE
18728 ac_dir=`$as_dirname -- "$ac_file" ||
18729$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$ac_file" : 'X\(//\)[^/]' \| \
18731 X"$ac_file" : 'X\(//\)$' \| \
18732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18733$as_echo X"$ac_file" |
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\(\/\/\)[^/].*/{
18739 s//\1/
18740 q
18741 }
18742 /^X\(\/\/\)$/{
18743 s//\1/
18744 q
18745 }
18746 /^X\(\/\).*/{
18747 s//\1/
18748 q
18749 }
18750 s/.*/./; q'`
b0322a85 18751 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 18752 ac_builddir=.
d9898ee8 18753
8d138742
CE
18754case "$ac_dir" in
18755.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18756*)
18757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18758 # A ".." for each directory in $ac_dir_suffix.
18759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18760 case $ac_top_builddir_sub in
18761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18763 esac ;;
18764esac
18765ac_abs_top_builddir=$ac_pwd
18766ac_abs_builddir=$ac_pwd$ac_dir_suffix
18767# for backward compatibility:
18768ac_top_builddir=$ac_top_build_prefix
d9898ee8 18769
8d138742
CE
18770case $srcdir in
18771 .) # We are building in place.
18772 ac_srcdir=.
18773 ac_top_srcdir=$ac_top_builddir_sub
18774 ac_abs_top_srcdir=$ac_pwd ;;
18775 [\\/]* | ?:[\\/]* ) # Absolute name.
18776 ac_srcdir=$srcdir$ac_dir_suffix;
18777 ac_top_srcdir=$srcdir
18778 ac_abs_top_srcdir=$srcdir ;;
18779 *) # Relative name.
18780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18781 ac_top_srcdir=$ac_top_build_prefix$srcdir
18782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18783esac
18784ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 18785
d9898ee8 18786
8d138742
CE
18787 case $ac_mode in
18788 :F)
18789 #
18790 # CONFIG_FILE
18791 #
d9898ee8 18792
8d138742
CE
18793 case $INSTALL in
18794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18795 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18796 esac
18797 ac_MKDIR_P=$MKDIR_P
18798 case $MKDIR_P in
18799 [\\/$]* | ?:[\\/]* ) ;;
18800 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18801 esac
18802_ACEOF
d9898ee8 18803
8d138742
CE
18804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805# If the template does not know about datarootdir, expand it.
18806# FIXME: This hack should be removed a few years after 2.60.
18807ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
18808ac_sed_dataroot='
18809/datarootdir/ {
18810 p
18811 q
d9898ee8 18812}
8d138742
CE
18813/@datadir@/p
18814/@docdir@/p
18815/@infodir@/p
18816/@localedir@/p
b0322a85 18817/@mandir@/p'
8d138742
CE
18818case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18819*datarootdir*) ac_datarootdir_seen=yes;;
18820*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 18821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742 18822$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 18823_ACEOF
8d138742
CE
18824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18825 ac_datarootdir_hack='
18826 s&@datadir@&$datadir&g
18827 s&@docdir@&$docdir&g
18828 s&@infodir@&$infodir&g
18829 s&@localedir@&$localedir&g
18830 s&@mandir@&$mandir&g
b0322a85 18831 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 18832esac
8d138742 18833_ACEOF
d9898ee8 18834
8d138742
CE
18835# Neutralize VPATH when `$srcdir' = `.'.
18836# Shell code in configure.ac might set extrasub.
18837# FIXME: do we really want to maintain this feature?
18838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18839ac_sed_extra="$ac_vpsub
18840$extrasub
d9898ee8 18841_ACEOF
8d138742
CE
18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843:t
18844/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18845s|@configure_input@|$ac_sed_conf_input|;t t
18846s&@top_builddir@&$ac_top_builddir_sub&;t t
18847s&@top_build_prefix@&$ac_top_build_prefix&;t t
18848s&@srcdir@&$ac_srcdir&;t t
18849s&@abs_srcdir@&$ac_abs_srcdir&;t t
18850s&@top_srcdir@&$ac_top_srcdir&;t t
18851s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18852s&@builddir@&$ac_builddir&;t t
18853s&@abs_builddir@&$ac_abs_builddir&;t t
18854s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18855s&@INSTALL@&$ac_INSTALL&;t t
18856s&@MKDIR_P@&$ac_MKDIR_P&;t t
18857$ac_datarootdir_hack
18858"
b0322a85
CE
18859eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18860 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 18861
8d138742 18862test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
18863 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18865 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18867which seems to be undefined. Please make sure it is defined" >&5
8d138742 18868$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 18869which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 18870
b0322a85 18871 rm -f "$ac_tmp/stdin"
8d138742 18872 case $ac_file in
b0322a85
CE
18873 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18874 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 18875 esac \
b0322a85 18876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18877 ;;
18878 :H)
18879 #
18880 # CONFIG_HEADER
18881 #
18882 if test x"$ac_file" != x-; then
18883 {
18884 $as_echo "/* $configure_input */" \
b0322a85
CE
18885 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18886 } >"$ac_tmp/config.h" \
18887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18888 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
18890$as_echo "$as_me: $ac_file is unchanged" >&6;}
18891 else
18892 rm -f "$ac_file"
b0322a85
CE
18893 mv "$ac_tmp/config.h" "$ac_file" \
18894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18895 fi
18896 else
18897 $as_echo "/* $configure_input */" \
b0322a85
CE
18898 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18899 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
18900 fi
18901# Compute "$ac_file"'s index in $config_headers.
18902_am_arg="$ac_file"
18903_am_stamp_count=1
18904for _am_header in $config_headers :; do
18905 case $_am_header in
18906 $_am_arg | $_am_arg:* )
18907 break ;;
18908 * )
18909 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18910 esac
18911done
18912echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18913$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914 X"$_am_arg" : 'X\(//\)[^/]' \| \
18915 X"$_am_arg" : 'X\(//\)$' \| \
18916 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18917$as_echo X"$_am_arg" |
18918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18919 s//\1/
18920 q
18921 }
18922 /^X\(\/\/\)[^/].*/{
18923 s//\1/
18924 q
18925 }
18926 /^X\(\/\/\)$/{
18927 s//\1/
18928 q
18929 }
18930 /^X\(\/\).*/{
18931 s//\1/
18932 q
18933 }
18934 s/.*/./; q'`/stamp-h$_am_stamp_count
18935 ;;
d9898ee8 18936
b0322a85 18937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
18938$as_echo "$as_me: executing $ac_file commands" >&6;}
18939 ;;
18940 esac
d9898ee8 18941
d9898ee8 18942
8d138742
CE
18943 case $ac_file$ac_mode in
18944 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 18945 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
18946 # are listed without --file. Let's play safe and only enable the eval
18947 # if we detect the quoting.
18948 case $CONFIG_FILES in
18949 *\'*) eval set x "$CONFIG_FILES" ;;
18950 *) set x $CONFIG_FILES ;;
18951 esac
18952 shift
18953 for mf
18954 do
18955 # Strip MF so we end up with the name of the file.
18956 mf=`echo "$mf" | sed -e 's/:.*$//'`
18957 # Check whether this is an Automake generated Makefile or not.
b0322a85 18958 # We used to match only the files named 'Makefile.in', but
8d138742
CE
18959 # some people rename them; so instead we look at the file content.
18960 # Grep'ing the first line is not enough: some people post-process
18961 # each Makefile.in and add a new line on top of each file to say so.
18962 # Grep'ing the whole file is not good either: AIX grep has a line
18963 # limit of 2048, but all sed's we know have understand at least 4000.
18964 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18965 dirpart=`$as_dirname -- "$mf" ||
18966$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18967 X"$mf" : 'X\(//\)[^/]' \| \
18968 X"$mf" : 'X\(//\)$' \| \
18969 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18970$as_echo X"$mf" |
18971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\/\)[^/].*/{
18976 s//\1/
18977 q
18978 }
18979 /^X\(\/\/\)$/{
18980 s//\1/
18981 q
18982 }
18983 /^X\(\/\).*/{
18984 s//\1/
18985 q
18986 }
18987 s/.*/./; q'`
18988 else
18989 continue
18990 fi
18991 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 18992 # from the Makefile without running 'make'.
8d138742
CE
18993 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18994 test -z "$DEPDIR" && continue
18995 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 18996 test -z "$am__include" && continue
8d138742 18997 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
18998 # Find all dependency output files, they are included files with
18999 # $(DEPDIR) in their names. We invoke sed twice because it is the
19000 # simplest approach to changing $(DEPDIR) to its actual value in the
19001 # expansion.
19002 for file in `sed -n "
19003 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 19004 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
19005 # Make sure the directory exists.
19006 test -f "$dirpart/$file" && continue
19007 fdir=`$as_dirname -- "$file" ||
19008$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19009 X"$file" : 'X\(//\)[^/]' \| \
19010 X"$file" : 'X\(//\)$' \| \
19011 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19012$as_echo X"$file" |
19013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19014 s//\1/
19015 q
19016 }
19017 /^X\(\/\/\)[^/].*/{
19018 s//\1/
19019 q
19020 }
19021 /^X\(\/\/\)$/{
19022 s//\1/
19023 q
19024 }
19025 /^X\(\/\).*/{
19026 s//\1/
19027 q
19028 }
19029 s/.*/./; q'`
b0322a85 19030 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
19031 # echo "creating $dirpart/$file"
19032 echo '# dummy' > "$dirpart/$file"
19033 done
19034 done
d9898ee8 19035}
8d138742
CE
19036 ;;
19037 "libtool":C)
d9898ee8 19038
d50284c4 19039 # See if we are running on zsh, and set the options that allow our
8d138742 19040 # commands through without removal of \ escapes.
d50284c4 19041 if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
19042 setopt NO_GLOB_SUBST
19043 fi
dd184caf 19044
d50284c4 19045 cfgfile=${ofile}T
8d138742
CE
19046 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19047 $RM "$cfgfile"
d9898ee8 19048
8d138742
CE
19049 cat <<_LT_EOF >> "$cfgfile"
19050#! $SHELL
d50284c4 19051# Generated automatically by $as_me ($PACKAGE) $VERSION
8d138742
CE
19052# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19053# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d50284c4
CE
19054
19055# Provide generalized library-building support services.
19056# Written by Gordon Matzigkeit, 1996
19057
19058# Copyright (C) 2014 Free Software Foundation, Inc.
19059# This is free software; see the source for copying conditions. There is NO
19060# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19061
19062# GNU Libtool is free software; you can redistribute it and/or modify
19063# it under the terms of the GNU General Public License as published by
19064# the Free Software Foundation; either version 2 of of the License, or
19065# (at your option) any later version.
8d138742 19066#
d50284c4
CE
19067# As a special exception to the GNU General Public License, if you
19068# distribute this file as part of a program or library that is built
19069# using GNU Libtool, you may include this file under the same
19070# distribution terms that you use for the rest of that program.
8d138742 19071#
d50284c4
CE
19072# GNU Libtool is distributed in the hope that it will be useful, but
19073# WITHOUT ANY WARRANTY; without even the implied warranty of
8d138742
CE
19074# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19075# GNU General Public License for more details.
19076#
19077# You should have received a copy of the GNU General Public License
d50284c4 19078# along with this program. If not, see <http://www.gnu.org/licenses/>.
d9898ee8 19079
19080
8d138742 19081# The names of the tagged configurations supported by this script.
d50284c4
CE
19082available_tags='CXX '
19083
19084# Configured defaults for sys_lib_dlsearch_path munging.
19085: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
d9898ee8 19086
8d138742 19087# ### BEGIN LIBTOOL CONFIG
dd184caf 19088
8d138742
CE
19089# Which release of libtool.m4 was used?
19090macro_version=$macro_version
19091macro_revision=$macro_revision
d9898ee8 19092
8d138742
CE
19093# Whether or not to build shared libraries.
19094build_libtool_libs=$enable_shared
d9898ee8 19095
8d138742
CE
19096# Whether or not to build static libraries.
19097build_old_libs=$enable_static
dd184caf 19098
8d138742
CE
19099# What type of objects to build.
19100pic_mode=$pic_mode
d9898ee8 19101
8d138742
CE
19102# Whether or not to optimize for fast installation.
19103fast_install=$enable_fast_install
d9898ee8 19104
d50284c4
CE
19105# Shared archive member basename,for filename based shared library versioning on AIX.
19106shared_archive_member_spec=$shared_archive_member_spec
19107
b0322a85
CE
19108# Shell to use when invoking shell scripts.
19109SHELL=$lt_SHELL
19110
19111# An echo program that protects backslashes.
19112ECHO=$lt_ECHO
19113
19114# The PATH separator for the build system.
19115PATH_SEPARATOR=$lt_PATH_SEPARATOR
19116
8d138742
CE
19117# The host system.
19118host_alias=$host_alias
19119host=$host
19120host_os=$host_os
d9898ee8 19121
8d138742
CE
19122# The build system.
19123build_alias=$build_alias
19124build=$build
19125build_os=$build_os
d9898ee8 19126
8d138742
CE
19127# A sed program that does not truncate output.
19128SED=$lt_SED
d9898ee8 19129
8d138742
CE
19130# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19131Xsed="\$SED -e 1s/^X//"
d9898ee8 19132
8d138742
CE
19133# A grep program that handles long lines.
19134GREP=$lt_GREP
d9898ee8 19135
8d138742
CE
19136# An ERE matcher.
19137EGREP=$lt_EGREP
d9898ee8 19138
8d138742
CE
19139# A literal string matcher.
19140FGREP=$lt_FGREP
d9898ee8 19141
8d138742
CE
19142# A BSD- or MS-compatible name lister.
19143NM=$lt_NM
d9898ee8 19144
8d138742
CE
19145# Whether we need soft or hard links.
19146LN_S=$lt_LN_S
d9898ee8 19147
8d138742
CE
19148# What is the maximum length of a command?
19149max_cmd_len=$max_cmd_len
d9898ee8 19150
8d138742
CE
19151# Object file suffix (normally "o").
19152objext=$ac_objext
d9898ee8 19153
8d138742
CE
19154# Executable file suffix (normally "").
19155exeext=$exeext
d9898ee8 19156
8d138742
CE
19157# whether the shell understands "unset".
19158lt_unset=$lt_unset
d9898ee8 19159
8d138742
CE
19160# turn spaces into newlines.
19161SP2NL=$lt_lt_SP2NL
d9898ee8 19162
8d138742
CE
19163# turn newlines into spaces.
19164NL2SP=$lt_lt_NL2SP
dd184caf 19165
b0322a85
CE
19166# convert \$build file names to \$host format.
19167to_host_file_cmd=$lt_cv_to_host_file_cmd
19168
19169# convert \$build files to toolchain format.
19170to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 19171
8d138742
CE
19172# An object symbol dumper.
19173OBJDUMP=$lt_OBJDUMP
d9898ee8 19174
8d138742
CE
19175# Method to check whether dependent libraries are shared objects.
19176deplibs_check_method=$lt_deplibs_check_method
d9898ee8 19177
b0322a85 19178# Command to use when deplibs_check_method = "file_magic".
8d138742 19179file_magic_cmd=$lt_file_magic_cmd
d9898ee8 19180
b0322a85
CE
19181# How to find potential files when deplibs_check_method = "file_magic".
19182file_magic_glob=$lt_file_magic_glob
19183
19184# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19185want_nocaseglob=$lt_want_nocaseglob
19186
19187# DLL creation program.
19188DLLTOOL=$lt_DLLTOOL
19189
19190# Command to associate shared and link libraries.
19191sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19192
8d138742
CE
19193# The archiver.
19194AR=$lt_AR
b0322a85
CE
19195
19196# Flags to create an archive.
8d138742 19197AR_FLAGS=$lt_AR_FLAGS
dd184caf 19198
b0322a85
CE
19199# How to feed a file listing to the archiver.
19200archiver_list_spec=$lt_archiver_list_spec
19201
8d138742
CE
19202# A symbol stripping program.
19203STRIP=$lt_STRIP
d9898ee8 19204
8d138742
CE
19205# Commands used to install an old-style archive.
19206RANLIB=$lt_RANLIB
19207old_postinstall_cmds=$lt_old_postinstall_cmds
19208old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 19209
b0322a85
CE
19210# Whether to use a lock for old archive extraction.
19211lock_old_archive_extraction=$lock_old_archive_extraction
19212
8d138742
CE
19213# A C compiler.
19214LTCC=$lt_CC
d9898ee8 19215
8d138742
CE
19216# LTCC compiler flags.
19217LTCFLAGS=$lt_CFLAGS
d9898ee8 19218
8d138742
CE
19219# Take the output of nm and produce a listing of raw symbols and C names.
19220global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 19221
8d138742
CE
19222# Transform the output of nm in a proper C declaration.
19223global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 19224
d50284c4
CE
19225# Transform the output of nm into a list of symbols to manually relocate.
19226global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19227
8d138742
CE
19228# Transform the output of nm in a C name address pair.
19229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 19230
8d138742
CE
19231# Transform the output of nm in a C name address pair when lib prefix is needed.
19232global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 19233
d50284c4
CE
19234# The name lister interface.
19235nm_interface=$lt_lt_cv_nm_interface
19236
b0322a85
CE
19237# Specify filename containing input files for \$NM.
19238nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 19239
d50284c4 19240# The root where to search for dependent libraries,and where our libraries should be installed.
b0322a85 19241lt_sysroot=$lt_sysroot
d9898ee8 19242
d50284c4
CE
19243# Command to truncate a binary pipe.
19244lt_truncate_bin=$lt_lt_cv_truncate_bin
19245
b0322a85
CE
19246# The name of the directory that contains temporary libtool files.
19247objdir=$objdir
dd184caf 19248
8d138742
CE
19249# Used to examine libraries when file_magic_cmd begins with "file".
19250MAGIC_CMD=$MAGIC_CMD
d9898ee8 19251
8d138742
CE
19252# Must we lock files when doing compilation?
19253need_locks=$lt_need_locks
d9898ee8 19254
b0322a85
CE
19255# Manifest tool.
19256MANIFEST_TOOL=$lt_MANIFEST_TOOL
19257
8d138742
CE
19258# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19259DSYMUTIL=$lt_DSYMUTIL
d9898ee8 19260
8d138742
CE
19261# Tool to change global to local symbols on Mac OS X.
19262NMEDIT=$lt_NMEDIT
dd184caf 19263
8d138742
CE
19264# Tool to manipulate fat objects and archives on Mac OS X.
19265LIPO=$lt_LIPO
d9898ee8 19266
8d138742
CE
19267# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19268OTOOL=$lt_OTOOL
d9898ee8 19269
8d138742
CE
19270# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19271OTOOL64=$lt_OTOOL64
dd184caf 19272
8d138742
CE
19273# Old archive suffix (normally "a").
19274libext=$libext
19275
19276# Shared library suffix (normally ".so").
19277shrext_cmds=$lt_shrext_cmds
19278
19279# The commands to extract the exported symbol list from a shared archive.
19280extract_expsyms_cmds=$lt_extract_expsyms_cmds
19281
19282# Variables whose values should be saved in libtool wrapper scripts and
19283# restored at link time.
19284variables_saved_for_relink=$lt_variables_saved_for_relink
19285
19286# Do we need the "lib" prefix for modules?
19287need_lib_prefix=$need_lib_prefix
19288
19289# Do we need a version for libraries?
19290need_version=$need_version
19291
19292# Library versioning type.
19293version_type=$version_type
d9898ee8 19294
8d138742
CE
19295# Shared library runtime path variable.
19296runpath_var=$runpath_var
d9898ee8 19297
8d138742
CE
19298# Shared library path variable.
19299shlibpath_var=$shlibpath_var
d9898ee8 19300
8d138742
CE
19301# Is shlibpath searched before the hard-coded library search path?
19302shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 19303
8d138742
CE
19304# Format of library name prefix.
19305libname_spec=$lt_libname_spec
d9898ee8 19306
8d138742
CE
19307# List of archive names. First name is the real one, the rest are links.
19308# The last name is the one that the linker finds with -lNAME
19309library_names_spec=$lt_library_names_spec
d9898ee8 19310
8d138742
CE
19311# The coded name of the library, if different from the real name.
19312soname_spec=$lt_soname_spec
d9898ee8 19313
b0322a85
CE
19314# Permission mode override for installation of shared libraries.
19315install_override_mode=$lt_install_override_mode
19316
8d138742
CE
19317# Command to use after installation of a shared archive.
19318postinstall_cmds=$lt_postinstall_cmds
d9898ee8 19319
8d138742
CE
19320# Command to use after uninstallation of a shared archive.
19321postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 19322
8d138742
CE
19323# Commands used to finish a libtool library installation in a directory.
19324finish_cmds=$lt_finish_cmds
d9898ee8 19325
8d138742
CE
19326# As "finish_cmds", except a single script fragment to be evaled but
19327# not shown.
19328finish_eval=$lt_finish_eval
dd184caf 19329
8d138742
CE
19330# Whether we should hardcode library paths into libraries.
19331hardcode_into_libs=$hardcode_into_libs
dd184caf 19332
8d138742
CE
19333# Compile-time system search path for libraries.
19334sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
dd184caf 19335
d50284c4
CE
19336# Detected run-time system search path for libraries.
19337sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19338
19339# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19340configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dd184caf 19341
8d138742
CE
19342# Whether dlopen is supported.
19343dlopen_support=$enable_dlopen
dd184caf 19344
8d138742
CE
19345# Whether dlopen of programs is supported.
19346dlopen_self=$enable_dlopen_self
dd184caf 19347
8d138742
CE
19348# Whether dlopen of statically linked programs is supported.
19349dlopen_self_static=$enable_dlopen_self_static
d9898ee8 19350
8d138742
CE
19351# Commands to strip libraries.
19352old_striplib=$lt_old_striplib
19353striplib=$lt_striplib
d9898ee8 19354
19355
8d138742
CE
19356# The linker used to build libraries.
19357LD=$lt_LD
dd184caf 19358
b0322a85
CE
19359# How to create reloadable object files.
19360reload_flag=$lt_reload_flag
19361reload_cmds=$lt_reload_cmds
19362
8d138742
CE
19363# Commands used to build an old-style archive.
19364old_archive_cmds=$lt_old_archive_cmds
dd184caf 19365
8d138742
CE
19366# A language specific compiler.
19367CC=$lt_compiler
dd184caf 19368
8d138742
CE
19369# Is the compiler the GNU compiler?
19370with_gcc=$GCC
d9898ee8 19371
8d138742
CE
19372# Compiler flag to turn off builtin functions.
19373no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 19374
8d138742
CE
19375# Additional compiler flags for building library objects.
19376pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 19377
b0322a85
CE
19378# How to pass a linker flag through the compiler.
19379wl=$lt_lt_prog_compiler_wl
19380
8d138742
CE
19381# Compiler flag to prevent dynamic linking.
19382link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 19383
8d138742
CE
19384# Does compiler simultaneously support -c and -o options?
19385compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 19386
8d138742
CE
19387# Whether or not to add -lc for building shared libraries.
19388build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 19389
8d138742
CE
19390# Whether or not to disallow shared libs when runtime libs are static.
19391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
d9898ee8 19392
8d138742
CE
19393# Compiler flag to allow reflexive dlopens.
19394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 19395
8d138742
CE
19396# Compiler flag to generate shared objects directly from archives.
19397whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 19398
8d138742
CE
19399# Whether the compiler copes with passing no objects directly.
19400compiler_needs_object=$lt_compiler_needs_object
d9898ee8 19401
8d138742
CE
19402# Create an old-style archive from a shared archive.
19403old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19404
19405# Create a temporary old-style archive to link instead of a shared archive.
19406old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 19407
8d138742
CE
19408# Commands used to build a shared archive.
19409archive_cmds=$lt_archive_cmds
19410archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 19411
8d138742
CE
19412# Commands used to build a loadable module if different from building
19413# a shared archive.
19414module_cmds=$lt_module_cmds
19415module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 19416
8d138742
CE
19417# Whether we are building with GNU ld or not.
19418with_gnu_ld=$lt_with_gnu_ld
d9898ee8 19419
8d138742
CE
19420# Flag that allows shared libraries with undefined symbols to be built.
19421allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 19422
8d138742
CE
19423# Flag that enforces no undefined symbols.
19424no_undefined_flag=$lt_no_undefined_flag
d9898ee8 19425
8d138742
CE
19426# Flag to hardcode \$libdir into a binary during linking.
19427# This must work even if \$libdir does not exist
19428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 19429
8d138742
CE
19430# Whether we need a single "-rpath" flag with a separated argument.
19431hardcode_libdir_separator=$lt_hardcode_libdir_separator
d9898ee8 19432
d50284c4 19433# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
19434# DIR into the resulting binary.
19435hardcode_direct=$hardcode_direct
d9898ee8 19436
d50284c4 19437# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 19438# DIR into the resulting binary and the resulting library dependency is
d50284c4 19439# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
19440# library is relocated.
19441hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 19442
8d138742
CE
19443# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19444# into the resulting binary.
19445hardcode_minus_L=$hardcode_minus_L
d9898ee8 19446
8d138742
CE
19447# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19448# into the resulting binary.
19449hardcode_shlibpath_var=$hardcode_shlibpath_var
d9898ee8 19450
8d138742
CE
19451# Set to "yes" if building a shared library automatically hardcodes DIR
19452# into the library and all subsequent libraries and executables linked
19453# against it.
19454hardcode_automatic=$hardcode_automatic
d9898ee8 19455
8d138742
CE
19456# Set to yes if linker adds runtime paths of dependent libraries
19457# to runtime path list.
19458inherit_rpath=$inherit_rpath
dd184caf 19459
8d138742
CE
19460# Whether libtool must link a program against all its dependency libraries.
19461link_all_deplibs=$link_all_deplibs
d9898ee8 19462
8d138742
CE
19463# Set to "yes" if exported symbols are required.
19464always_export_symbols=$always_export_symbols
d9898ee8 19465
8d138742
CE
19466# The commands to list exported symbols.
19467export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 19468
8d138742
CE
19469# Symbols that should not be listed in the preloaded symbols.
19470exclude_expsyms=$lt_exclude_expsyms
d9898ee8 19471
8d138742
CE
19472# Symbols that must always be exported.
19473include_expsyms=$lt_include_expsyms
d9898ee8 19474
8d138742
CE
19475# Commands necessary for linking programs (against libraries) with templates.
19476prelink_cmds=$lt_prelink_cmds
d9898ee8 19477
b0322a85
CE
19478# Commands necessary for finishing linking programs.
19479postlink_cmds=$lt_postlink_cmds
19480
8d138742
CE
19481# Specify filename containing input files.
19482file_list_spec=$lt_file_list_spec
d9898ee8 19483
8d138742
CE
19484# How to hardcode a shared library path into an executable.
19485hardcode_action=$hardcode_action
d9898ee8 19486
8d138742
CE
19487# The directories searched by this compiler when creating a shared library.
19488compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
d9898ee8 19489
8d138742
CE
19490# Dependencies to place before and after the objects being linked to
19491# create a shared library.
19492predep_objects=$lt_predep_objects
19493postdep_objects=$lt_postdep_objects
19494predeps=$lt_predeps
19495postdeps=$lt_postdeps
d9898ee8 19496
8d138742
CE
19497# The library search path used internally by the compiler when linking
19498# a shared library.
19499compiler_lib_search_path=$lt_compiler_lib_search_path
dd184caf 19500
8d138742 19501# ### END LIBTOOL CONFIG
d9898ee8 19502
d50284c4
CE
19503_LT_EOF
19504
19505 cat <<'_LT_EOF' >> "$cfgfile"
19506
19507# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19508
19509# func_munge_path_list VARIABLE PATH
19510# -----------------------------------
19511# VARIABLE is name of variable containing _space_ separated list of
19512# directories to be munged by the contents of PATH, which is string
19513# having a format:
19514# "DIR[:DIR]:"
19515# string "DIR[ DIR]" will be prepended to VARIABLE
19516# ":DIR[:DIR]"
19517# string "DIR[ DIR]" will be appended to VARIABLE
19518# "DIRP[:DIRP]::[DIRA:]DIRA"
19519# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19520# "DIRA[ DIRA]" will be appended to VARIABLE
19521# "DIR[:DIR]"
19522# VARIABLE will be replaced by "DIR[ DIR]"
19523func_munge_path_list ()
19524{
19525 case x$2 in
19526 x)
19527 ;;
19528 *:)
19529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19530 ;;
19531 x:*)
19532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19533 ;;
19534 *::*)
19535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19537 ;;
19538 *)
19539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19540 ;;
19541 esac
19542}
19543
19544
19545# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19546func_cc_basename ()
19547{
19548 for cc_temp in $*""; do
19549 case $cc_temp in
19550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19552 \-*) ;;
19553 *) break;;
19554 esac
19555 done
19556 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19557}
19558
19559
19560# ### END FUNCTIONS SHARED WITH CONFIGURE
19561
8d138742
CE
19562_LT_EOF
19563
19564 case $host_os in
19565 aix3*)
19566 cat <<\_LT_EOF >> "$cfgfile"
19567# AIX sometimes has problems with the GCC collect2 program. For some
19568# reason, if we set the COLLECT_NAMES environment variable, the problems
19569# vanish in a puff of smoke.
d50284c4 19570if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
19571 COLLECT_NAMES=
19572 export COLLECT_NAMES
19573fi
19574_LT_EOF
d9898ee8 19575 ;;
d9898ee8 19576 esac
19577
d9898ee8 19578
d50284c4 19579ltmain=$ac_aux_dir/ltmain.sh
d9898ee8 19580
d9898ee8 19581
8d138742
CE
19582 # We use sed instead of cat because bash on DJGPP gets confused if
19583 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19584 # text mode, it properly converts lines to CR/LF. This bash problem
19585 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
19586 sed '$q' "$ltmain" >> "$cfgfile" \
19587 || (rm -f "$cfgfile"; exit 1)
19588
b0322a85 19589 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
19590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19591 chmod +x "$ofile"
dd184caf 19592
dd184caf 19593
8d138742 19594 cat <<_LT_EOF >> "$ofile"
dd184caf 19595
8d138742 19596# ### BEGIN LIBTOOL TAG CONFIG: CXX
dd184caf 19597
8d138742
CE
19598# The linker used to build libraries.
19599LD=$lt_LD_CXX
d9898ee8 19600
b0322a85
CE
19601# How to create reloadable object files.
19602reload_flag=$lt_reload_flag_CXX
19603reload_cmds=$lt_reload_cmds_CXX
19604
8d138742
CE
19605# Commands used to build an old-style archive.
19606old_archive_cmds=$lt_old_archive_cmds_CXX
dd184caf 19607
8d138742
CE
19608# A language specific compiler.
19609CC=$lt_compiler_CXX
dd184caf 19610
8d138742
CE
19611# Is the compiler the GNU compiler?
19612with_gcc=$GCC_CXX
dd184caf 19613
8d138742
CE
19614# Compiler flag to turn off builtin functions.
19615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
dd184caf 19616
8d138742
CE
19617# Additional compiler flags for building library objects.
19618pic_flag=$lt_lt_prog_compiler_pic_CXX
dd184caf 19619
b0322a85
CE
19620# How to pass a linker flag through the compiler.
19621wl=$lt_lt_prog_compiler_wl_CXX
19622
8d138742
CE
19623# Compiler flag to prevent dynamic linking.
19624link_static_flag=$lt_lt_prog_compiler_static_CXX
dd184caf 19625
8d138742
CE
19626# Does compiler simultaneously support -c and -o options?
19627compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dd184caf 19628
8d138742
CE
19629# Whether or not to add -lc for building shared libraries.
19630build_libtool_need_lc=$archive_cmds_need_lc_CXX
dd184caf 19631
8d138742
CE
19632# Whether or not to disallow shared libs when runtime libs are static.
19633allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d9898ee8 19634
8d138742
CE
19635# Compiler flag to allow reflexive dlopens.
19636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19637
19638# Compiler flag to generate shared objects directly from archives.
19639whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19640
19641# Whether the compiler copes with passing no objects directly.
19642compiler_needs_object=$lt_compiler_needs_object_CXX
19643
19644# Create an old-style archive from a shared archive.
19645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19646
19647# Create a temporary old-style archive to link instead of a shared archive.
19648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19649
19650# Commands used to build a shared archive.
19651archive_cmds=$lt_archive_cmds_CXX
19652archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19653
19654# Commands used to build a loadable module if different from building
19655# a shared archive.
19656module_cmds=$lt_module_cmds_CXX
19657module_expsym_cmds=$lt_module_expsym_cmds_CXX
19658
19659# Whether we are building with GNU ld or not.
19660with_gnu_ld=$lt_with_gnu_ld_CXX
19661
19662# Flag that allows shared libraries with undefined symbols to be built.
19663allow_undefined_flag=$lt_allow_undefined_flag_CXX
19664
19665# Flag that enforces no undefined symbols.
19666no_undefined_flag=$lt_no_undefined_flag_CXX
19667
19668# Flag to hardcode \$libdir into a binary during linking.
19669# This must work even if \$libdir does not exist
19670hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19671
8d138742
CE
19672# Whether we need a single "-rpath" flag with a separated argument.
19673hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19674
d50284c4 19675# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
19676# DIR into the resulting binary.
19677hardcode_direct=$hardcode_direct_CXX
19678
d50284c4 19679# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 19680# DIR into the resulting binary and the resulting library dependency is
d50284c4 19681# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
19682# library is relocated.
19683hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19684
19685# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19686# into the resulting binary.
19687hardcode_minus_L=$hardcode_minus_L_CXX
d9898ee8 19688
8d138742
CE
19689# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19690# into the resulting binary.
19691hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d9898ee8 19692
8d138742
CE
19693# Set to "yes" if building a shared library automatically hardcodes DIR
19694# into the library and all subsequent libraries and executables linked
19695# against it.
19696hardcode_automatic=$hardcode_automatic_CXX
d9898ee8 19697
8d138742
CE
19698# Set to yes if linker adds runtime paths of dependent libraries
19699# to runtime path list.
19700inherit_rpath=$inherit_rpath_CXX
d9898ee8 19701
8d138742
CE
19702# Whether libtool must link a program against all its dependency libraries.
19703link_all_deplibs=$link_all_deplibs_CXX
d9898ee8 19704
8d138742
CE
19705# Set to "yes" if exported symbols are required.
19706always_export_symbols=$always_export_symbols_CXX
dd184caf 19707
8d138742
CE
19708# The commands to list exported symbols.
19709export_symbols_cmds=$lt_export_symbols_cmds_CXX
dd184caf 19710
8d138742
CE
19711# Symbols that should not be listed in the preloaded symbols.
19712exclude_expsyms=$lt_exclude_expsyms_CXX
dd184caf 19713
8d138742
CE
19714# Symbols that must always be exported.
19715include_expsyms=$lt_include_expsyms_CXX
dd184caf 19716
8d138742
CE
19717# Commands necessary for linking programs (against libraries) with templates.
19718prelink_cmds=$lt_prelink_cmds_CXX
d9898ee8 19719
b0322a85
CE
19720# Commands necessary for finishing linking programs.
19721postlink_cmds=$lt_postlink_cmds_CXX
19722
8d138742
CE
19723# Specify filename containing input files.
19724file_list_spec=$lt_file_list_spec_CXX
d9898ee8 19725
8d138742
CE
19726# How to hardcode a shared library path into an executable.
19727hardcode_action=$hardcode_action_CXX
d9898ee8 19728
8d138742
CE
19729# The directories searched by this compiler when creating a shared library.
19730compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
d9898ee8 19731
8d138742
CE
19732# Dependencies to place before and after the objects being linked to
19733# create a shared library.
19734predep_objects=$lt_predep_objects_CXX
19735postdep_objects=$lt_postdep_objects_CXX
19736predeps=$lt_predeps_CXX
19737postdeps=$lt_postdeps_CXX
19738
19739# The library search path used internally by the compiler when linking
19740# a shared library.
19741compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19742
19743# ### END LIBTOOL TAG CONFIG: CXX
19744_LT_EOF
d9898ee8 19745
d9898ee8 19746 ;;
dd184caf 19747
d9898ee8 19748 esac
dd184caf 19749done # for ac_tag
d9898ee8 19750
d9898ee8 19751
b0322a85 19752as_fn_exit 0
d9898ee8 19753_ACEOF
d9898ee8 19754ac_clean_files=$ac_clean_files_save
19755
8d138742 19756test $ac_write_fail = 0 ||
b0322a85 19757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 19758
d9898ee8 19759
19760# configure is writing to config.log, and then calls config.status.
19761# config.status does its own redirection, appending to config.log.
19762# Unfortunately, on DOS this fails, as config.log is still kept open
19763# by configure, so config.status won't be able to write to it; its
19764# output is simply discarded. So we exec the FD to /dev/null,
19765# effectively closing config.log, so it can be properly (re)opened and
19766# appended to by config.status. When coming back to configure, we
19767# need to make the FD available again.
19768if test "$no_create" != yes; then
19769 ac_cs_success=:
19770 ac_config_status_args=
19771 test "$silent" = yes &&
19772 ac_config_status_args="$ac_config_status_args --quiet"
19773 exec 5>/dev/null
19774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19775 exec 5>>config.log
19776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19777 # would make configure fail if this is the last instruction.
b0322a85 19778 $ac_cs_success || as_fn_exit 1
d9898ee8 19779fi
8d138742 19780if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 19781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
19782$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19783fi
d9898ee8 19784