Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / gdbmobj / 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 gdbmobj 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.
591PACKAGE_NAME='gdbmobj'
592PACKAGE_TARNAME='gdbmobj'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='gdbmobj 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="gdbmobj.c"
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
639FOUND_GDBM_FALSE
640FOUND_GDBM_TRUE
641LIBGDBM
642CXXCPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
b0322a85 648MANIFEST_TOOL
8d138742 649RANLIB
b0322a85 650ac_ct_AR
8d138742 651AR
b0322a85 652DLLTOOL
8d138742
CE
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660SED
661host_os
662host_vendor
663host_cpu
664host
665build_os
666build_vendor
667build_cpu
668build
669LIBTOOL
670am__fastdepCXX_FALSE
671am__fastdepCXX_TRUE
672CXXDEPMODE
673ac_ct_CXX
674CXXFLAGS
675CXX
676EGREP
677GREP
678CPP
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
b0322a85 682am__nodep
8d138742
CE
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
b0322a85
CE
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
8d138742
CE
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
dd184caf 725build_alias
8d138742
CE
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
b0322a85 753PACKAGE_URL
8d138742
CE
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
b0322a85 764enable_silent_rules
8d138742
CE
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
b0322a85 771with_sysroot
8d138742 772enable_libtool_lock
b0322a85 773enable_largefile
8d138742
CE
774'
775 ac_precious_vars='build_alias
dd184caf 776host_alias
777target_alias
dd184caf 778CC
779CFLAGS
780LDFLAGS
8d138742 781LIBS
dd184caf 782CPPFLAGS
783CPP
784CXX
785CXXFLAGS
786CCC
8d138742 787CXXCPP'
dd184caf 788
d9898ee8 789
790# Initialize some variables set by options.
791ac_init_help=
792ac_init_version=false
8d138742
CE
793ac_unrecognized_opts=
794ac_unrecognized_sep=
d9898ee8 795# The variables have the same names as the options, with
796# dashes changed to underlines.
797cache_file=/dev/null
798exec_prefix=NONE
799no_create=
800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
808verbose=
809x_includes=NONE
810x_libraries=NONE
811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 817# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
dd184caf 821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
d9898ee8 823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
d9898ee8 826includedir='${prefix}/include'
827oldincludedir='/usr/include'
dd184caf 828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
d9898ee8 837
838ac_prev=
dd184caf 839ac_dashdash=
d9898ee8 840for ac_option
841do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
dd184caf 844 eval $ac_prev=\$ac_option
d9898ee8 845 ac_prev=
846 continue
847 fi
848
dd184caf 849 case $ac_option in
b0322a85
CE
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
dd184caf 853 esac
d9898ee8 854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
dd184caf 857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
d9898ee8 860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
dd184caf 881 -datadir | --datadir | --datadi | --datad)
d9898ee8 882 ac_prev=datadir ;;
dd184caf 883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 884 datadir=$ac_optarg ;;
885
dd184caf 886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
d9898ee8 893 -disable-* | --disable-*)
8d138742 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 895 # Reject names that are not valid shell variable names.
8d138742 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 897 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
dd184caf 908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
d9898ee8 918
919 -enable-* | --enable-*)
8d138742 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 921 # Reject names that are not valid shell variable names.
8d138742 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 923 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
dd184caf 960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
d9898ee8 966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
dd184caf 990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
d9898ee8 995 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 996 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
dd184caf 1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
d9898ee8 1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
8d138742 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1125 # Reject names that are not valid shell variable names.
8d138742 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1127 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132"with_$ac_useropt"
1133"*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1138
1139 -without-* | --without-*)
8d138742 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1141 # Reject names that are not valid shell variable names.
8d138742 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1143 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
d9898ee8 1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
b0322a85
CE
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174Try \`$0 --help' for more information"
d9898ee8 1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
b0322a85
CE
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
dd184caf 1184 eval $ac_envvar=\$ac_optarg
d9898ee8 1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
8d138742 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1200 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1201fi
1202
8d138742
CE
1203if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
b0322a85 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209fi
1210
1211# Check all directory arguments for consistency.
dd184caf 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
d9898ee8 1216do
dd184caf 1217 eval ac_val=\$$ac_var
8d138742
CE
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
d9898ee8 1225 case $ac_val in
dd184caf 1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1228 esac
b0322a85 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1230done
1231
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
d9898ee8 1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
dd184caf 1254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1257 as_fn_error $? "working directory cannot be determined"
dd184caf 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1259 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1260
1261
d9898ee8 1262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
dd184caf 1265 # Try the directory containing this script, then the parent directory.
8d138742
CE
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271$as_echo X"$as_myself" |
dd184caf 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
d9898ee8 1289 srcdir=$ac_confdir
dd184caf 1290 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1291 srcdir=..
1292 fi
1293else
1294 ac_srcdir_defaulted=no
1295fi
dd184caf 1296if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1299fi
dd184caf 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
b0322a85 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1303 pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
d9898ee8 1320
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328\`configure' configures gdbmobj 0.10 to adapt to many kinds of systems.
1329
1330Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335Defaults for the options are specified in brackets.
1336
1337Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
b0322a85 1342 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
d9898ee8 1348Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1350 [$ac_default_prefix]
d9898ee8 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1352 [PREFIX]
d9898ee8 1353
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
1358
1359For better control, use the options below.
1360
1361Fine tuning of the installation directories:
8d138742
CE
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbmobj]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1381_ACEOF
1382
1383 cat <<\_ACEOF
1384
1385Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of gdbmobj 0.10:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
8d138742 1403 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
dd184caf 1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1417 --disable-largefile omit support for large files
d9898ee8 1418
1419Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1423 both]
8d138742 1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
d9898ee8 1427
1428Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
dd184caf 1433 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1435 you have headers in a nonstandard directory <include dir>
d9898ee8 1436 CPP C preprocessor
1437 CXX C++ compiler command
1438 CXXFLAGS C++ compiler flags
1439 CXXCPP C++ preprocessor
d9898ee8 1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
1444Report bugs to <courier-users@lists.sourceforge.net>.
1445_ACEOF
dd184caf 1446ac_status=$?
d9898ee8 1447fi
1448
1449if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
d9898ee8 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
d9898ee8 1455 ac_builddir=.
1456
dd184caf 1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
8d138742 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1461 # A ".." for each directory in $ac_dir_suffix.
8d138742 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
d9898ee8 1472
1473case $srcdir in
dd184caf 1474 .) # We are building in place.
d9898ee8 1475 ac_srcdir=.
dd184caf 1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1479 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1486esac
dd184caf 1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1497 else
8d138742 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1501 done
1502fi
1503
dd184caf 1504test -n "$ac_init_help" && exit $ac_status
d9898ee8 1505if $ac_init_version; then
1506 cat <<\_ACEOF
1507gdbmobj configure 0.10
b0322a85 1508generated by GNU Autoconf 2.69
d9898ee8 1509
b0322a85 1510Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513_ACEOF
dd184caf 1514 exit
d9898ee8 1515fi
d9898ee8 1516
b0322a85
CE
1517## ------------------------ ##
1518## Autoconf initialization. ##
1519## ------------------------ ##
d9898ee8 1520
b0322a85
CE
1521# ac_fn_c_try_compile LINENO
1522# --------------------------
1523# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_compile ()
d9898ee8 1525{
b0322a85
CE
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1551
b0322a85
CE
1552 ac_retval=1
1553fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_compile
1558
1559# ac_fn_c_try_cpp LINENO
1560# ----------------------
1561# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_cpp ()
1563{
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585else
1586 $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_cpp
1595
1596# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599# the include files in INCLUDES and setting the cache variable VAR
1600# accordingly.
1601ac_fn_c_check_header_mongrel ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if eval \${$3+:} false; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606$as_echo_n "checking for $2... " >&6; }
1607if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609fi
1610eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612$as_echo "$ac_res" >&6; }
1613else
1614 # Is the header compilable?
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616$as_echo_n "checking $2 usability... " >&6; }
1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h. */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1624else
1625 ac_header_compiler=no
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629$as_echo "$ac_header_compiler" >&6; }
1630
1631# Is the header present?
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633$as_echo_n "checking $2 presence... " >&6; }
1634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635/* end confdefs.h. */
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1640else
1641 ac_header_preproc=no
1642fi
1643rm -f conftest.err conftest.i conftest.$ac_ext
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645$as_echo "$ac_header_preproc" >&6; }
1646
1647# So? What about this header?
1648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1649 yes:no: )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ;;
1655 no:yes:* )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666( $as_echo "## -------------------------------------------------- ##
1667## Report this to courier-users@lists.sourceforge.net ##
1668## -------------------------------------------------- ##"
1669 ) | sed "s/^/$as_me: WARNING: /" >&2
1670 ;;
1671esac
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676else
1677 eval "$3=\$ac_header_compiler"
1678fi
1679eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685} # ac_fn_c_check_header_mongrel
1686
1687# ac_fn_c_try_run LINENO
1688# ----------------------
1689# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690# that executables *can* be run.
1691ac_fn_c_try_run ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=$ac_status
1722fi
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_run
1728
1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists and can be compiled using the include files in
1732# INCLUDES, setting the cache variable VAR accordingly.
1733ac_fn_c_check_header_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748else
1749 eval "$3=no"
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752fi
1753eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758} # ac_fn_c_check_header_compile
1759
1760# ac_fn_c_try_link LINENO
1761# -----------------------
1762# Try to link conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_link ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1768case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1788 }; then :
1789 ac_retval=0
1790else
1791 $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795fi
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_link
1805
1806# ac_fn_cxx_try_compile LINENO
1807# ----------------------------
1808# Try to compile conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_cxx_try_compile ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833else
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842} # ac_fn_cxx_try_compile
1843
1844# ac_fn_c_check_func LINENO FUNC VAR
1845# ----------------------------------
1846# Tests whether FUNC exists, setting the cache variable VAR accordingly
1847ac_fn_c_check_func ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859#define $2 innocuous_$2
1860
1861/* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866#ifdef __STDC__
1867# include <limits.h>
1868#else
1869# include <assert.h>
1870#endif
1871
1872#undef $2
1873
1874/* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877#ifdef __cplusplus
1878extern "C"
1879#endif
1880char $2 ();
1881/* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884#if defined __stub_$2 || defined __stub___$2
1885choke me
1886#endif
1887
1888int
1889main ()
1890{
1891return $2 ();
1892 ;
1893 return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898else
1899 eval "$3=no"
1900fi
1901rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_func
1910
1911# ac_fn_cxx_try_cpp LINENO
1912# ------------------------
1913# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_cxx_try_cpp ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } > conftest.i && {
1933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 }; then :
1936 ac_retval=0
1937else
1938 $as_echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942fi
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1945
1946} # ac_fn_cxx_try_cpp
1947
1948# ac_fn_cxx_try_link LINENO
1949# -------------------------
1950# Try to link conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_cxx_try_link ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext conftest$ac_exeext
1955 if { { ac_try="$ac_link"
1956case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest$ac_exeext && {
1974 test "$cross_compiling" = yes ||
1975 test -x conftest$ac_exeext
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992} # ac_fn_cxx_try_link
1993
1994# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1995# -------------------------------------------
1996# Tests whether TYPE exists after having included INCLUDES, setting cache
1997# variable VAR accordingly.
1998ac_fn_c_check_type ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005else
2006 eval "$3=no"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$4
2010int
2011main ()
2012{
2013if (sizeof ($2))
2014 return 0;
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h. */
2022$4
2023int
2024main ()
2025{
2026if (sizeof (($2)))
2027 return 0;
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033
2034else
2035 eval "$3=yes"
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040fi
2041eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043$as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046} # ac_fn_c_check_type
2047cat >config.log <<_ACEOF
2048This file contains any messages produced by compilers while
2049running configure, to aid debugging if configure makes a mistake.
2050
2051It was created by gdbmobj $as_me 0.10, which was
2052generated by GNU Autoconf 2.69. Invocation command line was
2053
2054 $ $0 $@
2055
2056_ACEOF
2057exec 5>>config.log
2058{
2059cat <<_ASUNAME
2060## --------- ##
2061## Platform. ##
2062## --------- ##
2063
2064hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066uname -r = `(uname -r) 2>/dev/null || echo unknown`
d9898ee8 2067uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2072
2073/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2076/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2077/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080
2081_ASUNAME
2082
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
b0322a85
CE
2088 $as_echo "PATH: $as_dir"
2089 done
dd184caf 2090IFS=$as_save_IFS
d9898ee8 2091
2092} >&5
2093
2094cat >&5 <<_ACEOF
2095
2096
2097## ----------- ##
2098## Core tests. ##
2099## ----------- ##
2100
2101_ACEOF
2102
2103
2104# Keep a trace of the command line.
2105# Strip out --no-create and --no-recursion so they do not pile up.
2106# Strip out --silent because we don't want to record it for future runs.
2107# Also quote any args containing shell meta-characters.
2108# Make two passes to allow for proper duplicate-argument suppression.
2109ac_configure_args=
2110ac_configure_args0=
2111ac_configure_args1=
d9898ee8 2112ac_must_keep_next=false
2113for ac_pass in 1 2
2114do
2115 for ac_arg
2116 do
2117 case $ac_arg in
2118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120 | -silent | --silent | --silen | --sile | --sil)
2121 continue ;;
dd184caf 2122 *\'*)
8d138742 2123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2124 esac
2125 case $ac_pass in
b0322a85 2126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2127 2)
b0322a85 2128 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2129 if test $ac_must_keep_next = true; then
2130 ac_must_keep_next=false # Got value, back to normal.
2131 else
2132 case $ac_arg in
2133 *=* | --config-cache | -C | -disable-* | --disable-* \
2134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136 | -with-* | --with-* | -without-* | --without-* | --x)
2137 case "$ac_configure_args0 " in
2138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139 esac
2140 ;;
2141 -* ) ac_must_keep_next=true ;;
2142 esac
2143 fi
b0322a85 2144 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2145 ;;
2146 esac
2147 done
2148done
b0322a85
CE
2149{ ac_configure_args0=; unset ac_configure_args0;}
2150{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2151
2152# When interrupted or exit'd, cleanup temporary files, and complete
2153# config.log. We remove comments because anyway the quotes in there
2154# would cause problems or look ugly.
dd184caf 2155# WARNING: Use '\'' to represent an apostrophe within the trap.
2156# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2157trap 'exit_status=$?
2158 # Save into config.log some information that might help in debugging.
2159 {
2160 echo
2161
b0322a85 2162 $as_echo "## ---------------- ##
d9898ee8 2163## Cache variables. ##
b0322a85 2164## ---------------- ##"
d9898ee8 2165 echo
2166 # The following way of writing the cache mishandles newlines in values,
dd184caf 2167(
2168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in #(
2171 *${as_nl}*)
2172 case $ac_var in #(
b0322a85 2173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2174$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2175 esac
2176 case $ac_var in #(
2177 _ | IFS | as_nl) ;; #(
8d138742 2178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2179 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2180 esac ;;
2181 esac
2182 done
d9898ee8 2183 (set) 2>&1 |
dd184caf 2184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185 *${as_nl}ac_space=\ *)
d9898ee8 2186 sed -n \
dd184caf 2187 "s/'\''/'\''\\\\'\'''\''/g;
2188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189 ;; #(
d9898ee8 2190 *)
dd184caf 2191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2192 ;;
dd184caf 2193 esac |
2194 sort
2195)
d9898ee8 2196 echo
2197
b0322a85 2198 $as_echo "## ----------------- ##
d9898ee8 2199## Output variables. ##
b0322a85 2200## ----------------- ##"
d9898ee8 2201 echo
2202 for ac_var in $ac_subst_vars
2203 do
dd184caf 2204 eval ac_val=\$$ac_var
2205 case $ac_val in
8d138742 2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2207 esac
8d138742 2208 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2209 done | sort
2210 echo
2211
2212 if test -n "$ac_subst_files"; then
b0322a85 2213 $as_echo "## ------------------- ##
dd184caf 2214## File substitutions. ##
b0322a85 2215## ------------------- ##"
d9898ee8 2216 echo
2217 for ac_var in $ac_subst_files
2218 do
dd184caf 2219 eval ac_val=\$$ac_var
2220 case $ac_val in
8d138742 2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2222 esac
8d138742 2223 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2224 done | sort
2225 echo
2226 fi
2227
2228 if test -s confdefs.h; then
b0322a85 2229 $as_echo "## ----------- ##
d9898ee8 2230## confdefs.h. ##
b0322a85 2231## ----------- ##"
d9898ee8 2232 echo
dd184caf 2233 cat confdefs.h
d9898ee8 2234 echo
2235 fi
2236 test "$ac_signal" != 0 &&
8d138742
CE
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
d9898ee8 2239 } >&5
dd184caf 2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2242 exit $exit_status
dd184caf 2243' 0
d9898ee8 2244for ac_signal in 1 2 13 15; do
b0322a85 2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2246done
2247ac_signal=0
2248
2249# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2250rm -f -r conftest* confdefs.h
d9898ee8 2251
b0322a85
CE
2252$as_echo "/* confdefs.h */" > confdefs.h
2253
d9898ee8 2254# Predefined preprocessor variables.
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_NAME "$PACKAGE_NAME"
2258_ACEOF
2259
d9898ee8 2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262_ACEOF
2263
d9898ee8 2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_VERSION "$PACKAGE_VERSION"
2266_ACEOF
2267
d9898ee8 2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_STRING "$PACKAGE_STRING"
2270_ACEOF
2271
d9898ee8 2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274_ACEOF
2275
b0322a85
CE
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_URL "$PACKAGE_URL"
2278_ACEOF
2279
d9898ee8 2280
2281# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2282# Prefer an explicitly selected file to automatically selected ones.
2283ac_site_file1=NONE
2284ac_site_file2=NONE
dd184caf 2285if test -n "$CONFIG_SITE"; then
b0322a85
CE
2286 # We do not want a PATH search for config.site.
2287 case $CONFIG_SITE in #((
2288 -*) ac_site_file1=./$CONFIG_SITE;;
2289 */*) ac_site_file1=$CONFIG_SITE;;
2290 *) ac_site_file1=./$CONFIG_SITE;;
2291 esac
dd184caf 2292elif test "x$prefix" != xNONE; then
8d138742
CE
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
dd184caf 2295else
8d138742
CE
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2298fi
8d138742 2299for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2300do
8d138742 2301 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2304$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2305 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2306 . "$ac_site_file" \
2307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309as_fn_error $? "failed to load site script $ac_site_file
2310See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2311 fi
2312done
2313
2314if test -r "$cache_file"; then
b0322a85
CE
2315 # Some versions of bash will fail to source /dev/null (special files
2316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2319$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2320 case $cache_file in
dd184caf 2321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322 *) . "./$cache_file";;
d9898ee8 2323 esac
2324 fi
2325else
b0322a85 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2327$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2328 >$cache_file
2329fi
2330
2331# Check that the precious variables saved in the cache have kept the same
2332# value.
2333ac_cache_corrupted=false
dd184caf 2334for ac_var in $ac_precious_vars; do
d9898ee8 2335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2336 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2338 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2339 case $ac_old_set,$ac_new_set in
2340 set,)
b0322a85 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2343 ac_cache_corrupted=: ;;
2344 ,set)
b0322a85 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2347 ac_cache_corrupted=: ;;
2348 ,);;
2349 *)
2350 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2351 # differences in whitespace do not lead to failure.
2352 ac_old_val_w=`echo x $ac_old_val`
2353 ac_new_val_w=`echo x $ac_new_val`
2354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2357 ac_cache_corrupted=:
2358 else
b0322a85 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2361 eval $ac_var=\$ac_old_val
2362 fi
b0322a85 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2364$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2366$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2367 fi;;
2368 esac
2369 # Pass precious variables to config.status.
2370 if test "$ac_new_set" = set; then
2371 case $ac_new_val in
8d138742 2372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2373 *) ac_arg=$ac_var=$ac_new_val ;;
2374 esac
2375 case " $ac_configure_args " in
2376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2378 esac
2379 fi
2380done
2381if $ac_cache_corrupted; then
b0322a85 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2387fi
b0322a85
CE
2388## -------------------- ##
2389## Main body of script. ##
2390## -------------------- ##
d9898ee8 2391
dd184caf 2392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2397
2398
2399
2400>confdefs.h # Kill PACKAGE_ macros
2401
2402
d9898ee8 2403ac_aux_dir=
b0322a85 2404for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2405 if test -f "$ac_dir/install-sh"; then
d9898ee8 2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2408 break
dd184caf 2409 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2412 break
dd184caf 2413 elif test -f "$ac_dir/shtool"; then
d9898ee8 2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2416 break
2417 fi
2418done
2419if test -z "$ac_aux_dir"; then
b0322a85 2420 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2421fi
dd184caf 2422
2423# These three variables are undocumented and unsupported,
2424# and are intended to be withdrawn in a future Autoconf release.
2425# They can cause serious problems if a builder's source tree is in a directory
2426# whose full name contains unusual characters.
2427ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2428ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2429ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430
d9898ee8 2431
b0322a85
CE
2432am__api_version='1.13'
2433
d9898ee8 2434# Find a good install program. We prefer a C program (faster),
2435# so one script is as good as another. But avoid the broken or
2436# incompatible versions:
2437# SysV /etc/install, /usr/sbin/install
2438# SunOS /usr/etc/install
2439# IRIX /sbin/install
2440# AIX /bin/install
2441# AmigaOS /C/install, which installs bootblocks on floppy discs
2442# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445# OS/2's system install, which has a completely different semantic
2446# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2447# Reject install programs that cannot install multiple files.
b0322a85 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2449$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2450if test -z "$INSTALL"; then
b0322a85 2451if ${ac_cv_path_install+:} false; then :
8d138742 2452 $as_echo_n "(cached) " >&6
d9898ee8 2453else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
b0322a85
CE
2459 # Account for people who put trailing slashes in PATH elements.
2460case $as_dir/ in #((
2461 ./ | .// | /[cC]/* | \
d9898ee8 2462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2463 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2464 /usr/ucb/* ) ;;
2465 *)
2466 # OSF1 and SCO ODT 3.0 have their own names for install.
2467 # Don't use installbsd from OSF since it installs stuff as root
2468 # by default.
2469 for ac_prog in ginstall scoinst install; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2471 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2472 if test $ac_prog = install &&
2473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # AIX install. It has an incompatible calling convention.
2475 :
2476 elif test $ac_prog = install &&
2477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # program-specific install script used by HP pwplus--don't use.
2479 :
2480 else
8d138742
CE
2481 rm -rf conftest.one conftest.two conftest.dir
2482 echo one > conftest.one
2483 echo two > conftest.two
2484 mkdir conftest.dir
2485 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486 test -s conftest.one && test -s conftest.two &&
2487 test -s conftest.dir/conftest.one &&
2488 test -s conftest.dir/conftest.two
2489 then
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491 break 3
2492 fi
d9898ee8 2493 fi
2494 fi
2495 done
2496 done
2497 ;;
2498esac
8d138742 2499
b0322a85 2500 done
dd184caf 2501IFS=$as_save_IFS
d9898ee8 2502
8d138742 2503rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2504
2505fi
2506 if test "${ac_cv_path_install+set}" = set; then
2507 INSTALL=$ac_cv_path_install
2508 else
dd184caf 2509 # As a last resort, use the slow shell script. Don't cache a
2510 # value for INSTALL within a source directory, because that will
d9898ee8 2511 # break other packages using the cache if that directory is
dd184caf 2512 # removed, or if the value is a relative name.
d9898ee8 2513 INSTALL=$ac_install_sh
2514 fi
2515fi
b0322a85 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2517$as_echo "$INSTALL" >&6; }
d9898ee8 2518
2519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520# It thinks the first close brace ends the variable substitution.
2521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2522
2523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2524
2525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2526
b0322a85 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2528$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2529# Reject unsafe characters in $srcdir or the absolute working directory
2530# name. Accept space and tab only in the latter.
2531am_lf='
2532'
2533case `pwd` in
2534 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2535 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2536esac
2537case $srcdir in
2538 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2539 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2540esac
2541
b0322a85 2542# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2543# arguments. Must try -L first in case configure is actually a
2544# symlink; some systems play weird games with the mod time of symlinks
2545# (eg FreeBSD returns the mod time of the symlink's containing
2546# directory).
2547if (
b0322a85
CE
2548 am_has_slept=no
2549 for am_try in 1 2; do
2550 echo "timestamp, slept: $am_has_slept" > conftest.file
2551 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2552 if test "$*" = "X"; then
2553 # -L didn't work.
2554 set X `ls -t "$srcdir/configure" conftest.file`
2555 fi
2556 if test "$*" != "X $srcdir/configure conftest.file" \
2557 && test "$*" != "X conftest.file $srcdir/configure"; then
2558
2559 # If neither matched, then we have a broken ls. This can happen
2560 # if, for instance, CONFIG_SHELL is bash and it inherits a
2561 # broken ls alias from the environment. This has actually
2562 # happened. Such a system could not be considered "sane".
2563 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2564 alias in your environment" "$LINENO" 5
2565 fi
2566 if test "$2" = conftest.file || test $am_try -eq 2; then
2567 break
2568 fi
2569 # Just in case.
2570 sleep 1
2571 am_has_slept=yes
2572 done
d9898ee8 2573 test "$2" = conftest.file
2574 )
2575then
2576 # Ok.
2577 :
2578else
b0322a85
CE
2579 as_fn_error $? "newly created file is older than distributed files!
2580Check your system clock" "$LINENO" 5
d9898ee8 2581fi
b0322a85 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2583$as_echo "yes" >&6; }
b0322a85
CE
2584# If we didn't sleep, we still need to ensure time stamps of config.status and
2585# generated files are strictly newer.
2586am_sleep_pid=
2587if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2588 ( sleep 1 ) &
2589 am_sleep_pid=$!
2590fi
2591
2592rm -f conftest.file
2593
d9898ee8 2594test "$program_prefix" != NONE &&
dd184caf 2595 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2596# Use a double $ so make ignores it.
2597test "$program_suffix" != NONE &&
dd184caf 2598 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2599# Double any \ or $.
d9898ee8 2600# By default was `s,x,x', remove it if useless.
8d138742
CE
2601ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2603
2604# expand $ac_aux_dir to an absolute path
2605am_aux_dir=`cd $ac_aux_dir && pwd`
2606
8d138742
CE
2607if test x"${MISSING+set}" != xset; then
2608 case $am_aux_dir in
2609 *\ * | *\ *)
2610 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2611 *)
2612 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2613 esac
2614fi
d9898ee8 2615# Use eval to expand $SHELL
b0322a85
CE
2616if eval "$MISSING --is-lightweight"; then
2617 am_missing_run="$MISSING "
d9898ee8 2618else
2619 am_missing_run=
b0322a85
CE
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2621$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2622fi
2623
2624if test x"${install_sh}" != xset; then
2625 case $am_aux_dir in
2626 *\ * | *\ *)
2627 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2628 *)
2629 install_sh="\${SHELL} $am_aux_dir/install-sh"
2630 esac
2631fi
2632
b0322a85
CE
2633# Installed binaries are usually stripped using 'strip' when the user
2634# run "make install-strip". However 'strip' might not be the right
8d138742 2635# tool to use in cross-compilation environments, therefore Automake
b0322a85 2636# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2637if test "$cross_compiling" != no; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2642$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2643if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test -n "$STRIP"; then
2647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
b0322a85
CE
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2658 break 2
2659 fi
2660done
b0322a85 2661 done
8d138742
CE
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666STRIP=$ac_cv_prog_STRIP
2667if test -n "$STRIP"; then
b0322a85 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2669$as_echo "$STRIP" >&6; }
2670else
b0322a85 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676fi
2677if test -z "$ac_cv_prog_STRIP"; then
2678 ac_ct_STRIP=$STRIP
2679 # Extract the first word of "strip", so it can be a program name with args.
2680set dummy strip; ac_word=$2
b0322a85 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2682$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2683if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2684 $as_echo_n "(cached) " >&6
2685else
2686 if test -n "$ac_ct_STRIP"; then
2687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
b0322a85
CE
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2696 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2698 break 2
2699 fi
2700done
b0322a85 2701 done
8d138742
CE
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2707if test -n "$ac_ct_STRIP"; then
b0322a85 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2709$as_echo "$ac_ct_STRIP" >&6; }
2710else
b0322a85 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2712$as_echo "no" >&6; }
2713fi
2714
2715 if test "x$ac_ct_STRIP" = x; then
2716 STRIP=":"
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719yes:)
b0322a85 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722ac_tool_warned=yes ;;
2723esac
2724 STRIP=$ac_ct_STRIP
2725 fi
2726else
2727 STRIP="$ac_cv_prog_STRIP"
2728fi
2729
d9898ee8 2730fi
8d138742 2731INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2732
b0322a85 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2734$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2735if test -z "$MKDIR_P"; then
b0322a85 2736 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2737 $as_echo_n "(cached) " >&6
dd184caf 2738else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2741do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
b0322a85 2744 for ac_prog in mkdir gmkdir; do
dd184caf 2745 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2746 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2747 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748 'mkdir (GNU coreutils) '* | \
2749 'mkdir (coreutils) '* | \
2750 'mkdir (fileutils) '4.1*)
2751 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 break 3;;
2753 esac
2754 done
2755 done
b0322a85 2756 done
dd184caf 2757IFS=$as_save_IFS
2758
2759fi
2760
b0322a85 2761 test -d ./--version && rmdir ./--version
dd184caf 2762 if test "${ac_cv_path_mkdir+set}" = set; then
2763 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2764 else
dd184caf 2765 # As a last resort, use the slow shell script. Don't cache a
2766 # value for MKDIR_P within a source directory, because that will
2767 # break other packages using the cache if that directory is
2768 # removed, or if the value is a relative name.
dd184caf 2769 MKDIR_P="$ac_install_sh -d"
d9898ee8 2770 fi
2771fi
b0322a85 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2773$as_echo "$MKDIR_P" >&6; }
dd184caf 2774
d9898ee8 2775for ac_prog in gawk mawk nawk awk
2776do
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
b0322a85 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2780$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2781if ${ac_cv_prog_AWK+:} false; then :
8d138742 2782 $as_echo_n "(cached) " >&6
d9898ee8 2783else
2784 if test -n "$AWK"; then
2785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
b0322a85
CE
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2794 ac_cv_prog_AWK="$ac_prog"
b0322a85 2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2796 break 2
2797 fi
2798done
b0322a85 2799 done
dd184caf 2800IFS=$as_save_IFS
d9898ee8 2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
b0322a85 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2807$as_echo "$AWK" >&6; }
d9898ee8 2808else
b0322a85 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2810$as_echo "no" >&6; }
d9898ee8 2811fi
2812
dd184caf 2813
d9898ee8 2814 test -n "$AWK" && break
2815done
2816
b0322a85 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819set x ${MAKE-make}
2820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2821if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2822 $as_echo_n "(cached) " >&6
d9898ee8 2823else
2824 cat >conftest.make <<\_ACEOF
dd184caf 2825SHELL = /bin/sh
d9898ee8 2826all:
dd184caf 2827 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2828_ACEOF
b0322a85 2829# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2830case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831 *@@@%%%=?*=@@@%%%*)
2832 eval ac_cv_prog_make_${ac_make}_set=yes;;
2833 *)
2834 eval ac_cv_prog_make_${ac_make}_set=no;;
2835esac
d9898ee8 2836rm -f conftest.make
2837fi
dd184caf 2838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2840$as_echo "yes" >&6; }
d9898ee8 2841 SET_MAKE=
2842else
b0322a85 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2844$as_echo "no" >&6; }
d9898ee8 2845 SET_MAKE="MAKE=${MAKE-make}"
2846fi
2847
2848rm -rf .tst 2>/dev/null
2849mkdir .tst 2>/dev/null
2850if test -d .tst; then
2851 am__leading_dot=.
2852else
2853 am__leading_dot=_
2854fi
2855rmdir .tst 2>/dev/null
2856
b0322a85
CE
2857# Check whether --enable-silent-rules was given.
2858if test "${enable_silent_rules+set}" = set; then :
2859 enableval=$enable_silent_rules;
2860fi
2861
2862case $enable_silent_rules in # (((
2863 yes) AM_DEFAULT_VERBOSITY=0;;
2864 no) AM_DEFAULT_VERBOSITY=1;;
2865 *) AM_DEFAULT_VERBOSITY=1;;
2866esac
2867am_make=${MAKE-make}
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2869$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2870if ${am_cv_make_support_nested_variables+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 if $as_echo 'TRUE=$(BAR$(V))
2874BAR0=false
2875BAR1=true
2876V=1
2877am__doit:
2878 @$(TRUE)
2879.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2880 am_cv_make_support_nested_variables=yes
2881else
2882 am_cv_make_support_nested_variables=no
2883fi
2884fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2886$as_echo "$am_cv_make_support_nested_variables" >&6; }
2887if test $am_cv_make_support_nested_variables = yes; then
2888 AM_V='$(V)'
2889 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2890else
2891 AM_V=$AM_DEFAULT_VERBOSITY
2892 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2893fi
2894AM_BACKSLASH='\'
2895
dd184caf 2896if test "`cd $srcdir && pwd`" != "`pwd`"; then
2897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2898 # is not polluted with repeated "-I."
2899 am__isrc=' -I$(srcdir)'
2900 # test to see if srcdir already configured
2901 if test -f $srcdir/config.status; then
b0322a85 2902 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2903 fi
d9898ee8 2904fi
2905
2906# test whether we have cygpath
2907if test -z "$CYGPATH_W"; then
2908 if (cygpath --version) >/dev/null 2>/dev/null; then
2909 CYGPATH_W='cygpath -w'
2910 else
2911 CYGPATH_W=echo
2912 fi
2913fi
2914
2915
2916# Define the identity of the package.
2917 PACKAGE='gdbmobj'
2918 VERSION='0.10'
2919
2920
2921# Some tools Automake needs.
2922
2923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
b0322a85
CE
2937# For better backward compatibility. To be removed once Automake 1.9.x
2938# dies out for good. For more background, see:
2939# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941mkdir_p='$(MKDIR_P)'
2942
8d138742
CE
2943# We need awk for the "check" target. The system "awk" is bad on
2944# some platforms.
b0322a85
CE
2945# Always define AMTAR for backward compatibility. Yes, it's still used
2946# in the wild :-( We should find a proper way to deprecate it ...
2947AMTAR='$${TAR-tar}'
2948
d9898ee8 2949
b0322a85
CE
2950# We'll loop over all known methods to create a tar archive until one works.
2951_am_tools='gnutar pax cpio none'
2952
2953am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8d138742 2954
8d138742
CE
2955
2956
2957
2958
2959
2960ac_config_headers="$ac_config_headers config.h"
2961
2962
2963DEPDIR="${am__leading_dot}deps"
2964
2965ac_config_commands="$ac_config_commands depfiles"
2966
2967
2968am_make=${MAKE-make}
2969cat > confinc << 'END'
2970am__doit:
2971 @echo this is the am__doit target
2972.PHONY: am__doit
2973END
2974# If we don't find an include directive, just comment out the code.
b0322a85 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742
CE
2976$as_echo_n "checking for style of include used by $am_make... " >&6; }
2977am__include="#"
2978am__quote=
2979_am_result=none
2980# First try GNU make style include.
2981echo "include confinc" > confmf
b0322a85 2982# Ignore all kinds of additional output from 'make'.
8d138742
CE
2983case `$am_make -s -f confmf 2> /dev/null` in #(
2984*the\ am__doit\ target*)
2985 am__include=include
2986 am__quote=
2987 _am_result=GNU
2988 ;;
2989esac
2990# Now try BSD make style include.
2991if test "$am__include" = "#"; then
2992 echo '.include "confinc"' > confmf
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=.include
2996 am__quote="\""
2997 _am_result=BSD
2998 ;;
2999 esac
3000fi
3001
3002
b0322a85 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742
CE
3004$as_echo "$_am_result" >&6; }
3005rm -f confinc confmf
3006
3007# Check whether --enable-dependency-tracking was given.
b0322a85 3008if test "${enable_dependency_tracking+set}" = set; then :
8d138742
CE
3009 enableval=$enable_dependency_tracking;
3010fi
3011
3012if test "x$enable_dependency_tracking" != xno; then
3013 am_depcomp="$ac_aux_dir/depcomp"
3014 AMDEPBACKSLASH='\'
b0322a85 3015 am__nodep='_no'
8d138742
CE
3016fi
3017 if test "x$enable_dependency_tracking" != xno; then
3018 AMDEP_TRUE=
3019 AMDEP_FALSE='#'
d9898ee8 3020else
8d138742
CE
3021 AMDEP_TRUE='#'
3022 AMDEP_FALSE=
3023fi
3024
3025
3026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3035$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3036if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
b0322a85
CE
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3051 break 2
3052 fi
3053done
b0322a85 3054 done
dd184caf 3055IFS=$as_save_IFS
d9898ee8 3056
3057fi
3058fi
8d138742
CE
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
b0322a85 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3062$as_echo "$CC" >&6; }
d9898ee8 3063else
b0322a85 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3065$as_echo "no" >&6; }
d9898ee8 3066fi
3067
dd184caf 3068
d9898ee8 3069fi
8d138742
CE
3070if test -z "$ac_cv_prog_CC"; then
3071 ac_ct_CC=$CC
3072 # Extract the first word of "gcc", so it can be a program name with args.
3073set dummy gcc; ac_word=$2
b0322a85 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3075$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3076if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3077 $as_echo_n "(cached) " >&6
d9898ee8 3078else
8d138742
CE
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
b0322a85
CE
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3089 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3091 break 2
3092 fi
3093done
b0322a85 3094 done
dd184caf 3095IFS=$as_save_IFS
d9898ee8 3096
d9898ee8 3097fi
3098fi
8d138742
CE
3099ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100if test -n "$ac_ct_CC"; then
b0322a85 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3102$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3103else
b0322a85 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3105$as_echo "no" >&6; }
d9898ee8 3106fi
3107
8d138742
CE
3108 if test "x$ac_ct_CC" = x; then
3109 CC=""
dd184caf 3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112yes:)
b0322a85 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3115ac_tool_warned=yes ;;
3116esac
8d138742 3117 CC=$ac_ct_CC
dd184caf 3118 fi
d9898ee8 3119else
8d138742 3120 CC="$ac_cv_prog_CC"
d9898ee8 3121fi
3122
3123if test -z "$CC"; then
dd184caf 3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3126set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3128$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3129if ${ac_cv_prog_CC+:} false; then :
8d138742 3130 $as_echo_n "(cached) " >&6
d9898ee8 3131else
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
b0322a85
CE
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3142 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3144 break 2
3145 fi
3146done
b0322a85 3147 done
dd184caf 3148IFS=$as_save_IFS
d9898ee8 3149
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
b0322a85 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3155$as_echo "$CC" >&6; }
d9898ee8 3156else
b0322a85 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3158$as_echo "no" >&6; }
d9898ee8 3159fi
3160
d9898ee8 3161
dd184caf 3162 fi
d9898ee8 3163fi
3164if test -z "$CC"; then
3165 # Extract the first word of "cc", so it can be a program name with args.
3166set dummy cc; ac_word=$2
b0322a85 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3168$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3169if ${ac_cv_prog_CC+:} false; then :
8d138742 3170 $as_echo_n "(cached) " >&6
d9898ee8 3171else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174else
3175 ac_prog_rejected=no
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
b0322a85
CE
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3184 ac_prog_rejected=yes
3185 continue
3186 fi
3187 ac_cv_prog_CC="cc"
b0322a85 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3189 break 2
3190 fi
3191done
b0322a85 3192 done
dd184caf 3193IFS=$as_save_IFS
d9898ee8 3194
3195if test $ac_prog_rejected = yes; then
3196 # We found a bogon in the path, so make sure we never use it.
3197 set dummy $ac_cv_prog_CC
3198 shift
3199 if test $# != 0; then
3200 # We chose a different compiler from the bogus one.
3201 # However, it has the same basename, so the bogon will be chosen
3202 # first if we set CC to just the basename; use the full file name.
3203 shift
3204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3205 fi
3206fi
3207fi
3208fi
3209CC=$ac_cv_prog_CC
3210if test -n "$CC"; then
b0322a85 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3212$as_echo "$CC" >&6; }
d9898ee8 3213else
b0322a85 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3215$as_echo "no" >&6; }
d9898ee8 3216fi
3217
dd184caf 3218
d9898ee8 3219fi
3220if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
dd184caf 3222 for ac_prog in cl.exe
d9898ee8 3223 do
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3227$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3228if ${ac_cv_prog_CC+:} false; then :
8d138742 3229 $as_echo_n "(cached) " >&6
d9898ee8 3230else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
b0322a85
CE
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3243 break 2
3244 fi
3245done
b0322a85 3246 done
dd184caf 3247IFS=$as_save_IFS
d9898ee8 3248
3249fi
3250fi
3251CC=$ac_cv_prog_CC
3252if test -n "$CC"; then
b0322a85 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3254$as_echo "$CC" >&6; }
d9898ee8 3255else
b0322a85 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3257$as_echo "no" >&6; }
d9898ee8 3258fi
3259
dd184caf 3260
d9898ee8 3261 test -n "$CC" && break
3262 done
3263fi
3264if test -z "$CC"; then
3265 ac_ct_CC=$CC
dd184caf 3266 for ac_prog in cl.exe
d9898ee8 3267do
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269set dummy $ac_prog; ac_word=$2
b0322a85 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3271$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3272if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3273 $as_echo_n "(cached) " >&6
d9898ee8 3274else
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
b0322a85
CE
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3285 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3287 break 2
3288 fi
3289done
b0322a85 3290 done
dd184caf 3291IFS=$as_save_IFS
d9898ee8 3292
3293fi
3294fi
3295ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296if test -n "$ac_ct_CC"; then
b0322a85 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3298$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3299else
b0322a85 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3301$as_echo "no" >&6; }
d9898ee8 3302fi
3303
dd184caf 3304
d9898ee8 3305 test -n "$ac_ct_CC" && break
3306done
3307
dd184caf 3308 if test "x$ac_ct_CC" = x; then
3309 CC=""
3310 else
3311 case $cross_compiling:$ac_tool_warned in
3312yes:)
b0322a85 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3315ac_tool_warned=yes ;;
3316esac
3317 CC=$ac_ct_CC
3318 fi
d9898ee8 3319fi
3320
3321fi
3322
3323
b0322a85 3324test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3326as_fn_error $? "no acceptable C compiler found in \$PATH
3327See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3328
3329# Provide some information about the compiler.
b0322a85 3330$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3331set X $ac_compile
3332ac_compiler=$2
b0322a85
CE
3333for ac_option in --version -v -V -qversion; do
3334 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
b0322a85
CE
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3342 ac_status=$?
b0322a85
CE
3343 if test -s conftest.err; then
3344 sed '10a\
3345... rest of stderr output deleted ...
3346 10q' conftest.err >conftest.er1
3347 cat conftest.er1 >&5
3348 fi
3349 rm -f conftest.er1 conftest.err
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3352done
d9898ee8 3353
b0322a85 3354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365ac_clean_files_save=$ac_clean_files
8d138742 3366ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3367# Try to create an executable without -o first, disregard a.out.
3368# It will help us diagnose broken compilers, and finding out an intuition
3369# of exeext.
b0322a85
CE
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3371$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3372ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3373
3374# The possible output files:
3375ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3376
dd184caf 3377ac_rmfiles=
3378for ac_file in $ac_files
3379do
3380 case $ac_file in
8d138742 3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3383 esac
3384done
3385rm -f $ac_rmfiles
3386
b0322a85 3387if { { ac_try="$ac_link_default"
dd184caf 3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
b0322a85
CE
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
dd184caf 3394 (eval "$ac_link_default") 2>&5
d9898ee8 3395 ac_status=$?
b0322a85
CE
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
dd184caf 3398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3399# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3400# in a Makefile. We should not override ac_cv_exeext if it was cached,
3401# so that the user can short-circuit this test for compilers unknown to
3402# Autoconf.
3403for ac_file in $ac_files ''
d9898ee8 3404do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
8d138742 3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3408 ;;
3409 [ab].out )
3410 # We found the default executable, but exeext='' is most
3411 # certainly right.
3412 break;;
3413 *.* )
b0322a85 3414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3415 then :; else
3416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 fi
3418 # We set ac_cv_exeext here because the later test for it is not
3419 # safe: cross compilers may not add the suffix if given an `-o'
3420 # argument, so we may need to know it at that point already.
3421 # Even if this section looks crufty: it has the advantage of
3422 # actually working.
d9898ee8 3423 break;;
3424 * )
3425 break;;
3426 esac
3427done
dd184caf 3428test "$ac_cv_exeext" = no && ac_cv_exeext=
3429
d9898ee8 3430else
dd184caf 3431 ac_file=''
3432fi
b0322a85
CE
3433if test -z "$ac_file"; then :
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436$as_echo "$as_me: failed program was:" >&5
d9898ee8 3437sed 's/^/| /' conftest.$ac_ext >&5
3438
b0322a85 3439{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3441as_fn_error 77 "C compiler cannot create executables
3442See \`config.log' for more details" "$LINENO" 5; }
3443else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445$as_echo "yes" >&6; }
d9898ee8 3446fi
b0322a85
CE
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3448$as_echo_n "checking for C compiler default output file name... " >&6; }
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3450$as_echo "$ac_file" >&6; }
d9898ee8 3451ac_exeext=$ac_cv_exeext
d9898ee8 3452
8d138742 3453rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3454ac_clean_files=$ac_clean_files_save
b0322a85 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3456$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3457if { { ac_try="$ac_link"
dd184caf 3458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
b0322a85
CE
3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463$as_echo "$ac_try_echo"; } >&5
dd184caf 3464 (eval "$ac_link") 2>&5
d9898ee8 3465 ac_status=$?
b0322a85
CE
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
d9898ee8 3468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3469# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3470# work properly (i.e., refer to `conftest.exe'), while it won't with
3471# `rm'.
3472for ac_file in conftest.exe conftest conftest.*; do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
8d138742 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3477 break;;
3478 * ) break;;
3479 esac
3480done
3481else
b0322a85 3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3484as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3485See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3486fi
b0322a85
CE
3487rm -f conftest conftest$ac_cv_exeext
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3489$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3490
3491rm -f conftest.$ac_ext
3492EXEEXT=$ac_cv_exeext
3493ac_exeext=$EXEEXT
b0322a85
CE
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h. */
3496#include <stdio.h>
3497int
3498main ()
3499{
3500FILE *f = fopen ("conftest.out", "w");
3501 return ferror (f) || fclose (f) != 0;
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507ac_clean_files="$ac_clean_files conftest.out"
3508# Check that the compiler produces executables we can run. If not, either
3509# the compiler is broken, or we cross compile.
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3511$as_echo_n "checking whether we are cross compiling... " >&6; }
3512if test "$cross_compiling" != yes; then
3513 { { ac_try="$ac_link"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }
3524 if { ac_try='./conftest$ac_cv_exeext'
3525 { { case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_try") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; }; then
3535 cross_compiling=no
3536 else
3537 if test "$cross_compiling" = maybe; then
3538 cross_compiling=yes
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542as_fn_error $? "cannot run C compiled programs.
3543If you meant to cross compile, use \`--host'.
3544See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 fi
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3549$as_echo "$cross_compiling" >&6; }
3550
3551rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3552ac_clean_files=$ac_clean_files_save
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3554$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3555if ${ac_cv_objext+:} false; then :
8d138742 3556 $as_echo_n "(cached) " >&6
d9898ee8 3557else
b0322a85 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
3569rm -f conftest.o conftest.obj
b0322a85 3570if { { ac_try="$ac_compile"
dd184caf 3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
b0322a85
CE
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
dd184caf 3577 (eval "$ac_compile") 2>&5
d9898ee8 3578 ac_status=$?
b0322a85
CE
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
dd184caf 3581 for ac_file in conftest.o conftest.obj conftest.*; do
3582 test -f "$ac_file" || continue;
d9898ee8 3583 case $ac_file in
8d138742 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3586 break;;
3587 esac
3588done
3589else
8d138742 3590 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3591sed 's/^/| /' conftest.$ac_ext >&5
3592
b0322a85 3593{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3595as_fn_error $? "cannot compute suffix of object files: cannot compile
3596See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3597fi
d9898ee8 3598rm -f conftest.$ac_cv_objext conftest.$ac_ext
3599fi
b0322a85 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3601$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3602OBJEXT=$ac_cv_objext
3603ac_objext=$OBJEXT
b0322a85 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3606if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3607 $as_echo_n "(cached) " >&6
d9898ee8 3608else
b0322a85 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3610/* end confdefs.h. */
3611
3612int
3613main ()
3614{
3615#ifndef __GNUC__
3616 choke me
3617#endif
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
b0322a85 3623if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3624 ac_compiler_gnu=yes
3625else
b0322a85 3626 ac_compiler_gnu=no
d9898ee8 3627fi
dd184caf 3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3629ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630
3631fi
b0322a85 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636else
3637 GCC=
3638fi
d9898ee8 3639ac_test_CFLAGS=${CFLAGS+set}
3640ac_save_CFLAGS=$CFLAGS
b0322a85 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3642$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3643if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3644 $as_echo_n "(cached) " >&6
d9898ee8 3645else
dd184caf 3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3648 ac_cv_prog_cc_g=no
3649 CFLAGS="-g"
b0322a85 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
b0322a85 3661if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3662 ac_cv_prog_cc_g=yes
3663else
b0322a85
CE
3664 CFLAGS=""
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
b0322a85 3676if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3677
b0322a85
CE
3678else
3679 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3680 CFLAGS="-g"
b0322a85 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
b0322a85 3692if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3693 ac_cv_prog_cc_g=yes
dd184caf 3694fi
dd184caf 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
dd184caf 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3698fi
dd184caf 3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3701fi
b0322a85 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3703$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3704if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3708 CFLAGS="-g -O2"
3709 else
3710 CFLAGS="-g"
3711 fi
3712else
3713 if test "$GCC" = yes; then
3714 CFLAGS="-O2"
3715 else
3716 CFLAGS=
3717 fi
3718fi
b0322a85 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3721if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3722 $as_echo_n "(cached) " >&6
d9898ee8 3723else
dd184caf 3724 ac_cv_prog_cc_c89=no
d9898ee8 3725ac_save_CC=$CC
b0322a85 3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3727/* end confdefs.h. */
3728#include <stdarg.h>
3729#include <stdio.h>
b0322a85 3730struct stat;
d9898ee8 3731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732struct buf { int x; };
3733FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734static char *e (p, i)
3735 char **p;
3736 int i;
3737{
3738 return p[i];
3739}
3740static char *f (char * (*g) (char **, int), char **p, ...)
3741{
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748}
3749
3750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3753 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3756 that's true only with -std. */
d9898ee8 3757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758
dd184caf 3759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761#define FOO(x) 'x'
3762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763
d9898ee8 3764int test (int i, double x);
3765struct s1 {int (*f) (int a);};
3766struct s2 {int (*f) (double a);};
3767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768int argc;
3769char **argv;
3770int
3771main ()
3772{
3773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 ;
3775 return 0;
3776}
3777_ACEOF
dd184caf 3778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3780do
3781 CC="$ac_save_CC $ac_arg"
b0322a85 3782 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3783 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3784fi
dd184caf 3785rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3787done
dd184caf 3788rm -f conftest.$ac_ext
d9898ee8 3789CC=$ac_save_CC
3790
3791fi
dd184caf 3792# AC_CACHE_VAL
3793case "x$ac_cv_prog_cc_c89" in
3794 x)
b0322a85 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3796$as_echo "none needed" >&6; } ;;
dd184caf 3797 xno)
b0322a85 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3799$as_echo "unsupported" >&6; } ;;
d9898ee8 3800 *)
dd184caf 3801 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3804esac
b0322a85 3805if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3806
b0322a85 3807fi
d9898ee8 3808
d9898ee8 3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 3814
d9898ee8 3815depcc="$CC" am_compiler_list=
3816
b0322a85 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3818$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3819if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3820 $as_echo_n "(cached) " >&6
d9898ee8 3821else
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823 # We make a subdir and do the tests there. Otherwise we can end up
3824 # making bogus files that we don't know about and never remove. For
3825 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3826 # making a dummy file named 'D' -- because '-MD' means "put the output
3827 # in D".
3828 rm -rf conftest.dir
d9898ee8 3829 mkdir conftest.dir
3830 # Copy depcomp to subdir because otherwise we won't find it if we're
3831 # using a relative directory.
3832 cp "$am_depcomp" conftest.dir
3833 cd conftest.dir
3834 # We will build objects and dependencies in a subdirectory because
3835 # it helps to detect inapplicable dependency modes. For instance
3836 # both Tru64's cc and ICC support -MD to output dependencies as a
3837 # side effect of compilation, but ICC will put the dependencies in
3838 # the current directory while Tru64 will put them in the object
3839 # directory.
3840 mkdir sub
3841
3842 am_cv_CC_dependencies_compiler_type=none
3843 if test "$am_compiler_list" = ""; then
3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 fi
8d138742
CE
3846 am__universal=false
3847 case " $depcc " in #(
3848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3849 esac
3850
d9898ee8 3851 for depmode in $am_compiler_list; do
3852 # Setup a source with many dependencies, because some compilers
3853 # like to wrap large dependency lists on column 80 (with \), and
3854 # we should not choose a depcomp mode which is confused by this.
3855 #
3856 # We need to recreate these files for each test, as the compiler may
3857 # overwrite some of them when testing with obscure command lines.
3858 # This happens at least with the AIX C compiler.
3859 : > sub/conftest.c
3860 for i in 1 2 3 4 5 6; do
3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3863 # Solaris 10 /bin/sh.
3864 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3865 done
3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3867
b0322a85 3868 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3869 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3870 # handle '-M -o', and we need to detect this. Also, some Intel
3871 # versions had trouble with output in subdirs.
8d138742
CE
3872 am__obj=sub/conftest.${OBJEXT-o}
3873 am__minus_obj="-o $am__obj"
d9898ee8 3874 case $depmode in
8d138742
CE
3875 gcc)
3876 # This depmode causes a compiler race in universal mode.
3877 test "$am__universal" = false || continue
3878 ;;
d9898ee8 3879 nosideeffect)
b0322a85
CE
3880 # After this tag, mechanisms are not by side-effect, so they'll
3881 # only be used when explicitly requested.
d9898ee8 3882 if test "x$enable_dependency_tracking" = xyes; then
3883 continue
3884 else
3885 break
3886 fi
3887 ;;
b0322a85
CE
3888 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3889 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3890 # not run yet. These depmodes are late enough in the game, and
3891 # so weak that their functioning should not be impacted.
3892 am__obj=conftest.${OBJEXT-o}
3893 am__minus_obj=
3894 ;;
d9898ee8 3895 none) break ;;
3896 esac
d9898ee8 3897 if depmode=$depmode \
8d138742 3898 source=sub/conftest.c object=$am__obj \
d9898ee8 3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3901 >/dev/null 2>conftest.err &&
dd184caf 3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3906 # icc doesn't choke on unknown options, it will just issue warnings
3907 # or remarks (even with -Werror). So we grep stderr for any message
3908 # that says an option was ignored or not supported.
3909 # When given -MP, icc 7.0 and 7.1 complain thusly:
3910 # icc: Command line warning: ignoring option '-M'; no argument required
3911 # The diagnosis changed in icc 8.0:
3912 # icc: Command line remark: option '-MP' not supported
3913 if (grep 'ignoring option' conftest.err ||
3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3915 am_cv_CC_dependencies_compiler_type=$depmode
3916 break
3917 fi
3918 fi
3919 done
3920
3921 cd ..
3922 rm -rf conftest.dir
3923else
3924 am_cv_CC_dependencies_compiler_type=none
3925fi
3926
3927fi
b0322a85 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3929$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3930CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3931
dd184caf 3932 if
d9898ee8 3933 test "x$enable_dependency_tracking" != xno \
3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935 am__fastdepCC_TRUE=
3936 am__fastdepCC_FALSE='#'
3937else
3938 am__fastdepCC_TRUE='#'
3939 am__fastdepCC_FALSE=
3940fi
3941
3942
3943
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742 3950$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 3951# On Suns, sometimes $CPP names a directory.
3952if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3954fi
3955if test -z "$CPP"; then
b0322a85 3956 if ${ac_cv_prog_CPP+:} false; then :
8d138742 3957 $as_echo_n "(cached) " >&6
d9898ee8 3958else
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 do
3962 ac_preproc_ok=false
3963for ac_c_preproc_warn_flag in '' yes
3964do
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3972/* end confdefs.h. */
3973#ifdef __STDC__
3974# include <limits.h>
3975#else
3976# include <assert.h>
3977#endif
3978 Syntax error
3979_ACEOF
b0322a85 3980if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3981
b0322a85 3982else
d9898ee8 3983 # Broken: fails on valid input.
3984continue
3985fi
b0322a85 3986rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 3987
dd184caf 3988 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3989 # can be detected and how.
b0322a85 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3991/* end confdefs.h. */
3992#include <ac_nonexistent.h>
3993_ACEOF
b0322a85 3994if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3995 # Broken: success on invalid input.
3996continue
3997else
d9898ee8 3998 # Passes both tests.
3999ac_preproc_ok=:
4000break
4001fi
b0322a85 4002rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4003
4004done
4005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
4006rm -f conftest.i conftest.err conftest.$ac_ext
4007if $ac_preproc_ok; then :
d9898ee8 4008 break
4009fi
4010
4011 done
4012 ac_cv_prog_CPP=$CPP
4013
4014fi
4015 CPP=$ac_cv_prog_CPP
4016else
4017 ac_cv_prog_CPP=$CPP
4018fi
b0322a85 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742 4020$as_echo "$CPP" >&6; }
d9898ee8 4021ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4031/* end confdefs.h. */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037 Syntax error
4038_ACEOF
b0322a85 4039if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4040
b0322a85 4041else
d9898ee8 4042 # Broken: fails on valid input.
4043continue
4044fi
b0322a85 4045rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4046
dd184caf 4047 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4048 # can be detected and how.
b0322a85 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4050/* end confdefs.h. */
4051#include <ac_nonexistent.h>
4052_ACEOF
b0322a85 4053if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 4054 # Broken: success on invalid input.
4055continue
4056else
d9898ee8 4057 # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
b0322a85 4061rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
4065rm -f conftest.i conftest.err conftest.$ac_ext
4066if $ac_preproc_ok; then :
4067
d9898ee8 4068else
b0322a85 4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 4070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
4071as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4072See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 4073fi
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
b0322a85 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4083$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4084if ${ac_cv_path_GREP+:} false; then :
8d138742 4085 $as_echo_n "(cached) " >&6
dd184caf 4086else
8d138742 4087 if test -z "$GREP"; then
dd184caf 4088 ac_path_GREP_found=false
8d138742
CE
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
b0322a85 4095 for ac_prog in grep ggrep; do
8d138742
CE
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4098 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4099# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4100 # Check for GNU $ac_path_GREP
4101case `"$ac_path_GREP" --version 2>&1` in
4102*GNU*)
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104*)
4105 ac_count=0
8d138742 4106 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
8d138742 4112 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125esac
4126
8d138742
CE
4127 $ac_path_GREP_found && break 3
4128 done
dd184caf 4129 done
b0322a85 4130 done
dd184caf 4131IFS=$as_save_IFS
8d138742 4132 if test -z "$ac_cv_path_GREP"; then
b0322a85 4133 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4134 fi
dd184caf 4135else
4136 ac_cv_path_GREP=$GREP
4137fi
4138
dd184caf 4139fi
b0322a85 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4141$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4142 GREP="$ac_cv_path_GREP"
4143
4144
b0322a85 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4146$as_echo_n "checking for egrep... " >&6; }
b0322a85 4147if ${ac_cv_path_EGREP+:} false; then :
8d138742 4148 $as_echo_n "(cached) " >&6
d9898ee8 4149else
dd184caf 4150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151 then ac_cv_path_EGREP="$GREP -E"
4152 else
8d138742 4153 if test -z "$EGREP"; then
dd184caf 4154 ac_path_EGREP_found=false
8d138742
CE
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4157for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
b0322a85 4161 for ac_prog in egrep; do
8d138742
CE
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4164 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4165# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4166 # Check for GNU $ac_path_EGREP
4167case `"$ac_path_EGREP" --version 2>&1` in
4168*GNU*)
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4170*)
4171 ac_count=0
8d138742 4172 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
8d138742 4178 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
d9898ee8 4186 fi
dd184caf 4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191esac
4192
8d138742
CE
4193 $ac_path_EGREP_found && break 3
4194 done
dd184caf 4195 done
b0322a85 4196 done
dd184caf 4197IFS=$as_save_IFS
8d138742 4198 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4200 fi
dd184caf 4201else
4202 ac_cv_path_EGREP=$EGREP
4203fi
4204
dd184caf 4205 fi
d9898ee8 4206fi
b0322a85 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742 4208$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4209 EGREP="$ac_cv_path_EGREP"
d9898ee8 4210
4211
b0322a85 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 4213$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 4214if ${ac_cv_header_stdc+:} false; then :
8d138742 4215 $as_echo_n "(cached) " >&6
d9898ee8 4216else
b0322a85 4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4218/* end confdefs.h. */
4219#include <stdlib.h>
4220#include <stdarg.h>
4221#include <string.h>
4222#include <float.h>
4223
4224int
4225main ()
4226{
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
b0322a85 4232if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4233 ac_cv_header_stdc=yes
4234else
b0322a85 4235 ac_cv_header_stdc=no
d9898ee8 4236fi
dd184caf 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4238
4239if test $ac_cv_header_stdc = yes; then
4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4242/* end confdefs.h. */
4243#include <string.h>
4244
4245_ACEOF
4246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4247 $EGREP "memchr" >/dev/null 2>&1; then :
4248
d9898ee8 4249else
4250 ac_cv_header_stdc=no
4251fi
4252rm -f conftest*
4253
4254fi
4255
4256if test $ac_cv_header_stdc = yes; then
4257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4259/* end confdefs.h. */
4260#include <stdlib.h>
4261
4262_ACEOF
4263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4264 $EGREP "free" >/dev/null 2>&1; then :
4265
d9898ee8 4266else
4267 ac_cv_header_stdc=no
4268fi
4269rm -f conftest*
4270
4271fi
4272
4273if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 4275 if test "$cross_compiling" = yes; then :
d9898ee8 4276 :
4277else
b0322a85 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4279/* end confdefs.h. */
4280#include <ctype.h>
dd184caf 4281#include <stdlib.h>
d9898ee8 4282#if ((' ' & 0x0FF) == 0x020)
4283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285#else
4286# define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291#endif
4292
4293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4294int
4295main ()
4296{
4297 int i;
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
dd184caf 4301 return 2;
4302 return 0;
d9898ee8 4303}
4304_ACEOF
b0322a85 4305if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 4306
b0322a85
CE
4307else
4308 ac_cv_header_stdc=no
d9898ee8 4309fi
b0322a85
CE
4310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4311 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 4312fi
dd184caf 4313
d9898ee8 4314fi
4315fi
b0322a85 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742 4317$as_echo "$ac_cv_header_stdc" >&6; }
d9898ee8 4318if test $ac_cv_header_stdc = yes; then
4319
b0322a85 4320$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 4321
4322fi
4323
4324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 4325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
b0322a85
CE
4327do :
4328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4330"
4331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d9898ee8 4332 cat >>confdefs.h <<_ACEOF
8d138742 4333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 4334_ACEOF
4335
4336fi
4337
4338done
4339
4340
8d138742 4341
b0322a85
CE
4342 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4343if test "x$ac_cv_header_minix_config_h" = xyes; then :
d9898ee8 4344 MINIX=yes
4345else
4346 MINIX=
4347fi
4348
4349
8d138742 4350 if test "$MINIX" = yes; then
d9898ee8 4351
b0322a85 4352$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d9898ee8 4353
4354
b0322a85 4355$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d9898ee8 4356
4357
b0322a85 4358$as_echo "#define _MINIX 1" >>confdefs.h
d9898ee8 4359
8d138742 4360 fi
d9898ee8 4361
8d138742 4362
b0322a85 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
8d138742 4364$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b0322a85 4365if ${ac_cv_safe_to_define___extensions__+:} false; then :
8d138742 4366 $as_echo_n "(cached) " >&6
d9898ee8 4367else
b0322a85 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4369/* end confdefs.h. */
4370
b0322a85
CE
4371# define __EXTENSIONS__ 1
4372 $ac_includes_default
d9898ee8 4373int
4374main ()
4375{
8d138742 4376
d9898ee8 4377 ;
4378 return 0;
4379}
4380_ACEOF
b0322a85 4381if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4382 ac_cv_safe_to_define___extensions__=yes
d9898ee8 4383else
b0322a85 4384 ac_cv_safe_to_define___extensions__=no
8d138742 4385fi
8d138742 4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4387fi
b0322a85 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
8d138742
CE
4389$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4390 test $ac_cv_safe_to_define___extensions__ = yes &&
b0322a85 4391 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
dd184caf 4392
b0322a85 4393 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
8d138742 4394
b0322a85 4395 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
8d138742 4396
b0322a85 4397 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8d138742 4398
b0322a85 4399 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
8d138742
CE
4400
4401
4402ac_ext=c
4403ac_cpp='$CPP $CPPFLAGS'
4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4409set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4411$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4412if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4413 $as_echo_n "(cached) " >&6
4414else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
b0322a85
CE
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4427 break 2
4428 fi
dd184caf 4429done
b0322a85 4430 done
8d138742
CE
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435CC=$ac_cv_prog_CC
4436if test -n "$CC"; then
b0322a85 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4438$as_echo "$CC" >&6; }
dd184caf 4439else
b0322a85 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4441$as_echo "no" >&6; }
d9898ee8 4442fi
8d138742
CE
4443
4444
dd184caf 4445fi
8d138742
CE
4446if test -z "$ac_cv_prog_CC"; then
4447 ac_ct_CC=$CC
4448 # Extract the first word of "gcc", so it can be a program name with args.
4449set dummy gcc; ac_word=$2
b0322a85 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4451$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4452if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742
CE
4453 $as_echo_n "(cached) " >&6
4454else
4455 if test -n "$ac_ct_CC"; then
4456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
b0322a85
CE
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4465 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4467 break 2
4468 fi
4469done
b0322a85 4470 done
8d138742 4471IFS=$as_save_IFS
d9898ee8 4472
8d138742
CE
4473fi
4474fi
4475ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476if test -n "$ac_ct_CC"; then
b0322a85 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742
CE
4478$as_echo "$ac_ct_CC" >&6; }
4479else
b0322a85 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4481$as_echo "no" >&6; }
dd184caf 4482fi
d9898ee8 4483
8d138742
CE
4484 if test "x$ac_ct_CC" = x; then
4485 CC=""
4486 else
4487 case $cross_compiling:$ac_tool_warned in
4488yes:)
b0322a85 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491ac_tool_warned=yes ;;
4492esac
4493 CC=$ac_ct_CC
4494 fi
d9898ee8 4495else
8d138742
CE
4496 CC="$ac_cv_prog_CC"
4497fi
4498
4499if test -z "$CC"; then
4500 if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4502set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4504$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4505if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4506 $as_echo_n "(cached) " >&6
4507else
4508 if test -n "$CC"; then
4509 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
b0322a85
CE
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4518 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4520 break 2
4521 fi
4522done
b0322a85 4523 done
dd184caf 4524IFS=$as_save_IFS
d9898ee8 4525
4526fi
4527fi
8d138742
CE
4528CC=$ac_cv_prog_CC
4529if test -n "$CC"; then
b0322a85 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4531$as_echo "$CC" >&6; }
d9898ee8 4532else
b0322a85 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4534$as_echo "no" >&6; }
d9898ee8 4535fi
4536
dd184caf 4537
8d138742
CE
4538 fi
4539fi
4540if test -z "$CC"; then
4541 # Extract the first word of "cc", so it can be a program name with args.
4542set dummy cc; ac_word=$2
b0322a85 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4544$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4545if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
4546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551 ac_prog_rejected=no
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
b0322a85
CE
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742
CE
4559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560 ac_prog_rejected=yes
4561 continue
4562 fi
4563 ac_cv_prog_CC="cc"
b0322a85 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4565 break 2
4566 fi
d9898ee8 4567done
b0322a85 4568 done
8d138742 4569IFS=$as_save_IFS
d9898ee8 4570
8d138742
CE
4571if test $ac_prog_rejected = yes; then
4572 # We found a bogon in the path, so make sure we never use it.
4573 set dummy $ac_cv_prog_CC
4574 shift
4575 if test $# != 0; then
4576 # We chose a different compiler from the bogus one.
4577 # However, it has the same basename, so the bogon will be chosen
4578 # first if we set CC to just the basename; use the full file name.
4579 shift
4580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4581 fi
4582fi
4583fi
4584fi
4585CC=$ac_cv_prog_CC
4586if test -n "$CC"; then
b0322a85 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742
CE
4588$as_echo "$CC" >&6; }
4589else
b0322a85 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4591$as_echo "no" >&6; }
4592fi
4593
4594
4595fi
4596if test -z "$CC"; then
4597 if test -n "$ac_tool_prefix"; then
4598 for ac_prog in cl.exe
d9898ee8 4599 do
4600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4603$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4604if ${ac_cv_prog_CC+:} false; then :
8d138742 4605 $as_echo_n "(cached) " >&6
d9898ee8 4606else
8d138742
CE
4607 if test -n "$CC"; then
4608 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
b0322a85
CE
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4619 break 2
4620 fi
4621done
b0322a85 4622 done
dd184caf 4623IFS=$as_save_IFS
d9898ee8 4624
4625fi
4626fi
8d138742
CE
4627CC=$ac_cv_prog_CC
4628if test -n "$CC"; then
b0322a85 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4630$as_echo "$CC" >&6; }
d9898ee8 4631else
b0322a85 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4633$as_echo "no" >&6; }
d9898ee8 4634fi
4635
dd184caf 4636
8d138742 4637 test -n "$CC" && break
d9898ee8 4638 done
4639fi
8d138742
CE
4640if test -z "$CC"; then
4641 ac_ct_CC=$CC
4642 for ac_prog in cl.exe
d9898ee8 4643do
4644 # Extract the first word of "$ac_prog", so it can be a program name with args.
4645set dummy $ac_prog; ac_word=$2
b0322a85 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4647$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4648if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 4649 $as_echo_n "(cached) " >&6
d9898ee8 4650else
8d138742
CE
4651 if test -n "$ac_ct_CC"; then
4652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
b0322a85
CE
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4661 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4663 break 2
4664 fi
4665done
b0322a85 4666 done
dd184caf 4667IFS=$as_save_IFS
d9898ee8 4668
4669fi
4670fi
8d138742
CE
4671ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672if test -n "$ac_ct_CC"; then
b0322a85 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 4674$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4675else
b0322a85 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4677$as_echo "no" >&6; }
d9898ee8 4678fi
4679
dd184caf 4680
8d138742 4681 test -n "$ac_ct_CC" && break
d9898ee8 4682done
d9898ee8 4683
8d138742
CE
4684 if test "x$ac_ct_CC" = x; then
4685 CC=""
dd184caf 4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688yes:)
b0322a85 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 4690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4691ac_tool_warned=yes ;;
4692esac
8d138742 4693 CC=$ac_ct_CC
dd184caf 4694 fi
d9898ee8 4695fi
4696
dd184caf 4697fi
8d138742
CE
4698
4699
b0322a85 4700test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 4701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
4702as_fn_error $? "no acceptable C compiler found in \$PATH
4703See \`config.log' for more details" "$LINENO" 5; }
8d138742 4704
d9898ee8 4705# Provide some information about the compiler.
b0322a85 4706$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
4707set X $ac_compile
4708ac_compiler=$2
b0322a85
CE
4709for ac_option in --version -v -V -qversion; do
4710 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 4711case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714esac
b0322a85
CE
4715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716$as_echo "$ac_try_echo"; } >&5
4717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 4718 ac_status=$?
b0322a85
CE
4719 if test -s conftest.err; then
4720 sed '10a\
4721... rest of stderr output deleted ...
4722 10q' conftest.err >conftest.er1
4723 cat conftest.er1 >&5
4724 fi
4725 rm -f conftest.er1 conftest.err
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }
4728done
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 4731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 4732if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 4733 $as_echo_n "(cached) " >&6
d9898ee8 4734else
b0322a85 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4736/* end confdefs.h. */
4737
4738int
4739main ()
4740{
4741#ifndef __GNUC__
4742 choke me
4743#endif
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
b0322a85 4749if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4750 ac_compiler_gnu=yes
4751else
b0322a85 4752 ac_compiler_gnu=no
d9898ee8 4753fi
dd184caf 4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 4755ac_cv_c_compiler_gnu=$ac_compiler_gnu
d9898ee8 4756
4757fi
b0322a85 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
4759$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4760if test $ac_compiler_gnu = yes; then
4761 GCC=yes
d9898ee8 4762else
8d138742
CE
4763 GCC=
4764fi
4765ac_test_CFLAGS=${CFLAGS+set}
4766ac_save_CFLAGS=$CFLAGS
b0322a85 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 4768$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 4769if ${ac_cv_prog_cc_g+:} false; then :
8d138742
CE
4770 $as_echo_n "(cached) " >&6
4771else
4772 ac_save_c_werror_flag=$ac_c_werror_flag
4773 ac_c_werror_flag=yes
4774 ac_cv_prog_cc_g=no
4775 CFLAGS="-g"
b0322a85 4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4777/* end confdefs.h. */
4778
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
b0322a85 4787if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4788 ac_cv_prog_cc_g=yes
d9898ee8 4789else
b0322a85
CE
4790 CFLAGS=""
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4792/* end confdefs.h. */
dd184caf 4793
d9898ee8 4794int
4795main ()
4796{
dd184caf 4797
d9898ee8 4798 ;
4799 return 0;
4800}
4801_ACEOF
b0322a85 4802if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4803
b0322a85
CE
4804else
4805 ac_c_werror_flag=$ac_save_c_werror_flag
8d138742 4806 CFLAGS="-g"
b0322a85 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4808/* end confdefs.h. */
dd184caf 4809
d9898ee8 4810int
4811main ()
4812{
dd184caf 4813
d9898ee8 4814 ;
4815 return 0;
4816}
4817_ACEOF
b0322a85 4818if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4819 ac_cv_prog_cc_g=yes
d9898ee8 4820fi
dd184caf 4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
dd184caf 4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4824fi
dd184caf 4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 4826 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 4827fi
b0322a85 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742
CE
4829$as_echo "$ac_cv_prog_cc_g" >&6; }
4830if test "$ac_test_CFLAGS" = set; then
4831 CFLAGS=$ac_save_CFLAGS
4832elif test $ac_cv_prog_cc_g = yes; then
4833 if test "$GCC" = yes; then
4834 CFLAGS="-g -O2"
dd184caf 4835 else
8d138742 4836 CFLAGS="-g"
dd184caf 4837 fi
4838else
8d138742
CE
4839 if test "$GCC" = yes; then
4840 CFLAGS="-O2"
dd184caf 4841 else
8d138742 4842 CFLAGS=
dd184caf 4843 fi
4844fi
b0322a85 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 4846$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 4847if ${ac_cv_prog_cc_c89+:} false; then :
8d138742
CE
4848 $as_echo_n "(cached) " >&6
4849else
4850 ac_cv_prog_cc_c89=no
4851ac_save_CC=$CC
b0322a85 4852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
4853/* end confdefs.h. */
4854#include <stdarg.h>
4855#include <stdio.h>
b0322a85 4856struct stat;
8d138742
CE
4857/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4858struct buf { int x; };
4859FILE * (*rcsopen) (struct buf *, struct stat *, int);
4860static char *e (p, i)
4861 char **p;
4862 int i;
4863{
4864 return p[i];
4865}
4866static char *f (char * (*g) (char **, int), char **p, ...)
4867{
4868 char *s;
4869 va_list v;
4870 va_start (v,p);
4871 s = g (p, va_arg (v,int));
4872 va_end (v);
4873 return s;
4874}
4875
4876/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4877 function prototypes and stuff, but not '\xHH' hex character constants.
4878 These don't provoke an error unfortunately, instead are silently treated
4879 as 'x'. The following induces an error, until -std is added to get
4880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4881 array size at least. It's necessary to write '\x00'==0 to get something
4882 that's true only with -std. */
4883int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4884
4885/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4886 inside strings and character constants. */
4887#define FOO(x) 'x'
4888int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4889
4890int test (int i, double x);
4891struct s1 {int (*f) (int a);};
4892struct s2 {int (*f) (double a);};
4893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4894int argc;
4895char **argv;
4896int
4897main ()
4898{
4899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906do
4907 CC="$ac_save_CC $ac_arg"
b0322a85 4908 if ac_fn_c_try_compile "$LINENO"; then :
8d138742 4909 ac_cv_prog_cc_c89=$ac_arg
8d138742 4910fi
8d138742
CE
4911rm -f core conftest.err conftest.$ac_objext
4912 test "x$ac_cv_prog_cc_c89" != "xno" && break
4913done
4914rm -f conftest.$ac_ext
4915CC=$ac_save_CC
4916
4917fi
4918# AC_CACHE_VAL
4919case "x$ac_cv_prog_cc_c89" in
4920 x)
b0322a85 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742
CE
4922$as_echo "none needed" >&6; } ;;
4923 xno)
b0322a85 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742
CE
4925$as_echo "unsupported" >&6; } ;;
4926 *)
4927 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742
CE
4929$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4930esac
b0322a85 4931if test "x$ac_cv_prog_cc_c89" != xno; then :
8d138742 4932
b0322a85 4933fi
8d138742 4934
d9898ee8 4935ac_ext=c
4936ac_cpp='$CPP $CPPFLAGS'
4937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940
8d138742 4941depcc="$CC" am_compiler_list=
d9898ee8 4942
b0322a85 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 4944$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 4945if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 4946 $as_echo_n "(cached) " >&6
d9898ee8 4947else
4948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4949 # We make a subdir and do the tests there. Otherwise we can end up
4950 # making bogus files that we don't know about and never remove. For
4951 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
4952 # making a dummy file named 'D' -- because '-MD' means "put the output
4953 # in D".
4954 rm -rf conftest.dir
d9898ee8 4955 mkdir conftest.dir
4956 # Copy depcomp to subdir because otherwise we won't find it if we're
4957 # using a relative directory.
4958 cp "$am_depcomp" conftest.dir
4959 cd conftest.dir
4960 # We will build objects and dependencies in a subdirectory because
4961 # it helps to detect inapplicable dependency modes. For instance
4962 # both Tru64's cc and ICC support -MD to output dependencies as a
4963 # side effect of compilation, but ICC will put the dependencies in
4964 # the current directory while Tru64 will put them in the object
4965 # directory.
4966 mkdir sub
4967
8d138742 4968 am_cv_CC_dependencies_compiler_type=none
d9898ee8 4969 if test "$am_compiler_list" = ""; then
4970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4971 fi
8d138742
CE
4972 am__universal=false
4973 case " $depcc " in #(
4974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4975 esac
4976
d9898ee8 4977 for depmode in $am_compiler_list; do
4978 # Setup a source with many dependencies, because some compilers
4979 # like to wrap large dependency lists on column 80 (with \), and
4980 # we should not choose a depcomp mode which is confused by this.
4981 #
4982 # We need to recreate these files for each test, as the compiler may
4983 # overwrite some of them when testing with obscure command lines.
4984 # This happens at least with the AIX C compiler.
4985 : > sub/conftest.c
4986 for i in 1 2 3 4 5 6; do
4987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
4988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4989 # Solaris 10 /bin/sh.
4990 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 4991 done
4992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4993
b0322a85 4994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 4995 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
4996 # handle '-M -o', and we need to detect this. Also, some Intel
4997 # versions had trouble with output in subdirs.
8d138742
CE
4998 am__obj=sub/conftest.${OBJEXT-o}
4999 am__minus_obj="-o $am__obj"
d9898ee8 5000 case $depmode in
8d138742
CE
5001 gcc)
5002 # This depmode causes a compiler race in universal mode.
5003 test "$am__universal" = false || continue
5004 ;;
d9898ee8 5005 nosideeffect)
b0322a85
CE
5006 # After this tag, mechanisms are not by side-effect, so they'll
5007 # only be used when explicitly requested.
d9898ee8 5008 if test "x$enable_dependency_tracking" = xyes; then
5009 continue
5010 else
5011 break
5012 fi
5013 ;;
b0322a85
CE
5014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5015 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
5016 # not run yet. These depmodes are late enough in the game, and
5017 # so weak that their functioning should not be impacted.
5018 am__obj=conftest.${OBJEXT-o}
5019 am__minus_obj=
5020 ;;
d9898ee8 5021 none) break ;;
5022 esac
d9898ee8 5023 if depmode=$depmode \
8d138742 5024 source=sub/conftest.c object=$am__obj \
d9898ee8 5025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 5026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 5027 >/dev/null 2>conftest.err &&
dd184caf 5028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 5030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5032 # icc doesn't choke on unknown options, it will just issue warnings
5033 # or remarks (even with -Werror). So we grep stderr for any message
5034 # that says an option was ignored or not supported.
5035 # When given -MP, icc 7.0 and 7.1 complain thusly:
5036 # icc: Command line warning: ignoring option '-M'; no argument required
5037 # The diagnosis changed in icc 8.0:
5038 # icc: Command line remark: option '-MP' not supported
5039 if (grep 'ignoring option' conftest.err ||
5040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8d138742 5041 am_cv_CC_dependencies_compiler_type=$depmode
d9898ee8 5042 break
5043 fi
5044 fi
5045 done
5046
5047 cd ..
5048 rm -rf conftest.dir
5049else
8d138742 5050 am_cv_CC_dependencies_compiler_type=none
d9898ee8 5051fi
5052
5053fi
b0322a85 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742
CE
5055$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5056CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
d9898ee8 5057
dd184caf 5058 if
d9898ee8 5059 test "x$enable_dependency_tracking" != xno \
8d138742
CE
5060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5061 am__fastdepCC_TRUE=
5062 am__fastdepCC_FALSE='#'
d9898ee8 5063else
8d138742
CE
5064 am__fastdepCC_TRUE='#'
5065 am__fastdepCC_FALSE=
d9898ee8 5066fi
5067
5068
b0322a85 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
8d138742 5070$as_echo_n "checking for library containing strerror... " >&6; }
b0322a85 5071if ${ac_cv_search_strerror+:} false; then :
8d138742 5072 $as_echo_n "(cached) " >&6
d9898ee8 5073else
8d138742 5074 ac_func_search_save_LIBS=$LIBS
b0322a85 5075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5076/* end confdefs.h. */
d9898ee8 5077
8d138742
CE
5078/* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
5081#ifdef __cplusplus
5082extern "C"
5083#endif
5084char strerror ();
5085int
5086main ()
5087{
5088return strerror ();
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093for ac_lib in '' cposix; do
5094 if test -z "$ac_lib"; then
5095 ac_res="none required"
5096 else
5097 ac_res=-l$ac_lib
5098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5099 fi
b0322a85 5100 if ac_fn_c_try_link "$LINENO"; then :
8d138742 5101 ac_cv_search_strerror=$ac_res
dd184caf 5102fi
b0322a85
CE
5103rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext
5105 if ${ac_cv_search_strerror+:} false; then :
8d138742 5106 break
d9898ee8 5107fi
8d138742 5108done
b0322a85
CE
5109if ${ac_cv_search_strerror+:} false; then :
5110
dd184caf 5111else
8d138742 5112 ac_cv_search_strerror=no
dd184caf 5113fi
8d138742
CE
5114rm conftest.$ac_ext
5115LIBS=$ac_func_search_save_LIBS
d9898ee8 5116fi
b0322a85 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
8d138742
CE
5118$as_echo "$ac_cv_search_strerror" >&6; }
5119ac_res=$ac_cv_search_strerror
b0322a85 5120if test "$ac_res" != no; then :
8d138742 5121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
dd184caf 5122
8d138742 5123fi
dd184caf 5124
8d138742
CE
5125for ac_prog in gawk mawk nawk awk
5126do
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128set dummy $ac_prog; ac_word=$2
b0322a85 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5130$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5131if ${ac_cv_prog_AWK+:} false; then :
8d138742
CE
5132 $as_echo_n "(cached) " >&6
5133else
5134 if test -n "$AWK"; then
5135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
d9898ee8 5136else
d9898ee8 5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
b0322a85
CE
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5144 ac_cv_prog_AWK="$ac_prog"
b0322a85 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5146 break 2
d9898ee8 5147 fi
d9898ee8 5148done
b0322a85 5149 done
8d138742 5150IFS=$as_save_IFS
d9898ee8 5151
8d138742
CE
5152fi
5153fi
5154AWK=$ac_cv_prog_AWK
5155if test -n "$AWK"; then
b0322a85 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742
CE
5157$as_echo "$AWK" >&6; }
5158else
b0322a85 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5160$as_echo "no" >&6; }
d9898ee8 5161fi
5162
d9898ee8 5163
8d138742
CE
5164 test -n "$AWK" && break
5165done
d9898ee8 5166
8d138742
CE
5167ac_ext=cpp
5168ac_cpp='$CXXCPP $CPPFLAGS'
5169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172if test -z "$CXX"; then
5173 if test -n "$CCC"; then
5174 CXX=$CCC
5175 else
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5182$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5183if ${ac_cv_prog_CXX+:} false; then :
8d138742
CE
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test -n "$CXX"; then
5187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
b0322a85
CE
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
b0322a85 5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5198 break 2
5199 fi
5200done
b0322a85 5201 done
8d138742 5202IFS=$as_save_IFS
d9898ee8 5203
8d138742
CE
5204fi
5205fi
5206CXX=$ac_cv_prog_CXX
5207if test -n "$CXX"; then
b0322a85 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8d138742 5209$as_echo "$CXX" >&6; }
d9898ee8 5210else
b0322a85 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5212$as_echo "no" >&6; }
dd184caf 5213fi
5214
8d138742
CE
5215
5216 test -n "$CXX" && break
5217 done
d9898ee8 5218fi
8d138742
CE
5219if test -z "$CXX"; then
5220 ac_ct_CXX=$CXX
5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
b0322a85 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5226$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5227if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8d138742 5228 $as_echo_n "(cached) " >&6
d9898ee8 5229else
8d138742
CE
5230 if test -n "$ac_ct_CXX"; then
5231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d9898ee8 5232else
8d138742
CE
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
b0322a85
CE
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5240 ac_cv_prog_ac_ct_CXX="$ac_prog"
b0322a85 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5242 break 2
5243 fi
5244done
b0322a85 5245 done
8d138742 5246IFS=$as_save_IFS
d9898ee8 5247
d9898ee8 5248fi
8d138742
CE
5249fi
5250ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5251if test -n "$ac_ct_CXX"; then
b0322a85 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8d138742 5253$as_echo "$ac_ct_CXX" >&6; }
d9898ee8 5254else
b0322a85 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5256$as_echo "no" >&6; }
d9898ee8 5257fi
d9898ee8 5258
5259
8d138742
CE
5260 test -n "$ac_ct_CXX" && break
5261done
d9898ee8 5262
8d138742
CE
5263 if test "x$ac_ct_CXX" = x; then
5264 CXX="g++"
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267yes:)
b0322a85 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272 CXX=$ac_ct_CXX
d9898ee8 5273 fi
d9898ee8 5274fi
d9898ee8 5275
8d138742 5276 fi
d9898ee8 5277fi
8d138742 5278# Provide some information about the compiler.
b0322a85 5279$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8d138742
CE
5280set X $ac_compile
5281ac_compiler=$2
b0322a85
CE
5282for ac_option in --version -v -V -qversion; do
5283 { { ac_try="$ac_compiler $ac_option >&5"
8d138742
CE
5284case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287esac
b0322a85
CE
5288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5289$as_echo "$ac_try_echo"; } >&5
5290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8d138742 5291 ac_status=$?
b0322a85
CE
5292 if test -s conftest.err; then
5293 sed '10a\
5294... rest of stderr output deleted ...
5295 10q' conftest.err >conftest.er1
5296 cat conftest.er1 >&5
5297 fi
5298 rm -f conftest.er1 conftest.err
5299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5300 test $ac_status = 0; }
5301done
d9898ee8 5302
b0322a85 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8d138742 5304$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
b0322a85 5305if ${ac_cv_cxx_compiler_gnu+:} false; then :
8d138742 5306 $as_echo_n "(cached) " >&6
d9898ee8 5307else
b0322a85 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5309/* end confdefs.h. */
d9898ee8 5310
8d138742
CE
5311int
5312main ()
5313{
5314#ifndef __GNUC__
5315 choke me
5316#endif
d9898ee8 5317
8d138742
CE
5318 ;
5319 return 0;
5320}
5321_ACEOF
b0322a85 5322if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
5323 ac_compiler_gnu=yes
5324else
b0322a85 5325 ac_compiler_gnu=no
8d138742 5326fi
8d138742
CE
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d9898ee8 5329
8d138742 5330fi
b0322a85 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8d138742
CE
5332$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5333if test $ac_compiler_gnu = yes; then
5334 GXX=yes
5335else
5336 GXX=
5337fi
5338ac_test_CXXFLAGS=${CXXFLAGS+set}
5339ac_save_CXXFLAGS=$CXXFLAGS
b0322a85 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8d138742 5341$as_echo_n "checking whether $CXX accepts -g... " >&6; }
b0322a85 5342if ${ac_cv_prog_cxx_g+:} false; then :
8d138742
CE
5343 $as_echo_n "(cached) " >&6
5344else
5345 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5346 ac_cxx_werror_flag=yes
5347 ac_cv_prog_cxx_g=no
5348 CXXFLAGS="-g"
b0322a85 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5350/* end confdefs.h. */
d9898ee8 5351
8d138742
CE
5352int
5353main ()
5354{
d9898ee8 5355
8d138742
CE
5356 ;
5357 return 0;
5358}
5359_ACEOF
b0322a85 5360if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
5361 ac_cv_prog_cxx_g=yes
5362else
b0322a85
CE
5363 CXXFLAGS=""
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 5365/* end confdefs.h. */
d9898ee8 5366
8d138742
CE
5367int
5368main ()
5369{
d9898ee8 5370
8d138742
CE
5371 ;
5372 return 0;
5373}
5374_ACEOF
b0322a85 5375if ac_fn_cxx_try_compile "$LINENO"; then :
d9898ee8 5376
b0322a85
CE
5377else
5378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8d138742 5379 CXXFLAGS="-g"
b0322a85 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 5381/* end confdefs.h. */
5382
5383int
5384main ()
5385{
5386
5387 ;
5388 return 0;
5389}
5390_ACEOF
b0322a85 5391if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742 5392 ac_cv_prog_cxx_g=yes
d9898ee8 5393fi
8d138742
CE
5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395fi
8d138742
CE
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
8d138742
CE
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5400fi
b0322a85 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8d138742
CE
5402$as_echo "$ac_cv_prog_cxx_g" >&6; }
5403if test "$ac_test_CXXFLAGS" = set; then
5404 CXXFLAGS=$ac_save_CXXFLAGS
5405elif test $ac_cv_prog_cxx_g = yes; then
5406 if test "$GXX" = yes; then
5407 CXXFLAGS="-g -O2"
5408 else
5409 CXXFLAGS="-g"
5410 fi
5411else
5412 if test "$GXX" = yes; then
5413 CXXFLAGS="-O2"
5414 else
5415 CXXFLAGS=
5416 fi
5417fi
5418ac_ext=c
d9898ee8 5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
8d138742 5424depcc="$CXX" am_compiler_list=
d9898ee8 5425
b0322a85 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 5427$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 5428if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8d138742
CE
5429 $as_echo_n "(cached) " >&6
5430else
5431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5432 # We make a subdir and do the tests there. Otherwise we can end up
5433 # making bogus files that we don't know about and never remove. For
5434 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
5435 # making a dummy file named 'D' -- because '-MD' means "put the output
5436 # in D".
5437 rm -rf conftest.dir
8d138742
CE
5438 mkdir conftest.dir
5439 # Copy depcomp to subdir because otherwise we won't find it if we're
5440 # using a relative directory.
5441 cp "$am_depcomp" conftest.dir
5442 cd conftest.dir
5443 # We will build objects and dependencies in a subdirectory because
5444 # it helps to detect inapplicable dependency modes. For instance
5445 # both Tru64's cc and ICC support -MD to output dependencies as a
5446 # side effect of compilation, but ICC will put the dependencies in
5447 # the current directory while Tru64 will put them in the object
5448 # directory.
5449 mkdir sub
d9898ee8 5450
8d138742
CE
5451 am_cv_CXX_dependencies_compiler_type=none
5452 if test "$am_compiler_list" = ""; then
5453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5454 fi
5455 am__universal=false
5456 case " $depcc " in #(
5457 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5458 esac
d9898ee8 5459
8d138742
CE
5460 for depmode in $am_compiler_list; do
5461 # Setup a source with many dependencies, because some compilers
5462 # like to wrap large dependency lists on column 80 (with \), and
5463 # we should not choose a depcomp mode which is confused by this.
5464 #
5465 # We need to recreate these files for each test, as the compiler may
5466 # overwrite some of them when testing with obscure command lines.
5467 # This happens at least with the AIX C compiler.
5468 : > sub/conftest.c
5469 for i in 1 2 3 4 5 6; do
5470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
5471 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5472 # Solaris 10 /bin/sh.
5473 echo '/* dummy */' > sub/conftst$i.h
8d138742
CE
5474 done
5475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d9898ee8 5476
b0322a85 5477 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 5478 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
5479 # handle '-M -o', and we need to detect this. Also, some Intel
5480 # versions had trouble with output in subdirs.
8d138742
CE
5481 am__obj=sub/conftest.${OBJEXT-o}
5482 am__minus_obj="-o $am__obj"
5483 case $depmode in
5484 gcc)
5485 # This depmode causes a compiler race in universal mode.
5486 test "$am__universal" = false || continue
5487 ;;
5488 nosideeffect)
b0322a85
CE
5489 # After this tag, mechanisms are not by side-effect, so they'll
5490 # only be used when explicitly requested.
8d138742
CE
5491 if test "x$enable_dependency_tracking" = xyes; then
5492 continue
5493 else
5494 break
5495 fi
5496 ;;
b0322a85
CE
5497 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5498 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
5499 # not run yet. These depmodes are late enough in the game, and
5500 # so weak that their functioning should not be impacted.
5501 am__obj=conftest.${OBJEXT-o}
5502 am__minus_obj=
5503 ;;
5504 none) break ;;
5505 esac
5506 if depmode=$depmode \
5507 source=sub/conftest.c object=$am__obj \
5508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5510 >/dev/null 2>conftest.err &&
5511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5515 # icc doesn't choke on unknown options, it will just issue warnings
5516 # or remarks (even with -Werror). So we grep stderr for any message
5517 # that says an option was ignored or not supported.
5518 # When given -MP, icc 7.0 and 7.1 complain thusly:
5519 # icc: Command line warning: ignoring option '-M'; no argument required
5520 # The diagnosis changed in icc 8.0:
5521 # icc: Command line remark: option '-MP' not supported
5522 if (grep 'ignoring option' conftest.err ||
5523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5524 am_cv_CXX_dependencies_compiler_type=$depmode
5525 break
5526 fi
5527 fi
5528 done
d9898ee8 5529
8d138742
CE
5530 cd ..
5531 rm -rf conftest.dir
5532else
5533 am_cv_CXX_dependencies_compiler_type=none
5534fi
d9898ee8 5535
d9898ee8 5536fi
b0322a85 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8d138742
CE
5538$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5539CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 5540
8d138742
CE
5541 if
5542 test "x$enable_dependency_tracking" != xno \
5543 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5544 am__fastdepCXX_TRUE=
5545 am__fastdepCXX_FALSE='#'
5546else
5547 am__fastdepCXX_TRUE='#'
5548 am__fastdepCXX_FALSE=
d9898ee8 5549fi
dd184caf 5550
d9898ee8 5551
8d138742
CE
5552case `pwd` in
5553 *\ * | *\ *)
b0322a85 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742 5555$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
dd184caf 5556esac
d9898ee8 5557
dd184caf 5558
d9898ee8 5559
b0322a85
CE
5560macro_version='2.4.2'
5561macro_revision='1.3337'
d9898ee8 5562
d9898ee8 5563
d9898ee8 5564
d9898ee8 5565
5566
5567
d9898ee8 5568
dd184caf 5569
d9898ee8 5570
d9898ee8 5571
d9898ee8 5572
d9898ee8 5573
d9898ee8 5574
8d138742 5575ltmain="$ac_aux_dir/ltmain.sh"
dd184caf 5576
8d138742
CE
5577# Make sure we can run config.sub.
5578$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 5579 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 5580
b0322a85 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 5582$as_echo_n "checking build system type... " >&6; }
b0322a85 5583if ${ac_cv_build+:} false; then :
8d138742 5584 $as_echo_n "(cached) " >&6
d9898ee8 5585else
8d138742
CE
5586 ac_build_alias=$build_alias
5587test "x$ac_build_alias" = x &&
5588 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5589test "x$ac_build_alias" = x &&
b0322a85 5590 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8d138742 5591ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 5592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 5593
d9898ee8 5594fi
b0322a85 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742
CE
5596$as_echo "$ac_cv_build" >&6; }
5597case $ac_cv_build in
5598*-*-*) ;;
b0322a85 5599*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8d138742
CE
5600esac
5601build=$ac_cv_build
5602ac_save_IFS=$IFS; IFS='-'
5603set x $ac_cv_build
5604shift
5605build_cpu=$1
5606build_vendor=$2
5607shift; shift
5608# Remember, the first character of IFS is used to create $*,
5609# except with old shells:
5610build_os=$*
5611IFS=$ac_save_IFS
5612case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
dd184caf 5613
d9898ee8 5614
b0322a85 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 5616$as_echo_n "checking host system type... " >&6; }
b0322a85 5617if ${ac_cv_host+:} false; then :
8d138742 5618 $as_echo_n "(cached) " >&6
d9898ee8 5619else
8d138742
CE
5620 if test "x$host_alias" = x; then
5621 ac_cv_host=$ac_cv_build
5622else
5623 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 5624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
d9898ee8 5625fi
5626
d9898ee8 5627fi
b0322a85 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742
CE
5629$as_echo "$ac_cv_host" >&6; }
5630case $ac_cv_host in
5631*-*-*) ;;
b0322a85 5632*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8d138742
CE
5633esac
5634host=$ac_cv_host
5635ac_save_IFS=$IFS; IFS='-'
5636set x $ac_cv_host
5637shift
5638host_cpu=$1
5639host_vendor=$2
5640shift; shift
5641# Remember, the first character of IFS is used to create $*,
5642# except with old shells:
5643host_os=$*
5644IFS=$ac_save_IFS
5645case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
d9898ee8 5646
5647
b0322a85
CE
5648# Backslashify metacharacters that are still active within
5649# double-quoted strings.
5650sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5651
5652# Same as above, but do not quote variable references.
5653double_quote_subst='s/\(["`\\]\)/\\\1/g'
5654
5655# Sed substitution to delay expansion of an escaped shell variable in a
5656# double_quote_subst'ed string.
5657delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5658
5659# Sed substitution to delay expansion of an escaped single quote.
5660delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5661
5662# Sed substitution to avoid accidental globbing in evaled expressions
5663no_glob_subst='s/\*/\\\*/g'
5664
5665ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5666ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5670$as_echo_n "checking how to print strings... " >&6; }
5671# Test print first, because it will be a builtin if present.
5672if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5673 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5674 ECHO='print -r --'
5675elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5676 ECHO='printf %s\n'
5677else
5678 # Use this function as a fallback that always works.
5679 func_fallback_echo ()
5680 {
5681 eval 'cat <<_LTECHO_EOF
5682$1
5683_LTECHO_EOF'
5684 }
5685 ECHO='func_fallback_echo'
5686fi
5687
5688# func_echo_all arg...
5689# Invoke $ECHO with all args, space-separated.
5690func_echo_all ()
5691{
5692 $ECHO ""
5693}
5694
5695case "$ECHO" in
5696 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5697$as_echo "printf" >&6; } ;;
5698 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5699$as_echo "print -r" >&6; } ;;
5700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5701$as_echo "cat" >&6; } ;;
5702esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 5718$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 5719if ${ac_cv_path_SED+:} false; then :
8d138742
CE
5720 $as_echo_n "(cached) " >&6
5721else
5722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5723 for ac_i in 1 2 3 4 5 6 7; do
5724 ac_script="$ac_script$as_nl$ac_script"
5725 done
5726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 5727 { ac_script=; unset ac_script;}
8d138742
CE
5728 if test -z "$SED"; then
5729 ac_path_SED_found=false
5730 # Loop through the user's path and test for each of PROGNAME-LIST
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
b0322a85 5736 for ac_prog in sed gsed; do
8d138742
CE
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5739 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
5740# Check for GNU ac_path_SED and select it if it is found.
5741 # Check for GNU $ac_path_SED
5742case `"$ac_path_SED" --version 2>&1` in
5743*GNU*)
5744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5745*)
5746 ac_count=0
5747 $as_echo_n 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 $as_echo '' >> "conftest.nl"
5754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
5757 if test $ac_count -gt ${ac_path_SED_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_SED="$ac_path_SED"
5760 ac_path_SED_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
5767
5768 $ac_path_SED_found && break 3
5769 done
5770 done
b0322a85 5771 done
dd184caf 5772IFS=$as_save_IFS
8d138742 5773 if test -z "$ac_cv_path_SED"; then
b0322a85 5774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8d138742 5775 fi
d9898ee8 5776else
8d138742 5777 ac_cv_path_SED=$SED
d9898ee8 5778fi
5779
d9898ee8 5780fi
b0322a85 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
5782$as_echo "$ac_cv_path_SED" >&6; }
5783 SED="$ac_cv_path_SED"
5784 rm -f conftest.sed
d9898ee8 5785
8d138742
CE
5786test -z "$SED" && SED=sed
5787Xsed="$SED -e 1s/^X//"
d9898ee8 5788
dd184caf 5789
d9898ee8 5790
d9898ee8 5791
5792
d9898ee8 5793
d9898ee8 5794
d9898ee8 5795
dd184caf 5796
d9898ee8 5797
d9898ee8 5798
b0322a85 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 5800$as_echo_n "checking for fgrep... " >&6; }
b0322a85 5801if ${ac_cv_path_FGREP+:} false; then :
8d138742 5802 $as_echo_n "(cached) " >&6
d9898ee8 5803else
8d138742
CE
5804 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5805 then ac_cv_path_FGREP="$GREP -F"
5806 else
5807 if test -z "$FGREP"; then
5808 ac_path_FGREP_found=false
5809 # Loop through the user's path and test for each of PROGNAME-LIST
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
b0322a85 5815 for ac_prog in fgrep; do
8d138742
CE
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5818 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
5819# Check for GNU ac_path_FGREP and select it if it is found.
5820 # Check for GNU $ac_path_FGREP
5821case `"$ac_path_FGREP" --version 2>&1` in
5822*GNU*)
5823 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5824*)
5825 ac_count=0
5826 $as_echo_n 0123456789 >"conftest.in"
5827 while :
5828 do
5829 cat "conftest.in" "conftest.in" >"conftest.tmp"
5830 mv "conftest.tmp" "conftest.in"
5831 cp "conftest.in" "conftest.nl"
5832 $as_echo 'FGREP' >> "conftest.nl"
5833 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5835 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
5836 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5837 # Best one so far, save it but keep looking for a better one
5838 ac_cv_path_FGREP="$ac_path_FGREP"
5839 ac_path_FGREP_max=$ac_count
5840 fi
5841 # 10*(2^10) chars as input seems more than enough
5842 test $ac_count -gt 10 && break
5843 done
5844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5845esac
d9898ee8 5846
8d138742
CE
5847 $ac_path_FGREP_found && break 3
5848 done
5849 done
b0322a85 5850 done
8d138742
CE
5851IFS=$as_save_IFS
5852 if test -z "$ac_cv_path_FGREP"; then
b0322a85 5853 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d9898ee8 5854 fi
5855else
8d138742 5856 ac_cv_path_FGREP=$FGREP
d9898ee8 5857fi
5858
8d138742
CE
5859 fi
5860fi
b0322a85 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
5862$as_echo "$ac_cv_path_FGREP" >&6; }
5863 FGREP="$ac_cv_path_FGREP"
d9898ee8 5864
d9898ee8 5865
8d138742 5866test -z "$GREP" && GREP=grep
d9898ee8 5867
d9898ee8 5868
d9898ee8 5869
d9898ee8 5870
d9898ee8 5871
d9898ee8 5872
d9898ee8 5873
d9898ee8 5874
d9898ee8 5875
d9898ee8 5876
5877
5878
5879
ac40fd9e 5880
d9898ee8 5881
d9898ee8 5882
d9898ee8 5883
d9898ee8 5884
d9898ee8 5885
8d138742 5886# Check whether --with-gnu-ld was given.
b0322a85 5887if test "${with_gnu_ld+set}" = set; then :
8d138742
CE
5888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5889else
5890 with_gnu_ld=no
5891fi
d9898ee8 5892
8d138742
CE
5893ac_prog=ld
5894if test "$GCC" = yes; then
5895 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742
CE
5897$as_echo_n "checking for ld used by $CC... " >&6; }
5898 case $host in
5899 *-*-mingw*)
5900 # gcc leaves a trailing carriage return which upsets mingw
5901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5902 *)
5903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5904 esac
5905 case $ac_prog in
5906 # Accept absolute paths.
5907 [\\/]* | ?:[\\/]*)
5908 re_direlt='/[^/][^/]*/\.\./'
5909 # Canonicalize the pathname of ld
5910 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5911 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5912 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5913 done
5914 test -z "$LD" && LD="$ac_prog"
5915 ;;
5916 "")
5917 # If it fails, then pretend we aren't using GCC.
5918 ac_prog=ld
5919 ;;
5920 *)
5921 # If it is relative, then search for the first ld in PATH.
5922 with_gnu_ld=unknown
5923 ;;
5924 esac
5925elif test "$with_gnu_ld" = yes; then
b0322a85 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742
CE
5927$as_echo_n "checking for GNU ld... " >&6; }
5928else
b0322a85 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742
CE
5930$as_echo_n "checking for non-GNU ld... " >&6; }
5931fi
b0322a85 5932if ${lt_cv_path_LD+:} false; then :
8d138742
CE
5933 $as_echo_n "(cached) " >&6
5934else
5935 if test -z "$LD"; then
5936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5937 for ac_dir in $PATH; do
5938 IFS="$lt_save_ifs"
5939 test -z "$ac_dir" && ac_dir=.
5940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5941 lt_cv_path_LD="$ac_dir/$ac_prog"
5942 # Check to see if the program is GNU ld. I'd rather use --version,
5943 # but apparently some variants of GNU ld only accept -v.
5944 # Break only if it was the GNU/non-GNU ld that we prefer.
5945 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5946 *GNU* | *'with BFD'*)
5947 test "$with_gnu_ld" != no && break
5948 ;;
5949 *)
5950 test "$with_gnu_ld" != yes && break
5951 ;;
5952 esac
5953 fi
5954 done
5955 IFS="$lt_save_ifs"
5956else
5957 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5958fi
5959fi
d9898ee8 5960
8d138742
CE
5961LD="$lt_cv_path_LD"
5962if test -n "$LD"; then
b0322a85 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742
CE
5964$as_echo "$LD" >&6; }
5965else
b0322a85 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5967$as_echo "no" >&6; }
5968fi
b0322a85
CE
5969test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 5971$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 5972if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742
CE
5973 $as_echo_n "(cached) " >&6
5974else
5975 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5976case `$LD -v 2>&1 </dev/null` in
d9898ee8 5977*GNU* | *'with BFD'*)
8d138742
CE
5978 lt_cv_prog_gnu_ld=yes
5979 ;;
5980*)
5981 lt_cv_prog_gnu_ld=no
5982 ;;
d9898ee8 5983esac
8d138742 5984fi
b0322a85 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742
CE
5986$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5987with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 5988
d9898ee8 5989
d9898ee8 5990
d9898ee8 5991
d9898ee8 5992
d9898ee8 5993
d9898ee8 5994
d9898ee8 5995
d9898ee8 5996
b0322a85 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 5998$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 5999if ${lt_cv_path_NM+:} false; then :
8d138742
CE
6000 $as_echo_n "(cached) " >&6
6001else
6002 if test -n "$NM"; then
6003 # Let the user override the test.
6004 lt_cv_path_NM="$NM"
6005else
6006 lt_nm_to_check="${ac_tool_prefix}nm"
6007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6008 lt_nm_to_check="$lt_nm_to_check nm"
d9898ee8 6009 fi
8d138742
CE
6010 for lt_tmp_nm in $lt_nm_to_check; do
6011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6012 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6013 IFS="$lt_save_ifs"
6014 test -z "$ac_dir" && ac_dir=.
6015 tmp_nm="$ac_dir/$lt_tmp_nm"
6016 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6017 # Check to see if the nm accepts a BSD-compat flag.
6018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6019 # nm: unknown option "B" ignored
6020 # Tru64's nm complains that /dev/null is an invalid object file
6021 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6022 */dev/null* | *'Invalid file or object type'*)
6023 lt_cv_path_NM="$tmp_nm -B"
6024 break
6025 ;;
6026 *)
6027 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6028 */dev/null*)
6029 lt_cv_path_NM="$tmp_nm -p"
6030 break
6031 ;;
6032 *)
6033 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6034 continue # so that we can try to find one that supports BSD flags
6035 ;;
6036 esac
6037 ;;
6038 esac
6039 fi
6040 done
6041 IFS="$lt_save_ifs"
6042 done
6043 : ${lt_cv_path_NM=no}
6044fi
6045fi
b0322a85 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
6047$as_echo "$lt_cv_path_NM" >&6; }
6048if test "$lt_cv_path_NM" != "no"; then
6049 NM="$lt_cv_path_NM"
6050else
6051 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
6052 if test -n "$DUMPBIN"; then :
6053 # Let the user override the test.
6054 else
6055 if test -n "$ac_tool_prefix"; then
6056 for ac_prog in dumpbin "link -dump"
8d138742
CE
6057 do
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6061$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6062if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
6063 $as_echo_n "(cached) " >&6
6064else
6065 if test -n "$DUMPBIN"; then
6066 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
b0322a85
CE
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6075 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6077 break 2
d9898ee8 6078 fi
6079done
b0322a85 6080 done
8d138742 6081IFS=$as_save_IFS
d9898ee8 6082
6083fi
d9898ee8 6084fi
8d138742
CE
6085DUMPBIN=$ac_cv_prog_DUMPBIN
6086if test -n "$DUMPBIN"; then
b0322a85 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 6088$as_echo "$DUMPBIN" >&6; }
d9898ee8 6089else
b0322a85 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6091$as_echo "no" >&6; }
d9898ee8 6092fi
6093
8d138742
CE
6094
6095 test -n "$DUMPBIN" && break
6096 done
6097fi
6098if test -z "$DUMPBIN"; then
6099 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 6100 for ac_prog in dumpbin "link -dump"
8d138742
CE
6101do
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
b0322a85 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6105$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6106if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742 6107 $as_echo_n "(cached) " >&6
d9898ee8 6108else
8d138742
CE
6109 if test -n "$ac_ct_DUMPBIN"; then
6110 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d9898ee8 6111else
8d138742
CE
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
b0322a85
CE
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6119 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6121 break 2
6122 fi
6123done
b0322a85 6124 done
8d138742
CE
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6130if test -n "$ac_ct_DUMPBIN"; then
b0322a85 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
6132$as_echo "$ac_ct_DUMPBIN" >&6; }
6133else
b0322a85 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139 test -n "$ac_ct_DUMPBIN" && break
6140done
6141
6142 if test "x$ac_ct_DUMPBIN" = x; then
6143 DUMPBIN=":"
6144 else
6145 case $cross_compiling:$ac_tool_warned in
6146yes:)
b0322a85 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149ac_tool_warned=yes ;;
6150esac
6151 DUMPBIN=$ac_ct_DUMPBIN
6152 fi
6153fi
6154
b0322a85
CE
6155 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6156 *COFF*)
6157 DUMPBIN="$DUMPBIN -symbols"
6158 ;;
6159 *)
6160 DUMPBIN=:
6161 ;;
6162 esac
6163 fi
8d138742
CE
6164
6165 if test "$DUMPBIN" != ":"; then
6166 NM="$DUMPBIN"
6167 fi
6168fi
6169test -z "$NM" && NM=nm
6170
6171
6172
6173
6174
6175
b0322a85 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 6177$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 6178if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
6179 $as_echo_n "(cached) " >&6
6180else
6181 lt_cv_nm_interface="BSD nm"
6182 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 6183 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
6184 (eval "$ac_compile" 2>conftest.err)
6185 cat conftest.err >&5
b0322a85 6186 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
6187 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6188 cat conftest.err >&5
b0322a85 6189 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
6190 cat conftest.out >&5
6191 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6192 lt_cv_nm_interface="MS dumpbin"
d9898ee8 6193 fi
8d138742
CE
6194 rm -f conftest*
6195fi
b0322a85 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742
CE
6197$as_echo "$lt_cv_nm_interface" >&6; }
6198
b0322a85 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742
CE
6200$as_echo_n "checking whether ln -s works... " >&6; }
6201LN_S=$as_ln_s
6202if test "$LN_S" = "ln -s"; then
b0322a85 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
6204$as_echo "yes" >&6; }
6205else
b0322a85 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742
CE
6207$as_echo "no, using $LN_S" >&6; }
6208fi
6209
6210# find the maximum length of command line arguments
b0322a85 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 6212$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 6213if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
6214 $as_echo_n "(cached) " >&6
6215else
6216 i=0
6217 teststring="ABCD"
6218
6219 case $build_os in
6220 msdosdjgpp*)
6221 # On DJGPP, this test can blow up pretty badly due to problems in libc
6222 # (any single argument exceeding 2000 bytes causes a buffer overrun
6223 # during glob expansion). Even if it were fixed, the result of this
6224 # check would be larger than it should be.
6225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6226 ;;
6227
6228 gnu*)
6229 # Under GNU Hurd, this test is not required because there is
6230 # no limit to the length of command line arguments.
6231 # Libtool will interpret -1 as no limit whatsoever
6232 lt_cv_sys_max_cmd_len=-1;
6233 ;;
6234
6235 cygwin* | mingw* | cegcc*)
6236 # On Win9x/ME, this test blows up -- it succeeds, but takes
6237 # about 5 minutes as the teststring grows exponentially.
6238 # Worse, since 9x/ME are not pre-emptively multitasking,
6239 # you end up with a "frozen" computer, even though with patience
6240 # the test eventually succeeds (with a max line length of 256k).
6241 # Instead, let's just punt: use the minimum linelength reported by
6242 # all of the supported platforms: 8192 (on NT/2K/XP).
6243 lt_cv_sys_max_cmd_len=8192;
6244 ;;
6245
b0322a85
CE
6246 mint*)
6247 # On MiNT this can take a long time and run out of memory.
6248 lt_cv_sys_max_cmd_len=8192;
6249 ;;
6250
8d138742
CE
6251 amigaos*)
6252 # On AmigaOS with pdksh, this test takes hours, literally.
6253 # So we just punt and use a minimum line length of 8192.
6254 lt_cv_sys_max_cmd_len=8192;
6255 ;;
6256
6257 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6258 # This has been around since 386BSD, at least. Likely further.
6259 if test -x /sbin/sysctl; then
6260 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6261 elif test -x /usr/sbin/sysctl; then
6262 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6263 else
6264 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6265 fi
6266 # And add a safety zone
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6269 ;;
6270
6271 interix*)
6272 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6273 lt_cv_sys_max_cmd_len=196608
6274 ;;
6275
b0322a85
CE
6276 os2*)
6277 # The test takes a long time on OS/2.
6278 lt_cv_sys_max_cmd_len=8192
6279 ;;
6280
8d138742
CE
6281 osf*)
6282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6284 # nice to cause kernel panics so lets avoid the loop below.
6285 # First set a reasonable default.
6286 lt_cv_sys_max_cmd_len=16384
6287 #
6288 if test -x /sbin/sysconfig; then
6289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6291 esac
6292 fi
6293 ;;
6294 sco3.2v5*)
6295 lt_cv_sys_max_cmd_len=102400
6296 ;;
6297 sysv5* | sco5v6* | sysv4.2uw2*)
6298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6299 if test -n "$kargmax"; then
6300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6301 else
6302 lt_cv_sys_max_cmd_len=32768
6303 fi
6304 ;;
6305 *)
6306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6307 if test -n "$lt_cv_sys_max_cmd_len"; then
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6310 else
6311 # Make teststring a little bigger before we do anything with it.
6312 # a 1K string should be a reasonable start.
6313 for i in 1 2 3 4 5 6 7 8 ; do
6314 teststring=$teststring$teststring
6315 done
6316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6317 # If test is not a shell built-in, we'll probably end up computing a
6318 # maximum length that is only half of the actual maximum length, but
6319 # we can't tell.
b0322a85
CE
6320 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6321 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
6322 test $i != 17 # 1/2 MB should be enough
6323 do
6324 i=`expr $i + 1`
6325 teststring=$teststring$teststring
6326 done
6327 # Only check the string length outside the loop.
6328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6329 teststring=
6330 # Add a significant safety factor because C++ compilers can tack on
6331 # massive amounts of additional arguments before passing them to the
6332 # linker. It appears as though 1/2 is a usable value.
6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6334 fi
6335 ;;
6336 esac
6337
6338fi
6339
6340if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
6342$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6343else
b0322a85 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742
CE
6345$as_echo "none" >&6; }
6346fi
6347max_cmd_len=$lt_cv_sys_max_cmd_len
6348
6349
6350
6351
6352
6353
6354: ${CP="cp -f"}
6355: ${MV="mv -f"}
6356: ${RM="rm -f"}
6357
b0322a85 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
6359$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6360# Try some XSI features
6361xsi_shell=no
6362( _lt_dummy="a/b/c"
b0322a85
CE
6363 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6364 = c,a/b,b/c, \
8d138742
CE
6365 && eval 'test $(( 1 + 1 )) -eq 2 \
6366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6367 && xsi_shell=yes
b0322a85 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742
CE
6369$as_echo "$xsi_shell" >&6; }
6370
6371
b0322a85 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
6373$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6374lt_shell_append=no
6375( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6376 >/dev/null 2>&1 \
6377 && lt_shell_append=yes
b0322a85 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742
CE
6379$as_echo "$lt_shell_append" >&6; }
6380
6381
6382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6383 lt_unset=unset
6384else
6385 lt_unset=false
6386fi
6387
6388
6389
6390
6391
6392# test EBCDIC or ASCII
6393case `echo X|tr X '\101'` in
6394 A) # ASCII based system
6395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6396 lt_SP2NL='tr \040 \012'
6397 lt_NL2SP='tr \015\012 \040\040'
6398 ;;
6399 *) # EBCDIC based system
6400 lt_SP2NL='tr \100 \n'
6401 lt_NL2SP='tr \r\n \100\100'
d9898ee8 6402 ;;
6403esac
6404
d9898ee8 6405
d9898ee8 6406
d9898ee8 6407
d9898ee8 6408
d9898ee8 6409
d9898ee8 6410
8d138742
CE
6411
6412
b0322a85
CE
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6414$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6415if ${lt_cv_to_host_file_cmd+:} false; then :
8d138742
CE
6416 $as_echo_n "(cached) " >&6
6417else
b0322a85
CE
6418 case $host in
6419 *-*-mingw* )
6420 case $build in
6421 *-*-mingw* ) # actually msys
6422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6423 ;;
6424 *-*-cygwin* )
6425 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6426 ;;
6427 * ) # otherwise, assume *nix
6428 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6429 ;;
6430 esac
6431 ;;
6432 *-*-cygwin* )
6433 case $build in
6434 *-*-mingw* ) # actually msys
6435 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6436 ;;
6437 *-*-cygwin* )
6438 lt_cv_to_host_file_cmd=func_convert_file_noop
6439 ;;
6440 * ) # otherwise, assume *nix
6441 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6442 ;;
6443 esac
6444 ;;
6445 * ) # unhandled hosts (and "normal" native builds)
6446 lt_cv_to_host_file_cmd=func_convert_file_noop
6447 ;;
6448esac
6449
6450fi
6451
6452to_host_file_cmd=$lt_cv_to_host_file_cmd
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6454$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6455
6456
6457
6458
6459
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6461$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6462if ${lt_cv_to_tool_file_cmd+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464else
6465 #assume ordinary cross tools, or native build.
6466lt_cv_to_tool_file_cmd=func_convert_file_noop
6467case $host in
6468 *-*-mingw* )
6469 case $build in
6470 *-*-mingw* ) # actually msys
6471 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6472 ;;
6473 esac
6474 ;;
6475esac
6476
6477fi
6478
6479to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6481$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6482
6483
6484
6485
6486
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6488$as_echo_n "checking for $LD option to reload object files... " >&6; }
6489if ${lt_cv_ld_reload_flag+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 lt_cv_ld_reload_flag='-r'
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6495$as_echo "$lt_cv_ld_reload_flag" >&6; }
6496reload_flag=$lt_cv_ld_reload_flag
6497case $reload_flag in
6498"" | " "*) ;;
6499*) reload_flag=" $reload_flag" ;;
8d138742
CE
6500esac
6501reload_cmds='$LD$reload_flag -o $output$reload_objs'
6502case $host_os in
b0322a85
CE
6503 cygwin* | mingw* | pw32* | cegcc*)
6504 if test "$GCC" != yes; then
6505 reload_cmds=false
6506 fi
6507 ;;
8d138742
CE
6508 darwin*)
6509 if test "$GCC" = yes; then
6510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6511 else
6512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6513 fi
6514 ;;
6515esac
6516
6517
6518
6519
6520
6521
6522
6523
d9898ee8 6524
6525if test -n "$ac_tool_prefix"; then
8d138742
CE
6526 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6527set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6529$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6530if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 6531 $as_echo_n "(cached) " >&6
d9898ee8 6532else
8d138742
CE
6533 if test -n "$OBJDUMP"; then
6534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
b0322a85
CE
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6543 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6545 break 2
6546 fi
6547done
b0322a85 6548 done
dd184caf 6549IFS=$as_save_IFS
d9898ee8 6550
6551fi
6552fi
8d138742
CE
6553OBJDUMP=$ac_cv_prog_OBJDUMP
6554if test -n "$OBJDUMP"; then
b0322a85 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742 6556$as_echo "$OBJDUMP" >&6; }
d9898ee8 6557else
b0322a85 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6559$as_echo "no" >&6; }
d9898ee8 6560fi
6561
dd184caf 6562
d9898ee8 6563fi
8d138742
CE
6564if test -z "$ac_cv_prog_OBJDUMP"; then
6565 ac_ct_OBJDUMP=$OBJDUMP
6566 # Extract the first word of "objdump", so it can be a program name with args.
6567set dummy objdump; ac_word=$2
b0322a85 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6569$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6570if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 6571 $as_echo_n "(cached) " >&6
d9898ee8 6572else
8d138742
CE
6573 if test -n "$ac_ct_OBJDUMP"; then
6574 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
b0322a85
CE
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6583 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6585 break 2
6586 fi
6587done
b0322a85 6588 done
dd184caf 6589IFS=$as_save_IFS
d9898ee8 6590
d9898ee8 6591fi
6592fi
8d138742
CE
6593ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6594if test -n "$ac_ct_OBJDUMP"; then
b0322a85 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 6596$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6597else
b0322a85 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6599$as_echo "no" >&6; }
d9898ee8 6600fi
6601
8d138742
CE
6602 if test "x$ac_ct_OBJDUMP" = x; then
6603 OBJDUMP="false"
dd184caf 6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606yes:)
b0322a85 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6609ac_tool_warned=yes ;;
6610esac
8d138742 6611 OBJDUMP=$ac_ct_OBJDUMP
dd184caf 6612 fi
d9898ee8 6613else
8d138742 6614 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6615fi
6616
8d138742
CE
6617test -z "$OBJDUMP" && OBJDUMP=objdump
6618
6619
6620
6621
6622
6623
6624
6625
6626
b0322a85 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 6628$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 6629if ${lt_cv_deplibs_check_method+:} false; then :
8d138742
CE
6630 $as_echo_n "(cached) " >&6
6631else
6632 lt_cv_file_magic_cmd='$MAGIC_CMD'
6633lt_cv_file_magic_test_file=
6634lt_cv_deplibs_check_method='unknown'
6635# Need to set the preceding variable on all platforms that support
6636# interlibrary dependencies.
6637# 'none' -- dependencies not supported.
6638# `unknown' -- same as none, but documents that we really don't know.
6639# 'pass_all' -- all dependencies passed with no checks.
6640# 'test_compile' -- check by making test program.
6641# 'file_magic [[regex]]' -- check by looking for files in library path
6642# which responds to the $file_magic_cmd with a given extended regex.
6643# If you have `file' or equivalent on your system and you're not sure
6644# whether `pass_all' will *always* work, you probably want this one.
6645
6646case $host_os in
6647aix[4-9]*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651beos*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655bsdi[45]*)
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6657 lt_cv_file_magic_cmd='/usr/bin/file -L'
6658 lt_cv_file_magic_test_file=/shlib/libc.so
6659 ;;
6660
6661cygwin*)
6662 # func_win32_libid is a shell function defined in ltmain.sh
6663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6664 lt_cv_file_magic_cmd='func_win32_libid'
6665 ;;
6666
6667mingw* | pw32*)
6668 # Base MSYS/MinGW do not provide the 'file' command needed by
6669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6670 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
6671 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6672 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
6673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6674 lt_cv_file_magic_cmd='func_win32_libid'
6675 else
b0322a85
CE
6676 # Keep this pattern in sync with the one in func_win32_libid.
6677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
6678 lt_cv_file_magic_cmd='$OBJDUMP -f'
6679 fi
6680 ;;
6681
b0322a85 6682cegcc*)
8d138742
CE
6683 # use the weaker test based on 'objdump'. See mingw*.
6684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6685 lt_cv_file_magic_cmd='$OBJDUMP -f'
6686 ;;
6687
6688darwin* | rhapsody*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692freebsd* | dragonfly*)
6693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6694 case $host_cpu in
6695 i*86 )
6696 # Not sure whether the presence of OpenBSD here was a mistake.
6697 # Let's accept both of them until this is cleared up.
6698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6701 ;;
6702 esac
6703 else
6704 lt_cv_deplibs_check_method=pass_all
6705 fi
6706 ;;
6707
6708gnu*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
b0322a85
CE
6712haiku*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
8d138742
CE
6716hpux10.20* | hpux11*)
6717 lt_cv_file_magic_cmd=/usr/bin/file
6718 case $host_cpu in
6719 ia64*)
6720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6722 ;;
6723 hppa*64*)
b0322a85 6724 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
6725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6726 ;;
6727 *)
b0322a85 6728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
6729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6730 ;;
6731 esac
6732 ;;
6733
6734interix[3-9]*)
6735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6737 ;;
6738
6739irix5* | irix6* | nonstopux*)
6740 case $LD in
6741 *-32|*"-32 ") libmagic=32-bit;;
6742 *-n32|*"-n32 ") libmagic=N32;;
6743 *-64|*"-64 ") libmagic=64-bit;;
6744 *) libmagic=never-match;;
6745 esac
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
b0322a85
CE
6749# This must be glibc/ELF.
6750linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754netbsd*)
6755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6757 else
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6759 fi
6760 ;;
6761
6762newos6*)
6763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6764 lt_cv_file_magic_cmd=/usr/bin/file
6765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6766 ;;
6767
6768*nto* | *qnx*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772openbsd*)
6773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6775 else
6776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6777 fi
6778 ;;
6779
6780osf3* | osf4* | osf5*)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783
6784rdos*)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787
6788solaris*)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791
6792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6793 lt_cv_deplibs_check_method=pass_all
6794 ;;
6795
6796sysv4 | sysv4.3*)
6797 case $host_vendor in
6798 motorola)
6799 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]'
6800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6801 ;;
6802 ncr)
6803 lt_cv_deplibs_check_method=pass_all
6804 ;;
6805 sequent)
6806 lt_cv_file_magic_cmd='/bin/file'
6807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6808 ;;
6809 sni)
6810 lt_cv_file_magic_cmd='/bin/file'
6811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6812 lt_cv_file_magic_test_file=/lib/libc.so
6813 ;;
6814 siemens)
6815 lt_cv_deplibs_check_method=pass_all
6816 ;;
6817 pc)
6818 lt_cv_deplibs_check_method=pass_all
6819 ;;
6820 esac
6821 ;;
6822
6823tpf*)
6824 lt_cv_deplibs_check_method=pass_all
6825 ;;
6826esac
6827
6828fi
b0322a85 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8d138742 6830$as_echo "$lt_cv_deplibs_check_method" >&6; }
b0322a85
CE
6831
6832file_magic_glob=
6833want_nocaseglob=no
6834if test "$build" = "$host"; then
6835 case $host_os in
6836 mingw* | pw32*)
6837 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6838 want_nocaseglob=yes
6839 else
6840 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6841 fi
6842 ;;
6843 esac
6844fi
6845
8d138742
CE
6846file_magic_cmd=$lt_cv_file_magic_cmd
6847deplibs_check_method=$lt_cv_deplibs_check_method
6848test -z "$deplibs_check_method" && deplibs_check_method=unknown
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
b0322a85
CE
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_DLLTOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$DLLTOOL"; then
6880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899DLLTOOL=$ac_cv_prog_DLLTOOL
6900if test -n "$DLLTOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6902$as_echo "$DLLTOOL" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909fi
6910if test -z "$ac_cv_prog_DLLTOOL"; then
6911 ac_ct_DLLTOOL=$DLLTOOL
6912 # Extract the first word of "dlltool", so it can be a program name with args.
6913set dummy dlltool; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$ac_ct_DLLTOOL"; then
6920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6940if test -n "$ac_ct_DLLTOOL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6942$as_echo "$ac_ct_DLLTOOL" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948 if test "x$ac_ct_DLLTOOL" = x; then
6949 DLLTOOL="false"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 DLLTOOL=$ac_ct_DLLTOOL
6958 fi
6959else
6960 DLLTOOL="$ac_cv_prog_DLLTOOL"
6961fi
6962
6963test -z "$DLLTOOL" && DLLTOOL=dlltool
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6975$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6976if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 lt_cv_sharedlib_from_linklib_cmd='unknown'
6980
6981case $host_os in
6982cygwin* | mingw* | pw32* | cegcc*)
6983 # two different shell functions defined in ltmain.sh
6984 # decide which to use based on capabilities of $DLLTOOL
6985 case `$DLLTOOL --help 2>&1` in
6986 *--identify-strict*)
6987 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6988 ;;
6989 *)
6990 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6991 ;;
6992 esac
6993 ;;
6994*)
6995 # fallback: assume linklib IS sharedlib
6996 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6997 ;;
6998esac
6999
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7002$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7003sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7004test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7005
7006
7007
7008
7009
7010
7011
8d138742 7012if test -n "$ac_tool_prefix"; then
b0322a85
CE
7013 for ac_prog in ar
7014 do
7015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7018$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7019if ${ac_cv_prog_AR+:} false; then :
8d138742
CE
7020 $as_echo_n "(cached) " >&6
7021else
7022 if test -n "$AR"; then
7023 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
b0322a85
CE
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7034 break 2
7035 fi
7036done
b0322a85 7037 done
dd184caf 7038IFS=$as_save_IFS
d9898ee8 7039
7040fi
7041fi
8d138742
CE
7042AR=$ac_cv_prog_AR
7043if test -n "$AR"; then
b0322a85 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742 7045$as_echo "$AR" >&6; }
d9898ee8 7046else
b0322a85 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7048$as_echo "no" >&6; }
d9898ee8 7049fi
7050
dd184caf 7051
b0322a85
CE
7052 test -n "$AR" && break
7053 done
d9898ee8 7054fi
b0322a85 7055if test -z "$AR"; then
8d138742 7056 ac_ct_AR=$AR
b0322a85
CE
7057 for ac_prog in ar
7058do
7059 # Extract the first word of "$ac_prog", so it can be a program name with args.
7060set dummy $ac_prog; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7062$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7063if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 7064 $as_echo_n "(cached) " >&6
d9898ee8 7065else
8d138742
CE
7066 if test -n "$ac_ct_AR"; then
7067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
b0322a85
CE
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_AR="$ac_prog"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7078 break 2
7079 fi
7080done
b0322a85 7081 done
dd184caf 7082IFS=$as_save_IFS
d9898ee8 7083
d9898ee8 7084fi
7085fi
8d138742
CE
7086ac_ct_AR=$ac_cv_prog_ac_ct_AR
7087if test -n "$ac_ct_AR"; then
b0322a85 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742 7089$as_echo "$ac_ct_AR" >&6; }
d9898ee8 7090else
b0322a85 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7092$as_echo "no" >&6; }
d9898ee8 7093fi
7094
b0322a85
CE
7095
7096 test -n "$ac_ct_AR" && break
7097done
7098
8d138742
CE
7099 if test "x$ac_ct_AR" = x; then
7100 AR="false"
dd184caf 7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103yes:)
b0322a85 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7106ac_tool_warned=yes ;;
7107esac
8d138742 7108 AR=$ac_ct_AR
dd184caf 7109 fi
d9898ee8 7110fi
7111
b0322a85
CE
7112: ${AR=ar}
7113: ${AR_FLAGS=cru}
7114
7115
7116
7117
7118
8d138742
CE
7119
7120
7121
7122
7123
7124
b0322a85
CE
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7126$as_echo_n "checking for archiver @FILE support... " >&6; }
7127if ${lt_cv_ar_at_file+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129else
7130 lt_cv_ar_at_file=no
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h. */
7133
7134int
7135main ()
7136{
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142if ac_fn_c_try_compile "$LINENO"; then :
7143 echo conftest.$ac_objext > conftest.lst
7144 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146 (eval $lt_ar_try) 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150 if test "$ac_status" -eq 0; then
7151 # Ensure the archiver fails upon bogus file names.
7152 rm -f conftest.$ac_objext libconftest.a
7153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7154 (eval $lt_ar_try) 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }
7158 if test "$ac_status" -ne 0; then
7159 lt_cv_ar_at_file=@
7160 fi
7161 fi
7162 rm -f conftest.* libconftest.a
7163
7164fi
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7169$as_echo "$lt_cv_ar_at_file" >&6; }
7170
7171if test "x$lt_cv_ar_at_file" = xno; then
7172 archiver_list_spec=
7173else
7174 archiver_list_spec=$lt_cv_ar_at_file
7175fi
7176
7177
8d138742
CE
7178
7179
7180
7181
7182
7183if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7185set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7187$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7188if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
7189 $as_echo_n "(cached) " >&6
7190else
7191 if test -n "$STRIP"; then
7192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
b0322a85
CE
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 7201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7203 break 2
7204 fi
7205done
b0322a85 7206 done
dd184caf 7207IFS=$as_save_IFS
d9898ee8 7208
7209fi
7210fi
7211STRIP=$ac_cv_prog_STRIP
7212if test -n "$STRIP"; then
b0322a85 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 7214$as_echo "$STRIP" >&6; }
d9898ee8 7215else
b0322a85 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7217$as_echo "no" >&6; }
d9898ee8 7218fi
7219
dd184caf 7220
d9898ee8 7221fi
7222if test -z "$ac_cv_prog_STRIP"; then
7223 ac_ct_STRIP=$STRIP
7224 # Extract the first word of "strip", so it can be a program name with args.
7225set dummy strip; ac_word=$2
b0322a85 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7227$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7228if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 7229 $as_echo_n "(cached) " >&6
d9898ee8 7230else
7231 if test -n "$ac_ct_STRIP"; then
7232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
b0322a85
CE
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 7241 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7243 break 2
7244 fi
7245done
b0322a85 7246 done
dd184caf 7247IFS=$as_save_IFS
d9898ee8 7248
d9898ee8 7249fi
7250fi
7251ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7252if test -n "$ac_ct_STRIP"; then
b0322a85 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 7254$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 7255else
b0322a85 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7257$as_echo "no" >&6; }
d9898ee8 7258fi
7259
dd184caf 7260 if test "x$ac_ct_STRIP" = x; then
7261 STRIP=":"
7262 else
7263 case $cross_compiling:$ac_tool_warned in
7264yes:)
b0322a85 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7267ac_tool_warned=yes ;;
7268esac
7269 STRIP=$ac_ct_STRIP
7270 fi
d9898ee8 7271else
7272 STRIP="$ac_cv_prog_STRIP"
7273fi
7274
8d138742 7275test -z "$STRIP" && STRIP=:
d9898ee8 7276
d9898ee8 7277
8d138742
CE
7278
7279
7280
7281
7282if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7286$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7287if ${ac_cv_prog_RANLIB+:} false; then :
8d138742
CE
7288 $as_echo_n "(cached) " >&6
7289else
7290 if test -n "$RANLIB"; then
7291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
b0322a85
CE
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7302 break 2
7303 fi
7304done
b0322a85 7305 done
8d138742
CE
7306IFS=$as_save_IFS
7307
7308fi
7309fi
7310RANLIB=$ac_cv_prog_RANLIB
7311if test -n "$RANLIB"; then
b0322a85 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
7313$as_echo "$RANLIB" >&6; }
7314else
b0322a85 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7316$as_echo "no" >&6; }
7317fi
7318
7319
7320fi
7321if test -z "$ac_cv_prog_RANLIB"; then
7322 ac_ct_RANLIB=$RANLIB
7323 # Extract the first word of "ranlib", so it can be a program name with args.
7324set dummy ranlib; ac_word=$2
b0322a85 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7326$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7327if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
7328 $as_echo_n "(cached) " >&6
7329else
7330 if test -n "$ac_ct_RANLIB"; then
7331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
b0322a85
CE
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7340 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7342 break 2
7343 fi
7344done
b0322a85 7345 done
8d138742
CE
7346IFS=$as_save_IFS
7347
7348fi
7349fi
7350ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7351if test -n "$ac_ct_RANLIB"; then
b0322a85 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
7353$as_echo "$ac_ct_RANLIB" >&6; }
7354else
b0322a85 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7356$as_echo "no" >&6; }
7357fi
7358
7359 if test "x$ac_ct_RANLIB" = x; then
7360 RANLIB=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363yes:)
b0322a85 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366ac_tool_warned=yes ;;
7367esac
7368 RANLIB=$ac_ct_RANLIB
7369 fi
7370else
7371 RANLIB="$ac_cv_prog_RANLIB"
7372fi
7373
d9898ee8 7374test -z "$RANLIB" && RANLIB=:
8d138742
CE
7375
7376
7377
7378
7379
d9898ee8 7380
7381# Determine commands to create old-style static archives.
ac40fd9e 7382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7383old_postinstall_cmds='chmod 644 $oldlib'
7384old_postuninstall_cmds=
7385
7386if test -n "$RANLIB"; then
7387 case $host_os in
7388 openbsd*)
b0322a85 7389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d9898ee8 7390 ;;
7391 *)
b0322a85 7392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 7393 ;;
7394 esac
b0322a85 7395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 7396fi
7397
b0322a85
CE
7398case $host_os in
7399 darwin*)
7400 lock_old_archive_extraction=yes ;;
7401 *)
7402 lock_old_archive_extraction=no ;;
7403esac
7404
7405
7406
7407
7408
7409
d9898ee8 7410
7411
d9898ee8 7412
d9898ee8 7413
d9898ee8 7414
d9898ee8 7415
d9898ee8 7416
d9898ee8 7417
d9898ee8 7418
d9898ee8 7419
d9898ee8 7420
d9898ee8 7421
d9898ee8 7422
d9898ee8 7423
d9898ee8 7424
7425
dd184caf 7426
d9898ee8 7427
d9898ee8 7428
7429
d9898ee8 7430
d9898ee8 7431
d9898ee8 7432
8d138742
CE
7433
7434
7435
7436
7437
7438
7439
7440
d9898ee8 7441
7442
7443# If no C compiler was specified, use CC.
7444LTCC=${LTCC-"$CC"}
7445
7446# If no C compiler flags were specified, use CFLAGS.
7447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7448
7449# Allow CC to be a program name with arguments.
7450compiler=$CC
7451
7452
8d138742 7453# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 7455$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 7456if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742
CE
7457 $as_echo_n "(cached) " >&6
7458else
d9898ee8 7459
8d138742
CE
7460# These are sane defaults that work on at least a few old systems.
7461# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 7462
8d138742
CE
7463# Character class describing NM global symbol codes.
7464symcode='[BCDEGRST]'
d9898ee8 7465
8d138742
CE
7466# Regexp to match symbols that can be accessed directly from C.
7467sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 7468
8d138742
CE
7469# Define system-specific variables.
7470case $host_os in
7471aix*)
7472 symcode='[BCDT]'
7473 ;;
7474cygwin* | mingw* | pw32* | cegcc*)
7475 symcode='[ABCDGISTW]'
7476 ;;
7477hpux*)
7478 if test "$host_cpu" = ia64; then
7479 symcode='[ABCDEGRST]'
7480 fi
7481 ;;
7482irix* | nonstopux*)
7483 symcode='[BCDEGRST]'
7484 ;;
7485osf*)
7486 symcode='[BCDEGQRST]'
7487 ;;
7488solaris*)
7489 symcode='[BDRT]'
7490 ;;
7491sco3.2v5*)
7492 symcode='[DT]'
7493 ;;
7494sysv4.2uw2*)
7495 symcode='[DT]'
7496 ;;
7497sysv5* | sco5v6* | unixware* | OpenUNIX*)
7498 symcode='[ABDT]'
7499 ;;
7500sysv4)
7501 symcode='[DFNSTU]'
7502 ;;
7503esac
d9898ee8 7504
8d138742
CE
7505# If we're using GNU nm, then use its standard symbol codes.
7506case `$NM -V 2>&1` in
7507*GNU* | *'with BFD'*)
7508 symcode='[ABCDGIRSTW]' ;;
7509esac
d9898ee8 7510
8d138742
CE
7511# Transform an extracted symbol line into a proper C declaration.
7512# Some systems (esp. on ia64) link data and code symbols differently,
7513# so use this general approach.
7514lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 7515
8d138742 7516# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
7517lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7518lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d9898ee8 7519
8d138742
CE
7520# Handle CRLF in mingw tool chain
7521opt_cr=
7522case $build_os in
7523mingw*)
7524 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7525 ;;
7526esac
d9898ee8 7527
8d138742
CE
7528# Try without a prefix underscore, then with it.
7529for ac_symprfx in "" "_"; do
d9898ee8 7530
8d138742
CE
7531 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7532 symxfrm="\\1 $ac_symprfx\\2 \\2"
d9898ee8 7533
8d138742
CE
7534 # Write the raw and C identifiers.
7535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7536 # Fake it for dumpbin and say T for any non-static function
7537 # and D for any global variable.
7538 # Also find C++ and __fastcall symbols from MSVC++,
7539 # which start with @ or ?.
7540 lt_cv_sys_global_symbol_pipe="$AWK '"\
7541" {last_section=section; section=\$ 3};"\
b0322a85 7542" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
7543" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7544" \$ 0!~/External *\|/{next};"\
7545" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7546" {if(hide[section]) next};"\
7547" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7548" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7549" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7550" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7551" ' prfx=^$ac_symprfx"
7552 else
7553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7554 fi
b0322a85 7555 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 7556
8d138742
CE
7557 # Check to see that the pipe works correctly.
7558 pipe_works=no
d9898ee8 7559
8d138742
CE
7560 rm -f conftest*
7561 cat > conftest.$ac_ext <<_LT_EOF
7562#ifdef __cplusplus
7563extern "C" {
7564#endif
7565char nm_test_var;
7566void nm_test_func(void);
7567void nm_test_func(void){}
7568#ifdef __cplusplus
7569}
7570#endif
7571int main(){nm_test_var='a';nm_test_func();return(0);}
7572_LT_EOF
d9898ee8 7573
b0322a85 7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
b0322a85
CE
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
8d138742
CE
7579 # Now try to grab the symbols.
7580 nlist=conftest.nm
b0322a85
CE
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7582 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8d138742 7583 ac_status=$?
b0322a85
CE
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
7586 # Try sorting and uniquifying the output.
7587 if sort "$nlist" | uniq > "$nlist"T; then
7588 mv -f "$nlist"T "$nlist"
7589 else
7590 rm -f "$nlist"T
d9898ee8 7591 fi
d9898ee8 7592
8d138742
CE
7593 # Make sure that we snagged all the symbols we need.
7594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7596 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
7597/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7598#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7599/* DATA imports from DLLs on WIN32 con't be const, because runtime
7600 relocations are performed -- see ld's documentation on pseudo-relocs. */
7601# define LT_DLSYM_CONST
7602#elif defined(__osf__)
7603/* This system does not cope well with relocations in const data. */
7604# define LT_DLSYM_CONST
7605#else
7606# define LT_DLSYM_CONST const
7607#endif
7608
8d138742
CE
7609#ifdef __cplusplus
7610extern "C" {
7611#endif
d9898ee8 7612
8d138742
CE
7613_LT_EOF
7614 # Now generate the symbol file.
7615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7616
8d138742 7617 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7618
8d138742 7619/* The mapping between symbol names and symbols. */
b0322a85 7620LT_DLSYM_CONST struct {
8d138742
CE
7621 const char *name;
7622 void *address;
7623}
7624lt__PROGRAM__LTX_preloaded_symbols[] =
7625{
7626 { "@PROGRAM@", (void *) 0 },
7627_LT_EOF
7628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7629 cat <<\_LT_EOF >> conftest.$ac_ext
7630 {0, (void *) 0}
7631};
d9898ee8 7632
8d138742
CE
7633/* This works around a problem in FreeBSD linker */
7634#ifdef FREEBSD_WORKAROUND
7635static const void *lt_preloaded_setup() {
7636 return lt__PROGRAM__LTX_preloaded_symbols;
7637}
7638#endif
d9898ee8 7639
8d138742
CE
7640#ifdef __cplusplus
7641}
7642#endif
7643_LT_EOF
7644 # Now try linking the two files.
7645 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
7646 lt_globsym_save_LIBS=$LIBS
7647 lt_globsym_save_CFLAGS=$CFLAGS
8d138742
CE
7648 LIBS="conftstm.$ac_objext"
7649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 7650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
7651 (eval $ac_link) 2>&5
7652 ac_status=$?
b0322a85
CE
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8d138742
CE
7655 pipe_works=yes
7656 fi
b0322a85
CE
7657 LIBS=$lt_globsym_save_LIBS
7658 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
7659 else
7660 echo "cannot find nm_test_func in $nlist" >&5
7661 fi
7662 else
7663 echo "cannot find nm_test_var in $nlist" >&5
d9898ee8 7664 fi
8d138742
CE
7665 else
7666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7667 fi
7668 else
7669 echo "$progname: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 fi
7672 rm -rf conftest* conftst*
d9898ee8 7673
8d138742
CE
7674 # Do not use the global_symbol_pipe unless it works.
7675 if test "$pipe_works" = yes; then
7676 break
d9898ee8 7677 else
8d138742
CE
7678 lt_cv_sys_global_symbol_pipe=
7679 fi
7680done
d9898ee8 7681
8d138742 7682fi
d9898ee8 7683
8d138742
CE
7684if test -z "$lt_cv_sys_global_symbol_pipe"; then
7685 lt_cv_sys_global_symbol_to_cdecl=
7686fi
7687if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742
CE
7689$as_echo "failed" >&6; }
7690else
b0322a85 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742
CE
7692$as_echo "ok" >&6; }
7693fi
d9898ee8 7694
b0322a85
CE
7695# Response file support.
7696if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7697 nm_file_list_spec='@'
7698elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7699 nm_file_list_spec='@'
7700fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
d9898ee8 7713
d9898ee8 7714
d9898ee8 7715
d9898ee8 7716
ac40fd9e 7717
d9898ee8 7718
d9898ee8 7719
d9898ee8 7720
d9898ee8 7721
d9898ee8 7722
d9898ee8 7723
d9898ee8 7724
d9898ee8 7725
d9898ee8 7726
d9898ee8 7727
b0322a85
CE
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7729$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 7730
b0322a85
CE
7731# Check whether --with-sysroot was given.
7732if test "${with_sysroot+set}" = set; then :
7733 withval=$with_sysroot;
7734else
7735 with_sysroot=no
7736fi
7737
7738
7739lt_sysroot=
7740case ${with_sysroot} in #(
7741 yes)
7742 if test "$GCC" = yes; then
7743 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7744 fi
7745 ;; #(
7746 /*)
7747 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7748 ;; #(
7749 no|'')
7750 ;; #(
7751 *)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7753$as_echo "${with_sysroot}" >&6; }
7754 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7755 ;;
7756esac
7757
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7759$as_echo "${lt_sysroot:-no}" >&6; }
d9898ee8 7760
d9898ee8 7761
d9898ee8 7762
d9898ee8 7763
d9898ee8 7764
8d138742 7765# Check whether --enable-libtool-lock was given.
b0322a85 7766if test "${enable_libtool_lock+set}" = set; then :
8d138742 7767 enableval=$enable_libtool_lock;
d9898ee8 7768fi
7769
8d138742 7770test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 7771
8d138742
CE
7772# Some flags need to be propagated to the compiler or linker for good
7773# libtool support.
7774case $host in
7775ia64-*-hpux*)
7776 # Find out which ABI we are using.
7777 echo 'int i;' > conftest.$ac_ext
b0322a85 7778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7779 (eval $ac_compile) 2>&5
7780 ac_status=$?
b0322a85
CE
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
8d138742
CE
7783 case `/usr/bin/file conftest.$ac_objext` in
7784 *ELF-32*)
7785 HPUX_IA64_MODE="32"
7786 ;;
7787 *ELF-64*)
7788 HPUX_IA64_MODE="64"
7789 ;;
7790 esac
7791 fi
7792 rm -rf conftest*
7793 ;;
7794*-*-irix6*)
7795 # Find out which ABI we are using.
b0322a85
CE
7796 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7798 (eval $ac_compile) 2>&5
7799 ac_status=$?
b0322a85
CE
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }; then
8d138742
CE
7802 if test "$lt_cv_prog_gnu_ld" = yes; then
7803 case `/usr/bin/file conftest.$ac_objext` in
7804 *32-bit*)
7805 LD="${LD-ld} -melf32bsmip"
7806 ;;
7807 *N32*)
7808 LD="${LD-ld} -melf32bmipn32"
7809 ;;
7810 *64-bit*)
7811 LD="${LD-ld} -melf64bmip"
7812 ;;
7813 esac
7814 else
7815 case `/usr/bin/file conftest.$ac_objext` in
7816 *32-bit*)
7817 LD="${LD-ld} -32"
7818 ;;
7819 *N32*)
7820 LD="${LD-ld} -n32"
7821 ;;
7822 *64-bit*)
7823 LD="${LD-ld} -64"
7824 ;;
7825 esac
7826 fi
7827 fi
7828 rm -rf conftest*
7829 ;;
d9898ee8 7830
8d138742
CE
7831x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7832s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7833 # Find out which ABI we are using.
7834 echo 'int i;' > conftest.$ac_ext
b0322a85 7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7836 (eval $ac_compile) 2>&5
7837 ac_status=$?
b0322a85
CE
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }; then
8d138742
CE
7840 case `/usr/bin/file conftest.o` in
7841 *32-bit*)
7842 case $host in
7843 x86_64-*kfreebsd*-gnu)
7844 LD="${LD-ld} -m elf_i386_fbsd"
7845 ;;
7846 x86_64-*linux*)
7847 LD="${LD-ld} -m elf_i386"
7848 ;;
7849 ppc64-*linux*|powerpc64-*linux*)
7850 LD="${LD-ld} -m elf32ppclinux"
7851 ;;
7852 s390x-*linux*)
7853 LD="${LD-ld} -m elf_s390"
7854 ;;
7855 sparc64-*linux*)
7856 LD="${LD-ld} -m elf32_sparc"
7857 ;;
7858 esac
7859 ;;
7860 *64-bit*)
7861 case $host in
7862 x86_64-*kfreebsd*-gnu)
7863 LD="${LD-ld} -m elf_x86_64_fbsd"
7864 ;;
7865 x86_64-*linux*)
7866 LD="${LD-ld} -m elf_x86_64"
7867 ;;
7868 ppc*-*linux*|powerpc*-*linux*)
7869 LD="${LD-ld} -m elf64ppc"
7870 ;;
7871 s390*-*linux*|s390*-*tpf*)
7872 LD="${LD-ld} -m elf64_s390"
7873 ;;
7874 sparc*-*linux*)
7875 LD="${LD-ld} -m elf64_sparc"
7876 ;;
7877 esac
7878 ;;
7879 esac
d9898ee8 7880 fi
8d138742
CE
7881 rm -rf conftest*
7882 ;;
7883
7884*-*-sco3.2v5*)
7885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7886 SAVE_CFLAGS="$CFLAGS"
7887 CFLAGS="$CFLAGS -belf"
b0322a85 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 7889$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 7890if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 7891 $as_echo_n "(cached) " >&6
d9898ee8 7892else
8d138742
CE
7893 ac_ext=c
7894ac_cpp='$CPP $CPPFLAGS'
7895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7898
b0322a85 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7900/* end confdefs.h. */
d9898ee8 7901
8d138742
CE
7902int
7903main ()
7904{
d9898ee8 7905
8d138742
CE
7906 ;
7907 return 0;
7908}
7909_ACEOF
b0322a85 7910if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
7911 lt_cv_cc_needs_belf=yes
7912else
b0322a85 7913 lt_cv_cc_needs_belf=no
8d138742 7914fi
b0322a85
CE
7915rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
7917 ac_ext=c
7918ac_cpp='$CPP $CPPFLAGS'
7919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922
7923fi
b0322a85 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
7925$as_echo "$lt_cv_cc_needs_belf" >&6; }
7926 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7928 CFLAGS="$SAVE_CFLAGS"
7929 fi
7930 ;;
b0322a85 7931*-*solaris*)
8d138742
CE
7932 # Find out which ABI we are using.
7933 echo 'int i;' > conftest.$ac_ext
b0322a85 7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7935 (eval $ac_compile) 2>&5
7936 ac_status=$?
b0322a85
CE
7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; }; then
8d138742
CE
7939 case `/usr/bin/file conftest.o` in
7940 *64-bit*)
7941 case $lt_cv_prog_gnu_ld in
b0322a85
CE
7942 yes*)
7943 case $host in
7944 i?86-*-solaris*)
7945 LD="${LD-ld} -m elf_x86_64"
7946 ;;
7947 sparc*-*-solaris*)
7948 LD="${LD-ld} -m elf64_sparc"
7949 ;;
7950 esac
7951 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7952 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7953 LD="${LD-ld}_sol2"
7954 fi
7955 ;;
8d138742
CE
7956 *)
7957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 LD="${LD-ld} -64"
7959 fi
7960 ;;
7961 esac
7962 ;;
d9898ee8 7963 esac
8d138742
CE
7964 fi
7965 rm -rf conftest*
7966 ;;
7967esac
d9898ee8 7968
8d138742 7969need_locks="$enable_libtool_lock"
d9898ee8 7970
b0322a85
CE
7971if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}mt; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978else
7979 if test -n "$MANIFEST_TOOL"; then
7980 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8000if test -n "$MANIFEST_TOOL"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8002$as_echo "$MANIFEST_TOOL" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8011 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8012 # Extract the first word of "mt", so it can be a program name with args.
8013set dummy mt; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018else
8019 if test -n "$ac_ct_MANIFEST_TOOL"; then
8020 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033done
8034 done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8040if test -n "$ac_ct_MANIFEST_TOOL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8042$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8049 MANIFEST_TOOL=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8058 fi
8059else
8060 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8061fi
8062
8063test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8065$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8066if ${lt_cv_path_mainfest_tool+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068else
8069 lt_cv_path_mainfest_tool=no
8070 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8071 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8072 cat conftest.err >&5
8073 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8074 lt_cv_path_mainfest_tool=yes
8075 fi
8076 rm -f conftest*
8077fi
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8079$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8080if test "x$lt_cv_path_mainfest_tool" != xyes; then
8081 MANIFEST_TOOL=:
8082fi
8083
8084
8085
8086
8087
d9898ee8 8088
8d138742
CE
8089 case $host_os in
8090 rhapsody* | darwin*)
8091 if test -n "$ac_tool_prefix"; then
8092 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8093set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8095$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8096if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
8097 $as_echo_n "(cached) " >&6
8098else
8099 if test -n "$DSYMUTIL"; then
8100 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
b0322a85
CE
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8109 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8111 break 2
8112 fi
8113done
b0322a85 8114 done
8d138742 8115IFS=$as_save_IFS
d9898ee8 8116
8d138742
CE
8117fi
8118fi
8119DSYMUTIL=$ac_cv_prog_DSYMUTIL
8120if test -n "$DSYMUTIL"; then
b0322a85 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742
CE
8122$as_echo "$DSYMUTIL" >&6; }
8123else
b0322a85 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8125$as_echo "no" >&6; }
8126fi
d9898ee8 8127
d9898ee8 8128
8d138742
CE
8129fi
8130if test -z "$ac_cv_prog_DSYMUTIL"; then
8131 ac_ct_DSYMUTIL=$DSYMUTIL
8132 # Extract the first word of "dsymutil", so it can be a program name with args.
8133set dummy dsymutil; ac_word=$2
b0322a85 8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8135$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8136if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
8137 $as_echo_n "(cached) " >&6
8138else
8139 if test -n "$ac_ct_DSYMUTIL"; then
8140 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
b0322a85
CE
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8151 break 2
8152 fi
8153done
b0322a85 8154 done
8d138742 8155IFS=$as_save_IFS
d9898ee8 8156
8d138742
CE
8157fi
8158fi
8159ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8160if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
8162$as_echo "$ac_ct_DSYMUTIL" >&6; }
8163else
b0322a85 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8165$as_echo "no" >&6; }
8166fi
d9898ee8 8167
8d138742
CE
8168 if test "x$ac_ct_DSYMUTIL" = x; then
8169 DSYMUTIL=":"
8170 else
8171 case $cross_compiling:$ac_tool_warned in
8172yes:)
b0322a85 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175ac_tool_warned=yes ;;
8176esac
8177 DSYMUTIL=$ac_ct_DSYMUTIL
8178 fi
8179else
8180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8181fi
d9898ee8 8182
8d138742
CE
8183 if test -n "$ac_tool_prefix"; then
8184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8185set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8187$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8188if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742
CE
8189 $as_echo_n "(cached) " >&6
8190else
8191 if test -n "$NMEDIT"; then
8192 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
b0322a85
CE
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8201 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8203 break 2
8204 fi
8205done
b0322a85 8206 done
8d138742 8207IFS=$as_save_IFS
d9898ee8 8208
8d138742
CE
8209fi
8210fi
8211NMEDIT=$ac_cv_prog_NMEDIT
8212if test -n "$NMEDIT"; then
b0322a85 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742
CE
8214$as_echo "$NMEDIT" >&6; }
8215else
b0322a85 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8217$as_echo "no" >&6; }
8218fi
d9898ee8 8219
d9898ee8 8220
8d138742
CE
8221fi
8222if test -z "$ac_cv_prog_NMEDIT"; then
8223 ac_ct_NMEDIT=$NMEDIT
8224 # Extract the first word of "nmedit", so it can be a program name with args.
8225set dummy nmedit; ac_word=$2
b0322a85 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8227$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8228if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742
CE
8229 $as_echo_n "(cached) " >&6
8230else
8231 if test -n "$ac_ct_NMEDIT"; then
8232 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
b0322a85
CE
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8241 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8243 break 2
8244 fi
8245done
b0322a85 8246 done
8d138742 8247IFS=$as_save_IFS
d9898ee8 8248
8d138742
CE
8249fi
8250fi
8251ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8252if test -n "$ac_ct_NMEDIT"; then
b0322a85 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
8254$as_echo "$ac_ct_NMEDIT" >&6; }
8255else
b0322a85 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8257$as_echo "no" >&6; }
8258fi
d9898ee8 8259
8d138742
CE
8260 if test "x$ac_ct_NMEDIT" = x; then
8261 NMEDIT=":"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264yes:)
b0322a85 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267ac_tool_warned=yes ;;
8268esac
8269 NMEDIT=$ac_ct_NMEDIT
8270 fi
8271else
8272 NMEDIT="$ac_cv_prog_NMEDIT"
8273fi
d9898ee8 8274
8d138742
CE
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8277set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8279$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8280if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
8281 $as_echo_n "(cached) " >&6
8282else
8283 if test -n "$LIPO"; then
8284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
b0322a85
CE
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8293 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8295 break 2
8296 fi
8297done
b0322a85 8298 done
8d138742 8299IFS=$as_save_IFS
d9898ee8 8300
8d138742
CE
8301fi
8302fi
8303LIPO=$ac_cv_prog_LIPO
8304if test -n "$LIPO"; then
b0322a85 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
8306$as_echo "$LIPO" >&6; }
8307else
b0322a85 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8309$as_echo "no" >&6; }
8310fi
d9898ee8 8311
d9898ee8 8312
8d138742
CE
8313fi
8314if test -z "$ac_cv_prog_LIPO"; then
8315 ac_ct_LIPO=$LIPO
8316 # Extract the first word of "lipo", so it can be a program name with args.
8317set dummy lipo; ac_word=$2
b0322a85 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8319$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8320if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742
CE
8321 $as_echo_n "(cached) " >&6
8322else
8323 if test -n "$ac_ct_LIPO"; then
8324 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
b0322a85
CE
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8333 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8335 break 2
8336 fi
8337done
b0322a85 8338 done
8d138742 8339IFS=$as_save_IFS
d9898ee8 8340
8d138742
CE
8341fi
8342fi
8343ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8344if test -n "$ac_ct_LIPO"; then
b0322a85 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742
CE
8346$as_echo "$ac_ct_LIPO" >&6; }
8347else
b0322a85 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8349$as_echo "no" >&6; }
8350fi
d9898ee8 8351
8d138742
CE
8352 if test "x$ac_ct_LIPO" = x; then
8353 LIPO=":"
d9898ee8 8354 else
8d138742
CE
8355 case $cross_compiling:$ac_tool_warned in
8356yes:)
b0322a85 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359ac_tool_warned=yes ;;
8360esac
8361 LIPO=$ac_ct_LIPO
8362 fi
8363else
8364 LIPO="$ac_cv_prog_LIPO"
8365fi
d9898ee8 8366
8d138742
CE
8367 if test -n "$ac_tool_prefix"; then
8368 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8369set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8371$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8372if ${ac_cv_prog_OTOOL+:} false; then :
8d138742
CE
8373 $as_echo_n "(cached) " >&6
8374else
8375 if test -n "$OTOOL"; then
8376 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
b0322a85
CE
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8385 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8387 break 2
8388 fi
8389done
b0322a85 8390 done
8d138742 8391IFS=$as_save_IFS
d9898ee8 8392
8d138742
CE
8393fi
8394fi
8395OTOOL=$ac_cv_prog_OTOOL
8396if test -n "$OTOOL"; then
b0322a85 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742
CE
8398$as_echo "$OTOOL" >&6; }
8399else
b0322a85 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8401$as_echo "no" >&6; }
8402fi
d9898ee8 8403
d9898ee8 8404
8d138742
CE
8405fi
8406if test -z "$ac_cv_prog_OTOOL"; then
8407 ac_ct_OTOOL=$OTOOL
8408 # Extract the first word of "otool", so it can be a program name with args.
8409set dummy otool; ac_word=$2
b0322a85 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8411$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8412if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
8413 $as_echo_n "(cached) " >&6
8414else
8415 if test -n "$ac_ct_OTOOL"; then
8416 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
b0322a85
CE
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8425 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8427 break 2
8428 fi
8429done
b0322a85 8430 done
8d138742 8431IFS=$as_save_IFS
d9898ee8 8432
8d138742
CE
8433fi
8434fi
8435ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8436if test -n "$ac_ct_OTOOL"; then
b0322a85 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742
CE
8438$as_echo "$ac_ct_OTOOL" >&6; }
8439else
b0322a85 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8441$as_echo "no" >&6; }
8442fi
d9898ee8 8443
8d138742
CE
8444 if test "x$ac_ct_OTOOL" = x; then
8445 OTOOL=":"
8446 else
8447 case $cross_compiling:$ac_tool_warned in
8448yes:)
b0322a85 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451ac_tool_warned=yes ;;
8452esac
8453 OTOOL=$ac_ct_OTOOL
8454 fi
8455else
8456 OTOOL="$ac_cv_prog_OTOOL"
8457fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8461set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8463$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8464if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
8465 $as_echo_n "(cached) " >&6
8466else
8467 if test -n "$OTOOL64"; then
8468 ac_cv_prog_OTOOL64="$OTOOL64" # 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=.
b0322a85
CE
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8477 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8479 break 2
8480 fi
8481done
b0322a85 8482 done
8d138742
CE
8483IFS=$as_save_IFS
8484
8485fi
8486fi
8487OTOOL64=$ac_cv_prog_OTOOL64
8488if test -n "$OTOOL64"; then
b0322a85 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
8490$as_echo "$OTOOL64" >&6; }
8491else
b0322a85 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8493$as_echo "no" >&6; }
8494fi
8495
8496
8497fi
8498if test -z "$ac_cv_prog_OTOOL64"; then
8499 ac_ct_OTOOL64=$OTOOL64
8500 # Extract the first word of "otool64", so it can be a program name with args.
8501set dummy otool64; ac_word=$2
b0322a85 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8503$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8504if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
8505 $as_echo_n "(cached) " >&6
8506else
8507 if test -n "$ac_ct_OTOOL64"; then
8508 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
b0322a85
CE
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8517 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8519 break 2
8520 fi
8521done
b0322a85 8522 done
8d138742
CE
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8528if test -n "$ac_ct_OTOOL64"; then
b0322a85 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742
CE
8530$as_echo "$ac_ct_OTOOL64" >&6; }
8531else
b0322a85 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8533$as_echo "no" >&6; }
8534fi
8535
8536 if test "x$ac_ct_OTOOL64" = x; then
8537 OTOOL64=":"
8538 else
8539 case $cross_compiling:$ac_tool_warned in
8540yes:)
b0322a85 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543ac_tool_warned=yes ;;
8544esac
8545 OTOOL64=$ac_ct_OTOOL64
8546 fi
8547else
8548 OTOOL64="$ac_cv_prog_OTOOL64"
8549fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
b0322a85
CE
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8578$as_echo_n "checking for -single_module linker flag... " >&6; }
8579if ${lt_cv_apple_cc_single_mod+:} false; then :
8580 $as_echo_n "(cached) " >&6
8d138742 8581else
b0322a85
CE
8582 lt_cv_apple_cc_single_mod=no
8583 if test -z "${LT_MULTI_MODULE}"; then
8584 # By default we will add the -single_module flag. You can override
8585 # by either setting the environment variable LT_MULTI_MODULE
8586 # non-empty at configure time, or by adding -multi_module to the
8587 # link flags.
8588 rm -rf libconftest.dylib*
8589 echo "int foo(void){return 1;}" > conftest.c
8590 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8591-dynamiclib -Wl,-single_module conftest.c" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8593 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8594 _lt_result=$?
8595 # If there is a non-empty error log, and "single_module"
8596 # appears in it, assume the flag caused a linker warning
8597 if test -s conftest.err && $GREP single_module conftest.err; then
8598 cat conftest.err >&5
8599 # Otherwise, if the output was created with a 0 exit code from
8600 # the compiler, it worked.
8601 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8602 lt_cv_apple_cc_single_mod=yes
8603 else
8604 cat conftest.err >&5
8605 fi
8606 rm -rf libconftest.dylib*
8607 rm -f conftest.*
8608 fi
8d138742 8609fi
b0322a85
CE
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8611$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8614$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8615if ${lt_cv_ld_exported_symbols_list+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 lt_cv_ld_exported_symbols_list=no
8619 save_LDFLAGS=$LDFLAGS
8620 echo "_main" > conftest.sym
8621 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8623/* end confdefs.h. */
b0322a85
CE
8624
8625int
8626main ()
8627{
8628
8629 ;
8630 return 0;
8631}
8d138742 8632_ACEOF
b0322a85
CE
8633if ac_fn_c_try_link "$LINENO"; then :
8634 lt_cv_ld_exported_symbols_list=yes
8d138742 8635else
b0322a85 8636 lt_cv_ld_exported_symbols_list=no
8d138742 8637fi
b0322a85
CE
8638rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LDFLAGS="$save_LDFLAGS"
d9898ee8 8641
b0322a85
CE
8642fi
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8644$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 8645
b0322a85
CE
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8647$as_echo_n "checking for -force_load linker flag... " >&6; }
8648if ${lt_cv_ld_force_load+:} false; then :
8649 $as_echo_n "(cached) " >&6
8d138742 8650else
b0322a85
CE
8651 lt_cv_ld_force_load=no
8652 cat > conftest.c << _LT_EOF
8653int forced_loaded() { return 2;}
8654_LT_EOF
8655 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8656 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8657 echo "$AR cru libconftest.a conftest.o" >&5
8658 $AR cru libconftest.a conftest.o 2>&5
8659 echo "$RANLIB libconftest.a" >&5
8660 $RANLIB libconftest.a 2>&5
8661 cat > conftest.c << _LT_EOF
8662int main() { return 0;}
8663_LT_EOF
8664 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8665 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8666 _lt_result=$?
8667 if test -s conftest.err && $GREP force_load conftest.err; then
8668 cat conftest.err >&5
8669 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8670 lt_cv_ld_force_load=yes
8671 else
8672 cat conftest.err >&5
8673 fi
8674 rm -f conftest.err libconftest.a conftest conftest.c
8675 rm -rf conftest.dSYM
ac40fd9e 8676
8d138742 8677fi
b0322a85
CE
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8679$as_echo "$lt_cv_ld_force_load" >&6; }
8680 case $host_os in
8681 rhapsody* | darwin1.[012])
8682 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8683 darwin1.*)
8684 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8685 darwin*) # darwin 5.x on
8686 # if running on 10.5 or later, the deployment target defaults
8687 # to the OS version, if on x86, and 10.4, the deployment
8688 # target defaults to 10.4. Don't you love it?
8689 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8690 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8692 10.[012]*)
8693 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8694 10.*)
8695 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8696 esac
8697 ;;
8698 esac
8699 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8700 _lt_dar_single_mod='$single_module'
8701 fi
8702 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8703 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8704 else
8705 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8706 fi
8707 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8708 _lt_dsymutil='~$DSYMUTIL $lib || :'
8709 else
8710 _lt_dsymutil=
8711 fi
8712 ;;
8713 esac
d9898ee8 8714
b0322a85
CE
8715for ac_header in dlfcn.h
8716do :
8717 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8718"
8719if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8720 cat >>confdefs.h <<_ACEOF
8721#define HAVE_DLFCN_H 1
8722_ACEOF
d9898ee8 8723
8d138742 8724fi
d9898ee8 8725
b0322a85 8726done
d9898ee8 8727
b0322a85
CE
8728
8729
8730
8731func_stripname_cnf ()
8732{
8733 case ${2} in
8734 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8735 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8736 esac
8737} # func_stripname_cnf
d9898ee8 8738
d9898ee8 8739
d9898ee8 8740
d9898ee8 8741
d9898ee8 8742
8d138742 8743# Set options
d9898ee8 8744
d9898ee8 8745
d9898ee8 8746
8d138742 8747 enable_dlopen=no
d9898ee8 8748
d9898ee8 8749
8d138742 8750 enable_win32_dll=no
d9898ee8 8751
ac40fd9e 8752
8d138742 8753 # Check whether --enable-shared was given.
b0322a85 8754if test "${enable_shared+set}" = set; then :
8d138742
CE
8755 enableval=$enable_shared; p=${PACKAGE-default}
8756 case $enableval in
8757 yes) enable_shared=yes ;;
8758 no) enable_shared=no ;;
8759 *)
8760 enable_shared=no
8761 # Look at the argument we got. We use all the common list separators.
8762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8763 for pkg in $enableval; do
8764 IFS="$lt_save_ifs"
8765 if test "X$pkg" = "X$p"; then
8766 enable_shared=yes
8767 fi
8768 done
8769 IFS="$lt_save_ifs"
8770 ;;
8771 esac
8772else
8773 enable_shared=yes
8774fi
d9898ee8 8775
d9898ee8 8776
d9898ee8 8777
d9898ee8 8778
d9898ee8 8779
d9898ee8 8780
d9898ee8 8781
d9898ee8 8782
d9898ee8 8783
8d138742 8784 # Check whether --enable-static was given.
b0322a85 8785if test "${enable_static+set}" = set; then :
8d138742
CE
8786 enableval=$enable_static; p=${PACKAGE-default}
8787 case $enableval in
8788 yes) enable_static=yes ;;
8789 no) enable_static=no ;;
8790 *)
8791 enable_static=no
8792 # Look at the argument we got. We use all the common list separators.
8793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8794 for pkg in $enableval; do
8795 IFS="$lt_save_ifs"
8796 if test "X$pkg" = "X$p"; then
8797 enable_static=yes
8798 fi
8799 done
8800 IFS="$lt_save_ifs"
8801 ;;
8802 esac
d9898ee8 8803else
8d138742 8804 enable_static=yes
d9898ee8 8805fi
d9898ee8 8806
d9898ee8 8807
d9898ee8 8808
d9898ee8 8809
d9898ee8 8810
d9898ee8 8811
d9898ee8 8812
d9898ee8 8813
d9898ee8 8814
dd184caf 8815
8d138742 8816# Check whether --with-pic was given.
b0322a85
CE
8817if test "${with_pic+set}" = set; then :
8818 withval=$with_pic; lt_p=${PACKAGE-default}
8819 case $withval in
8820 yes|no) pic_mode=$withval ;;
8821 *)
8822 pic_mode=default
8823 # Look at the argument we got. We use all the common list separators.
8824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8825 for lt_pkg in $withval; do
8826 IFS="$lt_save_ifs"
8827 if test "X$lt_pkg" = "X$lt_p"; then
8828 pic_mode=yes
8829 fi
8830 done
8831 IFS="$lt_save_ifs"
8832 ;;
8833 esac
d9898ee8 8834else
8d138742
CE
8835 pic_mode=default
8836fi
d9898ee8 8837
d9898ee8 8838
8d138742 8839test -z "$pic_mode" && pic_mode=default
d9898ee8 8840
d9898ee8 8841
d9898ee8 8842
d9898ee8 8843
d9898ee8 8844
d9898ee8 8845
d9898ee8 8846
8d138742 8847 # Check whether --enable-fast-install was given.
b0322a85 8848if test "${enable_fast_install+set}" = set; then :
8d138742
CE
8849 enableval=$enable_fast_install; p=${PACKAGE-default}
8850 case $enableval in
8851 yes) enable_fast_install=yes ;;
8852 no) enable_fast_install=no ;;
8853 *)
8854 enable_fast_install=no
8855 # Look at the argument we got. We use all the common list separators.
8856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8857 for pkg in $enableval; do
8858 IFS="$lt_save_ifs"
8859 if test "X$pkg" = "X$p"; then
8860 enable_fast_install=yes
8861 fi
8862 done
8863 IFS="$lt_save_ifs"
8864 ;;
8865 esac
d9898ee8 8866else
8d138742 8867 enable_fast_install=yes
d9898ee8 8868fi
dd184caf 8869
d9898ee8 8870
d9898ee8 8871
dd184caf 8872
d9898ee8 8873
d9898ee8 8874
d9898ee8 8875
d9898ee8 8876
d9898ee8 8877
d9898ee8 8878
dd184caf 8879
8d138742
CE
8880# This can be used to rebuild libtool when needed
8881LIBTOOL_DEPS="$ltmain"
d9898ee8 8882
8d138742
CE
8883# Always use our own libtool.
8884LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 8885
dd184caf 8886
d9898ee8 8887
d9898ee8 8888
dd184caf 8889
d9898ee8 8890
d9898ee8 8891
dd184caf 8892
d9898ee8 8893
8894
d9898ee8 8895
8896
d9898ee8 8897
8898
d9898ee8 8899
8900
d9898ee8 8901
8902
d9898ee8 8903
b0322a85
CE
8904
8905
8906
8907
8908
d9898ee8 8909
d9898ee8 8910
d9898ee8 8911
d9898ee8 8912
d9898ee8 8913
d9898ee8 8914
8d138742
CE
8915test -z "$LN_S" && LN_S="ln -s"
8916
8917
d9898ee8 8918
d9898ee8 8919
d9898ee8 8920
d9898ee8 8921
d9898ee8 8922
d9898ee8 8923
d9898ee8 8924
d9898ee8 8925
8926
8d138742
CE
8927
8928
8929
8930if test -n "${ZSH_VERSION+set}" ; then
8931 setopt NO_GLOB_SUBST
d9898ee8 8932fi
d9898ee8 8933
b0322a85 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 8935$as_echo_n "checking for objdir... " >&6; }
b0322a85 8936if ${lt_cv_objdir+:} false; then :
8d138742 8937 $as_echo_n "(cached) " >&6
d9898ee8 8938else
8d138742
CE
8939 rm -f .libs 2>/dev/null
8940mkdir .libs 2>/dev/null
8941if test -d .libs; then
8942 lt_cv_objdir=.libs
d9898ee8 8943else
8d138742
CE
8944 # MS-DOS does not allow filenames that begin with a dot.
8945 lt_cv_objdir=_libs
8946fi
8947rmdir .libs 2>/dev/null
8948fi
b0322a85 8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
8950$as_echo "$lt_cv_objdir" >&6; }
8951objdir=$lt_cv_objdir
8952
8953
8954
8955
8956
8957cat >>confdefs.h <<_ACEOF
8958#define LT_OBJDIR "$lt_cv_objdir/"
8959_ACEOF
d9898ee8 8960
d9898ee8 8961
d9898ee8 8962
d9898ee8 8963
d9898ee8 8964case $host_os in
8965aix3*)
8d138742 8966 # AIX sometimes has problems with the GCC collect2 program. For some
b0322a85
CE
8967 # reason, if we set the COLLECT_NAMES environment variable, the problems
8968 # vanish in a puff of smoke.
8969 if test "X${COLLECT_NAMES+set}" != Xset; then
8970 COLLECT_NAMES=
8971 export COLLECT_NAMES
8972 fi
8973 ;;
8974esac
d9898ee8 8975
8d138742
CE
8976# Global variables:
8977ofile=libtool
8978can_build_shared=yes
d9898ee8 8979
8d138742
CE
8980# All known linkers require a `.a' archive for static linking (except MSVC,
8981# which needs '.lib').
8982libext=a
d9898ee8 8983
8d138742 8984with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 8985
8d138742
CE
8986old_CC="$CC"
8987old_CFLAGS="$CFLAGS"
d9898ee8 8988
8d138742
CE
8989# Set sane defaults for various variables
8990test -z "$CC" && CC=cc
8991test -z "$LTCC" && LTCC=$CC
8992test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8993test -z "$LD" && LD=ld
8994test -z "$ac_objext" && ac_objext=o
d9898ee8 8995
8d138742
CE
8996for cc_temp in $compiler""; do
8997 case $cc_temp in
8998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9000 \-*) ;;
9001 *) break;;
9002 esac
9003done
b0322a85 9004cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 9005
d9898ee8 9006
8d138742
CE
9007# Only perform the check for file, if the check method requires it
9008test -z "$MAGIC_CMD" && MAGIC_CMD=file
9009case $deplibs_check_method in
9010file_magic*)
9011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 9013$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 9014if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
9015 $as_echo_n "(cached) " >&6
9016else
9017 case $MAGIC_CMD in
9018[\\/*] | ?:[\\/]*)
9019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9020 ;;
9021*)
9022 lt_save_MAGIC_CMD="$MAGIC_CMD"
9023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9025 for ac_dir in $ac_dummy; do
9026 IFS="$lt_save_ifs"
9027 test -z "$ac_dir" && ac_dir=.
9028 if test -f $ac_dir/${ac_tool_prefix}file; then
9029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9030 if test -n "$file_magic_test_file"; then
9031 case $deplibs_check_method in
9032 "file_magic "*)
9033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9036 $EGREP "$file_magic_regex" > /dev/null; then
9037 :
9038 else
9039 cat <<_LT_EOF 1>&2
d9898ee8 9040
8d138742
CE
9041*** Warning: the command libtool uses to detect shared libraries,
9042*** $file_magic_cmd, produces output that libtool cannot recognize.
9043*** The result is that libtool may fail to recognize shared libraries
9044*** as such. This will affect the creation of libtool libraries that
9045*** depend on shared libraries, but programs linked with such libtool
9046*** libraries will work regardless of this problem. Nevertheless, you
9047*** may want to report the problem to your system manager and/or to
9048*** bug-libtool@gnu.org
d9898ee8 9049
8d138742
CE
9050_LT_EOF
9051 fi ;;
9052 esac
9053 fi
9054 break
9055 fi
9056 done
9057 IFS="$lt_save_ifs"
9058 MAGIC_CMD="$lt_save_MAGIC_CMD"
9059 ;;
9060esac
9061fi
d9898ee8 9062
8d138742
CE
9063MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9064if test -n "$MAGIC_CMD"; then
b0322a85 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
9066$as_echo "$MAGIC_CMD" >&6; }
9067else
b0322a85 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
9069$as_echo "no" >&6; }
9070fi
d9898ee8 9071
d9898ee8 9072
d9898ee8 9073
d9898ee8 9074
d9898ee8 9075
8d138742
CE
9076if test -z "$lt_cv_path_MAGIC_CMD"; then
9077 if test -n "$ac_tool_prefix"; then
b0322a85 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 9079$as_echo_n "checking for file... " >&6; }
b0322a85 9080if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
9081 $as_echo_n "(cached) " >&6
9082else
9083 case $MAGIC_CMD in
9084[\\/*] | ?:[\\/]*)
9085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9086 ;;
9087*)
9088 lt_save_MAGIC_CMD="$MAGIC_CMD"
9089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9090 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9091 for ac_dir in $ac_dummy; do
9092 IFS="$lt_save_ifs"
9093 test -z "$ac_dir" && ac_dir=.
9094 if test -f $ac_dir/file; then
9095 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9096 if test -n "$file_magic_test_file"; then
9097 case $deplibs_check_method in
9098 "file_magic "*)
9099 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9101 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9102 $EGREP "$file_magic_regex" > /dev/null; then
9103 :
9104 else
9105 cat <<_LT_EOF 1>&2
d9898ee8 9106
8d138742
CE
9107*** Warning: the command libtool uses to detect shared libraries,
9108*** $file_magic_cmd, produces output that libtool cannot recognize.
9109*** The result is that libtool may fail to recognize shared libraries
9110*** as such. This will affect the creation of libtool libraries that
9111*** depend on shared libraries, but programs linked with such libtool
9112*** libraries will work regardless of this problem. Nevertheless, you
9113*** may want to report the problem to your system manager and/or to
9114*** bug-libtool@gnu.org
d9898ee8 9115
8d138742
CE
9116_LT_EOF
9117 fi ;;
9118 esac
9119 fi
9120 break
9121 fi
9122 done
9123 IFS="$lt_save_ifs"
9124 MAGIC_CMD="$lt_save_MAGIC_CMD"
9125 ;;
9126esac
9127fi
d9898ee8 9128
8d138742
CE
9129MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9130if test -n "$MAGIC_CMD"; then
b0322a85 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
9132$as_echo "$MAGIC_CMD" >&6; }
9133else
b0322a85 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
9135$as_echo "no" >&6; }
9136fi
d9898ee8 9137
d9898ee8 9138
8d138742
CE
9139 else
9140 MAGIC_CMD=:
9141 fi
9142fi
d9898ee8 9143
8d138742
CE
9144 fi
9145 ;;
9146esac
d9898ee8 9147
8d138742 9148# Use C for the default configuration in the libtool script
d9898ee8 9149
8d138742
CE
9150lt_save_CC="$CC"
9151ac_ext=c
9152ac_cpp='$CPP $CPPFLAGS'
9153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 9156
d9898ee8 9157
8d138742
CE
9158# Source file extension for C test sources.
9159ac_ext=c
d9898ee8 9160
8d138742
CE
9161# Object file extension for compiled C test sources.
9162objext=o
9163objext=$objext
d9898ee8 9164
8d138742
CE
9165# Code to be used in simple compile tests
9166lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 9167
8d138742
CE
9168# Code to be used in simple link tests
9169lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 9170
d9898ee8 9171
d9898ee8 9172
d9898ee8 9173
d9898ee8 9174
d9898ee8 9175
d9898ee8 9176
8d138742
CE
9177# If no C compiler was specified, use CC.
9178LTCC=${LTCC-"$CC"}
d9898ee8 9179
8d138742
CE
9180# If no C compiler flags were specified, use CFLAGS.
9181LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 9182
8d138742
CE
9183# Allow CC to be a program name with arguments.
9184compiler=$CC
d9898ee8 9185
8d138742
CE
9186# Save the default compiler, since it gets overwritten when the other
9187# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9188compiler_DEFAULT=$CC
d9898ee8 9189
8d138742
CE
9190# save warnings/boilerplate of simple test code
9191ac_outfile=conftest.$ac_objext
9192echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9193eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9194_lt_compiler_boilerplate=`cat conftest.err`
9195$RM conftest*
d9898ee8 9196
8d138742
CE
9197ac_outfile=conftest.$ac_objext
9198echo "$lt_simple_link_test_code" >conftest.$ac_ext
9199eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9200_lt_linker_boilerplate=`cat conftest.err`
9201$RM -r conftest*
d9898ee8 9202
d9898ee8 9203
8d138742 9204if test -n "$compiler"; then
d9898ee8 9205
8d138742 9206lt_prog_compiler_no_builtin_flag=
d9898ee8 9207
8d138742 9208if test "$GCC" = yes; then
b0322a85
CE
9209 case $cc_basename in
9210 nvcc*)
9211 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9212 *)
9213 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9214 esac
d9898ee8 9215
b0322a85 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 9217$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 9218if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
9219 $as_echo_n "(cached) " >&6
9220else
9221 lt_cv_prog_compiler_rtti_exceptions=no
9222 ac_outfile=conftest.$ac_objext
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224 lt_compiler_flag="-fno-rtti -fno-exceptions"
9225 # Insert the option either (1) after the last *FLAGS variable, or
9226 # (2) before a word containing "conftest.", or (3) at the end.
9227 # Note that $ac_compile itself does not contain backslashes and begins
9228 # with a dollar sign (not a hyphen), so the echo should work correctly.
9229 # The option is referenced via a variable to avoid confusing sed.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
b0322a85 9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9235 (eval "$lt_compile" 2>conftest.err)
9236 ac_status=$?
9237 cat conftest.err >&5
b0322a85 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9239 if (exit $ac_status) && test -s "$ac_outfile"; then
9240 # The compiler can only warn and ignore the option if not recognized
9241 # So say no if there are warnings other than the usual output.
b0322a85 9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler_rtti_exceptions=yes
9246 fi
9247 fi
9248 $RM conftest*
d9898ee8 9249
8d138742 9250fi
b0322a85 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 9252$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 9253
8d138742
CE
9254if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9256else
9257 :
9258fi
d9898ee8 9259
8d138742 9260fi
d9898ee8 9261
d9898ee8 9262
d9898ee8 9263
d9898ee8 9264
d9898ee8 9265
d9898ee8 9266
8d138742
CE
9267 lt_prog_compiler_wl=
9268lt_prog_compiler_pic=
9269lt_prog_compiler_static=
d9898ee8 9270
d9898ee8 9271
8d138742
CE
9272 if test "$GCC" = yes; then
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_static='-static'
d9898ee8 9275
8d138742
CE
9276 case $host_os in
9277 aix*)
9278 # All AIX code is PIC.
9279 if test "$host_cpu" = ia64; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 fi
9283 ;;
d9898ee8 9284
8d138742
CE
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 lt_prog_compiler_pic='-fPIC'
9290 ;;
9291 m68k)
9292 # FIXME: we need at least 68020 code to build shared libraries, but
9293 # adding the `-m68020' flag to GCC prevents building anything better,
9294 # like `-m68040'.
9295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9296 ;;
9297 esac
9298 ;;
d9898ee8 9299
8d138742
CE
9300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9301 # PIC is the default for these OSes.
9302 ;;
d9898ee8 9303
8d138742
CE
9304 mingw* | cygwin* | pw32* | os2* | cegcc*)
9305 # This hack is so that the source file can tell whether it is being
9306 # built for inclusion in a dll (and should export symbols for example).
9307 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9308 # (--disable-auto-import) libraries
9309 lt_prog_compiler_pic='-DDLL_EXPORT'
9310 ;;
d9898ee8 9311
8d138742
CE
9312 darwin* | rhapsody*)
9313 # PIC is the default on this platform
9314 # Common symbols not allowed in MH_DYLIB files
9315 lt_prog_compiler_pic='-fno-common'
9316 ;;
d9898ee8 9317
b0322a85
CE
9318 haiku*)
9319 # PIC is the default for Haiku.
9320 # The "-static" flag exists, but is broken.
9321 lt_prog_compiler_static=
9322 ;;
9323
8d138742
CE
9324 hpux*)
9325 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9326 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9327 # sets the default TLS model and affects inlining.
9328 case $host_cpu in
9329 hppa*64*)
9330 # +Z the default
9331 ;;
9332 *)
9333 lt_prog_compiler_pic='-fPIC'
9334 ;;
9335 esac
9336 ;;
d9898ee8 9337
8d138742
CE
9338 interix[3-9]*)
9339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9340 # Instead, we relocate shared libraries at runtime.
9341 ;;
d9898ee8 9342
8d138742
CE
9343 msdosdjgpp*)
9344 # Just because we use GCC doesn't mean we suddenly get shared libraries
9345 # on systems that don't support them.
9346 lt_prog_compiler_can_build_shared=no
9347 enable_shared=no
9348 ;;
d9898ee8 9349
8d138742
CE
9350 *nto* | *qnx*)
9351 # QNX uses GNU C++, but need to define -shared option too, otherwise
9352 # it will coredump.
9353 lt_prog_compiler_pic='-fPIC -shared'
9354 ;;
d9898ee8 9355
8d138742
CE
9356 sysv4*MP*)
9357 if test -d /usr/nec; then
9358 lt_prog_compiler_pic=-Kconform_pic
9359 fi
9360 ;;
d9898ee8 9361
8d138742
CE
9362 *)
9363 lt_prog_compiler_pic='-fPIC'
9364 ;;
9365 esac
b0322a85
CE
9366
9367 case $cc_basename in
9368 nvcc*) # Cuda Compiler Driver 2.2
9369 lt_prog_compiler_wl='-Xlinker '
9370 if test -n "$lt_prog_compiler_pic"; then
9371 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9372 fi
9373 ;;
9374 esac
8d138742
CE
9375 else
9376 # PORTME Check for flag to pass linker flags through the system compiler.
9377 case $host_os in
9378 aix*)
9379 lt_prog_compiler_wl='-Wl,'
9380 if test "$host_cpu" = ia64; then
9381 # AIX 5 now supports IA64 processor
9382 lt_prog_compiler_static='-Bstatic'
9383 else
9384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9385 fi
9386 ;;
d9898ee8 9387
8d138742
CE
9388 mingw* | cygwin* | pw32* | os2* | cegcc*)
9389 # This hack is so that the source file can tell whether it is being
9390 # built for inclusion in a dll (and should export symbols for example).
9391 lt_prog_compiler_pic='-DDLL_EXPORT'
9392 ;;
d9898ee8 9393
8d138742
CE
9394 hpux9* | hpux10* | hpux11*)
9395 lt_prog_compiler_wl='-Wl,'
9396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9397 # not for PA HP-UX.
9398 case $host_cpu in
9399 hppa*64*|ia64*)
9400 # +Z the default
9401 ;;
9402 *)
9403 lt_prog_compiler_pic='+Z'
9404 ;;
9405 esac
9406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9407 lt_prog_compiler_static='${wl}-a ${wl}archive'
9408 ;;
d9898ee8 9409
8d138742
CE
9410 irix5* | irix6* | nonstopux*)
9411 lt_prog_compiler_wl='-Wl,'
9412 # PIC (with -KPIC) is the default.
9413 lt_prog_compiler_static='-non_shared'
9414 ;;
d9898ee8 9415
b0322a85 9416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
9417 case $cc_basename in
9418 # old Intel for x86_64 which still supported -KPIC.
9419 ecc*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-static'
9423 ;;
9424 # icc used to be incompatible with GCC.
9425 # ICC 10 doesn't accept -KPIC any more.
9426 icc* | ifort*)
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_pic='-fPIC'
9429 lt_prog_compiler_static='-static'
9430 ;;
9431 # Lahey Fortran 8.1.
9432 lf95*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='--shared'
9435 lt_prog_compiler_static='--static'
9436 ;;
b0322a85
CE
9437 nagfor*)
9438 # NAG Fortran compiler
9439 lt_prog_compiler_wl='-Wl,-Wl,,'
9440 lt_prog_compiler_pic='-PIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
9444 # Portland Group compilers (*not* the Pentium gcc compiler,
9445 # which looks to be a dead project)
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-fpic'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
9450 ccc*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # All Alpha code is PIC.
9453 lt_prog_compiler_static='-non_shared'
9454 ;;
b0322a85
CE
9455 xl* | bgxl* | bgf* | mpixl*)
9456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-qpic'
9459 lt_prog_compiler_static='-qstaticlink'
9460 ;;
9461 *)
9462 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
9463 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9465 lt_prog_compiler_pic='-KPIC'
9466 lt_prog_compiler_static='-Bstatic'
9467 lt_prog_compiler_wl=''
9468 ;;
9469 *Sun\ F* | *Sun*Fortran*)
9470 lt_prog_compiler_pic='-KPIC'
9471 lt_prog_compiler_static='-Bstatic'
9472 lt_prog_compiler_wl='-Qoption ld '
9473 ;;
8d138742
CE
9474 *Sun\ C*)
9475 # Sun C 5.9
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 lt_prog_compiler_wl='-Wl,'
9479 ;;
b0322a85
CE
9480 *Intel*\ [CF]*Compiler*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='-fPIC'
9483 lt_prog_compiler_static='-static'
9484 ;;
9485 *Portland\ Group*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-fpic'
8d138742 9488 lt_prog_compiler_static='-Bstatic'
8d138742
CE
9489 ;;
9490 esac
9491 ;;
9492 esac
9493 ;;
d9898ee8 9494
8d138742
CE
9495 newsos6)
9496 lt_prog_compiler_pic='-KPIC'
9497 lt_prog_compiler_static='-Bstatic'
9498 ;;
d9898ee8 9499
8d138742
CE
9500 *nto* | *qnx*)
9501 # QNX uses GNU C++, but need to define -shared option too, otherwise
9502 # it will coredump.
9503 lt_prog_compiler_pic='-fPIC -shared'
9504 ;;
d9898ee8 9505
8d138742
CE
9506 osf3* | osf4* | osf5*)
9507 lt_prog_compiler_wl='-Wl,'
9508 # All OSF/1 code is PIC.
9509 lt_prog_compiler_static='-non_shared'
9510 ;;
d9898ee8 9511
8d138742
CE
9512 rdos*)
9513 lt_prog_compiler_static='-non_shared'
9514 ;;
d9898ee8 9515
8d138742
CE
9516 solaris*)
9517 lt_prog_compiler_pic='-KPIC'
9518 lt_prog_compiler_static='-Bstatic'
9519 case $cc_basename in
b0322a85 9520 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
9521 lt_prog_compiler_wl='-Qoption ld ';;
9522 *)
9523 lt_prog_compiler_wl='-Wl,';;
9524 esac
9525 ;;
d9898ee8 9526
8d138742
CE
9527 sunos4*)
9528 lt_prog_compiler_wl='-Qoption ld '
9529 lt_prog_compiler_pic='-PIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 ;;
d9898ee8 9532
8d138742
CE
9533 sysv4 | sysv4.2uw2* | sysv4.3*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
d9898ee8 9538
8d138742
CE
9539 sysv4*MP*)
9540 if test -d /usr/nec ;then
9541 lt_prog_compiler_pic='-Kconform_pic'
9542 lt_prog_compiler_static='-Bstatic'
9543 fi
9544 ;;
d9898ee8 9545
8d138742
CE
9546 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9547 lt_prog_compiler_wl='-Wl,'
9548 lt_prog_compiler_pic='-KPIC'
9549 lt_prog_compiler_static='-Bstatic'
9550 ;;
d9898ee8 9551
8d138742
CE
9552 unicos*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_can_build_shared=no
9555 ;;
d9898ee8 9556
8d138742
CE
9557 uts4*)
9558 lt_prog_compiler_pic='-pic'
9559 lt_prog_compiler_static='-Bstatic'
9560 ;;
d9898ee8 9561
8d138742
CE
9562 *)
9563 lt_prog_compiler_can_build_shared=no
9564 ;;
9565 esac
9566 fi
d9898ee8 9567
8d138742
CE
9568case $host_os in
9569 # For platforms which do not support PIC, -DPIC is meaningless:
9570 *djgpp*)
9571 lt_prog_compiler_pic=
9572 ;;
9573 *)
9574 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9575 ;;
9576esac
d9898ee8 9577
b0322a85
CE
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9579$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9580if ${lt_cv_prog_compiler_pic+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582else
9583 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9586$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9587lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 9588
8d138742
CE
9589#
9590# Check to make sure the PIC flag actually works.
9591#
9592if test -n "$lt_prog_compiler_pic"; then
b0322a85 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 9594$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 9595if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
9596 $as_echo_n "(cached) " >&6
9597else
9598 lt_cv_prog_compiler_pic_works=no
9599 ac_outfile=conftest.$ac_objext
9600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9601 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9602 # Insert the option either (1) after the last *FLAGS variable, or
9603 # (2) before a word containing "conftest.", or (3) at the end.
9604 # Note that $ac_compile itself does not contain backslashes and begins
9605 # with a dollar sign (not a hyphen), so the echo should work correctly.
9606 # The option is referenced via a variable to avoid confusing sed.
9607 lt_compile=`echo "$ac_compile" | $SED \
9608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610 -e 's:$: $lt_compiler_flag:'`
b0322a85 9611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9612 (eval "$lt_compile" 2>conftest.err)
9613 ac_status=$?
9614 cat conftest.err >&5
b0322a85 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9616 if (exit $ac_status) && test -s "$ac_outfile"; then
9617 # The compiler can only warn and ignore the option if not recognized
9618 # So say no if there are warnings other than the usual output.
b0322a85 9619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9622 lt_cv_prog_compiler_pic_works=yes
9623 fi
9624 fi
9625 $RM conftest*
d9898ee8 9626
8d138742 9627fi
b0322a85 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 9629$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 9630
8d138742
CE
9631if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9632 case $lt_prog_compiler_pic in
9633 "" | " "*) ;;
9634 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9635 esac
9636else
9637 lt_prog_compiler_pic=
9638 lt_prog_compiler_can_build_shared=no
9639fi
d9898ee8 9640
8d138742 9641fi
d9898ee8 9642
9643
d9898ee8 9644
d9898ee8 9645
d9898ee8 9646
d9898ee8 9647
b0322a85
CE
9648
9649
9650
9651
9652
8d138742
CE
9653#
9654# Check to make sure the static flag actually works.
9655#
9656wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 9658$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 9659if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 9660 $as_echo_n "(cached) " >&6
d9898ee8 9661else
8d138742
CE
9662 lt_cv_prog_compiler_static_works=no
9663 save_LDFLAGS="$LDFLAGS"
9664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9665 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9667 # The linker can only warn and ignore the option if not recognized
9668 # So say no if there are warnings
9669 if test -s conftest.err; then
9670 # Append any errors to the config.log.
9671 cat conftest.err 1>&5
b0322a85 9672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674 if diff conftest.exp conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_static_works=yes
9676 fi
9677 else
9678 lt_cv_prog_compiler_static_works=yes
9679 fi
9680 fi
9681 $RM -r conftest*
9682 LDFLAGS="$save_LDFLAGS"
d9898ee8 9683
8d138742 9684fi
b0322a85 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 9686$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 9687
8d138742
CE
9688if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9689 :
9690else
9691 lt_prog_compiler_static=
9692fi
d9898ee8 9693
9694
dd184caf 9695
d9898ee8 9696
d9898ee8 9697
d9898ee8 9698
d9898ee8 9699
b0322a85 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9701$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9702if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
9703 $as_echo_n "(cached) " >&6
9704else
9705 lt_cv_prog_compiler_c_o=no
9706 $RM -r conftest 2>/dev/null
9707 mkdir conftest
9708 cd conftest
9709 mkdir out
9710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9711
8d138742
CE
9712 lt_compiler_flag="-o out/conftest2.$ac_objext"
9713 # Insert the option either (1) after the last *FLAGS variable, or
9714 # (2) before a word containing "conftest.", or (3) at the end.
9715 # Note that $ac_compile itself does not contain backslashes and begins
9716 # with a dollar sign (not a hyphen), so the echo should work correctly.
9717 lt_compile=`echo "$ac_compile" | $SED \
9718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9720 -e 's:$: $lt_compiler_flag:'`
b0322a85 9721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9722 (eval "$lt_compile" 2>out/conftest.err)
9723 ac_status=$?
9724 cat out/conftest.err >&5
b0322a85 9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9727 then
9728 # The compiler can only warn and ignore the option if not recognized
9729 # So say no if there are warnings
b0322a85 9730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9733 lt_cv_prog_compiler_c_o=yes
9734 fi
9735 fi
9736 chmod u+w . 2>&5
9737 $RM conftest*
9738 # SGI C++ compiler will create directory out/ii_files/ for
9739 # template instantiation
9740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9741 $RM out/* && rmdir out
9742 cd ..
9743 $RM -r conftest
9744 $RM conftest*
d9898ee8 9745
8d138742 9746fi
b0322a85 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9748$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9749
d9898ee8 9750
9751
9752
9753
d9898ee8 9754
b0322a85 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9756$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9757if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
9758 $as_echo_n "(cached) " >&6
9759else
9760 lt_cv_prog_compiler_c_o=no
9761 $RM -r conftest 2>/dev/null
9762 mkdir conftest
9763 cd conftest
9764 mkdir out
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9766
8d138742
CE
9767 lt_compiler_flag="-o out/conftest2.$ac_objext"
9768 # Insert the option either (1) after the last *FLAGS variable, or
9769 # (2) before a word containing "conftest.", or (3) at the end.
9770 # Note that $ac_compile itself does not contain backslashes and begins
9771 # with a dollar sign (not a hyphen), so the echo should work correctly.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
b0322a85 9776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9777 (eval "$lt_compile" 2>out/conftest.err)
9778 ac_status=$?
9779 cat out/conftest.err >&5
b0322a85 9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9782 then
9783 # The compiler can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
b0322a85 9785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9788 lt_cv_prog_compiler_c_o=yes
9789 fi
9790 fi
9791 chmod u+w . 2>&5
9792 $RM conftest*
9793 # SGI C++ compiler will create directory out/ii_files/ for
9794 # template instantiation
9795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9796 $RM out/* && rmdir out
9797 cd ..
9798 $RM -r conftest
9799 $RM conftest*
d9898ee8 9800
8d138742 9801fi
b0322a85 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9803$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9804
d9898ee8 9805
d9898ee8 9806
d9898ee8 9807
8d138742
CE
9808hard_links="nottested"
9809if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9810 # do not overwrite the value of need_locks provided by the user
b0322a85 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
9812$as_echo_n "checking if we can lock with hard links... " >&6; }
9813 hard_links=yes
9814 $RM conftest*
9815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9816 touch conftest.a
9817 ln conftest.a conftest.b 2>&5 || hard_links=no
9818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
9820$as_echo "$hard_links" >&6; }
9821 if test "$hard_links" = no; then
b0322a85 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
9823$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9824 need_locks=warn
9825 fi
9826else
9827 need_locks=no
9828fi
d9898ee8 9829
d9898ee8 9830
d9898ee8 9831
9832
d9898ee8 9833
d9898ee8 9834
b0322a85 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 9836$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 9837
8d138742
CE
9838 runpath_var=
9839 allow_undefined_flag=
9840 always_export_symbols=no
9841 archive_cmds=
9842 archive_expsym_cmds=
9843 compiler_needs_object=no
9844 enable_shared_with_static_runtimes=no
9845 export_dynamic_flag_spec=
9846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9847 hardcode_automatic=no
9848 hardcode_direct=no
9849 hardcode_direct_absolute=no
9850 hardcode_libdir_flag_spec=
8d138742
CE
9851 hardcode_libdir_separator=
9852 hardcode_minus_L=no
9853 hardcode_shlibpath_var=unsupported
9854 inherit_rpath=no
9855 link_all_deplibs=unknown
9856 module_cmds=
9857 module_expsym_cmds=
9858 old_archive_from_new_cmds=
9859 old_archive_from_expsyms_cmds=
9860 thread_safe_flag_spec=
9861 whole_archive_flag_spec=
9862 # include_expsyms should be a list of space-separated symbols to be *always*
9863 # included in the symbol list
9864 include_expsyms=
9865 # exclude_expsyms can be an extended regexp of symbols to exclude
9866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9868 # as well as any symbol that contains `d'.
9869 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9871 # platforms (ab)use it in PIC code, but their linkers get confused if
9872 # the symbol is explicitly referenced. Since portable code cannot
9873 # rely on this symbol name, it's probably fine to never include it in
9874 # preloaded symbol tables.
9875 # Exclude shared library initialization/finalization symbols.
9876 extract_expsyms_cmds=
dd184caf 9877
8d138742
CE
9878 case $host_os in
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 if test "$GCC" != yes; then
9884 with_gnu_ld=no
9885 fi
d9898ee8 9886 ;;
8d138742
CE
9887 interix*)
9888 # we just hope/assume this is gcc and not c89 (= MSVC++)
9889 with_gnu_ld=yes
9890 ;;
9891 openbsd*)
9892 with_gnu_ld=no
d9898ee8 9893 ;;
9894 esac
d9898ee8 9895
8d138742 9896 ld_shlibs=yes
b0322a85
CE
9897
9898 # On some targets, GNU ld is compatible enough with the native linker
9899 # that we're better off using the native interface for both.
9900 lt_use_gnu_ld_interface=no
d9898ee8 9901 if test "$with_gnu_ld" = yes; then
b0322a85
CE
9902 case $host_os in
9903 aix*)
9904 # The AIX port of GNU ld has always aspired to compatibility
9905 # with the native linker. However, as the warning in the GNU ld
9906 # block says, versions before 2.19.5* couldn't really create working
9907 # shared libraries, regardless of the interface used.
9908 case `$LD -v 2>&1` in
9909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9912 *)
9913 lt_use_gnu_ld_interface=yes
9914 ;;
9915 esac
9916 ;;
9917 *)
9918 lt_use_gnu_ld_interface=yes
9919 ;;
9920 esac
9921 fi
9922
9923 if test "$lt_use_gnu_ld_interface" = yes; then
d9898ee8 9924 # If archive_cmds runs LD, not CC, wlarc should be empty
d9898ee8 9925 wlarc='${wl}'
9926
8d138742
CE
9927 # Set some defaults for GNU ld with shared library support. These
9928 # are reset later if shared libraries are not supported. Putting them
9929 # here allows them to be overridden if necessary.
9930 runpath_var=LD_RUN_PATH
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 export_dynamic_flag_spec='${wl}--export-dynamic'
d9898ee8 9933 # ancient GNU ld didn't support --whole-archive et. al.
8d138742
CE
9934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9935 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d9898ee8 9936 else
8d138742 9937 whole_archive_flag_spec=
d9898ee8 9938 fi
8d138742
CE
9939 supports_anon_versioning=no
9940 case `$LD -v 2>&1` in
b0322a85 9941 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9945 *\ 2.11.*) ;; # other 2.11 versions
9946 *) supports_anon_versioning=yes ;;
9947 esac
9948
9949 # See if GNU ld supports shared libraries.
9950 case $host_os in
9951 aix[3-9]*)
9952 # On AIX/PPC, the GNU linker is very broken
9953 if test "$host_cpu" != ia64; then
9954 ld_shlibs=no
9955 cat <<_LT_EOF 1>&2
d9898ee8 9956
b0322a85 9957*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
9958*** to be unable to reliably create shared libraries on AIX.
9959*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
9960*** really care for shared libraries, you may want to install binutils
9961*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9962*** You will then need to restart the configuration process.
d9898ee8 9963
8d138742
CE
9964_LT_EOF
9965 fi
9966 ;;
d9898ee8 9967
8d138742
CE
9968 amigaos*)
9969 case $host_cpu in
9970 powerpc)
9971 # see comment about AmigaOS4 .so support
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds=''
9974 ;;
9975 m68k)
9976 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)'
9977 hardcode_libdir_flag_spec='-L$libdir'
9978 hardcode_minus_L=yes
9979 ;;
d9898ee8 9980 esac
8d138742 9981 ;;
d9898ee8 9982
8d138742
CE
9983 beos*)
9984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9985 allow_undefined_flag=unsupported
9986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9987 # support --undefined. This deserves some investigation. FIXME
9988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
d9898ee8 9993
8d138742
CE
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9996 # as there is no search path for DLLs.
9997 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 9998 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
9999 allow_undefined_flag=unsupported
10000 always_export_symbols=no
10001 enable_shared_with_static_runtimes=yes
b0322a85
CE
10002 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'
10003 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 10004
8d138742
CE
10005 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10007 # If the export-symbols file already is a .def file (1st line
10008 # is EXPORTS), use it as is; otherwise, prepend...
10009 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10010 cp $export_symbols $output_objdir/$soname.def;
d9898ee8 10011 else
8d138742
CE
10012 echo EXPORTS > $output_objdir/$soname.def;
10013 cat $export_symbols >> $output_objdir/$soname.def;
10014 fi~
10015 $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 10016 else
8d138742 10017 ld_shlibs=no
d9898ee8 10018 fi
8d138742 10019 ;;
d9898ee8 10020
b0322a85
CE
10021 haiku*)
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 link_all_deplibs=yes
10024 ;;
10025
8d138742
CE
10026 interix[3-9]*)
10027 hardcode_direct=no
10028 hardcode_shlibpath_var=no
10029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10030 export_dynamic_flag_spec='${wl}-E'
10031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10032 # Instead, shared libraries are loaded at an image base (0x10000000 by
10033 # default) and relocated if they conflict, which is a slow very memory
10034 # consuming and fragmenting process. To avoid this, we pick a random,
10035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10038 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'
10039 ;;
10040
b0322a85 10041 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
10042 tmp_diet=no
10043 if test "$host_os" = linux-dietlibc; then
10044 case $cc_basename in
10045 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10046 esac
10047 fi
10048 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10049 && test "$tmp_diet" = no
10050 then
b0322a85 10051 tmp_addflag=' $pic_flag'
8d138742
CE
10052 tmp_sharedflag='-shared'
10053 case $cc_basename,$host_cpu in
10054 pgcc*) # Portland Group C compiler
b0322a85 10055 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
10056 tmp_addflag=' $pic_flag'
10057 ;;
b0322a85
CE
10058 pgf77* | pgf90* | pgf95* | pgfortran*)
10059 # Portland Group f77 and f90 compilers
10060 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
10061 tmp_addflag=' $pic_flag -Mnomain' ;;
10062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10063 tmp_addflag=' -i_dynamic' ;;
10064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10065 tmp_addflag=' -i_dynamic -nofor_main' ;;
10066 ifc* | ifort*) # Intel Fortran compiler
10067 tmp_addflag=' -nofor_main' ;;
10068 lf95*) # Lahey Fortran 8.1
10069 whole_archive_flag_spec=
10070 tmp_sharedflag='--shared' ;;
b0322a85 10071 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
10072 tmp_sharedflag='-qmkshrobj'
10073 tmp_addflag= ;;
b0322a85
CE
10074 nvcc*) # Cuda Compiler Driver 2.2
10075 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'
10076 compiler_needs_object=yes
10077 ;;
8d138742
CE
10078 esac
10079 case `$CC -V 2>&1 | sed 5q` in
10080 *Sun\ C*) # Sun C 5.9
b0322a85 10081 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
10082 compiler_needs_object=yes
10083 tmp_sharedflag='-G' ;;
10084 *Sun\ F*) # Sun Fortran 8.3
10085 tmp_sharedflag='-G' ;;
10086 esac
10087 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088
10089 if test "x$supports_anon_versioning" = xyes; then
10090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092 echo "local: *; };" >> $output_objdir/$libname.ver~
10093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10094 fi
10095
10096 case $cc_basename in
b0322a85 10097 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
10098 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10099 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
10102 if test "x$supports_anon_versioning" = xyes; then
10103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10105 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 10106 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
10107 fi
10108 ;;
10109 esac
10110 else
10111 ld_shlibs=no
10112 fi
10113 ;;
10114
10115 netbsd*)
10116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10118 wlarc=
10119 else
b0322a85
CE
10120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 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
10122 fi
10123 ;;
10124
10125 solaris*)
10126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10127 ld_shlibs=no
10128 cat <<_LT_EOF 1>&2
10129
10130*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10131*** create shared libraries on Solaris systems. Therefore, libtool
10132*** is disabling shared libraries support. We urge you to upgrade GNU
10133*** binutils to release 2.9.1 or newer. Another option is to modify
10134*** your PATH or compiler configuration so that the native linker is
10135*** used, and then restart.
10136
10137_LT_EOF
10138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
10139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 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
10141 else
10142 ld_shlibs=no
10143 fi
10144 ;;
10145
10146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10147 case `$LD -v 2>&1` in
10148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10149 ld_shlibs=no
10150 cat <<_LT_EOF 1>&2
10151
10152*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10153*** reliably create shared libraries on SCO systems. Therefore, libtool
10154*** is disabling shared libraries support. We urge you to upgrade GNU
10155*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10156*** your PATH or compiler configuration so that the native linker is
10157*** used, and then restart.
10158
10159_LT_EOF
10160 ;;
10161 *)
10162 # For security reasons, it is highly recommended that you always
10163 # use absolute paths for naming shared libraries, and exclude the
10164 # DT_RUNPATH tag from executables and libraries. But doing so
10165 # requires that you compile everything twice, which is a pain.
10166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10170 else
10171 ld_shlibs=no
10172 fi
10173 ;;
10174 esac
10175 ;;
10176
10177 sunos4*)
10178 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179 wlarc=
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 *)
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
10186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 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
10188 else
10189 ld_shlibs=no
10190 fi
10191 ;;
10192 esac
10193
10194 if test "$ld_shlibs" = no; then
10195 runpath_var=
10196 hardcode_libdir_flag_spec=
10197 export_dynamic_flag_spec=
10198 whole_archive_flag_spec=
10199 fi
10200 else
10201 # PORTME fill in a description of your system's linker (not GNU ld)
10202 case $host_os in
10203 aix3*)
10204 allow_undefined_flag=unsupported
10205 always_export_symbols=yes
10206 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'
10207 # Note: this linker hardcodes the directories in LIBPATH if there
10208 # are no directories specified by -L.
10209 hardcode_minus_L=yes
10210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10211 # Neither direct hardcoding nor static linking is supported with a
10212 # broken collect2.
10213 hardcode_direct=unsupported
10214 fi
10215 ;;
10216
10217 aix[4-9]*)
10218 if test "$host_cpu" = ia64; then
10219 # On IA64, the linker does run time linking by default, so we don't
10220 # have to do anything special.
10221 aix_use_runtimelinking=no
10222 exp_sym_flag='-Bexport'
10223 no_entry_flag=""
10224 else
10225 # If we're using GNU nm, then we don't want the "-C" option.
10226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
10227 # Also, AIX nm treats weak defined symbols like other global
10228 # defined symbols, whereas GNU nm marks them as "W".
8d138742 10229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 10230 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8d138742
CE
10231 else
10232 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10233 fi
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # need to do runtime linking.
10239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10240 for ld_flag in $LDFLAGS; do
10241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10242 aix_use_runtimelinking=yes
10243 break
10244 fi
10245 done
10246 ;;
10247 esac
10248
10249 exp_sym_flag='-bexport'
10250 no_entry_flag='-bnoentry'
10251 fi
10252
10253 # When large executables or shared objects are built, AIX ld can
10254 # have problems creating the table of contents. If linking a library
10255 # or program results in "error TOC overflow" add -mminimal-toc to
10256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10258
10259 archive_cmds=''
10260 hardcode_direct=yes
10261 hardcode_direct_absolute=yes
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 file_list_spec='${wl}-f,'
10265
10266 if test "$GCC" = yes; then
10267 case $host_os in aix4.[012]|aix4.[012].*)
10268 # We only want to do this on AIX 4.2 and lower, the check
10269 # below for broken collect2 doesn't work under 4.3+
10270 collect2name=`${CC} -print-prog-name=collect2`
10271 if test -f "$collect2name" &&
10272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10273 then
10274 # We have reworked collect2
10275 :
10276 else
10277 # We have old collect2
10278 hardcode_direct=unsupported
10279 # It fails to find uninstalled libraries when the uninstalled
10280 # path is not listed in the libpath. Setting hardcode_minus_L
10281 # to unsupported forces relinking
10282 hardcode_minus_L=yes
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_libdir_separator=
10285 fi
10286 ;;
10287 esac
10288 shared_flag='-shared'
10289 if test "$aix_use_runtimelinking" = yes; then
10290 shared_flag="$shared_flag "'${wl}-G'
10291 fi
10292 else
10293 # not using gcc
10294 if test "$host_cpu" = ia64; then
10295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10296 # chokes on -Wl,-G. The following line is correct:
10297 shared_flag='-G'
10298 else
10299 if test "$aix_use_runtimelinking" = yes; then
10300 shared_flag='${wl}-G'
10301 else
10302 shared_flag='${wl}-bM:SRE'
10303 fi
10304 fi
10305 fi
10306
10307 export_dynamic_flag_spec='${wl}-bexpall'
10308 # It seems that -bexpall does not export symbols beginning with
10309 # underscore (_), so it is better to generate a list of symbols to export.
10310 always_export_symbols=yes
10311 if test "$aix_use_runtimelinking" = yes; then
10312 # Warning - without using the other runtime loading flags (-brtl),
10313 # -berok will link without error, but may produce a broken library.
10314 allow_undefined_flag='-berok'
10315 # Determine the default libpath from the value encoded in an
10316 # empty executable.
b0322a85
CE
10317 if test "${lt_cv_aix_libpath+set}" = set; then
10318 aix_libpath=$lt_cv_aix_libpath
10319else
10320 if ${lt_cv_aix_libpath_+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322else
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10324/* end confdefs.h. */
d9898ee8 10325
10326int
10327main ()
10328{
10329
10330 ;
10331 return 0;
10332}
10333_ACEOF
b0322a85 10334if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10335
b0322a85
CE
10336 lt_aix_libpath_sed='
10337 /Import File Strings/,/^$/ {
10338 /^0/ {
10339 s/^0 *\([^ ]*\) *$/\1/
10340 p
10341 }
10342 }'
10343 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344 # Check for a 64-bit object if we didn't find anything.
10345 if test -z "$lt_cv_aix_libpath_"; then
10346 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10347 fi
10348fi
10349rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 if test -z "$lt_cv_aix_libpath_"; then
10352 lt_cv_aix_libpath_="/usr/lib:/lib"
10353 fi
dd184caf 10354
d9898ee8 10355fi
dd184caf 10356
b0322a85
CE
10357 aix_libpath=$lt_cv_aix_libpath_
10358fi
d9898ee8 10359
8d138742 10360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 10361 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d9898ee8 10362 else
8d138742
CE
10363 if test "$host_cpu" = ia64; then
10364 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10365 allow_undefined_flag="-z nodefs"
10366 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"
10367 else
10368 # Determine the default libpath from the value encoded in an
10369 # empty executable.
b0322a85
CE
10370 if test "${lt_cv_aix_libpath+set}" = set; then
10371 aix_libpath=$lt_cv_aix_libpath
10372else
10373 if ${lt_cv_aix_libpath_+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 10377/* end confdefs.h. */
10378
10379int
10380main ()
10381{
10382
10383 ;
10384 return 0;
10385}
10386_ACEOF
b0322a85 10387if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10388
b0322a85
CE
10389 lt_aix_libpath_sed='
10390 /Import File Strings/,/^$/ {
10391 /^0/ {
10392 s/^0 *\([^ ]*\) *$/\1/
10393 p
10394 }
10395 }'
10396 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10397 # Check for a 64-bit object if we didn't find anything.
10398 if test -z "$lt_cv_aix_libpath_"; then
10399 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10400 fi
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$lt_cv_aix_libpath_"; then
10405 lt_cv_aix_libpath_="/usr/lib:/lib"
10406 fi
dd184caf 10407
d9898ee8 10408fi
dd184caf 10409
b0322a85
CE
10410 aix_libpath=$lt_cv_aix_libpath_
10411fi
d9898ee8 10412
8d138742
CE
10413 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10414 # Warning - without using the other run time loading flags,
10415 # -berok will link without error, but may produce a broken library.
10416 no_undefined_flag=' ${wl}-bernotok'
10417 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
10418 if test "$with_gnu_ld" = yes; then
10419 # We only use this code for GNU lds that support --whole-archive.
10420 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10421 else
10422 # Exported symbols can be pulled into shared objects from archives
10423 whole_archive_flag_spec='$convenience'
10424 fi
8d138742
CE
10425 archive_cmds_need_lc=yes
10426 # This is similar to how AIX traditionally builds its shared libraries.
10427 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10428 fi
d9898ee8 10429 fi
8d138742 10430 ;;
d9898ee8 10431
8d138742
CE
10432 amigaos*)
10433 case $host_cpu in
10434 powerpc)
10435 # see comment about AmigaOS4 .so support
10436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437 archive_expsym_cmds=''
10438 ;;
10439 m68k)
10440 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)'
10441 hardcode_libdir_flag_spec='-L$libdir'
10442 hardcode_minus_L=yes
10443 ;;
10444 esac
10445 ;;
d9898ee8 10446
8d138742
CE
10447 bsdi[45]*)
10448 export_dynamic_flag_spec=-rdynamic
10449 ;;
d9898ee8 10450
8d138742
CE
10451 cygwin* | mingw* | pw32* | cegcc*)
10452 # When not using gcc, we currently assume that we are using
10453 # Microsoft Visual C++.
10454 # hardcode_libdir_flag_spec is actually meaningless, as there is
10455 # no search path for DLLs.
b0322a85
CE
10456 case $cc_basename in
10457 cl*)
10458 # Native MSVC
10459 hardcode_libdir_flag_spec=' '
10460 allow_undefined_flag=unsupported
10461 always_export_symbols=yes
10462 file_list_spec='@'
10463 # Tell ltmain to make .lib files, not .a files.
10464 libext=lib
10465 # Tell ltmain to make .dll files, not .so files.
10466 shrext_cmds=".dll"
10467 # FIXME: Setting linknames here is a bad hack.
10468 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10469 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10470 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10471 else
10472 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10473 fi~
10474 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10475 linknames='
10476 # The linker will not automatically build a static lib if we build a DLL.
10477 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10478 enable_shared_with_static_runtimes=yes
10479 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10481 # Don't use ranlib
10482 old_postinstall_cmds='chmod 644 $oldlib'
10483 postlink_cmds='lt_outputfile="@OUTPUT@"~
10484 lt_tool_outputfile="@TOOL_OUTPUT@"~
10485 case $lt_outputfile in
10486 *.exe|*.EXE) ;;
10487 *)
10488 lt_outputfile="$lt_outputfile.exe"
10489 lt_tool_outputfile="$lt_tool_outputfile.exe"
10490 ;;
10491 esac~
10492 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10493 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10494 $RM "$lt_outputfile.manifest";
10495 fi'
10496 ;;
10497 *)
10498 # Assume MSVC wrapper
10499 hardcode_libdir_flag_spec=' '
10500 allow_undefined_flag=unsupported
10501 # Tell ltmain to make .lib files, not .a files.
10502 libext=lib
10503 # Tell ltmain to make .dll files, not .so files.
10504 shrext_cmds=".dll"
10505 # FIXME: Setting linknames here is a bad hack.
10506 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10507 # The linker will automatically build a .lib file if we build a DLL.
10508 old_archive_from_new_cmds='true'
10509 # FIXME: Should let the user specify the lib program.
10510 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10511 enable_shared_with_static_runtimes=yes
10512 ;;
10513 esac
8d138742
CE
10514 ;;
10515
10516 darwin* | rhapsody*)
10517
10518
10519 archive_cmds_need_lc=no
10520 hardcode_direct=no
10521 hardcode_automatic=yes
10522 hardcode_shlibpath_var=unsupported
b0322a85
CE
10523 if test "$lt_cv_ld_force_load" = "yes"; then
10524 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\"`'
10525
10526 else
10527 whole_archive_flag_spec=''
10528 fi
8d138742
CE
10529 link_all_deplibs=yes
10530 allow_undefined_flag="$_lt_dar_allow_undefined"
10531 case $cc_basename in
10532 ifort*) _lt_dar_can_shared=yes ;;
10533 *) _lt_dar_can_shared=$GCC ;;
10534 esac
10535 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 10536 output_verbose_link_cmd=func_echo_all
8d138742
CE
10537 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10538 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10539 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}"
10540 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}"
10541
10542 else
10543 ld_shlibs=no
10544 fi
d9898ee8 10545
d9898ee8 10546 ;;
8d138742
CE
10547
10548 dgux*)
10549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_shlibpath_var=no
d9898ee8 10552 ;;
8d138742 10553
8d138742
CE
10554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10555 # support. Future versions do this automatically, but an explicit c++rt0.o
10556 # does not break anything, and helps significantly (at the cost of a little
10557 # extra space).
10558 freebsd2.2*)
10559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10560 hardcode_libdir_flag_spec='-R$libdir'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 10566 freebsd2.*)
8d138742
CE
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_direct=yes
10569 hardcode_minus_L=yes
10570 hardcode_shlibpath_var=no
10571 ;;
10572
10573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10574 freebsd* | dragonfly*)
b0322a85 10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10576 hardcode_libdir_flag_spec='-R$libdir'
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10579 ;;
10580
10581 hpux9*)
10582 if test "$GCC" = yes; then
b0322a85 10583 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d9898ee8 10584 else
8d138742 10585 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d9898ee8 10586 fi
8d138742
CE
10587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
d9898ee8 10590
8d138742
CE
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 export_dynamic_flag_spec='${wl}-E'
d9898ee8 10595 ;;
8d138742
CE
10596
10597 hpux10*)
b0322a85
CE
10598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10599 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10600 else
10601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10602 fi
10603 if test "$with_gnu_ld" = no; then
10604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
10605 hardcode_libdir_separator=:
10606 hardcode_direct=yes
10607 hardcode_direct_absolute=yes
10608 export_dynamic_flag_spec='${wl}-E'
10609 # hardcode_minus_L: Not really in the search PATH,
10610 # but as the default location of the library.
10611 hardcode_minus_L=yes
10612 fi
d9898ee8 10613 ;;
d9898ee8 10614
8d138742 10615 hpux11*)
b0322a85 10616 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d9898ee8 10617 case $host_cpu in
10618 hppa*64*)
8d138742 10619 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10620 ;;
10621 ia64*)
b0322a85 10622 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10623 ;;
10624 *)
b0322a85 10625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10626 ;;
10627 esac
8d138742
CE
10628 else
10629 case $host_cpu in
10630 hppa*64*)
10631 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10632 ;;
8d138742
CE
10633 ia64*)
10634 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10635 ;;
10636 *)
b0322a85
CE
10637
10638 # Older versions of the 11.00 compiler do not understand -b yet
10639 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10641$as_echo_n "checking if $CC understands -b... " >&6; }
10642if ${lt_cv_prog_compiler__b+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644else
10645 lt_cv_prog_compiler__b=no
10646 save_LDFLAGS="$LDFLAGS"
10647 LDFLAGS="$LDFLAGS -b"
10648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10650 # The linker can only warn and ignore the option if not recognized
10651 # So say no if there are warnings
10652 if test -s conftest.err; then
10653 # Append any errors to the config.log.
10654 cat conftest.err 1>&5
10655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10657 if diff conftest.exp conftest.er2 >/dev/null; then
10658 lt_cv_prog_compiler__b=yes
10659 fi
10660 else
10661 lt_cv_prog_compiler__b=yes
10662 fi
10663 fi
10664 $RM -r conftest*
10665 LDFLAGS="$save_LDFLAGS"
10666
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10669$as_echo "$lt_cv_prog_compiler__b" >&6; }
10670
10671if test x"$lt_cv_prog_compiler__b" = xyes; then
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10673else
10674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10675fi
10676
d9898ee8 10677 ;;
10678 esac
8d138742
CE
10679 fi
10680 if test "$with_gnu_ld" = no; then
10681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682 hardcode_libdir_separator=:
d9898ee8 10683
8d138742
CE
10684 case $host_cpu in
10685 hppa*64*|ia64*)
10686 hardcode_direct=no
10687 hardcode_shlibpath_var=no
10688 ;;
10689 *)
10690 hardcode_direct=yes
10691 hardcode_direct_absolute=yes
10692 export_dynamic_flag_spec='${wl}-E'
10693
10694 # hardcode_minus_L: Not really in the search PATH,
10695 # but as the default location of the library.
10696 hardcode_minus_L=yes
ac40fd9e 10697 ;;
10698 esac
ac40fd9e 10699 fi
8d138742 10700 ;;
d9898ee8 10701
8d138742
CE
10702 irix5* | irix6* | nonstopux*)
10703 if test "$GCC" = yes; then
b0322a85 10704 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
10705 # Try to use the -exported_symbol ld option, if it does not
10706 # work, assume that -exports_file does not work either and
10707 # implicitly export all symbols.
b0322a85
CE
10708 # This should be the same for all languages, so no per-tag cache variable.
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10710$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10711if ${lt_cv_irix_exported_symbol+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713else
10714 save_LDFLAGS="$LDFLAGS"
10715 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h. */
10718int foo (void) { return 0; }
8d138742 10719_ACEOF
b0322a85
CE
10720if ac_fn_c_try_link "$LINENO"; then :
10721 lt_cv_irix_exported_symbol=yes
8d138742 10722else
b0322a85 10723 lt_cv_irix_exported_symbol=no
8d138742 10724fi
b0322a85
CE
10725rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LDFLAGS="$save_LDFLAGS"
10728fi
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10730$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10731 if test "$lt_cv_irix_exported_symbol" = yes; then
10732 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'
10733 fi
8d138742 10734 else
b0322a85
CE
10735 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'
10736 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
10737 fi
10738 archive_cmds_need_lc='no'
10739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10740 hardcode_libdir_separator=:
10741 inherit_rpath=yes
10742 link_all_deplibs=yes
10743 ;;
10744
10745 netbsd*)
10746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10748 else
10749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10750 fi
10751 hardcode_libdir_flag_spec='-R$libdir'
10752 hardcode_direct=yes
10753 hardcode_shlibpath_var=no
10754 ;;
10755
10756 newsos6)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_direct=yes
10759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10760 hardcode_libdir_separator=:
10761 hardcode_shlibpath_var=no
10762 ;;
d9898ee8 10763
8d138742
CE
10764 *nto* | *qnx*)
10765 ;;
d9898ee8 10766
8d138742
CE
10767 openbsd*)
10768 if test -f /usr/libexec/ld.so; then
10769 hardcode_direct=yes
10770 hardcode_shlibpath_var=no
10771 hardcode_direct_absolute=yes
10772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10776 export_dynamic_flag_spec='${wl}-E'
d9898ee8 10777 else
8d138742
CE
10778 case $host_os in
10779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10781 hardcode_libdir_flag_spec='-R$libdir'
10782 ;;
10783 *)
10784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786 ;;
10787 esac
d9898ee8 10788 fi
8d138742
CE
10789 else
10790 ld_shlibs=no
10791 fi
10792 ;;
d9898ee8 10793
8d138742
CE
10794 os2*)
10795 hardcode_libdir_flag_spec='-L$libdir'
10796 hardcode_minus_L=yes
10797 allow_undefined_flag=unsupported
b0322a85 10798 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8d138742
CE
10799 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10800 ;;
d9898ee8 10801
8d138742
CE
10802 osf3*)
10803 if test "$GCC" = yes; then
10804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 10805 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
10806 else
10807 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 10808 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
10809 fi
10810 archive_cmds_need_lc='no'
10811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812 hardcode_libdir_separator=:
10813 ;;
d9898ee8 10814
8d138742
CE
10815 osf4* | osf5*) # as osf3* with the addition of -msym flag
10816 if test "$GCC" = yes; then
10817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 10818 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'
8d138742
CE
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 else
10821 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 10822 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 10823 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~
b0322a85 10824 $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 10825
8d138742
CE
10826 # Both c and cxx compiler support -rpath directly
10827 hardcode_libdir_flag_spec='-rpath $libdir'
10828 fi
10829 archive_cmds_need_lc='no'
10830 hardcode_libdir_separator=:
10831 ;;
d9898ee8 10832
8d138742
CE
10833 solaris*)
10834 no_undefined_flag=' -z defs'
10835 if test "$GCC" = yes; then
10836 wlarc='${wl}'
b0322a85 10837 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 10839 $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
10840 else
10841 case `$CC -V 2>&1` in
10842 *"Compilers 5.0"*)
10843 wlarc=''
10844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10847 ;;
10848 *)
10849 wlarc='${wl}'
10850 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10852 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10853 ;;
10854 esac
10855 fi
10856 hardcode_libdir_flag_spec='-R$libdir'
10857 hardcode_shlibpath_var=no
10858 case $host_os in
10859 solaris2.[0-5] | solaris2.[0-5].*) ;;
10860 *)
10861 # The compiler driver will combine and reorder linker options,
10862 # but understands `-z linker_flag'. GCC discards it without `$wl',
10863 # but is careful enough not to reorder.
10864 # Supported since Solaris 2.6 (maybe 2.5.1?)
10865 if test "$GCC" = yes; then
10866 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d9898ee8 10867 else
8d138742 10868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 10869 fi
10870 ;;
8d138742
CE
10871 esac
10872 link_all_deplibs=yes
10873 ;;
d9898ee8 10874
8d138742
CE
10875 sunos4*)
10876 if test "x$host_vendor" = xsequent; then
10877 # Use $CC to link under sequent, because it throws in some extra .o
10878 # files that make .init and .fini sections work.
10879 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880 else
10881 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10882 fi
10883 hardcode_libdir_flag_spec='-L$libdir'
10884 hardcode_direct=yes
10885 hardcode_minus_L=yes
10886 hardcode_shlibpath_var=no
10887 ;;
d9898ee8 10888
8d138742
CE
10889 sysv4)
10890 case $host_vendor in
10891 sni)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_direct=yes # is this really true???
d9898ee8 10894 ;;
8d138742
CE
10895 siemens)
10896 ## LD is ld it makes a PLAMLIB
10897 ## CC just makes a GrossModule.
10898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10899 reload_cmds='$CC -r -o $output$reload_objs'
10900 hardcode_direct=no
10901 ;;
10902 motorola)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 10905 ;;
8d138742
CE
10906 esac
10907 runpath_var='LD_RUN_PATH'
10908 hardcode_shlibpath_var=no
10909 ;;
d9898ee8 10910
8d138742
CE
10911 sysv4.3*)
10912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 hardcode_shlibpath_var=no
10914 export_dynamic_flag_spec='-Bexport'
10915 ;;
d9898ee8 10916
8d138742
CE
10917 sysv4*MP*)
10918 if test -d /usr/nec; then
10919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_shlibpath_var=no
10921 runpath_var=LD_RUN_PATH
10922 hardcode_runpath_var=yes
10923 ld_shlibs=yes
10924 fi
10925 ;;
d9898ee8 10926
8d138742
CE
10927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10928 no_undefined_flag='${wl}-z,text'
10929 archive_cmds_need_lc=no
10930 hardcode_shlibpath_var=no
10931 runpath_var='LD_RUN_PATH'
d9898ee8 10932
8d138742
CE
10933 if test "$GCC" = yes; then
10934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936 else
10937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 fi
10940 ;;
d9898ee8 10941
8d138742
CE
10942 sysv5* | sco3.2v5* | sco5v6*)
10943 # Note: We can NOT use -z defs as we might desire, because we do not
10944 # link with -lc, and that would cause any symbols used from libc to
10945 # always be unresolved, which means just about no library would
10946 # ever link correctly. If we're not using GNU ld we use -z text
10947 # though, which does catch some bad symbols but isn't as heavy-handed
10948 # as -z defs.
10949 no_undefined_flag='${wl}-z,text'
10950 allow_undefined_flag='${wl}-z,nodefs'
10951 archive_cmds_need_lc=no
10952 hardcode_shlibpath_var=no
10953 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10954 hardcode_libdir_separator=':'
10955 link_all_deplibs=yes
10956 export_dynamic_flag_spec='${wl}-Bexport'
10957 runpath_var='LD_RUN_PATH'
d9898ee8 10958
8d138742
CE
10959 if test "$GCC" = yes; then
10960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 else
10963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 fi
10966 ;;
d9898ee8 10967
8d138742
CE
10968 uts4*)
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 hardcode_shlibpath_var=no
10972 ;;
d9898ee8 10973
8d138742
CE
10974 *)
10975 ld_shlibs=no
10976 ;;
10977 esac
d9898ee8 10978
8d138742
CE
10979 if test x$host_vendor = xsni; then
10980 case $host in
10981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10982 export_dynamic_flag_spec='${wl}-Blargedynsym'
10983 ;;
10984 esac
10985 fi
10986 fi
d9898ee8 10987
b0322a85 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
10989$as_echo "$ld_shlibs" >&6; }
10990test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 10991
8d138742 10992with_gnu_ld=$with_gnu_ld
d9898ee8 10993
d9898ee8 10994
d9898ee8 10995
d9898ee8 10996
d9898ee8 10997
d9898ee8 10998
d9898ee8 10999
d9898ee8 11000
d9898ee8 11001
8d138742
CE
11002
11003
11004
11005
11006
11007
11008#
11009# Do we need to explicitly link libc?
11010#
11011case "x$archive_cmds_need_lc" in
11012x|xyes)
11013 # Assume -lc should be added
11014 archive_cmds_need_lc=yes
11015
11016 if test "$enable_shared" = yes && test "$GCC" = yes; then
11017 case $archive_cmds in
11018 *'~'*)
11019 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 11020 ;;
8d138742
CE
11021 '$CC '*)
11022 # Test whether the compiler implicitly links with -lc since on some
11023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11024 # to ld, don't add -lc before -lgcc.
b0322a85 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 11026$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
11027if ${lt_cv_archive_cmds_need_lc+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029else
11030 $RM conftest*
11031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 11032
b0322a85 11033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
11034 (eval $ac_compile) 2>&5
11035 ac_status=$?
b0322a85
CE
11036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037 test $ac_status = 0; } 2>conftest.err; then
11038 soname=conftest
11039 lib=conftest
11040 libobjs=conftest.$ac_objext
11041 deplibs=
11042 wl=$lt_prog_compiler_wl
11043 pic_flag=$lt_prog_compiler_pic
11044 compiler_flags=-v
11045 linker_flags=-v
11046 verstring=
11047 output_objdir=.
11048 libname=conftest
11049 lt_save_allow_undefined_flag=$allow_undefined_flag
11050 allow_undefined_flag=
11051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
11052 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11053 ac_status=$?
b0322a85
CE
11054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055 test $ac_status = 0; }
11056 then
11057 lt_cv_archive_cmds_need_lc=no
11058 else
11059 lt_cv_archive_cmds_need_lc=yes
11060 fi
11061 allow_undefined_flag=$lt_save_allow_undefined_flag
11062 else
11063 cat conftest.err 1>&5
11064 fi
11065 $RM conftest*
11066
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11069$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11070 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ac40fd9e 11071 ;;
11072 esac
8d138742 11073 fi
d9898ee8 11074 ;;
11075esac
11076
11077
d9898ee8 11078
d9898ee8 11079
d9898ee8 11080
d9898ee8 11081
d9898ee8 11082
d9898ee8 11083
d9898ee8 11084
d9898ee8 11085
d9898ee8 11086
d9898ee8 11087
d9898ee8 11088
d9898ee8 11089
ac40fd9e 11090
d9898ee8 11091
d9898ee8 11092
d9898ee8 11093
d9898ee8 11094
d9898ee8 11095
d9898ee8 11096
d9898ee8 11097
d9898ee8 11098
d9898ee8 11099
d9898ee8 11100
d9898ee8 11101
d9898ee8 11102
d9898ee8 11103
d9898ee8 11104
d9898ee8 11105
d9898ee8 11106
d9898ee8 11107
d9898ee8 11108
ac40fd9e 11109
d9898ee8 11110
d9898ee8 11111
d9898ee8 11112
d9898ee8 11113
d9898ee8 11114
d9898ee8 11115
d9898ee8 11116
d9898ee8 11117
d9898ee8 11118
d9898ee8 11119
d9898ee8 11120
11121
d9898ee8 11122
d9898ee8 11123
d9898ee8 11124
d9898ee8 11125
d9898ee8 11126
d9898ee8 11127
d9898ee8 11128
d9898ee8 11129
d9898ee8 11130
d9898ee8 11131
d9898ee8 11132
d9898ee8 11133
d9898ee8 11134
d9898ee8 11135
d9898ee8 11136
d9898ee8 11137
d9898ee8 11138
d9898ee8 11139
d9898ee8 11140
d9898ee8 11141
d9898ee8 11142
d9898ee8 11143
d9898ee8 11144
d9898ee8 11145
d9898ee8 11146
d9898ee8 11147
d9898ee8 11148
d9898ee8 11149
d9898ee8 11150
d9898ee8 11151
d9898ee8 11152
d9898ee8 11153
d9898ee8 11154
d9898ee8 11155
d9898ee8 11156
d9898ee8 11157
d9898ee8 11158
d9898ee8 11159
d9898ee8 11160
d9898ee8 11161
d9898ee8 11162
d9898ee8 11163
d9898ee8 11164
d9898ee8 11165
d9898ee8 11166
d9898ee8 11167
d9898ee8 11168
d9898ee8 11169
d9898ee8 11170
d9898ee8 11171
d9898ee8 11172
d9898ee8 11173
d9898ee8 11174
d9898ee8 11175
d9898ee8 11176
d9898ee8 11177
d9898ee8 11178
d9898ee8 11179
d9898ee8 11180
d9898ee8 11181
d9898ee8 11182
d9898ee8 11183
d9898ee8 11184
d9898ee8 11185
d9898ee8 11186
d9898ee8 11187
d9898ee8 11188
d9898ee8 11189
d9898ee8 11190
d9898ee8 11191
d9898ee8 11192
d9898ee8 11193
d9898ee8 11194
d9898ee8 11195
d9898ee8 11196
d9898ee8 11197
d9898ee8 11198
d9898ee8 11199
d9898ee8 11200
d9898ee8 11201
d9898ee8 11202
d9898ee8 11203
d9898ee8 11204
d9898ee8 11205
d9898ee8 11206
d9898ee8 11207
d9898ee8 11208
d9898ee8 11209
d9898ee8 11210
d9898ee8 11211
d9898ee8 11212
d9898ee8 11213
d9898ee8 11214
d9898ee8 11215
d9898ee8 11216
d9898ee8 11217
d9898ee8 11218
11219
8d138742
CE
11220
11221
11222
11223
11224
11225
11226
11227
b0322a85 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
11229$as_echo_n "checking dynamic linker characteristics... " >&6; }
11230
11231if test "$GCC" = yes; then
11232 case $host_os in
11233 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11234 *) lt_awk_arg="/^libraries:/" ;;
11235 esac
b0322a85
CE
11236 case $host_os in
11237 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11238 *) lt_sed_strip_eq="s,=/,/,g" ;;
11239 esac
11240 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11241 case $lt_search_path_spec in
11242 *\;*)
8d138742
CE
11243 # if the path contains ";" then we assume it to be the separator
11244 # otherwise default to the standard path separator (i.e. ":") - it is
11245 # assumed that no part of a normal pathname contains ";" but that should
11246 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
11247 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11248 ;;
11249 *)
11250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11251 ;;
11252 esac
8d138742
CE
11253 # Ok, now we have the path, separated by spaces, we can step through it
11254 # and add multilib dir if necessary.
11255 lt_tmp_lt_search_path_spec=
11256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257 for lt_sys_path in $lt_search_path_spec; do
11258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11260 else
11261 test -d "$lt_sys_path" && \
11262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263 fi
11264 done
b0322a85 11265 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
11266BEGIN {RS=" "; FS="/|\n";} {
11267 lt_foo="";
11268 lt_count=0;
11269 for (lt_i = NF; lt_i > 0; lt_i--) {
11270 if ($lt_i != "" && $lt_i != ".") {
11271 if ($lt_i == "..") {
11272 lt_count++;
11273 } else {
11274 if (lt_count == 0) {
11275 lt_foo="/" $lt_i lt_foo;
11276 } else {
11277 lt_count--;
11278 }
11279 }
11280 }
11281 }
11282 if (lt_foo != "") { lt_freq[lt_foo]++; }
11283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284}'`
b0322a85
CE
11285 # AWK program above erroneously prepends '/' to C:/dos/paths
11286 # for these hosts.
11287 case $host_os in
11288 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11289 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11290 esac
11291 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
11292else
11293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
d9898ee8 11294fi
8d138742
CE
11295library_names_spec=
11296libname_spec='lib$name'
11297soname_spec=
11298shrext_cmds=".so"
11299postinstall_cmds=
11300postuninstall_cmds=
11301finish_cmds=
11302finish_eval=
11303shlibpath_var=
11304shlibpath_overrides_runpath=unknown
11305version_type=none
11306dynamic_linker="$host_os ld.so"
11307sys_lib_dlsearch_path_spec="/lib /usr/lib"
11308need_lib_prefix=unknown
11309hardcode_into_libs=no
d9898ee8 11310
8d138742
CE
11311# when you set need_version to no, make sure it does not cause -set_version
11312# flags to be left without arguments
11313need_version=unknown
d9898ee8 11314
8d138742
CE
11315case $host_os in
11316aix3*)
b0322a85 11317 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11319 shlibpath_var=LIBPATH
d9898ee8 11320
8d138742
CE
11321 # AIX 3 has no versioning support, so we append a major version to the name.
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 ;;
d9898ee8 11324
8d138742 11325aix[4-9]*)
b0322a85 11326 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11327 need_lib_prefix=no
11328 need_version=no
11329 hardcode_into_libs=yes
11330 if test "$host_cpu" = ia64; then
11331 # AIX 5 supports IA64
11332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 else
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
11337 # the line `#! .'. This would cause the generated library to
11338 # depend on `.', always an invalid library. This was fixed in
11339 # development snapshots of GCC prior to 3.0.
11340 case $host_os in
11341 aix4 | aix4.[01] | aix4.[01].*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11343 echo ' yes '
11344 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11345 :
11346 else
11347 can_build_shared=no
11348 fi
11349 ;;
11350 esac
11351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11352 # soname into executable. Probably we can add versioning support to
11353 # collect2, so additional links can be useful in future.
11354 if test "$aix_use_runtimelinking" = yes; then
11355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11356 # instead of lib<name>.a to let people know that these are not
11357 # typical AIX shared libraries.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 else
11360 # We preserve .a as extension for shared libraries through AIX4.2
11361 # and later when we are not doing run time linking.
11362 library_names_spec='${libname}${release}.a $libname.a'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 fi
11365 shlibpath_var=LIBPATH
11366 fi
11367 ;;
11368
11369amigaos*)
11370 case $host_cpu in
11371 powerpc)
11372 # Since July 2007 AmigaOS4 officially supports .so libraries.
11373 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 ;;
11376 m68k)
11377 library_names_spec='$libname.ixlibrary $libname.a'
11378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 11379 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
11380 ;;
11381 esac
11382 ;;
11383
11384beos*)
11385 library_names_spec='${libname}${shared_ext}'
11386 dynamic_linker="$host_os ld.so"
11387 shlibpath_var=LIBRARY_PATH
11388 ;;
11389
11390bsdi[45]*)
b0322a85 11391 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11399 # the default ld.so.conf also contains /usr/contrib/lib and
11400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11401 # libtool to hard-code these into programs
11402 ;;
d9898ee8 11403
8d138742
CE
11404cygwin* | mingw* | pw32* | cegcc*)
11405 version_type=windows
11406 shrext_cmds=".dll"
11407 need_version=no
11408 need_lib_prefix=no
d9898ee8 11409
b0322a85
CE
11410 case $GCC,$cc_basename in
11411 yes,*)
11412 # gcc
11413 library_names_spec='$libname.dll.a'
11414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11415 postinstall_cmds='base_file=`basename \${file}`~
11416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11417 dldir=$destdir/`dirname \$dlpath`~
11418 test -d \$dldir || mkdir -p \$dldir~
11419 $install_prog $dir/$dlname \$dldir/$dlname~
11420 chmod a+x \$dldir/$dlname~
11421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11423 fi'
11424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11425 dlpath=$dir/\$dldll~
11426 $RM \$dlpath'
11427 shlibpath_overrides_runpath=yes
11428
11429 case $host_os in
11430 cygwin*)
11431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11435 ;;
11436 mingw* | cegcc*)
11437 # MinGW DLLs use traditional 'lib' prefix
11438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 ;;
11440 pw32*)
11441 # pw32 DLLs use 'pw' prefix rather than 'lib'
11442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11443 ;;
11444 esac
11445 dynamic_linker='Win32 ld.exe'
11446 ;;
11447
11448 *,cl*)
11449 # Native MSVC
11450 libname_spec='$name'
11451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 library_names_spec='${libname}.dll.lib'
11453
11454 case $build_os in
11455 mingw*)
11456 sys_lib_search_path_spec=
11457 lt_save_ifs=$IFS
11458 IFS=';'
11459 for lt_path in $LIB
11460 do
11461 IFS=$lt_save_ifs
11462 # Let DOS variable expansion print the short 8.3 style file name.
11463 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11464 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11465 done
11466 IFS=$lt_save_ifs
11467 # Convert to MSYS style.
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11469 ;;
11470 cygwin*)
11471 # Convert to unix form, then to dos form, then back to unix form
11472 # but this time dos style (no spaces!) so that the unix form looks
11473 # like /cygdrive/c/PROGRA~1:/cygdr...
11474 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11475 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11476 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 ;;
11478 *)
11479 sys_lib_search_path_spec="$LIB"
11480 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11481 # It is most probably a Windows format PATH.
11482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11483 else
11484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11485 fi
11486 # FIXME: find the short name or the path components, as spaces are
11487 # common. (e.g. "Program Files" -> "PROGRA~1")
11488 ;;
11489 esac
11490
8d138742
CE
11491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11492 postinstall_cmds='base_file=`basename \${file}`~
11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11494 dldir=$destdir/`dirname \$dlpath`~
11495 test -d \$dldir || mkdir -p \$dldir~
b0322a85 11496 $install_prog $dir/$dlname \$dldir/$dlname'
8d138742
CE
11497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11498 dlpath=$dir/\$dldll~
11499 $RM \$dlpath'
11500 shlibpath_overrides_runpath=yes
b0322a85 11501 dynamic_linker='Win32 link.exe'
8d138742 11502 ;;
d9898ee8 11503
8d138742 11504 *)
b0322a85 11505 # Assume MSVC wrapper
8d138742 11506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 11507 dynamic_linker='Win32 ld.exe'
8d138742
CE
11508 ;;
11509 esac
8d138742
CE
11510 # FIXME: first we should search . and the directory the executable is in
11511 shlibpath_var=PATH
11512 ;;
d9898ee8 11513
8d138742
CE
11514darwin* | rhapsody*)
11515 dynamic_linker="$host_os dyld"
11516 version_type=darwin
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11520 soname_spec='${libname}${release}${major}$shared_ext'
11521 shlibpath_overrides_runpath=yes
11522 shlibpath_var=DYLD_LIBRARY_PATH
11523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d9898ee8 11524
8d138742
CE
11525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11527 ;;
d9898ee8 11528
8d138742 11529dgux*)
b0322a85 11530 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 ;;
d9898ee8 11537
8d138742
CE
11538freebsd* | dragonfly*)
11539 # DragonFly does not have aout. When/if they implement a new
11540 # versioning mechanism, adjust this.
11541 if test -x /usr/bin/objformat; then
11542 objformat=`/usr/bin/objformat`
11543 else
11544 case $host_os in
b0322a85 11545 freebsd[23].*) objformat=aout ;;
8d138742
CE
11546 *) objformat=elf ;;
11547 esac
11548 fi
11549 version_type=freebsd-$objformat
11550 case $version_type in
11551 freebsd-elf*)
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11553 need_version=no
11554 need_lib_prefix=no
11555 ;;
11556 freebsd-*)
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11558 need_version=yes
11559 ;;
11560 esac
11561 shlibpath_var=LD_LIBRARY_PATH
11562 case $host_os in
b0322a85 11563 freebsd2.*)
8d138742
CE
11564 shlibpath_overrides_runpath=yes
11565 ;;
11566 freebsd3.[01]* | freebsdelf3.[01]*)
11567 shlibpath_overrides_runpath=yes
11568 hardcode_into_libs=yes
11569 ;;
11570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11574 ;;
11575 *) # from 4.6 on, and DragonFly
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 ;;
11579 esac
11580 ;;
d9898ee8 11581
8d138742 11582gnu*)
b0322a85 11583 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11584 need_lib_prefix=no
11585 need_version=no
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 ;;
11592
11593haiku*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 dynamic_linker="$host_os runtime_loader"
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
8d138742
CE
11603 hardcode_into_libs=yes
11604 ;;
d9898ee8 11605
8d138742
CE
11606hpux9* | hpux10* | hpux11*)
11607 # Give a soname corresponding to the major version so that dld.sl refuses to
11608 # link against other versions.
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 case $host_cpu in
11613 ia64*)
11614 shrext_cmds='.so'
11615 hardcode_into_libs=yes
11616 dynamic_linker="$host_os dld.so"
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 if test "X$HPUX_IA64_MODE" = X32; then
11622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623 else
11624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625 fi
11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627 ;;
11628 hppa*64*)
11629 shrext_cmds='.sl'
11630 hardcode_into_libs=yes
11631 dynamic_linker="$host_os dld.sl"
11632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 ;;
11639 *)
11640 shrext_cmds='.sl'
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=SHLIB_PATH
11643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 ;;
11647 esac
b0322a85 11648 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
8d138742 11649 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
11650 # or fails outright, so override atomically:
11651 install_override_mode=555
8d138742 11652 ;;
d9898ee8 11653
8d138742 11654interix[3-9]*)
b0322a85 11655 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11656 need_lib_prefix=no
11657 need_version=no
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 ;;
11665
11666irix5* | irix6* | nonstopux*)
11667 case $host_os in
11668 nonstopux*) version_type=nonstopux ;;
11669 *)
11670 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 11671 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11672 else
11673 version_type=irix
11674 fi ;;
d9898ee8 11675 esac
8d138742
CE
11676 need_lib_prefix=no
11677 need_version=no
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11680 case $host_os in
11681 irix5* | nonstopux*)
11682 libsuff= shlibsuff=
11683 ;;
11684 *)
11685 case $LD in # libtool.m4 will add one of these switches to LD
11686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11687 libsuff= shlibsuff= libmagic=32-bit;;
11688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11689 libsuff=32 shlibsuff=N32 libmagic=N32;;
11690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11691 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11692 *) libsuff= shlibsuff= libmagic=never-match;;
11693 esac
11694 ;;
11695 esac
11696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11697 shlibpath_overrides_runpath=no
11698 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11699 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11700 hardcode_into_libs=yes
11701 ;;
d9898ee8 11702
8d138742
CE
11703# No shared lib support for Linux oldld, aout, or coff.
11704linux*oldld* | linux*aout* | linux*coff*)
11705 dynamic_linker=no
11706 ;;
d9898ee8 11707
b0322a85
CE
11708# This must be glibc/ELF.
11709linux* | k*bsd*-gnu | kopensolaris*-gnu)
11710 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=no
b0322a85 11718
8d138742 11719 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
11720 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722else
11723 lt_cv_shlibpath_overrides_runpath=no
11724 save_LDFLAGS=$LDFLAGS
11725 save_libdir=$libdir
11726 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11727 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11729/* end confdefs.h. */
d9898ee8 11730
8d138742
CE
11731int
11732main ()
11733{
d9898ee8 11734
8d138742
CE
11735 ;
11736 return 0;
11737}
11738_ACEOF
b0322a85
CE
11739if ac_fn_c_try_link "$LINENO"; then :
11740 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11741 lt_cv_shlibpath_overrides_runpath=yes
8d138742 11742fi
b0322a85
CE
11743fi
11744rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LDFLAGS=$save_LDFLAGS
11747 libdir=$save_libdir
d9898ee8 11748
8d138742 11749fi
d9898ee8 11750
b0322a85 11751 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d9898ee8 11752
8d138742
CE
11753 # This implies no fast_install, which is unacceptable.
11754 # Some rework will be needed to allow for fast_install
11755 # before this can be enabled.
11756 hardcode_into_libs=yes
d9898ee8 11757
8d138742
CE
11758 # Add ABI-specific directories to the system library path.
11759 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11760
8d138742
CE
11761 # Append ld.so.conf contents to the search path
11762 if test -f /etc/ld.so.conf; then
b0322a85 11763 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 11764 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 11765
8d138742 11766 fi
d9898ee8 11767
8d138742
CE
11768 # We used to test for /lib/ld.so.1 and disable shared libraries on
11769 # powerpc, because MkLinux only supported shared libraries with the
11770 # GNU dynamic linker. Since this was broken with cross compilers,
11771 # most powerpc-linux boxes support dynamic linking these days and
11772 # people can always --disable-shared, the test was removed, and we
11773 # assume the GNU/Linux dynamic linker is in use.
11774 dynamic_linker='GNU/Linux ld.so'
11775 ;;
d9898ee8 11776
8d138742
CE
11777netbsd*)
11778 version_type=sunos
11779 need_lib_prefix=no
11780 need_version=no
11781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11784 dynamic_linker='NetBSD (a.out) ld.so'
11785 else
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 dynamic_linker='NetBSD ld.elf_so'
11789 fi
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 hardcode_into_libs=yes
11793 ;;
d9898ee8 11794
8d138742 11795newsos6)
b0322a85 11796 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 ;;
d9898ee8 11801
8d138742
CE
11802*nto* | *qnx*)
11803 version_type=qnx
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=no
11810 hardcode_into_libs=yes
11811 dynamic_linker='ldqnx.so'
11812 ;;
d9898ee8 11813
8d138742
CE
11814openbsd*)
11815 version_type=sunos
11816 sys_lib_dlsearch_path_spec="/usr/lib"
11817 need_lib_prefix=no
11818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11819 case $host_os in
11820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11821 *) need_version=no ;;
11822 esac
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 11827 case $host_os in
8d138742
CE
11828 openbsd2.[89] | openbsd2.[89].*)
11829 shlibpath_overrides_runpath=no
d9898ee8 11830 ;;
ac40fd9e 11831 *)
8d138742 11832 shlibpath_overrides_runpath=yes
ac40fd9e 11833 ;;
d9898ee8 11834 esac
8d138742
CE
11835 else
11836 shlibpath_overrides_runpath=yes
11837 fi
11838 ;;
d9898ee8 11839
8d138742
CE
11840os2*)
11841 libname_spec='$name'
11842 shrext_cmds=".dll"
11843 need_lib_prefix=no
11844 library_names_spec='$libname${shared_ext} $libname.a'
11845 dynamic_linker='OS/2 ld.exe'
11846 shlibpath_var=LIBPATH
11847 ;;
d9898ee8 11848
8d138742
CE
11849osf3* | osf4* | osf5*)
11850 version_type=osf
11851 need_lib_prefix=no
11852 need_version=no
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11858 ;;
ac40fd9e 11859
8d138742
CE
11860rdos*)
11861 dynamic_linker=no
11862 ;;
d9898ee8 11863
8d138742 11864solaris*)
b0322a85 11865 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=yes
11872 hardcode_into_libs=yes
11873 # ldd complains unless libraries are executable
11874 postinstall_cmds='chmod +x $lib'
11875 ;;
d9898ee8 11876
8d138742
CE
11877sunos4*)
11878 version_type=sunos
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11883 if test "$with_gnu_ld" = yes; then
11884 need_lib_prefix=no
11885 fi
11886 need_version=yes
11887 ;;
d9898ee8 11888
8d138742 11889sysv4 | sysv4.3*)
b0322a85 11890 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 case $host_vendor in
11895 sni)
11896 shlibpath_overrides_runpath=no
11897 need_lib_prefix=no
11898 runpath_var=LD_RUN_PATH
d9898ee8 11899 ;;
8d138742
CE
11900 siemens)
11901 need_lib_prefix=no
d9898ee8 11902 ;;
8d138742
CE
11903 motorola)
11904 need_lib_prefix=no
11905 need_version=no
11906 shlibpath_overrides_runpath=no
11907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
d9898ee8 11908 ;;
8d138742
CE
11909 esac
11910 ;;
d9898ee8 11911
8d138742
CE
11912sysv4*MP*)
11913 if test -d /usr/nec ;then
b0322a85 11914 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11916 soname_spec='$libname${shared_ext}.$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 fi
11919 ;;
d9898ee8 11920
8d138742
CE
11921sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11922 version_type=freebsd-elf
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes
11929 hardcode_into_libs=yes
11930 if test "$with_gnu_ld" = yes; then
11931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11932 else
11933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11934 case $host_os in
11935 sco3.2v5*)
11936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11937 ;;
d9898ee8 11938 esac
11939 fi
8d138742
CE
11940 sys_lib_dlsearch_path_spec='/usr/lib'
11941 ;;
d9898ee8 11942
8d138742
CE
11943tpf*)
11944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 11945 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11946 need_lib_prefix=no
11947 need_version=no
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=no
11951 hardcode_into_libs=yes
11952 ;;
d9898ee8 11953
8d138742 11954uts4*)
b0322a85 11955 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 soname_spec='${libname}${release}${shared_ext}$major'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 ;;
d9898ee8 11960
8d138742
CE
11961*)
11962 dynamic_linker=no
11963 ;;
11964esac
b0322a85 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742
CE
11966$as_echo "$dynamic_linker" >&6; }
11967test "$dynamic_linker" = no && can_build_shared=no
d9898ee8 11968
8d138742
CE
11969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11970if test "$GCC" = yes; then
11971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d9898ee8 11972fi
d9898ee8 11973
8d138742
CE
11974if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11975 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 11976fi
8d138742
CE
11977if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11978 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 11979fi
d9898ee8 11980
d9898ee8 11981
d9898ee8 11982
d9898ee8 11983
11984
d9898ee8 11985
d9898ee8 11986
d9898ee8 11987
11988
d9898ee8 11989
d9898ee8 11990
d9898ee8 11991
d9898ee8 11992
d9898ee8 11993
d9898ee8 11994
d9898ee8 11995
d9898ee8 11996
d9898ee8 11997
d9898ee8 11998
d9898ee8 11999
d9898ee8 12000
d9898ee8 12001
d9898ee8 12002
d9898ee8 12003
d9898ee8 12004
d9898ee8 12005
d9898ee8 12006
d9898ee8 12007
d9898ee8 12008
d9898ee8 12009
d9898ee8 12010
d9898ee8 12011
d9898ee8 12012
d9898ee8 12013
d9898ee8 12014
d9898ee8 12015
d9898ee8 12016
d9898ee8 12017
d9898ee8 12018
d9898ee8 12019
d9898ee8 12020
d9898ee8 12021
d9898ee8 12022
dd184caf 12023
dd184caf 12024
d9898ee8 12025
d9898ee8 12026
d9898ee8 12027
d9898ee8 12028
dd184caf 12029
dd184caf 12030
d9898ee8 12031
d9898ee8 12032
d9898ee8 12033
d9898ee8 12034
d9898ee8 12035
d9898ee8 12036
d9898ee8 12037
d9898ee8 12038
d9898ee8 12039
d9898ee8 12040
d9898ee8 12041
d9898ee8 12042
d9898ee8 12043
d9898ee8 12044
d9898ee8 12045
d9898ee8 12046
d9898ee8 12047
d9898ee8 12048
d9898ee8 12049
d9898ee8 12050
d9898ee8 12051
d9898ee8 12052
d9898ee8 12053
d9898ee8 12054
d9898ee8 12055
d9898ee8 12056
d9898ee8 12057
d9898ee8 12058
d9898ee8 12059
d9898ee8 12060
d9898ee8 12061
d9898ee8 12062
d9898ee8 12063
d9898ee8 12064
d9898ee8 12065
d9898ee8 12066
b0322a85
CE
12067
12068
12069
12070
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
12073$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12074hardcode_action=
12075if test -n "$hardcode_libdir_flag_spec" ||
12076 test -n "$runpath_var" ||
12077 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 12078
8d138742
CE
12079 # We can hardcode non-existent directories.
12080 if test "$hardcode_direct" != no &&
12081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12082 # have to relink, otherwise we might link with an installed library
12083 # when we should be linking with a yet-to-be-installed one
12084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12085 test "$hardcode_minus_L" != no; then
12086 # Linking always hardcodes the temporary library directory.
12087 hardcode_action=relink
12088 else
12089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12090 hardcode_action=immediate
d9898ee8 12091 fi
8d138742
CE
12092else
12093 # We cannot hardcode anything, or else we can only hardcode existing
12094 # directories.
12095 hardcode_action=unsupported
12096fi
b0322a85 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 12098$as_echo "$hardcode_action" >&6; }
d9898ee8 12099
8d138742
CE
12100if test "$hardcode_action" = relink ||
12101 test "$inherit_rpath" = yes; then
12102 # Fast installation is not supported
12103 enable_fast_install=no
12104elif test "$shlibpath_overrides_runpath" = yes ||
12105 test "$enable_shared" = no; then
12106 # Fast installation is not necessary
12107 enable_fast_install=needless
12108fi
d9898ee8 12109
d9898ee8 12110
d9898ee8 12111
d9898ee8 12112
ac40fd9e 12113
d9898ee8 12114
8d138742
CE
12115 if test "x$enable_dlopen" != xyes; then
12116 enable_dlopen=unknown
12117 enable_dlopen_self=unknown
12118 enable_dlopen_self_static=unknown
12119else
12120 lt_cv_dlopen=no
12121 lt_cv_dlopen_libs=
12122
12123 case $host_os in
12124 beos*)
12125 lt_cv_dlopen="load_add_on"
12126 lt_cv_dlopen_libs=
12127 lt_cv_dlopen_self=yes
12128 ;;
d9898ee8 12129
8d138742
CE
12130 mingw* | pw32* | cegcc*)
12131 lt_cv_dlopen="LoadLibrary"
12132 lt_cv_dlopen_libs=
12133 ;;
d9898ee8 12134
8d138742
CE
12135 cygwin*)
12136 lt_cv_dlopen="dlopen"
12137 lt_cv_dlopen_libs=
12138 ;;
d9898ee8 12139
8d138742
CE
12140 darwin*)
12141 # if libdl is installed we need to link against it
b0322a85 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12143$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12144if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12145 $as_echo_n "(cached) " >&6
12146else
12147 ac_check_lib_save_LIBS=$LIBS
12148LIBS="-ldl $LIBS"
b0322a85 12149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12150/* end confdefs.h. */
d9898ee8 12151
8d138742
CE
12152/* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155#ifdef __cplusplus
12156extern "C"
12157#endif
12158char dlopen ();
12159int
12160main ()
12161{
12162return dlopen ();
12163 ;
12164 return 0;
12165}
12166_ACEOF
b0322a85 12167if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12168 ac_cv_lib_dl_dlopen=yes
12169else
b0322a85 12170 ac_cv_lib_dl_dlopen=no
8d138742 12171fi
b0322a85
CE
12172rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12174LIBS=$ac_check_lib_save_LIBS
12175fi
b0322a85 12176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12177$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12178if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
12179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12180else
d9898ee8 12181
8d138742
CE
12182 lt_cv_dlopen="dyld"
12183 lt_cv_dlopen_libs=
12184 lt_cv_dlopen_self=yes
d9898ee8 12185
8d138742 12186fi
d9898ee8 12187
d9898ee8 12188 ;;
12189
12190 *)
b0322a85
CE
12191 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12192if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
12193 lt_cv_dlopen="shl_load"
12194else
b0322a85 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 12196$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 12197if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
12198 $as_echo_n "(cached) " >&6
12199else
12200 ac_check_lib_save_LIBS=$LIBS
12201LIBS="-ldld $LIBS"
b0322a85 12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12203/* end confdefs.h. */
d9898ee8 12204
8d138742
CE
12205/* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211char shl_load ();
12212int
12213main ()
12214{
12215return shl_load ();
12216 ;
12217 return 0;
12218}
12219_ACEOF
b0322a85 12220if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12221 ac_cv_lib_dld_shl_load=yes
12222else
b0322a85 12223 ac_cv_lib_dld_shl_load=no
8d138742 12224fi
b0322a85
CE
12225rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12227LIBS=$ac_check_lib_save_LIBS
12228fi
b0322a85 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 12230$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 12231if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
12232 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12233else
b0322a85
CE
12234 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12235if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
12236 lt_cv_dlopen="dlopen"
12237else
b0322a85 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12239$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12240if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12241 $as_echo_n "(cached) " >&6
12242else
12243 ac_check_lib_save_LIBS=$LIBS
12244LIBS="-ldl $LIBS"
b0322a85 12245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12246/* end confdefs.h. */
d9898ee8 12247
8d138742
CE
12248/* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251#ifdef __cplusplus
12252extern "C"
12253#endif
12254char dlopen ();
12255int
12256main ()
12257{
12258return dlopen ();
12259 ;
12260 return 0;
12261}
12262_ACEOF
b0322a85 12263if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12264 ac_cv_lib_dl_dlopen=yes
12265else
b0322a85 12266 ac_cv_lib_dl_dlopen=no
8d138742 12267fi
b0322a85
CE
12268rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12270LIBS=$ac_check_lib_save_LIBS
12271fi
b0322a85 12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12273$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12274if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
12275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12276else
b0322a85 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 12278$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 12279if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
12280 $as_echo_n "(cached) " >&6
12281else
12282 ac_check_lib_save_LIBS=$LIBS
12283LIBS="-lsvld $LIBS"
b0322a85 12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12285/* end confdefs.h. */
d9898ee8 12286
8d138742
CE
12287/* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char dlopen ();
12294int
12295main ()
12296{
12297return dlopen ();
12298 ;
12299 return 0;
12300}
12301_ACEOF
b0322a85 12302if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12303 ac_cv_lib_svld_dlopen=yes
12304else
b0322a85 12305 ac_cv_lib_svld_dlopen=no
8d138742 12306fi
b0322a85
CE
12307rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12309LIBS=$ac_check_lib_save_LIBS
12310fi
b0322a85 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 12312$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 12313if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
12314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12315else
b0322a85 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 12317$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 12318if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
12319 $as_echo_n "(cached) " >&6
12320else
12321 ac_check_lib_save_LIBS=$LIBS
12322LIBS="-ldld $LIBS"
b0322a85 12323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12324/* end confdefs.h. */
12325
12326/* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12329#ifdef __cplusplus
12330extern "C"
12331#endif
12332char dld_link ();
12333int
12334main ()
12335{
12336return dld_link ();
12337 ;
12338 return 0;
12339}
12340_ACEOF
b0322a85 12341if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12342 ac_cv_lib_dld_dld_link=yes
12343else
b0322a85 12344 ac_cv_lib_dld_dld_link=no
8d138742 12345fi
b0322a85
CE
12346rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12348LIBS=$ac_check_lib_save_LIBS
12349fi
b0322a85 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 12351$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 12352if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
12353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12354fi
d9898ee8 12355
d9898ee8 12356
8d138742 12357fi
ac40fd9e 12358
d9898ee8 12359
8d138742 12360fi
d9898ee8 12361
d9898ee8 12362
8d138742 12363fi
d9898ee8 12364
d9898ee8 12365
8d138742 12366fi
d9898ee8 12367
d9898ee8 12368
d9898ee8 12369fi
12370
8d138742
CE
12371 ;;
12372 esac
d9898ee8 12373
8d138742
CE
12374 if test "x$lt_cv_dlopen" != xno; then
12375 enable_dlopen=yes
d9898ee8 12376 else
8d138742 12377 enable_dlopen=no
d9898ee8 12378 fi
8d138742
CE
12379
12380 case $lt_cv_dlopen in
12381 dlopen)
12382 save_CPPFLAGS="$CPPFLAGS"
12383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12384
12385 save_LDFLAGS="$LDFLAGS"
12386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12387
12388 save_LIBS="$LIBS"
12389 LIBS="$lt_cv_dlopen_libs $LIBS"
12390
b0322a85 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 12392$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 12393if ${lt_cv_dlopen_self+:} false; then :
8d138742 12394 $as_echo_n "(cached) " >&6
d9898ee8 12395else
8d138742
CE
12396 if test "$cross_compiling" = yes; then :
12397 lt_cv_dlopen_self=cross
12398else
12399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12400 lt_status=$lt_dlunknown
12401 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 12402#line $LINENO "configure"
8d138742 12403#include "confdefs.h"
d9898ee8 12404
8d138742
CE
12405#if HAVE_DLFCN_H
12406#include <dlfcn.h>
12407#endif
d9898ee8 12408
8d138742 12409#include <stdio.h>
d9898ee8 12410
8d138742
CE
12411#ifdef RTLD_GLOBAL
12412# define LT_DLGLOBAL RTLD_GLOBAL
12413#else
12414# ifdef DL_GLOBAL
12415# define LT_DLGLOBAL DL_GLOBAL
12416# else
12417# define LT_DLGLOBAL 0
12418# endif
12419#endif
d9898ee8 12420
8d138742
CE
12421/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12422 find out it does not work in some platform. */
12423#ifndef LT_DLLAZY_OR_NOW
12424# ifdef RTLD_LAZY
12425# define LT_DLLAZY_OR_NOW RTLD_LAZY
12426# else
12427# ifdef DL_LAZY
12428# define LT_DLLAZY_OR_NOW DL_LAZY
12429# else
12430# ifdef RTLD_NOW
12431# define LT_DLLAZY_OR_NOW RTLD_NOW
12432# else
12433# ifdef DL_NOW
12434# define LT_DLLAZY_OR_NOW DL_NOW
12435# else
12436# define LT_DLLAZY_OR_NOW 0
12437# endif
12438# endif
12439# endif
12440# endif
12441#endif
d9898ee8 12442
b0322a85
CE
12443/* When -fvisbility=hidden is used, assume the code has been annotated
12444 correspondingly for the symbols needed. */
12445#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12446int fnord () __attribute__((visibility("default")));
12447#endif
12448
12449int fnord () { return 42; }
8d138742
CE
12450int main ()
12451{
12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12453 int status = $lt_dlunknown;
d9898ee8 12454
8d138742
CE
12455 if (self)
12456 {
12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
12458 else
12459 {
12460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12461 else puts (dlerror ());
12462 }
8d138742
CE
12463 /* dlclose (self); */
12464 }
12465 else
12466 puts (dlerror ());
d9898ee8 12467
8d138742
CE
12468 return status;
12469}
12470_LT_EOF
b0322a85 12471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
12472 (eval $ac_link) 2>&5
12473 ac_status=$?
b0322a85
CE
12474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12475 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
12476 (./conftest; exit; ) >&5 2>/dev/null
12477 lt_status=$?
12478 case x$lt_status in
12479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12482 esac
12483 else :
12484 # compilation failed
12485 lt_cv_dlopen_self=no
12486 fi
12487fi
12488rm -fr conftest*
d9898ee8 12489
d9898ee8 12490
8d138742 12491fi
b0322a85 12492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742
CE
12493$as_echo "$lt_cv_dlopen_self" >&6; }
12494
12495 if test "x$lt_cv_dlopen_self" = xyes; then
12496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 12498$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 12499if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
12500 $as_echo_n "(cached) " >&6
12501else
12502 if test "$cross_compiling" = yes; then :
12503 lt_cv_dlopen_self_static=cross
12504else
12505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12506 lt_status=$lt_dlunknown
12507 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 12508#line $LINENO "configure"
8d138742
CE
12509#include "confdefs.h"
12510
12511#if HAVE_DLFCN_H
12512#include <dlfcn.h>
12513#endif
12514
12515#include <stdio.h>
d9898ee8 12516
8d138742
CE
12517#ifdef RTLD_GLOBAL
12518# define LT_DLGLOBAL RTLD_GLOBAL
12519#else
12520# ifdef DL_GLOBAL
12521# define LT_DLGLOBAL DL_GLOBAL
12522# else
12523# define LT_DLGLOBAL 0
12524# endif
12525#endif
d9898ee8 12526
8d138742
CE
12527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12528 find out it does not work in some platform. */
12529#ifndef LT_DLLAZY_OR_NOW
12530# ifdef RTLD_LAZY
12531# define LT_DLLAZY_OR_NOW RTLD_LAZY
12532# else
12533# ifdef DL_LAZY
12534# define LT_DLLAZY_OR_NOW DL_LAZY
12535# else
12536# ifdef RTLD_NOW
12537# define LT_DLLAZY_OR_NOW RTLD_NOW
12538# else
12539# ifdef DL_NOW
12540# define LT_DLLAZY_OR_NOW DL_NOW
12541# else
12542# define LT_DLLAZY_OR_NOW 0
12543# endif
12544# endif
12545# endif
12546# endif
12547#endif
d9898ee8 12548
b0322a85
CE
12549/* When -fvisbility=hidden is used, assume the code has been annotated
12550 correspondingly for the symbols needed. */
12551#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12552int fnord () __attribute__((visibility("default")));
12553#endif
12554
12555int fnord () { return 42; }
8d138742
CE
12556int main ()
12557{
12558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12559 int status = $lt_dlunknown;
d9898ee8 12560
8d138742
CE
12561 if (self)
12562 {
12563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
12564 else
12565 {
12566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12567 else puts (dlerror ());
12568 }
8d138742
CE
12569 /* dlclose (self); */
12570 }
12571 else
12572 puts (dlerror ());
d9898ee8 12573
8d138742
CE
12574 return status;
12575}
12576_LT_EOF
b0322a85 12577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
12578 (eval $ac_link) 2>&5
12579 ac_status=$?
b0322a85
CE
12580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
12582 (./conftest; exit; ) >&5 2>/dev/null
12583 lt_status=$?
12584 case x$lt_status in
12585 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12586 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12587 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12588 esac
12589 else :
12590 # compilation failed
12591 lt_cv_dlopen_self_static=no
12592 fi
12593fi
12594rm -fr conftest*
d9898ee8 12595
d9898ee8 12596
8d138742 12597fi
b0322a85 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
12599$as_echo "$lt_cv_dlopen_self_static" >&6; }
12600 fi
d9898ee8 12601
8d138742
CE
12602 CPPFLAGS="$save_CPPFLAGS"
12603 LDFLAGS="$save_LDFLAGS"
12604 LIBS="$save_LIBS"
12605 ;;
12606 esac
d9898ee8 12607
8d138742
CE
12608 case $lt_cv_dlopen_self in
12609 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12610 *) enable_dlopen_self=unknown ;;
12611 esac
d9898ee8 12612
8d138742
CE
12613 case $lt_cv_dlopen_self_static in
12614 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12615 *) enable_dlopen_self_static=unknown ;;
12616 esac
12617fi
d9898ee8 12618
d9898ee8 12619
d9898ee8 12620
d9898ee8 12621
d9898ee8 12622
d9898ee8 12623
d9898ee8 12624
d9898ee8 12625
d9898ee8 12626
d9898ee8 12627
d9898ee8 12628
d9898ee8 12629
d9898ee8 12630
d9898ee8 12631
d9898ee8 12632
d9898ee8 12633
d9898ee8 12634
8d138742
CE
12635striplib=
12636old_striplib=
b0322a85 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
12638$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12639if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12643$as_echo "yes" >&6; }
12644else
12645# FIXME - insert some real tests, host_os isn't really good enough
12646 case $host_os in
12647 darwin*)
12648 if test -n "$STRIP" ; then
12649 striplib="$STRIP -x"
12650 old_striplib="$STRIP -S"
b0322a85 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12652$as_echo "yes" >&6; }
12653 else
b0322a85 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12655$as_echo "no" >&6; }
12656 fi
12657 ;;
12658 *)
b0322a85 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12660$as_echo "no" >&6; }
12661 ;;
12662 esac
12663fi
d9898ee8 12664
d9898ee8 12665
d9898ee8 12666
d9898ee8 12667
d9898ee8 12668
d9898ee8 12669
d9898ee8 12670
d9898ee8 12671
d9898ee8 12672
d9898ee8 12673
d9898ee8 12674
d9898ee8 12675
8d138742 12676 # Report which library types will actually be built
b0322a85 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 12678$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 12680$as_echo "$can_build_shared" >&6; }
d9898ee8 12681
b0322a85 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
12683$as_echo_n "checking whether to build shared libraries... " >&6; }
12684 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 12685
8d138742
CE
12686 # On AIX, shared libraries and static libraries use the same namespace, and
12687 # are all built from PIC.
12688 case $host_os in
12689 aix3*)
12690 test "$enable_shared" = yes && enable_static=no
12691 if test -n "$RANLIB"; then
12692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12693 postinstall_cmds='$RANLIB $lib'
12694 fi
12695 ;;
d9898ee8 12696
8d138742
CE
12697 aix[4-9]*)
12698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12699 test "$enable_shared" = yes && enable_static=no
12700 fi
12701 ;;
12702 esac
b0322a85 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 12704$as_echo "$enable_shared" >&6; }
d9898ee8 12705
b0322a85 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
12707$as_echo_n "checking whether to build static libraries... " >&6; }
12708 # Make sure either enable_shared or enable_static is yes.
12709 test "$enable_shared" = yes || enable_static=yes
b0322a85 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 12711$as_echo "$enable_static" >&6; }
d9898ee8 12712
d9898ee8 12713
d9898ee8 12714
d9898ee8 12715
8d138742
CE
12716fi
12717ac_ext=c
12718ac_cpp='$CPP $CPPFLAGS'
12719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12722
8d138742 12723CC="$lt_save_CC"
d9898ee8 12724
b0322a85
CE
12725 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12726 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12727 (test "X$CXX" != "Xg++"))) ; then
12728 ac_ext=cpp
12729ac_cpp='$CXXCPP $CPPFLAGS'
12730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12734$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12735if test -z "$CXXCPP"; then
12736 if ${ac_cv_prog_CXXCPP+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738else
12739 # Double quotes because CXXCPP needs to be expanded
12740 for CXXCPP in "$CXX -E" "/lib/cpp"
12741 do
12742 ac_preproc_ok=false
12743for ac_cxx_preproc_warn_flag in '' yes
12744do
12745 # Use a header file that comes with gcc, so configuring glibc
12746 # with a fresh cross-compiler works.
12747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12748 # <limits.h> exists even on freestanding compilers.
12749 # On the NeXT, cc -E runs the code through the compiler's parser,
12750 # not just through cpp. "Syntax error" is here to catch this case.
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h. */
12753#ifdef __STDC__
12754# include <limits.h>
12755#else
12756# include <assert.h>
12757#endif
12758 Syntax error
12759_ACEOF
12760if ac_fn_cxx_try_cpp "$LINENO"; then :
12761
12762else
12763 # Broken: fails on valid input.
12764continue
12765fi
12766rm -f conftest.err conftest.i conftest.$ac_ext
12767
12768 # OK, works on sane cases. Now check whether nonexistent headers
12769 # can be detected and how.
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771/* end confdefs.h. */
12772#include <ac_nonexistent.h>
12773_ACEOF
12774if ac_fn_cxx_try_cpp "$LINENO"; then :
12775 # Broken: success on invalid input.
12776continue
12777else
12778 # Passes both tests.
12779ac_preproc_ok=:
12780break
12781fi
12782rm -f conftest.err conftest.i conftest.$ac_ext
12783
12784done
12785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12786rm -f conftest.i conftest.err conftest.$ac_ext
12787if $ac_preproc_ok; then :
12788 break
12789fi
12790
12791 done
12792 ac_cv_prog_CXXCPP=$CXXCPP
12793
12794fi
12795 CXXCPP=$ac_cv_prog_CXXCPP
12796else
12797 ac_cv_prog_CXXCPP=$CXXCPP
12798fi
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12800$as_echo "$CXXCPP" >&6; }
12801ac_preproc_ok=false
12802for ac_cxx_preproc_warn_flag in '' yes
12803do
12804 # Use a header file that comes with gcc, so configuring glibc
12805 # with a fresh cross-compiler works.
12806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 # <limits.h> exists even on freestanding compilers.
12808 # On the NeXT, cc -E runs the code through the compiler's parser,
12809 # not just through cpp. "Syntax error" is here to catch this case.
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h. */
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817 Syntax error
12818_ACEOF
12819if ac_fn_cxx_try_cpp "$LINENO"; then :
12820
12821else
12822 # Broken: fails on valid input.
12823continue
12824fi
12825rm -f conftest.err conftest.i conftest.$ac_ext
12826
12827 # OK, works on sane cases. Now check whether nonexistent headers
12828 # can be detected and how.
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830/* end confdefs.h. */
12831#include <ac_nonexistent.h>
12832_ACEOF
12833if ac_fn_cxx_try_cpp "$LINENO"; then :
12834 # Broken: success on invalid input.
12835continue
12836else
12837 # Passes both tests.
12838ac_preproc_ok=:
12839break
12840fi
12841rm -f conftest.err conftest.i conftest.$ac_ext
12842
12843done
12844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12845rm -f conftest.i conftest.err conftest.$ac_ext
12846if $ac_preproc_ok; then :
12847
12848else
12849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12851as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12852See \`config.log' for more details" "$LINENO" 5; }
12853fi
12854
12855ac_ext=c
12856ac_cpp='$CPP $CPPFLAGS'
12857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12859ac_compiler_gnu=$ac_cv_c_compiler_gnu
12860
12861else
12862 _lt_caught_CXX_error=yes
12863fi
d9898ee8 12864
8d138742
CE
12865ac_ext=cpp
12866ac_cpp='$CXXCPP $CPPFLAGS'
12867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 12870
8d138742
CE
12871archive_cmds_need_lc_CXX=no
12872allow_undefined_flag_CXX=
12873always_export_symbols_CXX=no
12874archive_expsym_cmds_CXX=
12875compiler_needs_object_CXX=no
12876export_dynamic_flag_spec_CXX=
12877hardcode_direct_CXX=no
12878hardcode_direct_absolute_CXX=no
12879hardcode_libdir_flag_spec_CXX=
8d138742
CE
12880hardcode_libdir_separator_CXX=
12881hardcode_minus_L_CXX=no
12882hardcode_shlibpath_var_CXX=unsupported
12883hardcode_automatic_CXX=no
12884inherit_rpath_CXX=no
12885module_cmds_CXX=
12886module_expsym_cmds_CXX=
12887link_all_deplibs_CXX=unknown
12888old_archive_cmds_CXX=$old_archive_cmds
b0322a85
CE
12889reload_flag_CXX=$reload_flag
12890reload_cmds_CXX=$reload_cmds
8d138742
CE
12891no_undefined_flag_CXX=
12892whole_archive_flag_spec_CXX=
12893enable_shared_with_static_runtimes_CXX=no
d9898ee8 12894
8d138742
CE
12895# Source file extension for C++ test sources.
12896ac_ext=cpp
d9898ee8 12897
8d138742
CE
12898# Object file extension for compiled C++ test sources.
12899objext=o
12900objext_CXX=$objext
d9898ee8 12901
8d138742
CE
12902# No sense in running all these tests if we already determined that
12903# the CXX compiler isn't working. Some variables (like enable_shared)
12904# are currently assumed to apply to all compilers on this platform,
12905# and will be corrupted by setting them based on a non-working compiler.
12906if test "$_lt_caught_CXX_error" != yes; then
12907 # Code to be used in simple compile tests
12908 lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 12909
8d138742
CE
12910 # Code to be used in simple link tests
12911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 12912
8d138742 12913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
d9898ee8 12914
d9898ee8 12915
d9898ee8 12916
d9898ee8 12917
d9898ee8 12918
d9898ee8 12919
8d138742
CE
12920# If no C compiler was specified, use CC.
12921LTCC=${LTCC-"$CC"}
d9898ee8 12922
8d138742
CE
12923# If no C compiler flags were specified, use CFLAGS.
12924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 12925
8d138742
CE
12926# Allow CC to be a program name with arguments.
12927compiler=$CC
d9898ee8 12928
d9898ee8 12929
8d138742
CE
12930 # save warnings/boilerplate of simple test code
12931 ac_outfile=conftest.$ac_objext
12932echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934_lt_compiler_boilerplate=`cat conftest.err`
12935$RM conftest*
d9898ee8 12936
8d138742
CE
12937 ac_outfile=conftest.$ac_objext
12938echo "$lt_simple_link_test_code" >conftest.$ac_ext
12939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12940_lt_linker_boilerplate=`cat conftest.err`
12941$RM -r conftest*
12942
12943
12944 # Allow CC to be a program name with arguments.
12945 lt_save_CC=$CC
b0322a85 12946 lt_save_CFLAGS=$CFLAGS
8d138742
CE
12947 lt_save_LD=$LD
12948 lt_save_GCC=$GCC
12949 GCC=$GXX
12950 lt_save_with_gnu_ld=$with_gnu_ld
12951 lt_save_path_LD=$lt_cv_path_LD
12952 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12953 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12954 else
12955 $as_unset lt_cv_prog_gnu_ld
12956 fi
12957 if test -n "${lt_cv_path_LDCXX+set}"; then
12958 lt_cv_path_LD=$lt_cv_path_LDCXX
12959 else
12960 $as_unset lt_cv_path_LD
12961 fi
12962 test -z "${LDCXX+set}" || LD=$LDCXX
12963 CC=${CXX-"c++"}
b0322a85 12964 CFLAGS=$CXXFLAGS
8d138742
CE
12965 compiler=$CC
12966 compiler_CXX=$CC
12967 for cc_temp in $compiler""; do
12968 case $cc_temp in
12969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12971 \-*) ;;
12972 *) break;;
12973 esac
12974done
b0322a85 12975cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 12976
d9898ee8 12977
8d138742
CE
12978 if test -n "$compiler"; then
12979 # We don't want -fno-exception when compiling C++ code, so set the
12980 # no_builtin_flag separately
12981 if test "$GXX" = yes; then
12982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12983 else
12984 lt_prog_compiler_no_builtin_flag_CXX=
12985 fi
d9898ee8 12986
8d138742
CE
12987 if test "$GXX" = yes; then
12988 # Set up default GNU C++ configuration
d9898ee8 12989
d9898ee8 12990
d9898ee8 12991
8d138742 12992# Check whether --with-gnu-ld was given.
b0322a85 12993if test "${with_gnu_ld+set}" = set; then :
8d138742
CE
12994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12995else
12996 with_gnu_ld=no
12997fi
d9898ee8 12998
8d138742
CE
12999ac_prog=ld
13000if test "$GCC" = yes; then
13001 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742
CE
13003$as_echo_n "checking for ld used by $CC... " >&6; }
13004 case $host in
13005 *-*-mingw*)
13006 # gcc leaves a trailing carriage return which upsets mingw
13007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13008 *)
13009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13010 esac
13011 case $ac_prog in
13012 # Accept absolute paths.
13013 [\\/]* | ?:[\\/]*)
13014 re_direlt='/[^/][^/]*/\.\./'
13015 # Canonicalize the pathname of ld
13016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13019 done
13020 test -z "$LD" && LD="$ac_prog"
13021 ;;
13022 "")
13023 # If it fails, then pretend we aren't using GCC.
13024 ac_prog=ld
13025 ;;
13026 *)
13027 # If it is relative, then search for the first ld in PATH.
13028 with_gnu_ld=unknown
13029 ;;
13030 esac
13031elif test "$with_gnu_ld" = yes; then
b0322a85 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742
CE
13033$as_echo_n "checking for GNU ld... " >&6; }
13034else
b0322a85 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742
CE
13036$as_echo_n "checking for non-GNU ld... " >&6; }
13037fi
b0322a85 13038if ${lt_cv_path_LD+:} false; then :
8d138742
CE
13039 $as_echo_n "(cached) " >&6
13040else
13041 if test -z "$LD"; then
13042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13043 for ac_dir in $PATH; do
13044 IFS="$lt_save_ifs"
13045 test -z "$ac_dir" && ac_dir=.
13046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13047 lt_cv_path_LD="$ac_dir/$ac_prog"
13048 # Check to see if the program is GNU ld. I'd rather use --version,
13049 # but apparently some variants of GNU ld only accept -v.
13050 # Break only if it was the GNU/non-GNU ld that we prefer.
13051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13052 *GNU* | *'with BFD'*)
13053 test "$with_gnu_ld" != no && break
13054 ;;
13055 *)
13056 test "$with_gnu_ld" != yes && break
13057 ;;
13058 esac
13059 fi
13060 done
13061 IFS="$lt_save_ifs"
13062else
13063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13064fi
13065fi
d9898ee8 13066
8d138742
CE
13067LD="$lt_cv_path_LD"
13068if test -n "$LD"; then
b0322a85 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742
CE
13070$as_echo "$LD" >&6; }
13071else
b0322a85 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
13073$as_echo "no" >&6; }
13074fi
b0322a85
CE
13075test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 13077$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 13078if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742
CE
13079 $as_echo_n "(cached) " >&6
13080else
13081 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13082case `$LD -v 2>&1 </dev/null` in
13083*GNU* | *'with BFD'*)
13084 lt_cv_prog_gnu_ld=yes
13085 ;;
13086*)
13087 lt_cv_prog_gnu_ld=no
13088 ;;
13089esac
13090fi
b0322a85 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742
CE
13092$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13093with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 13094
d9898ee8 13095
d9898ee8 13096
d9898ee8 13097
d9898ee8 13098
d9898ee8 13099
d9898ee8 13100
8d138742
CE
13101 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13102 # archiving commands below assume that GNU ld is being used.
13103 if test "$with_gnu_ld" = yes; then
b0322a85
CE
13104 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13105 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 13106
8d138742
CE
13107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
d9898ee8 13109
8d138742
CE
13110 # If archive_cmds runs LD, not CC, wlarc should be empty
13111 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13112 # investigate it a little bit more. (MM)
13113 wlarc='${wl}'
d9898ee8 13114
8d138742
CE
13115 # ancient GNU ld didn't support --whole-archive et. al.
13116 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13117 $GREP 'no-whole-archive' > /dev/null; then
13118 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13119 else
13120 whole_archive_flag_spec_CXX=
13121 fi
13122 else
13123 with_gnu_ld=no
13124 wlarc=
13125
13126 # A generic and very simple default shared library creation
13127 # command for GNU C++ for the case where it uses the native
13128 # linker, instead of GNU ld. If possible, this setting should
13129 # overridden to take advantage of the native linker features on
13130 # the platform it is being used on.
13131 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13132 fi
d9898ee8 13133
8d138742
CE
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
b0322a85 13137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
d9898ee8 13138
8d138742
CE
13139 else
13140 GXX=no
13141 with_gnu_ld=no
13142 wlarc=
13143 fi
d9898ee8 13144
8d138742 13145 # PORTME: fill in a description of your system's C++ link characteristics
b0322a85 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
13147$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13148 ld_shlibs_CXX=yes
13149 case $host_os in
13150 aix3*)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 ;;
13154 aix[4-9]*)
13155 if test "$host_cpu" = ia64; then
13156 # On IA64, the linker does run time linking by default, so we don't
13157 # have to do anything special.
13158 aix_use_runtimelinking=no
13159 exp_sym_flag='-Bexport'
13160 no_entry_flag=""
13161 else
13162 aix_use_runtimelinking=no
13163
13164 # Test if we are trying to use run time linking or normal
13165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13166 # need to do runtime linking.
13167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13168 for ld_flag in $LDFLAGS; do
13169 case $ld_flag in
13170 *-brtl*)
13171 aix_use_runtimelinking=yes
13172 break
13173 ;;
13174 esac
13175 done
13176 ;;
13177 esac
d9898ee8 13178
8d138742
CE
13179 exp_sym_flag='-bexport'
13180 no_entry_flag='-bnoentry'
13181 fi
d9898ee8 13182
8d138742
CE
13183 # When large executables or shared objects are built, AIX ld can
13184 # have problems creating the table of contents. If linking a library
13185 # or program results in "error TOC overflow" add -mminimal-toc to
13186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13188
13189 archive_cmds_CXX=''
13190 hardcode_direct_CXX=yes
13191 hardcode_direct_absolute_CXX=yes
13192 hardcode_libdir_separator_CXX=':'
13193 link_all_deplibs_CXX=yes
13194 file_list_spec_CXX='${wl}-f,'
13195
13196 if test "$GXX" = yes; then
13197 case $host_os in aix4.[012]|aix4.[012].*)
13198 # We only want to do this on AIX 4.2 and lower, the check
13199 # below for broken collect2 doesn't work under 4.3+
13200 collect2name=`${CC} -print-prog-name=collect2`
13201 if test -f "$collect2name" &&
13202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13203 then
13204 # We have reworked collect2
13205 :
13206 else
13207 # We have old collect2
13208 hardcode_direct_CXX=unsupported
13209 # It fails to find uninstalled libraries when the uninstalled
13210 # path is not listed in the libpath. Setting hardcode_minus_L
13211 # to unsupported forces relinking
13212 hardcode_minus_L_CXX=yes
13213 hardcode_libdir_flag_spec_CXX='-L$libdir'
13214 hardcode_libdir_separator_CXX=
13215 fi
13216 esac
13217 shared_flag='-shared'
13218 if test "$aix_use_runtimelinking" = yes; then
13219 shared_flag="$shared_flag "'${wl}-G'
13220 fi
13221 else
13222 # not using gcc
13223 if test "$host_cpu" = ia64; then
13224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13225 # chokes on -Wl,-G. The following line is correct:
13226 shared_flag='-G'
13227 else
13228 if test "$aix_use_runtimelinking" = yes; then
13229 shared_flag='${wl}-G'
13230 else
13231 shared_flag='${wl}-bM:SRE'
13232 fi
13233 fi
13234 fi
d9898ee8 13235
8d138742
CE
13236 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13237 # It seems that -bexpall does not export symbols beginning with
13238 # underscore (_), so it is better to generate a list of symbols to
13239 # export.
13240 always_export_symbols_CXX=yes
13241 if test "$aix_use_runtimelinking" = yes; then
13242 # Warning - without using the other runtime loading flags (-brtl),
13243 # -berok will link without error, but may produce a broken library.
13244 allow_undefined_flag_CXX='-berok'
13245 # Determine the default libpath from the value encoded in an empty
13246 # executable.
b0322a85
CE
13247 if test "${lt_cv_aix_libpath+set}" = set; then
13248 aix_libpath=$lt_cv_aix_libpath
13249else
13250 if ${lt_cv_aix_libpath__CXX+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13254/* end confdefs.h. */
d9898ee8 13255
8d138742
CE
13256int
13257main ()
13258{
d9898ee8 13259
8d138742
CE
13260 ;
13261 return 0;
13262}
13263_ACEOF
b0322a85 13264if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 13265
b0322a85
CE
13266 lt_aix_libpath_sed='
13267 /Import File Strings/,/^$/ {
13268 /^0/ {
13269 s/^0 *\([^ ]*\) *$/\1/
13270 p
13271 }
13272 }'
13273 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13274 # Check for a 64-bit object if we didn't find anything.
13275 if test -z "$lt_cv_aix_libpath__CXX"; then
13276 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13277 fi
13278fi
13279rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 if test -z "$lt_cv_aix_libpath__CXX"; then
13282 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13283 fi
d9898ee8 13284
8d138742 13285fi
d9898ee8 13286
b0322a85
CE
13287 aix_libpath=$lt_cv_aix_libpath__CXX
13288fi
d9898ee8 13289
8d138742 13290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 13291
b0322a85 13292 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8d138742
CE
13293 else
13294 if test "$host_cpu" = ia64; then
13295 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13296 allow_undefined_flag_CXX="-z nodefs"
13297 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"
13298 else
13299 # Determine the default libpath from the value encoded in an
13300 # empty executable.
b0322a85
CE
13301 if test "${lt_cv_aix_libpath+set}" = set; then
13302 aix_libpath=$lt_cv_aix_libpath
13303else
13304 if ${lt_cv_aix_libpath__CXX+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13308/* end confdefs.h. */
d9898ee8 13309
8d138742
CE
13310int
13311main ()
13312{
d9898ee8 13313
8d138742
CE
13314 ;
13315 return 0;
13316}
13317_ACEOF
b0322a85 13318if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 13319
b0322a85
CE
13320 lt_aix_libpath_sed='
13321 /Import File Strings/,/^$/ {
13322 /^0/ {
13323 s/^0 *\([^ ]*\) *$/\1/
13324 p
13325 }
13326 }'
13327 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13328 # Check for a 64-bit object if we didn't find anything.
13329 if test -z "$lt_cv_aix_libpath__CXX"; then
13330 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13331 fi
13332fi
13333rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 if test -z "$lt_cv_aix_libpath__CXX"; then
13336 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13337 fi
d9898ee8 13338
8d138742 13339fi
d9898ee8 13340
b0322a85
CE
13341 aix_libpath=$lt_cv_aix_libpath__CXX
13342fi
d9898ee8 13343
8d138742
CE
13344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13345 # Warning - without using the other run time loading flags,
13346 # -berok will link without error, but may produce a broken library.
13347 no_undefined_flag_CXX=' ${wl}-bernotok'
13348 allow_undefined_flag_CXX=' ${wl}-berok'
b0322a85
CE
13349 if test "$with_gnu_ld" = yes; then
13350 # We only use this code for GNU lds that support --whole-archive.
13351 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13352 else
13353 # Exported symbols can be pulled into shared objects from archives
13354 whole_archive_flag_spec_CXX='$convenience'
13355 fi
8d138742
CE
13356 archive_cmds_need_lc_CXX=yes
13357 # This is similar to how AIX traditionally builds its shared
13358 # libraries.
13359 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13360 fi
13361 fi
13362 ;;
d9898ee8 13363
8d138742
CE
13364 beos*)
13365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13366 allow_undefined_flag_CXX=unsupported
13367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13368 # support --undefined. This deserves some investigation. FIXME
13369 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 else
13371 ld_shlibs_CXX=no
13372 fi
13373 ;;
d9898ee8 13374
8d138742
CE
13375 chorus*)
13376 case $cc_basename in
13377 *)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 esac
13382 ;;
d9898ee8 13383
8d138742 13384 cygwin* | mingw* | pw32* | cegcc*)
b0322a85
CE
13385 case $GXX,$cc_basename in
13386 ,cl* | no,cl*)
13387 # Native MSVC
13388 # hardcode_libdir_flag_spec is actually meaningless, as there is
13389 # no search path for DLLs.
13390 hardcode_libdir_flag_spec_CXX=' '
13391 allow_undefined_flag_CXX=unsupported
13392 always_export_symbols_CXX=yes
13393 file_list_spec_CXX='@'
13394 # Tell ltmain to make .lib files, not .a files.
13395 libext=lib
13396 # Tell ltmain to make .dll files, not .so files.
13397 shrext_cmds=".dll"
13398 # FIXME: Setting linknames here is a bad hack.
13399 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13400 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13401 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13402 else
13403 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13404 fi~
13405 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13406 linknames='
13407 # The linker will not automatically build a static lib if we build a DLL.
13408 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13409 enable_shared_with_static_runtimes_CXX=yes
13410 # Don't use ranlib
13411 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13412 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13413 lt_tool_outputfile="@TOOL_OUTPUT@"~
13414 case $lt_outputfile in
13415 *.exe|*.EXE) ;;
13416 *)
13417 lt_outputfile="$lt_outputfile.exe"
13418 lt_tool_outputfile="$lt_tool_outputfile.exe"
13419 ;;
13420 esac~
13421 func_to_tool_file "$lt_outputfile"~
13422 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13423 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13424 $RM "$lt_outputfile.manifest";
13425 fi'
13426 ;;
13427 *)
13428 # g++
13429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13430 # as there is no search path for DLLs.
13431 hardcode_libdir_flag_spec_CXX='-L$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13433 allow_undefined_flag_CXX=unsupported
13434 always_export_symbols_CXX=no
13435 enable_shared_with_static_runtimes_CXX=yes
13436
13437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13438 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'
13439 # If the export-symbols file already is a .def file (1st line
13440 # is EXPORTS), use it as is; otherwise, prepend...
13441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13442 cp $export_symbols $output_objdir/$soname.def;
13443 else
13444 echo EXPORTS > $output_objdir/$soname.def;
13445 cat $export_symbols >> $output_objdir/$soname.def;
13446 fi~
13447 $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'
13448 else
13449 ld_shlibs_CXX=no
13450 fi
13451 ;;
13452 esac
13453 ;;
8d138742 13454 darwin* | rhapsody*)
d9898ee8 13455
13456
8d138742
CE
13457 archive_cmds_need_lc_CXX=no
13458 hardcode_direct_CXX=no
13459 hardcode_automatic_CXX=yes
13460 hardcode_shlibpath_var_CXX=unsupported
b0322a85
CE
13461 if test "$lt_cv_ld_force_load" = "yes"; then
13462 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\"`'
13463
13464 else
13465 whole_archive_flag_spec_CXX=''
13466 fi
8d138742
CE
13467 link_all_deplibs_CXX=yes
13468 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13469 case $cc_basename in
13470 ifort*) _lt_dar_can_shared=yes ;;
13471 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 13472 esac
8d138742 13473 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 13474 output_verbose_link_cmd=func_echo_all
8d138742
CE
13475 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}"
13476 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13477 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}"
13478 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}"
13479 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13480 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}"
13481 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}"
13482 fi
d9898ee8 13483
8d138742
CE
13484 else
13485 ld_shlibs_CXX=no
13486 fi
d9898ee8 13487
8d138742 13488 ;;
d9898ee8 13489
8d138742
CE
13490 dgux*)
13491 case $cc_basename in
13492 ec++*)
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13495 ;;
13496 ghcx*)
13497 # Green Hills C++ Compiler
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13500 ;;
13501 *)
13502 # FIXME: insert proper C++ library support
13503 ld_shlibs_CXX=no
13504 ;;
13505 esac
13506 ;;
d9898ee8 13507
b0322a85 13508 freebsd2.*)
8d138742
CE
13509 # C++ shared libraries reported to be fairly broken before
13510 # switch to ELF
13511 ld_shlibs_CXX=no
13512 ;;
d9898ee8 13513
8d138742
CE
13514 freebsd-elf*)
13515 archive_cmds_need_lc_CXX=no
13516 ;;
d9898ee8 13517
8d138742
CE
13518 freebsd* | dragonfly*)
13519 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13520 # conventions
13521 ld_shlibs_CXX=yes
13522 ;;
d9898ee8 13523
8d138742
CE
13524 gnu*)
13525 ;;
d9898ee8 13526
b0322a85
CE
13527 haiku*)
13528 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 link_all_deplibs_CXX=yes
13530 ;;
13531
8d138742
CE
13532 hpux9*)
13533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13534 hardcode_libdir_separator_CXX=:
13535 export_dynamic_flag_spec_CXX='${wl}-E'
13536 hardcode_direct_CXX=yes
13537 hardcode_minus_L_CXX=yes # Not in the search PATH,
13538 # but as the default
13539 # location of the library.
13540
13541 case $cc_basename in
13542 CC*)
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546 aCC*)
13547 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13548 # Commands to make compiler produce verbose output that lists
13549 # what "hidden" libraries, object files and flags are used when
13550 # linking a shared library.
13551 #
13552 # There doesn't appear to be a way to prevent this compiler from
13553 # explicitly linking system object files so we need to strip them
13554 # from the output so that they don't get included in the library
13555 # dependencies.
b0322a85 13556 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
13557 ;;
13558 *)
13559 if test "$GXX" = yes; then
b0322a85 13560 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8d138742
CE
13561 else
13562 # FIXME: insert proper C++ library support
13563 ld_shlibs_CXX=no
13564 fi
13565 ;;
13566 esac
13567 ;;
d9898ee8 13568
8d138742
CE
13569 hpux10*|hpux11*)
13570 if test $with_gnu_ld = no; then
13571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13572 hardcode_libdir_separator_CXX=:
d9898ee8 13573
8d138742
CE
13574 case $host_cpu in
13575 hppa*64*|ia64*)
13576 ;;
13577 *)
13578 export_dynamic_flag_spec_CXX='${wl}-E'
13579 ;;
13580 esac
13581 fi
13582 case $host_cpu in
13583 hppa*64*|ia64*)
13584 hardcode_direct_CXX=no
13585 hardcode_shlibpath_var_CXX=no
13586 ;;
13587 *)
13588 hardcode_direct_CXX=yes
13589 hardcode_direct_absolute_CXX=yes
13590 hardcode_minus_L_CXX=yes # Not in the search PATH,
13591 # but as the default
13592 # location of the library.
13593 ;;
13594 esac
d9898ee8 13595
8d138742
CE
13596 case $cc_basename in
13597 CC*)
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13600 ;;
13601 aCC*)
13602 case $host_cpu in
13603 hppa*64*)
13604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13605 ;;
13606 ia64*)
13607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13608 ;;
13609 *)
13610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 ;;
13612 esac
13613 # Commands to make compiler produce verbose output that lists
13614 # what "hidden" libraries, object files and flags are used when
13615 # linking a shared library.
13616 #
13617 # There doesn't appear to be a way to prevent this compiler from
13618 # explicitly linking system object files so we need to strip them
13619 # from the output so that they don't get included in the library
13620 # dependencies.
b0322a85 13621 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
13622 ;;
13623 *)
13624 if test "$GXX" = yes; then
13625 if test $with_gnu_ld = no; then
13626 case $host_cpu in
13627 hppa*64*)
13628 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13629 ;;
13630 ia64*)
b0322a85 13631 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
13632 ;;
13633 *)
b0322a85 13634 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
13635 ;;
13636 esac
13637 fi
13638 else
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13641 fi
13642 ;;
13643 esac
13644 ;;
d9898ee8 13645
8d138742
CE
13646 interix[3-9]*)
13647 hardcode_direct_CXX=no
13648 hardcode_shlibpath_var_CXX=no
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}-E'
13651 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13652 # Instead, shared libraries are loaded at an image base (0x10000000 by
13653 # default) and relocated if they conflict, which is a slow very memory
13654 # consuming and fragmenting process. To avoid this, we pick a random,
13655 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13656 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13657 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'
13658 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'
13659 ;;
13660 irix5* | irix6*)
13661 case $cc_basename in
13662 CC*)
13663 # SGI C++
b0322a85 13664 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
13665
13666 # Archives containing C++ object files must be created using
13667 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13668 # necessary to make sure instantiated templates are included
13669 # in the archive.
13670 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13671 ;;
13672 *)
13673 if test "$GXX" = yes; then
13674 if test "$with_gnu_ld" = no; then
b0322a85 13675 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 13676 else
b0322a85 13677 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
13678 fi
13679 fi
13680 link_all_deplibs_CXX=yes
13681 ;;
13682 esac
13683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13684 hardcode_libdir_separator_CXX=:
13685 inherit_rpath_CXX=yes
13686 ;;
d9898ee8 13687
b0322a85 13688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
13689 case $cc_basename in
13690 KCC*)
13691 # Kuck and Associates, Inc. (KAI) C++ Compiler
13692
13693 # KCC will only create a shared library if the output file
13694 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13695 # to its proper name (with version) after linking.
13696 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'
13697 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'
13698 # Commands to make compiler produce verbose output that lists
13699 # what "hidden" libraries, object files and flags are used when
13700 # linking a shared library.
13701 #
13702 # There doesn't appear to be a way to prevent this compiler from
13703 # explicitly linking system object files so we need to strip them
13704 # from the output so that they don't get included in the library
13705 # dependencies.
b0322a85 13706 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
CE
13707
13708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13710
13711 # Archives containing C++ object files must be created using
13712 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13713 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13714 ;;
13715 icpc* | ecpc* )
13716 # Intel C++
13717 with_gnu_ld=yes
13718 # version 8.0 and above of icpc choke on multiply defined symbols
13719 # if we add $predep_objects and $postdep_objects, however 7.1 and
13720 # earlier do not add the objects themselves.
13721 case `$CC -V 2>&1` in
13722 *"Version 7."*)
13723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724 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'
13725 ;;
13726 *) # Version 8.0 or newer
13727 tmp_idyn=
13728 case $host_cpu in
13729 ia64*) tmp_idyn=' -i_dynamic';;
13730 esac
13731 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13732 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'
13733 ;;
13734 esac
13735 archive_cmds_need_lc_CXX=no
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13738 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13739 ;;
13740 pgCC* | pgcpp*)
13741 # Portland Group C++ compiler
13742 case `$CC -V` in
b0322a85 13743 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
8d138742
CE
13744 prelink_cmds_CXX='tpldir=Template.dir~
13745 rm -rf $tpldir~
13746 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
b0322a85 13747 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8d138742
CE
13748 old_archive_cmds_CXX='tpldir=Template.dir~
13749 rm -rf $tpldir~
13750 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
b0322a85 13751 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8d138742
CE
13752 $RANLIB $oldlib'
13753 archive_cmds_CXX='tpldir=Template.dir~
13754 rm -rf $tpldir~
13755 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
b0322a85 13756 $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
CE
13757 archive_expsym_cmds_CXX='tpldir=Template.dir~
13758 rm -rf $tpldir~
13759 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
b0322a85 13760 $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 13761 ;;
b0322a85 13762 *) # Version 6 and above use weak symbols
8d138742
CE
13763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13764 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'
13765 ;;
13766 esac
d9898ee8 13767
8d138742
CE
13768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
b0322a85 13770 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
13771 ;;
13772 cxx*)
13773 # Compaq C++
13774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 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 13776
8d138742
CE
13777 runpath_var=LD_RUN_PATH
13778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13779 hardcode_libdir_separator_CXX=:
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.
13784 #
13785 # There doesn't appear to be a way to prevent this compiler from
13786 # explicitly linking system object files so we need to strip them
13787 # from the output so that they don't get included in the library
13788 # dependencies.
b0322a85 13789 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 13790 ;;
b0322a85 13791 xl* | mpixl* | bgxl*)
8d138742
CE
13792 # IBM XL 8.0 on PPC, with GNU ld
13793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13795 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13796 if test "x$supports_anon_versioning" = xyes; then
13797 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13799 echo "local: *; };" >> $output_objdir/$libname.ver~
13800 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13801 fi
13802 ;;
13803 *)
13804 case `$CC -V 2>&1 | sed 5q` in
13805 *Sun\ C*)
13806 # Sun C++ 5.9
13807 no_undefined_flag_CXX=' -zdefs'
13808 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13809 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'
13810 hardcode_libdir_flag_spec_CXX='-R$libdir'
b0322a85 13811 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
13812 compiler_needs_object_CXX=yes
13813
13814 # Not sure whether something based on
13815 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13816 # would be better.
b0322a85 13817 output_verbose_link_cmd='func_echo_all'
8d138742
CE
13818
13819 # Archives containing C++ object files must be created using
13820 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13821 # necessary to make sure instantiated templates are included
13822 # in the archive.
13823 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13824 ;;
13825 esac
13826 ;;
13827 esac
13828 ;;
d9898ee8 13829
8d138742
CE
13830 lynxos*)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
d9898ee8 13834
8d138742
CE
13835 m88k*)
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 ;;
d9898ee8 13839
8d138742
CE
13840 mvs*)
13841 case $cc_basename in
13842 cxx*)
13843 # FIXME: insert proper C++ library support
13844 ld_shlibs_CXX=no
13845 ;;
13846 *)
13847 # FIXME: insert proper C++ library support
13848 ld_shlibs_CXX=no
13849 ;;
13850 esac
13851 ;;
d9898ee8 13852
8d138742
CE
13853 netbsd*)
13854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13855 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13856 wlarc=
13857 hardcode_libdir_flag_spec_CXX='-R$libdir'
13858 hardcode_direct_CXX=yes
13859 hardcode_shlibpath_var_CXX=no
13860 fi
13861 # Workaround some broken pre-1.5 toolchains
13862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13863 ;;
d9898ee8 13864
8d138742
CE
13865 *nto* | *qnx*)
13866 ld_shlibs_CXX=yes
13867 ;;
d9898ee8 13868
8d138742
CE
13869 openbsd2*)
13870 # C++ shared libraries are fairly broken
13871 ld_shlibs_CXX=no
d9898ee8 13872 ;;
8d138742
CE
13873
13874 openbsd*)
13875 if test -f /usr/libexec/ld.so; then
13876 hardcode_direct_CXX=yes
13877 hardcode_shlibpath_var_CXX=no
13878 hardcode_direct_absolute_CXX=yes
13879 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13882 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13883 export_dynamic_flag_spec_CXX='${wl}-E'
13884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13885 fi
b0322a85 13886 output_verbose_link_cmd=func_echo_all
8d138742
CE
13887 else
13888 ld_shlibs_CXX=no
13889 fi
d9898ee8 13890 ;;
d9898ee8 13891
8d138742
CE
13892 osf3* | osf4* | osf5*)
13893 case $cc_basename in
13894 KCC*)
13895 # Kuck and Associates, Inc. (KAI) C++ Compiler
13896
13897 # KCC will only create a shared library if the output file
13898 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13899 # to its proper name (with version) after linking.
13900 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'
13901
13902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13903 hardcode_libdir_separator_CXX=:
13904
13905 # Archives containing C++ object files must be created using
13906 # the KAI C++ compiler.
13907 case $host in
13908 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13909 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13910 esac
13911 ;;
13912 RCC*)
13913 # Rational C++ 2.4.1
13914 # FIXME: insert proper C++ library support
13915 ld_shlibs_CXX=no
13916 ;;
13917 cxx*)
13918 case $host in
13919 osf3*)
13920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 13921 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'
8d138742
CE
13922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13923 ;;
13924 *)
13925 allow_undefined_flag_CXX=' -expect_unresolved \*'
b0322a85 13926 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
CE
13927 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13928 echo "-hidden">> $lib.exp~
b0322a85 13929 $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~
8d138742
CE
13930 $RM $lib.exp'
13931 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13932 ;;
13933 esac
d9898ee8 13934
8d138742 13935 hardcode_libdir_separator_CXX=:
d9898ee8 13936
8d138742
CE
13937 # Commands to make compiler produce verbose output that lists
13938 # what "hidden" libraries, object files and flags are used when
13939 # linking a shared library.
13940 #
13941 # There doesn't appear to be a way to prevent this compiler from
13942 # explicitly linking system object files so we need to strip them
13943 # from the output so that they don't get included in the library
13944 # dependencies.
b0322a85 13945 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
13946 ;;
13947 *)
13948 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13949 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13950 case $host in
13951 osf3*)
b0322a85 13952 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
13953 ;;
13954 *)
b0322a85 13955 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
13956 ;;
13957 esac
13958
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960 hardcode_libdir_separator_CXX=:
13961
13962 # Commands to make compiler produce verbose output that lists
13963 # what "hidden" libraries, object files and flags are used when
13964 # linking a shared library.
b0322a85 13965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
13966
13967 else
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 fi
13971 ;;
13972 esac
13973 ;;
13974
13975 psos*)
13976 # FIXME: insert proper C++ library support
13977 ld_shlibs_CXX=no
13978 ;;
13979
13980 sunos4*)
13981 case $cc_basename in
13982 CC*)
13983 # Sun C++ 4.x
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
13986 ;;
13987 lcc*)
13988 # Lucid
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
13991 ;;
13992 *)
13993 # FIXME: insert proper C++ library support
13994 ld_shlibs_CXX=no
13995 ;;
13996 esac
13997 ;;
d9898ee8 13998
8d138742
CE
13999 solaris*)
14000 case $cc_basename in
b0322a85 14001 CC* | sunCC*)
8d138742
CE
14002 # Sun C++ 4.2, 5.x and Centerline C++
14003 archive_cmds_need_lc_CXX=yes
14004 no_undefined_flag_CXX=' -zdefs'
14005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14006 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14007 $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'
14008
14009 hardcode_libdir_flag_spec_CXX='-R$libdir'
14010 hardcode_shlibpath_var_CXX=no
14011 case $host_os in
14012 solaris2.[0-5] | solaris2.[0-5].*) ;;
14013 *)
14014 # The compiler driver will combine and reorder linker options,
14015 # but understands `-z linker_flag'.
14016 # Supported since Solaris 2.6 (maybe 2.5.1?)
14017 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14018 ;;
14019 esac
14020 link_all_deplibs_CXX=yes
d9898ee8 14021
b0322a85 14022 output_verbose_link_cmd='func_echo_all'
d9898ee8 14023
8d138742
CE
14024 # Archives containing C++ object files must be created using
14025 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14026 # necessary to make sure instantiated templates are included
14027 # in the archive.
14028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14029 ;;
14030 gcx*)
14031 # Green Hills C++ Compiler
14032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14033
14034 # The C++ compiler must be used to create the archive.
14035 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14036 ;;
14037 *)
14038 # GNU C++ compiler with Solaris linker
14039 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14040 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14041 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
b0322a85 14042 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8d138742 14043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 14044 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8d138742
CE
14045
14046 # Commands to make compiler produce verbose output that lists
14047 # what "hidden" libraries, object files and flags are used when
14048 # linking a shared library.
b0322a85 14049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
14050 else
14051 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14052 # platform.
14053 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14054 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14055 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14056
14057 # Commands to make compiler produce verbose output that lists
14058 # what "hidden" libraries, object files and flags are used when
14059 # linking a shared library.
b0322a85 14060 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
14061 fi
14062
14063 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14064 case $host_os in
14065 solaris2.[0-5] | solaris2.[0-5].*) ;;
14066 *)
14067 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14068 ;;
14069 esac
14070 fi
14071 ;;
14072 esac
d9898ee8 14073 ;;
8d138742
CE
14074
14075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14076 no_undefined_flag_CXX='${wl}-z,text'
14077 archive_cmds_need_lc_CXX=no
14078 hardcode_shlibpath_var_CXX=no
14079 runpath_var='LD_RUN_PATH'
14080
14081 case $cc_basename in
14082 CC*)
14083 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 14085 ;;
8d138742
CE
14086 *)
14087 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 14089 ;;
d9898ee8 14090 esac
14091 ;;
14092
8d138742
CE
14093 sysv5* | sco3.2v5* | sco5v6*)
14094 # Note: We can NOT use -z defs as we might desire, because we do not
14095 # link with -lc, and that would cause any symbols used from libc to
14096 # always be unresolved, which means just about no library would
14097 # ever link correctly. If we're not using GNU ld we use -z text
14098 # though, which does catch some bad symbols but isn't as heavy-handed
14099 # as -z defs.
14100 no_undefined_flag_CXX='${wl}-z,text'
14101 allow_undefined_flag_CXX='${wl}-z,nodefs'
14102 archive_cmds_need_lc_CXX=no
14103 hardcode_shlibpath_var_CXX=no
14104 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14105 hardcode_libdir_separator_CXX=':'
14106 link_all_deplibs_CXX=yes
14107 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14108 runpath_var='LD_RUN_PATH'
d9898ee8 14109
8d138742
CE
14110 case $cc_basename in
14111 CC*)
14112 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
14114 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14115 '"$old_archive_cmds_CXX"
14116 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14117 '"$reload_cmds_CXX"
8d138742
CE
14118 ;;
14119 *)
14120 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 ;;
14123 esac
ac40fd9e 14124 ;;
14125
8d138742
CE
14126 tandem*)
14127 case $cc_basename in
14128 NCC*)
14129 # NonStop-UX NCC 3.20
14130 # FIXME: insert proper C++ library support
14131 ld_shlibs_CXX=no
14132 ;;
14133 *)
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137 esac
14138 ;;
14139
14140 vxworks*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144
d9898ee8 14145 *)
8d138742
CE
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149 esac
d9898ee8 14150
b0322a85 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742
CE
14152$as_echo "$ld_shlibs_CXX" >&6; }
14153 test "$ld_shlibs_CXX" = no && can_build_shared=no
d9898ee8 14154
8d138742
CE
14155 GCC_CXX="$GXX"
14156 LD_CXX="$LD"
d9898ee8 14157
8d138742
CE
14158 ## CAVEAT EMPTOR:
14159 ## There is no encapsulation within the following macros, do not change
14160 ## the running order or otherwise move them around unless you know exactly
14161 ## what you are doing...
14162 # Dependencies to place before and after the object being linked:
14163predep_objects_CXX=
14164postdep_objects_CXX=
14165predeps_CXX=
14166postdeps_CXX=
14167compiler_lib_search_path_CXX=
d9898ee8 14168
8d138742
CE
14169cat > conftest.$ac_ext <<_LT_EOF
14170class Foo
14171{
14172public:
14173 Foo (void) { a = 0; }
14174private:
14175 int a;
14176};
14177_LT_EOF
d9898ee8 14178
b0322a85
CE
14179
14180_lt_libdeps_save_CFLAGS=$CFLAGS
14181case "$CC $CFLAGS " in #(
14182*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14183*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14184*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14185esac
14186
14187if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
14188 (eval $ac_compile) 2>&5
14189 ac_status=$?
b0322a85
CE
14190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14191 test $ac_status = 0; }; then
8d138742
CE
14192 # Parse the compiler output and extract the necessary
14193 # objects, libraries and library flags.
d9898ee8 14194
8d138742
CE
14195 # Sentinel used to keep track of whether or not we are before
14196 # the conftest object file.
14197 pre_test_object_deps_done=no
d9898ee8 14198
8d138742 14199 for p in `eval "$output_verbose_link_cmd"`; do
b0322a85 14200 case ${prev}${p} in
d9898ee8 14201
8d138742
CE
14202 -L* | -R* | -l*)
14203 # Some compilers place space between "-{L,R}" and the path.
14204 # Remove the space.
14205 if test $p = "-L" ||
14206 test $p = "-R"; then
14207 prev=$p
14208 continue
8d138742 14209 fi
d9898ee8 14210
b0322a85
CE
14211 # Expand the sysroot to ease extracting the directories later.
14212 if test -z "$prev"; then
14213 case $p in
14214 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14215 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14216 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14217 esac
14218 fi
14219 case $p in
14220 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14221 esac
8d138742 14222 if test "$pre_test_object_deps_done" = no; then
b0322a85
CE
14223 case ${prev} in
14224 -L | -R)
8d138742
CE
14225 # Internal compiler library paths should come after those
14226 # provided the user. The postdeps already come after the
14227 # user supplied libs so there is no need to process them.
14228 if test -z "$compiler_lib_search_path_CXX"; then
14229 compiler_lib_search_path_CXX="${prev}${p}"
14230 else
14231 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14232 fi
14233 ;;
14234 # The "-l" case would never come before the object being
14235 # linked, so don't bother handling this case.
14236 esac
14237 else
14238 if test -z "$postdeps_CXX"; then
14239 postdeps_CXX="${prev}${p}"
14240 else
14241 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14242 fi
14243 fi
b0322a85 14244 prev=
8d138742 14245 ;;
d9898ee8 14246
b0322a85 14247 *.lto.$objext) ;; # Ignore GCC LTO objects
8d138742
CE
14248 *.$objext)
14249 # This assumes that the test object file only shows up
14250 # once in the compiler output.
14251 if test "$p" = "conftest.$objext"; then
14252 pre_test_object_deps_done=yes
14253 continue
14254 fi
d9898ee8 14255
8d138742
CE
14256 if test "$pre_test_object_deps_done" = no; then
14257 if test -z "$predep_objects_CXX"; then
14258 predep_objects_CXX="$p"
14259 else
14260 predep_objects_CXX="$predep_objects_CXX $p"
14261 fi
14262 else
14263 if test -z "$postdep_objects_CXX"; then
14264 postdep_objects_CXX="$p"
14265 else
14266 postdep_objects_CXX="$postdep_objects_CXX $p"
14267 fi
14268 fi
14269 ;;
d9898ee8 14270
8d138742
CE
14271 *) ;; # Ignore the rest.
14272
14273 esac
14274 done
14275
14276 # Clean up.
14277 rm -f a.out a.exe
d9898ee8 14278else
8d138742 14279 echo "libtool.m4: error: problem compiling CXX test program"
d9898ee8 14280fi
14281
8d138742 14282$RM -f confest.$objext
b0322a85 14283CFLAGS=$_lt_libdeps_save_CFLAGS
8d138742
CE
14284
14285# PORTME: override above test on systems where it is broken
d9898ee8 14286case $host_os in
8d138742
CE
14287interix[3-9]*)
14288 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14289 # hack all around it, let's just trust "g++" to DTRT.
14290 predep_objects_CXX=
14291 postdep_objects_CXX=
14292 postdeps_CXX=
14293 ;;
14294
14295linux*)
14296 case `$CC -V 2>&1 | sed 5q` in
14297 *Sun\ C*)
14298 # Sun C++ 5.9
14299
14300 # The more standards-conforming stlport4 library is
14301 # incompatible with the Cstd library. Avoid specifying
14302 # it if it's in CXXFLAGS. Ignore libCrun as
14303 # -library=stlport4 depends on it.
14304 case " $CXX $CXXFLAGS " in
14305 *" -library=stlport4 "*)
14306 solaris_use_stlport4=yes
14307 ;;
14308 esac
14309
14310 if test "$solaris_use_stlport4" != yes; then
14311 postdeps_CXX='-library=Cstd -library=Crun'
14312 fi
d9898ee8 14313 ;;
8d138742
CE
14314 esac
14315 ;;
14316
14317solaris*)
14318 case $cc_basename in
b0322a85 14319 CC* | sunCC*)
8d138742
CE
14320 # The more standards-conforming stlport4 library is
14321 # incompatible with the Cstd library. Avoid specifying
14322 # it if it's in CXXFLAGS. Ignore libCrun as
14323 # -library=stlport4 depends on it.
14324 case " $CXX $CXXFLAGS " in
14325 *" -library=stlport4 "*)
14326 solaris_use_stlport4=yes
14327 ;;
14328 esac
14329
14330 # Adding this requires a known-good setup of shared libraries for
14331 # Sun compiler versions before 5.6, else PIC objects from an old
14332 # archive will be linked into the output, leading to subtle bugs.
14333 if test "$solaris_use_stlport4" != yes; then
14334 postdeps_CXX='-library=Cstd -library=Crun'
14335 fi
d9898ee8 14336 ;;
8d138742
CE
14337 esac
14338 ;;
d9898ee8 14339esac
14340
d9898ee8 14341
8d138742
CE
14342case " $postdeps_CXX " in
14343*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14344esac
14345 compiler_lib_search_dirs_CXX=
14346if test -n "${compiler_lib_search_path_CXX}"; then
14347 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
d9898ee8 14348fi
d9898ee8 14349
d9898ee8 14350
14351
d9898ee8 14352
d9898ee8 14353
d9898ee8 14354
14355
d9898ee8 14356
d9898ee8 14357
d9898ee8 14358
d9898ee8 14359
d9898ee8 14360
d9898ee8 14361
d9898ee8 14362
d9898ee8 14363
d9898ee8 14364
d9898ee8 14365
d9898ee8 14366
d9898ee8 14367
d9898ee8 14368
d9898ee8 14369
d9898ee8 14370
d9898ee8 14371
d9898ee8 14372
d9898ee8 14373
8d138742
CE
14374
14375
14376
14377
14378
14379
14380 lt_prog_compiler_wl_CXX=
14381lt_prog_compiler_pic_CXX=
14382lt_prog_compiler_static_CXX=
14383
8d138742
CE
14384
14385 # C++ specific cases for pic, static, wl, etc.
14386 if test "$GXX" = yes; then
14387 lt_prog_compiler_wl_CXX='-Wl,'
14388 lt_prog_compiler_static_CXX='-static'
14389
14390 case $host_os in
14391 aix*)
14392 # All AIX code is PIC.
14393 if test "$host_cpu" = ia64; then
14394 # AIX 5 now supports IA64 processor
14395 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14396 fi
14397 ;;
14398
8d138742
CE
14399 amigaos*)
14400 case $host_cpu in
14401 powerpc)
14402 # see comment about AmigaOS4 .so support
14403 lt_prog_compiler_pic_CXX='-fPIC'
14404 ;;
14405 m68k)
14406 # FIXME: we need at least 68020 code to build shared libraries, but
14407 # adding the `-m68020' flag to GCC prevents building anything better,
14408 # like `-m68040'.
14409 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14410 ;;
14411 esac
14412 ;;
d9898ee8 14413
8d138742
CE
14414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14415 # PIC is the default for these OSes.
14416 ;;
14417 mingw* | cygwin* | os2* | pw32* | cegcc*)
14418 # This hack is so that the source file can tell whether it is being
14419 # built for inclusion in a dll (and should export symbols for example).
14420 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14421 # (--disable-auto-import) libraries
14422 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14423 ;;
14424 darwin* | rhapsody*)
14425 # PIC is the default on this platform
14426 # Common symbols not allowed in MH_DYLIB files
14427 lt_prog_compiler_pic_CXX='-fno-common'
14428 ;;
14429 *djgpp*)
14430 # DJGPP does not support shared libraries at all
14431 lt_prog_compiler_pic_CXX=
14432 ;;
b0322a85
CE
14433 haiku*)
14434 # PIC is the default for Haiku.
14435 # The "-static" flag exists, but is broken.
14436 lt_prog_compiler_static_CXX=
14437 ;;
8d138742
CE
14438 interix[3-9]*)
14439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440 # Instead, we relocate shared libraries at runtime.
14441 ;;
14442 sysv4*MP*)
14443 if test -d /usr/nec; then
14444 lt_prog_compiler_pic_CXX=-Kconform_pic
14445 fi
14446 ;;
14447 hpux*)
14448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14450 # sets the default TLS model and affects inlining.
14451 case $host_cpu in
14452 hppa*64*)
d9898ee8 14453 ;;
8d138742
CE
14454 *)
14455 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 14456 ;;
14457 esac
14458 ;;
8d138742
CE
14459 *qnx* | *nto*)
14460 # QNX uses GNU C++, but need to define -shared option too, otherwise
14461 # it will coredump.
14462 lt_prog_compiler_pic_CXX='-fPIC -shared'
d9898ee8 14463 ;;
d9898ee8 14464 *)
8d138742 14465 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 14466 ;;
14467 esac
d9898ee8 14468 else
d9898ee8 14469 case $host_os in
8d138742
CE
14470 aix[4-9]*)
14471 # All AIX code is PIC.
14472 if test "$host_cpu" = ia64; then
14473 # AIX 5 now supports IA64 processor
14474 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14475 else
8d138742 14476 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
d9898ee8 14477 fi
8d138742
CE
14478 ;;
14479 chorus*)
14480 case $cc_basename in
14481 cxch68*)
14482 # Green Hills C++ Compiler
14483 # _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 14484 ;;
14485 esac
8d138742 14486 ;;
b0322a85
CE
14487 mingw* | cygwin* | os2* | pw32* | cegcc*)
14488 # This hack is so that the source file can tell whether it is being
14489 # built for inclusion in a dll (and should export symbols for example).
14490 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14491 ;;
8d138742
CE
14492 dgux*)
14493 case $cc_basename in
14494 ec++*)
14495 lt_prog_compiler_pic_CXX='-KPIC'
14496 ;;
14497 ghcx*)
14498 # Green Hills C++ Compiler
14499 lt_prog_compiler_pic_CXX='-pic'
14500 ;;
14501 *)
14502 ;;
14503 esac
14504 ;;
14505 freebsd* | dragonfly*)
14506 # FreeBSD uses GNU C++
14507 ;;
14508 hpux9* | hpux10* | hpux11*)
14509 case $cc_basename in
14510 CC*)
14511 lt_prog_compiler_wl_CXX='-Wl,'
14512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14513 if test "$host_cpu" != ia64; then
14514 lt_prog_compiler_pic_CXX='+Z'
14515 fi
14516 ;;
14517 aCC*)
14518 lt_prog_compiler_wl_CXX='-Wl,'
14519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520 case $host_cpu in
14521 hppa*64*|ia64*)
14522 # +Z the default
14523 ;;
14524 *)
14525 lt_prog_compiler_pic_CXX='+Z'
14526 ;;
14527 esac
14528 ;;
14529 *)
14530 ;;
14531 esac
14532 ;;
14533 interix*)
14534 # This is c89, which is MS Visual C++ (no shared libs)
14535 # Anyone wants to do a port?
14536 ;;
14537 irix5* | irix6* | nonstopux*)
14538 case $cc_basename in
14539 CC*)
14540 lt_prog_compiler_wl_CXX='-Wl,'
14541 lt_prog_compiler_static_CXX='-non_shared'
14542 # CC pic flag -KPIC is the default.
14543 ;;
14544 *)
14545 ;;
14546 esac
14547 ;;
b0322a85 14548 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
14549 case $cc_basename in
14550 KCC*)
14551 # KAI C++ Compiler
14552 lt_prog_compiler_wl_CXX='--backend -Wl,'
14553 lt_prog_compiler_pic_CXX='-fPIC'
14554 ;;
14555 ecpc* )
14556 # old Intel C++ for x86_64 which still supported -KPIC.
14557 lt_prog_compiler_wl_CXX='-Wl,'
14558 lt_prog_compiler_pic_CXX='-KPIC'
14559 lt_prog_compiler_static_CXX='-static'
14560 ;;
14561 icpc* )
14562 # Intel C++, used to be incompatible with GCC.
14563 # ICC 10 doesn't accept -KPIC any more.
14564 lt_prog_compiler_wl_CXX='-Wl,'
14565 lt_prog_compiler_pic_CXX='-fPIC'
14566 lt_prog_compiler_static_CXX='-static'
14567 ;;
14568 pgCC* | pgcpp*)
14569 # Portland Group C++ compiler
14570 lt_prog_compiler_wl_CXX='-Wl,'
14571 lt_prog_compiler_pic_CXX='-fpic'
14572 lt_prog_compiler_static_CXX='-Bstatic'
14573 ;;
14574 cxx*)
14575 # Compaq C++
14576 # Make sure the PIC flag is empty. It appears that all Alpha
14577 # Linux and Compaq Tru64 Unix objects are PIC.
14578 lt_prog_compiler_pic_CXX=
14579 lt_prog_compiler_static_CXX='-non_shared'
14580 ;;
b0322a85
CE
14581 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14582 # IBM XL 8.0, 9.0 on PPC and BlueGene
8d138742
CE
14583 lt_prog_compiler_wl_CXX='-Wl,'
14584 lt_prog_compiler_pic_CXX='-qpic'
14585 lt_prog_compiler_static_CXX='-qstaticlink'
14586 ;;
14587 *)
14588 case `$CC -V 2>&1 | sed 5q` in
14589 *Sun\ C*)
14590 # Sun C++ 5.9
14591 lt_prog_compiler_pic_CXX='-KPIC'
14592 lt_prog_compiler_static_CXX='-Bstatic'
14593 lt_prog_compiler_wl_CXX='-Qoption ld '
14594 ;;
14595 esac
14596 ;;
14597 esac
14598 ;;
14599 lynxos*)
14600 ;;
14601 m88k*)
14602 ;;
14603 mvs*)
14604 case $cc_basename in
14605 cxx*)
14606 lt_prog_compiler_pic_CXX='-W c,exportall'
14607 ;;
14608 *)
14609 ;;
14610 esac
14611 ;;
14612 netbsd*)
14613 ;;
14614 *qnx* | *nto*)
14615 # QNX uses GNU C++, but need to define -shared option too, otherwise
14616 # it will coredump.
14617 lt_prog_compiler_pic_CXX='-fPIC -shared'
14618 ;;
14619 osf3* | osf4* | osf5*)
14620 case $cc_basename in
14621 KCC*)
14622 lt_prog_compiler_wl_CXX='--backend -Wl,'
14623 ;;
14624 RCC*)
14625 # Rational C++ 2.4.1
14626 lt_prog_compiler_pic_CXX='-pic'
14627 ;;
14628 cxx*)
14629 # Digital/Compaq C++
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 # Make sure the PIC flag is empty. It appears that all Alpha
14632 # Linux and Compaq Tru64 Unix objects are PIC.
14633 lt_prog_compiler_pic_CXX=
14634 lt_prog_compiler_static_CXX='-non_shared'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 psos*)
14641 ;;
14642 solaris*)
14643 case $cc_basename in
b0322a85 14644 CC* | sunCC*)
8d138742
CE
14645 # Sun C++ 4.2, 5.x and Centerline C++
14646 lt_prog_compiler_pic_CXX='-KPIC'
14647 lt_prog_compiler_static_CXX='-Bstatic'
14648 lt_prog_compiler_wl_CXX='-Qoption ld '
14649 ;;
14650 gcx*)
14651 # Green Hills C++ Compiler
14652 lt_prog_compiler_pic_CXX='-PIC'
14653 ;;
14654 *)
14655 ;;
14656 esac
14657 ;;
14658 sunos4*)
14659 case $cc_basename in
14660 CC*)
14661 # Sun C++ 4.x
14662 lt_prog_compiler_pic_CXX='-pic'
14663 lt_prog_compiler_static_CXX='-Bstatic'
14664 ;;
14665 lcc*)
14666 # Lucid
14667 lt_prog_compiler_pic_CXX='-pic'
14668 ;;
14669 *)
14670 ;;
14671 esac
14672 ;;
14673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14674 case $cc_basename in
14675 CC*)
14676 lt_prog_compiler_wl_CXX='-Wl,'
14677 lt_prog_compiler_pic_CXX='-KPIC'
14678 lt_prog_compiler_static_CXX='-Bstatic'
14679 ;;
d9898ee8 14680 esac
8d138742
CE
14681 ;;
14682 tandem*)
14683 case $cc_basename in
14684 NCC*)
14685 # NonStop-UX NCC 3.20
14686 lt_prog_compiler_pic_CXX='-KPIC'
14687 ;;
14688 *)
14689 ;;
14690 esac
14691 ;;
14692 vxworks*)
14693 ;;
14694 *)
14695 lt_prog_compiler_can_build_shared_CXX=no
14696 ;;
14697 esac
14698 fi
d9898ee8 14699
8d138742
CE
14700case $host_os in
14701 # For platforms which do not support PIC, -DPIC is meaningless:
14702 *djgpp*)
14703 lt_prog_compiler_pic_CXX=
14704 ;;
14705 *)
14706 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14707 ;;
14708esac
d9898ee8 14709
b0322a85
CE
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14711$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14712if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714else
14715 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14716fi
14717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14718$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14719lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
d9898ee8 14720
8d138742
CE
14721#
14722# Check to make sure the PIC flag actually works.
14723#
14724if test -n "$lt_prog_compiler_pic_CXX"; then
b0322a85 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
8d138742 14726$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
b0322a85 14727if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
8d138742 14728 $as_echo_n "(cached) " >&6
d9898ee8 14729else
8d138742
CE
14730 lt_cv_prog_compiler_pic_works_CXX=no
14731 ac_outfile=conftest.$ac_objext
14732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734 # Insert the option either (1) after the last *FLAGS variable, or
14735 # (2) before a word containing "conftest.", or (3) at the end.
14736 # Note that $ac_compile itself does not contain backslashes and begins
14737 # with a dollar sign (not a hyphen), so the echo should work correctly.
14738 # The option is referenced via a variable to avoid confusing sed.
14739 lt_compile=`echo "$ac_compile" | $SED \
14740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742 -e 's:$: $lt_compiler_flag:'`
b0322a85 14743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14744 (eval "$lt_compile" 2>conftest.err)
14745 ac_status=$?
14746 cat conftest.err >&5
b0322a85 14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14748 if (exit $ac_status) && test -s "$ac_outfile"; then
14749 # The compiler can only warn and ignore the option if not recognized
14750 # So say no if there are warnings other than the usual output.
b0322a85 14751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
14752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754 lt_cv_prog_compiler_pic_works_CXX=yes
14755 fi
14756 fi
14757 $RM conftest*
dd184caf 14758
d9898ee8 14759fi
b0322a85 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
8d138742 14761$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
dd184caf 14762
8d138742
CE
14763if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764 case $lt_prog_compiler_pic_CXX in
14765 "" | " "*) ;;
14766 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767 esac
d9898ee8 14768else
8d138742
CE
14769 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_can_build_shared_CXX=no
d9898ee8 14771fi
dd184caf 14772
8d138742 14773fi
d9898ee8 14774
d9898ee8 14775
d9898ee8 14776
b0322a85
CE
14777
14778
8d138742
CE
14779#
14780# Check to make sure the static flag actually works.
14781#
14782wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
b0322a85 14783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 14784$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 14785if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
8d138742
CE
14786 $as_echo_n "(cached) " >&6
14787else
14788 lt_cv_prog_compiler_static_works_CXX=no
14789 save_LDFLAGS="$LDFLAGS"
14790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14793 # The linker can only warn and ignore the option if not recognized
14794 # So say no if there are warnings
14795 if test -s conftest.err; then
14796 # Append any errors to the config.log.
14797 cat conftest.err 1>&5
b0322a85 14798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
14799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14800 if diff conftest.exp conftest.er2 >/dev/null; then
14801 lt_cv_prog_compiler_static_works_CXX=yes
14802 fi
14803 else
14804 lt_cv_prog_compiler_static_works_CXX=yes
14805 fi
14806 fi
14807 $RM -r conftest*
14808 LDFLAGS="$save_LDFLAGS"
d9898ee8 14809
8d138742 14810fi
b0322a85 14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
8d138742 14812$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
d9898ee8 14813
8d138742
CE
14814if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14815 :
14816else
14817 lt_prog_compiler_static_CXX=
14818fi
d9898ee8 14819
d9898ee8 14820
d9898ee8 14821
d9898ee8 14822
b0322a85 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 14824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 14825if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
14826 $as_echo_n "(cached) " >&6
14827else
14828 lt_cv_prog_compiler_c_o_CXX=no
14829 $RM -r conftest 2>/dev/null
14830 mkdir conftest
14831 cd conftest
14832 mkdir out
14833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14834
8d138742
CE
14835 lt_compiler_flag="-o out/conftest2.$ac_objext"
14836 # Insert the option either (1) after the last *FLAGS variable, or
14837 # (2) before a word containing "conftest.", or (3) at the end.
14838 # Note that $ac_compile itself does not contain backslashes and begins
14839 # with a dollar sign (not a hyphen), so the echo should work correctly.
14840 lt_compile=`echo "$ac_compile" | $SED \
14841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14843 -e 's:$: $lt_compiler_flag:'`
b0322a85 14844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14845 (eval "$lt_compile" 2>out/conftest.err)
14846 ac_status=$?
14847 cat out/conftest.err >&5
b0322a85 14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14850 then
14851 # The compiler can only warn and ignore the option if not recognized
14852 # So say no if there are warnings
b0322a85 14853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
14854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_c_o_CXX=yes
14857 fi
14858 fi
14859 chmod u+w . 2>&5
14860 $RM conftest*
14861 # SGI C++ compiler will create directory out/ii_files/ for
14862 # template instantiation
14863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14864 $RM out/* && rmdir out
14865 cd ..
14866 $RM -r conftest
14867 $RM conftest*
d9898ee8 14868
8d138742 14869fi
b0322a85 14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 14871$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 14872
d9898ee8 14873
d9898ee8 14874
b0322a85 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 14876$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 14877if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
14878 $as_echo_n "(cached) " >&6
14879else
14880 lt_cv_prog_compiler_c_o_CXX=no
14881 $RM -r conftest 2>/dev/null
14882 mkdir conftest
14883 cd conftest
14884 mkdir out
14885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14886
8d138742
CE
14887 lt_compiler_flag="-o out/conftest2.$ac_objext"
14888 # Insert the option either (1) after the last *FLAGS variable, or
14889 # (2) before a word containing "conftest.", or (3) at the end.
14890 # Note that $ac_compile itself does not contain backslashes and begins
14891 # with a dollar sign (not a hyphen), so the echo should work correctly.
14892 lt_compile=`echo "$ac_compile" | $SED \
14893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14895 -e 's:$: $lt_compiler_flag:'`
b0322a85 14896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14897 (eval "$lt_compile" 2>out/conftest.err)
14898 ac_status=$?
14899 cat out/conftest.err >&5
b0322a85 14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902 then
14903 # The compiler can only warn and ignore the option if not recognized
14904 # So say no if there are warnings
b0322a85 14905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
14906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14908 lt_cv_prog_compiler_c_o_CXX=yes
14909 fi
14910 fi
14911 chmod u+w . 2>&5
14912 $RM conftest*
14913 # SGI C++ compiler will create directory out/ii_files/ for
14914 # template instantiation
14915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14916 $RM out/* && rmdir out
14917 cd ..
14918 $RM -r conftest
14919 $RM conftest*
d9898ee8 14920
8d138742 14921fi
b0322a85 14922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 14923$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 14924
d9898ee8 14925
d9898ee8 14926
d9898ee8 14927
8d138742
CE
14928hard_links="nottested"
14929if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14930 # do not overwrite the value of need_locks provided by the user
b0322a85 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
14932$as_echo_n "checking if we can lock with hard links... " >&6; }
14933 hard_links=yes
14934 $RM conftest*
14935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14936 touch conftest.a
14937 ln conftest.a conftest.b 2>&5 || hard_links=no
14938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
14940$as_echo "$hard_links" >&6; }
14941 if test "$hard_links" = no; then
b0322a85 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
14943$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14944 need_locks=warn
14945 fi
14946else
14947 need_locks=no
14948fi
d9898ee8 14949
d9898ee8 14950
d9898ee8 14951
b0322a85 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
14953$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14954
14955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 14956 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8d138742
CE
14957 case $host_os in
14958 aix[4-9]*)
14959 # If we're using GNU nm, then we don't want the "-C" option.
14960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
14961 # Also, AIX nm treats weak defined symbols like other global defined
14962 # symbols, whereas GNU nm marks them as "W".
8d138742 14963 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 14964 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8d138742
CE
14965 else
14966 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14967 fi
14968 ;;
14969 pw32*)
14970 export_symbols_cmds_CXX="$ltdll_cmds"
b0322a85 14971 ;;
8d138742 14972 cygwin* | mingw* | cegcc*)
b0322a85
CE
14973 case $cc_basename in
14974 cl*)
14975 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14976 ;;
14977 *)
14978 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'
14979 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14980 ;;
14981 esac
14982 ;;
8d138742
CE
14983 *)
14984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 14985 ;;
8d138742 14986 esac
8d138742 14987
b0322a85 14988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742
CE
14989$as_echo "$ld_shlibs_CXX" >&6; }
14990test "$ld_shlibs_CXX" = no && can_build_shared=no
14991
14992with_gnu_ld_CXX=$with_gnu_ld
d9898ee8 14993
d9898ee8 14994
d9898ee8 14995
d9898ee8 14996
d9898ee8 14997
d9898ee8 14998
14999#
15000# Do we need to explicitly link libc?
15001#
8d138742 15002case "x$archive_cmds_need_lc_CXX" in
d9898ee8 15003x|xyes)
15004 # Assume -lc should be added
8d138742 15005 archive_cmds_need_lc_CXX=yes
d9898ee8 15006
15007 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 15008 case $archive_cmds_CXX in
d9898ee8 15009 *'~'*)
15010 # FIXME: we may have to deal with multi-command sequences.
15011 ;;
15012 '$CC '*)
15013 # Test whether the compiler implicitly links with -lc since on some
15014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015 # to ld, don't add -lc before -lgcc.
b0322a85 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 15017$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
15018if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021 $RM conftest*
15022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15023
b0322a85 15024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 15025 (eval $ac_compile) 2>&5
15026 ac_status=$?
b0322a85
CE
15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; } 2>conftest.err; then
15029 soname=conftest
15030 lib=conftest
15031 libobjs=conftest.$ac_objext
15032 deplibs=
15033 wl=$lt_prog_compiler_wl_CXX
15034 pic_flag=$lt_prog_compiler_pic_CXX
15035 compiler_flags=-v
15036 linker_flags=-v
15037 verstring=
15038 output_objdir=.
15039 libname=conftest
15040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15041 allow_undefined_flag_CXX=
15042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742 15043 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 15044 ac_status=$?
b0322a85
CE
15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046 test $ac_status = 0; }
15047 then
15048 lt_cv_archive_cmds_need_lc_CXX=no
15049 else
15050 lt_cv_archive_cmds_need_lc_CXX=yes
15051 fi
15052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15053 else
15054 cat conftest.err 1>&5
15055 fi
15056 $RM conftest*
15057
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15060$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15061 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
d9898ee8 15062 ;;
15063 esac
15064 fi
15065 ;;
15066esac
15067
8d138742
CE
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
b0322a85 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
15130$as_echo_n "checking dynamic linker characteristics... " >&6; }
15131
d9898ee8 15132library_names_spec=
15133libname_spec='lib$name'
15134soname_spec=
15135shrext_cmds=".so"
15136postinstall_cmds=
15137postuninstall_cmds=
15138finish_cmds=
15139finish_eval=
15140shlibpath_var=
15141shlibpath_overrides_runpath=unknown
15142version_type=none
15143dynamic_linker="$host_os ld.so"
15144sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 15145need_lib_prefix=unknown
15146hardcode_into_libs=no
15147
15148# when you set need_version to no, make sure it does not cause -set_version
15149# flags to be left without arguments
15150need_version=unknown
15151
15152case $host_os in
15153aix3*)
b0322a85 15154 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15156 shlibpath_var=LIBPATH
15157
15158 # AIX 3 has no versioning support, so we append a major version to the name.
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 ;;
15161
8d138742 15162aix[4-9]*)
b0322a85 15163 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15164 need_lib_prefix=no
15165 need_version=no
15166 hardcode_into_libs=yes
15167 if test "$host_cpu" = ia64; then
15168 # AIX 5 supports IA64
15169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 else
15172 # With GCC up to 2.95.x, collect2 would create an import file
15173 # for dependence libraries. The import file would start with
15174 # the line `#! .'. This would cause the generated library to
15175 # depend on `.', always an invalid library. This was fixed in
15176 # development snapshots of GCC prior to 3.0.
15177 case $host_os in
15178 aix4 | aix4.[01] | aix4.[01].*)
15179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15180 echo ' yes '
8d138742 15181 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 15182 :
15183 else
15184 can_build_shared=no
15185 fi
15186 ;;
15187 esac
15188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15189 # soname into executable. Probably we can add versioning support to
15190 # collect2, so additional links can be useful in future.
15191 if test "$aix_use_runtimelinking" = yes; then
15192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15193 # instead of lib<name>.a to let people know that these are not
15194 # typical AIX shared libraries.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 else
15197 # We preserve .a as extension for shared libraries through AIX4.2
15198 # and later when we are not doing run time linking.
15199 library_names_spec='${libname}${release}.a $libname.a'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 fi
15202 shlibpath_var=LIBPATH
15203 fi
15204 ;;
15205
15206amigaos*)
8d138742
CE
15207 case $host_cpu in
15208 powerpc)
15209 # Since July 2007 AmigaOS4 officially supports .so libraries.
15210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 ;;
15213 m68k)
15214 library_names_spec='$libname.ixlibrary $libname.a'
15215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 15216 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
15217 ;;
15218 esac
d9898ee8 15219 ;;
15220
15221beos*)
15222 library_names_spec='${libname}${shared_ext}'
15223 dynamic_linker="$host_os ld.so"
15224 shlibpath_var=LIBRARY_PATH
15225 ;;
15226
15227bsdi[45]*)
b0322a85 15228 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15236 # the default ld.so.conf also contains /usr/contrib/lib and
15237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15238 # libtool to hard-code these into programs
15239 ;;
15240
8d138742 15241cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 15242 version_type=windows
15243 shrext_cmds=".dll"
15244 need_version=no
15245 need_lib_prefix=no
15246
b0322a85
CE
15247 case $GCC,$cc_basename in
15248 yes,*)
15249 # gcc
d9898ee8 15250 library_names_spec='$libname.dll.a'
15251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15252 postinstall_cmds='base_file=`basename \${file}`~
8d138742 15253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 15254 dldir=$destdir/`dirname \$dlpath`~
15255 test -d \$dldir || mkdir -p \$dldir~
15256 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
15257 chmod a+x \$dldir/$dlname~
15258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15260 fi'
d9898ee8 15261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15262 dlpath=$dir/\$dldll~
8d138742 15263 $RM \$dlpath'
d9898ee8 15264 shlibpath_overrides_runpath=yes
15265
b0322a85
CE
15266 case $host_os in
15267 cygwin*)
15268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15269 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270
15271 ;;
15272 mingw* | cegcc*)
15273 # MinGW DLLs use traditional 'lib' prefix
15274 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275 ;;
15276 pw32*)
15277 # pw32 DLLs use 'pw' prefix rather than 'lib'
15278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279 ;;
15280 esac
15281 dynamic_linker='Win32 ld.exe'
15282 ;;
15283
15284 *,cl*)
15285 # Native MSVC
15286 libname_spec='$name'
15287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 library_names_spec='${libname}.dll.lib'
15289
15290 case $build_os in
15291 mingw*)
15292 sys_lib_search_path_spec=
15293 lt_save_ifs=$IFS
15294 IFS=';'
15295 for lt_path in $LIB
15296 do
15297 IFS=$lt_save_ifs
15298 # Let DOS variable expansion print the short 8.3 style file name.
15299 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15300 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15301 done
15302 IFS=$lt_save_ifs
15303 # Convert to MSYS style.
15304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15305 ;;
d9898ee8 15306 cygwin*)
b0322a85
CE
15307 # Convert to unix form, then to dos form, then back to unix form
15308 # but this time dos style (no spaces!) so that the unix form looks
15309 # like /cygdrive/c/PROGRA~1:/cygdr...
15310 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15311 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15312 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 15313 ;;
b0322a85
CE
15314 *)
15315 sys_lib_search_path_spec="$LIB"
8d138742 15316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
b0322a85 15317 # It is most probably a Windows format PATH.
8d138742 15318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 15319 else
b0322a85 15320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 15321 fi
b0322a85
CE
15322 # FIXME: find the short name or the path components, as spaces are
15323 # common. (e.g. "Program Files" -> "PROGRA~1")
d9898ee8 15324 ;;
15325 esac
b0322a85
CE
15326
15327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15328 postinstall_cmds='base_file=`basename \${file}`~
15329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15330 dldir=$destdir/`dirname \$dlpath`~
15331 test -d \$dldir || mkdir -p \$dldir~
15332 $install_prog $dir/$dlname \$dldir/$dlname'
15333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15334 dlpath=$dir/\$dldll~
15335 $RM \$dlpath'
15336 shlibpath_overrides_runpath=yes
15337 dynamic_linker='Win32 link.exe'
d9898ee8 15338 ;;
15339
15340 *)
b0322a85 15341 # Assume MSVC wrapper
d9898ee8 15342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 15343 dynamic_linker='Win32 ld.exe'
d9898ee8 15344 ;;
15345 esac
d9898ee8 15346 # FIXME: first we should search . and the directory the executable is in
15347 shlibpath_var=PATH
15348 ;;
15349
15350darwin* | rhapsody*)
15351 dynamic_linker="$host_os dyld"
15352 version_type=darwin
15353 need_lib_prefix=no
15354 need_version=no
8d138742 15355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 15356 soname_spec='${libname}${release}${major}$shared_ext'
15357 shlibpath_overrides_runpath=yes
15358 shlibpath_var=DYLD_LIBRARY_PATH
15359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15360
d9898ee8 15361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362 ;;
15363
15364dgux*)
b0322a85 15365 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15366 need_lib_prefix=no
15367 need_version=no
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 ;;
15372
d9898ee8 15373freebsd* | dragonfly*)
15374 # DragonFly does not have aout. When/if they implement a new
15375 # versioning mechanism, adjust this.
15376 if test -x /usr/bin/objformat; then
15377 objformat=`/usr/bin/objformat`
15378 else
15379 case $host_os in
b0322a85 15380 freebsd[23].*) objformat=aout ;;
d9898ee8 15381 *) objformat=elf ;;
15382 esac
15383 fi
15384 version_type=freebsd-$objformat
15385 case $version_type in
15386 freebsd-elf*)
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15388 need_version=no
15389 need_lib_prefix=no
15390 ;;
15391 freebsd-*)
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393 need_version=yes
15394 ;;
15395 esac
15396 shlibpath_var=LD_LIBRARY_PATH
15397 case $host_os in
b0322a85 15398 freebsd2.*)
d9898ee8 15399 shlibpath_overrides_runpath=yes
15400 ;;
15401 freebsd3.[01]* | freebsdelf3.[01]*)
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15404 ;;
15405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15409 ;;
ac40fd9e 15410 *) # from 4.6 on, and DragonFly
d9898ee8 15411 shlibpath_overrides_runpath=yes
15412 hardcode_into_libs=yes
15413 ;;
15414 esac
15415 ;;
15416
15417gnu*)
b0322a85 15418 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
15424 shlibpath_overrides_runpath=no
15425 hardcode_into_libs=yes
15426 ;;
15427
15428haiku*)
15429 version_type=linux # correct to gnu/linux during the next big refactor
15430 need_lib_prefix=no
15431 need_version=no
15432 dynamic_linker="$host_os runtime_loader"
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 shlibpath_var=LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 15438 hardcode_into_libs=yes
15439 ;;
15440
15441hpux9* | hpux10* | hpux11*)
15442 # Give a soname corresponding to the major version so that dld.sl refuses to
15443 # link against other versions.
15444 version_type=sunos
15445 need_lib_prefix=no
15446 need_version=no
15447 case $host_cpu in
15448 ia64*)
15449 shrext_cmds='.so'
15450 hardcode_into_libs=yes
15451 dynamic_linker="$host_os dld.so"
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 if test "X$HPUX_IA64_MODE" = X32; then
15457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15458 else
15459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15460 fi
15461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462 ;;
8d138742
CE
15463 hppa*64*)
15464 shrext_cmds='.sl'
15465 hardcode_into_libs=yes
15466 dynamic_linker="$host_os dld.sl"
15467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15473 ;;
15474 *)
d9898ee8 15475 shrext_cmds='.sl'
15476 dynamic_linker="$host_os dld.sl"
15477 shlibpath_var=SHLIB_PATH
15478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 ;;
15482 esac
b0322a85 15483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 15484 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
15485 # or fails outright, so override atomically:
15486 install_override_mode=555
d9898ee8 15487 ;;
15488
ac40fd9e 15489interix[3-9]*)
b0322a85 15490 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 ;;
15500
15501irix5* | irix6* | nonstopux*)
15502 case $host_os in
15503 nonstopux*) version_type=nonstopux ;;
15504 *)
15505 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 15506 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15507 else
15508 version_type=irix
15509 fi ;;
15510 esac
15511 need_lib_prefix=no
15512 need_version=no
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15515 case $host_os in
15516 irix5* | nonstopux*)
15517 libsuff= shlibsuff=
15518 ;;
15519 *)
15520 case $LD in # libtool.m4 will add one of these switches to LD
15521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15522 libsuff= shlibsuff= libmagic=32-bit;;
15523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15524 libsuff=32 shlibsuff=N32 libmagic=N32;;
15525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15527 *) libsuff= shlibsuff= libmagic=never-match;;
15528 esac
15529 ;;
15530 esac
15531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15532 shlibpath_overrides_runpath=no
15533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15535 hardcode_into_libs=yes
15536 ;;
15537
15538# No shared lib support for Linux oldld, aout, or coff.
15539linux*oldld* | linux*aout* | linux*coff*)
15540 dynamic_linker=no
15541 ;;
15542
b0322a85
CE
15543# This must be glibc/ELF.
15544linux* | k*bsd*-gnu | kopensolaris*-gnu)
15545 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
b0322a85 15553
8d138742 15554 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
15555 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15556 $as_echo_n "(cached) " >&6
15557else
15558 lt_cv_shlibpath_overrides_runpath=no
15559 save_LDFLAGS=$LDFLAGS
15560 save_libdir=$libdir
15561 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15562 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
15564/* end confdefs.h. */
15565
15566int
15567main ()
15568{
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
b0322a85
CE
15574if ac_fn_cxx_try_link "$LINENO"; then :
15575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15576 lt_cv_shlibpath_overrides_runpath=yes
8d138742 15577fi
b0322a85
CE
15578fi
15579rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LDFLAGS=$save_LDFLAGS
15582 libdir=$save_libdir
8d138742
CE
15583
15584fi
15585
b0322a85 15586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 15587
d9898ee8 15588 # This implies no fast_install, which is unacceptable.
15589 # Some rework will be needed to allow for fast_install
15590 # before this can be enabled.
15591 hardcode_into_libs=yes
8d138742
CE
15592
15593 # Add ABI-specific directories to the system library path.
15594 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 15595
15596 # Append ld.so.conf contents to the search path
15597 if test -f /etc/ld.so.conf; then
b0322a85 15598 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 15599 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 15600
d9898ee8 15601 fi
15602
15603 # We used to test for /lib/ld.so.1 and disable shared libraries on
15604 # powerpc, because MkLinux only supported shared libraries with the
15605 # GNU dynamic linker. Since this was broken with cross compilers,
15606 # most powerpc-linux boxes support dynamic linking these days and
15607 # people can always --disable-shared, the test was removed, and we
15608 # assume the GNU/Linux dynamic linker is in use.
15609 dynamic_linker='GNU/Linux ld.so'
15610 ;;
15611
d9898ee8 15612netbsd*)
15613 version_type=sunos
15614 need_lib_prefix=no
15615 need_version=no
8d138742 15616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15619 dynamic_linker='NetBSD (a.out) ld.so'
15620 else
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 dynamic_linker='NetBSD ld.elf_so'
15624 fi
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 hardcode_into_libs=yes
15628 ;;
15629
15630newsos6)
b0322a85 15631 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=yes
15635 ;;
15636
8d138742
CE
15637*nto* | *qnx*)
15638 version_type=qnx
d9898ee8 15639 need_lib_prefix=no
15640 need_version=no
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
15644 shlibpath_overrides_runpath=no
15645 hardcode_into_libs=yes
15646 dynamic_linker='ldqnx.so'
d9898ee8 15647 ;;
15648
15649openbsd*)
15650 version_type=sunos
15651 sys_lib_dlsearch_path_spec="/usr/lib"
15652 need_lib_prefix=no
15653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654 case $host_os in
8d138742
CE
15655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15656 *) need_version=no ;;
d9898ee8 15657 esac
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
8d138742 15661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 15662 case $host_os in
15663 openbsd2.[89] | openbsd2.[89].*)
15664 shlibpath_overrides_runpath=no
15665 ;;
15666 *)
15667 shlibpath_overrides_runpath=yes
15668 ;;
15669 esac
15670 else
15671 shlibpath_overrides_runpath=yes
15672 fi
15673 ;;
15674
15675os2*)
15676 libname_spec='$name'
15677 shrext_cmds=".dll"
15678 need_lib_prefix=no
15679 library_names_spec='$libname${shared_ext} $libname.a'
15680 dynamic_linker='OS/2 ld.exe'
15681 shlibpath_var=LIBPATH
15682 ;;
15683
15684osf3* | osf4* | osf5*)
15685 version_type=osf
15686 need_lib_prefix=no
15687 need_version=no
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693 ;;
15694
ac40fd9e 15695rdos*)
15696 dynamic_linker=no
15697 ;;
15698
d9898ee8 15699solaris*)
b0322a85 15700 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15701 need_lib_prefix=no
15702 need_version=no
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15708 # ldd complains unless libraries are executable
15709 postinstall_cmds='chmod +x $lib'
15710 ;;
15711
15712sunos4*)
15713 version_type=sunos
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 shlibpath_overrides_runpath=yes
15718 if test "$with_gnu_ld" = yes; then
15719 need_lib_prefix=no
15720 fi
15721 need_version=yes
15722 ;;
15723
15724sysv4 | sysv4.3*)
b0322a85 15725 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 case $host_vendor in
15730 sni)
15731 shlibpath_overrides_runpath=no
15732 need_lib_prefix=no
d9898ee8 15733 runpath_var=LD_RUN_PATH
15734 ;;
15735 siemens)
15736 need_lib_prefix=no
15737 ;;
15738 motorola)
15739 need_lib_prefix=no
15740 need_version=no
15741 shlibpath_overrides_runpath=no
15742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15743 ;;
15744 esac
15745 ;;
15746
15747sysv4*MP*)
15748 if test -d /usr/nec ;then
b0322a85 15749 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751 soname_spec='$libname${shared_ext}.$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 fi
15754 ;;
15755
15756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757 version_type=freebsd-elf
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
8d138742 15763 shlibpath_overrides_runpath=yes
d9898ee8 15764 hardcode_into_libs=yes
15765 if test "$with_gnu_ld" = yes; then
15766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 15767 else
15768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 15769 case $host_os in
15770 sco3.2v5*)
15771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 ;;
15773 esac
15774 fi
15775 sys_lib_dlsearch_path_spec='/usr/lib'
15776 ;;
15777
8d138742
CE
15778tpf*)
15779 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 15780 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
15781 need_lib_prefix=no
15782 need_version=no
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=no
15786 hardcode_into_libs=yes
15787 ;;
15788
d9898ee8 15789uts4*)
b0322a85 15790 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 ;;
15795
15796*)
15797 dynamic_linker=no
15798 ;;
15799esac
b0322a85 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 15801$as_echo "$dynamic_linker" >&6; }
d9898ee8 15802test "$dynamic_linker" = no && can_build_shared=no
15803
15804variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805if test "$GCC" = yes; then
15806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807fi
15808
8d138742
CE
15809if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811fi
15812if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15814fi
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
d9898ee8 15850
b0322a85
CE
15851
15852
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
15854$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15855hardcode_action_CXX=
15856if test -n "$hardcode_libdir_flag_spec_CXX" ||
15857 test -n "$runpath_var_CXX" ||
15858 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15859
15860 # We can hardcode non-existent directories.
15861 if test "$hardcode_direct_CXX" != no &&
d9898ee8 15862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15863 # have to relink, otherwise we might link with an installed library
15864 # when we should be linking with a yet-to-be-installed one
8d138742
CE
15865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15866 test "$hardcode_minus_L_CXX" != no; then
d9898ee8 15867 # Linking always hardcodes the temporary library directory.
8d138742 15868 hardcode_action_CXX=relink
d9898ee8 15869 else
15870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8d138742 15871 hardcode_action_CXX=immediate
d9898ee8 15872 fi
15873else
15874 # We cannot hardcode anything, or else we can only hardcode existing
15875 # directories.
8d138742 15876 hardcode_action_CXX=unsupported
d9898ee8 15877fi
b0322a85 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
8d138742 15879$as_echo "$hardcode_action_CXX" >&6; }
d9898ee8 15880
8d138742
CE
15881if test "$hardcode_action_CXX" = relink ||
15882 test "$inherit_rpath_CXX" = yes; then
d9898ee8 15883 # Fast installation is not supported
15884 enable_fast_install=no
15885elif test "$shlibpath_overrides_runpath" = yes ||
15886 test "$enable_shared" = no; then
15887 # Fast installation is not necessary
15888 enable_fast_install=needless
15889fi
15890
15891
d9898ee8 15892
d9898ee8 15893
d9898ee8 15894
d9898ee8 15895
d9898ee8 15896
8d138742 15897 fi # test -n "$compiler"
d9898ee8 15898
8d138742 15899 CC=$lt_save_CC
b0322a85 15900 CFLAGS=$lt_save_CFLAGS
8d138742
CE
15901 LDCXX=$LD
15902 LD=$lt_save_LD
15903 GCC=$lt_save_GCC
15904 with_gnu_ld=$lt_save_with_gnu_ld
15905 lt_cv_path_LDCXX=$lt_cv_path_LD
15906 lt_cv_path_LD=$lt_save_path_LD
15907 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15908 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15909fi # test "$_lt_caught_CXX_error" != yes
d9898ee8 15910
8d138742
CE
15911ac_ext=c
15912ac_cpp='$CPP $CPPFLAGS'
15913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 15916
d9898ee8 15917
d9898ee8 15918
d9898ee8 15919
d9898ee8 15920
d9898ee8 15921
d9898ee8 15922
d9898ee8 15923
d9898ee8 15924
d9898ee8 15925
d9898ee8 15926
d9898ee8 15927
d9898ee8 15928
b0322a85
CE
15929
15930
8d138742 15931 ac_config_commands="$ac_config_commands libtool"
d9898ee8 15932
d9898ee8 15933
d9898ee8 15934
d9898ee8 15935
8d138742 15936# Only expand once:
d9898ee8 15937
d9898ee8 15938
d9898ee8 15939
d9898ee8 15940
8d138742 15941saveLIBS="$LIBS"
b0322a85 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
8d138742 15943$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
b0322a85 15944if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
8d138742
CE
15945 $as_echo_n "(cached) " >&6
15946else
15947 ac_check_lib_save_LIBS=$LIBS
15948LIBS="-lgdbm $LIBS"
b0322a85 15949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 15950/* end confdefs.h. */
d9898ee8 15951
8d138742
CE
15952/* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955#ifdef __cplusplus
15956extern "C"
15957#endif
15958char gdbm_open ();
15959int
15960main ()
15961{
15962return gdbm_open ();
15963 ;
15964 return 0;
15965}
15966_ACEOF
b0322a85 15967if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
15968 ac_cv_lib_gdbm_gdbm_open=yes
15969else
b0322a85 15970 ac_cv_lib_gdbm_gdbm_open=no
8d138742 15971fi
b0322a85
CE
15972rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
15974LIBS=$ac_check_lib_save_LIBS
15975fi
b0322a85 15976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8d138742 15977$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
b0322a85 15978if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
8d138742
CE
15979 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
15980fi
d9898ee8 15981
d9898ee8 15982
b0322a85
CE
15983ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
15984if test "x$ac_cv_func_gdbm_open" = xyes; then :
8d138742
CE
15985 FOUND_GDBM=1
15986else
15987 FOUND_GDBM=0
15988fi
d9898ee8 15989
d9898ee8 15990
8d138742
CE
15991if test "$FOUND_GDBM" = 1
15992then
b0322a85
CE
15993 for ac_func in gdbm_fdesc
15994do :
15995 ac_fn_c_check_func "$LINENO" "gdbm_fdesc" "ac_cv_func_gdbm_fdesc"
15996if test "x$ac_cv_func_gdbm_fdesc" = xyes; then :
8d138742 15997 cat >>confdefs.h <<_ACEOF
b0322a85 15998#define HAVE_GDBM_FDESC 1
8d138742 15999_ACEOF
d9898ee8 16000
8d138742
CE
16001fi
16002done
d9898ee8 16003
8d138742 16004fi
b0322a85
CE
16005for ac_header in unistd.h fcntl.h
16006do :
16007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16008ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
16010 cat >>confdefs.h <<_ACEOF
16011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16012_ACEOF
d9898ee8 16013
8d138742 16014fi
d9898ee8 16015
8d138742 16016done
d9898ee8 16017
d9898ee8 16018
8d138742 16019LIBS="$saveLIBS"
d9898ee8 16020
d9898ee8 16021
d9898ee8 16022
8d138742
CE
16023 if test "$FOUND_GDBM" = 1; then
16024 FOUND_GDBM_TRUE=
16025 FOUND_GDBM_FALSE='#'
16026else
16027 FOUND_GDBM_TRUE='#'
16028 FOUND_GDBM_FALSE=
16029fi
d9898ee8 16030
d9898ee8 16031
d9898ee8 16032
b0322a85 16033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 16034$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 16035if ${ac_cv_c_const+:} false; then :
8d138742
CE
16036 $as_echo_n "(cached) " >&6
16037else
b0322a85 16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16039/* end confdefs.h. */
d9898ee8 16040
8d138742
CE
16041int
16042main ()
16043{
b0322a85 16044
8d138742 16045#ifndef __cplusplus
b0322a85 16046 /* Ultrix mips cc rejects this sort of thing. */
8d138742 16047 typedef int charset[2];
b0322a85 16048 const charset cs = { 0, 0 };
8d138742
CE
16049 /* SunOS 4.1.1 cc rejects this. */
16050 char const *const *pcpcc;
16051 char **ppc;
16052 /* NEC SVR4.0.2 mips cc rejects this. */
16053 struct point {int x, y;};
16054 static struct point const zero = {0,0};
16055 /* AIX XL C 1.02.0.0 rejects this.
16056 It does not let you subtract one const X* pointer from another in
16057 an arm of an if-expression whose if-part is not a constant
16058 expression */
16059 const char *g = "string";
16060 pcpcc = &g + (g ? g-g : 0);
16061 /* HPUX 7.0 cc rejects these. */
16062 ++pcpcc;
16063 ppc = (char**) pcpcc;
16064 pcpcc = (char const *const *) ppc;
b0322a85
CE
16065 { /* SCO 3.2v4 cc rejects this sort of thing. */
16066 char tx;
16067 char *t = &tx;
8d138742 16068 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 16069
8d138742
CE
16070 *t++ = 0;
16071 if (s) return 0;
16072 }
16073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16074 int x[] = {25, 17};
16075 const int *foo = &x[0];
16076 ++foo;
16077 }
16078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16079 typedef const int *iptr;
16080 iptr p = 0;
16081 ++p;
16082 }
b0322a85 16083 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 16084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
16085 struct s { int j; const int *ap[3]; } bx;
16086 struct s *b = &bx; b->j = 5;
8d138742
CE
16087 }
16088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16089 const int foo = 10;
16090 if (!foo) return 0;
16091 }
16092 return !cs[0] && !zero.x;
16093#endif
d9898ee8 16094
8d138742
CE
16095 ;
16096 return 0;
16097}
16098_ACEOF
b0322a85 16099if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
16100 ac_cv_c_const=yes
16101else
b0322a85 16102 ac_cv_c_const=no
8d138742 16103fi
8d138742
CE
16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105fi
b0322a85 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
16107$as_echo "$ac_cv_c_const" >&6; }
16108if test $ac_cv_c_const = no; then
d9898ee8 16109
b0322a85
CE
16110$as_echo "#define const /**/" >>confdefs.h
16111
16112fi
16113
16114ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16115if test "x$ac_cv_type_size_t" = xyes; then :
16116
16117else
16118
16119cat >>confdefs.h <<_ACEOF
16120#define size_t unsigned int
8d138742 16121_ACEOF
d9898ee8 16122
8d138742 16123fi
d9898ee8 16124
b0322a85
CE
16125# Check whether --enable-largefile was given.
16126if test "${enable_largefile+set}" = set; then :
16127 enableval=$enable_largefile;
16128fi
16129
16130if test "$enable_largefile" != no; then
16131
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16133$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16134if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742
CE
16135 $as_echo_n "(cached) " >&6
16136else
b0322a85
CE
16137 ac_cv_sys_largefile_CC=no
16138 if test "$GCC" != yes; then
16139 ac_save_CC=$CC
16140 while :; do
16141 # IRIX 6.2 and later do not support large files by default,
16142 # so use the C compiler's -n32 option if that helps.
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16144/* end confdefs.h. */
b0322a85
CE
16145#include <sys/types.h>
16146 /* Check that off_t can represent 2**63 - 1 correctly.
16147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16148 since some C++ compilers masquerading as C compilers
16149 incorrectly reject 9223372036854775807. */
16150#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16152 && LARGE_OFF_T % 2147483647 == 1)
16153 ? 1 : -1];
8d138742
CE
16154int
16155main ()
16156{
b0322a85 16157
8d138742
CE
16158 ;
16159 return 0;
16160}
16161_ACEOF
b0322a85
CE
16162 if ac_fn_c_try_compile "$LINENO"; then :
16163 break
16164fi
16165rm -f core conftest.err conftest.$ac_objext
16166 CC="$CC -n32"
16167 if ac_fn_c_try_compile "$LINENO"; then :
16168 ac_cv_sys_largefile_CC=' -n32'; break
16169fi
16170rm -f core conftest.err conftest.$ac_objext
16171 break
16172 done
16173 CC=$ac_save_CC
16174 rm -f conftest.$ac_ext
16175 fi
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16178$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16179 if test "$ac_cv_sys_largefile_CC" != no; then
16180 CC=$CC$ac_cv_sys_largefile_CC
16181 fi
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16184$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16185if ${ac_cv_sys_file_offset_bits+:} false; then :
16186 $as_echo_n "(cached) " >&6
16187else
16188 while :; do
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190/* end confdefs.h. */
16191#include <sys/types.h>
16192 /* Check that off_t can represent 2**63 - 1 correctly.
16193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16194 since some C++ compilers masquerading as C compilers
16195 incorrectly reject 9223372036854775807. */
16196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16198 && LARGE_OFF_T % 2147483647 == 1)
16199 ? 1 : -1];
16200int
16201main ()
16202{
16203
16204 ;
16205 return 0;
16206}
8d138742 16207_ACEOF
b0322a85
CE
16208if ac_fn_c_try_compile "$LINENO"; then :
16209 ac_cv_sys_file_offset_bits=no; break
16210fi
16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16213/* end confdefs.h. */
b0322a85
CE
16214#define _FILE_OFFSET_BITS 64
16215#include <sys/types.h>
16216 /* Check that off_t can represent 2**63 - 1 correctly.
16217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16218 since some C++ compilers masquerading as C compilers
16219 incorrectly reject 9223372036854775807. */
16220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16222 && LARGE_OFF_T % 2147483647 == 1)
16223 ? 1 : -1];
8d138742
CE
16224int
16225main ()
16226{
b0322a85 16227
8d138742
CE
16228 ;
16229 return 0;
16230}
16231_ACEOF
b0322a85
CE
16232if ac_fn_c_try_compile "$LINENO"; then :
16233 ac_cv_sys_file_offset_bits=64; break
16234fi
16235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 ac_cv_sys_file_offset_bits=unknown
16237 break
16238done
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16241$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16242case $ac_cv_sys_file_offset_bits in #(
16243 no | unknown) ;;
16244 *)
16245cat >>confdefs.h <<_ACEOF
16246#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16247_ACEOF
16248;;
8d138742 16249esac
b0322a85
CE
16250rm -rf conftest*
16251 if test $ac_cv_sys_file_offset_bits = unknown; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16253$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16254if ${ac_cv_sys_large_files+:} false; then :
16255 $as_echo_n "(cached) " >&6
8d138742 16256else
b0322a85
CE
16257 while :; do
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h. */
16260#include <sys/types.h>
16261 /* Check that off_t can represent 2**63 - 1 correctly.
16262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16263 since some C++ compilers masquerading as C compilers
16264 incorrectly reject 9223372036854775807. */
16265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16267 && LARGE_OFF_T % 2147483647 == 1)
16268 ? 1 : -1];
16269int
16270main ()
16271{
d9898ee8 16272
b0322a85
CE
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_compile "$LINENO"; then :
16278 ac_cv_sys_large_files=no; break
8d138742 16279fi
8d138742 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283#define _LARGE_FILES 1
16284#include <sys/types.h>
16285 /* Check that off_t can represent 2**63 - 1 correctly.
16286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16287 since some C++ compilers masquerading as C compilers
16288 incorrectly reject 9223372036854775807. */
16289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16291 && LARGE_OFF_T % 2147483647 == 1)
16292 ? 1 : -1];
16293int
16294main ()
16295{
d9898ee8 16296
b0322a85
CE
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301if ac_fn_c_try_compile "$LINENO"; then :
16302 ac_cv_sys_large_files=1; break
d9898ee8 16303fi
8d138742 16304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
16305 ac_cv_sys_large_files=unknown
16306 break
16307done
8d138742 16308fi
b0322a85
CE
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16310$as_echo "$ac_cv_sys_large_files" >&6; }
16311case $ac_cv_sys_large_files in #(
16312 no | unknown) ;;
16313 *)
8d138742 16314cat >>confdefs.h <<_ACEOF
b0322a85 16315#define _LARGE_FILES $ac_cv_sys_large_files
8d138742 16316_ACEOF
b0322a85
CE
16317;;
16318esac
16319rm -rf conftest*
16320 fi
16321
d9898ee8 16322
8d138742 16323fi
d9898ee8 16324
d9898ee8 16325
16326
8d138742
CE
16327ac_ext=cpp
16328ac_cpp='$CXXCPP $CPPFLAGS'
16329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 16332
b0322a85 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler needs -fhandle-exceptions" >&5
8d138742 16334$as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
b0322a85 16335if ${ac_cv_need_handlexceptions+:} false; then :
8d138742
CE
16336 $as_echo_n "(cached) " >&6
16337else
b0322a85 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16339/* end confdefs.h. */
d9898ee8 16340
8d138742
CE
16341int
16342main ()
16343{
d9898ee8 16344
8d138742 16345throw;
d9898ee8 16346
8d138742
CE
16347 ;
16348 return 0;
16349}
16350_ACEOF
b0322a85 16351if ac_fn_cxx_try_compile "$LINENO"; then :
8d138742
CE
16352 ac_cv_need_handlexceptions=no
16353else
b0322a85 16354 ac_cv_need_handlexceptions=yes
8d138742 16355fi
8d138742 16356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 16357
8d138742 16358fi
b0322a85 16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_handlexceptions" >&5
8d138742 16360$as_echo "$ac_cv_need_handlexceptions" >&6; }
d9898ee8 16361
8d138742
CE
16362if test "$ac_cv_need_handlexceptions" = "yes"
16363then
16364 case "$CXXFLAGS" in
16365 *handle-exceptions*)
16366 ;;
16367 *)
16368 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
16369 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
16370 ;;
16371 esac
16372fi
d9898ee8 16373
8d138742 16374ac_config_files="$ac_config_files Makefile"
d9898ee8 16375
8d138742
CE
16376cat >confcache <<\_ACEOF
16377# This file is a shell script that caches the results of configure
16378# tests run on this system so they can be shared between configure
16379# scripts and configure runs, see configure's option --config-cache.
16380# It is not useful on other systems. If it contains results you don't
16381# want to keep, you may remove or edit it.
16382#
16383# config.status only pays attention to the cache file if you give it
16384# the --recheck option to rerun configure.
16385#
16386# `ac_cv_env_foo' variables (set or unset) will be overridden when
16387# loading this file, other *unset* `ac_cv_foo' will be assigned the
16388# following values.
d9898ee8 16389
8d138742 16390_ACEOF
d9898ee8 16391
8d138742
CE
16392# The following way of writing the cache mishandles newlines in values,
16393# but we know of no workaround that is simple, portable, and efficient.
16394# So, we kill variables containing newlines.
16395# Ultrix sh set writes to stderr and can't be redirected directly,
16396# and sets the high bit in the cache file unless we assign to the vars.
16397(
16398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16399 eval ac_val=\$$ac_var
16400 case $ac_val in #(
16401 *${as_nl}*)
16402 case $ac_var in #(
b0322a85 16403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
16404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16405 esac
16406 case $ac_var in #(
16407 _ | IFS | as_nl) ;; #(
16408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 16409 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742 16410 esac ;;
d9898ee8 16411 esac
16412 done
16413
8d138742
CE
16414 (set) 2>&1 |
16415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16416 *${as_nl}ac_space=\ *)
b0322a85
CE
16417 # `set' does not quote correctly, so add quotes: double-quote
16418 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
16419 sed -n \
16420 "s/'/'\\\\''/g;
16421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16422 ;; #(
16423 *)
16424 # `set' quotes correctly as required by POSIX, so do not add quotes.
16425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16426 ;;
16427 esac |
16428 sort
16429) |
16430 sed '
16431 /^ac_cv_env_/b end
16432 t clear
16433 :clear
16434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16435 t end
16436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16437 :end' >>confcache
16438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16439 if test -w "$cache_file"; then
b0322a85
CE
16440 if test "x$cache_file" != "x/dev/null"; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 16442$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
16443 if test ! -f "$cache_file" || test -h "$cache_file"; then
16444 cat confcache >"$cache_file"
16445 else
16446 case $cache_file in #(
16447 */* | ?:*)
16448 mv -f confcache "$cache_file"$$ &&
16449 mv -f "$cache_file"$$ "$cache_file" ;; #(
16450 *)
16451 mv -f confcache "$cache_file" ;;
16452 esac
16453 fi
16454 fi
8d138742 16455 else
b0322a85 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
16457$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16458 fi
16459fi
16460rm -f confcache
d9898ee8 16461
8d138742
CE
16462test "x$prefix" = xNONE && prefix=$ac_default_prefix
16463# Let make expand exec_prefix.
16464test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 16465
8d138742 16466DEFS=-DHAVE_CONFIG_H
d9898ee8 16467
8d138742
CE
16468ac_libobjs=
16469ac_ltlibobjs=
16470for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16471 # 1. Remove the extension, and $U if already installed.
16472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16475 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
16476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
16478done
16479LIBOBJS=$ac_libobjs
d9898ee8 16480
8d138742 16481LTLIBOBJS=$ac_ltlibobjs
d9898ee8 16482
d9898ee8 16483
b0322a85
CE
16484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16485$as_echo_n "checking that generated files are newer than configure... " >&6; }
16486 if test -n "$am_sleep_pid"; then
16487 # Hide warnings about reused PIDs.
16488 wait $am_sleep_pid 2>/dev/null
16489 fi
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16491$as_echo "done" >&6; }
8d138742
CE
16492 if test -n "$EXEEXT"; then
16493 am__EXEEXT_TRUE=
16494 am__EXEEXT_FALSE='#'
16495else
16496 am__EXEEXT_TRUE='#'
16497 am__EXEEXT_FALSE=
16498fi
d9898ee8 16499
8d138742 16500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
16501 as_fn_error $? "conditional \"AMDEP\" was never defined.
16502Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16503fi
16504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
16505 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16506Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16507fi
16508if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
16509 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16510Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16511fi
16512if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
b0322a85
CE
16513 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16514Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16515fi
16516if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
b0322a85
CE
16517 as_fn_error $? "conditional \"FOUND_GDBM\" was never defined.
16518Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 16519fi
d9898ee8 16520
b0322a85 16521: "${CONFIG_STATUS=./config.status}"
8d138742
CE
16522ac_write_fail=0
16523ac_clean_files_save=$ac_clean_files
16524ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 16525{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 16526$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
16527as_write_fail=0
16528cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
16529#! $SHELL
16530# Generated by $as_me.
16531# Run this file to recreate the current configuration.
16532# Compiler output produced by configure, useful for debugging
16533# configure, is in config.log if it exists.
d9898ee8 16534
8d138742
CE
16535debug=false
16536ac_cs_recheck=false
16537ac_cs_silent=false
d9898ee8 16538
b0322a85
CE
16539SHELL=\${CONFIG_SHELL-$SHELL}
16540export SHELL
16541_ASEOF
16542cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16543## -------------------- ##
16544## M4sh Initialization. ##
16545## -------------------- ##
d9898ee8 16546
8d138742
CE
16547# Be more Bourne compatible
16548DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 16549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
16550 emulate sh
16551 NULLCMD=:
16552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16553 # is contrary to our usage. Disable this feature.
16554 alias -g '${1+"$@"}'='"$@"'
16555 setopt NO_GLOB_SUBST
16556else
b0322a85
CE
16557 case `(set -o) 2>/dev/null` in #(
16558 *posix*) :
16559 set -o posix ;; #(
16560 *) :
16561 ;;
8d138742 16562esac
8d138742 16563fi
d9898ee8 16564
d9898ee8 16565
8d138742
CE
16566as_nl='
16567'
16568export as_nl
16569# Printing a long string crashes Solaris 7 /usr/bin/printf.
16570as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
16573# Prefer a ksh shell builtin over an external printf program on Solaris,
16574# but without wasting forks for bash or zsh.
16575if test -z "$BASH_VERSION$ZSH_VERSION" \
16576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16577 as_echo='print -r --'
16578 as_echo_n='print -rn --'
16579elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
16580 as_echo='printf %s\n'
16581 as_echo_n='printf %s'
16582else
16583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16584 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16585 as_echo_n='/usr/ucb/echo -n'
16586 else
16587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16588 as_echo_n_body='eval
16589 arg=$1;
b0322a85 16590 case $arg in #(
8d138742
CE
16591 *"$as_nl"*)
16592 expr "X$arg" : "X\\(.*\\)$as_nl";
16593 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16594 esac;
16595 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16596 '
16597 export as_echo_n_body
16598 as_echo_n='sh -c $as_echo_n_body as_echo'
16599 fi
16600 export as_echo_body
16601 as_echo='sh -c $as_echo_body as_echo'
16602fi
d9898ee8 16603
8d138742
CE
16604# The user is always right.
16605if test "${PATH_SEPARATOR+set}" != set; then
16606 PATH_SEPARATOR=:
16607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16609 PATH_SEPARATOR=';'
16610 }
16611fi
d9898ee8 16612
d9898ee8 16613
8d138742
CE
16614# IFS
16615# We need space, tab and new line, in precisely that order. Quoting is
16616# there to prevent editors from complaining about space-tab.
16617# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16618# splitting by setting IFS to empty value.)
16619IFS=" "" $as_nl"
d9898ee8 16620
8d138742 16621# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
16622as_myself=
16623case $0 in #((
8d138742
CE
16624 *[\\/]* ) as_myself=$0 ;;
16625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626for as_dir in $PATH
16627do
16628 IFS=$as_save_IFS
16629 test -z "$as_dir" && as_dir=.
b0322a85
CE
16630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16631 done
8d138742 16632IFS=$as_save_IFS
d9898ee8 16633
8d138742
CE
16634 ;;
16635esac
16636# We did not find ourselves, most probably we were run as `sh COMMAND'
16637# in which case we are not to be found in the path.
16638if test "x$as_myself" = x; then
16639 as_myself=$0
16640fi
16641if test ! -f "$as_myself"; then
16642 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 16643 exit 1
8d138742 16644fi
d9898ee8 16645
b0322a85
CE
16646# Unset variables that we do not need and which cause bugs (e.g. in
16647# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16648# suppresses any "Segmentation fault" message there. '((' could
16649# trigger a bug in pdksh 5.2.14.
16650for as_var in BASH_ENV ENV MAIL MAILPATH
16651do eval test x\${$as_var+set} = xset \
16652 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
16653done
16654PS1='$ '
16655PS2='> '
16656PS4='+ '
d9898ee8 16657
8d138742
CE
16658# NLS nuisances.
16659LC_ALL=C
16660export LC_ALL
16661LANGUAGE=C
16662export LANGUAGE
d9898ee8 16663
b0322a85
CE
16664# CDPATH.
16665(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16666
16667
16668# as_fn_error STATUS ERROR [LINENO LOG_FD]
16669# ----------------------------------------
16670# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16671# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16672# script with STATUS, using 1 if that was 0.
16673as_fn_error ()
16674{
16675 as_status=$1; test $as_status -eq 0 && as_status=1
16676 if test "$4"; then
16677 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16678 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16679 fi
16680 $as_echo "$as_me: error: $2" >&2
16681 as_fn_exit $as_status
16682} # as_fn_error
16683
16684
16685# as_fn_set_status STATUS
16686# -----------------------
16687# Set $? to STATUS, without forking.
16688as_fn_set_status ()
16689{
16690 return $1
16691} # as_fn_set_status
16692
16693# as_fn_exit STATUS
16694# -----------------
16695# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16696as_fn_exit ()
16697{
16698 set +e
16699 as_fn_set_status $1
16700 exit $1
16701} # as_fn_exit
16702
16703# as_fn_unset VAR
16704# ---------------
16705# Portably unset VAR.
16706as_fn_unset ()
16707{
16708 { eval $1=; unset $1;}
16709}
16710as_unset=as_fn_unset
16711# as_fn_append VAR VALUE
16712# ----------------------
16713# Append the text in VALUE to the end of the definition contained in VAR. Take
16714# advantage of any shell optimizations that allow amortized linear growth over
16715# repeated appends, instead of the typical quadratic growth present in naive
16716# implementations.
16717if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16718 eval 'as_fn_append ()
16719 {
16720 eval $1+=\$2
16721 }'
16722else
16723 as_fn_append ()
16724 {
16725 eval $1=\$$1\$2
16726 }
16727fi # as_fn_append
16728
16729# as_fn_arith ARG...
16730# ------------------
16731# Perform arithmetic evaluation on the ARGs, and store the result in the
16732# global $as_val. Take advantage of shells that can avoid forks. The arguments
16733# must be portable across $(()) and expr.
16734if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16735 eval 'as_fn_arith ()
16736 {
16737 as_val=$(( $* ))
16738 }'
16739else
16740 as_fn_arith ()
16741 {
16742 as_val=`expr "$@" || test $? -eq 1`
16743 }
16744fi # as_fn_arith
16745
16746
8d138742
CE
16747if expr a : '\(a\)' >/dev/null 2>&1 &&
16748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16749 as_expr=expr
16750else
16751 as_expr=false
16752fi
d9898ee8 16753
8d138742
CE
16754if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16755 as_basename=basename
16756else
16757 as_basename=false
16758fi
d9898ee8 16759
b0322a85
CE
16760if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16761 as_dirname=dirname
16762else
16763 as_dirname=false
16764fi
d9898ee8 16765
8d138742
CE
16766as_me=`$as_basename -- "$0" ||
16767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16768 X"$0" : 'X\(//\)$' \| \
16769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16770$as_echo X/"$0" |
16771 sed '/^.*\/\([^/][^/]*\)\/*$/{
16772 s//\1/
16773 q
16774 }
16775 /^X\/\(\/\/\)$/{
16776 s//\1/
16777 q
16778 }
16779 /^X\/\(\/\).*/{
16780 s//\1/
16781 q
16782 }
16783 s/.*/./; q'`
d9898ee8 16784
b0322a85
CE
16785# Avoid depending upon Character Ranges.
16786as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16787as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16788as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16789as_cr_digits='0123456789'
16790as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 16791
8d138742 16792ECHO_C= ECHO_N= ECHO_T=
b0322a85 16793case `echo -n x` in #(((((
8d138742 16794-n*)
b0322a85 16795 case `echo 'xy\c'` in
8d138742 16796 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
16797 xy) ECHO_C='\c';;
16798 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16799 ECHO_T=' ';;
8d138742
CE
16800 esac;;
16801*)
16802 ECHO_N='-n';;
16803esac
d9898ee8 16804
8d138742
CE
16805rm -f conf$$ conf$$.exe conf$$.file
16806if test -d conf$$.dir; then
16807 rm -f conf$$.dir/conf$$.file
16808else
16809 rm -f conf$$.dir
16810 mkdir conf$$.dir 2>/dev/null
16811fi
16812if (echo >conf$$.file) 2>/dev/null; then
16813 if ln -s conf$$.file conf$$ 2>/dev/null; then
16814 as_ln_s='ln -s'
16815 # ... but there are two gotchas:
16816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 16818 # In both cases, we have to default to `cp -pR'.
8d138742 16819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 16820 as_ln_s='cp -pR'
8d138742
CE
16821 elif ln conf$$.file conf$$ 2>/dev/null; then
16822 as_ln_s=ln
16823 else
b0322a85 16824 as_ln_s='cp -pR'
8d138742
CE
16825 fi
16826else
b0322a85 16827 as_ln_s='cp -pR'
8d138742
CE
16828fi
16829rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16830rmdir conf$$.dir 2>/dev/null
d9898ee8 16831
b0322a85
CE
16832
16833# as_fn_mkdir_p
16834# -------------
16835# Create "$as_dir" as a directory, including parents if necessary.
16836as_fn_mkdir_p ()
16837{
16838
16839 case $as_dir in #(
16840 -*) as_dir=./$as_dir;;
16841 esac
16842 test -d "$as_dir" || eval $as_mkdir_p || {
16843 as_dirs=
16844 while :; do
16845 case $as_dir in #(
16846 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16847 *) as_qdir=$as_dir;;
16848 esac
16849 as_dirs="'$as_qdir' $as_dirs"
16850 as_dir=`$as_dirname -- "$as_dir" ||
16851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16852 X"$as_dir" : 'X\(//\)[^/]' \| \
16853 X"$as_dir" : 'X\(//\)$' \| \
16854 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16855$as_echo X"$as_dir" |
16856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16857 s//\1/
16858 q
16859 }
16860 /^X\(\/\/\)[^/].*/{
16861 s//\1/
16862 q
16863 }
16864 /^X\(\/\/\)$/{
16865 s//\1/
16866 q
16867 }
16868 /^X\(\/\).*/{
16869 s//\1/
16870 q
16871 }
16872 s/.*/./; q'`
16873 test -d "$as_dir" && break
16874 done
16875 test -z "$as_dirs" || eval "mkdir $as_dirs"
16876 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16877
16878
16879} # as_fn_mkdir_p
8d138742 16880if mkdir -p . 2>/dev/null; then
b0322a85 16881 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
16882else
16883 test -d ./-p && rmdir ./-p
16884 as_mkdir_p=false
16885fi
d9898ee8 16886
b0322a85
CE
16887
16888# as_fn_executable_p FILE
16889# -----------------------
16890# Test if FILE is an executable regular file.
16891as_fn_executable_p ()
16892{
16893 test -f "$1" && test -x "$1"
16894} # as_fn_executable_p
16895as_test_x='test -x'
16896as_executable_p=as_fn_executable_p
d9898ee8 16897
8d138742
CE
16898# Sed expression to map a string onto a valid CPP name.
16899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 16900
8d138742
CE
16901# Sed expression to map a string onto a valid variable name.
16902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 16903
d9898ee8 16904
8d138742 16905exec 6>&1
b0322a85
CE
16906## ----------------------------------- ##
16907## Main body of $CONFIG_STATUS script. ##
16908## ----------------------------------- ##
16909_ASEOF
16910test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 16911
b0322a85
CE
16912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16913# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
16914# report actual input values of CONFIG_FILES etc. instead of their
16915# values after options handling.
16916ac_log="
16917This file was extended by gdbmobj $as_me 0.10, which was
b0322a85 16918generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 16919
8d138742
CE
16920 CONFIG_FILES = $CONFIG_FILES
16921 CONFIG_HEADERS = $CONFIG_HEADERS
16922 CONFIG_LINKS = $CONFIG_LINKS
16923 CONFIG_COMMANDS = $CONFIG_COMMANDS
16924 $ $0 $@
d9898ee8 16925
8d138742
CE
16926on `(hostname || uname -n) 2>/dev/null | sed 1q`
16927"
d9898ee8 16928
8d138742 16929_ACEOF
d9898ee8 16930
8d138742
CE
16931case $ac_config_files in *"
16932"*) set x $ac_config_files; shift; ac_config_files=$*;;
16933esac
d9898ee8 16934
8d138742
CE
16935case $ac_config_headers in *"
16936"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16937esac
d9898ee8 16938
d9898ee8 16939
8d138742
CE
16940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941# Files that config.status was made for.
16942config_files="$ac_config_files"
16943config_headers="$ac_config_headers"
16944config_commands="$ac_config_commands"
d9898ee8 16945
8d138742 16946_ACEOF
d9898ee8 16947
8d138742
CE
16948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949ac_cs_usage="\
b0322a85
CE
16950\`$as_me' instantiates files and other configuration actions
16951from templates according to the current configuration. Unless the files
16952and actions are specified as TAGs, all are instantiated by default.
d9898ee8 16953
b0322a85 16954Usage: $0 [OPTION]... [TAG]...
d9898ee8 16955
8d138742
CE
16956 -h, --help print this help, then exit
16957 -V, --version print version number and configuration settings, then exit
b0322a85 16958 --config print configuration, then exit
8d138742
CE
16959 -q, --quiet, --silent
16960 do not print progress messages
16961 -d, --debug don't remove temporary files
16962 --recheck update $as_me by reconfiguring in the same conditions
16963 --file=FILE[:TEMPLATE]
16964 instantiate the configuration file FILE
16965 --header=FILE[:TEMPLATE]
16966 instantiate the configuration header FILE
d9898ee8 16967
8d138742
CE
16968Configuration files:
16969$config_files
d9898ee8 16970
8d138742
CE
16971Configuration headers:
16972$config_headers
d9898ee8 16973
8d138742
CE
16974Configuration commands:
16975$config_commands
d9898ee8 16976
b0322a85 16977Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 16978
8d138742
CE
16979_ACEOF
16980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 16981ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
16982ac_cs_version="\\
16983gdbmobj config.status 0.10
b0322a85
CE
16984configured by $0, generated by GNU Autoconf 2.69,
16985 with options \\"\$ac_cs_config\\"
d9898ee8 16986
b0322a85 16987Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
16988This config.status script is free software; the Free Software Foundation
16989gives unlimited permission to copy, distribute and modify it."
d9898ee8 16990
8d138742
CE
16991ac_pwd='$ac_pwd'
16992srcdir='$srcdir'
16993INSTALL='$INSTALL'
16994MKDIR_P='$MKDIR_P'
16995AWK='$AWK'
16996test -n "\$AWK" || AWK=awk
16997_ACEOF
d9898ee8 16998
8d138742
CE
16999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17000# The default lists apply if the user does not specify any file.
17001ac_need_defaults=:
17002while test $# != 0
17003do
17004 case $1 in
b0322a85 17005 --*=?*)
8d138742
CE
17006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17008 ac_shift=:
17009 ;;
b0322a85
CE
17010 --*=)
17011 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17012 ac_optarg=
17013 ac_shift=:
17014 ;;
8d138742
CE
17015 *)
17016 ac_option=$1
17017 ac_optarg=$2
17018 ac_shift=shift
17019 ;;
17020 esac
d9898ee8 17021
8d138742
CE
17022 case $ac_option in
17023 # Handling of the options.
17024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17025 ac_cs_recheck=: ;;
17026 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17027 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
17028 --config | --confi | --conf | --con | --co | --c )
17029 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
17030 --debug | --debu | --deb | --de | --d | -d )
17031 debug=: ;;
17032 --file | --fil | --fi | --f )
17033 $ac_shift
17034 case $ac_optarg in
17035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 17036 '') as_fn_error $? "missing file argument" ;;
8d138742 17037 esac
b0322a85 17038 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
17039 ac_need_defaults=false;;
17040 --header | --heade | --head | --hea )
17041 $ac_shift
17042 case $ac_optarg in
17043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17044 esac
b0322a85 17045 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
17046 ac_need_defaults=false;;
17047 --he | --h)
17048 # Conflict between --help and --header
b0322a85
CE
17049 as_fn_error $? "ambiguous option: \`$1'
17050Try \`$0 --help' for more information.";;
8d138742
CE
17051 --help | --hel | -h )
17052 $as_echo "$ac_cs_usage"; exit ;;
17053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17054 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17055 ac_cs_silent=: ;;
d9898ee8 17056
8d138742 17057 # This is an error.
b0322a85
CE
17058 -*) as_fn_error $? "unrecognized option: \`$1'
17059Try \`$0 --help' for more information." ;;
d9898ee8 17060
b0322a85 17061 *) as_fn_append ac_config_targets " $1"
8d138742 17062 ac_need_defaults=false ;;
d9898ee8 17063
8d138742
CE
17064 esac
17065 shift
17066done
d9898ee8 17067
8d138742 17068ac_configure_extra_args=
d9898ee8 17069
8d138742
CE
17070if $ac_cs_silent; then
17071 exec 6>/dev/null
17072 ac_configure_extra_args="$ac_configure_extra_args --silent"
17073fi
d9898ee8 17074
8d138742
CE
17075_ACEOF
17076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077if \$ac_cs_recheck; then
b0322a85 17078 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
17079 shift
17080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17081 CONFIG_SHELL='$SHELL'
17082 export CONFIG_SHELL
17083 exec "\$@"
17084fi
d9898ee8 17085
8d138742
CE
17086_ACEOF
17087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17088exec 5>>config.log
17089{
17090 echo
17091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17092## Running $as_me. ##
17093_ASBOX
17094 $as_echo "$ac_log"
17095} >&5
d9898ee8 17096
8d138742
CE
17097_ACEOF
17098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099#
17100# INIT-COMMANDS
17101#
17102AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 17103
d9898ee8 17104
8d138742
CE
17105# The HP-UX ksh and POSIX shell print the target directory to stdout
17106# if CDPATH is set.
17107(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 17108
8d138742
CE
17109sed_quote_subst='$sed_quote_subst'
17110double_quote_subst='$double_quote_subst'
17111delay_variable_subst='$delay_variable_subst'
b0322a85
CE
17112macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17113macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17114enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17115enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17116pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17117enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17118SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17119ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17120PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17121host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17122host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17123host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17124build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17125build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17126build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17127SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17128Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17129GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17130EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17131FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17132LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17133NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17134LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17135max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17136ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17137exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17138lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17139lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17140lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17141lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17142lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17143reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17144reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17145OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17146deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17147file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17148file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17149want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17150DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17151sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17152AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17153AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17154archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17155STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17156RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17157old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17158old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17159old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17160lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17161CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17162CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17163compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17164GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17165lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17166lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17167lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17168lt_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"`'
17169nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17170lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17171objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17172MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17173lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17174lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17175lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17176lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17177lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17178need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17179MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17180DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17181NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17182LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17183OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17184OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17185libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17186shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17187extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17188archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17189enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17190export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17191whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17192compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17193old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17194old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17195archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17196archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17197module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17198module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17199with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17200allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17201no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17202hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17203hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17204hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17205hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17206hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17207hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17208hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17209inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17210link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17211always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17212export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17213exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17214include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17215prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17216postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17217file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17218variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17219need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17220need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17221version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17222runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17223shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17224shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17225libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17226library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17227soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17228install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17229postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17230postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17231finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17232finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17233hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17234sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17235sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17236hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17237enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17238enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17239enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17240old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17241striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17242compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17243predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17244postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17245predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17246postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17247compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17248LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17249reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17250reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17251old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17252compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17253GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17254lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17255lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17256lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17257lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17258lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17259archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17260enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17261export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17262whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17263compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17264old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17265old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17266archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17267archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17268module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17269module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17270with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17271allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17272no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17273hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17274hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17275hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17276hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17277hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17278hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17279hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17280inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17281link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17282always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17283export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17284exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17285include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17286prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17287postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17288file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17289hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17290compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17291predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17292postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17293predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17294postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17295compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
8d138742
CE
17296
17297LTCC='$LTCC'
17298LTCFLAGS='$LTCFLAGS'
17299compiler='$compiler_DEFAULT'
17300
b0322a85
CE
17301# A function that is used when there is no print builtin or printf.
17302func_fallback_echo ()
17303{
17304 eval 'cat <<_LTECHO_EOF
17305\$1
17306_LTECHO_EOF'
17307}
17308
8d138742 17309# Quote evaled strings.
b0322a85
CE
17310for var in SHELL \
17311ECHO \
17312PATH_SEPARATOR \
17313SED \
8d138742
CE
17314GREP \
17315EGREP \
17316FGREP \
17317LD \
17318NM \
17319LN_S \
17320lt_SP2NL \
17321lt_NL2SP \
17322reload_flag \
17323OBJDUMP \
17324deplibs_check_method \
17325file_magic_cmd \
b0322a85
CE
17326file_magic_glob \
17327want_nocaseglob \
17328DLLTOOL \
17329sharedlib_from_linklib_cmd \
8d138742
CE
17330AR \
17331AR_FLAGS \
b0322a85 17332archiver_list_spec \
8d138742
CE
17333STRIP \
17334RANLIB \
17335CC \
17336CFLAGS \
17337compiler \
17338lt_cv_sys_global_symbol_pipe \
17339lt_cv_sys_global_symbol_to_cdecl \
17340lt_cv_sys_global_symbol_to_c_name_address \
17341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 17342nm_file_list_spec \
8d138742 17343lt_prog_compiler_no_builtin_flag \
8d138742 17344lt_prog_compiler_pic \
b0322a85 17345lt_prog_compiler_wl \
8d138742
CE
17346lt_prog_compiler_static \
17347lt_cv_prog_compiler_c_o \
17348need_locks \
b0322a85 17349MANIFEST_TOOL \
8d138742
CE
17350DSYMUTIL \
17351NMEDIT \
17352LIPO \
17353OTOOL \
17354OTOOL64 \
17355shrext_cmds \
17356export_dynamic_flag_spec \
17357whole_archive_flag_spec \
17358compiler_needs_object \
17359with_gnu_ld \
17360allow_undefined_flag \
17361no_undefined_flag \
17362hardcode_libdir_flag_spec \
8d138742 17363hardcode_libdir_separator \
8d138742
CE
17364exclude_expsyms \
17365include_expsyms \
17366file_list_spec \
17367variables_saved_for_relink \
17368libname_spec \
17369library_names_spec \
17370soname_spec \
b0322a85 17371install_override_mode \
8d138742
CE
17372finish_eval \
17373old_striplib \
17374striplib \
17375compiler_lib_search_dirs \
17376predep_objects \
17377postdep_objects \
17378predeps \
17379postdeps \
17380compiler_lib_search_path \
17381LD_CXX \
b0322a85 17382reload_flag_CXX \
8d138742
CE
17383compiler_CXX \
17384lt_prog_compiler_no_builtin_flag_CXX \
8d138742 17385lt_prog_compiler_pic_CXX \
b0322a85 17386lt_prog_compiler_wl_CXX \
8d138742
CE
17387lt_prog_compiler_static_CXX \
17388lt_cv_prog_compiler_c_o_CXX \
17389export_dynamic_flag_spec_CXX \
17390whole_archive_flag_spec_CXX \
17391compiler_needs_object_CXX \
17392with_gnu_ld_CXX \
17393allow_undefined_flag_CXX \
17394no_undefined_flag_CXX \
17395hardcode_libdir_flag_spec_CXX \
8d138742 17396hardcode_libdir_separator_CXX \
8d138742
CE
17397exclude_expsyms_CXX \
17398include_expsyms_CXX \
17399file_list_spec_CXX \
17400compiler_lib_search_dirs_CXX \
17401predep_objects_CXX \
17402postdep_objects_CXX \
17403predeps_CXX \
17404postdeps_CXX \
17405compiler_lib_search_path_CXX; do
b0322a85 17406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 17407 *[\\\\\\\`\\"\\\$]*)
b0322a85 17408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
17409 ;;
17410 *)
17411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17412 ;;
17413 esac
17414done
d9898ee8 17415
8d138742
CE
17416# Double-quote double-evaled strings.
17417for var in reload_cmds \
17418old_postinstall_cmds \
17419old_postuninstall_cmds \
17420old_archive_cmds \
17421extract_expsyms_cmds \
17422old_archive_from_new_cmds \
17423old_archive_from_expsyms_cmds \
17424archive_cmds \
17425archive_expsym_cmds \
17426module_cmds \
17427module_expsym_cmds \
17428export_symbols_cmds \
17429prelink_cmds \
b0322a85 17430postlink_cmds \
8d138742
CE
17431postinstall_cmds \
17432postuninstall_cmds \
17433finish_cmds \
17434sys_lib_search_path_spec \
17435sys_lib_dlsearch_path_spec \
b0322a85 17436reload_cmds_CXX \
8d138742
CE
17437old_archive_cmds_CXX \
17438old_archive_from_new_cmds_CXX \
17439old_archive_from_expsyms_cmds_CXX \
17440archive_cmds_CXX \
17441archive_expsym_cmds_CXX \
17442module_cmds_CXX \
17443module_expsym_cmds_CXX \
17444export_symbols_cmds_CXX \
b0322a85
CE
17445prelink_cmds_CXX \
17446postlink_cmds_CXX; do
17447 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 17448 *[\\\\\\\`\\"\\\$]*)
b0322a85 17449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
17450 ;;
17451 *)
17452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17453 ;;
17454 esac
17455done
d9898ee8 17456
8d138742
CE
17457ac_aux_dir='$ac_aux_dir'
17458xsi_shell='$xsi_shell'
17459lt_shell_append='$lt_shell_append'
d9898ee8 17460
8d138742
CE
17461# See if we are running on zsh, and set the options which allow our
17462# commands through without removal of \ escapes INIT.
17463if test -n "\${ZSH_VERSION+set}" ; then
17464 setopt NO_GLOB_SUBST
17465fi
d9898ee8 17466
17467
8d138742
CE
17468 PACKAGE='$PACKAGE'
17469 VERSION='$VERSION'
17470 TIMESTAMP='$TIMESTAMP'
17471 RM='$RM'
17472 ofile='$ofile'
d9898ee8 17473
17474
d9898ee8 17475
d9898ee8 17476
d9898ee8 17477
d9898ee8 17478
8d138742 17479_ACEOF
d9898ee8 17480
8d138742 17481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 17482
8d138742
CE
17483# Handling of arguments.
17484for ac_config_target in $ac_config_targets
17485do
17486 case $ac_config_target in
17487 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17489 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17490 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 17491
b0322a85 17492 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
17493 esac
17494done
d9898ee8 17495
d9898ee8 17496
8d138742
CE
17497# If the user did not use the arguments to specify the items to instantiate,
17498# then the envvar interface is used. Set only those that are not.
17499# We use the long form for the default assignment because of an extremely
17500# bizarre bug on SunOS 4.1.3.
17501if $ac_need_defaults; then
17502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17505fi
d9898ee8 17506
8d138742
CE
17507# Have a temporary directory for convenience. Make it in the build tree
17508# simply because there is no reason against having it here, and in addition,
17509# creating and moving files from /tmp can sometimes cause problems.
17510# Hook for its removal unless debugging.
17511# Note that there is a small window in which the directory will not be cleaned:
17512# after its creation but before its name has been assigned to `$tmp'.
17513$debug ||
17514{
b0322a85 17515 tmp= ac_tmp=
8d138742 17516 trap 'exit_status=$?
b0322a85
CE
17517 : "${ac_tmp:=$tmp}"
17518 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 17519' 0
b0322a85 17520 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
17521}
17522# Create a (secure) tmp directory for tmp files.
d9898ee8 17523
8d138742
CE
17524{
17525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 17526 test -d "$tmp"
8d138742
CE
17527} ||
17528{
17529 tmp=./conf$$-$RANDOM
17530 (umask 077 && mkdir "$tmp")
b0322a85
CE
17531} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17532ac_tmp=$tmp
d9898ee8 17533
8d138742
CE
17534# Set up the scripts for CONFIG_FILES section.
17535# No need to generate them if there are no CONFIG_FILES.
17536# This happens for instance with `./config.status config.h'.
17537if test -n "$CONFIG_FILES"; then
d9898ee8 17538
17539
b0322a85
CE
17540ac_cr=`echo X | tr X '\015'`
17541# On cygwin, bash can eat \r inside `` if the user requested igncr.
17542# But we know of no other shell where ac_cr would be empty at this
17543# point, so we can use a bashism as a fallback.
17544if test "x$ac_cr" = x; then
17545 eval ac_cr=\$\'\\r\'
17546fi
8d138742
CE
17547ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17548if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17549 ac_cs_awk_cr='\\r'
17550else
17551 ac_cs_awk_cr=$ac_cr
17552fi
d9898ee8 17553
b0322a85 17554echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8d138742 17555_ACEOF
d9898ee8 17556
17557
8d138742
CE
17558{
17559 echo "cat >conf$$subs.awk <<_ACEOF" &&
17560 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17561 echo "_ACEOF"
17562} >conf$$subs.sh ||
b0322a85
CE
17563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17564ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
17565ac_delim='%!_!# '
17566for ac_last_try in false false false false false :; do
17567 . ./conf$$subs.sh ||
b0322a85 17568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 17569
8d138742
CE
17570 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17571 if test $ac_delim_n = $ac_delim_num; then
17572 break
17573 elif $ac_last_try; then
b0322a85 17574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
17575 else
17576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17577 fi
17578done
17579rm -f conf$$subs.sh
d9898ee8 17580
8d138742 17581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 17582cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
17583_ACEOF
17584sed -n '
17585h
17586s/^/S["/; s/!.*/"]=/
17587p
17588g
17589s/^[^!]*!//
17590:repl
17591t repl
17592s/'"$ac_delim"'$//
17593t delim
17594:nl
17595h
b0322a85 17596s/\(.\{148\}\)..*/\1/
8d138742
CE
17597t more1
17598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17599p
17600n
17601b repl
17602:more1
17603s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17604p
17605g
17606s/.\{148\}//
17607t nl
17608:delim
17609h
b0322a85 17610s/\(.\{148\}\)..*/\1/
8d138742
CE
17611t more2
17612s/["\\]/\\&/g; s/^/"/; s/$/"/
17613p
17614b
17615:more2
17616s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17617p
17618g
17619s/.\{148\}//
17620t delim
17621' <conf$$subs.awk | sed '
17622/^[^""]/{
17623 N
17624 s/\n//
17625}
17626' >>$CONFIG_STATUS || ac_write_fail=1
17627rm -f conf$$subs.awk
17628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17629_ACAWK
b0322a85 17630cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
17631 for (key in S) S_is_set[key] = 1
17632 FS = "\a"
d9898ee8 17633
8d138742
CE
17634}
17635{
17636 line = $ 0
17637 nfields = split(line, field, "@")
17638 substed = 0
17639 len = length(field[1])
17640 for (i = 2; i < nfields; i++) {
17641 key = field[i]
17642 keylen = length(key)
17643 if (S_is_set[key]) {
17644 value = S[key]
17645 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17646 len += length(value) + length(field[++i])
17647 substed = 1
17648 } else
17649 len += 1 + keylen
17650 }
d9898ee8 17651
8d138742
CE
17652 print line
17653}
d9898ee8 17654
8d138742
CE
17655_ACAWK
17656_ACEOF
17657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17660else
17661 cat
b0322a85
CE
17662fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17663 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 17664_ACEOF
d9898ee8 17665
b0322a85
CE
17666# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17667# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
17668# trailing colons and then remove the whole line if VPATH becomes empty
17669# (actually we leave an empty line to preserve line numbers).
17670if test "x$srcdir" = x.; then
b0322a85
CE
17671 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17672h
17673s///
17674s/^/:/
17675s/[ ]*$/:/
17676s/:\$(srcdir):/:/g
17677s/:\${srcdir}:/:/g
17678s/:@srcdir@:/:/g
17679s/^:*//
8d138742 17680s/:*$//
b0322a85
CE
17681x
17682s/\(=[ ]*\).*/\1/
17683G
17684s/\n//
8d138742
CE
17685s/^[^=]*=[ ]*$//
17686}'
17687fi
d9898ee8 17688
8d138742
CE
17689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17690fi # test -n "$CONFIG_FILES"
d9898ee8 17691
8d138742
CE
17692# Set up the scripts for CONFIG_HEADERS section.
17693# No need to generate them if there are no CONFIG_HEADERS.
17694# This happens for instance with `./config.status Makefile'.
17695if test -n "$CONFIG_HEADERS"; then
b0322a85 17696cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
17697BEGIN {
17698_ACEOF
d9898ee8 17699
8d138742
CE
17700# Transform confdefs.h into an awk script `defines.awk', embedded as
17701# here-document in config.status, that substitutes the proper values into
17702# config.h.in to produce config.h.
d9898ee8 17703
8d138742
CE
17704# Create a delimiter string that does not exist in confdefs.h, to ease
17705# handling of long lines.
17706ac_delim='%!_!# '
17707for ac_last_try in false false :; do
b0322a85
CE
17708 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17709 if test -z "$ac_tt"; then
8d138742
CE
17710 break
17711 elif $ac_last_try; then
b0322a85 17712 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
17713 else
17714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17715 fi
17716done
d9898ee8 17717
8d138742
CE
17718# For the awk script, D is an array of macro values keyed by name,
17719# likewise P contains macro parameters if any. Preserve backslash
17720# newline sequences.
d9898ee8 17721
8d138742
CE
17722ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17723sed -n '
17724s/.\{148\}/&'"$ac_delim"'/g
17725t rset
17726:rset
17727s/^[ ]*#[ ]*define[ ][ ]*/ /
17728t def
17729d
17730:def
17731s/\\$//
17732t bsnl
17733s/["\\]/\\&/g
17734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17735D["\1"]=" \3"/p
17736s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17737d
17738:bsnl
17739s/["\\]/\\&/g
17740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17741D["\1"]=" \3\\\\\\n"\\/p
17742t cont
17743s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17744t cont
17745d
17746:cont
17747n
17748s/.\{148\}/&'"$ac_delim"'/g
17749t clear
17750:clear
17751s/\\$//
17752t bsnlc
17753s/["\\]/\\&/g; s/^/"/; s/$/"/p
17754d
17755:bsnlc
17756s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17757b cont
17758' <confdefs.h | sed '
17759s/'"$ac_delim"'/"\\\
17760"/g' >>$CONFIG_STATUS || ac_write_fail=1
17761
17762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17763 for (key in D) D_is_set[key] = 1
17764 FS = "\a"
17765}
17766/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17767 line = \$ 0
17768 split(line, arg, " ")
17769 if (arg[1] == "#") {
17770 defundef = arg[2]
17771 mac1 = arg[3]
17772 } else {
17773 defundef = substr(arg[1], 2)
17774 mac1 = arg[2]
17775 }
17776 split(mac1, mac2, "(") #)
17777 macro = mac2[1]
17778 prefix = substr(line, 1, index(line, defundef) - 1)
17779 if (D_is_set[macro]) {
17780 # Preserve the white space surrounding the "#".
17781 print prefix "define", macro P[macro] D[macro]
17782 next
17783 } else {
17784 # Replace #undef with comments. This is necessary, for example,
17785 # in the case of _POSIX_SOURCE, which is predefined and required
17786 # on some systems where configure will not decide to define it.
17787 if (defundef == "undef") {
17788 print "/*", prefix defundef, macro, "*/"
17789 next
17790 }
17791 }
17792}
17793{ print }
17794_ACAWK
17795_ACEOF
17796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 17797 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 17798fi # test -n "$CONFIG_HEADERS"
d9898ee8 17799
17800
8d138742
CE
17801eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17802shift
17803for ac_tag
17804do
17805 case $ac_tag in
17806 :[FHLC]) ac_mode=$ac_tag; continue;;
17807 esac
17808 case $ac_mode$ac_tag in
17809 :[FHL]*:*);;
b0322a85 17810 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
17811 :[FH]-) ac_tag=-:-;;
17812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17813 esac
17814 ac_save_IFS=$IFS
17815 IFS=:
17816 set x $ac_tag
17817 IFS=$ac_save_IFS
17818 shift
17819 ac_file=$1
17820 shift
d9898ee8 17821
8d138742
CE
17822 case $ac_mode in
17823 :L) ac_source=$1;;
17824 :[FH])
17825 ac_file_inputs=
17826 for ac_f
17827 do
17828 case $ac_f in
b0322a85 17829 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
17830 *) # Look for the file first in the build tree, then in the source tree
17831 # (if the path is not absolute). The absolute path cannot be DOS-style,
17832 # because $ac_f cannot contain `:'.
17833 test -f "$ac_f" ||
17834 case $ac_f in
17835 [\\/$]*) false;;
17836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17837 esac ||
b0322a85 17838 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
17839 esac
17840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 17841 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 17842 done
d9898ee8 17843
8d138742
CE
17844 # Let's still pretend it is `configure' which instantiates (i.e., don't
17845 # use $as_me), people would be surprised to read:
17846 # /* config.h. Generated by config.status. */
17847 configure_input='Generated from '`
17848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17849 `' by configure.'
17850 if test x"$ac_file" != x-; then
17851 configure_input="$ac_file. $configure_input"
b0322a85 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
17853$as_echo "$as_me: creating $ac_file" >&6;}
17854 fi
17855 # Neutralize special characters interpreted by sed in replacement strings.
17856 case $configure_input in #(
17857 *\&* | *\|* | *\\* )
17858 ac_sed_conf_input=`$as_echo "$configure_input" |
17859 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17860 *) ac_sed_conf_input=$configure_input;;
17861 esac
d9898ee8 17862
8d138742 17863 case $ac_tag in
b0322a85
CE
17864 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
17866 esac
17867 ;;
17868 esac
dd184caf 17869
8d138742
CE
17870 ac_dir=`$as_dirname -- "$ac_file" ||
17871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17872 X"$ac_file" : 'X\(//\)[^/]' \| \
17873 X"$ac_file" : 'X\(//\)$' \| \
17874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17875$as_echo X"$ac_file" |
17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17877 s//\1/
17878 q
17879 }
17880 /^X\(\/\/\)[^/].*/{
17881 s//\1/
17882 q
17883 }
17884 /^X\(\/\/\)$/{
17885 s//\1/
17886 q
17887 }
17888 /^X\(\/\).*/{
17889 s//\1/
17890 q
17891 }
17892 s/.*/./; q'`
b0322a85 17893 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 17894 ac_builddir=.
d9898ee8 17895
8d138742
CE
17896case "$ac_dir" in
17897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17898*)
17899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17900 # A ".." for each directory in $ac_dir_suffix.
17901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17902 case $ac_top_builddir_sub in
17903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17905 esac ;;
17906esac
17907ac_abs_top_builddir=$ac_pwd
17908ac_abs_builddir=$ac_pwd$ac_dir_suffix
17909# for backward compatibility:
17910ac_top_builddir=$ac_top_build_prefix
d9898ee8 17911
8d138742
CE
17912case $srcdir in
17913 .) # We are building in place.
17914 ac_srcdir=.
17915 ac_top_srcdir=$ac_top_builddir_sub
17916 ac_abs_top_srcdir=$ac_pwd ;;
17917 [\\/]* | ?:[\\/]* ) # Absolute name.
17918 ac_srcdir=$srcdir$ac_dir_suffix;
17919 ac_top_srcdir=$srcdir
17920 ac_abs_top_srcdir=$srcdir ;;
17921 *) # Relative name.
17922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17923 ac_top_srcdir=$ac_top_build_prefix$srcdir
17924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17925esac
17926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 17927
d9898ee8 17928
8d138742
CE
17929 case $ac_mode in
17930 :F)
17931 #
17932 # CONFIG_FILE
17933 #
d9898ee8 17934
8d138742
CE
17935 case $INSTALL in
17936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17937 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17938 esac
17939 ac_MKDIR_P=$MKDIR_P
17940 case $MKDIR_P in
17941 [\\/$]* | ?:[\\/]* ) ;;
17942 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17943 esac
17944_ACEOF
d9898ee8 17945
8d138742
CE
17946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17947# If the template does not know about datarootdir, expand it.
17948# FIXME: This hack should be removed a few years after 2.60.
17949ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
17950ac_sed_dataroot='
17951/datarootdir/ {
17952 p
17953 q
d9898ee8 17954}
8d138742
CE
17955/@datadir@/p
17956/@docdir@/p
17957/@infodir@/p
17958/@localedir@/p
b0322a85 17959/@mandir@/p'
8d138742
CE
17960case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17961*datarootdir*) ac_datarootdir_seen=yes;;
17962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742 17964$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 17965_ACEOF
8d138742
CE
17966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17967 ac_datarootdir_hack='
17968 s&@datadir@&$datadir&g
17969 s&@docdir@&$docdir&g
17970 s&@infodir@&$infodir&g
17971 s&@localedir@&$localedir&g
17972 s&@mandir@&$mandir&g
b0322a85 17973 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 17974esac
8d138742 17975_ACEOF
d9898ee8 17976
8d138742
CE
17977# Neutralize VPATH when `$srcdir' = `.'.
17978# Shell code in configure.ac might set extrasub.
17979# FIXME: do we really want to maintain this feature?
17980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17981ac_sed_extra="$ac_vpsub
17982$extrasub
d9898ee8 17983_ACEOF
8d138742
CE
17984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17985:t
17986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17987s|@configure_input@|$ac_sed_conf_input|;t t
17988s&@top_builddir@&$ac_top_builddir_sub&;t t
17989s&@top_build_prefix@&$ac_top_build_prefix&;t t
17990s&@srcdir@&$ac_srcdir&;t t
17991s&@abs_srcdir@&$ac_abs_srcdir&;t t
17992s&@top_srcdir@&$ac_top_srcdir&;t t
17993s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17994s&@builddir@&$ac_builddir&;t t
17995s&@abs_builddir@&$ac_abs_builddir&;t t
17996s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17997s&@INSTALL@&$ac_INSTALL&;t t
17998s&@MKDIR_P@&$ac_MKDIR_P&;t t
17999$ac_datarootdir_hack
18000"
b0322a85
CE
18001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18002 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 18003
8d138742 18004test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
18005 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18006 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18007 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18009which seems to be undefined. Please make sure it is defined" >&5
8d138742 18010$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 18011which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 18012
b0322a85 18013 rm -f "$ac_tmp/stdin"
8d138742 18014 case $ac_file in
b0322a85
CE
18015 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18016 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 18017 esac \
b0322a85 18018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18019 ;;
18020 :H)
18021 #
18022 # CONFIG_HEADER
18023 #
18024 if test x"$ac_file" != x-; then
18025 {
18026 $as_echo "/* $configure_input */" \
b0322a85
CE
18027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18028 } >"$ac_tmp/config.h" \
18029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18030 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
18032$as_echo "$as_me: $ac_file is unchanged" >&6;}
18033 else
18034 rm -f "$ac_file"
b0322a85
CE
18035 mv "$ac_tmp/config.h" "$ac_file" \
18036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18037 fi
18038 else
18039 $as_echo "/* $configure_input */" \
b0322a85
CE
18040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18041 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
18042 fi
18043# Compute "$ac_file"'s index in $config_headers.
18044_am_arg="$ac_file"
18045_am_stamp_count=1
18046for _am_header in $config_headers :; do
18047 case $_am_header in
18048 $_am_arg | $_am_arg:* )
18049 break ;;
18050 * )
18051 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18052 esac
18053done
18054echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18055$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$_am_arg" : 'X\(//\)[^/]' \| \
18057 X"$_am_arg" : 'X\(//\)$' \| \
18058 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18059$as_echo X"$_am_arg" |
18060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18061 s//\1/
18062 q
18063 }
18064 /^X\(\/\/\)[^/].*/{
18065 s//\1/
18066 q
18067 }
18068 /^X\(\/\/\)$/{
18069 s//\1/
18070 q
18071 }
18072 /^X\(\/\).*/{
18073 s//\1/
18074 q
18075 }
18076 s/.*/./; q'`/stamp-h$_am_stamp_count
18077 ;;
d9898ee8 18078
b0322a85 18079 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
18080$as_echo "$as_me: executing $ac_file commands" >&6;}
18081 ;;
18082 esac
d9898ee8 18083
d9898ee8 18084
8d138742
CE
18085 case $ac_file$ac_mode in
18086 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 18087 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
18088 # are listed without --file. Let's play safe and only enable the eval
18089 # if we detect the quoting.
18090 case $CONFIG_FILES in
18091 *\'*) eval set x "$CONFIG_FILES" ;;
18092 *) set x $CONFIG_FILES ;;
18093 esac
18094 shift
18095 for mf
18096 do
18097 # Strip MF so we end up with the name of the file.
18098 mf=`echo "$mf" | sed -e 's/:.*$//'`
18099 # Check whether this is an Automake generated Makefile or not.
b0322a85 18100 # We used to match only the files named 'Makefile.in', but
8d138742
CE
18101 # some people rename them; so instead we look at the file content.
18102 # Grep'ing the first line is not enough: some people post-process
18103 # each Makefile.in and add a new line on top of each file to say so.
18104 # Grep'ing the whole file is not good either: AIX grep has a line
18105 # limit of 2048, but all sed's we know have understand at least 4000.
18106 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18107 dirpart=`$as_dirname -- "$mf" ||
18108$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18109 X"$mf" : 'X\(//\)[^/]' \| \
18110 X"$mf" : 'X\(//\)$' \| \
18111 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18112$as_echo X"$mf" |
18113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18114 s//\1/
18115 q
18116 }
18117 /^X\(\/\/\)[^/].*/{
18118 s//\1/
18119 q
18120 }
18121 /^X\(\/\/\)$/{
18122 s//\1/
18123 q
18124 }
18125 /^X\(\/\).*/{
18126 s//\1/
18127 q
18128 }
18129 s/.*/./; q'`
18130 else
18131 continue
18132 fi
18133 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 18134 # from the Makefile without running 'make'.
8d138742
CE
18135 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18136 test -z "$DEPDIR" && continue
18137 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 18138 test -z "$am__include" && continue
8d138742 18139 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
18140 # Find all dependency output files, they are included files with
18141 # $(DEPDIR) in their names. We invoke sed twice because it is the
18142 # simplest approach to changing $(DEPDIR) to its actual value in the
18143 # expansion.
18144 for file in `sed -n "
18145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 18146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
18147 # Make sure the directory exists.
18148 test -f "$dirpart/$file" && continue
18149 fdir=`$as_dirname -- "$file" ||
18150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18151 X"$file" : 'X\(//\)[^/]' \| \
18152 X"$file" : 'X\(//\)$' \| \
18153 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18154$as_echo X"$file" |
18155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18156 s//\1/
18157 q
18158 }
18159 /^X\(\/\/\)[^/].*/{
18160 s//\1/
18161 q
18162 }
18163 /^X\(\/\/\)$/{
18164 s//\1/
18165 q
18166 }
18167 /^X\(\/\).*/{
18168 s//\1/
18169 q
18170 }
18171 s/.*/./; q'`
b0322a85 18172 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
18173 # echo "creating $dirpart/$file"
18174 echo '# dummy' > "$dirpart/$file"
18175 done
18176 done
d9898ee8 18177}
8d138742
CE
18178 ;;
18179 "libtool":C)
d9898ee8 18180
8d138742
CE
18181 # See if we are running on zsh, and set the options which allow our
18182 # commands through without removal of \ escapes.
18183 if test -n "${ZSH_VERSION+set}" ; then
18184 setopt NO_GLOB_SUBST
18185 fi
dd184caf 18186
8d138742
CE
18187 cfgfile="${ofile}T"
18188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18189 $RM "$cfgfile"
d9898ee8 18190
8d138742
CE
18191 cat <<_LT_EOF >> "$cfgfile"
18192#! $SHELL
d9898ee8 18193
8d138742
CE
18194# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18195# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18197# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18198#
18199# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
18200# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18201# Foundation, Inc.
8d138742
CE
18202# Written by Gordon Matzigkeit, 1996
18203#
18204# This file is part of GNU Libtool.
18205#
18206# GNU Libtool is free software; you can redistribute it and/or
18207# modify it under the terms of the GNU General Public License as
18208# published by the Free Software Foundation; either version 2 of
18209# the License, or (at your option) any later version.
18210#
18211# As a special exception to the GNU General Public License,
18212# if you distribute this file as part of a program or library that
18213# is built using GNU Libtool, you may include this file under the
18214# same distribution terms that you use for the rest of that program.
18215#
18216# GNU Libtool is distributed in the hope that it will be useful,
18217# but WITHOUT ANY WARRANTY; without even the implied warranty of
18218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18219# GNU General Public License for more details.
18220#
18221# You should have received a copy of the GNU General Public License
18222# along with GNU Libtool; see the file COPYING. If not, a copy
18223# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18224# obtained by writing to the Free Software Foundation, Inc.,
18225# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 18226
18227
8d138742
CE
18228# The names of the tagged configurations supported by this script.
18229available_tags="CXX "
d9898ee8 18230
8d138742 18231# ### BEGIN LIBTOOL CONFIG
dd184caf 18232
8d138742
CE
18233# Which release of libtool.m4 was used?
18234macro_version=$macro_version
18235macro_revision=$macro_revision
d9898ee8 18236
8d138742
CE
18237# Whether or not to build shared libraries.
18238build_libtool_libs=$enable_shared
d9898ee8 18239
8d138742
CE
18240# Whether or not to build static libraries.
18241build_old_libs=$enable_static
dd184caf 18242
8d138742
CE
18243# What type of objects to build.
18244pic_mode=$pic_mode
d9898ee8 18245
8d138742
CE
18246# Whether or not to optimize for fast installation.
18247fast_install=$enable_fast_install
d9898ee8 18248
b0322a85
CE
18249# Shell to use when invoking shell scripts.
18250SHELL=$lt_SHELL
18251
18252# An echo program that protects backslashes.
18253ECHO=$lt_ECHO
18254
18255# The PATH separator for the build system.
18256PATH_SEPARATOR=$lt_PATH_SEPARATOR
18257
8d138742
CE
18258# The host system.
18259host_alias=$host_alias
18260host=$host
18261host_os=$host_os
d9898ee8 18262
8d138742
CE
18263# The build system.
18264build_alias=$build_alias
18265build=$build
18266build_os=$build_os
d9898ee8 18267
8d138742
CE
18268# A sed program that does not truncate output.
18269SED=$lt_SED
d9898ee8 18270
8d138742
CE
18271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18272Xsed="\$SED -e 1s/^X//"
d9898ee8 18273
8d138742
CE
18274# A grep program that handles long lines.
18275GREP=$lt_GREP
d9898ee8 18276
8d138742
CE
18277# An ERE matcher.
18278EGREP=$lt_EGREP
d9898ee8 18279
8d138742
CE
18280# A literal string matcher.
18281FGREP=$lt_FGREP
d9898ee8 18282
8d138742
CE
18283# A BSD- or MS-compatible name lister.
18284NM=$lt_NM
d9898ee8 18285
8d138742
CE
18286# Whether we need soft or hard links.
18287LN_S=$lt_LN_S
d9898ee8 18288
8d138742
CE
18289# What is the maximum length of a command?
18290max_cmd_len=$max_cmd_len
d9898ee8 18291
8d138742
CE
18292# Object file suffix (normally "o").
18293objext=$ac_objext
d9898ee8 18294
8d138742
CE
18295# Executable file suffix (normally "").
18296exeext=$exeext
d9898ee8 18297
8d138742
CE
18298# whether the shell understands "unset".
18299lt_unset=$lt_unset
d9898ee8 18300
8d138742
CE
18301# turn spaces into newlines.
18302SP2NL=$lt_lt_SP2NL
d9898ee8 18303
8d138742
CE
18304# turn newlines into spaces.
18305NL2SP=$lt_lt_NL2SP
dd184caf 18306
b0322a85
CE
18307# convert \$build file names to \$host format.
18308to_host_file_cmd=$lt_cv_to_host_file_cmd
18309
18310# convert \$build files to toolchain format.
18311to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 18312
8d138742
CE
18313# An object symbol dumper.
18314OBJDUMP=$lt_OBJDUMP
d9898ee8 18315
8d138742
CE
18316# Method to check whether dependent libraries are shared objects.
18317deplibs_check_method=$lt_deplibs_check_method
d9898ee8 18318
b0322a85 18319# Command to use when deplibs_check_method = "file_magic".
8d138742 18320file_magic_cmd=$lt_file_magic_cmd
d9898ee8 18321
b0322a85
CE
18322# How to find potential files when deplibs_check_method = "file_magic".
18323file_magic_glob=$lt_file_magic_glob
18324
18325# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18326want_nocaseglob=$lt_want_nocaseglob
18327
18328# DLL creation program.
18329DLLTOOL=$lt_DLLTOOL
18330
18331# Command to associate shared and link libraries.
18332sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18333
8d138742
CE
18334# The archiver.
18335AR=$lt_AR
b0322a85
CE
18336
18337# Flags to create an archive.
8d138742 18338AR_FLAGS=$lt_AR_FLAGS
dd184caf 18339
b0322a85
CE
18340# How to feed a file listing to the archiver.
18341archiver_list_spec=$lt_archiver_list_spec
18342
8d138742
CE
18343# A symbol stripping program.
18344STRIP=$lt_STRIP
d9898ee8 18345
8d138742
CE
18346# Commands used to install an old-style archive.
18347RANLIB=$lt_RANLIB
18348old_postinstall_cmds=$lt_old_postinstall_cmds
18349old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 18350
b0322a85
CE
18351# Whether to use a lock for old archive extraction.
18352lock_old_archive_extraction=$lock_old_archive_extraction
18353
8d138742
CE
18354# A C compiler.
18355LTCC=$lt_CC
d9898ee8 18356
8d138742
CE
18357# LTCC compiler flags.
18358LTCFLAGS=$lt_CFLAGS
d9898ee8 18359
8d138742
CE
18360# Take the output of nm and produce a listing of raw symbols and C names.
18361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 18362
8d138742
CE
18363# Transform the output of nm in a proper C declaration.
18364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 18365
8d138742
CE
18366# Transform the output of nm in a C name address pair.
18367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 18368
8d138742
CE
18369# Transform the output of nm in a C name address pair when lib prefix is needed.
18370global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 18371
b0322a85
CE
18372# Specify filename containing input files for \$NM.
18373nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 18374
b0322a85
CE
18375# The root where to search for dependent libraries,and in which our libraries should be installed.
18376lt_sysroot=$lt_sysroot
d9898ee8 18377
b0322a85
CE
18378# The name of the directory that contains temporary libtool files.
18379objdir=$objdir
dd184caf 18380
8d138742
CE
18381# Used to examine libraries when file_magic_cmd begins with "file".
18382MAGIC_CMD=$MAGIC_CMD
d9898ee8 18383
8d138742
CE
18384# Must we lock files when doing compilation?
18385need_locks=$lt_need_locks
d9898ee8 18386
b0322a85
CE
18387# Manifest tool.
18388MANIFEST_TOOL=$lt_MANIFEST_TOOL
18389
8d138742
CE
18390# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18391DSYMUTIL=$lt_DSYMUTIL
d9898ee8 18392
8d138742
CE
18393# Tool to change global to local symbols on Mac OS X.
18394NMEDIT=$lt_NMEDIT
dd184caf 18395
8d138742
CE
18396# Tool to manipulate fat objects and archives on Mac OS X.
18397LIPO=$lt_LIPO
d9898ee8 18398
8d138742
CE
18399# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18400OTOOL=$lt_OTOOL
d9898ee8 18401
8d138742
CE
18402# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18403OTOOL64=$lt_OTOOL64
dd184caf 18404
8d138742
CE
18405# Old archive suffix (normally "a").
18406libext=$libext
18407
18408# Shared library suffix (normally ".so").
18409shrext_cmds=$lt_shrext_cmds
18410
18411# The commands to extract the exported symbol list from a shared archive.
18412extract_expsyms_cmds=$lt_extract_expsyms_cmds
18413
18414# Variables whose values should be saved in libtool wrapper scripts and
18415# restored at link time.
18416variables_saved_for_relink=$lt_variables_saved_for_relink
18417
18418# Do we need the "lib" prefix for modules?
18419need_lib_prefix=$need_lib_prefix
18420
18421# Do we need a version for libraries?
18422need_version=$need_version
18423
18424# Library versioning type.
18425version_type=$version_type
d9898ee8 18426
8d138742
CE
18427# Shared library runtime path variable.
18428runpath_var=$runpath_var
d9898ee8 18429
8d138742
CE
18430# Shared library path variable.
18431shlibpath_var=$shlibpath_var
d9898ee8 18432
8d138742
CE
18433# Is shlibpath searched before the hard-coded library search path?
18434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 18435
8d138742
CE
18436# Format of library name prefix.
18437libname_spec=$lt_libname_spec
d9898ee8 18438
8d138742
CE
18439# List of archive names. First name is the real one, the rest are links.
18440# The last name is the one that the linker finds with -lNAME
18441library_names_spec=$lt_library_names_spec
d9898ee8 18442
8d138742
CE
18443# The coded name of the library, if different from the real name.
18444soname_spec=$lt_soname_spec
d9898ee8 18445
b0322a85
CE
18446# Permission mode override for installation of shared libraries.
18447install_override_mode=$lt_install_override_mode
18448
8d138742
CE
18449# Command to use after installation of a shared archive.
18450postinstall_cmds=$lt_postinstall_cmds
d9898ee8 18451
8d138742
CE
18452# Command to use after uninstallation of a shared archive.
18453postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 18454
8d138742
CE
18455# Commands used to finish a libtool library installation in a directory.
18456finish_cmds=$lt_finish_cmds
d9898ee8 18457
8d138742
CE
18458# As "finish_cmds", except a single script fragment to be evaled but
18459# not shown.
18460finish_eval=$lt_finish_eval
dd184caf 18461
8d138742
CE
18462# Whether we should hardcode library paths into libraries.
18463hardcode_into_libs=$hardcode_into_libs
dd184caf 18464
8d138742
CE
18465# Compile-time system search path for libraries.
18466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
dd184caf 18467
8d138742
CE
18468# Run-time system search path for libraries.
18469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dd184caf 18470
8d138742
CE
18471# Whether dlopen is supported.
18472dlopen_support=$enable_dlopen
dd184caf 18473
8d138742
CE
18474# Whether dlopen of programs is supported.
18475dlopen_self=$enable_dlopen_self
dd184caf 18476
8d138742
CE
18477# Whether dlopen of statically linked programs is supported.
18478dlopen_self_static=$enable_dlopen_self_static
d9898ee8 18479
8d138742
CE
18480# Commands to strip libraries.
18481old_striplib=$lt_old_striplib
18482striplib=$lt_striplib
d9898ee8 18483
18484
8d138742
CE
18485# The linker used to build libraries.
18486LD=$lt_LD
dd184caf 18487
b0322a85
CE
18488# How to create reloadable object files.
18489reload_flag=$lt_reload_flag
18490reload_cmds=$lt_reload_cmds
18491
8d138742
CE
18492# Commands used to build an old-style archive.
18493old_archive_cmds=$lt_old_archive_cmds
dd184caf 18494
8d138742
CE
18495# A language specific compiler.
18496CC=$lt_compiler
dd184caf 18497
8d138742
CE
18498# Is the compiler the GNU compiler?
18499with_gcc=$GCC
d9898ee8 18500
8d138742
CE
18501# Compiler flag to turn off builtin functions.
18502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 18503
8d138742
CE
18504# Additional compiler flags for building library objects.
18505pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 18506
b0322a85
CE
18507# How to pass a linker flag through the compiler.
18508wl=$lt_lt_prog_compiler_wl
18509
8d138742
CE
18510# Compiler flag to prevent dynamic linking.
18511link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 18512
8d138742
CE
18513# Does compiler simultaneously support -c and -o options?
18514compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 18515
8d138742
CE
18516# Whether or not to add -lc for building shared libraries.
18517build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 18518
8d138742
CE
18519# Whether or not to disallow shared libs when runtime libs are static.
18520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
d9898ee8 18521
8d138742
CE
18522# Compiler flag to allow reflexive dlopens.
18523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 18524
8d138742
CE
18525# Compiler flag to generate shared objects directly from archives.
18526whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 18527
8d138742
CE
18528# Whether the compiler copes with passing no objects directly.
18529compiler_needs_object=$lt_compiler_needs_object
d9898ee8 18530
8d138742
CE
18531# Create an old-style archive from a shared archive.
18532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18533
18534# Create a temporary old-style archive to link instead of a shared archive.
18535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 18536
8d138742
CE
18537# Commands used to build a shared archive.
18538archive_cmds=$lt_archive_cmds
18539archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 18540
8d138742
CE
18541# Commands used to build a loadable module if different from building
18542# a shared archive.
18543module_cmds=$lt_module_cmds
18544module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 18545
8d138742
CE
18546# Whether we are building with GNU ld or not.
18547with_gnu_ld=$lt_with_gnu_ld
d9898ee8 18548
8d138742
CE
18549# Flag that allows shared libraries with undefined symbols to be built.
18550allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 18551
8d138742
CE
18552# Flag that enforces no undefined symbols.
18553no_undefined_flag=$lt_no_undefined_flag
d9898ee8 18554
8d138742
CE
18555# Flag to hardcode \$libdir into a binary during linking.
18556# This must work even if \$libdir does not exist
18557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 18558
8d138742
CE
18559# Whether we need a single "-rpath" flag with a separated argument.
18560hardcode_libdir_separator=$lt_hardcode_libdir_separator
d9898ee8 18561
8d138742
CE
18562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18563# DIR into the resulting binary.
18564hardcode_direct=$hardcode_direct
d9898ee8 18565
8d138742
CE
18566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18567# DIR into the resulting binary and the resulting library dependency is
18568# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18569# library is relocated.
18570hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 18571
8d138742
CE
18572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18573# into the resulting binary.
18574hardcode_minus_L=$hardcode_minus_L
d9898ee8 18575
8d138742
CE
18576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18577# into the resulting binary.
18578hardcode_shlibpath_var=$hardcode_shlibpath_var
d9898ee8 18579
8d138742
CE
18580# Set to "yes" if building a shared library automatically hardcodes DIR
18581# into the library and all subsequent libraries and executables linked
18582# against it.
18583hardcode_automatic=$hardcode_automatic
d9898ee8 18584
8d138742
CE
18585# Set to yes if linker adds runtime paths of dependent libraries
18586# to runtime path list.
18587inherit_rpath=$inherit_rpath
dd184caf 18588
8d138742
CE
18589# Whether libtool must link a program against all its dependency libraries.
18590link_all_deplibs=$link_all_deplibs
d9898ee8 18591
8d138742
CE
18592# Set to "yes" if exported symbols are required.
18593always_export_symbols=$always_export_symbols
d9898ee8 18594
8d138742
CE
18595# The commands to list exported symbols.
18596export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 18597
8d138742
CE
18598# Symbols that should not be listed in the preloaded symbols.
18599exclude_expsyms=$lt_exclude_expsyms
d9898ee8 18600
8d138742
CE
18601# Symbols that must always be exported.
18602include_expsyms=$lt_include_expsyms
d9898ee8 18603
8d138742
CE
18604# Commands necessary for linking programs (against libraries) with templates.
18605prelink_cmds=$lt_prelink_cmds
d9898ee8 18606
b0322a85
CE
18607# Commands necessary for finishing linking programs.
18608postlink_cmds=$lt_postlink_cmds
18609
8d138742
CE
18610# Specify filename containing input files.
18611file_list_spec=$lt_file_list_spec
d9898ee8 18612
8d138742
CE
18613# How to hardcode a shared library path into an executable.
18614hardcode_action=$hardcode_action
d9898ee8 18615
8d138742
CE
18616# The directories searched by this compiler when creating a shared library.
18617compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
d9898ee8 18618
8d138742
CE
18619# Dependencies to place before and after the objects being linked to
18620# create a shared library.
18621predep_objects=$lt_predep_objects
18622postdep_objects=$lt_postdep_objects
18623predeps=$lt_predeps
18624postdeps=$lt_postdeps
d9898ee8 18625
8d138742
CE
18626# The library search path used internally by the compiler when linking
18627# a shared library.
18628compiler_lib_search_path=$lt_compiler_lib_search_path
dd184caf 18629
8d138742 18630# ### END LIBTOOL CONFIG
d9898ee8 18631
8d138742
CE
18632_LT_EOF
18633
18634 case $host_os in
18635 aix3*)
18636 cat <<\_LT_EOF >> "$cfgfile"
18637# AIX sometimes has problems with the GCC collect2 program. For some
18638# reason, if we set the COLLECT_NAMES environment variable, the problems
18639# vanish in a puff of smoke.
18640if test "X${COLLECT_NAMES+set}" != Xset; then
18641 COLLECT_NAMES=
18642 export COLLECT_NAMES
18643fi
18644_LT_EOF
d9898ee8 18645 ;;
d9898ee8 18646 esac
18647
d9898ee8 18648
8d138742 18649ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 18650
d9898ee8 18651
8d138742
CE
18652 # We use sed instead of cat because bash on DJGPP gets confused if
18653 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18654 # text mode, it properly converts lines to CR/LF. This bash problem
18655 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
18656 sed '$q' "$ltmain" >> "$cfgfile" \
18657 || (rm -f "$cfgfile"; exit 1)
18658
18659 if test x"$xsi_shell" = xyes; then
18660 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18661func_dirname ()\
18662{\
18663\ case ${1} in\
18664\ */*) func_dirname_result="${1%/*}${2}" ;;\
18665\ * ) func_dirname_result="${3}" ;;\
18666\ esac\
18667} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18668 && mv -f "$cfgfile.tmp" "$cfgfile" \
18669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18670test 0 -eq $? || _lt_function_replace_fail=:
18671
18672
18673 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18674func_basename ()\
18675{\
18676\ func_basename_result="${1##*/}"\
18677} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18678 && mv -f "$cfgfile.tmp" "$cfgfile" \
18679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18680test 0 -eq $? || _lt_function_replace_fail=:
18681
18682
18683 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18684func_dirname_and_basename ()\
18685{\
18686\ case ${1} in\
18687\ */*) func_dirname_result="${1%/*}${2}" ;;\
18688\ * ) func_dirname_result="${3}" ;;\
18689\ esac\
18690\ func_basename_result="${1##*/}"\
18691} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18692 && mv -f "$cfgfile.tmp" "$cfgfile" \
18693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18694test 0 -eq $? || _lt_function_replace_fail=:
18695
18696
18697 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18698func_stripname ()\
18699{\
18700\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18701\ # positional parameters, so assign one to ordinary parameter first.\
18702\ func_stripname_result=${3}\
18703\ func_stripname_result=${func_stripname_result#"${1}"}\
18704\ func_stripname_result=${func_stripname_result%"${2}"}\
18705} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18706 && mv -f "$cfgfile.tmp" "$cfgfile" \
18707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18708test 0 -eq $? || _lt_function_replace_fail=:
18709
18710
18711 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18712func_split_long_opt ()\
18713{\
18714\ func_split_long_opt_name=${1%%=*}\
18715\ func_split_long_opt_arg=${1#*=}\
18716} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18717 && mv -f "$cfgfile.tmp" "$cfgfile" \
18718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18719test 0 -eq $? || _lt_function_replace_fail=:
18720
18721
18722 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18723func_split_short_opt ()\
18724{\
18725\ func_split_short_opt_arg=${1#??}\
18726\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18727} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18728 && mv -f "$cfgfile.tmp" "$cfgfile" \
18729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18730test 0 -eq $? || _lt_function_replace_fail=:
18731
18732
18733 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18734func_lo2o ()\
18735{\
18736\ case ${1} in\
18737\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18738\ *) func_lo2o_result=${1} ;;\
18739\ esac\
18740} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18741 && mv -f "$cfgfile.tmp" "$cfgfile" \
18742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18743test 0 -eq $? || _lt_function_replace_fail=:
18744
18745
18746 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18747func_xform ()\
18748{\
18749 func_xform_result=${1%.*}.lo\
18750} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18751 && mv -f "$cfgfile.tmp" "$cfgfile" \
18752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18753test 0 -eq $? || _lt_function_replace_fail=:
18754
18755
18756 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18757func_arith ()\
18758{\
18759 func_arith_result=$(( $* ))\
18760} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18761 && mv -f "$cfgfile.tmp" "$cfgfile" \
18762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18763test 0 -eq $? || _lt_function_replace_fail=:
18764
18765
18766 sed -e '/^func_len ()$/,/^} # func_len /c\
18767func_len ()\
18768{\
18769 func_len_result=${#1}\
18770} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18771 && mv -f "$cfgfile.tmp" "$cfgfile" \
18772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18773test 0 -eq $? || _lt_function_replace_fail=:
18774
18775fi
18776
18777if test x"$lt_shell_append" = xyes; then
18778 sed -e '/^func_append ()$/,/^} # func_append /c\
18779func_append ()\
18780{\
18781 eval "${1}+=\\${2}"\
18782} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18783 && mv -f "$cfgfile.tmp" "$cfgfile" \
18784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18785test 0 -eq $? || _lt_function_replace_fail=:
18786
18787
18788 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18789func_append_quoted ()\
18790{\
18791\ func_quote_for_eval "${2}"\
18792\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18793} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18794 && mv -f "$cfgfile.tmp" "$cfgfile" \
18795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18796test 0 -eq $? || _lt_function_replace_fail=:
18797
18798
18799 # Save a `func_append' function call where possible by direct use of '+='
18800 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18801 && mv -f "$cfgfile.tmp" "$cfgfile" \
18802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18803 test 0 -eq $? || _lt_function_replace_fail=:
18804else
18805 # Save a `func_append' function call even when '+=' is not available
18806 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18807 && mv -f "$cfgfile.tmp" "$cfgfile" \
18808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18809 test 0 -eq $? || _lt_function_replace_fail=:
18810fi
18811
18812if test x"$_lt_function_replace_fail" = x":"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18814$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18815fi
18816
18817
18818 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
18819 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18820 chmod +x "$ofile"
dd184caf 18821
dd184caf 18822
8d138742 18823 cat <<_LT_EOF >> "$ofile"
dd184caf 18824
8d138742 18825# ### BEGIN LIBTOOL TAG CONFIG: CXX
dd184caf 18826
8d138742
CE
18827# The linker used to build libraries.
18828LD=$lt_LD_CXX
d9898ee8 18829
b0322a85
CE
18830# How to create reloadable object files.
18831reload_flag=$lt_reload_flag_CXX
18832reload_cmds=$lt_reload_cmds_CXX
18833
8d138742
CE
18834# Commands used to build an old-style archive.
18835old_archive_cmds=$lt_old_archive_cmds_CXX
dd184caf 18836
8d138742
CE
18837# A language specific compiler.
18838CC=$lt_compiler_CXX
dd184caf 18839
8d138742
CE
18840# Is the compiler the GNU compiler?
18841with_gcc=$GCC_CXX
dd184caf 18842
8d138742
CE
18843# Compiler flag to turn off builtin functions.
18844no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
dd184caf 18845
8d138742
CE
18846# Additional compiler flags for building library objects.
18847pic_flag=$lt_lt_prog_compiler_pic_CXX
dd184caf 18848
b0322a85
CE
18849# How to pass a linker flag through the compiler.
18850wl=$lt_lt_prog_compiler_wl_CXX
18851
8d138742
CE
18852# Compiler flag to prevent dynamic linking.
18853link_static_flag=$lt_lt_prog_compiler_static_CXX
dd184caf 18854
8d138742
CE
18855# Does compiler simultaneously support -c and -o options?
18856compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dd184caf 18857
8d138742
CE
18858# Whether or not to add -lc for building shared libraries.
18859build_libtool_need_lc=$archive_cmds_need_lc_CXX
dd184caf 18860
8d138742
CE
18861# Whether or not to disallow shared libs when runtime libs are static.
18862allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d9898ee8 18863
8d138742
CE
18864# Compiler flag to allow reflexive dlopens.
18865export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18866
18867# Compiler flag to generate shared objects directly from archives.
18868whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18869
18870# Whether the compiler copes with passing no objects directly.
18871compiler_needs_object=$lt_compiler_needs_object_CXX
18872
18873# Create an old-style archive from a shared archive.
18874old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18875
18876# Create a temporary old-style archive to link instead of a shared archive.
18877old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18878
18879# Commands used to build a shared archive.
18880archive_cmds=$lt_archive_cmds_CXX
18881archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18882
18883# Commands used to build a loadable module if different from building
18884# a shared archive.
18885module_cmds=$lt_module_cmds_CXX
18886module_expsym_cmds=$lt_module_expsym_cmds_CXX
18887
18888# Whether we are building with GNU ld or not.
18889with_gnu_ld=$lt_with_gnu_ld_CXX
18890
18891# Flag that allows shared libraries with undefined symbols to be built.
18892allow_undefined_flag=$lt_allow_undefined_flag_CXX
18893
18894# Flag that enforces no undefined symbols.
18895no_undefined_flag=$lt_no_undefined_flag_CXX
18896
18897# Flag to hardcode \$libdir into a binary during linking.
18898# This must work even if \$libdir does not exist
18899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18900
8d138742
CE
18901# Whether we need a single "-rpath" flag with a separated argument.
18902hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18903
18904# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18905# DIR into the resulting binary.
18906hardcode_direct=$hardcode_direct_CXX
18907
18908# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18909# DIR into the resulting binary and the resulting library dependency is
18910# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18911# library is relocated.
18912hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18913
18914# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18915# into the resulting binary.
18916hardcode_minus_L=$hardcode_minus_L_CXX
d9898ee8 18917
8d138742
CE
18918# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18919# into the resulting binary.
18920hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d9898ee8 18921
8d138742
CE
18922# Set to "yes" if building a shared library automatically hardcodes DIR
18923# into the library and all subsequent libraries and executables linked
18924# against it.
18925hardcode_automatic=$hardcode_automatic_CXX
d9898ee8 18926
8d138742
CE
18927# Set to yes if linker adds runtime paths of dependent libraries
18928# to runtime path list.
18929inherit_rpath=$inherit_rpath_CXX
d9898ee8 18930
8d138742
CE
18931# Whether libtool must link a program against all its dependency libraries.
18932link_all_deplibs=$link_all_deplibs_CXX
d9898ee8 18933
8d138742
CE
18934# Set to "yes" if exported symbols are required.
18935always_export_symbols=$always_export_symbols_CXX
dd184caf 18936
8d138742
CE
18937# The commands to list exported symbols.
18938export_symbols_cmds=$lt_export_symbols_cmds_CXX
dd184caf 18939
8d138742
CE
18940# Symbols that should not be listed in the preloaded symbols.
18941exclude_expsyms=$lt_exclude_expsyms_CXX
dd184caf 18942
8d138742
CE
18943# Symbols that must always be exported.
18944include_expsyms=$lt_include_expsyms_CXX
dd184caf 18945
8d138742
CE
18946# Commands necessary for linking programs (against libraries) with templates.
18947prelink_cmds=$lt_prelink_cmds_CXX
d9898ee8 18948
b0322a85
CE
18949# Commands necessary for finishing linking programs.
18950postlink_cmds=$lt_postlink_cmds_CXX
18951
8d138742
CE
18952# Specify filename containing input files.
18953file_list_spec=$lt_file_list_spec_CXX
d9898ee8 18954
8d138742
CE
18955# How to hardcode a shared library path into an executable.
18956hardcode_action=$hardcode_action_CXX
d9898ee8 18957
8d138742
CE
18958# The directories searched by this compiler when creating a shared library.
18959compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
d9898ee8 18960
8d138742
CE
18961# Dependencies to place before and after the objects being linked to
18962# create a shared library.
18963predep_objects=$lt_predep_objects_CXX
18964postdep_objects=$lt_postdep_objects_CXX
18965predeps=$lt_predeps_CXX
18966postdeps=$lt_postdeps_CXX
18967
18968# The library search path used internally by the compiler when linking
18969# a shared library.
18970compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18971
18972# ### END LIBTOOL TAG CONFIG: CXX
18973_LT_EOF
d9898ee8 18974
d9898ee8 18975 ;;
dd184caf 18976
d9898ee8 18977 esac
dd184caf 18978done # for ac_tag
d9898ee8 18979
d9898ee8 18980
b0322a85 18981as_fn_exit 0
d9898ee8 18982_ACEOF
d9898ee8 18983ac_clean_files=$ac_clean_files_save
18984
8d138742 18985test $ac_write_fail = 0 ||
b0322a85 18986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 18987
d9898ee8 18988
18989# configure is writing to config.log, and then calls config.status.
18990# config.status does its own redirection, appending to config.log.
18991# Unfortunately, on DOS this fails, as config.log is still kept open
18992# by configure, so config.status won't be able to write to it; its
18993# output is simply discarded. So we exec the FD to /dev/null,
18994# effectively closing config.log, so it can be properly (re)opened and
18995# appended to by config.status. When coming back to configure, we
18996# need to make the FD available again.
18997if test "$no_create" != yes; then
18998 ac_cs_success=:
18999 ac_config_status_args=
19000 test "$silent" = yes &&
19001 ac_config_status_args="$ac_config_status_args --quiet"
19002 exec 5>/dev/null
19003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19004 exec 5>>config.log
19005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19006 # would make configure fail if this is the last instruction.
b0322a85 19007 $ac_cs_success || as_fn_exit 1
d9898ee8 19008fi
8d138742 19009if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 19010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
19011$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19012fi
d9898ee8 19013